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,311 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { ExcelExportService } from '@slickgrid-universal/excel-export';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
AngularGridInstance,
|
|
6
|
-
Column,
|
|
7
|
-
FieldType,
|
|
8
|
-
Filters,
|
|
9
|
-
Formatter,
|
|
10
|
-
Formatters,
|
|
11
|
-
GridOption,
|
|
12
|
-
findItemInTreeStructure,
|
|
13
|
-
} from './../modules/angular-slickgrid';
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
templateUrl: './grid-tree-data-hierarchical.component.html',
|
|
17
|
-
styleUrls: ['grid-tree-data-hierarchical.component.scss'],
|
|
18
|
-
encapsulation: ViewEncapsulation.None
|
|
19
|
-
})
|
|
20
|
-
export class GridTreeDataHierarchicalComponent implements OnInit {
|
|
21
|
-
title = 'Example 29: Tree Data <small> <span class="mdi mdi-file-tree mdi-27px"></span> (from a Hierarchical Dataset - <a href="https://github.com/ghiscoding/Angular-Slickgrid/wiki/Tree-Data-Grid" target="_blank">Wiki</a>)</small>';
|
|
22
|
-
subTitle = `<ul>
|
|
23
|
-
<li><b>NOTE:</b> The grid will automatically sort Ascending with the column that has the Tree Data, you could add a "sortByFieldId" in your column "treeData" option if you wish to sort on a different column</li>
|
|
24
|
-
<li><b>Styling - Salesforce Theme</b></li>
|
|
25
|
-
<ul>
|
|
26
|
-
<li>The Salesforce Theme was created with SASS and compiled in CSS (<a href="https://github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/modules/angular-slickgrid/styles/slickgrid-theme-salesforce.scss" target="_blank">slickgrid-theme-salesforce.scss</a>), you can override any of its SASS variables</li>
|
|
27
|
-
<li>We use a small subset of <a href="https://materialdesignicons.com/" target="_blank">Material Design Icons</a></li>
|
|
28
|
-
<li>you might need to refresh the page to clear the browser cache and see the correct theme</li>
|
|
29
|
-
</ul>
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
angularGrid!: AngularGridInstance;
|
|
33
|
-
dataViewObj: any;
|
|
34
|
-
gridObj: any;
|
|
35
|
-
gridOptions!: GridOption;
|
|
36
|
-
columnDefinitions!: Column[];
|
|
37
|
-
datasetHierarchical: any[] = [];
|
|
38
|
-
isExcludingChildWhenFiltering = false;
|
|
39
|
-
isAutoApproveParentItemWhenTreeColumnIsValid = true;
|
|
40
|
-
searchString = '';
|
|
41
|
-
|
|
42
|
-
constructor() { }
|
|
43
|
-
|
|
44
|
-
ngOnInit(): void {
|
|
45
|
-
// define the grid options & columns and then create the grid itself
|
|
46
|
-
this.defineGrid();
|
|
47
|
-
|
|
48
|
-
// mock a dataset
|
|
49
|
-
this.datasetHierarchical = this.mockDataset();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
defineGrid() {
|
|
53
|
-
this.columnDefinitions = [
|
|
54
|
-
{
|
|
55
|
-
id: 'file', name: 'Files', field: 'file',
|
|
56
|
-
type: FieldType.string, width: 150, formatter: this.treeFormatter,
|
|
57
|
-
filterable: true, sortable: true,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
id: 'dateModified', name: 'Date Modified', field: 'dateModified',
|
|
61
|
-
formatter: Formatters.dateIso, type: FieldType.dateUtc, outputType: FieldType.dateIso, minWidth: 90,
|
|
62
|
-
exportWithFormatter: true, filterable: true, filter: { model: Filters.compoundDate }
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
id: 'description', name: 'Description', field: 'description', minWidth: 90,
|
|
66
|
-
filterable: true, sortable: true,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: 'size', name: 'Size', field: 'size', minWidth: 90,
|
|
70
|
-
type: FieldType.number, exportWithFormatter: true,
|
|
71
|
-
filterable: true, filter: { model: Filters.compoundInputNumber },
|
|
72
|
-
formatter: (row, cell, value) => isNaN(value) ? '' : `${value} MB`,
|
|
73
|
-
},
|
|
74
|
-
];
|
|
75
|
-
|
|
76
|
-
this.gridOptions = {
|
|
77
|
-
autoResize: {
|
|
78
|
-
container: '#demo-container',
|
|
79
|
-
rightPadding: 10
|
|
80
|
-
},
|
|
81
|
-
enableAutoSizeColumns: true,
|
|
82
|
-
enableAutoResize: true,
|
|
83
|
-
enableExcelExport: true,
|
|
84
|
-
excelExportOptions: {
|
|
85
|
-
exportWithFormatter: true,
|
|
86
|
-
sanitizeDataExport: true
|
|
87
|
-
},
|
|
88
|
-
registerExternalResources: [new ExcelExportService()],
|
|
89
|
-
enableFiltering: true,
|
|
90
|
-
enableTreeData: true, // you must enable this flag for the filtering & sorting to work as expected
|
|
91
|
-
multiColumnSort: false, // multi-column sorting is not supported with Tree Data, so you need to disable it
|
|
92
|
-
treeDataOptions: {
|
|
93
|
-
columnId: 'file',
|
|
94
|
-
childrenPropName: 'files',
|
|
95
|
-
excludeChildrenWhenFilteringTree: this.isExcludingChildWhenFiltering, // defaults to false
|
|
96
|
-
|
|
97
|
-
// skip any other filter criteria(s) if the column holding the Tree (file) passes its own filter criteria
|
|
98
|
-
// (e.g. filtering with "Files = music AND Size > 7", the row "Music" and children will only show up when this flag is enabled
|
|
99
|
-
// this flag only works with the other flag set to `excludeChildrenWhenFilteringTree: false`
|
|
100
|
-
autoApproveParentItemWhenTreeColumnIsValid: this.isAutoApproveParentItemWhenTreeColumnIsValid,
|
|
101
|
-
|
|
102
|
-
// you can also optionally sort by a different column and/or change sort direction
|
|
103
|
-
// initialSort: {
|
|
104
|
-
// columnId: 'file',
|
|
105
|
-
// direction: 'DESC'
|
|
106
|
-
// }
|
|
107
|
-
},
|
|
108
|
-
// change header/cell row height for salesforce theme
|
|
109
|
-
headerRowHeight: 35,
|
|
110
|
-
rowHeight: 33,
|
|
111
|
-
showCustomFooter: true,
|
|
112
|
-
|
|
113
|
-
// we can also preset collapsed items via Grid Presets (parentId: 4 => is the "pdf" folder)
|
|
114
|
-
presets: {
|
|
115
|
-
treeData: { toggledItems: [{ itemId: 4, isCollapsed: true }] },
|
|
116
|
-
},
|
|
117
|
-
// use Material Design SVG icons
|
|
118
|
-
contextMenu: {
|
|
119
|
-
iconCollapseAllGroupsCommand: 'mdi mdi-arrow-collapse',
|
|
120
|
-
iconExpandAllGroupsCommand: 'mdi mdi-arrow-expand',
|
|
121
|
-
iconClearGroupingCommand: 'mdi mdi-close',
|
|
122
|
-
iconCopyCellValueCommand: 'mdi mdi-content-copy',
|
|
123
|
-
iconExportCsvCommand: 'mdi mdi-download',
|
|
124
|
-
iconExportExcelCommand: 'mdi mdi-file-excel-outline',
|
|
125
|
-
iconExportTextDelimitedCommand: 'mdi mdi-download',
|
|
126
|
-
},
|
|
127
|
-
gridMenu: {
|
|
128
|
-
iconCssClass: 'mdi mdi-menu',
|
|
129
|
-
iconClearAllFiltersCommand: 'mdi mdi-filter-remove-outline',
|
|
130
|
-
iconClearAllSortingCommand: 'mdi mdi-swap-vertical',
|
|
131
|
-
iconExportCsvCommand: 'mdi mdi-download',
|
|
132
|
-
iconExportExcelCommand: 'mdi mdi-file-excel-outline',
|
|
133
|
-
iconExportTextDelimitedCommand: 'mdi mdi-download',
|
|
134
|
-
iconRefreshDatasetCommand: 'mdi mdi-sync',
|
|
135
|
-
iconToggleFilterCommand: 'mdi mdi-flip-vertical',
|
|
136
|
-
iconTogglePreHeaderCommand: 'mdi mdi-flip-vertical',
|
|
137
|
-
},
|
|
138
|
-
headerMenu: {
|
|
139
|
-
iconClearFilterCommand: 'mdi mdi mdi-filter-remove-outline',
|
|
140
|
-
iconClearSortCommand: 'mdi mdi-swap-vertical',
|
|
141
|
-
iconSortAscCommand: 'mdi mdi-sort-ascending',
|
|
142
|
-
iconSortDescCommand: 'mdi mdi-flip-v mdi-sort-descending',
|
|
143
|
-
iconColumnHideCommand: 'mdi mdi-close',
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
angularGridReady(angularGrid: AngularGridInstance) {
|
|
149
|
-
this.angularGrid = angularGrid;
|
|
150
|
-
this.gridObj = angularGrid.slickGrid;
|
|
151
|
-
this.dataViewObj = angularGrid.dataView;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
changeAutoApproveParentItem() {
|
|
155
|
-
this.isAutoApproveParentItemWhenTreeColumnIsValid = !this.isAutoApproveParentItemWhenTreeColumnIsValid;
|
|
156
|
-
this.gridOptions.treeDataOptions!.autoApproveParentItemWhenTreeColumnIsValid = this.isAutoApproveParentItemWhenTreeColumnIsValid;
|
|
157
|
-
this.angularGrid.slickGrid.setOptions(this.gridOptions);
|
|
158
|
-
this.angularGrid.filterService.refreshTreeDataFilters();
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
changeExcludeChildWhenFiltering() {
|
|
163
|
-
this.isExcludingChildWhenFiltering = !this.isExcludingChildWhenFiltering;
|
|
164
|
-
this.gridOptions.treeDataOptions!.excludeChildrenWhenFilteringTree = this.isExcludingChildWhenFiltering;
|
|
165
|
-
this.angularGrid.slickGrid.setOptions(this.gridOptions);
|
|
166
|
-
this.angularGrid.filterService.refreshTreeDataFilters();
|
|
167
|
-
return true;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
clearSearch() {
|
|
171
|
-
this.searchString = '';
|
|
172
|
-
this.updateFilter();
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
searchStringChanged() {
|
|
176
|
-
this.updateFilter();
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
updateFilter() {
|
|
180
|
-
this.angularGrid.filterService.updateFilters([{ columnId: 'file', searchTerms: [this.searchString] }], true, false, true);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
treeFormatter: Formatter = (_row, _cell, value, _columnDef, dataContext, grid) => {
|
|
184
|
-
const gridOptions = grid.getOptions() as GridOption;
|
|
185
|
-
const treeLevelPropName = gridOptions.treeDataOptions && gridOptions.treeDataOptions.levelPropName || '__treeLevel';
|
|
186
|
-
if (value === null || value === undefined || dataContext === undefined) {
|
|
187
|
-
return '';
|
|
188
|
-
}
|
|
189
|
-
const dataView = grid.getData();
|
|
190
|
-
const data = dataView.getItems();
|
|
191
|
-
const identifierPropName = dataView.getIdPropertyName() || 'id';
|
|
192
|
-
const idx = dataView.getIdxById(dataContext[identifierPropName]) as number;
|
|
193
|
-
const prefix = this.getFileIcon(value);
|
|
194
|
-
|
|
195
|
-
value = value.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
196
|
-
const spacer = `<span style="display:inline-block; width:${(15 * dataContext[treeLevelPropName])}px;"></span>`;
|
|
197
|
-
|
|
198
|
-
if (data[idx + 1] && data[idx + 1][treeLevelPropName] > data[idx][treeLevelPropName]) {
|
|
199
|
-
const folderPrefix = `<span class="mdi icon color-alt-warning ${dataContext.__collapsed ? 'mdi-folder' : 'mdi-folder-open'}"></span>`;
|
|
200
|
-
if (dataContext.__collapsed) {
|
|
201
|
-
return `${spacer} <span class="slick-group-toggle collapsed" level="${dataContext[treeLevelPropName]}"></span>${folderPrefix} ${prefix} ${value}`;
|
|
202
|
-
} else {
|
|
203
|
-
return `${spacer} <span class="slick-group-toggle expanded" level="${dataContext[treeLevelPropName]}"></span>${folderPrefix} ${prefix} ${value}`;
|
|
204
|
-
}
|
|
205
|
-
} else {
|
|
206
|
-
return `${spacer} <span class="slick-group-toggle" level="${dataContext[treeLevelPropName]}"></span>${prefix} ${value}`;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
getFileIcon(value: string) {
|
|
211
|
-
let prefix = '';
|
|
212
|
-
if (value.includes('.pdf')) {
|
|
213
|
-
prefix = '<span class="mdi icon mdi-file-pdf-outline color-danger"></span>';
|
|
214
|
-
} else if (value.includes('.txt')) {
|
|
215
|
-
prefix = '<span class="mdi icon mdi-file-document-outline color-muted-light"></span>';
|
|
216
|
-
} else if (value.includes('.xls')) {
|
|
217
|
-
prefix = '<span class="mdi icon mdi-file-excel-outline color-success"></span>';
|
|
218
|
-
} else if (value.includes('.mp3')) {
|
|
219
|
-
prefix = '<span class="mdi icon mdi-file-music-outline color-info"></span>';
|
|
220
|
-
}
|
|
221
|
-
return prefix;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* A simple method to add a new item inside the first group that we find.
|
|
226
|
-
* After adding the item, it will sort by parent/child recursively
|
|
227
|
-
*/
|
|
228
|
-
addNewFile() {
|
|
229
|
-
const newId = this.dataViewObj.getLength() + 100;
|
|
230
|
-
|
|
231
|
-
// find first parent object and add the new item as a child
|
|
232
|
-
const tmpDatasetHierarchical = [...this.datasetHierarchical];
|
|
233
|
-
const popItem = findItemInTreeStructure(tmpDatasetHierarchical, x => x.file === 'pop', 'files');
|
|
234
|
-
|
|
235
|
-
if (popItem && Array.isArray(popItem.files)) {
|
|
236
|
-
popItem.files.push({
|
|
237
|
-
id: newId,
|
|
238
|
-
file: `pop-${newId}.mp3`,
|
|
239
|
-
dateModified: new Date(),
|
|
240
|
-
size: Math.floor(Math.random() * 100) + 50,
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
// overwrite hierarchical dataset which will also trigger a grid sort and rendering
|
|
244
|
-
this.datasetHierarchical = tmpDatasetHierarchical;
|
|
245
|
-
|
|
246
|
-
// scroll into the position, after insertion cycle, where the item was added
|
|
247
|
-
setTimeout(() => {
|
|
248
|
-
const rowIndex = this.dataViewObj.getRowById(popItem.id);
|
|
249
|
-
this.gridObj.scrollRowIntoView(rowIndex + 3);
|
|
250
|
-
}, 10);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
collapseAll() {
|
|
255
|
-
this.angularGrid.treeDataService.toggleTreeDataCollapse(true);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
expandAll() {
|
|
259
|
-
this.angularGrid.treeDataService.toggleTreeDataCollapse(false);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
logHierarchicalStructure() {
|
|
263
|
-
console.log('exploded array', this.angularGrid.treeDataService.datasetHierarchical);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
logFlatStructure() {
|
|
267
|
-
console.log('flat array', this.angularGrid.treeDataService.dataset);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
mockDataset() {
|
|
271
|
-
return [
|
|
272
|
-
{ id: 24, file: 'bucket-list.txt', dateModified: '2012-03-05T12:44:00.123Z', size: 0.5 },
|
|
273
|
-
{ id: 18, file: 'something.txt', dateModified: '2015-03-03T03:50:00.123Z', size: 90 },
|
|
274
|
-
{
|
|
275
|
-
id: 21, file: 'documents', files: [
|
|
276
|
-
{ id: 2, file: 'txt', files: [{ id: 3, file: 'todo.txt', description: 'things to do someday maybe', dateModified: '2015-05-12T14:50:00.123Z', size: 0.7, }] },
|
|
277
|
-
{
|
|
278
|
-
id: 4, file: 'pdf', files: [
|
|
279
|
-
{ id: 22, file: 'map2.pdf', dateModified: '2015-07-21T08:22:00.123Z', size: 2.9, },
|
|
280
|
-
{ id: 5, file: 'map.pdf', dateModified: '2015-05-21T10:22:00.123Z', size: 3.1, },
|
|
281
|
-
{ id: 6, file: 'internet-bill.pdf', dateModified: '2015-05-12T14:50:00.123Z', size: 1.4, },
|
|
282
|
-
{ id: 23, file: 'phone-bill.pdf', dateModified: '2015-05-01T07:50:00.123Z', size: 1.4, },
|
|
283
|
-
]
|
|
284
|
-
},
|
|
285
|
-
{ id: 9, file: 'misc', files: [{ id: 10, file: 'todo.txt', dateModified: '2015-02-26T16:50:00.123Z', size: 0.4, }] },
|
|
286
|
-
{ id: 7, file: 'xls', files: [{ id: 8, file: 'compilation.xls', description: 'movie compilation', dateModified: '2014-10-02T14:50:00.123Z', size: 2.3, }] },
|
|
287
|
-
]
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
id: 11, file: 'music', files: [{
|
|
291
|
-
id: 12, file: 'mp3', files: [
|
|
292
|
-
{ id: 16, file: 'rock', files: [{ id: 17, file: 'soft.mp3', dateModified: '2015-05-13T13:50:00Z', size: 98, }] },
|
|
293
|
-
{
|
|
294
|
-
id: 14, file: 'pop', files: [
|
|
295
|
-
{ id: 15, file: 'theme.mp3', description: 'Movie Theme Song', dateModified: '2015-03-01T17:05:00Z', size: 47, },
|
|
296
|
-
{ id: 25, file: 'song.mp3', description: 'it is a song...', dateModified: '2016-10-04T06:33:44Z', size: 6.3, }
|
|
297
|
-
]
|
|
298
|
-
},
|
|
299
|
-
]
|
|
300
|
-
}]
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
id: 26, file: 'recipes', description: 'Cake Recipes', dateModified: '2012-03-05T12:44:00.123Z', files: [
|
|
304
|
-
{ id: 29, file: 'cheesecake', description: 'strawberry cheesecake', dateModified: '2012-04-04T13:52:00.123Z', size: 0.2 },
|
|
305
|
-
{ id: 30, file: 'chocolate-cake', description: 'tasty sweet chocolate cake', dateModified: '2012-05-05T09:22:00.123Z', size: 0.2 },
|
|
306
|
-
{ id: 31, file: 'coffee-cake', description: 'chocolate coffee cake', dateModified: '2012-01-01T08:08:48.123Z', size: 0.2 },
|
|
307
|
-
]
|
|
308
|
-
},
|
|
309
|
-
];
|
|
310
|
-
}
|
|
311
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
<div class="container-fluid">
|
|
2
|
-
<h2>
|
|
3
|
-
<span [innerHTML]="title"></span>
|
|
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-tree-data-parent-child.component.ts">
|
|
8
|
-
<span class="mdi mdi-link mdi-v-align-sub"></span> code
|
|
9
|
-
</a>
|
|
10
|
-
</span>
|
|
11
|
-
</h2>
|
|
12
|
-
<div class="subtitle" [innerHTML]="subTitle"></div>
|
|
13
|
-
|
|
14
|
-
<div class="row" style="margin-bottom: 4px;">
|
|
15
|
-
<div class="col-md-12">
|
|
16
|
-
<button class="btn btn-outline-secondary btn-sm" data-test="add-500-rows-btn" (click)="loadData(500)">
|
|
17
|
-
500 rows
|
|
18
|
-
</button>
|
|
19
|
-
<button class="btn btn-outline-secondary btn-sm" data-test="add-50k-rows-btn" (click)="loadData(25000)">
|
|
20
|
-
25k rows
|
|
21
|
-
</button>
|
|
22
|
-
<button (click)="dynamicallyChangeFilter()" class="btn btn-outline-secondary btn-sm"
|
|
23
|
-
data-test="change-filter-dynamically">
|
|
24
|
-
<span class="mdi mdi-filter-outline"></span>
|
|
25
|
-
<span>Dynamically Change Filter (% complete < 40)</span>
|
|
26
|
-
</button>
|
|
27
|
-
<button (click)="collapseAllWithoutEvent()" data-test="collapse-all-noevent-btn"
|
|
28
|
-
class="btn btn-outline-secondary btn-sm">
|
|
29
|
-
<span class="icon mdi mdi-arrow-collapse"></span>
|
|
30
|
-
<span>Collapse All (without triggering event)</span>
|
|
31
|
-
</button>
|
|
32
|
-
<button (click)="reapplyToggledItems()" data-test="reapply-toggled-items-btn"
|
|
33
|
-
class="btn btn-outline-secondary btn-sm"
|
|
34
|
-
[disabled]="hasNoExpandCollapseChanged">
|
|
35
|
-
<span class="icon mdi mdi-history"></span>
|
|
36
|
-
<span>Reapply Previous Toggled Items</span>
|
|
37
|
-
</button>
|
|
38
|
-
<button (click)="collapseAllWithoutEvent()" class="btn btn-outline-secondary btn-sm"
|
|
39
|
-
data-test="collapse-all-noevent-btn">
|
|
40
|
-
<span class="mdi mdi-arrow-collapse"></span>
|
|
41
|
-
<span>Collapse All (without triggering event)</span>
|
|
42
|
-
</button>
|
|
43
|
-
<button (click)="dynamicallyToggledFirstParent()" class="btn btn-outline-secondary btn-sm"
|
|
44
|
-
data-test="dynamically-toggle-first-parent-btn">
|
|
45
|
-
<span>Dynamically Toggle First Parent</span>
|
|
46
|
-
</button>
|
|
47
|
-
<button (click)="reapplyToggledItems()" data-test="reapply-toggled-items-btn"
|
|
48
|
-
class="btn btn-outline-secondary btn-sm"
|
|
49
|
-
disabled.bind="hasNoExpandCollapseChanged">
|
|
50
|
-
<span class="mdi mdi-history"></span>
|
|
51
|
-
<span>Reapply Previous Toggled Items</span>
|
|
52
|
-
</button>
|
|
53
|
-
<div class.bind="loadingClass"></div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div class="row">
|
|
58
|
-
<div class="col-md-12">
|
|
59
|
-
<button (click)="addNewRow()" data-test="add-item-btn" class="btn btn-primary btn-sm">
|
|
60
|
-
<span class="icon mdi mdi-plus color-white"></span>
|
|
61
|
-
<span>Add New Item (in 1st group)</span>
|
|
62
|
-
</button>
|
|
63
|
-
<button (click)="collapseAll()" data-test="collapse-all-btn" class="btn btn-outline-secondary btn-sm">
|
|
64
|
-
<span class="icon mdi mdi-arrow-collapse"></span>
|
|
65
|
-
<span>Collapse All</span>
|
|
66
|
-
</button>
|
|
67
|
-
<button (click)="expandAll()" data-test="expand-all-btn" class="btn btn-outline-secondary btn-sm">
|
|
68
|
-
<span class="icon mdi mdi-arrow-expand"></span>
|
|
69
|
-
<span>Expand All</span>
|
|
70
|
-
</button>
|
|
71
|
-
<button (click)="logTreeDataToggledItems()" class="btn btn-outline-secondary btn-sm">
|
|
72
|
-
<span>Log Tree Toggled Items</span>
|
|
73
|
-
</button>
|
|
74
|
-
<button (click)="logFlatStructure()" class="btn btn-outline-secondary btn-sm"
|
|
75
|
-
title="console.log of the Flat dataset">
|
|
76
|
-
<span>Log Flat Structure</span>
|
|
77
|
-
</button>
|
|
78
|
-
<button (click)="logHierarchicalStructure()" class="btn btn-outline-secondary btn-sm"
|
|
79
|
-
title="console.log of the Hierarchical Tree dataset">
|
|
80
|
-
<span>Log Hierarchical Structure</span>
|
|
81
|
-
</button>
|
|
82
|
-
<button (click)="dynamicallyChangeFilter()" class="btn btn-outline-secondary btn-sm">
|
|
83
|
-
<span>Dynamically Change Filter (% complete < 40)</span>
|
|
84
|
-
</button>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<br />
|
|
89
|
-
|
|
90
|
-
<angular-slickgrid gridId="grid28"
|
|
91
|
-
[columnDefinitions]="columnDefinitions"
|
|
92
|
-
[gridOptions]="gridOptions"
|
|
93
|
-
[dataset]="dataset"
|
|
94
|
-
(onGridStateChanged)="handleOnGridStateChanged($event.detail)"
|
|
95
|
-
(onAngularGridCreated)="angularGridReady($event.detail)"
|
|
96
|
-
(onBeforeFilterChange)="showSpinner()"
|
|
97
|
-
(onFilterChanged)="hideSpinner()"
|
|
98
|
-
(onBeforeFilterClear)="showSpinner()"
|
|
99
|
-
(onFilterCleared)="hideSpinner()"
|
|
100
|
-
(onBeforeSortChange)="showSpinner()"
|
|
101
|
-
(onSortChanged)="hideSpinner()"
|
|
102
|
-
(onBeforeToggleTreeCollapse)="showSpinner()"
|
|
103
|
-
(onToggle-tree-collapsed)="hideSpinner()"
|
|
104
|
-
(onTree-full-toggle-start)="showSpinner()"
|
|
105
|
-
(onTree-full-toggle-end)="handleOnTreeFullToggleEnd($event.detail)"
|
|
106
|
-
(onTree-item-toggled)="handleOnTreeItemToggled($event.detail)">
|
|
107
|
-
</angular-slickgrid>
|
|
108
|
-
</div>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* make sure to add the @import the SlickGrid Theme AFTER the variables changes */
|
|
2
|
-
@import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-material.lite.scss';
|
|
3
|
-
|
|
4
|
-
.icon {
|
|
5
|
-
align-items: center;
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 1rem;
|
|
9
|
-
width: 1rem;
|
|
10
|
-
}
|