Skip to content

Commit

Permalink
demo: update to latest version 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 28, 2021
1 parent c0f0633 commit 4620d0c
Show file tree
Hide file tree
Showing 34 changed files with 1,762 additions and 27 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Again the following dependencies are totally **OPTIONAL**
| Package Name | Version | Description |
| ------------ | ------- | ----------- |
| [@slickgrid-universal/composite-editor-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/composite-editor-component) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/composite-editor-component.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/composite-editor-component) | Composite Editor Modal Component |
| [@slickgrid-universal/custom-tooltip-plugin](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/custom-tooltip-plugin) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/custom-tooltip-plugin.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/custom-tooltip-plugin) | Composite Editor Modal Component |
| [@slickgrid-universal/excel-export](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/excel-export) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/excel-export.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/excel-export) | Export to Excel Service (xls/xlsx) |
| [@slickgrid-universal/text-export](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/text-export) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/text-export.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/text-export) | Export to Text File Service (csv/txt) |
| [@slickgrid-universal/graphql](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/graphql) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/graphql.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/graphql) | GraphQL Query Service (support Filter/Sort/Pagination) |
Expand Down
1 change: 1 addition & 0 deletions bootstrap4-demo-with-locales/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Again the following dependencies are totally **OPTIONAL**
| Package Name | Version | Description |
| ------------ | ------- | ----------- |
| [@slickgrid-universal/composite-editor-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/composite-editor-component) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/composite-editor-component.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/composite-editor-component) | Composite Editor Modal Component |
| [@slickgrid-universal/custom-tooltip-plugin](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/custom-tooltip-plugin) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/custom-tooltip-plugin.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/custom-tooltip-plugin) | Composite Editor Modal Component |
| [@slickgrid-universal/excel-export](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/excel-export) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/excel-export.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/excel-export) | Export to Excel Service (xls/xlsx) |
| [@slickgrid-universal/text-export](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/text-export) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/text-export.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/text-export) | Export to Text File Service (csv/txt) |
| [@slickgrid-universal/graphql](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/graphql) | [![npm](https://img.shields.io/npm/v/@slickgrid-universal/graphql.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/graphql) | GraphQL Query Service (support Filter/Sort/Pagination) |
Expand Down
13 changes: 7 additions & 6 deletions bootstrap4-demo-with-locales/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"@angular/platform-browser-dynamic": "^12.2.7",
"@angular/router": "^12.2.7",
"@ng-select/ng-select": "^7.3.0",
"@slickgrid-universal/composite-editor-component": "^0.18.0",
"@slickgrid-universal/excel-export": "^0.18.0",
"@slickgrid-universal/graphql": "^0.18.0",
"@slickgrid-universal/odata": "^0.18.0",
"@slickgrid-universal/text-export": "^0.18.0",
"angular-slickgrid": "^3.2.0",
"@slickgrid-universal/composite-editor-component": "^0.19.0",
"@slickgrid-universal/custom-tooltip-plugin": "^0.19.0",
"@slickgrid-universal/excel-export": "^0.19.0",
"@slickgrid-universal/graphql": "^0.19.0",
"@slickgrid-universal/odata": "^0.19.0",
"@slickgrid-universal/text-export": "^0.19.0",
"angular-slickgrid": "^3.3.0",
"bootstrap": "^4.6.0",
"custom-event-polyfill": "^1.0.7",
"font-awesome": "^4.7.0",
Expand Down
2 changes: 2 additions & 0 deletions bootstrap4-demo-with-locales/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { GridClientSideComponent } from './examples/grid-clientside.component';
import { GridColspanComponent } from './examples/grid-colspan.component';
import { GridCompositeEditorComponent } from './examples/grid-composite-editor.component';
import { GridContextMenuComponent } from './examples/grid-contextmenu.component';
import { GridCustomTooltipComponent } from './examples/grid-custom-tooltip.component';
import { GridDraggableGroupingComponent } from './examples/grid-draggrouping.component';
import { GridEditorComponent } from './examples/grid-editor.component';
import { GridFormatterComponent } from './examples/grid-formatter.component';
Expand Down Expand Up @@ -42,6 +43,7 @@ const routes: Routes = [
{ path: 'colspan', component: GridColspanComponent },
{ path: 'composite-editor', component: GridCompositeEditorComponent },
{ path: 'context', component: GridContextMenuComponent },
{ path: 'custom-tooltip', component: GridCustomTooltipComponent },
{ path: 'editor', component: GridEditorComponent },
{ path: 'formatter', component: GridFormatterComponent },
{ path: 'frozen', component: GridFrozenComponent },
Expand Down
5 changes: 5 additions & 0 deletions bootstrap4-demo-with-locales/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@
31- Resize by Cell Content
</a>
</li>
<li class="nav-item">
<a class="nav-link" routerLinkActive="active" [routerLink]="['/custom-tooltip']">
32- Regular & Custom Tooltip
</a>
</li>
</ul>
</section>

Expand Down
2 changes: 2 additions & 0 deletions bootstrap4-demo-with-locales/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { GridClientSideComponent } from './examples/grid-clientside.component';
import { GridColspanComponent } from './examples/grid-colspan.component';
import { GridCompositeEditorComponent } from './examples/grid-composite-editor.component';
import { GridContextMenuComponent } from './examples/grid-contextmenu.component';
import { GridCustomTooltipComponent } from './examples/grid-custom-tooltip.component';
import { GridDraggableGroupingComponent } from './examples/grid-draggrouping.component';
import { GridEditorComponent } from './examples/grid-editor.component';
import { GridFormatterComponent } from './examples/grid-formatter.component';
Expand Down Expand Up @@ -71,6 +72,7 @@ import 'flatpickr/dist/l10n/fr';
GridColspanComponent,
GridCompositeEditorComponent,
GridContextMenuComponent,
GridCustomTooltipComponent,
GridEditorComponent,
GridDraggableGroupingComponent,
GridFormatterComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
SlickNamespace,
SortComparers,
} from 'angular-slickgrid';
import './grid-composite-editor.component.scss';

const NB_ITEMS = 500;
const URL_COUNTRIES_COLLECTION = 'assets/data/countries.json';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div id="demo-container" class="container-fluid">
<h2>
{{title}}
<span class="float-end">
<a style="font-size: 18px"
target="_blank"
href="https://github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/examples/grid-custom-tooltip.component.ts">
<span class="fa fa-link"></span> code
</a>
</span>
</h2>
<div class="subtitle" [innerHTML]="subTitle"></div>

<div style="margin-bottom: 20px;">
<label for="pinned-rows">Simulated Server Delay (ms): </label>
<input type="number" id="server-delay" data-test="server-delay" style="width: 60px" [(ngModel)]="serverApiDelay">
</div>

<angular-slickgrid gridId="grid32"
[columnDefinitions]="columnDefinitions"
[gridOptions]="gridOptions"
[dataset]="dataset"
(onAngularGridCreated)="angularGridReady($event.detail)">
</angular-slickgrid>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-bootstrap.scss';

// --
// Custom Tooltips CSS Variables (or SASS equivalent)
// ----------------------------------------------------
// :root {
// --slick-tooltip-background-color: #363636;
// --slick-tooltip-border-color: #252525;
// --slick-tooltip-border: 2px solid #252525;
// --slick-tooltip-color: #ffffff;

// --slick-tooltip-arrow-color: var(--slick-tooltip-border-color);
// --slick-tooltip-arrow-size: 10px;
// --slick-tooltip-arrow-side-margin: 15px;
// }

.header-tooltip-title {
font-weight: bold;
font-size: 14px;
}
.headerrow-tooltip-title {
color: #AD0041;
font-style: italic;
font-size: 13px;
font-weight: bold;
}

// it's preferable to use CSS Variables (or SASS) but if you want to change colors of your tooltip for 1 column in particular you can do it this way
// e.g. change css of 5th column 4 (zero index: l4)
.l4 .header-tooltip-title,
.l4 .headerrow-tooltip-title {
color: #ffffff;
}
.l4.slick-custom-tooltip {
color: #ffffff;
background-color: #363636;
border: 2px solid #252525;
}
.l4.slick-custom-tooltip.arrow-down::after,
.l4.slick-custom-tooltip.arrow-up::after {
border-width: 10px; // arrow size
}
.l4.slick-custom-tooltip.arrow-down::after {
border-top-color: #252525; // arrow down color
}
.l4.slick-custom-tooltip.arrow-up::after {
top: -20px; // arrow size * 2
border-bottom-color: #252525; // arrow up color
}
.l4.slick-custom-tooltip.arrow-left-align::after {
margin-left: 15px;
}
.l4.slick-custom-tooltip.arrow-right-align::after {
margin-left: calc(100% - 20px - 15px); // 20px is (arrow size * 2), 15px is your extra side margin
}
.l6.slick-custom-tooltip.arrow-left-align::after {
margin-left: 4px;
}
Loading

0 comments on commit 4620d0c

Please sign in to comment.