Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): use latest Slickgrid-Universal to avoid adding dep mappings #6

Merged
merged 4 commits into from
Dec 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions cli-requirejs-demo/aurelia_project/aurelia.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,6 @@
"multiple-select.css"
]
},
{
"name": "@slickgrid-universal/excel-export",
"path": "../node_modules/@slickgrid-universal/excel-export/dist/commonjs",
"main": "index"
},
{
"name": "@slickgrid-universal/graphql",
"path": "../node_modules/@slickgrid-universal/graphql/dist/commonjs",
"main": "index"
},
{
"name": "@slickgrid-universal/odata",
"path": "../node_modules/@slickgrid-universal/odata/dist/commonjs",
"main": "index"
},
{
"name": "@slickgrid-universal/text-export",
"path": "../node_modules/@slickgrid-universal/text-export/dist/commonjs",
"main": "index"
},
{
"name": "@slickgrid-universal/common",
"path": "../node_modules/@slickgrid-universal/common/dist/commonjs",
"main": "index"
},
{
"name": "jquery-ui-dist",
"path": "../node_modules/jquery-ui-dist",
Expand Down
10 changes: 5 additions & 5 deletions cli-requirejs-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"url": "http://github.com/ghiscoding/aurelia-slickgrid"
},
"dependencies": {
"@slickgrid-universal/excel-export": "^0.7.1",
"@slickgrid-universal/graphql": "^0.7.1",
"@slickgrid-universal/odata": "^0.5.1",
"@slickgrid-universal/text-export": "^0.7.1",
"@slickgrid-universal/excel-export": "^0.8.0",
"@slickgrid-universal/graphql": "^0.8.0",
"@slickgrid-universal/odata": "^0.8.0",
"@slickgrid-universal/text-export": "^0.8.0",
"aurelia-bootstrapper": "^2.3.3",
"aurelia-animator-css": "^1.0.4",
"aurelia-http-client": "^1.3.1",
"aurelia-i18n": "^3.1.4",
"aurelia-slickgrid": "3.0.0",
"aurelia-slickgrid": "3.1.0",
"bluebird": "^3.7.2",
"bootstrap": "^4.5.3",
"flatpickr": "^4.6.6",
Expand Down
10 changes: 3 additions & 7 deletions cli-requirejs-demo/src/examples/slickgrid/example1.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ <h3>Grid 1</h3>
<aurelia-slickgrid grid-id="grid1"
column-definitions.bind="columnDefinitions1"
grid-options.bind="gridOptions1"
dataset.bind="dataset1"
grid-height="300"
grid-width="800">
dataset.bind="dataset1">
</aurelia-slickgrid>

<hr />
Expand All @@ -20,9 +18,7 @@ <h3>Grid 2</h3>
<aurelia-slickgrid grid-id="grid2"
column-definitions.bind="columnDefinitions2"
grid-options.bind="gridOptions2"
dataset.bind="dataset2"
grid-height="300"
grid-width="800">
dataset.bind="dataset2">
</aurelia-slickgrid>
</div>
</template>
</template>
4 changes: 3 additions & 1 deletion cli-requirejs-demo/src/examples/slickgrid/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export class Example1 {
];
this.gridOptions1 = {
enableAutoResize: false,
enableSorting: true
enableSorting: true,
gridHeight: 300,
gridWidth: 800
};

// copy the same Grid Options and Column Definitions to 2nd grid
Expand Down
6 changes: 1 addition & 5 deletions cli-requirejs-demo/src/examples/slickgrid/example10.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ <h2>${title}</h2>
column-definitions.bind="columnDefinitions1"
grid-options.bind="gridOptions1"
dataset.bind="dataset1"
grid-height="200"
grid-width="800"
on-selected-rows-changed.delegate="onGrid1SelectedRowsChanged($event.detail.eventData, $event.detail.args)">
</aurelia-slickgrid>

Expand All @@ -37,8 +35,6 @@ <h2>${title}</h2>
column-definitions.bind="columnDefinitions2"
grid-options.bind="gridOptions2"
dataset.bind="dataset2"
grid-height="200"
grid-width="800"
on-selected-rows-changed.delegate="onGrid2SelectedRowsChanged($event.detail.eventData, $event.detail.args)">
</aurelia-slickgrid>
</template>
</template>
5 changes: 5 additions & 0 deletions cli-requirejs-demo/src/examples/slickgrid/example10.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export class Example2 {
];
this.gridOptions1 = {
enableAutoResize: false,
gridHeight: 200,
gridWidth: 800,
enableCellNavigation: true,
enableCheckboxSelector: true,
checkboxSelector: {
Expand All @@ -63,8 +65,11 @@ export class Example2 {
},
enableRowSelection: true
};

this.gridOptions2 = {
enableAutoResize: false,
gridHeight: 200,
gridWidth: 800,
enableCellNavigation: true,
rowSelectionOptions: {
// True (Single Selection), False (Multiple Selections)
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example11.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export class Example11 {
this.gridOptions = {
asyncEditorLoading: false,
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
editable: true,
enableColumnPicker: true,
Expand Down
6 changes: 3 additions & 3 deletions cli-requirejs-demo/src/examples/slickgrid/example12.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export class Example12 {

this.gridOptions = {
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableAutoResize: true,
enableExcelCopyBuffer: true,
Expand Down Expand Up @@ -169,7 +169,7 @@ export class Example12 {
}

exportToFile(type = 'csv') {
this.aureliaGrid.exportService.exportToFile({
this.textExportService.exportToFile({
delimiter: (type === 'csv') ? DelimiterType.comma : DelimiterType.tab,
filename: 'myExport',
format: (type === 'csv') ? FileType.csv : FileType.txt
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example13.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export class Example13 {

this.gridOptions = {
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableGrouping: true,
enableExcelExport: true,
Expand Down
8 changes: 5 additions & 3 deletions cli-requirejs-demo/src/examples/slickgrid/example14.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<h2>${title}</h2>
<div class="subtitle" innerhtml.bind="subTitle"></div>

<aurelia-slickgrid grid-id="grid1" column-definitions.bind="columnDefinitions" grid-options.bind="gridOptions" dataset.bind="dataset"
grid-height="500" grid-width="800">
<aurelia-slickgrid grid-id="grid1"
column-definitions.bind="columnDefinitions"
grid-options.bind="gridOptions"
dataset.bind="dataset">
</aurelia-slickgrid>
</template>
</template>
2 changes: 2 additions & 0 deletions cli-requirejs-demo/src/examples/slickgrid/example14.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export class Example14 {

this.gridOptions = {
enableAutoResize: false,
gridHeight: 500,
gridWidth: 800,
enableCellNavigation: true,
enableColumnReorder: false,
enableSorting: true,
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example15.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export class Example15 {

this.gridOptions = {
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableCheckboxSelector: true,
enableFiltering: true,
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example16.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export class Example16 {
this.gridOptions = {
enableAutoResize: true,
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableCellNavigation: true,
enableRowMoveManager: true,
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example2.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export class Example2 {

this.gridOptions = {
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableExcelCopyBuffer: true
};
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example3.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ export class Example3 {
autoEdit: this.isAutoEdit,
autoCommitEdit: false,
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
editable: true,
enableCellNavigation: true,
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example4.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ export class Example4 {

this.gridOptions = {
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableFiltering: true,

Expand Down
10 changes: 5 additions & 5 deletions cli-requirejs-demo/src/examples/slickgrid/example5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GridOdataService } from '@slickgrid-universal/odata';
import { autoinject } from 'aurelia-framework';
import { inject } from 'aurelia-framework';
import { HttpClient } from 'aurelia-http-client';
import {
FieldType,
Expand All @@ -10,7 +10,7 @@ import {
const defaultPageSize = 20;
const sampleDataRoot = 'assets/data';

@autoinject()
@inject(HttpClient)
export class Example5 {
title = 'Example 5: Grid with Backend OData Service';
subTitle = `
Expand All @@ -30,7 +30,7 @@ export class Example5 {
</ul>
`;
aureliaGrid;
columnDefinitions;
columnDefinitions = [];
gridOptions;
dataset = [];
metrics;
Expand Down Expand Up @@ -75,8 +75,8 @@ export class Example5 {
this.gridOptions = {
enableAutoResize: true,
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
checkboxSelector: {
// you can toggle these 2 properties to show the "select all" checkbox in different location
Expand Down
8 changes: 5 additions & 3 deletions cli-requirejs-demo/src/examples/slickgrid/example6.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ <h2>${title}</h2>
</div>
</div>

<aurelia-slickgrid grid-id="grid1" column-definitions.bind="columnDefinitions" grid-options.bind="gridOptions"
dataset.bind="dataset" grid-height="200" grid-width="800"
<aurelia-slickgrid grid-id="grid1"
column-definitions.bind="columnDefinitions"
grid-options.bind="gridOptions"
dataset.bind="dataset"
on-aurelia-grid-created.delegate="aureliaGridReady($event.detail)">
</aurelia-slickgrid>
</template>
</template>
6 changes: 4 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example6.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ export class Example6 {
collection: [{ value: 'acme', label: 'Acme' }, { value: 'abc', label: 'Company ABC' }, { value: 'xyz', label: 'Company XYZ' }]
}
},
{ id: 'billing.address.street', field: 'billing.address.street', nameKey: 'BILLING.ADDRESS.STREET', width: 60, filterable: true, sortable: true },
{ id: 'billingAddressStreet', field: 'billing.address.street', nameKey: 'BILLING.ADDRESS.STREET', width: 60, filterable: true, sortable: true },
{
id: 'billing.address.zip', field: 'billing.address.zip', nameKey: 'BILLING.ADDRESS.ZIP', width: 60,
id: 'billingAddressZip', field: 'billing.address.zip', nameKey: 'BILLING.ADDRESS.ZIP', width: 60,
type: FieldType.number,
filterable: true, sortable: true,
filter: {
Expand All @@ -93,6 +93,8 @@ export class Example6 {

this.gridOptions = {
enableAutoResize: false,
gridHeight: 200,
gridWidth: 800,
enableFiltering: true,
enableCellNavigation: true,
enableCheckboxSelector: true,
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example7.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export class Example7 {
enableHeaderButton: true,
enableHeaderMenu: false,
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableFiltering: false,
enableCellNavigation: true,
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example8.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export class Example8 {
enableAutoResize: true,
enableHeaderMenu: true,
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableFiltering: false,
enableCellNavigation: true,
Expand Down
4 changes: 2 additions & 2 deletions cli-requirejs-demo/src/examples/slickgrid/example9.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export class Example9 {
enableAutoResize: true,
enableGridMenu: true,
autoResize: {
containerId: 'demo-container',
sidePadding: 10
container: '#demo-container',
rightPadding: 10
},
enableFiltering: true,
enableCellNavigation: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import moment from 'moment';
import moment from 'moment-mini';

export class DateFormatValueConverter {
toView(value, format) {
Expand Down
12 changes: 6 additions & 6 deletions webpack-bs3-demo-with-locales/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
"test": "au test"
},
"dependencies": {
"@slickgrid-universal/composite-editor-component": "^0.7.1",
"@slickgrid-universal/excel-export": "^0.7.1",
"@slickgrid-universal/graphql": "^0.7.1",
"@slickgrid-universal/odata": "^0.5.1",
"@slickgrid-universal/text-export": "^0.7.1",
"@slickgrid-universal/composite-editor-component": "^0.8.0",
"@slickgrid-universal/excel-export": "^0.8.0",
"@slickgrid-universal/graphql": "^0.8.0",
"@slickgrid-universal/odata": "^0.8.0",
"@slickgrid-universal/text-export": "^0.8.0",
"aurelia-animator-css": "^1.0.4",
"aurelia-bootstrapper": "^2.3.3",
"aurelia-fetch-client": "^1.8.2",
"aurelia-http-client": "^1.3.1",
"aurelia-i18n": "^3.1.4",
"aurelia-polyfills": "^1.3.4",
"aurelia-slickgrid": "3.0.0",
"aurelia-slickgrid": "3.1.0",
"bluebird": "^3.7.2",
"bootstrap": "^3.4.1",
"font-awesome": "^4.7.0",
Expand Down
Loading