@theseam/ui-common 0.2.9
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/asset-reader/asset-reader-helper.service.d.ts +7 -0
- package/asset-reader/asset-reader.module.d.ts +2 -0
- package/asset-reader/encrypted-asset-link.directive.d.ts +23 -0
- package/asset-reader/encrypted-asset-reader.d.ts +24 -0
- package/asset-reader/package.json +11 -0
- package/asset-reader/public-api.d.ts +4 -0
- package/asset-reader/theseam-ui-common-asset-reader.d.ts +4 -0
- package/asset-reader/theseam-ui-common-asset-reader.metadata.json +1 -0
- package/assets/.gitkeep +0 -0
- package/assets/vendor/intl-tel-input/css/intlTelInput.min.css +1 -0
- package/assets/vendor/intl-tel-input/img/flags.png +0 -0
- package/assets/vendor/intl-tel-input/img/flags@2x.png +0 -0
- package/assets/vendor/intl-tel-input/js/utils.js +501 -0
- package/breadcrumbs/breadcrumb.d.ts +11 -0
- package/breadcrumbs/breadcrumbs/breadcrumbs.component.d.ts +10 -0
- package/breadcrumbs/breadcrumbs-resolver.d.ts +5 -0
- package/breadcrumbs/breadcrumbs.module.d.ts +2 -0
- package/breadcrumbs/breadcrumbs.service.d.ts +20 -0
- package/breadcrumbs/package.json +11 -0
- package/breadcrumbs/public-api.d.ts +5 -0
- package/breadcrumbs/theseam-ui-common-breadcrumbs.d.ts +4 -0
- package/breadcrumbs/theseam-ui-common-breadcrumbs.metadata.json +1 -0
- package/bundles/theseam-ui-common-asset-reader.umd.js +533 -0
- package/bundles/theseam-ui-common-asset-reader.umd.js.map +1 -0
- package/bundles/theseam-ui-common-breadcrumbs.umd.js +587 -0
- package/bundles/theseam-ui-common-breadcrumbs.umd.js.map +1 -0
- package/bundles/theseam-ui-common-buttons.umd.js +719 -0
- package/bundles/theseam-ui-common-buttons.umd.js.map +1 -0
- package/bundles/theseam-ui-common-card.umd.js +480 -0
- package/bundles/theseam-ui-common-card.umd.js.map +1 -0
- package/bundles/theseam-ui-common-checkbox.umd.js +650 -0
- package/bundles/theseam-ui-common-checkbox.umd.js.map +1 -0
- package/bundles/theseam-ui-common-confirm-dialog.umd.js +491 -0
- package/bundles/theseam-ui-common-confirm-dialog.umd.js.map +1 -0
- package/bundles/theseam-ui-common-core.umd.js +604 -0
- package/bundles/theseam-ui-common-core.umd.js.map +1 -0
- package/bundles/theseam-ui-common-data-exporter.umd.js +96 -0
- package/bundles/theseam-ui-common-data-exporter.umd.js.map +1 -0
- package/bundles/theseam-ui-common-data-filters.umd.js +888 -0
- package/bundles/theseam-ui-common-data-filters.umd.js.map +1 -0
- package/bundles/theseam-ui-common-datatable-dynamic.umd.js +1499 -0
- package/bundles/theseam-ui-common-datatable-dynamic.umd.js.map +1 -0
- package/bundles/theseam-ui-common-datatable.umd.js +2247 -0
- package/bundles/theseam-ui-common-datatable.umd.js.map +1 -0
- package/bundles/theseam-ui-common-dynamic-component-loader.umd.js +180 -0
- package/bundles/theseam-ui-common-dynamic-component-loader.umd.js.map +1 -0
- package/bundles/theseam-ui-common-dynamic.umd.js +1253 -0
- package/bundles/theseam-ui-common-dynamic.umd.js.map +1 -0
- package/bundles/theseam-ui-common-footer-bar.umd.js +49 -0
- package/bundles/theseam-ui-common-footer-bar.umd.js.map +1 -0
- package/bundles/theseam-ui-common-form-field-error.umd.js +884 -0
- package/bundles/theseam-ui-common-form-field-error.umd.js.map +1 -0
- package/bundles/theseam-ui-common-form-field.umd.js +914 -0
- package/bundles/theseam-ui-common-form-field.umd.js.map +1 -0
- package/bundles/theseam-ui-common-framework.umd.js +3344 -0
- package/bundles/theseam-ui-common-framework.umd.js.map +1 -0
- package/bundles/theseam-ui-common-graphql.umd.js +357 -0
- package/bundles/theseam-ui-common-graphql.umd.js.map +1 -0
- package/bundles/theseam-ui-common-icon.umd.js +890 -0
- package/bundles/theseam-ui-common-icon.umd.js.map +1 -0
- package/bundles/theseam-ui-common-layout.umd.js +119 -0
- package/bundles/theseam-ui-common-layout.umd.js.map +1 -0
- package/bundles/theseam-ui-common-loading.umd.js +152 -0
- package/bundles/theseam-ui-common-loading.umd.js.map +1 -0
- package/bundles/theseam-ui-common-menu.umd.js +1152 -0
- package/bundles/theseam-ui-common-menu.umd.js.map +1 -0
- package/bundles/theseam-ui-common-modal.umd.js +1669 -0
- package/bundles/theseam-ui-common-modal.umd.js.map +1 -0
- package/bundles/theseam-ui-common-models.umd.js +63 -0
- package/bundles/theseam-ui-common-models.umd.js.map +1 -0
- package/bundles/theseam-ui-common-popover.umd.js +504 -0
- package/bundles/theseam-ui-common-popover.umd.js.map +1 -0
- package/bundles/theseam-ui-common-progress.umd.js +420 -0
- package/bundles/theseam-ui-common-progress.umd.js.map +1 -0
- package/bundles/theseam-ui-common-scrollbar.umd.js +240 -0
- package/bundles/theseam-ui-common-scrollbar.umd.js.map +1 -0
- package/bundles/theseam-ui-common-services.umd.js +178 -0
- package/bundles/theseam-ui-common-services.umd.js.map +1 -0
- package/bundles/theseam-ui-common-shared.umd.js +1115 -0
- package/bundles/theseam-ui-common-shared.umd.js.map +1 -0
- package/bundles/theseam-ui-common-storage.umd.js +178 -0
- package/bundles/theseam-ui-common-storage.umd.js.map +1 -0
- package/bundles/theseam-ui-common-story-helpers.umd.js +795 -0
- package/bundles/theseam-ui-common-story-helpers.umd.js.map +1 -0
- package/bundles/theseam-ui-common-tabbed.umd.js +628 -0
- package/bundles/theseam-ui-common-tabbed.umd.js.map +1 -0
- package/bundles/theseam-ui-common-table-cell-type.umd.js +222 -0
- package/bundles/theseam-ui-common-table-cell-type.umd.js.map +1 -0
- package/bundles/theseam-ui-common-table-cell-types.umd.js +1174 -0
- package/bundles/theseam-ui-common-table-cell-types.umd.js.map +1 -0
- package/bundles/theseam-ui-common-table.umd.js +475 -0
- package/bundles/theseam-ui-common-table.umd.js.map +1 -0
- package/bundles/theseam-ui-common-tel-input.umd.js +1055 -0
- package/bundles/theseam-ui-common-tel-input.umd.js.map +1 -0
- package/bundles/theseam-ui-common-test-helpers.umd.js +94 -0
- package/bundles/theseam-ui-common-test-helpers.umd.js.map +1 -0
- package/bundles/theseam-ui-common-tiled-select.umd.js +849 -0
- package/bundles/theseam-ui-common-tiled-select.umd.js.map +1 -0
- package/bundles/theseam-ui-common-toggle-edit.umd.js +893 -0
- package/bundles/theseam-ui-common-toggle-edit.umd.js.map +1 -0
- package/bundles/theseam-ui-common-toggle-group.umd.js +629 -0
- package/bundles/theseam-ui-common-toggle-group.umd.js.map +1 -0
- package/bundles/theseam-ui-common-unsaved-changes-dialog.umd.js +136 -0
- package/bundles/theseam-ui-common-unsaved-changes-dialog.umd.js.map +1 -0
- package/bundles/theseam-ui-common-utils.umd.js +1245 -0
- package/bundles/theseam-ui-common-utils.umd.js.map +1 -0
- package/bundles/theseam-ui-common-validators.umd.js +105 -0
- package/bundles/theseam-ui-common-validators.umd.js.map +1 -0
- package/bundles/theseam-ui-common-viewers.umd.js +699 -0
- package/bundles/theseam-ui-common-viewers.umd.js.map +1 -0
- package/bundles/theseam-ui-common-widget.umd.js +1710 -0
- package/bundles/theseam-ui-common-widget.umd.js.map +1 -0
- package/bundles/theseam-ui-common.umd.js +54 -0
- package/bundles/theseam-ui-common.umd.js.map +1 -0
- package/buttons/badge-button/badge-button.component.d.ts +18 -0
- package/buttons/button/button.component.d.ts +28 -0
- package/buttons/buttons.module.d.ts +2 -0
- package/buttons/package.json +11 -0
- package/buttons/progress-circle-button/progress-circle-button.component.d.ts +19 -0
- package/buttons/public-api.d.ts +5 -0
- package/buttons/theseam-ui-common-buttons.d.ts +4 -0
- package/buttons/theseam-ui-common-buttons.metadata.json +1 -0
- package/buttons/toggle-button/toggle-button.component.d.ts +26 -0
- package/card/card-action/card-action.component.d.ts +9 -0
- package/card/card-body/card-body.component.d.ts +12 -0
- package/card/card-footer/card-footer.component.d.ts +5 -0
- package/card/card-header/card-header.component.d.ts +7 -0
- package/card/card.component.d.ts +6 -0
- package/card/card.module.d.ts +2 -0
- package/card/package.json +11 -0
- package/card/public-api.d.ts +6 -0
- package/card/theseam-ui-common-card.d.ts +4 -0
- package/card/theseam-ui-common-card.metadata.json +1 -0
- package/checkbox/checkbox.component.d.ts +140 -0
- package/checkbox/checkbox.module.d.ts +2 -0
- package/checkbox/package.json +11 -0
- package/checkbox/public-api.d.ts +2 -0
- package/checkbox/theseam-ui-common-checkbox.d.ts +4 -0
- package/checkbox/theseam-ui-common-checkbox.metadata.json +1 -0
- package/confirm-dialog/confirm-click.directive.d.ts +24 -0
- package/confirm-dialog/confirm-dialog.component.d.ts +6 -0
- package/confirm-dialog/confirm-dialog.module.d.ts +2 -0
- package/confirm-dialog/confirm-dialog.service.d.ts +11 -0
- package/confirm-dialog/package.json +11 -0
- package/confirm-dialog/public-api.d.ts +4 -0
- package/confirm-dialog/theseam-ui-common-confirm-dialog.d.ts +4 -0
- package/confirm-dialog/theseam-ui-common-confirm-dialog.metadata.json +1 -0
- package/core/common-behaviors/active.d.ts +8 -0
- package/core/common-behaviors/constructor.d.ts +9 -0
- package/core/common-behaviors/disabled.d.ts +17 -0
- package/core/common-behaviors/element-ref.d.ts +4 -0
- package/core/common-behaviors/index.d.ts +9 -0
- package/core/common-behaviors/initialized.d.ts +30 -0
- package/core/common-behaviors/renderer2.d.ts +4 -0
- package/core/common-behaviors/size.d.ts +9 -0
- package/core/common-behaviors/tabindex.d.ts +18 -0
- package/core/common-behaviors/theme.d.ts +10 -0
- package/core/input-decorators/index.d.ts +2 -0
- package/core/input-decorators/input-boolean.decorator.d.ts +12 -0
- package/core/input-decorators/input-number.decorator.d.ts +12 -0
- package/core/package.json +11 -0
- package/core/public-api.d.ts +2 -0
- package/core/theseam-ui-common-core.d.ts +4 -0
- package/core/theseam-ui-common-core.metadata.json +1 -0
- package/data-exporter/data-exporter.d.ts +30 -0
- package/data-exporter/data-exporter.module.d.ts +2 -0
- package/data-exporter/exporters/csv-exporter.d.ts +8 -0
- package/data-exporter/exporters/xlsx-exporter.d.ts +8 -0
- package/data-exporter/package.json +11 -0
- package/data-exporter/public-api.d.ts +4 -0
- package/data-exporter/theseam-ui-common-data-exporter.d.ts +4 -0
- package/data-exporter/theseam-ui-common-data-exporter.metadata.json +1 -0
- package/data-filters/data-filter-container.d.ts +8 -0
- package/data-filters/data-filter-def.d.ts +10 -0
- package/data-filters/data-filter.d.ts +49 -0
- package/data-filters/data-filters.module.d.ts +2 -0
- package/data-filters/filters/data-filter-search/data-filter-search.component.d.ts +36 -0
- package/data-filters/filters/data-filter-search/search-filter-options.d.ts +2 -0
- package/data-filters/filters/data-filter-text/data-filter-text.component.d.ts +34 -0
- package/data-filters/filters/data-filter-text/text-filter-options.d.ts +25 -0
- package/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.d.ts +43 -0
- package/data-filters/package.json +11 -0
- package/data-filters/public-api.d.ts +9 -0
- package/data-filters/theseam-ui-common-data-filters.d.ts +4 -0
- package/data-filters/theseam-ui-common-data-filters.metadata.json +1 -0
- package/datatable/datatable/datatable.component.d.ts +195 -0
- package/datatable/datatable-action-menu/datatable-action-menu.component.d.ts +15 -0
- package/datatable/datatable-action-menu-item/datatable-action-menu-item.component.d.ts +28 -0
- package/datatable/datatable-column/datatable-column.component.d.ts +41 -0
- package/datatable/datatable-column-preferences/datatable-column-preferences.component.d.ts +14 -0
- package/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.d.ts +6 -0
- package/datatable/datatable-export-button/datatable-export-button.component.d.ts +24 -0
- package/datatable/datatable-menu-bar/datatable-menu-bar.component.d.ts +17 -0
- package/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.d.ts +5 -0
- package/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.d.ts +5 -0
- package/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.d.ts +5 -0
- package/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.d.ts +5 -0
- package/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.d.ts +10 -0
- package/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.d.ts +5 -0
- package/datatable/datatable-row-detail/datatable-row-detail.directive.d.ts +37 -0
- package/datatable/datatable.module.d.ts +2 -0
- package/datatable/directives/datatable-action-menu-item.directive.d.ts +35 -0
- package/datatable/directives/datatable-action-menu-toggle.directive.d.ts +27 -0
- package/datatable/directives/datatable-cell-tpl.directive.d.ts +5 -0
- package/datatable/directives/datatable-filter.directive.d.ts +6 -0
- package/datatable/directives/datatable-row-action-item.directive.d.ts +5 -0
- package/datatable/models/datatable-accessor.d.ts +19 -0
- package/datatable/models/datatable-data-source.d.ts +14 -0
- package/datatable/models/datatable-gql-data-source.d.ts +7 -0
- package/datatable/models/menubar-item-data.d.ts +3 -0
- package/datatable/models/page-info.d.ts +6 -0
- package/datatable/models/preferences-accessor.d.ts +15 -0
- package/datatable/models/preferences.d.ts +9 -0
- package/datatable/models/sort-event.d.ts +4 -0
- package/datatable/models/sort-item.d.ts +4 -0
- package/datatable/models/table-column.d.ts +14 -0
- package/datatable/package.json +11 -0
- package/datatable/public-api.d.ts +38 -0
- package/datatable/services/datatable-column-changes.service.d.ts +6 -0
- package/datatable/services/datatable-preferences.service.d.ts +19 -0
- package/datatable/services/datatable-scrollbar-helper.service.d.ts +19 -0
- package/datatable/theseam-ui-common-datatable.d.ts +5 -0
- package/datatable/theseam-ui-common-datatable.metadata.json +1 -0
- package/datatable/tokens/datatable-accessor.d.ts +3 -0
- package/datatable/tokens/datatable-preferences-accessor.d.ts +3 -0
- package/datatable/tokens/menubar-item-data.d.ts +3 -0
- package/datatable/utils/with-stored-column-info.d.ts +3 -0
- package/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.d.ts +32 -0
- package/datatable-dynamic/datatable-dynamic-def.d.ts +71 -0
- package/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.d.ts +15 -0
- package/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.d.ts +61 -0
- package/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.d.ts +16 -0
- package/datatable-dynamic/datatable-dynamic-menu-bar-token.d.ts +3 -0
- package/datatable-dynamic/datatable-dynamic.component.d.ts +89 -0
- package/datatable-dynamic/datatable-dynamic.module.d.ts +2 -0
- package/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.d.ts +73 -0
- package/datatable-dynamic/dynamic-datatable-def.service.d.ts +59 -0
- package/datatable-dynamic/dynamic-datatable-row-actions.service.d.ts +16 -0
- package/datatable-dynamic/models/dynamic-datatable-action-menu-record.d.ts +17 -0
- package/datatable-dynamic/models/dynamic-datatable-filter-menu-item.d.ts +7 -0
- package/datatable-dynamic/models/dynamic-datatable-menu-bar.d.ts +63 -0
- package/datatable-dynamic/models/dynamic-datatable-row-action-context.d.ts +5 -0
- package/datatable-dynamic/models/dynamic-datatable-row-action.d.ts +17 -0
- package/datatable-dynamic/models/index.d.ts +5 -0
- package/datatable-dynamic/package.json +11 -0
- package/datatable-dynamic/public-api.d.ts +13 -0
- package/datatable-dynamic/theseam-ui-common-datatable-dynamic.d.ts +4 -0
- package/datatable-dynamic/theseam-ui-common-datatable-dynamic.metadata.json +1 -0
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.d.ts +2 -0
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.d.ts +2 -0
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.d.ts +2 -0
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.d.ts +2 -0
- package/datatable-dynamic/utils/index.d.ts +4 -0
- package/dynamic/action/api/dynamic-action-api-def.d.ts +35 -0
- package/dynamic/action/api/dynamic-action-api-errors.d.ts +1 -0
- package/dynamic/action/api/dynamic-action-api.d.ts +3 -0
- package/dynamic/action/api/dynamic-action-api.service.d.ts +30 -0
- package/dynamic/action/dynamic-action-helper.service.d.ts +36 -0
- package/dynamic/action/index.d.ts +10 -0
- package/dynamic/action/link/dynamic-action-link-def.d.ts +58 -0
- package/dynamic/action/link/dynamic-action-link.d.ts +3 -0
- package/dynamic/action/link/dynamic-action-link.service.d.ts +14 -0
- package/dynamic/action/modal/dynamic-action-modal-def.d.ts +10 -0
- package/dynamic/action/modal/dynamic-action-modal.d.ts +3 -0
- package/dynamic/action/modal/dynamic-action-modal.service.d.ts +29 -0
- package/dynamic/dynamic-value-helper.service.d.ts +34 -0
- package/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.d.ts +16 -0
- package/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.d.ts +8 -0
- package/dynamic/evaluators/exporters-data-evaluator/index.d.ts +2 -0
- package/dynamic/evaluators/index.d.ts +2 -0
- package/dynamic/evaluators/jexl-evaluator/index.d.ts +2 -0
- package/dynamic/evaluators/jexl-evaluator/jexl-evaluator.d.ts +9 -0
- package/dynamic/evaluators/jexl-evaluator/jexl-value.d.ts +11 -0
- package/dynamic/models/dynamic-action-confirm-def.d.ts +10 -0
- package/dynamic/models/dynamic-action-context.d.ts +2 -0
- package/dynamic/models/dynamic-action-def.d.ts +9 -0
- package/dynamic/models/dynamic-action-ui-anchor-def.d.ts +39 -0
- package/dynamic/models/dynamic-action-ui-button-def.d.ts +13 -0
- package/dynamic/models/dynamic-action-ui-def.d.ts +37 -0
- package/dynamic/models/dynamic-action.d.ts +11 -0
- package/dynamic/models/dynamic-value-base-type.d.ts +4 -0
- package/dynamic/models/dynamic-value-evaluatable-type.d.ts +2 -0
- package/dynamic/models/dynamic-value-evaluator.d.ts +6 -0
- package/dynamic/models/dynamic-value-primitive.d.ts +1 -0
- package/dynamic/models/dynamic-value-type.d.ts +4 -0
- package/dynamic/models/dynamic-value.d.ts +3 -0
- package/dynamic/models/index.d.ts +13 -0
- package/dynamic/package.json +11 -0
- package/dynamic/public-api.d.ts +6 -0
- package/dynamic/theseam-ui-common-dynamic.d.ts +4 -0
- package/dynamic/theseam-ui-common-dynamic.metadata.json +1 -0
- package/dynamic/tokens/api-config.d.ts +30 -0
- package/dynamic/tokens/dynamic-action.d.ts +3 -0
- package/dynamic/tokens/dynamic-data.d.ts +2 -0
- package/dynamic/tokens/dynamic-value-evaluator.d.ts +3 -0
- package/dynamic/tokens/index.d.ts +4 -0
- package/dynamic/utils/index.d.ts +1 -0
- package/dynamic/utils/is-action-type.d.ts +2 -0
- package/dynamic-component-loader/dynamic-component-loader.module.d.ts +7 -0
- package/dynamic-component-loader/dynamic-component-loader.service.d.ts +15 -0
- package/dynamic-component-loader/dynamic-component-manifest.d.ts +9 -0
- package/dynamic-component-loader/dynamic-component-tokens.d.ts +4 -0
- package/dynamic-component-loader/package.json +11 -0
- package/dynamic-component-loader/public-api.d.ts +4 -0
- package/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.d.ts +4 -0
- package/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.metadata.json +1 -0
- package/esm2015/asset-reader/asset-reader-helper.service.js +68 -0
- package/esm2015/asset-reader/asset-reader.module.js +15 -0
- package/esm2015/asset-reader/encrypted-asset-link.directive.js +69 -0
- package/esm2015/asset-reader/encrypted-asset-reader.js +20 -0
- package/esm2015/asset-reader/public-api.js +5 -0
- package/esm2015/asset-reader/theseam-ui-common-asset-reader.js +5 -0
- package/esm2015/breadcrumbs/breadcrumb.js +2 -0
- package/esm2015/breadcrumbs/breadcrumbs/breadcrumbs.component.js +21 -0
- package/esm2015/breadcrumbs/breadcrumbs-resolver.js +2 -0
- package/esm2015/breadcrumbs/breadcrumbs.module.js +21 -0
- package/esm2015/breadcrumbs/breadcrumbs.service.js +158 -0
- package/esm2015/breadcrumbs/public-api.js +6 -0
- package/esm2015/breadcrumbs/theseam-ui-common-breadcrumbs.js +5 -0
- package/esm2015/buttons/badge-button/badge-button.component.js +79 -0
- package/esm2015/buttons/button/button.component.js +111 -0
- package/esm2015/buttons/buttons.module.js +34 -0
- package/esm2015/buttons/progress-circle-button/progress-circle-button.component.js +60 -0
- package/esm2015/buttons/public-api.js +6 -0
- package/esm2015/buttons/theseam-ui-common-buttons.js +5 -0
- package/esm2015/buttons/toggle-button/toggle-button.component.js +88 -0
- package/esm2015/card/card-action/card-action.component.js +27 -0
- package/esm2015/card/card-body/card-body.component.js +32 -0
- package/esm2015/card/card-footer/card-footer.component.js +15 -0
- package/esm2015/card/card-header/card-header.component.js +22 -0
- package/esm2015/card/card.component.js +20 -0
- package/esm2015/card/card.module.js +33 -0
- package/esm2015/card/public-api.js +7 -0
- package/esm2015/card/theseam-ui-common-card.js +5 -0
- package/esm2015/checkbox/checkbox.component.js +276 -0
- package/esm2015/checkbox/checkbox.module.js +21 -0
- package/esm2015/checkbox/public-api.js +3 -0
- package/esm2015/checkbox/theseam-ui-common-checkbox.js +5 -0
- package/esm2015/confirm-dialog/confirm-click.directive.js +62 -0
- package/esm2015/confirm-dialog/confirm-dialog.component.js +20 -0
- package/esm2015/confirm-dialog/confirm-dialog.module.js +35 -0
- package/esm2015/confirm-dialog/confirm-dialog.service.js +38 -0
- package/esm2015/confirm-dialog/public-api.js +5 -0
- package/esm2015/confirm-dialog/theseam-ui-common-confirm-dialog.js +5 -0
- package/esm2015/core/common-behaviors/active.js +13 -0
- package/esm2015/core/common-behaviors/constructor.js +9 -0
- package/esm2015/core/common-behaviors/disabled.js +20 -0
- package/esm2015/core/common-behaviors/element-ref.js +2 -0
- package/esm2015/core/common-behaviors/index.js +10 -0
- package/esm2015/core/common-behaviors/initialized.js +62 -0
- package/esm2015/core/common-behaviors/renderer2.js +2 -0
- package/esm2015/core/common-behaviors/size.js +24 -0
- package/esm2015/core/common-behaviors/tabindex.js +22 -0
- package/esm2015/core/common-behaviors/theme.js +24 -0
- package/esm2015/core/input-decorators/index.js +3 -0
- package/esm2015/core/input-decorators/input-boolean.decorator.js +27 -0
- package/esm2015/core/input-decorators/input-number.decorator.js +27 -0
- package/esm2015/core/public-api.js +3 -0
- package/esm2015/core/theseam-ui-common-core.js +5 -0
- package/esm2015/data-exporter/data-exporter.js +7 -0
- package/esm2015/data-exporter/data-exporter.module.js +17 -0
- package/esm2015/data-exporter/exporters/csv-exporter.js +32 -0
- package/esm2015/data-exporter/exporters/xlsx-exporter.js +30 -0
- package/esm2015/data-exporter/public-api.js +5 -0
- package/esm2015/data-exporter/theseam-ui-common-data-exporter.js +5 -0
- package/esm2015/data-filters/data-filter-container.js +3 -0
- package/esm2015/data-filters/data-filter-def.js +3 -0
- package/esm2015/data-filters/data-filter.js +22 -0
- package/esm2015/data-filters/data-filters.module.js +50 -0
- package/esm2015/data-filters/filters/data-filter-search/data-filter-search.component.js +110 -0
- package/esm2015/data-filters/filters/data-filter-search/search-filter-options.js +2 -0
- package/esm2015/data-filters/filters/data-filter-text/data-filter-text.component.js +138 -0
- package/esm2015/data-filters/filters/data-filter-text/text-filter-options.js +2 -0
- package/esm2015/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.js +151 -0
- package/esm2015/data-filters/public-api.js +10 -0
- package/esm2015/data-filters/theseam-ui-common-data-filters.js +5 -0
- package/esm2015/datatable/datatable/datatable.component.js +584 -0
- package/esm2015/datatable/datatable-action-menu/datatable-action-menu.component.js +101 -0
- package/esm2015/datatable/datatable-action-menu-item/datatable-action-menu-item.component.js +30 -0
- package/esm2015/datatable/datatable-column/datatable-column.component.js +83 -0
- package/esm2015/datatable/datatable-column-preferences/datatable-column-preferences.component.js +46 -0
- package/esm2015/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.js +18 -0
- package/esm2015/datatable/datatable-export-button/datatable-export-button.component.js +98 -0
- package/esm2015/datatable/datatable-menu-bar/datatable-menu-bar.component.js +55 -0
- package/esm2015/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.js +16 -0
- package/esm2015/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.js +16 -0
- package/esm2015/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.js +16 -0
- package/esm2015/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.js +16 -0
- package/esm2015/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.js +32 -0
- package/esm2015/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.js +15 -0
- package/esm2015/datatable/datatable-row-detail/datatable-row-detail.directive.js +69 -0
- package/esm2015/datatable/datatable.module.js +120 -0
- package/esm2015/datatable/directives/datatable-action-menu-item.directive.js +46 -0
- package/esm2015/datatable/directives/datatable-action-menu-toggle.directive.js +128 -0
- package/esm2015/datatable/directives/datatable-cell-tpl.directive.js +15 -0
- package/esm2015/datatable/directives/datatable-filter.directive.js +21 -0
- package/esm2015/datatable/directives/datatable-row-action-item.directive.js +15 -0
- package/esm2015/datatable/models/datatable-accessor.js +2 -0
- package/esm2015/datatable/models/datatable-data-source.js +42 -0
- package/esm2015/datatable/models/datatable-gql-data-source.js +15 -0
- package/esm2015/datatable/models/menubar-item-data.js +2 -0
- package/esm2015/datatable/models/page-info.js +2 -0
- package/esm2015/datatable/models/preferences-accessor.js +2 -0
- package/esm2015/datatable/models/preferences.js +2 -0
- package/esm2015/datatable/models/sort-event.js +2 -0
- package/esm2015/datatable/models/sort-item.js +2 -0
- package/esm2015/datatable/models/table-column.js +2 -0
- package/esm2015/datatable/public-api.js +39 -0
- package/esm2015/datatable/services/datatable-column-changes.service.js +17 -0
- package/esm2015/datatable/services/datatable-preferences.service.js +113 -0
- package/esm2015/datatable/services/datatable-scrollbar-helper.service.js +51 -0
- package/esm2015/datatable/theseam-ui-common-datatable.js +6 -0
- package/esm2015/datatable/tokens/datatable-accessor.js +3 -0
- package/esm2015/datatable/tokens/datatable-preferences-accessor.js +3 -0
- package/esm2015/datatable/tokens/menubar-item-data.js +3 -0
- package/esm2015/datatable/utils/with-stored-column-info.js +20 -0
- package/esm2015/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.js +119 -0
- package/esm2015/datatable-dynamic/datatable-dynamic-def.js +2 -0
- package/esm2015/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.js +53 -0
- package/esm2015/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.js +160 -0
- package/esm2015/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.js +2 -0
- package/esm2015/datatable-dynamic/datatable-dynamic-menu-bar-token.js +3 -0
- package/esm2015/datatable-dynamic/datatable-dynamic.component.js +75 -0
- package/esm2015/datatable-dynamic/datatable-dynamic.module.js +49 -0
- package/esm2015/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.js +408 -0
- package/esm2015/datatable-dynamic/dynamic-datatable-def.service.js +84 -0
- package/esm2015/datatable-dynamic/dynamic-datatable-row-actions.service.js +47 -0
- package/esm2015/datatable-dynamic/models/dynamic-datatable-action-menu-record.js +2 -0
- package/esm2015/datatable-dynamic/models/dynamic-datatable-filter-menu-item.js +2 -0
- package/esm2015/datatable-dynamic/models/dynamic-datatable-menu-bar.js +2 -0
- package/esm2015/datatable-dynamic/models/dynamic-datatable-row-action-context.js +2 -0
- package/esm2015/datatable-dynamic/models/dynamic-datatable-row-action.js +2 -0
- package/esm2015/datatable-dynamic/models/index.js +6 -0
- package/esm2015/datatable-dynamic/public-api.js +14 -0
- package/esm2015/datatable-dynamic/theseam-ui-common-datatable-dynamic.js +5 -0
- package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.js +8 -0
- package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.js +13 -0
- package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.js +6 -0
- package/esm2015/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.js +6 -0
- package/esm2015/datatable-dynamic/utils/index.js +5 -0
- package/esm2015/dynamic/action/api/dynamic-action-api-def.js +2 -0
- package/esm2015/dynamic/action/api/dynamic-action-api-errors.js +4 -0
- package/esm2015/dynamic/action/api/dynamic-action-api.js +2 -0
- package/esm2015/dynamic/action/api/dynamic-action-api.service.js +215 -0
- package/esm2015/dynamic/action/dynamic-action-helper.service.js +163 -0
- package/esm2015/dynamic/action/index.js +11 -0
- package/esm2015/dynamic/action/link/dynamic-action-link-def.js +2 -0
- package/esm2015/dynamic/action/link/dynamic-action-link.js +2 -0
- package/esm2015/dynamic/action/link/dynamic-action-link.service.js +50 -0
- package/esm2015/dynamic/action/modal/dynamic-action-modal-def.js +2 -0
- package/esm2015/dynamic/action/modal/dynamic-action-modal.js +2 -0
- package/esm2015/dynamic/action/modal/dynamic-action-modal.service.js +92 -0
- package/esm2015/dynamic/dynamic-value-helper.service.js +101 -0
- package/esm2015/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.js +33 -0
- package/esm2015/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.js +2 -0
- package/esm2015/dynamic/evaluators/exporters-data-evaluator/index.js +3 -0
- package/esm2015/dynamic/evaluators/index.js +3 -0
- package/esm2015/dynamic/evaluators/jexl-evaluator/index.js +3 -0
- package/esm2015/dynamic/evaluators/jexl-evaluator/jexl-evaluator.js +29 -0
- package/esm2015/dynamic/evaluators/jexl-evaluator/jexl-value.js +2 -0
- package/esm2015/dynamic/models/dynamic-action-confirm-def.js +2 -0
- package/esm2015/dynamic/models/dynamic-action-context.js +2 -0
- package/esm2015/dynamic/models/dynamic-action-def.js +3 -0
- package/esm2015/dynamic/models/dynamic-action-ui-anchor-def.js +2 -0
- package/esm2015/dynamic/models/dynamic-action-ui-button-def.js +2 -0
- package/esm2015/dynamic/models/dynamic-action-ui-def.js +2 -0
- package/esm2015/dynamic/models/dynamic-action.js +2 -0
- package/esm2015/dynamic/models/dynamic-value-base-type.js +2 -0
- package/esm2015/dynamic/models/dynamic-value-evaluatable-type.js +2 -0
- package/esm2015/dynamic/models/dynamic-value-evaluator.js +2 -0
- package/esm2015/dynamic/models/dynamic-value-primitive.js +2 -0
- package/esm2015/dynamic/models/dynamic-value-type.js +2 -0
- package/esm2015/dynamic/models/dynamic-value.js +2 -0
- package/esm2015/dynamic/models/index.js +14 -0
- package/esm2015/dynamic/public-api.js +7 -0
- package/esm2015/dynamic/theseam-ui-common-dynamic.js +5 -0
- package/esm2015/dynamic/tokens/api-config.js +29 -0
- package/esm2015/dynamic/tokens/dynamic-action.js +3 -0
- package/esm2015/dynamic/tokens/dynamic-data.js +3 -0
- package/esm2015/dynamic/tokens/dynamic-value-evaluator.js +3 -0
- package/esm2015/dynamic/tokens/index.js +5 -0
- package/esm2015/dynamic/utils/index.js +2 -0
- package/esm2015/dynamic/utils/is-action-type.js +4 -0
- package/esm2015/dynamic-component-loader/dynamic-component-loader.module.js +47 -0
- package/esm2015/dynamic-component-loader/dynamic-component-loader.service.js +91 -0
- package/esm2015/dynamic-component-loader/dynamic-component-manifest.js +2 -0
- package/esm2015/dynamic-component-loader/dynamic-component-tokens.js +5 -0
- package/esm2015/dynamic-component-loader/public-api.js +5 -0
- package/esm2015/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.js +5 -0
- package/esm2015/footer-bar/footer-bar/footer-bar.component.js +16 -0
- package/esm2015/footer-bar/footer-bar.module.js +15 -0
- package/esm2015/footer-bar/public-api.js +3 -0
- package/esm2015/footer-bar/theseam-ui-common-footer-bar.js +5 -0
- package/esm2015/form-field/form-field-error.directive.js +28 -0
- package/esm2015/form-field/form-field-help-text.directive.js +15 -0
- package/esm2015/form-field/form-field-label-tpl.directive.js +15 -0
- package/esm2015/form-field/form-field-required-indicator.component.js +38 -0
- package/esm2015/form-field/form-field.component.js +193 -0
- package/esm2015/form-field/form-field.module.js +40 -0
- package/esm2015/form-field/input.directive.js +195 -0
- package/esm2015/form-field/public-api.js +8 -0
- package/esm2015/form-field/theseam-ui-common-form-field.js +5 -0
- package/esm2015/form-field-error/form-field-error/form-field-error.component.js +27 -0
- package/esm2015/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.js +25 -0
- package/esm2015/form-field-error/form-field-error-list/form-field-error-list-item.directive.js +18 -0
- package/esm2015/form-field-error/form-field-error-list/form-field-error-list.component.js +370 -0
- package/esm2015/form-field-error/form-field-error.module.js +28 -0
- package/esm2015/form-field-error/public-api.js +6 -0
- package/esm2015/form-field-error/theseam-ui-common-form-field-error.js +5 -0
- package/esm2015/framework/base-layout/base-layout-action.js +2 -0
- package/esm2015/framework/base-layout/base-layout-nav.js +2 -0
- package/esm2015/framework/base-layout/base-layout-ref.js +2 -0
- package/esm2015/framework/base-layout/base-layout-tokens.js +3 -0
- package/esm2015/framework/base-layout/base-layout.component.js +117 -0
- package/esm2015/framework/base-layout/base-layout.module.js +45 -0
- package/esm2015/framework/base-layout/directives/base-layout-content-footer.directive.js +15 -0
- package/esm2015/framework/base-layout/directives/base-layout-content-header.directive.js +15 -0
- package/esm2015/framework/base-layout/directives/base-layout-content.directive.js +15 -0
- package/esm2015/framework/base-layout/directives/base-layout-nav-toggle.directive.js +37 -0
- package/esm2015/framework/base-layout/directives/base-layout-side-bar.directive.js +15 -0
- package/esm2015/framework/base-layout/directives/base-layout-top-bar.directive.js +15 -0
- package/esm2015/framework/base-layout/index.js +13 -0
- package/esm2015/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.js +19 -0
- package/esm2015/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.js +25 -0
- package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.js +121 -0
- package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-item.js +2 -0
- package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.js +3 -0
- package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.js +2 -0
- package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.js +173 -0
- package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets.component.js +176 -0
- package/esm2015/framework/dashboard/dashboard-widgets/dashboard-widgets.service.js +165 -0
- package/esm2015/framework/dashboard/dashboard.component.js +25 -0
- package/esm2015/framework/dashboard/dashboard.module.js +39 -0
- package/esm2015/framework/dashboard/index.js +12 -0
- package/esm2015/framework/dynamic-router/dynamic-route-def.js +2 -0
- package/esm2015/framework/dynamic-router/dynamic-router.module.js +21 -0
- package/esm2015/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.js +256 -0
- package/esm2015/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.js +114 -0
- package/esm2015/framework/dynamic-router/index.js +6 -0
- package/esm2015/framework/dynamic-router/resolvers/hierarchy-level.resolver.js +26 -0
- package/esm2015/framework/public-api.js +7 -0
- package/esm2015/framework/schema-form/index.js +4 -0
- package/esm2015/framework/schema-form/schema-form-framework.component.js +16 -0
- package/esm2015/framework/schema-form/schema-form-framework.js +27 -0
- package/esm2015/framework/schema-form/schema-form.module.js +35 -0
- package/esm2015/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.js +41 -0
- package/esm2015/framework/schema-form-controls/schema-form-controls.module.js +50 -0
- package/esm2015/framework/schema-form-controls/schema-form-input/schema-form-input.component.js +34 -0
- package/esm2015/framework/schema-form-controls/schema-form-number/schema-form-number.component.js +40 -0
- package/esm2015/framework/schema-form-controls/schema-form-select/schema-form-select.component.js +36 -0
- package/esm2015/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.js +46 -0
- package/esm2015/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.js +142 -0
- package/esm2015/framework/side-nav/index.js +7 -0
- package/esm2015/framework/side-nav/side-nav-item/side-nav-item.component.js +151 -0
- package/esm2015/framework/side-nav/side-nav-toggle/side-nav-toggle.component.js +36 -0
- package/esm2015/framework/side-nav/side-nav-utils.js +81 -0
- package/esm2015/framework/side-nav/side-nav.component.js +195 -0
- package/esm2015/framework/side-nav/side-nav.models.js +2 -0
- package/esm2015/framework/side-nav/side-nav.module.js +37 -0
- package/esm2015/framework/side-nav/side-nav.service.js +174 -0
- package/esm2015/framework/theseam-ui-common-framework.js +13 -0
- package/esm2015/framework/top-bar/index.js +8 -0
- package/esm2015/framework/top-bar/top-bar-item.directive.js +15 -0
- package/esm2015/framework/top-bar/top-bar-menu-btn-detail.directive.js +15 -0
- package/esm2015/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.js +53 -0
- package/esm2015/framework/top-bar/top-bar-menu.directive.js +16 -0
- package/esm2015/framework/top-bar/top-bar-title/top-bar-title.component.js +19 -0
- package/esm2015/framework/top-bar/top-bar.component.js +82 -0
- package/esm2015/framework/top-bar/top-bar.module.js +46 -0
- package/esm2015/graphql/models/direction.js +8 -0
- package/esm2015/graphql/models/hint-definition.js +2 -0
- package/esm2015/graphql/models/hint-transform-operation.js +2 -0
- package/esm2015/graphql/models/hint-transformer.js +2 -0
- package/esm2015/graphql/models/hints-kind.js +9 -0
- package/esm2015/graphql/models/hints-token.js +2 -0
- package/esm2015/graphql/models/index.js +9 -0
- package/esm2015/graphql/models/query-processing-config.js +2 -0
- package/esm2015/graphql/models/variable.js +7 -0
- package/esm2015/graphql/public-api.js +2 -0
- package/esm2015/graphql/theseam-ui-common-graphql.js +5 -0
- package/esm2015/graphql/utils/contains-variable.js +14 -0
- package/esm2015/graphql/utils/gql-var.js +4 -0
- package/esm2015/graphql/utils/hints-tokens-containing-hint.js +4 -0
- package/esm2015/graphql/utils/index.js +11 -0
- package/esm2015/graphql/utils/inline-variables.js +50 -0
- package/esm2015/graphql/utils/parse-comments.js +24 -0
- package/esm2015/graphql/utils/parse-hints.js +116 -0
- package/esm2015/graphql/utils/remove-variable-definition.js +14 -0
- package/esm2015/graphql/utils/remove-variable-definitions-not-defined.js +19 -0
- package/esm2015/graphql/utils/remove-variable.js +22 -0
- package/esm2015/graphql/utils/to-gql.js +40 -0
- package/esm2015/icon/icon/icon.component.js +125 -0
- package/esm2015/icon/icon-btn/icon-btn.component.js +136 -0
- package/esm2015/icon/icon-notification/icon-notification.component.js +120 -0
- package/esm2015/icon/icon.js +2 -0
- package/esm2015/icon/icon.module.js +27 -0
- package/esm2015/icon/public-api.js +7 -0
- package/esm2015/icon/theseam-ui-common-icon.js +5 -0
- package/esm2015/icon/utils/file-extension-icon.js +33 -0
- package/esm2015/icon/utils/get-known-icon.js +82 -0
- package/esm2015/icon/utils/index.js +3 -0
- package/esm2015/layout/breakpoint-aliases.js +11 -0
- package/esm2015/layout/layout.module.js +18 -0
- package/esm2015/layout/layout.service.js +24 -0
- package/esm2015/layout/observe-media-query.js +41 -0
- package/esm2015/layout/public-api.js +5 -0
- package/esm2015/layout/theseam-ui-common-layout.js +5 -0
- package/esm2015/loading/loading/loading.component.js +28 -0
- package/esm2015/loading/loading-overlay.service.js +59 -0
- package/esm2015/loading/loading-themes.js +18 -0
- package/esm2015/loading/loading.models.js +2 -0
- package/esm2015/loading/loading.module.js +29 -0
- package/esm2015/loading/public-api.js +6 -0
- package/esm2015/loading/theseam-ui-common-loading.js +5 -0
- package/esm2015/menu/menu-animations.js +58 -0
- package/esm2015/menu/menu-divider.component.js +15 -0
- package/esm2015/menu/menu-footer/menu-footer.component.js +32 -0
- package/esm2015/menu/menu-footer-action/menu-footer-action.component.js +48 -0
- package/esm2015/menu/menu-header/menu-header.component.js +32 -0
- package/esm2015/menu/menu-item.component.js +127 -0
- package/esm2015/menu/menu-panel-token.js +6 -0
- package/esm2015/menu/menu-panel.js +2 -0
- package/esm2015/menu/menu-toggle.directive.js +248 -0
- package/esm2015/menu/menu.component.js +174 -0
- package/esm2015/menu/menu.module.js +43 -0
- package/esm2015/menu/public-api.js +12 -0
- package/esm2015/menu/theseam-ui-common-menu.js +5 -0
- package/esm2015/modal/directives/modal-close.directive.js +63 -0
- package/esm2015/modal/directives/modal-footer-tpl.directive.js +15 -0
- package/esm2015/modal/directives/modal-header-icon-tpl.directive.js +15 -0
- package/esm2015/modal/directives/modal-header-title-tpl.directive.js +15 -0
- package/esm2015/modal/directives/modal-title.directive.js +19 -0
- package/esm2015/modal/directives/modal.directive.js +25 -0
- package/esm2015/modal/modal/modal.component.js +149 -0
- package/esm2015/modal/modal-body/modal-body.component.js +22 -0
- package/esm2015/modal/modal-config.js +47 -0
- package/esm2015/modal/modal-container/modal-container.component.js +217 -0
- package/esm2015/modal/modal-footer/modal-footer.component.js +20 -0
- package/esm2015/modal/modal-header/modal-header.component.js +26 -0
- package/esm2015/modal/modal-injectors.js +23 -0
- package/esm2015/modal/modal-ref.js +126 -0
- package/esm2015/modal/modal-utils.js +14 -0
- package/esm2015/modal/modal.models.js +3 -0
- package/esm2015/modal/modal.module.js +83 -0
- package/esm2015/modal/modal.service.js +343 -0
- package/esm2015/modal/public-api.js +20 -0
- package/esm2015/modal/route-modal/route-modal.component.js +68 -0
- package/esm2015/modal/theseam-ui-common-modal.js +5 -0
- package/esm2015/models/component-type.js +4 -0
- package/esm2015/models/http-status-codes.js +20 -0
- package/esm2015/models/public-api.js +8 -0
- package/esm2015/models/size-prefixes.js +2 -0
- package/esm2015/models/size-types.js +2 -0
- package/esm2015/models/theme-names.js +26 -0
- package/esm2015/models/theme-prefixes.js +2 -0
- package/esm2015/models/theme-types.js +2 -0
- package/esm2015/models/theseam-ui-common-models.js +5 -0
- package/esm2015/popover/popover/popover.component.js +149 -0
- package/esm2015/popover/popover-animations.js +46 -0
- package/esm2015/popover/popover.directive.js +257 -0
- package/esm2015/popover/popover.module.js +30 -0
- package/esm2015/popover/public-api.js +5 -0
- package/esm2015/popover/theseam-ui-common-popover.js +5 -0
- package/esm2015/progress/progress-circle/progress-circle.component.js +63 -0
- package/esm2015/progress/progress.module.js +19 -0
- package/esm2015/progress/public-api.js +3 -0
- package/esm2015/progress/theseam-ui-common-progress.js +5 -0
- package/esm2015/public_api.js +43 -0
- package/esm2015/scrollbar/overlay-scrollbar.directive.js +61 -0
- package/esm2015/scrollbar/overlay-scrollbars-config-model.js +2 -0
- package/esm2015/scrollbar/overlay-scrollbars-config.js +13 -0
- package/esm2015/scrollbar/overlay-scrollbars.service.js +87 -0
- package/esm2015/scrollbar/public-api.js +6 -0
- package/esm2015/scrollbar/scrollbar.module.js +25 -0
- package/esm2015/scrollbar/theseam-ui-common-scrollbar.js +5 -0
- package/esm2015/services/asset-loader.service.js +33 -0
- package/esm2015/services/font-loader.service.js +81 -0
- package/esm2015/services/public-api.js +4 -0
- package/esm2015/services/router-helpers.service.js +26 -0
- package/esm2015/services/theseam-ui-common-services.js +5 -0
- package/esm2015/shared/components/index.js +2 -0
- package/esm2015/shared/components/password-input-reveal/password-input-reveal.component.js +71 -0
- package/esm2015/shared/directives/auto-focus.directive.js +53 -0
- package/esm2015/shared/directives/click-outside.directive.js +49 -0
- package/esm2015/shared/directives/disable-control.directive.js +27 -0
- package/esm2015/shared/directives/elem-resized.directive.js +29 -0
- package/esm2015/shared/directives/hover-class-toggle.directive.js +80 -0
- package/esm2015/shared/directives/hover-class.directive.js +74 -0
- package/esm2015/shared/directives/index.js +9 -0
- package/esm2015/shared/directives/ng-select-extra.directive.js +177 -0
- package/esm2015/shared/directives/ngx-quill-extra.directive.js +60 -0
- package/esm2015/shared/pipes/index.js +3 -0
- package/esm2015/shared/pipes/mask-chars.pipe.js +21 -0
- package/esm2015/shared/pipes/truncate.pipe.js +19 -0
- package/esm2015/shared/public-api.js +5 -0
- package/esm2015/shared/shared.module.js +58 -0
- package/esm2015/shared/theseam-ui-common-shared.js +5 -0
- package/esm2015/storage/local-storage.service.js +77 -0
- package/esm2015/storage/localstorage-memory.js +64 -0
- package/esm2015/storage/public-api.js +2 -0
- package/esm2015/storage/theseam-ui-common-storage.js +5 -0
- package/esm2015/story-helpers/arg-type-helpers.js +34 -0
- package/esm2015/story-helpers/args-to-tpl.js +76 -0
- package/esm2015/story-helpers/initial-route-factory.js +4 -0
- package/esm2015/story-helpers/initial-route.service.js +27 -0
- package/esm2015/story-helpers/on-story-bootstrapped-exec.js +64 -0
- package/esm2015/story-helpers/on-story-bootstrapped-trigger.js +38 -0
- package/esm2015/story-helpers/public-api.js +15 -0
- package/esm2015/story-helpers/route-button.js +12 -0
- package/esm2015/story-helpers/routes-arg-type.js +18 -0
- package/esm2015/story-helpers/story-empty-with-route.component.js +7 -0
- package/esm2015/story-helpers/story-empty.component.js +7 -0
- package/esm2015/story-helpers/story-helper-components.module.js +29 -0
- package/esm2015/story-helpers/story-initial-route.js +24 -0
- package/esm2015/story-helpers/story-modal-container.component.js +77 -0
- package/esm2015/story-helpers/story-toastr.service.js +33 -0
- package/esm2015/story-helpers/theseam-ui-common-story-helpers.js +5 -0
- package/esm2015/tabbed/directives/tabbed-tab-content.directive.js +14 -0
- package/esm2015/tabbed/directives/tabbed-tab.directive.js +36 -0
- package/esm2015/tabbed/public-api.js +8 -0
- package/esm2015/tabbed/tabbed-content/tabbed-content.component.js +17 -0
- package/esm2015/tabbed/tabbed-item/tabbed-item.component.js +30 -0
- package/esm2015/tabbed/tabbed.component.js +111 -0
- package/esm2015/tabbed/tabbed.module.js +36 -0
- package/esm2015/tabbed/tabbed.service.js +28 -0
- package/esm2015/tabbed/theseam-ui-common-tabbed.js +5 -0
- package/esm2015/table/public-api.js +3 -0
- package/esm2015/table/table/table.component.js +90 -0
- package/esm2015/table/table.module.js +23 -0
- package/esm2015/table/theseam-ui-common-table.js +5 -0
- package/esm2015/table-cell-type/public-api.js +12 -0
- package/esm2015/table-cell-type/services/table-cell-types-helpers.service.js +70 -0
- package/esm2015/table-cell-type/table-cell-type-action.js +2 -0
- package/esm2015/table-cell-type/table-cell-type-column.js +2 -0
- package/esm2015/table-cell-type/table-cell-type-config.js +2 -0
- package/esm2015/table-cell-type/table-cell-type-export-props.js +2 -0
- package/esm2015/table-cell-type/table-cell-type-manifest-provider.js +2 -0
- package/esm2015/table-cell-type/table-cell-type-models.js +2 -0
- package/esm2015/table-cell-type/table-cell-type-name.js +2 -0
- package/esm2015/table-cell-type/table-cell-type-selector.component.js +94 -0
- package/esm2015/table-cell-type/table-cell-type-tokens.js +4 -0
- package/esm2015/table-cell-type/table-cell-type.module.js +23 -0
- package/esm2015/table-cell-type/theseam-ui-common-table-cell-type.js +5 -0
- package/esm2015/table-cell-types/public-api.js +16 -0
- package/esm2015/table-cell-types/table-cell-type-date/table-cell-type-date-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-date/table-cell-type-date.component.js +55 -0
- package/esm2015/table-cell-types/table-cell-type-date/table-cell-type-date.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.js +166 -0
- package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-manifests.js +91 -0
- package/esm2015/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.js +66 -0
- package/esm2015/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.js +160 -0
- package/esm2015/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.js +78 -0
- package/esm2015/table-cell-types/table-cell-type-string/table-cell-type-string-config.js +2 -0
- package/esm2015/table-cell-types/table-cell-type-string/table-cell-type-string.component.js +150 -0
- package/esm2015/table-cell-types/table-cell-types.module.js +71 -0
- package/esm2015/table-cell-types/theseam-ui-common-table-cell-types.js +5 -0
- package/esm2015/tel-input/intl-tel-input.js +55 -0
- package/esm2015/tel-input/models/index.js +3 -0
- package/esm2015/tel-input/models/tel-input-country-data.js +2 -0
- package/esm2015/tel-input/models/tel-input-number-format-name.js +8 -0
- package/esm2015/tel-input/phone-number.pipe.js +51 -0
- package/esm2015/tel-input/public-api.js +10 -0
- package/esm2015/tel-input/tel-input/tel-input.component.js +167 -0
- package/esm2015/tel-input/tel-input-constants.js +18 -0
- package/esm2015/tel-input/tel-input-validator.js +27 -0
- package/esm2015/tel-input/tel-input.directive.js +164 -0
- package/esm2015/tel-input/tel-input.module.js +29 -0
- package/esm2015/tel-input/theseam-ui-common-tel-input.js +5 -0
- package/esm2015/tel-input/utils/add-country-code.js +23 -0
- package/esm2015/tel-input/utils/coerce-phone-number-format.js +22 -0
- package/esm2015/tel-input/utils/get-country-code.js +9 -0
- package/esm2015/tel-input/utils/get-dial-code.js +45 -0
- package/esm2015/tel-input/utils/get-global-intl-tel-input-globals.js +4 -0
- package/esm2015/tel-input/utils/get-global-intl-tel-input-utils.js +4 -0
- package/esm2015/tel-input/utils/get-intl-tel-input-utils.js +17 -0
- package/esm2015/tel-input/utils/get-validation-error-message.js +12 -0
- package/esm2015/tel-input/utils/index.js +10 -0
- package/esm2015/tel-input/utils/process-country-codes.js +49 -0
- package/esm2015/test-helpers/public-api.js +2 -0
- package/esm2015/test-helpers/theseam-ui-common-test-helpers.js +5 -0
- package/esm2015/test-helpers/tick-helper.js +74 -0
- package/esm2015/theseam-ui-common.js +5 -0
- package/esm2015/tiled-select/components/tiled-select/tiled-select.component.js +197 -0
- package/esm2015/tiled-select/components/tiled-select-tile/tiled-select-tile.component.js +125 -0
- package/esm2015/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.js +54 -0
- package/esm2015/tiled-select/directives/tiled-select-tile-icon-tpl.directive.js +16 -0
- package/esm2015/tiled-select/directives/tiled-select-tile-label-tpl.directive.js +15 -0
- package/esm2015/tiled-select/directives/tiled-select-tile-overlay.directive.js +19 -0
- package/esm2015/tiled-select/public-api.js +9 -0
- package/esm2015/tiled-select/theseam-ui-common-tiled-select.js +5 -0
- package/esm2015/tiled-select/tiled-select.models.js +2 -0
- package/esm2015/tiled-select/tiled-select.module.js +35 -0
- package/esm2015/toggle-edit/models/can-toggle-edit.js +2 -0
- package/esm2015/toggle-edit/models/index.js +3 -0
- package/esm2015/toggle-edit/models/toggle-edit-ref.js +2 -0
- package/esm2015/toggle-edit/public-api.js +7 -0
- package/esm2015/toggle-edit/theseam-ui-common-toggle-edit.js +5 -0
- package/esm2015/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.js +15 -0
- package/esm2015/toggle-edit/toggle-edit-display-tpl.directive.js +15 -0
- package/esm2015/toggle-edit/toggle-edit-keyboard-listener.service.js +56 -0
- package/esm2015/toggle-edit/toggle-edit.component.js +403 -0
- package/esm2015/toggle-edit/toggle-edit.module.js +40 -0
- package/esm2015/toggle-group/public-api.js +4 -0
- package/esm2015/toggle-group/theseam-ui-common-toggle-group.js +5 -0
- package/esm2015/toggle-group/toggle-group-option.directive.js +44 -0
- package/esm2015/toggle-group/toggle-group.directive.js +192 -0
- package/esm2015/toggle-group/toggle-group.module.js +24 -0
- package/esm2015/unsaved-changes-dialog/public-api.js +5 -0
- package/esm2015/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.js +5 -0
- package/esm2015/unsaved-changes-dialog/unsaved-changes-can-deactivate.js +27 -0
- package/esm2015/unsaved-changes-dialog/unsaved-changes-dialog.component.js +20 -0
- package/esm2015/unsaved-changes-dialog/unsaved-changes-dialog.guard.js +35 -0
- package/esm2015/unsaved-changes-dialog/unsaved-changes-dialog.module.js +12 -0
- package/esm2015/utils/calc-percentage.js +4 -0
- package/esm2015/utils/cdk/get-closest-widget-cdk-drag.js +18 -0
- package/esm2015/utils/create-padding.js +17 -0
- package/esm2015/utils/file-utils.js +68 -0
- package/esm2015/utils/form/get-control-name.js +31 -0
- package/esm2015/utils/form/get-control-path.js +37 -0
- package/esm2015/utils/form/has-required-control.js +50 -0
- package/esm2015/utils/form/is-empty-input-value.js +6 -0
- package/esm2015/utils/form/observe-control-is-different.js +18 -0
- package/esm2015/utils/form/observe-control-status.js +17 -0
- package/esm2015/utils/form/observe-control-valid.js +30 -0
- package/esm2015/utils/form/observe-control-value-change.js +10 -0
- package/esm2015/utils/form/observe-control-value.js +11 -0
- package/esm2015/utils/form/wait-on-non-pending-status.js +18 -0
- package/esm2015/utils/fractional-digits-count.js +19 -0
- package/esm2015/utils/get-attribute.js +7 -0
- package/esm2015/utils/has-attribute.js +7 -0
- package/esm2015/utils/has-property.js +7 -0
- package/esm2015/utils/input-masks.js +2 -0
- package/esm2015/utils/is-absolute-url.js +17 -0
- package/esm2015/utils/is-null-or-undefined.js +4 -0
- package/esm2015/utils/is-numeric.js +4 -0
- package/esm2015/utils/load-style-sheet.js +14 -0
- package/esm2015/utils/load-style.js +13 -0
- package/esm2015/utils/not-null-or-undefined.js +4 -0
- package/esm2015/utils/obj-utils.js +27 -0
- package/esm2015/utils/observe-query-list.js +5 -0
- package/esm2015/utils/operators/index.js +3 -0
- package/esm2015/utils/operators/map-each.js +6 -0
- package/esm2015/utils/operators/tap-first.js +14 -0
- package/esm2015/utils/pad-end.js +9 -0
- package/esm2015/utils/pad-start.js +9 -0
- package/esm2015/utils/polling-ticker.js +121 -0
- package/esm2015/utils/public-api.js +38 -0
- package/esm2015/utils/refreshable.js +65 -0
- package/esm2015/utils/router/index.js +7 -0
- package/esm2015/utils/router/is-empty-url-route.js +4 -0
- package/esm2015/utils/router/leaf-child-route.js +8 -0
- package/esm2015/utils/router/operators/activated-routes-with-data-property.js +11 -0
- package/esm2015/utils/router/route-snapshot-path-full.js +5 -0
- package/esm2015/utils/router/route-snapshot-path-relative.js +4 -0
- package/esm2015/utils/router/will-have-data-prop.js +10 -0
- package/esm2015/utils/subscriber-count.js +19 -0
- package/esm2015/utils/theseam-ui-common-utils.js +5 -0
- package/esm2015/utils/toggle-attribute.js +35 -0
- package/esm2015/utils/wait-on-condition-async.js +33 -0
- package/esm2015/utils/wrap-into-observable.js +8 -0
- package/esm2015/validators/decimal.validator.js +25 -0
- package/esm2015/validators/email-exists.validator.js +18 -0
- package/esm2015/validators/integer.validator.js +25 -0
- package/esm2015/validators/phone-length.validator.js +8 -0
- package/esm2015/validators/public-api.js +6 -0
- package/esm2015/validators/tax-id.validator.js +13 -0
- package/esm2015/validators/theseam-ui-common-validators.js +5 -0
- package/esm2015/viewers/pdf-viewer/index.js +4 -0
- package/esm2015/viewers/pdf-viewer/pdf-page/pdf-page.component.js +134 -0
- package/esm2015/viewers/pdf-viewer/pdf-renderer.service.js +27 -0
- package/esm2015/viewers/pdf-viewer/pdf-viewer.component.js +149 -0
- package/esm2015/viewers/pdf-viewer/pdf-viewer.module.js +24 -0
- package/esm2015/viewers/public-api.js +2 -0
- package/esm2015/viewers/theseam-ui-common-viewers.js +5 -0
- package/esm2015/widget/directives/widget-drag-handle.directive.js +146 -0
- package/esm2015/widget/directives/widget-icon-tpl.directive.js +15 -0
- package/esm2015/widget/directives/widget-title-tpl.directive.js +15 -0
- package/esm2015/widget/public-api.js +38 -0
- package/esm2015/widget/theseam-ui-common-widget.js +5 -0
- package/esm2015/widget/widget/widget.component.js +121 -0
- package/esm2015/widget/widget-content-components/widget-button-group/widget-button-group.component.js +16 -0
- package/esm2015/widget/widget-content-components/widget-button-group/widget-button-group.module.js +22 -0
- package/esm2015/widget/widget-content-components/widget-content-header/widget-content-header.component.js +16 -0
- package/esm2015/widget/widget-content-components/widget-content-header/widget-content-header.module.js +19 -0
- package/esm2015/widget/widget-content-components/widget-description/widget-description.component.js +12 -0
- package/esm2015/widget/widget-content-components/widget-description/widget-description.module.js +19 -0
- package/esm2015/widget/widget-content-components/widget-empty-label/widget-empty-label.component.js +39 -0
- package/esm2015/widget/widget-content-components/widget-empty-label/widget-empty-label.module.js +19 -0
- package/esm2015/widget/widget-content-components/widget-footer-link/widget-footer-link.component.js +16 -0
- package/esm2015/widget/widget-content-components/widget-footer-link/widget-footer-link.module.js +19 -0
- package/esm2015/widget/widget-content-components/widget-footer-text/widget-footer-text.component.js +16 -0
- package/esm2015/widget/widget-content-components/widget-footer-text/widget-footer-text.module.js +19 -0
- package/esm2015/widget/widget-content-components/widget-header-badge/widget-header-badge.component.js +31 -0
- package/esm2015/widget/widget-content-components/widget-header-badge/widget-header-badge.module.js +19 -0
- package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.js +16 -0
- package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.js +162 -0
- package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group.component.js +19 -0
- package/esm2015/widget/widget-content-components/widget-list-group/widget-list-group.module.js +31 -0
- package/esm2015/widget/widget-content-components/widget-table/widget-table.component.js +35 -0
- package/esm2015/widget/widget-content-components/widget-table/widget-table.module.js +23 -0
- package/esm2015/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.js +19 -0
- package/esm2015/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.js +43 -0
- package/esm2015/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.js +16 -0
- package/esm2015/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.js +16 -0
- package/esm2015/widget/widget-content-components/widget-tile/widget-tile.component.js +108 -0
- package/esm2015/widget/widget-content-components/widget-tile/widget-tile.module.js +33 -0
- package/esm2015/widget/widget-content-components/widget-tile-list/widget-tile-list.component.js +15 -0
- package/esm2015/widget/widget-content-components/widget-tile-list/widget-tile-list.module.js +21 -0
- package/esm2015/widget/widget-footer/widget-footer.component.js +16 -0
- package/esm2015/widget/widget-registry.models.js +2 -0
- package/esm2015/widget/widget-registry.service.js +56 -0
- package/esm2015/widget/widget-token.js +3 -0
- package/esm2015/widget/widget.module.js +70 -0
- package/fesm2015/theseam-ui-common-asset-reader.js +173 -0
- package/fesm2015/theseam-ui-common-asset-reader.js.map +1 -0
- package/fesm2015/theseam-ui-common-breadcrumbs.js +202 -0
- package/fesm2015/theseam-ui-common-breadcrumbs.js.map +1 -0
- package/fesm2015/theseam-ui-common-buttons.js +362 -0
- package/fesm2015/theseam-ui-common-buttons.js.map +1 -0
- package/fesm2015/theseam-ui-common-card.js +145 -0
- package/fesm2015/theseam-ui-common-card.js.map +1 -0
- package/fesm2015/theseam-ui-common-checkbox.js +302 -0
- package/fesm2015/theseam-ui-common-checkbox.js.map +1 -0
- package/fesm2015/theseam-ui-common-confirm-dialog.js +153 -0
- package/fesm2015/theseam-ui-common-confirm-dialog.js.map +1 -0
- package/fesm2015/theseam-ui-common-core.js +231 -0
- package/fesm2015/theseam-ui-common-core.js.map +1 -0
- package/fesm2015/theseam-ui-common-data-exporter.js +81 -0
- package/fesm2015/theseam-ui-common-data-exporter.js.map +1 -0
- package/fesm2015/theseam-ui-common-data-filters.js +452 -0
- package/fesm2015/theseam-ui-common-data-filters.js.map +1 -0
- package/fesm2015/theseam-ui-common-datatable-dynamic.js +991 -0
- package/fesm2015/theseam-ui-common-datatable-dynamic.js.map +1 -0
- package/fesm2015/theseam-ui-common-datatable.js +1714 -0
- package/fesm2015/theseam-ui-common-datatable.js.map +1 -0
- package/fesm2015/theseam-ui-common-dynamic-component-loader.js +143 -0
- package/fesm2015/theseam-ui-common-dynamic-component-loader.js.map +1 -0
- package/fesm2015/theseam-ui-common-dynamic.js +699 -0
- package/fesm2015/theseam-ui-common-dynamic.js.map +1 -0
- package/fesm2015/theseam-ui-common-footer-bar.js +36 -0
- package/fesm2015/theseam-ui-common-footer-bar.js.map +1 -0
- package/fesm2015/theseam-ui-common-form-field-error.js +464 -0
- package/fesm2015/theseam-ui-common-form-field-error.js.map +1 -0
- package/fesm2015/theseam-ui-common-form-field.js +506 -0
- package/fesm2015/theseam-ui-common-form-field.js.map +1 -0
- package/fesm2015/theseam-ui-common-framework.js +2650 -0
- package/fesm2015/theseam-ui-common-framework.js.map +1 -0
- package/fesm2015/theseam-ui-common-graphql.js +331 -0
- package/fesm2015/theseam-ui-common-graphql.js.map +1 -0
- package/fesm2015/theseam-ui-common-icon.js +518 -0
- package/fesm2015/theseam-ui-common-icon.js.map +1 -0
- package/fesm2015/theseam-ui-common-layout.js +89 -0
- package/fesm2015/theseam-ui-common-layout.js.map +1 -0
- package/fesm2015/theseam-ui-common-loading.js +131 -0
- package/fesm2015/theseam-ui-common-loading.js.map +1 -0
- package/fesm2015/theseam-ui-common-menu.js +762 -0
- package/fesm2015/theseam-ui-common-menu.js.map +1 -0
- package/fesm2015/theseam-ui-common-modal.js +1234 -0
- package/fesm2015/theseam-ui-common-modal.js.map +1 -0
- package/fesm2015/theseam-ui-common-models.js +54 -0
- package/fesm2015/theseam-ui-common-models.js.map +1 -0
- package/fesm2015/theseam-ui-common-popover.js +476 -0
- package/fesm2015/theseam-ui-common-popover.js.map +1 -0
- package/fesm2015/theseam-ui-common-progress.js +87 -0
- package/fesm2015/theseam-ui-common-progress.js.map +1 -0
- package/fesm2015/theseam-ui-common-scrollbar.js +184 -0
- package/fesm2015/theseam-ui-common-scrollbar.js.map +1 -0
- package/fesm2015/theseam-ui-common-services.js +140 -0
- package/fesm2015/theseam-ui-common-services.js.map +1 -0
- package/fesm2015/theseam-ui-common-shared.js +696 -0
- package/fesm2015/theseam-ui-common-shared.js.map +1 -0
- package/fesm2015/theseam-ui-common-storage.js +147 -0
- package/fesm2015/theseam-ui-common-storage.js.map +1 -0
- package/fesm2015/theseam-ui-common-story-helpers.js +441 -0
- package/fesm2015/theseam-ui-common-story-helpers.js.map +1 -0
- package/fesm2015/theseam-ui-common-tabbed.js +262 -0
- package/fesm2015/theseam-ui-common-tabbed.js.map +1 -0
- package/fesm2015/theseam-ui-common-table-cell-type.js +191 -0
- package/fesm2015/theseam-ui-common-table-cell-type.js.map +1 -0
- package/fesm2015/theseam-ui-common-table-cell-types.js +799 -0
- package/fesm2015/theseam-ui-common-table-cell-types.js.map +1 -0
- package/fesm2015/theseam-ui-common-table.js +118 -0
- package/fesm2015/theseam-ui-common-table.js.map +1 -0
- package/fesm2015/theseam-ui-common-tel-input.js +681 -0
- package/fesm2015/theseam-ui-common-tel-input.js.map +1 -0
- package/fesm2015/theseam-ui-common-test-helpers.js +81 -0
- package/fesm2015/theseam-ui-common-test-helpers.js.map +1 -0
- package/fesm2015/theseam-ui-common-tiled-select.js +448 -0
- package/fesm2015/theseam-ui-common-tiled-select.js.map +1 -0
- package/fesm2015/theseam-ui-common-toggle-edit.js +521 -0
- package/fesm2015/theseam-ui-common-toggle-edit.js.map +1 -0
- package/fesm2015/theseam-ui-common-toggle-group.js +260 -0
- package/fesm2015/theseam-ui-common-toggle-group.js.map +1 -0
- package/fesm2015/theseam-ui-common-unsaved-changes-dialog.js +97 -0
- package/fesm2015/theseam-ui-common-unsaved-changes-dialog.js.map +1 -0
- package/fesm2015/theseam-ui-common-utils.js +797 -0
- package/fesm2015/theseam-ui-common-utils.js.map +1 -0
- package/fesm2015/theseam-ui-common-validators.js +94 -0
- package/fesm2015/theseam-ui-common-validators.js.map +1 -0
- package/fesm2015/theseam-ui-common-viewers.js +328 -0
- package/fesm2015/theseam-ui-common-viewers.js.map +1 -0
- package/fesm2015/theseam-ui-common-widget.js +1187 -0
- package/fesm2015/theseam-ui-common-widget.js.map +1 -0
- package/fesm2015/theseam-ui-common.js +47 -0
- package/fesm2015/theseam-ui-common.js.map +1 -0
- package/footer-bar/footer-bar/footer-bar.component.d.ts +5 -0
- package/footer-bar/footer-bar.module.d.ts +2 -0
- package/footer-bar/package.json +11 -0
- package/footer-bar/public-api.d.ts +2 -0
- package/footer-bar/theseam-ui-common-footer-bar.d.ts +4 -0
- package/footer-bar/theseam-ui-common-footer-bar.metadata.json +1 -0
- package/form-field/form-field-error.directive.d.ts +12 -0
- package/form-field/form-field-help-text.directive.d.ts +5 -0
- package/form-field/form-field-label-tpl.directive.d.ts +5 -0
- package/form-field/form-field-required-indicator.component.d.ts +9 -0
- package/form-field/form-field.component.d.ts +114 -0
- package/form-field/form-field.module.d.ts +2 -0
- package/form-field/input.directive.d.ts +72 -0
- package/form-field/package.json +11 -0
- package/form-field/public-api.d.ts +7 -0
- package/form-field/theseam-ui-common-form-field.d.ts +4 -0
- package/form-field/theseam-ui-common-form-field.metadata.json +1 -0
- package/form-field-error/form-field-error/form-field-error.component.d.ts +8 -0
- package/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.d.ts +9 -0
- package/form-field-error/form-field-error-list/form-field-error-list-item.directive.d.ts +6 -0
- package/form-field-error/form-field-error-list/form-field-error-list.component.d.ts +63 -0
- package/form-field-error/form-field-error.module.d.ts +2 -0
- package/form-field-error/package.json +11 -0
- package/form-field-error/public-api.d.ts +5 -0
- package/form-field-error/theseam-ui-common-form-field-error.d.ts +4 -0
- package/form-field-error/theseam-ui-common-form-field-error.metadata.json +1 -0
- package/framework/base-layout/_base-layout-theme.scss +3 -0
- package/framework/base-layout/base-layout-action.d.ts +31 -0
- package/framework/base-layout/base-layout-nav.d.ts +18 -0
- package/framework/base-layout/base-layout-ref.d.ts +14 -0
- package/framework/base-layout/base-layout-tokens.d.ts +3 -0
- package/framework/base-layout/base-layout.component.d.ts +43 -0
- package/framework/base-layout/base-layout.component.scss +81 -0
- package/framework/base-layout/base-layout.module.d.ts +2 -0
- package/framework/base-layout/directives/base-layout-content-footer.directive.d.ts +6 -0
- package/framework/base-layout/directives/base-layout-content-header.directive.d.ts +6 -0
- package/framework/base-layout/directives/base-layout-content.directive.d.ts +6 -0
- package/framework/base-layout/directives/base-layout-nav-toggle.directive.d.ts +14 -0
- package/framework/base-layout/directives/base-layout-side-bar.directive.d.ts +6 -0
- package/framework/base-layout/directives/base-layout-top-bar.directive.d.ts +6 -0
- package/framework/base-layout/index.d.ts +12 -0
- package/framework/base-layout/styles/_utilities.scss +3 -0
- package/framework/base-layout/styles/_variables.scss +9 -0
- package/framework/dashboard/_dashboard-theme.scss +3 -0
- package/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.d.ts +8 -0
- package/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.scss +0 -0
- package/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.d.ts +11 -0
- package/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.scss +0 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.d.ts +47 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-item.d.ts +43 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.d.ts +3 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.d.ts +15 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.d.ts +27 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.component.d.ts +58 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.component.scss +48 -0
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.service.d.ts +34 -0
- package/framework/dashboard/dashboard.component.d.ts +8 -0
- package/framework/dashboard/dashboard.component.scss +0 -0
- package/framework/dashboard/dashboard.module.d.ts +2 -0
- package/framework/dashboard/index.d.ts +11 -0
- package/framework/dashboard/styles/_utilities.scss +3 -0
- package/framework/dashboard/styles/_variables.scss +2 -0
- package/framework/dynamic-router/dynamic-route-def.d.ts +8 -0
- package/framework/dynamic-router/dynamic-router.module.d.ts +2 -0
- package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.d.ts +5 -0
- package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.d.ts +23 -0
- package/framework/dynamic-router/index.d.ts +5 -0
- package/framework/dynamic-router/resolvers/hierarchy-level.resolver.d.ts +7 -0
- package/framework/package.json +11 -0
- package/framework/public-api.d.ts +6 -0
- package/framework/schema-form/index.d.ts +3 -0
- package/framework/schema-form/schema-form-framework.component.d.ts +5 -0
- package/framework/schema-form/schema-form-framework.d.ts +18 -0
- package/framework/schema-form/schema-form.module.d.ts +2 -0
- package/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.d.ts +21 -0
- package/framework/schema-form-controls/schema-form-controls.module.d.ts +2 -0
- package/framework/schema-form-controls/schema-form-input/schema-form-input.component.d.ts +19 -0
- package/framework/schema-form-controls/schema-form-number/schema-form-number.component.d.ts +22 -0
- package/framework/schema-form-controls/schema-form-select/schema-form-select.component.d.ts +20 -0
- package/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.d.ts +18 -0
- package/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.d.ts +34 -0
- package/framework/side-nav/_side-nav-theme.scss +5 -0
- package/framework/side-nav/index.d.ts +6 -0
- package/framework/side-nav/side-nav-item/side-nav-item.component.d.ts +65 -0
- package/framework/side-nav/side-nav-item/side-nav-item.component.scss +158 -0
- package/framework/side-nav/side-nav-toggle/side-nav-toggle.component.d.ts +11 -0
- package/framework/side-nav/side-nav-toggle/side-nav-toggle.component.scss +32 -0
- package/framework/side-nav/side-nav-utils.d.ts +18 -0
- package/framework/side-nav/side-nav.component.d.ts +40 -0
- package/framework/side-nav/side-nav.component.scss +47 -0
- package/framework/side-nav/side-nav.models.d.ts +64 -0
- package/framework/side-nav/side-nav.module.d.ts +2 -0
- package/framework/side-nav/side-nav.service.d.ts +21 -0
- package/framework/side-nav/styles/_themes/light/_variables.scss +29 -0
- package/framework/side-nav/styles/_themes/primary/_variables.scss +31 -0
- package/framework/side-nav/styles/_utilities.scss +3 -0
- package/framework/side-nav/styles/_variables.scss +2 -0
- package/framework/theseam-ui-common-framework.d.ts +12 -0
- package/framework/theseam-ui-common-framework.metadata.json +1 -0
- package/framework/top-bar/index.d.ts +7 -0
- package/framework/top-bar/top-bar-item.directive.d.ts +5 -0
- package/framework/top-bar/top-bar-menu-btn-detail.directive.d.ts +5 -0
- package/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.d.ts +20 -0
- package/framework/top-bar/top-bar-menu.directive.d.ts +5 -0
- package/framework/top-bar/top-bar-title/top-bar-title.component.d.ts +7 -0
- package/framework/top-bar/top-bar.component.d.ts +59 -0
- package/framework/top-bar/top-bar.module.d.ts +2 -0
- package/graphql/models/direction.d.ts +6 -0
- package/graphql/models/hint-definition.d.ts +7 -0
- package/graphql/models/hint-transform-operation.d.ts +5 -0
- package/graphql/models/hint-transformer.d.ts +3 -0
- package/graphql/models/hints-kind.d.ts +7 -0
- package/graphql/models/hints-token.d.ts +7 -0
- package/graphql/models/index.d.ts +8 -0
- package/graphql/models/query-processing-config.d.ts +9 -0
- package/graphql/models/variable.d.ts +5 -0
- package/graphql/package.json +11 -0
- package/graphql/public-api.d.ts +1 -0
- package/graphql/theseam-ui-common-graphql.d.ts +4 -0
- package/graphql/theseam-ui-common-graphql.metadata.json +1 -0
- package/graphql/utils/contains-variable.d.ts +2 -0
- package/graphql/utils/gql-var.d.ts +3 -0
- package/graphql/utils/hints-tokens-containing-hint.d.ts +2 -0
- package/graphql/utils/index.d.ts +10 -0
- package/graphql/utils/inline-variables.d.ts +2 -0
- package/graphql/utils/parse-comments.d.ts +2 -0
- package/graphql/utils/parse-hints.d.ts +17 -0
- package/graphql/utils/remove-variable-definition.d.ts +2 -0
- package/graphql/utils/remove-variable-definitions-not-defined.d.ts +3 -0
- package/graphql/utils/remove-variable.d.ts +2 -0
- package/graphql/utils/to-gql.d.ts +1 -0
- package/icon/icon/icon.component.d.ts +54 -0
- package/icon/icon-btn/icon-btn.component.d.ts +74 -0
- package/icon/icon-notification/icon-notification.component.d.ts +47 -0
- package/icon/icon.d.ts +2 -0
- package/icon/icon.module.d.ts +2 -0
- package/icon/package.json +11 -0
- package/icon/public-api.d.ts +6 -0
- package/icon/theseam-ui-common-icon.d.ts +4 -0
- package/icon/theseam-ui-common-icon.metadata.json +1 -0
- package/icon/utils/file-extension-icon.d.ts +3 -0
- package/icon/utils/get-known-icon.d.ts +2 -0
- package/icon/utils/index.d.ts +2 -0
- package/layout/breakpoint-aliases.d.ts +20 -0
- package/layout/layout.module.d.ts +2 -0
- package/layout/layout.service.d.ts +12 -0
- package/layout/observe-media-query.d.ts +8 -0
- package/layout/package.json +11 -0
- package/layout/public-api.d.ts +4 -0
- package/layout/theseam-ui-common-layout.d.ts +4 -0
- package/layout/theseam-ui-common-layout.metadata.json +1 -0
- package/loading/loading/loading.component.d.ts +9 -0
- package/loading/loading-overlay.service.d.ts +13 -0
- package/loading/loading-themes.d.ts +3 -0
- package/loading/loading.models.d.ts +1 -0
- package/loading/loading.module.d.ts +4 -0
- package/loading/package.json +11 -0
- package/loading/public-api.d.ts +5 -0
- package/loading/theseam-ui-common-loading.d.ts +4 -0
- package/loading/theseam-ui-common-loading.metadata.json +1 -0
- package/menu/menu-animations.d.ts +8 -0
- package/menu/menu-divider.component.d.ts +2 -0
- package/menu/menu-footer/menu-footer.component.d.ts +9 -0
- package/menu/menu-footer-action/menu-footer-action.component.d.ts +19 -0
- package/menu/menu-header/menu-header.component.d.ts +9 -0
- package/menu/menu-item.component.d.ts +41 -0
- package/menu/menu-panel-token.d.ts +6 -0
- package/menu/menu-panel.d.ts +20 -0
- package/menu/menu-toggle.directive.d.ts +53 -0
- package/menu/menu.component.d.ts +62 -0
- package/menu/menu.module.d.ts +2 -0
- package/menu/package.json +11 -0
- package/menu/public-api.d.ts +11 -0
- package/menu/theseam-ui-common-menu.d.ts +4 -0
- package/menu/theseam-ui-common-menu.metadata.json +1 -0
- package/modal/directives/modal-close.directive.d.ts +20 -0
- package/modal/directives/modal-footer-tpl.directive.d.ts +5 -0
- package/modal/directives/modal-header-icon-tpl.directive.d.ts +5 -0
- package/modal/directives/modal-header-title-tpl.directive.d.ts +5 -0
- package/modal/directives/modal-title.directive.d.ts +6 -0
- package/modal/directives/modal.directive.d.ts +8 -0
- package/modal/modal/modal.component.d.ts +56 -0
- package/modal/modal-body/modal-body.component.d.ts +7 -0
- package/modal/modal-config.d.ts +93 -0
- package/modal/modal-container/modal-container.component.d.ts +77 -0
- package/modal/modal-footer/modal-footer.component.d.ts +6 -0
- package/modal/modal-header/modal-header.component.d.ts +11 -0
- package/modal/modal-injectors.d.ts +23 -0
- package/modal/modal-ref.d.ts +50 -0
- package/modal/modal-utils.d.ts +8 -0
- package/modal/modal.models.d.ts +24 -0
- package/modal/modal.module.d.ts +2 -0
- package/modal/modal.service.d.ts +95 -0
- package/modal/package.json +11 -0
- package/modal/public-api.d.ts +19 -0
- package/modal/route-modal/route-modal.component.d.ts +16 -0
- package/modal/theseam-ui-common-modal.d.ts +4 -0
- package/modal/theseam-ui-common-modal.metadata.json +1 -0
- package/models/component-type.d.ts +2 -0
- package/models/http-status-codes.d.ts +18 -0
- package/models/package.json +11 -0
- package/models/public-api.d.ts +7 -0
- package/models/size-prefixes.d.ts +1 -0
- package/models/size-types.d.ts +1 -0
- package/models/theme-names.d.ts +2 -0
- package/models/theme-prefixes.d.ts +1 -0
- package/models/theme-types.d.ts +2 -0
- package/models/theseam-ui-common-models.d.ts +4 -0
- package/models/theseam-ui-common-models.metadata.json +1 -0
- package/package.json +61 -0
- package/popover/package.json +11 -0
- package/popover/popover/popover.component.d.ts +44 -0
- package/popover/popover-animations.d.ts +4 -0
- package/popover/popover.directive.d.ts +57 -0
- package/popover/popover.module.d.ts +2 -0
- package/popover/public-api.d.ts +4 -0
- package/popover/theseam-ui-common-popover.d.ts +4 -0
- package/popover/theseam-ui-common-popover.metadata.json +1 -0
- package/progress/package.json +11 -0
- package/progress/progress-circle/_progress-circle-theme.scss +3 -0
- package/progress/progress-circle/progress-circle.component.d.ts +27 -0
- package/progress/progress-circle/progress-circle.component.scss +105 -0
- package/progress/progress-circle/styles/_utilities.scss +3 -0
- package/progress/progress-circle/styles/_variables.scss +8 -0
- package/progress/progress.module.d.ts +2 -0
- package/progress/public-api.d.ts +2 -0
- package/progress/theseam-ui-common-progress.d.ts +4 -0
- package/progress/theseam-ui-common-progress.metadata.json +1 -0
- package/public_api.d.ts +2 -0
- package/scrollbar/overlay-scrollbar.directive.d.ts +21 -0
- package/scrollbar/overlay-scrollbars-config-model.d.ts +2 -0
- package/scrollbar/overlay-scrollbars-config.d.ts +51 -0
- package/scrollbar/overlay-scrollbars.service.d.ts +20 -0
- package/scrollbar/package.json +11 -0
- package/scrollbar/public-api.d.ts +5 -0
- package/scrollbar/scrollbar.module.d.ts +2 -0
- package/scrollbar/theseam-ui-common-scrollbar.d.ts +4 -0
- package/scrollbar/theseam-ui-common-scrollbar.metadata.json +1 -0
- package/services/asset-loader.service.d.ts +13 -0
- package/services/font-loader.service.d.ts +43 -0
- package/services/package.json +11 -0
- package/services/public-api.d.ts +3 -0
- package/services/router-helpers.service.d.ts +7 -0
- package/services/theseam-ui-common-services.d.ts +4 -0
- package/services/theseam-ui-common-services.metadata.json +1 -0
- package/shared/components/index.d.ts +1 -0
- package/shared/components/password-input-reveal/password-input-reveal.component.d.ts +14 -0
- package/shared/directives/auto-focus.directive.d.ts +15 -0
- package/shared/directives/click-outside.directive.d.ts +10 -0
- package/shared/directives/disable-control.directive.d.ts +6 -0
- package/shared/directives/elem-resized.directive.d.ts +17 -0
- package/shared/directives/hover-class-toggle.directive.d.ts +33 -0
- package/shared/directives/hover-class.directive.d.ts +28 -0
- package/shared/directives/index.d.ts +8 -0
- package/shared/directives/ng-select-extra.directive.d.ts +39 -0
- package/shared/directives/ngx-quill-extra.directive.d.ts +20 -0
- package/shared/package.json +11 -0
- package/shared/pipes/index.d.ts +2 -0
- package/shared/pipes/mask-chars.pipe.d.ts +4 -0
- package/shared/pipes/truncate.pipe.d.ts +4 -0
- package/shared/public-api.d.ts +4 -0
- package/shared/shared.module.d.ts +2 -0
- package/shared/theseam-ui-common-shared.d.ts +4 -0
- package/shared/theseam-ui-common-shared.metadata.json +1 -0
- package/storage/local-storage.service.d.ts +28 -0
- package/storage/localstorage-memory.d.ts +37 -0
- package/storage/package.json +11 -0
- package/storage/public-api.d.ts +1 -0
- package/storage/theseam-ui-common-storage.d.ts +4 -0
- package/storage/theseam-ui-common-storage.metadata.json +1 -0
- package/story-helpers/arg-type-helpers.d.ts +5 -0
- package/story-helpers/args-to-tpl.d.ts +24 -0
- package/story-helpers/initial-route-factory.d.ts +2 -0
- package/story-helpers/initial-route.service.d.ts +7 -0
- package/story-helpers/on-story-bootstrapped-exec.d.ts +29 -0
- package/story-helpers/on-story-bootstrapped-trigger.d.ts +23 -0
- package/story-helpers/package.json +11 -0
- package/story-helpers/public-api.d.ts +14 -0
- package/story-helpers/route-button.d.ts +5 -0
- package/story-helpers/routes-arg-type.d.ts +2 -0
- package/story-helpers/story-empty-with-route.component.d.ts +2 -0
- package/story-helpers/story-empty.component.d.ts +2 -0
- package/story-helpers/story-helper-components.module.d.ts +2 -0
- package/story-helpers/story-initial-route.d.ts +4 -0
- package/story-helpers/story-modal-container.component.d.ts +20 -0
- package/story-helpers/story-toastr.service.d.ts +30 -0
- package/story-helpers/theseam-ui-common-story-helpers.d.ts +4 -0
- package/story-helpers/theseam-ui-common-story-helpers.metadata.json +1 -0
- package/styles/_storybook-fixes.scss +7 -0
- package/styles/_variables.scss +0 -0
- package/styles/bootstrap/_bootstrap.scss +45 -0
- package/styles/bootstrap/_bs-styles.scss +105 -0
- package/styles/bootstrap/_bs-utilities.scss +5 -0
- package/styles/bootstrap/_bs-variables.scss +141 -0
- package/styles/common/_forms.scss +15 -0
- package/styles/common/_global.scss +9 -0
- package/styles/common/_hacks.scss +14 -0
- package/styles/common/_table.scss +124 -0
- package/styles/common/_text.scss +1 -0
- package/styles/theme.scss +19 -0
- package/styles/utilities.scss +14 -0
- package/styles/vendor/_vendor.scss +3 -0
- package/styles/vendor/ng-select/_ng-select-bs4.scss +445 -0
- package/styles/vendor/ngx-datatable/_ngx-datatable.scss +108 -0
- package/styles/vendor/quill/_quill.scss +26 -0
- package/tabbed/directives/tabbed-tab-content.directive.d.ts +4 -0
- package/tabbed/directives/tabbed-tab.directive.d.ts +9 -0
- package/tabbed/package.json +11 -0
- package/tabbed/public-api.d.ts +7 -0
- package/tabbed/tabbed-content/tabbed-content.component.d.ts +7 -0
- package/tabbed/tabbed-item/tabbed-item.component.d.ts +14 -0
- package/tabbed/tabbed.component.d.ts +36 -0
- package/tabbed/tabbed.module.d.ts +2 -0
- package/tabbed/tabbed.service.d.ts +8 -0
- package/tabbed/theseam-ui-common-tabbed.d.ts +4 -0
- package/tabbed/theseam-ui-common-tabbed.metadata.json +1 -0
- package/table/package.json +11 -0
- package/table/public-api.d.ts +2 -0
- package/table/table/table.component.d.ts +43 -0
- package/table/table.module.d.ts +2 -0
- package/table/theseam-ui-common-table.d.ts +4 -0
- package/table/theseam-ui-common-table.metadata.json +1 -0
- package/table-cell-type/package.json +11 -0
- package/table-cell-type/public-api.d.ts +11 -0
- package/table-cell-type/services/table-cell-types-helpers.service.d.ts +15 -0
- package/table-cell-type/table-cell-type-action.d.ts +13 -0
- package/table-cell-type/table-cell-type-column.d.ts +12 -0
- package/table-cell-type/table-cell-type-config.d.ts +12 -0
- package/table-cell-type/table-cell-type-export-props.d.ts +15 -0
- package/table-cell-type/table-cell-type-manifest-provider.d.ts +7 -0
- package/table-cell-type/table-cell-type-models.d.ts +39 -0
- package/table-cell-type/table-cell-type-name.d.ts +1 -0
- package/table-cell-type/table-cell-type-selector.component.d.ts +25 -0
- package/table-cell-type/table-cell-type-tokens.d.ts +4 -0
- package/table-cell-type/table-cell-type.module.d.ts +2 -0
- package/table-cell-type/theseam-ui-common-table-cell-type.d.ts +4 -0
- package/table-cell-type/theseam-ui-common-table-cell-type.metadata.json +1 -0
- package/table-cell-types/package.json +11 -0
- package/table-cell-types/public-api.d.ts +15 -0
- package/table-cell-types/table-cell-type-date/table-cell-type-date-config.d.ts +9 -0
- package/table-cell-types/table-cell-type-date/table-cell-type-date.component.d.ts +12 -0
- package/table-cell-types/table-cell-type-date/table-cell-type-date.d.ts +3 -0
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.d.ts +3 -0
- package/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.d.ts +34 -0
- package/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.d.ts +53 -0
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.d.ts +3 -0
- package/table-cell-types/table-cell-type-manifests.d.ts +10 -0
- package/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.d.ts +13 -0
- package/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.d.ts +17 -0
- package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.d.ts +29 -0
- package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.d.ts +48 -0
- package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.d.ts +49 -0
- package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.d.ts +21 -0
- package/table-cell-types/table-cell-type-string/table-cell-type-string-config.d.ts +10 -0
- package/table-cell-types/table-cell-type-string/table-cell-type-string.component.d.ts +45 -0
- package/table-cell-types/table-cell-types.module.d.ts +2 -0
- package/table-cell-types/theseam-ui-common-table-cell-types.d.ts +6 -0
- package/table-cell-types/theseam-ui-common-table-cell-types.metadata.json +1 -0
- package/tel-input/intl-tel-input.d.ts +300 -0
- package/tel-input/models/index.d.ts +2 -0
- package/tel-input/models/tel-input-country-data.d.ts +9 -0
- package/tel-input/models/tel-input-number-format-name.d.ts +4 -0
- package/tel-input/package.json +11 -0
- package/tel-input/phone-number.pipe.d.ts +11 -0
- package/tel-input/public-api.d.ts +9 -0
- package/tel-input/tel-input/tel-input.component.d.ts +83 -0
- package/tel-input/tel-input-constants.d.ts +4 -0
- package/tel-input/tel-input-validator.d.ts +7 -0
- package/tel-input/tel-input.directive.d.ts +28 -0
- package/tel-input/tel-input.module.d.ts +2 -0
- package/tel-input/theseam-ui-common-tel-input.d.ts +4 -0
- package/tel-input/theseam-ui-common-tel-input.metadata.json +1 -0
- package/tel-input/utils/add-country-code.d.ts +7 -0
- package/tel-input/utils/coerce-phone-number-format.d.ts +7 -0
- package/tel-input/utils/get-country-code.d.ts +2 -0
- package/tel-input/utils/get-dial-code.d.ts +9 -0
- package/tel-input/utils/get-global-intl-tel-input-globals.d.ts +2 -0
- package/tel-input/utils/get-global-intl-tel-input-utils.d.ts +2 -0
- package/tel-input/utils/get-intl-tel-input-utils.d.ts +2 -0
- package/tel-input/utils/get-validation-error-message.d.ts +5 -0
- package/tel-input/utils/index.d.ts +9 -0
- package/tel-input/utils/process-country-codes.d.ts +8 -0
- package/test-helpers/package.json +11 -0
- package/test-helpers/public-api.d.ts +1 -0
- package/test-helpers/theseam-ui-common-test-helpers.d.ts +4 -0
- package/test-helpers/theseam-ui-common-test-helpers.metadata.json +1 -0
- package/test-helpers/tick-helper.d.ts +70 -0
- package/theseam-ui-common.d.ts +4 -0
- package/theseam-ui-common.metadata.json +1 -0
- package/tiled-select/components/tiled-select/tiled-select.component.d.ts +50 -0
- package/tiled-select/components/tiled-select-tile/tiled-select-tile.component.d.ts +41 -0
- package/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.d.ts +26 -0
- package/tiled-select/directives/tiled-select-tile-icon-tpl.directive.d.ts +5 -0
- package/tiled-select/directives/tiled-select-tile-label-tpl.directive.d.ts +5 -0
- package/tiled-select/directives/tiled-select-tile-overlay.directive.d.ts +7 -0
- package/tiled-select/package.json +11 -0
- package/tiled-select/public-api.d.ts +8 -0
- package/tiled-select/theseam-ui-common-tiled-select.d.ts +4 -0
- package/tiled-select/theseam-ui-common-tiled-select.metadata.json +1 -0
- package/tiled-select/tiled-select.models.d.ts +11 -0
- package/tiled-select/tiled-select.module.d.ts +2 -0
- package/toggle-edit/models/can-toggle-edit.d.ts +7 -0
- package/toggle-edit/models/index.d.ts +2 -0
- package/toggle-edit/models/toggle-edit-ref.d.ts +30 -0
- package/toggle-edit/package.json +11 -0
- package/toggle-edit/public-api.d.ts +6 -0
- package/toggle-edit/theseam-ui-common-toggle-edit.d.ts +4 -0
- package/toggle-edit/theseam-ui-common-toggle-edit.metadata.json +1 -0
- package/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.d.ts +5 -0
- package/toggle-edit/toggle-edit-display-tpl.directive.d.ts +5 -0
- package/toggle-edit/toggle-edit-keyboard-listener.service.d.ts +14 -0
- package/toggle-edit/toggle-edit.component.d.ts +90 -0
- package/toggle-edit/toggle-edit.module.d.ts +2 -0
- package/toggle-group/package.json +11 -0
- package/toggle-group/public-api.d.ts +3 -0
- package/toggle-group/theseam-ui-common-toggle-group.d.ts +4 -0
- package/toggle-group/theseam-ui-common-toggle-group.metadata.json +1 -0
- package/toggle-group/toggle-group-option.directive.d.ts +15 -0
- package/toggle-group/toggle-group.directive.d.ts +36 -0
- package/toggle-group/toggle-group.module.d.ts +2 -0
- package/unsaved-changes-dialog/package.json +11 -0
- package/unsaved-changes-dialog/public-api.d.ts +4 -0
- package/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.d.ts +4 -0
- package/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.metadata.json +1 -0
- package/unsaved-changes-dialog/unsaved-changes-can-deactivate.d.ts +4 -0
- package/unsaved-changes-dialog/unsaved-changes-dialog.component.d.ts +5 -0
- package/unsaved-changes-dialog/unsaved-changes-dialog.guard.d.ts +8 -0
- package/unsaved-changes-dialog/unsaved-changes-dialog.module.d.ts +2 -0
- package/utils/calc-percentage.d.ts +1 -0
- package/utils/cdk/get-closest-widget-cdk-drag.d.ts +8 -0
- package/utils/create-padding.d.ts +1 -0
- package/utils/file-utils.d.ts +12 -0
- package/utils/form/get-control-name.d.ts +22 -0
- package/utils/form/get-control-path.d.ts +27 -0
- package/utils/form/has-required-control.d.ts +31 -0
- package/utils/form/is-empty-input-value.d.ts +1 -0
- package/utils/form/observe-control-is-different.d.ts +13 -0
- package/utils/form/observe-control-status.d.ts +7 -0
- package/utils/form/observe-control-valid.d.ts +14 -0
- package/utils/form/observe-control-value-change.d.ts +9 -0
- package/utils/form/observe-control-value.d.ts +6 -0
- package/utils/form/wait-on-non-pending-status.d.ts +12 -0
- package/utils/fractional-digits-count.d.ts +8 -0
- package/utils/get-attribute.d.ts +4 -0
- package/utils/has-attribute.d.ts +4 -0
- package/utils/has-property.d.ts +1 -0
- package/utils/input-masks.d.ts +1 -0
- package/utils/is-absolute-url.d.ts +1 -0
- package/utils/is-null-or-undefined.d.ts +1 -0
- package/utils/is-numeric.d.ts +1 -0
- package/utils/load-style-sheet.d.ts +1 -0
- package/utils/load-style.d.ts +1 -0
- package/utils/not-null-or-undefined.d.ts +1 -0
- package/utils/obj-utils.d.ts +8 -0
- package/utils/observe-query-list.d.ts +3 -0
- package/utils/operators/index.d.ts +2 -0
- package/utils/operators/map-each.d.ts +2 -0
- package/utils/operators/tap-first.d.ts +5 -0
- package/utils/package.json +11 -0
- package/utils/pad-end.d.ts +1 -0
- package/utils/pad-start.d.ts +1 -0
- package/utils/polling-ticker.d.ts +13 -0
- package/utils/public-api.d.ts +37 -0
- package/utils/refreshable.d.ts +20 -0
- package/utils/router/index.d.ts +6 -0
- package/utils/router/is-empty-url-route.d.ts +2 -0
- package/utils/router/leaf-child-route.d.ts +2 -0
- package/utils/router/operators/activated-routes-with-data-property.d.ts +7 -0
- package/utils/router/route-snapshot-path-full.d.ts +2 -0
- package/utils/router/route-snapshot-path-relative.d.ts +2 -0
- package/utils/router/will-have-data-prop.d.ts +2 -0
- package/utils/subscriber-count.d.ts +1 -0
- package/utils/theseam-ui-common-utils.d.ts +4 -0
- package/utils/theseam-ui-common-utils.metadata.json +1 -0
- package/utils/toggle-attribute.d.ts +16 -0
- package/utils/wait-on-condition-async.d.ts +1 -0
- package/utils/wrap-into-observable.d.ts +2 -0
- package/validators/decimal.validator.d.ts +9 -0
- package/validators/email-exists.validator.d.ts +10 -0
- package/validators/integer.validator.d.ts +9 -0
- package/validators/package.json +11 -0
- package/validators/phone-length.validator.d.ts +7 -0
- package/validators/public-api.d.ts +5 -0
- package/validators/tax-id.validator.d.ts +11 -0
- package/validators/theseam-ui-common-validators.d.ts +4 -0
- package/validators/theseam-ui-common-validators.metadata.json +1 -0
- package/viewers/package.json +11 -0
- package/viewers/pdf-viewer/index.d.ts +3 -0
- package/viewers/pdf-viewer/pdf-page/pdf-page.component.d.ts +39 -0
- package/viewers/pdf-viewer/pdf-renderer.service.d.ts +6 -0
- package/viewers/pdf-viewer/pdf-viewer.component.d.ts +59 -0
- package/viewers/pdf-viewer/pdf-viewer.module.d.ts +2 -0
- package/viewers/public-api.d.ts +1 -0
- package/viewers/theseam-ui-common-viewers.d.ts +4 -0
- package/viewers/theseam-ui-common-viewers.metadata.json +1 -0
- package/widget/_widget-theme.scss +15 -0
- package/widget/directives/widget-drag-handle.directive.d.ts +53 -0
- package/widget/directives/widget-icon-tpl.directive.d.ts +5 -0
- package/widget/directives/widget-title-tpl.directive.d.ts +5 -0
- package/widget/package.json +11 -0
- package/widget/public-api.d.ts +37 -0
- package/widget/styles/_utilities.scss +3 -0
- package/widget/styles/_variables.scss +27 -0
- package/widget/theseam-ui-common-widget.d.ts +4 -0
- package/widget/theseam-ui-common-widget.metadata.json +1 -0
- package/widget/widget/widget.component.d.ts +78 -0
- package/widget/widget/widget.component.scss +107 -0
- package/widget/widget-content-components/widget-button-group/widget-button-group.component.d.ts +5 -0
- package/widget/widget-content-components/widget-button-group/widget-button-group.component.scss +3 -0
- package/widget/widget-content-components/widget-button-group/widget-button-group.module.d.ts +2 -0
- package/widget/widget-content-components/widget-content-header/widget-content-header.component.d.ts +5 -0
- package/widget/widget-content-components/widget-content-header/widget-content-header.component.scss +6 -0
- package/widget/widget-content-components/widget-content-header/widget-content-header.module.d.ts +2 -0
- package/widget/widget-content-components/widget-description/widget-description.component.d.ts +2 -0
- package/widget/widget-content-components/widget-description/widget-description.component.scss +0 -0
- package/widget/widget-content-components/widget-description/widget-description.module.d.ts +2 -0
- package/widget/widget-content-components/widget-empty-label/widget-empty-label.component.d.ts +15 -0
- package/widget/widget-content-components/widget-empty-label/widget-empty-label.component.scss +9 -0
- package/widget/widget-content-components/widget-empty-label/widget-empty-label.module.d.ts +2 -0
- package/widget/widget-content-components/widget-footer-link/widget-footer-link.component.d.ts +5 -0
- package/widget/widget-content-components/widget-footer-link/widget-footer-link.component.scss +8 -0
- package/widget/widget-content-components/widget-footer-link/widget-footer-link.module.d.ts +2 -0
- package/widget/widget-content-components/widget-footer-text/widget-footer-text.component.d.ts +5 -0
- package/widget/widget-content-components/widget-footer-text/widget-footer-text.component.scss +7 -0
- package/widget/widget-content-components/widget-footer-text/widget-footer-text.module.d.ts +2 -0
- package/widget/widget-content-components/widget-header-badge/widget-header-badge.component.d.ts +12 -0
- package/widget/widget-content-components/widget-header-badge/widget-header-badge.component.scss +5 -0
- package/widget/widget-content-components/widget-header-badge/widget-header-badge.module.d.ts +2 -0
- package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.d.ts +5 -0
- package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.d.ts +57 -0
- package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.scss +0 -0
- package/widget/widget-content-components/widget-list-group/widget-list-group.component.d.ts +5 -0
- package/widget/widget-content-components/widget-list-group/widget-list-group.component.scss +0 -0
- package/widget/widget-content-components/widget-list-group/widget-list-group.module.d.ts +2 -0
- package/widget/widget-content-components/widget-table/widget-table.component.d.ts +14 -0
- package/widget/widget-content-components/widget-table/widget-table.component.scss +0 -0
- package/widget/widget-content-components/widget-table/widget-table.module.d.ts +2 -0
- package/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.d.ts +5 -0
- package/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.scss +0 -0
- package/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.d.ts +15 -0
- package/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.scss +5 -0
- package/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.d.ts +5 -0
- package/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.scss +14 -0
- package/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.d.ts +5 -0
- package/widget/widget-content-components/widget-tile/widget-tile.component.d.ts +44 -0
- package/widget/widget-content-components/widget-tile/widget-tile.component.scss +70 -0
- package/widget/widget-content-components/widget-tile/widget-tile.module.d.ts +2 -0
- package/widget/widget-content-components/widget-tile-list/widget-tile-list.component.d.ts +5 -0
- package/widget/widget-content-components/widget-tile-list/widget-tile-list.component.scss +6 -0
- package/widget/widget-content-components/widget-tile-list/widget-tile-list.module.d.ts +2 -0
- package/widget/widget-footer/widget-footer.component.d.ts +5 -0
- package/widget/widget-footer/widget-footer.component.scss +16 -0
- package/widget/widget-registry.models.d.ts +20 -0
- package/widget/widget-registry.service.d.ts +16 -0
- package/widget/widget-token.d.ts +3 -0
- package/widget/widget.module.d.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theseam-ui-common-datatable-dynamic.js","sources":["../../../projects/ui-common/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.ts","../../../projects/ui-common/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.ts","../../../projects/ui-common/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.ts","../../../projects/ui-common/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.ts","../../../projects/ui-common/datatable-dynamic/dynamic-datatable-def.service.ts","../../../projects/ui-common/datatable-dynamic/dynamic-datatable-row-actions.service.ts","../../../projects/ui-common/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.ts","../../../projects/ui-common/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.ts","../../../projects/ui-common/datatable-dynamic/datatable-dynamic-menu-bar-token.ts","../../../projects/ui-common/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.ts","../../../projects/ui-common/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.ts","../../../projects/ui-common/datatable-dynamic/datatable-dynamic.component.ts","../../../projects/ui-common/datatable-dynamic/datatable-dynamic.module.ts","../../../projects/ui-common/datatable-dynamic/theseam-ui-common-datatable-dynamic.ts"],"sourcesContent":["import { DynamicDatatableColumn } from '../../datatable-dynamic-def'\n\nexport function setDynamicDatatableColumnsDefaults(\n columns: DynamicDatatableColumn[]\n) {\n for (const col of columns) {\n if (!col.cellType) {\n col.cellType = 'string'\n }\n }\n}\n","import { DynamicDatatableFilterMenu } from '../../datatable-dynamic-def'\n\nexport function setDynamicDatatableFilterMenuDefaults(\n filterMenu: DynamicDatatableFilterMenu\n) {\n if (!filterMenu.state) {\n filterMenu.state = 'default'\n }\n}\n","import { DynamicDatatableOptions } from '../../datatable-dynamic-def'\n\nexport function setDynamicDatatableOptionsDefaults(\n options: DynamicDatatableOptions\n) {\n if (options.virtualization === undefined || options.virtualization === null) {\n options.virtualization = true\n }\n}\n","import { DatatableDynamicDef } from '../../datatable-dynamic-def'\n\nimport { setDynamicDatatableColumnsDefaults } from './set-dynamic-datatable-columns-defaults'\nimport { setDynamicDatatableFilterMenuDefaults } from './set-dynamic-datatable-filter-menu-defaults'\nimport { setDynamicDatatableOptionsDefaults } from './set-dynamic-datatable-options-defaults'\n\nexport function setDynamicDatatableDefDefaults(\n def: DatatableDynamicDef\n) {\n setDynamicDatatableColumnsDefaults(def.columns)\n\n if (def.filterMenu) {\n setDynamicDatatableFilterMenuDefaults(def.filterMenu)\n }\n\n if (def.options) {\n setDynamicDatatableOptionsDefaults(def.options)\n }\n}\n","import { ComponentType } from '@angular/cdk/portal'\nimport { Inject, Injectable } from '@angular/core'\nimport { BehaviorSubject, combineLatest, Observable, of } from 'rxjs'\nimport { map, shareReplay, switchMap } from 'rxjs/operators'\n\nimport { IDataExporter, THESEAM_DATA_EXPORTER } from '@theseam/ui-common/data-exporter'\nimport { IDataFilter, THESEAM_DATA_FILTER_DEF } from '@theseam/ui-common/data-filters'\nimport { DynamicValueHelperService } from '@theseam/ui-common/dynamic'\nimport { hasProperty, notNullOrUndefined } from '@theseam/ui-common/utils'\n\nimport { DynamicDatatableOptions } from './datatable-dynamic-def'\nimport { DatatableDynamicDef } from './datatable-dynamic-def'\nimport { DynamicDatatableMenuBar } from './models/dynamic-datatable-menu-bar'\nimport { DynamicDatatableFilterMenuItem } from './models/index'\nimport { setDynamicDatatableDefDefaults } from './utils/index'\n\n/**\n * Manages the data defined in the `DatatableDynamicDef`. Simplifies accessing\n * and observing the needed data based on the `DatatableDynamicDef`.\n */\n@Injectable()\nexport class DynamicDatatableDefService {\n\n /**\n * @deprecated\n * @ignore\n */\n private _dataExporters: IDataExporter[]\n\n /**\n * @deprecated\n * @ignore\n */\n private _dataFilters: { name: string, component: ComponentType<IDataFilter> }[]\n\n /** @ignore */\n private readonly _defSubject = new BehaviorSubject<DatatableDynamicDef | undefined>(undefined)\n\n /** Dynamic datatable definition. */\n public readonly def$: Observable<DatatableDynamicDef | undefined>\n\n /**\n * Exporters in the def that are available.\n * @deprecated\n */\n public readonly exporters$: Observable<IDataExporter[]>\n\n /**\n * Filter menu items in the def that are available.\n * @deprecated\n */\n public readonly filterMenuItems$: Observable<DynamicDatatableFilterMenuItem[]>\n\n /**\n * Observes whether the datatable has a filter menu.\n * @deprecated\n */\n public readonly hasFilterMenu$: Observable<boolean>\n\n /** Observes datatable options. */\n public readonly options$: Observable<DynamicDatatableOptions | undefined>\n\n /** Observes the datatable def menu bar. */\n public readonly menuBar$: Observable<DynamicDatatableMenuBar | undefined>\n\n constructor(\n @Inject(THESEAM_DATA_EXPORTER) dataExporters: IDataExporter[],\n @Inject(THESEAM_DATA_FILTER_DEF) dataFilters: { name: string, component: ComponentType<IDataFilter> }[],\n private _valueHelper: DynamicValueHelperService,\n ) {\n this._dataExporters = (dataExporters || [])\n this._dataFilters = (dataFilters || [])\n\n this.def$ = this._defSubject.asObservable()\n\n this.exporters$ = this.def$.pipe(\n map(def => !!def ? this._mapExporters(def) : []),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n\n this.filterMenuItems$ = this.def$.pipe(\n map(def => !!def ? this._mapFilterMenuItems(def) : []),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n\n this.hasFilterMenu$ = this.def$.pipe(\n switchMap(def => {\n if (!def) { return of(false) }\n\n // Check if the visibility can be determined by the state value only.\n if (def.filterMenu && def.filterMenu.state) {\n switch (def.filterMenu.state) {\n case 'always-visible': return of(true)\n case 'hidden': return of(false)\n }\n }\n\n // Check if there is anything to put in the filter menu.\n return combineLatest([\n this.exporters$.pipe(map(e => e.length > 0)),\n this.filterMenuItems$.pipe(map(f => f.length > 0))\n ]).pipe(map(v => v.indexOf(true) !== -1))\n }),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n\n this.options$ = this.def$.pipe(\n map(def => !!def ? def.options : undefined),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n\n this.menuBar$ = this.def$.pipe(\n map(def => (notNullOrUndefined(def) && hasProperty(def, 'menuBar')) ? def.menuBar : undefined),\n // tap(v => console.log('menubar', v)),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n }\n\n /** Sets the `DatatableDynamicDef` that defines the datatable. */\n public setDef(def: DatatableDynamicDef | undefined): void {\n if (def) { setDynamicDatatableDefDefaults(def) }\n this._defSubject.next(def || undefined)\n }\n\n /** Map the def exporters to the provided `IDataExporter` objects. */\n private _mapExporters(def: DatatableDynamicDef): IDataExporter[] {\n if (!def.filterMenu || !Array.isArray(def.filterMenu.exporters)) {\n return []\n }\n\n return def.filterMenu.exporters\n .map(e => this._dataExporters.find(de => de.name === e))\n .filter(notNullOrUndefined)\n }\n\n /** Map the def filter menu items to provided components. */\n private _mapFilterMenuItems(def: DatatableDynamicDef): DynamicDatatableFilterMenuItem[] {\n if (!def.filterMenu || !def.filterMenu.filters || !Array.isArray(def.filterMenu.filters)) {\n return []\n }\n\n return def.filterMenu.filters\n .map(f => {\n const _df = this._dataFilters.find(df => df.name === f.name)\n if (_df) { return { ...f, component: _df.component } }\n })\n .filter(notNullOrUndefined)\n }\n\n}\n","import { Injectable } from '@angular/core'\nimport { from, Observable, of } from 'rxjs'\nimport { map, switchMap, toArray } from 'rxjs/operators'\n\nimport { DynamicValueHelperService } from '@theseam/ui-common/dynamic'\nimport { notNullOrUndefined } from '@theseam/ui-common/utils'\n\nimport { DynamicDatatableRow } from './datatable-dynamic-def'\nimport { DynamicDatatableDefService } from './dynamic-datatable-def.service'\nimport { DynamicDatatableRowAction } from './models/dynamic-datatable-row-action'\nimport { DynamicDatatableRowActionContext } from './models/dynamic-datatable-row-action-context'\n\n@Injectable()\nexport class DynamicDatatableRowActionsService {\n\n constructor(\n private _valueHelper: DynamicValueHelperService,\n private _dynamicDef: DynamicDatatableDefService\n ) { }\n\n /**\n * Observe actions for specified row\n */\n public rowActions(row: DynamicDatatableRow): Observable<DynamicDatatableRowAction[]> {\n return this._dynamicDef.def$.pipe(\n map(def => (def && def.rowActions) ? def.rowActions || [] : []),\n switchMap(rowActions => !!rowActions\n ? from(rowActions).pipe(\n map(rowAction => {\n if (rowAction.hasOwnProperty('hidden')) {\n if (typeof rowAction.hidden === 'boolean') {\n return rowAction.hidden ? undefined : rowAction\n } else {\n const context = this._getRowActionContext(row, rowAction)\n // TODO: Fix async eval\n const isHidden = this._valueHelper.evalSync(rowAction.hidden, context)\n return isHidden ? undefined : rowAction\n }\n }\n return rowAction\n }),\n toArray(),\n map(v => v.filter(notNullOrUndefined))\n )\n : of([])\n )\n )\n }\n\n /** @ignore */\n private _getRowActionContext(row: DynamicDatatableRow, rowActionDef: DynamicDatatableRowAction): DynamicDatatableRowActionContext {\n return {\n row\n }\n }\n\n}\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'\nimport { BehaviorSubject, from, Observable, of } from 'rxjs'\nimport { concatMap, filter, switchMap, toArray } from 'rxjs/operators'\n\nimport { faEllipsisH } from '@fortawesome/free-solid-svg-icons'\n\nimport { DynamicValueHelperService } from '@theseam/ui-common/dynamic'\nimport { hasProperty, notNullOrUndefined } from '@theseam/ui-common/utils'\n\nimport { DynamicDatatableRow } from '../datatable-dynamic-def'\nimport { DynamicDatatableRowActionsService } from '../dynamic-datatable-row-actions.service'\nimport { DynamicDatatableActionMenuElementTypes, DynamicDatatableActionMenuRecord } from '../models/dynamic-datatable-action-menu-record'\nimport { DynamicDatatableRowAction } from '../models/dynamic-datatable-row-action'\nimport { DynamicDatatableRowActionContext } from '../models/dynamic-datatable-row-action-context'\n\n@Component({\n selector: 'seam-datatable-dynamic-action-menu',\n templateUrl: './datatable-dynamic-action-menu.component.html',\n styleUrls: ['./datatable-dynamic-action-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableDynamicActionMenuComponent implements OnInit {\n\n faEllipsisH = faEllipsisH\n\n @Input()\n get row() { return this._row.value }\n set row(value: DynamicDatatableRow | undefined) {\n this._row.next(value || undefined)\n }\n private _row = new BehaviorSubject<DynamicDatatableRow | undefined>(undefined)\n\n @Input()\n get actionDefs() { return this._actionDefs.value }\n set actionDefs(value: DynamicDatatableRowAction[]) {\n this._actionDefs.next(value || [])\n }\n private _actionDefs = new BehaviorSubject<DynamicDatatableRowAction[]>([])\n\n _menuRecords$: Observable<DynamicDatatableActionMenuRecord[]>\n\n /** @ignore */\n _actionMenuPositions = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n ]\n\n constructor(\n private _valueHelper: DynamicValueHelperService,\n private _dynamicRowActions: DynamicDatatableRowActionsService\n ) {\n // this._menuRecords$ = combineLatest([ this._row, this._actionDefs ]).pipe(\n // switchMap(([ row, actionDefs ]) => !!row ? this._mapRecords(row, actionDefs) : of([]))\n // )\n this._menuRecords$ = this._row.pipe(\n switchMap(row => !!row\n ? this._dynamicRowActions.rowActions(row).pipe(\n switchMap(actionDefs => this._mapRecords(row, actionDefs))\n )\n : of([])\n ),\n // tap(v => console.log('actions', v))\n )\n\n // this._menuRecords$.subscribe()\n }\n\n ngOnInit() { }\n\n // TODO: Consider moving this to `DynamicDatatableRowActionsService`.\n private _mapRecords<A extends DynamicDatatableRowAction>(\n row: DynamicDatatableRow,\n actionDefs: A[]\n ): Observable<DynamicDatatableActionMenuRecord[]> {\n return from(actionDefs).pipe(\n concatMap(actionDef => {\n return (async () => {\n const _rowAction: DynamicDatatableRowAction = {\n ...actionDef\n }\n\n const context = this._getRowActionContext(row, actionDef)\n\n if (hasProperty(_rowAction, 'hidden')) {\n _rowAction.hidden = await this._valueHelper.eval(_rowAction.hidden, context)\n if (_rowAction.hidden) {\n return undefined\n }\n }\n\n _rowAction.label = await this._valueHelper.eval(actionDef.label, context)\n\n if (hasProperty(_rowAction, 'disabled')) {\n _rowAction.disabled = await this._valueHelper.eval(_rowAction.disabled, context)\n }\n\n const record: DynamicDatatableActionMenuRecord = {\n _row: row,\n _def: actionDef,\n rowAction: _rowAction,\n elementType: this._expectedElementType(actionDef)\n }\n\n return record\n })()\n }),\n filter(notNullOrUndefined),\n toArray()\n )\n }\n\n /** @ignore */\n private _getRowActionContext(\n row: DynamicDatatableRow,\n rowActionDef: DynamicDatatableRowAction\n ): DynamicDatatableRowActionContext {\n return {\n row\n }\n }\n\n private _expectedElementType(def: DynamicDatatableRowAction): DynamicDatatableActionMenuElementTypes {\n const action = def.action\n\n if (action.type === 'link') {\n if (hasProperty(<any>action, 'asset')) {\n return 'button'\n }\n return 'a'\n }\n\n return 'button'\n }\n\n}\n","import { ComponentPortal, PortalInjector } from '@angular/cdk/portal'\nimport { ChangeDetectionStrategy, Component, Injector, Input, OnInit } from '@angular/core'\n\nimport { THESEAM_DATA_FILTER_OPTIONS } from '@theseam/ui-common/data-filters'\nimport type { ComponentType } from '@theseam/ui-common/models'\n\n@Component({\n selector: 'seam-datatable-dynamic-filter-container',\n templateUrl: './datatable-dynamic-filter-container.component.html',\n styleUrls: ['./datatable-dynamic-filter-container.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableDynamicFilterContainerComponent<C> implements OnInit {\n\n @Input()\n set filterComponent(value: ComponentType<C> | undefined | null) {\n this._filterComponent = value\n // if (this._filterComponent !== value) {\n // this._setPortal(value)\n // }\n }\n get filterComponent() { return this._filterComponent }\n private _filterComponent: ComponentType<C> | undefined | null\n\n @Input() options: any\n\n _portal: ComponentPortal<C> | null = null\n\n constructor(\n private _injector: Injector\n ) { }\n\n ngOnInit() {\n if (this.filterComponent) {\n this._setPortal(this.filterComponent)\n }\n }\n\n private _setPortal(component: ComponentType<C>) {\n if (this._portal) {\n this._portal = null\n }\n\n if (component) {\n this._portal = new ComponentPortal(component, undefined, this._createInjector())\n } else {\n this._portal = null\n }\n }\n\n private _createInjector(): PortalInjector {\n return new PortalInjector(this._injector, new WeakMap <any, any> ([\n [ THESEAM_DATA_FILTER_OPTIONS, this.options ]\n ]))\n }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { IDatatableDynamicMenuBarItemManifest } from './datatable-dynamic-menu-bar-item-manifest'\n\nexport const THESEAM_DATATABLE_DYNAMIC_MENUBAR_ITEM = new InjectionToken<IDatatableDynamicMenuBarItemManifest>(\n 'IDatatableDynamicMenuBarItemManifest'\n)\n","import { ComponentPortal, PortalInjector } from '@angular/cdk/portal'\nimport { ChangeDetectionStrategy, Component, Inject, Injector, Input, OnInit, Optional } from '@angular/core'\nimport { BehaviorSubject, Observable } from 'rxjs'\nimport { map, switchMap } from 'rxjs/operators'\n\nimport { DynamicValueHelperService } from '@theseam/ui-common/dynamic'\nimport { TheSeamDynamicComponentLoader } from '@theseam/ui-common/dynamic-component-loader'\nimport { hasProperty } from '@theseam/ui-common/utils'\n\nimport { IDatatableDynamicMenuBarItemManifest } from '../datatable-dynamic-menu-bar-item-manifest'\nimport { THESEAM_DATATABLE_DYNAMIC_MENUBAR_ITEM } from '../datatable-dynamic-menu-bar-token'\nimport {\n DynamicDatatableMenuBar,\n DynamicDatatableMenuBarColumn,\n DynamicDatatableMenuBarItem,\n DynamicDatatableMenuBarRow,\n DynamicDatatableMenuBarRowLayoutTriColumn\n} from '../models/dynamic-datatable-menu-bar'\n\nexport interface IDatatableDynamicMenuBarContentItem {\n // styles?: string | string[]\n // cssClass?: string | string[]\n portal?: ComponentPortal<{}>\n // component?: string | ComponentType<{}>\n // config?: any\n}\n\nexport interface IDatatableDynamicMenuBarContentColumn {\n styles?: string | string[]\n cssClass?: string | string[]\n items?: IDatatableDynamicMenuBarContentItem[]\n}\n\nexport interface IDatatableDynamicMenuBarContentRowLayoutTriColumn {\n columnLeft?: IDatatableDynamicMenuBarContentColumn\n columnCenter?: IDatatableDynamicMenuBarContentColumn\n columnRight?: IDatatableDynamicMenuBarContentColumn\n}\n\nexport interface IDatatableDynamicMenuBarContentRow {\n styles?: string | string[]\n cssClass?: string | string[]\n priority?: number\n layoutType?: string\n layout?: IDatatableDynamicMenuBarContentRowLayoutTriColumn\n}\n\nexport interface IDatatableDynamicMenuBarContentRowContext {\n row: DynamicDatatableMenuBarRow\n}\n\nexport interface IDatatableDynamicMenuBarContentColumnContext {\n column: DynamicDatatableMenuBarColumn\n row: DynamicDatatableMenuBarRow\n}\n\nexport interface IDatatableDynamicMenuBarContentItemContext {\n item: DynamicDatatableMenuBarItem\n row: DynamicDatatableMenuBarRow\n column: DynamicDatatableMenuBarColumn\n}\n\n@Component({\n selector: 'seam-datatable-dynamic-menu-bar-content',\n templateUrl: './datatable-dynamic-menu-bar-content.component.html',\n styleUrls: ['./datatable-dynamic-menu-bar-content.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableDynamicMenuBarContentComponent implements OnInit {\n\n private readonly _def = new BehaviorSubject<DynamicDatatableMenuBar | undefined>(undefined)\n\n @Input()\n set def(value: DynamicDatatableMenuBar | undefined) { this._def.next(value) }\n get def(): DynamicDatatableMenuBar | undefined { return this._def.value }\n\n public readonly def$: Observable<DynamicDatatableMenuBar | undefined>\n\n readonly _rows$: Observable<IDatatableDynamicMenuBarContentRow[]>\n\n constructor(\n private readonly _valueHelper: DynamicValueHelperService,\n private readonly _dynamicComponentLoader: TheSeamDynamicComponentLoader,\n private readonly _injector: Injector,\n @Optional() @Inject(THESEAM_DATATABLE_DYNAMIC_MENUBAR_ITEM)\n private readonly _menuBarItemManifests?: IDatatableDynamicMenuBarItemManifest[]\n ) {\n this.def$ = this._def.asObservable()\n // .pipe(tap(v => console.log('def$', v)))\n\n this._rows$ = this.def$.pipe(switchMap(def => this._mapRows(def && def.rows || [])))\n // .pipe(tap(v => console.log('_rows$', v)))\n }\n\n ngOnInit() { }\n\n private _mapRows(rows: DynamicDatatableMenuBarRow[]): Promise<IDatatableDynamicMenuBarContentRow[]> {\n return Promise.all(rows.map(r => this._mapRow(r)))\n }\n\n private async _mapRow(row: DynamicDatatableMenuBarRow): Promise<IDatatableDynamicMenuBarContentRow> {\n const result: IDatatableDynamicMenuBarContentRow = { }\n const context = this._createRowContext(row)\n\n if (hasProperty(row, 'styles')) {\n result.styles = await this._valueHelper.eval(row.styles, context)\n }\n\n if (hasProperty(row, 'cssClass')) {\n result.cssClass = await this._valueHelper.eval(row.cssClass, context)\n }\n\n if (hasProperty(row, 'priority')) {\n result.priority = await this._valueHelper.eval(row.priority, context)\n }\n\n result.layoutType = row.layout.type\n result.layout = await this._mapRowLayout(row.layout, row)\n\n return result\n }\n\n private async _mapRowLayout(\n layout: DynamicDatatableMenuBarRowLayoutTriColumn,\n row: DynamicDatatableMenuBarRow\n ): Promise<IDatatableDynamicMenuBarContentRowLayoutTriColumn> {\n const result: IDatatableDynamicMenuBarContentRowLayoutTriColumn = { }\n\n if (hasProperty(layout, 'columnLeft')) {\n result.columnLeft = await this._mapColumn(layout.columnLeft, row)\n }\n\n if (hasProperty(layout, 'columnCenter')) {\n result.columnCenter = await this._mapColumn(layout.columnCenter, row)\n }\n\n if (hasProperty(layout, 'columnRight')) {\n result.columnRight = await this._mapColumn(layout.columnRight, row)\n }\n\n return result\n }\n\n private async _mapColumn(\n column: DynamicDatatableMenuBarColumn,\n row: DynamicDatatableMenuBarRow\n ): Promise<IDatatableDynamicMenuBarContentColumn> {\n const result: IDatatableDynamicMenuBarContentColumn = { }\n const context = this._createColumnContext(column, row)\n\n if (hasProperty(column, 'styles')) {\n result.styles = await this._valueHelper.eval(column.styles, context)\n }\n\n if (hasProperty(column, 'cssClass')) {\n result.cssClass = await this._valueHelper.eval(column.cssClass, context)\n }\n\n result.items = await Promise.all(column.items.map(v => this._mapItem(v, row, column)))\n\n return result\n }\n\n private async _mapItem(\n item: DynamicDatatableMenuBarItem,\n row: DynamicDatatableMenuBarRow,\n column: DynamicDatatableMenuBarColumn\n ): Promise<IDatatableDynamicMenuBarContentItem> {\n const result: IDatatableDynamicMenuBarContentItem = { }\n const context = this._createItemContext(item, row, column)\n\n // if (hasProperty(item, 'styles')) {\n // result.styles = await this._valueHelper.eval(item.styles, context)\n // }\n\n // if (hasProperty(item, 'cssClass')) {\n // result.cssClass = await this._valueHelper.eval(item.cssClass, context)\n // }\n\n if (hasProperty(item, 'component')) {\n // result.component = await this._valueHelper.eval(item.component, context)\n const component = await this._valueHelper.eval(item.component, context)\n\n let data: any\n if (hasProperty(item, 'data')) {\n // result.data = await this._valueHelper.eval(item.data, context)\n // console.log('%cdata', 'color:cyan', item.data)\n data = await this._valueHelper.eval(item.data, context)\n // console.log('%cdata', 'color:limegreen', data)\n }\n\n result.portal = await this._getComponentPortal(component, data)\n }\n\n return result\n }\n\n private _createRowContext(row: DynamicDatatableMenuBarRow): IDatatableDynamicMenuBarContentRowContext {\n return {\n row\n }\n }\n\n private _createColumnContext(\n column: DynamicDatatableMenuBarColumn,\n row: DynamicDatatableMenuBarRow\n ): IDatatableDynamicMenuBarContentColumnContext {\n return {\n row,\n column\n }\n }\n\n private _createItemContext(\n item: DynamicDatatableMenuBarItem,\n row: DynamicDatatableMenuBarRow,\n column: DynamicDatatableMenuBarColumn\n ): IDatatableDynamicMenuBarContentItemContext {\n return {\n item,\n row,\n column\n }\n }\n\n private async _getComponentPortal(component: string, data?: any): Promise<ComponentPortal<{}> | undefined> {\n const manifest = (this._menuBarItemManifests || []).find(m => m.name === component)\n\n if (!manifest) {\n // TODO: Make sure the component is skipped instead of erroring outside of dev mode.\n throw Error(`MenuBar manifest for '${component}' not found.`)\n }\n\n // TODO: Create a new injector with the data injected\n let injector = this._injector\n if (manifest.dataToken) {\n injector = new PortalInjector(this._injector, new WeakMap([\n [manifest.dataToken, data]\n ]))\n }\n\n if (typeof manifest.component === 'string') {\n this._dynamicComponentLoader.getComponentFactory<{}>(manifest.component).pipe(\n map(componentFactory => {\n return new ComponentPortal(\n componentFactory.componentType,\n null,\n injector,\n (<any /* ComponentFactoryBoundToModule */>componentFactory).ngModule.componentFactoryResolver\n )\n })\n ).toPromise()\n } else {\n return new ComponentPortal(manifest.component, null, injector, null)\n }\n }\n\n}\n","import { LocationStrategy } from '@angular/common'\nimport {\n Attribute,\n Directive,\n ElementRef,\n Input,\n isDevMode,\n OnChanges,\n OnDestroy,\n OnInit,\n Renderer2\n} from '@angular/core'\nimport { ActivatedRoute, QueryParamsHandling, Router, RouterLink, RouterLinkWithHref } from '@angular/router'\nimport { from, fromEvent, Observable, of, ReplaySubject, Subscription } from 'rxjs'\nimport { catchError, mapTo, switchMap, tap } from 'rxjs/operators'\n\nimport { AssetReaderHelperService } from '@theseam/ui-common/asset-reader'\nimport {\n DynamicActionHelperService,\n DynamicActionUiAnchorDef,\n DynamicActionUiButtonDef,\n DynamicActionUiDef,\n DynamicValueHelperService\n} from '@theseam/ui-common/dynamic'\nimport { getAttribute, hasProperty, toggleAttribute } from '@theseam/ui-common/utils'\n\nimport { DynamicDatatableRow } from '../datatable-dynamic-def'\nimport type { DynamicDatatableActionMenuRecord } from '../models/dynamic-datatable-action-menu-record'\nimport { DynamicDatatableRowAction } from '../models/dynamic-datatable-row-action'\nimport { DynamicDatatableRowActionContext } from '../models/dynamic-datatable-row-action-context'\n\n/**\n * Class to act as a substitute to `routerLink` directive until the menu items\n * can be dynamically built in a clean way with or without `routerLink`.\n */\nexport class DatatableDynamicActionMenuItemRouterLink {\n\n private _rLink?: RouterLink\n private _rLinkWithHref?: RouterLinkWithHref\n\n // private _clickSubscription?: Subscription\n private _rLinkClickEventListener?: any\n\n constructor(\n private router: Router,\n private route: ActivatedRoute,\n @Attribute('tabindex') tabIndex: string | null,\n private renderer: Renderer2,\n private el: ElementRef,\n private locationStrategy: LocationStrategy\n ) {\n if (el.nativeElement.nodeName.toLowerCase() === 'a') {\n this._rLinkWithHref = new RouterLinkWithHref(\n router,\n route,\n locationStrategy\n )\n // console.log('rLinkWithHref', this.rLinkWithHref)\n\n this._rLinkClickEventListener = this.el.nativeElement.addEventListener('click', (event: MouseEvent) => {\n // console.log('this._rLinkWithHref', this._rLinkWithHref, this._rLinkWithHref && this._rLinkWithHref.href)\n if (this._rLinkWithHref) {\n return this._rLinkWithHref.onClick(event.button, event.ctrlKey, event.shiftKey, event.altKey, event.metaKey)\n }\n })\n } else {\n this._rLink = new RouterLink(\n router,\n route,\n tabIndex as string,\n renderer,\n el\n )\n // console.log('rLink', this.rLink)\n\n this._rLinkClickEventListener = this.el.nativeElement.addEventListener('click', () => {\n // console.log('this._rLink', this._rLink && this._rLink.urlTree)\n if (this._rLink) { return this._rLink.onClick() }\n })\n\n // this._clickSubscription = fromEvent(el.nativeElement, 'click')\n // .subscribe(() => {\n // if (this._rLink) {\n // this._rLink.onClick()\n // } else {\n // if (this._clickSubscription && !this._clickSubscription.closed) {\n // this._clickSubscription.unsubscribe()\n // }\n // }\n // })\n }\n }\n\n get routerLink(): RouterLink | undefined { return this._rLink }\n get routerLinkWithHref(): RouterLinkWithHref | undefined { return this._rLinkWithHref }\n\n set routerLinkInput(commands: any[] | string) {\n if (this._rLink) {\n this._rLink.routerLink = commands\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.routerLink = commands\n }\n }\n\n set queryParams(value: { [k: string]: any }) {\n if (this._rLink) {\n this._rLink.queryParams = value\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.queryParams = value\n }\n }\n\n set fragment(value: string) {\n if (this._rLink) {\n this._rLink.fragment = value\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.fragment = value\n }\n }\n\n set queryParamsHandling(value: QueryParamsHandling) {\n if (this._rLink) {\n this._rLink.queryParamsHandling = value\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.queryParamsHandling = value\n }\n }\n\n set preserveFragment(value: boolean) {\n if (this._rLink) {\n this._rLink.preserveFragment = value\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.preserveFragment = value\n }\n }\n\n set skipLocationChange(value: boolean) {\n if (this._rLink) {\n this._rLink.skipLocationChange = value\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.skipLocationChange = value\n }\n }\n\n set replaceUrl(value: boolean) {\n if (this._rLink) {\n this._rLink.replaceUrl = value\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.replaceUrl = value\n }\n }\n\n set state(value: { [k: string]: any }) {\n if (this._rLink) {\n this._rLink.state = value\n } else if (this._rLinkWithHref) {\n this._rLinkWithHref.state = value\n }\n }\n\n set target(value: string | undefined) {\n if (this._rLinkWithHref) {\n this._rLinkWithHref.target = value as string\n\n if (value) {\n this.renderer.setAttribute(this.el.nativeElement, 'target', value)\n } else {\n toggleAttribute(this.el.nativeElement, 'target', false)\n }\n }\n }\n\n public destroy() {\n // if (this._clickSubscription && !this._clickSubscription.closed) {\n // this._clickSubscription.unsubscribe()\n // }\n if (this._rLinkClickEventListener) {\n this.el.nativeElement.removeEventListener('click', this._rLinkClickEventListener)\n this._rLinkClickEventListener = null\n }\n\n if (this._rLinkWithHref && this._rLinkWithHref.ngOnDestroy) {\n this._rLinkWithHref.ngOnDestroy()\n }\n }\n\n}\n\n// TODO: Refactor this directive. It got way more complex instead of more\n// simplified like it was supposed to be.\n@Directive({\n selector: '[seamDatatableDynamicActionMenuItem]',\n exportAs: 'seamDatatableDynamicActionMenuItem'\n})\nexport class DatatableDynamicActionMenuItemDirective implements OnInit, OnDestroy, OnChanges {\n\n @Input()\n // get seamDatatableDynamicActionMenuItem(): DynamicDatatableActionMenuRecord { return this._record }\n set seamDatatableDynamicActionMenuItem(value: DynamicDatatableActionMenuRecord) {\n this._record.next(value)\n }\n private _record = new ReplaySubject<DynamicDatatableActionMenuRecord>(1)\n\n private _clickSubscription?: Subscription\n private _menuRouterLink?: DatatableDynamicActionMenuItemRouterLink\n\n private _recordSubscription = Subscription.EMPTY\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n private _renderer: Renderer2,\n private _valueHelper: DynamicValueHelperService,\n private _actionHelper: DynamicActionHelperService,\n private _assetReaderHelper: AssetReaderHelperService,\n private _router: Router,\n private _route: ActivatedRoute,\n private _locationStrategy: LocationStrategy\n ) {\n this._recordSubscription = this._record.pipe(\n // tap(v => console.log('record', v)),\n switchMap(record => this._update(record)),\n tap(() => { this._setInvalidActionState(false) }),\n catchError(error => {\n if (isDevMode()) { console.error(error) }\n this._setInvalidActionState(true)\n return of(undefined)\n }),\n // tap(v => console.log('record DONE', v))\n ).subscribe()\n }\n\n ngOnInit() { }\n\n ngOnDestroy() {\n this._recordSubscription.unsubscribe()\n this._unsubClick()\n if (this._menuRouterLink && this._menuRouterLink.routerLinkWithHref) {\n this._menuRouterLink.routerLinkWithHref.ngOnDestroy()\n }\n }\n\n ngOnChanges(changes: {}) {\n // console.log('ngOnChanges', changes, this, this._menuRouterLink)\n if (this._menuRouterLink && this._menuRouterLink.routerLinkWithHref) {\n this._menuRouterLink.routerLinkWithHref.ngOnChanges({})\n if (this._menuRouterLink.routerLinkWithHref.href) {\n if (getAttribute(this._elementRef.nativeElement, 'href') !== this._menuRouterLink.routerLinkWithHref.href) {\n this._renderer.setAttribute(this._elementRef.nativeElement, 'href', this._menuRouterLink.routerLinkWithHref.href)\n }\n } else {\n toggleAttribute(this._elementRef.nativeElement, 'href', false)\n }\n }\n }\n\n public _update(record: DynamicDatatableActionMenuRecord): Observable<void> {\n this._unsubClick()\n\n return from(this._getUiProps(record)).pipe(\n switchMap(uiProps => this._isAnchor()\n ? this._updateAnchorElement(record, uiProps as DynamicActionUiAnchorDef)\n : this._updateButtonElement(record, uiProps as DynamicActionUiButtonDef)\n )\n )\n }\n\n private _updateAnchorElement(\n record: DynamicDatatableActionMenuRecord,\n uiProps: DynamicActionUiAnchorDef\n ): Observable<void> {\n const _stream: Observable<any> = of(undefined)\n\n switch (uiProps.triggerType) {\n case 'link': {\n // console.log('Handle \"link\" triggerType.', uiProps)\n // this._tryInitTabIndex()\n this._tryInitBlockClick(record, uiProps)\n this._initMenuItemRouterLink(record, uiProps)\n\n break\n }\n case 'link-external': {\n // console.log('Handle \"link-external\" triggerType.', uiProps)\n // this._tryInitTabIndex()\n this._tryInitBlockClick(record, uiProps)\n if (hasProperty(uiProps, 'linkUrl')) {\n this._setAttr('href', uiProps.linkUrl)\n }\n if (hasProperty(uiProps, 'linkExtras')) {\n if (hasProperty(uiProps.linkExtras, 'target')) {\n this._setAttr('target', uiProps.linkExtras.target)\n }\n }\n // TODO: Consider making the ItemRouterLink work with external urls.\n // this._initMenuItemRouterLink(record, uiProps)\n\n break\n }\n // TODO: Unless we decide to add a route for openning assets, this would\n // be confusing to a user.\n // case 'link-asset': {\n // console.log('Handle \"link-asset\" triggerType.', uiProps)\n // // this._tryInitTabIndex()\n // this._tryInitBlockClick(record, uiProps)\n // break\n // }\n default: throw Error('[DatatableDynamicActionMenuItemDirective] ' +\n `triggerType ${uiProps.triggerType} is not valid for _updateAnchorElement().`)\n }\n\n return _stream// .pipe(mapTo(undefined))\n }\n\n private _updateButtonElement(\n record: DynamicDatatableActionMenuRecord,\n uiProps: DynamicActionUiAnchorDef | DynamicActionUiButtonDef\n ): Observable<void> {\n let _stream: Observable<any> = of(undefined)\n // this._updateClickElement(record, uiProps as DynamicActionUiButtonDef)\n switch (uiProps.triggerType) {\n case 'link-asset': {\n // console.log('Handle \"link-asset\" triggerType.', uiProps)\n // this._tryInitTabIndex()\n this._tryInitBlockClick(record, uiProps)\n _stream = _stream.pipe(switchMap(() => this._updateAssetElement(record, uiProps)))\n break\n }\n case 'click': {\n // console.log('Handle \"click\" triggerType.', uiProps)\n this._tryInitBlockClick(record, uiProps)\n _stream = _stream.pipe(switchMap(() => this._updateClickElement(record, uiProps)))\n break\n }\n default: throw Error('[DatatableDynamicActionMenuItemDirective] ' +\n `triggerType ${uiProps.triggerType} is not valid for _updateAnchorElement().`)\n }\n\n return _stream// .pipe(mapTo(undefined))\n }\n\n private _updateAssetElement(\n record: DynamicDatatableActionMenuRecord,\n uiProps: DynamicActionUiAnchorDef | DynamicActionUiButtonDef\n ): Observable<void> {\n // console.log('_updateAssetElement')\n // return of(undefined)\n // console.log('this._elementRef.nativeElement', this._elementRef.nativeElement)\n const t = fromEvent(this._elementRef.nativeElement, 'click').pipe(\n tap(event => {\n // const _context = this._getContext(record._row, record.rowAction)\n // const context = { ..._context, event, uiProps }\n // const result = this._valueHelper.evalSync(uiProps.blockClickExpr, context)\n // console.log(record, uiProps)\n // console.log('_updateClickElement click', (<any>event).button, event)\n if (this._assetReaderHelper) {\n if (uiProps.triggerType === 'link-asset' && hasProperty(uiProps, 'linkUrl')) {\n const url = uiProps.linkUrl\n let target: string | undefined\n if (hasProperty(uiProps, 'linkExtras') && hasProperty(uiProps.linkExtras, 'target')) {\n target = uiProps.linkExtras.target\n }\n this._assetReaderHelper.openLink(url, true, true, target)\n }\n }\n // if (!result) {\n // event.preventDefault()\n // event.stopPropagation()\n // }\n }),\n mapTo(undefined)\n )\n\n return of(undefined).pipe(\n // tap(() => console.log('starting _updateButtonElement')),\n switchMap(() => t),\n )\n }\n\n private _updateClickElement(\n record: DynamicDatatableActionMenuRecord,\n uiProps: DynamicActionUiButtonDef\n ): Observable<void> {\n // console.log('_updateClickElement', record, uiProps)\n // return of(undefined)\n return fromEvent(this._elementRef.nativeElement, 'click').pipe(\n switchMap(event => {\n const _context = this._getContext(record._row, record.rowAction)\n const context = { ..._context, event, uiProps }\n // console.log('click', (<any>event).button, event)\n // if (!result) {\n // event.preventDefault()\n // event.stopPropagation()\n // }\n\n return this._actionHelper.exec(uiProps._actionDef, context)\n }),\n mapTo(undefined)\n )\n }\n\n private _unsubClick() {\n if (this._clickSubscription && !this._clickSubscription.closed) {\n this._clickSubscription.unsubscribe()\n }\n }\n\n private _setAttr(attr: string, value: string) {\n this._renderer.setAttribute(this._elementRef.nativeElement, attr, value)\n }\n\n private _tryInitTabIndex() {\n if (getAttribute(this._elementRef.nativeElement, 'tabindex') === null) {\n this._renderer.setAttribute(this._elementRef.nativeElement, 'tabindex', '0')\n }\n }\n\n private _tryInitBlockClick(\n record: DynamicDatatableActionMenuRecord,\n uiProps: DynamicActionUiDef\n ) {\n this._unsubClick()\n if (hasProperty(uiProps, 'blockClickExpr')) {\n this._clickSubscription = this._blockClickExprObservable(uiProps, record).subscribe()\n }\n }\n\n private _blockClickExprObservable(\n uiProps: DynamicActionUiDef,\n record: DynamicDatatableActionMenuRecord\n ) {\n return fromEvent(this._elementRef.nativeElement, 'click').pipe(\n tap(event => {\n const _context = this._getContext(record._row, record.rowAction)\n const context = { ..._context, event, uiProps }\n const result = this._valueHelper.evalSync(uiProps.blockClickExpr, context)\n // console.log('click', result, (<any>event).button, event)\n if (!result) {\n event.preventDefault()\n event.stopPropagation()\n }\n }),\n mapTo(undefined)\n )\n }\n\n private _initMenuItemRouterLink(\n record: DynamicDatatableActionMenuRecord,\n uiProps: DynamicActionUiAnchorDef\n ) {\n this._menuRouterLink = new DatatableDynamicActionMenuItemRouterLink(\n this._router,\n this._route,\n getAttribute(this._elementRef.nativeElement, 'tabindex'),\n this._renderer,\n this._elementRef,\n this._locationStrategy\n )\n // console.log(this._menuRouterLink)\n\n this._menuRouterLink.routerLinkInput = uiProps.linkUrl as string\n\n if (hasProperty(uiProps, 'linkExtras')) {\n if (hasProperty(uiProps.linkExtras, 'target')) {\n this._menuRouterLink.target = uiProps.linkExtras.target\n }\n if (hasProperty(uiProps.linkExtras, 'queryParams')) {\n this._menuRouterLink.queryParams = uiProps.linkExtras.queryParams\n }\n if (hasProperty(uiProps.linkExtras, 'fragment')) {\n this._menuRouterLink.fragment = uiProps.linkExtras.fragment\n }\n if (hasProperty(uiProps.linkExtras, 'queryParamsHandling')) {\n this._menuRouterLink.queryParamsHandling = uiProps.linkExtras.queryParamsHandling\n }\n if (hasProperty(uiProps.linkExtras, 'preserveFragment')) {\n this._menuRouterLink.preserveFragment = uiProps.linkExtras.preserveFragment\n }\n if (hasProperty(uiProps.linkExtras, 'skipLocationChange')) {\n this._menuRouterLink.skipLocationChange = uiProps.linkExtras.skipLocationChange\n }\n if (hasProperty(uiProps.linkExtras, 'replaceUrl')) {\n this._menuRouterLink.replaceUrl = uiProps.linkExtras.replaceUrl\n }\n if (hasProperty(uiProps.linkExtras, 'state')) {\n this._menuRouterLink.state = uiProps.linkExtras.state\n }\n }\n\n this.ngOnChanges({})\n }\n\n private _isAnchor(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a'\n }\n\n private _getUiProps(record: DynamicDatatableActionMenuRecord): Promise<DynamicActionUiDef> {\n const context = this._getContext(record._row, record.rowAction)\n return this._actionHelper.getUiProps(record.rowAction.action, context)\n }\n\n /** @ignore */\n private _getContext(row: DynamicDatatableRow, rowActionDef: DynamicDatatableRowAction): DynamicDatatableRowActionContext {\n return {\n row\n }\n }\n\n private _setInvalidActionState(invalid: boolean = false) {\n const element = this._elementRef.nativeElement\n toggleAttribute(element, 'disabled', invalid)\n }\n\n}\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'\nimport { Observable } from 'rxjs'\nimport { map } from 'rxjs/operators'\n\nimport { IDataExporter } from '@theseam/ui-common/data-exporter'\n\nimport {\n DatatableDynamicDef,\n DynamicDatatableOptions\n} from './datatable-dynamic-def'\nimport { DynamicDatatableDefService } from './dynamic-datatable-def.service'\nimport { DynamicDatatableRowActionsService } from './dynamic-datatable-row-actions.service'\nimport { DynamicDatatableFilterMenuItem } from './models/dynamic-datatable-filter-menu-item'\nimport { DynamicDatatableMenuBar } from './models/dynamic-datatable-menu-bar'\n\n/**\n * # EXPERIMENTAL\n *\n * NOTE: This component is still experimental. When stable all standard\n * datatables must use this component, unless there is a good reason not to, in\n * our apps.\n *\n * ----------------------------------------------------------------------------\n *\n * Datatable that is built from a json definition.\n *\n * All standard datatables in our apps must use this component, unless there is\n * a good reason not to. If a standard datatable does not use this component\n * then an explaination comment needs to be clearly provided in the code to\n * avoid getting migrated to this component.\n *\n * A few reasons this component should to be used:\n * - We can, more easily, control what a datatable in our app does by requiring\n * the definition follow a json schema, instead of having full scripting\n * access available to the developer.\n * + By using json we can maintain the tables from any external app/language\n * that can produce a json string.\n * + More scripting access often leads to different hacks across the tables\n * that should have just been supported by this component if it is a feature\n * a datatable should be able to do in an app of ours.\n * - We can allow any of our tables to be configured by the server.\n * + By supporting configuration on the server we can change the tables\n * without a new build and do things like allowing non-developers/clients to\n * maintain the tables functionality.\n */\n@Component({\n selector: 'seam-datatable-dynamic',\n templateUrl: './datatable-dynamic.component.html',\n styleUrls: ['./datatable-dynamic.component.scss'],\n providers: [\n DynamicDatatableDefService,\n DynamicDatatableRowActionsService\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableDynamicComponent implements OnInit {\n\n /** The `DatatableDynamicDef` that defines the datatable. */\n @Input() set def(value: DatatableDynamicDef | undefined | null) {\n this._dynamicDef.setDef(value || undefined)\n }\n\n /**\n * Observes whether the datatable has a def.\n * @ignore\n */\n _hasDef$: Observable<boolean>\n\n /**\n * Observes whether the datatable has a menu bar.\n */\n menuBar$: Observable<DynamicDatatableMenuBar | undefined>\n\n /**\n * The available exporters.\n * @ignore\n */\n _exporters$: Observable<IDataExporter[]>\n\n /**\n * The 'common' type filter menu items.\n * @ignore\n */\n _commonFilterMenuItems$: Observable<DynamicDatatableFilterMenuItem[]>\n\n /**\n * Observes whether the datatable has a 'full-search' menu item.\n * @ignore\n */\n _hasFullSearch$: Observable<boolean>\n\n /**\n * Observes whether the datatable has a filter menu.\n * @ignore\n */\n _hasFilterMenu$: Observable<boolean>\n\n /**\n * Observes datatable options.\n * @ignore\n */\n _options$: Observable<DynamicDatatableOptions | undefined>\n\n /**\n * TODO: Implement def columns parser.\n * @ignore\n */\n _tmp_columns$: Observable<any>\n\n /**\n * TODO: Implement def rows parser.\n * @ignore\n */\n _tmp_rows$: Observable<any>\n\n constructor(\n private readonly _dynamicDef: DynamicDatatableDefService\n ) {\n this._hasDef$ = this._dynamicDef.def$.pipe(map(def => !!def))\n\n this.menuBar$ = this._dynamicDef.menuBar$\n\n this._exporters$ = this._dynamicDef.exporters$\n\n this._commonFilterMenuItems$ = this._dynamicDef.filterMenuItems$\n .pipe(map(f => f.filter(_f => _f.type === 'common')))\n\n this._hasFullSearch$ = this._dynamicDef.filterMenuItems$\n .pipe(map(f => !!f.find(_f => _f.type === 'full-search')))\n\n this._hasFilterMenu$ = this._dynamicDef.hasFilterMenu$\n\n this._options$ = this._dynamicDef.options$\n\n this._tmp_columns$ = this._dynamicDef.def$.pipe(\n map(def => def ? def.columns : [])\n )\n\n this._tmp_rows$ = this._dynamicDef.def$.pipe(\n map(def => def ? def.rows : []),\n // tap(v => console.log('_tmp_rows$', v))\n )\n }\n\n /** @ignore */\n ngOnInit() { }\n\n}\n","import { PortalModule } from '@angular/cdk/portal'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { RouterModule } from '@angular/router'\n\nimport { TheSeamButtonsModule } from '@theseam/ui-common/buttons'\nimport { TheSeamDataExporterModule } from '@theseam/ui-common/data-exporter'\nimport { TheSeamDataFiltersModule } from '@theseam/ui-common/data-filters'\nimport { TheSeamDatatableModule } from '@theseam/ui-common/datatable'\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\nimport { TheSeamMenuModule } from '@theseam/ui-common/menu'\nimport { TheSeamSharedModule } from '@theseam/ui-common/shared'\nimport { TheSeamTableCellTypesModule } from '@theseam/ui-common/table-cell-types'\n\nimport { DatatableDynamicActionMenuComponent } from './datatable-dynamic-action-menu/datatable-dynamic-action-menu.component'\nimport { DatatableDynamicFilterContainerComponent } from './datatable-dynamic-filter-container/datatable-dynamic-filter-container.component'\nimport { DatatableDynamicMenuBarContentComponent } from './datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component'\nimport { DatatableDynamicComponent } from './datatable-dynamic.component'\nimport { DatatableDynamicActionMenuItemDirective } from './directives/datatable-dynamic-action-menu-item.directive'\n\n@NgModule({\n declarations: [\n DatatableDynamicComponent,\n DatatableDynamicFilterContainerComponent,\n DatatableDynamicActionMenuComponent,\n DatatableDynamicActionMenuItemDirective,\n DatatableDynamicMenuBarContentComponent,\n ],\n imports: [\n CommonModule,\n TheSeamSharedModule,\n TheSeamDatatableModule,\n TheSeamTableCellTypesModule,\n TheSeamDataExporterModule,\n TheSeamDataFiltersModule,\n TheSeamIconModule,\n PortalModule,\n RouterModule,\n TheSeamMenuModule,\n TheSeamButtonsModule\n ],\n exports: [\n DatatableDynamicComponent,\n TheSeamDatatableModule,\n DatatableDynamicActionMenuItemDirective\n ]\n})\nexport class TheSeamDatatableDynamicModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;SAEgB,kCAAkC,CAChD,OAAiC;IAEjC,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE;QACzB,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE;YACjB,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAA;SACxB;KACF;AACH;;SCRgB,qCAAqC,CACnD,UAAsC;IAEtC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE;QACrB,UAAU,CAAC,KAAK,GAAG,SAAS,CAAA;KAC7B;AACH;;SCNgB,kCAAkC,CAChD,OAAgC;IAEhC,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE;QAC3E,OAAO,CAAC,cAAc,GAAG,IAAI,CAAA;KAC9B;AACH;;SCFgB,8BAA8B,CAC5C,GAAwB;IAExB,kCAAkC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAE/C,IAAI,GAAG,CAAC,UAAU,EAAE;QAClB,qCAAqC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;KACtD;IAED,IAAI,GAAG,CAAC,O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AAW,CAAC,IAAI,CAAC,IAAI,CAC7C,GAAG,CAAC,GAAG,IAAI,GAAG,GAAG,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC,CACnC,CAAA;QAED,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAC1C,GAAG,CAAC,GAAG,IAAI,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,CAEhC,CAAA;KACF;;IApFD,IAAa,GAAG,CAAC,KAA6C;QAC5D,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,CAAA;KAC5C;;IAqFD,QAAQ,MAAM;;;YApGf,SAAS,SAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,4qDAAiD;gBAEjD,SAAS,EAAE;oBACT,0BAA0B;oBAC1B,iCAAiC;iBAClC;gBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YA5CQ,0BAA0B;;;kBAgDhC,KAAK;;;MCXK,6BAA6B;;;YA3BzC,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,yBAAyB;oBACzB,wCAAwC;oBACxC,mCAAmC;oBACnC,uCAAuC;oBACvC,uCAAuC;iBACxC;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,mBAAmB;oBACnB,sBAAsB;oBACtB,2BAA2B;oBAC3B,yBAAyB;oBACzB,wBAAwB;oBACxB,iBAAiB;oBACjB,YAAY;oBACZ,YAAY;oBACZ,iBAAiB;oBACjB,oBAAoB;iBACrB;gBACD,OAAO,EAAE;oBACP,yBAAyB;oBACzB,sBAAsB;oBACtB,uCAAuC;iBACxC;aACF;;;AC9CD;;;;;;"}
|
|
@@ -0,0 +1,1714 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import { trigger, transition, style, animate } from '@angular/animations';
|
|
3
|
+
import { coerceArray } from '@angular/cdk/coercion';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ContentChildren, Directive, TemplateRef, Injectable, ContentChild, Self, Inject, forwardRef, InjectionToken, isDevMode, Optional, KeyValueDiffers, ViewChild, ElementRef, HostBinding, ViewContainerRef, HostListener, NgZone, NgModule } from '@angular/core';
|
|
6
|
+
import { BehaviorSubject, of, Subject, Subscription, isObservable, combineLatest } from 'rxjs';
|
|
7
|
+
import { switchMap, map, startWith, shareReplay, take, tap, concatMap, takeUntil, catchError } from 'rxjs/operators';
|
|
8
|
+
import { DataSource, isDataSource } from '@angular/cdk/collections';
|
|
9
|
+
import { faEllipsisH, faChevronDown, faChevronRight, faSpinner, faColumns, faFileDownload } from '@fortawesome/free-solid-svg-icons';
|
|
10
|
+
import { setColumnDefaults, ColumnMode, SortType, translateTemplates, DatatableComponent as DatatableComponent$1, DatatableRowDetailDirective, NgxDatatableModule, ScrollbarHelper } from '@marklb/ngx-datatable';
|
|
11
|
+
import { InputBoolean, InputNumber } from '@theseam/ui-common/core';
|
|
12
|
+
import { THESEAM_DATA_FILTER, THESEAM_DATA_FILTER_CONTAINER, composeDataFilterStates, composeDataFilters } from '@theseam/ui-common/data-filters';
|
|
13
|
+
import { notNullOrUndefined, hasProperty, observeControlValue } from '@theseam/ui-common/utils';
|
|
14
|
+
import { Router, RouterModule } from '@angular/router';
|
|
15
|
+
import { SeamConfirmDialogService, TheSeamConfirmDialogModule } from '@theseam/ui-common/confirm-dialog';
|
|
16
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
17
|
+
import { ToastrService, ToastrModule } from 'ngx-toastr';
|
|
18
|
+
import { DynamicValueHelperService, THESEAM_DYNAMIC_DATA } from '@theseam/ui-common/dynamic';
|
|
19
|
+
import { TheSeamLoadingOverlayService, TheSeamLoadingModule } from '@theseam/ui-common/loading';
|
|
20
|
+
import { HttpClient } from '@angular/common/http';
|
|
21
|
+
import { TheSeamDynamicComponentLoader } from '@theseam/ui-common/dynamic-component-loader';
|
|
22
|
+
import { Modal } from '@theseam/ui-common/modal';
|
|
23
|
+
import { ESCAPE } from '@angular/cdk/keycodes';
|
|
24
|
+
import { Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
25
|
+
import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
26
|
+
import { OverlayScrollbarsService } from '@theseam/ui-common/scrollbar';
|
|
27
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
28
|
+
import { CommonModule } from '@angular/common';
|
|
29
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
30
|
+
import { TheSeamButtonsModule } from '@theseam/ui-common/buttons';
|
|
31
|
+
import { TheSeamCheckboxModule } from '@theseam/ui-common/checkbox';
|
|
32
|
+
import { TheSeamFormFieldModule } from '@theseam/ui-common/form-field';
|
|
33
|
+
import { TheSeamIconModule } from '@theseam/ui-common/icon';
|
|
34
|
+
import { TheSeamMenuModule } from '@theseam/ui-common/menu';
|
|
35
|
+
import { TheSeamPopoverModule } from '@theseam/ui-common/popover';
|
|
36
|
+
import { TheSeamSharedModule } from '@theseam/ui-common/shared';
|
|
37
|
+
import { TheSeamTableCellTypeModule } from '@theseam/ui-common/table-cell-type';
|
|
38
|
+
|
|
39
|
+
class DatatableDataSource extends DataSource {
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
this._datatableSubject = new BehaviorSubject(undefined);
|
|
43
|
+
this.sorts$ = this._datatableSubject.pipe(switchMap(_datatable => {
|
|
44
|
+
if (!_datatable) {
|
|
45
|
+
return of([]);
|
|
46
|
+
}
|
|
47
|
+
return _datatable.sort.pipe(map(v => v.sorts), startWith(_datatable.sorts));
|
|
48
|
+
}));
|
|
49
|
+
this.filterStates$ = this._datatableSubject.pipe(switchMap(_datatable => {
|
|
50
|
+
if (!_datatable) {
|
|
51
|
+
return of([]);
|
|
52
|
+
}
|
|
53
|
+
return _datatable.filterStates;
|
|
54
|
+
}));
|
|
55
|
+
this.page$ = this._datatableSubject.pipe(switchMap(_datatable => {
|
|
56
|
+
if (!_datatable) {
|
|
57
|
+
return of({
|
|
58
|
+
offset: 0,
|
|
59
|
+
pageSize: 0,
|
|
60
|
+
limit: undefined,
|
|
61
|
+
count: 0
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return _datatable.page.pipe(startWith(_datatable.pageInfo));
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
// connect(): Observable<readonly TRow[]> {
|
|
68
|
+
// return this.
|
|
69
|
+
// }
|
|
70
|
+
// disconnect(): void {
|
|
71
|
+
// throw new Error('Method not implemented.')
|
|
72
|
+
// }
|
|
73
|
+
setDatatableAccessor(accessor) {
|
|
74
|
+
this._datatableSubject.next(accessor);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
class DatatableActionMenuItemComponent {
|
|
79
|
+
constructor() {
|
|
80
|
+
this.click = new EventEmitter();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
DatatableActionMenuItemComponent.decorators = [
|
|
84
|
+
{ type: Component, args: [{
|
|
85
|
+
selector: 'seam-datatable-action-menu-item',
|
|
86
|
+
template: ``,
|
|
87
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
88
|
+
},] }
|
|
89
|
+
];
|
|
90
|
+
DatatableActionMenuItemComponent.propDecorators = {
|
|
91
|
+
label: [{ type: Input }],
|
|
92
|
+
href: [{ type: Input, args: ['attr.href',] }],
|
|
93
|
+
target: [{ type: Input }],
|
|
94
|
+
queryParams: [{ type: Input }],
|
|
95
|
+
fragment: [{ type: Input }],
|
|
96
|
+
queryParamsHandling: [{ type: Input }],
|
|
97
|
+
preserveFragment: [{ type: Input }],
|
|
98
|
+
skipLocationChange: [{ type: Input }],
|
|
99
|
+
replaceUrl: [{ type: Input }],
|
|
100
|
+
state: [{ type: Input }],
|
|
101
|
+
routerLink: [{ type: Input }],
|
|
102
|
+
confirmDialog: [{ type: Input }],
|
|
103
|
+
disabled: [{ type: Input }],
|
|
104
|
+
click: [{ type: Output }]
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
class DatatableActionMenuComponent {
|
|
108
|
+
constructor(_confirmDialog, _router) {
|
|
109
|
+
this._confirmDialog = _confirmDialog;
|
|
110
|
+
this._router = _router;
|
|
111
|
+
this.faEllipsisH = faEllipsisH;
|
|
112
|
+
/** @ignore */
|
|
113
|
+
this._actionMenuPositions = [
|
|
114
|
+
{
|
|
115
|
+
originX: 'start',
|
|
116
|
+
originY: 'bottom',
|
|
117
|
+
overlayX: 'end',
|
|
118
|
+
overlayY: 'top',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
originX: 'start',
|
|
122
|
+
originY: 'top',
|
|
123
|
+
overlayX: 'end',
|
|
124
|
+
overlayY: 'bottom',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
originX: 'end',
|
|
128
|
+
originY: 'bottom',
|
|
129
|
+
overlayX: 'start',
|
|
130
|
+
overlayY: 'top',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
originX: 'end',
|
|
134
|
+
originY: 'top',
|
|
135
|
+
overlayX: 'start',
|
|
136
|
+
overlayY: 'bottom',
|
|
137
|
+
},
|
|
138
|
+
];
|
|
139
|
+
}
|
|
140
|
+
activateItem(event, item) {
|
|
141
|
+
if (item.confirmDialog) {
|
|
142
|
+
this._confirmDialog.open(item.confirmDialog.message, item.confirmDialog.alert)
|
|
143
|
+
.afterClosed()
|
|
144
|
+
.subscribe(v => {
|
|
145
|
+
if (v === 'confirm') {
|
|
146
|
+
item.click.emit(event);
|
|
147
|
+
if (item.href) {
|
|
148
|
+
const win = window.open(item.href, item.target || undefined);
|
|
149
|
+
// TODO: Consider if always setting opener to null is to restrictive
|
|
150
|
+
// if (win && item.target && item.target.toLowerCase() === '_blank') {
|
|
151
|
+
// win.opener = null
|
|
152
|
+
// }
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
const extras = {};
|
|
156
|
+
if (item.queryParams) {
|
|
157
|
+
extras.queryParams = item.queryParams;
|
|
158
|
+
}
|
|
159
|
+
if (item.fragment) {
|
|
160
|
+
extras.fragment = item.fragment;
|
|
161
|
+
}
|
|
162
|
+
if (item.queryParamsHandling) {
|
|
163
|
+
extras.queryParamsHandling = item.queryParamsHandling;
|
|
164
|
+
}
|
|
165
|
+
if (item.preserveFragment) {
|
|
166
|
+
extras.preserveFragment = item.preserveFragment;
|
|
167
|
+
}
|
|
168
|
+
if (item.skipLocationChange) {
|
|
169
|
+
extras.skipLocationChange = item.skipLocationChange;
|
|
170
|
+
}
|
|
171
|
+
if (item.replaceUrl) {
|
|
172
|
+
extras.replaceUrl = item.replaceUrl;
|
|
173
|
+
}
|
|
174
|
+
if (item.state) {
|
|
175
|
+
extras.state = item.state;
|
|
176
|
+
}
|
|
177
|
+
const commands = Array.isArray(item.routerLink) ? item.routerLink : [item.routerLink];
|
|
178
|
+
this._router.navigate(commands, extras);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
item.click.emit(event);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
DatatableActionMenuComponent.decorators = [
|
|
189
|
+
{ type: Component, args: [{
|
|
190
|
+
selector: 'seam-datatable-action-menu',
|
|
191
|
+
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 <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-container>\n</seam-menu>\n\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",
|
|
192
|
+
styles: [":host{display:block;position:relative}.datatable-action-button{font-size:20px;line-height:20px;width:30px;height:30px;padding:0;border-radius:15px;text-align:center}.datatable-action-button::ng-deep .svg-inline--fa{vertical-align:middle}"]
|
|
193
|
+
},] }
|
|
194
|
+
];
|
|
195
|
+
DatatableActionMenuComponent.ctorParameters = () => [
|
|
196
|
+
{ type: SeamConfirmDialogService },
|
|
197
|
+
{ type: Router }
|
|
198
|
+
];
|
|
199
|
+
DatatableActionMenuComponent.propDecorators = {
|
|
200
|
+
items: [{ type: ContentChildren, args: [DatatableActionMenuItemComponent,] }]
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
class DatatableCellTplDirective {
|
|
204
|
+
constructor(template) {
|
|
205
|
+
this.template = template;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
DatatableCellTplDirective.decorators = [
|
|
209
|
+
{ type: Directive, args: [{
|
|
210
|
+
selector: '[seamDatatableCellTpl]'
|
|
211
|
+
},] }
|
|
212
|
+
];
|
|
213
|
+
DatatableCellTplDirective.ctorParameters = () => [
|
|
214
|
+
{ type: TemplateRef }
|
|
215
|
+
];
|
|
216
|
+
|
|
217
|
+
class DatatableColumnChangesService {
|
|
218
|
+
constructor() {
|
|
219
|
+
this.columnInputChanges = new Subject();
|
|
220
|
+
}
|
|
221
|
+
get columnInputChanges$() {
|
|
222
|
+
return this.columnInputChanges.asObservable();
|
|
223
|
+
}
|
|
224
|
+
onInputChange() {
|
|
225
|
+
this.columnInputChanges.next(undefined);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
DatatableColumnChangesService.decorators = [
|
|
229
|
+
{ type: Injectable }
|
|
230
|
+
];
|
|
231
|
+
|
|
232
|
+
// TODO: The column component should implement `ITheSeamDatatableColumn`, since
|
|
233
|
+
// providing some properties by input and some by template could be confusing.
|
|
234
|
+
class DatatableColumnComponent {
|
|
235
|
+
// @Input('headerTemplate')
|
|
236
|
+
// _headerTemplateInput: TemplateRef<any>;
|
|
237
|
+
// @ContentChild(DataTableColumnHeaderDirective, { read: TemplateRef, static: true })
|
|
238
|
+
// _headerTemplateQuery: TemplateRef<any>;
|
|
239
|
+
// get headerTemplate(): TemplateRef<any> {
|
|
240
|
+
// return this._headerTemplateInput || this._headerTemplateQuery;
|
|
241
|
+
// }
|
|
242
|
+
// @Input('treeToggleTemplate')
|
|
243
|
+
// _treeToggleTemplateInput: TemplateRef<any>;
|
|
244
|
+
// @ContentChild(DataTableColumnCellTreeToggle, { read: TemplateRef, static: true })
|
|
245
|
+
// _treeToggleTemplateQuery: TemplateRef<any>;
|
|
246
|
+
// get treeToggleTemplate(): TemplateRef<any> {
|
|
247
|
+
// return this._treeToggleTemplateInput || this._treeToggleTemplateQuery;
|
|
248
|
+
// }
|
|
249
|
+
constructor(_columnChangesService) {
|
|
250
|
+
this._columnChangesService = _columnChangesService;
|
|
251
|
+
this._isFirstChange = true;
|
|
252
|
+
}
|
|
253
|
+
get cellTemplate() {
|
|
254
|
+
return this._cellTemplateInput || this._cellTemplateQuery;
|
|
255
|
+
}
|
|
256
|
+
ngOnInit() { }
|
|
257
|
+
ngOnChanges(changes) {
|
|
258
|
+
if (this._isFirstChange) {
|
|
259
|
+
this._isFirstChange = false;
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
this._columnChangesService.onInputChange();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
getCellDirective() {
|
|
266
|
+
if (this.cellTplDirective) {
|
|
267
|
+
return this.cellTplDirective;
|
|
268
|
+
}
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
DatatableColumnComponent.decorators = [
|
|
273
|
+
{ type: Component, args: [{
|
|
274
|
+
selector: 'seam-datatable-column',
|
|
275
|
+
template: "<p>\n datatable-column works!\n</p>\n",
|
|
276
|
+
styles: [""]
|
|
277
|
+
},] }
|
|
278
|
+
];
|
|
279
|
+
DatatableColumnComponent.ctorParameters = () => [
|
|
280
|
+
{ type: DatatableColumnChangesService }
|
|
281
|
+
];
|
|
282
|
+
DatatableColumnComponent.propDecorators = {
|
|
283
|
+
name: [{ type: Input }],
|
|
284
|
+
prop: [{ type: Input }],
|
|
285
|
+
flexGrow: [{ type: Input }],
|
|
286
|
+
minWidth: [{ type: Input }],
|
|
287
|
+
maxWidth: [{ type: Input }],
|
|
288
|
+
width: [{ type: Input }],
|
|
289
|
+
resizeable: [{ type: Input }],
|
|
290
|
+
sortable: [{ type: Input }],
|
|
291
|
+
draggable: [{ type: Input }],
|
|
292
|
+
canAutoResize: [{ type: Input }],
|
|
293
|
+
comparator: [{ type: Input }],
|
|
294
|
+
headerTemplate: [{ type: Input }],
|
|
295
|
+
checkboxable: [{ type: Input }],
|
|
296
|
+
headerCheckboxable: [{ type: Input }],
|
|
297
|
+
headerClass: [{ type: Input }],
|
|
298
|
+
cellClass: [{ type: Input }],
|
|
299
|
+
frozenLeft: [{ type: Input }],
|
|
300
|
+
frozenRight: [{ type: Input }],
|
|
301
|
+
pipe: [{ type: Input }],
|
|
302
|
+
isTreeColumn: [{ type: Input }],
|
|
303
|
+
treeLevelIndent: [{ type: Input }],
|
|
304
|
+
summaryFunc: [{ type: Input }],
|
|
305
|
+
summaryTemplate: [{ type: Input }],
|
|
306
|
+
hidden: [{ type: Input }],
|
|
307
|
+
cellTplDirective: [{ type: ContentChild, args: [DatatableCellTplDirective, { static: true },] }],
|
|
308
|
+
_cellTemplateInput: [{ type: Input, args: ['cellTemplate',] }],
|
|
309
|
+
_cellTemplateQuery: [{ type: ContentChild, args: [DatatableCellTplDirective, { read: TemplateRef, static: true },] }]
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
class DatatableFilterDirective {
|
|
313
|
+
constructor(dataFilters) {
|
|
314
|
+
if (dataFilters && dataFilters.length > 0) {
|
|
315
|
+
this._filter = dataFilters[0];
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
get filter() {
|
|
319
|
+
return this._filter;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
DatatableFilterDirective.decorators = [
|
|
323
|
+
{ type: Directive, args: [{
|
|
324
|
+
selector: '[seamDatatableFilter]'
|
|
325
|
+
},] }
|
|
326
|
+
];
|
|
327
|
+
DatatableFilterDirective.ctorParameters = () => [
|
|
328
|
+
{ type: Array, decorators: [{ type: Self }, { type: Inject, args: [THESEAM_DATA_FILTER,] }] }
|
|
329
|
+
];
|
|
330
|
+
|
|
331
|
+
const _THESEAM_DATA_FILTER_CONTAINER = {
|
|
332
|
+
provide: THESEAM_DATA_FILTER_CONTAINER,
|
|
333
|
+
// tslint:disable-next-line:no-use-before-declare
|
|
334
|
+
useExisting: forwardRef(() => DatatableMenuBarComponent)
|
|
335
|
+
};
|
|
336
|
+
class DatatableMenuBarComponent {
|
|
337
|
+
constructor() {
|
|
338
|
+
this._filtersArr = [];
|
|
339
|
+
this.filtersChanged = new EventEmitter();
|
|
340
|
+
}
|
|
341
|
+
get filterDirectives() {
|
|
342
|
+
return this._filterDirectives;
|
|
343
|
+
}
|
|
344
|
+
set filterDirectives(value) {
|
|
345
|
+
this._filterDirectives = value;
|
|
346
|
+
this.filtersChanged.emit(this.filters());
|
|
347
|
+
}
|
|
348
|
+
ngOnInit() { }
|
|
349
|
+
ngAfterViewInit() {
|
|
350
|
+
// console.log('_filterDirectives', this._filterDirectives, this.filters())
|
|
351
|
+
}
|
|
352
|
+
filters() {
|
|
353
|
+
const fDirectives = this._filterDirectives
|
|
354
|
+
? this._filterDirectives.map(f => f.filter).filter(notNullOrUndefined)
|
|
355
|
+
: [];
|
|
356
|
+
const fArr = this._filtersArr
|
|
357
|
+
.filter(f => fDirectives.findIndex(fd => fd.uid === f.uid) === -1);
|
|
358
|
+
return [...fArr, ...fDirectives];
|
|
359
|
+
}
|
|
360
|
+
addFilter(dataFilter) {
|
|
361
|
+
this._filtersArr.push(dataFilter);
|
|
362
|
+
this.filtersChanged.emit(this.filters());
|
|
363
|
+
}
|
|
364
|
+
removeFilter(dataFilter) {
|
|
365
|
+
this._filtersArr = this._filtersArr.filter(f => f !== dataFilter);
|
|
366
|
+
this.filtersChanged.emit(this.filters());
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
DatatableMenuBarComponent.decorators = [
|
|
370
|
+
{ type: Component, args: [{
|
|
371
|
+
selector: 'seam-datatable-menu-bar',
|
|
372
|
+
template: "<div class=\"bg-light border rounded p-2\">\n <ng-content></ng-content>\n</div>\n",
|
|
373
|
+
providers: [_THESEAM_DATA_FILTER_CONTAINER],
|
|
374
|
+
styles: [":host{display:block}"]
|
|
375
|
+
},] }
|
|
376
|
+
];
|
|
377
|
+
DatatableMenuBarComponent.ctorParameters = () => [];
|
|
378
|
+
DatatableMenuBarComponent.propDecorators = {
|
|
379
|
+
filterDirectives: [{ type: ContentChildren, args: [DatatableFilterDirective,] }]
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
class DatatableRowDetailTplDirective {
|
|
383
|
+
constructor(template) {
|
|
384
|
+
this.template = template;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
DatatableRowDetailTplDirective.decorators = [
|
|
388
|
+
{ type: Directive, args: [{
|
|
389
|
+
selector: '[seamDatatableRowDetailTpl]'
|
|
390
|
+
},] }
|
|
391
|
+
];
|
|
392
|
+
DatatableRowDetailTplDirective.ctorParameters = () => [
|
|
393
|
+
{ type: TemplateRef }
|
|
394
|
+
];
|
|
395
|
+
|
|
396
|
+
class TheSeamDatatableRowDetailDirective {
|
|
397
|
+
constructor() {
|
|
398
|
+
/**
|
|
399
|
+
* The detail row height is required especially
|
|
400
|
+
* when virtual scroll is enabled.
|
|
401
|
+
*/
|
|
402
|
+
this.rowHeight = 0;
|
|
403
|
+
/**
|
|
404
|
+
* Row detail row visbility was toggled.
|
|
405
|
+
*/
|
|
406
|
+
// NOTE: This will trigger from the internal ngx-datatable toggle event.
|
|
407
|
+
this.toggle = new EventEmitter();
|
|
408
|
+
/**
|
|
409
|
+
* Internal use for wrapper only.
|
|
410
|
+
*
|
|
411
|
+
* To avoid confusion with this directives output and the ngx-datatable
|
|
412
|
+
* directive being wrapped, this directive emits `_toggle` stream to the
|
|
413
|
+
* `ngx-datatable-row-detail` directive and emits it's `toggle` stream out to
|
|
414
|
+
* this directives `toggle` stream.
|
|
415
|
+
* @ignore
|
|
416
|
+
*/
|
|
417
|
+
this._toggle = new EventEmitter();
|
|
418
|
+
}
|
|
419
|
+
get template() {
|
|
420
|
+
return this._templateInput || this._templateQuery;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Toggle the expansion of the row
|
|
424
|
+
*/
|
|
425
|
+
toggleExpandRow(row) {
|
|
426
|
+
this._toggle.emit({
|
|
427
|
+
type: 'row',
|
|
428
|
+
value: row
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* API method to expand all the rows.
|
|
433
|
+
*/
|
|
434
|
+
expandAllRows() {
|
|
435
|
+
this._toggle.emit({
|
|
436
|
+
type: 'all',
|
|
437
|
+
value: true
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* API method to collapse all the rows.
|
|
442
|
+
*/
|
|
443
|
+
collapseAllRows() {
|
|
444
|
+
this._toggle.emit({
|
|
445
|
+
type: 'all',
|
|
446
|
+
value: false
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
TheSeamDatatableRowDetailDirective.decorators = [
|
|
451
|
+
{ type: Directive, args: [{
|
|
452
|
+
// tslint:disable-next-line: directive-selector
|
|
453
|
+
selector: 'seam-datatable-row-detail'
|
|
454
|
+
},] }
|
|
455
|
+
];
|
|
456
|
+
TheSeamDatatableRowDetailDirective.propDecorators = {
|
|
457
|
+
rowHeight: [{ type: Input }],
|
|
458
|
+
_templateInput: [{ type: Input, args: ['template',] }],
|
|
459
|
+
_templateQuery: [{ type: ContentChild, args: [DatatableRowDetailTplDirective, { read: TemplateRef, static: true },] }],
|
|
460
|
+
toggle: [{ type: Output }]
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
class DatatableRowActionItemDirective {
|
|
464
|
+
constructor(template) {
|
|
465
|
+
this.template = template;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
DatatableRowActionItemDirective.decorators = [
|
|
469
|
+
{ type: Directive, args: [{
|
|
470
|
+
selector: '[seamDatatableRowActionItem]'
|
|
471
|
+
},] }
|
|
472
|
+
];
|
|
473
|
+
DatatableRowActionItemDirective.ctorParameters = () => [
|
|
474
|
+
{ type: TemplateRef }
|
|
475
|
+
];
|
|
476
|
+
|
|
477
|
+
const THESEAM_DATATABLE_PREFERENCES_ACCESSOR = new InjectionToken('ITheSeamDatatablePreferencesAccessor');
|
|
478
|
+
|
|
479
|
+
function withStoredColumnInfo(columns, preferenceColumns) {
|
|
480
|
+
const _columns = [];
|
|
481
|
+
for (const col of columns) {
|
|
482
|
+
const storedCol = preferenceColumns.find(v => v.prop === col.prop);
|
|
483
|
+
if (storedCol) {
|
|
484
|
+
const _col = Object.assign({}, col);
|
|
485
|
+
if (hasProperty(storedCol, 'width')) {
|
|
486
|
+
_col.width = Math.max(storedCol.width, 0);
|
|
487
|
+
}
|
|
488
|
+
_col.canAutoResize = storedCol.canAutoResize;
|
|
489
|
+
_columns.push(_col);
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
_columns.push(col);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return _columns;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
class DatatablePreferencesService {
|
|
499
|
+
constructor(_prefsAccessor) {
|
|
500
|
+
this._prefsAccessor = _prefsAccessor;
|
|
501
|
+
this._tablePrefsMap = new Map();
|
|
502
|
+
this._pending = false;
|
|
503
|
+
}
|
|
504
|
+
get pending() { return this._pending; }
|
|
505
|
+
preferences(preferenceKey) {
|
|
506
|
+
let prefs = this._tablePrefsMap.get(preferenceKey);
|
|
507
|
+
if (!prefs) {
|
|
508
|
+
const refreshSubject = new Subject();
|
|
509
|
+
prefs = {
|
|
510
|
+
observable: this._createObservable(refreshSubject, preferenceKey),
|
|
511
|
+
refresh: refreshSubject
|
|
512
|
+
};
|
|
513
|
+
this._tablePrefsMap.set(preferenceKey, prefs);
|
|
514
|
+
}
|
|
515
|
+
return prefs.observable;
|
|
516
|
+
}
|
|
517
|
+
_createObservable(refreshSubject, prefKey) {
|
|
518
|
+
if (!this._prefsAccessor) {
|
|
519
|
+
return of({});
|
|
520
|
+
}
|
|
521
|
+
const accessor = (key) => this._prefsAccessor ? this._prefsAccessor.get(key) : of('{}');
|
|
522
|
+
return refreshSubject.pipe(startWith({}), switchMap(() => accessor(prefKey).pipe(map(v => {
|
|
523
|
+
if (!v) {
|
|
524
|
+
return null;
|
|
525
|
+
}
|
|
526
|
+
// TODO: Add a schema validator and migration tool to avoid parsing issues.
|
|
527
|
+
try {
|
|
528
|
+
return JSON.parse(v);
|
|
529
|
+
}
|
|
530
|
+
catch (error) {
|
|
531
|
+
if (isDevMode()) {
|
|
532
|
+
console.error(error);
|
|
533
|
+
}
|
|
534
|
+
return null;
|
|
535
|
+
}
|
|
536
|
+
}), map(v => !!v ? v : {}))), shareReplay(1));
|
|
537
|
+
}
|
|
538
|
+
refresh(preferenceKey) {
|
|
539
|
+
const prefs = this._tablePrefsMap.get(preferenceKey);
|
|
540
|
+
if (prefs) {
|
|
541
|
+
this._pending = true;
|
|
542
|
+
prefs.refresh.next();
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
// TODO: Improve this updating to be more generic, so we can quickly add
|
|
546
|
+
// edits for different preference schema's.
|
|
547
|
+
//
|
|
548
|
+
// TODO: Decide if a send queue/merging of pending queue is needed to avoid
|
|
549
|
+
// out of order updates. This shouldn't be an issue, with how fast preferences
|
|
550
|
+
// will most likely be changing, but it could happen in situations, such as
|
|
551
|
+
// network issues.
|
|
552
|
+
setColumnPreference(preferenceKey, column) {
|
|
553
|
+
if (!this._prefsAccessor) {
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
this._pending = true;
|
|
557
|
+
this.preferences(preferenceKey).pipe(map(prefs => {
|
|
558
|
+
// Making the preferences immutable may not be necessary, but for now
|
|
559
|
+
// this obj->str->obj will work as a naive clone.
|
|
560
|
+
const columns = JSON.parse(JSON.stringify(prefs.columns || []));
|
|
561
|
+
const _colPref = columns.find((c) => c.prop === column.prop);
|
|
562
|
+
// console.log('has', _colPref)
|
|
563
|
+
if (_colPref) {
|
|
564
|
+
// console.log('hasProperty(column, "width"))', hasProperty(column, 'width'))
|
|
565
|
+
if (hasProperty(column, 'width')) {
|
|
566
|
+
_colPref.width = column.width;
|
|
567
|
+
}
|
|
568
|
+
if (hasProperty(column, 'canAutoResize')) {
|
|
569
|
+
_colPref.canAutoResize = column.canAutoResize;
|
|
570
|
+
}
|
|
571
|
+
if (hasProperty(column, 'hidden')) {
|
|
572
|
+
_colPref.hidden = column.hidden;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
columns.push(Object.assign({}, column));
|
|
577
|
+
}
|
|
578
|
+
const newPrefs = Object.assign(Object.assign({}, prefs), { columns });
|
|
579
|
+
return newPrefs;
|
|
580
|
+
}),
|
|
581
|
+
// tap(v => console.log('newPrefs', v)),
|
|
582
|
+
take(1), switchMap(newPrefs => this._prefsAccessor
|
|
583
|
+
? this._prefsAccessor.update(preferenceKey, JSON.stringify(newPrefs))
|
|
584
|
+
: of(newPrefs)), tap(() => this.refresh(preferenceKey)))
|
|
585
|
+
.subscribe();
|
|
586
|
+
}
|
|
587
|
+
withColumnPreferences(preferenceKey, columns) {
|
|
588
|
+
return this.preferences(preferenceKey).pipe(startWith({}), map(preferences => preferences && preferences.columns
|
|
589
|
+
? withStoredColumnInfo(columns, preferences.columns)
|
|
590
|
+
: columns));
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
DatatablePreferencesService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DatatablePreferencesService_Factory() { return new DatatablePreferencesService(i0.ɵɵinject(THESEAM_DATATABLE_PREFERENCES_ACCESSOR, 8)); }, token: DatatablePreferencesService, providedIn: "root" });
|
|
594
|
+
DatatablePreferencesService.decorators = [
|
|
595
|
+
{ type: Injectable, args: [{
|
|
596
|
+
providedIn: 'root'
|
|
597
|
+
},] }
|
|
598
|
+
];
|
|
599
|
+
DatatablePreferencesService.ctorParameters = () => [
|
|
600
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [THESEAM_DATATABLE_PREFERENCES_ACCESSOR,] }] }
|
|
601
|
+
];
|
|
602
|
+
|
|
603
|
+
const THESEAM_DATATABLE_ACCESSOR = new InjectionToken('TheSeamDatatableAccessor');
|
|
604
|
+
|
|
605
|
+
function _setColumnDefaults(columns) {
|
|
606
|
+
for (const column of columns) {
|
|
607
|
+
if (!column.hasOwnProperty('hidden')) {
|
|
608
|
+
column.hidden = false;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
setColumnDefaults(columns);
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Intended for internal classes declared by the `TheSeamDatatableModule`.
|
|
615
|
+
*/
|
|
616
|
+
const THESEAM_DATATABLE = new InjectionToken('LibDatatable');
|
|
617
|
+
const _THESEAM_DATATABLE = {
|
|
618
|
+
provide: THESEAM_DATATABLE,
|
|
619
|
+
// tslint:disable-next-line:no-use-before-declare
|
|
620
|
+
useExisting: forwardRef(() => DatatableComponent)
|
|
621
|
+
};
|
|
622
|
+
const _THESEAM_DATATABLE_ACCESSOR = {
|
|
623
|
+
provide: THESEAM_DATATABLE_ACCESSOR,
|
|
624
|
+
// tslint:disable-next-line:no-use-before-declare
|
|
625
|
+
useExisting: forwardRef(() => DatatableComponent)
|
|
626
|
+
};
|
|
627
|
+
// TODO: Reduce reliance on BehaviorSubject based observables, because it should
|
|
628
|
+
// be easier to avoit over emitting observables.
|
|
629
|
+
class DatatableComponent {
|
|
630
|
+
constructor(_columnChangesService, _differs, _preferences) {
|
|
631
|
+
// this.displayColumns$ = this.hiddenColumns$.pipe(
|
|
632
|
+
// switchMap(hiddenColumns => this.columns$.pipe(map(cols => cols.filter(c => hiddenColumns.findIndex(hc => hc === c.prop) === -1))))
|
|
633
|
+
// )
|
|
634
|
+
this._columnChangesService = _columnChangesService;
|
|
635
|
+
this._differs = _differs;
|
|
636
|
+
this._preferences = _preferences;
|
|
637
|
+
this.faChevronDown = faChevronDown;
|
|
638
|
+
this.faChevronRight = faChevronRight;
|
|
639
|
+
this.faSpinner = faSpinner;
|
|
640
|
+
this._ngUnsubscribe = new Subject();
|
|
641
|
+
this._filtersSubject = new BehaviorSubject([]);
|
|
642
|
+
this._columnsObservable = new BehaviorSubject(undefined);
|
|
643
|
+
this._dataSourceSubject = new BehaviorSubject(undefined);
|
|
644
|
+
this._preferencesKey = new BehaviorSubject(undefined);
|
|
645
|
+
this._columns = new BehaviorSubject([]);
|
|
646
|
+
this._rows = new BehaviorSubject([]);
|
|
647
|
+
this.columnMode = ColumnMode.force;
|
|
648
|
+
this.selected = [];
|
|
649
|
+
this.externalPaging = false;
|
|
650
|
+
this.externalSorting = false;
|
|
651
|
+
this.externalFiltering = false;
|
|
652
|
+
this.count = 0;
|
|
653
|
+
this.offset = 0;
|
|
654
|
+
this.loadingIndicator = false;
|
|
655
|
+
this.reorderable = true;
|
|
656
|
+
this.swapColumns = false;
|
|
657
|
+
this.sortType = SortType.single;
|
|
658
|
+
this._sorts = [];
|
|
659
|
+
this.cssClasses = {
|
|
660
|
+
sortAscending: 'datatable-icon-up',
|
|
661
|
+
sortDescending: 'datatable-icon-down',
|
|
662
|
+
pagerLeftArrow: 'datatable-icon-left',
|
|
663
|
+
pagerRightArrow: 'datatable-icon-right',
|
|
664
|
+
pagerPrevious: 'datatable-icon-prev',
|
|
665
|
+
pagerNext: 'datatable-icon-skip'
|
|
666
|
+
};
|
|
667
|
+
this.messages = {
|
|
668
|
+
// Message to show when array is presented
|
|
669
|
+
// but contains no values
|
|
670
|
+
emptyMessage: 'No records found',
|
|
671
|
+
// Footer total message
|
|
672
|
+
totalMessage: 'total',
|
|
673
|
+
// Footer selected message
|
|
674
|
+
selectedMessage: 'selected'
|
|
675
|
+
};
|
|
676
|
+
this.rowIdentity = ((x) => x);
|
|
677
|
+
this.groupExpansionDefault = false;
|
|
678
|
+
this.selectAllRowsOnPage = false;
|
|
679
|
+
this.summaryRow = false;
|
|
680
|
+
this.summaryHeight = 30;
|
|
681
|
+
this.summaryPosition = 'top';
|
|
682
|
+
this.virtualization = true;
|
|
683
|
+
this.headerHeight = 50;
|
|
684
|
+
this.rowHeight = 50;
|
|
685
|
+
this.footerHeight = 40;
|
|
686
|
+
this.scrollbarV = true;
|
|
687
|
+
this.scrollbarH = true;
|
|
688
|
+
this.scroll = new EventEmitter();
|
|
689
|
+
this.activate = new EventEmitter();
|
|
690
|
+
this.select = new EventEmitter();
|
|
691
|
+
this.sort = new EventEmitter();
|
|
692
|
+
this.page = new EventEmitter();
|
|
693
|
+
this.reorder = new EventEmitter();
|
|
694
|
+
this.resize = new EventEmitter();
|
|
695
|
+
this.tableContextmenu = new EventEmitter(false);
|
|
696
|
+
this.treeAction = new EventEmitter();
|
|
697
|
+
this.actionRefreshRequest = new EventEmitter();
|
|
698
|
+
this.hiddenColumnsChange = new EventEmitter();
|
|
699
|
+
this._colDiffersInp = {};
|
|
700
|
+
this._colDiffersTpl = {};
|
|
701
|
+
this._rowDetailToggleSubscription = Subscription.EMPTY;
|
|
702
|
+
const applyPrefs = (cols) => this._preferencesKey.pipe(switchMap(name => !!name
|
|
703
|
+
// NOTE: This pending check is temporary to avoid table using previously
|
|
704
|
+
// retrieved preference while the new one is being updated on the
|
|
705
|
+
// server.
|
|
706
|
+
? !this._preferences.pending
|
|
707
|
+
? this._preferences.withColumnPreferences(name, cols)
|
|
708
|
+
: of(cols)
|
|
709
|
+
: of(cols)));
|
|
710
|
+
this.columns$ = this._columnsObservable.pipe(switchMap(colsObs => colsObs !== null && colsObs !== void 0 ? colsObs : of([])));
|
|
711
|
+
this.displayColumns$ = this.columns$.pipe(map(cols => cols.filter(c => !c.hidden)), tap(v => this._removeUnusedDiffs(v)), switchMap(cols => applyPrefs(cols)));
|
|
712
|
+
this.filters$ = this._filtersSubject.asObservable();
|
|
713
|
+
this.filterStates = this._filtersSubject.asObservable().pipe(switchMap(filters => composeDataFilterStates(filters)));
|
|
714
|
+
// this.rows$ = this._filtersSubject.asObservable()
|
|
715
|
+
// .pipe(
|
|
716
|
+
// switchMap(filters => {
|
|
717
|
+
// if (this.externalFiltering) {
|
|
718
|
+
// return this._rows.asObservable()
|
|
719
|
+
// }
|
|
720
|
+
// return this._rows.asObservable().pipe(composeDataFilters(filters))
|
|
721
|
+
// })
|
|
722
|
+
// )
|
|
723
|
+
this.rows$ = this._dataSourceSubject.pipe(switchMap(dataSource => {
|
|
724
|
+
// console.log('dataSource', dataSource)
|
|
725
|
+
let dataStream;
|
|
726
|
+
if (isDataSource(dataSource)) {
|
|
727
|
+
// console.log('~datasource')
|
|
728
|
+
dataStream = dataSource.connect(this);
|
|
729
|
+
}
|
|
730
|
+
else if (isObservable(dataSource)) {
|
|
731
|
+
// console.log('~observable')
|
|
732
|
+
dataStream = dataSource;
|
|
733
|
+
}
|
|
734
|
+
else if (Array.isArray(dataSource)) {
|
|
735
|
+
// console.log('~array')
|
|
736
|
+
dataStream = of(dataSource);
|
|
737
|
+
}
|
|
738
|
+
else {
|
|
739
|
+
// console.log('~rows fallback')
|
|
740
|
+
dataStream = this._rows.asObservable();
|
|
741
|
+
// .pipe(tap(v => console.log('rows~', v)))
|
|
742
|
+
}
|
|
743
|
+
if (!this.externalFiltering) {
|
|
744
|
+
// console.log('not using externalFiltering')
|
|
745
|
+
dataStream = dataStream.pipe(switchMap(rows => this._filtersSubject.pipe(
|
|
746
|
+
// tap(v => console.log('filters', v)),
|
|
747
|
+
concatMap(filters => of(rows).pipe(composeDataFilters(filters))))));
|
|
748
|
+
// dataStream = this._filtersSubject.pipe(
|
|
749
|
+
// tap(v => console.log('filters', v)),
|
|
750
|
+
// concatMap(filters => dataStream.pipe(composeDataFilters(filters))),
|
|
751
|
+
// tap(v => console.log('composed filters', v)),
|
|
752
|
+
// )
|
|
753
|
+
}
|
|
754
|
+
return dataStream.pipe(
|
|
755
|
+
// tap(v => console.log('stream', v)),
|
|
756
|
+
takeUntil(this._ngUnsubscribe));
|
|
757
|
+
}));
|
|
758
|
+
// this.hiddenColumns$ = this._hiddenColumns.asObservable()
|
|
759
|
+
// this._hiddenColumns.pipe(
|
|
760
|
+
// skip(1),
|
|
761
|
+
// distinctUntilChanged((a, b) => {
|
|
762
|
+
// const _a = Array.isArray(a) ? a : []
|
|
763
|
+
// const _b = Array.isArray(b) ? b : []
|
|
764
|
+
// if (_a.length !== _b.length) { return false }
|
|
765
|
+
// const _as = _a.sort()
|
|
766
|
+
// const _bs = _b.sort()
|
|
767
|
+
// return !_as.sort().every((value: string, index: number) => _bs[index] === value)
|
|
768
|
+
// }),
|
|
769
|
+
// tap(v => this.hiddenColumnsChange.emit(v)),
|
|
770
|
+
// untilDestroyed(this)
|
|
771
|
+
// ).subscribe(v => console.log('hiddenColumnsChange', v))
|
|
772
|
+
// TODO: Implement viewChange for CollectionViewer.
|
|
773
|
+
this.viewChange = this.page.pipe(map(p => ({ start: 0, end: p.count })));
|
|
774
|
+
}
|
|
775
|
+
get filters() { return this._filtersSubject.value; }
|
|
776
|
+
get preferencesKey() { return this._preferencesKey.value; }
|
|
777
|
+
set preferencesKey(value) { this._preferencesKey.next(value || undefined); }
|
|
778
|
+
get columns() { return this._columns.value; }
|
|
779
|
+
set columns(value) {
|
|
780
|
+
// console.log('columns input', value)
|
|
781
|
+
this._columns.next(Array.isArray(value) ? value : []);
|
|
782
|
+
}
|
|
783
|
+
get rows() { return this._rows.value; }
|
|
784
|
+
set rows(value) { this._rows.next(value || []); }
|
|
785
|
+
get sorts() { return this.ngxDatatable ? this.ngxDatatable.sorts : this._sorts; }
|
|
786
|
+
set sorts(value) {
|
|
787
|
+
this._sorts = notNullOrUndefined(value) ? coerceArray(value) : [];
|
|
788
|
+
}
|
|
789
|
+
set dataSource(value) {
|
|
790
|
+
if (value instanceof DatatableDataSource) {
|
|
791
|
+
value.setDatatableAccessor(this);
|
|
792
|
+
}
|
|
793
|
+
this._dataSourceSubject.next(value || undefined);
|
|
794
|
+
}
|
|
795
|
+
get menuBarComponent() { return this._menuBarComponent; }
|
|
796
|
+
set menuBarComponent(value) {
|
|
797
|
+
var _a;
|
|
798
|
+
this._menuBarComponent = value;
|
|
799
|
+
if (this._menuBarSub) {
|
|
800
|
+
this._menuBarSub.unsubscribe();
|
|
801
|
+
}
|
|
802
|
+
if (value) {
|
|
803
|
+
this._setMenuBarFilters(value.filters());
|
|
804
|
+
this._menuBarSub = (_a = this._menuBarComponent) === null || _a === void 0 ? void 0 : _a.filtersChanged.subscribe(v => { this._setMenuBarFilters(value.filters()); });
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
ngOnInit() {
|
|
808
|
+
if (this.rowDetail) {
|
|
809
|
+
this._rowDetailToggleSubscription = this.rowDetail._toggle.subscribe(event => {
|
|
810
|
+
if (this.ngxRowDetail) {
|
|
811
|
+
this.ngxRowDetail.toggle.emit(event);
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
ngOnDestroy() {
|
|
817
|
+
this._rowDetailToggleSubscription.unsubscribe();
|
|
818
|
+
}
|
|
819
|
+
ngAfterContentInit() {
|
|
820
|
+
var _a, _b;
|
|
821
|
+
this.columnComponents$ = this._columnChangesService.columnInputChanges$.pipe(map(() => { var _a, _b; return (_b = (_a = this.columnComponents) === null || _a === void 0 ? void 0 : _a.toArray()) !== null && _b !== void 0 ? _b : []; }), startWith((_b = (_a = this.columnComponents) === null || _a === void 0 ? void 0 : _a.toArray()) !== null && _b !== void 0 ? _b : []), shareReplay({ bufferSize: 1, refCount: true }));
|
|
822
|
+
const _columns = combineLatest([
|
|
823
|
+
this.columnComponents$,
|
|
824
|
+
this._columns
|
|
825
|
+
]).pipe(map(v => { var _a; return this._getMergedTplAndInpColumns(v[0], (_a = v[1]) !== null && _a !== void 0 ? _a : []); }),
|
|
826
|
+
// tap(v => console.log('cols', v)),
|
|
827
|
+
shareReplay({ bufferSize: 1, refCount: true }));
|
|
828
|
+
this._columnsObservable.next(_columns);
|
|
829
|
+
}
|
|
830
|
+
_getMergedTplAndInpColumns(tplCols, inpCols) {
|
|
831
|
+
const cols = [];
|
|
832
|
+
if (this.selectionType === 'checkbox') {
|
|
833
|
+
const checkBoxCol = {
|
|
834
|
+
prop: '$$__checkbox__',
|
|
835
|
+
name: '',
|
|
836
|
+
width: 40,
|
|
837
|
+
sortable: false,
|
|
838
|
+
canAutoResize: false,
|
|
839
|
+
draggable: false,
|
|
840
|
+
resizeable: false,
|
|
841
|
+
headerCheckboxable: true,
|
|
842
|
+
checkboxable: true
|
|
843
|
+
};
|
|
844
|
+
cols.push(checkBoxCol);
|
|
845
|
+
}
|
|
846
|
+
const _tplCols = translateTemplates((tplCols || []));
|
|
847
|
+
for (const col of inpCols) {
|
|
848
|
+
const tplCol = _tplCols.find(t => t.prop === col.prop);
|
|
849
|
+
// console.log({ col: { ...(col || {}) }, tplCol: { ...(tplCol || {}) } })
|
|
850
|
+
const dtColumns = (this.ngxDatatable && this.ngxDatatable._internalColumns) || [];
|
|
851
|
+
const prev = dtColumns.find(c => c.prop === col.prop);
|
|
852
|
+
const inpColDiff = this._getColDiff(col);
|
|
853
|
+
const _inpCol = inpColDiff ? {} : this._hasPrevColDiff(col) ? {} : col;
|
|
854
|
+
if (inpColDiff) {
|
|
855
|
+
inpColDiff.forEachRemovedItem(r => {
|
|
856
|
+
if (prev && prev.hasOwnProperty(r.key)) {
|
|
857
|
+
const k = r.key;
|
|
858
|
+
delete prev[k];
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
inpColDiff.forEachAddedItem(r => _inpCol[r.key] = r.currentValue);
|
|
862
|
+
inpColDiff.forEachChangedItem(r => _inpCol[r.key] = r.currentValue);
|
|
863
|
+
}
|
|
864
|
+
let _tplCol = {};
|
|
865
|
+
if (tplCol) {
|
|
866
|
+
const tplColDiff = tplCol ? this._getColDiff(tplCol, true) : undefined;
|
|
867
|
+
_tplCol = tplColDiff ? {} : this._hasPrevColDiff(col, true) ? {} : tplCol;
|
|
868
|
+
if (tplColDiff) {
|
|
869
|
+
tplColDiff.forEachRemovedItem(r => {
|
|
870
|
+
if (prev && prev.hasOwnProperty(r.key)) {
|
|
871
|
+
const k = r.key;
|
|
872
|
+
delete prev[k];
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
tplColDiff.forEachAddedItem(r => _tplCol[r.key] = r.currentValue);
|
|
876
|
+
tplColDiff.forEachChangedItem(r => _tplCol[r.key] = r.currentValue);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
const _col = Object.assign(Object.assign(Object.assign({}, (prev || {})), _inpCol), _tplCol);
|
|
880
|
+
cols.push(_col);
|
|
881
|
+
}
|
|
882
|
+
if (this.rowActionItem) {
|
|
883
|
+
const actionMenuColumn = {
|
|
884
|
+
prop: '$$__actionMenu__',
|
|
885
|
+
name: '',
|
|
886
|
+
width: 50,
|
|
887
|
+
minWidth: 50,
|
|
888
|
+
maxWidth: 50,
|
|
889
|
+
resizeable: false,
|
|
890
|
+
sortable: false,
|
|
891
|
+
draggable: false,
|
|
892
|
+
// TODO: Fix column auto sizing with fixed column and cell overlay before enabling.
|
|
893
|
+
// frozenRight: true,
|
|
894
|
+
cellTemplate: this.actionMenuCellTpl,
|
|
895
|
+
headerTemplate: this.blankHeaderTpl
|
|
896
|
+
};
|
|
897
|
+
cols.push(actionMenuColumn);
|
|
898
|
+
}
|
|
899
|
+
for (const col of cols) {
|
|
900
|
+
if (col.isTreeColumn && hasProperty(col, 'treeToggleTemplate')) {
|
|
901
|
+
col.treeToggleTemplate = this.treeToggleTpl;
|
|
902
|
+
}
|
|
903
|
+
if (!hasProperty(col, 'headerTemplate')) {
|
|
904
|
+
col.headerTemplate = this.headerTpl;
|
|
905
|
+
}
|
|
906
|
+
if (hasProperty(col, 'cellType')) {
|
|
907
|
+
col.cellTemplate = this.cellTypeSelectorTpl;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
// setColumnDefaults(cols)
|
|
911
|
+
_setColumnDefaults(cols);
|
|
912
|
+
// console.log(cols.map(c => ({ prop: c.prop, canAutoResize: c.canAutoResize })))
|
|
913
|
+
return cols;
|
|
914
|
+
}
|
|
915
|
+
_hasPrevColDiff(col, isTpl = false) {
|
|
916
|
+
if (!col || !col.prop) {
|
|
917
|
+
return false;
|
|
918
|
+
}
|
|
919
|
+
const differsMap = isTpl ? this._colDiffersTpl : this._colDiffersInp;
|
|
920
|
+
return !!differsMap;
|
|
921
|
+
}
|
|
922
|
+
_getColDiff(col, isTpl = false) {
|
|
923
|
+
if (!col || !col.prop) {
|
|
924
|
+
return;
|
|
925
|
+
}
|
|
926
|
+
const differsMap = isTpl ? this._colDiffersTpl : this._colDiffersInp;
|
|
927
|
+
if (!differsMap[col.prop]) {
|
|
928
|
+
differsMap[col.prop] = this._differs.find({}).create();
|
|
929
|
+
}
|
|
930
|
+
const differ = differsMap[col.prop];
|
|
931
|
+
const diff = differ.diff(col);
|
|
932
|
+
return diff;
|
|
933
|
+
}
|
|
934
|
+
_removeUnusedDiffs(cols) {
|
|
935
|
+
const inpKeys = Object.keys(this._colDiffersInp);
|
|
936
|
+
inpKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)
|
|
937
|
+
.forEach(k => { delete this._colDiffersInp[k]; });
|
|
938
|
+
const tplKeys = Object.keys(this._colDiffersTpl);
|
|
939
|
+
tplKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)
|
|
940
|
+
.forEach(k => { delete this._colDiffersTpl[k]; });
|
|
941
|
+
}
|
|
942
|
+
_setMenuBarFilters(filters) {
|
|
943
|
+
// console.log('_setMenuBarFilters', filters)
|
|
944
|
+
this._filtersSubject.next(filters || []);
|
|
945
|
+
}
|
|
946
|
+
getColumnComponent(propName) {
|
|
947
|
+
if (!this.columnComponents || this.columnComponents.length === 0) {
|
|
948
|
+
return null;
|
|
949
|
+
}
|
|
950
|
+
const tpl = this.columnComponents.find(t => t.prop === propName);
|
|
951
|
+
if (tpl) {
|
|
952
|
+
return tpl;
|
|
953
|
+
}
|
|
954
|
+
return null;
|
|
955
|
+
}
|
|
956
|
+
_columnData(col) {
|
|
957
|
+
const comp = this.getColumnComponent(col.prop);
|
|
958
|
+
return { col, comp };
|
|
959
|
+
}
|
|
960
|
+
_getRowExpanded(row) {
|
|
961
|
+
if (this.ngxDatatable && this.ngxDatatable.bodyComponent) {
|
|
962
|
+
return this.ngxDatatable.bodyComponent.getRowExpanded(row);
|
|
963
|
+
}
|
|
964
|
+
return false;
|
|
965
|
+
}
|
|
966
|
+
trackByFnColumn(index, item) {
|
|
967
|
+
return item.prop;
|
|
968
|
+
}
|
|
969
|
+
onDatatableResize(event) {
|
|
970
|
+
if (this.ngxDatatable && this.ngxDatatableElement && this.ngxDatatableElement.nativeElement) {
|
|
971
|
+
// TODO: Consider integrating this into the ngx-datatable library to avoid
|
|
972
|
+
// multiple resize calls when the table resizes itself.
|
|
973
|
+
this.ngxDatatable.recalculate();
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
_onResize(event) {
|
|
977
|
+
// console.log('resize', event, event.column.prop)
|
|
978
|
+
this.resize.emit(event);
|
|
979
|
+
if (event.isDone && this.columns) {
|
|
980
|
+
const columns = this.columns;
|
|
981
|
+
const col = columns.find(c => c.prop === event.column.prop);
|
|
982
|
+
if (col) {
|
|
983
|
+
col.canAutoResize = false;
|
|
984
|
+
}
|
|
985
|
+
if (this.preferencesKey) {
|
|
986
|
+
const pref = { prop: event.column.prop, width: event.column.width, canAutoResize: false };
|
|
987
|
+
this._preferences.setColumnPreference(this.preferencesKey, pref);
|
|
988
|
+
}
|
|
989
|
+
this.columns = [...this.columns];
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
_onTreeAction(event) {
|
|
993
|
+
const index = event.rowIndex;
|
|
994
|
+
const row = event.row;
|
|
995
|
+
if (row.treeStatus === 'collapsed') {
|
|
996
|
+
row.treeStatus = 'expanded';
|
|
997
|
+
}
|
|
998
|
+
else {
|
|
999
|
+
row.treeStatus = 'collapsed';
|
|
1000
|
+
}
|
|
1001
|
+
this.rows = [...this.rows];
|
|
1002
|
+
}
|
|
1003
|
+
triggerActionRefreshRequest() {
|
|
1004
|
+
this.actionRefreshRequest.emit(undefined);
|
|
1005
|
+
}
|
|
1006
|
+
get pageInfo() {
|
|
1007
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1008
|
+
return {
|
|
1009
|
+
offset: (_b = (_a = this.ngxDatatable) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0,
|
|
1010
|
+
pageSize: (_d = (_c = this.ngxDatatable) === null || _c === void 0 ? void 0 : _c.pageSize) !== null && _d !== void 0 ? _d : 0,
|
|
1011
|
+
limit: (_e = this.ngxDatatable) === null || _e === void 0 ? void 0 : _e.limit,
|
|
1012
|
+
count: (_g = (_f = this.ngxDatatable) === null || _f === void 0 ? void 0 : _f.count) !== null && _g !== void 0 ? _g : 0
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
DatatableComponent.decorators = [
|
|
1017
|
+
{ type: Component, args: [{
|
|
1018
|
+
selector: 'seam-datatable',
|
|
1019
|
+
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 class=\"bootstrap\"\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)=\"sort.emit($event)\"\n (page)=\"page.emit($event)\"\n (reorder)=\"reorder.emit($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>\n </ng-container>\n </div>\n</div>\n\n<ng-template #blankHeaderTpl ngx-datatable-header-template></ng-template>\n\n<ng-template #headerTpl ngx-datatable-header-template\n let-column=\"column\" let-sortFn=\"sortFn\">\n <strong *ngIf=\"!column.sortable\" class=\"draggable\">{{column.name}}</strong>\n <strong *ngIf=\"column.sortable\" class=\"datatable-sort-target draggable\" (click)=\"sortFn()\">{{column.name}}</strong>\n <div class=\"datatable-column-header-separator\"></div>\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",
|
|
1020
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1021
|
+
animations: [
|
|
1022
|
+
trigger('slideDown', [
|
|
1023
|
+
transition(':enter', [
|
|
1024
|
+
style({ transform: 'translateY(-20%)', opacity: '0' }),
|
|
1025
|
+
animate('250ms', style({ transform: 'translateY(0)', opacity: '1' })),
|
|
1026
|
+
]),
|
|
1027
|
+
transition(':leave', [
|
|
1028
|
+
style({ transform: 'translateY(0)', opacity: '1' }),
|
|
1029
|
+
animate('250ms', style({ transform: 'translateY(-20%)', opacity: '0' })),
|
|
1030
|
+
])
|
|
1031
|
+
])
|
|
1032
|
+
],
|
|
1033
|
+
providers: [_THESEAM_DATATABLE, DatatableColumnChangesService, _THESEAM_DATATABLE_ACCESSOR],
|
|
1034
|
+
styles: [":host{display:flex;flex-grow:1;flex-direction:column}::ng-deep .seam-datatable-action-menu{min-width:auto!important}ngx-datatable{position:absolute;top:0;left:0;right:0;bottom: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;top:12px;bottom:12px;right:0;width:2px;background-color:#e1e3e6}.datatable-sort-target{cursor:pointer}"]
|
|
1035
|
+
},] }
|
|
1036
|
+
];
|
|
1037
|
+
DatatableComponent.ctorParameters = () => [
|
|
1038
|
+
{ type: DatatableColumnChangesService },
|
|
1039
|
+
{ type: KeyValueDiffers },
|
|
1040
|
+
{ type: DatatablePreferencesService }
|
|
1041
|
+
];
|
|
1042
|
+
DatatableComponent.propDecorators = {
|
|
1043
|
+
preferencesKey: [{ type: Input }],
|
|
1044
|
+
targetMarkerTemplate: [{ type: Input }],
|
|
1045
|
+
columns: [{ type: Input }],
|
|
1046
|
+
rows: [{ type: Input }],
|
|
1047
|
+
columnMode: [{ type: Input }],
|
|
1048
|
+
groupRowsBy: [{ type: Input }],
|
|
1049
|
+
groupedRows: [{ type: Input }],
|
|
1050
|
+
selected: [{ type: Input }],
|
|
1051
|
+
externalPaging: [{ type: Input }],
|
|
1052
|
+
externalSorting: [{ type: Input }],
|
|
1053
|
+
externalFiltering: [{ type: Input }],
|
|
1054
|
+
limit: [{ type: Input }],
|
|
1055
|
+
count: [{ type: Input }],
|
|
1056
|
+
offset: [{ type: Input }],
|
|
1057
|
+
loadingIndicator: [{ type: Input }],
|
|
1058
|
+
selectionType: [{ type: Input }],
|
|
1059
|
+
reorderable: [{ type: Input }],
|
|
1060
|
+
swapColumns: [{ type: Input }],
|
|
1061
|
+
sortType: [{ type: Input }],
|
|
1062
|
+
sorts: [{ type: Input }],
|
|
1063
|
+
cssClasses: [{ type: Input }],
|
|
1064
|
+
messages: [{ type: Input }],
|
|
1065
|
+
rowIdentity: [{ type: Input }],
|
|
1066
|
+
rowClass: [{ type: Input }],
|
|
1067
|
+
selectCheck: [{ type: Input }],
|
|
1068
|
+
displayCheck: [{ type: Input }],
|
|
1069
|
+
groupExpansionDefault: [{ type: Input }],
|
|
1070
|
+
trackByProp: [{ type: Input }],
|
|
1071
|
+
selectAllRowsOnPage: [{ type: Input }],
|
|
1072
|
+
treeFromRelation: [{ type: Input }],
|
|
1073
|
+
treeToRelation: [{ type: Input }],
|
|
1074
|
+
summaryRow: [{ type: Input }],
|
|
1075
|
+
summaryHeight: [{ type: Input }],
|
|
1076
|
+
summaryPosition: [{ type: Input }],
|
|
1077
|
+
virtualization: [{ type: Input }],
|
|
1078
|
+
headerHeight: [{ type: Input }],
|
|
1079
|
+
rowHeight: [{ type: Input }],
|
|
1080
|
+
footerHeight: [{ type: Input }],
|
|
1081
|
+
scrollbarV: [{ type: Input }],
|
|
1082
|
+
scrollbarH: [{ type: Input }],
|
|
1083
|
+
dataSource: [{ type: Input }],
|
|
1084
|
+
scroll: [{ type: Output }],
|
|
1085
|
+
activate: [{ type: Output }],
|
|
1086
|
+
select: [{ type: Output }],
|
|
1087
|
+
sort: [{ type: Output }],
|
|
1088
|
+
page: [{ type: Output }],
|
|
1089
|
+
reorder: [{ type: Output }],
|
|
1090
|
+
resize: [{ type: Output }],
|
|
1091
|
+
tableContextmenu: [{ type: Output }],
|
|
1092
|
+
treeAction: [{ type: Output }],
|
|
1093
|
+
actionRefreshRequest: [{ type: Output }],
|
|
1094
|
+
hiddenColumnsChange: [{ type: Output }],
|
|
1095
|
+
columnComponents: [{ type: ContentChildren, args: [DatatableColumnComponent,] }],
|
|
1096
|
+
actionMenu: [{ type: ContentChild, args: [DatatableActionMenuComponent, { static: true },] }],
|
|
1097
|
+
rowActionItem: [{ type: ContentChild, args: [DatatableRowActionItemDirective, { static: true },] }],
|
|
1098
|
+
rowDetail: [{ type: ContentChild, args: [TheSeamDatatableRowDetailDirective, { static: true },] }],
|
|
1099
|
+
menuBarComponent: [{ type: ContentChild, args: [DatatableMenuBarComponent,] }],
|
|
1100
|
+
ngxDatatable: [{ type: ViewChild, args: [DatatableComponent$1,] }],
|
|
1101
|
+
ngxDatatableElement: [{ type: ViewChild, args: [DatatableComponent$1, { read: ElementRef },] }],
|
|
1102
|
+
ngxRowDetail: [{ type: ViewChild, args: [DatatableRowDetailDirective,] }],
|
|
1103
|
+
actionMenuCellTpl: [{ type: ViewChild, args: ['actionMenuCellTpl', { static: true },] }],
|
|
1104
|
+
treeToggleTpl: [{ type: ViewChild, args: ['treeToggleTpl', { static: true },] }],
|
|
1105
|
+
headerTpl: [{ type: ViewChild, args: ['headerTpl', { static: true },] }],
|
|
1106
|
+
blankHeaderTpl: [{ type: ViewChild, args: ['blankHeaderTpl', { static: true },] }],
|
|
1107
|
+
cellTypeSelectorTpl: [{ type: ViewChild, args: ['cellTypeSelectorTpl', { static: true },] }]
|
|
1108
|
+
};
|
|
1109
|
+
__decorate([
|
|
1110
|
+
InputBoolean()
|
|
1111
|
+
], DatatableComponent.prototype, "externalPaging", void 0);
|
|
1112
|
+
__decorate([
|
|
1113
|
+
InputBoolean()
|
|
1114
|
+
], DatatableComponent.prototype, "externalSorting", void 0);
|
|
1115
|
+
__decorate([
|
|
1116
|
+
InputBoolean()
|
|
1117
|
+
], DatatableComponent.prototype, "externalFiltering", void 0);
|
|
1118
|
+
__decorate([
|
|
1119
|
+
InputNumber()
|
|
1120
|
+
], DatatableComponent.prototype, "limit", void 0);
|
|
1121
|
+
__decorate([
|
|
1122
|
+
InputNumber(0)
|
|
1123
|
+
], DatatableComponent.prototype, "count", void 0);
|
|
1124
|
+
__decorate([
|
|
1125
|
+
InputNumber(0)
|
|
1126
|
+
], DatatableComponent.prototype, "offset", void 0);
|
|
1127
|
+
__decorate([
|
|
1128
|
+
InputBoolean()
|
|
1129
|
+
], DatatableComponent.prototype, "loadingIndicator", void 0);
|
|
1130
|
+
__decorate([
|
|
1131
|
+
InputBoolean()
|
|
1132
|
+
], DatatableComponent.prototype, "reorderable", void 0);
|
|
1133
|
+
__decorate([
|
|
1134
|
+
InputBoolean()
|
|
1135
|
+
], DatatableComponent.prototype, "swapColumns", void 0);
|
|
1136
|
+
__decorate([
|
|
1137
|
+
InputBoolean()
|
|
1138
|
+
], DatatableComponent.prototype, "groupExpansionDefault", void 0);
|
|
1139
|
+
__decorate([
|
|
1140
|
+
InputBoolean()
|
|
1141
|
+
], DatatableComponent.prototype, "selectAllRowsOnPage", void 0);
|
|
1142
|
+
__decorate([
|
|
1143
|
+
InputBoolean()
|
|
1144
|
+
], DatatableComponent.prototype, "summaryRow", void 0);
|
|
1145
|
+
__decorate([
|
|
1146
|
+
InputNumber()
|
|
1147
|
+
], DatatableComponent.prototype, "summaryHeight", void 0);
|
|
1148
|
+
__decorate([
|
|
1149
|
+
InputBoolean()
|
|
1150
|
+
], DatatableComponent.prototype, "virtualization", void 0);
|
|
1151
|
+
__decorate([
|
|
1152
|
+
InputNumber()
|
|
1153
|
+
], DatatableComponent.prototype, "headerHeight", void 0);
|
|
1154
|
+
__decorate([
|
|
1155
|
+
InputNumber()
|
|
1156
|
+
], DatatableComponent.prototype, "rowHeight", void 0);
|
|
1157
|
+
__decorate([
|
|
1158
|
+
InputNumber()
|
|
1159
|
+
], DatatableComponent.prototype, "footerHeight", void 0);
|
|
1160
|
+
__decorate([
|
|
1161
|
+
InputBoolean()
|
|
1162
|
+
], DatatableComponent.prototype, "scrollbarV", void 0);
|
|
1163
|
+
__decorate([
|
|
1164
|
+
InputBoolean()
|
|
1165
|
+
], DatatableComponent.prototype, "scrollbarH", void 0);
|
|
1166
|
+
|
|
1167
|
+
class DatatableColumnPreferencesComponent {
|
|
1168
|
+
constructor(_datatable) {
|
|
1169
|
+
var _a;
|
|
1170
|
+
this._datatable = _datatable;
|
|
1171
|
+
this._filterControl = new FormControl();
|
|
1172
|
+
this._columns$ = combineLatest([
|
|
1173
|
+
(_a = this._datatable.columns$) !== null && _a !== void 0 ? _a : of([]),
|
|
1174
|
+
observeControlValue(this._filterControl)
|
|
1175
|
+
]).pipe(map(([columns, filter]) => {
|
|
1176
|
+
const _filter = (filter || '').trim().toLowerCase();
|
|
1177
|
+
return columns.filter(c => `${(c.name || c.prop || '')}`.toLowerCase().indexOf(_filter) !== -1);
|
|
1178
|
+
}), map(cols => cols.sort((a, b) => a.prop === b.prop ? 0 : a.prop > b.prop ? 1 : -1)));
|
|
1179
|
+
}
|
|
1180
|
+
ngOnInit() { }
|
|
1181
|
+
_onChange(event, col) {
|
|
1182
|
+
// TODO: Figure out the right way to update this value. If it is set by
|
|
1183
|
+
// column component input this may not work right.
|
|
1184
|
+
const columns = this._datatable.columns || [];
|
|
1185
|
+
const column = columns.find(c => c.prop === col.prop);
|
|
1186
|
+
if (column) {
|
|
1187
|
+
column.hidden = !event.checked;
|
|
1188
|
+
this._datatable.columns = [...columns];
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
_onCloseClick() {
|
|
1192
|
+
// TODO: Implement when PopoverRef is implemented.
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
DatatableColumnPreferencesComponent.decorators = [
|
|
1196
|
+
{ type: Component, args: [{
|
|
1197
|
+
selector: 'seam-datatable-column-preferences',
|
|
1198
|
+
template: "<h3>Columns</h3>\n\n<seam-form-field [numPaddingErrors]=\"0\" >\n <input seamInput [formControl]=\"_filterControl\" seamInputSize=\"sm\" placeholder=\"Search\">\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",
|
|
1199
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1200
|
+
styles: [":host{display:flex;flex-direction:column}"]
|
|
1201
|
+
},] }
|
|
1202
|
+
];
|
|
1203
|
+
DatatableColumnPreferencesComponent.ctorParameters = () => [
|
|
1204
|
+
{ type: DatatableComponent, decorators: [{ type: Inject, args: [THESEAM_DATATABLE,] }] }
|
|
1205
|
+
];
|
|
1206
|
+
|
|
1207
|
+
class DatatableColumnPreferencesButtonComponent {
|
|
1208
|
+
constructor() {
|
|
1209
|
+
this.icon = faColumns;
|
|
1210
|
+
}
|
|
1211
|
+
ngOnInit() { }
|
|
1212
|
+
}
|
|
1213
|
+
DatatableColumnPreferencesButtonComponent.decorators = [
|
|
1214
|
+
{ type: Component, args: [{
|
|
1215
|
+
selector: 'seam-datatable-column-preferences-button',
|
|
1216
|
+
template: "<ng-template #colPrefsTpl>\n <seam-datatable-column-preferences></seam-datatable-column-preferences>\n</ng-template>\n\n\n<button\n seamButton\n [seamPopover]=\"colPrefsTpl\"\n theme=\"lightgray\"\n size=\"sm\"\n style=\"padding-left: 10px; padding-right: 10px;\"\n title=\"Column Preferences\"\n >\n <seam-icon [icon]=\"icon\"></seam-icon>\n <span class=\"sr-only\">Column Preferences</span>\n</button>\n",
|
|
1217
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1218
|
+
styles: [""]
|
|
1219
|
+
},] }
|
|
1220
|
+
];
|
|
1221
|
+
DatatableColumnPreferencesButtonComponent.ctorParameters = () => [];
|
|
1222
|
+
|
|
1223
|
+
class DatatableExportButtonComponent {
|
|
1224
|
+
constructor(_datatable, _toastr, _loading, _valueHelper, _data) {
|
|
1225
|
+
this._datatable = _datatable;
|
|
1226
|
+
this._toastr = _toastr;
|
|
1227
|
+
this._loading = _loading;
|
|
1228
|
+
this._valueHelper = _valueHelper;
|
|
1229
|
+
this._data = _data;
|
|
1230
|
+
this.icon = faFileDownload;
|
|
1231
|
+
if (this._data && this._data.exporters) {
|
|
1232
|
+
this.exporters = this._data.exporters;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
get disabled() {
|
|
1236
|
+
return !(this.exporters && this.exporters.length > 0);
|
|
1237
|
+
}
|
|
1238
|
+
ngOnInit() { }
|
|
1239
|
+
_onExporterClicked(exporter) {
|
|
1240
|
+
if (!exporter.export) {
|
|
1241
|
+
const msg = isDevMode()
|
|
1242
|
+
? `Exporter '${exporter.name}' is missing an export method.`
|
|
1243
|
+
: `${exporter.label} export is not available.`;
|
|
1244
|
+
this._toastr.error(msg, 'Data Export');
|
|
1245
|
+
}
|
|
1246
|
+
const export$ = this._datatable.rows$
|
|
1247
|
+
.pipe(take(1), map(rows => {
|
|
1248
|
+
if (exporter.skipDataMapping) {
|
|
1249
|
+
return rows;
|
|
1250
|
+
}
|
|
1251
|
+
return this._mapExportData(this._datatable.columns || [], rows);
|
|
1252
|
+
}), concatMap(data => exporter.export(data)), catchError(err => {
|
|
1253
|
+
console.error(err);
|
|
1254
|
+
return of(false);
|
|
1255
|
+
}), tap(success => {
|
|
1256
|
+
if (success) {
|
|
1257
|
+
this._toastr.success(`${exporter.label} export complete.`, 'Data Export');
|
|
1258
|
+
}
|
|
1259
|
+
else {
|
|
1260
|
+
this._toastr.error(`${exporter.label} export failed.`, 'Data Export');
|
|
1261
|
+
}
|
|
1262
|
+
}));
|
|
1263
|
+
this._loading.while(export$).subscribe();
|
|
1264
|
+
}
|
|
1265
|
+
_mapExportData(columns, rows) {
|
|
1266
|
+
const data = [];
|
|
1267
|
+
for (const row of rows) {
|
|
1268
|
+
const newRow = {};
|
|
1269
|
+
for (const col of columns) {
|
|
1270
|
+
if (!col.exportIgnore) {
|
|
1271
|
+
const colName = col.exportHeader || col.name || col.prop;
|
|
1272
|
+
if (colName) {
|
|
1273
|
+
newRow[colName] = this._rowValue(col, row);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
data.push(newRow);
|
|
1278
|
+
}
|
|
1279
|
+
return data;
|
|
1280
|
+
}
|
|
1281
|
+
_rowValue(column, row) {
|
|
1282
|
+
if (hasProperty(column, 'exportValue')) {
|
|
1283
|
+
const context = { value: column.prop ? row[column.prop] : undefined, row };
|
|
1284
|
+
return this._valueHelper.evalSync(column.exportValue, context);
|
|
1285
|
+
}
|
|
1286
|
+
const colProp = column.prop;
|
|
1287
|
+
if (colProp) {
|
|
1288
|
+
return row[colProp];
|
|
1289
|
+
}
|
|
1290
|
+
return undefined;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
DatatableExportButtonComponent.decorators = [
|
|
1294
|
+
{ type: Component, args: [{
|
|
1295
|
+
selector: 'seam-datatable-export-button',
|
|
1296
|
+
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",
|
|
1297
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1298
|
+
styles: [":host{display:inline-block}"]
|
|
1299
|
+
},] }
|
|
1300
|
+
];
|
|
1301
|
+
DatatableExportButtonComponent.ctorParameters = () => [
|
|
1302
|
+
{ type: DatatableComponent, decorators: [{ type: Inject, args: [THESEAM_DATATABLE,] }] },
|
|
1303
|
+
{ type: ToastrService },
|
|
1304
|
+
{ type: TheSeamLoadingOverlayService },
|
|
1305
|
+
{ type: DynamicValueHelperService },
|
|
1306
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [THESEAM_DYNAMIC_DATA,] }] }
|
|
1307
|
+
];
|
|
1308
|
+
DatatableExportButtonComponent.propDecorators = {
|
|
1309
|
+
exporters: [{ type: Input }]
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
class DatatableMenuBarColumnCenterComponent {
|
|
1313
|
+
constructor() { }
|
|
1314
|
+
ngOnInit() {
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
DatatableMenuBarColumnCenterComponent.decorators = [
|
|
1318
|
+
{ type: Component, args: [{
|
|
1319
|
+
selector: 'seam-datatable-menu-bar-column-center',
|
|
1320
|
+
template: "<ng-content></ng-content>\n",
|
|
1321
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1322
|
+
styles: [":host{display:flex;flex-direction:row;flex:1 1 auto;justify-content:center}"]
|
|
1323
|
+
},] }
|
|
1324
|
+
];
|
|
1325
|
+
DatatableMenuBarColumnCenterComponent.ctorParameters = () => [];
|
|
1326
|
+
|
|
1327
|
+
class DatatableMenuBarColumnLeftComponent {
|
|
1328
|
+
constructor() { }
|
|
1329
|
+
ngOnInit() {
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
DatatableMenuBarColumnLeftComponent.decorators = [
|
|
1333
|
+
{ type: Component, args: [{
|
|
1334
|
+
selector: 'seam-datatable-menu-bar-column-left',
|
|
1335
|
+
template: "<ng-content></ng-content>\n",
|
|
1336
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1337
|
+
styles: [":host{display:flex;flex-direction:row;flex:1 1 0%;justify-content:flex-start}"]
|
|
1338
|
+
},] }
|
|
1339
|
+
];
|
|
1340
|
+
DatatableMenuBarColumnLeftComponent.ctorParameters = () => [];
|
|
1341
|
+
|
|
1342
|
+
class DatatableMenuBarColumnRightComponent {
|
|
1343
|
+
constructor() { }
|
|
1344
|
+
ngOnInit() {
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
DatatableMenuBarColumnRightComponent.decorators = [
|
|
1348
|
+
{ type: Component, args: [{
|
|
1349
|
+
selector: 'seam-datatable-menu-bar-column-right',
|
|
1350
|
+
template: "<ng-content></ng-content>\n",
|
|
1351
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1352
|
+
styles: [":host{display:flex;flex-direction:row;flex:1 1 0%;justify-content:flex-end}"]
|
|
1353
|
+
},] }
|
|
1354
|
+
];
|
|
1355
|
+
DatatableMenuBarColumnRightComponent.ctorParameters = () => [];
|
|
1356
|
+
|
|
1357
|
+
class DatatableMenuBarRowComponent {
|
|
1358
|
+
constructor() { }
|
|
1359
|
+
ngOnInit() {
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
DatatableMenuBarRowComponent.decorators = [
|
|
1363
|
+
{ type: Component, args: [{
|
|
1364
|
+
selector: 'seam-datatable-menu-bar-row',
|
|
1365
|
+
template: "<ng-content></ng-content>\n",
|
|
1366
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1367
|
+
styles: [":host{display:flex;flex-direction:row;flex-wrap:wrap}"]
|
|
1368
|
+
},] }
|
|
1369
|
+
];
|
|
1370
|
+
DatatableMenuBarRowComponent.ctorParameters = () => [];
|
|
1371
|
+
|
|
1372
|
+
const THESEAM_MENUBAR_ITEM_DATA = new InjectionToken('MenubarItemData');
|
|
1373
|
+
|
|
1374
|
+
class DatatableMenuBarTextComponent {
|
|
1375
|
+
constructor(_menuBar, _data) {
|
|
1376
|
+
this._menuBar = _menuBar;
|
|
1377
|
+
this._data = _data;
|
|
1378
|
+
if (notNullOrUndefined(this._data)) {
|
|
1379
|
+
if (hasProperty(this._data, 'value')) {
|
|
1380
|
+
this.value = this._data.value;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
ngOnInit() { }
|
|
1385
|
+
}
|
|
1386
|
+
DatatableMenuBarTextComponent.decorators = [
|
|
1387
|
+
{ type: Component, args: [{
|
|
1388
|
+
selector: 'seam-datatable-menu-bar-text',
|
|
1389
|
+
template: "{{ value }}\n",
|
|
1390
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1391
|
+
styles: [""]
|
|
1392
|
+
},] }
|
|
1393
|
+
];
|
|
1394
|
+
DatatableMenuBarTextComponent.ctorParameters = () => [
|
|
1395
|
+
{ type: DatatableMenuBarComponent },
|
|
1396
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [THESEAM_MENUBAR_ITEM_DATA,] }] }
|
|
1397
|
+
];
|
|
1398
|
+
DatatableMenuBarTextComponent.propDecorators = {
|
|
1399
|
+
value: [{ type: Input }]
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
class DatatableActionMenuItemDirective {
|
|
1403
|
+
constructor(_modal, _dynamicComponentLoader, _http) {
|
|
1404
|
+
this._modal = _modal;
|
|
1405
|
+
this._dynamicComponentLoader = _dynamicComponentLoader;
|
|
1406
|
+
this._http = _http;
|
|
1407
|
+
this._listGroupItem = true;
|
|
1408
|
+
this._listGroupItemAction = true;
|
|
1409
|
+
this.click = new EventEmitter();
|
|
1410
|
+
}
|
|
1411
|
+
ngOnInit() { }
|
|
1412
|
+
ngOnDestroy() { }
|
|
1413
|
+
}
|
|
1414
|
+
DatatableActionMenuItemDirective.decorators = [
|
|
1415
|
+
{ type: Directive, args: [{
|
|
1416
|
+
selector: '[seamDatatableActionMenuItem]'
|
|
1417
|
+
},] }
|
|
1418
|
+
];
|
|
1419
|
+
DatatableActionMenuItemDirective.ctorParameters = () => [
|
|
1420
|
+
{ type: Modal },
|
|
1421
|
+
{ type: TheSeamDynamicComponentLoader },
|
|
1422
|
+
{ type: HttpClient, decorators: [{ type: Optional }] }
|
|
1423
|
+
];
|
|
1424
|
+
DatatableActionMenuItemDirective.propDecorators = {
|
|
1425
|
+
_listGroupItem: [{ type: HostBinding, args: ['class.list-group-item',] }],
|
|
1426
|
+
_listGroupItemAction: [{ type: HostBinding, args: ['class.list-group-item-action',] }],
|
|
1427
|
+
label: [{ type: Input }],
|
|
1428
|
+
href: [{ type: Input, args: ['attr.href',] }],
|
|
1429
|
+
target: [{ type: Input }],
|
|
1430
|
+
queryParams: [{ type: Input }],
|
|
1431
|
+
fragment: [{ type: Input }],
|
|
1432
|
+
queryParamsHandling: [{ type: Input }],
|
|
1433
|
+
preserveFragment: [{ type: Input }],
|
|
1434
|
+
skipLocationChange: [{ type: Input }],
|
|
1435
|
+
replaceUrl: [{ type: Input }],
|
|
1436
|
+
state: [{ type: Input }],
|
|
1437
|
+
routerLink: [{ type: Input }],
|
|
1438
|
+
confirmDialog: [{ type: Input }],
|
|
1439
|
+
row: [{ type: Input }],
|
|
1440
|
+
click: [{ type: Output }]
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
class DatatableActionMenuToggleDirective {
|
|
1444
|
+
constructor(_elementRef, _viewContainerRef, _overlay) {
|
|
1445
|
+
this._elementRef = _elementRef;
|
|
1446
|
+
this._viewContainerRef = _viewContainerRef;
|
|
1447
|
+
this._overlay = _overlay;
|
|
1448
|
+
this._active = false;
|
|
1449
|
+
this._actionDown = false;
|
|
1450
|
+
}
|
|
1451
|
+
_onKeydown(event) {
|
|
1452
|
+
if (event.keyCode === ESCAPE) {
|
|
1453
|
+
this.disable();
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
_onClick(event) {
|
|
1457
|
+
this.toggle();
|
|
1458
|
+
}
|
|
1459
|
+
_mouseDown(event) { this.onInputDown(event); }
|
|
1460
|
+
_pointerDown(event) { this.onInputDown(event); }
|
|
1461
|
+
_mouseUp(event) { this.onInputUp(event); }
|
|
1462
|
+
_pointerUp(event) { this.onInputUp(event); }
|
|
1463
|
+
get active() { return this._active; }
|
|
1464
|
+
toggle() {
|
|
1465
|
+
if (this._active) {
|
|
1466
|
+
this.disable();
|
|
1467
|
+
}
|
|
1468
|
+
else {
|
|
1469
|
+
this.enable();
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
enable() {
|
|
1473
|
+
if (this.active) {
|
|
1474
|
+
return;
|
|
1475
|
+
}
|
|
1476
|
+
if (!this.seamDatatableActionMenuToggle) {
|
|
1477
|
+
return;
|
|
1478
|
+
}
|
|
1479
|
+
this._overlayRef = this._overlay.create({
|
|
1480
|
+
hasBackdrop: false,
|
|
1481
|
+
positionStrategy: this.getOverlayPosition(this._elementRef.nativeElement),
|
|
1482
|
+
});
|
|
1483
|
+
this._overlayRef.attach(new TemplatePortal(this.seamDatatableActionMenuToggle, this._viewContainerRef));
|
|
1484
|
+
this._active = true;
|
|
1485
|
+
}
|
|
1486
|
+
disable() {
|
|
1487
|
+
var _a;
|
|
1488
|
+
if (!this.active) {
|
|
1489
|
+
return;
|
|
1490
|
+
}
|
|
1491
|
+
if ((_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
|
|
1492
|
+
this._overlayRef.detach();
|
|
1493
|
+
}
|
|
1494
|
+
this._active = false;
|
|
1495
|
+
}
|
|
1496
|
+
getOverlayPosition(origin) {
|
|
1497
|
+
const positionStrategy = this._overlay.position()
|
|
1498
|
+
.flexibleConnectedTo(origin)
|
|
1499
|
+
.withPositions(this.getPositions())
|
|
1500
|
+
.withFlexibleDimensions(false)
|
|
1501
|
+
.withPush(false);
|
|
1502
|
+
return positionStrategy;
|
|
1503
|
+
}
|
|
1504
|
+
getPositions() {
|
|
1505
|
+
return [
|
|
1506
|
+
{
|
|
1507
|
+
originX: 'start',
|
|
1508
|
+
originY: 'bottom',
|
|
1509
|
+
overlayX: 'end',
|
|
1510
|
+
overlayY: 'top',
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
originX: 'start',
|
|
1514
|
+
originY: 'top',
|
|
1515
|
+
overlayX: 'end',
|
|
1516
|
+
overlayY: 'bottom',
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
originX: 'end',
|
|
1520
|
+
originY: 'bottom',
|
|
1521
|
+
overlayX: 'start',
|
|
1522
|
+
overlayY: 'top',
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
originX: 'end',
|
|
1526
|
+
originY: 'top',
|
|
1527
|
+
overlayX: 'start',
|
|
1528
|
+
overlayY: 'bottom',
|
|
1529
|
+
},
|
|
1530
|
+
];
|
|
1531
|
+
}
|
|
1532
|
+
onFocusChangeOverlay(event) {
|
|
1533
|
+
if (event === null) {
|
|
1534
|
+
if (!this._actionDown) {
|
|
1535
|
+
// this.disable()
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
onInputDown(event) {
|
|
1540
|
+
this._actionDown = true;
|
|
1541
|
+
}
|
|
1542
|
+
onInputUp(event) {
|
|
1543
|
+
this._actionDown = false;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
DatatableActionMenuToggleDirective.decorators = [
|
|
1547
|
+
{ type: Directive, args: [{
|
|
1548
|
+
selector: '[seamDatatableActionMenuToggle]',
|
|
1549
|
+
exportAs: 'seamDatatableActionMenuToggle'
|
|
1550
|
+
},] }
|
|
1551
|
+
];
|
|
1552
|
+
DatatableActionMenuToggleDirective.ctorParameters = () => [
|
|
1553
|
+
{ type: ElementRef },
|
|
1554
|
+
{ type: ViewContainerRef },
|
|
1555
|
+
{ type: Overlay }
|
|
1556
|
+
];
|
|
1557
|
+
DatatableActionMenuToggleDirective.propDecorators = {
|
|
1558
|
+
seamDatatableActionMenuToggle: [{ type: Input }],
|
|
1559
|
+
_onKeydown: [{ type: HostListener, args: ['document:keydown', ['$event'],] }],
|
|
1560
|
+
_onClick: [{ type: HostListener, args: ['click', ['$event'],] }],
|
|
1561
|
+
_mouseDown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
|
|
1562
|
+
_pointerDown: [{ type: HostListener, args: ['pointerdown', ['$event'],] }],
|
|
1563
|
+
_mouseUp: [{ type: HostListener, args: ['mouseup', ['$event'],] }],
|
|
1564
|
+
_pointerUp: [{ type: HostListener, args: ['pointerup', ['$event'],] }]
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
class DatatableGqlDataSource extends DatatableDataSource {
|
|
1568
|
+
connect(collectionViewer) {
|
|
1569
|
+
throw new Error('Method not implemented.');
|
|
1570
|
+
// return combineLatest([
|
|
1571
|
+
// this.sorts$,
|
|
1572
|
+
// this.filterStates$,
|
|
1573
|
+
// this.page$
|
|
1574
|
+
// ]).pipe()
|
|
1575
|
+
}
|
|
1576
|
+
disconnect(collectionViewer) {
|
|
1577
|
+
throw new Error('Method not implemented.');
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
class TheSeamDatatableScrollbarHelperService {
|
|
1582
|
+
constructor(_ngZone, _scrollbars) {
|
|
1583
|
+
this._ngZone = _ngZone;
|
|
1584
|
+
this._scrollbars = _scrollbars;
|
|
1585
|
+
this.width = 0;
|
|
1586
|
+
/**
|
|
1587
|
+
* Animates programmatic scrolling, such as switching pages.
|
|
1588
|
+
*
|
|
1589
|
+
* NOTE: Animating the scrolling works, but the datatable may need changes
|
|
1590
|
+
* before this is enabled, because it seems a little stuttery when it moves.
|
|
1591
|
+
*/
|
|
1592
|
+
this.animatedScrolling = false;
|
|
1593
|
+
this.animatedScrollingTime = 250;
|
|
1594
|
+
}
|
|
1595
|
+
onInitScroller(scroller) {
|
|
1596
|
+
this._scrollbars.initializeInstance(scroller.parentElement, {
|
|
1597
|
+
callbacks: {
|
|
1598
|
+
onScroll: (e) => {
|
|
1599
|
+
this._ngZone.run(() => {
|
|
1600
|
+
scroller.onScrolled(e);
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
onDestroyScroller(scroller) {
|
|
1607
|
+
this._scrollbars.destroyInstance(scroller.parentElement);
|
|
1608
|
+
}
|
|
1609
|
+
setOffset(scroller, offsetY) {
|
|
1610
|
+
this._ngZone.runOutsideAngular(() => {
|
|
1611
|
+
if (this.animatedScrolling) {
|
|
1612
|
+
this._scrollbars.getInstance(scroller.parentElement)
|
|
1613
|
+
.scroll({ y: offsetY }, this.animatedScrollingTime);
|
|
1614
|
+
}
|
|
1615
|
+
else {
|
|
1616
|
+
this._scrollbars.getInstance(scroller.parentElement)
|
|
1617
|
+
.scroll({ y: offsetY });
|
|
1618
|
+
}
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
TheSeamDatatableScrollbarHelperService.decorators = [
|
|
1623
|
+
{ type: Injectable }
|
|
1624
|
+
];
|
|
1625
|
+
TheSeamDatatableScrollbarHelperService.ctorParameters = () => [
|
|
1626
|
+
{ type: NgZone },
|
|
1627
|
+
{ type: OverlayScrollbarsService }
|
|
1628
|
+
];
|
|
1629
|
+
|
|
1630
|
+
class TheSeamDatatableModule {
|
|
1631
|
+
}
|
|
1632
|
+
TheSeamDatatableModule.decorators = [
|
|
1633
|
+
{ type: NgModule, args: [{
|
|
1634
|
+
declarations: [
|
|
1635
|
+
DatatableComponent,
|
|
1636
|
+
DatatableCellTplDirective,
|
|
1637
|
+
DatatableColumnComponent,
|
|
1638
|
+
DatatableActionMenuComponent,
|
|
1639
|
+
DatatableActionMenuToggleDirective,
|
|
1640
|
+
DatatableActionMenuItemComponent,
|
|
1641
|
+
DatatableMenuBarComponent,
|
|
1642
|
+
DatatableFilterDirective,
|
|
1643
|
+
DatatableRowActionItemDirective,
|
|
1644
|
+
DatatableExportButtonComponent,
|
|
1645
|
+
TheSeamDatatableRowDetailDirective,
|
|
1646
|
+
DatatableRowDetailTplDirective,
|
|
1647
|
+
DatatableColumnPreferencesComponent,
|
|
1648
|
+
DatatableColumnPreferencesButtonComponent,
|
|
1649
|
+
DatatableActionMenuItemDirective,
|
|
1650
|
+
DatatableMenuBarRowComponent,
|
|
1651
|
+
DatatableMenuBarColumnLeftComponent,
|
|
1652
|
+
DatatableMenuBarColumnCenterComponent,
|
|
1653
|
+
DatatableMenuBarColumnRightComponent,
|
|
1654
|
+
DatatableMenuBarTextComponent,
|
|
1655
|
+
],
|
|
1656
|
+
imports: [
|
|
1657
|
+
CommonModule,
|
|
1658
|
+
NgxDatatableModule,
|
|
1659
|
+
FontAwesomeModule,
|
|
1660
|
+
OverlayModule,
|
|
1661
|
+
A11yModule,
|
|
1662
|
+
TheSeamSharedModule,
|
|
1663
|
+
RouterModule,
|
|
1664
|
+
TheSeamMenuModule,
|
|
1665
|
+
TheSeamButtonsModule,
|
|
1666
|
+
TheSeamIconModule,
|
|
1667
|
+
ToastrModule,
|
|
1668
|
+
TheSeamLoadingModule,
|
|
1669
|
+
PortalModule,
|
|
1670
|
+
TheSeamConfirmDialogModule,
|
|
1671
|
+
TheSeamPopoverModule,
|
|
1672
|
+
TheSeamCheckboxModule,
|
|
1673
|
+
TheSeamFormFieldModule,
|
|
1674
|
+
ReactiveFormsModule,
|
|
1675
|
+
TheSeamTableCellTypeModule
|
|
1676
|
+
],
|
|
1677
|
+
exports: [
|
|
1678
|
+
DatatableComponent,
|
|
1679
|
+
DatatableCellTplDirective,
|
|
1680
|
+
DatatableColumnComponent,
|
|
1681
|
+
DatatableActionMenuComponent,
|
|
1682
|
+
DatatableActionMenuItemComponent,
|
|
1683
|
+
DatatableMenuBarComponent,
|
|
1684
|
+
DatatableFilterDirective,
|
|
1685
|
+
DatatableRowActionItemDirective,
|
|
1686
|
+
DatatableExportButtonComponent,
|
|
1687
|
+
TheSeamDatatableRowDetailDirective,
|
|
1688
|
+
DatatableRowDetailTplDirective,
|
|
1689
|
+
DatatableColumnPreferencesComponent,
|
|
1690
|
+
DatatableColumnPreferencesButtonComponent,
|
|
1691
|
+
DatatableActionMenuItemDirective,
|
|
1692
|
+
DatatableMenuBarRowComponent,
|
|
1693
|
+
DatatableMenuBarColumnLeftComponent,
|
|
1694
|
+
DatatableMenuBarColumnCenterComponent,
|
|
1695
|
+
DatatableMenuBarColumnRightComponent,
|
|
1696
|
+
DatatableMenuBarTextComponent
|
|
1697
|
+
],
|
|
1698
|
+
providers: [
|
|
1699
|
+
{ provide: ScrollbarHelper, useClass: TheSeamDatatableScrollbarHelperService }
|
|
1700
|
+
],
|
|
1701
|
+
entryComponents: [
|
|
1702
|
+
DatatableColumnPreferencesComponent,
|
|
1703
|
+
DatatableExportButtonComponent,
|
|
1704
|
+
DatatableMenuBarTextComponent
|
|
1705
|
+
]
|
|
1706
|
+
},] }
|
|
1707
|
+
];
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* Generated bundle index. Do not edit.
|
|
1711
|
+
*/
|
|
1712
|
+
|
|
1713
|
+
export { DatatableActionMenuComponent, DatatableActionMenuItemComponent, DatatableActionMenuItemDirective, DatatableActionMenuToggleDirective, DatatableCellTplDirective, DatatableColumnChangesService, DatatableColumnComponent, DatatableColumnPreferencesButtonComponent, DatatableColumnPreferencesComponent, DatatableComponent, DatatableDataSource, DatatableExportButtonComponent, DatatableFilterDirective, DatatableGqlDataSource, DatatableMenuBarColumnCenterComponent, DatatableMenuBarColumnLeftComponent, DatatableMenuBarColumnRightComponent, DatatableMenuBarComponent, DatatableMenuBarRowComponent, DatatableMenuBarTextComponent, DatatablePreferencesService, DatatableRowActionItemDirective, DatatableRowDetailTplDirective, THESEAM_DATATABLE, THESEAM_DATATABLE_PREFERENCES_ACCESSOR, THESEAM_MENUBAR_ITEM_DATA, TheSeamDatatableModule, TheSeamDatatableRowDetailDirective, TheSeamDatatableScrollbarHelperService, _THESEAM_DATATABLE, _THESEAM_DATATABLE_ACCESSOR, _THESEAM_DATA_FILTER_CONTAINER, _setColumnDefaults, withStoredColumnInfo, THESEAM_DATATABLE_ACCESSOR as ɵa };
|
|
1714
|
+
//# sourceMappingURL=theseam-ui-common-datatable.js.map
|