@theseam/ui-common 0.4.30 → 1.0.0-beta.0
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/ai/index.d.ts +2 -0
- package/asset-reader/index.d.ts +67 -5
- package/breadcrumbs/index.d.ts +46 -5
- package/buttons/index.d.ts +220 -5
- package/card/index.d.ts +46 -5
- package/carousel/index.d.ts +100 -5
- package/checkbox/index.d.ts +200 -5
- package/confirm-dialog/index.d.ts +64 -5
- package/core/index.d.ts +139 -5
- package/data-exporter/index.d.ts +60 -5
- package/data-filters/index.d.ts +219 -5
- package/datatable/index.d.ts +1339 -5
- package/datatable-alterations-display/index.d.ts +101 -0
- package/datatable-dynamic/index.d.ts +548 -5
- package/dynamic/index.d.ts +469 -5
- package/dynamic-component-loader/index.d.ts +42 -5
- package/fesm2022/theseam-ui-common-ai.mjs +6 -0
- package/fesm2022/theseam-ui-common-ai.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-asset-reader.mjs +193 -0
- package/fesm2022/theseam-ui-common-asset-reader.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs +171 -0
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-buttons.mjs +478 -0
- package/fesm2022/theseam-ui-common-buttons.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-card.mjs +128 -0
- package/fesm2022/theseam-ui-common-card.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-carousel.mjs +269 -0
- package/fesm2022/theseam-ui-common-carousel.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-checkbox.mjs +393 -0
- package/fesm2022/theseam-ui-common-checkbox.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs +183 -0
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-core.mjs +229 -0
- package/fesm2022/theseam-ui-common-core.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-data-exporter.mjs +89 -0
- package/fesm2022/theseam-ui-common-data-exporter.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-data-filters.mjs +516 -0
- package/fesm2022/theseam-ui-common-data-filters.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs +350 -0
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs +1096 -0
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-datatable.mjs +4263 -0
- package/fesm2022/theseam-ui-common-datatable.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs +134 -0
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-dynamic.mjs +699 -0
- package/fesm2022/theseam-ui-common-dynamic.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-footer-bar.mjs +38 -0
- package/fesm2022/theseam-ui-common-footer-bar.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-form-field-error.mjs +494 -0
- package/fesm2022/theseam-ui-common-form-field-error.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-form-field.mjs +675 -0
- package/fesm2022/theseam-ui-common-form-field.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-framework.mjs +4018 -0
- package/fesm2022/theseam-ui-common-framework.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-google-maps.mjs +2191 -0
- package/fesm2022/theseam-ui-common-google-maps.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-graphql.mjs +1745 -0
- package/fesm2022/theseam-ui-common-graphql.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-icon.mjs +646 -0
- package/fesm2022/theseam-ui-common-icon.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-layout.mjs +118 -0
- package/fesm2022/theseam-ui-common-layout.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-loading.mjs +130 -0
- package/fesm2022/theseam-ui-common-loading.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-menu.mjs +1322 -0
- package/fesm2022/theseam-ui-common-menu.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-modal.mjs +1447 -0
- package/fesm2022/theseam-ui-common-modal.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-models.mjs +55 -0
- package/fesm2022/theseam-ui-common-models.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-navigation-reload.mjs +72 -0
- package/fesm2022/theseam-ui-common-navigation-reload.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-popover.mjs +520 -0
- package/fesm2022/theseam-ui-common-popover.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-progress.mjs +97 -0
- package/fesm2022/theseam-ui-common-progress.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-rich-text.mjs +782 -0
- package/fesm2022/theseam-ui-common-rich-text.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-scrollbar.mjs +158 -0
- package/fesm2022/theseam-ui-common-scrollbar.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-services.mjs +281 -0
- package/fesm2022/theseam-ui-common-services.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-shared.mjs +719 -0
- package/fesm2022/theseam-ui-common-shared.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-storage.mjs +146 -0
- package/fesm2022/theseam-ui-common-storage.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-story-helpers.mjs +512 -0
- package/fesm2022/theseam-ui-common-story-helpers.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tabbed.mjs +292 -0
- package/fesm2022/theseam-ui-common-tabbed.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-table-cell-type.mjs +211 -0
- package/fesm2022/theseam-ui-common-table-cell-type.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-table-cell-types.mjs +1207 -0
- package/fesm2022/theseam-ui-common-table-cell-types.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-table.mjs +341 -0
- package/fesm2022/theseam-ui-common-table.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tel-input.mjs +843 -0
- package/fesm2022/theseam-ui-common-tel-input.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-testing.mjs +315 -0
- package/fesm2022/theseam-ui-common-testing.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tiled-select.mjs +584 -0
- package/fesm2022/theseam-ui-common-tiled-select.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-toggle-edit.mjs +517 -0
- package/fesm2022/theseam-ui-common-toggle-edit.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-toggle-group.mjs +269 -0
- package/fesm2022/theseam-ui-common-toggle-group.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tooltip.mjs +592 -0
- package/fesm2022/theseam-ui-common-tooltip.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs +78 -0
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-utils.mjs +1366 -0
- package/fesm2022/theseam-ui-common-utils.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-validators.mjs +94 -0
- package/fesm2022/theseam-ui-common-validators.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs +85 -0
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-viewers.mjs +566 -0
- package/fesm2022/theseam-ui-common-viewers.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-widget.mjs +1466 -0
- package/fesm2022/theseam-ui-common-widget.mjs.map +1 -0
- package/fesm2022/theseam-ui-common.mjs +7 -0
- package/fesm2022/theseam-ui-common.mjs.map +1 -0
- package/footer-bar/index.d.ts +15 -5
- package/form-field/index.d.ts +255 -5
- package/form-field-error/index.d.ts +102 -5
- package/framework/index.d.ts +1372 -5
- package/framework/nav/nav-item/nav-item.component.scss +3 -1
- package/framework/nav/styles/_themes/light/_variables.scss +6 -4
- package/framework/nav/styles/_themes/primary/_variables.scss +6 -4
- package/framework/side-nav/side-nav-item/side-nav-item.component.scss +3 -1
- package/framework/side-nav/styles/_themes/light/_variables.scss +3 -1
- package/framework/side-nav/styles/_themes/primary/_variables.scss +7 -5
- package/google-maps/index.d.ts +657 -5
- package/graphql/index.d.ts +336 -5
- package/icon/index.d.ts +193 -5
- package/index.d.ts +2 -5
- package/layout/index.d.ts +61 -5
- package/loading/index.d.ts +42 -5
- package/menu/index.d.ts +437 -5
- package/modal/index.d.ts +531 -5
- package/models/index.d.ts +36 -5
- package/navigation-reload/index.d.ts +24 -5
- package/package.json +185 -316
- package/popover/index.d.ts +127 -5
- package/progress/index.d.ts +38 -5
- package/progress/progress-circle/styles/_variables.scss +5 -3
- package/rich-text/index.d.ts +537 -5
- package/scrollbar/index.d.ts +95 -5
- package/services/index.d.ts +129 -5
- package/shared/index.d.ts +229 -5
- package/storage/index.d.ts +35 -5
- package/story-helpers/index.d.ts +184 -5
- package/styles/bootstrap/_bs-variables.scss +5 -3
- package/styles/vendor/ngx-datatable/_ngx-datatable.scss +1 -1
- package/styles/vendor/ngx-datatable/_themes/bootstrap/_variables.scss +6 -4
- package/styles/vendor/quill/_quill.scss +2 -2
- package/tabbed/index.d.ts +108 -5
- package/table/index.d.ts +110 -5
- package/table-cell-type/index.d.ts +145 -5
- package/table-cell-types/index.d.ts +537 -5
- package/tel-input/index.d.ts +532 -5
- package/testing/index.d.ts +220 -5
- package/tiled-select/index.d.ts +179 -5
- package/toggle-edit/index.d.ts +160 -5
- package/toggle-group/index.d.ts +61 -5
- package/tooltip/index.d.ts +118 -0
- package/unsaved-changes-dialog/index.d.ts +24 -5
- package/utils/index.d.ts +434 -5
- package/validators/index.d.ts +49 -5
- package/vertical-list-filter/index.d.ts +31 -5
- package/viewers/index.d.ts +173 -5
- package/widget/index.d.ts +535 -5
- package/asset-reader/asset-reader-helper.service.d.ts +0 -10
- package/asset-reader/asset-reader.module.d.ts +0 -7
- package/asset-reader/encrypted-asset-link.directive.d.ts +0 -26
- package/asset-reader/encrypted-asset-reader.d.ts +0 -24
- package/asset-reader/public-api.d.ts +0 -4
- package/breadcrumbs/breadcrumb.d.ts +0 -11
- package/breadcrumbs/breadcrumbs/breadcrumbs.component.d.ts +0 -11
- package/breadcrumbs/breadcrumbs-resolver.d.ts +0 -5
- package/breadcrumbs/breadcrumbs.module.d.ts +0 -9
- package/breadcrumbs/breadcrumbs.service.d.ts +0 -23
- package/breadcrumbs/public-api.d.ts +0 -5
- package/buttons/badge-button/badge-button.component.d.ts +0 -23
- package/buttons/button/button.component.d.ts +0 -35
- package/buttons/buttons.module.d.ts +0 -12
- package/buttons/progress-circle-button/progress-circle-button.component.d.ts +0 -22
- package/buttons/public-api.d.ts +0 -6
- package/buttons/testing/anchor-badge-button.harness.d.ts +0 -16
- package/buttons/testing/anchor-button.harness.d.ts +0 -16
- package/buttons/testing/badge-button.harness.d.ts +0 -15
- package/buttons/testing/base-badge-button.harness.d.ts +0 -15
- package/buttons/testing/base-button.harness.d.ts +0 -19
- package/buttons/testing/button.harness.d.ts +0 -15
- package/buttons/testing/index.d.ts +0 -5
- package/buttons/testing/toggle-button.harness.d.ts +0 -21
- package/buttons/toggle-button/toggle-button.component.d.ts +0 -29
- package/card/card-action/card-action.component.d.ts +0 -12
- package/card/card-body/card-body.component.d.ts +0 -13
- package/card/card-footer/card-footer.component.d.ts +0 -5
- package/card/card-header/card-header.component.d.ts +0 -7
- package/card/card.component.d.ts +0 -6
- package/card/card.module.d.ts +0 -13
- package/card/public-api.d.ts +0 -6
- package/carousel/carousel-slide.directive.d.ts +0 -8
- package/carousel/carousel.component.d.ts +0 -85
- package/carousel/carousel.module.d.ts +0 -11
- package/carousel/public-api.d.ts +0 -3
- package/checkbox/checkbox.component.d.ts +0 -141
- package/checkbox/checkbox.module.d.ts +0 -8
- package/checkbox/public-api.d.ts +0 -3
- package/checkbox/testing/checkbox.harness.d.ts +0 -49
- package/checkbox/testing/index.d.ts +0 -1
- package/confirm-dialog/confirm-click.directive.d.ts +0 -31
- package/confirm-dialog/confirm-dialog.component.d.ts +0 -16
- package/confirm-dialog/confirm-dialog.module.d.ts +0 -12
- package/confirm-dialog/confirm-dialog.service.d.ts +0 -18
- package/confirm-dialog/public-api.d.ts +0 -4
- package/core/common-behaviors/active.d.ts +0 -8
- package/core/common-behaviors/constructor.d.ts +0 -9
- package/core/common-behaviors/disabled.d.ts +0 -17
- package/core/common-behaviors/element-ref.d.ts +0 -4
- package/core/common-behaviors/index.d.ts +0 -9
- package/core/common-behaviors/initialized.d.ts +0 -30
- package/core/common-behaviors/renderer2.d.ts +0 -4
- package/core/common-behaviors/size.d.ts +0 -9
- package/core/common-behaviors/tabindex.d.ts +0 -18
- package/core/common-behaviors/theme.d.ts +0 -10
- package/core/input-decorators/index.d.ts +0 -2
- package/core/input-decorators/input-boolean.decorator.d.ts +0 -12
- package/core/input-decorators/input-number.decorator.d.ts +0 -12
- package/core/public-api.d.ts +0 -2
- package/data-exporter/data-exporter.d.ts +0 -30
- package/data-exporter/data-exporter.module.d.ts +0 -6
- package/data-exporter/exporters/csv-exporter.d.ts +0 -11
- package/data-exporter/exporters/xlsx-exporter.d.ts +0 -11
- package/data-exporter/public-api.d.ts +0 -4
- package/data-filters/data-filter-container.d.ts +0 -8
- package/data-filters/data-filter-def.d.ts +0 -10
- package/data-filters/data-filter.d.ts +0 -53
- package/data-filters/data-filters.module.d.ts +0 -15
- package/data-filters/filters/data-filter-search/data-filter-search.component.d.ts +0 -39
- package/data-filters/filters/data-filter-search/search-filter-options.d.ts +0 -2
- package/data-filters/filters/data-filter-text/data-filter-text.component.d.ts +0 -37
- package/data-filters/filters/data-filter-text/text-filter-options.d.ts +0 -25
- package/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.d.ts +0 -46
- package/data-filters/public-api.d.ts +0 -9
- package/datatable/datatable/datatable.component.d.ts +0 -266
- package/datatable/datatable-action-menu/datatable-action-menu.component.d.ts +0 -23
- package/datatable/datatable-action-menu-item/datatable-action-menu-item.component.d.ts +0 -33
- package/datatable/datatable-column/datatable-column.component.d.ts +0 -44
- package/datatable/datatable-column-filter-menu/datatable-column-filter-menu.component.d.ts +0 -25
- package/datatable/datatable-column-filter-search-date/datatable-column-filter-search-date.component.d.ts +0 -18
- package/datatable/datatable-column-filter-search-numeric/datatable-column-filter-search-numeric.component.d.ts +0 -16
- package/datatable/datatable-column-filter-search-text/datatable-column-filter-search-text.component.d.ts +0 -15
- package/datatable/datatable-column-preferences/datatable-column-preferences.component.d.ts +0 -18
- package/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.d.ts +0 -13
- package/datatable/datatable-export-button/datatable-export-button.component.d.ts +0 -25
- package/datatable/datatable-footer/datatable-footer-tpl.directive.d.ts +0 -8
- package/datatable/datatable-footer/datatable-footer.directive.d.ts +0 -9
- package/datatable/datatable-menu-bar/datatable-menu-bar.component.d.ts +0 -17
- package/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.d.ts +0 -11
- package/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.d.ts +0 -8
- package/datatable/datatable-row-detail/datatable-row-detail.directive.d.ts +0 -40
- package/datatable/datatable.module.d.ts +0 -56
- package/datatable/directives/datatable-action-menu-item.directive.d.ts +0 -36
- package/datatable/directives/datatable-action-menu-toggle.directive.d.ts +0 -30
- package/datatable/directives/datatable-cell-tpl.directive.d.ts +0 -8
- package/datatable/directives/datatable-column-filter-tpl.directive.d.ts +0 -8
- package/datatable/directives/datatable-column-filter.directive.d.ts +0 -10
- package/datatable/directives/datatable-filter.directive.d.ts +0 -9
- package/datatable/directives/datatable-row-action-item.directive.d.ts +0 -8
- package/datatable/models/action-item-column-position.d.ts +0 -13
- package/datatable/models/columns-alteration.d.ts +0 -61
- package/datatable/models/columns-alterations/hide-column.columns-alteration.d.ts +0 -15
- package/datatable/models/columns-alterations/order.columns-alteration.d.ts +0 -20
- package/datatable/models/columns-alterations/sort.columns-alteration.d.ts +0 -14
- package/datatable/models/columns-alterations/width.columns-alteration.d.ts +0 -16
- package/datatable/models/columns-data-filter.d.ts +0 -57
- package/datatable/models/columns-data-filters/models.d.ts +0 -65
- package/datatable/models/columns-data-filters/search-date.columns-data-filter.d.ts +0 -23
- package/datatable/models/columns-data-filters/search-numeric.columns-data-filter.d.ts +0 -22
- package/datatable/models/columns-data-filters/search-text.columns-data-filter.d.ts +0 -21
- package/datatable/models/columns-data-filters/utils.d.ts +0 -15
- package/datatable/models/datatable-accessor.d.ts +0 -21
- package/datatable/models/datatable-config.d.ts +0 -97
- package/datatable/models/datatable-data-source.d.ts +0 -14
- package/datatable/models/datatable-gql-data-source.d.ts +0 -7
- package/datatable/models/internal-column-props.d.ts +0 -7
- package/datatable/models/menubar-item-data.d.ts +0 -3
- package/datatable/models/page-info.d.ts +0 -18
- package/datatable/models/preferences-accessor.d.ts +0 -3
- package/datatable/models/preferences.d.ts +0 -18
- package/datatable/models/sort-event.d.ts +0 -4
- package/datatable/models/sort-item.d.ts +0 -5
- package/datatable/models/table-column.d.ts +0 -35
- package/datatable/public-api.d.ts +0 -54
- package/datatable/services/columns-alterations-manager.service.d.ts +0 -42
- package/datatable/services/columns-filters.service.d.ts +0 -29
- package/datatable/services/columns-manager.service.d.ts +0 -65
- package/datatable/services/datatable-column-changes.service.d.ts +0 -9
- package/datatable/services/datatable-preferences.service.d.ts +0 -22
- package/datatable/services/datatable-scrollbar-helper.service.d.ts +0 -22
- package/datatable/tokens/datatable-accessor.d.ts +0 -3
- package/datatable/tokens/datatable-preferences-accessor.d.ts +0 -3
- package/datatable/tokens/menubar-item-data.d.ts +0 -3
- package/datatable/utils/create-action-menu-column.d.ts +0 -3
- package/datatable/utils/create-checkbox-column.d.ts +0 -3
- package/datatable/utils/get-column-prop.d.ts +0 -5
- package/datatable/utils/map-columns-alterations-states.d.ts +0 -2
- package/datatable/utils/remove-unused-diffs.d.ts +0 -7
- package/datatable/utils/set-column-defaults.d.ts +0 -2
- package/datatable/utils/translate-templates.d.ts +0 -2
- package/datatable/utils/with-stored-column-info.d.ts +0 -3
- package/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.d.ts +0 -33
- package/datatable-dynamic/datatable-dynamic-def.d.ts +0 -71
- package/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.d.ts +0 -18
- package/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.d.ts +0 -63
- package/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.d.ts +0 -16
- package/datatable-dynamic/datatable-dynamic-menu-bar-token.d.ts +0 -3
- package/datatable-dynamic/datatable-dynamic.component.d.ts +0 -89
- package/datatable-dynamic/datatable-dynamic.module.d.ts +0 -22
- package/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.d.ts +0 -75
- package/datatable-dynamic/dynamic-datatable-def.service.d.ts +0 -62
- package/datatable-dynamic/dynamic-datatable-row-actions.service.d.ts +0 -19
- package/datatable-dynamic/models/dynamic-datatable-action-menu-record.d.ts +0 -17
- package/datatable-dynamic/models/dynamic-datatable-filter-menu-item.d.ts +0 -7
- package/datatable-dynamic/models/dynamic-datatable-menu-bar.d.ts +0 -63
- package/datatable-dynamic/models/dynamic-datatable-row-action-context.d.ts +0 -5
- package/datatable-dynamic/models/dynamic-datatable-row-action.d.ts +0 -17
- package/datatable-dynamic/models/index.d.ts +0 -5
- package/datatable-dynamic/public-api.d.ts +0 -13
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/index.d.ts +0 -4
- package/dynamic/action/api/dynamic-action-api-def.d.ts +0 -35
- package/dynamic/action/api/dynamic-action-api-errors.d.ts +0 -1
- package/dynamic/action/api/dynamic-action-api.d.ts +0 -3
- package/dynamic/action/api/dynamic-action-api.service.d.ts +0 -33
- package/dynamic/action/dynamic-action-helper.service.d.ts +0 -39
- package/dynamic/action/index.d.ts +0 -10
- package/dynamic/action/link/dynamic-action-link-def.d.ts +0 -58
- package/dynamic/action/link/dynamic-action-link.d.ts +0 -3
- package/dynamic/action/link/dynamic-action-link.service.d.ts +0 -17
- package/dynamic/action/modal/dynamic-action-modal-def.d.ts +0 -10
- package/dynamic/action/modal/dynamic-action-modal.d.ts +0 -3
- package/dynamic/action/modal/dynamic-action-modal.service.d.ts +0 -32
- package/dynamic/dynamic-value-helper.service.d.ts +0 -38
- package/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.d.ts +0 -19
- package/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.d.ts +0 -8
- package/dynamic/evaluators/exporters-data-evaluator/index.d.ts +0 -2
- package/dynamic/evaluators/index.d.ts +0 -2
- package/dynamic/evaluators/jexl-evaluator/index.d.ts +0 -2
- package/dynamic/evaluators/jexl-evaluator/jexl-evaluator.d.ts +0 -13
- package/dynamic/evaluators/jexl-evaluator/jexl-value.d.ts +0 -11
- package/dynamic/models/dynamic-action-confirm-def.d.ts +0 -10
- package/dynamic/models/dynamic-action-context.d.ts +0 -2
- package/dynamic/models/dynamic-action-def.d.ts +0 -9
- package/dynamic/models/dynamic-action-ui-anchor-def.d.ts +0 -39
- package/dynamic/models/dynamic-action-ui-button-def.d.ts +0 -13
- package/dynamic/models/dynamic-action-ui-def.d.ts +0 -37
- package/dynamic/models/dynamic-action.d.ts +0 -11
- package/dynamic/models/dynamic-value-base-type.d.ts +0 -4
- package/dynamic/models/dynamic-value-evaluatable-type.d.ts +0 -3
- package/dynamic/models/dynamic-value-evaluator.d.ts +0 -6
- package/dynamic/models/dynamic-value-primitive.d.ts +0 -1
- package/dynamic/models/dynamic-value-type.d.ts +0 -4
- package/dynamic/models/dynamic-value.d.ts +0 -3
- package/dynamic/models/index.d.ts +0 -13
- package/dynamic/public-api.d.ts +0 -6
- package/dynamic/tokens/api-config.d.ts +0 -30
- package/dynamic/tokens/dynamic-action.d.ts +0 -3
- package/dynamic/tokens/dynamic-data.d.ts +0 -2
- package/dynamic/tokens/dynamic-value-evaluator.d.ts +0 -3
- package/dynamic/tokens/index.d.ts +0 -4
- package/dynamic/utils/index.d.ts +0 -1
- package/dynamic/utils/is-action-type.d.ts +0 -2
- package/dynamic-component-loader/dynamic-component-loader.module.d.ts +0 -11
- package/dynamic-component-loader/dynamic-component-loader.service.d.ts +0 -16
- package/dynamic-component-loader/dynamic-component-manifest.d.ts +0 -9
- package/dynamic-component-loader/dynamic-component-tokens.d.ts +0 -4
- package/dynamic-component-loader/public-api.d.ts +0 -4
- package/esm2020/asset-reader/asset-reader-helper.service.mjs +0 -70
- package/esm2020/asset-reader/asset-reader.module.mjs +0 -20
- package/esm2020/asset-reader/encrypted-asset-link.directive.mjs +0 -74
- package/esm2020/asset-reader/encrypted-asset-reader.mjs +0 -20
- package/esm2020/asset-reader/public-api.mjs +0 -5
- package/esm2020/asset-reader/theseam-ui-common-asset-reader.mjs +0 -5
- package/esm2020/breadcrumbs/breadcrumb.mjs +0 -2
- package/esm2020/breadcrumbs/breadcrumbs/breadcrumbs.component.mjs +0 -18
- package/esm2020/breadcrumbs/breadcrumbs-resolver.mjs +0 -2
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +0 -28
- package/esm2020/breadcrumbs/breadcrumbs.service.mjs +0 -156
- package/esm2020/breadcrumbs/public-api.mjs +0 -6
- package/esm2020/breadcrumbs/theseam-ui-common-breadcrumbs.mjs +0 -5
- package/esm2020/buttons/badge-button/badge-button.component.mjs +0 -62
- package/esm2020/buttons/button/button.component.mjs +0 -85
- package/esm2020/buttons/buttons.module.mjs +0 -51
- package/esm2020/buttons/progress-circle-button/progress-circle-button.component.mjs +0 -52
- package/esm2020/buttons/public-api.mjs +0 -7
- package/esm2020/buttons/testing/anchor-badge-button.harness.mjs +0 -18
- package/esm2020/buttons/testing/anchor-button.harness.mjs +0 -18
- package/esm2020/buttons/testing/badge-button.harness.mjs +0 -14
- package/esm2020/buttons/testing/base-badge-button.harness.mjs +0 -29
- package/esm2020/buttons/testing/base-button.harness.mjs +0 -41
- package/esm2020/buttons/testing/button.harness.mjs +0 -16
- package/esm2020/buttons/testing/index.mjs +0 -6
- package/esm2020/buttons/testing/toggle-button.harness.mjs +0 -25
- package/esm2020/buttons/theseam-ui-common-buttons.mjs +0 -5
- package/esm2020/buttons/toggle-button/toggle-button.component.mjs +0 -79
- package/esm2020/card/card-action/card-action.component.mjs +0 -31
- package/esm2020/card/card-body/card-body.component.mjs +0 -32
- package/esm2020/card/card-footer/card-footer.component.mjs +0 -11
- package/esm2020/card/card-header/card-header.component.mjs +0 -21
- package/esm2020/card/card.component.mjs +0 -17
- package/esm2020/card/card.module.mjs +0 -48
- package/esm2020/card/public-api.mjs +0 -7
- package/esm2020/card/theseam-ui-common-card.mjs +0 -5
- package/esm2020/carousel/carousel-slide.directive.mjs +0 -16
- package/esm2020/carousel/carousel.component.mjs +0 -212
- package/esm2020/carousel/carousel.module.mjs +0 -38
- package/esm2020/carousel/public-api.mjs +0 -4
- package/esm2020/carousel/theseam-ui-common-carousel.mjs +0 -5
- package/esm2020/checkbox/checkbox.component.mjs +0 -285
- package/esm2020/checkbox/checkbox.module.mjs +0 -21
- package/esm2020/checkbox/public-api.mjs +0 -4
- package/esm2020/checkbox/testing/checkbox.harness.mjs +0 -63
- package/esm2020/checkbox/testing/index.mjs +0 -2
- package/esm2020/checkbox/theseam-ui-common-checkbox.mjs +0 -5
- package/esm2020/confirm-dialog/confirm-click.directive.mjs +0 -71
- package/esm2020/confirm-dialog/confirm-dialog.component.mjs +0 -38
- package/esm2020/confirm-dialog/confirm-dialog.module.mjs +0 -47
- package/esm2020/confirm-dialog/confirm-dialog.service.mjs +0 -41
- package/esm2020/confirm-dialog/public-api.mjs +0 -5
- package/esm2020/confirm-dialog/theseam-ui-common-confirm-dialog.mjs +0 -5
- package/esm2020/core/common-behaviors/active.mjs +0 -14
- package/esm2020/core/common-behaviors/constructor.mjs +0 -9
- package/esm2020/core/common-behaviors/disabled.mjs +0 -21
- package/esm2020/core/common-behaviors/element-ref.mjs +0 -2
- package/esm2020/core/common-behaviors/index.mjs +0 -10
- package/esm2020/core/common-behaviors/initialized.mjs +0 -63
- package/esm2020/core/common-behaviors/renderer2.mjs +0 -2
- package/esm2020/core/common-behaviors/size.mjs +0 -24
- package/esm2020/core/common-behaviors/tabindex.mjs +0 -23
- package/esm2020/core/common-behaviors/theme.mjs +0 -24
- package/esm2020/core/input-decorators/index.mjs +0 -3
- package/esm2020/core/input-decorators/input-boolean.decorator.mjs +0 -26
- package/esm2020/core/input-decorators/input-number.decorator.mjs +0 -26
- package/esm2020/core/public-api.mjs +0 -3
- package/esm2020/core/theseam-ui-common-core.mjs +0 -5
- package/esm2020/data-exporter/data-exporter.mjs +0 -7
- package/esm2020/data-exporter/data-exporter.module.mjs +0 -25
- package/esm2020/data-exporter/exporters/csv-exporter.mjs +0 -35
- package/esm2020/data-exporter/exporters/xlsx-exporter.mjs +0 -33
- package/esm2020/data-exporter/public-api.mjs +0 -5
- package/esm2020/data-exporter/theseam-ui-common-data-exporter.mjs +0 -5
- package/esm2020/data-filters/data-filter-container.mjs +0 -3
- package/esm2020/data-filters/data-filter-def.mjs +0 -3
- package/esm2020/data-filters/data-filter.mjs +0 -25
- package/esm2020/data-filters/data-filters.module.mjs +0 -66
- package/esm2020/data-filters/filters/data-filter-search/data-filter-search.component.mjs +0 -121
- package/esm2020/data-filters/filters/data-filter-search/search-filter-options.mjs +0 -2
- package/esm2020/data-filters/filters/data-filter-text/data-filter-text.component.mjs +0 -148
- package/esm2020/data-filters/filters/data-filter-text/text-filter-options.mjs +0 -2
- package/esm2020/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.mjs +0 -166
- package/esm2020/data-filters/public-api.mjs +0 -10
- package/esm2020/data-filters/theseam-ui-common-data-filters.mjs +0 -5
- package/esm2020/datatable/datatable/datatable.component.mjs +0 -879
- package/esm2020/datatable/datatable-action-menu/datatable-action-menu.component.mjs +0 -112
- package/esm2020/datatable/datatable-action-menu-item/datatable-action-menu-item.component.mjs +0 -50
- package/esm2020/datatable/datatable-column/datatable-column.component.mjs +0 -107
- package/esm2020/datatable/datatable-column-filter-menu/datatable-column-filter-menu.component.mjs +0 -55
- package/esm2020/datatable/datatable-column-filter-search-date/datatable-column-filter-search-date.component.mjs +0 -54
- package/esm2020/datatable/datatable-column-filter-search-numeric/datatable-column-filter-search-numeric.component.mjs +0 -48
- package/esm2020/datatable/datatable-column-filter-search-text/datatable-column-filter-search-text.component.mjs +0 -44
- package/esm2020/datatable/datatable-column-preferences/datatable-column-preferences.component.mjs +0 -67
- package/esm2020/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.mjs +0 -51
- package/esm2020/datatable/datatable-export-button/datatable-export-button.component.mjs +0 -106
- package/esm2020/datatable/datatable-footer/datatable-footer-tpl.directive.mjs +0 -16
- package/esm2020/datatable/datatable-footer/datatable-footer.directive.mjs +0 -24
- package/esm2020/datatable/datatable-menu-bar/datatable-menu-bar.component.mjs +0 -49
- package/esm2020/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.mjs +0 -30
- package/esm2020/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.mjs +0 -16
- package/esm2020/datatable/datatable-row-detail/datatable-row-detail.directive.mjs +0 -77
- package/esm2020/datatable/datatable.module.mjs +0 -247
- package/esm2020/datatable/directives/datatable-action-menu-item.directive.mjs +0 -62
- package/esm2020/datatable/directives/datatable-action-menu-toggle.directive.mjs +0 -137
- package/esm2020/datatable/directives/datatable-cell-tpl.directive.mjs +0 -16
- package/esm2020/datatable/directives/datatable-column-filter-tpl.directive.mjs +0 -16
- package/esm2020/datatable/directives/datatable-column-filter.directive.mjs +0 -26
- package/esm2020/datatable/directives/datatable-filter.directive.mjs +0 -27
- package/esm2020/datatable/directives/datatable-row-action-item.directive.mjs +0 -16
- package/esm2020/datatable/models/action-item-column-position.mjs +0 -5
- package/esm2020/datatable/models/columns-alteration.mjs +0 -38
- package/esm2020/datatable/models/columns-alterations/hide-column.columns-alteration.mjs +0 -38
- package/esm2020/datatable/models/columns-alterations/order.columns-alteration.mjs +0 -83
- package/esm2020/datatable/models/columns-alterations/sort.columns-alteration.mjs +0 -33
- package/esm2020/datatable/models/columns-alterations/width.columns-alteration.mjs +0 -41
- package/esm2020/datatable/models/columns-data-filter.mjs +0 -10
- package/esm2020/datatable/models/columns-data-filters/models.mjs +0 -74
- package/esm2020/datatable/models/columns-data-filters/search-date.columns-data-filter.mjs +0 -113
- package/esm2020/datatable/models/columns-data-filters/search-numeric.columns-data-filter.mjs +0 -104
- package/esm2020/datatable/models/columns-data-filters/search-text.columns-data-filter.mjs +0 -86
- package/esm2020/datatable/models/columns-data-filters/utils.mjs +0 -28
- package/esm2020/datatable/models/datatable-accessor.mjs +0 -2
- package/esm2020/datatable/models/datatable-config.mjs +0 -3
- package/esm2020/datatable/models/datatable-data-source.mjs +0 -42
- package/esm2020/datatable/models/datatable-gql-data-source.mjs +0 -15
- package/esm2020/datatable/models/internal-column-props.mjs +0 -15
- package/esm2020/datatable/models/menubar-item-data.mjs +0 -2
- package/esm2020/datatable/models/page-info.mjs +0 -2
- package/esm2020/datatable/models/preferences-accessor.mjs +0 -2
- package/esm2020/datatable/models/preferences.mjs +0 -6
- package/esm2020/datatable/models/sort-event.mjs +0 -2
- package/esm2020/datatable/models/sort-item.mjs +0 -2
- package/esm2020/datatable/models/table-column.mjs +0 -2
- package/esm2020/datatable/public-api.mjs +0 -55
- package/esm2020/datatable/services/columns-alterations-manager.service.mjs +0 -136
- package/esm2020/datatable/services/columns-filters.service.mjs +0 -109
- package/esm2020/datatable/services/columns-manager.service.mjs +0 -286
- package/esm2020/datatable/services/datatable-column-changes.service.mjs +0 -20
- package/esm2020/datatable/services/datatable-preferences.service.mjs +0 -94
- package/esm2020/datatable/services/datatable-scrollbar-helper.service.mjs +0 -50
- package/esm2020/datatable/theseam-ui-common-datatable.mjs +0 -5
- package/esm2020/datatable/tokens/datatable-accessor.mjs +0 -3
- package/esm2020/datatable/tokens/datatable-preferences-accessor.mjs +0 -3
- package/esm2020/datatable/tokens/menubar-item-data.mjs +0 -3
- package/esm2020/datatable/utils/create-action-menu-column.mjs +0 -19
- package/esm2020/datatable/utils/create-checkbox-column.mjs +0 -15
- package/esm2020/datatable/utils/get-column-prop.mjs +0 -9
- package/esm2020/datatable/utils/map-columns-alterations-states.mjs +0 -42
- package/esm2020/datatable/utils/remove-unused-diffs.mjs +0 -9
- package/esm2020/datatable/utils/set-column-defaults.mjs +0 -10
- package/esm2020/datatable/utils/translate-templates.mjs +0 -12
- package/esm2020/datatable/utils/with-stored-column-info.mjs +0 -20
- package/esm2020/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.mjs +0 -118
- package/esm2020/datatable-dynamic/datatable-dynamic-def.mjs +0 -2
- package/esm2020/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.mjs +0 -50
- package/esm2020/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.mjs +0 -148
- package/esm2020/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.mjs +0 -2
- package/esm2020/datatable-dynamic/datatable-dynamic-menu-bar-token.mjs +0 -3
- package/esm2020/datatable-dynamic/datatable-dynamic.component.mjs +0 -75
- package/esm2020/datatable-dynamic/datatable-dynamic.module.mjs +0 -80
- package/esm2020/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.mjs +0 -400
- package/esm2020/datatable-dynamic/dynamic-datatable-def.service.mjs +0 -88
- package/esm2020/datatable-dynamic/dynamic-datatable-row-actions.service.mjs +0 -46
- package/esm2020/datatable-dynamic/models/dynamic-datatable-action-menu-record.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-filter-menu-item.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-menu-bar.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-row-action-context.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-row-action.mjs +0 -2
- package/esm2020/datatable-dynamic/models/index.mjs +0 -6
- package/esm2020/datatable-dynamic/public-api.mjs +0 -14
- package/esm2020/datatable-dynamic/theseam-ui-common-datatable-dynamic.mjs +0 -5
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.mjs +0 -8
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.mjs +0 -13
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.mjs +0 -6
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.mjs +0 -6
- package/esm2020/datatable-dynamic/utils/index.mjs +0 -5
- package/esm2020/dynamic/action/api/dynamic-action-api-def.mjs +0 -2
- package/esm2020/dynamic/action/api/dynamic-action-api-errors.mjs +0 -4
- package/esm2020/dynamic/action/api/dynamic-action-api.mjs +0 -2
- package/esm2020/dynamic/action/api/dynamic-action-api.service.mjs +0 -209
- package/esm2020/dynamic/action/dynamic-action-helper.service.mjs +0 -158
- package/esm2020/dynamic/action/index.mjs +0 -11
- package/esm2020/dynamic/action/link/dynamic-action-link-def.mjs +0 -2
- package/esm2020/dynamic/action/link/dynamic-action-link.mjs +0 -2
- package/esm2020/dynamic/action/link/dynamic-action-link.service.mjs +0 -47
- package/esm2020/dynamic/action/modal/dynamic-action-modal-def.mjs +0 -2
- package/esm2020/dynamic/action/modal/dynamic-action-modal.mjs +0 -2
- package/esm2020/dynamic/action/modal/dynamic-action-modal.service.mjs +0 -85
- package/esm2020/dynamic/dynamic-value-helper.service.mjs +0 -105
- package/esm2020/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.mjs +0 -30
- package/esm2020/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.mjs +0 -2
- package/esm2020/dynamic/evaluators/exporters-data-evaluator/index.mjs +0 -3
- package/esm2020/dynamic/evaluators/index.mjs +0 -3
- package/esm2020/dynamic/evaluators/jexl-evaluator/index.mjs +0 -3
- package/esm2020/dynamic/evaluators/jexl-evaluator/jexl-evaluator.mjs +0 -32
- package/esm2020/dynamic/evaluators/jexl-evaluator/jexl-value.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-confirm-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-context.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-def.mjs +0 -3
- package/esm2020/dynamic/models/dynamic-action-ui-anchor-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-ui-button-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-ui-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-base-type.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-evaluatable-type.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-evaluator.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-primitive.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-type.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value.mjs +0 -2
- package/esm2020/dynamic/models/index.mjs +0 -14
- package/esm2020/dynamic/public-api.mjs +0 -7
- package/esm2020/dynamic/theseam-ui-common-dynamic.mjs +0 -5
- package/esm2020/dynamic/tokens/api-config.mjs +0 -29
- package/esm2020/dynamic/tokens/dynamic-action.mjs +0 -3
- package/esm2020/dynamic/tokens/dynamic-data.mjs +0 -3
- package/esm2020/dynamic/tokens/dynamic-value-evaluator.mjs +0 -3
- package/esm2020/dynamic/tokens/index.mjs +0 -5
- package/esm2020/dynamic/utils/index.mjs +0 -2
- package/esm2020/dynamic/utils/is-action-type.mjs +0 -4
- package/esm2020/dynamic-component-loader/dynamic-component-loader.module.mjs +0 -50
- package/esm2020/dynamic-component-loader/dynamic-component-loader.service.mjs +0 -78
- package/esm2020/dynamic-component-loader/dynamic-component-manifest.mjs +0 -2
- package/esm2020/dynamic-component-loader/dynamic-component-tokens.mjs +0 -5
- package/esm2020/dynamic-component-loader/public-api.mjs +0 -5
- package/esm2020/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.mjs +0 -5
- package/esm2020/footer-bar/footer-bar/footer-bar.component.mjs +0 -11
- package/esm2020/footer-bar/footer-bar.module.mjs +0 -20
- package/esm2020/footer-bar/public-api.mjs +0 -3
- package/esm2020/footer-bar/theseam-ui-common-footer-bar.mjs +0 -5
- package/esm2020/form-field/form-field-error.directive.mjs +0 -30
- package/esm2020/form-field/form-field-help-text.directive.mjs +0 -16
- package/esm2020/form-field/form-field-label-tpl.directive.mjs +0 -16
- package/esm2020/form-field/form-field-required-indicator.component.mjs +0 -61
- package/esm2020/form-field/form-field-tokens.mjs +0 -3
- package/esm2020/form-field/form-field.component.mjs +0 -221
- package/esm2020/form-field/form-field.module.mjs +0 -61
- package/esm2020/form-field/input.directive.mjs +0 -227
- package/esm2020/form-field/public-api.mjs +0 -10
- package/esm2020/form-field/testing/form-field-required-indicator.harness.mjs +0 -8
- package/esm2020/form-field/testing/form-field.harness.mjs +0 -45
- package/esm2020/form-field/testing/index.mjs +0 -3
- package/esm2020/form-field/theseam-ui-common-form-field.mjs +0 -5
- package/esm2020/form-field-error/form-field-error/form-field-error.component.mjs +0 -26
- package/esm2020/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.mjs +0 -26
- package/esm2020/form-field-error/form-field-error-list/form-field-error-list-item.directive.mjs +0 -18
- package/esm2020/form-field-error/form-field-error-list/form-field-error-list.component.mjs +0 -384
- package/esm2020/form-field-error/form-field-error.module.mjs +0 -39
- package/esm2020/form-field-error/public-api.mjs +0 -6
- package/esm2020/form-field-error/theseam-ui-common-form-field-error.mjs +0 -5
- package/esm2020/framework/base-layout/base-layout-action.mjs +0 -2
- package/esm2020/framework/base-layout/base-layout-nav.mjs +0 -2
- package/esm2020/framework/base-layout/base-layout-ref.mjs +0 -2
- package/esm2020/framework/base-layout/base-layout-tokens.mjs +0 -3
- package/esm2020/framework/base-layout/base-layout.component.mjs +0 -133
- package/esm2020/framework/base-layout/base-layout.module.mjs +0 -80
- package/esm2020/framework/base-layout/directives/base-layout-content-footer.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-content-header.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-content.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-nav-toggle.directive.mjs +0 -66
- package/esm2020/framework/base-layout/directives/base-layout-side-bar-footer.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-side-bar-header.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-side-bar.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-top-bar.directive.mjs +0 -16
- package/esm2020/framework/base-layout/index.mjs +0 -15
- package/esm2020/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.mjs +0 -16
- package/esm2020/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.mjs +0 -23
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.mjs +0 -119
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-item.mjs +0 -2
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.mjs +0 -3
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.mjs +0 -2
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.mjs +0 -177
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets.component.mjs +0 -207
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets.service.mjs +0 -181
- package/esm2020/framework/dashboard/dashboard-widgets-tokens.mjs +0 -3
- package/esm2020/framework/dashboard/dashboard.component.mjs +0 -24
- package/esm2020/framework/dashboard/dashboard.module.mjs +0 -60
- package/esm2020/framework/dashboard/index.mjs +0 -12
- package/esm2020/framework/dynamic-router/dynamic-route-def.mjs +0 -2
- package/esm2020/framework/dynamic-router/dynamic-router.module.mjs +0 -28
- package/esm2020/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.mjs +0 -256
- package/esm2020/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.mjs +0 -116
- package/esm2020/framework/dynamic-router/index.mjs +0 -6
- package/esm2020/framework/dynamic-router/resolvers/hierarchy-level.resolver.mjs +0 -26
- package/esm2020/framework/nav/horizontal-nav/horizontal-nav.component.mjs +0 -55
- package/esm2020/framework/nav/index.mjs +0 -6
- package/esm2020/framework/nav/nav-item/nav-item.component.mjs +0 -227
- package/esm2020/framework/nav/nav-utils.mjs +0 -107
- package/esm2020/framework/nav/nav.models.mjs +0 -2
- package/esm2020/framework/nav/nav.module.mjs +0 -67
- package/esm2020/framework/nav/nav.service.mjs +0 -204
- package/esm2020/framework/public-api.mjs +0 -8
- package/esm2020/framework/schema-form/index.mjs +0 -5
- package/esm2020/framework/schema-form/schema-form-framework.component.mjs +0 -21
- package/esm2020/framework/schema-form/schema-form-framework.mjs +0 -85
- package/esm2020/framework/schema-form/schema-form-widget.mjs +0 -2
- package/esm2020/framework/schema-form/schema-form.module.mjs +0 -45
- package/esm2020/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.mjs +0 -53
- package/esm2020/framework/schema-form-controls/schema-form-divider/schema-form-divider.component.mjs +0 -20
- package/esm2020/framework/schema-form-controls/schema-form-input/schema-form-input.component.mjs +0 -43
- package/esm2020/framework/schema-form-controls/schema-form-number/schema-form-number.component.mjs +0 -49
- package/esm2020/framework/schema-form-controls/schema-form-select/schema-form-select.component.mjs +0 -48
- package/esm2020/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.mjs +0 -54
- package/esm2020/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.mjs +0 -156
- package/esm2020/framework/schema-form-controls/schema-form-tel/schema-form-tel.component.mjs +0 -48
- package/esm2020/framework/schema-form-controls/schema-form-tiled-select/schema-form-tiled-select.component.mjs +0 -57
- package/esm2020/framework/side-nav/index.mjs +0 -8
- package/esm2020/framework/side-nav/side-nav-item/side-nav-item.component.mjs +0 -186
- package/esm2020/framework/side-nav/side-nav-toggle/side-nav-toggle.component.mjs +0 -40
- package/esm2020/framework/side-nav/side-nav-tokens.mjs +0 -7
- package/esm2020/framework/side-nav/side-nav-utils.mjs +0 -90
- package/esm2020/framework/side-nav/side-nav.component.mjs +0 -408
- package/esm2020/framework/side-nav/side-nav.models.mjs +0 -2
- package/esm2020/framework/side-nav/side-nav.module.mjs +0 -32
- package/esm2020/framework/side-nav/side-nav.service.mjs +0 -178
- package/esm2020/framework/theseam-ui-common-framework.mjs +0 -5
- package/esm2020/framework/top-bar/index.mjs +0 -10
- package/esm2020/framework/top-bar/top-bar-compact-menu-btn-detail.directive.mjs +0 -16
- package/esm2020/framework/top-bar/top-bar-item.directive.mjs +0 -22
- package/esm2020/framework/top-bar/top-bar-menu-btn-detail.directive.mjs +0 -16
- package/esm2020/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.mjs +0 -56
- package/esm2020/framework/top-bar/top-bar-menu.directive.mjs +0 -19
- package/esm2020/framework/top-bar/top-bar-nav-toggle-btn-detail.directive.mjs +0 -16
- package/esm2020/framework/top-bar/top-bar-title/top-bar-title.component.mjs +0 -17
- package/esm2020/framework/top-bar/top-bar.component.mjs +0 -141
- package/esm2020/framework/top-bar/top-bar.module.mjs +0 -83
- package/esm2020/google-maps/google-maps/google-maps.component.mjs +0 -333
- package/esm2020/google-maps/google-maps-api-loader/google-maps-api-loader.mjs +0 -3
- package/esm2020/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.mjs +0 -104
- package/esm2020/google-maps/google-maps-api-loader/noop-google-maps-api-loader.mjs +0 -25
- package/esm2020/google-maps/google-maps-contextmenu.mjs +0 -114
- package/esm2020/google-maps/google-maps-controls.service.mjs +0 -67
- package/esm2020/google-maps/google-maps-feature-helpers.mjs +0 -223
- package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.mjs +0 -209
- package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.directive.mjs +0 -165
- package/esm2020/google-maps/google-maps-recenter-button-control/google-maps-recenter-button-control.component.mjs +0 -58
- package/esm2020/google-maps/google-maps-upload-button-control/google-maps-upload-button-control.component.mjs +0 -115
- package/esm2020/google-maps/google-maps.module.mjs +0 -72
- package/esm2020/google-maps/google-maps.service.mjs +0 -429
- package/esm2020/google-maps/map-control.component.mjs +0 -66
- package/esm2020/google-maps/map-controls-service.mjs +0 -4
- package/esm2020/google-maps/map-file-drop/map-file-drop.component.mjs +0 -128
- package/esm2020/google-maps/map-value-manager.service.mjs +0 -48
- package/esm2020/google-maps/public-api.mjs +0 -18
- package/esm2020/google-maps/theseam-ui-common-google-maps.mjs +0 -5
- package/esm2020/graphql/datatable/create-page-info-observable.mjs +0 -38
- package/esm2020/graphql/datatable/datatable-graphql-query-ref.mjs +0 -212
- package/esm2020/graphql/datatable/datatable-graphql.service.mjs +0 -50
- package/esm2020/graphql/datatable/datatable-helpers.mjs +0 -175
- package/esm2020/graphql/datatable/get-page-info.mjs +0 -10
- package/esm2020/graphql/datatable/index.mjs +0 -10
- package/esm2020/graphql/datatable/map-filter-states.mjs +0 -63
- package/esm2020/graphql/datatable/map-page-info.mjs +0 -14
- package/esm2020/graphql/datatable/map-search-date-columns-data-filter-state-to-gql.mjs +0 -139
- package/esm2020/graphql/datatable/map-search-numeric-columns-data-filter-state-to-gql.mjs +0 -75
- package/esm2020/graphql/datatable/map-search-text-columns-data-filter-state-to-gql.mjs +0 -44
- package/esm2020/graphql/datatable/mapper-context.mjs +0 -2
- package/esm2020/graphql/models/direction.mjs +0 -8
- package/esm2020/graphql/models/gql-datatable-accessor.mjs +0 -2
- package/esm2020/graphql/models/hint-definition.mjs +0 -2
- package/esm2020/graphql/models/hint-transform-operation.mjs +0 -2
- package/esm2020/graphql/models/hint-transformer.mjs +0 -2
- package/esm2020/graphql/models/hints-kind.mjs +0 -9
- package/esm2020/graphql/models/hints-token.mjs +0 -2
- package/esm2020/graphql/models/index.mjs +0 -10
- package/esm2020/graphql/models/query-processing-config.mjs +0 -2
- package/esm2020/graphql/models/variable.mjs +0 -7
- package/esm2020/graphql/public-api.mjs +0 -3
- package/esm2020/graphql/theseam-ui-common-graphql.mjs +0 -5
- package/esm2020/graphql/utils/contains-variable.mjs +0 -14
- package/esm2020/graphql/utils/gql-var.mjs +0 -4
- package/esm2020/graphql/utils/hints-tokens-containing-hint.mjs +0 -4
- package/esm2020/graphql/utils/index.mjs +0 -11
- package/esm2020/graphql/utils/inline-variables.mjs +0 -51
- package/esm2020/graphql/utils/parse-comments.mjs +0 -24
- package/esm2020/graphql/utils/parse-hints.mjs +0 -108
- package/esm2020/graphql/utils/remove-variable-definition.mjs +0 -14
- package/esm2020/graphql/utils/remove-variable-definitions-not-defined.mjs +0 -19
- package/esm2020/graphql/utils/remove-variable.mjs +0 -22
- package/esm2020/graphql/utils/to-gql.mjs +0 -40
- package/esm2020/icon/icon/icon.component.mjs +0 -139
- package/esm2020/icon/icon-btn/icon-btn.component.mjs +0 -183
- package/esm2020/icon/icon-notification/icon-notification.component.mjs +0 -124
- package/esm2020/icon/icon.mjs +0 -2
- package/esm2020/icon/icon.module.mjs +0 -38
- package/esm2020/icon/public-api.mjs +0 -7
- package/esm2020/icon/theseam-ui-common-icon.mjs +0 -5
- package/esm2020/icon/utils/file-extension-icon.mjs +0 -33
- package/esm2020/icon/utils/get-known-icon.mjs +0 -82
- package/esm2020/icon/utils/index.mjs +0 -3
- package/esm2020/layout/breakpoint-aliases.mjs +0 -11
- package/esm2020/layout/layout.module.mjs +0 -25
- package/esm2020/layout/layout.service.mjs +0 -32
- package/esm2020/layout/observe-media-query.mjs +0 -41
- package/esm2020/layout/public-api.mjs +0 -5
- package/esm2020/layout/theseam-ui-common-layout.mjs +0 -5
- package/esm2020/loading/loading/loading.component.mjs +0 -26
- package/esm2020/loading/loading-overlay.service.mjs +0 -58
- package/esm2020/loading/loading-themes.mjs +0 -18
- package/esm2020/loading/loading.models.mjs +0 -2
- package/esm2020/loading/loading.module.mjs +0 -41
- package/esm2020/loading/public-api.mjs +0 -6
- package/esm2020/loading/theseam-ui-common-loading.mjs +0 -5
- package/esm2020/menu/menu-animations.mjs +0 -58
- package/esm2020/menu/menu-divider.component.mjs +0 -13
- package/esm2020/menu/menu-footer/menu-footer.component.mjs +0 -32
- package/esm2020/menu/menu-footer-action/menu-footer-action.component.mjs +0 -54
- package/esm2020/menu/menu-header/menu-header.component.mjs +0 -32
- package/esm2020/menu/menu-item.component.mjs +0 -158
- package/esm2020/menu/menu-panel-token.mjs +0 -6
- package/esm2020/menu/menu-panel.mjs +0 -2
- package/esm2020/menu/menu-toggle.directive.mjs +0 -427
- package/esm2020/menu/menu.component.mjs +0 -200
- package/esm2020/menu/menu.module.mjs +0 -67
- package/esm2020/menu/public-api.mjs +0 -16
- package/esm2020/menu/testing/menu-footer.harness.mjs +0 -28
- package/esm2020/menu/testing/menu-header.harness.mjs +0 -23
- package/esm2020/menu/testing/menu-item.harness.mjs +0 -59
- package/esm2020/menu/testing/menu.harness.mjs +0 -163
- package/esm2020/menu/testing/utils.mjs +0 -13
- package/esm2020/menu/theseam-ui-common-menu.mjs +0 -5
- package/esm2020/modal/directives/modal-close.directive.mjs +0 -74
- package/esm2020/modal/directives/modal-footer-tpl.directive.mjs +0 -16
- package/esm2020/modal/directives/modal-header-icon-tpl.directive.mjs +0 -16
- package/esm2020/modal/directives/modal-header-title-tpl.directive.mjs +0 -16
- package/esm2020/modal/directives/modal-title.directive.mjs +0 -20
- package/esm2020/modal/directives/modal.directive.mjs +0 -25
- package/esm2020/modal/modal/modal.component.mjs +0 -162
- package/esm2020/modal/modal-body/modal-body.component.mjs +0 -21
- package/esm2020/modal/modal-config.mjs +0 -47
- package/esm2020/modal/modal-container/modal-container.component.mjs +0 -245
- package/esm2020/modal/modal-footer/modal-footer.component.mjs +0 -17
- package/esm2020/modal/modal-header/modal-header.component.mjs +0 -28
- package/esm2020/modal/modal-injectors.mjs +0 -23
- package/esm2020/modal/modal-ref.mjs +0 -171
- package/esm2020/modal/modal-utils.mjs +0 -14
- package/esm2020/modal/modal.models.mjs +0 -3
- package/esm2020/modal/modal.module.mjs +0 -127
- package/esm2020/modal/modal.service.mjs +0 -352
- package/esm2020/modal/public-api.mjs +0 -20
- package/esm2020/modal/route-modal/route-modal.component.mjs +0 -62
- package/esm2020/modal/theseam-ui-common-modal.mjs +0 -5
- package/esm2020/models/component-type.mjs +0 -4
- package/esm2020/models/http-status-codes.mjs +0 -20
- package/esm2020/models/public-api.mjs +0 -8
- package/esm2020/models/size-prefixes.mjs +0 -2
- package/esm2020/models/size-types.mjs +0 -2
- package/esm2020/models/theme-names.mjs +0 -26
- package/esm2020/models/theme-prefixes.mjs +0 -2
- package/esm2020/models/theme-types.mjs +0 -2
- package/esm2020/models/theseam-ui-common-models.mjs +0 -5
- package/esm2020/navigation-reload/navigation-reload.config.mjs +0 -2
- package/esm2020/navigation-reload/navigation-reload.provider.mjs +0 -14
- package/esm2020/navigation-reload/navigation-reload.service.mjs +0 -54
- package/esm2020/navigation-reload/public-api.mjs +0 -4
- package/esm2020/navigation-reload/theseam-ui-common-navigation-reload.mjs +0 -5
- package/esm2020/popover/popover/popover.component.mjs +0 -160
- package/esm2020/popover/popover-animations.mjs +0 -46
- package/esm2020/popover/popover.directive.mjs +0 -264
- package/esm2020/popover/popover.module.mjs +0 -40
- package/esm2020/popover/public-api.mjs +0 -5
- package/esm2020/popover/theseam-ui-common-popover.mjs +0 -5
- package/esm2020/progress/progress-circle/progress-circle.component.mjs +0 -65
- package/esm2020/progress/progress.module.mjs +0 -24
- package/esm2020/progress/public-api.mjs +0 -3
- package/esm2020/progress/theseam-ui-common-progress.mjs +0 -5
- package/esm2020/public_api.mjs +0 -2
- package/esm2020/rich-text/public-api.mjs +0 -5
- package/esm2020/rich-text/rich-text/rich-text.component.mjs +0 -594
- package/esm2020/rich-text/rich-text.module.mjs +0 -32
- package/esm2020/rich-text/theseam-ui-common-rich-text.mjs +0 -5
- package/esm2020/rich-text/utils/models.mjs +0 -24
- package/esm2020/rich-text/utils/utils.mjs +0 -123
- package/esm2020/scrollbar/overlay-scrollbar.directive.mjs +0 -60
- package/esm2020/scrollbar/overlay-scrollbars-config-model.mjs +0 -2
- package/esm2020/scrollbar/overlay-scrollbars-config.mjs +0 -13
- package/esm2020/scrollbar/overlay-scrollbars.service.mjs +0 -83
- package/esm2020/scrollbar/public-api.mjs +0 -6
- package/esm2020/scrollbar/scrollbar.module.mjs +0 -30
- package/esm2020/scrollbar/theseam-ui-common-scrollbar.mjs +0 -5
- package/esm2020/services/asset-loader.service.mjs +0 -32
- package/esm2020/services/font-loader.service.mjs +0 -83
- package/esm2020/services/preferences/preferences-accessor.mjs +0 -2
- package/esm2020/services/preferences/preferences-manager.service.mjs +0 -69
- package/esm2020/services/preferences/preferences-record.mjs +0 -72
- package/esm2020/services/preferences/preferences.models.mjs +0 -2
- package/esm2020/services/public-api.mjs +0 -8
- package/esm2020/services/router-helpers.service.mjs +0 -25
- package/esm2020/services/theseam-ui-common-services.mjs +0 -5
- package/esm2020/shared/components/index.mjs +0 -2
- package/esm2020/shared/components/password-input-reveal/password-input-reveal.component.mjs +0 -49
- package/esm2020/shared/directives/auto-focus.directive.mjs +0 -54
- package/esm2020/shared/directives/click-outside.directive.mjs +0 -52
- package/esm2020/shared/directives/disable-control.directive.mjs +0 -27
- package/esm2020/shared/directives/elem-resized.directive.mjs +0 -28
- package/esm2020/shared/directives/hover-class-toggle.directive.mjs +0 -88
- package/esm2020/shared/directives/hover-class.directive.mjs +0 -82
- package/esm2020/shared/directives/index.mjs +0 -9
- package/esm2020/shared/directives/ng-select-extra.directive.mjs +0 -184
- package/esm2020/shared/directives/ngx-quill-extra.directive.mjs +0 -61
- package/esm2020/shared/pipes/index.mjs +0 -3
- package/esm2020/shared/pipes/mask-chars.pipe.mjs +0 -25
- package/esm2020/shared/pipes/truncate.pipe.mjs +0 -23
- package/esm2020/shared/public-api.mjs +0 -5
- package/esm2020/shared/shared.module.mjs +0 -93
- package/esm2020/shared/theseam-ui-common-shared.mjs +0 -5
- package/esm2020/storage/local-storage.service.mjs +0 -78
- package/esm2020/storage/localstorage-memory.mjs +0 -64
- package/esm2020/storage/public-api.mjs +0 -2
- package/esm2020/storage/theseam-ui-common-storage.mjs +0 -5
- package/esm2020/story-helpers/arg-type-helpers.mjs +0 -31
- package/esm2020/story-helpers/args-to-tpl.mjs +0 -83
- package/esm2020/story-helpers/initial-route-factory.mjs +0 -4
- package/esm2020/story-helpers/initial-route.service.mjs +0 -27
- package/esm2020/story-helpers/on-story-bootstrapped-exec.mjs +0 -61
- package/esm2020/story-helpers/on-story-bootstrapped-trigger.mjs +0 -39
- package/esm2020/story-helpers/public-api.mjs +0 -16
- package/esm2020/story-helpers/route-button.mjs +0 -12
- package/esm2020/story-helpers/routes-arg-type.mjs +0 -19
- package/esm2020/story-helpers/story-empty-with-route.component.mjs +0 -12
- package/esm2020/story-helpers/story-empty.component.mjs +0 -11
- package/esm2020/story-helpers/story-helper-components.module.mjs +0 -42
- package/esm2020/story-helpers/story-initial-route.mjs +0 -28
- package/esm2020/story-helpers/story-modal-container.component.mjs +0 -90
- package/esm2020/story-helpers/story-preferences-accessor.service.mjs +0 -34
- package/esm2020/story-helpers/story-toastr.service.mjs +0 -36
- package/esm2020/story-helpers/theseam-ui-common-story-helpers.mjs +0 -5
- package/esm2020/tabbed/directives/tabbed-tab-content.directive.mjs +0 -17
- package/esm2020/tabbed/directives/tabbed-tab.directive.mjs +0 -37
- package/esm2020/tabbed/public-api.mjs +0 -9
- package/esm2020/tabbed/tabbed-content/tabbed-content.component.mjs +0 -16
- package/esm2020/tabbed/tabbed-item/tabbed-item.component.mjs +0 -33
- package/esm2020/tabbed/tabbed-models.mjs +0 -2
- package/esm2020/tabbed/tabbed.component.mjs +0 -119
- package/esm2020/tabbed/tabbed.module.mjs +0 -54
- package/esm2020/tabbed/tabbed.service.mjs +0 -30
- package/esm2020/tabbed/theseam-ui-common-tabbed.mjs +0 -5
- package/esm2020/table/public-api.mjs +0 -6
- package/esm2020/table/table/table.component.mjs +0 -181
- package/esm2020/table/table-cell-tpl.directive.mjs +0 -17
- package/esm2020/table/table-column-header-tpl.directive.mjs +0 -17
- package/esm2020/table/table-column.component.mjs +0 -68
- package/esm2020/table/table.module.mjs +0 -48
- package/esm2020/table/theseam-ui-common-table.mjs +0 -5
- package/esm2020/table-cell-type/public-api.mjs +0 -12
- package/esm2020/table-cell-type/services/table-cell-types-helpers.service.mjs +0 -67
- package/esm2020/table-cell-type/table-cell-type-action.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-column.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-config.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-export-props.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-manifest-provider.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-models.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-name.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-selector.component.mjs +0 -100
- package/esm2020/table-cell-type/table-cell-type-tokens.mjs +0 -4
- package/esm2020/table-cell-type/table-cell-type.module.mjs +0 -29
- package/esm2020/table-cell-type/theseam-ui-common-table-cell-type.mjs +0 -5
- package/esm2020/table-cell-types/public-api.mjs +0 -23
- package/esm2020/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.mjs +0 -86
- package/esm2020/table-cell-types/table-cell-type-currency/table-cell-type-currency.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-date/table-cell-type-date-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-date/table-cell-type-date.component.mjs +0 -52
- package/esm2020/table-cell-types/table-cell-type-date/table-cell-type-date.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.mjs +0 -84
- package/esm2020/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.mjs +0 -175
- package/esm2020/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.mjs +0 -82
- package/esm2020/table-cell-types/table-cell-type-integer/table-cell-type-integer.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-manifests.mjs +0 -92
- package/esm2020/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.mjs +0 -67
- package/esm2020/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.mjs +0 -168
- package/esm2020/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.mjs +0 -77
- package/esm2020/table-cell-types/table-cell-type-string/table-cell-type-string-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-string/table-cell-type-string.component.mjs +0 -197
- package/esm2020/table-cell-types/table-cell-types.module.mjs +0 -118
- package/esm2020/table-cell-types/theseam-ui-common-table-cell-types.mjs +0 -5
- package/esm2020/tel-input/intl-tel-input.mjs +0 -55
- package/esm2020/tel-input/models/index.mjs +0 -3
- package/esm2020/tel-input/models/tel-input-country-data.mjs +0 -2
- package/esm2020/tel-input/models/tel-input-number-format-name.mjs +0 -8
- package/esm2020/tel-input/phone-number.pipe.mjs +0 -49
- package/esm2020/tel-input/public-api.mjs +0 -11
- package/esm2020/tel-input/tel-input/tel-input.component.mjs +0 -198
- package/esm2020/tel-input/tel-input-constants.mjs +0 -18
- package/esm2020/tel-input/tel-input-validator.mjs +0 -27
- package/esm2020/tel-input/tel-input.directive.mjs +0 -209
- package/esm2020/tel-input/tel-input.module.mjs +0 -43
- package/esm2020/tel-input/testing/tel-input.harness.mjs +0 -49
- package/esm2020/tel-input/theseam-ui-common-tel-input.mjs +0 -5
- package/esm2020/tel-input/utils/add-country-code.mjs +0 -23
- package/esm2020/tel-input/utils/coerce-phone-number-format.mjs +0 -22
- package/esm2020/tel-input/utils/get-country-code.mjs +0 -9
- package/esm2020/tel-input/utils/get-dial-code.mjs +0 -45
- package/esm2020/tel-input/utils/get-global-intl-tel-input-globals.mjs +0 -4
- package/esm2020/tel-input/utils/get-global-intl-tel-input-utils.mjs +0 -4
- package/esm2020/tel-input/utils/get-intl-tel-input-utils.mjs +0 -17
- package/esm2020/tel-input/utils/get-validation-error-message.mjs +0 -12
- package/esm2020/tel-input/utils/index.mjs +0 -10
- package/esm2020/tel-input/utils/process-country-codes.mjs +0 -46
- package/esm2020/testing/current-tick-time.mjs +0 -16
- package/esm2020/testing/fake-toastr.mjs +0 -29
- package/esm2020/testing/get-harness.mjs +0 -19
- package/esm2020/testing/harnesses/ng-select-dropdown.harness.mjs +0 -39
- package/esm2020/testing/harnesses/ng-select-option.harness.mjs +0 -26
- package/esm2020/testing/harnesses/ng-select.harness.mjs +0 -104
- package/esm2020/testing/public-api.mjs +0 -10
- package/esm2020/testing/render-story.mjs +0 -10
- package/esm2020/testing/story-expect.mjs +0 -40
- package/esm2020/testing/theseam-ui-common-testing.mjs +0 -5
- package/esm2020/testing/tick-helper.mjs +0 -74
- package/esm2020/theseam-ui-common.mjs +0 -5
- package/esm2020/tiled-select/components/tiled-select/tiled-select.component.mjs +0 -214
- package/esm2020/tiled-select/components/tiled-select-tile/tiled-select-tile.component.mjs +0 -159
- package/esm2020/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.mjs +0 -63
- package/esm2020/tiled-select/directives/tiled-select-tile-icon-tpl.directive.mjs +0 -17
- package/esm2020/tiled-select/directives/tiled-select-tile-label-tpl.directive.mjs +0 -16
- package/esm2020/tiled-select/directives/tiled-select-tile-overlay.directive.mjs +0 -19
- package/esm2020/tiled-select/public-api.mjs +0 -10
- package/esm2020/tiled-select/testing/index.mjs +0 -3
- package/esm2020/tiled-select/testing/tiled-select-harness.mjs +0 -21
- package/esm2020/tiled-select/testing/tiled-select-tile-harness.mjs +0 -23
- package/esm2020/tiled-select/theseam-ui-common-tiled-select.mjs +0 -5
- package/esm2020/tiled-select/tiled-select.models.mjs +0 -2
- package/esm2020/tiled-select/tiled-select.module.mjs +0 -51
- package/esm2020/toggle-edit/models/can-toggle-edit.mjs +0 -2
- package/esm2020/toggle-edit/models/index.mjs +0 -3
- package/esm2020/toggle-edit/models/toggle-edit-ref.mjs +0 -2
- package/esm2020/toggle-edit/public-api.mjs +0 -7
- package/esm2020/toggle-edit/theseam-ui-common-toggle-edit.mjs +0 -5
- package/esm2020/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.mjs +0 -11
- package/esm2020/toggle-edit/toggle-edit-display-tpl.directive.mjs +0 -16
- package/esm2020/toggle-edit/toggle-edit-keyboard-listener.service.mjs +0 -57
- package/esm2020/toggle-edit/toggle-edit.component.mjs +0 -414
- package/esm2020/toggle-edit/toggle-edit.module.mjs +0 -64
- package/esm2020/toggle-group/public-api.mjs +0 -4
- package/esm2020/toggle-group/theseam-ui-common-toggle-group.mjs +0 -5
- package/esm2020/toggle-group/toggle-group-option.directive.mjs +0 -47
- package/esm2020/toggle-group/toggle-group.directive.mjs +0 -199
- package/esm2020/toggle-group/toggle-group.module.mjs +0 -33
- package/esm2020/unsaved-changes-dialog/public-api.mjs +0 -5
- package/esm2020/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.mjs +0 -5
- package/esm2020/unsaved-changes-dialog/unsaved-changes-can-deactivate.mjs +0 -30
- package/esm2020/unsaved-changes-dialog/unsaved-changes-dialog.component.mjs +0 -21
- package/esm2020/unsaved-changes-dialog/unsaved-changes-dialog.guard.mjs +0 -38
- package/esm2020/unsaved-changes-dialog/unsaved-changes-dialog.module.mjs +0 -17
- package/esm2020/utils/array-move.mjs +0 -62
- package/esm2020/utils/calc-percentage.mjs +0 -4
- package/esm2020/utils/cdk/get-closest-widget-cdk-drag.mjs +0 -18
- package/esm2020/utils/create-padding.mjs +0 -17
- package/esm2020/utils/file-utils.mjs +0 -49
- package/esm2020/utils/form/get-control-name.mjs +0 -31
- package/esm2020/utils/form/get-control-path.mjs +0 -38
- package/esm2020/utils/form/has-required-control.mjs +0 -50
- package/esm2020/utils/form/is-empty-input-value.mjs +0 -6
- package/esm2020/utils/form/observe-control-is-different.mjs +0 -18
- package/esm2020/utils/form/observe-control-status.mjs +0 -17
- package/esm2020/utils/form/observe-control-valid.mjs +0 -30
- package/esm2020/utils/form/observe-control-value-change.mjs +0 -10
- package/esm2020/utils/form/observe-control-value.mjs +0 -11
- package/esm2020/utils/form/wait-on-non-pending-status.mjs +0 -18
- package/esm2020/utils/fractional-digits-count.mjs +0 -19
- package/esm2020/utils/geo-json/close-polygons.mjs +0 -38
- package/esm2020/utils/geo-json/coerce-feature-collection.mjs +0 -44
- package/esm2020/utils/geo-json/geo-json-to-area.mjs +0 -11
- package/esm2020/utils/geo-json/is-feature-collection.validator.mjs +0 -21
- package/esm2020/utils/geo-json/is-only-geometry-types.mjs +0 -23
- package/esm2020/utils/geo-json/is-only-geometry-types.validator.mjs +0 -32
- package/esm2020/utils/geo-json/merge-polygons.mjs +0 -35
- package/esm2020/utils/geo-json/min-max-points.validator.mjs +0 -56
- package/esm2020/utils/geo-json/no-empty-feature-collection.validator.mjs +0 -24
- package/esm2020/utils/geo-json/no-inner-rings.validator.mjs +0 -63
- package/esm2020/utils/geo-json/no-kinks.validator.mjs +0 -39
- package/esm2020/utils/geo-json/read-geo-file.mjs +0 -93
- package/esm2020/utils/geo-json/split-multi-polygons.mjs +0 -29
- package/esm2020/utils/get-attribute.mjs +0 -7
- package/esm2020/utils/has-attribute.mjs +0 -7
- package/esm2020/utils/has-property.mjs +0 -7
- package/esm2020/utils/input-masks.mjs +0 -2
- package/esm2020/utils/is-absolute-url.mjs +0 -17
- package/esm2020/utils/is-null-or-undefined-or-empty.mjs +0 -4
- package/esm2020/utils/is-null-or-undefined.mjs +0 -4
- package/esm2020/utils/is-numeric.mjs +0 -4
- package/esm2020/utils/load-style-sheet.mjs +0 -14
- package/esm2020/utils/load-style.mjs +0 -13
- package/esm2020/utils/not-null-or-undefined-or-empty.mjs +0 -4
- package/esm2020/utils/not-null-or-undefined.mjs +0 -4
- package/esm2020/utils/obj-utils.mjs +0 -26
- package/esm2020/utils/observe-query-list.mjs +0 -5
- package/esm2020/utils/operators/index.mjs +0 -3
- package/esm2020/utils/operators/map-each.mjs +0 -6
- package/esm2020/utils/operators/tap-first.mjs +0 -14
- package/esm2020/utils/pad-end.mjs +0 -9
- package/esm2020/utils/pad-start.mjs +0 -9
- package/esm2020/utils/polling-ticker.mjs +0 -121
- package/esm2020/utils/public-api.mjs +0 -54
- package/esm2020/utils/refreshable.mjs +0 -65
- package/esm2020/utils/router/index.mjs +0 -7
- package/esm2020/utils/router/is-empty-url-route.mjs +0 -4
- package/esm2020/utils/router/leaf-child-route.mjs +0 -8
- package/esm2020/utils/router/operators/activated-routes-with-data-property.mjs +0 -11
- package/esm2020/utils/router/route-snapshot-path-full.mjs +0 -5
- package/esm2020/utils/router/route-snapshot-path-relative.mjs +0 -4
- package/esm2020/utils/router/will-have-data-prop.mjs +0 -10
- package/esm2020/utils/subscriber-count.mjs +0 -45
- package/esm2020/utils/theseam-ui-common-utils.mjs +0 -5
- package/esm2020/utils/toggle-attribute.mjs +0 -36
- package/esm2020/utils/wait-on-condition-async.mjs +0 -30
- package/esm2020/utils/wrap-into-observable.mjs +0 -8
- package/esm2020/validators/decimal.validator.mjs +0 -25
- package/esm2020/validators/email-exists.validator.mjs +0 -18
- package/esm2020/validators/integer.validator.mjs +0 -25
- package/esm2020/validators/phone-length.validator.mjs +0 -8
- package/esm2020/validators/public-api.mjs +0 -6
- package/esm2020/validators/tax-id.validator.mjs +0 -13
- package/esm2020/validators/theseam-ui-common-validators.mjs +0 -5
- package/esm2020/vertical-list-filter/public-api.mjs +0 -3
- package/esm2020/vertical-list-filter/testing/index.mjs +0 -2
- package/esm2020/vertical-list-filter/testing/vertical-list-filter.harness.mjs +0 -28
- package/esm2020/vertical-list-filter/theseam-ui-common-vertical-list-filter.mjs +0 -5
- package/esm2020/vertical-list-filter/vertical-list-filter.component.mjs +0 -52
- package/esm2020/viewers/html-template-viewer/html-template-viewer.component.mjs +0 -219
- package/esm2020/viewers/html-template-viewer/html-template-viewer.module.mjs +0 -32
- package/esm2020/viewers/html-template-viewer/index.mjs +0 -3
- package/esm2020/viewers/pdf-viewer/index.mjs +0 -4
- package/esm2020/viewers/pdf-viewer/pdf-page/pdf-page.component.mjs +0 -143
- package/esm2020/viewers/pdf-viewer/pdf-renderer.service.mjs +0 -28
- package/esm2020/viewers/pdf-viewer/pdf-viewer.component.mjs +0 -164
- package/esm2020/viewers/pdf-viewer/pdf-viewer.module.mjs +0 -33
- package/esm2020/viewers/public-api.mjs +0 -3
- package/esm2020/viewers/theseam-ui-common-viewers.mjs +0 -5
- package/esm2020/widget/directives/widget-drag-handle.directive.mjs +0 -150
- package/esm2020/widget/directives/widget-icon-tpl.directive.mjs +0 -16
- package/esm2020/widget/directives/widget-title-tpl.directive.mjs +0 -16
- package/esm2020/widget/preferences/widget-preferences.models.mjs +0 -5
- package/esm2020/widget/preferences/widget-preferences.service.mjs +0 -78
- package/esm2020/widget/preferences/widget-preferences.token.mjs +0 -3
- package/esm2020/widget/public-api.mjs +0 -42
- package/esm2020/widget/theseam-ui-common-widget.mjs +0 -5
- package/esm2020/widget/widget/widget.component.mjs +0 -214
- package/esm2020/widget/widget-content-components/widget-button-group/widget-button-group.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-button-group/widget-button-group.module.mjs +0 -30
- package/esm2020/widget/widget-content-components/widget-content-header/widget-content-header.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-content-header/widget-content-header.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-description/widget-description.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-description/widget-description.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-empty-label/widget-empty-label.component.mjs +0 -39
- package/esm2020/widget/widget-content-components/widget-empty-label/widget-empty-label.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-footer-link/widget-footer-link.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-footer-link/widget-footer-link.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-footer-text/widget-footer-text.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-footer-text/widget-footer-text.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-header-badge/widget-header-badge.component.mjs +0 -22
- package/esm2020/widget/widget-content-components/widget-header-badge/widget-header-badge.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.mjs +0 -17
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.mjs +0 -124
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group.component.mjs +0 -14
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group.module.mjs +0 -46
- package/esm2020/widget/widget-content-components/widget-table/widget-table.component.mjs +0 -38
- package/esm2020/widget/widget-content-components/widget-table/widget-table.module.mjs +0 -32
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.mjs +0 -13
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.mjs +0 -41
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.mjs +0 -17
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile.component.mjs +0 -122
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile.module.mjs +0 -48
- package/esm2020/widget/widget-content-components/widget-tile-list/widget-tile-list.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-tile-list/widget-tile-list.module.mjs +0 -27
- package/esm2020/widget/widget-footer/widget-footer.component.mjs +0 -11
- package/esm2020/widget/widget-registry.models.mjs +0 -2
- package/esm2020/widget/widget-registry.service.mjs +0 -56
- package/esm2020/widget/widget-token.mjs +0 -5
- package/esm2020/widget/widget.models.mjs +0 -2
- package/esm2020/widget/widget.module.mjs +0 -125
- package/fesm2015/theseam-ui-common-asset-reader.mjs +0 -186
- package/fesm2015/theseam-ui-common-asset-reader.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-breadcrumbs.mjs +0 -201
- package/fesm2015/theseam-ui-common-breadcrumbs.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-buttons.mjs +0 -492
- package/fesm2015/theseam-ui-common-buttons.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-card.mjs +0 -153
- package/fesm2015/theseam-ui-common-card.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-carousel.mjs +0 -266
- package/fesm2015/theseam-ui-common-carousel.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-checkbox.mjs +0 -391
- package/fesm2015/theseam-ui-common-checkbox.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-confirm-dialog.mjs +0 -192
- package/fesm2015/theseam-ui-common-confirm-dialog.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-core.mjs +0 -225
- package/fesm2015/theseam-ui-common-core.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-data-exporter.mjs +0 -93
- package/fesm2015/theseam-ui-common-data-exporter.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-data-filters.mjs +0 -508
- package/fesm2015/theseam-ui-common-data-filters.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-datatable-dynamic.mjs +0 -998
- package/fesm2015/theseam-ui-common-datatable-dynamic.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-datatable.mjs +0 -3685
- package/fesm2015/theseam-ui-common-datatable.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-dynamic-component-loader.mjs +0 -135
- package/fesm2015/theseam-ui-common-dynamic-component-loader.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-dynamic.mjs +0 -722
- package/fesm2015/theseam-ui-common-dynamic.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-footer-bar.mjs +0 -35
- package/fesm2015/theseam-ui-common-footer-bar.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-form-field-error.mjs +0 -479
- package/fesm2015/theseam-ui-common-form-field-error.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-form-field.mjs +0 -670
- package/fesm2015/theseam-ui-common-form-field.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-framework.mjs +0 -3891
- package/fesm2015/theseam-ui-common-framework.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-google-maps.mjs +0 -2083
- package/fesm2015/theseam-ui-common-google-maps.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-graphql.mjs +0 -1115
- package/fesm2015/theseam-ui-common-graphql.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-icon.mjs +0 -587
- package/fesm2015/theseam-ui-common-icon.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-layout.mjs +0 -101
- package/fesm2015/theseam-ui-common-layout.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-loading.mjs +0 -139
- package/fesm2015/theseam-ui-common-loading.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-menu.mjs +0 -1361
- package/fesm2015/theseam-ui-common-menu.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-modal.mjs +0 -1378
- package/fesm2015/theseam-ui-common-modal.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-models.mjs +0 -52
- package/fesm2015/theseam-ui-common-models.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-navigation-reload.mjs +0 -75
- package/fesm2015/theseam-ui-common-navigation-reload.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-popover.mjs +0 -506
- package/fesm2015/theseam-ui-common-popover.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-progress.mjs +0 -93
- package/fesm2015/theseam-ui-common-progress.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-rich-text.mjs +0 -767
- package/fesm2015/theseam-ui-common-rich-text.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-scrollbar.mjs +0 -184
- package/fesm2015/theseam-ui-common-scrollbar.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-services.mjs +0 -273
- package/fesm2015/theseam-ui-common-services.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-shared.mjs +0 -739
- package/fesm2015/theseam-ui-common-shared.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-storage.mjs +0 -148
- package/fesm2015/theseam-ui-common-storage.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-story-helpers.mjs +0 -514
- package/fesm2015/theseam-ui-common-story-helpers.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-tabbed.mjs +0 -288
- package/fesm2015/theseam-ui-common-tabbed.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-table-cell-type.mjs +0 -201
- package/fesm2015/theseam-ui-common-table-cell-type.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-table-cell-types.mjs +0 -1134
- package/fesm2015/theseam-ui-common-table-cell-types.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-table.mjs +0 -320
- package/fesm2015/theseam-ui-common-table.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-tel-input.mjs +0 -841
- package/fesm2015/theseam-ui-common-tel-input.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-testing.mjs +0 -395
- package/fesm2015/theseam-ui-common-testing.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-tiled-select.mjs +0 -571
- package/fesm2015/theseam-ui-common-tiled-select.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-toggle-edit.mjs +0 -560
- package/fesm2015/theseam-ui-common-toggle-edit.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-toggle-group.mjs +0 -281
- package/fesm2015/theseam-ui-common-toggle-group.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-unsaved-changes-dialog.mjs +0 -106
- package/fesm2015/theseam-ui-common-unsaved-changes-dialog.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-utils.mjs +0 -1387
- package/fesm2015/theseam-ui-common-utils.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-validators.mjs +0 -94
- package/fesm2015/theseam-ui-common-validators.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-vertical-list-filter.mjs +0 -96
- package/fesm2015/theseam-ui-common-vertical-list-filter.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-viewers.mjs +0 -602
- package/fesm2015/theseam-ui-common-viewers.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-widget.mjs +0 -1395
- package/fesm2015/theseam-ui-common-widget.mjs.map +0 -1
- package/fesm2015/theseam-ui-common.mjs +0 -6
- package/fesm2015/theseam-ui-common.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-asset-reader.mjs +0 -184
- package/fesm2020/theseam-ui-common-asset-reader.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-breadcrumbs.mjs +0 -201
- package/fesm2020/theseam-ui-common-breadcrumbs.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-buttons.mjs +0 -466
- package/fesm2020/theseam-ui-common-buttons.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-card.mjs +0 -151
- package/fesm2020/theseam-ui-common-card.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-carousel.mjs +0 -266
- package/fesm2020/theseam-ui-common-carousel.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-checkbox.mjs +0 -373
- package/fesm2020/theseam-ui-common-checkbox.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-confirm-dialog.mjs +0 -192
- package/fesm2020/theseam-ui-common-confirm-dialog.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-core.mjs +0 -233
- package/fesm2020/theseam-ui-common-core.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-data-exporter.mjs +0 -93
- package/fesm2020/theseam-ui-common-data-exporter.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-data-filters.mjs +0 -500
- package/fesm2020/theseam-ui-common-data-filters.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-datatable-dynamic.mjs +0 -986
- package/fesm2020/theseam-ui-common-datatable-dynamic.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-datatable.mjs +0 -3662
- package/fesm2020/theseam-ui-common-datatable.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-dynamic-component-loader.mjs +0 -133
- package/fesm2020/theseam-ui-common-dynamic-component-loader.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-dynamic.mjs +0 -689
- package/fesm2020/theseam-ui-common-dynamic.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-footer-bar.mjs +0 -35
- package/fesm2020/theseam-ui-common-footer-bar.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-form-field-error.mjs +0 -483
- package/fesm2020/theseam-ui-common-form-field-error.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-form-field.mjs +0 -659
- package/fesm2020/theseam-ui-common-form-field.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-framework.mjs +0 -3883
- package/fesm2020/theseam-ui-common-framework.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-google-maps.mjs +0 -2072
- package/fesm2020/theseam-ui-common-google-maps.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-graphql.mjs +0 -1121
- package/fesm2020/theseam-ui-common-graphql.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-icon.mjs +0 -587
- package/fesm2020/theseam-ui-common-icon.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-layout.mjs +0 -111
- package/fesm2020/theseam-ui-common-layout.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-loading.mjs +0 -138
- package/fesm2020/theseam-ui-common-loading.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-menu.mjs +0 -1288
- package/fesm2020/theseam-ui-common-menu.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-modal.mjs +0 -1370
- package/fesm2020/theseam-ui-common-modal.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-models.mjs +0 -55
- package/fesm2020/theseam-ui-common-models.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-navigation-reload.mjs +0 -74
- package/fesm2020/theseam-ui-common-navigation-reload.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-popover.mjs +0 -503
- package/fesm2020/theseam-ui-common-popover.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-progress.mjs +0 -93
- package/fesm2020/theseam-ui-common-progress.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-rich-text.mjs +0 -773
- package/fesm2020/theseam-ui-common-rich-text.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-scrollbar.mjs +0 -184
- package/fesm2020/theseam-ui-common-scrollbar.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-services.mjs +0 -274
- package/fesm2020/theseam-ui-common-services.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-shared.mjs +0 -733
- package/fesm2020/theseam-ui-common-shared.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-storage.mjs +0 -148
- package/fesm2020/theseam-ui-common-storage.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-story-helpers.mjs +0 -512
- package/fesm2020/theseam-ui-common-story-helpers.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-tabbed.mjs +0 -286
- package/fesm2020/theseam-ui-common-tabbed.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-table-cell-type.mjs +0 -198
- package/fesm2020/theseam-ui-common-table-cell-type.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-table-cell-types.mjs +0 -1109
- package/fesm2020/theseam-ui-common-table-cell-types.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-table.mjs +0 -322
- package/fesm2020/theseam-ui-common-table.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-tel-input.mjs +0 -810
- package/fesm2020/theseam-ui-common-tel-input.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-testing.mjs +0 -359
- package/fesm2020/theseam-ui-common-testing.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-tiled-select.mjs +0 -557
- package/fesm2020/theseam-ui-common-tiled-select.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-toggle-edit.mjs +0 -553
- package/fesm2020/theseam-ui-common-toggle-edit.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-toggle-group.mjs +0 -277
- package/fesm2020/theseam-ui-common-toggle-group.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-unsaved-changes-dialog.mjs +0 -106
- package/fesm2020/theseam-ui-common-unsaved-changes-dialog.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-utils.mjs +0 -1364
- package/fesm2020/theseam-ui-common-utils.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-validators.mjs +0 -94
- package/fesm2020/theseam-ui-common-validators.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-vertical-list-filter.mjs +0 -87
- package/fesm2020/theseam-ui-common-vertical-list-filter.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-viewers.mjs +0 -598
- package/fesm2020/theseam-ui-common-viewers.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-widget.mjs +0 -1387
- package/fesm2020/theseam-ui-common-widget.mjs.map +0 -1
- package/fesm2020/theseam-ui-common.mjs +0 -6
- package/fesm2020/theseam-ui-common.mjs.map +0 -1
- package/footer-bar/footer-bar/footer-bar.component.d.ts +0 -5
- package/footer-bar/footer-bar.module.d.ts +0 -8
- package/footer-bar/public-api.d.ts +0 -2
- package/form-field/form-field-error.directive.d.ts +0 -15
- package/form-field/form-field-help-text.directive.d.ts +0 -8
- package/form-field/form-field-label-tpl.directive.d.ts +0 -8
- package/form-field/form-field-required-indicator.component.d.ts +0 -16
- package/form-field/form-field-tokens.d.ts +0 -2
- package/form-field/form-field.component.d.ts +0 -117
- package/form-field/form-field.module.d.ts +0 -16
- package/form-field/input.directive.d.ts +0 -70
- package/form-field/public-api.d.ts +0 -9
- package/form-field/testing/form-field-required-indicator.harness.d.ts +0 -5
- package/form-field/testing/form-field.harness.d.ts +0 -14
- package/form-field/testing/index.d.ts +0 -2
- package/form-field-error/form-field-error/form-field-error.component.d.ts +0 -8
- package/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.d.ts +0 -12
- package/form-field-error/form-field-error-list/form-field-error-list-item.directive.d.ts +0 -9
- package/form-field-error/form-field-error-list/form-field-error-list.component.d.ts +0 -65
- package/form-field-error/form-field-error.module.d.ts +0 -11
- package/form-field-error/public-api.d.ts +0 -5
- package/framework/base-layout/base-layout-action.d.ts +0 -31
- package/framework/base-layout/base-layout-nav.d.ts +0 -18
- package/framework/base-layout/base-layout-ref.d.ts +0 -14
- package/framework/base-layout/base-layout-tokens.d.ts +0 -3
- package/framework/base-layout/base-layout.component.d.ts +0 -48
- package/framework/base-layout/base-layout.module.d.ts +0 -20
- package/framework/base-layout/directives/base-layout-content-footer.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-content-header.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-content.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-nav-toggle.directive.d.ts +0 -22
- package/framework/base-layout/directives/base-layout-side-bar-footer.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-side-bar-header.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-side-bar.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-top-bar.directive.d.ts +0 -9
- package/framework/base-layout/index.d.ts +0 -14
- package/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.d.ts +0 -9
- package/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.d.ts +0 -13
- package/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.d.ts +0 -50
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-item.d.ts +0 -43
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.d.ts +0 -3
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.d.ts +0 -15
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.d.ts +0 -30
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.component.d.ts +0 -62
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.service.d.ts +0 -37
- package/framework/dashboard/dashboard-widgets-tokens.d.ts +0 -7
- package/framework/dashboard/dashboard.component.d.ts +0 -10
- package/framework/dashboard/dashboard.module.d.ts +0 -17
- package/framework/dashboard/index.d.ts +0 -11
- package/framework/dynamic-router/dynamic-route-def.d.ts +0 -8
- package/framework/dynamic-router/dynamic-router.module.d.ts +0 -9
- package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.d.ts +0 -5
- package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.d.ts +0 -25
- package/framework/dynamic-router/index.d.ts +0 -5
- package/framework/dynamic-router/resolvers/hierarchy-level.resolver.d.ts +0 -9
- package/framework/nav/horizontal-nav/horizontal-nav.component.d.ts +0 -25
- package/framework/nav/index.d.ts +0 -5
- package/framework/nav/nav-item/nav-item.component.d.ts +0 -74
- package/framework/nav/nav-utils.d.ts +0 -20
- package/framework/nav/nav.models.d.ts +0 -77
- package/framework/nav/nav.module.d.ts +0 -17
- package/framework/nav/nav.service.d.ts +0 -27
- package/framework/public-api.d.ts +0 -7
- package/framework/schema-form/index.d.ts +0 -4
- package/framework/schema-form/schema-form-framework.component.d.ts +0 -8
- package/framework/schema-form/schema-form-framework.d.ts +0 -32
- package/framework/schema-form/schema-form-widget.d.ts +0 -61
- package/framework/schema-form/schema-form.module.d.ts +0 -9
- package/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.d.ts +0 -25
- package/framework/schema-form-controls/schema-form-divider/schema-form-divider.component.d.ts +0 -12
- package/framework/schema-form-controls/schema-form-input/schema-form-input.component.d.ts +0 -23
- package/framework/schema-form-controls/schema-form-number/schema-form-number.component.d.ts +0 -26
- package/framework/schema-form-controls/schema-form-select/schema-form-select.component.d.ts +0 -24
- package/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.d.ts +0 -22
- package/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.d.ts +0 -38
- package/framework/schema-form-controls/schema-form-tel/schema-form-tel.component.d.ts +0 -23
- package/framework/schema-form-controls/schema-form-tiled-select/schema-form-tiled-select.component.d.ts +0 -32
- package/framework/side-nav/index.d.ts +0 -7
- package/framework/side-nav/side-nav-item/side-nav-item.component.d.ts +0 -70
- package/framework/side-nav/side-nav-toggle/side-nav-toggle.component.d.ts +0 -14
- package/framework/side-nav/side-nav-tokens.d.ts +0 -14
- package/framework/side-nav/side-nav-utils.d.ts +0 -24
- package/framework/side-nav/side-nav.component.d.ts +0 -66
- package/framework/side-nav/side-nav.models.d.ts +0 -93
- package/framework/side-nav/side-nav.module.d.ts +0 -9
- package/framework/side-nav/side-nav.service.d.ts +0 -24
- package/framework/top-bar/index.d.ts +0 -9
- package/framework/top-bar/top-bar-compact-menu-btn-detail.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-item.directive.d.ts +0 -11
- package/framework/top-bar/top-bar-menu-btn-detail.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.d.ts +0 -26
- package/framework/top-bar/top-bar-menu.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-nav-toggle-btn-detail.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-title/top-bar-title.component.d.ts +0 -7
- package/framework/top-bar/top-bar.component.d.ts +0 -85
- package/framework/top-bar/top-bar.module.d.ts +0 -21
- package/google-maps/google-maps/google-maps.component.d.ts +0 -105
- package/google-maps/google-maps-api-loader/google-maps-api-loader.d.ts +0 -4
- package/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.d.ts +0 -74
- package/google-maps/google-maps-api-loader/noop-google-maps-api-loader.d.ts +0 -13
- package/google-maps/google-maps-contextmenu.d.ts +0 -15
- package/google-maps/google-maps-controls.service.d.ts +0 -26
- package/google-maps/google-maps-feature-helpers.d.ts +0 -41
- package/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.d.ts +0 -106
- package/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.directive.d.ts +0 -83
- package/google-maps/google-maps-recenter-button-control/google-maps-recenter-button-control.component.d.ts +0 -24
- package/google-maps/google-maps-upload-button-control/google-maps-upload-button-control.component.d.ts +0 -37
- package/google-maps/google-maps.module.d.ts +0 -20
- package/google-maps/google-maps.service.d.ts +0 -65
- package/google-maps/map-control.component.d.ts +0 -23
- package/google-maps/map-controls-service.d.ts +0 -13
- package/google-maps/map-file-drop/map-file-drop.component.d.ts +0 -37
- package/google-maps/map-value-manager.service.d.ts +0 -21
- package/google-maps/public-api.d.ts +0 -17
- package/graphql/datatable/create-page-info-observable.d.ts +0 -4
- package/graphql/datatable/datatable-graphql-query-ref.d.ts +0 -64
- package/graphql/datatable/datatable-graphql.service.d.ts +0 -29
- package/graphql/datatable/datatable-helpers.d.ts +0 -12
- package/graphql/datatable/get-page-info.d.ts +0 -4
- package/graphql/datatable/index.d.ts +0 -9
- package/graphql/datatable/map-filter-states.d.ts +0 -18
- package/graphql/datatable/map-page-info.d.ts +0 -11
- package/graphql/datatable/map-search-date-columns-data-filter-state-to-gql.d.ts +0 -4
- package/graphql/datatable/map-search-numeric-columns-data-filter-state-to-gql.d.ts +0 -4
- package/graphql/datatable/map-search-text-columns-data-filter-state-to-gql.d.ts +0 -4
- package/graphql/datatable/mapper-context.d.ts +0 -6
- package/graphql/models/direction.d.ts +0 -6
- package/graphql/models/gql-datatable-accessor.d.ts +0 -9
- package/graphql/models/hint-definition.d.ts +0 -7
- package/graphql/models/hint-transform-operation.d.ts +0 -5
- package/graphql/models/hint-transformer.d.ts +0 -3
- package/graphql/models/hints-kind.d.ts +0 -7
- package/graphql/models/hints-token.d.ts +0 -7
- package/graphql/models/index.d.ts +0 -9
- package/graphql/models/query-processing-config.d.ts +0 -13
- package/graphql/models/variable.d.ts +0 -5
- package/graphql/public-api.d.ts +0 -2
- package/graphql/utils/contains-variable.d.ts +0 -2
- package/graphql/utils/gql-var.d.ts +0 -3
- package/graphql/utils/hints-tokens-containing-hint.d.ts +0 -2
- package/graphql/utils/index.d.ts +0 -10
- package/graphql/utils/inline-variables.d.ts +0 -2
- package/graphql/utils/parse-comments.d.ts +0 -2
- package/graphql/utils/parse-hints.d.ts +0 -17
- package/graphql/utils/remove-variable-definition.d.ts +0 -2
- package/graphql/utils/remove-variable-definitions-not-defined.d.ts +0 -3
- package/graphql/utils/remove-variable.d.ts +0 -2
- package/graphql/utils/to-gql.d.ts +0 -1
- package/icon/icon/icon.component.d.ts +0 -57
- package/icon/icon-btn/icon-btn.component.d.ts +0 -76
- package/icon/icon-notification/icon-notification.component.d.ts +0 -50
- package/icon/icon.d.ts +0 -2
- package/icon/icon.module.d.ts +0 -11
- package/icon/public-api.d.ts +0 -6
- package/icon/utils/file-extension-icon.d.ts +0 -3
- package/icon/utils/get-known-icon.d.ts +0 -2
- package/icon/utils/index.d.ts +0 -2
- package/layout/breakpoint-aliases.d.ts +0 -20
- package/layout/layout.module.d.ts +0 -8
- package/layout/layout.service.d.ts +0 -23
- package/layout/observe-media-query.d.ts +0 -8
- package/layout/public-api.d.ts +0 -4
- package/loading/loading/loading.component.d.ts +0 -9
- package/loading/loading-overlay.service.d.ts +0 -16
- package/loading/loading-themes.d.ts +0 -3
- package/loading/loading.models.d.ts +0 -1
- package/loading/loading.module.d.ts +0 -13
- package/loading/public-api.d.ts +0 -5
- package/menu/menu-animations.d.ts +0 -8
- package/menu/menu-divider.component.d.ts +0 -5
- package/menu/menu-footer/menu-footer.component.d.ts +0 -12
- package/menu/menu-footer-action/menu-footer-action.component.d.ts +0 -22
- package/menu/menu-header/menu-header.component.d.ts +0 -12
- package/menu/menu-item.component.d.ts +0 -54
- package/menu/menu-panel-token.d.ts +0 -6
- package/menu/menu-panel.d.ts +0 -20
- package/menu/menu-toggle.directive.d.ts +0 -83
- package/menu/menu.component.d.ts +0 -79
- package/menu/menu.module.d.ts +0 -16
- package/menu/public-api.d.ts +0 -15
- package/menu/testing/menu-footer.harness.d.ts +0 -22
- package/menu/testing/menu-header.harness.d.ts +0 -18
- package/menu/testing/menu-item.harness.d.ts +0 -37
- package/menu/testing/menu.harness.d.ts +0 -74
- package/menu/testing/utils.d.ts +0 -5
- package/modal/directives/modal-close.directive.d.ts +0 -23
- package/modal/directives/modal-footer-tpl.directive.d.ts +0 -8
- package/modal/directives/modal-header-icon-tpl.directive.d.ts +0 -8
- package/modal/directives/modal-header-title-tpl.directive.d.ts +0 -8
- package/modal/directives/modal-title.directive.d.ts +0 -9
- package/modal/directives/modal.directive.d.ts +0 -11
- package/modal/modal/modal.component.d.ts +0 -58
- package/modal/modal-body/modal-body.component.d.ts +0 -7
- package/modal/modal-config.d.ts +0 -93
- package/modal/modal-container/modal-container.component.d.ts +0 -81
- package/modal/modal-footer/modal-footer.component.d.ts +0 -6
- package/modal/modal-header/modal-header.component.d.ts +0 -11
- package/modal/modal-injectors.d.ts +0 -23
- package/modal/modal-ref.d.ts +0 -52
- package/modal/modal-utils.d.ts +0 -8
- package/modal/modal.models.d.ts +0 -24
- package/modal/modal.module.d.ts +0 -25
- package/modal/modal.service.d.ts +0 -98
- package/modal/public-api.d.ts +0 -19
- package/modal/route-modal/route-modal.component.d.ts +0 -18
- package/models/component-type.d.ts +0 -2
- package/models/http-status-codes.d.ts +0 -18
- package/models/public-api.d.ts +0 -7
- package/models/size-prefixes.d.ts +0 -1
- package/models/size-types.d.ts +0 -1
- package/models/theme-names.d.ts +0 -2
- package/models/theme-prefixes.d.ts +0 -1
- package/models/theme-types.d.ts +0 -2
- package/navigation-reload/navigation-reload.config.d.ts +0 -5
- package/navigation-reload/navigation-reload.provider.d.ts +0 -3
- package/navigation-reload/navigation-reload.service.d.ts +0 -13
- package/navigation-reload/public-api.d.ts +0 -3
- package/popover/popover/popover.component.d.ts +0 -50
- package/popover/popover-animations.d.ts +0 -4
- package/popover/popover.directive.d.ts +0 -61
- package/popover/popover.module.d.ts +0 -11
- package/popover/public-api.d.ts +0 -4
- package/progress/progress-circle/progress-circle.component.d.ts +0 -29
- package/progress/progress.module.d.ts +0 -8
- package/progress/public-api.d.ts +0 -2
- package/public_api.d.ts +0 -2
- package/rich-text/public-api.d.ts +0 -4
- package/rich-text/rich-text/rich-text.component.d.ts +0 -194
- package/rich-text/rich-text.module.d.ts +0 -10
- package/rich-text/utils/models.d.ts +0 -343
- package/rich-text/utils/utils.d.ts +0 -14
- package/scrollbar/overlay-scrollbar.directive.d.ts +0 -23
- package/scrollbar/overlay-scrollbars-config-model.d.ts +0 -2
- package/scrollbar/overlay-scrollbars-config.d.ts +0 -51
- package/scrollbar/overlay-scrollbars.service.d.ts +0 -23
- package/scrollbar/public-api.d.ts +0 -5
- package/scrollbar/scrollbar.module.d.ts +0 -8
- package/services/asset-loader.service.d.ts +0 -15
- package/services/font-loader.service.d.ts +0 -45
- package/services/preferences/preferences-accessor.d.ts +0 -15
- package/services/preferences/preferences-manager.service.d.ts +0 -15
- package/services/preferences/preferences-record.d.ts +0 -28
- package/services/preferences/preferences.models.d.ts +0 -3
- package/services/public-api.d.ts +0 -7
- package/services/router-helpers.service.d.ts +0 -10
- package/shared/components/index.d.ts +0 -1
- package/shared/components/password-input-reveal/password-input-reveal.component.d.ts +0 -17
- package/shared/directives/auto-focus.directive.d.ts +0 -18
- package/shared/directives/click-outside.directive.d.ts +0 -13
- package/shared/directives/disable-control.directive.d.ts +0 -9
- package/shared/directives/elem-resized.directive.d.ts +0 -20
- package/shared/directives/hover-class-toggle.directive.d.ts +0 -36
- package/shared/directives/hover-class.directive.d.ts +0 -31
- package/shared/directives/index.d.ts +0 -8
- package/shared/directives/ng-select-extra.directive.d.ts +0 -42
- package/shared/directives/ngx-quill-extra.directive.d.ts +0 -23
- package/shared/pipes/index.d.ts +0 -2
- package/shared/pipes/mask-chars.pipe.d.ts +0 -7
- package/shared/pipes/truncate.pipe.d.ts +0 -7
- package/shared/public-api.d.ts +0 -4
- package/shared/shared.module.d.ts +0 -22
- package/storage/local-storage.service.d.ts +0 -31
- package/storage/localstorage-memory.d.ts +0 -37
- package/storage/public-api.d.ts +0 -1
- package/story-helpers/arg-type-helpers.d.ts +0 -6
- package/story-helpers/args-to-tpl.d.ts +0 -25
- package/story-helpers/initial-route-factory.d.ts +0 -2
- package/story-helpers/initial-route.service.d.ts +0 -10
- package/story-helpers/on-story-bootstrapped-exec.d.ts +0 -24
- package/story-helpers/on-story-bootstrapped-trigger.d.ts +0 -23
- package/story-helpers/public-api.d.ts +0 -15
- package/story-helpers/route-button.d.ts +0 -5
- package/story-helpers/routes-arg-type.d.ts +0 -7
- package/story-helpers/story-empty-with-route.component.d.ts +0 -5
- package/story-helpers/story-empty.component.d.ts +0 -5
- package/story-helpers/story-helper-components.module.d.ts +0 -12
- package/story-helpers/story-initial-route.d.ts +0 -8
- package/story-helpers/story-modal-container.component.d.ts +0 -23
- package/story-helpers/story-preferences-accessor.service.d.ts +0 -19
- package/story-helpers/story-toastr.service.d.ts +0 -33
- package/tabbed/directives/tabbed-tab-content.directive.d.ts +0 -7
- package/tabbed/directives/tabbed-tab.directive.d.ts +0 -13
- package/tabbed/public-api.d.ts +0 -8
- package/tabbed/tabbed-content/tabbed-content.component.d.ts +0 -7
- package/tabbed/tabbed-item/tabbed-item.component.d.ts +0 -16
- package/tabbed/tabbed-models.d.ts +0 -12
- package/tabbed/tabbed.component.d.ts +0 -44
- package/tabbed/tabbed.module.d.ts +0 -14
- package/tabbed/tabbed.service.d.ts +0 -10
- package/table/public-api.d.ts +0 -5
- package/table/table/table.component.d.ts +0 -63
- package/table/table-cell-tpl.directive.d.ts +0 -7
- package/table/table-column-header-tpl.directive.d.ts +0 -7
- package/table/table-column.component.d.ts +0 -24
- package/table/table.module.d.ts +0 -13
- package/table-cell-type/public-api.d.ts +0 -11
- package/table-cell-type/services/table-cell-types-helpers.service.d.ts +0 -18
- package/table-cell-type/table-cell-type-action.d.ts +0 -13
- package/table-cell-type/table-cell-type-column.d.ts +0 -12
- package/table-cell-type/table-cell-type-config.d.ts +0 -12
- package/table-cell-type/table-cell-type-export-props.d.ts +0 -15
- package/table-cell-type/table-cell-type-manifest-provider.d.ts +0 -7
- package/table-cell-type/table-cell-type-models.d.ts +0 -39
- package/table-cell-type/table-cell-type-name.d.ts +0 -1
- package/table-cell-type/table-cell-type-selector.component.d.ts +0 -27
- package/table-cell-type/table-cell-type-tokens.d.ts +0 -4
- package/table-cell-type/table-cell-type.module.d.ts +0 -9
- package/table-cell-types/public-api.d.ts +0 -22
- package/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.d.ts +0 -44
- package/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.d.ts +0 -21
- package/table-cell-types/table-cell-type-currency/table-cell-type-currency.d.ts +0 -3
- package/table-cell-types/table-cell-type-date/table-cell-type-date-config.d.ts +0 -9
- package/table-cell-types/table-cell-type-date/table-cell-type-date.component.d.ts +0 -14
- package/table-cell-types/table-cell-type-date/table-cell-type-date.d.ts +0 -3
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.d.ts +0 -38
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.d.ts +0 -21
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.d.ts +0 -3
- package/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.d.ts +0 -34
- package/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.d.ts +0 -55
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.d.ts +0 -30
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.d.ts +0 -21
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer.d.ts +0 -3
- package/table-cell-types/table-cell-type-manifests.d.ts +0 -11
- package/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.d.ts +0 -13
- package/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.d.ts +0 -19
- package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.d.ts +0 -29
- package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.d.ts +0 -50
- package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.d.ts +0 -49
- package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.d.ts +0 -23
- package/table-cell-types/table-cell-type-string/table-cell-type-string-config.d.ts +0 -18
- package/table-cell-types/table-cell-type-string/table-cell-type-string.component.d.ts +0 -57
- package/table-cell-types/table-cell-types.module.d.ts +0 -26
- package/tel-input/intl-tel-input.d.ts +0 -300
- package/tel-input/models/index.d.ts +0 -2
- package/tel-input/models/tel-input-country-data.d.ts +0 -9
- package/tel-input/models/tel-input-number-format-name.d.ts +0 -4
- package/tel-input/phone-number.pipe.d.ts +0 -14
- package/tel-input/public-api.d.ts +0 -10
- package/tel-input/tel-input/tel-input.component.d.ts +0 -86
- package/tel-input/tel-input-constants.d.ts +0 -4
- package/tel-input/tel-input-validator.d.ts +0 -7
- package/tel-input/tel-input.directive.d.ts +0 -35
- package/tel-input/tel-input.module.d.ts +0 -12
- package/tel-input/testing/tel-input.harness.d.ts +0 -19
- package/tel-input/utils/add-country-code.d.ts +0 -7
- package/tel-input/utils/coerce-phone-number-format.d.ts +0 -7
- package/tel-input/utils/get-country-code.d.ts +0 -2
- package/tel-input/utils/get-dial-code.d.ts +0 -9
- package/tel-input/utils/get-global-intl-tel-input-globals.d.ts +0 -2
- package/tel-input/utils/get-global-intl-tel-input-utils.d.ts +0 -2
- package/tel-input/utils/get-intl-tel-input-utils.d.ts +0 -2
- package/tel-input/utils/get-validation-error-message.d.ts +0 -5
- package/tel-input/utils/index.d.ts +0 -9
- package/tel-input/utils/process-country-codes.d.ts +0 -8
- package/testing/current-tick-time.d.ts +0 -13
- package/testing/fake-toastr.d.ts +0 -30
- package/testing/get-harness.d.ts +0 -7
- package/testing/harnesses/ng-select-dropdown.harness.d.ts +0 -23
- package/testing/harnesses/ng-select-option.harness.d.ts +0 -18
- package/testing/harnesses/ng-select.harness.d.ts +0 -50
- package/testing/public-api.d.ts +0 -9
- package/testing/render-story.d.ts +0 -2
- package/testing/story-expect.d.ts +0 -6
- package/testing/tick-helper.d.ts +0 -70
- package/tiled-select/components/tiled-select/tiled-select.component.d.ts +0 -56
- package/tiled-select/components/tiled-select-tile/tiled-select-tile.component.d.ts +0 -45
- package/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.d.ts +0 -26
- package/tiled-select/directives/tiled-select-tile-icon-tpl.directive.d.ts +0 -8
- package/tiled-select/directives/tiled-select-tile-label-tpl.directive.d.ts +0 -8
- package/tiled-select/directives/tiled-select-tile-overlay.directive.d.ts +0 -10
- package/tiled-select/public-api.d.ts +0 -9
- package/tiled-select/testing/index.d.ts +0 -2
- package/tiled-select/testing/tiled-select-harness.d.ts +0 -9
- package/tiled-select/testing/tiled-select-tile-harness.d.ts +0 -17
- package/tiled-select/tiled-select.models.d.ts +0 -13
- package/tiled-select/tiled-select.module.d.ts +0 -14
- package/toggle-edit/models/can-toggle-edit.d.ts +0 -7
- package/toggle-edit/models/index.d.ts +0 -2
- package/toggle-edit/models/toggle-edit-ref.d.ts +0 -30
- package/toggle-edit/public-api.d.ts +0 -6
- package/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.d.ts +0 -5
- package/toggle-edit/toggle-edit-display-tpl.directive.d.ts +0 -8
- package/toggle-edit/toggle-edit-keyboard-listener.service.d.ts +0 -17
- package/toggle-edit/toggle-edit.component.d.ts +0 -93
- package/toggle-edit/toggle-edit.module.d.ts +0 -18
- package/toggle-group/public-api.d.ts +0 -3
- package/toggle-group/toggle-group-option.directive.d.ts +0 -18
- package/toggle-group/toggle-group.directive.d.ts +0 -38
- package/toggle-group/toggle-group.module.d.ts +0 -10
- package/unsaved-changes-dialog/public-api.d.ts +0 -4
- package/unsaved-changes-dialog/unsaved-changes-can-deactivate.d.ts +0 -7
- package/unsaved-changes-dialog/unsaved-changes-dialog.component.d.ts +0 -5
- package/unsaved-changes-dialog/unsaved-changes-dialog.guard.d.ts +0 -11
- package/unsaved-changes-dialog/unsaved-changes-dialog.module.d.ts +0 -7
- package/utils/array-move.d.ts +0 -49
- package/utils/calc-percentage.d.ts +0 -1
- package/utils/cdk/get-closest-widget-cdk-drag.d.ts +0 -8
- package/utils/create-padding.d.ts +0 -1
- package/utils/file-utils.d.ts +0 -12
- package/utils/form/get-control-name.d.ts +0 -22
- package/utils/form/get-control-path.d.ts +0 -27
- package/utils/form/has-required-control.d.ts +0 -31
- package/utils/form/is-empty-input-value.d.ts +0 -1
- package/utils/form/observe-control-is-different.d.ts +0 -13
- package/utils/form/observe-control-status.d.ts +0 -7
- package/utils/form/observe-control-valid.d.ts +0 -14
- package/utils/form/observe-control-value-change.d.ts +0 -9
- package/utils/form/observe-control-value.d.ts +0 -6
- package/utils/form/wait-on-non-pending-status.d.ts +0 -12
- package/utils/fractional-digits-count.d.ts +0 -8
- package/utils/geo-json/close-polygons.d.ts +0 -9
- package/utils/geo-json/coerce-feature-collection.d.ts +0 -2
- package/utils/geo-json/geo-json-to-area.d.ts +0 -6
- package/utils/geo-json/is-feature-collection.validator.d.ts +0 -3
- package/utils/geo-json/is-only-geometry-types.d.ts +0 -5
- package/utils/geo-json/is-only-geometry-types.validator.d.ts +0 -4
- package/utils/geo-json/merge-polygons.d.ts +0 -9
- package/utils/geo-json/min-max-points.validator.d.ts +0 -3
- package/utils/geo-json/no-empty-feature-collection.validator.d.ts +0 -3
- package/utils/geo-json/no-inner-rings.validator.d.ts +0 -10
- package/utils/geo-json/no-kinks.validator.d.ts +0 -3
- package/utils/geo-json/read-geo-file.d.ts +0 -7
- package/utils/geo-json/split-multi-polygons.d.ts +0 -8
- package/utils/get-attribute.d.ts +0 -4
- package/utils/has-attribute.d.ts +0 -4
- package/utils/has-property.d.ts +0 -1
- package/utils/input-masks.d.ts +0 -1
- package/utils/is-absolute-url.d.ts +0 -1
- package/utils/is-null-or-undefined-or-empty.d.ts +0 -1
- package/utils/is-null-or-undefined.d.ts +0 -1
- package/utils/is-numeric.d.ts +0 -1
- package/utils/load-style-sheet.d.ts +0 -1
- package/utils/load-style.d.ts +0 -1
- package/utils/not-null-or-undefined-or-empty.d.ts +0 -1
- package/utils/not-null-or-undefined.d.ts +0 -1
- package/utils/obj-utils.d.ts +0 -8
- package/utils/observe-query-list.d.ts +0 -3
- package/utils/operators/index.d.ts +0 -2
- package/utils/operators/map-each.d.ts +0 -2
- package/utils/operators/tap-first.d.ts +0 -5
- package/utils/pad-end.d.ts +0 -1
- package/utils/pad-start.d.ts +0 -1
- package/utils/polling-ticker.d.ts +0 -13
- package/utils/public-api.d.ts +0 -53
- package/utils/refreshable.d.ts +0 -20
- package/utils/router/index.d.ts +0 -6
- package/utils/router/is-empty-url-route.d.ts +0 -2
- package/utils/router/leaf-child-route.d.ts +0 -2
- package/utils/router/operators/activated-routes-with-data-property.d.ts +0 -7
- package/utils/router/route-snapshot-path-full.d.ts +0 -2
- package/utils/router/route-snapshot-path-relative.d.ts +0 -2
- package/utils/router/will-have-data-prop.d.ts +0 -2
- package/utils/subscriber-count.d.ts +0 -13
- package/utils/toggle-attribute.d.ts +0 -16
- package/utils/wait-on-condition-async.d.ts +0 -1
- package/utils/wrap-into-observable.d.ts +0 -2
- package/validators/decimal.validator.d.ts +0 -9
- package/validators/email-exists.validator.d.ts +0 -10
- package/validators/integer.validator.d.ts +0 -9
- package/validators/phone-length.validator.d.ts +0 -7
- package/validators/public-api.d.ts +0 -5
- package/validators/tax-id.validator.d.ts +0 -11
- package/vertical-list-filter/public-api.d.ts +0 -2
- package/vertical-list-filter/testing/index.d.ts +0 -1
- package/vertical-list-filter/testing/vertical-list-filter.harness.d.ts +0 -9
- package/vertical-list-filter/vertical-list-filter.component.d.ts +0 -17
- package/viewers/html-template-viewer/html-template-viewer.component.d.ts +0 -70
- package/viewers/html-template-viewer/html-template-viewer.module.d.ts +0 -10
- package/viewers/html-template-viewer/index.d.ts +0 -2
- package/viewers/pdf-viewer/index.d.ts +0 -3
- package/viewers/pdf-viewer/pdf-page/pdf-page.component.d.ts +0 -42
- package/viewers/pdf-viewer/pdf-renderer.service.d.ts +0 -9
- package/viewers/pdf-viewer/pdf-viewer.component.d.ts +0 -62
- package/viewers/pdf-viewer/pdf-viewer.module.d.ts +0 -10
- package/viewers/public-api.d.ts +0 -2
- package/widget/directives/widget-drag-handle.directive.d.ts +0 -56
- package/widget/directives/widget-icon-tpl.directive.d.ts +0 -8
- package/widget/directives/widget-title-tpl.directive.d.ts +0 -8
- package/widget/preferences/widget-preferences.models.d.ts +0 -8
- package/widget/preferences/widget-preferences.service.d.ts +0 -21
- package/widget/preferences/widget-preferences.token.d.ts +0 -3
- package/widget/public-api.d.ts +0 -41
- package/widget/widget/widget.component.d.ts +0 -85
- package/widget/widget-content-components/widget-button-group/widget-button-group.component.d.ts +0 -5
- package/widget/widget-content-components/widget-button-group/widget-button-group.module.d.ts +0 -9
- package/widget/widget-content-components/widget-content-header/widget-content-header.component.d.ts +0 -5
- package/widget/widget-content-components/widget-content-header/widget-content-header.module.d.ts +0 -8
- package/widget/widget-content-components/widget-description/widget-description.component.d.ts +0 -5
- package/widget/widget-content-components/widget-description/widget-description.module.d.ts +0 -8
- package/widget/widget-content-components/widget-empty-label/widget-empty-label.component.d.ts +0 -17
- package/widget/widget-content-components/widget-empty-label/widget-empty-label.module.d.ts +0 -8
- package/widget/widget-content-components/widget-footer-link/widget-footer-link.component.d.ts +0 -5
- package/widget/widget-content-components/widget-footer-link/widget-footer-link.module.d.ts +0 -8
- package/widget/widget-content-components/widget-footer-text/widget-footer-text.component.d.ts +0 -5
- package/widget/widget-content-components/widget-footer-text/widget-footer-text.module.d.ts +0 -8
- package/widget/widget-content-components/widget-header-badge/widget-header-badge.component.d.ts +0 -14
- package/widget/widget-content-components/widget-header-badge/widget-header-badge.module.d.ts +0 -8
- package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.d.ts +0 -8
- package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.d.ts +0 -65
- package/widget/widget-content-components/widget-list-group/widget-list-group.component.d.ts +0 -5
- package/widget/widget-content-components/widget-list-group/widget-list-group.module.d.ts +0 -11
- package/widget/widget-content-components/widget-table/widget-table.component.d.ts +0 -16
- package/widget/widget-content-components/widget-table/widget-table.module.d.ts +0 -10
- package/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.d.ts +0 -5
- package/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.d.ts +0 -17
- package/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.d.ts +0 -5
- package/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.d.ts +0 -8
- package/widget/widget-content-components/widget-tile/widget-tile.component.d.ts +0 -51
- package/widget/widget-content-components/widget-tile/widget-tile.module.d.ts +0 -13
- package/widget/widget-content-components/widget-tile-list/widget-tile-list.component.d.ts +0 -5
- package/widget/widget-content-components/widget-tile-list/widget-tile-list.module.d.ts +0 -9
- package/widget/widget-footer/widget-footer.component.d.ts +0 -5
- package/widget/widget-registry.models.d.ts +0 -20
- package/widget/widget-registry.service.d.ts +0 -19
- package/widget/widget-token.d.ts +0 -6
- package/widget/widget.models.d.ts +0 -7
- package/widget/widget.module.d.ts +0 -30
|
@@ -1,3662 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import { trigger, transition, style, animate } from '@angular/animations';
|
|
3
|
-
import { coerceArray } from '@angular/cdk/coercion';
|
|
4
|
-
import { DataSource, isDataSource } from '@angular/cdk/collections';
|
|
5
|
-
import * as i0 from '@angular/core';
|
|
6
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, ContentChildren, Directive, Injectable, TemplateRef, ContentChild, Self, Inject, forwardRef, InjectionToken, isDevMode, Optional, ElementRef, HostListener, HostBinding, NgModule } from '@angular/core';
|
|
7
|
-
import { Subject, BehaviorSubject, of, defer, combineLatest, EMPTY, startWith as startWith$1, map as map$1, switchMap as switchMap$1, debounceTime, tap as tap$1, Subscription, from, isObservable } from 'rxjs';
|
|
8
|
-
import { switchMap, map, startWith, auditTime, shareReplay, take, tap, distinctUntilChanged, takeUntil, concatMap, catchError } from 'rxjs/operators';
|
|
9
|
-
import { faEllipsisH, faChevronDown, faChevronRight, faSpinner, faFilter, faColumns, faFileDownload } from '@fortawesome/free-solid-svg-icons';
|
|
10
|
-
import * as i6 from '@marklb/ngx-datatable';
|
|
11
|
-
import { camelCase, setColumnDefaults as setColumnDefaults$1, translateTemplates, SelectionType, SortType, ColumnMode, DatatableComponent as DatatableComponent$1, DatatableRowDetailDirective, NgxDatatableModule, ScrollbarHelper } from '@marklb/ngx-datatable';
|
|
12
|
-
import { InputBoolean, InputNumber } from '@theseam/ui-common/core';
|
|
13
|
-
import { THESEAM_DATA_FILTER, THESEAM_DATA_FILTER_CONTAINER, composeDataFilterStates, composeDataFilters, TheSeamDataFiltersModule } from '@theseam/ui-common/data-filters';
|
|
14
|
-
import { notNullOrUndefined, hasProperty, arrayMoveMutable, isNullOrUndefined, isNullOrUndefinedOrEmpty, notNullOrUndefinedOrEmpty, waitOnConditionAsync, observeControlValue } from '@theseam/ui-common/utils';
|
|
15
|
-
import * as i4 from '@theseam/ui-common/menu';
|
|
16
|
-
import { MenuComponent, TheSeamMenuModule } from '@theseam/ui-common/menu';
|
|
17
|
-
import * as i1 from '@theseam/ui-common/confirm-dialog';
|
|
18
|
-
import { TheSeamConfirmDialogModule } from '@theseam/ui-common/confirm-dialog';
|
|
19
|
-
import * as i2 from '@angular/router';
|
|
20
|
-
import { RouterModule } from '@angular/router';
|
|
21
|
-
import * as i2$1 from '@angular/common';
|
|
22
|
-
import { CommonModule } from '@angular/common';
|
|
23
|
-
import * as i5 from '@theseam/ui-common/icon';
|
|
24
|
-
import { TheSeamIconModule } from '@theseam/ui-common/icon';
|
|
25
|
-
import * as i4$1 from '@angular/forms';
|
|
26
|
-
import { FormGroup, FormControl, ControlContainer, FormGroupDirective, UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
|
27
|
-
import * as i1$1 from '@theseam/ui-common/services';
|
|
28
|
-
import * as i7 from '@fortawesome/angular-fontawesome';
|
|
29
|
-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
30
|
-
import * as i2$2 from '@theseam/ui-common/shared';
|
|
31
|
-
import { TheSeamSharedModule } from '@theseam/ui-common/shared';
|
|
32
|
-
import * as i3$1 from '@theseam/ui-common/buttons';
|
|
33
|
-
import { TheSeamButtonsModule } from '@theseam/ui-common/buttons';
|
|
34
|
-
import * as i11 from '@theseam/ui-common/popover';
|
|
35
|
-
import { TheSeamPopoverModule } from '@theseam/ui-common/popover';
|
|
36
|
-
import * as i12 from '@theseam/ui-common/table-cell-type';
|
|
37
|
-
import { TheSeamTableCellTypeModule } from '@theseam/ui-common/table-cell-type';
|
|
38
|
-
import * as i3 from '@theseam/ui-common/form-field';
|
|
39
|
-
import { TheSeamFormFieldModule } from '@theseam/ui-common/form-field';
|
|
40
|
-
import * as i5$1 from '@ng-select/ng-select';
|
|
41
|
-
import { NgSelectModule } from '@ng-select/ng-select';
|
|
42
|
-
import * as i1$2 from '@theseam/ui-common/scrollbar';
|
|
43
|
-
import * as i5$2 from '@theseam/ui-common/checkbox';
|
|
44
|
-
import { TheSeamCheckboxComponent } from '@theseam/ui-common/checkbox';
|
|
45
|
-
import * as i3$2 from '@theseam/ui-common/dynamic';
|
|
46
|
-
import { THESEAM_DYNAMIC_DATA } from '@theseam/ui-common/dynamic';
|
|
47
|
-
import * as i1$3 from 'ngx-toastr';
|
|
48
|
-
import { ToastrModule } from 'ngx-toastr';
|
|
49
|
-
import * as i2$3 from '@theseam/ui-common/loading';
|
|
50
|
-
import { TheSeamLoadingModule } from '@theseam/ui-common/loading';
|
|
51
|
-
import * as i1$4 from '@theseam/ui-common/modal';
|
|
52
|
-
import * as i2$4 from '@theseam/ui-common/dynamic-component-loader';
|
|
53
|
-
import * as i3$3 from '@angular/common/http';
|
|
54
|
-
import { ESCAPE } from '@angular/cdk/keycodes';
|
|
55
|
-
import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
56
|
-
import * as i1$5 from '@angular/cdk/overlay';
|
|
57
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
58
|
-
import { A11yModule } from '@angular/cdk/a11y';
|
|
59
|
-
import { TheSeamToggleGroupModule } from '@theseam/ui-common/toggle-group';
|
|
60
|
-
|
|
61
|
-
class DatatableActionMenuItemComponent {
|
|
62
|
-
constructor() {
|
|
63
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
64
|
-
this.click = new EventEmitter();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
DatatableActionMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
-
DatatableActionMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableActionMenuItemComponent, selector: "seam-datatable-action-menu-item", inputs: { label: "label", href: ["attr.href", "href"], target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", state: "state", routerLink: "routerLink", confirmDialog: "confirmDialog", disabled: "disabled", subMenu: "subMenu" }, outputs: { click: "click" }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuItemComponent, decorators: [{
|
|
70
|
-
type: Component,
|
|
71
|
-
args: [{
|
|
72
|
-
selector: 'seam-datatable-action-menu-item',
|
|
73
|
-
template: ``,
|
|
74
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
75
|
-
}]
|
|
76
|
-
}], propDecorators: { label: [{
|
|
77
|
-
type: Input
|
|
78
|
-
}], href: [{
|
|
79
|
-
type: Input,
|
|
80
|
-
args: ['attr.href']
|
|
81
|
-
}], target: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], queryParams: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], fragment: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], queryParamsHandling: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], preserveFragment: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], skipLocationChange: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], replaceUrl: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], state: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], routerLink: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], confirmDialog: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], disabled: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], subMenu: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], click: [{
|
|
106
|
-
type: Output
|
|
107
|
-
}] } });
|
|
108
|
-
|
|
109
|
-
class DatatableActionMenuComponent {
|
|
110
|
-
constructor(_confirmDialog, _router) {
|
|
111
|
-
this._confirmDialog = _confirmDialog;
|
|
112
|
-
this._router = _router;
|
|
113
|
-
this.faEllipsisH = faEllipsisH;
|
|
114
|
-
/** @ignore */
|
|
115
|
-
this._actionMenuPositions = [
|
|
116
|
-
{
|
|
117
|
-
originX: 'start',
|
|
118
|
-
originY: 'bottom',
|
|
119
|
-
overlayX: 'end',
|
|
120
|
-
overlayY: 'top',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
originX: 'start',
|
|
124
|
-
originY: 'top',
|
|
125
|
-
overlayX: 'end',
|
|
126
|
-
overlayY: 'bottom',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
originX: 'end',
|
|
130
|
-
originY: 'bottom',
|
|
131
|
-
overlayX: 'start',
|
|
132
|
-
overlayY: 'top',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
originX: 'end',
|
|
136
|
-
originY: 'top',
|
|
137
|
-
overlayX: 'start',
|
|
138
|
-
overlayY: 'bottom',
|
|
139
|
-
},
|
|
140
|
-
];
|
|
141
|
-
this.isSubMenu = false;
|
|
142
|
-
}
|
|
143
|
-
activateItem(event, item) {
|
|
144
|
-
if (item.confirmDialog) {
|
|
145
|
-
this._confirmDialog.open(item.confirmDialog.message, item.confirmDialog.alert)
|
|
146
|
-
.afterClosed()
|
|
147
|
-
.subscribe(v => {
|
|
148
|
-
if (v === 'confirm') {
|
|
149
|
-
item.click.emit(event);
|
|
150
|
-
if (item.href) {
|
|
151
|
-
const win = window.open(item.href, item.target || undefined);
|
|
152
|
-
// TODO: Consider if always setting opener to null is to restrictive
|
|
153
|
-
// if (win && item.target && item.target.toLowerCase() === '_blank') {
|
|
154
|
-
// win.opener = null
|
|
155
|
-
// }
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
const extras = {};
|
|
159
|
-
if (item.queryParams) {
|
|
160
|
-
extras.queryParams = item.queryParams;
|
|
161
|
-
}
|
|
162
|
-
if (item.fragment) {
|
|
163
|
-
extras.fragment = item.fragment;
|
|
164
|
-
}
|
|
165
|
-
if (item.queryParamsHandling) {
|
|
166
|
-
extras.queryParamsHandling = item.queryParamsHandling;
|
|
167
|
-
}
|
|
168
|
-
if (item.preserveFragment) {
|
|
169
|
-
extras.preserveFragment = item.preserveFragment;
|
|
170
|
-
}
|
|
171
|
-
if (item.skipLocationChange) {
|
|
172
|
-
extras.skipLocationChange = item.skipLocationChange;
|
|
173
|
-
}
|
|
174
|
-
if (item.replaceUrl) {
|
|
175
|
-
extras.replaceUrl = item.replaceUrl;
|
|
176
|
-
}
|
|
177
|
-
if (item.state) {
|
|
178
|
-
extras.state = item.state;
|
|
179
|
-
}
|
|
180
|
-
const commands = Array.isArray(item.routerLink) ? item.routerLink : [item.routerLink];
|
|
181
|
-
this._router.navigate(commands, extras);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
item.click.emit(event);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
DatatableActionMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuComponent, deps: [{ token: i1.SeamConfirmDialogService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
192
|
-
DatatableActionMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableActionMenuComponent, selector: "seam-datatable-action-menu", inputs: { isSubMenu: "isSubMenu" }, queries: [{ propertyName: "items", predicate: DatatableActionMenuItemComponent }], viewQueries: [{ propertyName: "menu", first: true, predicate: MenuComponent, descendants: true, static: true }], exportAs: ["seamDatatableActionMenu"], ngImport: i0, template: "<seam-menu #menu\n menuClass=\"list-group py-0 border-0 seam-datatable-action-menu\"\n animationType=\"fade\">\n\n <ng-container *ngFor=\"let item of items\">\n <ng-container *ngIf=\"(item.routerLink || item.href) && !item.confirmDialog; else noRouterLink\">\n <a *ngIf=\"item.href; else noHref\"\n seamMenuItem\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n [attr.href]=\"item.href\"\n [target]=\"item.target\"\n (click)=\"activateItem($event, item)\">\n {{ item.label }}\n </a>\n <ng-template #noHref>\n <a seamMenuItem\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"$any(item.fragment)\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [preserveFragment]=\"$any(item.preserveFragment)\"\n [skipLocationChange]=\"$any(item.skipLocationChange)\"\n [replaceUrl]=\"$any(item.replaceUrl)\"\n [state]=\"$any(item.state)\"\n [routerLink]=\"item.routerLink\"\n [target]=\"$any(item.target)\"\n (click)=\"activateItem($event, item)\">\n {{ item.label }}\n </a>\n </ng-template>\n </ng-container>\n <ng-template #noRouterLink>\n <ng-container *ngIf=\"!!item.subMenu; else noSubMenu\">\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n [seamMenuToggle]=\"item.subMenu.menu\"\n [seamMenuTogglePositionsOffsetY]=\"-3\">\n {{ item.label }}\n </button>\n </ng-container>\n <ng-template #noSubMenu>\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n (click)=\"activateItem($event, item)\">\n {{ item.label }}\n </button>\n </ng-template>\n </ng-template>\n </ng-container>\n</seam-menu>\n\n<ng-container *ngIf=\"!isSubMenu && items?.length\">\n <button type=\"button\" class=\"datatable-action-button btn\"\n [seamMenuToggle]=\"menu\"\n [positions]=\"_actionMenuPositions || []\"\n title=\"Row Actions\">\n <seam-icon [icon]=\"faEllipsisH\"></seam-icon>\n </button>\n</ng-container>\n", styles: [":host{position:relative;display:flex;align-items:center;justify-content:center;height:100%}.datatable-action-button::ng-deep .svg-inline--fa{vertical-align:middle}\n"], dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.MenuComponent, selector: "seam-menu", inputs: ["menuClass", "baseWidth", "animationType"], outputs: ["closed"], exportAs: ["seamMenu"] }, { kind: "directive", type: i4.MenuToggleDirective, selector: "[seamMenuToggle]", inputs: ["seamMenuToggle", "positions", "seamMenuTogglePositionsOffsetY"], outputs: ["menuToggle", "menuOpened", "menuClosed"], exportAs: ["seamMenuToggle"] }, { kind: "component", type: i4.MenuItemComponent, selector: "[seamMenuItem]", inputs: ["disabled", "role", "icon", "iconClass", "sublevelIcon", "subLevelIconClass", "badgeText", "badgeTheme"], exportAs: ["seamMenuItem"] }, { kind: "component", type: i5.IconComponent, selector: "seam-icon", inputs: ["grayscaleOnDisable", "disabled", "iconClass", "icon", "size", "showDefaultOnError", "defaultIcon", "iconType"] }] });
|
|
193
|
-
__decorate([
|
|
194
|
-
InputBoolean()
|
|
195
|
-
], DatatableActionMenuComponent.prototype, "isSubMenu", void 0);
|
|
196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuComponent, decorators: [{
|
|
197
|
-
type: Component,
|
|
198
|
-
args: [{ selector: 'seam-datatable-action-menu', exportAs: 'seamDatatableActionMenu', template: "<seam-menu #menu\n menuClass=\"list-group py-0 border-0 seam-datatable-action-menu\"\n animationType=\"fade\">\n\n <ng-container *ngFor=\"let item of items\">\n <ng-container *ngIf=\"(item.routerLink || item.href) && !item.confirmDialog; else noRouterLink\">\n <a *ngIf=\"item.href; else noHref\"\n seamMenuItem\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n [attr.href]=\"item.href\"\n [target]=\"item.target\"\n (click)=\"activateItem($event, item)\">\n {{ item.label }}\n </a>\n <ng-template #noHref>\n <a seamMenuItem\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"$any(item.fragment)\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [preserveFragment]=\"$any(item.preserveFragment)\"\n [skipLocationChange]=\"$any(item.skipLocationChange)\"\n [replaceUrl]=\"$any(item.replaceUrl)\"\n [state]=\"$any(item.state)\"\n [routerLink]=\"item.routerLink\"\n [target]=\"$any(item.target)\"\n (click)=\"activateItem($event, item)\">\n {{ item.label }}\n </a>\n </ng-template>\n </ng-container>\n <ng-template #noRouterLink>\n <ng-container *ngIf=\"!!item.subMenu; else noSubMenu\">\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n [seamMenuToggle]=\"item.subMenu.menu\"\n [seamMenuTogglePositionsOffsetY]=\"-3\">\n {{ item.label }}\n </button>\n </ng-container>\n <ng-template #noSubMenu>\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n [disabled]=\"item.disabled\"\n (click)=\"activateItem($event, item)\">\n {{ item.label }}\n </button>\n </ng-template>\n </ng-template>\n </ng-container>\n</seam-menu>\n\n<ng-container *ngIf=\"!isSubMenu && items?.length\">\n <button type=\"button\" class=\"datatable-action-button btn\"\n [seamMenuToggle]=\"menu\"\n [positions]=\"_actionMenuPositions || []\"\n title=\"Row Actions\">\n <seam-icon [icon]=\"faEllipsisH\"></seam-icon>\n </button>\n</ng-container>\n", styles: [":host{position:relative;display:flex;align-items:center;justify-content:center;height:100%}.datatable-action-button::ng-deep .svg-inline--fa{vertical-align:middle}\n"] }]
|
|
199
|
-
}], ctorParameters: function () { return [{ type: i1.SeamConfirmDialogService }, { type: i2.Router }]; }, propDecorators: { menu: [{
|
|
200
|
-
type: ViewChild,
|
|
201
|
-
args: [MenuComponent, { static: true }]
|
|
202
|
-
}], items: [{
|
|
203
|
-
type: ContentChildren,
|
|
204
|
-
args: [DatatableActionMenuItemComponent]
|
|
205
|
-
}], isSubMenu: [{
|
|
206
|
-
type: Input
|
|
207
|
-
}] } });
|
|
208
|
-
|
|
209
|
-
class DatatableCellTplDirective {
|
|
210
|
-
constructor(template) {
|
|
211
|
-
this.template = template;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
DatatableCellTplDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableCellTplDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
215
|
-
DatatableCellTplDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableCellTplDirective, selector: "[seamDatatableCellTpl]", ngImport: i0 });
|
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableCellTplDirective, decorators: [{
|
|
217
|
-
type: Directive,
|
|
218
|
-
args: [{
|
|
219
|
-
selector: '[seamDatatableCellTpl]'
|
|
220
|
-
}]
|
|
221
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
222
|
-
|
|
223
|
-
class DatatableColumnChangesService {
|
|
224
|
-
constructor() {
|
|
225
|
-
this.columnInputChanges = new Subject();
|
|
226
|
-
}
|
|
227
|
-
get columnInputChanges$() {
|
|
228
|
-
return this.columnInputChanges.asObservable();
|
|
229
|
-
}
|
|
230
|
-
onInputChange() {
|
|
231
|
-
this.columnInputChanges.next(undefined);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
DatatableColumnChangesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnChangesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
235
|
-
DatatableColumnChangesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnChangesService });
|
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnChangesService, decorators: [{
|
|
237
|
-
type: Injectable
|
|
238
|
-
}] });
|
|
239
|
-
|
|
240
|
-
// TODO: The column component should implement `ITheSeamDatatableColumn`, since
|
|
241
|
-
// providing some properties by input and some by template could be confusing.
|
|
242
|
-
class DatatableColumnComponent {
|
|
243
|
-
get cellTemplate() {
|
|
244
|
-
return this._cellTemplateInput || this._cellTemplateQuery;
|
|
245
|
-
}
|
|
246
|
-
// @Input('headerTemplate')
|
|
247
|
-
// _headerTemplateInput: TemplateRef<any>;
|
|
248
|
-
// @ContentChild(DataTableColumnHeaderDirective, { read: TemplateRef, static: true })
|
|
249
|
-
// _headerTemplateQuery: TemplateRef<any>;
|
|
250
|
-
// get headerTemplate(): TemplateRef<any> {
|
|
251
|
-
// return this._headerTemplateInput || this._headerTemplateQuery;
|
|
252
|
-
// }
|
|
253
|
-
// @Input('treeToggleTemplate')
|
|
254
|
-
// _treeToggleTemplateInput: TemplateRef<any>;
|
|
255
|
-
// @ContentChild(DataTableColumnCellTreeToggle, { read: TemplateRef, static: true })
|
|
256
|
-
// _treeToggleTemplateQuery: TemplateRef<any>;
|
|
257
|
-
// get treeToggleTemplate(): TemplateRef<any> {
|
|
258
|
-
// return this._treeToggleTemplateInput || this._treeToggleTemplateQuery;
|
|
259
|
-
// }
|
|
260
|
-
constructor(_columnChangesService) {
|
|
261
|
-
this._columnChangesService = _columnChangesService;
|
|
262
|
-
this._isFirstChange = true;
|
|
263
|
-
}
|
|
264
|
-
ngOnChanges(changes) {
|
|
265
|
-
if (this._isFirstChange) {
|
|
266
|
-
this._isFirstChange = false;
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
this._columnChangesService.onInputChange();
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
getCellDirective() {
|
|
273
|
-
if (this.cellTplDirective) {
|
|
274
|
-
return this.cellTplDirective;
|
|
275
|
-
}
|
|
276
|
-
return null;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
DatatableColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnComponent, deps: [{ token: DatatableColumnChangesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
280
|
-
DatatableColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnComponent, selector: "seam-datatable-column", inputs: { name: "name", prop: "prop", flexGrow: "flexGrow", minWidth: "minWidth", maxWidth: "maxWidth", width: "width", resizeable: "resizeable", sortable: "sortable", draggable: "draggable", canAutoResize: "canAutoResize", comparator: "comparator", headerTemplate: "headerTemplate", checkboxable: "checkboxable", headerCheckboxable: "headerCheckboxable", headerClass: "headerClass", cellClass: "cellClass", frozenLeft: "frozenLeft", frozenRight: "frozenRight", pipe: "pipe", isTreeColumn: "isTreeColumn", treeLevelIndent: "treeLevelIndent", summaryFunc: "summaryFunc", summaryTemplate: "summaryTemplate", hidden: "hidden", _cellTemplateInput: ["cellTemplate", "_cellTemplateInput"] }, queries: [{ propertyName: "cellTplDirective", first: true, predicate: DatatableCellTplDirective, descendants: true, static: true }, { propertyName: "_cellTemplateQuery", first: true, predicate: DatatableCellTplDirective, descendants: true, read: TemplateRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<p>\n datatable-column works!\n</p>\n", styles: [""] });
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnComponent, decorators: [{
|
|
282
|
-
type: Component,
|
|
283
|
-
args: [{ selector: 'seam-datatable-column', template: "<p>\n datatable-column works!\n</p>\n" }]
|
|
284
|
-
}], ctorParameters: function () { return [{ type: DatatableColumnChangesService }]; }, propDecorators: { name: [{
|
|
285
|
-
type: Input
|
|
286
|
-
}], prop: [{
|
|
287
|
-
type: Input
|
|
288
|
-
}], flexGrow: [{
|
|
289
|
-
type: Input
|
|
290
|
-
}], minWidth: [{
|
|
291
|
-
type: Input
|
|
292
|
-
}], maxWidth: [{
|
|
293
|
-
type: Input
|
|
294
|
-
}], width: [{
|
|
295
|
-
type: Input
|
|
296
|
-
}], resizeable: [{
|
|
297
|
-
type: Input
|
|
298
|
-
}], sortable: [{
|
|
299
|
-
type: Input
|
|
300
|
-
}], draggable: [{
|
|
301
|
-
type: Input
|
|
302
|
-
}], canAutoResize: [{
|
|
303
|
-
type: Input
|
|
304
|
-
}], comparator: [{
|
|
305
|
-
type: Input
|
|
306
|
-
}], headerTemplate: [{
|
|
307
|
-
type: Input
|
|
308
|
-
}], checkboxable: [{
|
|
309
|
-
type: Input
|
|
310
|
-
}], headerCheckboxable: [{
|
|
311
|
-
type: Input
|
|
312
|
-
}], headerClass: [{
|
|
313
|
-
type: Input
|
|
314
|
-
}], cellClass: [{
|
|
315
|
-
type: Input
|
|
316
|
-
}], frozenLeft: [{
|
|
317
|
-
type: Input
|
|
318
|
-
}], frozenRight: [{
|
|
319
|
-
type: Input
|
|
320
|
-
}], pipe: [{
|
|
321
|
-
type: Input
|
|
322
|
-
}], isTreeColumn: [{
|
|
323
|
-
type: Input
|
|
324
|
-
}], treeLevelIndent: [{
|
|
325
|
-
type: Input
|
|
326
|
-
}], summaryFunc: [{
|
|
327
|
-
type: Input
|
|
328
|
-
}], summaryTemplate: [{
|
|
329
|
-
type: Input
|
|
330
|
-
}], hidden: [{
|
|
331
|
-
type: Input
|
|
332
|
-
}], cellTplDirective: [{
|
|
333
|
-
type: ContentChild,
|
|
334
|
-
args: [DatatableCellTplDirective, { static: true }]
|
|
335
|
-
}], _cellTemplateInput: [{
|
|
336
|
-
type: Input,
|
|
337
|
-
args: ['cellTemplate']
|
|
338
|
-
}], _cellTemplateQuery: [{
|
|
339
|
-
type: ContentChild,
|
|
340
|
-
args: [DatatableCellTplDirective, { read: TemplateRef, static: true }]
|
|
341
|
-
}] } });
|
|
342
|
-
|
|
343
|
-
class DatatableFooterTplDirective {
|
|
344
|
-
constructor(template) {
|
|
345
|
-
this.template = template;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
DatatableFooterTplDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableFooterTplDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
349
|
-
DatatableFooterTplDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableFooterTplDirective, selector: "[seamDatatableFooterTpl]", ngImport: i0 });
|
|
350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableFooterTplDirective, decorators: [{
|
|
351
|
-
type: Directive,
|
|
352
|
-
args: [{
|
|
353
|
-
selector: '[seamDatatableFooterTpl]'
|
|
354
|
-
}]
|
|
355
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
356
|
-
|
|
357
|
-
class TheSeamDatatableFooterDirective {
|
|
358
|
-
get template() {
|
|
359
|
-
return this._templateInput || this._templateQuery;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
TheSeamDatatableFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
363
|
-
TheSeamDatatableFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TheSeamDatatableFooterDirective, selector: "seam-datatable-footer", inputs: { _templateInput: ["template", "_templateInput"] }, queries: [{ propertyName: "_templateQuery", first: true, predicate: DatatableFooterTplDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 });
|
|
364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableFooterDirective, decorators: [{
|
|
365
|
-
type: Directive,
|
|
366
|
-
args: [{
|
|
367
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
368
|
-
selector: 'seam-datatable-footer'
|
|
369
|
-
}]
|
|
370
|
-
}], propDecorators: { _templateInput: [{
|
|
371
|
-
type: Input,
|
|
372
|
-
args: ['template']
|
|
373
|
-
}], _templateQuery: [{
|
|
374
|
-
type: ContentChild,
|
|
375
|
-
args: [DatatableFooterTplDirective, { read: TemplateRef, static: true }]
|
|
376
|
-
}] } });
|
|
377
|
-
|
|
378
|
-
class DatatableFilterDirective {
|
|
379
|
-
constructor(dataFilters) {
|
|
380
|
-
if (dataFilters && dataFilters.length > 0) {
|
|
381
|
-
this._filter = dataFilters[0];
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
get filter() {
|
|
385
|
-
return this._filter;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
DatatableFilterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableFilterDirective, deps: [{ token: THESEAM_DATA_FILTER, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
389
|
-
DatatableFilterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableFilterDirective, selector: "[seamDatatableFilter]", ngImport: i0 });
|
|
390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableFilterDirective, decorators: [{
|
|
391
|
-
type: Directive,
|
|
392
|
-
args: [{
|
|
393
|
-
selector: '[seamDatatableFilter]'
|
|
394
|
-
}]
|
|
395
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
396
|
-
type: Self
|
|
397
|
-
}, {
|
|
398
|
-
type: Inject,
|
|
399
|
-
args: [THESEAM_DATA_FILTER]
|
|
400
|
-
}] }]; } });
|
|
401
|
-
|
|
402
|
-
const _THESEAM_DATA_FILTER_CONTAINER = {
|
|
403
|
-
provide: THESEAM_DATA_FILTER_CONTAINER,
|
|
404
|
-
// tslint:disable-next-line:no-use-before-declare
|
|
405
|
-
useExisting: forwardRef(() => DatatableMenuBarComponent)
|
|
406
|
-
};
|
|
407
|
-
class DatatableMenuBarComponent {
|
|
408
|
-
constructor() {
|
|
409
|
-
this._filtersArr = [];
|
|
410
|
-
this.filtersChanged = new EventEmitter();
|
|
411
|
-
}
|
|
412
|
-
get filterDirectives() {
|
|
413
|
-
return this._filterDirectives;
|
|
414
|
-
}
|
|
415
|
-
set filterDirectives(value) {
|
|
416
|
-
this._filterDirectives = value;
|
|
417
|
-
this.filtersChanged.emit(this.filters());
|
|
418
|
-
}
|
|
419
|
-
filters() {
|
|
420
|
-
const fDirectives = this._filterDirectives
|
|
421
|
-
? this._filterDirectives.map(f => f.filter).filter(notNullOrUndefined)
|
|
422
|
-
: [];
|
|
423
|
-
const fArr = this._filtersArr
|
|
424
|
-
.filter(f => fDirectives.findIndex(fd => fd.uid === f.uid) === -1);
|
|
425
|
-
return [...fArr, ...fDirectives];
|
|
426
|
-
}
|
|
427
|
-
addFilter(dataFilter) {
|
|
428
|
-
this._filtersArr.push(dataFilter);
|
|
429
|
-
this.filtersChanged.emit(this.filters());
|
|
430
|
-
}
|
|
431
|
-
removeFilter(dataFilter) {
|
|
432
|
-
this._filtersArr = this._filtersArr.filter(f => f !== dataFilter);
|
|
433
|
-
this.filtersChanged.emit(this.filters());
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
DatatableMenuBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
437
|
-
DatatableMenuBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableMenuBarComponent, selector: "seam-datatable-menu-bar", providers: [_THESEAM_DATA_FILTER_CONTAINER], queries: [{ propertyName: "filterDirectives", predicate: DatatableFilterDirective }], ngImport: i0, template: "<div class=\"bg-light border rounded p-2\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block}\n"] });
|
|
438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarComponent, decorators: [{
|
|
439
|
-
type: Component,
|
|
440
|
-
args: [{ selector: 'seam-datatable-menu-bar', providers: [_THESEAM_DATA_FILTER_CONTAINER], template: "<div class=\"bg-light border rounded p-2\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block}\n"] }]
|
|
441
|
-
}], propDecorators: { filterDirectives: [{
|
|
442
|
-
type: ContentChildren,
|
|
443
|
-
args: [DatatableFilterDirective]
|
|
444
|
-
}] } });
|
|
445
|
-
|
|
446
|
-
class DatatableRowDetailTplDirective {
|
|
447
|
-
constructor(template) {
|
|
448
|
-
this.template = template;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
DatatableRowDetailTplDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableRowDetailTplDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
452
|
-
DatatableRowDetailTplDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableRowDetailTplDirective, selector: "[seamDatatableRowDetailTpl]", ngImport: i0 });
|
|
453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableRowDetailTplDirective, decorators: [{
|
|
454
|
-
type: Directive,
|
|
455
|
-
args: [{
|
|
456
|
-
selector: '[seamDatatableRowDetailTpl]'
|
|
457
|
-
}]
|
|
458
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
459
|
-
|
|
460
|
-
class TheSeamDatatableRowDetailDirective {
|
|
461
|
-
constructor() {
|
|
462
|
-
/**
|
|
463
|
-
* The detail row height is required especially
|
|
464
|
-
* when virtual scroll is enabled.
|
|
465
|
-
*/
|
|
466
|
-
this.rowHeight = 0;
|
|
467
|
-
/**
|
|
468
|
-
* Row detail row visbility was toggled.
|
|
469
|
-
*/
|
|
470
|
-
// NOTE: This will trigger from the internal ngx-datatable toggle event.
|
|
471
|
-
this.toggle = new EventEmitter();
|
|
472
|
-
/**
|
|
473
|
-
* Internal use for wrapper only.
|
|
474
|
-
*
|
|
475
|
-
* To avoid confusion with this directives output and the ngx-datatable
|
|
476
|
-
* directive being wrapped, this directive emits `_toggle` stream to the
|
|
477
|
-
* `ngx-datatable-row-detail` directive and emits it's `toggle` stream out to
|
|
478
|
-
* this directives `toggle` stream.
|
|
479
|
-
* @ignore
|
|
480
|
-
*/
|
|
481
|
-
this._toggle = new EventEmitter();
|
|
482
|
-
}
|
|
483
|
-
get template() {
|
|
484
|
-
return this._templateInput || this._templateQuery;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Toggle the expansion of the row
|
|
488
|
-
*/
|
|
489
|
-
toggleExpandRow(row) {
|
|
490
|
-
this._toggle.emit({
|
|
491
|
-
type: 'row',
|
|
492
|
-
value: row
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* API method to expand all the rows.
|
|
497
|
-
*/
|
|
498
|
-
expandAllRows() {
|
|
499
|
-
this._toggle.emit({
|
|
500
|
-
type: 'all',
|
|
501
|
-
value: true
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* API method to collapse all the rows.
|
|
506
|
-
*/
|
|
507
|
-
collapseAllRows() {
|
|
508
|
-
this._toggle.emit({
|
|
509
|
-
type: 'all',
|
|
510
|
-
value: false
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
TheSeamDatatableRowDetailDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableRowDetailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
515
|
-
TheSeamDatatableRowDetailDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TheSeamDatatableRowDetailDirective, selector: "seam-datatable-row-detail", inputs: { rowHeight: "rowHeight", _templateInput: ["template", "_templateInput"] }, outputs: { toggle: "toggle" }, queries: [{ propertyName: "_templateQuery", first: true, predicate: DatatableRowDetailTplDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 });
|
|
516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableRowDetailDirective, decorators: [{
|
|
517
|
-
type: Directive,
|
|
518
|
-
args: [{
|
|
519
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
520
|
-
selector: 'seam-datatable-row-detail'
|
|
521
|
-
}]
|
|
522
|
-
}], propDecorators: { rowHeight: [{
|
|
523
|
-
type: Input
|
|
524
|
-
}], _templateInput: [{
|
|
525
|
-
type: Input,
|
|
526
|
-
args: ['template']
|
|
527
|
-
}], _templateQuery: [{
|
|
528
|
-
type: ContentChild,
|
|
529
|
-
args: [DatatableRowDetailTplDirective, { read: TemplateRef, static: true }]
|
|
530
|
-
}], toggle: [{
|
|
531
|
-
type: Output
|
|
532
|
-
}] } });
|
|
533
|
-
|
|
534
|
-
class DatatableRowActionItemDirective {
|
|
535
|
-
constructor(template) {
|
|
536
|
-
this.template = template;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
DatatableRowActionItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableRowActionItemDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
540
|
-
DatatableRowActionItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableRowActionItemDirective, selector: "[seamDatatableRowActionItem]", ngImport: i0 });
|
|
541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableRowActionItemDirective, decorators: [{
|
|
542
|
-
type: Directive,
|
|
543
|
-
args: [{
|
|
544
|
-
selector: '[seamDatatableRowActionItem]'
|
|
545
|
-
}]
|
|
546
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
547
|
-
|
|
548
|
-
class DatatableDataSource extends DataSource {
|
|
549
|
-
constructor() {
|
|
550
|
-
super();
|
|
551
|
-
this._datatableSubject = new BehaviorSubject(undefined);
|
|
552
|
-
this.sorts$ = this._datatableSubject.pipe(switchMap(_datatable => {
|
|
553
|
-
if (!_datatable) {
|
|
554
|
-
return of([]);
|
|
555
|
-
}
|
|
556
|
-
return _datatable.sort.pipe(map(v => v.sorts), startWith(_datatable.sorts));
|
|
557
|
-
}));
|
|
558
|
-
this.filterStates$ = this._datatableSubject.pipe(switchMap(_datatable => {
|
|
559
|
-
if (!_datatable) {
|
|
560
|
-
return of([]);
|
|
561
|
-
}
|
|
562
|
-
return _datatable.filterStates;
|
|
563
|
-
}));
|
|
564
|
-
this.page$ = this._datatableSubject.pipe(switchMap(_datatable => {
|
|
565
|
-
if (!_datatable) {
|
|
566
|
-
return of({
|
|
567
|
-
offset: 0,
|
|
568
|
-
pageSize: 0,
|
|
569
|
-
limit: undefined,
|
|
570
|
-
count: 0
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
return _datatable.page.pipe(startWith(_datatable.pageInfo));
|
|
574
|
-
}));
|
|
575
|
-
}
|
|
576
|
-
// connect(): Observable<readonly TRow[]> {
|
|
577
|
-
// return this.
|
|
578
|
-
// }
|
|
579
|
-
// disconnect(): void {
|
|
580
|
-
// throw new Error('Method not implemented.')
|
|
581
|
-
// }
|
|
582
|
-
setDatatableAccessor(accessor) {
|
|
583
|
-
this._datatableSubject.next(accessor);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
const ACTION_MENU_COLUMN_PROP = '$$__actionMenu__';
|
|
588
|
-
function createActionMenuColumn(cellTemplate, headerTemplate, frozenLeft, frozenRight) {
|
|
589
|
-
return {
|
|
590
|
-
prop: ACTION_MENU_COLUMN_PROP,
|
|
591
|
-
name: '',
|
|
592
|
-
width: 50,
|
|
593
|
-
minWidth: 50,
|
|
594
|
-
maxWidth: 50,
|
|
595
|
-
resizeable: false,
|
|
596
|
-
sortable: false,
|
|
597
|
-
draggable: false,
|
|
598
|
-
// TODO: Fix column auto sizing with fixed column and cell overlay before enabling.
|
|
599
|
-
frozenLeft: frozenLeft,
|
|
600
|
-
frozenRight: frozenRight,
|
|
601
|
-
cellTemplate,
|
|
602
|
-
headerTemplate,
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
const CHECKBOX_COLUMN_PROP = '$$__checkbox__';
|
|
607
|
-
function createCheckboxColumn() {
|
|
608
|
-
return {
|
|
609
|
-
prop: CHECKBOX_COLUMN_PROP,
|
|
610
|
-
name: '',
|
|
611
|
-
width: 40,
|
|
612
|
-
sortable: false,
|
|
613
|
-
canAutoResize: false,
|
|
614
|
-
draggable: false,
|
|
615
|
-
resizeable: false,
|
|
616
|
-
headerCheckboxable: true,
|
|
617
|
-
checkboxable: true,
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
function getColumnProp(col) {
|
|
622
|
-
if (!notNullOrUndefined(col.prop) && col.name) {
|
|
623
|
-
return camelCase(col.name);
|
|
624
|
-
}
|
|
625
|
-
return col.prop === null ? undefined : col.prop;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
function setColumnDefaults(columns) {
|
|
629
|
-
for (const column of columns) {
|
|
630
|
-
if (!Object.prototype.hasOwnProperty.call(column, 'hidden')) {
|
|
631
|
-
column.hidden = false;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
setColumnDefaults$1(columns);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
// TODO: Replace with a `translateTemplates` function that fits the
|
|
638
|
-
// wrapper component better.
|
|
639
|
-
function translateTemplateColumns(v) {
|
|
640
|
-
const cols = translateTemplates(v);
|
|
641
|
-
for (const col of cols) {
|
|
642
|
-
col.prop = getColumnProp(col);
|
|
643
|
-
}
|
|
644
|
-
return cols;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
var ColumnsTypes;
|
|
648
|
-
(function (ColumnsTypes) {
|
|
649
|
-
ColumnsTypes[ColumnsTypes["Input"] = 0] = "Input";
|
|
650
|
-
ColumnsTypes[ColumnsTypes["Template"] = 1] = "Template";
|
|
651
|
-
ColumnsTypes[ColumnsTypes["Result"] = 2] = "Result";
|
|
652
|
-
})(ColumnsTypes || (ColumnsTypes = {}));
|
|
653
|
-
class ColumnsManagerService {
|
|
654
|
-
constructor(_differs, _columnChangesService) {
|
|
655
|
-
this._differs = _differs;
|
|
656
|
-
this._columnChangesService = _columnChangesService;
|
|
657
|
-
this._updateColumns = new Subject();
|
|
658
|
-
this._inputColumns = new BehaviorSubject([]);
|
|
659
|
-
this._templateColumns = new BehaviorSubject([]);
|
|
660
|
-
this._inpColDiffersMap = new Map();
|
|
661
|
-
this._tplColDiffersMap = new Map();
|
|
662
|
-
this._resultColDiffersMap = new Map();
|
|
663
|
-
const templateColumns$ = this._columnChangesService.columnInputChanges$.pipe(startWith(undefined), switchMap(() => {
|
|
664
|
-
return this._templateColumns.asObservable().pipe(map(translateTemplateColumns));
|
|
665
|
-
}));
|
|
666
|
-
this.columns$ = defer(() => {
|
|
667
|
-
let isFirst = true;
|
|
668
|
-
return combineLatest([
|
|
669
|
-
this._inputColumns.asObservable(),
|
|
670
|
-
templateColumns$,
|
|
671
|
-
this._updateColumns.asObservable().pipe(auditTime(0), startWith(undefined))
|
|
672
|
-
]).pipe(switchMap(([inputColumns, templateColumns]) => {
|
|
673
|
-
const cols = this._mergeColumns(inputColumns, templateColumns);
|
|
674
|
-
const hasColumnsChanged = this._hasColumnsChanged(cols);
|
|
675
|
-
// TODO: Look for columns added/removed and remove the removed columns
|
|
676
|
-
// differs, not just changes to columns.
|
|
677
|
-
const hasAddedOrRemovedColumns = this._hasAddedOrRemovedColumns(cols);
|
|
678
|
-
// NOTE: Both checks need to be run, even though only one needs to be
|
|
679
|
-
// true, because their differs need to be called.
|
|
680
|
-
if (hasColumnsChanged || hasAddedOrRemovedColumns || isFirst) {
|
|
681
|
-
isFirst = false;
|
|
682
|
-
return of(cols);
|
|
683
|
-
}
|
|
684
|
-
return EMPTY;
|
|
685
|
-
}));
|
|
686
|
-
}).pipe(shareReplay({ refCount: true, bufferSize: 1 }));
|
|
687
|
-
}
|
|
688
|
-
setInputColumns(columns) {
|
|
689
|
-
this._inputColumns.next(columns);
|
|
690
|
-
}
|
|
691
|
-
setTemplateColumns(columns) {
|
|
692
|
-
this._templateColumns.next(columns);
|
|
693
|
-
}
|
|
694
|
-
setInternalColumnsGetter(getter) {
|
|
695
|
-
this._internalColumnsGetter = getter || undefined;
|
|
696
|
-
this._updateColumns.next(undefined);
|
|
697
|
-
}
|
|
698
|
-
setSelectionType(selectionType) {
|
|
699
|
-
const changed = this._selectionType !== selectionType;
|
|
700
|
-
this._selectionType = selectionType;
|
|
701
|
-
if (changed) {
|
|
702
|
-
this._updateColumns.next(undefined);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
getSelectionType() {
|
|
706
|
-
return this._selectionType;
|
|
707
|
-
}
|
|
708
|
-
setRowActionItem(rowActionItem) {
|
|
709
|
-
const changed = this._rowActionItem !== rowActionItem;
|
|
710
|
-
this._rowActionItem = rowActionItem;
|
|
711
|
-
if (changed) {
|
|
712
|
-
this._updateColumns.next(undefined);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
setActionItemColumnPosition(actionItemColumnPosition) {
|
|
716
|
-
const changed = this._actionItemColumnPosition !== actionItemColumnPosition;
|
|
717
|
-
this._actionItemColumnPosition = actionItemColumnPosition;
|
|
718
|
-
if (changed) {
|
|
719
|
-
this._updateColumns.next(undefined);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
setActionMenuCellTpl(actionMenuCellTpl) {
|
|
723
|
-
const changed = this._actionMenuCellTpl !== actionMenuCellTpl;
|
|
724
|
-
this._actionMenuCellTpl = actionMenuCellTpl;
|
|
725
|
-
if (changed) {
|
|
726
|
-
this._updateColumns.next(undefined);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
setBlankHeaderTpl(blankHeaderTpl) {
|
|
730
|
-
const changed = this._blankHeaderTpl !== blankHeaderTpl;
|
|
731
|
-
this._blankHeaderTpl = blankHeaderTpl;
|
|
732
|
-
if (changed) {
|
|
733
|
-
this._updateColumns.next(undefined);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
setTreeToggleTpl(treeToggleTpl) {
|
|
737
|
-
const changed = this._treeToggleTpl !== treeToggleTpl;
|
|
738
|
-
this._treeToggleTpl = treeToggleTpl;
|
|
739
|
-
if (changed) {
|
|
740
|
-
this._updateColumns.next(undefined);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
setHeaderTpl(headerTpl) {
|
|
744
|
-
const changed = this._headerTpl !== headerTpl;
|
|
745
|
-
this._headerTpl = headerTpl;
|
|
746
|
-
if (changed) {
|
|
747
|
-
this._updateColumns.next(undefined);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
setCellTypeSelectorTpl(cellTypeSelectorTpl) {
|
|
751
|
-
const changed = this._cellTypeSelectorTpl !== cellTypeSelectorTpl;
|
|
752
|
-
this._cellTypeSelectorTpl = cellTypeSelectorTpl;
|
|
753
|
-
if (changed) {
|
|
754
|
-
this._updateColumns.next(undefined);
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
_mergeColumns(inputColumns, templateColumns) {
|
|
758
|
-
const cols = [];
|
|
759
|
-
// Add the first column checkbox if 'checkbox' selection is enabled.
|
|
760
|
-
if (this._shouldAddCheckboxColumn()) {
|
|
761
|
-
cols.push(createCheckboxColumn());
|
|
762
|
-
}
|
|
763
|
-
// Column needs to be provided in the inputColumns, so iterate the
|
|
764
|
-
// inputColumns.
|
|
765
|
-
for (const inpCol of inputColumns) {
|
|
766
|
-
const prop = getColumnProp(inpCol);
|
|
767
|
-
if (!notNullOrUndefined(prop)) {
|
|
768
|
-
throw Error(`Column may have 'prop' or 'name' defined.`);
|
|
769
|
-
}
|
|
770
|
-
const internalCol = this._getInternalColumn(prop);
|
|
771
|
-
const inpColDif = this._getColDif(inpCol, ColumnsTypes.Input);
|
|
772
|
-
if (notNullOrUndefined(inpColDif)) {
|
|
773
|
-
this._updateColDif(inpColDif, internalCol, inpCol);
|
|
774
|
-
}
|
|
775
|
-
const tplCol = this._findColumnByProp(prop, templateColumns);
|
|
776
|
-
if (tplCol !== undefined) {
|
|
777
|
-
const tplColDif = this._getColDif(tplCol, ColumnsTypes.Template);
|
|
778
|
-
if (notNullOrUndefined(tplColDif)) {
|
|
779
|
-
this._updateColDif(tplColDif, internalCol, tplCol);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
const _col = {
|
|
783
|
-
...(internalCol || {}),
|
|
784
|
-
...inpCol,
|
|
785
|
-
// TODO: Rethink this, because I don't know if this is correct.
|
|
786
|
-
...(tplCol || {})
|
|
787
|
-
};
|
|
788
|
-
if (this._shouldAddTreeToggleColumn(_col)) {
|
|
789
|
-
_col.treeToggleTemplate = this._treeToggleTpl;
|
|
790
|
-
}
|
|
791
|
-
if (this._shouldAddHeaderTemplate(_col)) {
|
|
792
|
-
_col.headerTemplate = this._headerTpl;
|
|
793
|
-
}
|
|
794
|
-
if (this._shouldAddCellTypeSelectorTpl(_col)) {
|
|
795
|
-
_col.cellTemplate = this._cellTypeSelectorTpl;
|
|
796
|
-
}
|
|
797
|
-
cols.push(_col);
|
|
798
|
-
}
|
|
799
|
-
if (this._shouldAddRowActionColumn()) {
|
|
800
|
-
const actionMenuColumn = createActionMenuColumn(this._actionMenuCellTpl, this._blankHeaderTpl, this._rowActionColumnIsFrozenLeft(), this._rowActionColumnIsFrozenRight());
|
|
801
|
-
if (this._rowActionColumnIsStaticLeft()) {
|
|
802
|
-
cols.unshift(actionMenuColumn);
|
|
803
|
-
}
|
|
804
|
-
else {
|
|
805
|
-
cols.push(actionMenuColumn);
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
// Make sure the default for any missing props are set.
|
|
809
|
-
// TODO: Determine if this should be done earlier, because I don't like
|
|
810
|
-
// how this is done after dif checks.
|
|
811
|
-
setColumnDefaults(cols);
|
|
812
|
-
return cols;
|
|
813
|
-
}
|
|
814
|
-
_getInternalColumns() {
|
|
815
|
-
if (this._internalColumnsGetter === undefined) {
|
|
816
|
-
return undefined;
|
|
817
|
-
}
|
|
818
|
-
return this._internalColumnsGetter();
|
|
819
|
-
}
|
|
820
|
-
_getInternalColumn(prop) {
|
|
821
|
-
const internalCols = this._getInternalColumns();
|
|
822
|
-
if (internalCols === undefined) {
|
|
823
|
-
return undefined;
|
|
824
|
-
}
|
|
825
|
-
return internalCols.find(c => getColumnProp(c) === prop);
|
|
826
|
-
}
|
|
827
|
-
_findColumnByProp(prop, columns) {
|
|
828
|
-
return columns.find(c => getColumnProp(c) === prop);
|
|
829
|
-
}
|
|
830
|
-
_getDifMapForColumnsType(columnsType) {
|
|
831
|
-
switch (columnsType) {
|
|
832
|
-
case ColumnsTypes.Input: return this._inpColDiffersMap;
|
|
833
|
-
case ColumnsTypes.Template: return this._tplColDiffersMap;
|
|
834
|
-
case ColumnsTypes.Result: return this._resultColDiffersMap;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
_getColumnDiffer(prop, colsType) {
|
|
838
|
-
const difMap = this._getDifMapForColumnsType(colsType);
|
|
839
|
-
if (difMap === null) {
|
|
840
|
-
throw Error(`Invalid columns type.`);
|
|
841
|
-
}
|
|
842
|
-
if (!difMap.has(prop)) {
|
|
843
|
-
difMap.set(prop, this._differs.find({}).create());
|
|
844
|
-
}
|
|
845
|
-
const differ = difMap.get(prop);
|
|
846
|
-
if (differ === undefined) {
|
|
847
|
-
throw Error(`Differ not found. New differ should have been created.`);
|
|
848
|
-
}
|
|
849
|
-
return differ;
|
|
850
|
-
}
|
|
851
|
-
_getColDif(col, colsType) {
|
|
852
|
-
const prop = getColumnProp(col);
|
|
853
|
-
if (prop === undefined) {
|
|
854
|
-
throw Error(`Column prop not found.`);
|
|
855
|
-
}
|
|
856
|
-
return this._getColumnDiffer(prop, colsType).diff(col);
|
|
857
|
-
}
|
|
858
|
-
_updateColDif(colDif, internalColumn, col) {
|
|
859
|
-
colDif.forEachRemovedItem(r => {
|
|
860
|
-
if (internalColumn && Object.prototype.hasOwnProperty.call(internalColumn, r.key)) {
|
|
861
|
-
const k = r.key;
|
|
862
|
-
delete internalColumn[k];
|
|
863
|
-
}
|
|
864
|
-
});
|
|
865
|
-
colDif.forEachAddedItem(r => col[r.key] = r.currentValue);
|
|
866
|
-
colDif.forEachChangedItem(r => col[r.key] = r.currentValue);
|
|
867
|
-
}
|
|
868
|
-
_hasAddedOrRemovedColumns(columns) {
|
|
869
|
-
if (!this._colPropsDiffer) {
|
|
870
|
-
this._colPropsDiffer = this._differs.find([]).create();
|
|
871
|
-
}
|
|
872
|
-
const props = columns.map(c => getColumnProp(c));
|
|
873
|
-
return this._colPropsDiffer.diff(props) !== null;
|
|
874
|
-
}
|
|
875
|
-
_hasColumnsChanged(columns) {
|
|
876
|
-
let colChanged = false;
|
|
877
|
-
for (const col of columns) {
|
|
878
|
-
const resultDif = this._getColDif(col, ColumnsTypes.Result);
|
|
879
|
-
if (resultDif) {
|
|
880
|
-
// NOTE: Can't return early, because the differs need to be updated.
|
|
881
|
-
colChanged = true;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
return colChanged;
|
|
885
|
-
}
|
|
886
|
-
_shouldAddCheckboxColumn() {
|
|
887
|
-
return this._selectionType === SelectionType.checkbox;
|
|
888
|
-
}
|
|
889
|
-
_shouldAddRowActionColumn() {
|
|
890
|
-
return this._rowActionItem !== undefined;
|
|
891
|
-
}
|
|
892
|
-
_rowActionColumnIsFrozenLeft() {
|
|
893
|
-
return this._actionItemColumnPosition === 'frozenLeft';
|
|
894
|
-
}
|
|
895
|
-
_rowActionColumnIsFrozenRight() {
|
|
896
|
-
return this._actionItemColumnPosition === 'frozenRight';
|
|
897
|
-
}
|
|
898
|
-
_rowActionColumnIsStaticLeft() {
|
|
899
|
-
return this._actionItemColumnPosition === 'staticLeft';
|
|
900
|
-
}
|
|
901
|
-
_rowActionColumnIsStaticRight() {
|
|
902
|
-
return this._actionItemColumnPosition === 'staticRight';
|
|
903
|
-
}
|
|
904
|
-
_shouldAddTreeToggleColumn(column) {
|
|
905
|
-
return column.isTreeColumn !== undefined && column.isTreeColumn &&
|
|
906
|
-
(!hasProperty(column, 'treeToggleTemplate') || !notNullOrUndefined(column.treeToggleTemplate));
|
|
907
|
-
}
|
|
908
|
-
_shouldAddHeaderTemplate(column) {
|
|
909
|
-
return !hasProperty(column, 'headerTemplate');
|
|
910
|
-
}
|
|
911
|
-
_shouldAddCellTypeSelectorTpl(column) {
|
|
912
|
-
return hasProperty(column, 'cellType');
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
ColumnsManagerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsManagerService, deps: [{ token: i0.KeyValueDiffers }, { token: DatatableColumnChangesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
916
|
-
ColumnsManagerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsManagerService });
|
|
917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsManagerService, decorators: [{
|
|
918
|
-
type: Injectable
|
|
919
|
-
}], ctorParameters: function () { return [{ type: i0.KeyValueDiffers }, { type: DatatableColumnChangesService }]; } });
|
|
920
|
-
|
|
921
|
-
const THESEAM_DATATABLE_ACCESSOR = new InjectionToken('TheSeamDatatableAccessor');
|
|
922
|
-
|
|
923
|
-
function removeUnusedDiffs(cols, colDiffersInp, colDiffersTpl) {
|
|
924
|
-
const inpKeys = Object.keys(colDiffersInp);
|
|
925
|
-
inpKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)
|
|
926
|
-
.forEach(k => { delete colDiffersInp[k]; });
|
|
927
|
-
const tplKeys = Object.keys(colDiffersTpl);
|
|
928
|
-
tplKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)
|
|
929
|
-
.forEach(k => { delete colDiffersTpl[k]; });
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
/**
|
|
933
|
-
* Alteration applied to a column or columns that can be persisted.
|
|
934
|
-
*
|
|
935
|
-
* Tracking if a column was altered by user or library code can be confusing.
|
|
936
|
-
* This allows us to store a list of replayable alterations on columns. By
|
|
937
|
-
* having a defined way to implement alterations, the datatable should be easier
|
|
938
|
-
* to support external features that want to provide an alteration.
|
|
939
|
-
*
|
|
940
|
-
* NOTE: Current, to unapply an alteration you can create an alteration with
|
|
941
|
-
* `persistent` set to false and the alteration will be removed after `apply()`
|
|
942
|
-
* is called.
|
|
943
|
-
*/
|
|
944
|
-
class ColumnsAlteration {
|
|
945
|
-
constructor(
|
|
946
|
-
/**
|
|
947
|
-
* Persistable state.
|
|
948
|
-
*
|
|
949
|
-
* Returned value should be JSON stringifyable.
|
|
950
|
-
*/
|
|
951
|
-
state,
|
|
952
|
-
/**
|
|
953
|
-
* If false, the state will not be persisted to a persistent storage and
|
|
954
|
-
* will be removed after applied.
|
|
955
|
-
*/
|
|
956
|
-
persistent) {
|
|
957
|
-
this.state = state;
|
|
958
|
-
this.persistent = persistent;
|
|
959
|
-
this.state = state;
|
|
960
|
-
}
|
|
961
|
-
toJSON() {
|
|
962
|
-
return {
|
|
963
|
-
id: this.id,
|
|
964
|
-
type: this.type,
|
|
965
|
-
state: this.state
|
|
966
|
-
};
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
class HideColumnColumnsAlteration extends ColumnsAlteration {
|
|
971
|
-
constructor(state, persistent) {
|
|
972
|
-
super(state, persistent);
|
|
973
|
-
this.type = 'hide-column';
|
|
974
|
-
if (!this._isValidState(state)) {
|
|
975
|
-
throw Error(`Invalid state: ${JSON.stringify(state)}`);
|
|
976
|
-
}
|
|
977
|
-
this.id = `${this.type}--${state.columnProp}`;
|
|
978
|
-
}
|
|
979
|
-
apply(columns, datatable) {
|
|
980
|
-
for (const col of columns) {
|
|
981
|
-
const prop = getColumnProp(col);
|
|
982
|
-
if (prop === this.state.columnProp) {
|
|
983
|
-
col.hidden = this.state.hidden;
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
_isValidState(state) {
|
|
988
|
-
// NOTE: Checking null or undefined, even though the type doesn't allow,
|
|
989
|
-
// because the state may have been loaded from an invalid persistant
|
|
990
|
-
// storage.
|
|
991
|
-
// TODO: Remove when state validation/migration is implemented to happen
|
|
992
|
-
// when retrieved from storage.
|
|
993
|
-
if (!notNullOrUndefined(state.columnProp)) {
|
|
994
|
-
return false;
|
|
995
|
-
}
|
|
996
|
-
// TODO: Remove when state validation/migration is implemented to happen
|
|
997
|
-
// when retrieved from storage.
|
|
998
|
-
if (!notNullOrUndefined(state.hidden)) {
|
|
999
|
-
return false;
|
|
1000
|
-
}
|
|
1001
|
-
return true;
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
class SortColumnsAlteration extends ColumnsAlteration {
|
|
1006
|
-
constructor(state, persistent) {
|
|
1007
|
-
super(state, persistent);
|
|
1008
|
-
this.type = 'sort';
|
|
1009
|
-
if (!this._isValidState(state)) {
|
|
1010
|
-
throw Error(`Invalid state: ${JSON.stringify(state)}`);
|
|
1011
|
-
}
|
|
1012
|
-
this.id = `${this.type}`;
|
|
1013
|
-
}
|
|
1014
|
-
apply(columns, datatable) {
|
|
1015
|
-
if (datatable.sortType === SortType.single) {
|
|
1016
|
-
datatable.sorts = this.state.sorts.length > 0 ? [this.state.sorts[0]] : [];
|
|
1017
|
-
}
|
|
1018
|
-
else {
|
|
1019
|
-
datatable.sorts = this.state.sorts;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
_isValidState(state) {
|
|
1023
|
-
// NOTE: Checking null or undefined, even though the type doesn't allow,
|
|
1024
|
-
// because the state may have been loaded from an invalid persistant
|
|
1025
|
-
// storage.
|
|
1026
|
-
// TODO: Remove when state validation/migration is implemented to happen
|
|
1027
|
-
// when retrieved from storage.
|
|
1028
|
-
if (!notNullOrUndefined(state.sorts)) {
|
|
1029
|
-
return false;
|
|
1030
|
-
}
|
|
1031
|
-
return true;
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
class WidthColumnsAlteration extends ColumnsAlteration {
|
|
1036
|
-
constructor(state, persistent) {
|
|
1037
|
-
super(state, persistent);
|
|
1038
|
-
this.type = 'width';
|
|
1039
|
-
if (!this._isValidState(state)) {
|
|
1040
|
-
throw Error(`Invalid state: ${JSON.stringify(state)}`);
|
|
1041
|
-
}
|
|
1042
|
-
this.id = `${this.type}--${state.columnProp}`;
|
|
1043
|
-
}
|
|
1044
|
-
apply(columns, datatable) {
|
|
1045
|
-
for (const col of columns) {
|
|
1046
|
-
const prop = getColumnProp(col);
|
|
1047
|
-
if (prop === this.state.columnProp) {
|
|
1048
|
-
col.canAutoResize = this.state.canAutoResize;
|
|
1049
|
-
if (notNullOrUndefined(this.state.width)) {
|
|
1050
|
-
col.width = this.state.width;
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
_isValidState(state) {
|
|
1056
|
-
// NOTE: Checking null or undefined, even though the type doesn't allow,
|
|
1057
|
-
// because the state may have been loaded from an invalid persistant
|
|
1058
|
-
// storage.
|
|
1059
|
-
// TODO: Remove when state validation/migration is implemented to happen
|
|
1060
|
-
// when retrieved from storage.
|
|
1061
|
-
if (!notNullOrUndefined(state.columnProp)) {
|
|
1062
|
-
return false;
|
|
1063
|
-
}
|
|
1064
|
-
// TODO: Remove when state validation/migration is implemented to happen
|
|
1065
|
-
// when retrieved from storage.
|
|
1066
|
-
if (!notNullOrUndefined(state.canAutoResize)) {
|
|
1067
|
-
return false;
|
|
1068
|
-
}
|
|
1069
|
-
return true;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
class ColumnsAlterationsManagerService {
|
|
1074
|
-
constructor() {
|
|
1075
|
-
this._changesSubject = new Subject();
|
|
1076
|
-
this._alterations = [];
|
|
1077
|
-
this.changes = this._changesSubject.asObservable();
|
|
1078
|
-
}
|
|
1079
|
-
get() {
|
|
1080
|
-
return [...this._alterations];
|
|
1081
|
-
}
|
|
1082
|
-
/**
|
|
1083
|
-
* Adds alterations to be applied to columns.
|
|
1084
|
-
*
|
|
1085
|
-
* If an alteration with the same `id` already exists then the existing
|
|
1086
|
-
* alteration will be removed and the new one added.
|
|
1087
|
-
*
|
|
1088
|
-
* NOTE: When there is a duplicate alteration the old alteration is removed,
|
|
1089
|
-
* instead of updated, to maintain the order alterations are applied.
|
|
1090
|
-
*/
|
|
1091
|
-
add(alterations, options) {
|
|
1092
|
-
// console.log('add', alterations)
|
|
1093
|
-
const removed = this.remove(alterations, { emitEvent: false });
|
|
1094
|
-
this._alterations = [...this._alterations, ...alterations];
|
|
1095
|
-
const changes = [
|
|
1096
|
-
...removed,
|
|
1097
|
-
...alterations.map(a => {
|
|
1098
|
-
const record = {
|
|
1099
|
-
type: 'added',
|
|
1100
|
-
alteration: a
|
|
1101
|
-
};
|
|
1102
|
-
return record;
|
|
1103
|
-
})
|
|
1104
|
-
];
|
|
1105
|
-
if (notNullOrUndefined(options?.emitEvent) && !options?.emitEvent) {
|
|
1106
|
-
return changes;
|
|
1107
|
-
}
|
|
1108
|
-
this._emitChanges(changes);
|
|
1109
|
-
return changes;
|
|
1110
|
-
}
|
|
1111
|
-
remove(alterations, options) {
|
|
1112
|
-
// console.log('remove', alterations)
|
|
1113
|
-
const removed = [];
|
|
1114
|
-
this._alterations = this._alterations.filter(x => {
|
|
1115
|
-
const found = alterations.findIndex(y => y.id === x.id) !== -1;
|
|
1116
|
-
if (found) {
|
|
1117
|
-
const eventRecord = {
|
|
1118
|
-
type: 'removed',
|
|
1119
|
-
alteration: x
|
|
1120
|
-
};
|
|
1121
|
-
removed.push(eventRecord);
|
|
1122
|
-
}
|
|
1123
|
-
return !found;
|
|
1124
|
-
});
|
|
1125
|
-
// console.log('removed', removed, this._alterations)
|
|
1126
|
-
if (notNullOrUndefined(options?.emitEvent) && !options?.emitEvent) {
|
|
1127
|
-
return removed;
|
|
1128
|
-
}
|
|
1129
|
-
this._emitChanges(removed);
|
|
1130
|
-
return removed;
|
|
1131
|
-
}
|
|
1132
|
-
apply(columns, datatable) {
|
|
1133
|
-
for (const a of this._alterations) {
|
|
1134
|
-
a.apply(columns, datatable);
|
|
1135
|
-
}
|
|
1136
|
-
this._removeNonPersistant();
|
|
1137
|
-
}
|
|
1138
|
-
// TODO: Make aware of original column order and properties. This is tricky,
|
|
1139
|
-
// because the datatable does not deal with immutable column/row records and
|
|
1140
|
-
// it is hard to know where changes happened. Just serializing the columns
|
|
1141
|
-
// input is not enough, because the columns input is called anytime the user
|
|
1142
|
-
// makes a column change. We can probably come up with a mostly accurate
|
|
1143
|
-
// implementation, such as "reset original columns cache when preferencesKey
|
|
1144
|
-
// changes" or "number of columns change". There are issues with those rules,
|
|
1145
|
-
// but with some testing/experimenting I think there should be a "good enough"
|
|
1146
|
-
// solution.
|
|
1147
|
-
//
|
|
1148
|
-
// TODO: Find a generic way to clear alterations. I would like to add an
|
|
1149
|
-
// `unapply` method to `ColumnsAlteration`, but since the alterations
|
|
1150
|
-
// themselves are not too generic it may be tricky.
|
|
1151
|
-
clear(options) {
|
|
1152
|
-
const changes = [];
|
|
1153
|
-
for (const colAlt of this._alterations) {
|
|
1154
|
-
switch (colAlt.type) {
|
|
1155
|
-
case 'hide-column': {
|
|
1156
|
-
const alteration = new HideColumnColumnsAlteration({ columnProp: colAlt.state.columnProp, hidden: false }, false);
|
|
1157
|
-
changes.push(...this.add([alteration]));
|
|
1158
|
-
break;
|
|
1159
|
-
}
|
|
1160
|
-
case 'order': {
|
|
1161
|
-
changes.push(...this.remove([colAlt]));
|
|
1162
|
-
break;
|
|
1163
|
-
}
|
|
1164
|
-
case 'sort': {
|
|
1165
|
-
const alteration = new SortColumnsAlteration({ sorts: [] }, false);
|
|
1166
|
-
changes.push(...this.add([alteration]));
|
|
1167
|
-
break;
|
|
1168
|
-
}
|
|
1169
|
-
case 'width': {
|
|
1170
|
-
const alteration = new WidthColumnsAlteration({ columnProp: colAlt.state.columnProp, canAutoResize: true }, false);
|
|
1171
|
-
changes.push(...this.add([alteration]));
|
|
1172
|
-
break;
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
if (notNullOrUndefined(options?.emitEvent) && !options?.emitEvent) {
|
|
1177
|
-
return changes;
|
|
1178
|
-
}
|
|
1179
|
-
this._emitChanges(changes);
|
|
1180
|
-
return changes;
|
|
1181
|
-
}
|
|
1182
|
-
_removeNonPersistant() {
|
|
1183
|
-
const nonPersistent = this._alterations.filter(x => !x.persistent);
|
|
1184
|
-
this.remove(nonPersistent, { emitEvent: false });
|
|
1185
|
-
}
|
|
1186
|
-
_emitChanges(changes) {
|
|
1187
|
-
if (changes.length === 0) {
|
|
1188
|
-
return;
|
|
1189
|
-
}
|
|
1190
|
-
const event = {
|
|
1191
|
-
changes
|
|
1192
|
-
};
|
|
1193
|
-
this._changesSubject.next(event);
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
ColumnsAlterationsManagerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsAlterationsManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1197
|
-
ColumnsAlterationsManagerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsAlterationsManagerService });
|
|
1198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsAlterationsManagerService, decorators: [{
|
|
1199
|
-
type: Injectable
|
|
1200
|
-
}], ctorParameters: function () { return []; } });
|
|
1201
|
-
|
|
1202
|
-
/**
|
|
1203
|
-
* Strings used for columns created and managed
|
|
1204
|
-
* by the datatable.
|
|
1205
|
-
*/
|
|
1206
|
-
const INTERNAL_COLUMN_PROPS = [
|
|
1207
|
-
ACTION_MENU_COLUMN_PROP,
|
|
1208
|
-
CHECKBOX_COLUMN_PROP
|
|
1209
|
-
];
|
|
1210
|
-
function isInternalColumn(column) {
|
|
1211
|
-
return INTERNAL_COLUMN_PROPS.findIndex(p => getColumnProp(column) === p) !== -1;
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
class OrderColumnsAlteration extends ColumnsAlteration {
|
|
1215
|
-
constructor(state, persistent) {
|
|
1216
|
-
super(state, persistent);
|
|
1217
|
-
this.type = 'order';
|
|
1218
|
-
if (!this._isValidState(state)) {
|
|
1219
|
-
throw Error(`Invalid state: ${JSON.stringify(state)}`);
|
|
1220
|
-
}
|
|
1221
|
-
this.id = `${this.type}`;
|
|
1222
|
-
}
|
|
1223
|
-
apply(columns, datatable) {
|
|
1224
|
-
if (this.state.columns.length === 0) {
|
|
1225
|
-
return;
|
|
1226
|
-
}
|
|
1227
|
-
const stateColumns = this._stateColumns();
|
|
1228
|
-
// The internal columns are not intended for a user to be able to move them.
|
|
1229
|
-
// Store the internal columns current index, so it can be moved back ofter
|
|
1230
|
-
// sorting. This may not be the best way to do this, but it is easier than
|
|
1231
|
-
// making a sort that avoids them.
|
|
1232
|
-
//
|
|
1233
|
-
// NOTE: If we add an internal column that can be moved then this will need
|
|
1234
|
-
// to be changed.
|
|
1235
|
-
const internalColumns = columns
|
|
1236
|
-
.map((column, index) => ({ column, index }))
|
|
1237
|
-
.filter(x => isInternalColumn(x.column));
|
|
1238
|
-
for (const c of stateColumns) {
|
|
1239
|
-
const currentIndex = columns.findIndex(x => getColumnProp(x) === c.columnProp);
|
|
1240
|
-
if (currentIndex === c.index || currentIndex === -1) {
|
|
1241
|
-
// Skip if already at correct index.
|
|
1242
|
-
// Skip columns not found. It may be a column that was removed from the
|
|
1243
|
-
// table, but we still want to handle the other columns.
|
|
1244
|
-
continue;
|
|
1245
|
-
}
|
|
1246
|
-
arrayMoveMutable(columns, currentIndex, c.index);
|
|
1247
|
-
}
|
|
1248
|
-
for (const c of internalColumns) {
|
|
1249
|
-
const currentIndex = columns.findIndex(col => col === c.column);
|
|
1250
|
-
if (currentIndex !== -1) {
|
|
1251
|
-
arrayMoveMutable(columns, currentIndex, c.index);
|
|
1252
|
-
}
|
|
1253
|
-
else {
|
|
1254
|
-
if (isDevMode()) {
|
|
1255
|
-
// eslint-disable-next-line no-console
|
|
1256
|
-
console.warn(`Internal column could not be found after sorting. Was it lost during the sorting?`);
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
_isValidState(state) {
|
|
1262
|
-
// NOTE: Checking null or undefined, even though the type doesn't allow,
|
|
1263
|
-
// because the state may have been loaded from an invalid persistant
|
|
1264
|
-
// storage.
|
|
1265
|
-
// TODO: Remove when state validation/migration is implemented to happen
|
|
1266
|
-
// when retrieved from storage.
|
|
1267
|
-
if (!notNullOrUndefined(state.columns)) {
|
|
1268
|
-
return false;
|
|
1269
|
-
}
|
|
1270
|
-
// NOTE: Didn't iterate each column record, because it is probably better to
|
|
1271
|
-
// just skip to invalid column records. It does prevent being able to
|
|
1272
|
-
// validate the whole state though.
|
|
1273
|
-
return true;
|
|
1274
|
-
}
|
|
1275
|
-
_isColumnOrderRecordValid(columnOrder) {
|
|
1276
|
-
return notNullOrUndefined(columnOrder.columnProp) && notNullOrUndefined(columnOrder.index);
|
|
1277
|
-
}
|
|
1278
|
-
_stateColumns() {
|
|
1279
|
-
return this.state.columns.filter(c => {
|
|
1280
|
-
if (!this._isColumnOrderRecordValid(c)) {
|
|
1281
|
-
if (isDevMode()) {
|
|
1282
|
-
// eslint-disable-next-line no-console
|
|
1283
|
-
console.warn('Invalid column order record', c);
|
|
1284
|
-
}
|
|
1285
|
-
return false;
|
|
1286
|
-
}
|
|
1287
|
-
return true;
|
|
1288
|
-
}).sort((a, b) => a.index === b.index ? 0 : a.index > b.index ? 1 : -1);
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
function mapColumnsAlterationsStates(states) {
|
|
1293
|
-
const alterations = [];
|
|
1294
|
-
for (const state of states) {
|
|
1295
|
-
try {
|
|
1296
|
-
switch (state.type) {
|
|
1297
|
-
case 'hide-column':
|
|
1298
|
-
alterations.push(new HideColumnColumnsAlteration(state.state, true));
|
|
1299
|
-
break;
|
|
1300
|
-
case 'width':
|
|
1301
|
-
alterations.push(new WidthColumnsAlteration(state.state, true));
|
|
1302
|
-
break;
|
|
1303
|
-
case 'order':
|
|
1304
|
-
alterations.push(new OrderColumnsAlteration(state.state, true));
|
|
1305
|
-
break;
|
|
1306
|
-
case 'sort':
|
|
1307
|
-
alterations.push(new SortColumnsAlteration(state.state, true));
|
|
1308
|
-
break;
|
|
1309
|
-
default: {
|
|
1310
|
-
if (isDevMode()) {
|
|
1311
|
-
// eslint-disable-next-line no-console
|
|
1312
|
-
console.warn('Unrecognized ColumnsAlteration state', state);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
catch (e) {
|
|
1318
|
-
if (isDevMode()) {
|
|
1319
|
-
// eslint-disable-next-line no-console
|
|
1320
|
-
console.warn('Unable to map ColumnsAlteration state', state);
|
|
1321
|
-
// eslint-disable-next-line no-console
|
|
1322
|
-
console.warn(e);
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
return alterations;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
const ActionItemColumnPosition = ['frozenLeft', 'frozenRight', 'staticLeft', 'staticRight'];
|
|
1330
|
-
function isActionItemColumnPosition(input) {
|
|
1331
|
-
return ActionItemColumnPosition.indexOf(input) != -1;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
class ColumnsDataFilter {
|
|
1335
|
-
constructor(prop, initialValue, column) {
|
|
1336
|
-
this.prop = prop;
|
|
1337
|
-
this.initialValue = initialValue;
|
|
1338
|
-
this.column = column;
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
const THESEAM_COLUMNS_DATA_FILTER = new InjectionToken('ColumnsDataFilter');
|
|
1342
|
-
|
|
1343
|
-
const THESEAM_COLUMNS_DATA_FILTER_DATE_SEARCH_NAME = 'search-date';
|
|
1344
|
-
const THESEAM_COLUMNS_DATA_FILTER_DATE_SEARCH_TYPES = [
|
|
1345
|
-
'lt',
|
|
1346
|
-
'lte',
|
|
1347
|
-
'gt',
|
|
1348
|
-
'gte',
|
|
1349
|
-
'eq',
|
|
1350
|
-
'blank',
|
|
1351
|
-
'not-blank',
|
|
1352
|
-
'between',
|
|
1353
|
-
'not-between'
|
|
1354
|
-
];
|
|
1355
|
-
const THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES = [
|
|
1356
|
-
'lt',
|
|
1357
|
-
'lte',
|
|
1358
|
-
'gt',
|
|
1359
|
-
'gte',
|
|
1360
|
-
'eq',
|
|
1361
|
-
];
|
|
1362
|
-
const THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES = [
|
|
1363
|
-
'between',
|
|
1364
|
-
'not-between'
|
|
1365
|
-
];
|
|
1366
|
-
const THESEAM_COLUMNS_DATA_FILTER_DATE_SELECT_SEARCH_TYPES = [
|
|
1367
|
-
'blank',
|
|
1368
|
-
'not-blank',
|
|
1369
|
-
];
|
|
1370
|
-
const THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SEARCH_NAME = 'search-numeric';
|
|
1371
|
-
const THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SEARCH_TYPES = [
|
|
1372
|
-
'gt',
|
|
1373
|
-
'lt',
|
|
1374
|
-
'eq',
|
|
1375
|
-
'gte',
|
|
1376
|
-
'lte',
|
|
1377
|
-
'blank',
|
|
1378
|
-
'not-blank',
|
|
1379
|
-
'between',
|
|
1380
|
-
'not-between'
|
|
1381
|
-
];
|
|
1382
|
-
const THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES = [
|
|
1383
|
-
'gt',
|
|
1384
|
-
'lt',
|
|
1385
|
-
'eq',
|
|
1386
|
-
'gte',
|
|
1387
|
-
'lte',
|
|
1388
|
-
];
|
|
1389
|
-
const THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES = [
|
|
1390
|
-
'between',
|
|
1391
|
-
'not-between'
|
|
1392
|
-
];
|
|
1393
|
-
const THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SELECT_SEARCH_TYPES = [
|
|
1394
|
-
'blank',
|
|
1395
|
-
'not-blank',
|
|
1396
|
-
];
|
|
1397
|
-
const THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_NAME = 'search-text';
|
|
1398
|
-
const THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_TYPES = [
|
|
1399
|
-
'contains',
|
|
1400
|
-
'ncontains',
|
|
1401
|
-
'eq',
|
|
1402
|
-
'neq',
|
|
1403
|
-
'blank',
|
|
1404
|
-
'not-blank'
|
|
1405
|
-
];
|
|
1406
|
-
const THESEAM_COLUMNS_DATA_FILTER_TEXT_TEXT_SEARCH_TYPES = [
|
|
1407
|
-
'contains',
|
|
1408
|
-
'ncontains',
|
|
1409
|
-
'eq',
|
|
1410
|
-
'neq',
|
|
1411
|
-
];
|
|
1412
|
-
const THESEAM_COLUMNS_DATA_FILTER_TEXT_SELECT_SEARCH_TYPES = [
|
|
1413
|
-
'blank',
|
|
1414
|
-
'not-blank'
|
|
1415
|
-
];
|
|
1416
|
-
|
|
1417
|
-
class SearchDateColumnsDataFilter extends ColumnsDataFilter {
|
|
1418
|
-
constructor(prop, initialValue, column) {
|
|
1419
|
-
super(prop, initialValue, column);
|
|
1420
|
-
this.name = THESEAM_COLUMNS_DATA_FILTER_DATE_SEARCH_NAME;
|
|
1421
|
-
this._updateFilterValue = new Subject;
|
|
1422
|
-
this.form = new FormGroup({
|
|
1423
|
-
searchType: new FormControl(notNullOrUndefined(initialValue) ? initialValue.searchType : 'eq'),
|
|
1424
|
-
searchText: new FormControl(notNullOrUndefined(initialValue) ? initialValue.searchText : null),
|
|
1425
|
-
fromText: new FormControl(notNullOrUndefined(initialValue) ? initialValue.fromText : null),
|
|
1426
|
-
toText: new FormControl(notNullOrUndefined(initialValue) ? initialValue.toText : null),
|
|
1427
|
-
});
|
|
1428
|
-
this.uid = `${this.name}--${prop}`;
|
|
1429
|
-
this.filterStateChanges = this._updateFilterValue.pipe(startWith$1(undefined), map$1(() => this.filterState()));
|
|
1430
|
-
this.options = {
|
|
1431
|
-
dateType: this.column.filterOptions?.dateType || 'date'
|
|
1432
|
-
};
|
|
1433
|
-
}
|
|
1434
|
-
dataFilter(data, filterValue, options) {
|
|
1435
|
-
if (isNullOrUndefined(filterValue) || this.isDefault()) {
|
|
1436
|
-
return data;
|
|
1437
|
-
}
|
|
1438
|
-
return this._dateSearchDataFilter(this.prop, data, filterValue.searchText, filterValue.fromText, filterValue.toText, filterValue.searchType || null);
|
|
1439
|
-
}
|
|
1440
|
-
_isInvalidDate(dateString) {
|
|
1441
|
-
return isNullOrUndefinedOrEmpty(dateString) || isNaN(new Date(dateString).valueOf());
|
|
1442
|
-
}
|
|
1443
|
-
_isInvalidSearchTerm(searchText, fromText, toText, comparator) {
|
|
1444
|
-
if (THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES.includes(comparator) && this._isInvalidDate(searchText)) {
|
|
1445
|
-
return true;
|
|
1446
|
-
}
|
|
1447
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES.includes(comparator) && (this._isInvalidDate(fromText) || this._isInvalidDate(toText))) {
|
|
1448
|
-
return true;
|
|
1449
|
-
}
|
|
1450
|
-
return false;
|
|
1451
|
-
}
|
|
1452
|
-
_dateSearchDataFilter(prop, data, text, fromText, toText, comparator) {
|
|
1453
|
-
if (!data || data.length <= 0 || isNullOrUndefined(comparator)) {
|
|
1454
|
-
console.warn('No filter applied - invalid options.');
|
|
1455
|
-
return data;
|
|
1456
|
-
}
|
|
1457
|
-
if (this._isInvalidSearchTerm(text, fromText, toText, comparator)) {
|
|
1458
|
-
console.warn('No filter applied - invalid search terms.');
|
|
1459
|
-
return data;
|
|
1460
|
-
}
|
|
1461
|
-
const useLocalTime = this.column.filterOptions?.useLocalTime === true;
|
|
1462
|
-
const textDate = getFormattedDateForComparison(text, this.options.dateType, true);
|
|
1463
|
-
const fromTextDate = getFormattedDateForComparison(fromText, this.options.dateType, true);
|
|
1464
|
-
const toTextDate = getFormattedDateForComparison(toText, this.options.dateType, true);
|
|
1465
|
-
return data.filter(item => {
|
|
1466
|
-
let propDate = getFormattedDateForComparison(item[prop], this.options.dateType, useLocalTime);
|
|
1467
|
-
if ((comparator === 'blank' && (isNullOrUndefined(item[prop]) || isNullOrUndefinedOrEmpty(`${item[prop]}`))) ||
|
|
1468
|
-
(comparator === 'not-blank' && notNullOrUndefined(item[prop]) && notNullOrUndefinedOrEmpty(`${item[prop]}`)) ||
|
|
1469
|
-
(comparator === 'lt' && propDate.valueOf() < textDate.valueOf()) ||
|
|
1470
|
-
(comparator === 'lte' && propDate.valueOf() <= textDate.valueOf()) ||
|
|
1471
|
-
(comparator === 'gt' && propDate.valueOf() > textDate.valueOf()) ||
|
|
1472
|
-
(comparator === 'gte' && propDate.valueOf() >= textDate.valueOf()) ||
|
|
1473
|
-
(comparator === 'eq' && propDate.valueOf() === textDate.valueOf()) ||
|
|
1474
|
-
(comparator === 'between' && propDate.valueOf() >= fromTextDate.valueOf() && propDate.valueOf() <= toTextDate.valueOf()) ||
|
|
1475
|
-
(comparator === 'not-between' && !(propDate.valueOf() >= fromTextDate.valueOf() && propDate.valueOf() <= toTextDate.valueOf()))) {
|
|
1476
|
-
return true;
|
|
1477
|
-
}
|
|
1478
|
-
return false;
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
filter(data) {
|
|
1482
|
-
return this._updateFilterValue.pipe(startWith$1(undefined), map$1(() => this.dataFilter(data, this.form.value, undefined)));
|
|
1483
|
-
}
|
|
1484
|
-
filterState() {
|
|
1485
|
-
return {
|
|
1486
|
-
name: this.name,
|
|
1487
|
-
state: {
|
|
1488
|
-
prop: this.prop,
|
|
1489
|
-
formValue: this.form.value,
|
|
1490
|
-
options: this.options
|
|
1491
|
-
}
|
|
1492
|
-
};
|
|
1493
|
-
}
|
|
1494
|
-
applyFilter() {
|
|
1495
|
-
this._updateFilterValue.next();
|
|
1496
|
-
}
|
|
1497
|
-
clearFilter() {
|
|
1498
|
-
this.form.setValue({
|
|
1499
|
-
searchType: 'eq',
|
|
1500
|
-
searchText: null,
|
|
1501
|
-
fromText: null,
|
|
1502
|
-
toText: null
|
|
1503
|
-
});
|
|
1504
|
-
this._updateFilterValue.next();
|
|
1505
|
-
}
|
|
1506
|
-
isDefault() {
|
|
1507
|
-
const formValue = this.form.value;
|
|
1508
|
-
if (isNullOrUndefinedOrEmpty(formValue.searchType)) {
|
|
1509
|
-
return true;
|
|
1510
|
-
}
|
|
1511
|
-
if (THESEAM_COLUMNS_DATA_FILTER_DATE_SELECT_SEARCH_TYPES.includes(formValue.searchType)) {
|
|
1512
|
-
return false;
|
|
1513
|
-
}
|
|
1514
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES.includes(formValue.searchType) && notNullOrUndefinedOrEmpty(formValue.searchText)) {
|
|
1515
|
-
return false;
|
|
1516
|
-
}
|
|
1517
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES.includes(formValue.searchType) && notNullOrUndefinedOrEmpty(formValue.fromText) && notNullOrUndefinedOrEmpty(formValue.toText)) {
|
|
1518
|
-
return false;
|
|
1519
|
-
}
|
|
1520
|
-
return true;
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
class SearchNumericColumnsDataFilter extends ColumnsDataFilter {
|
|
1525
|
-
constructor(prop, initialValue, column) {
|
|
1526
|
-
super(prop, initialValue, column);
|
|
1527
|
-
this.name = THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SEARCH_NAME;
|
|
1528
|
-
this._updateFilterValue = new Subject;
|
|
1529
|
-
this.form = new FormGroup({
|
|
1530
|
-
searchType: new FormControl(notNullOrUndefined(initialValue) ? initialValue.searchType : 'eq'),
|
|
1531
|
-
searchText: new FormControl(notNullOrUndefined(initialValue) ? initialValue.searchText : null),
|
|
1532
|
-
fromText: new FormControl(notNullOrUndefined(initialValue) ? initialValue.fromText : null),
|
|
1533
|
-
toText: new FormControl(notNullOrUndefined(initialValue) ? initialValue.toText : null),
|
|
1534
|
-
});
|
|
1535
|
-
this.uid = `${this.name}--${prop}`;
|
|
1536
|
-
this.filterStateChanges = this._updateFilterValue.pipe(startWith$1(undefined), map$1(() => this.filterState()));
|
|
1537
|
-
}
|
|
1538
|
-
dataFilter(data, filterValue, options) {
|
|
1539
|
-
if (isNullOrUndefined(filterValue) || this.isDefault()) {
|
|
1540
|
-
return data;
|
|
1541
|
-
}
|
|
1542
|
-
return this.numberSearchDataFilter(this.prop, data, filterValue.searchText, filterValue.fromText, filterValue.toText, filterValue.searchType || null);
|
|
1543
|
-
}
|
|
1544
|
-
_isInvalidSearchTerm(searchText, fromText, toText, comparator) {
|
|
1545
|
-
if (isNaN(searchText) && THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES.includes(comparator)) {
|
|
1546
|
-
return true;
|
|
1547
|
-
}
|
|
1548
|
-
else if ((isNaN(fromText) || isNaN(toText)) && THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES.includes(comparator)) {
|
|
1549
|
-
return true;
|
|
1550
|
-
}
|
|
1551
|
-
return false;
|
|
1552
|
-
}
|
|
1553
|
-
numberSearchDataFilter(prop, data, text, fromText, toText, comparator) {
|
|
1554
|
-
if (!data || data.length <= 0 || isNullOrUndefined(comparator)) {
|
|
1555
|
-
console.warn('No filter applied - invalid options.');
|
|
1556
|
-
return data;
|
|
1557
|
-
}
|
|
1558
|
-
const textNumeric = notNullOrUndefinedOrEmpty(text) ? parseFloat(text) : NaN;
|
|
1559
|
-
const toTextNumeric = notNullOrUndefinedOrEmpty(toText) ? parseFloat(toText) : NaN;
|
|
1560
|
-
const fromTextNumeric = notNullOrUndefinedOrEmpty(fromText) ? parseFloat(fromText) : NaN;
|
|
1561
|
-
if (this._isInvalidSearchTerm(textNumeric, fromTextNumeric, toTextNumeric, comparator)) {
|
|
1562
|
-
console.warn('No filter applied - invalid search terms.');
|
|
1563
|
-
return data;
|
|
1564
|
-
}
|
|
1565
|
-
return data.filter(item => {
|
|
1566
|
-
let propNumeric = parseFloat(item[prop]);
|
|
1567
|
-
if ((comparator === 'blank' && (isNullOrUndefined(item[prop]) || isNullOrUndefinedOrEmpty(`${item[prop]}`))) ||
|
|
1568
|
-
(comparator === 'not-blank' && notNullOrUndefined(item[prop]) && notNullOrUndefinedOrEmpty(`${item[prop]}`)) ||
|
|
1569
|
-
(comparator === 'lt' && propNumeric < textNumeric) ||
|
|
1570
|
-
(comparator === 'lte' && propNumeric <= textNumeric) ||
|
|
1571
|
-
(comparator === 'gt' && propNumeric > textNumeric) ||
|
|
1572
|
-
(comparator === 'gte' && propNumeric >= textNumeric) ||
|
|
1573
|
-
(comparator === 'eq' && propNumeric === textNumeric) ||
|
|
1574
|
-
(comparator === 'between' && propNumeric >= fromTextNumeric && propNumeric <= toTextNumeric) ||
|
|
1575
|
-
(comparator === 'not-between' && !(propNumeric >= fromTextNumeric && propNumeric <= toTextNumeric))) {
|
|
1576
|
-
return true;
|
|
1577
|
-
}
|
|
1578
|
-
return false;
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
filter(data) {
|
|
1582
|
-
return this._updateFilterValue.pipe(startWith$1(undefined), map$1(() => this.dataFilter(data, this.form.value, undefined)));
|
|
1583
|
-
}
|
|
1584
|
-
filterState() {
|
|
1585
|
-
return {
|
|
1586
|
-
name: this.name,
|
|
1587
|
-
state: {
|
|
1588
|
-
prop: this.prop,
|
|
1589
|
-
formValue: this.form.value
|
|
1590
|
-
}
|
|
1591
|
-
};
|
|
1592
|
-
}
|
|
1593
|
-
applyFilter() {
|
|
1594
|
-
this._updateFilterValue.next();
|
|
1595
|
-
}
|
|
1596
|
-
clearFilter() {
|
|
1597
|
-
this.form.setValue({
|
|
1598
|
-
searchType: 'eq',
|
|
1599
|
-
searchText: null,
|
|
1600
|
-
fromText: null,
|
|
1601
|
-
toText: null
|
|
1602
|
-
});
|
|
1603
|
-
this._updateFilterValue.next();
|
|
1604
|
-
}
|
|
1605
|
-
isDefault() {
|
|
1606
|
-
const formValue = this.form.value;
|
|
1607
|
-
if (isNullOrUndefinedOrEmpty(formValue.searchType)) {
|
|
1608
|
-
return true;
|
|
1609
|
-
}
|
|
1610
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SELECT_SEARCH_TYPES.includes(formValue.searchType)) {
|
|
1611
|
-
return false;
|
|
1612
|
-
}
|
|
1613
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES.includes(formValue.searchType) && notNullOrUndefinedOrEmpty(formValue.searchText)) {
|
|
1614
|
-
return false;
|
|
1615
|
-
}
|
|
1616
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES.includes(formValue.searchType) && notNullOrUndefinedOrEmpty(formValue.fromText) && notNullOrUndefinedOrEmpty(formValue.toText)) {
|
|
1617
|
-
return false;
|
|
1618
|
-
}
|
|
1619
|
-
return true;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
class SearchTextColumnsDataFilter extends ColumnsDataFilter {
|
|
1624
|
-
constructor(prop, initialValue, column) {
|
|
1625
|
-
super(prop, initialValue, column);
|
|
1626
|
-
this.name = THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_NAME;
|
|
1627
|
-
this._updateFilterValue = new Subject;
|
|
1628
|
-
this.form = new FormGroup({
|
|
1629
|
-
searchType: new FormControl(notNullOrUndefined(initialValue) ? initialValue.searchType : 'contains'),
|
|
1630
|
-
searchText: new FormControl(notNullOrUndefined(initialValue) ? initialValue.searchText : null),
|
|
1631
|
-
// caseSensitive: new FormControl<boolean | null>(notNullOrUndefined(initialValue) ? initialValue.caseSensitive : null),
|
|
1632
|
-
});
|
|
1633
|
-
this.uid = `${this.name}--${prop}`;
|
|
1634
|
-
this.filterStateChanges = this._updateFilterValue.pipe(startWith$1(undefined), map$1(() => this.filterState()));
|
|
1635
|
-
}
|
|
1636
|
-
dataFilter(data, filterValue, options) {
|
|
1637
|
-
if (isNullOrUndefined(filterValue) || this.isDefault()) {
|
|
1638
|
-
return data;
|
|
1639
|
-
}
|
|
1640
|
-
return this._textSearchDataFilter(this.prop, data, filterValue.searchText, filterValue.searchType || null);
|
|
1641
|
-
}
|
|
1642
|
-
_textSearchDataFilter(prop, data, text, comparator) {
|
|
1643
|
-
if (!data || data.length < 0 || isNullOrUndefined(comparator)) {
|
|
1644
|
-
return data;
|
|
1645
|
-
}
|
|
1646
|
-
return data.filter(item => {
|
|
1647
|
-
let value1 = `${notNullOrUndefined(item[prop]) ? item[prop] : ''}`;
|
|
1648
|
-
let value2 = text || '';
|
|
1649
|
-
// if (!options.caseSensitive) {
|
|
1650
|
-
// value1 = value1.toLowerCase()
|
|
1651
|
-
// value2 = value2.toLowerCase()
|
|
1652
|
-
// }
|
|
1653
|
-
value1 = value1.toLowerCase();
|
|
1654
|
-
value2 = value2.toLowerCase();
|
|
1655
|
-
if ((comparator === 'eq' && value1 === value2) ||
|
|
1656
|
-
(comparator === 'neq' && value1 !== value2) ||
|
|
1657
|
-
(comparator === 'contains' && value1.indexOf(value2) !== -1) ||
|
|
1658
|
-
(comparator === 'ncontains' && value1.indexOf(value2) === -1) ||
|
|
1659
|
-
(comparator === 'blank' && isNullOrUndefinedOrEmpty(value1)) ||
|
|
1660
|
-
(comparator === 'not-blank' && notNullOrUndefinedOrEmpty(value1))) {
|
|
1661
|
-
return true;
|
|
1662
|
-
}
|
|
1663
|
-
return false;
|
|
1664
|
-
});
|
|
1665
|
-
}
|
|
1666
|
-
filter(data) {
|
|
1667
|
-
return this._updateFilterValue.pipe(startWith$1(undefined), map$1(() => this.dataFilter(data, this.form.value, undefined)));
|
|
1668
|
-
}
|
|
1669
|
-
filterState() {
|
|
1670
|
-
return {
|
|
1671
|
-
name: this.name,
|
|
1672
|
-
state: {
|
|
1673
|
-
prop: this.prop,
|
|
1674
|
-
formValue: this.form.value,
|
|
1675
|
-
}
|
|
1676
|
-
};
|
|
1677
|
-
}
|
|
1678
|
-
applyFilter() {
|
|
1679
|
-
this._updateFilterValue.next();
|
|
1680
|
-
}
|
|
1681
|
-
clearFilter() {
|
|
1682
|
-
this.form.setValue({
|
|
1683
|
-
searchType: 'contains',
|
|
1684
|
-
searchText: null,
|
|
1685
|
-
// caseSensitive: null
|
|
1686
|
-
});
|
|
1687
|
-
this._updateFilterValue.next();
|
|
1688
|
-
}
|
|
1689
|
-
isDefault() {
|
|
1690
|
-
const formValue = this.form.value;
|
|
1691
|
-
if (isNullOrUndefinedOrEmpty(formValue.searchType)) {
|
|
1692
|
-
return true;
|
|
1693
|
-
}
|
|
1694
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_TEXT_TEXT_SEARCH_TYPES.includes(formValue.searchType) && notNullOrUndefinedOrEmpty(formValue.searchText)) {
|
|
1695
|
-
return false;
|
|
1696
|
-
}
|
|
1697
|
-
else if (THESEAM_COLUMNS_DATA_FILTER_TEXT_SELECT_SEARCH_TYPES.includes(formValue.searchType)) {
|
|
1698
|
-
return false;
|
|
1699
|
-
}
|
|
1700
|
-
return true;
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
const THESEAM_COLUMNS_DATA_FILTERS_DEFAULT = [
|
|
1705
|
-
{ name: THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_NAME, class: SearchTextColumnsDataFilter },
|
|
1706
|
-
{ name: THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SEARCH_NAME, class: SearchNumericColumnsDataFilter },
|
|
1707
|
-
{ name: THESEAM_COLUMNS_DATA_FILTER_DATE_SEARCH_NAME, class: SearchDateColumnsDataFilter },
|
|
1708
|
-
];
|
|
1709
|
-
const getFormattedDateForComparison = (date, dateType, setToLocalTime = false) => {
|
|
1710
|
-
const dateObj = new Date(notNullOrUndefined(date) ? date : '');
|
|
1711
|
-
if (dateType === 'datetime-local') {
|
|
1712
|
-
// reset seconds and ms, since they can't be specified from the search input
|
|
1713
|
-
dateObj.setSeconds(0);
|
|
1714
|
-
dateObj.setMilliseconds(0);
|
|
1715
|
-
}
|
|
1716
|
-
else if (dateType === 'date') {
|
|
1717
|
-
if (setToLocalTime) {
|
|
1718
|
-
// set date from input type="date" to current timezone, to match expected behavior
|
|
1719
|
-
dateObj.setMinutes(dateObj.getMinutes() + dateObj.getTimezoneOffset());
|
|
1720
|
-
}
|
|
1721
|
-
// reset hours/minutes/seconds/ms, since they can't be specified from the search input
|
|
1722
|
-
dateObj.setHours(0, 0, 0, 0);
|
|
1723
|
-
}
|
|
1724
|
-
return dateObj;
|
|
1725
|
-
};
|
|
1726
|
-
|
|
1727
|
-
class ColumnsFiltersService {
|
|
1728
|
-
constructor(_customColumnsDataFilters) {
|
|
1729
|
-
this._customColumnsDataFilters = _customColumnsDataFilters;
|
|
1730
|
-
this._columnFilterTemplates = new BehaviorSubject([]);
|
|
1731
|
-
this.columnFilterTemplates$ = this._columnFilterTemplates.asObservable();
|
|
1732
|
-
this._columnsFilters = new BehaviorSubject([]);
|
|
1733
|
-
this.columnsFilters$ = this._columnsFilters.asObservable();
|
|
1734
|
-
this.columnActiveFilterProps$ = this.columnsFilters$.pipe(switchMap$1(filters => {
|
|
1735
|
-
if (!filters.length) {
|
|
1736
|
-
return of([]);
|
|
1737
|
-
}
|
|
1738
|
-
return combineLatest(filters.map(f => f.filterStateChanges.pipe(map$1(filterState => !f.isDefault() ? filterState.state.prop : null))));
|
|
1739
|
-
}), map$1(props => props.filter(notNullOrUndefined)));
|
|
1740
|
-
}
|
|
1741
|
-
registerColumnFilters(columns) {
|
|
1742
|
-
this._columnsFilters.next([]);
|
|
1743
|
-
const filters = columns
|
|
1744
|
-
.filter(col => col.filterable)
|
|
1745
|
-
.map(col => this.createColumnDataFilter(col, null));
|
|
1746
|
-
this._columnsFilters.next(filters.filter(notNullOrUndefined));
|
|
1747
|
-
}
|
|
1748
|
-
setFilterTemplates(tpls) {
|
|
1749
|
-
this._columnFilterTemplates.next(tpls);
|
|
1750
|
-
}
|
|
1751
|
-
createColumnDataFilter(column, initialValue) {
|
|
1752
|
-
const prop = this.getColumnFilterProp(column);
|
|
1753
|
-
if (isNullOrUndefined(prop)) {
|
|
1754
|
-
return null;
|
|
1755
|
-
}
|
|
1756
|
-
return this._getColumnsDataFilter(prop, column, initialValue);
|
|
1757
|
-
}
|
|
1758
|
-
_getColumnsDataFilter(prop, column, initialValue) {
|
|
1759
|
-
const filterClass = this._getColumnsDataFilterType(column);
|
|
1760
|
-
let filter;
|
|
1761
|
-
if (notNullOrUndefined(this._customColumnsDataFilters)) {
|
|
1762
|
-
filter = this._customColumnsDataFilters.find(x => x.name === filterClass);
|
|
1763
|
-
}
|
|
1764
|
-
if (isNullOrUndefined(filter)) {
|
|
1765
|
-
filter = THESEAM_COLUMNS_DATA_FILTERS_DEFAULT.find(x => x.name === filterClass);
|
|
1766
|
-
}
|
|
1767
|
-
if (notNullOrUndefined(filter)) {
|
|
1768
|
-
return new filter.class(prop, initialValue, column);
|
|
1769
|
-
}
|
|
1770
|
-
return null;
|
|
1771
|
-
}
|
|
1772
|
-
_getColumnsDataFilterType(column) {
|
|
1773
|
-
if (notNullOrUndefined(column.filterOptions) && notNullOrUndefined(column.filterOptions.filterType)) {
|
|
1774
|
-
return column.filterOptions.filterType;
|
|
1775
|
-
}
|
|
1776
|
-
else if (notNullOrUndefined(column.cellType)) {
|
|
1777
|
-
switch (column.cellType) {
|
|
1778
|
-
case 'string':
|
|
1779
|
-
case 'phone':
|
|
1780
|
-
return THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_NAME;
|
|
1781
|
-
case 'currency':
|
|
1782
|
-
case 'decimal':
|
|
1783
|
-
case 'integer':
|
|
1784
|
-
return THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SEARCH_NAME;
|
|
1785
|
-
case 'date':
|
|
1786
|
-
return THESEAM_COLUMNS_DATA_FILTER_DATE_SEARCH_NAME;
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
return THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_NAME;
|
|
1790
|
-
}
|
|
1791
|
-
getColumnFilterProp(column) {
|
|
1792
|
-
if (isNullOrUndefined(column)) {
|
|
1793
|
-
return null;
|
|
1794
|
-
}
|
|
1795
|
-
const prop = column.filterOptions?.filterProp || column.prop || (notNullOrUndefined(column.name) ? camelCase(column.name) : undefined);
|
|
1796
|
-
if (isNullOrUndefined(prop)) {
|
|
1797
|
-
return null;
|
|
1798
|
-
}
|
|
1799
|
-
return `${prop}`;
|
|
1800
|
-
}
|
|
1801
|
-
getColumnFilter(prop) {
|
|
1802
|
-
if (isNullOrUndefined(prop)) {
|
|
1803
|
-
return undefined;
|
|
1804
|
-
}
|
|
1805
|
-
return this._columnsFilters.value.find(f => f.prop === prop);
|
|
1806
|
-
}
|
|
1807
|
-
filters() {
|
|
1808
|
-
return this._columnsFilters.value;
|
|
1809
|
-
}
|
|
1810
|
-
addFilter(filter) {
|
|
1811
|
-
this._columnsFilters.next([...this._columnsFilters.value, filter]);
|
|
1812
|
-
}
|
|
1813
|
-
removeFilter(filter) {
|
|
1814
|
-
this._columnsFilters.next([...this._columnsFilters.value.filter(c => c.name !== filter.name)]);
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
ColumnsFiltersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsFiltersService, deps: [{ token: THESEAM_COLUMNS_DATA_FILTER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1818
|
-
ColumnsFiltersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsFiltersService });
|
|
1819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnsFiltersService, decorators: [{
|
|
1820
|
-
type: Injectable
|
|
1821
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1822
|
-
type: Optional
|
|
1823
|
-
}, {
|
|
1824
|
-
type: Inject,
|
|
1825
|
-
args: [THESEAM_COLUMNS_DATA_FILTER]
|
|
1826
|
-
}] }]; } });
|
|
1827
|
-
|
|
1828
|
-
const THESEAM_DATATABLE_CONFIG = new InjectionToken('TheSeamDatatableConfig');
|
|
1829
|
-
|
|
1830
|
-
class DatatableColumnFilterTplDirective {
|
|
1831
|
-
constructor(template) {
|
|
1832
|
-
this.template = template;
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
DatatableColumnFilterTplDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterTplDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1836
|
-
DatatableColumnFilterTplDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnFilterTplDirective, selector: "[seamDatatableColumnFilterTpl]", ngImport: i0 });
|
|
1837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterTplDirective, decorators: [{
|
|
1838
|
-
type: Directive,
|
|
1839
|
-
args: [{
|
|
1840
|
-
selector: '[seamDatatableColumnFilterTpl]'
|
|
1841
|
-
}]
|
|
1842
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1843
|
-
|
|
1844
|
-
class TheSeamDatatableColumnFilterDirective {
|
|
1845
|
-
get template() {
|
|
1846
|
-
return this._templateInput || this._templateQuery;
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
TheSeamDatatableColumnFilterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableColumnFilterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1850
|
-
TheSeamDatatableColumnFilterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TheSeamDatatableColumnFilterDirective, selector: "seam-datatable-column-filter", inputs: { filterName: "filterName", _templateInput: ["template", "_templateInput"] }, queries: [{ propertyName: "_templateQuery", first: true, predicate: DatatableColumnFilterTplDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 });
|
|
1851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableColumnFilterDirective, decorators: [{
|
|
1852
|
-
type: Directive,
|
|
1853
|
-
args: [{
|
|
1854
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1855
|
-
selector: 'seam-datatable-column-filter'
|
|
1856
|
-
}]
|
|
1857
|
-
}], propDecorators: { filterName: [{
|
|
1858
|
-
type: Input
|
|
1859
|
-
}], _templateInput: [{
|
|
1860
|
-
type: Input,
|
|
1861
|
-
args: ['template']
|
|
1862
|
-
}], _templateQuery: [{
|
|
1863
|
-
type: ContentChild,
|
|
1864
|
-
args: [DatatableColumnFilterTplDirective, { read: TemplateRef, static: true }]
|
|
1865
|
-
}] } });
|
|
1866
|
-
|
|
1867
|
-
const CURRENT_DATATABLE_PREFERENCES_VERSION = 2;
|
|
1868
|
-
const EMPTY_DATATABLE_PREFERENCES = {
|
|
1869
|
-
version: 2,
|
|
1870
|
-
alterations: []
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
const THESEAM_DATATABLE_PREFERENCES_ACCESSOR = new InjectionToken('TheSeamDatatablePreferencesAccessor');
|
|
1874
|
-
|
|
1875
|
-
class DatatablePreferencesService {
|
|
1876
|
-
constructor(_preferencesManager, _prefsAccessor) {
|
|
1877
|
-
this._preferencesManager = _preferencesManager;
|
|
1878
|
-
this._prefsAccessor = _prefsAccessor;
|
|
1879
|
-
// TODO: Remove the need for this internal pending flag. I only kept it for
|
|
1880
|
-
// backwards compatibility, until better tests are added to make sure if isn't
|
|
1881
|
-
// neccessary anymore.
|
|
1882
|
-
/**
|
|
1883
|
-
* Used to prevent multiple updates from happening at the same time, but it is not per key.
|
|
1884
|
-
*/
|
|
1885
|
-
this._pending = false;
|
|
1886
|
-
}
|
|
1887
|
-
isPending(preferenceKey) {
|
|
1888
|
-
return this._pending || this._preferencesManager.isPending(preferenceKey);
|
|
1889
|
-
}
|
|
1890
|
-
isLoaded(preferenceKey) {
|
|
1891
|
-
if (this._pending) {
|
|
1892
|
-
return false;
|
|
1893
|
-
}
|
|
1894
|
-
return this._preferencesManager.isLoaded(preferenceKey);
|
|
1895
|
-
}
|
|
1896
|
-
preferences(preferenceKey) {
|
|
1897
|
-
if (!this._prefsAccessor) {
|
|
1898
|
-
return of(JSON.parse(JSON.stringify(EMPTY_DATATABLE_PREFERENCES)));
|
|
1899
|
-
}
|
|
1900
|
-
return this._preferencesManager.preferences(preferenceKey, this._prefsAccessor, EMPTY_DATATABLE_PREFERENCES).pipe(map(prefs => {
|
|
1901
|
-
if (this._isValidDatatablePreferences(prefs)) {
|
|
1902
|
-
return prefs;
|
|
1903
|
-
}
|
|
1904
|
-
throw Error(`Preferences for key '${preferenceKey}' is not a valid datatable preferences.`);
|
|
1905
|
-
}));
|
|
1906
|
-
}
|
|
1907
|
-
refresh(preferenceKey) {
|
|
1908
|
-
this._preferencesManager.refresh(preferenceKey);
|
|
1909
|
-
}
|
|
1910
|
-
setAlterations(preferenceKey, alterations) {
|
|
1911
|
-
if (!this._prefsAccessor) {
|
|
1912
|
-
return;
|
|
1913
|
-
}
|
|
1914
|
-
this._pending = true;
|
|
1915
|
-
this.preferences(preferenceKey).pipe(map(prefs => {
|
|
1916
|
-
// Making the preferences immutable may not be necessary, but for now
|
|
1917
|
-
// this obj->str->obj will work as a naive clone.
|
|
1918
|
-
// const columns = JSON.parse(JSON.stringify(prefs.columns || []))
|
|
1919
|
-
// const _colPref = columns.find((c: any) => c.prop === column.prop)
|
|
1920
|
-
// // console.log('has', _colPref)
|
|
1921
|
-
// if (_colPref) {
|
|
1922
|
-
// // console.log('hasProperty(column, "width"))', hasProperty(column, 'width'))
|
|
1923
|
-
// if (hasProperty(column, 'width')) { _colPref.width = column.width }
|
|
1924
|
-
// if (hasProperty(column, 'canAutoResize')) { _colPref.canAutoResize = column.canAutoResize }
|
|
1925
|
-
// if (hasProperty(column, 'hidden')) { _colPref.hidden = column.hidden }
|
|
1926
|
-
// } else {
|
|
1927
|
-
// columns.push({ ...column })
|
|
1928
|
-
// }
|
|
1929
|
-
// const newPrefs: TheSeamDatatablePreferences = { ...prefs, columns }
|
|
1930
|
-
// return newPrefs
|
|
1931
|
-
const newPrefs = {
|
|
1932
|
-
...EMPTY_DATATABLE_PREFERENCES,
|
|
1933
|
-
alterations
|
|
1934
|
-
};
|
|
1935
|
-
this._pending = false;
|
|
1936
|
-
return newPrefs;
|
|
1937
|
-
}),
|
|
1938
|
-
// tap(v => console.log('newPrefs', v)),
|
|
1939
|
-
take(1), switchMap(newPrefs => this._prefsAccessor
|
|
1940
|
-
? this._prefsAccessor.update(preferenceKey, JSON.stringify(newPrefs))
|
|
1941
|
-
: of(newPrefs)), tap(() => this.refresh(preferenceKey)))
|
|
1942
|
-
.subscribe();
|
|
1943
|
-
}
|
|
1944
|
-
_isValidDatatablePreferences(prefs) {
|
|
1945
|
-
return prefs.version === CURRENT_DATATABLE_PREFERENCES_VERSION;
|
|
1946
|
-
}
|
|
1947
|
-
}
|
|
1948
|
-
DatatablePreferencesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatablePreferencesService, deps: [{ token: i1$1.TheSeamPreferencesManagerService }, { token: THESEAM_DATATABLE_PREFERENCES_ACCESSOR, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1949
|
-
DatatablePreferencesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatablePreferencesService, providedIn: 'root' });
|
|
1950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatablePreferencesService, decorators: [{
|
|
1951
|
-
type: Injectable,
|
|
1952
|
-
args: [{
|
|
1953
|
-
providedIn: 'root'
|
|
1954
|
-
}]
|
|
1955
|
-
}], ctorParameters: function () { return [{ type: i1$1.TheSeamPreferencesManagerService }, { type: undefined, decorators: [{
|
|
1956
|
-
type: Optional
|
|
1957
|
-
}, {
|
|
1958
|
-
type: Inject,
|
|
1959
|
-
args: [THESEAM_DATATABLE_PREFERENCES_ACCESSOR]
|
|
1960
|
-
}] }]; } });
|
|
1961
|
-
|
|
1962
|
-
class DatatableColumnFilterSearchTextComponent {
|
|
1963
|
-
constructor() {
|
|
1964
|
-
this.searchTypes = [
|
|
1965
|
-
{ label: 'Contains', value: 'contains' },
|
|
1966
|
-
{ label: 'Does not contain', value: 'ncontains' },
|
|
1967
|
-
{ label: 'Matches exactly', value: 'eq' },
|
|
1968
|
-
{ label: 'Does not match exactly', value: 'neq' },
|
|
1969
|
-
{ label: 'Is blank', value: 'blank' },
|
|
1970
|
-
{ label: 'Is not blank', value: 'not-blank' },
|
|
1971
|
-
];
|
|
1972
|
-
}
|
|
1973
|
-
ngOnInit() {
|
|
1974
|
-
this.showTextbox$ = this.filterForm?.controls.searchType.valueChanges.pipe(startWith$1(this.filterForm?.controls.searchType.value), map$1(value => THESEAM_COLUMNS_DATA_FILTER_TEXT_TEXT_SEARCH_TYPES.includes(value || '')));
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
DatatableColumnFilterSearchTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterSearchTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1978
|
-
DatatableColumnFilterSearchTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnFilterSearchTextComponent, selector: "seam-datatable-column-filter-search-text", inputs: { filterForm: "filterForm" }, ngImport: i0, template: "<ng-container *ngIf=\"filterForm\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <ng-select\n seamInput\n seamAutoFocus\n formControlName=\"searchType\"\n [clearable]=\"false\"\n placeholder=\"Select search type\"\n bindValue=\"value\"\n [items]=\"searchTypes\"></ng-select>\n </seam-form-field>\n <ng-container *ngIf=\"showTextbox$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"searchText\" placeholder=\"Type to search\" seamAutoFocus>\n </seam-form-field>\n <!-- TODO: implement this? Does not work with current Seam GraphQL/SQL Server implementation. -->\n <!-- <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <seam-checkbox seamInput formControlName=\"caseSensitive\">Case Sensitive</seam-checkbox>\n </seam-form-field> -->\n </ng-container>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.AutoFocusDirective, selector: "[seamAutoFocus]", inputs: ["seamAutoFocus"], exportAs: ["seamAutoFocus"] }, { kind: "directive", type: i2$2.NgSelectExtraDirective, selector: "ng-select" }, { kind: "component", type: i3.TheSeamFormFieldComponent, selector: "seam-form-field", inputs: ["inline", "label", "labelPosition", "labelClass", "maxErrors", "numPaddingErrors", "labelId", "helpText", "helpTextId"] }, { kind: "directive", type: i3.InputDirective, selector: "input[seamInput], textarea[seamInput], ng-select[seamInput], seam-checkbox[seamInput] [ngbRadioGroup], seam-tel-input[seamInput], quill-editor[seamInput], seam-google-maps[seamInput], seam-rich-text[seamInput]", inputs: ["seamInputSize", "id", "type", "placeholder", "required", "disabled", "readonly"], exportAs: ["seamInput"] }, { kind: "directive", type: i4$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], viewProviders: [
|
|
1979
|
-
{
|
|
1980
|
-
provide: ControlContainer,
|
|
1981
|
-
useExisting: FormGroupDirective
|
|
1982
|
-
}
|
|
1983
|
-
] });
|
|
1984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterSearchTextComponent, decorators: [{
|
|
1985
|
-
type: Component,
|
|
1986
|
-
args: [{ selector: 'seam-datatable-column-filter-search-text', viewProviders: [
|
|
1987
|
-
{
|
|
1988
|
-
provide: ControlContainer,
|
|
1989
|
-
useExisting: FormGroupDirective
|
|
1990
|
-
}
|
|
1991
|
-
], template: "<ng-container *ngIf=\"filterForm\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <ng-select\n seamInput\n seamAutoFocus\n formControlName=\"searchType\"\n [clearable]=\"false\"\n placeholder=\"Select search type\"\n bindValue=\"value\"\n [items]=\"searchTypes\"></ng-select>\n </seam-form-field>\n <ng-container *ngIf=\"showTextbox$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"searchText\" placeholder=\"Type to search\" seamAutoFocus>\n </seam-form-field>\n <!-- TODO: implement this? Does not work with current Seam GraphQL/SQL Server implementation. -->\n <!-- <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <seam-checkbox seamInput formControlName=\"caseSensitive\">Case Sensitive</seam-checkbox>\n </seam-form-field> -->\n </ng-container>\n</ng-container>\n" }]
|
|
1992
|
-
}], propDecorators: { filterForm: [{
|
|
1993
|
-
type: Input
|
|
1994
|
-
}] } });
|
|
1995
|
-
|
|
1996
|
-
class DatatableColumnFilterSearchNumericComponent {
|
|
1997
|
-
constructor() {
|
|
1998
|
-
this.searchTypes = [
|
|
1999
|
-
{ label: 'Less than (<)', value: 'lt' },
|
|
2000
|
-
{ label: 'Less than or equal to (<=)', value: 'lte' },
|
|
2001
|
-
{ label: 'Equal to (=)', value: 'eq' },
|
|
2002
|
-
{ label: 'Greater than (>)', value: 'gt' },
|
|
2003
|
-
{ label: 'Greater than or equal to (>=)', value: 'gte' },
|
|
2004
|
-
{ label: 'Between', value: 'between' },
|
|
2005
|
-
{ label: 'Not between', value: 'not-between' },
|
|
2006
|
-
{ label: 'Blank', value: 'blank' },
|
|
2007
|
-
{ label: 'Not blank', value: 'not-blank' },
|
|
2008
|
-
];
|
|
2009
|
-
}
|
|
2010
|
-
ngOnInit() {
|
|
2011
|
-
this.showSearchInput$ = this.filterForm?.controls.searchType.valueChanges.pipe(startWith$1(this.filterForm?.controls.searchType.value), map$1(searchType => THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES.includes(searchType || '')));
|
|
2012
|
-
this.showRangeInputs$ = this.filterForm?.controls.searchType.valueChanges.pipe(startWith$1(this.filterForm?.controls.searchType.value), map$1(searchType => THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES.includes(searchType || '')));
|
|
2013
|
-
}
|
|
2014
|
-
}
|
|
2015
|
-
DatatableColumnFilterSearchNumericComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterSearchNumericComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2016
|
-
DatatableColumnFilterSearchNumericComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnFilterSearchNumericComponent, selector: "seam-datatable-column-filter-search-numeric", inputs: { filterForm: "filterForm" }, ngImport: i0, template: "<ng-container *ngIf=\"filterForm\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <ng-select\n seamInput\n formControlName=\"searchType\"\n [clearable]=\"false\"\n placeholder=\"Select search type\"\n bindValue=\"value\"\n [items]=\"searchTypes\"></ng-select>\n </seam-form-field>\n\n <ng-container *ngIf=\"showSearchInput$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"searchText\" placeholder=\"Type to search\" seamAutoFocus>\n </seam-form-field>\n </ng-container>\n\n <ng-container *ngIf=\"showRangeInputs$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"fromText\" placeholder=\"Range Start\" seamAutoFocus>\n </seam-form-field>\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"toText\" placeholder=\"Range End\">\n </seam-form-field>\n </ng-container>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.AutoFocusDirective, selector: "[seamAutoFocus]", inputs: ["seamAutoFocus"], exportAs: ["seamAutoFocus"] }, { kind: "directive", type: i2$2.NgSelectExtraDirective, selector: "ng-select" }, { kind: "component", type: i3.TheSeamFormFieldComponent, selector: "seam-form-field", inputs: ["inline", "label", "labelPosition", "labelClass", "maxErrors", "numPaddingErrors", "labelId", "helpText", "helpTextId"] }, { kind: "directive", type: i3.InputDirective, selector: "input[seamInput], textarea[seamInput], ng-select[seamInput], seam-checkbox[seamInput] [ngbRadioGroup], seam-tel-input[seamInput], quill-editor[seamInput], seam-google-maps[seamInput], seam-rich-text[seamInput]", inputs: ["seamInputSize", "id", "type", "placeholder", "required", "disabled", "readonly"], exportAs: ["seamInput"] }, { kind: "directive", type: i4$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], viewProviders: [
|
|
2017
|
-
{
|
|
2018
|
-
provide: ControlContainer,
|
|
2019
|
-
useExisting: FormGroupDirective
|
|
2020
|
-
}
|
|
2021
|
-
] });
|
|
2022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterSearchNumericComponent, decorators: [{
|
|
2023
|
-
type: Component,
|
|
2024
|
-
args: [{ selector: 'seam-datatable-column-filter-search-numeric', viewProviders: [
|
|
2025
|
-
{
|
|
2026
|
-
provide: ControlContainer,
|
|
2027
|
-
useExisting: FormGroupDirective
|
|
2028
|
-
}
|
|
2029
|
-
], template: "<ng-container *ngIf=\"filterForm\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <ng-select\n seamInput\n formControlName=\"searchType\"\n [clearable]=\"false\"\n placeholder=\"Select search type\"\n bindValue=\"value\"\n [items]=\"searchTypes\"></ng-select>\n </seam-form-field>\n\n <ng-container *ngIf=\"showSearchInput$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"searchText\" placeholder=\"Type to search\" seamAutoFocus>\n </seam-form-field>\n </ng-container>\n\n <ng-container *ngIf=\"showRangeInputs$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"fromText\" placeholder=\"Range Start\" seamAutoFocus>\n </seam-form-field>\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput formControlName=\"toText\" placeholder=\"Range End\">\n </seam-form-field>\n </ng-container>\n</ng-container>\n" }]
|
|
2030
|
-
}], propDecorators: { filterForm: [{
|
|
2031
|
-
type: Input
|
|
2032
|
-
}] } });
|
|
2033
|
-
|
|
2034
|
-
class DatatableColumnFilterSearchDateComponent {
|
|
2035
|
-
constructor() {
|
|
2036
|
-
this.searchTypes = [
|
|
2037
|
-
{ label: 'Before', value: 'lt' },
|
|
2038
|
-
{ label: 'Before or on', value: 'lte' },
|
|
2039
|
-
{ label: 'On', value: 'eq' },
|
|
2040
|
-
{ label: 'After', value: 'gt' },
|
|
2041
|
-
{ label: 'After or on', value: 'gte' },
|
|
2042
|
-
{ label: 'Between', value: 'between' },
|
|
2043
|
-
{ label: 'Not between', value: 'not-between' },
|
|
2044
|
-
{ label: 'Blank', value: 'blank' },
|
|
2045
|
-
{ label: 'Not blank', value: 'not-blank' },
|
|
2046
|
-
];
|
|
2047
|
-
}
|
|
2048
|
-
ngOnInit() {
|
|
2049
|
-
if (notNullOrUndefined(this.options?.dateType)) {
|
|
2050
|
-
this.dateFormat = this.options?.dateType;
|
|
2051
|
-
}
|
|
2052
|
-
this.showSearchInput$ = this.filterForm?.controls.searchType.valueChanges.pipe(startWith$1(this.filterForm?.controls.searchType.value), map$1(searchType => THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES.includes(searchType || '')));
|
|
2053
|
-
this.showRangeInputs$ = this.filterForm?.controls.searchType.valueChanges.pipe(startWith$1(this.filterForm?.controls.searchType.value), map$1(searchType => THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES.includes(searchType || '')));
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
DatatableColumnFilterSearchDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterSearchDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2057
|
-
DatatableColumnFilterSearchDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnFilterSearchDateComponent, selector: "seam-datatable-column-filter-search-date", inputs: { options: "options", filterForm: "filterForm" }, ngImport: i0, template: "<ng-container *ngIf=\"filterForm\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <ng-select\n seamInput\n formControlName=\"searchType\"\n [clearable]=\"false\"\n placeholder=\"Select search type\"\n bindValue=\"value\"\n [items]=\"searchTypes\"></ng-select>\n </seam-form-field>\n\n <ng-container *ngIf=\"showSearchInput$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput [type]=\"dateFormat\" formControlName=\"searchText\" placeholder=\"Type to search\" seamAutoFocus>\n </seam-form-field>\n </ng-container>\n\n <ng-container *ngIf=\"showRangeInputs$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput [type]=\"dateFormat\" formControlName=\"fromText\" placeholder=\"Range Start\" seamAutoFocus>\n </seam-form-field>\n\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput [type]=\"dateFormat\" formControlName=\"toText\" placeholder=\"Range End\">\n </seam-form-field>\n </ng-container>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.AutoFocusDirective, selector: "[seamAutoFocus]", inputs: ["seamAutoFocus"], exportAs: ["seamAutoFocus"] }, { kind: "directive", type: i2$2.NgSelectExtraDirective, selector: "ng-select" }, { kind: "component", type: i3.TheSeamFormFieldComponent, selector: "seam-form-field", inputs: ["inline", "label", "labelPosition", "labelClass", "maxErrors", "numPaddingErrors", "labelId", "helpText", "helpTextId"] }, { kind: "directive", type: i3.InputDirective, selector: "input[seamInput], textarea[seamInput], ng-select[seamInput], seam-checkbox[seamInput] [ngbRadioGroup], seam-tel-input[seamInput], quill-editor[seamInput], seam-google-maps[seamInput], seam-rich-text[seamInput]", inputs: ["seamInputSize", "id", "type", "placeholder", "required", "disabled", "readonly"], exportAs: ["seamInput"] }, { kind: "directive", type: i4$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], viewProviders: [
|
|
2058
|
-
{
|
|
2059
|
-
provide: ControlContainer,
|
|
2060
|
-
useExisting: FormGroupDirective
|
|
2061
|
-
}
|
|
2062
|
-
] });
|
|
2063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterSearchDateComponent, decorators: [{
|
|
2064
|
-
type: Component,
|
|
2065
|
-
args: [{ selector: 'seam-datatable-column-filter-search-date', viewProviders: [
|
|
2066
|
-
{
|
|
2067
|
-
provide: ControlContainer,
|
|
2068
|
-
useExisting: FormGroupDirective
|
|
2069
|
-
}
|
|
2070
|
-
], template: "<ng-container *ngIf=\"filterForm\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <ng-select\n seamInput\n formControlName=\"searchType\"\n [clearable]=\"false\"\n placeholder=\"Select search type\"\n bindValue=\"value\"\n [items]=\"searchTypes\"></ng-select>\n </seam-form-field>\n\n <ng-container *ngIf=\"showSearchInput$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput [type]=\"dateFormat\" formControlName=\"searchText\" placeholder=\"Type to search\" seamAutoFocus>\n </seam-form-field>\n </ng-container>\n\n <ng-container *ngIf=\"showRangeInputs$ | async\">\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput [type]=\"dateFormat\" formControlName=\"fromText\" placeholder=\"Range Start\" seamAutoFocus>\n </seam-form-field>\n\n <seam-form-field [numPaddingErrors]=\"0\" class=\"mb-2\">\n <input seamInput [type]=\"dateFormat\" formControlName=\"toText\" placeholder=\"Range End\">\n </seam-form-field>\n </ng-container>\n</ng-container>\n" }]
|
|
2071
|
-
}], propDecorators: { options: [{
|
|
2072
|
-
type: Input
|
|
2073
|
-
}], filterForm: [{
|
|
2074
|
-
type: Input
|
|
2075
|
-
}] } });
|
|
2076
|
-
|
|
2077
|
-
class DatatableColumnFilterMenuComponent {
|
|
2078
|
-
constructor(_columnsFilters) {
|
|
2079
|
-
this._columnsFilters = _columnsFilters;
|
|
2080
|
-
this.closePopover = new EventEmitter();
|
|
2081
|
-
}
|
|
2082
|
-
ngOnInit() {
|
|
2083
|
-
this.columnFilterProp = this._columnsFilters.getColumnFilterProp(this.column);
|
|
2084
|
-
this.columnFilter = this._columnsFilters.getColumnFilter(this.columnFilterProp);
|
|
2085
|
-
if (notNullOrUndefined(this.columnFilter)) {
|
|
2086
|
-
this._filterForm = this.columnFilter.form;
|
|
2087
|
-
}
|
|
2088
|
-
this.customFilterTemplate$ = this._columnsFilters.columnFilterTemplates$.pipe(map$1(templates => templates.find(t => t.filterName === this.columnFilter?.name)));
|
|
2089
|
-
if (this.updateMethod === 'valueChanges' && notNullOrUndefined(this._filterForm)) {
|
|
2090
|
-
this._filterForm.valueChanges.pipe(debounceTime(this.debounce || 0), tap$1(() => this.columnFilter?.applyFilter())).subscribe();
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
submit() {
|
|
2094
|
-
this.columnFilter?.applyFilter();
|
|
2095
|
-
this.closePopover.emit();
|
|
2096
|
-
}
|
|
2097
|
-
clearFilter() {
|
|
2098
|
-
this.columnFilter?.clearFilter();
|
|
2099
|
-
}
|
|
2100
|
-
}
|
|
2101
|
-
DatatableColumnFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterMenuComponent, deps: [{ token: ColumnsFiltersService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2102
|
-
DatatableColumnFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnFilterMenuComponent, selector: "seam-datatable-column-filter-menu", inputs: { column: "column", updateMethod: "updateMethod", debounce: "debounce" }, outputs: { closePopover: "closePopover" }, ngImport: i0, template: "<ng-container *ngIf=\"_filterForm && columnFilter\">\n <form [formGroup]=\"_filterForm\" (ngSubmit)=\"submit()\">\n <ng-container [ngSwitch]=\"columnFilter.name\">\n <div *ngSwitchCase=\"'search-text'\">\n <seam-datatable-column-filter-search-text [filterForm]=\"_filterForm\"></seam-datatable-column-filter-search-text>\n </div>\n <div *ngSwitchCase=\"'search-numeric'\">\n <seam-datatable-column-filter-search-numeric [filterForm]=\"_filterForm\"></seam-datatable-column-filter-search-numeric>\n </div>\n <div *ngSwitchCase=\"'search-date'\">\n <seam-datatable-column-filter-search-date [filterForm]=\"_filterForm\" [options]=\"columnFilter.options\"></seam-datatable-column-filter-search-date>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"customFilterTemplate$ | async as filterTpl\">\n <ng-container *ngIf=\"filterTpl.template\">\n <ng-container\n [ngTemplateOutlet]=\"filterTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: _filterForm, filterForm: _filterForm, options: columnFilter.options, column: column, columnFilter: columnFilter }\">\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </ng-container>\n\n <hr class=\"mb-1\">\n <div class=\"d-flex align-items-center\" [class.justify-content-between]=\"updateMethod === 'submit'\" [class.text-right]=\"updateMethod === 'valueChanges'\">\n <button seamButton size=\"sm\" class=\"text-primary p-0\" (click)=\"clearFilter()\" [disabled]=\"columnFilter?.isDefault() === true\">Clear</button>\n <button\n *ngIf=\"updateMethod === 'submit'\"\n seamButton\n size=\"sm\"\n class=\"text-primary p-0\"\n type=\"submit\"\n [disabled]=\"columnFilter?.isDefault() === true\">\n Apply\n </button>\n </div>\n </form>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i3$1.TheSeamButtonComponent, selector: "button[seamButton]", inputs: ["disabled", "theme", "size", "type"], exportAs: ["seamButton"] }, { kind: "directive", type: i4$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DatatableColumnFilterSearchTextComponent, selector: "seam-datatable-column-filter-search-text", inputs: ["filterForm"] }, { kind: "component", type: DatatableColumnFilterSearchNumericComponent, selector: "seam-datatable-column-filter-search-numeric", inputs: ["filterForm"] }, { kind: "component", type: DatatableColumnFilterSearchDateComponent, selector: "seam-datatable-column-filter-search-date", inputs: ["options", "filterForm"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }] });
|
|
2103
|
-
__decorate([
|
|
2104
|
-
InputNumber()
|
|
2105
|
-
], DatatableColumnFilterMenuComponent.prototype, "debounce", void 0);
|
|
2106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnFilterMenuComponent, decorators: [{
|
|
2107
|
-
type: Component,
|
|
2108
|
-
args: [{ selector: 'seam-datatable-column-filter-menu', template: "<ng-container *ngIf=\"_filterForm && columnFilter\">\n <form [formGroup]=\"_filterForm\" (ngSubmit)=\"submit()\">\n <ng-container [ngSwitch]=\"columnFilter.name\">\n <div *ngSwitchCase=\"'search-text'\">\n <seam-datatable-column-filter-search-text [filterForm]=\"_filterForm\"></seam-datatable-column-filter-search-text>\n </div>\n <div *ngSwitchCase=\"'search-numeric'\">\n <seam-datatable-column-filter-search-numeric [filterForm]=\"_filterForm\"></seam-datatable-column-filter-search-numeric>\n </div>\n <div *ngSwitchCase=\"'search-date'\">\n <seam-datatable-column-filter-search-date [filterForm]=\"_filterForm\" [options]=\"columnFilter.options\"></seam-datatable-column-filter-search-date>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"customFilterTemplate$ | async as filterTpl\">\n <ng-container *ngIf=\"filterTpl.template\">\n <ng-container\n [ngTemplateOutlet]=\"filterTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: _filterForm, filterForm: _filterForm, options: columnFilter.options, column: column, columnFilter: columnFilter }\">\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </ng-container>\n\n <hr class=\"mb-1\">\n <div class=\"d-flex align-items-center\" [class.justify-content-between]=\"updateMethod === 'submit'\" [class.text-right]=\"updateMethod === 'valueChanges'\">\n <button seamButton size=\"sm\" class=\"text-primary p-0\" (click)=\"clearFilter()\" [disabled]=\"columnFilter?.isDefault() === true\">Clear</button>\n <button\n *ngIf=\"updateMethod === 'submit'\"\n seamButton\n size=\"sm\"\n class=\"text-primary p-0\"\n type=\"submit\"\n [disabled]=\"columnFilter?.isDefault() === true\">\n Apply\n </button>\n </div>\n </form>\n</ng-container>\n" }]
|
|
2109
|
-
}], ctorParameters: function () { return [{ type: ColumnsFiltersService }]; }, propDecorators: { column: [{
|
|
2110
|
-
type: Input
|
|
2111
|
-
}], updateMethod: [{
|
|
2112
|
-
type: Input
|
|
2113
|
-
}], debounce: [{
|
|
2114
|
-
type: Input
|
|
2115
|
-
}], closePopover: [{
|
|
2116
|
-
type: Output
|
|
2117
|
-
}] } });
|
|
2118
|
-
|
|
2119
|
-
/**
|
|
2120
|
-
* Intended for internal classes declared by the `TheSeamDatatableModule`.
|
|
2121
|
-
*/
|
|
2122
|
-
const THESEAM_DATATABLE = new InjectionToken('LibDatatable');
|
|
2123
|
-
const _THESEAM_DATATABLE = {
|
|
2124
|
-
provide: THESEAM_DATATABLE,
|
|
2125
|
-
// tslint:disable-next-line:no-use-before-declare
|
|
2126
|
-
useExisting: forwardRef(() => DatatableComponent)
|
|
2127
|
-
};
|
|
2128
|
-
const _THESEAM_DATATABLE_ACCESSOR = {
|
|
2129
|
-
provide: THESEAM_DATATABLE_ACCESSOR,
|
|
2130
|
-
// tslint:disable-next-line:no-use-before-declare
|
|
2131
|
-
useExisting: forwardRef(() => DatatableComponent)
|
|
2132
|
-
};
|
|
2133
|
-
class DatatableComponent {
|
|
2134
|
-
get filters() {
|
|
2135
|
-
return [
|
|
2136
|
-
...this._menuBarsFiltersSubject.value,
|
|
2137
|
-
...this._columnsFilters.filters()
|
|
2138
|
-
];
|
|
2139
|
-
}
|
|
2140
|
-
get preferencesKey() { return this._preferencesKey.value; }
|
|
2141
|
-
set preferencesKey(value) { this._preferencesKey.next(value || undefined); }
|
|
2142
|
-
set columns(value) {
|
|
2143
|
-
this._columnsManager.setInputColumns(Array.isArray(value) ? value : []);
|
|
2144
|
-
this._columnsFilters.registerColumnFilters(Array.isArray(value) ? value : []);
|
|
2145
|
-
}
|
|
2146
|
-
get rows() { return this._rows.value; }
|
|
2147
|
-
set rows(value) {
|
|
2148
|
-
this._rows.next(value || []);
|
|
2149
|
-
}
|
|
2150
|
-
get selectionType() { return this._columnsManager.getSelectionType(); }
|
|
2151
|
-
set selectionType(value) {
|
|
2152
|
-
this._columnsManager.setSelectionType(notNullOrUndefined(value) ? value : undefined);
|
|
2153
|
-
}
|
|
2154
|
-
get sortType() { return this._sortType; }
|
|
2155
|
-
set sortType(value) {
|
|
2156
|
-
if (notNullOrUndefined(value) && (value === SortType.single || value === SortType.multi)) {
|
|
2157
|
-
this._sortType = value;
|
|
2158
|
-
}
|
|
2159
|
-
else {
|
|
2160
|
-
this._sortType = SortType.single;
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
get sorts() {
|
|
2164
|
-
return this.ngxDatatable ? this.ngxDatatable.sorts : this._sorts;
|
|
2165
|
-
}
|
|
2166
|
-
set sorts(value) {
|
|
2167
|
-
this._sorts = notNullOrUndefined(value) ? coerceArray(value) : [];
|
|
2168
|
-
}
|
|
2169
|
-
get cssClasses() {
|
|
2170
|
-
return this._cssClasses;
|
|
2171
|
-
}
|
|
2172
|
-
set cssClasses(value) {
|
|
2173
|
-
if (notNullOrUndefined(value)) {
|
|
2174
|
-
this._cssClasses = value;
|
|
2175
|
-
}
|
|
2176
|
-
else if (notNullOrUndefined(this._config?.cssClasses)) {
|
|
2177
|
-
this._cssClasses = this._config?.cssClasses;
|
|
2178
|
-
}
|
|
2179
|
-
else {
|
|
2180
|
-
this._cssClasses = this._cssClassesDefault;
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
2183
|
-
get messages() {
|
|
2184
|
-
return this._messages;
|
|
2185
|
-
}
|
|
2186
|
-
set messages(value) {
|
|
2187
|
-
if (notNullOrUndefined(value)) {
|
|
2188
|
-
this._messages = value;
|
|
2189
|
-
}
|
|
2190
|
-
else if (notNullOrUndefined(this._config?.messages)) {
|
|
2191
|
-
this._messages = {
|
|
2192
|
-
...this._messagesDefault,
|
|
2193
|
-
...this._config?.messages
|
|
2194
|
-
};
|
|
2195
|
-
}
|
|
2196
|
-
else {
|
|
2197
|
-
this._messages = this._messagesDefault;
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
get headerHeight() {
|
|
2201
|
-
return this._headerHeight;
|
|
2202
|
-
}
|
|
2203
|
-
set headerHeight(value) {
|
|
2204
|
-
if (notNullOrUndefined(value)) {
|
|
2205
|
-
this._headerHeight = value;
|
|
2206
|
-
}
|
|
2207
|
-
else if (notNullOrUndefined(this._config?.headerHeight)) {
|
|
2208
|
-
this._headerHeight = this._config?.headerHeight;
|
|
2209
|
-
}
|
|
2210
|
-
else {
|
|
2211
|
-
this._headerHeight = this._headerHeightDefault;
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
get rowHeight() {
|
|
2215
|
-
return this._rowHeight;
|
|
2216
|
-
}
|
|
2217
|
-
set rowHeight(value) {
|
|
2218
|
-
if (notNullOrUndefined(value)) {
|
|
2219
|
-
this._rowHeight = value;
|
|
2220
|
-
}
|
|
2221
|
-
else if (notNullOrUndefined(this._config?.rowHeight)) {
|
|
2222
|
-
this._rowHeight = this._config?.rowHeight;
|
|
2223
|
-
}
|
|
2224
|
-
else {
|
|
2225
|
-
this._rowHeight = this._rowHeightDefault;
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
get footerHeight() {
|
|
2229
|
-
return this._footerHeight;
|
|
2230
|
-
}
|
|
2231
|
-
set footerHeight(value) {
|
|
2232
|
-
if (notNullOrUndefined(value)) {
|
|
2233
|
-
this._footerHeight = value;
|
|
2234
|
-
}
|
|
2235
|
-
else if (notNullOrUndefined(this._config?.footerHeight)) {
|
|
2236
|
-
this._footerHeight = this._config?.footerHeight;
|
|
2237
|
-
}
|
|
2238
|
-
else {
|
|
2239
|
-
this._footerHeight = this._footerHeightDefault;
|
|
2240
|
-
}
|
|
2241
|
-
}
|
|
2242
|
-
set dataSource(value) {
|
|
2243
|
-
if (value instanceof DatatableDataSource) {
|
|
2244
|
-
value.setDatatableAccessor(this);
|
|
2245
|
-
}
|
|
2246
|
-
this._dataSourceSubject.next(value || undefined);
|
|
2247
|
-
}
|
|
2248
|
-
/**
|
|
2249
|
-
* Sets position behavior for optional Action Menu Button column.
|
|
2250
|
-
*
|
|
2251
|
-
* Defaults to `frozenRight`.
|
|
2252
|
-
*/
|
|
2253
|
-
get actionItemColumnPosition() { return this._actionItemColumnPosition; }
|
|
2254
|
-
set actionItemColumnPosition(value) {
|
|
2255
|
-
if (notNullOrUndefined(value) && isActionItemColumnPosition(value)) {
|
|
2256
|
-
this._actionItemColumnPosition = value;
|
|
2257
|
-
}
|
|
2258
|
-
else if (notNullOrUndefined(this._config?.actionItemColumnPosition) && isActionItemColumnPosition(this._config?.actionItemColumnPosition)) {
|
|
2259
|
-
this._actionItemColumnPosition = this._config?.actionItemColumnPosition;
|
|
2260
|
-
}
|
|
2261
|
-
else {
|
|
2262
|
-
this._actionItemColumnPosition = this._actionItemColumnPositionDefault;
|
|
2263
|
-
}
|
|
2264
|
-
this._columnsManager.setActionItemColumnPosition(this._actionItemColumnPosition);
|
|
2265
|
-
}
|
|
2266
|
-
get columnFilterIcon() {
|
|
2267
|
-
return this._columnFilterIcon;
|
|
2268
|
-
}
|
|
2269
|
-
set columnFilterIcon(value) {
|
|
2270
|
-
if (notNullOrUndefined(value)) {
|
|
2271
|
-
this._columnFilterIcon = value;
|
|
2272
|
-
}
|
|
2273
|
-
else if (notNullOrUndefined(this._config?.columnFilterIcon)) {
|
|
2274
|
-
this._columnFilterIcon = this._config?.columnFilterIcon;
|
|
2275
|
-
}
|
|
2276
|
-
else {
|
|
2277
|
-
this._columnFilterIcon = this._columnFilterIconDefault;
|
|
2278
|
-
}
|
|
2279
|
-
}
|
|
2280
|
-
get columnFilterUpdateMethod() {
|
|
2281
|
-
return this._columnFilterUpdateMethod;
|
|
2282
|
-
}
|
|
2283
|
-
set columnFilterUpdateMethod(value) {
|
|
2284
|
-
if (notNullOrUndefined(value)) {
|
|
2285
|
-
this._columnFilterUpdateMethod = value;
|
|
2286
|
-
}
|
|
2287
|
-
else if (notNullOrUndefined(this._config?.columnFilterUpdateMethod)) {
|
|
2288
|
-
this._columnFilterUpdateMethod = this._config?.columnFilterUpdateMethod;
|
|
2289
|
-
}
|
|
2290
|
-
else {
|
|
2291
|
-
this._columnFilterUpdateMethod = this._columnFilterUpdateMethodDefault;
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
get columnFilterUpdateDebounce() {
|
|
2295
|
-
return this._columnFilterUpdateDebounce;
|
|
2296
|
-
}
|
|
2297
|
-
set columnFilterUpdateDebounce(value) {
|
|
2298
|
-
if (notNullOrUndefined(value)) {
|
|
2299
|
-
this._columnFilterUpdateDebounce = value;
|
|
2300
|
-
}
|
|
2301
|
-
else if (notNullOrUndefined(this._config?.columnFilterUpdateDebounce)) {
|
|
2302
|
-
this._columnFilterUpdateDebounce = this._config?.columnFilterUpdateDebounce;
|
|
2303
|
-
}
|
|
2304
|
-
else {
|
|
2305
|
-
this._columnFilterUpdateDebounce = this._columnFilterUpdateDebounceDefault;
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
2308
|
-
set columnComponents(value) {
|
|
2309
|
-
this._columnsManager.setTemplateColumns(translateTemplateColumns(value?.toArray() ?? []));
|
|
2310
|
-
}
|
|
2311
|
-
get rowActionItem() { return this._rowActionItem; }
|
|
2312
|
-
set rowActionItem(value) {
|
|
2313
|
-
this._rowActionItem = value;
|
|
2314
|
-
this._columnsManager.setRowActionItem(notNullOrUndefined(value) ? value : undefined);
|
|
2315
|
-
}
|
|
2316
|
-
get menuBarComponent() { return this._menuBarComponent; }
|
|
2317
|
-
set menuBarComponent(value) {
|
|
2318
|
-
this._menuBarComponent = value;
|
|
2319
|
-
if (this._menuBarSub) {
|
|
2320
|
-
this._menuBarSub.unsubscribe();
|
|
2321
|
-
}
|
|
2322
|
-
if (value) {
|
|
2323
|
-
this._setMenuBarFilters(value.filters());
|
|
2324
|
-
this._menuBarSub = this._menuBarComponent?.filtersChanged
|
|
2325
|
-
.subscribe(v => { this._setMenuBarFilters(value.filters()); });
|
|
2326
|
-
}
|
|
2327
|
-
}
|
|
2328
|
-
set columnFilterTemplates(value) {
|
|
2329
|
-
this._columnsFilters.setFilterTemplates(value?.toArray() ?? []);
|
|
2330
|
-
}
|
|
2331
|
-
get actionMenuCellTpl() { return this._actionMenuCellTpl; }
|
|
2332
|
-
set actionMenuCellTpl(value) {
|
|
2333
|
-
this._actionMenuCellTpl = value;
|
|
2334
|
-
this._columnsManager.setActionMenuCellTpl(notNullOrUndefined(value) ? value : undefined);
|
|
2335
|
-
}
|
|
2336
|
-
get treeToggleTpl() { return this._treeToggleTpl; }
|
|
2337
|
-
set treeToggleTpl(value) {
|
|
2338
|
-
this._treeToggleTpl = value;
|
|
2339
|
-
this._columnsManager.setTreeToggleTpl(notNullOrUndefined(value) ? value : undefined);
|
|
2340
|
-
}
|
|
2341
|
-
get headerTpl() { return this._headerTpl; }
|
|
2342
|
-
set headerTpl(value) {
|
|
2343
|
-
this._headerTpl = value;
|
|
2344
|
-
this._columnsManager.setHeaderTpl(notNullOrUndefined(value) ? value : undefined);
|
|
2345
|
-
}
|
|
2346
|
-
get blankHeaderTpl() { return this._blankHeaderTpl; }
|
|
2347
|
-
set blankHeaderTpl(value) {
|
|
2348
|
-
this._blankHeaderTpl = value;
|
|
2349
|
-
this._columnsManager.setBlankHeaderTpl(notNullOrUndefined(value) ? value : undefined);
|
|
2350
|
-
}
|
|
2351
|
-
get cellTypeSelectorTpl() { return this._cellTypeSelectorTpl; }
|
|
2352
|
-
set cellTypeSelectorTpl(value) {
|
|
2353
|
-
this._cellTypeSelectorTpl = value;
|
|
2354
|
-
this._columnsManager.setCellTypeSelectorTpl(notNullOrUndefined(value) ? value : undefined);
|
|
2355
|
-
}
|
|
2356
|
-
// TODO: Remove this DOM-dependent code when a way to property listen for
|
|
2357
|
-
// dblclick on the header reasize handles.
|
|
2358
|
-
_dblClick(event) {
|
|
2359
|
-
const isHandle = event.target.classList.contains('resize-handle');
|
|
2360
|
-
if (isHandle) {
|
|
2361
|
-
const isResizeable = event.target.parentElement?.classList.contains('resizeable');
|
|
2362
|
-
if (isResizeable) {
|
|
2363
|
-
event.stopPropagation();
|
|
2364
|
-
const id = event.target.parentElement
|
|
2365
|
-
?.querySelector('.datatable-column-header-separator')
|
|
2366
|
-
?.getAttribute('data-column-id');
|
|
2367
|
-
this._columnsManager.columns$.pipe(take(1)).subscribe(columns => {
|
|
2368
|
-
const column = columns.find(c => c.$$id === id);
|
|
2369
|
-
if (column) {
|
|
2370
|
-
const columnProp = getColumnProp(column);
|
|
2371
|
-
if (columnProp) {
|
|
2372
|
-
const alteration = new WidthColumnsAlteration({ columnProp, canAutoResize: true }, false);
|
|
2373
|
-
this._columnsAlterationsManager.add([alteration]);
|
|
2374
|
-
}
|
|
2375
|
-
}
|
|
2376
|
-
});
|
|
2377
|
-
}
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
constructor(_preferences, _columnsManager, _columnsAlterationsManager, _columnsFilters, _config) {
|
|
2381
|
-
this._preferences = _preferences;
|
|
2382
|
-
this._columnsManager = _columnsManager;
|
|
2383
|
-
this._columnsAlterationsManager = _columnsAlterationsManager;
|
|
2384
|
-
this._columnsFilters = _columnsFilters;
|
|
2385
|
-
this._config = _config;
|
|
2386
|
-
this._faChevronDown = faChevronDown;
|
|
2387
|
-
this._faChevronRight = faChevronRight;
|
|
2388
|
-
this._faSpinner = faSpinner;
|
|
2389
|
-
this._ngUnsubscribe = new Subject();
|
|
2390
|
-
this._menuBarsFiltersSubject = new BehaviorSubject([]);
|
|
2391
|
-
this._dataSourceSubject = new BehaviorSubject(undefined);
|
|
2392
|
-
this._resizing = {};
|
|
2393
|
-
this._preferencesKey = new BehaviorSubject(undefined);
|
|
2394
|
-
this._rows = new BehaviorSubject([]);
|
|
2395
|
-
this.columnMode = ColumnMode.force;
|
|
2396
|
-
this.selected = [];
|
|
2397
|
-
this.externalPaging = false;
|
|
2398
|
-
this.externalSorting = false;
|
|
2399
|
-
this.externalFiltering = false;
|
|
2400
|
-
this.count = 0;
|
|
2401
|
-
this.offset = 0;
|
|
2402
|
-
this.loadingIndicator = false;
|
|
2403
|
-
this.reorderable = true;
|
|
2404
|
-
this.swapColumns = false;
|
|
2405
|
-
this._sortType = SortType.single;
|
|
2406
|
-
this._sorts = [];
|
|
2407
|
-
this._cssClassesDefault = {
|
|
2408
|
-
sortAscending: 'datatable-icon-up',
|
|
2409
|
-
sortDescending: 'datatable-icon-down',
|
|
2410
|
-
pagerLeftArrow: 'datatable-icon-left',
|
|
2411
|
-
pagerRightArrow: 'datatable-icon-right',
|
|
2412
|
-
pagerPrevious: 'datatable-icon-prev',
|
|
2413
|
-
pagerNext: 'datatable-icon-skip'
|
|
2414
|
-
};
|
|
2415
|
-
this._messagesDefault = {
|
|
2416
|
-
// Message to show when array is presented
|
|
2417
|
-
// but contains no values
|
|
2418
|
-
emptyMessage: 'No records found',
|
|
2419
|
-
// Footer total message
|
|
2420
|
-
totalMessage: 'total',
|
|
2421
|
-
// Footer selected message
|
|
2422
|
-
selectedMessage: 'selected'
|
|
2423
|
-
};
|
|
2424
|
-
this.rowIdentity = (x) => x;
|
|
2425
|
-
this.groupExpansionDefault = false;
|
|
2426
|
-
this.selectAllRowsOnPage = false;
|
|
2427
|
-
this.summaryRow = false;
|
|
2428
|
-
this.summaryHeight = 30;
|
|
2429
|
-
this.summaryPosition = 'top';
|
|
2430
|
-
this.virtualization = true;
|
|
2431
|
-
this._headerHeightDefault = 50;
|
|
2432
|
-
this._rowHeightDefault = 50;
|
|
2433
|
-
this._footerHeightDefault = 40;
|
|
2434
|
-
this.scrollbarV = true;
|
|
2435
|
-
this.scrollbarH = true;
|
|
2436
|
-
this._actionItemColumnPositionDefault = 'frozenRight';
|
|
2437
|
-
this._columnFilterIconDefault = faFilter;
|
|
2438
|
-
this._columnFilterUpdateMethodDefault = 'valueChanges';
|
|
2439
|
-
this._columnFilterUpdateDebounceDefault = 400;
|
|
2440
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
2441
|
-
this.scroll = new EventEmitter();
|
|
2442
|
-
this.activate = new EventEmitter();
|
|
2443
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
2444
|
-
this.select = new EventEmitter();
|
|
2445
|
-
this.sort = new EventEmitter();
|
|
2446
|
-
this.page = new EventEmitter();
|
|
2447
|
-
this.reorder = new EventEmitter();
|
|
2448
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
2449
|
-
this.resize = new EventEmitter();
|
|
2450
|
-
this.tableContextmenu = new EventEmitter(false);
|
|
2451
|
-
this.treeAction = new EventEmitter();
|
|
2452
|
-
this.actionRefreshRequest = new EventEmitter();
|
|
2453
|
-
this.hiddenColumnsChange = new EventEmitter();
|
|
2454
|
-
this._colDiffersInp = {};
|
|
2455
|
-
this._colDiffersTpl = {};
|
|
2456
|
-
this._rowDetailToggleSubscription = Subscription.EMPTY;
|
|
2457
|
-
this._preferencesKey.pipe(distinctUntilChanged(), switchMap(key => {
|
|
2458
|
-
if (!notNullOrUndefined(key) || key.length === 0) {
|
|
2459
|
-
return of(undefined);
|
|
2460
|
-
}
|
|
2461
|
-
return from(waitOnConditionAsync(() => this._preferences.isLoaded(key))).pipe(switchMap(() => this._columnsAlterationsManager.changes.pipe(startWith(undefined), tap(() => {
|
|
2462
|
-
this._preferences.setAlterations(key, this._columnsAlterationsManager.get());
|
|
2463
|
-
}))));
|
|
2464
|
-
}), takeUntil(this._ngUnsubscribe)).subscribe();
|
|
2465
|
-
const applyPrefs = (cols) => this._columnsAlterationsManager.changes.pipe(startWith(undefined), map(() => {
|
|
2466
|
-
this._columnsAlterationsManager.apply(cols, this);
|
|
2467
|
-
return cols;
|
|
2468
|
-
}));
|
|
2469
|
-
this._preferencesKey.pipe(distinctUntilChanged(), switchMap(prefsKey => {
|
|
2470
|
-
if (!notNullOrUndefined(prefsKey)) {
|
|
2471
|
-
return of(undefined);
|
|
2472
|
-
}
|
|
2473
|
-
return this._preferences.preferences(prefsKey).pipe(switchMap(async (preferences) => {
|
|
2474
|
-
await waitOnConditionAsync(() => this._preferences.isLoaded(prefsKey));
|
|
2475
|
-
return preferences;
|
|
2476
|
-
}), take(1), map(preferences => {
|
|
2477
|
-
let alterations = [];
|
|
2478
|
-
try {
|
|
2479
|
-
alterations = mapColumnsAlterationsStates(preferences.alterations);
|
|
2480
|
-
}
|
|
2481
|
-
catch (e) {
|
|
2482
|
-
if (isDevMode()) {
|
|
2483
|
-
// eslint-disable-next-line no-console
|
|
2484
|
-
console.warn('Unable to map columns alterations states');
|
|
2485
|
-
// eslint-disable-next-line no-console
|
|
2486
|
-
console.warn(e);
|
|
2487
|
-
}
|
|
2488
|
-
}
|
|
2489
|
-
this._columnsAlterationsManager.add(alterations);
|
|
2490
|
-
}));
|
|
2491
|
-
}), takeUntil(this._ngUnsubscribe)).subscribe();
|
|
2492
|
-
this.columns$ = combineLatest([this._columnsManager.columns$, this._columnsFilters.columnActiveFilterProps$]).pipe(map(([columns, columnActiveFilterProps]) => columns.map(col => ({
|
|
2493
|
-
...col,
|
|
2494
|
-
filterActive: columnActiveFilterProps.includes(this._columnsFilters.getColumnFilterProp(col) || '')
|
|
2495
|
-
}))));
|
|
2496
|
-
this.displayColumns$ = this.columns$.pipe(switchMap(cols => applyPrefs(cols)), map(cols => cols.filter(c => !c.hidden)), tap(v => removeUnusedDiffs(v, this._colDiffersInp, this._colDiffersTpl)));
|
|
2497
|
-
this.filters$ = combineLatest([this._menuBarsFiltersSubject.asObservable(), this._columnsFilters.columnsFilters$]).pipe(map(([menuFilters, columnsFilters]) => [...menuFilters, ...columnsFilters]));
|
|
2498
|
-
this.filterStates = this.filters$.pipe(switchMap(filters => composeDataFilterStates(filters)));
|
|
2499
|
-
this.rows$ = this._dataSourceSubject.pipe(switchMap(dataSource => {
|
|
2500
|
-
// console.log('dataSource', dataSource)
|
|
2501
|
-
let dataStream;
|
|
2502
|
-
if (isDataSource(dataSource)) {
|
|
2503
|
-
// console.log('~datasource')
|
|
2504
|
-
dataStream = dataSource.connect(this);
|
|
2505
|
-
}
|
|
2506
|
-
else if (isObservable(dataSource)) {
|
|
2507
|
-
// console.log('~observable')
|
|
2508
|
-
dataStream = dataSource;
|
|
2509
|
-
}
|
|
2510
|
-
else if (Array.isArray(dataSource)) {
|
|
2511
|
-
// console.log('~array')
|
|
2512
|
-
dataStream = of(dataSource);
|
|
2513
|
-
}
|
|
2514
|
-
else {
|
|
2515
|
-
// console.log('~rows fallback')
|
|
2516
|
-
dataStream = this._rows.asObservable();
|
|
2517
|
-
// .pipe(tap(v => console.log('rows~', v)))
|
|
2518
|
-
}
|
|
2519
|
-
if (!this.externalFiltering) {
|
|
2520
|
-
// console.log('not using externalFiltering')
|
|
2521
|
-
dataStream = dataStream.pipe(switchMap(rows => this.filters$.pipe(
|
|
2522
|
-
// tap(v => console.log('filters', v)),
|
|
2523
|
-
concatMap(filters => of(rows).pipe(composeDataFilters(filters))))));
|
|
2524
|
-
// dataStream = this._filtersSubject.pipe(
|
|
2525
|
-
// tap(v => console.log('filters', v)),
|
|
2526
|
-
// concatMap(filters => dataStream.pipe(composeDataFilters(filters))),
|
|
2527
|
-
// tap(v => console.log('composed filters', v)),
|
|
2528
|
-
// )
|
|
2529
|
-
}
|
|
2530
|
-
return dataStream.pipe(
|
|
2531
|
-
// tap(v => console.log('stream', v)),
|
|
2532
|
-
takeUntil(this._ngUnsubscribe));
|
|
2533
|
-
}));
|
|
2534
|
-
// TODO: Implement viewChange for CollectionViewer.
|
|
2535
|
-
this.viewChange = this.page.pipe(map(p => ({ start: 0, end: p.count })));
|
|
2536
|
-
}
|
|
2537
|
-
ngOnInit() {
|
|
2538
|
-
if (this.rowDetail) {
|
|
2539
|
-
this._rowDetailToggleSubscription = this.rowDetail._toggle.subscribe(event => {
|
|
2540
|
-
if (this.ngxRowDetail) {
|
|
2541
|
-
this.ngxRowDetail.toggle.emit(event);
|
|
2542
|
-
}
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
this._setDatatableConfigOrDefault();
|
|
2546
|
-
}
|
|
2547
|
-
/** Sets missing inputs from config */
|
|
2548
|
-
_setDatatableConfigOrDefault() {
|
|
2549
|
-
if (isNullOrUndefined(this.messages)) {
|
|
2550
|
-
this.messages = undefined;
|
|
2551
|
-
}
|
|
2552
|
-
if (isNullOrUndefined(this.headerHeight)) {
|
|
2553
|
-
this.headerHeight = undefined;
|
|
2554
|
-
}
|
|
2555
|
-
if (isNullOrUndefined(this.rowHeight)) {
|
|
2556
|
-
this.rowHeight = undefined;
|
|
2557
|
-
}
|
|
2558
|
-
if (isNullOrUndefined(this.footerHeight)) {
|
|
2559
|
-
this.footerHeight = undefined;
|
|
2560
|
-
}
|
|
2561
|
-
if (isNullOrUndefined(this.cssClasses)) {
|
|
2562
|
-
this.cssClasses = undefined;
|
|
2563
|
-
}
|
|
2564
|
-
if (isNullOrUndefined(this.columnFilterIcon)) {
|
|
2565
|
-
this.columnFilterIcon = undefined;
|
|
2566
|
-
}
|
|
2567
|
-
if (isNullOrUndefined(this.columnFilterUpdateMethod)) {
|
|
2568
|
-
this.columnFilterUpdateMethod = undefined;
|
|
2569
|
-
}
|
|
2570
|
-
if (isNullOrUndefined(this.columnFilterUpdateDebounce)) {
|
|
2571
|
-
this.columnFilterUpdateDebounce = undefined;
|
|
2572
|
-
}
|
|
2573
|
-
if (isNullOrUndefined(this.actionItemColumnPosition)) {
|
|
2574
|
-
this.actionItemColumnPosition = undefined;
|
|
2575
|
-
}
|
|
2576
|
-
}
|
|
2577
|
-
ngOnDestroy() {
|
|
2578
|
-
this._rowDetailToggleSubscription.unsubscribe();
|
|
2579
|
-
}
|
|
2580
|
-
_setMenuBarFilters(filters) {
|
|
2581
|
-
this._menuBarsFiltersSubject.next(filters || []);
|
|
2582
|
-
}
|
|
2583
|
-
getColumnComponent(propName) {
|
|
2584
|
-
if (!this.columnComponents || this.columnComponents.length === 0) {
|
|
2585
|
-
return null;
|
|
2586
|
-
}
|
|
2587
|
-
const tpl = this.columnComponents.find(t => t.prop === propName);
|
|
2588
|
-
if (tpl) {
|
|
2589
|
-
return tpl;
|
|
2590
|
-
}
|
|
2591
|
-
return null;
|
|
2592
|
-
}
|
|
2593
|
-
_columnData(col) {
|
|
2594
|
-
const comp = this.getColumnComponent(col.prop);
|
|
2595
|
-
return { col, comp };
|
|
2596
|
-
}
|
|
2597
|
-
_getRowExpanded(row) {
|
|
2598
|
-
if (this.ngxDatatable && this.ngxDatatable.bodyComponent) {
|
|
2599
|
-
return this.ngxDatatable.bodyComponent.getRowExpanded(row);
|
|
2600
|
-
}
|
|
2601
|
-
return false;
|
|
2602
|
-
}
|
|
2603
|
-
trackByFnColumn(index, item) {
|
|
2604
|
-
return item.prop;
|
|
2605
|
-
}
|
|
2606
|
-
onDatatableResize(event) {
|
|
2607
|
-
if (this.ngxDatatable && this.ngxDatatableElement && this.ngxDatatableElement.nativeElement) {
|
|
2608
|
-
// TODO: Consider integrating this into the ngx-datatable library to avoid
|
|
2609
|
-
// multiple resize calls when the table resizes itself.
|
|
2610
|
-
this.ngxDatatable.recalculate();
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
_onResize(event) {
|
|
2614
|
-
this.resize.emit(event);
|
|
2615
|
-
if (!notNullOrUndefined(event.column)) {
|
|
2616
|
-
return;
|
|
2617
|
-
}
|
|
2618
|
-
const columnProp = getColumnProp(event.column);
|
|
2619
|
-
if (columnProp) {
|
|
2620
|
-
let addAlteration = false;
|
|
2621
|
-
if (!this._resizing[columnProp]) {
|
|
2622
|
-
this._resizing[columnProp] = true;
|
|
2623
|
-
addAlteration = true;
|
|
2624
|
-
}
|
|
2625
|
-
if (event.isDone) {
|
|
2626
|
-
this._resizing[columnProp] = false;
|
|
2627
|
-
addAlteration = true;
|
|
2628
|
-
}
|
|
2629
|
-
if (addAlteration) {
|
|
2630
|
-
const alteration = new WidthColumnsAlteration({
|
|
2631
|
-
columnProp,
|
|
2632
|
-
width: event.column.width,
|
|
2633
|
-
canAutoResize: false
|
|
2634
|
-
}, true);
|
|
2635
|
-
this._columnsAlterationsManager.add([alteration]);
|
|
2636
|
-
}
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
_onReorder(event) {
|
|
2640
|
-
this.reorder.emit(event);
|
|
2641
|
-
const columnProp = getColumnProp(event.column);
|
|
2642
|
-
if (columnProp) {
|
|
2643
|
-
const currentOrderAlteration = this._columnsAlterationsManager.get().find(x => x.type === 'order');
|
|
2644
|
-
const state = {
|
|
2645
|
-
columns: [
|
|
2646
|
-
...(currentOrderAlteration?.state.columns || []).filter((x) => x.columnProp !== columnProp),
|
|
2647
|
-
{ columnProp, index: event.newValue }
|
|
2648
|
-
]
|
|
2649
|
-
};
|
|
2650
|
-
const alteration = new OrderColumnsAlteration(state, true);
|
|
2651
|
-
this._columnsAlterationsManager.add([alteration]);
|
|
2652
|
-
}
|
|
2653
|
-
}
|
|
2654
|
-
_onSort(event) {
|
|
2655
|
-
this.sort.emit(event);
|
|
2656
|
-
const alteration = new SortColumnsAlteration({ sorts: event.sorts }, true);
|
|
2657
|
-
this._columnsAlterationsManager.add([alteration]);
|
|
2658
|
-
}
|
|
2659
|
-
_onTreeAction(event) {
|
|
2660
|
-
const index = event.rowIndex;
|
|
2661
|
-
const row = event.row;
|
|
2662
|
-
if (row.treeStatus === 'collapsed') {
|
|
2663
|
-
row.treeStatus = 'expanded';
|
|
2664
|
-
}
|
|
2665
|
-
else {
|
|
2666
|
-
row.treeStatus = 'collapsed';
|
|
2667
|
-
}
|
|
2668
|
-
this.rows = [...this.rows];
|
|
2669
|
-
}
|
|
2670
|
-
triggerActionRefreshRequest() {
|
|
2671
|
-
this.actionRefreshRequest.emit(undefined);
|
|
2672
|
-
}
|
|
2673
|
-
/**
|
|
2674
|
-
* Returns the page info from the wrapped NgxDatatable instance or defaults.
|
|
2675
|
-
*/
|
|
2676
|
-
get pageInfo() {
|
|
2677
|
-
return {
|
|
2678
|
-
offset: this.ngxDatatable?.offset ?? 0,
|
|
2679
|
-
pageSize: this.ngxDatatable?.pageSize ?? 0,
|
|
2680
|
-
limit: this.ngxDatatable?.limit,
|
|
2681
|
-
count: this.ngxDatatable?.count ?? 0
|
|
2682
|
-
};
|
|
2683
|
-
}
|
|
2684
|
-
}
|
|
2685
|
-
DatatableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableComponent, deps: [{ token: DatatablePreferencesService }, { token: ColumnsManagerService }, { token: ColumnsAlterationsManagerService }, { token: ColumnsFiltersService }, { token: THESEAM_DATATABLE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2686
|
-
DatatableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableComponent, selector: "seam-datatable", inputs: { preferencesKey: "preferencesKey", targetMarkerTemplate: "targetMarkerTemplate", columns: "columns", rows: "rows", columnMode: "columnMode", groupRowsBy: "groupRowsBy", groupedRows: "groupedRows", selected: "selected", externalPaging: "externalPaging", externalSorting: "externalSorting", externalFiltering: "externalFiltering", limit: "limit", count: "count", offset: "offset", loadingIndicator: "loadingIndicator", selectionType: "selectionType", reorderable: "reorderable", swapColumns: "swapColumns", sortType: "sortType", sorts: "sorts", cssClasses: "cssClasses", messages: "messages", rowIdentity: "rowIdentity", rowClass: "rowClass", selectCheck: "selectCheck", displayCheck: "displayCheck", groupExpansionDefault: "groupExpansionDefault", trackByProp: "trackByProp", selectAllRowsOnPage: "selectAllRowsOnPage", treeFromRelation: "treeFromRelation", treeToRelation: "treeToRelation", summaryRow: "summaryRow", summaryHeight: "summaryHeight", summaryPosition: "summaryPosition", virtualization: "virtualization", headerHeight: "headerHeight", rowHeight: "rowHeight", footerHeight: "footerHeight", scrollbarV: "scrollbarV", scrollbarH: "scrollbarH", dataSource: "dataSource", actionItemColumnPosition: "actionItemColumnPosition", columnFilterIcon: "columnFilterIcon", columnFilterUpdateMethod: "columnFilterUpdateMethod", columnFilterUpdateDebounce: "columnFilterUpdateDebounce" }, outputs: { scroll: "scroll", activate: "activate", select: "select", sort: "sort", page: "page", reorder: "reorder", resize: "resize", tableContextmenu: "tableContextmenu", treeAction: "treeAction", actionRefreshRequest: "actionRefreshRequest", hiddenColumnsChange: "hiddenColumnsChange" }, host: { listeners: { "dblclick": "_dblClick($event)" } }, providers: [
|
|
2687
|
-
_THESEAM_DATATABLE,
|
|
2688
|
-
DatatableColumnChangesService,
|
|
2689
|
-
_THESEAM_DATATABLE_ACCESSOR,
|
|
2690
|
-
ColumnsManagerService,
|
|
2691
|
-
ColumnsAlterationsManagerService,
|
|
2692
|
-
ColumnsFiltersService
|
|
2693
|
-
], queries: [{ propertyName: "actionMenu", first: true, predicate: DatatableActionMenuComponent, descendants: true, static: true }, { propertyName: "rowActionItem", first: true, predicate: DatatableRowActionItemDirective, descendants: true }, { propertyName: "rowDetail", first: true, predicate: TheSeamDatatableRowDetailDirective, descendants: true, static: true }, { propertyName: "footer", first: true, predicate: TheSeamDatatableFooterDirective, descendants: true, static: true }, { propertyName: "menuBarComponent", first: true, predicate: DatatableMenuBarComponent, descendants: true }, { propertyName: "columnComponents", predicate: DatatableColumnComponent }, { propertyName: "columnFilterTemplates", predicate: TheSeamDatatableColumnFilterDirective }], viewQueries: [{ propertyName: "ngxDatatable", first: true, predicate: DatatableComponent$1, descendants: true }, { propertyName: "ngxDatatableElement", first: true, predicate: DatatableComponent$1, descendants: true, read: ElementRef }, { propertyName: "ngxRowDetail", first: true, predicate: DatatableRowDetailDirective, descendants: true }, { propertyName: "actionMenuCellTpl", first: true, predicate: ["actionMenuCellTpl"], descendants: true, static: true }, { propertyName: "treeToggleTpl", first: true, predicate: ["treeToggleTpl"], descendants: true, static: true }, { propertyName: "headerTpl", first: true, predicate: ["headerTpl"], descendants: true, static: true }, { propertyName: "blankHeaderTpl", first: true, predicate: ["blankHeaderTpl"], descendants: true, static: true }, { propertyName: "cellTypeSelectorTpl", first: true, predicate: ["cellTypeSelectorTpl"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"datatable-wrapper\">\n <ng-content select=\"seam-datatable-menu-bar\"></ng-content>\n <div class=\"datatable-table-wrapper\">\n <ng-container>\n <ngx-datatable\n [columnMode]=\"$any(columnMode)\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [virtualization]=\"virtualization\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [groupRowsBy]=\"$any(groupRowsBy)\"\n [groupedRows]=\"$any(groupedRows)\"\n [selected]=\"$any(selected)\"\n [externalPaging]=\"externalPaging\"\n [externalSorting]=\"externalSorting\"\n [limit]=\"$any(limit)\"\n [count]=\"$any(count)\"\n [offset]=\"$any(offset)\"\n [loadingIndicator]=\"loadingIndicator\"\n [selectionType]=\"$any(selectionType)\"\n [reorderable]=\"reorderable\"\n [swapColumns]=\"swapColumns\"\n [sortType]=\"$any(sortType)\"\n [sorts]=\"$any(_sorts)\"\n [cssClasses]=\"cssClasses\"\n [messages]=\"messages\"\n [rowIdentity]=\"$any(rowIdentity)\"\n [rowClass]=\"rowClass\"\n [selectCheck]=\"selectCheck\"\n [displayCheck]=\"$any(displayCheck)\"\n [groupExpansionDefault]=\"groupExpansionDefault\"\n [trackByProp]=\"$any(trackByProp)\"\n [selectAllRowsOnPage]=\"selectAllRowsOnPage\"\n [treeFromRelation]=\"$any(treeFromRelation)\"\n [treeToRelation]=\"$any(treeToRelation)\"\n [summaryRow]=\"summaryRow\"\n [summaryHeight]=\"$any(summaryHeight)\"\n [summaryPosition]=\"$any(summaryPosition)\"\n [rows]=\"rows$ | async\"\n [columns]=\"$any(displayColumns$ | async)\"\n [headerHeight]=\"$any(headerHeight)\"\n [rowHeight]=\"$any(rowHeight)\"\n [footerHeight]=\"$any(footerHeight)\"\n (scroll)=\"scroll.emit($event)\"\n (activate)=\"activate.emit($event)\"\n (select)=\"select.emit($event)\"\n (sort)=\"_onSort($event)\"\n (page)=\"page.emit($event)\"\n (reorder)=\"_onReorder($event)\"\n (resize)=\"_onResize($event)\"\n (tableContextmenu)=\"tableContextmenu.emit($event)\"\n (treeAction)=\"treeAction.emit($event)\"\n (seamElemResized)=\"onDatatableResize($event)\"\n (treeAction)=\"_onTreeAction($event)\">\n\n <ngx-datatable-group-header [rowHeight]=\"50\" #myGroupHeader *ngIf=\"groupRowsBy\">\n <ng-template let-group=\"group\" let-expanded=\"expanded\" ngx-datatable-group-header-template>\n <div\n class=\"w-100 bg-light p-1\"\n [class.border-bottom]=\"!expanded\"\n [class.datatable-icon-right]=\"!expanded\"\n [class.datatable-icon-down]=\"expanded\"\n title=\"Expand/Collapse Group\"\n (click)=\"ngxDatatable?.groupHeader?.toggleExpandGroup(group)\">\n <b>Age: {{ group.age }}</b>\n </div>\n </ng-template>\n </ngx-datatable-group-header>\n\n <ngx-datatable-row-detail *ngIf=\"rowDetail && rowDetail.template\"\n [rowHeight]=\"rowDetail.rowHeight || 0\"\n [template]=\"$any(rowDetail.template)\"\n (toggle)=\"rowDetail.toggle.emit($event)\">\n </ngx-datatable-row-detail>\n\n <ngx-datatable-footer *ngIf=\"footer && footer.template\"\n [template]=\"$any(footer.template)\">\n </ngx-datatable-footer>\n </ngx-datatable>\n </ng-container>\n </div>\n</div>\n\n<ng-template #blankHeaderTpl ngx-datatable-header-template></ng-template>\n\n<ng-template\n #headerTpl\n ngx-datatable-header-template\n let-column=\"column\"\n let-sortFn=\"sortFn\"\n>\n <div class=\"d-inline-flex align-items-center\">\n <ng-container *ngIf=\"column.filterable\">\n <button\n seamIconBtn\n [icon]=\"columnFilterIcon\"\n size=\"sm\"\n [seamPopover]=\"filterMenu\"\n [seamPopoverBaseWidth]=\"300\"\n class=\"datatable-column-header-filter-button d-flex align-items-center mr-2\"\n [class.datatable-column-header-filter-button-active]=\"column.filterActive\"\n style=\"width: 1rem;\"\n title=\"Click to see filter options\"></button>\n </ng-container>\n <strong *ngIf=\"!column.sortable\" class=\"draggable\">{{column.name}}</strong>\n <button\n seamButton\n *ngIf=\"column.sortable\"\n class=\"datatable-sort-target p-0\"\n (click)=\"sortFn()\"\n title=\"Click to sort\">\n <strong class=\"draggable\">{{column.name}}</strong>\n </button>\n <div class=\"datatable-column-header-separator\" [attr.data-column-id]=\"column.$$id\"></div>\n </div>\n <ng-template #filterMenu let-popover=\"popover\">\n <seam-datatable-column-filter-menu\n [column]=\"column\"\n [updateMethod]=\"columnFilterUpdateMethod\"\n [debounce]=\"columnFilterUpdateDebounce\"\n (closePopover)=\"popover?.closePopover()\"></seam-datatable-column-filter-menu>\n </ng-template>\n</ng-template>\n\n<ng-template #cellTypeSelectorTpl ngx-datatable-cell-template\n let-value=\"value\" let-rowIndex=\"rowIndex\" let-row=\"row\" let-column=\"column\">\n <seam-table-cell-type-selector *ngIf=\"row\"\n [type]=\"column.cellType\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"column\">\n </seam-table-cell-type-selector>\n</ng-template>\n\n<ng-template #actionMenuCellTpl ngx-datatable-cell-template\n let-value=\"value\" let-rowIndex=\"rowIndex\" let-row=\"row\">\n\n <ng-container *ngIf=\"row && rowActionItem?.template\">\n <ng-template\n [ngTemplateOutlet]=\"$any(rowActionItem?.template)\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row, rowIndex: rowIndex }\">\n </ng-template>\n </ng-container>\n\n</ng-template>\n\n<ng-template #treeToggleTpl ngx-datatable-tree-toggle let-tree=\"cellContext\">\n <button\n class=\"p-0 bg-transparent border-0 btn\"\n [disabled]=\"tree.treeStatus==='disabled'\"\n (click)=\"tree.onTreeAction()\">\n <span *ngIf=\"tree.treeStatus==='loading'\">\n <fa-icon [icon]=\"_faSpinner\"></fa-icon>\n </span>\n <span *ngIf=\"tree.treeStatus==='collapsed'\">\n <fa-icon [icon]=\"_faChevronRight\"></fa-icon>\n </span>\n <span *ngIf=\"tree.treeStatus==='expanded'\">\n <fa-icon [icon]=\"_faChevronDown\"></fa-icon>\n </span>\n <span *ngIf=\"tree.treeStatus==='disabled'\">\n <fa-icon [icon]=\"_faChevronRight\"></fa-icon>\n </span>\n </button>\n</ng-template>\n", styles: [":host{display:flex;flex-grow:1;flex-direction:column}::ng-deep .seam-datatable-action-menu{min-width:auto!important}ngx-datatable{position:absolute!important;inset:0}.datatable-wrapper{display:flex;flex-direction:column;flex-grow:1}.datatable-wrapper .datatable-table-wrapper{position:relative;flex:1 1 100%}.datatable-column-header-separator{position:absolute}.datatable-sort-target{cursor:pointer}::ng-deep .ngx-datatable .datatable-body-row{position:relative}::ng-deep .ngx-datatable .datatable-row-right{position:absolute!important;top:0}::ng-deep .ngx-datatable .datatable-row-right{right:0}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.DatatableComponent, selector: "ngx-datatable", inputs: ["selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "loadingIndicator", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "groupExpansionDefault", "selectAllRowsOnPage", "virtualization", "summaryRow", "summaryHeight", "summaryPosition", "displayPageCount", "displayPager", "rowIdentity", "rows", "groupedRows", "groupRowsBy", "columns", "limit", "count", "offset", "targetMarkerTemplate", "selectionType", "rowClass", "selectCheck", "displayCheck", "trackByProp", "treeFromRelation", "treeToRelation"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }, { kind: "directive", type: i6.DatatableRowDetailDirective, selector: "ngx-datatable-row-detail", inputs: ["rowHeight", "template"], outputs: ["toggle"] }, { kind: "directive", type: i6.DatatableGroupHeaderDirective, selector: "ngx-datatable-group-header", inputs: ["rowHeight", "template"], outputs: ["toggle"] }, { kind: "directive", type: i6.DataTableColumnHeaderDirective, selector: "[ngx-datatable-header-template]" }, { kind: "directive", type: i6.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i6.DataTableColumnCellTreeToggle, selector: "[ngx-datatable-tree-toggle]" }, { kind: "directive", type: i6.DatatableFooterDirective, selector: "ngx-datatable-footer", inputs: ["footerHeight", "totalMessage", "selectedMessage", "pagerLeftArrowIcon", "pagerRightArrowIcon", "pagerPreviousIcon", "pagerNextIcon", "template"] }, { kind: "directive", type: i6.DatatableGroupHeaderTemplateDirective, selector: "[ngx-datatable-group-header-template]" }, { kind: "component", type: i7.FaIconComponent, selector: "fa-icon", inputs: ["classes", "icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "directive", type: i2$2.ElemResizedDirective, selector: "[seamElemResized]", outputs: ["seamElemResized"] }, { kind: "component", type: i5.IconBtnComponent, selector: "button[seamIconBtn]", inputs: ["grayscaleOnDisable", "disabled", "iconClass", "icon", "size", "showDefaultOnError", "iconType", "btnTheme", "badgeTheme", "badgeText", "btnSize", "type", "role"] }, { kind: "component", type: i3$1.TheSeamButtonComponent, selector: "button[seamButton]", inputs: ["disabled", "theme", "size", "type"], exportAs: ["seamButton"] }, { kind: "directive", type: i11.TheSeamPopoverDirective, selector: "[seamPopover]", inputs: ["seamPopover", "seamPopoverContext", "seamPopoverBaseWidth", "seamPopoverDisabled"], exportAs: ["seamPopover"] }, { kind: "component", type: i12.TableCellTypeSelectorComponent, selector: "seam-table-cell-type-selector", inputs: ["type", "value", "rowIndex", "row", "colData"] }, { kind: "component", type: DatatableColumnFilterMenuComponent, selector: "seam-datatable-column-filter-menu", inputs: ["column", "updateMethod", "debounce"], outputs: ["closePopover"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], animations: [
|
|
2694
|
-
trigger('slideDown', [
|
|
2695
|
-
transition(':enter', [
|
|
2696
|
-
style({ transform: 'translateY(-20%)', opacity: '0' }),
|
|
2697
|
-
animate('250ms', style({ transform: 'translateY(0)', opacity: '1' })),
|
|
2698
|
-
]),
|
|
2699
|
-
transition(':leave', [
|
|
2700
|
-
style({ transform: 'translateY(0)', opacity: '1' }),
|
|
2701
|
-
animate('250ms', style({ transform: 'translateY(-20%)', opacity: '0' })),
|
|
2702
|
-
])
|
|
2703
|
-
])
|
|
2704
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2705
|
-
__decorate([
|
|
2706
|
-
InputBoolean()
|
|
2707
|
-
], DatatableComponent.prototype, "externalPaging", void 0);
|
|
2708
|
-
__decorate([
|
|
2709
|
-
InputBoolean()
|
|
2710
|
-
], DatatableComponent.prototype, "externalSorting", void 0);
|
|
2711
|
-
__decorate([
|
|
2712
|
-
InputBoolean()
|
|
2713
|
-
], DatatableComponent.prototype, "externalFiltering", void 0);
|
|
2714
|
-
__decorate([
|
|
2715
|
-
InputNumber()
|
|
2716
|
-
], DatatableComponent.prototype, "limit", void 0);
|
|
2717
|
-
__decorate([
|
|
2718
|
-
InputNumber(0)
|
|
2719
|
-
], DatatableComponent.prototype, "count", void 0);
|
|
2720
|
-
__decorate([
|
|
2721
|
-
InputNumber(0)
|
|
2722
|
-
], DatatableComponent.prototype, "offset", void 0);
|
|
2723
|
-
__decorate([
|
|
2724
|
-
InputBoolean()
|
|
2725
|
-
], DatatableComponent.prototype, "loadingIndicator", void 0);
|
|
2726
|
-
__decorate([
|
|
2727
|
-
InputBoolean()
|
|
2728
|
-
], DatatableComponent.prototype, "reorderable", void 0);
|
|
2729
|
-
__decorate([
|
|
2730
|
-
InputBoolean()
|
|
2731
|
-
], DatatableComponent.prototype, "swapColumns", void 0);
|
|
2732
|
-
__decorate([
|
|
2733
|
-
InputBoolean()
|
|
2734
|
-
], DatatableComponent.prototype, "groupExpansionDefault", void 0);
|
|
2735
|
-
__decorate([
|
|
2736
|
-
InputBoolean()
|
|
2737
|
-
], DatatableComponent.prototype, "selectAllRowsOnPage", void 0);
|
|
2738
|
-
__decorate([
|
|
2739
|
-
InputBoolean()
|
|
2740
|
-
], DatatableComponent.prototype, "summaryRow", void 0);
|
|
2741
|
-
__decorate([
|
|
2742
|
-
InputNumber()
|
|
2743
|
-
], DatatableComponent.prototype, "summaryHeight", void 0);
|
|
2744
|
-
__decorate([
|
|
2745
|
-
InputBoolean()
|
|
2746
|
-
], DatatableComponent.prototype, "virtualization", void 0);
|
|
2747
|
-
__decorate([
|
|
2748
|
-
InputNumber()
|
|
2749
|
-
], DatatableComponent.prototype, "headerHeight", null);
|
|
2750
|
-
__decorate([
|
|
2751
|
-
InputNumber()
|
|
2752
|
-
], DatatableComponent.prototype, "rowHeight", null);
|
|
2753
|
-
__decorate([
|
|
2754
|
-
InputNumber()
|
|
2755
|
-
], DatatableComponent.prototype, "footerHeight", null);
|
|
2756
|
-
__decorate([
|
|
2757
|
-
InputBoolean()
|
|
2758
|
-
], DatatableComponent.prototype, "scrollbarV", void 0);
|
|
2759
|
-
__decorate([
|
|
2760
|
-
InputBoolean()
|
|
2761
|
-
], DatatableComponent.prototype, "scrollbarH", void 0);
|
|
2762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableComponent, decorators: [{
|
|
2763
|
-
type: Component,
|
|
2764
|
-
args: [{ selector: 'seam-datatable', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
2765
|
-
trigger('slideDown', [
|
|
2766
|
-
transition(':enter', [
|
|
2767
|
-
style({ transform: 'translateY(-20%)', opacity: '0' }),
|
|
2768
|
-
animate('250ms', style({ transform: 'translateY(0)', opacity: '1' })),
|
|
2769
|
-
]),
|
|
2770
|
-
transition(':leave', [
|
|
2771
|
-
style({ transform: 'translateY(0)', opacity: '1' }),
|
|
2772
|
-
animate('250ms', style({ transform: 'translateY(-20%)', opacity: '0' })),
|
|
2773
|
-
])
|
|
2774
|
-
])
|
|
2775
|
-
], providers: [
|
|
2776
|
-
_THESEAM_DATATABLE,
|
|
2777
|
-
DatatableColumnChangesService,
|
|
2778
|
-
_THESEAM_DATATABLE_ACCESSOR,
|
|
2779
|
-
ColumnsManagerService,
|
|
2780
|
-
ColumnsAlterationsManagerService,
|
|
2781
|
-
ColumnsFiltersService
|
|
2782
|
-
], template: "<div class=\"datatable-wrapper\">\n <ng-content select=\"seam-datatable-menu-bar\"></ng-content>\n <div class=\"datatable-table-wrapper\">\n <ng-container>\n <ngx-datatable\n [columnMode]=\"$any(columnMode)\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [virtualization]=\"virtualization\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [groupRowsBy]=\"$any(groupRowsBy)\"\n [groupedRows]=\"$any(groupedRows)\"\n [selected]=\"$any(selected)\"\n [externalPaging]=\"externalPaging\"\n [externalSorting]=\"externalSorting\"\n [limit]=\"$any(limit)\"\n [count]=\"$any(count)\"\n [offset]=\"$any(offset)\"\n [loadingIndicator]=\"loadingIndicator\"\n [selectionType]=\"$any(selectionType)\"\n [reorderable]=\"reorderable\"\n [swapColumns]=\"swapColumns\"\n [sortType]=\"$any(sortType)\"\n [sorts]=\"$any(_sorts)\"\n [cssClasses]=\"cssClasses\"\n [messages]=\"messages\"\n [rowIdentity]=\"$any(rowIdentity)\"\n [rowClass]=\"rowClass\"\n [selectCheck]=\"selectCheck\"\n [displayCheck]=\"$any(displayCheck)\"\n [groupExpansionDefault]=\"groupExpansionDefault\"\n [trackByProp]=\"$any(trackByProp)\"\n [selectAllRowsOnPage]=\"selectAllRowsOnPage\"\n [treeFromRelation]=\"$any(treeFromRelation)\"\n [treeToRelation]=\"$any(treeToRelation)\"\n [summaryRow]=\"summaryRow\"\n [summaryHeight]=\"$any(summaryHeight)\"\n [summaryPosition]=\"$any(summaryPosition)\"\n [rows]=\"rows$ | async\"\n [columns]=\"$any(displayColumns$ | async)\"\n [headerHeight]=\"$any(headerHeight)\"\n [rowHeight]=\"$any(rowHeight)\"\n [footerHeight]=\"$any(footerHeight)\"\n (scroll)=\"scroll.emit($event)\"\n (activate)=\"activate.emit($event)\"\n (select)=\"select.emit($event)\"\n (sort)=\"_onSort($event)\"\n (page)=\"page.emit($event)\"\n (reorder)=\"_onReorder($event)\"\n (resize)=\"_onResize($event)\"\n (tableContextmenu)=\"tableContextmenu.emit($event)\"\n (treeAction)=\"treeAction.emit($event)\"\n (seamElemResized)=\"onDatatableResize($event)\"\n (treeAction)=\"_onTreeAction($event)\">\n\n <ngx-datatable-group-header [rowHeight]=\"50\" #myGroupHeader *ngIf=\"groupRowsBy\">\n <ng-template let-group=\"group\" let-expanded=\"expanded\" ngx-datatable-group-header-template>\n <div\n class=\"w-100 bg-light p-1\"\n [class.border-bottom]=\"!expanded\"\n [class.datatable-icon-right]=\"!expanded\"\n [class.datatable-icon-down]=\"expanded\"\n title=\"Expand/Collapse Group\"\n (click)=\"ngxDatatable?.groupHeader?.toggleExpandGroup(group)\">\n <b>Age: {{ group.age }}</b>\n </div>\n </ng-template>\n </ngx-datatable-group-header>\n\n <ngx-datatable-row-detail *ngIf=\"rowDetail && rowDetail.template\"\n [rowHeight]=\"rowDetail.rowHeight || 0\"\n [template]=\"$any(rowDetail.template)\"\n (toggle)=\"rowDetail.toggle.emit($event)\">\n </ngx-datatable-row-detail>\n\n <ngx-datatable-footer *ngIf=\"footer && footer.template\"\n [template]=\"$any(footer.template)\">\n </ngx-datatable-footer>\n </ngx-datatable>\n </ng-container>\n </div>\n</div>\n\n<ng-template #blankHeaderTpl ngx-datatable-header-template></ng-template>\n\n<ng-template\n #headerTpl\n ngx-datatable-header-template\n let-column=\"column\"\n let-sortFn=\"sortFn\"\n>\n <div class=\"d-inline-flex align-items-center\">\n <ng-container *ngIf=\"column.filterable\">\n <button\n seamIconBtn\n [icon]=\"columnFilterIcon\"\n size=\"sm\"\n [seamPopover]=\"filterMenu\"\n [seamPopoverBaseWidth]=\"300\"\n class=\"datatable-column-header-filter-button d-flex align-items-center mr-2\"\n [class.datatable-column-header-filter-button-active]=\"column.filterActive\"\n style=\"width: 1rem;\"\n title=\"Click to see filter options\"></button>\n </ng-container>\n <strong *ngIf=\"!column.sortable\" class=\"draggable\">{{column.name}}</strong>\n <button\n seamButton\n *ngIf=\"column.sortable\"\n class=\"datatable-sort-target p-0\"\n (click)=\"sortFn()\"\n title=\"Click to sort\">\n <strong class=\"draggable\">{{column.name}}</strong>\n </button>\n <div class=\"datatable-column-header-separator\" [attr.data-column-id]=\"column.$$id\"></div>\n </div>\n <ng-template #filterMenu let-popover=\"popover\">\n <seam-datatable-column-filter-menu\n [column]=\"column\"\n [updateMethod]=\"columnFilterUpdateMethod\"\n [debounce]=\"columnFilterUpdateDebounce\"\n (closePopover)=\"popover?.closePopover()\"></seam-datatable-column-filter-menu>\n </ng-template>\n</ng-template>\n\n<ng-template #cellTypeSelectorTpl ngx-datatable-cell-template\n let-value=\"value\" let-rowIndex=\"rowIndex\" let-row=\"row\" let-column=\"column\">\n <seam-table-cell-type-selector *ngIf=\"row\"\n [type]=\"column.cellType\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"column\">\n </seam-table-cell-type-selector>\n</ng-template>\n\n<ng-template #actionMenuCellTpl ngx-datatable-cell-template\n let-value=\"value\" let-rowIndex=\"rowIndex\" let-row=\"row\">\n\n <ng-container *ngIf=\"row && rowActionItem?.template\">\n <ng-template\n [ngTemplateOutlet]=\"$any(rowActionItem?.template)\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row, rowIndex: rowIndex }\">\n </ng-template>\n </ng-container>\n\n</ng-template>\n\n<ng-template #treeToggleTpl ngx-datatable-tree-toggle let-tree=\"cellContext\">\n <button\n class=\"p-0 bg-transparent border-0 btn\"\n [disabled]=\"tree.treeStatus==='disabled'\"\n (click)=\"tree.onTreeAction()\">\n <span *ngIf=\"tree.treeStatus==='loading'\">\n <fa-icon [icon]=\"_faSpinner\"></fa-icon>\n </span>\n <span *ngIf=\"tree.treeStatus==='collapsed'\">\n <fa-icon [icon]=\"_faChevronRight\"></fa-icon>\n </span>\n <span *ngIf=\"tree.treeStatus==='expanded'\">\n <fa-icon [icon]=\"_faChevronDown\"></fa-icon>\n </span>\n <span *ngIf=\"tree.treeStatus==='disabled'\">\n <fa-icon [icon]=\"_faChevronRight\"></fa-icon>\n </span>\n </button>\n</ng-template>\n", styles: [":host{display:flex;flex-grow:1;flex-direction:column}::ng-deep .seam-datatable-action-menu{min-width:auto!important}ngx-datatable{position:absolute!important;inset:0}.datatable-wrapper{display:flex;flex-direction:column;flex-grow:1}.datatable-wrapper .datatable-table-wrapper{position:relative;flex:1 1 100%}.datatable-column-header-separator{position:absolute}.datatable-sort-target{cursor:pointer}::ng-deep .ngx-datatable .datatable-body-row{position:relative}::ng-deep .ngx-datatable .datatable-row-right{position:absolute!important;top:0}::ng-deep .ngx-datatable .datatable-row-right{right:0}\n"] }]
|
|
2783
|
-
}], ctorParameters: function () { return [{ type: DatatablePreferencesService }, { type: ColumnsManagerService }, { type: ColumnsAlterationsManagerService }, { type: ColumnsFiltersService }, { type: undefined, decorators: [{
|
|
2784
|
-
type: Optional
|
|
2785
|
-
}, {
|
|
2786
|
-
type: Inject,
|
|
2787
|
-
args: [THESEAM_DATATABLE_CONFIG]
|
|
2788
|
-
}] }]; }, propDecorators: { preferencesKey: [{
|
|
2789
|
-
type: Input
|
|
2790
|
-
}], targetMarkerTemplate: [{
|
|
2791
|
-
type: Input
|
|
2792
|
-
}], columns: [{
|
|
2793
|
-
type: Input
|
|
2794
|
-
}], rows: [{
|
|
2795
|
-
type: Input
|
|
2796
|
-
}], columnMode: [{
|
|
2797
|
-
type: Input
|
|
2798
|
-
}], groupRowsBy: [{
|
|
2799
|
-
type: Input
|
|
2800
|
-
}], groupedRows: [{
|
|
2801
|
-
type: Input
|
|
2802
|
-
}], selected: [{
|
|
2803
|
-
type: Input
|
|
2804
|
-
}], externalPaging: [{
|
|
2805
|
-
type: Input
|
|
2806
|
-
}], externalSorting: [{
|
|
2807
|
-
type: Input
|
|
2808
|
-
}], externalFiltering: [{
|
|
2809
|
-
type: Input
|
|
2810
|
-
}], limit: [{
|
|
2811
|
-
type: Input
|
|
2812
|
-
}], count: [{
|
|
2813
|
-
type: Input
|
|
2814
|
-
}], offset: [{
|
|
2815
|
-
type: Input
|
|
2816
|
-
}], loadingIndicator: [{
|
|
2817
|
-
type: Input
|
|
2818
|
-
}], selectionType: [{
|
|
2819
|
-
type: Input
|
|
2820
|
-
}], reorderable: [{
|
|
2821
|
-
type: Input
|
|
2822
|
-
}], swapColumns: [{
|
|
2823
|
-
type: Input
|
|
2824
|
-
}], sortType: [{
|
|
2825
|
-
type: Input
|
|
2826
|
-
}], sorts: [{
|
|
2827
|
-
type: Input
|
|
2828
|
-
}], cssClasses: [{
|
|
2829
|
-
type: Input
|
|
2830
|
-
}], messages: [{
|
|
2831
|
-
type: Input
|
|
2832
|
-
}], rowIdentity: [{
|
|
2833
|
-
type: Input
|
|
2834
|
-
}], rowClass: [{
|
|
2835
|
-
type: Input
|
|
2836
|
-
}], selectCheck: [{
|
|
2837
|
-
type: Input
|
|
2838
|
-
}], displayCheck: [{
|
|
2839
|
-
type: Input
|
|
2840
|
-
}], groupExpansionDefault: [{
|
|
2841
|
-
type: Input
|
|
2842
|
-
}], trackByProp: [{
|
|
2843
|
-
type: Input
|
|
2844
|
-
}], selectAllRowsOnPage: [{
|
|
2845
|
-
type: Input
|
|
2846
|
-
}], treeFromRelation: [{
|
|
2847
|
-
type: Input
|
|
2848
|
-
}], treeToRelation: [{
|
|
2849
|
-
type: Input
|
|
2850
|
-
}], summaryRow: [{
|
|
2851
|
-
type: Input
|
|
2852
|
-
}], summaryHeight: [{
|
|
2853
|
-
type: Input
|
|
2854
|
-
}], summaryPosition: [{
|
|
2855
|
-
type: Input
|
|
2856
|
-
}], virtualization: [{
|
|
2857
|
-
type: Input
|
|
2858
|
-
}], headerHeight: [{
|
|
2859
|
-
type: Input
|
|
2860
|
-
}], rowHeight: [{
|
|
2861
|
-
type: Input
|
|
2862
|
-
}], footerHeight: [{
|
|
2863
|
-
type: Input
|
|
2864
|
-
}], scrollbarV: [{
|
|
2865
|
-
type: Input
|
|
2866
|
-
}], scrollbarH: [{
|
|
2867
|
-
type: Input
|
|
2868
|
-
}], dataSource: [{
|
|
2869
|
-
type: Input
|
|
2870
|
-
}], actionItemColumnPosition: [{
|
|
2871
|
-
type: Input
|
|
2872
|
-
}], columnFilterIcon: [{
|
|
2873
|
-
type: Input
|
|
2874
|
-
}], columnFilterUpdateMethod: [{
|
|
2875
|
-
type: Input
|
|
2876
|
-
}], columnFilterUpdateDebounce: [{
|
|
2877
|
-
type: Input
|
|
2878
|
-
}], scroll: [{
|
|
2879
|
-
type: Output
|
|
2880
|
-
}], activate: [{
|
|
2881
|
-
type: Output
|
|
2882
|
-
}], select: [{
|
|
2883
|
-
type: Output
|
|
2884
|
-
}], sort: [{
|
|
2885
|
-
type: Output
|
|
2886
|
-
}], page: [{
|
|
2887
|
-
type: Output
|
|
2888
|
-
}], reorder: [{
|
|
2889
|
-
type: Output
|
|
2890
|
-
}], resize: [{
|
|
2891
|
-
type: Output
|
|
2892
|
-
}], tableContextmenu: [{
|
|
2893
|
-
type: Output
|
|
2894
|
-
}], treeAction: [{
|
|
2895
|
-
type: Output
|
|
2896
|
-
}], actionRefreshRequest: [{
|
|
2897
|
-
type: Output
|
|
2898
|
-
}], hiddenColumnsChange: [{
|
|
2899
|
-
type: Output
|
|
2900
|
-
}], columnComponents: [{
|
|
2901
|
-
type: ContentChildren,
|
|
2902
|
-
args: [DatatableColumnComponent]
|
|
2903
|
-
}], actionMenu: [{
|
|
2904
|
-
type: ContentChild,
|
|
2905
|
-
args: [DatatableActionMenuComponent, { static: true }]
|
|
2906
|
-
}], rowActionItem: [{
|
|
2907
|
-
type: ContentChild,
|
|
2908
|
-
args: [DatatableRowActionItemDirective]
|
|
2909
|
-
}], rowDetail: [{
|
|
2910
|
-
type: ContentChild,
|
|
2911
|
-
args: [TheSeamDatatableRowDetailDirective, { static: true }]
|
|
2912
|
-
}], footer: [{
|
|
2913
|
-
type: ContentChild,
|
|
2914
|
-
args: [TheSeamDatatableFooterDirective, { static: true }]
|
|
2915
|
-
}], menuBarComponent: [{
|
|
2916
|
-
type: ContentChild,
|
|
2917
|
-
args: [DatatableMenuBarComponent]
|
|
2918
|
-
}], columnFilterTemplates: [{
|
|
2919
|
-
type: ContentChildren,
|
|
2920
|
-
args: [TheSeamDatatableColumnFilterDirective]
|
|
2921
|
-
}], ngxDatatable: [{
|
|
2922
|
-
type: ViewChild,
|
|
2923
|
-
args: [DatatableComponent$1]
|
|
2924
|
-
}], ngxDatatableElement: [{
|
|
2925
|
-
type: ViewChild,
|
|
2926
|
-
args: [DatatableComponent$1, { read: ElementRef }]
|
|
2927
|
-
}], ngxRowDetail: [{
|
|
2928
|
-
type: ViewChild,
|
|
2929
|
-
args: [DatatableRowDetailDirective]
|
|
2930
|
-
}], actionMenuCellTpl: [{
|
|
2931
|
-
type: ViewChild,
|
|
2932
|
-
args: ['actionMenuCellTpl', { static: true }]
|
|
2933
|
-
}], treeToggleTpl: [{
|
|
2934
|
-
type: ViewChild,
|
|
2935
|
-
args: ['treeToggleTpl', { static: true }]
|
|
2936
|
-
}], headerTpl: [{
|
|
2937
|
-
type: ViewChild,
|
|
2938
|
-
args: ['headerTpl', { static: true }]
|
|
2939
|
-
}], blankHeaderTpl: [{
|
|
2940
|
-
type: ViewChild,
|
|
2941
|
-
args: ['blankHeaderTpl', { static: true }]
|
|
2942
|
-
}], cellTypeSelectorTpl: [{
|
|
2943
|
-
type: ViewChild,
|
|
2944
|
-
args: ['cellTypeSelectorTpl', { static: true }]
|
|
2945
|
-
}], _dblClick: [{
|
|
2946
|
-
type: HostListener,
|
|
2947
|
-
args: ['dblclick', ['$event']]
|
|
2948
|
-
}] } });
|
|
2949
|
-
|
|
2950
|
-
class DatatableColumnPreferencesComponent {
|
|
2951
|
-
constructor(_datatable, _columnsAlterationsManager) {
|
|
2952
|
-
this._datatable = _datatable;
|
|
2953
|
-
this._columnsAlterationsManager = _columnsAlterationsManager;
|
|
2954
|
-
this._filterControl = new UntypedFormControl();
|
|
2955
|
-
this._columns$ = combineLatest([
|
|
2956
|
-
this._datatable.columns$ ?? of([]),
|
|
2957
|
-
observeControlValue(this._filterControl)
|
|
2958
|
-
]).pipe(map(([columns, filter]) => {
|
|
2959
|
-
const _filter = (filter || '').trim().toLowerCase();
|
|
2960
|
-
return columns
|
|
2961
|
-
.filter(c => this._canToggleColumn(c, _filter));
|
|
2962
|
-
}));
|
|
2963
|
-
}
|
|
2964
|
-
_canToggleColumn(column, filter, omitInternalColumns = true) {
|
|
2965
|
-
if (omitInternalColumns && isInternalColumn(column)) {
|
|
2966
|
-
return false;
|
|
2967
|
-
}
|
|
2968
|
-
return this._columnMatchesFilter(column, filter);
|
|
2969
|
-
}
|
|
2970
|
-
_columnMatchesFilter(column, filter) {
|
|
2971
|
-
if (filter.length === 0) {
|
|
2972
|
-
return true;
|
|
2973
|
-
}
|
|
2974
|
-
return `${(getColumnProp(column) || '')}`.toLowerCase().indexOf(filter) !== -1;
|
|
2975
|
-
}
|
|
2976
|
-
_onChange(event, col) {
|
|
2977
|
-
const columnProp = getColumnProp(col);
|
|
2978
|
-
const hidden = !event.checked;
|
|
2979
|
-
if (!notNullOrUndefined(columnProp)) {
|
|
2980
|
-
throw Error(`Unable to get column prop.`);
|
|
2981
|
-
}
|
|
2982
|
-
const alteration = new HideColumnColumnsAlteration({
|
|
2983
|
-
columnProp,
|
|
2984
|
-
hidden
|
|
2985
|
-
}, hidden);
|
|
2986
|
-
this._columnsAlterationsManager.add([alteration]);
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
DatatableColumnPreferencesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnPreferencesComponent, deps: [{ token: THESEAM_DATATABLE }, { token: ColumnsAlterationsManagerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2990
|
-
DatatableColumnPreferencesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnPreferencesComponent, selector: "seam-datatable-column-preferences", ngImport: i0, template: "<h3>Columns</h3>\n\n<seam-form-field [numPaddingErrors]=\"0\" >\n <input seamInput [formControl]=\"_filterControl\" seamInputSize=\"sm\" placeholder=\"Search\" seamAutoFocus>\n</seam-form-field>\n\n<div seamOverlayScrollbar style=\"min-height: 200px; max-height: 600px; min-width: 250px;\" class=\"flex-grow-1 mb-2\">\n <div class=\"p-2\">\n <ng-container *ngFor=\"let col of _columns$ | async\">\n <seam-checkbox [checked]=\"!col.hidden\" (change)=\"_onChange($event, col)\">{{ col.name || col.prop }}</seam-checkbox>\n </ng-container>\n </div>\n\n</div>\n<div class=\"d-flex flex-row justify-content-end\">\n <!-- <button seamButton size=\"sm\" theme=\"lightgray\" (click)=\"_onCloseClick()\">Close</button> -->\n <!-- <button seamButton size=\"sm\" theme=\"lightgray\" class=\"mr-1\">Cancel</button>\n <button seamButton size=\"sm\" theme=\"success\">Done</button> -->\n</div>\n", styles: [":host{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.AutoFocusDirective, selector: "[seamAutoFocus]", inputs: ["seamAutoFocus"], exportAs: ["seamAutoFocus"] }, { kind: "directive", type: i1$2.OverlayScrollbarDirective, selector: "[seamOverlayScrollbar]", inputs: ["seamOverlayScrollbar", "overlayScrollbarEnabled"], exportAs: ["seamOverlayScrollbar"] }, { kind: "component", type: i5$2.TheSeamCheckboxComponent, selector: "seam-checkbox", inputs: ["tabIndex", "id", "aria-label", "aria-labelledby", "required", "checked", "disabled", "indeterminate", "name", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["seamCheckbox"] }, { kind: "component", type: i3.TheSeamFormFieldComponent, selector: "seam-form-field", inputs: ["inline", "label", "labelPosition", "labelClass", "maxErrors", "numPaddingErrors", "labelId", "helpText", "helpTextId"] }, { kind: "directive", type: i3.InputDirective, selector: "input[seamInput], textarea[seamInput], ng-select[seamInput], seam-checkbox[seamInput] [ngbRadioGroup], seam-tel-input[seamInput], quill-editor[seamInput], seam-google-maps[seamInput], seam-rich-text[seamInput]", inputs: ["seamInputSize", "id", "type", "placeholder", "required", "disabled", "readonly"], exportAs: ["seamInput"] }, { kind: "directive", type: i4$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnPreferencesComponent, decorators: [{
|
|
2992
|
-
type: Component,
|
|
2993
|
-
args: [{ selector: 'seam-datatable-column-preferences', changeDetection: ChangeDetectionStrategy.OnPush, template: "<h3>Columns</h3>\n\n<seam-form-field [numPaddingErrors]=\"0\" >\n <input seamInput [formControl]=\"_filterControl\" seamInputSize=\"sm\" placeholder=\"Search\" seamAutoFocus>\n</seam-form-field>\n\n<div seamOverlayScrollbar style=\"min-height: 200px; max-height: 600px; min-width: 250px;\" class=\"flex-grow-1 mb-2\">\n <div class=\"p-2\">\n <ng-container *ngFor=\"let col of _columns$ | async\">\n <seam-checkbox [checked]=\"!col.hidden\" (change)=\"_onChange($event, col)\">{{ col.name || col.prop }}</seam-checkbox>\n </ng-container>\n </div>\n\n</div>\n<div class=\"d-flex flex-row justify-content-end\">\n <!-- <button seamButton size=\"sm\" theme=\"lightgray\" (click)=\"_onCloseClick()\">Close</button> -->\n <!-- <button seamButton size=\"sm\" theme=\"lightgray\" class=\"mr-1\">Cancel</button>\n <button seamButton size=\"sm\" theme=\"success\">Done</button> -->\n</div>\n", styles: [":host{display:flex;flex-direction:column}\n"] }]
|
|
2994
|
-
}], ctorParameters: function () { return [{ type: DatatableComponent, decorators: [{
|
|
2995
|
-
type: Inject,
|
|
2996
|
-
args: [THESEAM_DATATABLE]
|
|
2997
|
-
}] }, { type: ColumnsAlterationsManagerService }]; } });
|
|
2998
|
-
|
|
2999
|
-
class DatatableColumnPreferencesButtonComponent {
|
|
3000
|
-
constructor(_columnsAlterationsManager) {
|
|
3001
|
-
this._columnsAlterationsManager = _columnsAlterationsManager;
|
|
3002
|
-
this.icon = faColumns;
|
|
3003
|
-
/** @ignore */
|
|
3004
|
-
this._actionMenuPositions = [
|
|
3005
|
-
{
|
|
3006
|
-
originX: 'start',
|
|
3007
|
-
originY: 'bottom',
|
|
3008
|
-
overlayX: 'end',
|
|
3009
|
-
overlayY: 'top',
|
|
3010
|
-
},
|
|
3011
|
-
{
|
|
3012
|
-
originX: 'start',
|
|
3013
|
-
originY: 'top',
|
|
3014
|
-
overlayX: 'end',
|
|
3015
|
-
overlayY: 'bottom',
|
|
3016
|
-
},
|
|
3017
|
-
{
|
|
3018
|
-
originX: 'end',
|
|
3019
|
-
originY: 'bottom',
|
|
3020
|
-
overlayX: 'start',
|
|
3021
|
-
overlayY: 'top',
|
|
3022
|
-
},
|
|
3023
|
-
{
|
|
3024
|
-
originX: 'end',
|
|
3025
|
-
originY: 'top',
|
|
3026
|
-
overlayX: 'start',
|
|
3027
|
-
overlayY: 'bottom',
|
|
3028
|
-
},
|
|
3029
|
-
];
|
|
3030
|
-
}
|
|
3031
|
-
_resetColumns(event) {
|
|
3032
|
-
this._columnsAlterationsManager.clear();
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
|
-
DatatableColumnPreferencesButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnPreferencesButtonComponent, deps: [{ token: ColumnsAlterationsManagerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3036
|
-
DatatableColumnPreferencesButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableColumnPreferencesButtonComponent, selector: "seam-datatable-column-preferences-button", ngImport: i0, template: "<ng-template #colPrefsTpl>\n <seam-datatable-column-preferences></seam-datatable-column-preferences>\n</ng-template>\n\n<seam-menu #menu\n menuClass=\"list-group py-0 border-0 seam-datatable-action-menu\"\n animationType=\"fade\">\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n [seamPopover]=\"colPrefsTpl\">\n Show/Hide Columns\n </button>\n\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n (click)=\"_resetColumns($event)\">\n Reset Columns\n </button>\n</seam-menu>\n\n<button type=\"button\" class=\"btn btn-lightgray btn-sm\"\n [seamMenuToggle]=\"menu\"\n [positions]=\"_actionMenuPositions || []\"\n style=\"padding-left: 10px; padding-right: 10px;\"\n title=\"Column Preferences\">\n <seam-icon [icon]=\"icon\"></seam-icon>\n <span class=\"sr-only\">Column Preferences</span>\n</button>\n\n", styles: [""], dependencies: [{ kind: "component", type: i4.MenuComponent, selector: "seam-menu", inputs: ["menuClass", "baseWidth", "animationType"], outputs: ["closed"], exportAs: ["seamMenu"] }, { kind: "directive", type: i4.MenuToggleDirective, selector: "[seamMenuToggle]", inputs: ["seamMenuToggle", "positions", "seamMenuTogglePositionsOffsetY"], outputs: ["menuToggle", "menuOpened", "menuClosed"], exportAs: ["seamMenuToggle"] }, { kind: "component", type: i4.MenuItemComponent, selector: "[seamMenuItem]", inputs: ["disabled", "role", "icon", "iconClass", "sublevelIcon", "subLevelIconClass", "badgeText", "badgeTheme"], exportAs: ["seamMenuItem"] }, { kind: "component", type: i5.IconComponent, selector: "seam-icon", inputs: ["grayscaleOnDisable", "disabled", "iconClass", "icon", "size", "showDefaultOnError", "defaultIcon", "iconType"] }, { kind: "directive", type: i11.TheSeamPopoverDirective, selector: "[seamPopover]", inputs: ["seamPopover", "seamPopoverContext", "seamPopoverBaseWidth", "seamPopoverDisabled"], exportAs: ["seamPopover"] }, { kind: "component", type: DatatableColumnPreferencesComponent, selector: "seam-datatable-column-preferences" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableColumnPreferencesButtonComponent, decorators: [{
|
|
3038
|
-
type: Component,
|
|
3039
|
-
args: [{ selector: 'seam-datatable-column-preferences-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #colPrefsTpl>\n <seam-datatable-column-preferences></seam-datatable-column-preferences>\n</ng-template>\n\n<seam-menu #menu\n menuClass=\"list-group py-0 border-0 seam-datatable-action-menu\"\n animationType=\"fade\">\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n [seamPopover]=\"colPrefsTpl\">\n Show/Hide Columns\n </button>\n\n <button seamMenuItem\n type=\"button\"\n class=\"list-group-item list-group-item-action py-1\"\n (click)=\"_resetColumns($event)\">\n Reset Columns\n </button>\n</seam-menu>\n\n<button type=\"button\" class=\"btn btn-lightgray btn-sm\"\n [seamMenuToggle]=\"menu\"\n [positions]=\"_actionMenuPositions || []\"\n style=\"padding-left: 10px; padding-right: 10px;\"\n title=\"Column Preferences\">\n <seam-icon [icon]=\"icon\"></seam-icon>\n <span class=\"sr-only\">Column Preferences</span>\n</button>\n\n" }]
|
|
3040
|
-
}], ctorParameters: function () { return [{ type: ColumnsAlterationsManagerService }]; } });
|
|
3041
|
-
|
|
3042
|
-
class DatatableExportButtonComponent {
|
|
3043
|
-
get disabled() {
|
|
3044
|
-
return !(this.exporters && this.exporters.length > 0);
|
|
3045
|
-
}
|
|
3046
|
-
constructor(_datatable, _toastr, _loading, _valueHelper, _data) {
|
|
3047
|
-
this._datatable = _datatable;
|
|
3048
|
-
this._toastr = _toastr;
|
|
3049
|
-
this._loading = _loading;
|
|
3050
|
-
this._valueHelper = _valueHelper;
|
|
3051
|
-
this._data = _data;
|
|
3052
|
-
this.icon = faFileDownload;
|
|
3053
|
-
if (this._data && this._data.exporters) {
|
|
3054
|
-
this.exporters = this._data.exporters;
|
|
3055
|
-
}
|
|
3056
|
-
}
|
|
3057
|
-
_onExporterClicked(exporter) {
|
|
3058
|
-
if (!exporter.export) {
|
|
3059
|
-
const msg = isDevMode()
|
|
3060
|
-
? `Exporter '${exporter.name}' is missing an export method.`
|
|
3061
|
-
: `${exporter.label} export is not available.`;
|
|
3062
|
-
this._toastr.error(msg, 'Data Export');
|
|
3063
|
-
}
|
|
3064
|
-
const export$ = combineLatest([
|
|
3065
|
-
this._datatable.rows$,
|
|
3066
|
-
this._datatable.columns$.pipe(map(cols => cols.filter(c => !isInternalColumn(c))))
|
|
3067
|
-
]).pipe(take(1), map(([rows, columns]) => {
|
|
3068
|
-
if (exporter.skipDataMapping) {
|
|
3069
|
-
return rows;
|
|
3070
|
-
}
|
|
3071
|
-
return this._mapExportData(columns || [], rows);
|
|
3072
|
-
}), concatMap(data => exporter.export(data)), catchError(err => {
|
|
3073
|
-
// eslint-disable-next-line no-console
|
|
3074
|
-
console.error(err);
|
|
3075
|
-
return of(false);
|
|
3076
|
-
}), tap(success => {
|
|
3077
|
-
if (success) {
|
|
3078
|
-
this._toastr.success(`${exporter.label} export complete.`, 'Data Export');
|
|
3079
|
-
}
|
|
3080
|
-
else {
|
|
3081
|
-
this._toastr.error(`${exporter.label} export failed.`, 'Data Export');
|
|
3082
|
-
}
|
|
3083
|
-
}));
|
|
3084
|
-
this._loading.while(export$).subscribe();
|
|
3085
|
-
}
|
|
3086
|
-
_mapExportData(columns, rows) {
|
|
3087
|
-
const data = [];
|
|
3088
|
-
for (const row of rows) {
|
|
3089
|
-
const newRow = {};
|
|
3090
|
-
for (const col of columns) {
|
|
3091
|
-
if (!col.exportIgnore) {
|
|
3092
|
-
const colName = col.exportHeader || col.name || col.prop;
|
|
3093
|
-
if (colName) {
|
|
3094
|
-
newRow[colName] = this._rowValue(col, row);
|
|
3095
|
-
}
|
|
3096
|
-
}
|
|
3097
|
-
}
|
|
3098
|
-
data.push(newRow);
|
|
3099
|
-
}
|
|
3100
|
-
return data;
|
|
3101
|
-
}
|
|
3102
|
-
_rowValue(column, row) {
|
|
3103
|
-
if (hasProperty(column, 'exportValue')) {
|
|
3104
|
-
const context = { value: column.prop ? row[column.prop] : undefined, row };
|
|
3105
|
-
return this._valueHelper.evalSync(column.exportValue, context);
|
|
3106
|
-
}
|
|
3107
|
-
const colProp = column.prop;
|
|
3108
|
-
if (colProp) {
|
|
3109
|
-
return row[colProp];
|
|
3110
|
-
}
|
|
3111
|
-
return undefined;
|
|
3112
|
-
}
|
|
3113
|
-
}
|
|
3114
|
-
DatatableExportButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableExportButtonComponent, deps: [{ token: THESEAM_DATATABLE }, { token: i1$3.ToastrService }, { token: i2$3.TheSeamLoadingOverlayService }, { token: i3$2.DynamicValueHelperService }, { token: THESEAM_DYNAMIC_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3115
|
-
DatatableExportButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableExportButtonComponent, selector: "seam-datatable-export-button", inputs: { exporters: "exporters" }, ngImport: i0, template: "<seam-menu #menu>\n <button *ngFor=\"let exp of exporters\"\n seamMenuItem\n [icon]=\"exp?.icon\"\n (click)=\"_onExporterClicked(exp)\">\n {{ exp.label }}\n </button>\n</seam-menu>\n<button\n [seamMenuToggle]=\"menu\"\n seamButton\n theme=\"lightgray\"\n size=\"sm\"\n class=\"dropdown-toggle\"\n style=\"padding-left: 10px; padding-right: 10px;\"\n title=\"Export\"\n [disabled]=\"disabled\"\n >\n <seam-icon [icon]=\"icon\" class=\"mr-2\"></seam-icon>\n</button>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.MenuComponent, selector: "seam-menu", inputs: ["menuClass", "baseWidth", "animationType"], outputs: ["closed"], exportAs: ["seamMenu"] }, { kind: "directive", type: i4.MenuToggleDirective, selector: "[seamMenuToggle]", inputs: ["seamMenuToggle", "positions", "seamMenuTogglePositionsOffsetY"], outputs: ["menuToggle", "menuOpened", "menuClosed"], exportAs: ["seamMenuToggle"] }, { kind: "component", type: i4.MenuItemComponent, selector: "[seamMenuItem]", inputs: ["disabled", "role", "icon", "iconClass", "sublevelIcon", "subLevelIconClass", "badgeText", "badgeTheme"], exportAs: ["seamMenuItem"] }, { kind: "component", type: i5.IconComponent, selector: "seam-icon", inputs: ["grayscaleOnDisable", "disabled", "iconClass", "icon", "size", "showDefaultOnError", "defaultIcon", "iconType"] }, { kind: "component", type: i3$1.TheSeamButtonComponent, selector: "button[seamButton]", inputs: ["disabled", "theme", "size", "type"], exportAs: ["seamButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableExportButtonComponent, decorators: [{
|
|
3117
|
-
type: Component,
|
|
3118
|
-
args: [{ selector: 'seam-datatable-export-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<seam-menu #menu>\n <button *ngFor=\"let exp of exporters\"\n seamMenuItem\n [icon]=\"exp?.icon\"\n (click)=\"_onExporterClicked(exp)\">\n {{ exp.label }}\n </button>\n</seam-menu>\n<button\n [seamMenuToggle]=\"menu\"\n seamButton\n theme=\"lightgray\"\n size=\"sm\"\n class=\"dropdown-toggle\"\n style=\"padding-left: 10px; padding-right: 10px;\"\n title=\"Export\"\n [disabled]=\"disabled\"\n >\n <seam-icon [icon]=\"icon\" class=\"mr-2\"></seam-icon>\n</button>\n", styles: [":host{display:inline-block}\n"] }]
|
|
3119
|
-
}], ctorParameters: function () { return [{ type: DatatableComponent, decorators: [{
|
|
3120
|
-
type: Inject,
|
|
3121
|
-
args: [THESEAM_DATATABLE]
|
|
3122
|
-
}] }, { type: i1$3.ToastrService }, { type: i2$3.TheSeamLoadingOverlayService }, { type: i3$2.DynamicValueHelperService }, { type: undefined, decorators: [{
|
|
3123
|
-
type: Optional
|
|
3124
|
-
}, {
|
|
3125
|
-
type: Inject,
|
|
3126
|
-
args: [THESEAM_DYNAMIC_DATA]
|
|
3127
|
-
}] }]; }, propDecorators: { exporters: [{
|
|
3128
|
-
type: Input
|
|
3129
|
-
}] } });
|
|
3130
|
-
|
|
3131
|
-
class DatatableMenuBarColumnCenterComponent {
|
|
3132
|
-
}
|
|
3133
|
-
DatatableMenuBarColumnCenterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarColumnCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3134
|
-
DatatableMenuBarColumnCenterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableMenuBarColumnCenterComponent, selector: "seam-datatable-menu-bar-column-center", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex:1 1 auto;justify-content:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarColumnCenterComponent, decorators: [{
|
|
3136
|
-
type: Component,
|
|
3137
|
-
args: [{ selector: 'seam-datatable-menu-bar-column-center', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex:1 1 auto;justify-content:center}\n"] }]
|
|
3138
|
-
}] });
|
|
3139
|
-
|
|
3140
|
-
class DatatableMenuBarColumnLeftComponent {
|
|
3141
|
-
}
|
|
3142
|
-
DatatableMenuBarColumnLeftComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarColumnLeftComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3143
|
-
DatatableMenuBarColumnLeftComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableMenuBarColumnLeftComponent, selector: "seam-datatable-menu-bar-column-left", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex:1 1 0%;justify-content:flex-start}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarColumnLeftComponent, decorators: [{
|
|
3145
|
-
type: Component,
|
|
3146
|
-
args: [{ selector: 'seam-datatable-menu-bar-column-left', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex:1 1 0%;justify-content:flex-start}\n"] }]
|
|
3147
|
-
}] });
|
|
3148
|
-
|
|
3149
|
-
class DatatableMenuBarColumnRightComponent {
|
|
3150
|
-
}
|
|
3151
|
-
DatatableMenuBarColumnRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarColumnRightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3152
|
-
DatatableMenuBarColumnRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableMenuBarColumnRightComponent, selector: "seam-datatable-menu-bar-column-right", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex:1 1 0%;justify-content:flex-end}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarColumnRightComponent, decorators: [{
|
|
3154
|
-
type: Component,
|
|
3155
|
-
args: [{ selector: 'seam-datatable-menu-bar-column-right', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex:1 1 0%;justify-content:flex-end}\n"] }]
|
|
3156
|
-
}] });
|
|
3157
|
-
|
|
3158
|
-
class DatatableMenuBarRowComponent {
|
|
3159
|
-
}
|
|
3160
|
-
DatatableMenuBarRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3161
|
-
DatatableMenuBarRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableMenuBarRowComponent, selector: "seam-datatable-menu-bar-row", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex-wrap:wrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarRowComponent, decorators: [{
|
|
3163
|
-
type: Component,
|
|
3164
|
-
args: [{ selector: 'seam-datatable-menu-bar-row', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;flex-direction:row;flex-wrap:wrap}\n"] }]
|
|
3165
|
-
}] });
|
|
3166
|
-
|
|
3167
|
-
const THESEAM_MENUBAR_ITEM_DATA = new InjectionToken('MenubarItemData');
|
|
3168
|
-
|
|
3169
|
-
class DatatableMenuBarTextComponent {
|
|
3170
|
-
constructor(_menuBar, _data) {
|
|
3171
|
-
this._menuBar = _menuBar;
|
|
3172
|
-
this._data = _data;
|
|
3173
|
-
if (notNullOrUndefined(this._data)) {
|
|
3174
|
-
if (hasProperty(this._data, 'value')) {
|
|
3175
|
-
this.value = this._data.value;
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
}
|
|
3179
|
-
}
|
|
3180
|
-
DatatableMenuBarTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarTextComponent, deps: [{ token: DatatableMenuBarComponent }, { token: THESEAM_MENUBAR_ITEM_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3181
|
-
DatatableMenuBarTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatatableMenuBarTextComponent, selector: "seam-datatable-menu-bar-text", inputs: { value: "value" }, ngImport: i0, template: "{{ value }}\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableMenuBarTextComponent, decorators: [{
|
|
3183
|
-
type: Component,
|
|
3184
|
-
args: [{ selector: 'seam-datatable-menu-bar-text', changeDetection: ChangeDetectionStrategy.OnPush, template: "{{ value }}\n" }]
|
|
3185
|
-
}], ctorParameters: function () { return [{ type: DatatableMenuBarComponent }, { type: undefined, decorators: [{
|
|
3186
|
-
type: Optional
|
|
3187
|
-
}, {
|
|
3188
|
-
type: Inject,
|
|
3189
|
-
args: [THESEAM_MENUBAR_ITEM_DATA]
|
|
3190
|
-
}] }]; }, propDecorators: { value: [{
|
|
3191
|
-
type: Input
|
|
3192
|
-
}] } });
|
|
3193
|
-
|
|
3194
|
-
class DatatableActionMenuItemDirective {
|
|
3195
|
-
constructor(_modal, _dynamicComponentLoader, _http) {
|
|
3196
|
-
this._modal = _modal;
|
|
3197
|
-
this._dynamicComponentLoader = _dynamicComponentLoader;
|
|
3198
|
-
this._http = _http;
|
|
3199
|
-
this._listGroupItem = true;
|
|
3200
|
-
this._listGroupItemAction = true;
|
|
3201
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
3202
|
-
this.click = new EventEmitter();
|
|
3203
|
-
}
|
|
3204
|
-
}
|
|
3205
|
-
DatatableActionMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuItemDirective, deps: [{ token: i1$4.Modal }, { token: i2$4.TheSeamDynamicComponentLoader }, { token: i3$3.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3206
|
-
DatatableActionMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableActionMenuItemDirective, selector: "[seamDatatableActionMenuItem]", inputs: { label: "label", href: ["attr.href", "href"], target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", state: "state", routerLink: "routerLink", confirmDialog: "confirmDialog", row: "row" }, outputs: { click: "click" }, host: { properties: { "class.list-group-item": "this._listGroupItem", "class.list-group-item-action": "this._listGroupItemAction" } }, ngImport: i0 });
|
|
3207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuItemDirective, decorators: [{
|
|
3208
|
-
type: Directive,
|
|
3209
|
-
args: [{
|
|
3210
|
-
selector: '[seamDatatableActionMenuItem]'
|
|
3211
|
-
}]
|
|
3212
|
-
}], ctorParameters: function () { return [{ type: i1$4.Modal }, { type: i2$4.TheSeamDynamicComponentLoader }, { type: i3$3.HttpClient, decorators: [{
|
|
3213
|
-
type: Optional
|
|
3214
|
-
}] }]; }, propDecorators: { _listGroupItem: [{
|
|
3215
|
-
type: HostBinding,
|
|
3216
|
-
args: ['class.list-group-item']
|
|
3217
|
-
}], _listGroupItemAction: [{
|
|
3218
|
-
type: HostBinding,
|
|
3219
|
-
args: ['class.list-group-item-action']
|
|
3220
|
-
}], label: [{
|
|
3221
|
-
type: Input
|
|
3222
|
-
}], href: [{
|
|
3223
|
-
type: Input,
|
|
3224
|
-
args: ['attr.href']
|
|
3225
|
-
}], target: [{
|
|
3226
|
-
type: Input
|
|
3227
|
-
}], queryParams: [{
|
|
3228
|
-
type: Input
|
|
3229
|
-
}], fragment: [{
|
|
3230
|
-
type: Input
|
|
3231
|
-
}], queryParamsHandling: [{
|
|
3232
|
-
type: Input
|
|
3233
|
-
}], preserveFragment: [{
|
|
3234
|
-
type: Input
|
|
3235
|
-
}], skipLocationChange: [{
|
|
3236
|
-
type: Input
|
|
3237
|
-
}], replaceUrl: [{
|
|
3238
|
-
type: Input
|
|
3239
|
-
}], state: [{
|
|
3240
|
-
type: Input
|
|
3241
|
-
}], routerLink: [{
|
|
3242
|
-
type: Input
|
|
3243
|
-
}], confirmDialog: [{
|
|
3244
|
-
type: Input
|
|
3245
|
-
}], row: [{
|
|
3246
|
-
type: Input
|
|
3247
|
-
}], click: [{
|
|
3248
|
-
type: Output
|
|
3249
|
-
}] } });
|
|
3250
|
-
|
|
3251
|
-
class DatatableActionMenuToggleDirective {
|
|
3252
|
-
_onKeydown(event) {
|
|
3253
|
-
if (event.keyCode === ESCAPE) {
|
|
3254
|
-
this.disable();
|
|
3255
|
-
}
|
|
3256
|
-
}
|
|
3257
|
-
_onClick(event) {
|
|
3258
|
-
this.toggle();
|
|
3259
|
-
}
|
|
3260
|
-
_mouseDown(event) { this.onInputDown(event); }
|
|
3261
|
-
_pointerDown(event) { this.onInputDown(event); }
|
|
3262
|
-
_mouseUp(event) { this.onInputUp(event); }
|
|
3263
|
-
_pointerUp(event) { this.onInputUp(event); }
|
|
3264
|
-
constructor(_elementRef, _viewContainerRef, _overlay) {
|
|
3265
|
-
this._elementRef = _elementRef;
|
|
3266
|
-
this._viewContainerRef = _viewContainerRef;
|
|
3267
|
-
this._overlay = _overlay;
|
|
3268
|
-
this._active = false;
|
|
3269
|
-
this._actionDown = false;
|
|
3270
|
-
}
|
|
3271
|
-
get active() { return this._active; }
|
|
3272
|
-
toggle() {
|
|
3273
|
-
if (this._active) {
|
|
3274
|
-
this.disable();
|
|
3275
|
-
}
|
|
3276
|
-
else {
|
|
3277
|
-
this.enable();
|
|
3278
|
-
}
|
|
3279
|
-
}
|
|
3280
|
-
enable() {
|
|
3281
|
-
if (this.active) {
|
|
3282
|
-
return;
|
|
3283
|
-
}
|
|
3284
|
-
if (!this.seamDatatableActionMenuToggle) {
|
|
3285
|
-
return;
|
|
3286
|
-
}
|
|
3287
|
-
this._overlayRef = this._overlay.create({
|
|
3288
|
-
hasBackdrop: false,
|
|
3289
|
-
positionStrategy: this.getOverlayPosition(this._elementRef.nativeElement),
|
|
3290
|
-
});
|
|
3291
|
-
this._overlayRef.attach(new TemplatePortal(this.seamDatatableActionMenuToggle, this._viewContainerRef));
|
|
3292
|
-
this._active = true;
|
|
3293
|
-
}
|
|
3294
|
-
disable() {
|
|
3295
|
-
if (!this.active) {
|
|
3296
|
-
return;
|
|
3297
|
-
}
|
|
3298
|
-
if (this._overlayRef?.hasAttached()) {
|
|
3299
|
-
this._overlayRef.detach();
|
|
3300
|
-
}
|
|
3301
|
-
this._active = false;
|
|
3302
|
-
}
|
|
3303
|
-
getOverlayPosition(origin) {
|
|
3304
|
-
const positionStrategy = this._overlay.position()
|
|
3305
|
-
.flexibleConnectedTo(origin)
|
|
3306
|
-
.withPositions(this.getPositions())
|
|
3307
|
-
.withFlexibleDimensions(false)
|
|
3308
|
-
.withPush(false);
|
|
3309
|
-
return positionStrategy;
|
|
3310
|
-
}
|
|
3311
|
-
getPositions() {
|
|
3312
|
-
return [
|
|
3313
|
-
{
|
|
3314
|
-
originX: 'start',
|
|
3315
|
-
originY: 'bottom',
|
|
3316
|
-
overlayX: 'end',
|
|
3317
|
-
overlayY: 'top',
|
|
3318
|
-
},
|
|
3319
|
-
{
|
|
3320
|
-
originX: 'start',
|
|
3321
|
-
originY: 'top',
|
|
3322
|
-
overlayX: 'end',
|
|
3323
|
-
overlayY: 'bottom',
|
|
3324
|
-
},
|
|
3325
|
-
{
|
|
3326
|
-
originX: 'end',
|
|
3327
|
-
originY: 'bottom',
|
|
3328
|
-
overlayX: 'start',
|
|
3329
|
-
overlayY: 'top',
|
|
3330
|
-
},
|
|
3331
|
-
{
|
|
3332
|
-
originX: 'end',
|
|
3333
|
-
originY: 'top',
|
|
3334
|
-
overlayX: 'start',
|
|
3335
|
-
overlayY: 'bottom',
|
|
3336
|
-
},
|
|
3337
|
-
];
|
|
3338
|
-
}
|
|
3339
|
-
onFocusChangeOverlay(event) {
|
|
3340
|
-
if (event === null) {
|
|
3341
|
-
if (!this._actionDown) {
|
|
3342
|
-
// this.disable()
|
|
3343
|
-
}
|
|
3344
|
-
}
|
|
3345
|
-
}
|
|
3346
|
-
onInputDown(event) {
|
|
3347
|
-
this._actionDown = true;
|
|
3348
|
-
}
|
|
3349
|
-
onInputUp(event) {
|
|
3350
|
-
this._actionDown = false;
|
|
3351
|
-
}
|
|
3352
|
-
}
|
|
3353
|
-
DatatableActionMenuToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuToggleDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i1$5.Overlay }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3354
|
-
DatatableActionMenuToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatatableActionMenuToggleDirective, selector: "[seamDatatableActionMenuToggle]", inputs: { seamDatatableActionMenuToggle: "seamDatatableActionMenuToggle" }, host: { listeners: { "document:keydown": "_onKeydown($event)", "click": "_onClick($event)", "mousedown": "_mouseDown($event)", "pointerdown": "_pointerDown($event)", "mouseup": "_mouseUp($event)", "pointerup": "_pointerUp($event)" } }, exportAs: ["seamDatatableActionMenuToggle"], ngImport: i0 });
|
|
3355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatatableActionMenuToggleDirective, decorators: [{
|
|
3356
|
-
type: Directive,
|
|
3357
|
-
args: [{
|
|
3358
|
-
selector: '[seamDatatableActionMenuToggle]',
|
|
3359
|
-
exportAs: 'seamDatatableActionMenuToggle'
|
|
3360
|
-
}]
|
|
3361
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i1$5.Overlay }]; }, propDecorators: { seamDatatableActionMenuToggle: [{
|
|
3362
|
-
type: Input
|
|
3363
|
-
}], _onKeydown: [{
|
|
3364
|
-
type: HostListener,
|
|
3365
|
-
args: ['document:keydown', ['$event']]
|
|
3366
|
-
}], _onClick: [{
|
|
3367
|
-
type: HostListener,
|
|
3368
|
-
args: ['click', ['$event']]
|
|
3369
|
-
}], _mouseDown: [{
|
|
3370
|
-
type: HostListener,
|
|
3371
|
-
args: ['mousedown', ['$event']]
|
|
3372
|
-
}], _pointerDown: [{
|
|
3373
|
-
type: HostListener,
|
|
3374
|
-
args: ['pointerdown', ['$event']]
|
|
3375
|
-
}], _mouseUp: [{
|
|
3376
|
-
type: HostListener,
|
|
3377
|
-
args: ['mouseup', ['$event']]
|
|
3378
|
-
}], _pointerUp: [{
|
|
3379
|
-
type: HostListener,
|
|
3380
|
-
args: ['pointerup', ['$event']]
|
|
3381
|
-
}] } });
|
|
3382
|
-
|
|
3383
|
-
class DatatableGqlDataSource extends DatatableDataSource {
|
|
3384
|
-
connect(collectionViewer) {
|
|
3385
|
-
throw new Error('Method not implemented.');
|
|
3386
|
-
// return combineLatest([
|
|
3387
|
-
// this.sorts$,
|
|
3388
|
-
// this.filterStates$,
|
|
3389
|
-
// this.page$
|
|
3390
|
-
// ]).pipe()
|
|
3391
|
-
}
|
|
3392
|
-
disconnect(collectionViewer) {
|
|
3393
|
-
throw new Error('Method not implemented.');
|
|
3394
|
-
}
|
|
3395
|
-
}
|
|
3396
|
-
|
|
3397
|
-
class TheSeamDatatableScrollbarHelperService {
|
|
3398
|
-
constructor(_ngZone, _scrollbars) {
|
|
3399
|
-
this._ngZone = _ngZone;
|
|
3400
|
-
this._scrollbars = _scrollbars;
|
|
3401
|
-
this.width = 0;
|
|
3402
|
-
/**
|
|
3403
|
-
* Animates programmatic scrolling, such as switching pages.
|
|
3404
|
-
*
|
|
3405
|
-
* NOTE: Animating the scrolling works, but the datatable may need changes
|
|
3406
|
-
* before this is enabled, because it seems a little stuttery when it moves.
|
|
3407
|
-
*/
|
|
3408
|
-
this.animatedScrolling = false;
|
|
3409
|
-
this.animatedScrollingTime = 250;
|
|
3410
|
-
}
|
|
3411
|
-
onInitScroller(scroller) {
|
|
3412
|
-
this._scrollbars.initializeInstance(scroller.parentElement, {
|
|
3413
|
-
callbacks: {
|
|
3414
|
-
onScroll: e => {
|
|
3415
|
-
this._ngZone.run(() => {
|
|
3416
|
-
scroller.onScrolled(e);
|
|
3417
|
-
});
|
|
3418
|
-
}
|
|
3419
|
-
}
|
|
3420
|
-
});
|
|
3421
|
-
}
|
|
3422
|
-
onDestroyScroller(scroller) {
|
|
3423
|
-
this._scrollbars.destroyInstance(scroller.parentElement);
|
|
3424
|
-
}
|
|
3425
|
-
setOffset(scroller, offsetY) {
|
|
3426
|
-
this._ngZone.runOutsideAngular(() => {
|
|
3427
|
-
if (this.animatedScrolling) {
|
|
3428
|
-
this._scrollbars.getInstance(scroller.parentElement)
|
|
3429
|
-
.scroll({ y: offsetY }, this.animatedScrollingTime);
|
|
3430
|
-
}
|
|
3431
|
-
else {
|
|
3432
|
-
this._scrollbars.getInstance(scroller.parentElement)
|
|
3433
|
-
.scroll({ y: offsetY });
|
|
3434
|
-
}
|
|
3435
|
-
});
|
|
3436
|
-
}
|
|
3437
|
-
}
|
|
3438
|
-
TheSeamDatatableScrollbarHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableScrollbarHelperService, deps: [{ token: i0.NgZone }, { token: i1$2.OverlayScrollbarsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3439
|
-
TheSeamDatatableScrollbarHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableScrollbarHelperService });
|
|
3440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableScrollbarHelperService, decorators: [{
|
|
3441
|
-
type: Injectable
|
|
3442
|
-
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$2.OverlayScrollbarsService }]; } });
|
|
3443
|
-
|
|
3444
|
-
function withStoredColumnInfo(columns, preferenceColumns) {
|
|
3445
|
-
const _columns = [];
|
|
3446
|
-
for (const col of columns) {
|
|
3447
|
-
const storedCol = preferenceColumns.find(v => v.prop === col.prop);
|
|
3448
|
-
if (storedCol) {
|
|
3449
|
-
const _col = { ...col };
|
|
3450
|
-
if (hasProperty(storedCol, 'width')) {
|
|
3451
|
-
_col.width = Math.max(storedCol.width, 0);
|
|
3452
|
-
}
|
|
3453
|
-
_col.canAutoResize = storedCol.canAutoResize;
|
|
3454
|
-
_columns.push(_col);
|
|
3455
|
-
}
|
|
3456
|
-
else {
|
|
3457
|
-
_columns.push(col);
|
|
3458
|
-
}
|
|
3459
|
-
}
|
|
3460
|
-
return _columns;
|
|
3461
|
-
}
|
|
3462
|
-
|
|
3463
|
-
class TheSeamDatatableModule {
|
|
3464
|
-
}
|
|
3465
|
-
TheSeamDatatableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3466
|
-
TheSeamDatatableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableModule, declarations: [DatatableComponent,
|
|
3467
|
-
DatatableCellTplDirective,
|
|
3468
|
-
DatatableColumnComponent,
|
|
3469
|
-
DatatableActionMenuComponent,
|
|
3470
|
-
DatatableActionMenuToggleDirective,
|
|
3471
|
-
DatatableActionMenuItemComponent,
|
|
3472
|
-
DatatableMenuBarComponent,
|
|
3473
|
-
DatatableFilterDirective,
|
|
3474
|
-
DatatableRowActionItemDirective,
|
|
3475
|
-
DatatableExportButtonComponent,
|
|
3476
|
-
TheSeamDatatableRowDetailDirective,
|
|
3477
|
-
DatatableRowDetailTplDirective,
|
|
3478
|
-
TheSeamDatatableFooterDirective,
|
|
3479
|
-
DatatableFooterTplDirective,
|
|
3480
|
-
DatatableColumnPreferencesComponent,
|
|
3481
|
-
DatatableColumnPreferencesButtonComponent,
|
|
3482
|
-
DatatableActionMenuItemDirective,
|
|
3483
|
-
DatatableMenuBarRowComponent,
|
|
3484
|
-
DatatableMenuBarColumnLeftComponent,
|
|
3485
|
-
DatatableMenuBarColumnCenterComponent,
|
|
3486
|
-
DatatableMenuBarColumnRightComponent,
|
|
3487
|
-
DatatableMenuBarTextComponent,
|
|
3488
|
-
DatatableColumnFilterMenuComponent,
|
|
3489
|
-
DatatableColumnFilterSearchTextComponent,
|
|
3490
|
-
DatatableColumnFilterSearchNumericComponent,
|
|
3491
|
-
DatatableColumnFilterSearchDateComponent,
|
|
3492
|
-
DatatableColumnFilterTplDirective,
|
|
3493
|
-
TheSeamDatatableColumnFilterDirective], imports: [CommonModule,
|
|
3494
|
-
NgxDatatableModule,
|
|
3495
|
-
FontAwesomeModule,
|
|
3496
|
-
OverlayModule,
|
|
3497
|
-
A11yModule,
|
|
3498
|
-
TheSeamSharedModule,
|
|
3499
|
-
RouterModule,
|
|
3500
|
-
TheSeamMenuModule,
|
|
3501
|
-
TheSeamButtonsModule,
|
|
3502
|
-
TheSeamIconModule,
|
|
3503
|
-
ToastrModule,
|
|
3504
|
-
TheSeamLoadingModule,
|
|
3505
|
-
PortalModule,
|
|
3506
|
-
TheSeamConfirmDialogModule,
|
|
3507
|
-
TheSeamPopoverModule,
|
|
3508
|
-
TheSeamCheckboxComponent,
|
|
3509
|
-
TheSeamFormFieldModule,
|
|
3510
|
-
ReactiveFormsModule,
|
|
3511
|
-
TheSeamTableCellTypeModule,
|
|
3512
|
-
TheSeamDataFiltersModule,
|
|
3513
|
-
NgSelectModule,
|
|
3514
|
-
TheSeamToggleGroupModule], exports: [DatatableComponent,
|
|
3515
|
-
DatatableCellTplDirective,
|
|
3516
|
-
DatatableColumnComponent,
|
|
3517
|
-
DatatableActionMenuComponent,
|
|
3518
|
-
DatatableActionMenuItemComponent,
|
|
3519
|
-
DatatableMenuBarComponent,
|
|
3520
|
-
DatatableFilterDirective,
|
|
3521
|
-
DatatableRowActionItemDirective,
|
|
3522
|
-
DatatableExportButtonComponent,
|
|
3523
|
-
TheSeamDatatableRowDetailDirective,
|
|
3524
|
-
DatatableRowDetailTplDirective,
|
|
3525
|
-
TheSeamDatatableFooterDirective,
|
|
3526
|
-
DatatableFooterTplDirective,
|
|
3527
|
-
DatatableColumnPreferencesComponent,
|
|
3528
|
-
DatatableColumnPreferencesButtonComponent,
|
|
3529
|
-
DatatableActionMenuItemDirective,
|
|
3530
|
-
DatatableMenuBarRowComponent,
|
|
3531
|
-
DatatableMenuBarColumnLeftComponent,
|
|
3532
|
-
DatatableMenuBarColumnCenterComponent,
|
|
3533
|
-
DatatableMenuBarColumnRightComponent,
|
|
3534
|
-
DatatableMenuBarTextComponent,
|
|
3535
|
-
DatatableColumnFilterMenuComponent,
|
|
3536
|
-
DatatableColumnFilterSearchTextComponent,
|
|
3537
|
-
DatatableColumnFilterSearchNumericComponent,
|
|
3538
|
-
DatatableColumnFilterSearchDateComponent,
|
|
3539
|
-
DatatableColumnFilterTplDirective,
|
|
3540
|
-
TheSeamDatatableColumnFilterDirective] });
|
|
3541
|
-
TheSeamDatatableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableModule, providers: [
|
|
3542
|
-
{ provide: ScrollbarHelper, useClass: TheSeamDatatableScrollbarHelperService }
|
|
3543
|
-
], imports: [CommonModule,
|
|
3544
|
-
NgxDatatableModule,
|
|
3545
|
-
FontAwesomeModule,
|
|
3546
|
-
OverlayModule,
|
|
3547
|
-
A11yModule,
|
|
3548
|
-
TheSeamSharedModule,
|
|
3549
|
-
RouterModule,
|
|
3550
|
-
TheSeamMenuModule,
|
|
3551
|
-
TheSeamButtonsModule,
|
|
3552
|
-
TheSeamIconModule,
|
|
3553
|
-
ToastrModule,
|
|
3554
|
-
TheSeamLoadingModule,
|
|
3555
|
-
PortalModule,
|
|
3556
|
-
TheSeamConfirmDialogModule,
|
|
3557
|
-
TheSeamPopoverModule,
|
|
3558
|
-
TheSeamCheckboxComponent,
|
|
3559
|
-
TheSeamFormFieldModule,
|
|
3560
|
-
ReactiveFormsModule,
|
|
3561
|
-
TheSeamTableCellTypeModule,
|
|
3562
|
-
TheSeamDataFiltersModule,
|
|
3563
|
-
NgSelectModule,
|
|
3564
|
-
TheSeamToggleGroupModule] });
|
|
3565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TheSeamDatatableModule, decorators: [{
|
|
3566
|
-
type: NgModule,
|
|
3567
|
-
args: [{
|
|
3568
|
-
declarations: [
|
|
3569
|
-
DatatableComponent,
|
|
3570
|
-
DatatableCellTplDirective,
|
|
3571
|
-
DatatableColumnComponent,
|
|
3572
|
-
DatatableActionMenuComponent,
|
|
3573
|
-
DatatableActionMenuToggleDirective,
|
|
3574
|
-
DatatableActionMenuItemComponent,
|
|
3575
|
-
DatatableMenuBarComponent,
|
|
3576
|
-
DatatableFilterDirective,
|
|
3577
|
-
DatatableRowActionItemDirective,
|
|
3578
|
-
DatatableExportButtonComponent,
|
|
3579
|
-
TheSeamDatatableRowDetailDirective,
|
|
3580
|
-
DatatableRowDetailTplDirective,
|
|
3581
|
-
TheSeamDatatableFooterDirective,
|
|
3582
|
-
DatatableFooterTplDirective,
|
|
3583
|
-
DatatableColumnPreferencesComponent,
|
|
3584
|
-
DatatableColumnPreferencesButtonComponent,
|
|
3585
|
-
DatatableActionMenuItemDirective,
|
|
3586
|
-
DatatableMenuBarRowComponent,
|
|
3587
|
-
DatatableMenuBarColumnLeftComponent,
|
|
3588
|
-
DatatableMenuBarColumnCenterComponent,
|
|
3589
|
-
DatatableMenuBarColumnRightComponent,
|
|
3590
|
-
DatatableMenuBarTextComponent,
|
|
3591
|
-
DatatableColumnFilterMenuComponent,
|
|
3592
|
-
DatatableColumnFilterSearchTextComponent,
|
|
3593
|
-
DatatableColumnFilterSearchNumericComponent,
|
|
3594
|
-
DatatableColumnFilterSearchDateComponent,
|
|
3595
|
-
DatatableColumnFilterTplDirective,
|
|
3596
|
-
TheSeamDatatableColumnFilterDirective
|
|
3597
|
-
],
|
|
3598
|
-
imports: [
|
|
3599
|
-
CommonModule,
|
|
3600
|
-
NgxDatatableModule,
|
|
3601
|
-
FontAwesomeModule,
|
|
3602
|
-
OverlayModule,
|
|
3603
|
-
A11yModule,
|
|
3604
|
-
TheSeamSharedModule,
|
|
3605
|
-
RouterModule,
|
|
3606
|
-
TheSeamMenuModule,
|
|
3607
|
-
TheSeamButtonsModule,
|
|
3608
|
-
TheSeamIconModule,
|
|
3609
|
-
ToastrModule,
|
|
3610
|
-
TheSeamLoadingModule,
|
|
3611
|
-
PortalModule,
|
|
3612
|
-
TheSeamConfirmDialogModule,
|
|
3613
|
-
TheSeamPopoverModule,
|
|
3614
|
-
TheSeamCheckboxComponent,
|
|
3615
|
-
TheSeamFormFieldModule,
|
|
3616
|
-
ReactiveFormsModule,
|
|
3617
|
-
TheSeamTableCellTypeModule,
|
|
3618
|
-
TheSeamDataFiltersModule,
|
|
3619
|
-
NgSelectModule,
|
|
3620
|
-
TheSeamToggleGroupModule
|
|
3621
|
-
],
|
|
3622
|
-
exports: [
|
|
3623
|
-
DatatableComponent,
|
|
3624
|
-
DatatableCellTplDirective,
|
|
3625
|
-
DatatableColumnComponent,
|
|
3626
|
-
DatatableActionMenuComponent,
|
|
3627
|
-
DatatableActionMenuItemComponent,
|
|
3628
|
-
DatatableMenuBarComponent,
|
|
3629
|
-
DatatableFilterDirective,
|
|
3630
|
-
DatatableRowActionItemDirective,
|
|
3631
|
-
DatatableExportButtonComponent,
|
|
3632
|
-
TheSeamDatatableRowDetailDirective,
|
|
3633
|
-
DatatableRowDetailTplDirective,
|
|
3634
|
-
TheSeamDatatableFooterDirective,
|
|
3635
|
-
DatatableFooterTplDirective,
|
|
3636
|
-
DatatableColumnPreferencesComponent,
|
|
3637
|
-
DatatableColumnPreferencesButtonComponent,
|
|
3638
|
-
DatatableActionMenuItemDirective,
|
|
3639
|
-
DatatableMenuBarRowComponent,
|
|
3640
|
-
DatatableMenuBarColumnLeftComponent,
|
|
3641
|
-
DatatableMenuBarColumnCenterComponent,
|
|
3642
|
-
DatatableMenuBarColumnRightComponent,
|
|
3643
|
-
DatatableMenuBarTextComponent,
|
|
3644
|
-
DatatableColumnFilterMenuComponent,
|
|
3645
|
-
DatatableColumnFilterSearchTextComponent,
|
|
3646
|
-
DatatableColumnFilterSearchNumericComponent,
|
|
3647
|
-
DatatableColumnFilterSearchDateComponent,
|
|
3648
|
-
DatatableColumnFilterTplDirective,
|
|
3649
|
-
TheSeamDatatableColumnFilterDirective
|
|
3650
|
-
],
|
|
3651
|
-
providers: [
|
|
3652
|
-
{ provide: ScrollbarHelper, useClass: TheSeamDatatableScrollbarHelperService }
|
|
3653
|
-
]
|
|
3654
|
-
}]
|
|
3655
|
-
}] });
|
|
3656
|
-
|
|
3657
|
-
/**
|
|
3658
|
-
* Generated bundle index. Do not edit.
|
|
3659
|
-
*/
|
|
3660
|
-
|
|
3661
|
-
export { CURRENT_DATATABLE_PREFERENCES_VERSION, ColumnsDataFilter, ColumnsFiltersService, DatatableActionMenuComponent, DatatableActionMenuItemComponent, DatatableActionMenuItemDirective, DatatableActionMenuToggleDirective, DatatableCellTplDirective, DatatableColumnChangesService, DatatableColumnComponent, DatatableColumnFilterMenuComponent, DatatableColumnFilterSearchDateComponent, DatatableColumnFilterSearchNumericComponent, DatatableColumnFilterSearchTextComponent, DatatableColumnFilterTplDirective, DatatableColumnPreferencesButtonComponent, DatatableColumnPreferencesComponent, DatatableComponent, DatatableDataSource, DatatableExportButtonComponent, DatatableFilterDirective, DatatableFooterTplDirective, DatatableGqlDataSource, DatatableMenuBarColumnCenterComponent, DatatableMenuBarColumnLeftComponent, DatatableMenuBarColumnRightComponent, DatatableMenuBarComponent, DatatableMenuBarRowComponent, DatatableMenuBarTextComponent, DatatablePreferencesService, DatatableRowActionItemDirective, DatatableRowDetailTplDirective, EMPTY_DATATABLE_PREFERENCES, SearchDateColumnsDataFilter, SearchNumericColumnsDataFilter, SearchTextColumnsDataFilter, THESEAM_COLUMNS_DATA_FILTER, THESEAM_COLUMNS_DATA_FILTERS_DEFAULT, THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_DATE_SEARCH_NAME, THESEAM_COLUMNS_DATA_FILTER_DATE_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_DATE_SELECT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SEARCH_NAME, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_SELECT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_NAME, THESEAM_COLUMNS_DATA_FILTER_TEXT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_TEXT_SELECT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_TEXT_TEXT_SEARCH_TYPES, THESEAM_DATATABLE, THESEAM_DATATABLE_CONFIG, THESEAM_DATATABLE_PREFERENCES_ACCESSOR, THESEAM_MENUBAR_ITEM_DATA, TheSeamDatatableColumnFilterDirective, TheSeamDatatableFooterDirective, TheSeamDatatableModule, TheSeamDatatableRowDetailDirective, TheSeamDatatableScrollbarHelperService, _THESEAM_DATATABLE, _THESEAM_DATATABLE_ACCESSOR, _THESEAM_DATA_FILTER_CONTAINER, getFormattedDateForComparison, withStoredColumnInfo };
|
|
3662
|
-
//# sourceMappingURL=theseam-ui-common-datatable.mjs.map
|