@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-toggle-group.umd.js","sources":["../../../projects/ui-common/toggle-group/toggle-group-option.directive.ts","../../../node_modules/tslib/tslib.es6.js","../../../projects/ui-common/toggle-group/toggle-group.directive.ts","../../../projects/ui-common/toggle-group/toggle-group.module.ts","../../../projects/ui-common/toggle-group/theseam-ui-common-toggle-group.ts"],"sourcesContent":["import { coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { ChangeDetectorRef, Directive, ElementRef, EventEmitter, HostBinding, Input, Output } from '@angular/core'\n\n@Directive({\n selector: '[seamToggleGroupOption]',\n exportAs: 'seamToggleGroupOption'\n})\nexport class ToggleGroupOptionDirective {\n\n @Input() seamToggleGroupOption: string | undefined | null\n\n @Input()\n get selected(): boolean { return this._selected }\n set selected(value: boolean) {\n if (!this._canUnselect && !value) { return }\n this._selected = coerceBooleanProperty(value)\n this.selectionChange.emit(this._selected)\n this._cdr.markForCheck()\n }\n private _selected = false\n\n /** Internal use only for now. */\n _canUnselect = true\n\n @Output() selectionChange = new EventEmitter<boolean>()\n\n @HostBinding('class.lib-toggle-group-option-selected') get _checkioSelectedClass() {\n return this._selected\n }\n\n constructor(\n private readonly _elementRef: ElementRef,\n private readonly _cdr: ChangeDetectorRef\n ) { }\n\n get value(): string | undefined | null {\n return this.seamToggleGroupOption\n }\n\n}\n","/*! *****************************************************************************\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 { BooleanInput, coerceArray } from '@angular/cdk/coercion'\nimport { AfterViewInit, ContentChildren, Directive, EventEmitter, forwardRef, Input, OnDestroy, Output, QueryList } from '@angular/core'\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'\nimport { combineLatest, from, Observable, of, Subject } from 'rxjs'\nimport { filter, map, startWith, switchMap, takeUntil, tap } from 'rxjs/operators'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\nimport { ToggleGroupOptionDirective } from './toggle-group-option.directive'\n\nexport const TOGGLE_GROUP_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n // tslint:disable-next-line:no-use-before-declare\n useExisting: forwardRef(() => ToggleGroupDirective),\n multi: true,\n}\n\n@Directive({\n selector: '[seamToggleGroup]',\n exportAs: 'seamToggleGroup',\n providers: [ TOGGLE_GROUP_VALUE_ACCESSOR ]\n})\nexport class ToggleGroupDirective implements OnDestroy, AfterViewInit, ControlValueAccessor {\n static ngAcceptInputType_disabled: BooleanInput\n static ngAcceptInputType_multiple: BooleanInput\n static ngAcceptInputType_selectionToggleable: BooleanInput\n\n private readonly _ngUnsubscribe = new Subject()\n\n // tslint:disable-next-line:no-input-rename\n @Input('value') val: string | string[] | undefined | null\n\n @Input() @InputBoolean() disabled: boolean = false\n @Input() @InputBoolean() multiple: boolean = false\n @Input() @InputBoolean() selectionToggleable: boolean = true\n\n // TODO: Add min/max selected inputs to make toggling better for multi select\n\n @Output() readonly change = new EventEmitter<string | string[] | undefined | null>()\n\n @ContentChildren(ToggleGroupOptionDirective) optionDirectives?: QueryList<ToggleGroupOptionDirective>\n\n public options?: Observable<ToggleGroupOptionDirective[]>\n\n onChange: any\n onTouched: any\n\n constructor() { }\n\n ngOnDestroy() {\n this._ngUnsubscribe.next()\n this._ngUnsubscribe.complete()\n }\n\n ngAfterViewInit() {\n setTimeout(() => {\n this._updateDirectiveStates()\n\n if (this.optionDirectives) {\n this.options = this.optionDirectives.changes\n .pipe(takeUntil(this._ngUnsubscribe))\n .pipe(startWith(this.optionDirectives))\n .pipe(map(v => v.toArray() as ToggleGroupOptionDirective[]))\n\n this.options.pipe(switchMap(opts => {\n const _tmp = of(undefined)\n if (opts) {\n const _v: Observable<boolean>[] = []\n for (const opt of opts) {\n _v.push(opt.selectionChange.pipe(\n filter(v => opt.selected !== this.isSelected(opt.value)),\n tap(v => {\n if (this.isSelected(opt.value)) {\n this.unselectValue(opt.value)\n } else {\n this.selectValue(opt.value)\n }\n })\n ))\n }\n return combineLatest(_v)\n }\n return _tmp\n })).subscribe()\n }\n\n this.change\n .pipe(switchMap(_ => from(this.optionDirectives?.toArray() || [])\n .pipe(tap(opt => { this._updateDirectiveState(opt) }))\n ))\n .subscribe()\n })\n }\n\n get value(): string | string[] | undefined | null {\n return this.val\n }\n\n set value(value: string | string[] | undefined | null) {\n const _value = this.multiple\n ? value !== null && value !== undefined\n ? coerceArray(value)\n : value\n : value\n\n this.val = (this.multiple) ? [ ...(<string[]>_value || []) ] : _value || ''\n this.change.emit(this.val)\n if (this.onChange) { this.onChange(_value) }\n if (this.onTouched) { this.onTouched() }\n }\n\n writeValue(value: any): void {\n this.value = value\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled\n }\n\n isSelected(value: string | undefined | null) {\n if (this.multiple) {\n const idx = (<string[]>this.value || []).findIndex(v => v === value)\n return idx !== -1\n } else {\n // TODO: Clean this up when the directive no longer allows array value type when multiple is false\n const v = Array.isArray(this.value) && this.value.length === 1\n ? this.value[0]\n : this.value\n return v === value\n }\n }\n\n unselectValue(value: string | undefined | null) {\n if (this.multiple) {\n this.value = (<string[]>this.value || []).filter(v => v !== value)\n } else {\n this.value = undefined\n }\n }\n\n selectValue(value: string | undefined | null) {\n if (this.multiple) {\n const _value = [ ...(<string[]>this.value || []) ]\n this.value = value ? [ ..._value, value ] : _value\n } else {\n this.value = value\n }\n }\n\n getOptionDirectiveByValue(value: string) {\n if (!this.optionDirectives || this.optionDirectives.length < 1) {\n return null\n }\n\n return this.optionDirectives.toArray()\n .find(opt => opt.value === value)\n }\n\n private _updateDirectiveStates(): void {\n if (this.optionDirectives) {\n for (const opt of this.optionDirectives.toArray()) {\n this._updateDirectiveState(opt)\n }\n }\n }\n\n private _updateDirectiveState(opt: ToggleGroupOptionDirective): void {\n const selected = this.isSelected(opt.value)\n if (opt.selected !== selected) {\n if (!opt._canUnselect) {\n opt._canUnselect = true\n }\n opt.selected = selected\n }\n if (!this.selectionToggleable) {\n if (!this.multiple || (this.value && this.value.length <= 1)) {\n if (opt.selected) {\n if (opt._canUnselect) {\n opt._canUnselect = false\n }\n } else {\n if (!opt._canUnselect) {\n opt._canUnselect = true\n }\n }\n } else {\n if (!opt._canUnselect) {\n opt._canUnselect = true\n }\n }\n }\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { ReactiveFormsModule } from '@angular/forms'\n\nimport { ToggleGroupOptionDirective } from './toggle-group-option.directive'\nimport { ToggleGroupDirective } from './toggle-group.directive'\n\n@NgModule({\n declarations: [\n ToggleGroupDirective,\n ToggleGroupOptionDirective\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule\n ],\n exports: [\n ToggleGroupDirective,\n ToggleGroupOptionDirective\n ]\n})\nexport class TheSeamToggleGroupModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","coerceBooleanProperty","Directive","ElementRef","ChangeDetectorRef","Input","Output","HostBinding","NG_VALUE_ACCESSOR","forwardRef","Subject","takeUntil","startWith","map","switchMap","of","filter","tap","combineLatest","from","coerceArray","ContentChildren","InputBoolean","NgModule","CommonModule","ReactiveFormsModule"],"mappings":";;;;;;;QA8BE,oCACmB,WAAuB,EACvB,IAAuB;YADvB,gBAAW,GAAX,WAAW,CAAY;YACvB,SAAI,GAAJ,IAAI,CAAmB;YAblC,cAAS,GAAG,KAAK,CAAA;;YAGzB,iBAAY,GAAG,IAAI,CAAA;YAET,oBAAe,GAAG,IAAIA,iBAAY,EAAW,CAAA;SASlD;QAtBL,sBACI,gDAAQ;iBADZ,cAC0B,OAAO,IAAI,CAAC,SAAS,CAAA,EAAE;iBACjD,UAAa,KAAc;gBACzB,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,KAAK,EAAE;oBAAE,OAAM;iBAAE;gBAC5C,IAAI,CAAC,SAAS,GAAGC,8BAAqB,CAAC,KAAK,CAAC,CAAA;gBAC7C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;gBACzC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAA;aACzB;;;WANgD;QAcjD,sBAA2D,6DAAqB;iBAAhF;gBACE,OAAO,IAAI,CAAC,SAAS,CAAA;aACtB;;;WAAA;QAOD,sBAAI,6CAAK;iBAAT;gBACE,OAAO,IAAI,CAAC,qBAAqB,CAAA;aAClC;;;WAAA;;;;gBAlCFC,cAAS,SAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,QAAQ,EAAE,uBAAuB;iBAClC;;;gBALsCC,eAAU;gBAAxCC,sBAAiB;;;wCAQvBC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2BACLA,UAAK;sCACLA,UAAK;yBAILC,WAAM;mCAENe,oBAAe,SAAC,0BAA0B;;IARlB;QAAfC,mBAAY,EAAE;0DAA0B;IACzB;QAAfA,mBAAY,EAAE;0DAA0B;IACzB;QAAfA,mBAAY,EAAE;qEAAoC;;;QCb9D;;;;;gBAdCC,aAAQ,SAAC;oBACR,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,0BAA0B;qBAC3B;oBACD,OAAO,EAAE;wBACPC,mBAAY;wBACZC,yBAAmB;qBACpB;oBACD,OAAO,EAAE;wBACP,oBAAoB;wBACpB,0BAA0B;qBAC3B;iBACF;;;ICpBD;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@theseam/ui-common/unsaved-changes-dialog', ['exports', '@angular/core'], 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']['unsaved-changes-dialog'] = {}), global.ng.core));
|
|
5
|
+
}(this, (function (exports, i0) { '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
|
+
// TODO: Decide if this component should be implemented or just use the native
|
|
30
|
+
// browser dialog for in-app routing also.
|
|
31
|
+
var UnsavedChangesDialogComponent = /** @class */ (function () {
|
|
32
|
+
function UnsavedChangesDialogComponent() {
|
|
33
|
+
}
|
|
34
|
+
UnsavedChangesDialogComponent.prototype.ngOnInit = function () {
|
|
35
|
+
};
|
|
36
|
+
return UnsavedChangesDialogComponent;
|
|
37
|
+
}());
|
|
38
|
+
UnsavedChangesDialogComponent.decorators = [
|
|
39
|
+
{ type: i0.Component, args: [{
|
|
40
|
+
selector: 'seam-unsaved-changes-dialog',
|
|
41
|
+
template: "\n <p>\n unsaved-changes-dialog works!\n </p>\n "
|
|
42
|
+
},] }
|
|
43
|
+
];
|
|
44
|
+
UnsavedChangesDialogComponent.ctorParameters = function () { return []; };
|
|
45
|
+
|
|
46
|
+
var TheSeamUnsavedChangesDialogModule = /** @class */ (function () {
|
|
47
|
+
function TheSeamUnsavedChangesDialogModule() {
|
|
48
|
+
}
|
|
49
|
+
return TheSeamUnsavedChangesDialogModule;
|
|
50
|
+
}());
|
|
51
|
+
TheSeamUnsavedChangesDialogModule.decorators = [
|
|
52
|
+
{ type: i0.NgModule, args: [{
|
|
53
|
+
declarations: [UnsavedChangesDialogComponent],
|
|
54
|
+
imports: [],
|
|
55
|
+
exports: [UnsavedChangesDialogComponent]
|
|
56
|
+
},] }
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
var UnsavedChangesDialogGuard = /** @class */ (function () {
|
|
60
|
+
function UnsavedChangesDialogGuard() {
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* NOTE: Must be synchronous for now to allow `window:beforeunload` event support.
|
|
64
|
+
*/
|
|
65
|
+
UnsavedChangesDialogGuard.prototype.canDeactivate = function (component) {
|
|
66
|
+
if (i0.isDevMode()) {
|
|
67
|
+
if (!component.unsavedChangesCanDeactivate) {
|
|
68
|
+
console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.');
|
|
69
|
+
}
|
|
70
|
+
var w = window;
|
|
71
|
+
// Avoid redirect prevention in Storybook
|
|
72
|
+
if (w && w.__STORYBOOK_CLIENT_API__) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (!component.unsavedChangesCanDeactivate()) {
|
|
77
|
+
if (confirm('You have unsaved changes! If you leave, your changes will be lost.')) {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
};
|
|
86
|
+
return UnsavedChangesDialogGuard;
|
|
87
|
+
}());
|
|
88
|
+
UnsavedChangesDialogGuard.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UnsavedChangesDialogGuard_Factory() { return new UnsavedChangesDialogGuard(); }, token: UnsavedChangesDialogGuard, providedIn: "root" });
|
|
89
|
+
UnsavedChangesDialogGuard.decorators = [
|
|
90
|
+
{ type: i0.Injectable, args: [{
|
|
91
|
+
providedIn: 'root'
|
|
92
|
+
},] }
|
|
93
|
+
];
|
|
94
|
+
|
|
95
|
+
// tslint:disable-next-line: directive-class-suffix
|
|
96
|
+
var UnsavedChangesCanDeactivate = /** @class */ (function () {
|
|
97
|
+
function UnsavedChangesCanDeactivate() {
|
|
98
|
+
}
|
|
99
|
+
UnsavedChangesCanDeactivate.prototype.__unloadNotification = function ($event) {
|
|
100
|
+
if (i0.isDevMode()) {
|
|
101
|
+
if (!this.unsavedChangesCanDeactivate) {
|
|
102
|
+
console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.');
|
|
103
|
+
}
|
|
104
|
+
var w = window;
|
|
105
|
+
// Avoid redirect prevention in Storybook
|
|
106
|
+
if (w && w.__STORYBOOK_CLIENT_API__) {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (!this.unsavedChangesCanDeactivate()) {
|
|
111
|
+
// $event.returnValue = true
|
|
112
|
+
$event.returnValue = 'You have unsaved changes! If you leave, your changes will be lost.';
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return UnsavedChangesCanDeactivate;
|
|
116
|
+
}());
|
|
117
|
+
UnsavedChangesCanDeactivate.decorators = [
|
|
118
|
+
{ type: i0.Directive }
|
|
119
|
+
];
|
|
120
|
+
UnsavedChangesCanDeactivate.propDecorators = {
|
|
121
|
+
__unloadNotification: [{ type: i0.HostListener, args: ['window:beforeunload', ['$event'],] }]
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Generated bundle index. Do not edit.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
exports.TheSeamUnsavedChangesDialogModule = TheSeamUnsavedChangesDialogModule;
|
|
129
|
+
exports.UnsavedChangesCanDeactivate = UnsavedChangesCanDeactivate;
|
|
130
|
+
exports.UnsavedChangesDialogComponent = UnsavedChangesDialogComponent;
|
|
131
|
+
exports.UnsavedChangesDialogGuard = UnsavedChangesDialogGuard;
|
|
132
|
+
|
|
133
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
134
|
+
|
|
135
|
+
})));
|
|
136
|
+
//# sourceMappingURL=theseam-ui-common-unsaved-changes-dialog.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theseam-ui-common-unsaved-changes-dialog.umd.js","sources":["../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-dialog.component.ts","../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-dialog.module.ts","../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-dialog.guard.ts","../../../projects/ui-common/unsaved-changes-dialog/unsaved-changes-can-deactivate.ts","../../../projects/ui-common/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core'\n\n// TODO: Decide if this component should be implemented or just use the native\n// browser dialog for in-app routing also.\n\n@Component({\n selector: 'seam-unsaved-changes-dialog',\n template: `\n <p>\n unsaved-changes-dialog works!\n </p>\n `,\n styles: []\n})\nexport class UnsavedChangesDialogComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { NgModule } from '@angular/core'\n\nimport { UnsavedChangesDialogComponent } from './unsaved-changes-dialog.component'\n\n@NgModule({\n declarations: [UnsavedChangesDialogComponent],\n imports: [],\n exports: [UnsavedChangesDialogComponent]\n})\nexport class TheSeamUnsavedChangesDialogModule { }\n","import { Injectable, isDevMode } from '@angular/core'\nimport { CanDeactivate } from '@angular/router'\n\nimport { UnsavedChangesCanDeactivate } from './unsaved-changes-can-deactivate'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UnsavedChangesDialogGuard implements CanDeactivate<UnsavedChangesCanDeactivate> {\n\n /**\n * NOTE: Must be synchronous for now to allow `window:beforeunload` event support.\n */\n canDeactivate(component: UnsavedChangesCanDeactivate): boolean {\n if (isDevMode()) {\n if (!component.unsavedChangesCanDeactivate) {\n console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.')\n }\n\n const w = window as any\n // Avoid redirect prevention in Storybook\n if (w && w.__STORYBOOK_CLIENT_API__) {\n return true\n }\n }\n\n if (!component.unsavedChangesCanDeactivate()) {\n if (confirm('You have unsaved changes! If you leave, your changes will be lost.')) {\n return true\n } else {\n return false\n }\n }\n return true\n }\n\n}\n","import { Directive, HostListener, isDevMode } from '@angular/core'\n\n@Directive()\n// tslint:disable-next-line: directive-class-suffix\nexport abstract class UnsavedChangesCanDeactivate {\n\n abstract unsavedChangesCanDeactivate(): boolean\n\n @HostListener('window:beforeunload', ['$event'])\n __unloadNotification($event: any) {\n if (isDevMode()) {\n if (!this.unsavedChangesCanDeactivate) {\n console.warn('Route Component with [UnsavedChangesDialogGuard] guard must extend [UnsavedChangesCanDeactivate] class.')\n }\n\n const w = window as any\n // Avoid redirect prevention in Storybook\n if (w && w.__STORYBOOK_CLIENT_API__) {\n return true\n }\n }\n\n if (!this.unsavedChangesCanDeactivate()) {\n // $event.returnValue = true\n $event.returnValue = 'You have unsaved changes! If you leave, your changes will be lost.'\n }\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Component","NgModule","isDevMode","Injectable","Directive","HostListener"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEA;EACA;;MAaE;OAAiB;MAEjB,gDAAQ,GAAR;OACC;;;;cAdFA,YAAS,SAAC;kBACT,QAAQ,EAAE,6BAA6B;kBACvC,QAAQ,EAAE,8DAIT;eAEF;;;;;MCJD;;;;;cALCC,WAAQ,SAAC;kBACR,YAAY,EAAE,CAAC,6BAA6B,CAAC;kBAC7C,OAAO,EAAE,EAAE;kBACX,OAAO,EAAE,CAAC,6BAA6B,CAAC;eACzC;;;;MCAD;;;;;MAKE,iDAAa,GAAb,UAAc,SAAsC;UAClD,IAAIC,YAAS,EAAE,EAAE;cACf,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE;kBAC1C,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;eACxH;cAED,IAAM,CAAC,GAAG,MAAa,CAAA;;cAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;kBACnC,OAAO,IAAI,CAAA;eACZ;WACF;UAED,IAAI,CAAC,SAAS,CAAC,2BAA2B,EAAE,EAAE;cAC5C,IAAI,OAAO,CAAC,oEAAoE,CAAC,EAAE;kBACjF,OAAO,IAAI,CAAA;eACZ;mBAAM;kBACL,OAAO,KAAK,CAAA;eACb;WACF;UACD,OAAO,IAAI,CAAA;OACZ;;;;;cA7BFC,aAAU,SAAC;kBACV,UAAU,EAAE,MAAM;eACnB;;;ECJD;;MACA;;MAKI,0DAAoB,GAApB,UAAqB,MAAW;UAC9B,IAAID,YAAS,EAAE,EAAE;cACf,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE;kBACrC,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;eACxH;cAED,IAAM,CAAC,GAAG,MAAa,CAAA;;cAEvB,IAAI,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE;kBACnC,OAAO,IAAI,CAAA;eACZ;WACF;UAED,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE;;cAEvC,MAAM,CAAC,WAAW,GAAG,oEAAoE,CAAA;WAC1F;OACF;;;;cAxBJE,YAAS;;;qCAMLC,eAAY,SAAC,qBAAqB,EAAE,CAAC,QAAQ,CAAC;;;ECRnD;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/operators'), require('rxjs'), require('@marklb/file-type')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@theseam/ui-common/utils', ['exports', 'rxjs/operators', 'rxjs', '@marklb/file-type'], 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'].utils = {}), global.rxjs.operators, global.rxjs, global.fileType));
|
|
5
|
+
}(this, (function (exports, operators, rxjs, fileType) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var fileType__default = /*#__PURE__*/_interopDefaultLegacy(fileType);
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
function getAttribute(element, name) {
|
|
15
|
+
return element.getAttribute(name);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
function hasAttribute(element, name) {
|
|
22
|
+
return element.hasAttribute(name);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Finds the closest CdkDrag to an element by looking at the DOM.
|
|
27
|
+
* @param element Element relative to which to look for a cdkDrag.
|
|
28
|
+
* @param openDialogs References to the currently available cdkDrag.
|
|
29
|
+
*/
|
|
30
|
+
function getClosestWidgetCdkDrag(element, dragDirectives) {
|
|
31
|
+
var parent = element.nativeElement.parentElement;
|
|
32
|
+
while (parent && !(parent.classList.contains('cdk-drag') && hasAttribute(parent, 'data-widget-id'))) {
|
|
33
|
+
parent = parent.parentElement;
|
|
34
|
+
}
|
|
35
|
+
var parentId = parent ? getAttribute(parent, 'data-widget-id') : null;
|
|
36
|
+
return parentId ?
|
|
37
|
+
dragDirectives.find(function (drag) { return getAttribute(drag.getRootElement(), 'data-widget-id') === parentId; })
|
|
38
|
+
: null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Get the name of the control.
|
|
43
|
+
*
|
|
44
|
+
* Example:
|
|
45
|
+
*
|
|
46
|
+
* ```js
|
|
47
|
+
* const group = new FormGroup({
|
|
48
|
+
* name: new Control(),
|
|
49
|
+
* age: new Control()
|
|
50
|
+
* })
|
|
51
|
+
*
|
|
52
|
+
* for (const c of group.controls) {
|
|
53
|
+
* console.log(getControlName(c))
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* // Output:
|
|
57
|
+
* // >> 'name'
|
|
58
|
+
* // >> 'age'
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
function getControlName(c) {
|
|
62
|
+
if (!c.parent) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
// NOTE: Typed as 'any' because using string for array index is not valid for
|
|
66
|
+
// array index type, but it works and we actually want the index as a string
|
|
67
|
+
// anyway.
|
|
68
|
+
var controls = c.parent.controls;
|
|
69
|
+
return Object.keys(controls).find(function (name) { return c === controls[name]; }) || null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Get the path to a control.
|
|
74
|
+
*
|
|
75
|
+
* The path is built by walking back the `parent` properties until `parent` is
|
|
76
|
+
* `null`.
|
|
77
|
+
*
|
|
78
|
+
* Example:
|
|
79
|
+
*
|
|
80
|
+
* ```js
|
|
81
|
+
* const group = new FormGroup({
|
|
82
|
+
* name: new FormControl(),
|
|
83
|
+
* address: new FormGroup({
|
|
84
|
+
* city: new FormControl(),
|
|
85
|
+
* state: new FormControl()
|
|
86
|
+
* })
|
|
87
|
+
* })
|
|
88
|
+
*
|
|
89
|
+
* const control = group.get('address.city')
|
|
90
|
+
* console.log(getControlPath(control))
|
|
91
|
+
*
|
|
92
|
+
* // Output:
|
|
93
|
+
* >> 'address.city'
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
function getControlPath(c, path) {
|
|
98
|
+
if (path === void 0) { path = ''; }
|
|
99
|
+
path = getControlName(c) + path;
|
|
100
|
+
if (c.parent && getControlName(c.parent)) {
|
|
101
|
+
path = '.' + path;
|
|
102
|
+
return getControlPath(c.parent, path);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return path;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Observe the value of a control.
|
|
111
|
+
*/
|
|
112
|
+
function observeControlValue(control) {
|
|
113
|
+
return rxjs.of(control)
|
|
114
|
+
.pipe(operators.switchMap(function (_control) { return _control.valueChanges
|
|
115
|
+
.pipe(operators.startWith(_control.value)); }));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Observe the changed state of the input value from the time this function is
|
|
120
|
+
* called.
|
|
121
|
+
*
|
|
122
|
+
* When this function is called the value is stored. Each time the control's
|
|
123
|
+
* value changes the value is compared with the initial value. Currenly the
|
|
124
|
+
* values are compared as stringified objects using `JSON.stringify`.
|
|
125
|
+
*
|
|
126
|
+
* TODO: Allow the value compare implementation to be optionally changed.
|
|
127
|
+
*/
|
|
128
|
+
function observeControlIsDifferent(control) {
|
|
129
|
+
var _initial = JSON.stringify(control.value);
|
|
130
|
+
return observeControlValue(control)
|
|
131
|
+
.pipe(operators.map(function (value) { return JSON.stringify(value) !== _initial; }), operators.distinctUntilChanged());
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Wait on the status of a form control to not be `'PENDING'`.
|
|
136
|
+
*
|
|
137
|
+
* NOTE: This function is mainly just a work around for an issue where
|
|
138
|
+
* `statusChanges` sometimes emits `'Pending'` without emitting another state
|
|
139
|
+
* when complete. Seems to happen with async validators if the value changes
|
|
140
|
+
* before completing, even if the validator completes(subscription `complete`
|
|
141
|
+
* if observable).
|
|
142
|
+
*/
|
|
143
|
+
function waitOnNonPendingStatus(control) {
|
|
144
|
+
return rxjs.merge(control.statusChanges, rxjs.interval(30).pipe(operators.mapTo(control), operators.map(function (c) { return c.status; })))
|
|
145
|
+
.pipe(operators.startWith(control.status))
|
|
146
|
+
.pipe(operators.filter(function (v) { return v !== 'PENDING'; }))
|
|
147
|
+
.pipe(operators.take(1));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Observe the status of a control using a work around for status not changing
|
|
152
|
+
* after pending.
|
|
153
|
+
*/
|
|
154
|
+
function observeControlStatus(control) {
|
|
155
|
+
return rxjs.of(control)
|
|
156
|
+
.pipe(operators.switchMap(function (_control) { return _control.statusChanges
|
|
157
|
+
.pipe(operators.startWith(_control.status))
|
|
158
|
+
.pipe(operators.switchMap(function (status) { return status === 'PENDING'
|
|
159
|
+
? waitOnNonPendingStatus(control)
|
|
160
|
+
.pipe(operators.startWith(status))
|
|
161
|
+
: rxjs.of(status); })); }));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Observe the valid state of a control.
|
|
166
|
+
*
|
|
167
|
+
* By default `waitOnPending` is false and the control states map to:
|
|
168
|
+
* 'VALID' => true
|
|
169
|
+
* 'INVALID' => false
|
|
170
|
+
* 'PENDING' => false
|
|
171
|
+
*
|
|
172
|
+
* If `waitOnPending` is true the valid result when 'PENDING' remains the same
|
|
173
|
+
* as it was before 'PENDING' until it is no longer 'PENDING'.
|
|
174
|
+
*/
|
|
175
|
+
function observeControlValid(control, waitOnPending) {
|
|
176
|
+
if (waitOnPending === void 0) { waitOnPending = false; }
|
|
177
|
+
if (waitOnPending) {
|
|
178
|
+
return observeControlStatus(control)
|
|
179
|
+
.pipe(operators.distinctUntilChanged())
|
|
180
|
+
.pipe(operators.startWith(undefined))
|
|
181
|
+
.pipe(operators.pairwise())
|
|
182
|
+
.pipe(operators.map(function (v) { return ({ previous: v[0], current: v[1] }); }))
|
|
183
|
+
.pipe(operators.map(function (v) { return v.current === 'PENDING' ? v.previous : v.current; }))
|
|
184
|
+
.pipe(operators.map(function (status) { return status === 'VALID'; }));
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
return observeControlStatus(control)
|
|
188
|
+
.pipe(operators.distinctUntilChanged())
|
|
189
|
+
.pipe(operators.map(function (status) { return status === 'VALID'; }));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Observe the value of a control with the previous.
|
|
195
|
+
*/
|
|
196
|
+
function observeControlValueChange(control) {
|
|
197
|
+
return observeControlValue(control)
|
|
198
|
+
.pipe(operators.startWith(undefined), operators.pairwise(), operators.map(function (v) { return ({ previous: v[0], current: v[1] }); }));
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Source: https://stackoverflow.com/a/59361497/7926298
|
|
202
|
+
function hasProperty(style, prop
|
|
203
|
+
// ): style is T & { [P in K]-?: Exclude<T[K], undefined> } {
|
|
204
|
+
) {
|
|
205
|
+
return style.hasOwnProperty(prop) && style[prop] !== undefined;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Check if control has a required control.
|
|
210
|
+
*
|
|
211
|
+
* ----------------------------------------------------------------------------
|
|
212
|
+
* NOTE: I am not sure about if this should be used or not.
|
|
213
|
+
*
|
|
214
|
+
* From my understanding this assumes that all the validators do not have some
|
|
215
|
+
* unexpected side-effect from being called like this. It could be argued that
|
|
216
|
+
* the validator is flawed and should be fixed if that is the case, but I am not
|
|
217
|
+
* convinced that is correct yet.
|
|
218
|
+
*
|
|
219
|
+
* An example that I think is valid for this argument: A FormControl configured
|
|
220
|
+
* to only check validators when a specific condition happens, because of a
|
|
221
|
+
* reason that it has to do a long process. In that situation should this
|
|
222
|
+
* function be smart enough to consider that or is it up to the validator to
|
|
223
|
+
* consider this function possibly being used.
|
|
224
|
+
*
|
|
225
|
+
* This seems to assume the required validator will always be a synchronous
|
|
226
|
+
* validator. That is a valid assumption if thinking about showing a required
|
|
227
|
+
* state in the UI, but a FormControl does not neccessarily have to be used in
|
|
228
|
+
* UI. So, I think it could be valid to have an async validator that uses the
|
|
229
|
+
* name `required` for it error, but I do not have a good example, so I could be
|
|
230
|
+
* wrong.
|
|
231
|
+
* ----------------------------------------------------------------------------
|
|
232
|
+
*
|
|
233
|
+
* Source: https://gist.github.com/jsdevtom/5589af349a395b37e699b67417ef025b
|
|
234
|
+
* @experimental
|
|
235
|
+
* @ignore
|
|
236
|
+
*/
|
|
237
|
+
function hasRequiredControl(abstractControl) {
|
|
238
|
+
if (abstractControl.validator) {
|
|
239
|
+
var validator = abstractControl.validator({});
|
|
240
|
+
if (validator && validator.required) {
|
|
241
|
+
return true;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
var _abstractControl = abstractControl;
|
|
245
|
+
if (hasProperty(_abstractControl, 'controls')) {
|
|
246
|
+
for (var controlName in _abstractControl.controls) {
|
|
247
|
+
if (_abstractControl.controls[controlName]) {
|
|
248
|
+
if (hasRequiredControl(_abstractControl.controls[controlName])) {
|
|
249
|
+
return true;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return false;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Source: https://github.com/angular/angular/blob/master/packages/forms/src/validators.ts#L16
|
|
258
|
+
function isEmptyInputValue(value) {
|
|
259
|
+
// we don't check for string here so it also works with arrays
|
|
260
|
+
return value == null || value.length === 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function mapEach(predicate) {
|
|
264
|
+
return function (source$) { return source$.pipe(operators.switchMap(function (v) { return rxjs.from(v).pipe(operators.map(function (m) { return predicate(m); }), operators.toArray()); })); };
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Like tap, but only calls predicate on first emission.
|
|
269
|
+
*/
|
|
270
|
+
function tapFirst(predicate) {
|
|
271
|
+
var _initialized = false;
|
|
272
|
+
return function (source$) { return source$.pipe(operators.tap(function (v) {
|
|
273
|
+
if (!_initialized) {
|
|
274
|
+
predicate(v);
|
|
275
|
+
_initialized = true;
|
|
276
|
+
}
|
|
277
|
+
})); };
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function leafChildRoute(activatedRoute) {
|
|
281
|
+
var route = activatedRoute;
|
|
282
|
+
while (route.firstChild) {
|
|
283
|
+
route = route.firstChild;
|
|
284
|
+
}
|
|
285
|
+
return route;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function hasRouteConfigDataProp(route, prop) {
|
|
289
|
+
return !!(route && route.routeConfig && route.routeConfig.data && route.routeConfig.data.hasOwnProperty(prop));
|
|
290
|
+
}
|
|
291
|
+
function hasRouteConfigResolveProp(route, prop) {
|
|
292
|
+
return !!(route && route.routeConfig && route.routeConfig.resolve && route.routeConfig.resolve.hasOwnProperty(prop));
|
|
293
|
+
}
|
|
294
|
+
function willHaveDataProp(route, prop) {
|
|
295
|
+
return hasRouteConfigDataProp(route, prop) || hasRouteConfigResolveProp(route, prop);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
function activatedRoutesWithDataProperty(prop, mustHaveDefined) {
|
|
299
|
+
if (mustHaveDefined === void 0) { mustHaveDefined = false; }
|
|
300
|
+
var _data = function (r) { return r.data.pipe(operators.map(function (_d) { return ({ route: r, data: _d }); })); };
|
|
301
|
+
return function (source$) { return source$.pipe(operators.map(function (route) { return leafChildRoute(route); }), operators.map(function (route) { return route.pathFromRoot; }), operators.switchMap(function (routes) { return rxjs.combineLatest(routes.map(function (r) { return _data(r); })); }), operators.map(function (v) { return v.filter(function (_v) { return _v.data.hasOwnProperty(prop); }); }), operators.map(function (v) { return mustHaveDefined
|
|
302
|
+
? v.filter(function (_v) { return willHaveDataProp(_v.route, prop); })
|
|
303
|
+
: v; })); };
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function routeSnapshotPathRelative(route) {
|
|
307
|
+
return route.url.reduce(function (path, urlSegment) { return path += '/' + urlSegment.path; }, '');
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function routeSnapshotPathFull(route) {
|
|
311
|
+
return route.pathFromRoot.reduce(function (path, _route) { return path += routeSnapshotPathRelative(_route); }, '');
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function isEmptyUrlRoute(activatedRoute) {
|
|
315
|
+
return activatedRoute.snapshot.url.length === 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
function calcPercentage(total, n) {
|
|
319
|
+
return total && total > 0 ? (n / total) * 100 : 0;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Polyfil for `Element.toggleAttribute`
|
|
324
|
+
*
|
|
325
|
+
* Toggles a value without a value. Useful for attributes, such as `disabled`,
|
|
326
|
+
* `readonly`, and `hidden`, that only needs to exist on the `Element` without
|
|
327
|
+
* requiring a value.
|
|
328
|
+
*
|
|
329
|
+
* Most browsers natively support this feature, but IE, which we still try to
|
|
330
|
+
* support for at least the main parts of the app, has "Unknown" support of this
|
|
331
|
+
* feature. Until IE support is dropped this polyfil should be used to toggle an
|
|
332
|
+
* attribute.
|
|
333
|
+
*
|
|
334
|
+
* Source:
|
|
335
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute#Polyfill
|
|
336
|
+
*/
|
|
337
|
+
function toggleAttribute(element, name, force) {
|
|
338
|
+
if (force !== void 0) {
|
|
339
|
+
force = !!force;
|
|
340
|
+
}
|
|
341
|
+
if (element.getAttribute(name) !== null) {
|
|
342
|
+
if (force) {
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
element.removeAttribute(name);
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
if (force === false) {
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
element.setAttribute(name, '');
|
|
353
|
+
return true;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
var phoneNumberMask = ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
|
|
358
|
+
|
|
359
|
+
function isNullOrUndefined(value) {
|
|
360
|
+
return value === undefined || value === null;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function loadStyle(content) {
|
|
364
|
+
return new Promise(function (resolve, reject) {
|
|
365
|
+
var s = document.createElement('style');
|
|
366
|
+
s.onload = function () { return resolve(s); };
|
|
367
|
+
s.onerror = function (e) {
|
|
368
|
+
document.head.removeChild(s);
|
|
369
|
+
reject(e);
|
|
370
|
+
};
|
|
371
|
+
s.innerHTML = content;
|
|
372
|
+
document.head.appendChild(s);
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
function loadStyleSheet(path) {
|
|
377
|
+
return new Promise(function (resolve, reject) {
|
|
378
|
+
var s = document.createElement('link');
|
|
379
|
+
s.onload = function () { return resolve(s); };
|
|
380
|
+
s.onerror = function (e) {
|
|
381
|
+
document.head.removeChild(s);
|
|
382
|
+
reject(e);
|
|
383
|
+
};
|
|
384
|
+
s.rel = 'stylesheet';
|
|
385
|
+
s.href = path;
|
|
386
|
+
document.head.appendChild(s);
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/*! *****************************************************************************
|
|
391
|
+
Copyright (c) Microsoft Corporation.
|
|
392
|
+
|
|
393
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
394
|
+
purpose with or without fee is hereby granted.
|
|
395
|
+
|
|
396
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
397
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
398
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
399
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
400
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
401
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
402
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
403
|
+
***************************************************************************** */
|
|
404
|
+
/* global Reflect, Promise */
|
|
405
|
+
var extendStatics = function (d, b) {
|
|
406
|
+
extendStatics = Object.setPrototypeOf ||
|
|
407
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
408
|
+
function (d, b) { for (var p in b)
|
|
409
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
410
|
+
d[p] = b[p]; };
|
|
411
|
+
return extendStatics(d, b);
|
|
412
|
+
};
|
|
413
|
+
function __extends(d, b) {
|
|
414
|
+
if (typeof b !== "function" && b !== null)
|
|
415
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
416
|
+
extendStatics(d, b);
|
|
417
|
+
function __() { this.constructor = d; }
|
|
418
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
419
|
+
}
|
|
420
|
+
var __assign = function () {
|
|
421
|
+
__assign = Object.assign || function __assign(t) {
|
|
422
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
423
|
+
s = arguments[i];
|
|
424
|
+
for (var p in s)
|
|
425
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
426
|
+
t[p] = s[p];
|
|
427
|
+
}
|
|
428
|
+
return t;
|
|
429
|
+
};
|
|
430
|
+
return __assign.apply(this, arguments);
|
|
431
|
+
};
|
|
432
|
+
function __rest(s, e) {
|
|
433
|
+
var t = {};
|
|
434
|
+
for (var p in s)
|
|
435
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
436
|
+
t[p] = s[p];
|
|
437
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
438
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
439
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
440
|
+
t[p[i]] = s[p[i]];
|
|
441
|
+
}
|
|
442
|
+
return t;
|
|
443
|
+
}
|
|
444
|
+
function __decorate(decorators, target, key, desc) {
|
|
445
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
446
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
447
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
448
|
+
else
|
|
449
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
450
|
+
if (d = decorators[i])
|
|
451
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
452
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
453
|
+
}
|
|
454
|
+
function __param(paramIndex, decorator) {
|
|
455
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
456
|
+
}
|
|
457
|
+
function __metadata(metadataKey, metadataValue) {
|
|
458
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
459
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
460
|
+
}
|
|
461
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
462
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
463
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
464
|
+
function fulfilled(value) { try {
|
|
465
|
+
step(generator.next(value));
|
|
466
|
+
}
|
|
467
|
+
catch (e) {
|
|
468
|
+
reject(e);
|
|
469
|
+
} }
|
|
470
|
+
function rejected(value) { try {
|
|
471
|
+
step(generator["throw"](value));
|
|
472
|
+
}
|
|
473
|
+
catch (e) {
|
|
474
|
+
reject(e);
|
|
475
|
+
} }
|
|
476
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
477
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
function __generator(thisArg, body) {
|
|
481
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
482
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
483
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
484
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
485
|
+
function step(op) {
|
|
486
|
+
if (f)
|
|
487
|
+
throw new TypeError("Generator is already executing.");
|
|
488
|
+
while (_)
|
|
489
|
+
try {
|
|
490
|
+
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)
|
|
491
|
+
return t;
|
|
492
|
+
if (y = 0, t)
|
|
493
|
+
op = [op[0] & 2, t.value];
|
|
494
|
+
switch (op[0]) {
|
|
495
|
+
case 0:
|
|
496
|
+
case 1:
|
|
497
|
+
t = op;
|
|
498
|
+
break;
|
|
499
|
+
case 4:
|
|
500
|
+
_.label++;
|
|
501
|
+
return { value: op[1], done: false };
|
|
502
|
+
case 5:
|
|
503
|
+
_.label++;
|
|
504
|
+
y = op[1];
|
|
505
|
+
op = [0];
|
|
506
|
+
continue;
|
|
507
|
+
case 7:
|
|
508
|
+
op = _.ops.pop();
|
|
509
|
+
_.trys.pop();
|
|
510
|
+
continue;
|
|
511
|
+
default:
|
|
512
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
513
|
+
_ = 0;
|
|
514
|
+
continue;
|
|
515
|
+
}
|
|
516
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
517
|
+
_.label = op[1];
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
521
|
+
_.label = t[1];
|
|
522
|
+
t = op;
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
if (t && _.label < t[2]) {
|
|
526
|
+
_.label = t[2];
|
|
527
|
+
_.ops.push(op);
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
if (t[2])
|
|
531
|
+
_.ops.pop();
|
|
532
|
+
_.trys.pop();
|
|
533
|
+
continue;
|
|
534
|
+
}
|
|
535
|
+
op = body.call(thisArg, _);
|
|
536
|
+
}
|
|
537
|
+
catch (e) {
|
|
538
|
+
op = [6, e];
|
|
539
|
+
y = 0;
|
|
540
|
+
}
|
|
541
|
+
finally {
|
|
542
|
+
f = t = 0;
|
|
543
|
+
}
|
|
544
|
+
if (op[0] & 5)
|
|
545
|
+
throw op[1];
|
|
546
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
550
|
+
if (k2 === undefined)
|
|
551
|
+
k2 = k;
|
|
552
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
553
|
+
}) : (function (o, m, k, k2) {
|
|
554
|
+
if (k2 === undefined)
|
|
555
|
+
k2 = k;
|
|
556
|
+
o[k2] = m[k];
|
|
557
|
+
});
|
|
558
|
+
function __exportStar(m, o) {
|
|
559
|
+
for (var p in m)
|
|
560
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
561
|
+
__createBinding(o, m, p);
|
|
562
|
+
}
|
|
563
|
+
function __values(o) {
|
|
564
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
565
|
+
if (m)
|
|
566
|
+
return m.call(o);
|
|
567
|
+
if (o && typeof o.length === "number")
|
|
568
|
+
return {
|
|
569
|
+
next: function () {
|
|
570
|
+
if (o && i >= o.length)
|
|
571
|
+
o = void 0;
|
|
572
|
+
return { value: o && o[i++], done: !o };
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
576
|
+
}
|
|
577
|
+
function __read(o, n) {
|
|
578
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
579
|
+
if (!m)
|
|
580
|
+
return o;
|
|
581
|
+
var i = m.call(o), r, ar = [], e;
|
|
582
|
+
try {
|
|
583
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
584
|
+
ar.push(r.value);
|
|
585
|
+
}
|
|
586
|
+
catch (error) {
|
|
587
|
+
e = { error: error };
|
|
588
|
+
}
|
|
589
|
+
finally {
|
|
590
|
+
try {
|
|
591
|
+
if (r && !r.done && (m = i["return"]))
|
|
592
|
+
m.call(i);
|
|
593
|
+
}
|
|
594
|
+
finally {
|
|
595
|
+
if (e)
|
|
596
|
+
throw e.error;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return ar;
|
|
600
|
+
}
|
|
601
|
+
/** @deprecated */
|
|
602
|
+
function __spread() {
|
|
603
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
604
|
+
ar = ar.concat(__read(arguments[i]));
|
|
605
|
+
return ar;
|
|
606
|
+
}
|
|
607
|
+
/** @deprecated */
|
|
608
|
+
function __spreadArrays() {
|
|
609
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
610
|
+
s += arguments[i].length;
|
|
611
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
612
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
613
|
+
r[k] = a[j];
|
|
614
|
+
return r;
|
|
615
|
+
}
|
|
616
|
+
function __spreadArray(to, from, pack) {
|
|
617
|
+
if (pack || arguments.length === 2)
|
|
618
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
619
|
+
if (ar || !(i in from)) {
|
|
620
|
+
if (!ar)
|
|
621
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
622
|
+
ar[i] = from[i];
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return to.concat(ar || from);
|
|
626
|
+
}
|
|
627
|
+
function __await(v) {
|
|
628
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
629
|
+
}
|
|
630
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
631
|
+
if (!Symbol.asyncIterator)
|
|
632
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
633
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
634
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
635
|
+
function verb(n) { if (g[n])
|
|
636
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
637
|
+
function resume(n, v) { try {
|
|
638
|
+
step(g[n](v));
|
|
639
|
+
}
|
|
640
|
+
catch (e) {
|
|
641
|
+
settle(q[0][3], e);
|
|
642
|
+
} }
|
|
643
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
644
|
+
function fulfill(value) { resume("next", value); }
|
|
645
|
+
function reject(value) { resume("throw", value); }
|
|
646
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
647
|
+
resume(q[0][0], q[0][1]); }
|
|
648
|
+
}
|
|
649
|
+
function __asyncDelegator(o) {
|
|
650
|
+
var i, p;
|
|
651
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
652
|
+
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; }
|
|
653
|
+
}
|
|
654
|
+
function __asyncValues(o) {
|
|
655
|
+
if (!Symbol.asyncIterator)
|
|
656
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
657
|
+
var m = o[Symbol.asyncIterator], i;
|
|
658
|
+
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);
|
|
659
|
+
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); }); }; }
|
|
660
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
661
|
+
}
|
|
662
|
+
function __makeTemplateObject(cooked, raw) {
|
|
663
|
+
if (Object.defineProperty) {
|
|
664
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
665
|
+
}
|
|
666
|
+
else {
|
|
667
|
+
cooked.raw = raw;
|
|
668
|
+
}
|
|
669
|
+
return cooked;
|
|
670
|
+
}
|
|
671
|
+
;
|
|
672
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
673
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
674
|
+
}) : function (o, v) {
|
|
675
|
+
o["default"] = v;
|
|
676
|
+
};
|
|
677
|
+
function __importStar(mod) {
|
|
678
|
+
if (mod && mod.__esModule)
|
|
679
|
+
return mod;
|
|
680
|
+
var result = {};
|
|
681
|
+
if (mod != null)
|
|
682
|
+
for (var k in mod)
|
|
683
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
684
|
+
__createBinding(result, mod, k);
|
|
685
|
+
__setModuleDefault(result, mod);
|
|
686
|
+
return result;
|
|
687
|
+
}
|
|
688
|
+
function __importDefault(mod) {
|
|
689
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
690
|
+
}
|
|
691
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
692
|
+
if (kind === "a" && !f)
|
|
693
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
694
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
695
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
696
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
697
|
+
}
|
|
698
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
699
|
+
if (kind === "m")
|
|
700
|
+
throw new TypeError("Private method is not writable");
|
|
701
|
+
if (kind === "a" && !f)
|
|
702
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
703
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
704
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
705
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/** Returns object without property */
|
|
709
|
+
function withoutProperty(obj, propName) {
|
|
710
|
+
var _a = obj, _b = propName, _ = _a[_b], without = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
|
|
711
|
+
return without;
|
|
712
|
+
}
|
|
713
|
+
/** Returns object without properties */
|
|
714
|
+
function withoutProperties(obj, propNames) {
|
|
715
|
+
var e_1, _c;
|
|
716
|
+
var without = obj;
|
|
717
|
+
try {
|
|
718
|
+
for (var propNames_1 = __values(propNames), propNames_1_1 = propNames_1.next(); !propNames_1_1.done; propNames_1_1 = propNames_1.next()) {
|
|
719
|
+
var propName = propNames_1_1.value;
|
|
720
|
+
without = withoutProperty(without, propName);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
724
|
+
finally {
|
|
725
|
+
try {
|
|
726
|
+
if (propNames_1_1 && !propNames_1_1.done && (_c = propNames_1.return)) _c.call(propNames_1);
|
|
727
|
+
}
|
|
728
|
+
finally { if (e_1) throw e_1.error; }
|
|
729
|
+
}
|
|
730
|
+
return without;
|
|
731
|
+
}
|
|
732
|
+
/** Delete property of object */
|
|
733
|
+
function deleteProperty(obj, propName) {
|
|
734
|
+
if (obj.hasOwnProperty(propName)) {
|
|
735
|
+
delete obj[propName];
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
/** Delete properties of object */
|
|
739
|
+
function deleteProperties(obj, propNames) {
|
|
740
|
+
var e_2, _c;
|
|
741
|
+
try {
|
|
742
|
+
for (var propNames_2 = __values(propNames), propNames_2_1 = propNames_2.next(); !propNames_2_1.done; propNames_2_1 = propNames_2.next()) {
|
|
743
|
+
var propName = propNames_2_1.value;
|
|
744
|
+
deleteProperty(obj, propName);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
748
|
+
finally {
|
|
749
|
+
try {
|
|
750
|
+
if (propNames_2_1 && !propNames_2_1.done && (_c = propNames_2.return)) _c.call(propNames_2);
|
|
751
|
+
}
|
|
752
|
+
finally { if (e_2) throw e_2.error; }
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// import { Buffer } from 'buffer/'
|
|
757
|
+
var Buffer = require('buffer/').Buffer;
|
|
758
|
+
function readFileAsync(file) {
|
|
759
|
+
return new Promise(function (resolve, reject) {
|
|
760
|
+
var reader = new FileReader();
|
|
761
|
+
reader.onload = function () {
|
|
762
|
+
resolve(reader.result);
|
|
763
|
+
};
|
|
764
|
+
reader.readAsArrayBuffer(file);
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
function readFileAsDataUrlAsync(file) {
|
|
768
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
769
|
+
return __generator(this, function (_a) {
|
|
770
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
771
|
+
var reader = new FileReader();
|
|
772
|
+
reader.onload = function () {
|
|
773
|
+
resolve(reader.result);
|
|
774
|
+
};
|
|
775
|
+
reader.readAsDataURL(file);
|
|
776
|
+
})];
|
|
777
|
+
});
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
function fileBufferToBlob(fileBuffer, defaultMime) {
|
|
781
|
+
if (defaultMime === void 0) { defaultMime = 'application/octet-stream'; }
|
|
782
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
783
|
+
var fType, mime, blob;
|
|
784
|
+
return __generator(this, function (_a) {
|
|
785
|
+
fType = fileType__default['default'](fileBuffer);
|
|
786
|
+
mime = (fType) ? fType.mime : defaultMime;
|
|
787
|
+
blob = new Blob([fileBuffer], { type: mime });
|
|
788
|
+
return [2 /*return*/, blob];
|
|
789
|
+
});
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
function fileBufferToObjectUrl(fileBuffer, defaultMime) {
|
|
793
|
+
if (defaultMime === void 0) { defaultMime = 'application/octet-stream'; }
|
|
794
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
795
|
+
var file, fileURL;
|
|
796
|
+
return __generator(this, function (_a) {
|
|
797
|
+
switch (_a.label) {
|
|
798
|
+
case 0: return [4 /*yield*/, fileBufferToBlob(fileBuffer, defaultMime)];
|
|
799
|
+
case 1:
|
|
800
|
+
file = _a.sent();
|
|
801
|
+
fileURL = URL.createObjectURL(file);
|
|
802
|
+
return [2 /*return*/, fileURL];
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
function fileDataFromBuffer(fileBuffer, defaultMime) {
|
|
808
|
+
if (defaultMime === void 0) { defaultMime = 'application/octet-stream'; }
|
|
809
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
810
|
+
var _fileBuffer, fType, ext, mime, blob, fileData;
|
|
811
|
+
return __generator(this, function (_a) {
|
|
812
|
+
_fileBuffer = Buffer.from(fileBuffer);
|
|
813
|
+
fType = fileType__default['default'](_fileBuffer);
|
|
814
|
+
ext = fType && fType.ext || undefined;
|
|
815
|
+
mime = fType ? fType.mime : defaultMime;
|
|
816
|
+
blob = new Blob([_fileBuffer], { type: mime });
|
|
817
|
+
fileData = { ext: ext, mime: mime, blob: blob };
|
|
818
|
+
return [2 /*return*/, fileData];
|
|
819
|
+
});
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
function openBlob(blob, target, filename) {
|
|
823
|
+
// NOTE: IE and MSEdge do not allow Blob resources as a source for
|
|
824
|
+
// tabs or iframes. msSaveOrOpenBlob is used as a workaround. I
|
|
825
|
+
// haven't been able to find a way to just open the Blob file in
|
|
826
|
+
// another tab yet for IE or MSEdge.
|
|
827
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
828
|
+
window.navigator.msSaveOrOpenBlob(blob, filename);
|
|
829
|
+
}
|
|
830
|
+
else {
|
|
831
|
+
var url = URL.createObjectURL(blob);
|
|
832
|
+
var win = window.open(url, target);
|
|
833
|
+
// TODO: Consider if always setting opener to null is to restrictive
|
|
834
|
+
// if (win && target && target.toLowerCase() === '_blank') {
|
|
835
|
+
// win.opener = null
|
|
836
|
+
// }
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
function notNullOrUndefined(value) {
|
|
841
|
+
return value !== null && value !== undefined;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
function waitOnConditionAsync(condition, timeoutDuration, throwOnTimeout) {
|
|
845
|
+
if (timeoutDuration === void 0) { timeoutDuration = -1; }
|
|
846
|
+
if (throwOnTimeout === void 0) { throwOnTimeout = true; }
|
|
847
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
848
|
+
var timeStart, _waitFunc;
|
|
849
|
+
return __generator(this, function (_a) {
|
|
850
|
+
timeStart = new Date();
|
|
851
|
+
_waitFunc = function (callback) {
|
|
852
|
+
var conditionSuccess = false;
|
|
853
|
+
if (condition()) {
|
|
854
|
+
callback(true);
|
|
855
|
+
conditionSuccess = true;
|
|
856
|
+
}
|
|
857
|
+
if (!conditionSuccess) {
|
|
858
|
+
var timeNow = new Date();
|
|
859
|
+
var duration = timeNow - timeStart;
|
|
860
|
+
if (timeoutDuration > -1 && duration > timeoutDuration) {
|
|
861
|
+
if (throwOnTimeout) {
|
|
862
|
+
throw new Error('Timed out waiting on condition.');
|
|
863
|
+
}
|
|
864
|
+
else {
|
|
865
|
+
callback(false);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
setTimeout(function () { _waitFunc(callback); }, 30);
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
872
|
+
var fn = function (b) {
|
|
873
|
+
resolve(b);
|
|
874
|
+
};
|
|
875
|
+
_waitFunc(fn);
|
|
876
|
+
})];
|
|
877
|
+
});
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
var IntervalTimer = /** @class */ (function () {
|
|
882
|
+
function IntervalTimer(_callback, intervalTime, startOnInit) {
|
|
883
|
+
if (startOnInit === void 0) { startOnInit = true; }
|
|
884
|
+
this._callback = _callback;
|
|
885
|
+
this._intervalId = null;
|
|
886
|
+
this._intervalTime = intervalTime;
|
|
887
|
+
if (startOnInit) {
|
|
888
|
+
this.start();
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
Object.defineProperty(IntervalTimer.prototype, "intervalTime", {
|
|
892
|
+
set: function (time) {
|
|
893
|
+
this._intervalTime = time;
|
|
894
|
+
},
|
|
895
|
+
enumerable: false,
|
|
896
|
+
configurable: true
|
|
897
|
+
});
|
|
898
|
+
IntervalTimer.prototype.start = function () {
|
|
899
|
+
var _this = this;
|
|
900
|
+
if (this._intervalId === null) {
|
|
901
|
+
this._intervalId = window.setInterval(function () {
|
|
902
|
+
_this._callback();
|
|
903
|
+
}, this._intervalTime);
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
IntervalTimer.prototype.stop = function () {
|
|
907
|
+
if (this._intervalId !== null) {
|
|
908
|
+
clearInterval(this._intervalId);
|
|
909
|
+
this._intervalId = null;
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
IntervalTimer.prototype.reset = function (newIntervalTime) {
|
|
913
|
+
if (newIntervalTime) {
|
|
914
|
+
this.intervalTime = newIntervalTime;
|
|
915
|
+
}
|
|
916
|
+
this.stop();
|
|
917
|
+
this.start();
|
|
918
|
+
};
|
|
919
|
+
return IntervalTimer;
|
|
920
|
+
}());
|
|
921
|
+
// tslint:disable:no-inferrable-types
|
|
922
|
+
var PollingTickerOptions = /** @class */ (function () {
|
|
923
|
+
function PollingTickerOptions() {
|
|
924
|
+
this.emitOnInit = true;
|
|
925
|
+
}
|
|
926
|
+
return PollingTickerOptions;
|
|
927
|
+
}());
|
|
928
|
+
// tslint:enable:no-inferrable-types
|
|
929
|
+
// TODO: Simplify complexity.
|
|
930
|
+
/**
|
|
931
|
+
* Call an action and emits the result to its subscriber on an interval or when
|
|
932
|
+
* ticker emits. When the ticker emits, the interval time will reset.
|
|
933
|
+
*
|
|
934
|
+
* When subscribed to, the action will be called and emitted right away unless
|
|
935
|
+
* the `emitOnInit` option is set to false.
|
|
936
|
+
*/
|
|
937
|
+
function pollingTicker(action, pollingInterval, ticker, options) {
|
|
938
|
+
return new rxjs.Observable(function (subscriber) {
|
|
939
|
+
var _opts = Object.assign(Object.assign({}, (new PollingTickerOptions())), (options || {}));
|
|
940
|
+
var timer = null;
|
|
941
|
+
var actionSub = null;
|
|
942
|
+
var tickerSub = null;
|
|
943
|
+
try {
|
|
944
|
+
var handleAction_1 = function () {
|
|
945
|
+
if (timer) {
|
|
946
|
+
timer.stop();
|
|
947
|
+
}
|
|
948
|
+
var actionResult = action();
|
|
949
|
+
if (rxjs.isObservable(actionResult)) {
|
|
950
|
+
if (actionSub) {
|
|
951
|
+
actionSub.unsubscribe();
|
|
952
|
+
}
|
|
953
|
+
actionSub = actionResult.subscribe(function (v) {
|
|
954
|
+
subscriber.next(v);
|
|
955
|
+
if (timer) {
|
|
956
|
+
timer.reset();
|
|
957
|
+
}
|
|
958
|
+
}, function (err) { subscriber.error(err); }, function () {
|
|
959
|
+
actionSub = null;
|
|
960
|
+
if (timer) {
|
|
961
|
+
timer.start();
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
else {
|
|
966
|
+
subscriber.next(actionResult);
|
|
967
|
+
}
|
|
968
|
+
if (timer) {
|
|
969
|
+
timer.start();
|
|
970
|
+
}
|
|
971
|
+
};
|
|
972
|
+
if (_opts.emitOnInit) {
|
|
973
|
+
handleAction_1();
|
|
974
|
+
}
|
|
975
|
+
if (pollingInterval) {
|
|
976
|
+
timer = new IntervalTimer(function () {
|
|
977
|
+
handleAction_1();
|
|
978
|
+
}, pollingInterval);
|
|
979
|
+
}
|
|
980
|
+
if (ticker) {
|
|
981
|
+
tickerSub = ticker.subscribe(function (newPollingInterval) {
|
|
982
|
+
if (newPollingInterval && timer) {
|
|
983
|
+
timer.stop();
|
|
984
|
+
if (newPollingInterval) {
|
|
985
|
+
timer.intervalTime = newPollingInterval;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
handleAction_1();
|
|
989
|
+
if (timer) {
|
|
990
|
+
timer.reset();
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
catch (err) {
|
|
996
|
+
subscriber.error(err);
|
|
997
|
+
}
|
|
998
|
+
return function () {
|
|
999
|
+
if (timer) {
|
|
1000
|
+
timer.stop();
|
|
1001
|
+
}
|
|
1002
|
+
if (actionSub) {
|
|
1003
|
+
actionSub.unsubscribe();
|
|
1004
|
+
}
|
|
1005
|
+
if (tickerSub) {
|
|
1006
|
+
tickerSub.unsubscribe();
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
var Refreshable = /** @class */ (function () {
|
|
1013
|
+
function Refreshable(action, pollingInterval) {
|
|
1014
|
+
var _this = this;
|
|
1015
|
+
this._initialized = false;
|
|
1016
|
+
this._pollingInterval = new rxjs.BehaviorSubject(0);
|
|
1017
|
+
this._ticker = new rxjs.Subject();
|
|
1018
|
+
this._pending = new rxjs.BehaviorSubject(false);
|
|
1019
|
+
/**
|
|
1020
|
+
* Intercepts the action call to monitor pending state
|
|
1021
|
+
*/
|
|
1022
|
+
this._actionHandler = function (action) {
|
|
1023
|
+
return function () {
|
|
1024
|
+
_this._pending.next(true);
|
|
1025
|
+
var actionResult = action();
|
|
1026
|
+
if (rxjs.isObservable(actionResult)) {
|
|
1027
|
+
return actionResult.pipe(operators.tap(function () { _this._pending.next(false); }));
|
|
1028
|
+
}
|
|
1029
|
+
else {
|
|
1030
|
+
_this._pending.next(true);
|
|
1031
|
+
return actionResult;
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
if (pollingInterval !== null && pollingInterval !== undefined) {
|
|
1036
|
+
this._pollingInterval.next(pollingInterval);
|
|
1037
|
+
}
|
|
1038
|
+
this.pending$ = this._pending.asObservable()
|
|
1039
|
+
.pipe(operators.distinctUntilChanged(), operators.shareReplay(1));
|
|
1040
|
+
this.data$ = pollingTicker(this._actionHandler(action), pollingInterval, this._ticker)
|
|
1041
|
+
.pipe(tapFirst(function () { return _this._initialized = true; }), operators.publishReplay(), operators.refCount());
|
|
1042
|
+
}
|
|
1043
|
+
Object.defineProperty(Refreshable.prototype, "initialized", {
|
|
1044
|
+
get: function () { return this._initialized; },
|
|
1045
|
+
enumerable: false,
|
|
1046
|
+
configurable: true
|
|
1047
|
+
});
|
|
1048
|
+
/**
|
|
1049
|
+
* Selects the data observable
|
|
1050
|
+
*/
|
|
1051
|
+
Refreshable.prototype.select = function (refresh) {
|
|
1052
|
+
if (refresh && this._initialized && !this._pending.value) {
|
|
1053
|
+
this._ticker.next();
|
|
1054
|
+
}
|
|
1055
|
+
return this.data$;
|
|
1056
|
+
};
|
|
1057
|
+
Refreshable.prototype.refresh = function () {
|
|
1058
|
+
var _this = this;
|
|
1059
|
+
var result$;
|
|
1060
|
+
if (this._initialized) {
|
|
1061
|
+
// TODO: Add a test and maybe refactor this to be more clear. It worked in
|
|
1062
|
+
// my manual tests, but there may be some situations where this doesn't
|
|
1063
|
+
// work, since the ticker isn't the only way to trigger a refresh. Right
|
|
1064
|
+
// now it should be fine, but if an async operator is added to be run
|
|
1065
|
+
// each time `data$` is subscribed to, then this could fail if the data
|
|
1066
|
+
// emits one extra time before the ticker is triggered.
|
|
1067
|
+
var _polled_1 = false;
|
|
1068
|
+
result$ = this.data$
|
|
1069
|
+
.pipe(operators.tap(function (_) { return !_polled_1 && (_polled_1 = true) && _this._ticker.next(); }), operators.skip(1));
|
|
1070
|
+
}
|
|
1071
|
+
else {
|
|
1072
|
+
result$ = this.data$;
|
|
1073
|
+
}
|
|
1074
|
+
return result$
|
|
1075
|
+
.pipe(operators.take(1), operators.mapTo(undefined));
|
|
1076
|
+
};
|
|
1077
|
+
return Refreshable;
|
|
1078
|
+
}());
|
|
1079
|
+
|
|
1080
|
+
function wrapIntoObservable(value) {
|
|
1081
|
+
if (rxjs.isObservable(value)) {
|
|
1082
|
+
return value;
|
|
1083
|
+
}
|
|
1084
|
+
return rxjs.from(Promise.resolve(value));
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Explaination:
|
|
1089
|
+
* ^ - beginning of the string
|
|
1090
|
+
* (?: - beginning of a non-captured group
|
|
1091
|
+
* [a-z]+ - any character of 'a' to 'z' 1 or more times
|
|
1092
|
+
* : - string (colon character)
|
|
1093
|
+
* )? - end of the non-captured group. Group appearing 0 or 1 times
|
|
1094
|
+
* // - string (two forward slash characters)
|
|
1095
|
+
* 'i' - non case-sensitive flag
|
|
1096
|
+
*
|
|
1097
|
+
* source: https://stackoverflow.com/a/19709846
|
|
1098
|
+
*/
|
|
1099
|
+
var IS_ABSOLUTE_URL_REGEX = new RegExp('^(?:[a-z]+:)?//', 'i');
|
|
1100
|
+
function isAbsoluteUrl(url) {
|
|
1101
|
+
return IS_ABSOLUTE_URL_REGEX.test(url);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* This is just for helping debug observables that aren't being unsubscribed
|
|
1106
|
+
* from correctly.
|
|
1107
|
+
*/
|
|
1108
|
+
function subscriberCount(sourceObservable, description) {
|
|
1109
|
+
var counter = 0;
|
|
1110
|
+
return new rxjs.Observable(function (subscriber) {
|
|
1111
|
+
var subscription = sourceObservable.subscribe(subscriber);
|
|
1112
|
+
counter++;
|
|
1113
|
+
console.log(description + " subscriptions: " + counter);
|
|
1114
|
+
return function () {
|
|
1115
|
+
subscription.unsubscribe();
|
|
1116
|
+
counter--;
|
|
1117
|
+
console.log(description + " subscriptions: " + counter);
|
|
1118
|
+
};
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
function observeQueryList(queryList, emitCurrentValue) {
|
|
1123
|
+
if (emitCurrentValue === void 0) { emitCurrentValue = true; }
|
|
1124
|
+
return queryList.changes.pipe(operators.startWith(queryList), operators.map(function (v) { return v.toArray(); }));
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
function createPadding(len, chars) {
|
|
1128
|
+
// if (chars.length <= len) {
|
|
1129
|
+
// return chars
|
|
1130
|
+
// }
|
|
1131
|
+
if (chars.length === 0) {
|
|
1132
|
+
throw Error("Padding characters must be at least 1 char length.");
|
|
1133
|
+
}
|
|
1134
|
+
var str = chars;
|
|
1135
|
+
while (str.length < len) {
|
|
1136
|
+
str += chars;
|
|
1137
|
+
}
|
|
1138
|
+
if (str.length > len) {
|
|
1139
|
+
str = str.slice(0, len);
|
|
1140
|
+
}
|
|
1141
|
+
return str;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
function padEnd(stringToPad, paddingLength, paddingChars) {
|
|
1145
|
+
if (paddingLength === void 0) { paddingLength = 0; }
|
|
1146
|
+
if (paddingChars === void 0) { paddingChars = ' '; }
|
|
1147
|
+
var strLength = paddingLength ? stringToPad.length : 0;
|
|
1148
|
+
if (!paddingLength || strLength >= paddingLength) {
|
|
1149
|
+
return stringToPad;
|
|
1150
|
+
}
|
|
1151
|
+
return stringToPad + createPadding(paddingLength - strLength, paddingChars);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
function padStart(stringToPad, paddingLength, paddingChars) {
|
|
1155
|
+
if (paddingLength === void 0) { paddingLength = 0; }
|
|
1156
|
+
if (paddingChars === void 0) { paddingChars = ' '; }
|
|
1157
|
+
var strLength = paddingLength ? stringToPad.length : 0;
|
|
1158
|
+
if (!paddingLength || strLength >= paddingLength) {
|
|
1159
|
+
return stringToPad;
|
|
1160
|
+
}
|
|
1161
|
+
return createPadding(paddingLength - strLength, paddingChars) + stringToPad;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
function isNumeric(value) {
|
|
1165
|
+
return !isNaN(Number(value) - parseFloat(value));
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Returns the number of fractional digits.
|
|
1170
|
+
*
|
|
1171
|
+
* NOTE: This is intended for input validation, so trailing 0's will be included
|
|
1172
|
+
* in the total. Also, localization is not considered, so '.' is assumed to be
|
|
1173
|
+
* the fractional separator.
|
|
1174
|
+
*/
|
|
1175
|
+
function fractionalDigitsCount(value) {
|
|
1176
|
+
if (!isNumeric(value)) {
|
|
1177
|
+
return null;
|
|
1178
|
+
}
|
|
1179
|
+
var a = value.split('.');
|
|
1180
|
+
if (a.length !== 2) {
|
|
1181
|
+
return null;
|
|
1182
|
+
}
|
|
1183
|
+
return a[1].length;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Generated bundle index. Do not edit.
|
|
1188
|
+
*/
|
|
1189
|
+
|
|
1190
|
+
exports.PollingTickerOptions = PollingTickerOptions;
|
|
1191
|
+
exports.Refreshable = Refreshable;
|
|
1192
|
+
exports.activatedRoutesWithDataProperty = activatedRoutesWithDataProperty;
|
|
1193
|
+
exports.calcPercentage = calcPercentage;
|
|
1194
|
+
exports.createPadding = createPadding;
|
|
1195
|
+
exports.deleteProperties = deleteProperties;
|
|
1196
|
+
exports.deleteProperty = deleteProperty;
|
|
1197
|
+
exports.fileBufferToBlob = fileBufferToBlob;
|
|
1198
|
+
exports.fileBufferToObjectUrl = fileBufferToObjectUrl;
|
|
1199
|
+
exports.fileDataFromBuffer = fileDataFromBuffer;
|
|
1200
|
+
exports.fractionalDigitsCount = fractionalDigitsCount;
|
|
1201
|
+
exports.getAttribute = getAttribute;
|
|
1202
|
+
exports.getClosestWidgetCdkDrag = getClosestWidgetCdkDrag;
|
|
1203
|
+
exports.getControlName = getControlName;
|
|
1204
|
+
exports.getControlPath = getControlPath;
|
|
1205
|
+
exports.hasAttribute = hasAttribute;
|
|
1206
|
+
exports.hasProperty = hasProperty;
|
|
1207
|
+
exports.hasRequiredControl = hasRequiredControl;
|
|
1208
|
+
exports.isAbsoluteUrl = isAbsoluteUrl;
|
|
1209
|
+
exports.isEmptyInputValue = isEmptyInputValue;
|
|
1210
|
+
exports.isEmptyUrlRoute = isEmptyUrlRoute;
|
|
1211
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
1212
|
+
exports.isNumeric = isNumeric;
|
|
1213
|
+
exports.leafChildRoute = leafChildRoute;
|
|
1214
|
+
exports.loadStyle = loadStyle;
|
|
1215
|
+
exports.loadStyleSheet = loadStyleSheet;
|
|
1216
|
+
exports.mapEach = mapEach;
|
|
1217
|
+
exports.notNullOrUndefined = notNullOrUndefined;
|
|
1218
|
+
exports.observeControlIsDifferent = observeControlIsDifferent;
|
|
1219
|
+
exports.observeControlStatus = observeControlStatus;
|
|
1220
|
+
exports.observeControlValid = observeControlValid;
|
|
1221
|
+
exports.observeControlValue = observeControlValue;
|
|
1222
|
+
exports.observeControlValueChange = observeControlValueChange;
|
|
1223
|
+
exports.observeQueryList = observeQueryList;
|
|
1224
|
+
exports.openBlob = openBlob;
|
|
1225
|
+
exports.padEnd = padEnd;
|
|
1226
|
+
exports.padStart = padStart;
|
|
1227
|
+
exports.phoneNumberMask = phoneNumberMask;
|
|
1228
|
+
exports.pollingTicker = pollingTicker;
|
|
1229
|
+
exports.readFileAsDataUrlAsync = readFileAsDataUrlAsync;
|
|
1230
|
+
exports.readFileAsync = readFileAsync;
|
|
1231
|
+
exports.routeSnapshotPathFull = routeSnapshotPathFull;
|
|
1232
|
+
exports.routeSnapshotPathRelative = routeSnapshotPathRelative;
|
|
1233
|
+
exports.tapFirst = tapFirst;
|
|
1234
|
+
exports.toggleAttribute = toggleAttribute;
|
|
1235
|
+
exports.waitOnConditionAsync = waitOnConditionAsync;
|
|
1236
|
+
exports.waitOnNonPendingStatus = waitOnNonPendingStatus;
|
|
1237
|
+
exports.willHaveDataProp = willHaveDataProp;
|
|
1238
|
+
exports.withoutProperties = withoutProperties;
|
|
1239
|
+
exports.withoutProperty = withoutProperty;
|
|
1240
|
+
exports.wrapIntoObservable = wrapIntoObservable;
|
|
1241
|
+
|
|
1242
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1243
|
+
|
|
1244
|
+
})));
|
|
1245
|
+
//# sourceMappingURL=theseam-ui-common-utils.umd.js.map
|