angular-slickgrid 4.2.0 → 4.2.3
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 +20 -20
- package/{dist/app → app}/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +2 -2
- package/{dist/app → app}/modules/angular-slickgrid/constants.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/extensions/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/extensions/slickRowDetailView.d.ts +0 -2
- package/{dist/app → app}/modules/angular-slickgrid/global-grid-options.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/angularComponentOutput.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/angularGridInstance.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/externalTestingDependencies.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/gridOption.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/rowDetailView.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/slickGrid.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/modules/angular-slickgrid.module.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/angularUtil.service.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/bsDropdown.service.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/container.service.d.ts +1 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/translater.service.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/utilities.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/slickgrid-config.d.ts +0 -0
- package/docs/assets/lib/multiple-select/README.md +17 -0
- package/{dist/esm2020 → esm2020}/angular-slickgrid.mjs +0 -0
- package/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +1170 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/constants.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/extensions/index.mjs +1 -1
- package/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +298 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/index.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs +1 -1
- package/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +2 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/models/index.mjs +1 -1
- package/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +43 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/angularUtil.service.mjs +4 -4
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/bsDropdown.service.mjs +4 -4
- package/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +29 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/index.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/translater.service.mjs +4 -4
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/utilities.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
- package/{dist/esm2020 → esm2020}/public_api.mjs +1 -1
- package/{dist/fesm2015 → fesm2015}/angular-slickgrid.mjs +48 -51
- package/fesm2015/angular-slickgrid.mjs.map +1 -0
- package/{dist/fesm2020 → fesm2020}/angular-slickgrid.mjs +48 -51
- package/fesm2020/angular-slickgrid.mjs.map +1 -0
- package/{dist/i18n → i18n}/en.json +89 -89
- package/{dist/i18n → i18n}/fr.json +90 -90
- package/{dist/angular-slickgrid.d.ts → index.d.ts} +0 -0
- package/package.json +33 -118
- package/{dist/public_api.d.ts → public_api.d.ts} +0 -0
- package/test/cypress/node_modules/@cypress/request/README.md +1038 -0
- package/test/cypress/node_modules/@cypress/xvfb/README.md +48 -0
- package/test/cypress/node_modules/@cypress/xvfb/node_modules/debug/README.md +437 -0
- package/test/cypress/node_modules/@types/node/README.md +16 -0
- package/test/cypress/node_modules/@types/sinonjs__fake-timers/README.md +16 -0
- package/test/cypress/node_modules/@types/sizzle/README.md +16 -0
- package/test/cypress/node_modules/@types/yauzl/README.md +16 -0
- package/test/cypress/node_modules/@types/yauzl/node_modules/@types/node/README.md +16 -0
- package/test/cypress/node_modules/aggregate-error/README.md +61 -0
- package/test/cypress/node_modules/ansi-colors/README.md +315 -0
- package/test/cypress/node_modules/ansi-escapes/README.md +245 -0
- package/test/cypress/node_modules/ansi-regex/README.md +78 -0
- package/test/cypress/node_modules/ansi-styles/README.md +152 -0
- package/test/cypress/node_modules/arch/README.md +71 -0
- package/test/cypress/node_modules/asn1/README.md +50 -0
- package/test/cypress/node_modules/assert-plus/README.md +162 -0
- package/test/cypress/node_modules/astral-regex/README.md +46 -0
- package/test/cypress/node_modules/async/README.md +60 -0
- package/test/cypress/node_modules/asynckit/README.md +233 -0
- package/test/cypress/node_modules/at-least-node/README.md +25 -0
- package/test/cypress/node_modules/aws-sign2/README.md +4 -0
- package/test/cypress/node_modules/aws4/README.md +183 -0
- package/test/cypress/node_modules/balanced-match/README.md +91 -0
- package/test/cypress/node_modules/base64-js/README.md +34 -0
- package/test/cypress/node_modules/bcrypt-pbkdf/README.md +45 -0
- package/test/cypress/node_modules/blob-util/README.md +623 -0
- package/test/cypress/node_modules/bluebird/README.md +57 -0
- package/test/cypress/node_modules/brace-expansion/README.md +129 -0
- package/test/cypress/node_modules/buffer/README.md +410 -0
- package/test/cypress/node_modules/buffer-crc32/README.md +47 -0
- package/test/cypress/node_modules/cachedir/README.md +27 -0
- package/test/cypress/node_modules/caseless/README.md +45 -0
- package/test/cypress/node_modules/chalk/README.md +293 -0
- package/test/cypress/node_modules/chalk/node_modules/supports-color/README.md +76 -0
- package/test/cypress/node_modules/check-more-types/README.md +952 -0
- package/test/cypress/node_modules/ci-info/README.md +114 -0
- package/test/cypress/node_modules/clean-stack/README.md +76 -0
- package/test/cypress/node_modules/cli-cursor/README.md +55 -0
- package/test/cypress/node_modules/cli-table3/README.md +218 -0
- package/test/cypress/node_modules/cli-truncate/README.md +139 -0
- package/test/cypress/node_modules/color-convert/README.md +68 -0
- package/test/cypress/node_modules/color-name/README.md +11 -0
- package/test/cypress/node_modules/colorette/README.md +102 -0
- package/test/cypress/node_modules/colors/README.md +221 -0
- package/test/cypress/node_modules/combined-stream/README.md +138 -0
- package/test/cypress/node_modules/commander/README.md +737 -0
- package/test/cypress/node_modules/common-tags/README.md +687 -0
- package/test/cypress/node_modules/core-util-is/README.md +3 -0
- package/test/cypress/node_modules/cross-spawn/README.md +96 -0
- package/test/cypress/node_modules/cypress/README.md +25 -0
- package/test/cypress/node_modules/cypress/mount-utils/README.md +14 -0
- package/test/cypress/node_modules/cypress/react/README.md +414 -0
- package/test/cypress/node_modules/cypress/vue/README.md +678 -0
- package/test/cypress/node_modules/cypress/vue2/README.md +693 -0
- package/test/cypress/node_modules/dashdash/README.md +574 -0
- package/test/cypress/node_modules/dayjs/README.md +128 -0
- package/test/cypress/node_modules/debug/README.md +455 -0
- package/test/cypress/node_modules/delayed-stream/README.md +141 -0
- package/test/cypress/node_modules/ecc-jsbn/README.md +8 -0
- package/test/cypress/node_modules/emoji-regex/README.md +73 -0
- package/test/cypress/node_modules/end-of-stream/README.md +54 -0
- package/test/cypress/node_modules/enquirer/README.md +1752 -0
- package/test/cypress/node_modules/escape-string-regexp/README.md +27 -0
- package/test/cypress/node_modules/eventemitter2/README.md +809 -0
- package/test/cypress/node_modules/execa/README.md +656 -0
- package/test/cypress/node_modules/executable/README.md +64 -0
- package/test/cypress/node_modules/extend/README.md +81 -0
- package/test/cypress/node_modules/extract-zip/README.md +57 -0
- package/test/cypress/node_modules/extract-zip/node_modules/debug/README.md +455 -0
- package/test/cypress/node_modules/extsprintf/README.md +46 -0
- package/test/cypress/node_modules/fd-slicer/README.md +199 -0
- package/test/cypress/node_modules/figures/README.md +139 -0
- package/test/cypress/node_modules/forever-agent/README.md +4 -0
- package/test/cypress/node_modules/form-data/README.md +234 -0
- package/test/cypress/node_modules/fs-extra/README.md +264 -0
- package/test/cypress/node_modules/fs.realpath/README.md +33 -0
- package/test/cypress/node_modules/get-stream/README.md +124 -0
- package/test/cypress/node_modules/getos/README.md +79 -0
- package/test/cypress/node_modules/getpass/README.md +32 -0
- package/test/cypress/node_modules/glob/README.md +375 -0
- package/test/cypress/node_modules/global-dirs/README.md +72 -0
- package/test/cypress/node_modules/graceful-fs/README.md +133 -0
- package/test/cypress/node_modules/has-flag/README.md +89 -0
- package/test/cypress/node_modules/http-signature/README.md +80 -0
- package/test/cypress/node_modules/human-signals/README.md +155 -0
- package/test/cypress/node_modules/ieee754/README.md +51 -0
- package/test/cypress/node_modules/indent-string/README.md +70 -0
- package/test/cypress/node_modules/inflight/README.md +37 -0
- package/test/cypress/node_modules/inherits/README.md +42 -0
- package/test/cypress/node_modules/ini/README.md +102 -0
- package/test/cypress/node_modules/is-ci/README.md +50 -0
- package/test/cypress/node_modules/is-fullwidth-code-point/README.md +39 -0
- package/test/cypress/node_modules/is-installed-globally/README.md +31 -0
- package/test/cypress/node_modules/is-path-inside/README.md +63 -0
- package/test/cypress/node_modules/is-stream/README.md +57 -0
- package/test/cypress/node_modules/is-typedarray/README.md +16 -0
- package/test/cypress/node_modules/isexe/README.md +51 -0
- package/test/cypress/node_modules/isstream/README.md +66 -0
- package/test/cypress/node_modules/jsbn/README.md +175 -0
- package/test/cypress/node_modules/json-schema/README.md +3 -0
- package/test/cypress/node_modules/json-stringify-safe/README.md +52 -0
- package/test/cypress/node_modules/jsonfile/README.md +205 -0
- package/test/cypress/node_modules/jsonfile/node_modules/universalify/README.md +76 -0
- package/test/cypress/node_modules/jsprim/README.md +287 -0
- package/test/cypress/node_modules/lazy-ass/README.md +269 -0
- package/test/cypress/node_modules/listr2/README.md +17 -0
- package/test/cypress/node_modules/lodash/README.md +39 -0
- package/test/cypress/node_modules/lodash.once/README.md +18 -0
- package/test/cypress/node_modules/log-symbols/README.md +51 -0
- package/test/cypress/node_modules/log-update/README.md +97 -0
- package/test/cypress/node_modules/log-update/node_modules/slice-ansi/README.md +66 -0
- package/test/cypress/node_modules/log-update/node_modules/wrap-ansi/README.md +97 -0
- package/test/cypress/node_modules/lru-cache/README.md +166 -0
- package/test/cypress/node_modules/merge-stream/README.md +78 -0
- package/test/cypress/node_modules/mime-db/README.md +102 -0
- package/test/cypress/node_modules/mime-types/README.md +123 -0
- package/test/cypress/node_modules/mimic-fn/README.md +69 -0
- package/test/cypress/node_modules/minimatch/README.md +209 -0
- package/test/cypress/node_modules/ms/README.md +60 -0
- package/test/cypress/node_modules/npm-run-path/README.md +115 -0
- package/test/cypress/node_modules/once/README.md +79 -0
- package/test/cypress/node_modules/onetime/README.md +94 -0
- package/test/cypress/node_modules/ospath/README.md +53 -0
- package/test/cypress/node_modules/p-map/README.md +89 -0
- package/test/cypress/node_modules/path-is-absolute/README.md +59 -0
- package/test/cypress/node_modules/path-key/README.md +61 -0
- package/test/cypress/node_modules/pend/README.md +41 -0
- package/test/cypress/node_modules/performance-now/README.md +30 -0
- package/test/cypress/node_modules/pify/README.md +119 -0
- package/test/cypress/node_modules/pretty-bytes/README.md +131 -0
- package/test/cypress/node_modules/proxy-from-env/README.md +131 -0
- package/test/cypress/node_modules/psl/README.md +215 -0
- package/test/cypress/node_modules/pump/README.md +65 -0
- package/test/cypress/node_modules/punycode/README.md +122 -0
- package/test/cypress/node_modules/qs/README.md +475 -0
- package/test/cypress/node_modules/request-progress/README.md +78 -0
- package/test/cypress/node_modules/restore-cursor/README.md +26 -0
- package/test/cypress/node_modules/rimraf/README.md +101 -0
- package/test/cypress/node_modules/rxjs/README.md +147 -0
- package/test/cypress/node_modules/rxjs/_esm2015/README.md +147 -0
- package/test/cypress/node_modules/rxjs/_esm5/README.md +147 -0
- package/test/cypress/node_modules/rxjs/src/README.md +147 -0
- package/test/cypress/node_modules/safe-buffer/README.md +584 -0
- package/test/cypress/node_modules/safer-buffer/README.md +156 -0
- package/test/cypress/node_modules/semver/README.md +566 -0
- package/test/cypress/node_modules/shebang-command/README.md +34 -0
- package/test/cypress/node_modules/shebang-regex/README.md +33 -0
- package/test/cypress/node_modules/signal-exit/README.md +39 -0
- package/test/cypress/node_modules/slice-ansi/README.md +72 -0
- package/test/cypress/node_modules/sshpk/README.md +804 -0
- package/test/cypress/node_modules/string-width/README.md +50 -0
- package/test/cypress/node_modules/strip-ansi/README.md +46 -0
- package/test/cypress/node_modules/strip-final-newline/README.md +30 -0
- package/test/cypress/node_modules/supports-color/README.md +77 -0
- package/test/cypress/node_modules/throttleit/README.md +32 -0
- package/test/cypress/node_modules/tmp/README.md +365 -0
- package/test/cypress/node_modules/tough-cookie/README.md +527 -0
- package/test/cypress/node_modules/tslib/README.md +142 -0
- package/test/cypress/node_modules/tunnel-agent/README.md +4 -0
- package/test/cypress/node_modules/tweetnacl/README.md +459 -0
- package/test/cypress/node_modules/type-fest/README.md +760 -0
- package/test/cypress/node_modules/universalify/README.md +76 -0
- package/test/cypress/node_modules/untildify/README.md +30 -0
- package/test/cypress/node_modules/uuid/README.md +505 -0
- package/test/cypress/node_modules/verror/README.md +528 -0
- package/test/cypress/node_modules/verror/node_modules/extsprintf/README.md +46 -0
- package/test/cypress/node_modules/which/README.md +54 -0
- package/test/cypress/node_modules/wrap-ansi/README.md +91 -0
- package/test/cypress/node_modules/wrappy/README.md +36 -0
- package/test/cypress/node_modules/yallist/README.md +204 -0
- package/test/cypress/node_modules/yauzl/README.md +658 -0
- package/.browserslistrc +0 -12
- package/.codecov.yml +0 -17
- package/.editorconfig +0 -18
- package/.eslintrc.json +0 -50
- package/.github/CODE_OF_CONDUCT.md +0 -76
- package/.github/FUNDING.yml +0 -8
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -54
- package/.github/ISSUE_TEMPLATE/config.yml +0 -5
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -44
- package/.github/renovate.json5 +0 -26
- package/.github/stale.yml +0 -7
- package/.github/workflows/main.yml +0 -83
- package/.vscode/extensions.json +0 -9
- package/.vscode/launch.json +0 -72
- package/.vscode/settings.json +0 -7
- package/.vscode/tasks.json +0 -77
- package/CHANGELOG.md +0 -1172
- package/angular.json +0 -148
- package/dist/LICENSE +0 -20
- package/dist/README.md +0 -182
- package/dist/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +0 -1171
- package/dist/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +0 -300
- package/dist/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +0 -46
- package/dist/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +0 -26
- package/dist/fesm2015/angular-slickgrid.mjs.map +0 -1
- package/dist/fesm2020/angular-slickgrid.mjs.map +0 -1
- package/dist/package.json +0 -79
- package/global.d.ts +0 -1
- package/ngcc.config.js +0 -13
- package/screenshots/column-picker.png +0 -0
- package/screenshots/composite-editor.png +0 -0
- package/screenshots/draggable-grouping.png +0 -0
- package/screenshots/editors.png +0 -0
- package/screenshots/export-to-file.png +0 -0
- package/screenshots/filter_and_sort.png +0 -0
- package/screenshots/formatters.png +0 -0
- package/screenshots/frozen.png +0 -0
- package/screenshots/multipleSelectFilter.png +0 -0
- package/screenshots/pagination.png +0 -0
- package/screenshots/selectFilter.png +0 -0
- package/screenshots/singleFilter.png +0 -0
- package/src/app/app-routing.module.ts +0 -83
- package/src/app/app.component.html +0 -160
- package/src/app/app.component.scss +0 -65
- package/src/app/app.component.ts +0 -10
- package/src/app/app.module.ts +0 -175
- package/src/app/examples/custom-angularComponentEditor.ts +0 -184
- package/src/app/examples/custom-angularComponentFilter.ts +0 -126
- package/src/app/examples/custom-inputEditor.ts +0 -124
- package/src/app/examples/custom-inputFilter.ts +0 -142
- package/src/app/examples/custom-titleFormatter.component.ts +0 -8
- package/src/app/examples/editor-ng-select.component.ts +0 -37
- package/src/app/examples/filter-ng-select.component.ts +0 -32
- package/src/app/examples/grid-additem.component.html +0 -48
- package/src/app/examples/grid-additem.component.ts +0 -272
- package/src/app/examples/grid-angular.component.html +0 -79
- package/src/app/examples/grid-angular.component.scss +0 -28
- package/src/app/examples/grid-angular.component.ts +0 -370
- package/src/app/examples/grid-autoheight.component.html +0 -52
- package/src/app/examples/grid-autoheight.component.ts +0 -147
- package/src/app/examples/grid-basic.component.html +0 -29
- package/src/app/examples/grid-basic.component.ts +0 -82
- package/src/app/examples/grid-clientside.component.html +0 -51
- package/src/app/examples/grid-clientside.component.ts +0 -293
- package/src/app/examples/grid-colspan.component.html +0 -39
- package/src/app/examples/grid-colspan.component.scss +0 -11
- package/src/app/examples/grid-colspan.component.ts +0 -155
- package/src/app/examples/grid-composite-editor.component.html +0 -79
- package/src/app/examples/grid-composite-editor.component.scss +0 -19
- package/src/app/examples/grid-composite-editor.component.ts +0 -948
- package/src/app/examples/grid-contextmenu.component.html +0 -62
- package/src/app/examples/grid-contextmenu.component.scss +0 -44
- package/src/app/examples/grid-contextmenu.component.ts +0 -473
- package/src/app/examples/grid-custom-tooltip.component.html +0 -25
- package/src/app/examples/grid-custom-tooltip.component.scss +0 -77
- package/src/app/examples/grid-custom-tooltip.component.ts +0 -483
- package/src/app/examples/grid-draggrouping.component.html +0 -93
- package/src/app/examples/grid-draggrouping.component.ts +0 -397
- package/src/app/examples/grid-editor.component.html +0 -88
- package/src/app/examples/grid-editor.component.ts +0 -699
- package/src/app/examples/grid-formatter.component.html +0 -26
- package/src/app/examples/grid-formatter.component.ts +0 -162
- package/src/app/examples/grid-frozen.component.html +0 -65
- package/src/app/examples/grid-frozen.component.scss +0 -11
- package/src/app/examples/grid-frozen.component.ts +0 -303
- package/src/app/examples/grid-graphql-nopage.component.html +0 -33
- package/src/app/examples/grid-graphql-nopage.component.scss +0 -9
- package/src/app/examples/grid-graphql-nopage.component.ts +0 -242
- package/src/app/examples/grid-graphql.component.html +0 -87
- package/src/app/examples/grid-graphql.component.ts +0 -304
- package/src/app/examples/grid-grouping.component.html +0 -80
- package/src/app/examples/grid-grouping.component.ts +0 -313
- package/src/app/examples/grid-headerbutton.component.html +0 -31
- package/src/app/examples/grid-headerbutton.component.scss +0 -10
- package/src/app/examples/grid-headerbutton.component.ts +0 -233
- package/src/app/examples/grid-headermenu.component.html +0 -31
- package/src/app/examples/grid-headermenu.component.scss +0 -25
- package/src/app/examples/grid-headermenu.component.ts +0 -159
- package/src/app/examples/grid-localization.component.html +0 -54
- package/src/app/examples/grid-localization.component.ts +0 -293
- package/src/app/examples/grid-menu.component.html +0 -37
- package/src/app/examples/grid-menu.component.scss +0 -28
- package/src/app/examples/grid-menu.component.ts +0 -229
- package/src/app/examples/grid-odata.component.html +0 -116
- package/src/app/examples/grid-odata.component.ts +0 -441
- package/src/app/examples/grid-range.component.html +0 -74
- package/src/app/examples/grid-range.component.ts +0 -291
- package/src/app/examples/grid-remote.component.html +0 -37
- package/src/app/examples/grid-remote.component.ts +0 -153
- package/src/app/examples/grid-resize-by-content.component.html +0 -62
- package/src/app/examples/grid-resize-by-content.component.scss +0 -19
- package/src/app/examples/grid-resize-by-content.component.ts +0 -780
- package/src/app/examples/grid-rowdetail.component.html +0 -35
- package/src/app/examples/grid-rowdetail.component.ts +0 -205
- package/src/app/examples/grid-rowmove.component.html +0 -49
- package/src/app/examples/grid-rowmove.component.ts +0 -234
- package/src/app/examples/grid-rowselection.component.html +0 -76
- package/src/app/examples/grid-rowselection.component.ts +0 -267
- package/src/app/examples/grid-state.component.html +0 -36
- package/src/app/examples/grid-state.component.ts +0 -259
- package/src/app/examples/grid-tabs.component.html +0 -35
- package/src/app/examples/grid-tabs.component.ts +0 -115
- package/src/app/examples/grid-trading.component.html +0 -58
- package/src/app/examples/grid-trading.component.scss +0 -49
- package/src/app/examples/grid-trading.component.ts +0 -319
- package/src/app/examples/grid-tree-data-hierarchical.component.html +0 -79
- package/src/app/examples/grid-tree-data-hierarchical.component.scss +0 -47
- package/src/app/examples/grid-tree-data-hierarchical.component.ts +0 -311
- package/src/app/examples/grid-tree-data-parent-child.component.html +0 -108
- package/src/app/examples/grid-tree-data-parent-child.component.scss +0 -10
- package/src/app/examples/grid-tree-data-parent-child.component.ts +0 -351
- package/src/app/examples/home.component.html +0 -41
- package/src/app/examples/home.component.ts +0 -9
- package/src/app/examples/rowdetail-preload.component.ts +0 -10
- package/src/app/examples/rowdetail-view.component.html +0 -36
- package/src/app/examples/rowdetail-view.component.ts +0 -54
- package/src/app/examples/swt-common-grid-pagination.component.ts +0 -156
- package/src/app/examples/swt-common-grid-test.component.html +0 -30
- package/src/app/examples/swt-common-grid-test.component.ts +0 -219
- package/src/app/examples/swt-common-grid.component.ts +0 -436
- package/src/app/examples/swt-logger.service.ts +0 -165
- package/src/app/modules/angular-slickgrid/components/angular-slickgrid.component.html +0 -4
- package/src/app/modules/angular-slickgrid/components/angular-slickgrid.component.ts +0 -1395
- package/src/app/modules/angular-slickgrid/constants.ts +0 -97
- package/src/app/modules/angular-slickgrid/extensions/index.ts +0 -1
- package/src/app/modules/angular-slickgrid/extensions/slickRowDetailView.ts +0 -375
- package/src/app/modules/angular-slickgrid/global-grid-options.ts +0 -245
- package/src/app/modules/angular-slickgrid/index.ts +0 -11
- package/src/app/modules/angular-slickgrid/models/angularComponentOutput.interface.ts +0 -6
- package/src/app/modules/angular-slickgrid/models/angularGridInstance.interface.ts +0 -68
- package/src/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.ts +0 -37
- package/src/app/modules/angular-slickgrid/models/gridOption.interface.ts +0 -12
- package/src/app/modules/angular-slickgrid/models/index.ts +0 -6
- package/src/app/modules/angular-slickgrid/models/rowDetailView.interface.ts +0 -33
- package/src/app/modules/angular-slickgrid/models/slickGrid.interface.ts +0 -7
- package/src/app/modules/angular-slickgrid/modules/angular-slickgrid.module.ts +0 -37
- package/src/app/modules/angular-slickgrid/services/angularUtil.service.ts +0 -48
- package/src/app/modules/angular-slickgrid/services/bsDropdown.service.ts +0 -142
- package/src/app/modules/angular-slickgrid/services/container.service.ts +0 -24
- package/src/app/modules/angular-slickgrid/services/index.ts +0 -5
- package/src/app/modules/angular-slickgrid/services/translater.service.ts +0 -38
- package/src/app/modules/angular-slickgrid/services/utilities.ts +0 -19
- package/src/app/modules/angular-slickgrid/slickgrid-config.ts +0 -10
- package/src/app/slickgrid-custom-variables.scss +0 -10
- package/src/assets/.gitkeep +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/i18n/en.json +0 -90
- package/src/assets/i18n/fr.json +0 -91
- package/src/environments/environment.prod.ts +0 -3
- package/src/environments/environment.ts +0 -8
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -18
- package/src/main.ts +0 -13
- package/src/polyfills.ts +0 -52
- package/src/public_api.ts +0 -1
- package/src/styles.scss +0 -66
- package/src/typings.d.ts +0 -10
- package/tsconfig.app.json +0 -25
- package/tsconfig.json +0 -40
- package/tsconfig.spec.json +0 -23
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<div id="demo-container" class="container-fluid">
|
|
2
|
-
<h2>
|
|
3
|
-
{{title}}
|
|
4
|
-
<span class="float-end">
|
|
5
|
-
<a style="font-size: 18px"
|
|
6
|
-
target="_blank"
|
|
7
|
-
href="https://github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/examples/grid-headermenu.component.ts">
|
|
8
|
-
<span class="fa fa-link"></span> code
|
|
9
|
-
</a>
|
|
10
|
-
</span>
|
|
11
|
-
</h2>
|
|
12
|
-
<div class="subtitle" [innerHTML]="subTitle"></div>
|
|
13
|
-
|
|
14
|
-
<button class="btn btn-outline-secondary btn-sm" (click)="switchLanguage()">
|
|
15
|
-
<i class="fa fa-language"></i>
|
|
16
|
-
Switch Language
|
|
17
|
-
</button>
|
|
18
|
-
<strong>Locale:</strong>
|
|
19
|
-
<span style="font-style: italic" data-test="selected-locale">
|
|
20
|
-
{{selectedLanguage + '.json'}}
|
|
21
|
-
</span>
|
|
22
|
-
|
|
23
|
-
<div class="col-sm-12">
|
|
24
|
-
<angular-slickgrid gridId="grid8"
|
|
25
|
-
(onAngularGridCreated)="angularGridReady($event.detail)"
|
|
26
|
-
[columnDefinitions]="columnDefinitions"
|
|
27
|
-
[gridOptions]="gridOptions"
|
|
28
|
-
[dataset]="dataset">
|
|
29
|
-
</angular-slickgrid>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
$slick-header-menu-button-border: 1px solid #cfcfcf;
|
|
2
|
-
$slick-header-menu-button-border-width: 0px 1px;
|
|
3
|
-
$slick-header-menu-button-icon: "\f0d7";
|
|
4
|
-
$slick-header-menu-button-width: 16px;
|
|
5
|
-
$slick-header-menu-button-padding: 10px 0 0 3px;
|
|
6
|
-
$slick-sort-indicator-hint-opacity: 0;
|
|
7
|
-
|
|
8
|
-
/* make sure to add the @import the SlickGrid Bootstrap Theme AFTER the variables changes */
|
|
9
|
-
@import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-bootstrap.scss';
|
|
10
|
-
|
|
11
|
-
.blue {
|
|
12
|
-
color: rgb(73, 73, 255);
|
|
13
|
-
}
|
|
14
|
-
.orange {
|
|
15
|
-
color: orange;
|
|
16
|
-
}
|
|
17
|
-
.red {
|
|
18
|
-
color: red;
|
|
19
|
-
}
|
|
20
|
-
.bold {
|
|
21
|
-
font-weight: bold;
|
|
22
|
-
}
|
|
23
|
-
.italic {
|
|
24
|
-
font-style: italic;
|
|
25
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { AngularGridInstance, Column, GridOption, unsubscribeAllObservables } from './../modules/angular-slickgrid';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
templateUrl: './grid-headermenu.component.html',
|
|
8
|
-
styleUrls: ['./grid-headermenu.component.scss'],
|
|
9
|
-
encapsulation: ViewEncapsulation.None,
|
|
10
|
-
})
|
|
11
|
-
export class GridHeaderMenuComponent implements OnInit, OnDestroy {
|
|
12
|
-
title = 'Example 8: Header Menu Plugin';
|
|
13
|
-
subTitle = `
|
|
14
|
-
This example demonstrates using the <b>Slick.Plugins.HeaderMenu</b> plugin to easily add menus to colum headers.<br/>
|
|
15
|
-
These menus can be specified directly in the column definition, and are very easy to configure and use.
|
|
16
|
-
(<a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Header-Menu-&-Header-Buttons" target="_blank">Wiki docs</a>)
|
|
17
|
-
<ul>
|
|
18
|
-
<li>Now enabled by default in the Global Grid Options, it will add the default commands of (hide column, sort asc/desc)</li>
|
|
19
|
-
<li>Hover over any column header to see an arrow showing up on the right</li>
|
|
20
|
-
<li>Try Sorting (multi-sort) the 2 columns "Duration" and "% Complete" (the other ones are disabled)</li>
|
|
21
|
-
<li>Try hiding any columns (you use the "Column Picker" plugin by doing a right+click on the header to show the column back)</li>
|
|
22
|
-
<li>Note: The "Header Button" & "Header Menu" Plugins cannot be used at the same time</li>
|
|
23
|
-
<li>You can change the menu icon via SASS variables as shown in this demo (check all SASS variables)</li>
|
|
24
|
-
<li>Use override callback functions to change the properties of show/hide, enable/disable the menu or certain item(s) from the list</li>
|
|
25
|
-
<ol>
|
|
26
|
-
<li>These callbacks are: "itemVisibilityOverride", "itemUsabilityOverride"</li>
|
|
27
|
-
<li>for example if we want to disable the "Help" command over the "Title" and "Completed" column</li>
|
|
28
|
-
<li>for example don't show Help on column "% Complete"</li>
|
|
29
|
-
</ol>
|
|
30
|
-
</ul>
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
private subscriptions: Subscription[] = [];
|
|
34
|
-
angularGrid!: AngularGridInstance;
|
|
35
|
-
columnDefinitions!: Column[];
|
|
36
|
-
gridOptions!: GridOption;
|
|
37
|
-
dataset!: any[];
|
|
38
|
-
selectedLanguage: string;
|
|
39
|
-
|
|
40
|
-
constructor(private translate: TranslateService) {
|
|
41
|
-
this.selectedLanguage = this.translate.getDefaultLang();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
ngOnDestroy() {
|
|
45
|
-
// also unsubscribe all Angular Subscriptions
|
|
46
|
-
this.subscriptions = unsubscribeAllObservables(this.subscriptions);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
ngOnInit(): void {
|
|
50
|
-
this.columnDefinitions = [
|
|
51
|
-
{ id: 'title', name: 'Title', field: 'title', nameKey: 'TITLE' },
|
|
52
|
-
{ id: 'duration', name: 'Duration', field: 'duration', nameKey: 'DURATION', sortable: true },
|
|
53
|
-
{ id: 'percentComplete', name: '% Complete', field: 'percentComplete', nameKey: 'PERCENT_COMPLETE', sortable: true },
|
|
54
|
-
{ id: 'start', name: 'Start', field: 'start', nameKey: 'START' },
|
|
55
|
-
{ id: 'finish', name: 'Finish', field: 'finish', nameKey: 'FINISH' },
|
|
56
|
-
{ id: 'completed', name: 'Completed', field: 'completed', nameKey: 'COMPLETED' }
|
|
57
|
-
];
|
|
58
|
-
|
|
59
|
-
this.columnDefinitions.forEach((columnDef) => {
|
|
60
|
-
columnDef.header = {
|
|
61
|
-
menu: {
|
|
62
|
-
items: [
|
|
63
|
-
// add Custom Header Menu Item Commands which will be appended to the existing internal custom items
|
|
64
|
-
// you cannot override an internal command but you can hide them and create your own
|
|
65
|
-
// also note that the internal custom commands are in the positionOrder range of 50-60,
|
|
66
|
-
// if you want yours at the bottom then start with 61, below 50 will make your command(s) show on top
|
|
67
|
-
{
|
|
68
|
-
iconCssClass: 'fa fa-question-circle',
|
|
69
|
-
|
|
70
|
-
// you can disable a command with certain logic
|
|
71
|
-
// HOWEVER note that if you use "itemUsabilityOverride" has precedence when it is defined
|
|
72
|
-
// disabled: (columnDef.id === 'completed'),
|
|
73
|
-
|
|
74
|
-
titleKey: 'HELP', // use "title" as plain string OR "titleKey" when using a translation key
|
|
75
|
-
command: 'help',
|
|
76
|
-
tooltip: 'Need assistance?',
|
|
77
|
-
cssClass: 'bold', // container css class
|
|
78
|
-
textCssClass: (columnDef.id === 'title' || columnDef.id === 'completed') ? '' : 'blue', // just the text css class
|
|
79
|
-
positionOrder: 99,
|
|
80
|
-
itemUsabilityOverride: (args) => {
|
|
81
|
-
// for example if we want to disable the "Help" command over the "Title" and "Completed" column
|
|
82
|
-
return !(args.column.id === 'title' || args.column.id === 'completed');
|
|
83
|
-
},
|
|
84
|
-
itemVisibilityOverride: (args) => {
|
|
85
|
-
// for example don't show Help on column "% Complete"
|
|
86
|
-
return (args.column.id !== 'percentComplete');
|
|
87
|
-
},
|
|
88
|
-
action: (e, args) => {
|
|
89
|
-
// you can use the "action" callback and/or subscribe to the "onCallback" event, they both have the same arguments
|
|
90
|
-
console.log('execute an action on Help', args);
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
// you can also add divider between commands (command is a required property but you can set it to empty string)
|
|
94
|
-
{ divider: true, command: '', positionOrder: 98 },
|
|
95
|
-
|
|
96
|
-
// you can use "divider" as a string too, but if you do then make sure it's the correct position in the list
|
|
97
|
-
// (since there's no positionOrder when using 'divider')
|
|
98
|
-
// 'divider',
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
this.gridOptions = {
|
|
105
|
-
enableAutoResize: true,
|
|
106
|
-
enableHeaderMenu: true,
|
|
107
|
-
autoResize: {
|
|
108
|
-
container: '#demo-container',
|
|
109
|
-
rightPadding: 10
|
|
110
|
-
},
|
|
111
|
-
enableFiltering: false,
|
|
112
|
-
enableCellNavigation: true,
|
|
113
|
-
headerMenu: {
|
|
114
|
-
hideSortCommands: false,
|
|
115
|
-
hideColumnHideCommand: false,
|
|
116
|
-
// you can use the "onCommand" (in Grid Options) and/or the "action" callback (in Column Definition)
|
|
117
|
-
onCommand: (e, args) => {
|
|
118
|
-
if (args.command === 'help') {
|
|
119
|
-
alert('Please help!!!');
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
enableTranslate: true,
|
|
124
|
-
i18n: this.translate
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
this.getData();
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
getData() {
|
|
131
|
-
// Set up some test columns.
|
|
132
|
-
const mockDataset = [];
|
|
133
|
-
for (let i = 0; i < 1000; i++) {
|
|
134
|
-
mockDataset[i] = {
|
|
135
|
-
id: i,
|
|
136
|
-
title: 'Task ' + i,
|
|
137
|
-
duration: Math.round(Math.random() * 25) + ' days',
|
|
138
|
-
percentComplete: Math.round(Math.random() * 100),
|
|
139
|
-
start: '01/01/2009',
|
|
140
|
-
finish: '01/05/2009',
|
|
141
|
-
completed: (i % 5 === 0)
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
this.dataset = mockDataset;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
angularGridReady(angularGrid: AngularGridInstance) {
|
|
148
|
-
this.angularGrid = angularGrid;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
switchLanguage() {
|
|
152
|
-
const nextLanguage = (this.selectedLanguage === 'en') ? 'fr' : 'en';
|
|
153
|
-
this.subscriptions.push(
|
|
154
|
-
this.translate.use(nextLanguage).subscribe(() => {
|
|
155
|
-
this.selectedLanguage = nextLanguage;
|
|
156
|
-
})
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<div id="demo-container" class="container-fluid">
|
|
2
|
-
<h2>
|
|
3
|
-
{{title}}
|
|
4
|
-
<span class="float-end">
|
|
5
|
-
<a style="font-size: 18px"
|
|
6
|
-
target="_blank"
|
|
7
|
-
href="https://github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/examples/grid-localization.component.ts">
|
|
8
|
-
<span class="fa fa-link"></span> code
|
|
9
|
-
</a>
|
|
10
|
-
</span>
|
|
11
|
-
</h2>
|
|
12
|
-
<div class="subtitle" [innerHTML]="subTitle"></div>
|
|
13
|
-
|
|
14
|
-
<hr />
|
|
15
|
-
|
|
16
|
-
<div class="row">
|
|
17
|
-
<div class="col-sm-12">
|
|
18
|
-
<button class="btn btn-outline-secondary btn-sm" data-test="language-button" (click)="switchLanguage()">
|
|
19
|
-
<i class="fa fa-language"></i>
|
|
20
|
-
Switch Language
|
|
21
|
-
</button>
|
|
22
|
-
<b>Locale:</b> <span style="font-style: italic" data-test="selected-locale">{{selectedLanguage + '.json'}}</span>
|
|
23
|
-
|
|
24
|
-
<span style="margin-left: 20px">
|
|
25
|
-
<button class="btn btn-outline-secondary btn-sm" (click)="exportToFile('csv')">
|
|
26
|
-
<i class="fa fa-download"></i>
|
|
27
|
-
Download to CSV
|
|
28
|
-
</button>
|
|
29
|
-
<button class="btn btn-outline-secondary btn-sm" (click)="exportToFile('txt')">
|
|
30
|
-
<i class="fa fa-download"></i>
|
|
31
|
-
Download to Text
|
|
32
|
-
</button>
|
|
33
|
-
<button class="btn btn-outline-secondary btn-sm" (click)="exportToExcel()">
|
|
34
|
-
<i class="fa fa-file-excel-o text-success"></i>
|
|
35
|
-
Download to Excel
|
|
36
|
-
</button>
|
|
37
|
-
<button class="btn btn-outline-secondary btn-sm" (click)="dynamicallyAddTitleHeader()">
|
|
38
|
-
<i class="fa fa-plus"></i>
|
|
39
|
-
Dynamically Duplicate Title Column
|
|
40
|
-
</button>
|
|
41
|
-
</span>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div class="col-sm-12">
|
|
46
|
-
<angular-slickgrid gridId="grid12"
|
|
47
|
-
[dataset]="dataset"
|
|
48
|
-
[gridOptions]="gridOptions"
|
|
49
|
-
[columnDefinitions]="columnDefinitions"
|
|
50
|
-
(onAngularGridCreated)="angularGridReady($event.detail)"
|
|
51
|
-
(onGridStateChanged)="gridStateChanged($event.detail)">
|
|
52
|
-
</angular-slickgrid>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { Component, OnDestroy, OnInit, } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { ExcelExportService } from '@slickgrid-universal/excel-export';
|
|
4
|
-
import { TextExportService } from '@slickgrid-universal/text-export';
|
|
5
|
-
import { Subscription } from 'rxjs';
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
AngularGridInstance,
|
|
9
|
-
Column,
|
|
10
|
-
DelimiterType,
|
|
11
|
-
FieldType,
|
|
12
|
-
FileType,
|
|
13
|
-
Filters,
|
|
14
|
-
Formatter,
|
|
15
|
-
Formatters,
|
|
16
|
-
GridOption,
|
|
17
|
-
GridStateChange,
|
|
18
|
-
unsubscribeAllObservables
|
|
19
|
-
} from './../modules/angular-slickgrid';
|
|
20
|
-
|
|
21
|
-
const NB_ITEMS = 1500;
|
|
22
|
-
|
|
23
|
-
// create a custom translate Formatter (typically you would move that a separate file, for separation of concerns)
|
|
24
|
-
const taskTranslateFormatter: Formatter = (row, cell, value, columnDef, dataContext, grid) => {
|
|
25
|
-
const gridOptions = grid?.getOptions?.() as GridOption;
|
|
26
|
-
const translate = gridOptions.i18n as TranslateService;
|
|
27
|
-
|
|
28
|
-
return translate.instant('TASK_X', { x: value });
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
@Component({
|
|
32
|
-
templateUrl: './grid-localization.component.html'
|
|
33
|
-
})
|
|
34
|
-
export class GridLocalizationComponent implements OnInit, OnDestroy {
|
|
35
|
-
title = 'Example 12: Localization (i18n)';
|
|
36
|
-
subTitle = `Support multiple locales with the ngx-translate plugin, following these steps (<a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Localization" target="_blank">Wiki docs</a>)
|
|
37
|
-
<ol class="small">
|
|
38
|
-
<li>You first need to "enableTranslate" in the Grid Options</li>
|
|
39
|
-
<li>In the Column Definitions, you have following options</li>
|
|
40
|
-
<ul>
|
|
41
|
-
<li>To translate a header title, use "nameKey" with a translate key (nameKey: 'TITLE')</li>
|
|
42
|
-
<li>For the cell values, you need to use a Formatter, there's 2 ways of doing it</li>
|
|
43
|
-
<ul>
|
|
44
|
-
<li>formatter: myCustomTranslateFormatter <b><= "Title" column uses it</b></li>
|
|
45
|
-
<li>formatter: Formatters.translate, i18n: this.translateService <b><= "Completed" column uses it</b></li>
|
|
46
|
-
</ul>
|
|
47
|
-
</ul>
|
|
48
|
-
<li>For date localization, you need to create your own custom formatter. </li>
|
|
49
|
-
<ul>
|
|
50
|
-
<li>You can easily implement logic to switch between Formatters "dateIso" or "dateUs", depending on current locale.</li>
|
|
51
|
-
</ul>
|
|
52
|
-
<li>For the Select (dropdown) filter, you can fill in the "labelKey" property, if found it will use it, else it will use "label"</li>
|
|
53
|
-
<ul>
|
|
54
|
-
<li>What if your select options have totally different value/label pair? In this case, you can use the <b>customStructure: { label: 'customLabel', value: 'customValue'}</b> to change the property name(s) to use.'</li>
|
|
55
|
-
<li>What if you want to use "customStructure" and translation? Simply pass this flag <b>enableTranslateLabel: true</b></li>
|
|
56
|
-
<li>More info on the Select Filter <a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Select-Filter" target="_blank">Wiki page</a>
|
|
57
|
-
</ul>
|
|
58
|
-
<li>For more info about "Download to File", read the <a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Export-to-File" target="_blank">Wiki page</a></li>
|
|
59
|
-
</ol>
|
|
60
|
-
`;
|
|
61
|
-
|
|
62
|
-
private subscriptions: Subscription[] = [];
|
|
63
|
-
angularGrid!: AngularGridInstance;
|
|
64
|
-
columnDefinitions!: Column[];
|
|
65
|
-
gridOptions!: GridOption;
|
|
66
|
-
dataset!: any[];
|
|
67
|
-
selectedLanguage: string;
|
|
68
|
-
duplicateTitleHeaderCount = 1;
|
|
69
|
-
gridObj: any;
|
|
70
|
-
excelExportService = new ExcelExportService();
|
|
71
|
-
textExportService = new TextExportService();
|
|
72
|
-
|
|
73
|
-
constructor(private translate: TranslateService) {
|
|
74
|
-
// always start with English for Cypress E2E tests to be consistent
|
|
75
|
-
const defaultLang = 'en';
|
|
76
|
-
this.translate.use(defaultLang);
|
|
77
|
-
this.selectedLanguage = defaultLang;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
ngOnDestroy() {
|
|
81
|
-
// also unsubscribe all Angular Subscriptions
|
|
82
|
-
this.subscriptions = unsubscribeAllObservables(this.subscriptions);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
ngOnInit(): void {
|
|
86
|
-
this.columnDefinitions = [
|
|
87
|
-
{
|
|
88
|
-
id: 'title', name: 'Title', field: 'id', nameKey: 'TITLE', minWidth: 100,
|
|
89
|
-
formatter: taskTranslateFormatter,
|
|
90
|
-
sortable: true,
|
|
91
|
-
filterable: true,
|
|
92
|
-
params: { useFormatterOuputToFilter: true }
|
|
93
|
-
},
|
|
94
|
-
{ id: 'description', name: 'Description', field: 'description', filterable: true, sortable: true, minWidth: 80 },
|
|
95
|
-
{
|
|
96
|
-
id: 'duration', name: 'Duration (days)', field: 'duration', nameKey: 'DURATION', sortable: true,
|
|
97
|
-
formatter: Formatters.percentCompleteBar, minWidth: 100,
|
|
98
|
-
exportWithFormatter: false,
|
|
99
|
-
filterable: true,
|
|
100
|
-
type: FieldType.number,
|
|
101
|
-
filter: { model: Filters.slider, /* operator: '>=',*/ params: { hideSliderNumber: true } }
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 'start', name: 'Start', field: 'start', nameKey: 'START', minWidth: 100,
|
|
105
|
-
formatter: Formatters.dateIso, outputType: FieldType.dateIso, type: FieldType.date, exportWithFormatter: true,
|
|
106
|
-
filterable: true, filter: { model: Filters.compoundDate }
|
|
107
|
-
},
|
|
108
|
-
{ id: 'finish', name: 'Finish', field: 'finish', nameKey: 'FINISH', formatter: Formatters.dateIso, outputType: FieldType.dateIso, type: FieldType.date, minWidth: 100, filterable: true, filter: { model: Filters.compoundDate } },
|
|
109
|
-
{
|
|
110
|
-
id: 'completedBool', name: 'Completed', field: 'completedBool', nameKey: 'COMPLETED', minWidth: 100,
|
|
111
|
-
sortable: true,
|
|
112
|
-
formatter: Formatters.checkmark,
|
|
113
|
-
exportCustomFormatter: Formatters.translateBoolean,
|
|
114
|
-
filterable: true,
|
|
115
|
-
filter: {
|
|
116
|
-
collection: [{ value: '', label: '' }, { value: true, labelKey: 'TRUE' }, { value: false, labelKey: 'FALSE' }],
|
|
117
|
-
model: Filters.singleSelect,
|
|
118
|
-
enableTranslateLabel: true,
|
|
119
|
-
filterOptions: {
|
|
120
|
-
autoDropWidth: true
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: 'completed', name: 'Completed', field: 'completed', nameKey: 'COMPLETED', formatter: Formatters.translate, sortable: true,
|
|
126
|
-
minWidth: 100,
|
|
127
|
-
exportWithFormatter: true, // you can set this property in the column definition OR in the grid options, column def has priority over grid options
|
|
128
|
-
filterable: true,
|
|
129
|
-
filter: {
|
|
130
|
-
collection: [{ value: '', label: '' }, { value: 'TRUE', labelKey: 'TRUE' }, { value: 'FALSE', labelKey: 'FALSE' }],
|
|
131
|
-
collectionSortBy: {
|
|
132
|
-
property: 'labelKey' // will sort by translated value since "enableTranslateLabel" is true
|
|
133
|
-
},
|
|
134
|
-
enableTranslateLabel: true,
|
|
135
|
-
model: Filters.singleSelect,
|
|
136
|
-
filterOptions: {
|
|
137
|
-
autoDropWidth: true
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
// OR via your own custom translate formatter
|
|
142
|
-
// { id: 'completed', name: 'Completed', field: 'completed', nameKey: 'COMPLETED', formatter: translateFormatter, sortable: true, minWidth: 100 }
|
|
143
|
-
];
|
|
144
|
-
this.gridOptions = {
|
|
145
|
-
autoResize: {
|
|
146
|
-
container: '#demo-container',
|
|
147
|
-
rightPadding: 10
|
|
148
|
-
},
|
|
149
|
-
enableAutoResize: true,
|
|
150
|
-
enableExcelCopyBuffer: true,
|
|
151
|
-
enableFiltering: true,
|
|
152
|
-
enableTranslate: true,
|
|
153
|
-
i18n: this.translate,
|
|
154
|
-
checkboxSelector: {
|
|
155
|
-
// you can toggle these 2 properties to show the "select all" checkbox in different location
|
|
156
|
-
hideInFilterHeaderRow: false,
|
|
157
|
-
hideInColumnTitleRow: true
|
|
158
|
-
},
|
|
159
|
-
enableCheckboxSelector: true,
|
|
160
|
-
enableRowSelection: true,
|
|
161
|
-
showCustomFooter: true, // display some metrics in the bottom custom footer
|
|
162
|
-
customFooterOptions: {
|
|
163
|
-
metricTexts: {
|
|
164
|
-
// default text displayed in the metrics section on the right
|
|
165
|
-
// all texts optionally support translation keys,
|
|
166
|
-
// if you wish to use that feature then use the text properties with the 'Key' suffix (e.g: itemsKey, ofKey, lastUpdateKey)
|
|
167
|
-
// example "items" for a plain string OR "itemsKey" to use a translation key
|
|
168
|
-
itemsKey: 'ITEMS',
|
|
169
|
-
ofKey: 'OF',
|
|
170
|
-
lastUpdateKey: 'LAST_UPDATE',
|
|
171
|
-
},
|
|
172
|
-
dateFormat: 'YYYY-MM-DD, hh:mm a',
|
|
173
|
-
hideTotalItemCount: false,
|
|
174
|
-
hideLastUpdateTimestamp: false,
|
|
175
|
-
},
|
|
176
|
-
excelExportOptions: {
|
|
177
|
-
// optionally pass a custom header to the Excel Sheet
|
|
178
|
-
// a lot of the info can be found on Web Archive of Excel-Builder
|
|
179
|
-
// http://web.archive.org/web/20160907052007/http://excelbuilderjs.com/cookbook/fontsAndColors.html
|
|
180
|
-
customExcelHeader: (workbook, sheet) => {
|
|
181
|
-
const customTitle = this.translate.currentLang === 'fr' ? 'Titre qui est suffisament long pour être coupé' : 'My header that is long enough to wrap';
|
|
182
|
-
const stylesheet = workbook.getStyleSheet();
|
|
183
|
-
const aFormatDefn = {
|
|
184
|
-
'font': { 'size': 12, 'fontName': 'Calibri', 'bold': true, color: 'FF0000FF' }, // every color starts with FF, then regular HTML color
|
|
185
|
-
'alignment': { 'wrapText': true }
|
|
186
|
-
};
|
|
187
|
-
const formatterId = stylesheet.createFormat(aFormatDefn);
|
|
188
|
-
sheet.setRowInstructions(0, { height: 30 }); // change height of row 0
|
|
189
|
-
|
|
190
|
-
// excel cells start with A1 which is upper left corner
|
|
191
|
-
sheet.mergeCells('B1', 'D1');
|
|
192
|
-
const cols = [];
|
|
193
|
-
// push empty data on A1
|
|
194
|
-
cols.push({ value: '' });
|
|
195
|
-
// push data in B1 cell with metadata formatter
|
|
196
|
-
cols.push({ value: customTitle, metadata: { style: formatterId.id } });
|
|
197
|
-
sheet.data.push(cols);
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
exportOptions: {
|
|
201
|
-
// set at the grid option level, meaning all column will evaluate the Formatter (when it has a Formatter defined)
|
|
202
|
-
exportWithFormatter: true,
|
|
203
|
-
sanitizeDataExport: true
|
|
204
|
-
},
|
|
205
|
-
gridMenu: {
|
|
206
|
-
hideExportCsvCommand: false, // false by default, so it's optional
|
|
207
|
-
hideExportTextDelimitedCommand: false // true by default, so if you want it, you will need to disable the flag
|
|
208
|
-
},
|
|
209
|
-
enableExcelExport: true,
|
|
210
|
-
enableTextExport: true,
|
|
211
|
-
textExportOptions: {
|
|
212
|
-
// set at the grid option level, meaning all column will evaluate the Formatter (when it has a Formatter defined)
|
|
213
|
-
exportWithFormatter: true,
|
|
214
|
-
sanitizeDataExport: true
|
|
215
|
-
},
|
|
216
|
-
registerExternalResources: [this.excelExportService, this.textExportService],
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
this.loadData(NB_ITEMS);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// mock a dataset
|
|
223
|
-
loadData(count: number) {
|
|
224
|
-
this.dataset = [];
|
|
225
|
-
for (let i = 0; i < count; i++) {
|
|
226
|
-
const randomYear = 2000 + Math.floor(Math.random() * 30);
|
|
227
|
-
const randomMonth = Math.floor(Math.random() * 11);
|
|
228
|
-
const randomDay = Math.floor((Math.random() * 29));
|
|
229
|
-
|
|
230
|
-
this.dataset[i] = {
|
|
231
|
-
id: i,
|
|
232
|
-
description: (i % 5) ? 'desc ' + i : '🚀🦄 español', // also add some random to test NULL field
|
|
233
|
-
duration: Math.round(Math.random() * 100) + '',
|
|
234
|
-
start: new Date(randomYear, randomMonth, randomDay),
|
|
235
|
-
finish: new Date(randomYear, (randomMonth + 1), randomDay),
|
|
236
|
-
completedBool: (i % 5 === 0) ? true : false,
|
|
237
|
-
completed: (i % 5 === 0) ? 'TRUE' : 'FALSE'
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
angularGridReady(angularGrid: AngularGridInstance) {
|
|
243
|
-
this.angularGrid = angularGrid;
|
|
244
|
-
this.gridObj = angularGrid.slickGrid;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
dynamicallyAddTitleHeader() {
|
|
248
|
-
// you can dynamically add your column to your column definitions
|
|
249
|
-
// and then use the spread operator [...cols] OR slice to force Angular to review the changes
|
|
250
|
-
const newCol = { id: `title${this.duplicateTitleHeaderCount++}`, field: 'id', nameKey: 'TITLE', formatter: taskTranslateFormatter, sortable: true, minWidth: 100, filterable: true, params: { useFormatterOuputToFilter: true } };
|
|
251
|
-
this.columnDefinitions.push(newCol);
|
|
252
|
-
this.columnDefinitions = this.columnDefinitions.slice(); // or use spread operator [...cols]
|
|
253
|
-
|
|
254
|
-
// NOTE if you use an Extensions (Checkbox Selector, Row Detail, ...) that modifies the column definitions in any way
|
|
255
|
-
// you MUST use "getAllColumnDefinitions()" from the GridService, using this will be ALL columns including the 1st column that is created internally
|
|
256
|
-
// for example if you use the Checkbox Selector (row selection), you MUST use the code below
|
|
257
|
-
/*
|
|
258
|
-
const allColumns = this.angularGrid.gridService.getAllColumnDefinitions();
|
|
259
|
-
allColumns.push(newCol);
|
|
260
|
-
this.columnDefinitions = [...allColumns]; // (or use slice) reassign to column definitions for Angular to do dirty checking
|
|
261
|
-
*/
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
exportToExcel() {
|
|
265
|
-
this.excelExportService.exportToExcel({
|
|
266
|
-
filename: 'Export',
|
|
267
|
-
format: FileType.xlsx
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
exportToFile(type = 'csv') {
|
|
272
|
-
this.textExportService.exportToFile({
|
|
273
|
-
delimiter: (type === 'csv') ? DelimiterType.comma : DelimiterType.tab,
|
|
274
|
-
filename: 'myExport',
|
|
275
|
-
format: (type === 'csv') ? FileType.csv : FileType.txt
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/** Dispatched event of a Grid State Changed event */
|
|
280
|
-
gridStateChanged(gridStateChanges: GridStateChange) {
|
|
281
|
-
console.log('Grid State changed:: ', gridStateChanges);
|
|
282
|
-
console.log('Grid State changed:: ', gridStateChanges.change);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
switchLanguage() {
|
|
286
|
-
const nextLanguage = (this.selectedLanguage === 'en') ? 'fr' : 'en';
|
|
287
|
-
this.subscriptions.push(
|
|
288
|
-
this.translate.use(nextLanguage).subscribe(() => {
|
|
289
|
-
this.selectedLanguage = nextLanguage;
|
|
290
|
-
})
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<div id="demo-container" class="container-fluid">
|
|
2
|
-
<h2>
|
|
3
|
-
{{title}}
|
|
4
|
-
<span class="float-end">
|
|
5
|
-
<a style="font-size: 18px"
|
|
6
|
-
target="_blank"
|
|
7
|
-
href="https://github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/examples/grid-menu.component.ts">
|
|
8
|
-
<span class="fa fa-link"></span> code
|
|
9
|
-
</a>
|
|
10
|
-
</span>
|
|
11
|
-
</h2>
|
|
12
|
-
<div class="subtitle" [innerHTML]="subTitle"></div>
|
|
13
|
-
|
|
14
|
-
<button class="btn btn-outline-secondary btn-sm" data-test="external-gridmenu"
|
|
15
|
-
(click)="toggleGridMenu($event)">
|
|
16
|
-
<i class="fa fa-bars"></i>
|
|
17
|
-
Grid Menu
|
|
18
|
-
</button>
|
|
19
|
-
<button class="btn btn-outline-secondary btn-sm" data-test="language" (click)="switchLanguage()">
|
|
20
|
-
<i class="fa fa-language"></i>
|
|
21
|
-
Switch Language
|
|
22
|
-
</button>
|
|
23
|
-
|
|
24
|
-
<strong>Locale:</strong>
|
|
25
|
-
<span style="font-style: italic"
|
|
26
|
-
data-test="selected-locale">{{selectedLanguage + '.json'}}
|
|
27
|
-
</span>
|
|
28
|
-
|
|
29
|
-
<div class="col-sm-12">
|
|
30
|
-
<angular-slickgrid gridId="grid9"
|
|
31
|
-
[columnDefinitions]="columnDefinitions"
|
|
32
|
-
[gridOptions]="gridOptions"
|
|
33
|
-
[dataset]="dataset"
|
|
34
|
-
(onAngularGridCreated)="angularGridReady($event.detail)">
|
|
35
|
-
</angular-slickgrid>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
$slickcolumn-picker-checkbox-icon-unchecked: "\f00c" !default;
|
|
2
|
-
$slickcolumn-picker-checkbox-icon-checked: "\f00c" !default;
|
|
3
|
-
$slickcolumn-picker-checkbox-opacity: 0.2 !default;
|
|
4
|
-
$slickcolumn-picker-checkbox-opacity-hover: 0.35 !default;
|
|
5
|
-
|
|
6
|
-
$slickgrid-menu-checkbox-icon-unchecked: "\f096";
|
|
7
|
-
$slickgrid-menu-checkbox-icon-checked: "\f046";
|
|
8
|
-
$slickgrid-menu-checkbox-opacity: 0.7;
|
|
9
|
-
$slickgrid-menu-checkbox-opacity-hover: 1;
|
|
10
|
-
|
|
11
|
-
/* make sure to add the @import the SlickGrid Bootstrap Theme AFTER the variables changes */
|
|
12
|
-
@import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-bootstrap.scss';
|
|
13
|
-
|
|
14
|
-
.blue {
|
|
15
|
-
color: rgb(73, 73, 255);
|
|
16
|
-
}
|
|
17
|
-
.orange {
|
|
18
|
-
color: orange;
|
|
19
|
-
}
|
|
20
|
-
.red {
|
|
21
|
-
color: red;
|
|
22
|
-
}
|
|
23
|
-
.bold {
|
|
24
|
-
font-weight: bold;
|
|
25
|
-
}
|
|
26
|
-
.italic {
|
|
27
|
-
font-style: italic;
|
|
28
|
-
}
|