angular-slickgrid 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/{dist/fesm2022 → fesm2022}/angular-slickgrid.mjs +16 -16
- package/package.json +27 -14
- package/.gitbook.yaml +0 -5
- package/CHANGELOG.md +0 -1691
- package/CONTRIBUTING.md +0 -17
- package/angular.json +0 -133
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -1620
- package/coverage/coverage-final.json +0 -9
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -176
- package/coverage/library/components/angular-slickgrid.component.ts.html +0 -5074
- package/coverage/library/components/index.html +0 -116
- package/coverage/library/constants.ts.html +0 -397
- package/coverage/library/extensions/index.html +0 -116
- package/coverage/library/extensions/slickRowDetailView.ts.html +0 -1261
- package/coverage/library/index.html +0 -116
- package/coverage/library/modules/angular-slickgrid.module.ts.html +0 -166
- package/coverage/library/modules/index.html +0 -116
- package/coverage/library/services/angularUtil.service.ts.html +0 -445
- package/coverage/library/services/container.service.ts.html +0 -163
- package/coverage/library/services/index.html +0 -161
- package/coverage/library/services/translater.service.ts.html +0 -199
- package/coverage/library/services/utilities.ts.html +0 -142
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/dist/LICENSE +0 -21
- package/dist/README.md +0 -142
- package/docs/README.md +0 -5
- package/docs/TOC.md +0 -105
- package/docs/backend-services/Custom-Backend-Service.md +0 -50
- package/docs/backend-services/GraphQL.md +0 -276
- package/docs/backend-services/OData.md +0 -245
- package/docs/backend-services/graphql/GraphQL-Filtering.md +0 -156
- package/docs/backend-services/graphql/GraphQL-JSON-Result.md +0 -85
- package/docs/backend-services/graphql/GraphQL-Pagination.md +0 -77
- package/docs/backend-services/graphql/GraphQL-Sorting.md +0 -78
- package/docs/column-functionalities/cell-menu.md +0 -212
- package/docs/column-functionalities/editors/autocomplete-editor.md +0 -466
- package/docs/column-functionalities/editors/date-editor-flatpickr.md +0 -71
- package/docs/column-functionalities/editors/date-editor-vanilla-calendar.md +0 -91
- package/docs/column-functionalities/editors/longtext-editor-textarea.md +0 -80
- package/docs/column-functionalities/editors/select-dropdown-editor.md +0 -227
- package/docs/column-functionalities/editors.md +0 -604
- package/docs/column-functionalities/filters/autocomplete-filter.md +0 -183
- package/docs/column-functionalities/filters/compound-filters.md +0 -234
- package/docs/column-functionalities/filters/custom-filter.md +0 -117
- package/docs/column-functionalities/filters/filter-intro.md +0 -81
- package/docs/column-functionalities/filters/input-filter.md +0 -260
- package/docs/column-functionalities/filters/range-filters.md +0 -188
- package/docs/column-functionalities/filters/select-filter.md +0 -695
- package/docs/column-functionalities/filters/single-search-filter.md +0 -77
- package/docs/column-functionalities/filters/styling-filled-filters.md +0 -45
- package/docs/column-functionalities/formatters.md +0 -325
- package/docs/column-functionalities/sorting.md +0 -200
- package/docs/developer-guides/csp-compliance.md +0 -64
- package/docs/events/Available-Events.md +0 -223
- package/docs/events/Grid-&-DataView-Events.md +0 -211
- package/docs/getting-started/quick-start.md +0 -230
- package/docs/getting-started/troubleshooting.md +0 -80
- package/docs/grid-functionalities/Column-Picker.md +0 -22
- package/docs/grid-functionalities/Composite-Editor-Modal.md +0 -627
- package/docs/grid-functionalities/Context-Menu.md +0 -226
- package/docs/grid-functionalities/Custom-Footer.md +0 -80
- package/docs/grid-functionalities/Custom-Tooltip-(plugin).md +0 -258
- package/docs/grid-functionalities/Export-to-Excel.md +0 -457
- package/docs/grid-functionalities/Export-to-Text-File.md +0 -165
- package/docs/grid-functionalities/FAQ.md +0 -53
- package/docs/grid-functionalities/Global-Options.md +0 -29
- package/docs/grid-functionalities/Grid-Auto-Resize.md +0 -218
- package/docs/grid-functionalities/Grid-Menu.md +0 -134
- package/docs/grid-functionalities/Grid-State-&-Preset.md +0 -245
- package/docs/grid-functionalities/Header-Menu-&-Header-Buttons.md +0 -125
- package/docs/grid-functionalities/Resize-by-Cell-Content.md +0 -138
- package/docs/grid-functionalities/Row-Selection.md +0 -247
- package/docs/grid-functionalities/Row-based-edit.md +0 -71
- package/docs/grid-functionalities/add-update-highlight.md +0 -258
- package/docs/grid-functionalities/column-row-spanning.md +0 -74
- package/docs/grid-functionalities/dynamic-item-metadata.md +0 -124
- package/docs/grid-functionalities/excel-copy-buffer.md +0 -145
- package/docs/grid-functionalities/frozen-columns-rows.md +0 -164
- package/docs/grid-functionalities/grouping-and-aggregators.md +0 -269
- package/docs/grid-functionalities/header-footer-slots.md +0 -22
- package/docs/grid-functionalities/infinite-scroll.md +0 -150
- package/docs/grid-functionalities/providing-grid-data.md +0 -61
- package/docs/grid-functionalities/row-detail.md +0 -530
- package/docs/grid-functionalities/tree-data-grid.md +0 -391
- package/docs/localization/Localization---Component-Sample.md +0 -87
- package/docs/localization/Localization-with-Custom-Locales.md +0 -66
- package/docs/localization/Localization-with-ngx-translate.md +0 -148
- package/docs/migrations/migration-to-2.x.md +0 -304
- package/docs/migrations/migration-to-3.x.md +0 -295
- package/docs/migrations/migration-to-4.x.md +0 -83
- package/docs/migrations/migration-to-5.x.md +0 -160
- package/docs/migrations/migration-to-6.x.md +0 -128
- package/docs/migrations/migration-to-7.x.md +0 -294
- package/docs/migrations/migration-to-8.x.md +0 -316
- package/docs/migrations/migration-to-9.x.md +0 -219
- package/docs/slick-grid-dataview-objects/slickgrid-dataview-objects.md +0 -79
- package/docs/styling/dark-mode.md +0 -100
- package/docs/styling/styling.md +0 -250
- package/docs/testing/testing-patterns.md +0 -73
- package/eslint.config.mjs +0 -60
- package/ng-package.json +0 -10
- package/src/assets/angular-logo.png +0 -0
- package/src/assets/angular-logo2.png +0 -0
- package/src/assets/data/collection_100_numbers.json +0 -12
- package/src/assets/data/collection_500_numbers.json +0 -52
- package/src/assets/data/countries.json +0 -245
- package/src/assets/data/country_names.json +0 -245
- package/src/assets/data/customers_100.json +0 -102
- package/src/assets/data/users.csv +0 -5
- package/src/assets/i18n/en.json +0 -102
- package/src/assets/i18n/fr.json +0 -103
- package/src/demos/app-routing.module.ts +0 -108
- package/src/demos/app.component.html +0 -187
- package/src/demos/app.component.scss +0 -79
- package/src/demos/app.component.ts +0 -11
- package/src/demos/app.module.ts +0 -196
- package/src/demos/environments/environment.dev.ts +0 -3
- package/src/demos/environments/environment.prod.ts +0 -3
- package/src/demos/environments/environment.ts +0 -8
- package/src/demos/examples/custom-angularComponentEditor.ts +0 -187
- package/src/demos/examples/custom-angularComponentFilter.ts +0 -123
- package/src/demos/examples/custom-buttonFormatter.component.ts +0 -13
- package/src/demos/examples/custom-inputEditor.ts +0 -132
- package/src/demos/examples/custom-inputFilter.ts +0 -134
- package/src/demos/examples/custom-titleFormatter.component.ts +0 -9
- package/src/demos/examples/data/collection_100_numbers.json +0 -12
- package/src/demos/examples/data/collection_500_numbers.json +0 -52
- package/src/demos/examples/data/countries.json +0 -245
- package/src/demos/examples/data/country_names.json +0 -245
- package/src/demos/examples/data/customers_100.json +0 -102
- package/src/demos/examples/data/users.csv +0 -5
- package/src/demos/examples/editor-ng-select.component.ts +0 -38
- package/src/demos/examples/example01.component.html +0 -48
- package/src/demos/examples/example01.component.ts +0 -109
- package/src/demos/examples/example02.component.html +0 -45
- package/src/demos/examples/example02.component.ts +0 -218
- package/src/demos/examples/example03.component.html +0 -118
- package/src/demos/examples/example03.component.ts +0 -694
- package/src/demos/examples/example04.component.html +0 -87
- package/src/demos/examples/example04.component.ts +0 -326
- package/src/demos/examples/example05.component.html +0 -151
- package/src/demos/examples/example05.component.ts +0 -474
- package/src/demos/examples/example06.component.html +0 -163
- package/src/demos/examples/example06.component.ts +0 -446
- package/src/demos/examples/example07.component.html +0 -56
- package/src/demos/examples/example07.component.scss +0 -10
- package/src/demos/examples/example07.component.ts +0 -216
- package/src/demos/examples/example08.component.html +0 -51
- package/src/demos/examples/example08.component.scss +0 -23
- package/src/demos/examples/example08.component.ts +0 -195
- package/src/demos/examples/example09.component.html +0 -55
- package/src/demos/examples/example09.component.scss +0 -22
- package/src/demos/examples/example09.component.ts +0 -302
- package/src/demos/examples/example10.component.html +0 -103
- package/src/demos/examples/example10.component.ts +0 -309
- package/src/demos/examples/example11.component.html +0 -91
- package/src/demos/examples/example11.component.ts +0 -276
- package/src/demos/examples/example12.component.html +0 -98
- package/src/demos/examples/example12.component.ts +0 -317
- package/src/demos/examples/example13.component.html +0 -96
- package/src/demos/examples/example13.component.ts +0 -370
- package/src/demos/examples/example14.component.html +0 -50
- package/src/demos/examples/example14.component.scss +0 -11
- package/src/demos/examples/example14.component.ts +0 -156
- package/src/demos/examples/example15.component.html +0 -56
- package/src/demos/examples/example15.component.ts +0 -304
- package/src/demos/examples/example16.component.html +0 -77
- package/src/demos/examples/example16.component.ts +0 -277
- package/src/demos/examples/example17.component.html +0 -50
- package/src/demos/examples/example17.component.ts +0 -109
- package/src/demos/examples/example18.component.html +0 -132
- package/src/demos/examples/example18.component.ts +0 -445
- package/src/demos/examples/example19-rowdetail.component.html +0 -40
- package/src/demos/examples/example19-rowdetail.component.ts +0 -54
- package/src/demos/examples/example19.component.html +0 -79
- package/src/demos/examples/example19.component.ts +0 -316
- package/src/demos/examples/example20.component.html +0 -76
- package/src/demos/examples/example20.component.scss +0 -11
- package/src/demos/examples/example20.component.ts +0 -341
- package/src/demos/examples/example21.component.html +0 -86
- package/src/demos/examples/example21.component.scss +0 -16
- package/src/demos/examples/example21.component.ts +0 -140
- package/src/demos/examples/example22.component.html +0 -41
- package/src/demos/examples/example22.component.ts +0 -117
- package/src/demos/examples/example23.component.html +0 -111
- package/src/demos/examples/example23.component.ts +0 -323
- package/src/demos/examples/example24.component.html +0 -120
- package/src/demos/examples/example24.component.scss +0 -62
- package/src/demos/examples/example24.component.ts +0 -641
- package/src/demos/examples/example25.component.html +0 -60
- package/src/demos/examples/example25.component.scss +0 -8
- package/src/demos/examples/example25.component.ts +0 -255
- package/src/demos/examples/example26.component.html +0 -98
- package/src/demos/examples/example26.component.scss +0 -42
- package/src/demos/examples/example26.component.ts +0 -383
- package/src/demos/examples/example27.component.html +0 -138
- package/src/demos/examples/example27.component.scss +0 -10
- package/src/demos/examples/example27.component.ts +0 -369
- package/src/demos/examples/example28.component.html +0 -143
- package/src/demos/examples/example28.component.scss +0 -54
- package/src/demos/examples/example28.component.ts +0 -453
- package/src/demos/examples/example29.component.html +0 -30
- package/src/demos/examples/example29.component.ts +0 -70
- package/src/demos/examples/example30.component.html +0 -116
- package/src/demos/examples/example30.component.scss +0 -20
- package/src/demos/examples/example30.component.ts +0 -1070
- package/src/demos/examples/example32.component.html +0 -77
- package/src/demos/examples/example32.component.scss +0 -8
- package/src/demos/examples/example32.component.ts +0 -905
- package/src/demos/examples/example33.component.html +0 -50
- package/src/demos/examples/example33.component.scss +0 -46
- package/src/demos/examples/example33.component.ts +0 -571
- package/src/demos/examples/example34.component.html +0 -82
- package/src/demos/examples/example34.component.scss +0 -77
- package/src/demos/examples/example34.component.ts +0 -434
- package/src/demos/examples/example35.component.html +0 -77
- package/src/demos/examples/example35.component.scss +0 -18
- package/src/demos/examples/example35.component.ts +0 -264
- package/src/demos/examples/example36.component.html +0 -56
- package/src/demos/examples/example36.component.scss +0 -26
- package/src/demos/examples/example36.component.ts +0 -504
- package/src/demos/examples/example37.component.html +0 -30
- package/src/demos/examples/example37.component.ts +0 -123
- package/src/demos/examples/example38.component.html +0 -104
- package/src/demos/examples/example38.component.scss +0 -8
- package/src/demos/examples/example38.component.ts +0 -420
- package/src/demos/examples/example39.component.html +0 -112
- package/src/demos/examples/example39.component.scss +0 -8
- package/src/demos/examples/example39.component.ts +0 -371
- package/src/demos/examples/example40.component.html +0 -76
- package/src/demos/examples/example40.component.ts +0 -226
- package/src/demos/examples/example41.component.html +0 -50
- package/src/demos/examples/example41.component.scss +0 -42
- package/src/demos/examples/example41.component.ts +0 -229
- package/src/demos/examples/example42.component.html +0 -47
- package/src/demos/examples/example42.component.ts +0 -203
- package/src/demos/examples/example43.component.html +0 -94
- package/src/demos/examples/example43.component.scss +0 -30
- package/src/demos/examples/example43.component.ts +0 -449
- package/src/demos/examples/example44.component.html +0 -78
- package/src/demos/examples/example44.component.scss +0 -50
- package/src/demos/examples/example44.component.ts +0 -375
- package/src/demos/examples/example45-detail.component.html +0 -15
- package/src/demos/examples/example45-detail.component.ts +0 -97
- package/src/demos/examples/example45.component.html +0 -110
- package/src/demos/examples/example45.component.scss +0 -50
- package/src/demos/examples/example45.component.ts +0 -243
- package/src/demos/examples/filter-ng-select.component.ts +0 -33
- package/src/demos/examples/grid-custom-pager.component.html +0 -60
- package/src/demos/examples/grid-custom-pager.component.scss +0 -57
- package/src/demos/examples/grid-custom-pager.component.ts +0 -107
- package/src/demos/examples/grid-remote.component.html +0 -44
- package/src/demos/examples/grid-remote.component.ts +0 -164
- package/src/demos/examples/home.component.html +0 -39
- package/src/demos/examples/home.component.ts +0 -10
- package/src/demos/examples/jsonp.ts +0 -89
- package/src/demos/examples/rowdetail-preload.component.ts +0 -10
- package/src/demos/examples/swt-common-grid-pagination.component.ts +0 -160
- package/src/demos/examples/swt-common-grid-test.component.html +0 -37
- package/src/demos/examples/swt-common-grid-test.component.ts +0 -214
- package/src/demos/examples/swt-common-grid.component.ts +0 -436
- package/src/demos/examples/swt-logger.service.ts +0 -173
- package/src/demos/examples/utilities.ts +0 -9
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -17
- package/src/library/components/__tests__/angular-slickgrid.component.spec.ts +0 -2638
- package/src/library/components/angular-slickgrid.component.html +0 -5
- package/src/library/components/angular-slickgrid.component.ts +0 -1662
- package/src/library/constants.ts +0 -105
- package/src/library/extensions/__tests__/slickRowDetailView.spec.ts +0 -751
- package/src/library/extensions/index.ts +0 -1
- package/src/library/extensions/slickRowDetailView.ts +0 -395
- package/src/library/global-grid-options.ts +0 -273
- package/src/library/index.ts +0 -11
- package/src/library/models/angularComponentOutput.interface.ts +0 -6
- package/src/library/models/angularGridInstance.interface.ts +0 -76
- package/src/library/models/externalTestingDependencies.interface.ts +0 -37
- package/src/library/models/gridOption.interface.ts +0 -15
- package/src/library/models/index.ts +0 -5
- package/src/library/models/rowDetailView.interface.ts +0 -16
- package/src/library/modules/angular-slickgrid.module.spec.ts +0 -25
- package/src/library/modules/angular-slickgrid.module.ts +0 -27
- package/src/library/services/__tests__/angularUtilService.spec.ts +0 -156
- package/src/library/services/__tests__/container.service.spec.ts +0 -25
- package/src/library/services/__tests__/translater.service.spec.ts +0 -43
- package/src/library/services/__tests__/utilities.spec.ts +0 -22
- package/src/library/services/angularUtil.service.ts +0 -120
- package/src/library/services/container.service.ts +0 -26
- package/src/library/services/index.ts +0 -4
- package/src/library/services/translater.service.ts +0 -38
- package/src/library/services/utilities.ts +0 -19
- package/src/library/slickgrid-config.ts +0 -10
- package/src/main.ts +0 -13
- package/src/public_api.ts +0 -1
- package/src/styles.scss +0 -178
- package/test/cypress/e2e/example01.cy.ts +0 -367
- package/test/cypress/e2e/example02.cy.ts +0 -60
- package/test/cypress/e2e/example03.cy.ts +0 -268
- package/test/cypress/e2e/example04.cy.ts +0 -254
- package/test/cypress/e2e/example05.cy.ts +0 -804
- package/test/cypress/e2e/example06.cy.ts +0 -890
- package/test/cypress/e2e/example07.cy.ts +0 -384
- package/test/cypress/e2e/example08.cy.ts +0 -190
- package/test/cypress/e2e/example09.cy.ts +0 -392
- package/test/cypress/e2e/example10.cy.ts +0 -650
- package/test/cypress/e2e/example11.cy.ts +0 -86
- package/test/cypress/e2e/example12.cy.ts +0 -269
- package/test/cypress/e2e/example13.cy.ts +0 -246
- package/test/cypress/e2e/example14.cy.ts +0 -122
- package/test/cypress/e2e/example15.cy.ts +0 -598
- package/test/cypress/e2e/example16.cy.ts +0 -427
- package/test/cypress/e2e/example17.cy.ts +0 -83
- package/test/cypress/e2e/example18.cy.ts +0 -431
- package/test/cypress/e2e/example19.cy.ts +0 -263
- package/test/cypress/e2e/example20.cy.ts +0 -264
- package/test/cypress/e2e/example21.cy.ts +0 -77
- package/test/cypress/e2e/example22.cy.ts +0 -94
- package/test/cypress/e2e/example23.cy.ts +0 -259
- package/test/cypress/e2e/example24.cy.ts +0 -707
- package/test/cypress/e2e/example25.cy.ts +0 -193
- package/test/cypress/e2e/example26.cy.ts +0 -111
- package/test/cypress/e2e/example27.cy.ts +0 -261
- package/test/cypress/e2e/example28.cy.ts +0 -740
- package/test/cypress/e2e/example29.cy.ts +0 -30
- package/test/cypress/e2e/example30.cy.ts +0 -757
- package/test/cypress/e2e/example31.cy.ts +0 -69
- package/test/cypress/e2e/example32.cy.ts +0 -272
- package/test/cypress/e2e/example33.cy.ts +0 -278
- package/test/cypress/e2e/example34.cy.ts +0 -84
- package/test/cypress/e2e/example35.cy.ts +0 -178
- package/test/cypress/e2e/example36.cy.ts +0 -219
- package/test/cypress/e2e/example37.cy.ts +0 -52
- package/test/cypress/e2e/example38.cy.ts +0 -160
- package/test/cypress/e2e/example39.cy.ts +0 -150
- package/test/cypress/e2e/example40.cy.ts +0 -126
- package/test/cypress/e2e/example41.cy.ts +0 -90
- package/test/cypress/e2e/example42.cy.ts +0 -82
- package/test/cypress/e2e/example43.cy.ts +0 -482
- package/test/cypress/e2e/example44.cy.ts +0 -458
- package/test/cypress/e2e/example45.cy.ts +0 -455
- package/test/cypress/e2e/home.cy.ts +0 -7
- package/test/cypress/fixtures/example.json +0 -5
- package/test/cypress/plugins/index.ts +0 -17
- package/test/cypress/plugins/utilities.ts +0 -28
- package/test/cypress/support/commands.ts +0 -88
- package/test/cypress/support/common.ts +0 -47
- package/test/cypress/support/drag.ts +0 -101
- package/test/cypress/support/index.ts +0 -20
- package/test/cypress/tsconfig.json +0 -9
- package/test/cypress.config.ts +0 -34
- package/test/mockSlickEvent.ts +0 -77
- package/test/rxjsResourceStub.ts +0 -69
- package/test/test-setup.ts +0 -6
- package/test/translateServiceStub.ts +0 -230
- package/test/translaterServiceStub.ts +0 -239
- package/test/tsconfig.json +0 -17
- package/test/vitest-global-mocks.ts +0 -41
- package/test/vitest-global-setup.ts +0 -3
- package/test/vitest-pretest.ts +0 -5
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -31
- package/tsconfig.spec.json +0 -11
- package/types/sortablejs.d.ts +0 -4
- package/vite.config.mts +0 -51
- /package/{dist/fesm2022 → fesm2022}/angular-slickgrid.mjs.map +0 -0
- /package/{dist/i18n → i18n}/en.json +0 -0
- /package/{dist/i18n → i18n}/fr.json +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/library → library}/components/angular-slickgrid.component.d.ts +0 -0
- /package/{dist/library → library}/constants.d.ts +0 -0
- /package/{dist/library → library}/extensions/index.d.ts +0 -0
- /package/{dist/library → library}/extensions/slickRowDetailView.d.ts +0 -0
- /package/{dist/library → library}/global-grid-options.d.ts +0 -0
- /package/{dist/library → library}/index.d.ts +0 -0
- /package/{dist/library → library}/models/angularComponentOutput.interface.d.ts +0 -0
- /package/{dist/library → library}/models/angularGridInstance.interface.d.ts +0 -0
- /package/{dist/library → library}/models/externalTestingDependencies.interface.d.ts +0 -0
- /package/{dist/library → library}/models/gridOption.interface.d.ts +0 -0
- /package/{dist/library → library}/models/index.d.ts +0 -0
- /package/{dist/library → library}/models/rowDetailView.interface.d.ts +0 -0
- /package/{dist/library → library}/modules/angular-slickgrid.module.d.ts +0 -0
- /package/{dist/library → library}/services/angularUtil.service.d.ts +0 -0
- /package/{dist/library → library}/services/container.service.d.ts +0 -0
- /package/{dist/library → library}/services/index.d.ts +0 -0
- /package/{dist/library → library}/services/translater.service.d.ts +0 -0
- /package/{dist/library → library}/services/utilities.d.ts +0 -0
- /package/{dist/library → library}/slickgrid-config.d.ts +0 -0
- /package/{dist/public_api.d.ts → public_api.d.ts} +0 -0
package/src/main.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
|
-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
-
|
|
4
|
-
import { AppModule } from './demos/app.module';
|
|
5
|
-
import { environment } from './demos/environments/environment';
|
|
6
|
-
|
|
7
|
-
if (environment.production) {
|
|
8
|
-
enableProdMode();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
platformBrowserDynamic()
|
|
12
|
-
.bootstrapModule(AppModule, { preserveWhitespaces: true }) // preserveWhitespaces is now default to False since Angular 6
|
|
13
|
-
.catch((err) => console.log(err));
|
package/src/public_api.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './library/index';
|
package/src/styles.scss
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
|
|
3
|
-
$primary-color: #0d6efd;
|
|
4
|
-
|
|
5
|
-
@use 'bootstrap/scss/bootstrap' with (
|
|
6
|
-
$primary: $primary-color
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
// -- 1. load with modern `@use`
|
|
10
|
-
// @use '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-bootstrap.scss';
|
|
11
|
-
@use '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-bootstrap.scss' with (
|
|
12
|
-
$slick-primary-color: $primary-color // $slick-input-focus-box-shadow: 0 0 0 0.25rem rgba($primary-color, 0.25),
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
// -- 2. load with legacy `@import`
|
|
16
|
-
// $slick-primary-color: red;
|
|
17
|
-
// $slick-link-color: red;
|
|
18
|
-
// @import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-bootstrap.scss';
|
|
19
|
-
|
|
20
|
-
:root {
|
|
21
|
-
--ms-choice-border: var(--bs-border-width) solid var(--bs-border-color);
|
|
22
|
-
// --slick-button-style-bg-color: #fff;
|
|
23
|
-
// --slick-button-border-color: #c7c7c7;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
$button-border-color: #ababab;
|
|
27
|
-
$button-style-bg-color: #fff;
|
|
28
|
-
|
|
29
|
-
.btn-group-xs > .btn,
|
|
30
|
-
.btn-xs {
|
|
31
|
-
padding: 1px 5px;
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
line-height: 1.5;
|
|
34
|
-
border-radius: 3px;
|
|
35
|
-
margin: 0;
|
|
36
|
-
font-size: 12px;
|
|
37
|
-
height: 22px;
|
|
38
|
-
vertical-align: middle;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.btn-icon {
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
gap: 4px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.gap-4px {
|
|
48
|
-
gap: 4px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.hidden {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.side-menu {
|
|
56
|
-
margin-left: 15px;
|
|
57
|
-
|
|
58
|
-
.links {
|
|
59
|
-
background-color: #f9f9f9;
|
|
60
|
-
border-right: 1px solid #d0d0d0;
|
|
61
|
-
overflow-y: auto;
|
|
62
|
-
padding: 10px;
|
|
63
|
-
li {
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.italic {
|
|
70
|
-
font-style: italic;
|
|
71
|
-
}
|
|
72
|
-
.subtitle {
|
|
73
|
-
font-size: 15px;
|
|
74
|
-
font-style: italic;
|
|
75
|
-
color: grey;
|
|
76
|
-
margin-bottom: 10px;
|
|
77
|
-
}
|
|
78
|
-
.lightblue {
|
|
79
|
-
color: lightblue;
|
|
80
|
-
}
|
|
81
|
-
.red {
|
|
82
|
-
color: red;
|
|
83
|
-
}
|
|
84
|
-
.faded {
|
|
85
|
-
opacity: 0.7;
|
|
86
|
-
}
|
|
87
|
-
.faded:hover {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
}
|
|
90
|
-
.pointer {
|
|
91
|
-
cursor: pointer !important;
|
|
92
|
-
}
|
|
93
|
-
.padding10 {
|
|
94
|
-
padding: 10px !important;
|
|
95
|
-
}
|
|
96
|
-
.text-danger {
|
|
97
|
-
color: red !important;
|
|
98
|
-
}
|
|
99
|
-
.mdi-pencil.pointer:hover {
|
|
100
|
-
color: #00bfff;
|
|
101
|
-
}
|
|
102
|
-
.mdi-trash-can.pointer:hover {
|
|
103
|
-
color: #ff002b;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.github-button-container {
|
|
107
|
-
position: relative;
|
|
108
|
-
top: -2px;
|
|
109
|
-
margin-left: 5px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.slick-dark-mode {
|
|
113
|
-
--slick-button-style-bg-color: #212121;
|
|
114
|
-
--slick-button-border-color: #626262;
|
|
115
|
-
.text-primary {
|
|
116
|
-
color: #599bfe !important;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
.button-style {
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
background-color: var(--slick-button-style-bg-color, $button-style-bg-color);
|
|
122
|
-
border: 1px solid #{var(--slick-button-border-color, $button-border-color)};
|
|
123
|
-
border-radius: 2px;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
text-align: center;
|
|
126
|
-
&:hover {
|
|
127
|
-
border-color: color.adjust($button-border-color, $lightness: 10%);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.panel-wm-content {
|
|
132
|
-
background-color: #fff;
|
|
133
|
-
/* the height is 100% minus the 2 navbars */
|
|
134
|
-
height: calc(100vh - 56px);
|
|
135
|
-
padding: 0 20px;
|
|
136
|
-
|
|
137
|
-
#demo-container {
|
|
138
|
-
padding-bottom: 15px;
|
|
139
|
-
}
|
|
140
|
-
h3 {
|
|
141
|
-
color: #333;
|
|
142
|
-
}
|
|
143
|
-
.subtitle {
|
|
144
|
-
color: #727272;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
.panel-wm-content.dark-mode {
|
|
148
|
-
background-color: #212529;
|
|
149
|
-
color: #dddddd;
|
|
150
|
-
h3 {
|
|
151
|
-
color: #dddddd;
|
|
152
|
-
}
|
|
153
|
-
.subtitle {
|
|
154
|
-
color: #cbcbcb;
|
|
155
|
-
}
|
|
156
|
-
.btn-outline-secondary {
|
|
157
|
-
color: #dfdfdf;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* editable field with outline border */
|
|
162
|
-
.slick-cell .editing-field,
|
|
163
|
-
.slick-cell.selected .editing-field {
|
|
164
|
-
border: 1px solid #dddbda;
|
|
165
|
-
padding: 3px 5px 3px 4px;
|
|
166
|
-
margin: -2px;
|
|
167
|
-
height: calc(100% + 4px);
|
|
168
|
-
border-radius: 3px;
|
|
169
|
-
background-color: #ffffff;
|
|
170
|
-
cursor: pointer;
|
|
171
|
-
white-space: nowrap;
|
|
172
|
-
overflow: hidden;
|
|
173
|
-
text-overflow: ellipsis;
|
|
174
|
-
|
|
175
|
-
&:hover {
|
|
176
|
-
border: 1px solid #adadad;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
describe('Example 1 - Basic Grids', () => {
|
|
2
|
-
const fullTitles = ['Title', 'Duration (days)', '% Complete', 'Start', 'Finish', 'Effort Driven'];
|
|
3
|
-
|
|
4
|
-
it('should display Example title', () => {
|
|
5
|
-
cy.visit(`${Cypress.config('baseUrl')}/example01`);
|
|
6
|
-
cy.get('h2').should('contain', 'Example 1: Basic Grids');
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
it('should have 2 grids of size 800 by 225px', () => {
|
|
10
|
-
cy.get('#slickGridContainer-grid1').should('have.css', 'width', '800px');
|
|
11
|
-
|
|
12
|
-
cy.get('#slickGridContainer-grid1 > .slickgrid-container').should(($el) => expect(parseInt(`${$el.height()}`, 10)).to.eq(225));
|
|
13
|
-
|
|
14
|
-
cy.get('#slickGridContainer-grid2').should('have.css', 'width', '800px');
|
|
15
|
-
|
|
16
|
-
cy.get('#slickGridContainer-grid2 > .slickgrid-container').should(($el) => expect(parseInt(`${$el.height()}`, 10)).to.eq(225));
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should have exact column titles on 1st grid', () => {
|
|
20
|
-
cy.get('#slickGridContainer-grid1')
|
|
21
|
-
.find('.slick-header-columns')
|
|
22
|
-
.children()
|
|
23
|
-
.each(($child, index) => expect($child.text()).to.eq(fullTitles[index]));
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it('should hover over the Title column and click on "Sort Descending" command', () => {
|
|
27
|
-
cy.get('#slickGridContainer-grid1')
|
|
28
|
-
.find('.slick-header-column')
|
|
29
|
-
.first()
|
|
30
|
-
.trigger('mouseover')
|
|
31
|
-
.children('.slick-header-menu-button')
|
|
32
|
-
.should('be.hidden')
|
|
33
|
-
.invoke('show')
|
|
34
|
-
.click();
|
|
35
|
-
|
|
36
|
-
cy.get('.slick-header-menu .slick-menu-command-list')
|
|
37
|
-
.should('be.visible')
|
|
38
|
-
.children('.slick-menu-item:nth-of-type(4)')
|
|
39
|
-
.children('.slick-menu-content')
|
|
40
|
-
.should('contain', 'Sort Descending')
|
|
41
|
-
.click();
|
|
42
|
-
|
|
43
|
-
cy.get('.slick-row').first().children('.slick-cell').first().should('contain', 'Task 994');
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
it('should hover over the "Title" column of 2nd grid and click on "Sort Ascending" command', () => {
|
|
47
|
-
const tasks = ['Task 0', 'Task 1', 'Task 10', 'Task 100', 'Task 101'];
|
|
48
|
-
|
|
49
|
-
cy.get('#grid2').find('.slick-header-column').first().trigger('mouseover').children('.slick-header-menu-button').invoke('show').click();
|
|
50
|
-
|
|
51
|
-
cy.get('.slick-header-menu .slick-menu-command-list')
|
|
52
|
-
.should('be.visible')
|
|
53
|
-
.children('.slick-menu-item:nth-of-type(3)')
|
|
54
|
-
.children('.slick-menu-content')
|
|
55
|
-
.should('contain', 'Sort Ascending')
|
|
56
|
-
.click();
|
|
57
|
-
|
|
58
|
-
cy.get('#grid2')
|
|
59
|
-
.find('.slick-row')
|
|
60
|
-
.each(($row, index) => {
|
|
61
|
-
if (index > tasks.length - 1) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
cy.wrap($row).children('.slick-cell').first().should('contain', tasks[index]);
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it('should hover over the "Duration" column of 2nd grid, Sort Ascending and have 2 sorts', () => {
|
|
69
|
-
cy.get('#grid2')
|
|
70
|
-
.find('.slick-header-column:nth-of-type(2)')
|
|
71
|
-
.trigger('mouseover')
|
|
72
|
-
.children('.slick-header-menu-button')
|
|
73
|
-
.invoke('show')
|
|
74
|
-
.click();
|
|
75
|
-
|
|
76
|
-
cy.get('#grid2')
|
|
77
|
-
.find('.slick-header-menu .slick-menu-command-list')
|
|
78
|
-
.should('be.visible')
|
|
79
|
-
.children('.slick-menu-item:nth-of-type(4)')
|
|
80
|
-
.click();
|
|
81
|
-
|
|
82
|
-
cy.get('#grid2').find('.slick-sort-indicator-asc').should('have.length', 1).siblings('.slick-sort-indicator-numbered').contains('1');
|
|
83
|
-
|
|
84
|
-
cy.get('#grid2').find('.slick-sort-indicator-desc').should('have.length', 1).siblings('.slick-sort-indicator-numbered').contains('2');
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
it('should clear sorting of grid2 using the Grid Menu "Clear all Sorting" command', () => {
|
|
88
|
-
cy.get('#grid2').find('button.slick-grid-menu-button').trigger('click').click();
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
it('should have no sorting in 2nd grid (back to default sorted by id)', () => {
|
|
92
|
-
let gridUid = '';
|
|
93
|
-
const grid2Tasks = ['Task 0', 'Task 1', 'Task 2', 'Task 3', 'Task 4'];
|
|
94
|
-
|
|
95
|
-
cy.get('#grid2')
|
|
96
|
-
.should(($grid) => {
|
|
97
|
-
const classes = $grid.prop('className').split(' ');
|
|
98
|
-
gridUid = classes.find((className: string) => /slickgrid_.*/.test(className));
|
|
99
|
-
expect(gridUid).to.not.be.null;
|
|
100
|
-
})
|
|
101
|
-
.then(() => {
|
|
102
|
-
cy.get(`.slick-grid-menu.${gridUid}`).find('.slick-menu-item').first().find('span').contains('Clear all Sorting').click();
|
|
103
|
-
|
|
104
|
-
cy.get('#grid2').find('.slick-sort-indicator-asc').should('have.length', 0);
|
|
105
|
-
|
|
106
|
-
cy.get('#grid2').find('.slick-sort-indicator-desc').should('have.length', 0);
|
|
107
|
-
|
|
108
|
-
cy.get('#grid2')
|
|
109
|
-
.find('.slick-row')
|
|
110
|
-
.each(($row, index) => {
|
|
111
|
-
if (index > grid2Tasks.length - 1) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
cy.wrap($row).children('.slick-cell').first().should('contain', grid2Tasks[index]);
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
it('should retain sorting in 1st grid', () => {
|
|
120
|
-
cy.get('#grid1').find('.slick-sort-indicator-desc').should('have.length', 1);
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
it('should have Pagination displayed and set on Grid2', () => {
|
|
124
|
-
cy.get('[data-test=page-number-input]')
|
|
125
|
-
.invoke('val')
|
|
126
|
-
.then((pageNumber) => expect(pageNumber).to.eq('1'));
|
|
127
|
-
|
|
128
|
-
cy.get('[data-test=page-count]').contains('199');
|
|
129
|
-
|
|
130
|
-
cy.get('[data-test=item-from]').contains('1');
|
|
131
|
-
|
|
132
|
-
cy.get('[data-test=item-to]').contains('5');
|
|
133
|
-
|
|
134
|
-
cy.get('[data-test=total-items]').contains('995');
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
it('should change Page Number 52 and expect the Pagination to have correct values', () => {
|
|
138
|
-
cy.get('[data-test=page-number-input]').clear().type('52').type('{enter}');
|
|
139
|
-
|
|
140
|
-
cy.get('[data-test=page-count]').contains('199');
|
|
141
|
-
|
|
142
|
-
cy.get('[data-test=item-from]').contains('256');
|
|
143
|
-
|
|
144
|
-
cy.get('[data-test=item-to]').contains('260');
|
|
145
|
-
|
|
146
|
-
cy.get('[data-test=total-items]').contains('995');
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
it('should open the Grid Menu on 1st Grid and expect all Columns to be checked', () => {
|
|
150
|
-
let gridUid = '';
|
|
151
|
-
cy.get('#grid1').find('button.slick-grid-menu-button').click({ force: true });
|
|
152
|
-
|
|
153
|
-
cy.get('#grid1')
|
|
154
|
-
.should(($grid) => {
|
|
155
|
-
const classes = $grid.prop('className').split(' ');
|
|
156
|
-
gridUid = classes.find((className: string) => /slickgrid_.*/.test(className));
|
|
157
|
-
expect(gridUid).to.not.be.null;
|
|
158
|
-
})
|
|
159
|
-
.then(() => {
|
|
160
|
-
cy.get(`.slick-grid-menu.${gridUid}`)
|
|
161
|
-
.find('.slick-column-picker-list')
|
|
162
|
-
.children('li')
|
|
163
|
-
.each(($child, index) => {
|
|
164
|
-
if (index <= 5) {
|
|
165
|
-
const $input = $child.find('input');
|
|
166
|
-
const $label = $child.find('span.checkbox-label');
|
|
167
|
-
expect($input.prop('checked')).to.eq(true);
|
|
168
|
-
expect($label.text()).to.eq(fullTitles[index]);
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
it('should then hide "Title" column from same 1st Grid and expect the column to be removed from 1st Grid', () => {
|
|
175
|
-
const newColumnList = ['Duration (days)', '% Complete', 'Start', 'Finish', 'Effort Driven'];
|
|
176
|
-
cy.get('#grid1')
|
|
177
|
-
.get('.slick-grid-menu:visible')
|
|
178
|
-
.find('.slick-column-picker-list')
|
|
179
|
-
.children('li:visible:nth(0)')
|
|
180
|
-
.children('label')
|
|
181
|
-
.should('contain', 'Title')
|
|
182
|
-
.click({ force: true });
|
|
183
|
-
|
|
184
|
-
cy.get('#grid1').get('.slick-grid-menu:visible').find('.close').click({ force: true });
|
|
185
|
-
|
|
186
|
-
cy.get('#grid1')
|
|
187
|
-
.find('.slick-header-columns')
|
|
188
|
-
.children()
|
|
189
|
-
.each(($child, index) => expect($child.text()).to.eq(newColumnList[index]));
|
|
190
|
-
});
|
|
191
|
-
|
|
192
|
-
it('should open the Grid Menu off 2nd Grid and expect all Columns to still be all checked', () => {
|
|
193
|
-
let gridUid = '';
|
|
194
|
-
cy.get('#grid2').find('button.slick-grid-menu-button').click({ force: true });
|
|
195
|
-
|
|
196
|
-
cy.get('#grid2')
|
|
197
|
-
.should(($grid) => {
|
|
198
|
-
const classes = $grid.prop('className').split(' ');
|
|
199
|
-
gridUid = classes.find((className: string) => /slickgrid_.*/.test(className));
|
|
200
|
-
expect(gridUid).to.not.be.null;
|
|
201
|
-
})
|
|
202
|
-
.then(() => {
|
|
203
|
-
cy.get(`.slick-grid-menu.${gridUid}`)
|
|
204
|
-
.find('.slick-column-picker-list')
|
|
205
|
-
.children('li')
|
|
206
|
-
.each(($child, index) => {
|
|
207
|
-
if (index <= 5) {
|
|
208
|
-
const $input = $child.find('input');
|
|
209
|
-
const $label = $child.find('span.checkbox-label');
|
|
210
|
-
expect($input.prop('checked')).to.eq(true);
|
|
211
|
-
expect($label.text()).to.eq(fullTitles[index]);
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
it('should then hide "% Complete" column from this same 2nd Grid and expect the column to be removed from 2nd Grid', () => {
|
|
218
|
-
const newColumnList = ['Title', 'Duration (days)', 'Start', 'Finish', 'Effort Driven'];
|
|
219
|
-
cy.get('#grid2')
|
|
220
|
-
.get('.slick-grid-menu:visible')
|
|
221
|
-
.find('.slick-column-picker-list')
|
|
222
|
-
.children('li:visible:nth(2)')
|
|
223
|
-
.children('label')
|
|
224
|
-
.should('contain', '% Complete')
|
|
225
|
-
.click({ force: true });
|
|
226
|
-
|
|
227
|
-
cy.get('#grid2').get('.slick-grid-menu:visible').find('.close').click({ force: true });
|
|
228
|
-
|
|
229
|
-
cy.get('#grid2')
|
|
230
|
-
.find('.slick-header-columns')
|
|
231
|
-
.children()
|
|
232
|
-
.each(($child, index) => expect($child.text()).to.eq(newColumnList[index]));
|
|
233
|
-
});
|
|
234
|
-
|
|
235
|
-
it('should go back to 1st Grid and open its Grid Menu and we expect this grid to stil have the "Title" column be hidden (unchecked)', () => {
|
|
236
|
-
cy.get('#grid1').find('button.slick-grid-menu-button').click({ force: true });
|
|
237
|
-
|
|
238
|
-
cy.get('.slick-column-picker-list')
|
|
239
|
-
.children('li')
|
|
240
|
-
.each(($child, index) => {
|
|
241
|
-
if (index <= 5) {
|
|
242
|
-
const $input = $child.find('input');
|
|
243
|
-
const $label = $child.find('span.checkbox-label');
|
|
244
|
-
if ($label.text() === 'Title') {
|
|
245
|
-
expect($input.attr('checked')).to.eq(undefined);
|
|
246
|
-
} else {
|
|
247
|
-
expect($input.prop('checked')).to.eq(true);
|
|
248
|
-
}
|
|
249
|
-
expect($label.text()).to.eq(fullTitles[index]);
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
it('should hide "Start" column from 1st Grid and expect to have 2 hidden columns (Title, Start)', () => {
|
|
255
|
-
const newColumnList = ['Duration (days)', '% Complete', 'Finish', 'Effort Driven'];
|
|
256
|
-
cy.get('#grid1')
|
|
257
|
-
.get('.slick-grid-menu:visible')
|
|
258
|
-
.find('.slick-column-picker-list')
|
|
259
|
-
.children('li:visible:nth(3)')
|
|
260
|
-
.children('label')
|
|
261
|
-
.should('contain', 'Start')
|
|
262
|
-
.click({ force: true });
|
|
263
|
-
|
|
264
|
-
cy.get('#grid1').get('.slick-grid-menu:visible').find('.close').click({ force: true });
|
|
265
|
-
|
|
266
|
-
cy.get('#grid1')
|
|
267
|
-
.find('.slick-header-columns')
|
|
268
|
-
.children()
|
|
269
|
-
.each(($child, index) => expect($child.text()).to.eq(newColumnList[index]));
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
it('should open Column Picker of 2nd Grid and show the "% Complete" column back to visible', () => {
|
|
273
|
-
cy.get('#grid2').find('.slick-header-column').first().trigger('mouseover').trigger('contextmenu').invoke('show');
|
|
274
|
-
|
|
275
|
-
cy.get('.slick-column-picker')
|
|
276
|
-
.find('.slick-column-picker-list')
|
|
277
|
-
.children()
|
|
278
|
-
.each(($child, index) => {
|
|
279
|
-
if (index <= 5) {
|
|
280
|
-
expect($child.text()).to.eq(fullTitles[index]);
|
|
281
|
-
}
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
cy.get('.slick-column-picker')
|
|
285
|
-
.find('.slick-column-picker-list')
|
|
286
|
-
.children('li:nth-of-type(3)')
|
|
287
|
-
.children('label')
|
|
288
|
-
.should('contain', '% Complete')
|
|
289
|
-
.click();
|
|
290
|
-
|
|
291
|
-
cy.get('#grid2')
|
|
292
|
-
.find('.slick-header-columns')
|
|
293
|
-
.children()
|
|
294
|
-
.each(($child, index) => {
|
|
295
|
-
if (index <= 5) {
|
|
296
|
-
expect($child.text()).to.eq(fullTitles[index]);
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
|
|
300
|
-
cy.get('#grid2').get('.slick-column-picker:visible').find('.close').trigger('click').click();
|
|
301
|
-
});
|
|
302
|
-
|
|
303
|
-
it('should open the Grid Menu on 2nd Grid and expect all Columns to be checked', () => {
|
|
304
|
-
let gridUid = '';
|
|
305
|
-
cy.get('#grid2').find('button.slick-grid-menu-button').click({ force: true });
|
|
306
|
-
|
|
307
|
-
cy.get('#grid2')
|
|
308
|
-
.should(($grid) => {
|
|
309
|
-
const classes = $grid.prop('className').split(' ');
|
|
310
|
-
gridUid = classes.find((className: string) => /slickgrid_.*/.test(className));
|
|
311
|
-
expect(gridUid).to.not.be.null;
|
|
312
|
-
})
|
|
313
|
-
.then(() => {
|
|
314
|
-
cy.get(`.slick-grid-menu.${gridUid}`)
|
|
315
|
-
.find('.slick-column-picker-list')
|
|
316
|
-
.children('li')
|
|
317
|
-
.each(($child, index) => {
|
|
318
|
-
if (index <= 5) {
|
|
319
|
-
const $input = $child.find('input');
|
|
320
|
-
const $label = $child.find('span.checkbox-label');
|
|
321
|
-
expect($input.prop('checked')).to.eq(true);
|
|
322
|
-
expect($label.text()).to.eq(fullTitles[index]);
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
|
|
328
|
-
it('should still expect 1st Grid to be unchanged from previous state and still have only 4 columns shown', () => {
|
|
329
|
-
const newColumnList = ['Duration (days)', '% Complete', 'Finish', 'Effort Driven'];
|
|
330
|
-
|
|
331
|
-
cy.get('#grid1')
|
|
332
|
-
.find('.slick-header-columns')
|
|
333
|
-
.children()
|
|
334
|
-
.each(($child, index) => expect($child.text()).to.eq(newColumnList[index]));
|
|
335
|
-
});
|
|
336
|
-
|
|
337
|
-
it('should open the Grid Menu on 1st Grid and also expect to only have 4 columns checked (visible)', () => {
|
|
338
|
-
let gridUid = '';
|
|
339
|
-
cy.get('#grid1').find('button.slick-grid-menu-button').click({ force: true });
|
|
340
|
-
|
|
341
|
-
cy.get('#grid1')
|
|
342
|
-
.should(($grid) => {
|
|
343
|
-
const classes = $grid.prop('className').split(' ');
|
|
344
|
-
gridUid = classes.find((className: string) => /slickgrid_.*/.test(className));
|
|
345
|
-
expect(gridUid).to.not.be.null;
|
|
346
|
-
})
|
|
347
|
-
.then(() => {
|
|
348
|
-
cy.get(`.slick-grid-menu.${gridUid}`)
|
|
349
|
-
.find('.slick-column-picker-list')
|
|
350
|
-
.children('li')
|
|
351
|
-
.each(($child, index) => {
|
|
352
|
-
if (index <= 5) {
|
|
353
|
-
const $input = $child.find('input');
|
|
354
|
-
const $label = $child.find('span.checkbox-label');
|
|
355
|
-
if ($label.text() === 'Title' || $label.text() === 'Start') {
|
|
356
|
-
expect($input.attr('checked')).to.eq(undefined);
|
|
357
|
-
} else {
|
|
358
|
-
expect($input.prop('checked')).to.eq(true);
|
|
359
|
-
}
|
|
360
|
-
expect($label.text()).to.eq(fullTitles[index]);
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
cy.get('#grid1').get('.slick-grid-menu:visible').find('.close').click({ force: true });
|
|
366
|
-
});
|
|
367
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { removeExtraSpaces } from '../plugins/utilities';
|
|
2
|
-
|
|
3
|
-
describe('Example 2 - Grid with Formatters', () => {
|
|
4
|
-
const GRID_ROW_HEIGHT = 35;
|
|
5
|
-
|
|
6
|
-
it('should display Example title', () => {
|
|
7
|
-
cy.visit(`${Cypress.config('baseUrl')}/example02`);
|
|
8
|
-
cy.get('h2').should('contain', 'Example 2: Grid with Formatters');
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
it('should show a custom text in the grid footer left portion', () => {
|
|
12
|
-
cy.get('#slickGridContainer-grid2').find('.slick-custom-footer').find('.left-footer').contains('custom footer text');
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('should have some metrics shown in the grid footer', () => {
|
|
16
|
-
cy.get('#slickGridContainer-grid2')
|
|
17
|
-
.find('.slick-custom-footer')
|
|
18
|
-
.find('.right-footer')
|
|
19
|
-
.should(($span) => {
|
|
20
|
-
const text = removeExtraSpaces($span.text()); // remove all white spaces
|
|
21
|
-
expect(text).to.eq('500 items');
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('should expect "Effort Driven" 1st cell to include fire icon', () => {
|
|
26
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(7)`)
|
|
27
|
-
.find('.mdi.mdi-fire.red')
|
|
28
|
-
.should('have.length', 1);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('should expect "Effort Driven" 2nd cell to include a snowflake icon', () => {
|
|
32
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 1}px);"] > .slick-cell:nth(7)`)
|
|
33
|
-
.find('.mdi.mdi-snowflake')
|
|
34
|
-
.should('have.length', 1);
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('should click on a "Completed" cell and expect it to toggle to checked', () => {
|
|
38
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(8)`)
|
|
39
|
-
.find('.mdi.mdi-circle')
|
|
40
|
-
.should('have.length', 1);
|
|
41
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(8)`).click();
|
|
42
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(8)`)
|
|
43
|
-
.find('.mdi.mdi-circle')
|
|
44
|
-
.should('have.length', 0);
|
|
45
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(8)`)
|
|
46
|
-
.find('.mdi.mdi-check-circle')
|
|
47
|
-
.should('have.length', 1);
|
|
48
|
-
|
|
49
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 1}px);"] > .slick-cell:nth(8)`)
|
|
50
|
-
.find('.mdi.mdi-circle')
|
|
51
|
-
.should('have.length', 1);
|
|
52
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 1}px);"] > .slick-cell:nth(8)`).click();
|
|
53
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 1}px);"] > .slick-cell:nth(8)`)
|
|
54
|
-
.find('.mdi.mdi-circle')
|
|
55
|
-
.should('have.length', 0);
|
|
56
|
-
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 1}px);"] > .slick-cell:nth(8)`)
|
|
57
|
-
.find('.mdi.mdi-check-circle')
|
|
58
|
-
.should('have.length', 1);
|
|
59
|
-
});
|
|
60
|
-
});
|