@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-tel-input.js","sources":["../../../projects/ui-common/tel-input/intl-tel-input.ts","../../../projects/ui-common/tel-input/tel-input-constants.ts","../../../projects/ui-common/tel-input/utils/add-country-code.ts","../../../projects/ui-common/tel-input/models/tel-input-number-format-name.ts","../../../projects/ui-common/tel-input/utils/coerce-phone-number-format.ts","../../../projects/ui-common/tel-input/utils/get-country-code.ts","../../../projects/ui-common/tel-input/utils/get-dial-code.ts","../../../projects/ui-common/tel-input/utils/get-global-intl-tel-input-globals.ts","../../../projects/ui-common/tel-input/utils/get-global-intl-tel-input-utils.ts","../../../projects/ui-common/tel-input/utils/get-intl-tel-input-utils.ts","../../../projects/ui-common/tel-input/utils/get-validation-error-message.ts","../../../projects/ui-common/tel-input/utils/process-country-codes.ts","../../../projects/ui-common/tel-input/tel-input.directive.ts","../../../projects/ui-common/tel-input/tel-input/tel-input.component.ts","../../../projects/ui-common/tel-input/tel-input-validator.ts","../../../projects/ui-common/tel-input/phone-number.pipe.ts","../../../projects/ui-common/tel-input/tel-input.module.ts","../../../projects/ui-common/tel-input/theseam-ui-common-tel-input.ts"],"sourcesContent":["import intlTelInput from 'intl-tel-input'\n\n//\n// NOTE: These types are mainly for providing types to 'intl-tel-input', because\n// the only published types I could find were incomplete. Some types are\n// missing, because they were not necessary for this library. I don't indend\n// this to be a perfect types for 'intl-tel-input', so as long as they are\n// compatible they may be slightly altered or extended to fit this library\n// better.\n//\n\n/**\n * Partial types for intl-tel-input-utils\n */\n// tslint:disable-next-line: no-namespace\nexport namespace intlTelInputUtils {\n\n export interface CountryData {\n name: string\n iso2: string\n dialCode: string\n areaCodes: string[] | null\n priority: number\n }\n\n export enum numberFormat {\n E164 = 0,\n INTERNATIONAL = 1,\n NATIONAL = 2,\n RFC3966 = 3\n }\n\n export enum numberType {\n FIXED_LINE = 0,\n MOBILE = 1,\n FIXED_LINE_OR_MOBILE = 2,\n TOLL_FREE = 3,\n PREMIUM_RATE = 4,\n SHARED_COST = 5,\n VOIP = 6,\n PERSONAL_NUMBER = 7,\n PAGER = 8,\n UAN = 9,\n VOICEMAIL = 10,\n UNKNOWN = -1\n }\n\n export enum validationError {\n IS_POSSIBLE = 0,\n INVALID_COUNTRY_CODE = 1,\n TOO_SHORT = 2,\n TOO_LONG = 3,\n NOT_A_NUMBER = 4\n }\n\n export type placeholderNumberType =\n | 'FIXED_LINE_OR_MOBILE'\n | 'FIXED_LINE'\n | 'MOBILE'\n | 'PAGER'\n | 'PERSONAL_NUMBER'\n | 'PREMIUM_RATE'\n | 'SHARED_COST'\n | 'TOLL_FREE'\n | 'UAN'\n | 'UNKNOWN'\n | 'VOICEMAIL'\n | 'VOIP'\n\n}\n\n// NOTE: If one of the functions return -99, then it is most likely from a\n// problem in 'google-libphonenumber' that 'intl-tel-input' swallowed in int\n// wrapper.\n//\n// NOTE: The following functions do not exist until util script has loaded.\nexport interface IntlTelInputUtilsScript {\n numberFormat: intlTelInputUtils.numberFormat\n numberType: intlTelInputUtils.numberType\n validationError: intlTelInputUtils.validationError\n\n /**\n * Format the given number to the given format.\n */\n formatNumber(number: string, countryCode: string, format: intlTelInputUtils.numberFormat): string\n\n /**\n * Get an example number for the given country code.\n */\n getExampleNumber(countryCode: string, national: boolean, numberType: intlTelInputUtils.numberType): string\n\n /**\n * Get the extension from the given number.\n */\n getExtension(number: string, countryCode: string): string\n\n /**\n * Get the type of the given number e.g. fixed-line/mobile.\n */\n getNumberType(number: string, countryCode: string): intlTelInputUtils.numberType\n\n /**\n * Get more info if the validation has failed e.g. too long/too short.\n */\n getValidationError(number: string, countryCode: string): intlTelInputUtils.validationError\n\n /**\n * Check if given number is valid.\n */\n isValidNumber(number: string, countryCode: string): boolean\n}\n\n/**\n * Partial types for intl-tel-input\n */\n// tslint:disable-next-line: no-namespace\nexport namespace IntlTelInput {\n export interface Static {\n /**\n * Default options for all instances\n */\n defaults: Options\n\n /**\n * Get all of the plugin's country data - either to re-use elsewhere\n * e.g. to populate a country dropdown.\n */\n getCountryData(): intlTelInputUtils.CountryData[]\n\n /**\n * Load the utils.js script (included in the lib directory) to enable\n * formatting/validation etc.\n */\n loadUtils(path: string, utilsScriptDeferred?: boolean): Promise<void> /* | null | void */\n }\n\n export interface Plugin {\n promise: Promise<void>\n\n /**\n * Remove the plugin from the input, and unbind any event listeners.\n */\n destroy(): void\n\n /**\n * Get the extension from the current number.\n * Requires the utilsScript option.\n * e.g. if the input value was \"(702) 555-5555 ext. 1234\", this would\n * return \"1234\".\n */\n getExtension(): string\n\n /**\n * Get the current number in the given format (defaults to E.164 standard).\n * The different formats are available in the enum\n * intlTelInputUtils.numberFormat - taken from here.\n * Requires the utilsScript option.\n * Note that even if nationalMode is enabled, this can still return a full\n * international number.\n * @param numberFormat the format in which the number will be returned.\n */\n getNumber(numberFormat?: intlTelInputUtils.numberFormat): string\n\n /**\n * Get the type (fixed-line/mobile/toll-free etc) of the current number.\n * Requires the utilsScript option.\n * Returns an integer, which you can match against the various options in the\n * global enum intlTelInputUtils.numberType.\n * Note that in the US there's no way to differentiate between fixed-line and\n * mobile numbers, so instead it will return FIXED_LINE_OR_MOBILE.\n */\n getNumberType(): intlTelInputUtils.numberType\n\n /**\n * Get the country data for the currently selected flag.\n */\n getSelectedCountryData(): intlTelInputUtils.CountryData\n\n /**\n * Get more information about a validation error.\n * Requires the utilsScript option.\n * Returns an integer, which you can match against the various options in the\n * global enum ValidationError\n */\n getValidationError(): intlTelInputUtils.validationError\n\n /**\n * Validate the current number. Expects an internationally formatted number\n * (unless nationalMode is enabled). If validation fails, you can use\n * getValidationError to get more information.\n * Requires the utilsScript option.\n * Also see getNumberType if you want to make sure the user enters a certain\n * type of number e.g. a mobile number.\n */\n isValidNumber(): boolean\n\n /**\n * Change the country selection (e.g. when the user is entering their address).\n * @param countryCode country code of the country to be set.\n */\n setCountry(countryCode: string): void\n\n /**\n * Insert a number, and update the selected flag accordingly.\n * Note that by default, if nationalMode is enabled it will try to use\n * national formatting.\n * @param aNumber number to be set.\n */\n setNumber(aNumber: string): void\n\n /**\n * Set the type of the placeholder number\n * @param type Placeholder number type to be set\n */\n setPlaceholderNumberType(type: intlTelInputUtils.placeholderNumberType): void\n }\n\n export interface Options {\n /**\n * Whether or not to allow the dropdown. If disabled, there is no dropdown\n * arrow, and the selected flag is not clickable. Also we display the\n * selected flag on the right instead because it is just a marker of state.\n * Default = true\n */\n allowDropdown?: boolean\n\n /**\n * If there is just a dial code in the input: remove it on blur or submit,\n * and re-add it on focus. This is to prevent just a dial code getting\n * submitted with the form. Requires nationalMode to be set to false.\n * Default = true\n */\n autoHideDialCode?: boolean\n\n /**\n * Set the input's placeholder to an example number for the selected country, and update it if the country changes.\n * You can specify the number type using the placeholderNumberType option.\n * By default it is set to \"polite\", which means it will only set the placeholder if the input doesn't already have one.\n * You can also set it to \"aggressive\", which will replace any existing placeholder, or \"off\".\n * Requires the utilsScript option.\n * Default = \"polite\"\n */\n autoPlaceholder?: 'off' | 'polite' | 'aggressive'\n\n /**\n * Change the placeholder generated by autoPlaceholder. Must return a string.\n * Default = null\n */\n customPlaceholder?: (selectedCountryPlaceholder: string, selectedCountryData: intlTelInputUtils.CountryData) => string\n\n /**\n * Expects a node e.g. document.body. Instead of putting the country dropdown next to the input,\n * append it to the specified node, and it will then be positioned absolutely next to the input using JavaScript.\n * This is useful when the input is inside a container with overflow: hidden.\n * Note that the absolute positioning can be broken by scrolling, so it will automatically close on the window scroll event.\n * Default = null\n */\n dropdownContainer?: Node\n\n /**\n * In the dropdown, display all countries except the ones you specify here.\n * Default = null\n */\n excludeCountries?: string[]\n\n /**\n * Format the input value (according to the nationalMode option) during initialisation, and on setNumber.\n * Requires the utilsScript option.\n * Default = true\n */\n formatOnDisplay?: boolean\n\n /**\n * When setting initialCountry to \"auto\", you must use this option to\n * specify a custom function that looks up the user's location,\n * and then calls the success callback with the relevant country code.\n * Also note that when instantiating the plugin, if the Promise object is defined,\n * one of those is returned under the promise instance property, so you can\n * do something like iti.promise.then(callback) to know when initialisation requests like this have completed.\n * Default = null\n */\n geoIpLookup?: (callback: (countryCode: string) => void) => void\n\n /**\n * Add a hidden input with the given name (or if your input name\n * contains square brackets then it will give the hidden input the same\n * name, replacing the contents of the brackets with the given name). On\n * submit, populate it with the full international number (using\n * getNumber). This is a quick way for people using non-ajax forms to\n * get the full international number, even when nationalMode is enabled.\n * Note: requires the input to be inside a form element, as this feature\n * works by listening for the submit event on the closest form element.\n * Also note that since this uses getNumber internally, it expects a\n * valid number, and so should only be used after validation. Default =\n * \"\"\n */\n hiddenInput?: string\n\n /**\n * Set the initial country selection by specifying it's country code.\n * You can also set it to \"auto\", which will lookup the user's country based\n * on their IP address (requires the geoIpLookup option).\n * Note that the \"auto\" option will not update the country selection if the\n * input already contains a number. If you leave initialCountry blank,\n * it will default to the first country in the list.\n */\n initialCountry?: string\n\n /**\n * Allows to translate the countries by its given iso code e.g.: { 'de': 'Deutschland' }\n * Default = {}\n */\n localizedCountries?: object\n\n /**\n * Allow users to enter national numbers (and not have to think about\n * international dial codes). Formatting, validation and placeholders still\n * work. Then you can use getNumber to extract a full international number.\n * This option now defaults to true, and it is recommended that you leave it\n * that way as it provides a better experience for the user.\n * Default = true\n */\n nationalMode?: boolean\n\n /**\n * In the dropdown, display only the countries you specify.\n * Default = undefined\n */\n onlyCountries?: string[]\n\n /**\n * Specify one of the keys from the global enum intlTelInputUtils.numberType\n * e.g. \"FIXED_LINE\" to set the number type to use for the placeholder.\n * Default = MOBILE\n */\n placeholderNumberType?: intlTelInputUtils.placeholderNumberType\n\n /**\n * Specify the countries to appear at the top of the list.\n * Default = [\"us\", \"gb\"]\n */\n preferredCountries?: string[]\n\n /**\n * Display the country dial code next to the selected flag so it's not part\n * of the typed number. Note that this will disable nationalMode because\n * technically we are dealing with international numbers, but with the\n * dial code separated.\n * Default = false\n */\n separateDialCode?: boolean\n\n /**\n * Enable formatting/validation etc. by specifying the URL of the\n * included utils.js script (or alternatively just point it to the file\n * on cdnjs.com). The script is fetched when the page has finished\n * loading (on the window load event) to prevent blocking (the script is\n * ~215KB). When instantiating the plugin, if the Promise object is\n * defined, one of those is returned under the promise instance\n * property, so you can do something like iti.promise.then(callback) to\n * know when initialisation requests like this have finished. Note that\n * if you're lazy loading the plugin script itself (intlTelInput.js)\n * this will not work and you will need to use the loadUtils method\n * instead. Example: \"build/js/utils.js\" Default = \"\"\n */\n utilsScript?: string\n }\n}\n\n/**\n * Initialise the plugin with optional options.\n * @param options options that can be provided during initialization.\n */\nexport function IntlTelInputFn(node: Element, options?: IntlTelInput.Options): IntlTelInput.Plugin {\n return (intlTelInput as any)(node, options)\n}\n\nexport default IntlTelInputFn\n","export const TEL_INPUT_ASSETS_PATH = 'assets/vendor/intl-tel-input'\n\nexport const TEL_INPUT_STYLES = `\n .iti { width: 100%; }\n\n .iti__flag {background-image: url(\"${TEL_INPUT_ASSETS_PATH}/img/flags.png\");}\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n .iti__flag {background-image: url(\"${TEL_INPUT_ASSETS_PATH}/img/flags@2x.png\");}\n }\n\n .iti__country-list {\n /* There is a bug that is causing the 'z-index: 2' from ng-select to conflict with this dropdown container. */\n z-index: 3;\n }\n`\n\nexport const TEL_INPUT_STYLESHEET_PATH = `${TEL_INPUT_ASSETS_PATH}/css/intlTelInput.min.css`\n\nexport const TEL_INPUT_UTILS_PATH = `${TEL_INPUT_ASSETS_PATH}/js/utils.js`\n","import type { TelInputCountryData } from '../models/index'\n\n/**\n * Add a country code to this.countryCodes.\n *\n * Based on: https://github.com/jackocnr/intl-tel-input/blob/4fe25fcf142c341a85b7b15cc307d66afb8573a3/src/js/intlTelInput.js#L197\n */\nexport function addCountryCode(data: TelInputCountryData, iso2: string, countryCode: string, priority?: number) {\n if (countryCode.length > data.countryCodeMaxLen) {\n data.countryCodeMaxLen = countryCode.length\n }\n if (!data.countryCodes.hasOwnProperty(countryCode)) {\n data.countryCodes[countryCode] = []\n }\n // bail if we already have this country for this countryCode\n for (let i = 0; i < data.countryCodes[countryCode].length; i++) {\n if (data.countryCodes[countryCode][i] === iso2) { return }\n }\n // check for undefined as 0 is falsy\n const index = (priority !== undefined) ? priority : data.countryCodes[countryCode].length\n data.countryCodes[countryCode][index] = iso2\n}\n","import { intlTelInputUtils } from '../intl-tel-input'\n\nexport const TelInputNumberFormatName: { [name: string]: intlTelInputUtils.numberFormat } = {\n 'E164': intlTelInputUtils.numberFormat.E164,\n 'INTERNATIONAL': intlTelInputUtils.numberFormat.INTERNATIONAL,\n 'NATIONAL': intlTelInputUtils.numberFormat.NATIONAL,\n 'RFC3966': intlTelInputUtils.numberFormat.RFC3966\n}\n","import { intlTelInputUtils } from '../intl-tel-input'\nimport { TelInputNumberFormatName } from '../models/index'\n\nexport const THESEAM_DEFAULT_PHONE_NUMBER_FORMAT = intlTelInputUtils.numberFormat.INTERNATIONAL\n\n/**\n * Types that should be acceptable in a template.\n */\nexport type TheSeamNumberFormatsInput =\n // Enum\n intlTelInputUtils.numberFormat\n // Strings matching enum\n | 'E164'\n | 'INTERNATIONAL'\n | 'NATIONAL'\n | 'RFC3966'\n // Strings matching enum in lower case, since it would be what a user will\n // most likely type if string is necessary.\n | 'e164'\n | 'international'\n | 'national'\n | 'rfc3966'\n\nexport function coercePhoneNumberFormat(\n format: TheSeamNumberFormatsInput,\n defaultFormat = THESEAM_DEFAULT_PHONE_NUMBER_FORMAT\n): intlTelInputUtils.numberFormat {\n let res = defaultFormat\n\n if (typeof format === 'string') {\n const _format = TelInputNumberFormatName[`${format}`.trim().toUpperCase()]\n res = (_format === undefined || _format === null) ? defaultFormat : _format\n } else if (typeof format === 'number') {\n // We could check for a number range, but I think it is safer to assume it's\n // valid if a number was provided. A number most likely means the value came\n // from using the enum and I don't want to accidentaly exclude a format that\n // we don't have documented.\n //\n // NOTE: We may want to limit it to specific numbers though and assume that\n // potentialy excluded formats are not intended to be used by this library.\n res = format\n }\n\n return res\n}\n","import type { TelInputCountryData } from '../models/index'\n\nfunction getNumeric(s: string): string {\n return s.replace(/\\D/g, '')\n}\n\nexport function getCountryCode(data: TelInputCountryData, dialCode: string) {\n const _countryCodes = data.countryCodes[getNumeric(dialCode)]\n // Refer to `_setInitialState` to get libraries default logic\n return (_countryCodes === undefined || _countryCodes === null || _countryCodes.length === 0) ? 'us' : _countryCodes[0]\n}\n","import type { TelInputCountryData } from '../models/index'\n\n/**\n * Try and extract a valid international dial code from a full telephone number.\n *\n * NOTE: returns the raw string inc plus character and any whitespace/dots etc.\n *\n * Based on: https://github.com/jackocnr/intl-tel-input/blob/4fe25fcf142c341a85b7b15cc307d66afb8573a3/src/js/intlTelInput.js#L1161\n */\nexport function getDialCode(data: TelInputCountryData, number: string, includeAreaCode: boolean = false): string {\n // console.log('getDialCode', number, includeAreaCode)\n // const data = processCountryCodes(globalIntlTelInputGlobals().getCountryData() as TelInputCountryData[])\n\n let dialCode = ''\n // only interested in international numbers (starting with a plus)\n if (number.charAt(0) === '+') {\n let numericChars = ''\n // iterate over chars\n for (let i = 0; i < number.length; i++) {\n const c = number.charAt(i)\n // if char is number (https://stackoverflow.com/a/8935649/217866)\n if (!isNaN(parseInt(c, 10))) {\n numericChars += c\n // if current numericChars make a valid dial code\n if (includeAreaCode) {\n if (data.countryCodes[numericChars]) {\n // store the actual raw string (useful for matching later)\n dialCode = number.substr(0, i + 1)\n }\n } else {\n if (data.dialCodes[numericChars]) {\n dialCode = number.substr(0, i + 1)\n // if we're just looking for a dial code, we can break as soon as we find one\n break\n }\n }\n // stop searching as soon as we can - in this case when we hit max len\n if (numericChars.length === data.countryCodeMaxLen) {\n break\n }\n }\n }\n }\n\n // console.log('getDialCode return', dialCode)\n return dialCode\n}\n","import type { IntlTelInput } from '../intl-tel-input'\n\nexport function globalIntlTelInputGlobals(): IntlTelInput.Static {\n return (window as any).intlTelInputGlobals\n}\n","import type { IntlTelInputUtilsScript } from '../intl-tel-input'\n\nexport function globalIntlTelInputUtils(): IntlTelInputUtilsScript {\n return (window as any).intlTelInputUtils\n}\n","import { notNullOrUndefined, waitOnConditionAsync } from '@theseam/ui-common/utils'\n\nimport type { IntlTelInputUtilsScript } from '../intl-tel-input'\nimport { TEL_INPUT_UTILS_PATH } from '../tel-input-constants'\nimport { globalIntlTelInputGlobals } from './get-global-intl-tel-input-globals'\nimport { globalIntlTelInputUtils } from './get-global-intl-tel-input-utils'\n\nexport function getIntlTelInputUtils(): Promise<IntlTelInputUtilsScript> {\n if (globalIntlTelInputUtils()) {\n return Promise.resolve(globalIntlTelInputUtils())\n }\n\n if ((globalIntlTelInputGlobals() as any).startedLoadingUtilsScript) {\n return waitOnConditionAsync(() => notNullOrUndefined(globalIntlTelInputUtils()), 5000)\n .then(() => globalIntlTelInputUtils())\n }\n\n return globalIntlTelInputGlobals().loadUtils(TEL_INPUT_UTILS_PATH)\n .then(() => waitOnConditionAsync(() => notNullOrUndefined(globalIntlTelInputUtils()), 5000))\n .then(() => globalIntlTelInputUtils())\n}\n","import { intlTelInputUtils } from '../intl-tel-input'\n\nexport const VALIDATOR_CODE_MESSAGES: { [key: number]: string } = {\n [intlTelInputUtils.validationError.INVALID_COUNTRY_CODE]: 'Country code is invalid.',\n [intlTelInputUtils.validationError.TOO_SHORT]: 'Number is too short.',\n [intlTelInputUtils.validationError.TOO_LONG]: 'Number is too long.',\n [intlTelInputUtils.validationError.NOT_A_NUMBER]: 'Must be numbers only.'\n}\n\nexport function getValidationErrorMessage(code: intlTelInputUtils.validationError): string {\n const message = VALIDATOR_CODE_MESSAGES[code]\n return message ?? 'Invalid number.'\n}\n","import type { intlTelInputUtils } from '../intl-tel-input'\nimport type { TelInputCountryData } from '../models/index'\nimport { addCountryCode } from './add-country-code'\n\n/**\n * Process the countryCodes map.\n *\n * Based on: https://github.com/jackocnr/intl-tel-input/blob/4fe25fcf142c341a85b7b15cc307d66afb8573a3/src/js/intlTelInput.js#L252\n */\nexport function processCountryCodes(countries: intlTelInputUtils.CountryData[]): TelInputCountryData {\n const data: TelInputCountryData = {\n countryCodeMaxLen: 0,\n // here we store just dial codes\n dialCodes: {},\n // here we store \"country codes\" (both dial codes and their area codes)\n countryCodes: {}\n }\n\n // first: add dial codes\n for (let i = 0; i < countries.length; i++) {\n const c = countries[i]\n if (!data.dialCodes[c.dialCode]) { data.dialCodes[c.dialCode] = true }\n addCountryCode(data, c.iso2, c.dialCode, c.priority)\n }\n\n // next: add area codes\n // this is a second loop over countries, to make sure we have all of the \"root\" countries\n // already in the map, so that we can access them, as each time we add an area code substring\n // to the map, we also need to include the \"root\" country's code, as that also matches\n for (let i = 0; i < countries.length; i++) {\n const c = countries[i]\n // area codes\n if (c.areaCodes) {\n const rootCountryCode = data.countryCodes[c.dialCode][0]\n // for each area code\n for (let j = 0; j < c.areaCodes.length; j++) {\n const areaCode = c.areaCodes[j]\n // for each digit in the area code to add all partial matches as well\n for (let k = 1; k < areaCode.length; k++) {\n const partialDialCode = c.dialCode + areaCode.substr(0, k)\n // start with the root country, as that also matches this dial code\n addCountryCode(data, rootCountryCode, partialDialCode)\n addCountryCode(data, c.iso2, partialDialCode)\n }\n // add the full area code\n addCountryCode(data, c.iso2, c.dialCode + areaCode)\n }\n }\n }\n\n return data\n}\n","import { DOCUMENT } from '@angular/common'\nimport { Directive, ElementRef, HostBinding, Inject, Input, NgZone, OnDestroy, OnInit, Optional } from '@angular/core'\nimport { fromEvent, merge, Subject } from 'rxjs'\nimport { auditTime, last, switchMap, takeUntil, tap } from 'rxjs/operators'\n\nimport { AssetLoaderService, LoadedAssetRef } from '@theseam/ui-common/services'\nimport { notNullOrUndefined } from '@theseam/ui-common/utils'\n\n\nimport { IntlTelInputFn, intlTelInputUtils } from './intl-tel-input'\nimport type { IntlTelInput } from './intl-tel-input'\nimport { TEL_INPUT_STYLES, TEL_INPUT_STYLESHEET_PATH, TEL_INPUT_UTILS_PATH } from './tel-input-constants'\nimport { globalIntlTelInputUtils } from './utils/index'\n\n@Directive({\n selector: 'input[seamTelInput]',\n exportAs: 'seamTelInput'\n})\nexport class TheSeamTelInputDirective implements OnInit, OnDestroy {\n private readonly _ngUnsubscribe = new Subject()\n\n private _instance: IntlTelInput.Plugin | undefined\n private _loadedAssetRefs: LoadedAssetRef<HTMLLinkElement | HTMLStyleElement>[] = []\n\n @HostBinding('attr.type') _attrType = 'tel'\n\n @Input()\n set value(v: string | undefined | null) {\n // console.log('set value', v, this._instance)\n this._value = v\n if (this._instance) {\n this._instance.setNumber(notNullOrUndefined(v) ? v : '')\n this.updateValue()\n }\n }\n get value(): string | undefined | null {\n if (this._instance) {\n return this._instance?.getNumber()\n }\n return this._value\n }\n private _value: string | undefined | null\n\n constructor(\n private readonly _elementRef: ElementRef<HTMLInputElement>,\n private readonly _assetLoader: AssetLoaderService,\n private readonly _ngZone: NgZone,\n @Optional() @Inject(DOCUMENT) private readonly _document?: any\n ) { }\n\n ngOnInit(): void {\n merge(\n this._assetLoader.loadStyleSheet(TEL_INPUT_STYLESHEET_PATH),\n this._assetLoader.loadStyle(TEL_INPUT_STYLES)\n ).pipe(\n // tap(v => console.log('loaded', v)),\n tap(v => this._loadedAssetRefs.push(v)),\n last(),\n // tap(v => console.log('StyleLoadingDone', v)),\n switchMap(() => {\n this._instance = IntlTelInputFn(this._elementRef.nativeElement, {\n utilsScript: TEL_INPUT_UTILS_PATH,\n preferredCountries: [ 'US' ],\n nationalMode: false,\n formatOnDisplay: true,\n autoPlaceholder: 'off',\n separateDialCode: false,\n autoHideDialCode: false,\n // TODO: Add initialCountry support.\n // initialCountry: 'auto'\n })\n\n return this._instance.promise\n }),\n // tap(() => console.log('%c_instance ready', 'color:green', this._instance, this._elementRef.nativeElement.value)),\n tap(() => this._initDropdownListener()),\n tap(() => this.value = this._value),\n tap(this._formatIntlTelInput),\n switchMap(() => merge(\n fromEvent(this._elementRef.nativeElement, 'keyup'),\n fromEvent(this._elementRef.nativeElement, 'change')\n )),\n tap(this._formatIntlTelInput),\n takeUntil(this._ngUnsubscribe)\n ).subscribe()\n }\n\n ngOnDestroy(): void {\n this._instance?.destroy()\n for (const ref of this._loadedAssetRefs) {\n ref.destroy()\n }\n\n this._ngUnsubscribe.next()\n this._ngUnsubscribe.complete()\n }\n\n private _formatIntlTelInput = () => {\n // if (typeof intlTelInputUtils !== 'undefined') {\n // const currentText = this._instance?.getNumber(intlTelInputUtils.numberFormat.INTERNATIONAL)\n // console.log('currentText', currentText, this._instance?.getSelectedCountryData())\n // console.log(this._instance?.getValidationError())\n // if (typeof currentText === 'string') {\n // this._instance?.setNumber(currentText)\n // }\n // }\n\n this.updateValue()\n }\n\n public updateValue(): void {\n // console.log('%cupdateValue START', 'color:cyan', typeof intlTelInputUtils !== 'undefined')\n if (typeof globalIntlTelInputUtils() !== 'undefined') {\n const currentText = this._instance?.getNumber(intlTelInputUtils.numberFormat.E164)\n // console.log('currentText', currentText, this._instance?.getSelectedCountryData())\n // console.log('fullNumber', (this._instance as any)._getFullNumber())\n // console.log('E164', this._instance?.getNumber(intlTelInputUtils.numberFormat.E164))\n // console.log('INTERNATIONAL', this._instance?.getNumber(intlTelInputUtils.numberFormat.INTERNATIONAL))\n // console.log('NATIONAL', this._instance?.getNumber(intlTelInputUtils.numberFormat.NATIONAL))\n // console.log('RFC3966', this._instance?.getNumber(intlTelInputUtils.numberFormat.RFC3966))\n // console.log('getValidationError', this._instance?.getValidationError())\n if (typeof currentText === 'string') {\n this._instance?.setNumber(currentText)\n }\n }\n // console.log('%cupdateValue END', 'color:cyan')\n }\n\n public getFullNumber(): string | undefined | null {\n if (typeof globalIntlTelInputUtils() !== 'undefined' && this._instance) {\n // return (this._instance as any)._getFullNumber()\n return this._instance.getNumber(intlTelInputUtils.numberFormat.E164)\n }\n return this.value\n }\n\n private _initDropdownListener() {\n const doc = this._document\n if (!doc) {\n return\n }\n\n this._ngZone.runOutsideAngular(() => {\n const openDropdown$ = fromEvent(this._elementRef.nativeElement, 'open:countrydropdown')\n const closeDropdown$ = fromEvent(this._elementRef.nativeElement, 'close:countrydropdown')\n const instance = this._instance as any\n openDropdown$.pipe(\n switchMap(() => {\n const pressDown$ = merge(\n fromEvent(doc, 'touchstart', { capture: true }),\n fromEvent(doc, 'mousedown', { capture: true })\n ).pipe(\n auditTime(0),\n tap((event: any) => {\n if (instance.countryList.contains(event.target) || instance.selectedFlag.contains(event.target)) {\n return\n }\n instance._closeDropdown()\n })\n )\n\n const flagBtnClick$ = fromEvent<MouseEvent>(instance.selectedFlag, 'click').pipe(\n tap((event: MouseEvent) => {\n if (!this.isDropdownVisible()) {\n return\n }\n\n event.preventDefault()\n instance._closeDropdown()\n })\n )\n\n return merge(pressDown$, flagBtnClick$).pipe(takeUntil(closeDropdown$))\n }),\n takeUntil(this._ngUnsubscribe)\n ).subscribe()\n })\n }\n\n public isDropdownVisible() {\n if (!this._instance) {\n return false\n }\n\n const instance = this._instance as any\n return !instance.countryList.classList.contains('iti__hide')\n }\n\n /** Focuses the input. */\n public focus(): void {\n this._elementRef.nativeElement.focus()\n }\n\n /** Unfocuses the input. */\n public blur(): void {\n this._elementRef.nativeElement.blur()\n }\n\n public getHostElement(): HTMLInputElement {\n return this._elementRef.nativeElement\n }\n}\n","import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y'\nimport { BooleanInput, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion'\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n InjectFlags,\n Injector,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewChild\n} from '@angular/core'\nimport { ControlValueAccessor, FormControl, NgControl, NG_VALUE_ACCESSOR } from '@angular/forms'\nimport { defer, fromEvent, merge, Observable, of, Subject } from 'rxjs'\nimport { auditTime, map, switchMap, takeUntil } from 'rxjs/operators'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { InputDirective } from '@theseam/ui-common/form-field'\n\nimport { TheSeamTelInputDirective } from '../tel-input.directive'\n\n// TODO: Fix focus\n// TODO: Fix disabled\n\n@Component({\n selector: 'seam-tel-input',\n templateUrl: './tel-input.component.html',\n styleUrls: ['./tel-input.component.scss'],\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n // tslint:disable-next-line: no-use-before-declare\n useExisting: forwardRef(() => TheSeamTelInputComponent),\n multi: true\n }],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TheSeamTelInputComponent implements OnInit, OnDestroy, ControlValueAccessor {\n static ngAcceptInputType_required: BooleanInput\n static ngAcceptInputType_disabled: BooleanInput\n\n /** @ignore */\n private readonly _ngUnsubscribe = new Subject()\n\n /** @ignore */\n readonly _control = new FormControl()\n\n private _focusOrigin: FocusOrigin = null\n\n _hasInvalidCss$: Observable<boolean>\n\n @Input() @InputBoolean() required: boolean = false\n\n @Input()\n get disabled(): boolean { return this._disabled }\n set disabled(value: boolean) {\n const newValue = coerceBooleanProperty(value)\n\n if (newValue !== this.disabled) {\n this._disabled = newValue\n this._changeDetectorRef.markForCheck()\n }\n }\n /** @ignore */\n private _disabled = false\n\n /**\n * Set the tab index to `-1` to allow the root element of the\n * component to receive `focus` event from javascript, but not get focused by\n * keyboard navigation.\n */\n @Input()\n set tabIndex(value: number) { this._tabIndex = coerceNumberProperty(value) }\n get tabIndex(): number { return this._tabIndex }\n private _tabIndex = -1\n\n @HostBinding('attr.disabled')\n get _attrDisabled() { return this.disabled || null }\n\n @HostBinding('attr.tabindex')\n get _attrTabIndex() { return this.disabled ? -1 : (this.tabIndex || 0) }\n\n /** Name value will be applied to the input element if present */\n @Input() name: string | undefined | null = null\n\n /** The value attribute of the native input element */\n @Input() value: string | undefined | null\n\n /** Event emitted when the \"tel\" input value changes. */\n @Output() readonly change = new EventEmitter<string>()\n\n /**\n * The telInput directive\n * @ignore\n */\n @ViewChild(TheSeamTelInputDirective, { static: true }) _telInputDirective?: TheSeamTelInputDirective\n\n /**\n * The telInput directive\n * @ignore\n */\n @ViewChild(InputDirective, { static: true }) _inputDirective?: InputDirective\n\n /**\n * The native `<input type=\"tel\">` element\n * @ignore\n */\n @ViewChild('input', { static: true }) _inputElementRef?: ElementRef<HTMLInputElement>\n\n @HostListener('focus', [ '$event' ])\n _onFocus() {\n this._telInputDirective?.focus()\n }\n\n /**\n * Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor.\n * @ignore\n */\n _onTouched: () => any = () => {}\n\n /** @ignore */\n private _controlValueAccessorChangeFn: (value: any) => void = () => {}\n\n constructor(\n private readonly _changeDetectorRef: ChangeDetectorRef,\n private readonly _injector: Injector,\n private readonly _elementRef: ElementRef,\n private readonly _focusMonitor: FocusMonitor\n ) {\n const telInputBlurEvent$ = this._telInputDirective\n ? fromEvent(this._telInputDirective.getHostElement(), 'blur')\n : of<Event>()\n\n this._hasInvalidCss$ = defer(() => of((this._injector.get(NgControl, null, InjectFlags.Self)?.control) || undefined)).pipe(\n switchMap(control => {\n if (control) {\n return merge(\n control.valueChanges,\n control.statusChanges,\n telInputBlurEvent$\n ).pipe(\n auditTime(0),\n map(() => {\n const inputControl = this._inputDirective?.ngControl\n return control.invalid && (inputControl?.dirty as boolean || inputControl?.touched as boolean)\n })\n )\n }\n return of(false)\n })\n )\n }\n\n /** @ignore */\n ngOnInit(): void {\n this._focusMonitor.monitor(this._elementRef, true).pipe(\n takeUntil(this._ngUnsubscribe)\n ).subscribe(origin => this._focusOrigin = origin)\n\n this._control.valueChanges.pipe(\n takeUntil(this._ngUnsubscribe)\n ).subscribe(v => {\n const value = this._telInputDirective?.getFullNumber()\n this.value = value\n if (this._controlValueAccessorChangeFn) {\n this._controlValueAccessorChangeFn(value)\n }\n })\n }\n\n /** @ignore */\n ngOnDestroy(): void {\n this._focusMonitor.stopMonitoring(this._elementRef)\n\n this._ngUnsubscribe.next()\n this._ngUnsubscribe.complete()\n }\n\n // Implemented as part of ControlValueAccessor.\n /** @ignore */\n writeValue(value: any) {\n this.value = value\n if (this._telInputDirective) {\n this._telInputDirective.value = value\n this._telInputDirective.updateValue()\n }\n }\n\n // Implemented as part of ControlValueAccessor.\n /** @ignore */\n registerOnChange(fn: (value: any) => void) {\n this._controlValueAccessorChangeFn = fn\n }\n\n // Implemented as part of ControlValueAccessor.\n /** @ignore */\n registerOnTouched(fn: any) {\n this._onTouched = fn\n }\n\n // Implemented as part of ControlValueAccessor.\n /** @ignore */\n setDisabledState(isDisabled: boolean) {\n this.disabled = isDisabled\n }\n\n /** Focuses the input. */\n public focus(): void {\n this._telInputDirective?.focus()\n }\n\n /** Unfocuses the input. */\n public blur(): void {\n this._telInputDirective?.blur()\n }\n\n public hasFocus(): boolean {\n return this._focusOrigin !== null && this._focusOrigin !== undefined\n }\n\n}\n","import { FormControl } from '@angular/forms'\n\nimport {\n getCountryCode,\n getDialCode,\n getIntlTelInputUtils,\n getValidationErrorMessage,\n globalIntlTelInputGlobals,\n processCountryCodes\n} from './utils'\n\nexport function telInputValidator(control: FormControl) {\n const value = control.value\n\n // This validator doesn't need to do anything if there isn't a value.\n if (typeof value !== 'string' || value.length === 0) {\n return Promise.resolve(null)\n }\n\n return getIntlTelInputUtils().then(utils => {\n const data = processCountryCodes(globalIntlTelInputGlobals().getCountryData())\n const dialCode = getDialCode(data, value)\n const countryCode = getCountryCode(data, dialCode)\n\n let number = value\n if (number.charAt(0) !== '+') {\n if (number.charAt(0) !== '1') { number = `1${number}` }\n number = `+${number}`\n }\n\n if (!utils.isValidNumber(number, countryCode)) {\n const code = utils.getValidationError(number, countryCode)\n const message = getValidationErrorMessage(code)\n return { 'telInput': { code, message } }\n }\n\n return null\n })\n}\n","import { ChangeDetectorRef, Pipe, PipeTransform } from '@angular/core'\n\nimport { intlTelInputUtils } from './intl-tel-input'\nimport { getCountryCode, getDialCode, getIntlTelInputUtils, globalIntlTelInputGlobals, processCountryCodes, TheSeamNumberFormatsInput } from './utils'\nimport { coercePhoneNumberFormat } from './utils'\n\n@Pipe({\n name: 'phoneNumber',\n pure: false\n})\nexport class TheSeamPhoneNumberPipe implements PipeTransform {\n\n private _latestPhoneNumber: string | undefined | null\n private _latestNumberFormat: TheSeamNumberFormatsInput | undefined | null\n private _latestValue: string | undefined | null\n\n constructor(private _cdr: ChangeDetectorRef) { }\n\n transform(\n phoneNumber: string,\n numberFormat: TheSeamNumberFormatsInput = intlTelInputUtils.numberFormat.INTERNATIONAL\n ): any {\n // console.log('transform', phoneNumber, numberFormat)\n if (this._latestPhoneNumber !== phoneNumber || this._latestNumberFormat !== numberFormat) {\n this._transform(phoneNumber, numberFormat)\n }\n this._latestPhoneNumber = phoneNumber\n this._latestNumberFormat = numberFormat\n\n // console.log('return', this._latestValue)\n return this._latestValue\n }\n\n async _transform(phoneNumber: string, numberFormat: TheSeamNumberFormatsInput) {\n // console.log('_transform', phoneNumber, numberFormat)\n const utils = await getIntlTelInputUtils()\n // console.log('utils', utils)\n\n const _format = coercePhoneNumberFormat(numberFormat)\n\n const data = processCountryCodes(globalIntlTelInputGlobals().getCountryData())\n const dialCode = getDialCode(data, phoneNumber)\n const countryCode = getCountryCode(data, dialCode)\n\n const number = phoneNumber\n // if (number.charAt(0) !== '+') {\n // if (number.charAt(0) !== '1') { number = `1${number}` }\n // number = `+${number}`\n // }\n\n const n = utils.formatNumber(number, countryCode, _format)\n // console.log('n', n)\n this._latestValue = n\n // this._cdr.markForCheck()\n this._cdr.detectChanges()\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { ReactiveFormsModule } from '@angular/forms'\n\nimport { TheSeamFormFieldModule } from '@theseam/ui-common/form-field'\n\nimport { TheSeamPhoneNumberPipe } from './phone-number.pipe'\nimport { TheSeamTelInputDirective } from './tel-input.directive'\nimport { TheSeamTelInputComponent } from './tel-input/tel-input.component'\n\n@NgModule({\n declarations: [\n TheSeamTelInputDirective,\n TheSeamTelInputComponent,\n TheSeamPhoneNumberPipe\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n TheSeamFormFieldModule\n ],\n exports: [\n TheSeamTelInputDirective,\n TheSeamTelInputComponent,\n TheSeamPhoneNumberPipe\n ]\n})\nexport class TheSeamTelInputModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;AAGA;IACiB,kBAsDhB;AAtDD,WAAiB,iBAAiB;IAUhC,IAAY,YAKX;IALD,WAAY,YAAY;QACtB,+CAAQ,CAAA;QACR,iEAAiB,CAAA;QACjB,uDAAY,CAAA;QACZ,qDAAW,CAAA;KACZ,EALW,YAAY,GAAZ,8BAAY,KAAZ,8BAAY,QAKvB;IAED,IAAY,UAaX;IAbD,WAAY,UAAU;QACpB,uDAAc,CAAA;QACd,+CAAU,CAAA;QACV,2EAAwB,CAAA;QACxB,qDAAa,CAAA;QACb,2DAAgB,CAAA;QAChB,yDAAe,CAAA;QACf,2CAAQ,CAAA;QACR,iEAAmB,CAAA;QACnB,6CAAS,CAAA;QACT,yCAAO,CAAA;QACP,sDAAc,CAAA;QACd,kDAAY,CAAA;KACb,EAbW,UAAU,GAAV,4BAAU,KAAV,4BAAU,QAarB;IAED,IAAY,eAMX;IAND,WAAY,eAAe;QACzB,mEAAe,CAAA;QACf,qFAAwB,CAAA;QACxB,+DAAa,CAAA;QACb,6DAAY,CAAA;QACZ,qEAAgB,CAAA;KACjB,EANW,eAAe,GAAf,iCAAe,KAAf,iCAAe,QAM1B;AAgBH,CAAC,EAtDgB,iBAAiB,KAAjB,iBAAiB,QAsDjC;AA4SD;;;;SAIgB,cAAc,CAAC,IAAa,EAAE,OAA8B;IAC1E,OAAQ,YAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AAC7C;;MCvXa,qBAAqB,GAAG,+BAA8B;MAEtD,gBAAgB,GAAG;;;uCAGO,qBAAqB;;;yCAGnB,qBA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;gBACR,YAAY,EAAE;oBACZ,wBAAwB;oBACxB,wBAAwB;oBACxB,sBAAsB;iBACvB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,mBAAmB;oBACnB,sBAAsB;iBACvB;gBACD,OAAO,EAAE;oBACP,wBAAwB;oBACxB,wBAAwB;oBACxB,sBAAsB;iBACvB;aACF;;;AC1BD;;;;;;"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { tick } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Helps advance tests to specific elapsed times.
|
|
5
|
+
*
|
|
6
|
+
* # When to use
|
|
7
|
+
*
|
|
8
|
+
* If a test needs to do something at 100 ticks, but expected values should
|
|
9
|
+
* also be tested at multiple ticks before 100 ticks, then the previous tick
|
|
10
|
+
* sum needs to be counted. If the elapsed can be easily counted by just
|
|
11
|
+
* skimming the code you should just use `tick()`.
|
|
12
|
+
*
|
|
13
|
+
* The following example is simple enough that `tick()` is probably better, but
|
|
14
|
+
* it shows how it is used.
|
|
15
|
+
*
|
|
16
|
+
* ## Example without
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* const thing = new Thing()
|
|
20
|
+
* thing.dieAfterTicks(100)
|
|
21
|
+
*
|
|
22
|
+
* tick(25)
|
|
23
|
+
* expect(thing.isAlive).toBe(true)
|
|
24
|
+
*
|
|
25
|
+
* tick(25)
|
|
26
|
+
* expect(thing.isAlive).toBe(true)
|
|
27
|
+
*
|
|
28
|
+
* tick(25)
|
|
29
|
+
* expect(thing.isAlive).toBe(true)
|
|
30
|
+
*
|
|
31
|
+
* tick(25)
|
|
32
|
+
* expect(thing.isAlive).toBe(false)
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Example with
|
|
36
|
+
*
|
|
37
|
+
* ```ts
|
|
38
|
+
* const t = new TickHelper()
|
|
39
|
+
* const thing = new Thing()
|
|
40
|
+
* thing.dieAfterTicks(100)
|
|
41
|
+
*
|
|
42
|
+
* t.tickTo(25)
|
|
43
|
+
* expect(thing.isAlive).toBe(true)
|
|
44
|
+
*
|
|
45
|
+
* t.tickTo(50)
|
|
46
|
+
* expect(thing.isAlive).toBe(true)
|
|
47
|
+
*
|
|
48
|
+
* t.tickTo(75)
|
|
49
|
+
* expect(thing.isAlive).toBe(true)
|
|
50
|
+
*
|
|
51
|
+
* t.tickTo(100)
|
|
52
|
+
* expect(thing.isAlive).toBe(false)
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
class TickHelper {
|
|
56
|
+
constructor() {
|
|
57
|
+
this._startTime = Date.now();
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns the number of ticks that have elapsed since this class was
|
|
61
|
+
* initialized.
|
|
62
|
+
*/
|
|
63
|
+
get ticksElapsed() { return Date.now() - this._startTime; }
|
|
64
|
+
/**
|
|
65
|
+
* Calls `tick()` for the remaining number of ticks to reach elapsed ticks.
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
* const t = new TickHelper()
|
|
69
|
+
* tick(3)
|
|
70
|
+
* t.tickTo(10) // Equivalent to `tick(7)` in this case to reach 10 ticks.
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
tickTo(ticks) { tick(ticks - this.ticksElapsed); }
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Generated bundle index. Do not edit.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
export { TickHelper };
|
|
81
|
+
//# sourceMappingURL=theseam-ui-common-test-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theseam-ui-common-test-helpers.js","sources":["../../../projects/ui-common/test-helpers/tick-helper.ts","../../../projects/ui-common/test-helpers/theseam-ui-common-test-helpers.ts"],"sourcesContent":["import { tick } from '@angular/core/testing'\n\n/**\n * Helps advance tests to specific elapsed times.\n *\n * # When to use\n *\n * If a test needs to do something at 100 ticks, but expected values should\n * also be tested at multiple ticks before 100 ticks, then the previous tick\n * sum needs to be counted. If the elapsed can be easily counted by just\n * skimming the code you should just use `tick()`.\n *\n * The following example is simple enough that `tick()` is probably better, but\n * it shows how it is used.\n *\n * ## Example without\n *\n * ```ts\n * const thing = new Thing()\n * thing.dieAfterTicks(100)\n *\n * tick(25)\n * expect(thing.isAlive).toBe(true)\n *\n * tick(25)\n * expect(thing.isAlive).toBe(true)\n *\n * tick(25)\n * expect(thing.isAlive).toBe(true)\n *\n * tick(25)\n * expect(thing.isAlive).toBe(false)\n * ```\n *\n * ## Example with\n *\n * ```ts\n * const t = new TickHelper()\n * const thing = new Thing()\n * thing.dieAfterTicks(100)\n *\n * t.tickTo(25)\n * expect(thing.isAlive).toBe(true)\n *\n * t.tickTo(50)\n * expect(thing.isAlive).toBe(true)\n *\n * t.tickTo(75)\n * expect(thing.isAlive).toBe(true)\n *\n * t.tickTo(100)\n * expect(thing.isAlive).toBe(false)\n * ```\n */\nexport class TickHelper {\n\n private _startTime = Date.now()\n\n /**\n * Returns the number of ticks that have elapsed since this class was\n * initialized.\n */\n public get ticksElapsed() { return Date.now() - this._startTime }\n\n /**\n * Calls `tick()` for the remaining number of ticks to reach elapsed ticks.\n *\n * ```\n * const t = new TickHelper()\n * tick(3)\n * t.tickTo(10) // Equivalent to `tick(7)` in this case to reach 10 ticks.\n * ```\n */\n public tickTo(ticks: number) { tick(ticks - this.ticksElapsed) }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoDa,UAAU;IAAvB;QAEU,eAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;KAmBhC;;;;;IAbC,IAAW,YAAY,KAAK,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAA,EAAE;;;;;;;;;;IAW1D,MAAM,CAAC,KAAa,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,CAAA,EAAE;;;ACzElE;;;;;;"}
|
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import { animation, style, stagger, animate, trigger, transition, query, useAnimation, keyframes } from '@angular/animations';
|
|
3
|
+
import { coerceArray } from '@angular/cdk/coercion';
|
|
4
|
+
import { Platform } from '@angular/cdk/platform';
|
|
5
|
+
import { Directive, TemplateRef, Input, forwardRef, EventEmitter, Component, ChangeDetectorRef, Output, ContentChildren, HostBinding, ContentChild, NgModule } from '@angular/core';
|
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
|
+
import { InputBoolean } from '@theseam/ui-common/core';
|
|
8
|
+
import { faCheckCircle } from '@fortawesome/free-regular-svg-icons';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
11
|
+
|
|
12
|
+
class TiledSelectTileOverlayDirective {
|
|
13
|
+
constructor(template) {
|
|
14
|
+
this.template = template;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
TiledSelectTileOverlayDirective.decorators = [
|
|
18
|
+
{ type: Directive, args: [{
|
|
19
|
+
selector: '[seamTiledSelectTileOverlay]',
|
|
20
|
+
exportAs: 'seamTiledSelectTileOverlay'
|
|
21
|
+
},] }
|
|
22
|
+
];
|
|
23
|
+
TiledSelectTileOverlayDirective.ctorParameters = () => [
|
|
24
|
+
{ type: TemplateRef }
|
|
25
|
+
];
|
|
26
|
+
TiledSelectTileOverlayDirective.propDecorators = {
|
|
27
|
+
record: [{ type: Input }]
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const slideEnterAnimation = animation([
|
|
31
|
+
style({ opacity: 0, transform: 'translateX(-15px)' }),
|
|
32
|
+
stagger(100, [
|
|
33
|
+
animate('0.5s', style({ opacity: 1, transform: 'translateX(0)' }))
|
|
34
|
+
])
|
|
35
|
+
]);
|
|
36
|
+
const TILED_SELECT_VALUE_ACCESSOR = {
|
|
37
|
+
provide: NG_VALUE_ACCESSOR,
|
|
38
|
+
// tslint:disable-next-line:no-use-before-declare
|
|
39
|
+
useExisting: forwardRef(() => TiledSelectComponent),
|
|
40
|
+
multi: true,
|
|
41
|
+
};
|
|
42
|
+
class TiledSelectComponent {
|
|
43
|
+
constructor(_platform, _cdr) {
|
|
44
|
+
this._platform = _platform;
|
|
45
|
+
this._cdr = _cdr;
|
|
46
|
+
this.layout = 'grid';
|
|
47
|
+
this._tiles = [];
|
|
48
|
+
this.disabled = false;
|
|
49
|
+
this.multiple = false;
|
|
50
|
+
this.selectionToggleable = true;
|
|
51
|
+
this.tileBackdrop = false;
|
|
52
|
+
this.showSelectedIcon = true;
|
|
53
|
+
this.animationsDisabled = this._platform.IOS;
|
|
54
|
+
this.change = new EventEmitter();
|
|
55
|
+
this.tilesAnimationState = false;
|
|
56
|
+
}
|
|
57
|
+
get tiles() { return this._tiles; }
|
|
58
|
+
set tiles(value) {
|
|
59
|
+
const _value = [...(value || [])];
|
|
60
|
+
for (const v of _value) {
|
|
61
|
+
if (v.value === undefined) {
|
|
62
|
+
if (v.name === undefined) {
|
|
63
|
+
throw new Error('If value is undefined then name must be defined.');
|
|
64
|
+
}
|
|
65
|
+
v.value = v.name;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const prev = this._tiles;
|
|
69
|
+
if (prev.length !== _value.length) {
|
|
70
|
+
this.tilesAnimationState = !this.tilesAnimationState;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
for (const t of _value) {
|
|
74
|
+
if (!prev.find(p => p.name === t.name)) {
|
|
75
|
+
this.tilesAnimationState = !this.tilesAnimationState;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
this._tiles = _value;
|
|
81
|
+
}
|
|
82
|
+
ngOnInit() { }
|
|
83
|
+
get value() {
|
|
84
|
+
return this.val;
|
|
85
|
+
}
|
|
86
|
+
set value(value) {
|
|
87
|
+
this.val = (this.multiple) ? [...(value || [])] : value || '';
|
|
88
|
+
if (this.onChange) {
|
|
89
|
+
this.onChange(this.val);
|
|
90
|
+
this.change.emit(this.val);
|
|
91
|
+
this._cdr.markForCheck();
|
|
92
|
+
}
|
|
93
|
+
if (this.onTouched) {
|
|
94
|
+
this.onTouched();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
writeValue(value) {
|
|
98
|
+
this.value = value;
|
|
99
|
+
}
|
|
100
|
+
registerOnChange(fn) {
|
|
101
|
+
this.onChange = fn;
|
|
102
|
+
}
|
|
103
|
+
registerOnTouched(fn) {
|
|
104
|
+
this.onTouched = fn;
|
|
105
|
+
}
|
|
106
|
+
setDisabledState(isDisabled) {
|
|
107
|
+
this.disabled = isDisabled;
|
|
108
|
+
}
|
|
109
|
+
onTileSelected(event, tile) {
|
|
110
|
+
this.toggleTileSelected(tile);
|
|
111
|
+
}
|
|
112
|
+
isSelected(tile) {
|
|
113
|
+
if (!this.multiple) {
|
|
114
|
+
if (this.value === tile.value) {
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
if (this.value) {
|
|
120
|
+
for (const v of this.value) {
|
|
121
|
+
if (v === tile.value) {
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
toggleTileSelected(tile) {
|
|
130
|
+
if (!this.selectionToggleable && this.isSelected(tile)) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (this.isSelected(tile)) {
|
|
134
|
+
this.unselectTile(tile);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
this.selectTile(tile);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
selectTile(tile) {
|
|
141
|
+
if (this.multiple) {
|
|
142
|
+
if (!this.isSelected(tile)) {
|
|
143
|
+
const value = this.value || [];
|
|
144
|
+
this.value = [...coerceArray(value), tile.value];
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
this.value = tile.value;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
unselectTile(tile) {
|
|
152
|
+
if (this.multiple) {
|
|
153
|
+
const value = this.value || [];
|
|
154
|
+
this.value = value.filter(v => v !== tile.value);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
this.value = undefined;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
getSelectedTiles() {
|
|
161
|
+
return this.tiles.filter(t => this.isSelected(t));
|
|
162
|
+
}
|
|
163
|
+
getOverlayTpl(tile) {
|
|
164
|
+
// console.log('overlayTpls', this.overlayTpls)
|
|
165
|
+
return (this.overlayTpls || []).find(t => { var _a; return ((_a = t.record) === null || _a === void 0 ? void 0 : _a.name) === tile.name; });
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
TiledSelectComponent.decorators = [
|
|
169
|
+
{ type: Component, args: [{
|
|
170
|
+
selector: 'seam-tiled-select',
|
|
171
|
+
template: "<div class=\"tiled-select--container\"\n [class.grid]=\"layout === 'grid'\"\n [class.list]=\"layout === 'list'\"\n [@tiles]=\"tilesAnimationState\"\n [@.disabled]=\"animationsDisabled\">\n <ng-container *ngFor=\"let tile of tiles\">\n <div class=\"tile-wrapper\" [ngClass]=\"tile.customClass || ''\">\n <seam-tiled-select-tile\n class=\"tiled-select-tile\"\n [ngClass]=\"tile.customClass || ''\"\n [name]=\"tile.name\"\n [label]=\"tile.label\"\n [icon]=\"tile.icon\"\n [disabled]=\"disabled || tile.disabled\"\n [attr.hidden]=\"tile.hidden\"\n [layout]=\"layout\"\n [selected]=\"isSelected(tile)\"\n [selectable]=\"true\"\n [tileBackdrop]=\"tileBackdrop\"\n [showSelectedIcon]=\"showSelectedIcon\"\n [overlayTpl]=\"getOverlayTpl(tile)\"\n (activated)=\"onTileSelected($event, tile)\">\n </seam-tiled-select-tile>\n </div>\n </ng-container>\n</div>\n",
|
|
172
|
+
providers: [TILED_SELECT_VALUE_ACCESSOR],
|
|
173
|
+
animations: [
|
|
174
|
+
trigger('tiles', [
|
|
175
|
+
transition('* => *', [
|
|
176
|
+
query(':enter', useAnimation(slideEnterAnimation), { optional: true })
|
|
177
|
+
])
|
|
178
|
+
])
|
|
179
|
+
],
|
|
180
|
+
styles: [":host{display:block;width:100%}.tiled-select--container{display:flex;flex-wrap:wrap;justify-content:center}.tiled-select--container.grid{flex-direction:row}.tiled-select--container.grid .tile-wrapper{padding:12px;width:200px;height:180px}.tiled-select--container.grid .tile-wrapper .tiled-select-tile{height:100%}.tiled-select--container.grid .tile-wrapper.other-org{width:auto;height:auto}@media screen and (max-width:600px){.tiled-select--container.grid .tile-wrapper{padding:6px;width:150px;height:135px}}.tiled-select--container.list{flex-direction:column}.tiled-select--container.list .tile-wrapper{width:100%;height:50px}.tiled-select--container.list .tile-wrapper:not(:last-child){margin-bottom:4px}"]
|
|
181
|
+
},] }
|
|
182
|
+
];
|
|
183
|
+
TiledSelectComponent.ctorParameters = () => [
|
|
184
|
+
{ type: Platform },
|
|
185
|
+
{ type: ChangeDetectorRef }
|
|
186
|
+
];
|
|
187
|
+
TiledSelectComponent.propDecorators = {
|
|
188
|
+
layout: [{ type: Input }],
|
|
189
|
+
tiles: [{ type: Input }],
|
|
190
|
+
val: [{ type: Input, args: ['value',] }],
|
|
191
|
+
disabled: [{ type: Input }],
|
|
192
|
+
multiple: [{ type: Input }],
|
|
193
|
+
selectionToggleable: [{ type: Input }],
|
|
194
|
+
tileBackdrop: [{ type: Input }],
|
|
195
|
+
showSelectedIcon: [{ type: Input }],
|
|
196
|
+
animationsDisabled: [{ type: Input }],
|
|
197
|
+
change: [{ type: Output }],
|
|
198
|
+
overlayTpls: [{ type: ContentChildren, args: [TiledSelectTileOverlayDirective,] }]
|
|
199
|
+
};
|
|
200
|
+
__decorate([
|
|
201
|
+
InputBoolean()
|
|
202
|
+
], TiledSelectComponent.prototype, "disabled", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
InputBoolean()
|
|
205
|
+
], TiledSelectComponent.prototype, "multiple", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
InputBoolean()
|
|
208
|
+
], TiledSelectComponent.prototype, "selectionToggleable", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
InputBoolean()
|
|
211
|
+
], TiledSelectComponent.prototype, "tileBackdrop", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
InputBoolean()
|
|
214
|
+
], TiledSelectComponent.prototype, "showSelectedIcon", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
InputBoolean()
|
|
217
|
+
], TiledSelectComponent.prototype, "animationsDisabled", void 0);
|
|
218
|
+
|
|
219
|
+
class TiledSelectTileLabelTplDirective {
|
|
220
|
+
constructor(template) {
|
|
221
|
+
this.template = template;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
TiledSelectTileLabelTplDirective.decorators = [
|
|
225
|
+
{ type: Directive, args: [{
|
|
226
|
+
selector: '[seamTiledSelectTileLabelTpl]'
|
|
227
|
+
},] }
|
|
228
|
+
];
|
|
229
|
+
TiledSelectTileLabelTplDirective.ctorParameters = () => [
|
|
230
|
+
{ type: TemplateRef }
|
|
231
|
+
];
|
|
232
|
+
|
|
233
|
+
const tilePulse = animation(animate('{{ timing }}s {{ delay }}s', keyframes([
|
|
234
|
+
style({ transform: 'scale3d(1, 1, 1)' }),
|
|
235
|
+
style({ transform: 'scale3d({{ scale }}, {{ scale }}, {{ scale }})' }),
|
|
236
|
+
style({ transform: 'scale3d(1, 1, 1)' }),
|
|
237
|
+
])), { params: { scale: 1.05, timing: 0.75, delay: 0 } });
|
|
238
|
+
const tileScaleUp = animation(animate('{{ timing }}s {{ delay }}s', keyframes([
|
|
239
|
+
style({ transform: 'scale3d({{ scale }}, {{ scale }}, {{ scale }})' }),
|
|
240
|
+
])), { params: { scale: 1.05, timing: 0.75, delay: 0 } });
|
|
241
|
+
const tileScaleDown = animation(animate('{{ timing }}s {{ delay }}s', keyframes([
|
|
242
|
+
style({ transform: 'scale3d(1, 1, 1)' }),
|
|
243
|
+
])), { params: { scale: 1.05, timing: 0.75, delay: 0 } });
|
|
244
|
+
class TiledSelectTileComponent {
|
|
245
|
+
constructor(cdr) {
|
|
246
|
+
this.cdr = cdr;
|
|
247
|
+
this.faCheckCircle = faCheckCircle;
|
|
248
|
+
this.pulseAnimationState = true;
|
|
249
|
+
this.layout = 'grid';
|
|
250
|
+
this.disabled = false;
|
|
251
|
+
this.selected = false;
|
|
252
|
+
this.tileBackdrop = false;
|
|
253
|
+
this.selectable = false;
|
|
254
|
+
this.grayscaleOnDisable = true;
|
|
255
|
+
this.showLabel = true;
|
|
256
|
+
this.showSelectedIcon = true;
|
|
257
|
+
this.activated = new EventEmitter();
|
|
258
|
+
this.pulsing = false;
|
|
259
|
+
}
|
|
260
|
+
onTileClick(event) {
|
|
261
|
+
if (!this.selectable) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
this.activated.emit(event);
|
|
265
|
+
// this.pulsing = true
|
|
266
|
+
// setTimeout(() => {
|
|
267
|
+
// this.pulsing = false
|
|
268
|
+
// }, 750)
|
|
269
|
+
}
|
|
270
|
+
mDown() {
|
|
271
|
+
if (this.pulsingTimeout) {
|
|
272
|
+
clearTimeout(this.pulsingTimeout);
|
|
273
|
+
}
|
|
274
|
+
if (!this.pulsing) {
|
|
275
|
+
this.pulsing = true;
|
|
276
|
+
// this.cdr.detectChanges()
|
|
277
|
+
}
|
|
278
|
+
// console.log('start')
|
|
279
|
+
this.pulsingTimeout = window.setTimeout(() => {
|
|
280
|
+
this.pulsing = false;
|
|
281
|
+
// this.cdr.detectChanges()
|
|
282
|
+
this.pulsingTimeout = undefined;
|
|
283
|
+
}, 750);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
TiledSelectTileComponent.decorators = [
|
|
287
|
+
{ type: Component, args: [{
|
|
288
|
+
selector: 'seam-tiled-select-tile',
|
|
289
|
+
template: "<button\n class=\"btn tiled-select-tile-panel\"\n [disabled]=\"disabled\"\n [class.grid]=\"layout === 'grid'\"\n [class.list]=\"layout === 'list'\"\n [class.selected]=\"selectable && selected\"\n [class.selectable]=\"selectable\"\n [class.no-grayscale]=\"!grayscaleOnDisable\"\n (click)=\"onTileClick($event)\"\n [@pulse]=\"pulsing ? true : false\"\n [attr.data-category]=\"name\"\n [attr.title]=\"showLabel ? '' : label\"\n type=\"button\">\n <div class=\"tiled-select-tile-panel--content\">\n <seam-tiled-select-tile-icon\n class=\"tiled-select-tile-panel--icon\"\n [class.invisible]=\"!icon\"\n [icon]=\"icon\"\n [iconClass]=\"iconClass\"\n [layout]=\"layout\"\n [grayscaleOnDisable]=\"grayscaleOnDisable\"\n [disabled]=\"disabled\">\n </seam-tiled-select-tile-icon>\n <div class=\"tiled-select-tile-panel--label-container\" *ngIf=\"showLabel\">\n <span *ngIf=\"!labelTpl\" class=\"tiled-select-tile-panel--label\">{{ label }}</span>\n <ng-template *ngIf=\"labelTpl\"\n [ngTemplateOutlet]=\"labelTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: label, label: label }\">\n </ng-template>\n </div>\n <div *ngIf=\"tileBackdrop\" class=\"selected-backdrop\"\n [class.bg-success]=\"selected\"></div>\n <fa-icon\n *ngIf=\"selected && showSelectedIcon\"\n class=\"tiled-select-tile-panel--selected text-success\"\n [icon]=\"faCheckCircle\"\n size=\"3x\">\n </fa-icon>\n </div>\n <div class=\"tiled-select-tile-panel--overlay\" *ngIf=\"overlayTpl\">\n <ng-template [ngTemplateOutlet]=\"overlayTpl.template\"></ng-template>\n </div>\n</button>\n",
|
|
290
|
+
animations: [
|
|
291
|
+
trigger('pulse', [
|
|
292
|
+
transition('false => true', [
|
|
293
|
+
useAnimation(tilePulse)
|
|
294
|
+
// useAnimation(tileScaleUp)
|
|
295
|
+
]),
|
|
296
|
+
// transition('true => false', [
|
|
297
|
+
// useAnimation(tileScaleDown)
|
|
298
|
+
// ])
|
|
299
|
+
]),
|
|
300
|
+
// trigger('openClose', [
|
|
301
|
+
// state('true', style({ height: '*' })),
|
|
302
|
+
// state('false', style({ height: '0px' })),
|
|
303
|
+
// transition('false <=> true', animate(500))
|
|
304
|
+
// ])
|
|
305
|
+
],
|
|
306
|
+
styles: [":host{display:block}.tiled-select-tile-panel{width:100%;height:100%;box-sizing:border-box;border:1px solid #e6e6e6;background-color:#fff;color:#505050;position:relative;overflow:hidden}.tiled-select-tile-panel:disabled:not(.no-grayscale){filter:grayscale(1)}.tiled-select-tile-panel .grey-fix{visibility:hidden;display:block}.tiled-select-tile-panel.selected{border:1px solid #3c96c8}.tiled-select-tile-panel.selectable:hover:not(:disabled){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);cursor:pointer}.tiled-select-tile-panel.selectable:focus:not(:disabled){outline:none}.tiled-select-tile-panel:not(.selectable){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.tiled-select-tile-panel .tiled-select-tile-panel--content{display:flex;height:100%;width:100%}.tiled-select-tile-panel .tiled-select-tile-panel--content .tiled-select-tile-panel--selected{position:absolute;top:4px;right:4px}.tiled-select-tile-panel .tiled-select-tile-panel--content .selected-backdrop{opacity:.2;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:15px;transition:background-color .2s ease-in-out;pointer-events:none}.tiled-select-tile-panel .tiled-select-tile-panel--overlay{position:absolute;top:0;left:0;bottom:0;right:0}.tiled-select-tile-panel.grid{border-radius:15px;padding:0;margin:0}.tiled-select-tile-panel.grid .tiled-select-tile-panel--content{flex-direction:column}.tiled-select-tile-panel.grid .tiled-select-tile-panel--content .selected-backdrop{border-radius:15px}.tiled-select-tile-panel.grid .tiled-select-tile-panel--label-container{flex:0 0 auto;height:2.5em;line-height:1em}.tiled-select-tile-panel.grid .tiled-select-tile-panel--label-container .tiled-select-tile-panel--label{display:block;font-size:90%;padding:0 1em;white-space:normal}@media screen and (max-width:600px){.tiled-select-tile-panel.grid .tiled-select-tile-panel--label-container{height:2rem;line-height:.9em}.tiled-select-tile-panel.grid .tiled-select-tile-panel--label-container .tiled-select-tile-panel--label{font-size:13px;padding:0 .7em}}.tiled-select-tile-panel.list{border-radius:10px;padding:4px}.tiled-select-tile-panel.list .tiled-select-tile-panel--content{flex-direction:row}.tiled-select-tile-panel.list .tiled-select-tile-panel--content .selected-backdrop{border-radius:10px}.tiled-select-tile-panel.list .tiled-select-tile-panel--label-container{display:flex;max-height:100%;flex-direction:column;padding-right:40px}.tiled-select-tile-panel.list .tiled-select-tile-panel--label-container .tiled-select-tile-panel--label{padding:0 6px;text-align:left;margin:auto 0;font-size:80%;white-space:normal}.tiled-select-tile-panel.list .tiled-select-tile-panel--selected ::ng-deep .svg-inline--fa{height:39px}:host(.other-org) .tiled-select-tile-panel.grid{border:0}:host(.other-org) .tiled-select-tile-panel.grid.selectable:hover:not(:disabled){box-shadow:0 0}:host(.other-org) .tiled-select-tile-panel.grid.selectable:hover:not(:disabled) .tiled-select-tile-panel--label-container{text-decoration:underline}:host(.other-org) .tiled-select-tile-panel.grid .tiled-select-tile-panel--icon,:host(.other-org) .tiled-select-tile-panel.grid .tiled-select-tile-panel--selected.text-success{display:none}:host(.other-org) .tiled-select-tile-panel.grid .tiled-select-tile-panel--label-container{height:auto;color:#357ebd}:host(.other-org) .tiled-select-tile-panel.grid .tiled-select-tile-panel--label{padding:.5rem 1rem}"]
|
|
307
|
+
},] }
|
|
308
|
+
];
|
|
309
|
+
TiledSelectTileComponent.ctorParameters = () => [
|
|
310
|
+
{ type: ChangeDetectorRef }
|
|
311
|
+
];
|
|
312
|
+
TiledSelectTileComponent.propDecorators = {
|
|
313
|
+
pulseAnimationState: [{ type: HostBinding, args: ['@pulse',] }],
|
|
314
|
+
layout: [{ type: Input }],
|
|
315
|
+
name: [{ type: Input }],
|
|
316
|
+
label: [{ type: Input }],
|
|
317
|
+
icon: [{ type: Input }],
|
|
318
|
+
disabled: [{ type: Input }],
|
|
319
|
+
selected: [{ type: Input }],
|
|
320
|
+
tileBackdrop: [{ type: Input }],
|
|
321
|
+
selectable: [{ type: Input }],
|
|
322
|
+
grayscaleOnDisable: [{ type: Input }],
|
|
323
|
+
showLabel: [{ type: Input }],
|
|
324
|
+
showSelectedIcon: [{ type: Input }],
|
|
325
|
+
iconClass: [{ type: Input }],
|
|
326
|
+
overlayTpl: [{ type: Input }],
|
|
327
|
+
activated: [{ type: Output }],
|
|
328
|
+
labelTpl: [{ type: ContentChild, args: [TiledSelectTileLabelTplDirective, { static: true },] }]
|
|
329
|
+
};
|
|
330
|
+
__decorate([
|
|
331
|
+
InputBoolean()
|
|
332
|
+
], TiledSelectTileComponent.prototype, "disabled", void 0);
|
|
333
|
+
__decorate([
|
|
334
|
+
InputBoolean()
|
|
335
|
+
], TiledSelectTileComponent.prototype, "selected", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
InputBoolean()
|
|
338
|
+
], TiledSelectTileComponent.prototype, "tileBackdrop", void 0);
|
|
339
|
+
__decorate([
|
|
340
|
+
InputBoolean()
|
|
341
|
+
], TiledSelectTileComponent.prototype, "selectable", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
InputBoolean()
|
|
344
|
+
], TiledSelectTileComponent.prototype, "grayscaleOnDisable", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
InputBoolean()
|
|
347
|
+
], TiledSelectTileComponent.prototype, "showLabel", void 0);
|
|
348
|
+
__decorate([
|
|
349
|
+
InputBoolean()
|
|
350
|
+
], TiledSelectTileComponent.prototype, "showSelectedIcon", void 0);
|
|
351
|
+
|
|
352
|
+
class TiledSelectTileIconTplDirective {
|
|
353
|
+
constructor(template) {
|
|
354
|
+
this.template = template;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
TiledSelectTileIconTplDirective.decorators = [
|
|
358
|
+
{ type: Directive, args: [{
|
|
359
|
+
selector: '[seamTiledSelectTileIconTpl]',
|
|
360
|
+
exportAs: 'seamTiledSelectTileIconTpl'
|
|
361
|
+
},] }
|
|
362
|
+
];
|
|
363
|
+
TiledSelectTileIconTplDirective.ctorParameters = () => [
|
|
364
|
+
{ type: TemplateRef }
|
|
365
|
+
];
|
|
366
|
+
|
|
367
|
+
const needToFix = /(MSIE 10)|(Trident.*rv:11\.0)|( Edge\/[\d\.]+$)/.test(navigator.userAgent);
|
|
368
|
+
class TiledSelectTileIconComponent {
|
|
369
|
+
constructor() {
|
|
370
|
+
this.needToFix = needToFix;
|
|
371
|
+
this._layout = 'grid';
|
|
372
|
+
this.grayscaleOnDisable = false;
|
|
373
|
+
this.disabled = false;
|
|
374
|
+
}
|
|
375
|
+
get _cssClassGrid() { return this.layout === 'grid'; }
|
|
376
|
+
get _cssClassList() { return this.layout === 'list'; }
|
|
377
|
+
set layout(value) { this._layout = value || 'grid'; }
|
|
378
|
+
get layout() { return this._layout; }
|
|
379
|
+
get icon() { return this._iconUrl || this._iconObj; }
|
|
380
|
+
set icon(value) {
|
|
381
|
+
if (typeof value === 'string') {
|
|
382
|
+
this._iconUrl = value;
|
|
383
|
+
this._iconObj = undefined;
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
this._iconUrl = undefined;
|
|
387
|
+
this._iconObj = value;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
ngOnInit() { }
|
|
391
|
+
}
|
|
392
|
+
TiledSelectTileIconComponent.decorators = [
|
|
393
|
+
{ type: Component, args: [{
|
|
394
|
+
selector: 'seam-tiled-select-tile-icon',
|
|
395
|
+
template: "<ng-container *ngIf=\"iconTpl; else noIconTpl\">\n <ng-template\n [ngTemplateOutlet]=\"iconTpl.template\"\n [ngTemplateOutletContext]=\"{ $implicit: icon, icon: icon }\">\n </ng-template>\n</ng-container>\n<ng-template #noIconTpl>\n\n <fa-icon *ngIf=\"_iconObj\"\n class=\"tiled-select-tile-icon--fa {{ iconClass }}\"\n [icon]=\"_iconObj\"></fa-icon>\n\n <ng-container *ngIf=\"_iconUrl\">\n <!-- Partial fix for IE greyscale -->\n <ng-container *ngIf=\"needToFix\">\n <ng-container *ngIf=\"disabled && grayscaleOnDisable\">\n <span class=\"grayscale-fix\" style=\"display: inline-block; position: relative;\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" id=\"svgroot\" style=\"position: absolute; left: 0; right: 0;\" viewBox=\"0 0 48 48\" width=\"100%\" height=\"100%\">\n <defs><filter id=\"gray\"><feColorMatrix type=\"matrix\" values=\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\" /></filter></defs>\n <image filter=\"url("#gray")\" preserveAspectRatio=\"none meet\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n [attr.xlink:href]=\"_iconUrl\" />\n </svg>\n <img class=\"tiled-select-tile-panel--icon-img {{ iconClass }}\" style=\"display: block; visibility: hidden;\" alt=\"Icon\" [src]=\"_iconUrl\">\n </span>\n </ng-container>\n <ng-container *ngIf=\"!disabled\">\n <img class=\"tiled-select-tile-panel--icon-img {{ iconClass }}\" [src]=\"_iconUrl\" alt=\"Icon\">\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!needToFix\">\n <img class=\"tiled-select-tile-panel--icon-img {{ iconClass }}\" [src]=\"_iconUrl\" alt=\"Icon\">\n </ng-container>\n </ng-container>\n\n</ng-template>\n",
|
|
396
|
+
styles: [":host{display:block;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}:host.grid{flex:1 1 auto;margin:0 auto;display:flex;align-items:center;width:100%}:host.grid .tiled-select-tile-panel--icon-img{width:100%;max-width:75px;max-height:75px;margin:0 auto}:host.grid .tiled-select-tile-panel--icon-img[src$=\".svg\"]{height:100%}:host.grid>.grayscale-fix{max-width:75px;max-height:75px;margin:0 auto}:host.list{border:1px solid #e6e6e6;border-radius:8px;min-width:39px;width:39px;min-height:39px;height:39px;padding:1px;align-items:center;display:flex}:host.list img{max-width:100%;max-height:100%;margin:0 auto}.grey-fix{visibility:hidden;display:block}.tiled-select-tile-icon--fa{height:100%;display:flex;flex-direction:row;justify-content:center;text-align:center;width:100%;padding:2px}.tiled-select-tile-icon--fa ::ng-deep .svg-inline--fa{max-width:100%;height:100%;width:100%}"]
|
|
397
|
+
},] }
|
|
398
|
+
];
|
|
399
|
+
TiledSelectTileIconComponent.ctorParameters = () => [];
|
|
400
|
+
TiledSelectTileIconComponent.propDecorators = {
|
|
401
|
+
_cssClassGrid: [{ type: HostBinding, args: ['class.grid',] }],
|
|
402
|
+
_cssClassList: [{ type: HostBinding, args: ['class.list',] }],
|
|
403
|
+
layout: [{ type: Input }],
|
|
404
|
+
grayscaleOnDisable: [{ type: Input }],
|
|
405
|
+
disabled: [{ type: Input }],
|
|
406
|
+
iconClass: [{ type: Input }],
|
|
407
|
+
icon: [{ type: Input }],
|
|
408
|
+
iconTpl: [{ type: ContentChild, args: [TiledSelectTileIconTplDirective, { static: true },] }]
|
|
409
|
+
};
|
|
410
|
+
__decorate([
|
|
411
|
+
InputBoolean()
|
|
412
|
+
], TiledSelectTileIconComponent.prototype, "grayscaleOnDisable", void 0);
|
|
413
|
+
__decorate([
|
|
414
|
+
InputBoolean()
|
|
415
|
+
], TiledSelectTileIconComponent.prototype, "disabled", void 0);
|
|
416
|
+
|
|
417
|
+
class TheSeamTiledSelectModule {
|
|
418
|
+
}
|
|
419
|
+
TheSeamTiledSelectModule.decorators = [
|
|
420
|
+
{ type: NgModule, args: [{
|
|
421
|
+
imports: [
|
|
422
|
+
CommonModule,
|
|
423
|
+
FontAwesomeModule
|
|
424
|
+
],
|
|
425
|
+
declarations: [
|
|
426
|
+
TiledSelectComponent,
|
|
427
|
+
TiledSelectTileComponent,
|
|
428
|
+
TiledSelectTileOverlayDirective,
|
|
429
|
+
TiledSelectTileIconComponent,
|
|
430
|
+
TiledSelectTileIconTplDirective,
|
|
431
|
+
TiledSelectTileLabelTplDirective
|
|
432
|
+
],
|
|
433
|
+
exports: [
|
|
434
|
+
TiledSelectComponent,
|
|
435
|
+
TiledSelectTileComponent,
|
|
436
|
+
TiledSelectTileOverlayDirective,
|
|
437
|
+
TiledSelectTileIconTplDirective,
|
|
438
|
+
TiledSelectTileLabelTplDirective
|
|
439
|
+
]
|
|
440
|
+
},] }
|
|
441
|
+
];
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Generated bundle index. Do not edit.
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
export { TILED_SELECT_VALUE_ACCESSOR, TheSeamTiledSelectModule, TiledSelectComponent, TiledSelectTileComponent, TiledSelectTileIconComponent, TiledSelectTileIconTplDirective, TiledSelectTileLabelTplDirective, TiledSelectTileOverlayDirective, slideEnterAnimation, tilePulse, tileScaleDown, tileScaleUp };
|
|
448
|
+
//# sourceMappingURL=theseam-ui-common-tiled-select.js.map
|