@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.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/ui-common/datatable/models/datatable-data-source.ts","../../../projects/ui-common/datatable/datatable-action-menu-item/datatable-action-menu-item.component.ts","../../../projects/ui-common/datatable/datatable-action-menu/datatable-action-menu.component.ts","../../../projects/ui-common/datatable/directives/datatable-cell-tpl.directive.ts","../../../projects/ui-common/datatable/services/datatable-column-changes.service.ts","../../../projects/ui-common/datatable/datatable-column/datatable-column.component.ts","../../../projects/ui-common/datatable/directives/datatable-filter.directive.ts","../../../projects/ui-common/datatable/datatable-menu-bar/datatable-menu-bar.component.ts","../../../projects/ui-common/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.ts","../../../projects/ui-common/datatable/datatable-row-detail/datatable-row-detail.directive.ts","../../../projects/ui-common/datatable/directives/datatable-row-action-item.directive.ts","../../../projects/ui-common/datatable/tokens/datatable-preferences-accessor.ts","../../../projects/ui-common/datatable/utils/with-stored-column-info.ts","../../../projects/ui-common/datatable/services/datatable-preferences.service.ts","../../../projects/ui-common/datatable/tokens/datatable-accessor.ts","../../../projects/ui-common/datatable/datatable/datatable.component.ts","../../../projects/ui-common/datatable/datatable-column-preferences/datatable-column-preferences.component.ts","../../../projects/ui-common/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.ts","../../../projects/ui-common/datatable/datatable-export-button/datatable-export-button.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.ts","../../../projects/ui-common/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.ts","../../../projects/ui-common/datatable/tokens/menubar-item-data.ts","../../../projects/ui-common/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.ts","../../../projects/ui-common/datatable/directives/datatable-action-menu-item.directive.ts","../../../projects/ui-common/datatable/directives/datatable-action-menu-toggle.directive.ts","../../../projects/ui-common/datatable/models/datatable-gql-data-source.ts","../../../projects/ui-common/datatable/services/datatable-scrollbar-helper.service.ts","../../../projects/ui-common/datatable/datatable.module.ts","../../../projects/ui-common/datatable/theseam-ui-common-datatable.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || from);\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { DataSource } from '@angular/cdk/collections'\nimport { BehaviorSubject, Observable, of } from 'rxjs'\nimport { map, startWith, switchMap } from 'rxjs/operators'\n\nimport { DataFilterState } from '@theseam/ui-common/data-filters'\n\nimport { TheSeamDatatableAccessor } from './datatable-accessor'\nimport { TheSeamPageInfo } from './page-info'\nimport { SortItem } from './sort-item'\n\nexport abstract class DatatableDataSource<TRow> extends DataSource<TRow> {\n\n private readonly _datatableSubject = new BehaviorSubject<TheSeamDatatableAccessor | undefined>(undefined)\n\n public readonly sorts$: Observable<SortItem[]>\n public readonly filterStates$: Observable<DataFilterState[]>\n public readonly page$: Observable<TheSeamPageInfo>\n\n constructor() {\n super()\n\n this.sorts$ = this._datatableSubject.pipe(\n switchMap(_datatable => {\n if (!_datatable) {\n return of([])\n }\n\n return _datatable.sort.pipe(\n map(v => v.sorts),\n startWith(_datatable.sorts)\n )\n })\n )\n\n this.filterStates$ = this._datatableSubject.pipe(\n switchMap(_datatable => {\n if (!_datatable) {\n return of([])\n }\n\n return _datatable.filterStates\n })\n )\n\n this.page$ = this._datatableSubject.pipe(\n switchMap(_datatable => {\n if (!_datatable) {\n return of({\n offset: 0,\n pageSize: 0,\n limit: undefined,\n count: 0\n })\n }\n\n return _datatable.page.pipe(\n startWith(_datatable.pageInfo)\n )\n })\n )\n }\n\n // connect(): Observable<readonly TRow[]> {\n // return this.\n // }\n\n // disconnect(): void {\n // throw new Error('Method not implemented.')\n // }\n\n public setDatatableAccessor(accessor: TheSeamDatatableAccessor): void {\n this._datatableSubject.next(accessor)\n }\n\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core'\n\nimport { ThemeTypes } from '@theseam/ui-common/models'\n\n@Component({\n selector: 'seam-datatable-action-menu-item',\n template: ``,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableActionMenuItemComponent {\n\n @Input() label: string | undefined | null\n\n // tslint:disable-next-line:no-input-rename\n @Input('attr.href') href: string | undefined | null\n @Input() target: string | undefined | null\n\n // Allow routerLink inputs on menu item\n @Input() queryParams: {[k: string]: any} | undefined | null\n @Input() fragment: string | undefined | null\n @Input() queryParamsHandling: any\n @Input() preserveFragment: boolean| undefined | null\n @Input() skipLocationChange: boolean| undefined | null\n @Input() replaceUrl: boolean| undefined | null\n @Input() state: {[k: string]: any} | undefined | null\n @Input() routerLink: string | any[] | undefined | null\n\n @Input() confirmDialog: { message?: string, alert?: string | { message: string, type: ThemeTypes } } | undefined | null\n\n @Input() disabled: boolean | undefined | null\n\n @Output() readonly click = new EventEmitter<any>()\n\n}\n","import { ConnectionPositionPair } from '@angular/cdk/overlay'\nimport { Component, ContentChildren, QueryList } from '@angular/core'\nimport { NavigationExtras, Router } from '@angular/router'\n\nimport { faEllipsisH } from '@fortawesome/free-solid-svg-icons'\n\nimport { SeamConfirmDialogService } from '@theseam/ui-common/confirm-dialog'\n\nimport { DatatableActionMenuItemComponent } from '../datatable-action-menu-item/datatable-action-menu-item.component'\n\n@Component({\n selector: 'seam-datatable-action-menu',\n templateUrl: './datatable-action-menu.component.html',\n styleUrls: ['./datatable-action-menu.component.scss']\n})\nexport class DatatableActionMenuComponent {\n\n faEllipsisH = faEllipsisH\n\n @ContentChildren(DatatableActionMenuItemComponent) items?: QueryList<DatatableActionMenuItemComponent>\n\n /** @ignore */\n _actionMenuPositions: ConnectionPositionPair[] = [\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 _confirmDialog: SeamConfirmDialogService,\n private _router: Router\n ) { }\n\n activateItem(event: any, item: DatatableActionMenuItemComponent) {\n if (item.confirmDialog) {\n this._confirmDialog.open(item.confirmDialog.message, item.confirmDialog.alert)\n .afterClosed()\n .subscribe(v => {\n if (v === 'confirm') {\n item.click.emit(event)\n if (item.href) {\n const win = window.open(item.href, item.target || undefined)\n // TODO: Consider if always setting opener to null is to restrictive\n // if (win && item.target && item.target.toLowerCase() === '_blank') {\n // win.opener = null\n // }\n } else {\n const extras: NavigationExtras = {}\n if (item.queryParams) { extras.queryParams = item.queryParams }\n if (item.fragment) { extras.fragment = item.fragment }\n if (item.queryParamsHandling) { extras.queryParamsHandling = item.queryParamsHandling }\n if (item.preserveFragment) { extras.preserveFragment = item.preserveFragment }\n if (item.skipLocationChange) { extras.skipLocationChange = item.skipLocationChange }\n if (item.replaceUrl) { extras.replaceUrl = item.replaceUrl }\n if (item.state) { extras.state = item.state }\n\n const commands = Array.isArray(item.routerLink) ? item.routerLink : [item.routerLink]\n this._router.navigate(commands, extras)\n }\n }\n })\n } else {\n item.click.emit(event)\n }\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableCellTpl]'\n})\nexport class DatatableCellTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { Injectable } from '@angular/core'\nimport { Observable, Subject } from 'rxjs'\n\n@Injectable()\nexport class DatatableColumnChangesService {\n\n private columnInputChanges = new Subject<undefined>()\n\n get columnInputChanges$(): Observable<undefined> {\n return this.columnInputChanges.asObservable()\n }\n\n onInputChange(): void {\n this.columnInputChanges.next(undefined)\n }\n\n}\n","import { Component, ContentChild, Input, OnChanges, OnInit, PipeTransform, SimpleChanges, TemplateRef } from '@angular/core'\n\nimport { ColumnChangesService } from '@marklb/ngx-datatable'\n\nimport { DatatableCellTplDirective } from '../directives/datatable-cell-tpl.directive'\nimport { DatatableColumnChangesService } from '../services/datatable-column-changes.service'\n\n// HACK: Union type prevents the not found warning\ntype _PipeTransform = PipeTransform | PipeTransform\n\n// TODO: The column component should implement `ITheSeamDatatableColumn`, since\n// providing some properties by input and some by template could be confusing.\n\n@Component({\n selector: 'seam-datatable-column',\n templateUrl: './datatable-column.component.html',\n styleUrls: ['./datatable-column.component.scss']\n})\nexport class DatatableColumnComponent implements OnInit, OnChanges {\n\n @Input() name: string | undefined | null\n @Input() prop: string | number | undefined | null\n\n @Input() flexGrow: number | undefined | null\n @Input() minWidth: number | undefined | null\n @Input() maxWidth: number | undefined | null\n @Input() width: number | undefined | null\n\n @Input() resizeable: boolean | undefined | null\n @Input() sortable: boolean | undefined | null\n @Input() draggable: boolean | undefined | null\n\n @Input() canAutoResize: boolean | undefined | null\n\n @Input() comparator: ((valueA: any, valueB: any, rowA?: any, rowB?: any, sortDirection?: 'asc' | 'desc') => -1 | 0 | 1) | undefined | null\n\n @Input() headerTemplate: TemplateRef<any> | undefined | null\n\n @Input() checkboxable: boolean | undefined | null\n @Input() headerCheckboxable: boolean | undefined | null\n\n @Input() headerClass: string | ((data: any) => string|any) | undefined | null\n @Input() cellClass: string | ((data: any) => string|any) | undefined | null\n\n @Input() frozenLeft: boolean | undefined | null\n @Input() frozenRight: boolean | undefined | null\n\n @Input() pipe: _PipeTransform | undefined | null\n\n @Input() isTreeColumn: boolean | undefined | null\n @Input() treeLevelIndent: number | undefined | null\n\n @Input() summaryFunc: ((cells: any[]) => any) | undefined | null\n @Input() summaryTemplate: TemplateRef<any> | undefined | null\n\n @Input() hidden: boolean | undefined | null\n\n private _isFirstChange = true\n\n @ContentChild(DatatableCellTplDirective, { static: true }) cellTplDirective?: DatatableCellTplDirective\n\n // tslint:disable-next-line: no-input-rename\n @Input('cellTemplate')\n _cellTemplateInput: TemplateRef<any> | undefined | null\n\n @ContentChild(DatatableCellTplDirective, { read: TemplateRef, static: true })\n _cellTemplateQuery?: TemplateRef<any>\n\n get cellTemplate(): TemplateRef<any> | undefined | null {\n return this._cellTemplateInput || this._cellTemplateQuery\n }\n\n // @Input('headerTemplate')\n // _headerTemplateInput: TemplateRef<any>;\n\n // @ContentChild(DataTableColumnHeaderDirective, { read: TemplateRef, static: true })\n // _headerTemplateQuery: TemplateRef<any>;\n\n // get headerTemplate(): TemplateRef<any> {\n // return this._headerTemplateInput || this._headerTemplateQuery;\n // }\n\n // @Input('treeToggleTemplate')\n // _treeToggleTemplateInput: TemplateRef<any>;\n\n // @ContentChild(DataTableColumnCellTreeToggle, { read: TemplateRef, static: true })\n // _treeToggleTemplateQuery: TemplateRef<any>;\n\n // get treeToggleTemplate(): TemplateRef<any> {\n // return this._treeToggleTemplateInput || this._treeToggleTemplateQuery;\n // }\n\n constructor(\n private _columnChangesService: DatatableColumnChangesService\n ) {}\n\n ngOnInit() { }\n\n ngOnChanges(changes: SimpleChanges) {\n if (this._isFirstChange) {\n this._isFirstChange = false\n } else {\n this._columnChangesService.onInputChange()\n }\n }\n\n public getCellDirective(): DatatableCellTplDirective | null {\n if (this.cellTplDirective) {\n return this.cellTplDirective\n }\n\n return null\n }\n\n}\n","import { Directive, Inject, Self } from '@angular/core'\n\nimport { IDataFilter, THESEAM_DATA_FILTER } from '@theseam/ui-common/data-filters'\n\n@Directive({\n selector: '[seamDatatableFilter]'\n})\nexport class DatatableFilterDirective {\n\n private _filter?: IDataFilter\n\n constructor(\n @Self() @Inject(THESEAM_DATA_FILTER) dataFilters: IDataFilter[]\n ) {\n if (dataFilters && dataFilters.length > 0) {\n this._filter = dataFilters[0]\n }\n }\n\n get filter() {\n return this._filter\n }\n\n}\n","import { AfterViewInit, Component, ContentChildren, EventEmitter, forwardRef, OnInit, QueryList } from '@angular/core'\n\nimport { IDataFilter, THESEAM_DATA_FILTER_CONTAINER } from '@theseam/ui-common/data-filters'\nimport { notNullOrUndefined } from '@theseam/ui-common/utils'\n\nimport { DatatableFilterDirective } from '../directives/datatable-filter.directive'\n\nexport const _THESEAM_DATA_FILTER_CONTAINER: any = {\n provide: THESEAM_DATA_FILTER_CONTAINER,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => DatatableMenuBarComponent)\n}\n\n@Component({\n selector: 'seam-datatable-menu-bar',\n templateUrl: './datatable-menu-bar.component.html',\n styleUrls: ['./datatable-menu-bar.component.scss'],\n providers: [ _THESEAM_DATA_FILTER_CONTAINER ]\n})\nexport class DatatableMenuBarComponent implements OnInit, AfterViewInit {\n\n @ContentChildren(DatatableFilterDirective)\n get filterDirectives(): QueryList<DatatableFilterDirective> | undefined {\n return this._filterDirectives\n }\n set filterDirectives(value: QueryList<DatatableFilterDirective> | undefined) {\n this._filterDirectives = value\n this.filtersChanged.emit(this.filters())\n }\n private _filterDirectives: QueryList<DatatableFilterDirective> | undefined\n\n private _filtersArr: IDataFilter[] = []\n\n public readonly filtersChanged = new EventEmitter<IDataFilter[]>()\n\n constructor() { }\n\n ngOnInit() { }\n\n ngAfterViewInit() {\n // console.log('_filterDirectives', this._filterDirectives, this.filters())\n }\n\n public filters(): IDataFilter[] {\n const fDirectives = this._filterDirectives\n ? this._filterDirectives.map(f => f.filter).filter(notNullOrUndefined)\n : []\n\n const fArr = this._filtersArr\n .filter(f => fDirectives.findIndex(fd => fd.uid === f.uid) === -1)\n return [ ...fArr, ...fDirectives ]\n }\n\n public addFilter(dataFilter: IDataFilter): void {\n this._filtersArr.push(dataFilter)\n this.filtersChanged.emit(this.filters())\n }\n\n public removeFilter(dataFilter: IDataFilter): void {\n this._filtersArr = this._filtersArr.filter(f => f !== dataFilter)\n this.filtersChanged.emit(this.filters())\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableRowDetailTpl]'\n})\nexport class DatatableRowDetailTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { ContentChild, Directive, EventEmitter, Input, Output, TemplateRef } from '@angular/core'\n\nimport { DatatableRowDetailTplDirective } from './datatable-row-detail-tpl.directive'\n\n@Directive({\n // tslint:disable-next-line: directive-selector\n selector: 'seam-datatable-row-detail'\n})\nexport class TheSeamDatatableRowDetailDirective {\n\n /**\n * The detail row height is required especially\n * when virtual scroll is enabled.\n */\n @Input() rowHeight: number | ((row?: any, index?: number) => number) | undefined | null = 0\n\n // tslint:disable-next-line: no-input-rename\n @Input('template')\n _templateInput: TemplateRef<any> | undefined | null\n\n @ContentChild(DatatableRowDetailTplDirective, { read: TemplateRef, static: true })\n _templateQuery: TemplateRef<any> | undefined | null\n\n get template(): TemplateRef<any> | undefined | null {\n return this._templateInput || this._templateQuery\n }\n\n /**\n * Row detail row visbility was toggled.\n */\n // NOTE: This will trigger from the internal ngx-datatable toggle event.\n @Output() toggle: EventEmitter<any> = new EventEmitter()\n\n /**\n * Internal use for wrapper only.\n *\n * To avoid confusion with this directives output and the ngx-datatable\n * directive being wrapped, this directive emits `_toggle` stream to the\n * `ngx-datatable-row-detail` directive and emits it's `toggle` stream out to\n * this directives `toggle` stream.\n * @ignore\n */\n _toggle: EventEmitter<any> = new EventEmitter()\n\n /**\n * Toggle the expansion of the row\n */\n toggleExpandRow(row: any): void {\n this._toggle.emit({\n type: 'row',\n value: row\n })\n }\n\n /**\n * API method to expand all the rows.\n */\n expandAllRows(): void {\n this._toggle.emit({\n type: 'all',\n value: true\n })\n }\n\n /**\n * API method to collapse all the rows.\n */\n collapseAllRows(): void {\n this._toggle.emit({\n type: 'all',\n value: false\n })\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableRowActionItem]'\n})\nexport class DatatableRowActionItemDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { ITheSeamDatatablePreferencesAccessor } from '../models/preferences-accessor'\n\nexport const THESEAM_DATATABLE_PREFERENCES_ACCESSOR = new InjectionToken<ITheSeamDatatablePreferencesAccessor>(\n 'ITheSeamDatatablePreferencesAccessor'\n)\n","import { hasProperty } from '@theseam/ui-common/utils'\n\nimport { ITheSeamDatatablePreferencesColumn } from '../models/preferences'\nimport { TheSeamDatatableColumn } from '../models/table-column'\n\nexport function withStoredColumnInfo(\n columns: TheSeamDatatableColumn[],\n preferenceColumns: ITheSeamDatatablePreferencesColumn[]\n): TheSeamDatatableColumn[] {\n const _columns: TheSeamDatatableColumn[] = []\n for (const col of columns) {\n const storedCol = preferenceColumns.find(v => v.prop === col.prop)\n if (storedCol) {\n const _col = { ...col }\n if (hasProperty(storedCol, 'width')) { _col.width = Math.max(storedCol.width, 0) }\n _col.canAutoResize = storedCol.canAutoResize\n _columns.push(_col)\n } else {\n _columns.push(col)\n }\n }\n return _columns\n}\n","import { Inject, Injectable, isDevMode, Optional } from '@angular/core'\nimport { Observable, of, Subject } from 'rxjs'\nimport { map, shareReplay, startWith, switchMap, take, tap } from 'rxjs/operators'\n\nimport { hasProperty } from '@theseam/ui-common/utils'\nimport { ITheSeamDatatablePreferences, ITheSeamDatatablePreferencesColumn } from '../models/preferences'\nimport type { ITheSeamDatatablePreferencesAccessor } from '../models/preferences-accessor'\nimport { THESEAM_DATATABLE_PREFERENCES_ACCESSOR } from '../tokens/datatable-preferences-accessor'\nimport { withStoredColumnInfo } from '../utils/with-stored-column-info'\n\nexport interface IDatatablePreferencesMapRecord {\n observable: Observable<ITheSeamDatatablePreferences>\n refresh: Subject<void>\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DatatablePreferencesService {\n\n private readonly _tablePrefsMap = new Map<string, IDatatablePreferencesMapRecord>()\n private _pending = false\n\n public get pending() { return this._pending }\n\n constructor(\n @Optional() @Inject(THESEAM_DATATABLE_PREFERENCES_ACCESSOR) private _prefsAccessor?: ITheSeamDatatablePreferencesAccessor\n ) { }\n\n public preferences(preferenceKey: string): Observable<ITheSeamDatatablePreferences> {\n let prefs = this._tablePrefsMap.get(preferenceKey)\n if (!prefs) {\n const refreshSubject = new Subject<void>()\n prefs = {\n observable: this._createObservable(refreshSubject, preferenceKey),\n refresh: refreshSubject\n }\n this._tablePrefsMap.set(preferenceKey, prefs)\n }\n return prefs.observable\n }\n\n private _createObservable(refreshSubject: Subject<void>, prefKey: string): Observable<ITheSeamDatatablePreferences> {\n if (!this._prefsAccessor) {\n return of({})\n }\n\n const accessor = (key: string): Observable<string> =>\n this._prefsAccessor ? this._prefsAccessor.get(key) : of('{}')\n\n return refreshSubject.pipe(\n startWith({}),\n switchMap(() => accessor(prefKey).pipe(\n map(v => {\n if (!v) {\n return null\n }\n\n // TODO: Add a schema validator and migration tool to avoid parsing issues.\n try {\n return JSON.parse(v) as ITheSeamDatatablePreferences\n } catch (error) {\n if (isDevMode()) {\n console.error(error)\n }\n return null\n }\n }),\n map(v => !!v ? v : {}),\n // tap(v => console.log('preferences$', v))\n // tap(v => this._pending = false)\n )),\n shareReplay(1)\n )\n }\n\n public refresh(preferenceKey: string): void {\n const prefs = this._tablePrefsMap.get(preferenceKey)\n if (prefs) {\n this._pending = true\n prefs.refresh.next()\n }\n }\n\n // TODO: Improve this updating to be more generic, so we can quickly add\n // edits for different preference schema's.\n //\n // TODO: Decide if a send queue/merging of pending queue is needed to avoid\n // out of order updates. This shouldn't be an issue, with how fast preferences\n // will most likely be changing, but it could happen in situations, such as\n // network issues.\n public setColumnPreference(preferenceKey: string, column: ITheSeamDatatablePreferencesColumn): void {\n if (!this._prefsAccessor) {\n return\n }\n\n this._pending = true\n this.preferences(preferenceKey).pipe(\n map(prefs => {\n // Making the preferences immutable may not be necessary, but for now\n // this obj->str->obj will work as a naive clone.\n const columns = JSON.parse(JSON.stringify(prefs.columns || []))\n const _colPref = columns.find((c: any) => c.prop === column.prop)\n // console.log('has', _colPref)\n if (_colPref) {\n // console.log('hasProperty(column, \"width\"))', hasProperty(column, 'width'))\n if (hasProperty(column, 'width')) { _colPref.width = column.width }\n if (hasProperty(column, 'canAutoResize')) { _colPref.canAutoResize = column.canAutoResize }\n if (hasProperty(column, 'hidden')) { _colPref.hidden = column.hidden }\n } else {\n columns.push({ ...column })\n }\n const newPrefs: ITheSeamDatatablePreferences = { ...prefs, columns }\n return newPrefs\n }),\n // tap(v => console.log('newPrefs', v)),\n take(1),\n switchMap(newPrefs => this._prefsAccessor\n ? this._prefsAccessor.update(preferenceKey, JSON.stringify(newPrefs))\n : of(newPrefs)\n ),\n tap(() => this.refresh(preferenceKey))\n )\n .subscribe()\n }\n\n public withColumnPreferences<T>(preferenceKey: string, columns: T[]): Observable<T[]> {\n return this.preferences(preferenceKey).pipe(\n startWith({} as ITheSeamDatatablePreferences),\n map(preferences => preferences && preferences.columns\n ? withStoredColumnInfo(columns, preferences.columns) as T[]\n : columns\n )\n )\n }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { TheSeamDatatableAccessor } from '../models/datatable-accessor'\n\nexport const THESEAM_DATATABLE_ACCESSOR = new InjectionToken<TheSeamDatatableAccessor>(\n 'TheSeamDatatableAccessor'\n)\n","import { animate, style, transition, trigger } from '@angular/animations'\nimport { BooleanInput, coerceArray, NumberInput } from '@angular/cdk/coercion'\nimport {\n AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren,\n ElementRef, EventEmitter, forwardRef, InjectionToken, Input, KeyValueDiffer,\n KeyValueDiffers, OnDestroy, OnInit, Output, QueryList, TemplateRef, ViewChild\n} from '@angular/core'\nimport { BehaviorSubject, combineLatest, Observable, of, Subject, Subscription } from 'rxjs'\nimport { concatMap, map, shareReplay, startWith, switchMap, takeUntil, tap } from 'rxjs/operators'\nimport { DatatableDataSource } from './../models/datatable-data-source'\n\nimport { faChevronDown, faChevronRight, faSpinner } from '@fortawesome/free-solid-svg-icons'\nimport {\n ColumnMode,\n ContextmenuType,\n DataTableColumnCellTreeToggle,\n DataTableColumnDirective,\n DataTableColumnHeaderDirective,\n DatatableComponent as NgxDatatableComponent,\n DatatableRowDetailDirective,\n setColumnDefaults,\n SortType,\n TableColumn,\n translateTemplates,\n TreeStatus\n} from '@marklb/ngx-datatable'\nimport type { SelectionType } from '@marklb/ngx-datatable'\n\nimport { InputBoolean, InputNumber } from '@theseam/ui-common/core'\nimport { composeDataFilters, composeDataFilterStates, DataFilterState, IDataFilter } from '@theseam/ui-common/data-filters'\nimport { IElementResizedEvent } from '@theseam/ui-common/shared'\nimport { hasProperty, notNullOrUndefined } from '@theseam/ui-common/utils'\n\nimport { CollectionViewer, DataSource, isDataSource, ListRange } from '@angular/cdk/collections'\nimport { isObservable } from 'rxjs'\nimport { DatatableActionMenuComponent } from '../datatable-action-menu/datatable-action-menu.component'\nimport { DatatableColumnComponent } from '../datatable-column/datatable-column.component'\nimport { DatatableMenuBarComponent } from '../datatable-menu-bar/datatable-menu-bar.component'\nimport { TheSeamDatatableRowDetailDirective } from '../datatable-row-detail/datatable-row-detail.directive'\nimport { DatatableRowActionItemDirective } from '../directives/datatable-row-action-item.directive'\nimport { TheSeamDatatableAccessor } from '../models/datatable-accessor'\nimport { TheSeamPageInfo } from '../models/page-info'\nimport { SortEvent } from '../models/sort-event'\nimport { SortItem } from '../models/sort-item'\nimport { TheSeamDatatableColumn } from '../models/table-column'\nimport { DatatableColumnChangesService } from '../services/datatable-column-changes.service'\nimport { DatatablePreferencesService } from '../services/datatable-preferences.service'\nimport { THESEAM_DATATABLE_ACCESSOR } from '../tokens/datatable-accessor'\n\nexport function _setColumnDefaults(columns: TheSeamDatatableColumn[]): void {\n for (const column of columns) {\n if (!column.hasOwnProperty('hidden')) {\n column.hidden = false\n }\n }\n setColumnDefaults(columns)\n}\n\n/**\n * NOTE: This is still being worked on. I am trying to figure out this model\n * because `ngx-datatable` just uses an untyped object and sets properties in\n * multiple places.\n */\nexport interface ICellContext {\n allRowsSelected: false\n\n selectFn: () => any\n sortDir?: 'asc' | 'desc'\n sortFn: () => any\n\n expanded?: boolean\n\n onCheckboxChangeFn?: any\n activateFn?: any\n row?: any\n group?: any\n value?: any\n column?: TheSeamDatatableColumn\n rowHeight?: number\n isSelected?: boolean\n rowIndex?: number\n treeStatus?: TreeStatus\n onTreeAction?: any\n}\n\n/**\n * Intended for internal classes declared by the `TheSeamDatatableModule`.\n */\nexport const THESEAM_DATATABLE = new InjectionToken<IDataFilter>('LibDatatable')\n\nexport const _THESEAM_DATATABLE: any = {\n provide: THESEAM_DATATABLE,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => DatatableComponent)\n}\n\nexport const _THESEAM_DATATABLE_ACCESSOR: any = {\n provide: THESEAM_DATATABLE_ACCESSOR,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => DatatableComponent)\n}\n\n// TODO: Reduce reliance on BehaviorSubject based observables, because it should\n// be easier to avoit over emitting observables.\n@Component({\n selector: 'seam-datatable',\n templateUrl: './datatable.component.html',\n styleUrls: ['./datatable.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n trigger('slideDown', [\n transition(':enter', [\n style({ transform: 'translateY(-20%)', opacity: '0' }),\n animate('250ms', style({ transform: 'translateY(0)', opacity: '1' })),\n ]),\n transition(':leave', [\n style({ transform: 'translateY(0)', opacity: '1' }),\n animate('250ms', style({ transform: 'translateY(-20%)', opacity: '0' })),\n ])\n ])\n ],\n providers: [ _THESEAM_DATATABLE, DatatableColumnChangesService, _THESEAM_DATATABLE_ACCESSOR ]\n})\nexport class DatatableComponent implements OnInit, OnDestroy, AfterContentInit, TheSeamDatatableAccessor, CollectionViewer {\n static ngAcceptInputType_externalPaging: BooleanInput\n static ngAcceptInputType_externalSorting: BooleanInput\n static ngAcceptInputType_externalFiltering: BooleanInput\n static ngAcceptInputType_loadingIndicator: BooleanInput\n static ngAcceptInputType_reorderable: BooleanInput\n static ngAcceptInputType_swapColumns: BooleanInput\n static ngAcceptInputType_groupExpansionDefault: BooleanInput\n static ngAcceptInputType_selectAllRowsOnPage: BooleanInput\n static ngAcceptInputType_summaryRow: BooleanInput\n static ngAcceptInputType_virtualization: BooleanInput\n static ngAcceptInputType_scrollbarV: BooleanInput\n static ngAcceptInputType_scrollbarH: BooleanInput\n static ngAcceptInputType_limit: NumberInput\n static ngAcceptInputType_count: NumberInput\n static ngAcceptInputType_offset: NumberInput\n static ngAcceptInputType_headerHeight: NumberInput\n static ngAcceptInputType_rowHeight: NumberInput\n static ngAcceptInputType_footerHeight: NumberInput\n static ngAcceptInputType_summaryHeight: NumberInput\n static ngAcceptInputType_columns: TheSeamDatatableColumn[] | undefined | null\n static ngAcceptInputType_sorts: SortItem[] | undefined | null\n\n faChevronDown = faChevronDown\n faChevronRight = faChevronRight\n faSpinner = faSpinner\n\n private readonly _ngUnsubscribe = new Subject()\n private readonly _filtersSubject = new BehaviorSubject<IDataFilter[]>([])\n private readonly _columnsObservable = new BehaviorSubject<Observable<TheSeamDatatableColumn[]> | undefined>(undefined)\n private readonly _dataSourceSubject = new BehaviorSubject<DataSource<any> | any[] | undefined>(undefined)\n\n public readonly filterStates: Observable<DataFilterState[]>\n\n get filters(): IDataFilter[] { return this._filtersSubject.value }\n\n public readonly filters$: Observable<IDataFilter[]>\n\n @Input()\n get preferencesKey(): string | undefined | null { return this._preferencesKey.value }\n set preferencesKey(value: string | undefined | null) { this._preferencesKey.next(value || undefined) }\n private _preferencesKey = new BehaviorSubject<string | undefined | null>(undefined)\n\n @Input() targetMarkerTemplate: any\n\n @Input()\n get columns(): TheSeamDatatableColumn[] { return this._columns.value }\n set columns(value: TheSeamDatatableColumn[]) {\n // console.log('columns input', value)\n this._columns.next(Array.isArray(value) ? value : [])\n }\n private _columns = new BehaviorSubject<TheSeamDatatableColumn[]>([])\n\n @Input()\n get rows(): any[] { return this._rows.value }\n set rows(value: any[]) { this._rows.next(value || []) }\n private _rows = new BehaviorSubject<any[]>([])\n\n public rows$: Observable<any[]>\n\n @Input() columnMode: ColumnMode | undefined | null = ColumnMode.force\n\n @Input() groupRowsBy: string | undefined | null\n @Input() groupedRows: any[] | undefined | null\n\n @Input() selected: any[] | undefined | null = []\n\n @Input() @InputBoolean() externalPaging: boolean = false\n @Input() @InputBoolean() externalSorting: boolean = false\n @Input() @InputBoolean() externalFiltering: boolean = false\n\n @Input() @InputNumber() limit: number | undefined\n @Input() @InputNumber(0) count: number = 0\n @Input() @InputNumber(0) offset: number = 0\n\n @Input() @InputBoolean() loadingIndicator: boolean = false\n\n @Input() selectionType: SelectionType | undefined | null\n\n @Input() @InputBoolean() reorderable: boolean = true\n @Input() @InputBoolean() swapColumns: boolean = false\n\n @Input() sortType: SortType | undefined | null = SortType.single\n\n @Input()\n get sorts(): SortItem[] { return this.ngxDatatable ? this.ngxDatatable.sorts : this._sorts }\n set sorts(value: SortItem[]) {\n this._sorts = notNullOrUndefined(value) ? coerceArray(value) : []\n }\n _sorts: SortItem[] = []\n\n @Input() cssClasses: any | undefined | null = {\n sortAscending: 'datatable-icon-up',\n sortDescending: 'datatable-icon-down',\n pagerLeftArrow: 'datatable-icon-left',\n pagerRightArrow: 'datatable-icon-right',\n pagerPrevious: 'datatable-icon-prev',\n pagerNext: 'datatable-icon-skip'\n }\n\n @Input() messages: any | undefined | null = {\n // Message to show when array is presented\n // but contains no values\n emptyMessage: 'No records found',\n\n // Footer total message\n totalMessage: 'total',\n\n // Footer selected message\n selectedMessage: 'selected'\n }\n\n @Input() rowIdentity: ((x: any) => any) | undefined | null = ((x: any) => x)\n\n @Input() rowClass: any | undefined | null\n\n @Input() selectCheck: any | undefined | null\n @Input() displayCheck: ((row: any, column?: any, value?: any) => boolean) | undefined | null\n\n @Input() @InputBoolean() groupExpansionDefault: boolean = false\n\n @Input() trackByProp: string | undefined | null\n\n @Input() @InputBoolean() selectAllRowsOnPage: boolean = false\n\n @Input() treeFromRelation: string | undefined | null\n @Input() treeToRelation: string | undefined | null\n @Input() @InputBoolean() summaryRow: boolean = false\n @Input() @InputNumber() summaryHeight: number = 30\n @Input() summaryPosition: string | undefined | null = 'top'\n\n @Input() @InputBoolean() virtualization: boolean = true\n\n @Input() @InputNumber() headerHeight: number = 50\n @Input() @InputNumber() rowHeight: number = 50\n @Input() @InputNumber() footerHeight: number = 40\n\n @Input() @InputBoolean() scrollbarV: boolean = true\n @Input() @InputBoolean() scrollbarH: boolean = true\n\n @Input()\n set dataSource(value: DataSource<any> | any[] | undefined | null) {\n if (value instanceof DatatableDataSource) {\n value.setDatatableAccessor(this)\n }\n this._dataSourceSubject.next(value || undefined)\n }\n\n @Output() readonly scroll = new EventEmitter<any>()\n @Output() readonly activate = new EventEmitter<any>()\n @Output() readonly select = new EventEmitter<any>()\n @Output() readonly sort = new EventEmitter<SortEvent>()\n @Output() readonly page = new EventEmitter<TheSeamPageInfo>()\n @Output() readonly reorder = new EventEmitter<any>()\n @Output() readonly resize = new EventEmitter<any>()\n @Output() readonly tableContextmenu = new EventEmitter<{ event: MouseEvent, type: ContextmenuType, content: any }>(false)\n @Output() readonly treeAction = new EventEmitter<any>()\n\n @Output() readonly actionRefreshRequest = new EventEmitter<void>()\n @Output() readonly hiddenColumnsChange = new EventEmitter<string[]>()\n\n @ContentChildren(DatatableColumnComponent) columnComponents?: QueryList<DatatableColumnComponent>\n\n @ContentChild(DatatableActionMenuComponent, { static: true }) actionMenu?: DatatableActionMenuComponent\n @ContentChild(DatatableRowActionItemDirective, { static: true }) rowActionItem?: DatatableRowActionItemDirective\n @ContentChild(TheSeamDatatableRowDetailDirective, { static: true }) rowDetail?: TheSeamDatatableRowDetailDirective\n\n @ContentChild(DatatableMenuBarComponent)\n get menuBarComponent(): DatatableMenuBarComponent | undefined { return this._menuBarComponent }\n set menuBarComponent(value: DatatableMenuBarComponent | undefined) {\n this._menuBarComponent = value\n\n if (this._menuBarSub) { this._menuBarSub.unsubscribe() }\n\n if (value) {\n this._setMenuBarFilters(value.filters())\n\n this._menuBarSub = this._menuBarComponent?.filtersChanged\n .subscribe(v => { this._setMenuBarFilters(value.filters()) })\n }\n }\n private _menuBarComponent: DatatableMenuBarComponent | undefined\n private _menuBarSub: Subscription | undefined\n\n @ViewChild(NgxDatatableComponent) ngxDatatable?: NgxDatatableComponent\n @ViewChild(NgxDatatableComponent, { read: ElementRef }) ngxDatatableElement?: ElementRef\n @ViewChild(DatatableRowDetailDirective) ngxRowDetail?: DatatableRowDetailDirective\n\n @ViewChild('actionMenuCellTpl', { static: true }) actionMenuCellTpl?: TemplateRef<DataTableColumnDirective>\n @ViewChild('treeToggleTpl', { static: true }) treeToggleTpl?: TemplateRef<DataTableColumnCellTreeToggle>\n @ViewChild('headerTpl', { static: true }) headerTpl?: TemplateRef<DataTableColumnHeaderDirective>\n @ViewChild('blankHeaderTpl', { static: true }) blankHeaderTpl?: TemplateRef<DataTableColumnHeaderDirective>\n @ViewChild('cellTypeSelectorTpl', { static: true }) cellTypeSelectorTpl?: TemplateRef<DataTableColumnDirective>\n\n public columnComponents$?: Observable<DatatableColumnComponent[]>\n private _colDiffersInp: { [propName: string]: KeyValueDiffer<any, any> } = {}\n private _colDiffersTpl: { [propName: string]: KeyValueDiffer<any, any> } = {}\n\n public readonly columns$: Observable<TheSeamDatatableColumn[]>\n public readonly displayColumns$: Observable<TheSeamDatatableColumn[]>\n\n viewChange: Observable<ListRange>\n\n private _rowDetailToggleSubscription = Subscription.EMPTY\n\n constructor(\n private readonly _columnChangesService: DatatableColumnChangesService,\n private readonly _differs: KeyValueDiffers,\n private readonly _preferences: DatatablePreferencesService\n ) {\n // this.displayColumns$ = this.hiddenColumns$.pipe(\n // switchMap(hiddenColumns => this.columns$.pipe(map(cols => cols.filter(c => hiddenColumns.findIndex(hc => hc === c.prop) === -1))))\n // )\n\n const applyPrefs = (cols: TheSeamDatatableColumn[]) => this._preferencesKey.pipe(\n switchMap(name => !!name\n // NOTE: This pending check is temporary to avoid table using previously\n // retrieved preference while the new one is being updated on the\n // server.\n ? !this._preferences.pending\n ? this._preferences.withColumnPreferences(name, cols)\n : of(cols)\n : of(cols)\n )\n )\n\n this.columns$ = this._columnsObservable.pipe(switchMap(colsObs => colsObs ?? of([])))\n\n this.displayColumns$ = this.columns$.pipe(\n map(cols => cols.filter(c => !c.hidden)),\n tap(v => this._removeUnusedDiffs(v)),\n switchMap(cols => applyPrefs(cols)),\n )\n\n this.filters$ = this._filtersSubject.asObservable()\n\n this.filterStates = this._filtersSubject.asObservable().pipe(\n switchMap(filters => composeDataFilterStates(filters))\n )\n\n // this.rows$ = this._filtersSubject.asObservable()\n // .pipe(\n // switchMap(filters => {\n // if (this.externalFiltering) {\n // return this._rows.asObservable()\n // }\n // return this._rows.asObservable().pipe(composeDataFilters(filters))\n // })\n // )\n\n this.rows$ = this._dataSourceSubject.pipe(\n switchMap(dataSource => {\n // console.log('dataSource', dataSource)\n let dataStream: Observable<any[]>\n\n if (isDataSource(dataSource)) {\n // console.log('~datasource')\n dataStream = dataSource.connect(this) as any\n } else if (isObservable(dataSource)) {\n // console.log('~observable')\n dataStream = dataSource as any\n } else if (Array.isArray(dataSource)) {\n // console.log('~array')\n dataStream = of(dataSource)\n } else {\n // console.log('~rows fallback')\n dataStream = this._rows.asObservable()\n // .pipe(tap(v => console.log('rows~', v)))\n }\n\n if (!this.externalFiltering) {\n // console.log('not using externalFiltering')\n dataStream = dataStream.pipe(\n switchMap(rows => this._filtersSubject.pipe(\n // tap(v => console.log('filters', v)),\n concatMap(filters => of(rows).pipe(composeDataFilters(filters))),\n // tap(v => console.log('composed filters', v)),\n ))\n )\n\n // dataStream = this._filtersSubject.pipe(\n // tap(v => console.log('filters', v)),\n // concatMap(filters => dataStream.pipe(composeDataFilters(filters))),\n // tap(v => console.log('composed filters', v)),\n // )\n }\n\n return dataStream.pipe(\n // tap(v => console.log('stream', v)),\n takeUntil(this._ngUnsubscribe)\n )\n })\n )\n\n // this.hiddenColumns$ = this._hiddenColumns.asObservable()\n\n // this._hiddenColumns.pipe(\n // skip(1),\n // distinctUntilChanged((a, b) => {\n // const _a = Array.isArray(a) ? a : []\n // const _b = Array.isArray(b) ? b : []\n // if (_a.length !== _b.length) { return false }\n // const _as = _a.sort()\n // const _bs = _b.sort()\n // return !_as.sort().every((value: string, index: number) => _bs[index] === value)\n // }),\n // tap(v => this.hiddenColumnsChange.emit(v)),\n // untilDestroyed(this)\n // ).subscribe(v => console.log('hiddenColumnsChange', v))\n\n // TODO: Implement viewChange for CollectionViewer.\n this.viewChange = this.page.pipe(map(p => ({ start: 0, end: p.count })))\n }\n\n ngOnInit() {\n if (this.rowDetail) {\n this._rowDetailToggleSubscription = this.rowDetail._toggle.subscribe(event => {\n if (this.ngxRowDetail) {\n this.ngxRowDetail.toggle.emit(event)\n }\n })\n }\n }\n\n ngOnDestroy() {\n this._rowDetailToggleSubscription.unsubscribe()\n }\n\n ngAfterContentInit() {\n this.columnComponents$ = this._columnChangesService.columnInputChanges$.pipe(\n map(() => this.columnComponents?.toArray() ?? []),\n startWith(this.columnComponents?.toArray() ?? []),\n shareReplay({ bufferSize: 1, refCount: true })\n )\n\n const _columns = combineLatest([\n this.columnComponents$,\n this._columns\n ]).pipe(\n map(v => this._getMergedTplAndInpColumns(v[0], v[1] ?? [])),\n // tap(v => console.log('cols', v)),\n shareReplay({ bufferSize: 1, refCount: true }),\n )\n this._columnsObservable.next(_columns)\n }\n\n private _getMergedTplAndInpColumns(\n tplCols: DatatableColumnComponent[],\n inpCols: TheSeamDatatableColumn[]\n ): TheSeamDatatableColumn[] {\n const cols: TheSeamDatatableColumn[] = []\n\n if (this.selectionType === 'checkbox') {\n const checkBoxCol: TheSeamDatatableColumn = {\n prop: '$$__checkbox__',\n name: '',\n width: 40,\n sortable: false,\n canAutoResize: false,\n draggable: false,\n resizeable: false,\n headerCheckboxable: true,\n checkboxable: true\n }\n\n cols.push(checkBoxCol)\n }\n\n const _tplCols = translateTemplates(<any>(tplCols || []))\n for (const col of inpCols) {\n const tplCol = _tplCols.find(t => t.prop === col.prop)\n // console.log({ col: { ...(col || {}) }, tplCol: { ...(tplCol || {}) } })\n\n const dtColumns = (this.ngxDatatable && this.ngxDatatable._internalColumns) || []\n const prev = dtColumns.find(c => c.prop === col.prop)\n\n const inpColDiff = this._getColDiff(col)\n const _inpCol = inpColDiff ? {} : this._hasPrevColDiff(col) ? {} : col\n if (inpColDiff) {\n inpColDiff.forEachRemovedItem(r => {\n if (prev && prev.hasOwnProperty(r.key)) {\n const k = r.key as keyof TableColumn\n delete prev[k]\n }\n })\n inpColDiff.forEachAddedItem(r => (_inpCol as any)[r.key] = r.currentValue)\n inpColDiff.forEachChangedItem(r => (_inpCol as any)[r.key] = r.currentValue)\n }\n\n let _tplCol: TheSeamDatatableColumn = {}\n if (tplCol) {\n const tplColDiff = tplCol ? this._getColDiff(tplCol, true) : undefined\n _tplCol = tplColDiff ? {} : this._hasPrevColDiff(col, true) ? {} : tplCol\n if (tplColDiff) {\n tplColDiff.forEachRemovedItem(r => {\n if (prev && prev.hasOwnProperty(r.key)) {\n const k = r.key as keyof TableColumn\n delete prev[k]\n }\n })\n tplColDiff.forEachAddedItem(r => (_tplCol as any)[r.key] = r.currentValue)\n tplColDiff.forEachChangedItem(r => (_tplCol as any)[r.key] = r.currentValue)\n }\n }\n\n const _col: TheSeamDatatableColumn = {\n ...(prev || {}),\n ..._inpCol,\n ..._tplCol\n }\n\n cols.push(_col)\n }\n\n if (this.rowActionItem) {\n const actionMenuColumn: TheSeamDatatableColumn = {\n prop: '$$__actionMenu__',\n name: '',\n width: 50,\n minWidth: 50,\n maxWidth: 50,\n resizeable: false,\n sortable: false,\n draggable: false,\n // TODO: Fix column auto sizing with fixed column and cell overlay before enabling.\n // frozenRight: true,\n cellTemplate: this.actionMenuCellTpl,\n headerTemplate: this.blankHeaderTpl\n }\n cols.push(actionMenuColumn)\n }\n\n for (const col of cols) {\n if (col.isTreeColumn && hasProperty(col, 'treeToggleTemplate')) {\n col.treeToggleTemplate = this.treeToggleTpl\n }\n\n if (!hasProperty(col, 'headerTemplate')) {\n col.headerTemplate = this.headerTpl\n }\n\n if (hasProperty(col, 'cellType')) {\n col.cellTemplate = this.cellTypeSelectorTpl\n }\n }\n\n // setColumnDefaults(cols)\n _setColumnDefaults(cols)\n\n\n // console.log(cols.map(c => ({ prop: c.prop, canAutoResize: c.canAutoResize })))\n\n return cols\n }\n\n private _hasPrevColDiff(col: TheSeamDatatableColumn, isTpl: boolean = false): boolean {\n if (!col || !col.prop) {\n return false\n }\n\n const differsMap = isTpl ? this._colDiffersTpl : this._colDiffersInp\n\n return !!differsMap\n }\n\n private _getColDiff(col: TheSeamDatatableColumn, isTpl: boolean = false) {\n if (!col || !col.prop) {\n return\n }\n\n const differsMap = isTpl ? this._colDiffersTpl : this._colDiffersInp\n\n if (!differsMap[col.prop]) {\n differsMap[col.prop] = this._differs.find({}).create()\n }\n\n const differ = differsMap[col.prop]\n\n const diff = differ.diff(col)\n return diff\n }\n\n private _removeUnusedDiffs(cols: TheSeamDatatableColumn[]) {\n const inpKeys = Object.keys(this._colDiffersInp)\n inpKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)\n .forEach(k => { delete this._colDiffersInp[k] })\n\n const tplKeys = Object.keys(this._colDiffersTpl)\n tplKeys.filter(k => cols.findIndex(c => c.prop === k) === -1)\n .forEach(k => { delete this._colDiffersTpl[k] })\n }\n\n private _setMenuBarFilters(filters: IDataFilter[]) {\n // console.log('_setMenuBarFilters', filters)\n this._filtersSubject.next(filters || [])\n }\n\n public getColumnComponent(propName: string): DatatableColumnComponent | null {\n if (!this.columnComponents || this.columnComponents.length === 0) {\n return null\n }\n\n const tpl = this.columnComponents.find(t => t.prop === propName)\n if (tpl) {\n return tpl\n }\n\n return null\n }\n\n _columnData(col: any): { col: any, comp: DatatableColumnComponent | null } {\n const comp = this.getColumnComponent(col.prop)\n return { col, comp }\n }\n\n _getRowExpanded(row: any) {\n if (this.ngxDatatable && this.ngxDatatable.bodyComponent) {\n return this.ngxDatatable.bodyComponent.getRowExpanded(row)\n }\n return false\n }\n\n public trackByFnColumn(index: number, item: any) {\n return item.prop\n }\n\n public onDatatableResize(event: IElementResizedEvent) {\n if (this.ngxDatatable && this.ngxDatatableElement && this.ngxDatatableElement.nativeElement) {\n // TODO: Consider integrating this into the ngx-datatable library to avoid\n // multiple resize calls when the table resizes itself.\n this.ngxDatatable.recalculate()\n }\n }\n\n _onResize(event: any) {\n // console.log('resize', event, event.column.prop)\n this.resize.emit(event)\n\n if (event.isDone && this.columns) {\n const columns = this.columns\n const col = columns.find(c => c.prop === event.column.prop)\n if (col) {\n col.canAutoResize = false\n }\n\n if (this.preferencesKey) {\n const pref = { prop: event.column.prop, width: event.column.width, canAutoResize: false }\n this._preferences.setColumnPreference(this.preferencesKey, pref)\n }\n\n this.columns = [ ...this.columns ]\n }\n }\n\n _onTreeAction(event: any) {\n const index = event.rowIndex\n const row = event.row\n if (row.treeStatus === 'collapsed') {\n row.treeStatus = 'expanded'\n } else {\n row.treeStatus = 'collapsed'\n }\n this.rows = [ ...this.rows ]\n }\n\n public triggerActionRefreshRequest() {\n this.actionRefreshRequest.emit(undefined)\n }\n\n public get pageInfo(): TheSeamPageInfo {\n return {\n offset: this.ngxDatatable?.offset ?? 0,\n pageSize: this.ngxDatatable?.pageSize ?? 0,\n limit: this.ngxDatatable?.limit,\n count: this.ngxDatatable?.count ?? 0\n }\n }\n\n}\n","import { ChangeDetectionStrategy, Component, Inject, OnInit } from '@angular/core'\nimport { FormControl } from '@angular/forms'\nimport { combineLatest, Observable, of } from 'rxjs'\nimport { map } from 'rxjs/operators'\n\nimport { observeControlValue } from '@theseam/ui-common/utils'\n\nimport { DatatableComponent, THESEAM_DATATABLE } from '../datatable/datatable.component'\nimport { TheSeamDatatableColumn } from '../models/table-column'\n\n@Component({\n selector: 'seam-datatable-column-preferences',\n templateUrl: './datatable-column-preferences.component.html',\n styleUrls: ['./datatable-column-preferences.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableColumnPreferencesComponent implements OnInit {\n\n _columns$: Observable<TheSeamDatatableColumn[]>\n\n _filterControl = new FormControl()\n\n constructor(\n @Inject(THESEAM_DATATABLE) private _datatable: DatatableComponent,\n ) {\n this._columns$ = combineLatest([\n this._datatable.columns$ ?? of([]),\n observeControlValue<string>(this._filterControl)\n ]).pipe(\n map(([ columns, filter ]) => {\n const _filter = (filter || '').trim().toLowerCase()\n return columns.filter(c => `${(c.name || c.prop || '')}`.toLowerCase().indexOf(_filter) !== -1)\n }),\n map(cols => cols.sort((a, b) => a.prop === b.prop ? 0 : (<string>a.prop) > (<string>b.prop) ? 1 : -1))\n )\n }\n\n ngOnInit() { }\n\n _onChange(event: any, col: TheSeamDatatableColumn) {\n // TODO: Figure out the right way to update this value. If it is set by\n // column component input this may not work right.\n const columns = this._datatable.columns || []\n const column = columns.find(c => c.prop === col.prop)\n if (column) {\n column.hidden = !event.checked\n this._datatable.columns = [ ...columns ]\n }\n }\n\n _onCloseClick() {\n // TODO: Implement when PopoverRef is implemented.\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\nimport { faColumns } from '@fortawesome/free-solid-svg-icons'\n\n@Component({\n selector: 'seam-datatable-column-preferences-button',\n templateUrl: './datatable-column-preferences-button.component.html',\n styleUrls: ['./datatable-column-preferences-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableColumnPreferencesButtonComponent implements OnInit {\n\n icon = faColumns\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { ChangeDetectionStrategy, Component, Inject, Input, isDevMode, OnInit, Optional } from '@angular/core'\nimport { of } from 'rxjs'\nimport { catchError, concatMap, map, take, tap } from 'rxjs/operators'\n\nimport { faFileDownload } from '@fortawesome/free-solid-svg-icons'\nimport { ToastrService } from 'ngx-toastr'\n\nimport { IDataExporter } from '@theseam/ui-common/data-exporter'\nimport { DynamicValueHelperService, THESEAM_DYNAMIC_DATA } from '@theseam/ui-common/dynamic'\nimport { TheSeamLoadingOverlayService } from '@theseam/ui-common/loading'\nimport { hasProperty } from '@theseam/ui-common/utils'\n\nimport { DatatableComponent, THESEAM_DATATABLE } from '../datatable/datatable.component'\nimport { TheSeamDatatableColumn } from '../models/table-column'\n\nexport interface IDatatableExportButtonData {\n exporters: IDataExporter[]\n}\n\n@Component({\n selector: 'seam-datatable-export-button',\n templateUrl: './datatable-export-button.component.html',\n styleUrls: ['./datatable-export-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableExportButtonComponent implements OnInit {\n\n icon = faFileDownload\n\n @Input() exporters: IDataExporter[] | undefined | null\n\n get disabled() {\n return !(this.exporters && this.exporters.length > 0)\n }\n\n constructor(\n @Inject(THESEAM_DATATABLE) private readonly _datatable: DatatableComponent,\n private readonly _toastr: ToastrService,\n private readonly _loading: TheSeamLoadingOverlayService,\n private readonly _valueHelper: DynamicValueHelperService,\n @Optional() @Inject(THESEAM_DYNAMIC_DATA) private readonly _data?: IDatatableExportButtonData\n ) {\n if (this._data && this._data.exporters) {\n this.exporters = this._data.exporters\n }\n }\n\n ngOnInit() { }\n\n _onExporterClicked(exporter: IDataExporter) {\n if (!exporter.export) {\n const msg = isDevMode()\n ? `Exporter '${exporter.name}' is missing an export method.`\n : `${exporter.label} export is not available.`\n this._toastr.error(msg, 'Data Export')\n }\n\n const export$ = this._datatable.rows$\n .pipe(\n take(1),\n map(rows => {\n if (exporter.skipDataMapping) {\n return rows\n }\n return this._mapExportData(this._datatable.columns || [], rows)\n }),\n concatMap(data => exporter.export(data)),\n catchError(err => {\n console.error(err)\n return of(false)\n }),\n tap(success => {\n if (success) {\n this._toastr.success(`${exporter.label} export complete.`, 'Data Export')\n } else {\n this._toastr.error(`${exporter.label} export failed.`, 'Data Export')\n }\n })\n )\n\n this._loading.while(export$).subscribe()\n }\n\n private _mapExportData(columns: TheSeamDatatableColumn[], rows: any[]) {\n const data: any[] = []\n\n for (const row of rows) {\n const newRow: any = {}\n\n for (const col of columns) {\n if (!col.exportIgnore) {\n const colName = col.exportHeader || col.name || col.prop\n if (colName) {\n newRow[colName] = this._rowValue(col, row)\n }\n }\n }\n\n data.push(newRow)\n }\n\n return data\n }\n\n private _rowValue(column: TheSeamDatatableColumn, row: any) {\n if (hasProperty(column as any, 'exportValue')) {\n const context = { value: column.prop ? row[column.prop] : undefined, row }\n return this._valueHelper.evalSync((column as any).exportValue, context)\n }\n\n const colProp = column.prop\n if (colProp) {\n return row[colProp]\n }\n return undefined\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-column-center',\n templateUrl: './datatable-menu-bar-column-center.component.html',\n styleUrls: ['./datatable-menu-bar-column-center.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarColumnCenterComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-column-left',\n templateUrl: './datatable-menu-bar-column-left.component.html',\n styleUrls: ['./datatable-menu-bar-column-left.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarColumnLeftComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-column-right',\n templateUrl: './datatable-menu-bar-column-right.component.html',\n styleUrls: ['./datatable-menu-bar-column-right.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarColumnRightComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-datatable-menu-bar-row',\n templateUrl: './datatable-menu-bar-row.component.html',\n styleUrls: ['./datatable-menu-bar-row.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarRowComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { MenubarItemData } from '../models/menubar-item-data'\n\nexport const THESEAM_MENUBAR_ITEM_DATA = new InjectionToken<MenubarItemData>('MenubarItemData')\n","import { ChangeDetectionStrategy, Component, Inject, Input, OnInit, Optional } from '@angular/core'\n\nimport { hasProperty, notNullOrUndefined } from '@theseam/ui-common/utils'\nimport { DatatableMenuBarComponent } from './../datatable-menu-bar/datatable-menu-bar.component'\nimport { MenubarItemData } from './../models/menubar-item-data'\nimport { THESEAM_MENUBAR_ITEM_DATA } from './../tokens/menubar-item-data'\n\n\n@Component({\n selector: 'seam-datatable-menu-bar-text',\n templateUrl: './datatable-menu-bar-text.component.html',\n styleUrls: ['./datatable-menu-bar-text.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DatatableMenuBarTextComponent implements OnInit {\n\n @Input()\n public value: string | undefined | null\n\n constructor(\n private _menuBar: DatatableMenuBarComponent,\n @Optional() @Inject(THESEAM_MENUBAR_ITEM_DATA) private _data: MenubarItemData | null\n ) {\n if (notNullOrUndefined(this._data)) {\n if (hasProperty(this._data, 'value')) {\n this.value = this._data.value\n }\n }\n }\n\n ngOnInit(): void { }\n\n}\n","// import { QueryParamsHandling } from '@angular/router/src/config'\nimport { ComponentType } from '@angular/cdk/portal'\nimport { HttpClient, HttpHeaders } from '@angular/common/http'\nimport { Component, Directive, EventEmitter, HostBinding, Input, isDevMode, OnDestroy, OnInit, Optional, Output } from '@angular/core'\nimport { Subscription } from 'rxjs'\n\n// import jexl from 'jexl'\n\nimport { TheSeamDynamicComponentLoader } from '@theseam/ui-common/dynamic-component-loader'\nimport { Modal } from '@theseam/ui-common/modal'\n\n//\n// TODO: Move the dynamic datatable logic out of this component when refactoring.\n//\n\n// export interface IActionMenuItemEndpointConfig {\n// /**\n// * Api endpoint.\n// */\n// endpoint?: string\n\n// endpointExpr?: string\n\n// method: 'GET' | 'POST' | 'PATCH' | 'DELETE'\n\n// bodyExpr?: string\n\n// paramsExpr?: string\n// }\n\n// export interface IActionMenuItemModalConfig {\n// component: ComponentType<{}> | string\n// }\n\nexport interface TheSeamDatatableRow {\n [prop: string]: any\n}\n\n@Directive({\n selector: '[seamDatatableActionMenuItem]'\n})\nexport class DatatableActionMenuItemDirective implements OnInit, OnDestroy {\n\n @HostBinding('class.list-group-item') _listGroupItem = true\n @HostBinding('class.list-group-item-action') _listGroupItemAction = true\n\n @Input() label: string | undefined | null\n\n // tslint:disable-next-line:no-input-rename\n @Input('attr.href') href: string | undefined | null\n @Input() target: string | undefined | null\n\n // Allow routerLink inputs on menu item\n @Input() queryParams: { [k: string]: any } | undefined | null\n @Input() fragment: string | undefined | null\n // @Input() queryParamsHandling: QueryParamsHandling\n @Input() queryParamsHandling: any | undefined | null\n @Input() preserveFragment: boolean | undefined | null\n @Input() skipLocationChange: boolean | undefined | null\n @Input() replaceUrl: boolean | undefined | null\n @Input() state: {[k: string]: any} | undefined | null\n @Input() routerLink: string | any[] | undefined | null\n\n @Input() confirmDialog: any\n\n // @Input()\n // get endpointConfig(): IActionMenuItemEndpointConfig { return this._endpointConfig }\n // set endpointConfig(value: IActionMenuItemEndpointConfig) {\n // this._endpointConfig = value\n // if (value) {\n // // TODO: Handle this in a way that can be canceled.\n // this._endpointConfigSub = this.click\n // .pipe(untilDestroyed(this))\n // .subscribe(e => this._handleEndpointAction())\n // } else {\n // if (this._endpointConfigSub) {\n // this._endpointConfigSub.unsubscribe()\n // }\n // }\n // }\n // private _endpointConfig: IActionMenuItemEndpointConfig\n // private _endpointConfigSub: Subscription\n\n // @Input()\n // get modalConfig(): IActionMenuItemModalConfig { return this._modalConfig }\n // set modalConfig(value: IActionMenuItemModalConfig) {\n // this._modalConfig = value\n // if (value) {\n // // TODO: Handle this in a way that can be canceled.\n // this._modalConfigSub = this.click\n // .pipe(untilDestroyed(this))\n // .subscribe(e => this._handleModalAction())\n // } else {\n // if (this._modalConfigSub) {\n // this._modalConfigSub.unsubscribe()\n // }\n // }\n // }\n // private _modalConfig: IActionMenuItemModalConfig\n // private _modalConfigSub: Subscription\n\n @Input() row: TheSeamDatatableRow | undefined | null\n\n @Output() click = new EventEmitter<any>()\n\n constructor(\n private readonly _modal: Modal,\n private readonly _dynamicComponentLoader: TheSeamDynamicComponentLoader,\n @Optional() private readonly _http: HttpClient,\n ) { }\n\n ngOnInit() { }\n\n ngOnDestroy() { }\n\n // private _handleEndpointAction() {\n // if (!this._http) {\n // if (isDevMode()) {\n // console.warn(`[DatatableActionMenuItemDirective] Endpoint actions require \\`HttpClientModule\\` to be imported.`)\n // }\n // return\n // }\n\n // // console.log('_handleEndpointAction')\n // // TODO: This should probably be done through a provider that uses the api.\n // if (isDevMode()) {\n // console.warn(`[DatatableActionMenuItemDirective] '_handleEndpointAction()' is not ready for production yet.`)\n // } else {\n // // I don't expect this to be attempted in prod before completed, so I am just adding a console warning.\n // console.warn(`Unable to complete request. Contact support for assistance.`)\n // }\n\n // let endpoint = ''\n // const method = this._endpointConfig.method\n // const context = { row: this.row }\n // // console.log('context', context)\n\n // if (this._endpointConfig.endpoint) {\n // endpoint = this._endpointConfig.endpoint\n // }\n\n // if (this._endpointConfig.endpointExpr) {\n // // TODO: Use async jexl.\n // endpoint = jexl.evalSync(this._endpointConfig.endpointExpr, context)\n // }\n\n // const url = `http://localhost:57648/api/${endpoint}`\n\n // const options: any = {}\n // if (this._endpointConfig.bodyExpr) {\n // // TODO: Use async jexl.\n // options.body = jexl.evalSync(this._endpointConfig.bodyExpr, context)\n // }\n // if (this._endpointConfig.paramsExpr) {\n // // TODO: Use async jexl.\n // options.params = jexl.evalSync(this._endpointConfig.paramsExpr, context)\n // }\n\n // const headers = new HttpHeaders({\n // 'Content-Type': 'application/json'\n // })\n\n // this._http.request<any>(method, url, { ...options, headers })\n // .subscribe()\n // // .subscribe(v => console.log('v', v))\n // }\n\n // private _handleModalAction() {\n // if (typeof this._modalConfig.component === 'string') {\n // this._dynamicComponentLoader.getComponentFactory(this._modalConfig.component)\n // .subscribe(componentFactory => {\n // const factoryResolver = (<any /* ComponentFactoryBoundToModule */>componentFactory).ngModule.componentFactoryResolver\n // this._modal.openFromComponent(componentFactory.componentType, undefined, factoryResolver)\n // })\n // } else {\n // this._modal.openFromComponent(this._modalConfig.component)\n // }\n // }\n\n}\n","import { ESCAPE } from '@angular/cdk/keycodes'\nimport { ConnectionPositionPair, Overlay, OverlayRef, PositionStrategy } from '@angular/cdk/overlay'\nimport { TemplatePortal } from '@angular/cdk/portal'\nimport { Directive, ElementRef, HostListener, Input, TemplateRef, ViewContainerRef } from '@angular/core'\n\n@Directive({\n selector: '[seamDatatableActionMenuToggle]',\n exportAs: 'seamDatatableActionMenuToggle'\n})\nexport class DatatableActionMenuToggleDirective {\n\n @Input() seamDatatableActionMenuToggle: TemplateRef<HTMLElement> | undefined | null\n\n private _active = false\n private _overlayRef?: OverlayRef\n private _actionDown = false\n\n @HostListener('document:keydown', [ '$event' ])\n _onKeydown(event: any) {\n if (event.keyCode === ESCAPE) {\n this.disable()\n }\n }\n\n @HostListener('click', [ '$event' ])\n _onClick(event: any) {\n this.toggle()\n }\n\n @HostListener('mousedown', [ '$event' ]) _mouseDown(event: any) { this.onInputDown(event) }\n @HostListener('pointerdown', [ '$event' ]) _pointerDown(event: any) { this.onInputDown(event) }\n\n @HostListener('mouseup', [ '$event' ]) _mouseUp(event: any) { this.onInputUp(event) }\n @HostListener('pointerup', [ '$event' ]) _pointerUp(event: any) { this.onInputUp(event) }\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n private _viewContainerRef: ViewContainerRef,\n private _overlay: Overlay,\n ) { }\n\n public get active(): boolean { return this._active }\n\n public toggle() {\n if (this._active) {\n this.disable()\n } else {\n this.enable()\n }\n }\n\n public enable() {\n if (this.active) { return }\n if (!this.seamDatatableActionMenuToggle) { return }\n\n this._overlayRef = this._overlay.create({\n hasBackdrop: false,\n positionStrategy: this.getOverlayPosition(this._elementRef.nativeElement),\n })\n\n this._overlayRef.attach(new TemplatePortal(this.seamDatatableActionMenuToggle, this._viewContainerRef))\n\n this._active = true\n }\n\n public disable() {\n if (!this.active) { return }\n\n if (this._overlayRef?.hasAttached()) {\n this._overlayRef.detach()\n }\n\n this._active = false\n }\n\n private getOverlayPosition(origin: HTMLElement): PositionStrategy {\n const positionStrategy = this._overlay.position()\n .flexibleConnectedTo(origin)\n .withPositions(this.getPositions())\n .withFlexibleDimensions(false)\n .withPush(false)\n\n return positionStrategy\n }\n\n private getPositions(): ConnectionPositionPair[] {\n return [\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\n onFocusChangeOverlay(event: any) {\n if (event === null) {\n if (!this._actionDown) {\n // this.disable()\n }\n }\n }\n\n onInputDown(event: any) {\n this._actionDown = true\n }\n\n onInputUp(event: any) {\n this._actionDown = false\n }\n\n}\n","import { CollectionViewer } from '@angular/cdk/collections'\nimport { combineLatest, Observable } from 'rxjs'\n\nimport { DatatableDataSource } from './datatable-data-source'\n\n\nexport class DatatableGqlDataSource<TRow> extends DatatableDataSource<TRow> {\n\n connect(collectionViewer: CollectionViewer): Observable<readonly TRow[]> {\n throw new Error('Method not implemented.')\n\n // return combineLatest([\n // this.sorts$,\n // this.filterStates$,\n // this.page$\n // ]).pipe()\n }\n\n disconnect(collectionViewer: CollectionViewer): void {\n throw new Error('Method not implemented.')\n }\n\n\n}\n","import { Injectable, NgZone } from '@angular/core'\n\nimport { OverlayScrollbarsService } from '@theseam/ui-common/scrollbar'\n\n@Injectable()\nexport class TheSeamDatatableScrollbarHelperService {\n\n width = 0\n\n /**\n * Animates programmatic scrolling, such as switching pages.\n *\n * NOTE: Animating the scrolling works, but the datatable may need changes\n * before this is enabled, because it seems a little stuttery when it moves.\n */\n animatedScrolling = false\n animatedScrollingTime = 250\n\n constructor(\n private _ngZone: NgZone,\n private _scrollbars: OverlayScrollbarsService\n ) { }\n\n onInitScroller(scroller: any): void {\n this._scrollbars.initializeInstance(scroller.parentElement, {\n callbacks: {\n onScroll: (e) => {\n this._ngZone.run(() => {\n scroller.onScrolled(e)\n })\n }\n }\n })\n }\n\n onDestroyScroller(scroller: any): void {\n this._scrollbars.destroyInstance(scroller.parentElement)\n }\n\n setOffset(scroller: any, offsetY: number): void {\n this._ngZone.runOutsideAngular(() => {\n if (this.animatedScrolling) {\n this._scrollbars.getInstance(scroller.parentElement)\n .scroll({ y: offsetY }, this.animatedScrollingTime)\n } else {\n this._scrollbars.getInstance(scroller.parentElement)\n .scroll({ y: offsetY })\n }\n })\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y'\nimport { OverlayModule } from '@angular/cdk/overlay'\nimport { PortalModule } from '@angular/cdk/portal'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { ReactiveFormsModule } from '@angular/forms'\nimport { RouterModule } from '@angular/router'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\nimport { NgxDatatableModule, ScrollbarHelper } from '@marklb/ngx-datatable'\nimport { ToastrModule } from 'ngx-toastr'\n\nimport { TheSeamButtonsModule } from '@theseam/ui-common/buttons'\nimport { TheSeamCheckboxModule } from '@theseam/ui-common/checkbox'\nimport { TheSeamConfirmDialogModule } from '@theseam/ui-common/confirm-dialog'\nimport { TheSeamFormFieldModule } from '@theseam/ui-common/form-field'\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\nimport { TheSeamLoadingModule } from '@theseam/ui-common/loading'\nimport { TheSeamMenuModule } from '@theseam/ui-common/menu'\nimport { TheSeamPopoverModule } from '@theseam/ui-common/popover'\nimport { TheSeamSharedModule } from '@theseam/ui-common/shared'\nimport { TheSeamTableCellTypeModule } from '@theseam/ui-common/table-cell-type'\n\nimport { DatatableActionMenuItemComponent } from './datatable-action-menu-item/datatable-action-menu-item.component'\nimport { DatatableActionMenuComponent } from './datatable-action-menu/datatable-action-menu.component'\nimport { DatatableColumnPreferencesButtonComponent } from './datatable-column-preferences-button/datatable-column-preferences-button.component' // tslint:disable-line: max-line-length\nimport { DatatableColumnPreferencesComponent } from './datatable-column-preferences/datatable-column-preferences.component'\nimport { DatatableColumnComponent } from './datatable-column/datatable-column.component'\nimport { DatatableExportButtonComponent } from './datatable-export-button/datatable-export-button.component'\nimport { DatatableMenuBarColumnCenterComponent } from './datatable-menu-bar-column-center/datatable-menu-bar-column-center.component'\nimport { DatatableMenuBarColumnLeftComponent } from './datatable-menu-bar-column-left/datatable-menu-bar-column-left.component'\nimport { DatatableMenuBarColumnRightComponent } from './datatable-menu-bar-column-right/datatable-menu-bar-column-right.component'\nimport { DatatableMenuBarRowComponent } from './datatable-menu-bar-row/datatable-menu-bar-row.component'\nimport { DatatableMenuBarTextComponent } from './datatable-menu-bar-text/datatable-menu-bar-text.component'\nimport { DatatableMenuBarComponent } from './datatable-menu-bar/datatable-menu-bar.component'\nimport { DatatableRowDetailTplDirective } from './datatable-row-detail/datatable-row-detail-tpl.directive'\nimport { TheSeamDatatableRowDetailDirective } from './datatable-row-detail/datatable-row-detail.directive'\nimport { DatatableComponent } from './datatable/datatable.component'\nimport { DatatableActionMenuItemDirective } from './directives/datatable-action-menu-item.directive'\nimport { DatatableActionMenuToggleDirective } from './directives/datatable-action-menu-toggle.directive'\nimport { DatatableCellTplDirective } from './directives/datatable-cell-tpl.directive'\nimport { DatatableFilterDirective } from './directives/datatable-filter.directive'\nimport { DatatableRowActionItemDirective } from './directives/datatable-row-action-item.directive'\nimport { TheSeamDatatableScrollbarHelperService } from './services/datatable-scrollbar-helper.service'\n\n@NgModule({\n declarations: [\n DatatableComponent,\n DatatableCellTplDirective,\n DatatableColumnComponent,\n DatatableActionMenuComponent,\n DatatableActionMenuToggleDirective,\n DatatableActionMenuItemComponent,\n DatatableMenuBarComponent,\n DatatableFilterDirective,\n DatatableRowActionItemDirective,\n DatatableExportButtonComponent,\n TheSeamDatatableRowDetailDirective,\n DatatableRowDetailTplDirective,\n DatatableColumnPreferencesComponent,\n DatatableColumnPreferencesButtonComponent,\n DatatableActionMenuItemDirective,\n DatatableMenuBarRowComponent,\n DatatableMenuBarColumnLeftComponent,\n DatatableMenuBarColumnCenterComponent,\n DatatableMenuBarColumnRightComponent,\n DatatableMenuBarTextComponent,\n ],\n imports: [\n CommonModule,\n NgxDatatableModule,\n FontAwesomeModule,\n OverlayModule,\n A11yModule,\n TheSeamSharedModule,\n RouterModule,\n TheSeamMenuModule,\n TheSeamButtonsModule,\n TheSeamIconModule,\n ToastrModule,\n TheSeamLoadingModule,\n PortalModule,\n TheSeamConfirmDialogModule,\n TheSeamPopoverModule,\n TheSeamCheckboxModule,\n TheSeamFormFieldModule,\n ReactiveFormsModule,\n TheSeamTableCellTypeModule\n ],\n exports: [\n DatatableComponent,\n DatatableCellTplDirective,\n DatatableColumnComponent,\n DatatableActionMenuComponent,\n DatatableActionMenuItemComponent,\n DatatableMenuBarComponent,\n DatatableFilterDirective,\n DatatableRowActionItemDirective,\n DatatableExportButtonComponent,\n TheSeamDatatableRowDetailDirective,\n DatatableRowDetailTplDirective,\n DatatableColumnPreferencesComponent,\n DatatableColumnPreferencesButtonComponent,\n DatatableActionMenuItemDirective,\n DatatableMenuBarRowComponent,\n DatatableMenuBarColumnLeftComponent,\n DatatableMenuBarColumnCenterComponent,\n DatatableMenuBarColumnRightComponent,\n DatatableMenuBarTextComponent\n ],\n providers: [\n { provide: ScrollbarHelper, useClass: TheSeamDatatableScrollbarHelperService }\n ],\n entryComponents: [\n DatatableColumnPreferencesComponent,\n DatatableExportButtonComponent,\n DatatableMenuBarTextComponent\n ]\n})\nexport class TheSeamDatatableModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {THESEAM_DATATABLE_ACCESSOR as ɵa} from './tokens/datatable-accessor';"],"names":["BehaviorSubject","switchMap","of","map","startWith","DataSource","EventEmitter","Component","ChangeDetectionStrategy","Input","Output","faEllipsisH","SeamConfirmDialogService","Router","ContentChildren","Directive","TemplateRef","Subject","Injectable","ContentChild","Self","Inject","THESEAM_DATA_FILTER","THESEAM_DATA_FILTER_CONTAINER","forwardRef","notNullOrUndefined","InjectionToken","hasProperty","isDevMode","shareReplay","take","tap","Optional","setColumnDefaults","faChevronDown","faChevronRight","faSpinner","ColumnMode","SortType","Subscription","composeDataFilterStates","isDataSource","isObservable","concatMap","composeDataFilters","takeUntil","coerceArray","combineLatest","translateTemplates","trigger","transition","style","animate","KeyValueDiffers","ViewChild","NgxDatatableComponent","ElementRef","DatatableRowDetailDirective","InputBoolean","InputNumber","FormControl","observeControlValue","faColumns","faFileDownload","catchError","ToastrService","TheSeamLoadingOverlayService","DynamicValueHelperService","THESEAM_DYNAMIC_DATA","Modal","TheSeamDynamicComponentLoader","HttpClient","HostBinding","ESCAPE","TemplatePortal","ViewContainerRef","Overlay","HostListener","NgZone","OverlayScrollbarsService","NgModule","CommonModule","NgxDatatableModule","FontAwesomeModule","OverlayModule","A11yModule","TheSeamSharedModule","RouterModule","TheSeamMenuModule","TheSeamButtonsModule","TheSeamIconModule","ToastrModule","TheSeamLoadingModule","PortalModule","TheSeamConfirmDialogModule","TheSeamPopoverModule","TheSeamCheckboxModule","TheSeamFormFieldModule","ReactiveFormsModule","TheSeamTableCellTypeModule","ScrollbarHelper"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;YACrC,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CAAC;QAC9F,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,E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1,180 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@theseam/ui-common/utils')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@theseam/ui-common/dynamic-component-loader', ['exports', '@angular/core', '@angular/router', 'rxjs', 'rxjs/operators', '@theseam/ui-common/utils'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.theseam = global.theseam || {}, global.theseam['ui-common'] = global.theseam['ui-common'] || {}, global.theseam['ui-common']['dynamic-component-loader'] = {}), global.ng.core, global.ng.router, global.rxjs, global.rxjs.operators, global.theseam['ui-common'].utils));
|
|
5
|
+
}(this, (function (exports, i0, router, rxjs, operators, utils) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
|
|
29
|
+
var DYNAMIC_COMPONENT = new i0.InjectionToken('DYNAMIC_COMPONENT');
|
|
30
|
+
var DYNAMIC_MODULE = new i0.InjectionToken('DYNAMIC_MODULE');
|
|
31
|
+
var DYNAMIC_COMPONENT_MANIFESTS = new i0.InjectionToken('DYNAMIC_COMPONENT_MANIFESTS');
|
|
32
|
+
|
|
33
|
+
var TheSeamDynamicComponentLoader = /** @class */ (function () {
|
|
34
|
+
function TheSeamDynamicComponentLoader(compiler, injector, manifests,
|
|
35
|
+
// TODO: Remove the loader now that all our code should have updated from
|
|
36
|
+
// the string `loadChildren` by now.
|
|
37
|
+
_loader) {
|
|
38
|
+
this.compiler = compiler;
|
|
39
|
+
this.injector = injector;
|
|
40
|
+
this._loader = _loader;
|
|
41
|
+
this._manifests = manifests || [];
|
|
42
|
+
}
|
|
43
|
+
/** Retrieve a ComponentFactory, based on the specified componentId (defined in the IDynamicComponentManifest array). */
|
|
44
|
+
TheSeamDynamicComponentLoader.prototype.getComponentFactory = function (componentId, injector) {
|
|
45
|
+
var _this = this;
|
|
46
|
+
var manifest = this._manifests
|
|
47
|
+
.find(function (m) { return m.componentId === componentId; });
|
|
48
|
+
if (!manifest) {
|
|
49
|
+
return rxjs.throwError("TheSeamDynamicComponentLoader: Unknown componentId \"" + componentId + "\"");
|
|
50
|
+
}
|
|
51
|
+
// const path = manifest.loadChildren
|
|
52
|
+
// const p = this.load<T>(path, componentId, injector)
|
|
53
|
+
// return from(p)
|
|
54
|
+
var moduleFactory$ = this.loadModuleFactory(manifest.loadChildren);
|
|
55
|
+
return moduleFactory$
|
|
56
|
+
.pipe(operators.switchMap(function (m) { return rxjs.from(_this.loadFactory(m, componentId, injector)); }));
|
|
57
|
+
};
|
|
58
|
+
TheSeamDynamicComponentLoader.prototype.load = function (path, componentId, injector) {
|
|
59
|
+
var _this = this;
|
|
60
|
+
return this._loader.load(path)
|
|
61
|
+
.then(function (ngModuleFactory) { return _this.loadFactory(ngModuleFactory, componentId, injector); });
|
|
62
|
+
};
|
|
63
|
+
TheSeamDynamicComponentLoader.prototype.loadModuleFactory = function (loadChildren) {
|
|
64
|
+
var _this = this;
|
|
65
|
+
if (typeof loadChildren === 'string') {
|
|
66
|
+
return rxjs.from(this._loader.load(loadChildren));
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return utils.wrapIntoObservable(loadChildren()).pipe(operators.mergeMap(function (t) {
|
|
70
|
+
if (t instanceof i0.NgModuleFactory) {
|
|
71
|
+
return rxjs.of(t);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return rxjs.from(_this.compiler.compileModuleAsync(t));
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
TheSeamDynamicComponentLoader.prototype.loadFactory = function (ngModuleFactory, componentId, injector) {
|
|
80
|
+
var _this = this;
|
|
81
|
+
var moduleRef = ngModuleFactory.create(injector || this.injector);
|
|
82
|
+
var dynamicComponentType = moduleRef.injector.get(DYNAMIC_COMPONENT, null);
|
|
83
|
+
if (!dynamicComponentType) {
|
|
84
|
+
var dynamicModule = moduleRef.injector.get(DYNAMIC_MODULE, null);
|
|
85
|
+
if (!dynamicModule) {
|
|
86
|
+
throw new Error('TheSeamDynamicComponentLoader: Dynamic module for'
|
|
87
|
+
+ (" componentId \"" + componentId + "\" does not contain")
|
|
88
|
+
+ ' DYNAMIC_COMPONENT or DYNAMIC_MODULE as a provider.');
|
|
89
|
+
}
|
|
90
|
+
if (dynamicModule.componentId !== componentId) {
|
|
91
|
+
throw new Error('TheSeamDynamicComponentLoader: Dynamic module for'
|
|
92
|
+
+ (componentId + " does not match manifest."));
|
|
93
|
+
}
|
|
94
|
+
var path = dynamicModule.loadChildren;
|
|
95
|
+
if (!path) {
|
|
96
|
+
throw new Error(componentId + " unknown!");
|
|
97
|
+
}
|
|
98
|
+
// return this.load<T>(path, componentId, injector)
|
|
99
|
+
var moduleFactory$ = this.loadModuleFactory(dynamicModule.loadChildren);
|
|
100
|
+
return moduleFactory$
|
|
101
|
+
.pipe(operators.switchMap(function (m) { return rxjs.from(_this.loadFactory(m, componentId, injector)); }))
|
|
102
|
+
.toPromise();
|
|
103
|
+
}
|
|
104
|
+
return Promise.resolve(moduleRef.componentFactoryResolver.resolveComponentFactory(dynamicComponentType));
|
|
105
|
+
};
|
|
106
|
+
return TheSeamDynamicComponentLoader;
|
|
107
|
+
}());
|
|
108
|
+
TheSeamDynamicComponentLoader.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TheSeamDynamicComponentLoader_Factory() { return new TheSeamDynamicComponentLoader(i0__namespace.ɵɵinject(i0__namespace.Compiler), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(DYNAMIC_COMPONENT_MANIFESTS, 8), i0__namespace.ɵɵinject(i0__namespace.NgModuleFactoryLoader, 8)); }, token: TheSeamDynamicComponentLoader, providedIn: "root" });
|
|
109
|
+
TheSeamDynamicComponentLoader.decorators = [
|
|
110
|
+
{ type: i0.Injectable, args: [{
|
|
111
|
+
providedIn: 'root'
|
|
112
|
+
},] }
|
|
113
|
+
];
|
|
114
|
+
TheSeamDynamicComponentLoader.ctorParameters = function () { return [
|
|
115
|
+
{ type: i0.Compiler },
|
|
116
|
+
{ type: i0.Injector },
|
|
117
|
+
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [DYNAMIC_COMPONENT_MANIFESTS,] }] },
|
|
118
|
+
{ type: i0.NgModuleFactoryLoader, decorators: [{ type: i0.Optional }] }
|
|
119
|
+
]; };
|
|
120
|
+
|
|
121
|
+
var TheSeamDynamicComponentLoaderModule = /** @class */ (function () {
|
|
122
|
+
function TheSeamDynamicComponentLoaderModule() {
|
|
123
|
+
}
|
|
124
|
+
TheSeamDynamicComponentLoaderModule.forRoot = function (manifests) {
|
|
125
|
+
return {
|
|
126
|
+
ngModule: TheSeamDynamicComponentLoaderModule,
|
|
127
|
+
providers: [
|
|
128
|
+
TheSeamDynamicComponentLoader,
|
|
129
|
+
{ provide: i0.NgModuleFactoryLoader, useClass: i0.SystemJsNgModuleLoader },
|
|
130
|
+
// provider for Angular CLI to analyze
|
|
131
|
+
{ provide: router.ROUTES, useValue: manifests, multi: true },
|
|
132
|
+
// provider for TheSeamDynamicComponentLoader to analyze
|
|
133
|
+
{ provide: DYNAMIC_COMPONENT_MANIFESTS, useValue: manifests },
|
|
134
|
+
],
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
TheSeamDynamicComponentLoaderModule.forModule = function (manifest) {
|
|
138
|
+
return {
|
|
139
|
+
ngModule: TheSeamDynamicComponentLoaderModule,
|
|
140
|
+
providers: [
|
|
141
|
+
{ provide: i0.ANALYZE_FOR_ENTRY_COMPONENTS, useValue: manifest, multi: true },
|
|
142
|
+
// provider for @angular/router to parse
|
|
143
|
+
{ provide: router.ROUTES, useValue: manifest, multi: true },
|
|
144
|
+
// provider for TheSeamDynamicComponentLoader to analyze
|
|
145
|
+
{ provide: DYNAMIC_MODULE, useValue: manifest }
|
|
146
|
+
],
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
TheSeamDynamicComponentLoaderModule.forChild = function (component) {
|
|
150
|
+
return {
|
|
151
|
+
ngModule: TheSeamDynamicComponentLoaderModule,
|
|
152
|
+
providers: [
|
|
153
|
+
{ provide: i0.ANALYZE_FOR_ENTRY_COMPONENTS, useValue: component, multi: true },
|
|
154
|
+
// provider for @angular/router to parse
|
|
155
|
+
{ provide: router.ROUTES, useValue: [], multi: true },
|
|
156
|
+
// provider for TheSeamDynamicComponentLoader to analyze
|
|
157
|
+
{ provide: DYNAMIC_COMPONENT, useValue: component },
|
|
158
|
+
],
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
return TheSeamDynamicComponentLoaderModule;
|
|
162
|
+
}());
|
|
163
|
+
TheSeamDynamicComponentLoaderModule.decorators = [
|
|
164
|
+
{ type: i0.NgModule }
|
|
165
|
+
];
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Generated bundle index. Do not edit.
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
exports.DYNAMIC_COMPONENT = DYNAMIC_COMPONENT;
|
|
172
|
+
exports.DYNAMIC_COMPONENT_MANIFESTS = DYNAMIC_COMPONENT_MANIFESTS;
|
|
173
|
+
exports.DYNAMIC_MODULE = DYNAMIC_MODULE;
|
|
174
|
+
exports.TheSeamDynamicComponentLoader = TheSeamDynamicComponentLoader;
|
|
175
|
+
exports.TheSeamDynamicComponentLoaderModule = TheSeamDynamicComponentLoaderModule;
|
|
176
|
+
|
|
177
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
178
|
+
|
|
179
|
+
})));
|
|
180
|
+
//# sourceMappingURL=theseam-ui-common-dynamic-component-loader.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theseam-ui-common-dynamic-component-loader.umd.js","sources":["../../../projects/ui-common/dynamic-component-loader/dynamic-component-tokens.ts","../../../projects/ui-common/dynamic-component-loader/dynamic-component-loader.service.ts","../../../projects/ui-common/dynamic-component-loader/dynamic-component-loader.module.ts","../../../projects/ui-common/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\n\nexport const DYNAMIC_COMPONENT = new InjectionToken<any>('DYNAMIC_COMPONENT')\n\nexport const DYNAMIC_MODULE = new InjectionToken<any>('DYNAMIC_MODULE')\n\nexport const DYNAMIC_COMPONENT_MANIFESTS = new InjectionToken<any>('DYNAMIC_COMPONENT_MANIFESTS')\n","import { Compiler, ComponentFactory, Inject, Injectable, Injector, NgModuleFactory, NgModuleFactoryLoader, Optional } from '@angular/core'\nimport { Observable, of } from 'rxjs'\nimport { from, throwError } from 'rxjs'\nimport { mergeMap, switchMap } from 'rxjs/operators'\n\nimport { LoadChildren } from '@angular/router'\nimport { IDynamicComponentManifest } from './dynamic-component-manifest'\nimport {\n DYNAMIC_COMPONENT,\n DYNAMIC_COMPONENT_MANIFESTS,\n DYNAMIC_MODULE\n} from './dynamic-component-tokens'\n\nimport { wrapIntoObservable } from '@theseam/ui-common/utils'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TheSeamDynamicComponentLoader {\n\n private _manifests: IDynamicComponentManifest[]\n\n constructor(\n private compiler: Compiler,\n private injector: Injector,\n @Optional() @Inject(DYNAMIC_COMPONENT_MANIFESTS) manifests: IDynamicComponentManifest[],\n // TODO: Remove the loader now that all our code should have updated from\n // the string `loadChildren` by now.\n @Optional() private _loader: NgModuleFactoryLoader\n ) { this._manifests = manifests || [] }\n\n /** Retrieve a ComponentFactory, based on the specified componentId (defined in the IDynamicComponentManifest array). */\n getComponentFactory<T>(componentId: string, injector?: Injector): Observable<ComponentFactory<T>> {\n const manifest = this._manifests\n .find(m => m.componentId === componentId)\n if (!manifest) {\n return throwError(`TheSeamDynamicComponentLoader: Unknown componentId \"${componentId}\"`)\n }\n\n // const path = manifest.loadChildren\n\n // const p = this.load<T>(path, componentId, injector)\n // return from(p)\n\n const moduleFactory$ = this.loadModuleFactory(manifest.loadChildren)\n\n return moduleFactory$\n .pipe(switchMap(m => from(this.loadFactory<any>(m, componentId, injector))))\n }\n\n load<T>(path: string, componentId: string, injector?: Injector): Promise<ComponentFactory<T>> {\n return this._loader.load(path)\n .then((ngModuleFactory) => this.loadFactory<T>(ngModuleFactory, componentId, injector))\n }\n\n private loadModuleFactory(loadChildren: LoadChildren): Observable<NgModuleFactory<any>> {\n if (typeof loadChildren === 'string') {\n return from(this._loader.load(loadChildren))\n } else {\n return wrapIntoObservable(loadChildren()).pipe(mergeMap((t: any) => {\n if (t instanceof NgModuleFactory) {\n return of(t)\n } else {\n return from(this.compiler.compileModuleAsync(t))\n }\n }))\n }\n }\n\n private loadFactory<T>(ngModuleFactory: NgModuleFactory<any>, componentId: string, injector?: Injector): Promise<ComponentFactory<T>> {\n const moduleRef = ngModuleFactory.create(injector || this.injector)\n const dynamicComponentType = moduleRef.injector.get(DYNAMIC_COMPONENT, null)\n if (!dynamicComponentType) {\n const dynamicModule: IDynamicComponentManifest = moduleRef.injector.get(DYNAMIC_MODULE, null)\n\n if (!dynamicModule) {\n throw new Error(\n 'TheSeamDynamicComponentLoader: Dynamic module for'\n + ` componentId \"${componentId}\" does not contain`\n + ' DYNAMIC_COMPONENT or DYNAMIC_MODULE as a provider.',\n )\n }\n if (dynamicModule.componentId !== componentId) {\n throw new Error(\n 'TheSeamDynamicComponentLoader: Dynamic module for'\n + `${componentId} does not match manifest.`,\n )\n }\n\n const path = dynamicModule.loadChildren\n\n if (!path) {\n throw new Error(`${componentId} unknown!`)\n }\n\n // return this.load<T>(path, componentId, injector)\n const moduleFactory$ = this.loadModuleFactory(dynamicModule.loadChildren)\n\n return moduleFactory$\n .pipe(switchMap(m => from(this.loadFactory<any>(m, componentId, injector))))\n .toPromise()\n }\n\n return Promise.resolve(moduleRef.componentFactoryResolver.resolveComponentFactory<T>(dynamicComponentType))\n }\n}\n","import {\n ANALYZE_FOR_ENTRY_COMPONENTS,\n ModuleWithProviders,\n NgModule,\n NgModuleFactoryLoader,\n SystemJsNgModuleLoader,\n Type,\n} from '@angular/core'\nimport { ROUTES } from '@angular/router'\n\nimport { TheSeamDynamicComponentLoader } from './dynamic-component-loader.service'\nimport type { IDynamicComponentManifest } from './dynamic-component-manifest'\nimport {\n DYNAMIC_COMPONENT,\n DYNAMIC_COMPONENT_MANIFESTS,\n DYNAMIC_MODULE\n} from './dynamic-component-tokens'\n\n@NgModule()\nexport class TheSeamDynamicComponentLoaderModule {\n static forRoot(manifests: IDynamicComponentManifest[]): ModuleWithProviders<TheSeamDynamicComponentLoaderModule> {\n return {\n ngModule: TheSeamDynamicComponentLoaderModule,\n providers: [\n TheSeamDynamicComponentLoader,\n { provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader },\n // provider for Angular CLI to analyze\n { provide: ROUTES, useValue: manifests, multi: true },\n // provider for TheSeamDynamicComponentLoader to analyze\n { provide: DYNAMIC_COMPONENT_MANIFESTS, useValue: manifests },\n ],\n }\n }\n static forModule(manifest: IDynamicComponentManifest): ModuleWithProviders<TheSeamDynamicComponentLoaderModule> {\n return {\n ngModule: TheSeamDynamicComponentLoaderModule,\n providers: [\n { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: manifest, multi: true },\n // provider for @angular/router to parse\n { provide: ROUTES, useValue: manifest, multi: true },\n // provider for TheSeamDynamicComponentLoader to analyze\n { provide: DYNAMIC_MODULE, useValue: manifest }],\n }\n }\n static forChild(component: Type<any>): ModuleWithProviders<TheSeamDynamicComponentLoaderModule> {\n return {\n ngModule: TheSeamDynamicComponentLoaderModule,\n providers: [\n { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: component, multi: true },\n // provider for @angular/router to parse\n { provide: ROUTES, useValue: [], multi: true },\n // provider for TheSeamDynamicComponentLoader to analyze\n { provide: DYNAMIC_COMPONENT, useValue: component },\n ],\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["InjectionToken","throwError","switchMap","from","wrapIntoObservable","mergeMap","NgModuleFactory","of","Injectable","Compiler","Injector","Optional","Inject","NgModuleFactoryLoader","SystemJsNgModuleLoader","ROUTES","ANALYZE_FOR_ENTRY_COMPONENTS","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEa,iBAAiB,GAAG,IAAIA,iBAAc,CAAM,mBAAmB,EAAC;QAEhE,cAAc,GAAG,IAAIA,iBAAc,CAAM,gBAAgB,EAAC;QAE1D,2BAA2B,GAAG,IAAIA,iBAAc,CAAM,6BAA6B;;;QCgB9F,uCACU,QAAkB,EAClB,QAAkB,EACuB,SAAsC;;;QAGnE,OAA8B;YAL1C,aAAQ,GAAR,QAAQ,CAAU;YAClB,aAAQ,GAAR,QAAQ,CAAU;YAIN,YAAO,GAAP,OAAO,CAAuB;YAChD,IAAI,CAAC,UAAU,GAAG,SAAS,IAAI,EAAE,CAAA;SAAE;;QAGvC,2DAAmB,GAAnB,UAAuB,WAAmB,EAAE,QAAmB;YAA/D,iBAgBC;YAfC,IAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;iBAC7B,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,WAAW,KAAK,WAAW,GAAA,CAAC,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 -0,0 +1,1253 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@theseam/ui-common/utils'), require('@theseam/ui-common/modal'), require('@theseam/ui-common/confirm-dialog'), require('@theseam/ui-common/data-exporter'), require('@angular/common'), require('jexl')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@theseam/ui-common/dynamic', ['exports', '@angular/common/http', '@angular/core', 'rxjs', 'rxjs/operators', '@theseam/ui-common/utils', '@theseam/ui-common/modal', '@theseam/ui-common/confirm-dialog', '@theseam/ui-common/data-exporter', '@angular/common', 'jexl'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.theseam = global.theseam || {}, global.theseam['ui-common'] = global.theseam['ui-common'] || {}, global.theseam['ui-common'].dynamic = {}), global.ng.common.http, global.ng.core, global.rxjs, global.rxjs.operators, global.theseam['ui-common'].utils, global.theseam['ui-common'].modal, global.theseam['ui-common']['confirm-dialog'], global.theseam['ui-common']['data-exporter'], global.ng.common, global.jexl));
|
|
5
|
+
}(this, (function (exports, http, i0, rxjs, operators, utils, modal, i2, dataExporter, common, jexl) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n['default'] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
30
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
+
var jexl__default = /*#__PURE__*/_interopDefaultLegacy(jexl);
|
|
32
|
+
|
|
33
|
+
/*! *****************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
|
+
|
|
36
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
+
purpose with or without fee is hereby granted.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
+
***************************************************************************** */
|
|
47
|
+
/* global Reflect, Promise */
|
|
48
|
+
var extendStatics = function (d, b) {
|
|
49
|
+
extendStatics = Object.setPrototypeOf ||
|
|
50
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51
|
+
function (d, b) { for (var p in b)
|
|
52
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
53
|
+
d[p] = b[p]; };
|
|
54
|
+
return extendStatics(d, b);
|
|
55
|
+
};
|
|
56
|
+
function __extends(d, b) {
|
|
57
|
+
if (typeof b !== "function" && b !== null)
|
|
58
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59
|
+
extendStatics(d, b);
|
|
60
|
+
function __() { this.constructor = d; }
|
|
61
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62
|
+
}
|
|
63
|
+
var __assign = function () {
|
|
64
|
+
__assign = Object.assign || function __assign(t) {
|
|
65
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
66
|
+
s = arguments[i];
|
|
67
|
+
for (var p in s)
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
69
|
+
t[p] = s[p];
|
|
70
|
+
}
|
|
71
|
+
return t;
|
|
72
|
+
};
|
|
73
|
+
return __assign.apply(this, arguments);
|
|
74
|
+
};
|
|
75
|
+
function __rest(s, e) {
|
|
76
|
+
var t = {};
|
|
77
|
+
for (var p in s)
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
79
|
+
t[p] = s[p];
|
|
80
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
81
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
83
|
+
t[p[i]] = s[p[i]];
|
|
84
|
+
}
|
|
85
|
+
return t;
|
|
86
|
+
}
|
|
87
|
+
function __decorate(decorators, target, key, desc) {
|
|
88
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
89
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
90
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
91
|
+
else
|
|
92
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
93
|
+
if (d = decorators[i])
|
|
94
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
+
}
|
|
97
|
+
function __param(paramIndex, decorator) {
|
|
98
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
99
|
+
}
|
|
100
|
+
function __metadata(metadataKey, metadataValue) {
|
|
101
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
102
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
103
|
+
}
|
|
104
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
105
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
106
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
107
|
+
function fulfilled(value) { try {
|
|
108
|
+
step(generator.next(value));
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
reject(e);
|
|
112
|
+
} }
|
|
113
|
+
function rejected(value) { try {
|
|
114
|
+
step(generator["throw"](value));
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
reject(e);
|
|
118
|
+
} }
|
|
119
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
120
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function __generator(thisArg, body) {
|
|
124
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
125
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
126
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
127
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
128
|
+
function step(op) {
|
|
129
|
+
if (f)
|
|
130
|
+
throw new TypeError("Generator is already executing.");
|
|
131
|
+
while (_)
|
|
132
|
+
try {
|
|
133
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
134
|
+
return t;
|
|
135
|
+
if (y = 0, t)
|
|
136
|
+
op = [op[0] & 2, t.value];
|
|
137
|
+
switch (op[0]) {
|
|
138
|
+
case 0:
|
|
139
|
+
case 1:
|
|
140
|
+
t = op;
|
|
141
|
+
break;
|
|
142
|
+
case 4:
|
|
143
|
+
_.label++;
|
|
144
|
+
return { value: op[1], done: false };
|
|
145
|
+
case 5:
|
|
146
|
+
_.label++;
|
|
147
|
+
y = op[1];
|
|
148
|
+
op = [0];
|
|
149
|
+
continue;
|
|
150
|
+
case 7:
|
|
151
|
+
op = _.ops.pop();
|
|
152
|
+
_.trys.pop();
|
|
153
|
+
continue;
|
|
154
|
+
default:
|
|
155
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
156
|
+
_ = 0;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
160
|
+
_.label = op[1];
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
164
|
+
_.label = t[1];
|
|
165
|
+
t = op;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
if (t && _.label < t[2]) {
|
|
169
|
+
_.label = t[2];
|
|
170
|
+
_.ops.push(op);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
if (t[2])
|
|
174
|
+
_.ops.pop();
|
|
175
|
+
_.trys.pop();
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
op = body.call(thisArg, _);
|
|
179
|
+
}
|
|
180
|
+
catch (e) {
|
|
181
|
+
op = [6, e];
|
|
182
|
+
y = 0;
|
|
183
|
+
}
|
|
184
|
+
finally {
|
|
185
|
+
f = t = 0;
|
|
186
|
+
}
|
|
187
|
+
if (op[0] & 5)
|
|
188
|
+
throw op[1];
|
|
189
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
193
|
+
if (k2 === undefined)
|
|
194
|
+
k2 = k;
|
|
195
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
196
|
+
}) : (function (o, m, k, k2) {
|
|
197
|
+
if (k2 === undefined)
|
|
198
|
+
k2 = k;
|
|
199
|
+
o[k2] = m[k];
|
|
200
|
+
});
|
|
201
|
+
function __exportStar(m, o) {
|
|
202
|
+
for (var p in m)
|
|
203
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
204
|
+
__createBinding(o, m, p);
|
|
205
|
+
}
|
|
206
|
+
function __values(o) {
|
|
207
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
208
|
+
if (m)
|
|
209
|
+
return m.call(o);
|
|
210
|
+
if (o && typeof o.length === "number")
|
|
211
|
+
return {
|
|
212
|
+
next: function () {
|
|
213
|
+
if (o && i >= o.length)
|
|
214
|
+
o = void 0;
|
|
215
|
+
return { value: o && o[i++], done: !o };
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
219
|
+
}
|
|
220
|
+
function __read(o, n) {
|
|
221
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
222
|
+
if (!m)
|
|
223
|
+
return o;
|
|
224
|
+
var i = m.call(o), r, ar = [], e;
|
|
225
|
+
try {
|
|
226
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
227
|
+
ar.push(r.value);
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
e = { error: error };
|
|
231
|
+
}
|
|
232
|
+
finally {
|
|
233
|
+
try {
|
|
234
|
+
if (r && !r.done && (m = i["return"]))
|
|
235
|
+
m.call(i);
|
|
236
|
+
}
|
|
237
|
+
finally {
|
|
238
|
+
if (e)
|
|
239
|
+
throw e.error;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return ar;
|
|
243
|
+
}
|
|
244
|
+
/** @deprecated */
|
|
245
|
+
function __spread() {
|
|
246
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
247
|
+
ar = ar.concat(__read(arguments[i]));
|
|
248
|
+
return ar;
|
|
249
|
+
}
|
|
250
|
+
/** @deprecated */
|
|
251
|
+
function __spreadArrays() {
|
|
252
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
253
|
+
s += arguments[i].length;
|
|
254
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
255
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
256
|
+
r[k] = a[j];
|
|
257
|
+
return r;
|
|
258
|
+
}
|
|
259
|
+
function __spreadArray(to, from, pack) {
|
|
260
|
+
if (pack || arguments.length === 2)
|
|
261
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
262
|
+
if (ar || !(i in from)) {
|
|
263
|
+
if (!ar)
|
|
264
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
265
|
+
ar[i] = from[i];
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return to.concat(ar || from);
|
|
269
|
+
}
|
|
270
|
+
function __await(v) {
|
|
271
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
272
|
+
}
|
|
273
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
274
|
+
if (!Symbol.asyncIterator)
|
|
275
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
276
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
277
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
278
|
+
function verb(n) { if (g[n])
|
|
279
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
280
|
+
function resume(n, v) { try {
|
|
281
|
+
step(g[n](v));
|
|
282
|
+
}
|
|
283
|
+
catch (e) {
|
|
284
|
+
settle(q[0][3], e);
|
|
285
|
+
} }
|
|
286
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
287
|
+
function fulfill(value) { resume("next", value); }
|
|
288
|
+
function reject(value) { resume("throw", value); }
|
|
289
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
290
|
+
resume(q[0][0], q[0][1]); }
|
|
291
|
+
}
|
|
292
|
+
function __asyncDelegator(o) {
|
|
293
|
+
var i, p;
|
|
294
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
295
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
296
|
+
}
|
|
297
|
+
function __asyncValues(o) {
|
|
298
|
+
if (!Symbol.asyncIterator)
|
|
299
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
300
|
+
var m = o[Symbol.asyncIterator], i;
|
|
301
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
302
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
303
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
304
|
+
}
|
|
305
|
+
function __makeTemplateObject(cooked, raw) {
|
|
306
|
+
if (Object.defineProperty) {
|
|
307
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
cooked.raw = raw;
|
|
311
|
+
}
|
|
312
|
+
return cooked;
|
|
313
|
+
}
|
|
314
|
+
;
|
|
315
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
316
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
317
|
+
}) : function (o, v) {
|
|
318
|
+
o["default"] = v;
|
|
319
|
+
};
|
|
320
|
+
function __importStar(mod) {
|
|
321
|
+
if (mod && mod.__esModule)
|
|
322
|
+
return mod;
|
|
323
|
+
var result = {};
|
|
324
|
+
if (mod != null)
|
|
325
|
+
for (var k in mod)
|
|
326
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
327
|
+
__createBinding(result, mod, k);
|
|
328
|
+
__setModuleDefault(result, mod);
|
|
329
|
+
return result;
|
|
330
|
+
}
|
|
331
|
+
function __importDefault(mod) {
|
|
332
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
333
|
+
}
|
|
334
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
335
|
+
if (kind === "a" && !f)
|
|
336
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
337
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
338
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
339
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
340
|
+
}
|
|
341
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
342
|
+
if (kind === "m")
|
|
343
|
+
throw new TypeError("Private method is not writable");
|
|
344
|
+
if (kind === "a" && !f)
|
|
345
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
346
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
347
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
348
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
var THESEAM_DYNAMIC_VALUE_EVALUATOR = new i0.InjectionToken('Evaluator that can be used for evaluating a DynamicValue');
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
*/
|
|
356
|
+
var DynamicValueHelperService = /** @class */ (function () {
|
|
357
|
+
function DynamicValueHelperService(evaluators) {
|
|
358
|
+
var e_1, _a;
|
|
359
|
+
this._evaluatorMap = new Map();
|
|
360
|
+
try {
|
|
361
|
+
// Only one evaluator should exist for a type, so map them for faster lookup.
|
|
362
|
+
for (var evaluators_1 = __values(evaluators), evaluators_1_1 = evaluators_1.next(); !evaluators_1_1.done; evaluators_1_1 = evaluators_1.next()) {
|
|
363
|
+
var e = evaluators_1_1.value;
|
|
364
|
+
if (i0.isDevMode()) {
|
|
365
|
+
if (this._evaluatorMap.has(e.type)) {
|
|
366
|
+
console.warn("[DynamicValueHelperService] Multiple evaluators found for type '" + e.type + "'");
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
this._evaluatorMap.set(e.type, e);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
373
|
+
finally {
|
|
374
|
+
try {
|
|
375
|
+
if (evaluators_1_1 && !evaluators_1_1.done && (_a = evaluators_1.return)) _a.call(evaluators_1);
|
|
376
|
+
}
|
|
377
|
+
finally { if (e_1) throw e_1.error; }
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Evaluate a dynamic value to its actual value.
|
|
382
|
+
*
|
|
383
|
+
* TODO: Improve context and return typing.
|
|
384
|
+
*/
|
|
385
|
+
DynamicValueHelperService.prototype.eval = function (value, context) {
|
|
386
|
+
if (this.isEvaluatableType(value, true)) {
|
|
387
|
+
return this._evalEvaluatable(value, context);
|
|
388
|
+
}
|
|
389
|
+
// Use `evalSync` if `eval` isn't provided and `evalSync` is.
|
|
390
|
+
if (this.isEvaluatableType(value, false)) {
|
|
391
|
+
return Promise.resolve(this._evalEvaluatableSync(value, context));
|
|
392
|
+
}
|
|
393
|
+
return Promise.resolve(value);
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Evaluate a dynamic value to its actual value.
|
|
397
|
+
*
|
|
398
|
+
* TODO: Improve context and return typing.
|
|
399
|
+
*/
|
|
400
|
+
DynamicValueHelperService.prototype.evalSync = function (value, context) {
|
|
401
|
+
if (this.isEvaluatableType(value, false)) {
|
|
402
|
+
return this._evalEvaluatableSync(value, context);
|
|
403
|
+
}
|
|
404
|
+
return value;
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* Checks if a DynamicValue is a type that can be evaluated.
|
|
408
|
+
*/
|
|
409
|
+
DynamicValueHelperService.prototype.isEvaluatableType = function (value, isAsync) {
|
|
410
|
+
if (value === undefined || value === null) {
|
|
411
|
+
return false;
|
|
412
|
+
}
|
|
413
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
if (!value.type) {
|
|
417
|
+
return false;
|
|
418
|
+
}
|
|
419
|
+
if (this._evaluatorMap.has(value.type)) {
|
|
420
|
+
return true;
|
|
421
|
+
}
|
|
422
|
+
return false;
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
*/
|
|
427
|
+
DynamicValueHelperService.prototype._evalEvaluatable = function (value, context) {
|
|
428
|
+
var evaluator = this._evaluatorMap.get(value.type);
|
|
429
|
+
if (!evaluator) {
|
|
430
|
+
throw Error("[DynamicValueHelperService] Evaluator '" + (value ? value.type : undefined) + "' not found.");
|
|
431
|
+
}
|
|
432
|
+
if (!evaluator.eval) {
|
|
433
|
+
throw Error("[DynamicValueHelperService] Evaluator '" + (value ? value.type : undefined) + "' does not implement 'eval()'.");
|
|
434
|
+
}
|
|
435
|
+
return evaluator.eval(value, context);
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
DynamicValueHelperService.prototype._evalEvaluatableSync = function (value, context) {
|
|
441
|
+
var evaluator = this._evaluatorMap.get(value.type);
|
|
442
|
+
if (!evaluator) {
|
|
443
|
+
throw Error("[DynamicValueHelperService] Evaluator '" + (value ? value.type : undefined) + "' not found.");
|
|
444
|
+
}
|
|
445
|
+
if (!evaluator.evalSync) {
|
|
446
|
+
throw Error("[DynamicValueHelperService] Evaluator '" + (value ? value.type : undefined) + "' does not implement 'evalSync()'.");
|
|
447
|
+
}
|
|
448
|
+
return evaluator.evalSync(value, context);
|
|
449
|
+
};
|
|
450
|
+
return DynamicValueHelperService;
|
|
451
|
+
}());
|
|
452
|
+
DynamicValueHelperService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DynamicValueHelperService_Factory() { return new DynamicValueHelperService(i0__namespace.ɵɵinject(THESEAM_DYNAMIC_VALUE_EVALUATOR)); }, token: DynamicValueHelperService, providedIn: "root" });
|
|
453
|
+
DynamicValueHelperService.decorators = [
|
|
454
|
+
{ type: i0.Injectable, args: [{
|
|
455
|
+
providedIn: 'root'
|
|
456
|
+
},] }
|
|
457
|
+
];
|
|
458
|
+
DynamicValueHelperService.ctorParameters = function () { return [
|
|
459
|
+
{ type: Array, decorators: [{ type: i0.Inject, args: [THESEAM_DYNAMIC_VALUE_EVALUATOR,] }] }
|
|
460
|
+
]; };
|
|
461
|
+
|
|
462
|
+
var VALID_REQUEST_METHODS = [
|
|
463
|
+
'GET',
|
|
464
|
+
'POST',
|
|
465
|
+
'PUT',
|
|
466
|
+
'PATCH',
|
|
467
|
+
'DELETE'
|
|
468
|
+
];
|
|
469
|
+
function isValidRequestMethod(method) {
|
|
470
|
+
return VALID_REQUEST_METHODS.indexOf(method) !== -1;
|
|
471
|
+
}
|
|
472
|
+
var THESEAM_API_CONFIG_DEFAULT = {
|
|
473
|
+
url: '/',
|
|
474
|
+
methodHeaders: {
|
|
475
|
+
'GET': { 'Content-Type': 'application/json' },
|
|
476
|
+
'POST': { 'Content-Type': 'application/json' },
|
|
477
|
+
'PUT': { 'Content-Type': 'application/json' },
|
|
478
|
+
'PATCH': { 'Content-Type': 'application/json' },
|
|
479
|
+
'DELETE': { 'Content-Type': 'application/json' }
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
// export const THESEAM_API_CONFIG = new InjectionToken<IApiConfig[]>(
|
|
483
|
+
// 'Api config token, config options for actions that make an api request in library'
|
|
484
|
+
// )
|
|
485
|
+
var THESEAM_API_CONFIG = new i0.InjectionToken('Api config token, config options for actions that make an api request in library', {
|
|
486
|
+
providedIn: 'root',
|
|
487
|
+
factory: function () { return [THESEAM_API_CONFIG_DEFAULT]; }
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
function dynamicActionApiNotSupportedError() {
|
|
491
|
+
return Error("Dynamic action type 'api' not supported.");
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Handles execution of api call actions.
|
|
496
|
+
*
|
|
497
|
+
* This action service should be generic enough to
|
|
498
|
+
* work with any url endpoint, but will be biased towards our api where needed.
|
|
499
|
+
*/
|
|
500
|
+
var DynamicActionApiService = /** @class */ (function () {
|
|
501
|
+
function DynamicActionApiService(_valueHelper, _http, _configs) {
|
|
502
|
+
this._valueHelper = _valueHelper;
|
|
503
|
+
this._http = _http;
|
|
504
|
+
this._configs = _configs;
|
|
505
|
+
this.type = 'api';
|
|
506
|
+
this.label = 'Api Action';
|
|
507
|
+
}
|
|
508
|
+
DynamicActionApiService.prototype.exec = function (args, context) {
|
|
509
|
+
var _this = this;
|
|
510
|
+
if (!this._isSupported()) {
|
|
511
|
+
throw dynamicActionApiNotSupportedError();
|
|
512
|
+
}
|
|
513
|
+
return rxjs.from(this._getExecInfo(args, context)).pipe(operators.switchMap(function (x) { return _this._http.request(x.method, x.url, x.options); })).toPromise();
|
|
514
|
+
};
|
|
515
|
+
DynamicActionApiService.prototype.getUiProps = function (args, context) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
517
|
+
return __generator(this, function (_a) {
|
|
518
|
+
return [2 /*return*/, {
|
|
519
|
+
_actionDef: args,
|
|
520
|
+
triggerType: 'click'
|
|
521
|
+
}];
|
|
522
|
+
});
|
|
523
|
+
});
|
|
524
|
+
};
|
|
525
|
+
DynamicActionApiService.prototype._getExecInfo = function (args, context) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
527
|
+
var method, url, body, params, headers, result;
|
|
528
|
+
return __generator(this, function (_a) {
|
|
529
|
+
switch (_a.label) {
|
|
530
|
+
case 0:
|
|
531
|
+
method = args.method || 'GET';
|
|
532
|
+
return [4 /*yield*/, this._getUrl(args, context)];
|
|
533
|
+
case 1:
|
|
534
|
+
url = _a.sent();
|
|
535
|
+
if (url === null) {
|
|
536
|
+
throw new Error('[DynamicActionApiService] Unable to determine url.');
|
|
537
|
+
}
|
|
538
|
+
return [4 /*yield*/, this._getBody(args, context)];
|
|
539
|
+
case 2:
|
|
540
|
+
body = _a.sent();
|
|
541
|
+
return [4 /*yield*/, this._getParams(args, context)];
|
|
542
|
+
case 3:
|
|
543
|
+
params = _a.sent();
|
|
544
|
+
return [4 /*yield*/, this._getHeaders(args, context)];
|
|
545
|
+
case 4:
|
|
546
|
+
headers = _a.sent();
|
|
547
|
+
result = {
|
|
548
|
+
url: url,
|
|
549
|
+
method: method,
|
|
550
|
+
options: { body: body, params: params, headers: headers }
|
|
551
|
+
};
|
|
552
|
+
return [2 /*return*/, result];
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
DynamicActionApiService.prototype._getUrl = function (args, context) {
|
|
558
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
559
|
+
var config, endpoint, url, addSlash;
|
|
560
|
+
return __generator(this, function (_a) {
|
|
561
|
+
switch (_a.label) {
|
|
562
|
+
case 0:
|
|
563
|
+
config = this._getApiConfig(args);
|
|
564
|
+
endpoint = '';
|
|
565
|
+
if (!args.endpoint) return [3 /*break*/, 2];
|
|
566
|
+
return [4 /*yield*/, this._valueHelper.eval(args.endpoint, context)];
|
|
567
|
+
case 1:
|
|
568
|
+
endpoint = _a.sent();
|
|
569
|
+
_a.label = 2;
|
|
570
|
+
case 2:
|
|
571
|
+
if (utils.isAbsoluteUrl(endpoint)) {
|
|
572
|
+
return [2 /*return*/, endpoint];
|
|
573
|
+
}
|
|
574
|
+
if (!(config && config.url !== undefined && config.url !== null)) return [3 /*break*/, 4];
|
|
575
|
+
return [4 /*yield*/, this._valueHelper.eval(config.url, context)];
|
|
576
|
+
case 3:
|
|
577
|
+
url = _a.sent();
|
|
578
|
+
if (typeof url === 'string') {
|
|
579
|
+
addSlash = endpoint.length > 0 && endpoint.indexOf('/') !== 0 &&
|
|
580
|
+
url.length > 0 && url.indexOf('/') !== 0;
|
|
581
|
+
return [2 /*return*/, "" + config.url + (addSlash ? '/' : '') + endpoint];
|
|
582
|
+
}
|
|
583
|
+
_a.label = 4;
|
|
584
|
+
case 4: return [2 /*return*/, null];
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
};
|
|
589
|
+
DynamicActionApiService.prototype._getApiConfig = function (args) {
|
|
590
|
+
var e_1, _a;
|
|
591
|
+
var configs = this._configs || [];
|
|
592
|
+
if (args.id === undefined || args.id === null) {
|
|
593
|
+
return configs.length > 0 ? configs[0] : null;
|
|
594
|
+
}
|
|
595
|
+
try {
|
|
596
|
+
for (var configs_1 = __values(configs), configs_1_1 = configs_1.next(); !configs_1_1.done; configs_1_1 = configs_1.next()) {
|
|
597
|
+
var config = configs_1_1.value;
|
|
598
|
+
if (config.id && config.id === args.id) {
|
|
599
|
+
return config;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
604
|
+
finally {
|
|
605
|
+
try {
|
|
606
|
+
if (configs_1_1 && !configs_1_1.done && (_a = configs_1.return)) _a.call(configs_1);
|
|
607
|
+
}
|
|
608
|
+
finally { if (e_1) throw e_1.error; }
|
|
609
|
+
}
|
|
610
|
+
return null;
|
|
611
|
+
};
|
|
612
|
+
DynamicActionApiService.prototype._getBody = function (args, context) {
|
|
613
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
614
|
+
return __generator(this, function (_a) {
|
|
615
|
+
switch (_a.label) {
|
|
616
|
+
case 0:
|
|
617
|
+
if (!(args.body !== undefined && args.body !== null)) return [3 /*break*/, 2];
|
|
618
|
+
return [4 /*yield*/, this._valueHelper.eval(args.body, context)];
|
|
619
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
620
|
+
case 2: return [2 /*return*/, undefined];
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
DynamicActionApiService.prototype._getParams = function (args, context) {
|
|
626
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
627
|
+
return __generator(this, function (_a) {
|
|
628
|
+
switch (_a.label) {
|
|
629
|
+
case 0:
|
|
630
|
+
if (!(args.params !== undefined && args.params !== null)) return [3 /*break*/, 2];
|
|
631
|
+
return [4 /*yield*/, this._valueHelper.eval(args.params, context)];
|
|
632
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
633
|
+
case 2: return [2 /*return*/, undefined];
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
DynamicActionApiService.prototype._getHeaders = function (args, context) {
|
|
639
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
640
|
+
var headers, config, method, h, argHeaders, _val, keys, keys_1, keys_1_1, key, value, _a, _b, _c, _d, e_2_1;
|
|
641
|
+
var e_2, _e;
|
|
642
|
+
var _this = this;
|
|
643
|
+
return __generator(this, function (_f) {
|
|
644
|
+
switch (_f.label) {
|
|
645
|
+
case 0:
|
|
646
|
+
headers = {};
|
|
647
|
+
config = this._getApiConfig(args);
|
|
648
|
+
if (!(config && config.methodHeaders)) return [3 /*break*/, 2];
|
|
649
|
+
method = typeof args.method === 'string'
|
|
650
|
+
? args.method.trim().toUpperCase()
|
|
651
|
+
: 'GET';
|
|
652
|
+
if (!isValidRequestMethod(method)) {
|
|
653
|
+
throw Error("API request method must be one of " + VALID_REQUEST_METHODS);
|
|
654
|
+
}
|
|
655
|
+
h = method && config.methodHeaders[method];
|
|
656
|
+
if (!(h !== undefined && h !== null)) return [3 /*break*/, 2];
|
|
657
|
+
return [4 /*yield*/, this._evalHeaders(h, context)];
|
|
658
|
+
case 1:
|
|
659
|
+
headers = (_f.sent());
|
|
660
|
+
_f.label = 2;
|
|
661
|
+
case 2:
|
|
662
|
+
argHeaders = args.headers;
|
|
663
|
+
if (!(argHeaders !== undefined && argHeaders !== null)) return [3 /*break*/, 15];
|
|
664
|
+
if (!(typeof argHeaders === 'string')) return [3 /*break*/, 3];
|
|
665
|
+
headers = argHeaders;
|
|
666
|
+
return [3 /*break*/, 15];
|
|
667
|
+
case 3:
|
|
668
|
+
_val = this._valueHelper.eval(argHeaders, context);
|
|
669
|
+
if (!(typeof _val === 'string')) return [3 /*break*/, 4];
|
|
670
|
+
headers = _val;
|
|
671
|
+
return [3 /*break*/, 15];
|
|
672
|
+
case 4:
|
|
673
|
+
keys = Object.keys(argHeaders);
|
|
674
|
+
_f.label = 5;
|
|
675
|
+
case 5:
|
|
676
|
+
_f.trys.push([5, 13, 14, 15]);
|
|
677
|
+
keys_1 = __values(keys), keys_1_1 = keys_1.next();
|
|
678
|
+
_f.label = 6;
|
|
679
|
+
case 6:
|
|
680
|
+
if (!!keys_1_1.done) return [3 /*break*/, 12];
|
|
681
|
+
key = keys_1_1.value;
|
|
682
|
+
if (!isValidRequestMethod(key)) {
|
|
683
|
+
throw Error("API request method must be one of " + VALID_REQUEST_METHODS);
|
|
684
|
+
}
|
|
685
|
+
value = argHeaders[key];
|
|
686
|
+
if (!(typeof value === 'string')) return [3 /*break*/, 7];
|
|
687
|
+
headers[key] = value;
|
|
688
|
+
return [3 /*break*/, 11];
|
|
689
|
+
case 7:
|
|
690
|
+
if (!Array.isArray(value)) return [3 /*break*/, 9];
|
|
691
|
+
_a = headers;
|
|
692
|
+
_b = key;
|
|
693
|
+
return [4 /*yield*/, Promise.all(value.map(function (v) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
694
|
+
switch (_a.label) {
|
|
695
|
+
case 0: return [4 /*yield*/, this._valueHelper.eval(v, context)];
|
|
696
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
697
|
+
}
|
|
698
|
+
}); }); }))];
|
|
699
|
+
case 8:
|
|
700
|
+
_a[_b] = (_f.sent());
|
|
701
|
+
return [3 /*break*/, 11];
|
|
702
|
+
case 9:
|
|
703
|
+
_c = headers;
|
|
704
|
+
_d = key;
|
|
705
|
+
return [4 /*yield*/, this._valueHelper.eval(value, context)];
|
|
706
|
+
case 10:
|
|
707
|
+
_c[_d] = _f.sent();
|
|
708
|
+
_f.label = 11;
|
|
709
|
+
case 11:
|
|
710
|
+
keys_1_1 = keys_1.next();
|
|
711
|
+
return [3 /*break*/, 6];
|
|
712
|
+
case 12: return [3 /*break*/, 15];
|
|
713
|
+
case 13:
|
|
714
|
+
e_2_1 = _f.sent();
|
|
715
|
+
e_2 = { error: e_2_1 };
|
|
716
|
+
return [3 /*break*/, 15];
|
|
717
|
+
case 14:
|
|
718
|
+
try {
|
|
719
|
+
if (keys_1_1 && !keys_1_1.done && (_e = keys_1.return)) _e.call(keys_1);
|
|
720
|
+
}
|
|
721
|
+
finally { if (e_2) throw e_2.error; }
|
|
722
|
+
return [7 /*endfinally*/];
|
|
723
|
+
case 15: return [2 /*return*/, new http.HttpHeaders(headers)];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
};
|
|
728
|
+
DynamicActionApiService.prototype._evalHeaders = function (headers, context) {
|
|
729
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
730
|
+
var res, _val, keys, keys_2, keys_2_1, key, value, _a, _b, _c, _d, e_3_1;
|
|
731
|
+
var e_3, _e;
|
|
732
|
+
var _this = this;
|
|
733
|
+
return __generator(this, function (_f) {
|
|
734
|
+
switch (_f.label) {
|
|
735
|
+
case 0:
|
|
736
|
+
res = {};
|
|
737
|
+
if (!(typeof headers === 'string')) return [3 /*break*/, 1];
|
|
738
|
+
res = headers;
|
|
739
|
+
return [3 /*break*/, 13];
|
|
740
|
+
case 1:
|
|
741
|
+
_val = this._valueHelper.eval(headers, context);
|
|
742
|
+
if (!(typeof _val === 'string')) return [3 /*break*/, 2];
|
|
743
|
+
res = _val;
|
|
744
|
+
return [3 /*break*/, 13];
|
|
745
|
+
case 2:
|
|
746
|
+
keys = Object.keys(headers);
|
|
747
|
+
_f.label = 3;
|
|
748
|
+
case 3:
|
|
749
|
+
_f.trys.push([3, 11, 12, 13]);
|
|
750
|
+
keys_2 = __values(keys), keys_2_1 = keys_2.next();
|
|
751
|
+
_f.label = 4;
|
|
752
|
+
case 4:
|
|
753
|
+
if (!!keys_2_1.done) return [3 /*break*/, 10];
|
|
754
|
+
key = keys_2_1.value;
|
|
755
|
+
value = headers[key];
|
|
756
|
+
if (!(typeof value === 'string')) return [3 /*break*/, 5];
|
|
757
|
+
res[key] = value;
|
|
758
|
+
return [3 /*break*/, 9];
|
|
759
|
+
case 5:
|
|
760
|
+
if (!Array.isArray(value)) return [3 /*break*/, 7];
|
|
761
|
+
_a = res;
|
|
762
|
+
_b = key;
|
|
763
|
+
return [4 /*yield*/, Promise.all(value.map(function (v) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
764
|
+
switch (_a.label) {
|
|
765
|
+
case 0: return [4 /*yield*/, this._valueHelper.eval(v, context)];
|
|
766
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
767
|
+
}
|
|
768
|
+
}); }); }))];
|
|
769
|
+
case 6:
|
|
770
|
+
_a[_b] = _f.sent();
|
|
771
|
+
return [3 /*break*/, 9];
|
|
772
|
+
case 7:
|
|
773
|
+
_c = res;
|
|
774
|
+
_d = key;
|
|
775
|
+
return [4 /*yield*/, this._valueHelper.eval(value, context)];
|
|
776
|
+
case 8:
|
|
777
|
+
_c[_d] = _f.sent();
|
|
778
|
+
_f.label = 9;
|
|
779
|
+
case 9:
|
|
780
|
+
keys_2_1 = keys_2.next();
|
|
781
|
+
return [3 /*break*/, 4];
|
|
782
|
+
case 10: return [3 /*break*/, 13];
|
|
783
|
+
case 11:
|
|
784
|
+
e_3_1 = _f.sent();
|
|
785
|
+
e_3 = { error: e_3_1 };
|
|
786
|
+
return [3 /*break*/, 13];
|
|
787
|
+
case 12:
|
|
788
|
+
try {
|
|
789
|
+
if (keys_2_1 && !keys_2_1.done && (_e = keys_2.return)) _e.call(keys_2);
|
|
790
|
+
}
|
|
791
|
+
finally { if (e_3) throw e_3.error; }
|
|
792
|
+
return [7 /*endfinally*/];
|
|
793
|
+
case 13: return [2 /*return*/, res];
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
});
|
|
797
|
+
};
|
|
798
|
+
DynamicActionApiService.prototype._isSupported = function () {
|
|
799
|
+
if (i0.isDevMode()) {
|
|
800
|
+
console.warn("[DynamicActionApiService] Action is not ready for production yet.");
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
// I don't expect this to be attempted in prod before completed, so I am just adding a console warning.
|
|
804
|
+
console.warn("Unable to complete request. Contact support for assistance.");
|
|
805
|
+
}
|
|
806
|
+
if (!this._http) {
|
|
807
|
+
if (i0.isDevMode()) {
|
|
808
|
+
console.warn("[DynamicActionApiService] Endpoint actions require `HttpClientModule` to be imported.");
|
|
809
|
+
}
|
|
810
|
+
return false;
|
|
811
|
+
}
|
|
812
|
+
return true;
|
|
813
|
+
};
|
|
814
|
+
return DynamicActionApiService;
|
|
815
|
+
}());
|
|
816
|
+
DynamicActionApiService.decorators = [
|
|
817
|
+
{ type: i0.Injectable }
|
|
818
|
+
];
|
|
819
|
+
DynamicActionApiService.ctorParameters = function () { return [
|
|
820
|
+
{ type: DynamicValueHelperService },
|
|
821
|
+
{ type: http.HttpClient, decorators: [{ type: i0.Optional }] },
|
|
822
|
+
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [THESEAM_API_CONFIG,] }] }
|
|
823
|
+
]; };
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Handles execution of link actions.
|
|
827
|
+
*/
|
|
828
|
+
var DynamicActionLinkService = /** @class */ (function () {
|
|
829
|
+
function DynamicActionLinkService(_valueHandler) {
|
|
830
|
+
this._valueHandler = _valueHandler;
|
|
831
|
+
this.type = 'link';
|
|
832
|
+
this.label = 'Link Action';
|
|
833
|
+
}
|
|
834
|
+
// exec?: (args: IDynamicActionDef<T>, context: D) => Observable<R>
|
|
835
|
+
// execSync?: (args: IDynamicActionDef<T>, context: D) => R
|
|
836
|
+
DynamicActionLinkService.prototype.getUiProps = function (args, context) {
|
|
837
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
838
|
+
var link, external, asset, target, queryParams, def;
|
|
839
|
+
return __generator(this, function (_a) {
|
|
840
|
+
switch (_a.label) {
|
|
841
|
+
case 0: return [4 /*yield*/, this._valueHandler.eval(args.link)];
|
|
842
|
+
case 1:
|
|
843
|
+
link = _a.sent();
|
|
844
|
+
return [4 /*yield*/, this._valueHandler.eval(args.external)];
|
|
845
|
+
case 2:
|
|
846
|
+
external = !!(_a.sent());
|
|
847
|
+
return [4 /*yield*/, this._valueHandler.eval(args.asset)];
|
|
848
|
+
case 3:
|
|
849
|
+
asset = !!(_a.sent());
|
|
850
|
+
return [4 /*yield*/, this._valueHandler.eval(args.target)];
|
|
851
|
+
case 4:
|
|
852
|
+
target = _a.sent();
|
|
853
|
+
return [4 /*yield*/, this._valueHandler.eval(args.queryParams)];
|
|
854
|
+
case 5:
|
|
855
|
+
queryParams = _a.sent();
|
|
856
|
+
def = {
|
|
857
|
+
_actionDef: args,
|
|
858
|
+
triggerType: asset ? 'link-asset' : external ? 'link-external' : 'link',
|
|
859
|
+
linkUrl: link,
|
|
860
|
+
// blockClickExpr: { type: 'jexl', expr: 'event.button == 0 && event.ctrlKey == true ? true : false' }
|
|
861
|
+
};
|
|
862
|
+
if (target) {
|
|
863
|
+
if (!def.linkExtras) {
|
|
864
|
+
def.linkExtras = {};
|
|
865
|
+
}
|
|
866
|
+
def.linkExtras.target = target;
|
|
867
|
+
}
|
|
868
|
+
if (queryParams) {
|
|
869
|
+
if (!def.linkExtras) {
|
|
870
|
+
def.linkExtras = {};
|
|
871
|
+
}
|
|
872
|
+
def.linkExtras.queryParams = queryParams;
|
|
873
|
+
}
|
|
874
|
+
return [2 /*return*/, def];
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
});
|
|
878
|
+
};
|
|
879
|
+
return DynamicActionLinkService;
|
|
880
|
+
}());
|
|
881
|
+
DynamicActionLinkService.decorators = [
|
|
882
|
+
{ type: i0.Injectable }
|
|
883
|
+
];
|
|
884
|
+
DynamicActionLinkService.ctorParameters = function () { return [
|
|
885
|
+
{ type: DynamicValueHelperService }
|
|
886
|
+
]; };
|
|
887
|
+
|
|
888
|
+
var THESEAM_DYNAMIC_ACTION = new i0.InjectionToken('Action for executing a DynamicAction');
|
|
889
|
+
|
|
890
|
+
var DynamicActionHelperService = /** @class */ (function () {
|
|
891
|
+
function DynamicActionHelperService(_valueHelper,
|
|
892
|
+
// TODO: Consider making the action confirm more generic
|
|
893
|
+
_confirmDialog, actions) {
|
|
894
|
+
var e_1, _a;
|
|
895
|
+
this._valueHelper = _valueHelper;
|
|
896
|
+
this._confirmDialog = _confirmDialog;
|
|
897
|
+
this._actionMap = new Map();
|
|
898
|
+
try {
|
|
899
|
+
// Only one evaluator should exist for a type, so map them for faster lookup.
|
|
900
|
+
for (var _b = __values((actions || [])), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
901
|
+
var e = _c.value;
|
|
902
|
+
if (i0.isDevMode()) {
|
|
903
|
+
if (this._actionMap.has(e.type)) {
|
|
904
|
+
console.warn("[DynamicActionHelperService] Multiple actions found for type '" + e.type + "'");
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
this._actionMap.set(e.type, e);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
911
|
+
finally {
|
|
912
|
+
try {
|
|
913
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
914
|
+
}
|
|
915
|
+
finally { if (e_1) throw e_1.error; }
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Execute an async action.
|
|
920
|
+
*
|
|
921
|
+
* TODO: Improve context and return typing.
|
|
922
|
+
*/
|
|
923
|
+
DynamicActionHelperService.prototype.exec = function (actionDef, context) {
|
|
924
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
925
|
+
var action, confirmed;
|
|
926
|
+
return __generator(this, function (_a) {
|
|
927
|
+
switch (_a.label) {
|
|
928
|
+
case 0:
|
|
929
|
+
action = this._actionMap.get(actionDef.type);
|
|
930
|
+
if (!action) {
|
|
931
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' not found.");
|
|
932
|
+
}
|
|
933
|
+
if (!action.exec) {
|
|
934
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' does not implement 'exec()'.");
|
|
935
|
+
}
|
|
936
|
+
return [4 /*yield*/, this.requiresConfirmation(actionDef, context)];
|
|
937
|
+
case 1:
|
|
938
|
+
if (!_a.sent()) return [3 /*break*/, 3];
|
|
939
|
+
return [4 /*yield*/, this.promptConfirmation(actionDef, context)];
|
|
940
|
+
case 2:
|
|
941
|
+
confirmed = _a.sent();
|
|
942
|
+
if (!confirmed) {
|
|
943
|
+
// TODO: Decide a good way to handle a rejected confirm.
|
|
944
|
+
return [2 /*return*/, 'rejected'];
|
|
945
|
+
}
|
|
946
|
+
_a.label = 3;
|
|
947
|
+
case 3: return [4 /*yield*/, action.exec(actionDef, context)];
|
|
948
|
+
case 4: return [2 /*return*/, _a.sent()];
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
});
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* Execute an action.
|
|
955
|
+
*
|
|
956
|
+
* TODO: Improve context and return typing.
|
|
957
|
+
*/
|
|
958
|
+
DynamicActionHelperService.prototype.execSync = function (actionDef, context) {
|
|
959
|
+
var action = this._actionMap.get(actionDef.type);
|
|
960
|
+
if (!action) {
|
|
961
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' not found.");
|
|
962
|
+
}
|
|
963
|
+
if (!action.execSync) {
|
|
964
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' does not implement 'execSync()'.");
|
|
965
|
+
}
|
|
966
|
+
return action.execSync(actionDef, context);
|
|
967
|
+
};
|
|
968
|
+
/**
|
|
969
|
+
* Get UI props for action.
|
|
970
|
+
*
|
|
971
|
+
* TODO: Improve context and return typing.
|
|
972
|
+
*/
|
|
973
|
+
DynamicActionHelperService.prototype.getUiProps = function (actionDef, context) {
|
|
974
|
+
var action = this._actionMap.get(actionDef.type);
|
|
975
|
+
if (!action) {
|
|
976
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' not found.");
|
|
977
|
+
}
|
|
978
|
+
if (!action.getUiProps) {
|
|
979
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' does not implement 'getUiProps()'.");
|
|
980
|
+
}
|
|
981
|
+
return action.getUiProps(actionDef, context);
|
|
982
|
+
};
|
|
983
|
+
/**
|
|
984
|
+
* Checks if a DynamicActionDef is a type that can be executed.
|
|
985
|
+
*/
|
|
986
|
+
DynamicActionHelperService.prototype.isExecutableType = function (value, isAsync) {
|
|
987
|
+
if (value === undefined || value === null) {
|
|
988
|
+
return false;
|
|
989
|
+
}
|
|
990
|
+
var action = this._actionMap.get(value.type);
|
|
991
|
+
if (!action) {
|
|
992
|
+
return false;
|
|
993
|
+
}
|
|
994
|
+
if (isAsync && !action.exec) {
|
|
995
|
+
return false;
|
|
996
|
+
}
|
|
997
|
+
if (!isAsync && !action.execSync) {
|
|
998
|
+
return false;
|
|
999
|
+
}
|
|
1000
|
+
return true;
|
|
1001
|
+
};
|
|
1002
|
+
DynamicActionHelperService.prototype.requiresConfirmation = function (actionDef, context) {
|
|
1003
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1004
|
+
return __generator(this, function (_a) {
|
|
1005
|
+
switch (_a.label) {
|
|
1006
|
+
case 0:
|
|
1007
|
+
if (!utils.hasProperty(actionDef, 'confirmDef')) {
|
|
1008
|
+
return [2 /*return*/, false];
|
|
1009
|
+
}
|
|
1010
|
+
if (!utils.hasProperty(actionDef.confirmDef, 'disabled')) return [3 /*break*/, 2];
|
|
1011
|
+
return [4 /*yield*/, this._valueHelper.eval(actionDef.confirmDef.disabled, context)];
|
|
1012
|
+
case 1: return [2 /*return*/, !(_a.sent())];
|
|
1013
|
+
case 2: return [2 /*return*/, true];
|
|
1014
|
+
}
|
|
1015
|
+
});
|
|
1016
|
+
});
|
|
1017
|
+
};
|
|
1018
|
+
DynamicActionHelperService.prototype.requiresConfirmationSync = function (actionDef, context) {
|
|
1019
|
+
if (!utils.hasProperty(actionDef, 'confirmDef')) {
|
|
1020
|
+
return false;
|
|
1021
|
+
}
|
|
1022
|
+
if (utils.hasProperty(actionDef.confirmDef, 'disabled')) {
|
|
1023
|
+
var disabled = !this._valueHelper.evalSync(actionDef.confirmDef.disabled, context);
|
|
1024
|
+
if (!disabled) {
|
|
1025
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' can't open " +
|
|
1026
|
+
"confirm dialog. Only async actions support confirm dialog.");
|
|
1027
|
+
}
|
|
1028
|
+
return false;
|
|
1029
|
+
}
|
|
1030
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' can't open " +
|
|
1031
|
+
"confirm dialog. Only async actions support confirm dialog.");
|
|
1032
|
+
};
|
|
1033
|
+
DynamicActionHelperService.prototype.promptConfirmation = function (actionDef, context) {
|
|
1034
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1035
|
+
var confirmDef, message, alert, modalDef;
|
|
1036
|
+
return __generator(this, function (_a) {
|
|
1037
|
+
switch (_a.label) {
|
|
1038
|
+
case 0:
|
|
1039
|
+
if (!this._confirmDialog) {
|
|
1040
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' can't open " +
|
|
1041
|
+
"confirm dialog. Confirm dialog service is not injected.");
|
|
1042
|
+
}
|
|
1043
|
+
confirmDef = actionDef.confirmDef;
|
|
1044
|
+
if (!confirmDef) {
|
|
1045
|
+
throw Error("[DynamicActionHelperService] Action '" + (actionDef ? actionDef.type : undefined) + "' can't open " +
|
|
1046
|
+
"confirm dialog. Confirm def is not defined.");
|
|
1047
|
+
}
|
|
1048
|
+
if (!utils.hasProperty(confirmDef, 'message')) return [3 /*break*/, 2];
|
|
1049
|
+
return [4 /*yield*/, this._valueHelper.eval(confirmDef.message, context)];
|
|
1050
|
+
case 1:
|
|
1051
|
+
message = _a.sent();
|
|
1052
|
+
_a.label = 2;
|
|
1053
|
+
case 2:
|
|
1054
|
+
if (!utils.hasProperty(confirmDef, 'alert')) return [3 /*break*/, 4];
|
|
1055
|
+
return [4 /*yield*/, this._valueHelper.eval(confirmDef.alert, context)];
|
|
1056
|
+
case 3:
|
|
1057
|
+
alert = _a.sent();
|
|
1058
|
+
_a.label = 4;
|
|
1059
|
+
case 4:
|
|
1060
|
+
modalDef = this._confirmDialog.open(message, alert);
|
|
1061
|
+
return [2 /*return*/, modalDef.afterClosed().pipe(operators.map(function (v) { return v === 'confirm'; })).toPromise()];
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
});
|
|
1065
|
+
};
|
|
1066
|
+
return DynamicActionHelperService;
|
|
1067
|
+
}());
|
|
1068
|
+
DynamicActionHelperService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DynamicActionHelperService_Factory() { return new DynamicActionHelperService(i0__namespace.ɵɵinject(DynamicValueHelperService), i0__namespace.ɵɵinject(i2__namespace.SeamConfirmDialogService, 8), i0__namespace.ɵɵinject(THESEAM_DYNAMIC_ACTION, 8)); }, token: DynamicActionHelperService, providedIn: "root" });
|
|
1069
|
+
DynamicActionHelperService.decorators = [
|
|
1070
|
+
{ type: i0.Injectable, args: [{
|
|
1071
|
+
providedIn: 'root'
|
|
1072
|
+
},] }
|
|
1073
|
+
];
|
|
1074
|
+
DynamicActionHelperService.ctorParameters = function () { return [
|
|
1075
|
+
{ type: DynamicValueHelperService },
|
|
1076
|
+
{ type: i2.SeamConfirmDialogService, decorators: [{ type: i0.Optional }] },
|
|
1077
|
+
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [THESEAM_DYNAMIC_ACTION,] }] }
|
|
1078
|
+
]; };
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Handles execution of modal actions.
|
|
1082
|
+
*/
|
|
1083
|
+
var DynamicActionModalService = /** @class */ (function () {
|
|
1084
|
+
function DynamicActionModalService(_valueHelper, _modal, _injector) {
|
|
1085
|
+
this._valueHelper = _valueHelper;
|
|
1086
|
+
this._modal = _modal;
|
|
1087
|
+
this._injector = _injector;
|
|
1088
|
+
this.type = 'modal';
|
|
1089
|
+
this.label = 'Modal Action';
|
|
1090
|
+
}
|
|
1091
|
+
DynamicActionModalService.prototype.exec = function (args, context) {
|
|
1092
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1093
|
+
var component, data;
|
|
1094
|
+
var _this = this;
|
|
1095
|
+
return __generator(this, function (_a) {
|
|
1096
|
+
component = this._getComponent(args, context);
|
|
1097
|
+
data = this._getData(args, context);
|
|
1098
|
+
return [2 /*return*/, this._openModal(component, data).pipe(operators.switchMap(function (modalRef) { return modalRef.afterClosed().pipe(operators.switchMap(function (result) {
|
|
1099
|
+
var resultAction = _this._getModalResultAction(args, result);
|
|
1100
|
+
// TODO: Come up with a way to pass data from previous action
|
|
1101
|
+
if (resultAction) {
|
|
1102
|
+
var dynamicActionHelper = _this._getDynamicActionHelper();
|
|
1103
|
+
return dynamicActionHelper.exec(resultAction, context);
|
|
1104
|
+
}
|
|
1105
|
+
return rxjs.of(result);
|
|
1106
|
+
})); })).toPromise()];
|
|
1107
|
+
});
|
|
1108
|
+
});
|
|
1109
|
+
};
|
|
1110
|
+
// execSync?: (args: IDynamicActionDef<T>, context: D) => R
|
|
1111
|
+
DynamicActionModalService.prototype.getUiProps = function (args, context) {
|
|
1112
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1113
|
+
return __generator(this, function (_a) {
|
|
1114
|
+
return [2 /*return*/, {
|
|
1115
|
+
_actionDef: args,
|
|
1116
|
+
triggerType: 'click'
|
|
1117
|
+
}];
|
|
1118
|
+
});
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
/**
|
|
1122
|
+
* Get the dynamic action helper from the injector. The injector order causes
|
|
1123
|
+
* the dynamic action helper to not be in the injector when the constructor is
|
|
1124
|
+
* called.
|
|
1125
|
+
*/
|
|
1126
|
+
DynamicActionModalService.prototype._getDynamicActionHelper = function () {
|
|
1127
|
+
return this._injector.get(DynamicActionHelperService);
|
|
1128
|
+
};
|
|
1129
|
+
DynamicActionModalService.prototype._getComponent = function (args, context) {
|
|
1130
|
+
var component = args && args.component;
|
|
1131
|
+
if (component) {
|
|
1132
|
+
component = this._valueHelper.evalSync(component, context);
|
|
1133
|
+
}
|
|
1134
|
+
return component;
|
|
1135
|
+
};
|
|
1136
|
+
DynamicActionModalService.prototype._getData = function (args, context) {
|
|
1137
|
+
var data = args && args.data;
|
|
1138
|
+
if (data) {
|
|
1139
|
+
data = this._valueHelper.evalSync(data, context);
|
|
1140
|
+
}
|
|
1141
|
+
return data;
|
|
1142
|
+
};
|
|
1143
|
+
DynamicActionModalService.prototype._getModalResultAction = function (args, result) {
|
|
1144
|
+
if (args.resultActions && args.resultActions[result]) {
|
|
1145
|
+
return args.resultActions[result];
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
DynamicActionModalService.prototype._openModal = function (modal, data) {
|
|
1149
|
+
// TODO: Replace with JSON valid config from input def model
|
|
1150
|
+
var config = {
|
|
1151
|
+
data: data,
|
|
1152
|
+
modalSize: 'lg'
|
|
1153
|
+
};
|
|
1154
|
+
if (typeof modal === 'string') {
|
|
1155
|
+
return this._modal.openFromLazyComponent(modal, config);
|
|
1156
|
+
}
|
|
1157
|
+
else {
|
|
1158
|
+
return rxjs.of(this._modal.openFromComponent(modal, config));
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
return DynamicActionModalService;
|
|
1162
|
+
}());
|
|
1163
|
+
DynamicActionModalService.decorators = [
|
|
1164
|
+
{ type: i0.Injectable }
|
|
1165
|
+
];
|
|
1166
|
+
DynamicActionModalService.ctorParameters = function () { return [
|
|
1167
|
+
{ type: DynamicValueHelperService },
|
|
1168
|
+
{ type: modal.Modal },
|
|
1169
|
+
{ type: i0.Injector }
|
|
1170
|
+
]; };
|
|
1171
|
+
|
|
1172
|
+
var ExportersDataEvaluator = /** @class */ (function () {
|
|
1173
|
+
function ExportersDataEvaluator(_injector) {
|
|
1174
|
+
this._injector = _injector;
|
|
1175
|
+
this.type = 'exporters-data';
|
|
1176
|
+
}
|
|
1177
|
+
ExportersDataEvaluator.prototype.eval = function (value, context) {
|
|
1178
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1179
|
+
return __generator(this, function (_a) {
|
|
1180
|
+
return [2 /*return*/, this.evalSync(value, context)];
|
|
1181
|
+
});
|
|
1182
|
+
});
|
|
1183
|
+
};
|
|
1184
|
+
ExportersDataEvaluator.prototype.evalSync = function (value, context) {
|
|
1185
|
+
return {
|
|
1186
|
+
exporters: this._exporters(value.exporters || [])
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
ExportersDataEvaluator.prototype._exporters = function (exporters) {
|
|
1190
|
+
var dataExporters = (this._injector.get(dataExporter.THESEAM_DATA_EXPORTER) || []);
|
|
1191
|
+
return exporters
|
|
1192
|
+
.map(function (e) { return dataExporters.find(function (de) { return de.name === e; }); })
|
|
1193
|
+
.filter(utils.notNullOrUndefined);
|
|
1194
|
+
};
|
|
1195
|
+
return ExportersDataEvaluator;
|
|
1196
|
+
}());
|
|
1197
|
+
ExportersDataEvaluator.decorators = [
|
|
1198
|
+
{ type: i0.Injectable }
|
|
1199
|
+
];
|
|
1200
|
+
ExportersDataEvaluator.ctorParameters = function () { return [
|
|
1201
|
+
{ type: i0.Injector }
|
|
1202
|
+
]; };
|
|
1203
|
+
|
|
1204
|
+
// NOTE: ng-packagr ignores the "types" and "typeRoots" settings in tsconfig.
|
|
1205
|
+
var JexlEvaluator = /** @class */ (function () {
|
|
1206
|
+
function JexlEvaluator() {
|
|
1207
|
+
this.type = 'jexl';
|
|
1208
|
+
this._jexl = new jexl__default['default'].Jexl();
|
|
1209
|
+
this._jexl.addTransform('date', function (val, row) { return new common.DatePipe('en-US').transform(val, 'yyyy-MM-dd h:mm aaa'); });
|
|
1210
|
+
}
|
|
1211
|
+
JexlEvaluator.prototype.eval = function (value, context) {
|
|
1212
|
+
return this._jexl.eval(value.expr, context);
|
|
1213
|
+
};
|
|
1214
|
+
JexlEvaluator.prototype.evalSync = function (value, context) {
|
|
1215
|
+
return this._jexl.evalSync(value.expr, context);
|
|
1216
|
+
};
|
|
1217
|
+
return JexlEvaluator;
|
|
1218
|
+
}());
|
|
1219
|
+
JexlEvaluator.decorators = [
|
|
1220
|
+
{ type: i0.Injectable }
|
|
1221
|
+
];
|
|
1222
|
+
JexlEvaluator.ctorParameters = function () { return []; };
|
|
1223
|
+
|
|
1224
|
+
var THESEAM_DYNAMIC_DATA = new i0.InjectionToken('THESEAM_DYNAMIC_DATA');
|
|
1225
|
+
|
|
1226
|
+
function isActionType(action, typeName) {
|
|
1227
|
+
return action.type === typeName;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Generated bundle index. Do not edit.
|
|
1232
|
+
*/
|
|
1233
|
+
|
|
1234
|
+
exports.DynamicActionApiService = DynamicActionApiService;
|
|
1235
|
+
exports.DynamicActionHelperService = DynamicActionHelperService;
|
|
1236
|
+
exports.DynamicActionLinkService = DynamicActionLinkService;
|
|
1237
|
+
exports.DynamicActionModalService = DynamicActionModalService;
|
|
1238
|
+
exports.DynamicValueHelperService = DynamicValueHelperService;
|
|
1239
|
+
exports.ExportersDataEvaluator = ExportersDataEvaluator;
|
|
1240
|
+
exports.JexlEvaluator = JexlEvaluator;
|
|
1241
|
+
exports.THESEAM_API_CONFIG = THESEAM_API_CONFIG;
|
|
1242
|
+
exports.THESEAM_API_CONFIG_DEFAULT = THESEAM_API_CONFIG_DEFAULT;
|
|
1243
|
+
exports.THESEAM_DYNAMIC_ACTION = THESEAM_DYNAMIC_ACTION;
|
|
1244
|
+
exports.THESEAM_DYNAMIC_DATA = THESEAM_DYNAMIC_DATA;
|
|
1245
|
+
exports.THESEAM_DYNAMIC_VALUE_EVALUATOR = THESEAM_DYNAMIC_VALUE_EVALUATOR;
|
|
1246
|
+
exports.VALID_REQUEST_METHODS = VALID_REQUEST_METHODS;
|
|
1247
|
+
exports.isActionType = isActionType;
|
|
1248
|
+
exports.isValidRequestMethod = isValidRequestMethod;
|
|
1249
|
+
|
|
1250
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1251
|
+
|
|
1252
|
+
})));
|
|
1253
|
+
//# sourceMappingURL=theseam-ui-common-dynamic.umd.js.map
|