@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-icon.js","sources":["../../../projects/ui-common/icon/icon-btn/icon-btn.component.ts","../../../projects/ui-common/icon/icon-notification/icon-notification.component.ts","../../../projects/ui-common/icon/icon/icon.component.ts","../../../projects/ui-common/icon/icon.module.ts","../../../projects/ui-common/icon/utils/file-extension-icon.ts","../../../projects/ui-common/icon/utils/get-known-icon.ts","../../../projects/ui-common/icon/theseam-ui-common-icon.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion'\nimport { Component, DoCheck, ElementRef, HostBinding, Input, OnInit, Renderer2 } from '@angular/core'\n\nimport { SizeProp } from '@fortawesome/fontawesome-svg-core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport type { ThemeTypes } from '@theseam/ui-common/models'\n\nimport type { SeamIcon } from '../icon'\nimport type { TheSeamIconType } from '../icon/icon.component'\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'button[seamIconBtn]',\n template: `\n <seam-icon *ngIf=\"icon\"\n [grayscaleOnDisable]=\"grayscaleOnDisable\"\n [disabled]=\"disabled\"\n [iconClass]=\"iconClass\"\n [icon]=\"icon\"\n [size]=\"size\"\n [showDefaultOnError]=\"showDefaultOnError\"\n [iconType]=\"iconType\">\n </seam-icon>\n <ng-content select=\".sr-only,seam-icon-notification\"></ng-content>\n `,\n styles: [],\n // tslint:disable-next-line:use-host-property-decorator\n host: {\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n },\n})\nexport class IconBtnComponent implements OnInit, DoCheck {\n static ngAcceptInputType_grayscaleOnDisable: BooleanInput\n static ngAcceptInputType_disabled: BooleanInput\n static ngAcceptInputType_showDefaultOnError: BooleanInput\n\n /** Toggles whether the img/icon will attempt to be grayscale when disabled is true. */\n @Input() @InputBoolean() grayscaleOnDisable: boolean = true\n\n /** Toggles the img/icon to grayscale if `grayscaleOnDisable` is true. */\n @Input() @InputBoolean() disabled: boolean = false\n\n /**\n * Placed on the `.seam-icon--fa` and `seam-icon--img` elements.\n */\n @Input() iconClass: string | undefined | null\n\n /**\n * The icon to display.\n *\n * If the input icon is a string an `img` element will be used with icon as `src`.\n * If the input is not a string it will be assumed to be a font-awesome IconProp object.\n */\n @Input() icon: SeamIcon | undefined | null\n\n /**\n * NOTE: Only works for fa-icon for now.\n */\n @Input() size: SizeProp | undefined | null\n\n /**\n * Toggles whether an image that has thrown the `onerror` event should show\n * the `defaultIcon` instead.\n */\n @Input() @InputBoolean() showDefaultOnError: boolean = false\n\n /**\n * Shown if icon is not set or if showDefaultOnError is true and img has thrown an error.\n *\n * NOTE: Not supported for icon-btn yet.\n */\n // @Input() defaultIcon: SeamIcon\n\n @Input() iconType: TheSeamIconType | undefined | null = 'image-fill'\n\n @HostBinding('class.p-0') _cssPadding0 = true\n\n @HostBinding('class.btn') _btn = true\n @HostBinding('class.text-nowrap') _textNoWrap = true\n\n @HostBinding('class.btn-default') get _btnDefault() { return this.isBtnTheme('default') }\n @HostBinding('class.btn-primary') get _btnPrimary() { return this.isBtnTheme('primary') }\n @HostBinding('class.btn-secondary') get _btnSecondary() { return this.isBtnTheme('secondary') }\n @HostBinding('class.btn-success') get _btnSuccess() { return this.isBtnTheme('success') }\n @HostBinding('class.btn-danger') get _btnDanger() { return this.isBtnTheme('danger') }\n @HostBinding('class.btn-warning') get _btnWarning() { return this.isBtnTheme('warning') }\n @HostBinding('class.btn-info') get _btnInfo() { return this.isBtnTheme('info') }\n @HostBinding('class.btn-light') get _btnLight() { return this.isBtnTheme('light') }\n @HostBinding('class.btn-dark') get _btnDark() { return this.isBtnTheme('dark') }\n @HostBinding('class.btn-lightgray') get _btnLightGray() { return this.isBtnTheme('lightgray') }\n\n @HostBinding('class.btn-sm') get _btnSizeSm() { return this.btnSize === 'sm' }\n @HostBinding('class.btn-lg') get _btnSizeLg() { return this.btnSize === 'lg' }\n\n @Input() btnTheme: ThemeTypes | undefined | null = 'default'\n @Input() badgeTheme: ThemeTypes | undefined | null = 'light'\n @Input() badgeText: string | undefined | null = ''\n\n @Input() btnSize: 'sm' | 'lg' | undefined | null\n\n @Input()\n get type(): string | undefined | null { return this._type }\n set type(value: string | undefined | null) {\n this._type = value\n }\n private _type: string | undefined | null\n\n @Input()\n get role(): string | undefined | null { return this._role }\n set role(value: string | undefined | null) {\n this._role = value\n }\n private _role: string | undefined | null\n\n constructor(\n private _elementRef: ElementRef<HTMLButtonElement | HTMLAnchorElement>,\n private _renderer: Renderer2\n ) { }\n\n ngOnInit() { }\n\n ngDoCheck() {\n if (this._isButton()) {\n this._renderer.setAttribute(this._elementRef.nativeElement, 'type', this._type || 'button')\n } else if (this._isAnchor()) {\n this._renderer.setAttribute(this._elementRef.nativeElement, 'role', this._role || 'button')\n }\n }\n\n public isBtnTheme(type: ThemeTypes): boolean {\n return this.btnTheme === type\n }\n\n protected _isButton() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n\n protected _isAnchor() {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n\n}\n","import { animate, animation, keyframes, style, transition, trigger, useAnimation } from '@angular/animations'\nimport { BooleanInput } from '@angular/cdk/coercion'\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core'\n\nimport { SizeProp } from '@fortawesome/fontawesome-svg-core'\nimport { faCircle } from '@fortawesome/free-solid-svg-icons'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\nimport { SeamIcon } from '../icon'\nimport type { TheSeamIconType } from '../icon/icon.component'\n\nexport const pulseAnimation = animation([\n style({ transform: 'scale(1)' }),\n animate(\n '{{ timings }}',\n keyframes([\n style({ transform: 'scale(1)', offset: 0 }),\n style({ transform: 'scale({{ scale }})', offset: 0.5 }),\n style({ transform: 'scale(1)', offset: 1 })\n ])\n )\n])\n\n@Component({\n selector: 'seam-icon-notification',\n template: `\n <seam-icon *ngIf=\"icon && !hidden\" [@counterChange]=\"count\"\n [grayscaleOnDisable]=\"grayscaleOnDisable\"\n [disabled]=\"disabled\"\n [iconClass]=\"iconClass\"\n [icon]=\"icon\"\n [size]=\"size\"\n [showDefaultOnError]=\"showDefaultOnError\"\n [iconType]=\"iconType\">\n </seam-icon>\n <ng-content select=\".sr-only\"></ng-content>\n `,\n styles: [`\n :host {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n }\n\n seam-icon {\n position: absolute;\n top: 4px;\n right: 4px;\n width: 25% !important;\n height: 25% !important;\n min-width: 15px;\n min-height: 15px;\n }\n `],\n // tslint:disable-next-line:use-host-property-decorator\n host: {\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n },\n animations: [\n trigger('counterChange', [\n transition(\n ':increment',\n useAnimation(pulseAnimation, {\n params: {\n timings: '400ms ease-in-out',\n scale: 1.2\n }\n })\n )\n ])\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class IconNotificationComponent implements OnInit {\n static ngAcceptInputType_hidden: BooleanInput\n static ngAcceptInputType_grayscaleOnDisable: BooleanInput\n static ngAcceptInputType_disabled: BooleanInput\n static ngAcceptInputType_showDefaultOnError: BooleanInput\n\n @Input() count: number | undefined | null\n\n @Input() @InputBoolean() hidden = false\n\n /** Toggles whether the img/icon will attempt to be grayscale when disabled is true. */\n @Input() @InputBoolean() grayscaleOnDisable = true\n\n /** Toggles the img/icon to grayscale if `grayscaleOnDisable` is true. */\n @Input() @InputBoolean() disabled = false\n\n /**\n * Placed on the `.seam-icon--fa` and `seam-icon--img` elements.\n */\n @Input() iconClass: string | undefined | null\n\n /**\n * The icon to display.\n *\n * If the input icon is a string an `img` element will be used with icon as `src`.\n * If the input is not a string it will be assumed to be a font-awesome IconProp object.\n */\n @Input() icon: SeamIcon | undefined | null = faCircle\n\n /**\n * Toggles whether an image that has thrown the `onerror` event should show\n * the `defaultIcon` instead.\n */\n @Input() @InputBoolean() showDefaultOnError = false\n\n /**\n * Shown if icon is not set or if showDefaultOnError is true and img has thrown an error.\n *\n * NOTE: Not supported for icon-notification yet.\n */\n // @Input() defaultIcon: SeamIcon\n\n /**\n * NOTE: Only works for fa-icon for now.\n */\n @Input() size: SizeProp | undefined | null\n\n @Input() iconType: TheSeamIconType | undefined | null = 'image-fill'\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>\n ) { }\n\n ngOnInit() {\n if (this._elementRef && this._elementRef.nativeElement && this._elementRef.nativeElement.parentElement) {\n this._elementRef.nativeElement.parentElement.style.position = 'relative'\n }\n }\n\n // ngDoCheck() {}\n\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { Component, HostBinding, Input } from '@angular/core'\n\nimport { IconProp, SizeProp } from '@fortawesome/fontawesome-svg-core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\nimport { SeamIcon } from '../icon'\n\n//\n// TODO: Ensure all inputs correctly update the state whenever changed, not just\n// on initial load.\n//\n\n// Browsers that do not support css grayscale filter.\nconst needToFix = /(MSIE 10)|(Trident.*rv:11\\.0)|( Edge\\/[\\d\\.]+$)/.test(navigator.userAgent)\n\nexport type TheSeamIconType = 'borderless-styled-square' | 'styled-square' | 'image-fill' | undefined\n\n@Component({\n selector: 'seam-icon',\n templateUrl: './icon.component.html',\n styleUrls: ['./icon.component.scss']\n})\nexport class IconComponent {\n static ngAcceptInputType_grayscaleOnDisable: BooleanInput\n static ngAcceptInputType_disabled: BooleanInput\n static ngAcceptInputType_showDefaultOnError: BooleanInput\n\n needToFix = needToFix\n\n /** Toggles whether the img/icon will attempt to be grayscale when disabled is true. */\n @Input() @InputBoolean() grayscaleOnDisable: boolean = true\n\n /** Toggles the img/icon to grayscale if `grayscaleOnDisable` is true. */\n @Input() @InputBoolean() disabled: boolean = false\n\n /**\n * Placed on the `.seam-icon--fa` and `seam-icon--img` elements.\n */\n @Input() iconClass: string | undefined | null\n\n /**\n * The icon to display.\n *\n * If the input icon is a string an `img` element will be used with icon as `src`.\n * If the input is not a string it will be assumed to be a font-awesome IconProp object.\n */\n @Input()\n get icon(): SeamIcon | undefined | null { return this._iconUrl || this._iconObj }\n set icon(value: SeamIcon | undefined | null) {\n if (typeof value === 'string') {\n this._iconUrl = value\n this._iconObj = undefined\n } else {\n this._iconUrl = undefined\n this._iconObj = value\n }\n\n this._iconUrlBeforeError = undefined\n this._iconObjBeforeError = undefined\n\n if (!this._iconUrl && !this._iconObj) {\n this._iconUrl = this._defaultIconUrl\n this._iconObj = this._defaultIconObj\n }\n }\n\n public _iconUrl: string | undefined | null\n public _iconObj: IconProp | undefined | null\n\n private _iconUrlBeforeError: string | undefined | null\n private _iconObjBeforeError: IconProp | undefined | null\n\n /**\n * NOTE: Only works for fa-icon for now.\n */\n @Input() size: SizeProp | undefined | null\n\n /**\n * Toggles whether an image that has thrown the `onerror` event should show\n * the `defaultIcon` instead.\n */\n @Input()\n get showDefaultOnError(): boolean { return this._showDefaultOnError }\n set showDefaultOnError(value: boolean) {\n this._showDefaultOnError = coerceBooleanProperty(value)\n if (this._hasError) {\n if (this._iconUrlBeforeError || this._iconObjBeforeError) {\n this._iconUrl = this._iconUrlBeforeError\n this._iconObj = this._iconObjBeforeError\n this._iconUrlBeforeError = undefined\n this._iconObjBeforeError = undefined\n } else if (this._showDefaultOnError) {\n this._iconUrl = this._defaultIconUrl\n this._iconObj = this._defaultIconObj\n }\n }\n }\n private _showDefaultOnError = false\n\n /**\n * Shown if icon is not set or if showDefaultOnError is true and img has thrown an error.\n */\n @Input()\n get defaultIcon(): SeamIcon | undefined | null { return this._defaultIconUrl || this._defaultIconObj }\n set defaultIcon(value: SeamIcon | undefined | null) {\n if (typeof value === 'string') {\n this._defaultIconUrl = value\n this._defaultIconObj = undefined\n } else {\n this._defaultIconUrl = undefined\n this._defaultIconObj = value\n }\n\n if (!this._defaultIconUrl && !this._defaultIconObj) {\n this._iconUrl = this._iconUrlBeforeError\n this._iconObj = this._iconObjBeforeError\n }\n\n if (!this._iconUrl && !this._iconObj) {\n this._iconUrl = this._defaultIconUrl\n this._iconObj = this._defaultIconObj\n }\n }\n\n public _defaultIconUrl: string | undefined | null\n public _defaultIconObj: IconProp | undefined | null\n\n @Input() iconType: TheSeamIconType | undefined | null\n\n @HostBinding('attr.icon-type')\n get _iconTypeAttr() { return this.iconType }\n\n private _hasError = false\n\n public _imgError(event: ErrorEvent): void {\n this._hasError = true\n if (this._showDefaultOnError && (this._defaultIconUrl || this._defaultIconObj)) {\n this._iconUrlBeforeError = this._iconUrl\n this._iconObjBeforeError = this._iconObj\n this._iconUrl = this._defaultIconUrl\n this._iconObj = this._defaultIconObj\n }\n }\n\n @HostBinding('class.disabled')\n get _cssDisabled() { return this.disabled || null }\n\n @HostBinding('class.no-grayscale')\n get _cssNoGreyscale() { return !this.grayscaleOnDisable }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\n\nimport { IconBtnComponent } from './icon-btn/icon-btn.component'\nimport { IconNotificationComponent } from './icon-notification/icon-notification.component'\nimport { IconComponent } from './icon/icon.component'\n\n@NgModule({\n declarations: [\n IconComponent,\n IconBtnComponent,\n IconNotificationComponent\n ],\n imports: [\n CommonModule,\n FontAwesomeModule\n ],\n exports: [\n IconComponent,\n IconBtnComponent,\n IconNotificationComponent\n ]\n})\nexport class TheSeamIconModule { }\n","import {\n faFile,\n faFileAlt,\n faFileArchive,\n faFileExcel,\n faFileImage,\n faFilePdf,\n faFilePowerpoint,\n faFileWord\n} from '@fortawesome/free-regular-svg-icons'\n\nimport { SeamIcon } from '../icon'\n\nconst FILE_EXTENSION_ICONS: { [type: string]: SeamIcon } = {\n 'pdf': faFilePdf,\n 'doc': faFileWord,\n 'docx': faFileWord,\n 'xls': faFileExcel,\n 'xlsx': faFileExcel,\n 'gif': faFileImage,\n 'jpg': faFileImage,\n 'jpeg': faFileImage,\n 'png': faFileImage,\n 'zip': faFileArchive,\n 'ppt': faFilePowerpoint,\n 'pptx': faFilePowerpoint,\n 'txt': faFileAlt,\n 'json': faFileAlt\n}\n\nexport const DEFAULT_FILE_EXTENSION_ICON: SeamIcon = faFile\n\nexport function fileExtensionIcon(extension: string | null | undefined, defaultIfNotFound: boolean = true): SeamIcon | undefined {\n if (!extension) {\n return defaultIfNotFound ? DEFAULT_FILE_EXTENSION_ICON : undefined\n }\n\n let ext = extension\n if (ext.charAt(0) === '.') {\n ext = ext.substr(1)\n }\n\n const icon = FILE_EXTENSION_ICONS[ext]\n if (!icon && defaultIfNotFound) {\n return DEFAULT_FILE_EXTENSION_ICON\n }\n return icon\n}\n","import {\n faAddressCard,\n faBell,\n faBookmark,\n faCheckCircle,\n faClock,\n faComment,\n faEnvelope,\n faEnvelopeOpen,\n faFile,\n faFileAlt,\n faFileArchive,\n faFileAudio,\n faFileCode,\n faFileExcel,\n faFileImage,\n faFilePdf,\n faFilePowerpoint,\n faFileVideo,\n faFileWord,\n faFolder,\n faFolderOpen,\n faImage,\n faImages,\n faQuestionCircle,\n faSave,\n faStickyNote,\n faTimesCircle,\n faTrashAlt,\n faUser,\n faUserCircle\n} from '@fortawesome/free-regular-svg-icons'\nimport {\n faBan,\n faChartArea,\n faChartBar,\n faChartLine,\n faCheck,\n faCloudUploadAlt,\n faCog,\n faEdit,\n faExclamation,\n faExclamationCircle,\n faExclamationTriangle,\n faExternalLinkSquareAlt,\n faFileContract,\n faFileCsv,\n faFileDownload,\n faFileExport,\n faFileImport,\n faFileInvoice,\n faFileInvoiceDollar,\n faFileMedical,\n faFileMedicalAlt,\n faFilePrescription,\n faFileSignature,\n faFileUpload,\n faInbox,\n faInfoCircle,\n faLock,\n faLockOpen,\n faPrint,\n faReceipt,\n faReply,\n faShare,\n faSignature,\n faTimes,\n faTrash,\n faUserCheck,\n faUserEdit,\n faUserPlus,\n faUsers,\n faUserTimes\n} from '@fortawesome/free-solid-svg-icons'\n\nimport { SeamIcon } from '../icon'\n\n// TODO: Decide a good way to do this, so that we don't have to import full icon\n// libraries, but still provide icon choices to use from a string. One way could\n// be to define a dictionary of app icons that we can use that map a unique\n// string to an icon definition.\nconst knownIcons: { [key: string]: SeamIcon } = {\n 'faAddressCard': faAddressCard,\n 'faBan': faBan,\n 'faBell': faBell,\n 'faBookmark': faBookmark,\n 'faChartLine': faChartLine,\n 'faChartArea': faChartArea,\n 'faChartBar': faChartBar,\n 'faCheck': faCheck,\n 'faCheckCircle': faCheckCircle,\n 'faClock': faClock,\n 'faCloudUploadAlt': faCloudUploadAlt,\n 'faComment': faComment,\n 'faCog': faCog,\n 'faEdit': faEdit,\n 'faEnvelope': faEnvelope,\n 'faEnvelopeOpen': faEnvelopeOpen,\n 'faExclamation': faExclamation,\n 'faExclamationCircle': faExclamationCircle,\n 'faExclamationTriangle': faExclamationTriangle,\n 'faExternalLinkSquareAlt': faExternalLinkSquareAlt,\n 'faFile': faFile,\n 'faFileAlt': faFileAlt,\n 'faFileArchive': faFileArchive,\n 'faFileAudio': faFileAudio,\n 'faFileCode': faFileCode,\n 'faFileContract': faFileContract,\n 'faFileCsv': faFileCsv,\n 'faFileDownload': faFileDownload,\n 'faFileExcel': faFileExcel,\n 'faFileExport': faFileExport,\n 'faFileImage': faFileImage,\n 'faFileImport': faFileImport,\n 'faFileInvoice': faFileInvoice,\n 'faFileInvoiceDollar': faFileInvoiceDollar,\n 'faFileMedical': faFileMedical,\n 'faFileMedicalAlt': faFileMedicalAlt,\n 'faFilePdf': faFilePdf,\n 'faFilePowerpoint': faFilePowerpoint,\n 'faFilePrescription': faFilePrescription,\n 'faFileSignature': faFileSignature,\n 'faFileUpload': faFileUpload,\n 'faFileVideo': faFileVideo,\n 'faFileWord': faFileWord,\n 'faFolder': faFolder,\n 'faFolderOpen': faFolderOpen,\n 'faImage': faImage,\n 'faImages': faImages,\n 'faInbox': faInbox,\n 'faInfoCircle': faInfoCircle,\n 'faLock': faLock,\n 'faLockOpen': faLockOpen,\n 'faPrint': faPrint,\n 'faQuestionCircle': faQuestionCircle,\n 'faReceipt': faReceipt,\n 'faReply': faReply,\n 'faSave': faSave,\n 'faShare': faShare,\n 'faSignature': faSignature,\n 'faStickyNote': faStickyNote,\n 'faTimes': faTimes,\n 'faTimesCircle': faTimesCircle,\n 'faTrash': faTrash,\n 'faTrashAlt': faTrashAlt,\n 'faUser': faUser,\n 'faUserCheck': faUserCheck,\n 'faUserCircle': faUserCircle,\n 'faUserEdit': faUserEdit,\n 'faUserTimes': faUserTimes,\n 'faUsers': faUsers,\n 'faUserPlus': faUserPlus\n}\n\nexport function getKnownIcon(iconStr: string): SeamIcon | undefined {\n return knownIcons[iconStr]\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { NgModule, Injectable } from '@angular/core';
|
|
4
|
+
import { FlexLayoutModule, MediaObserver } from '@angular/flex-layout';
|
|
5
|
+
import { map, startWith, distinctUntilChanged, shareReplay } from 'rxjs/operators';
|
|
6
|
+
import * as i1 from '@angular/flex-layout/core';
|
|
7
|
+
|
|
8
|
+
// TODO: Make sure the `@angular/flex-layout` breakpoints and bootstrap
|
|
9
|
+
|
|
10
|
+
class TheSeamLayoutModule {
|
|
11
|
+
}
|
|
12
|
+
TheSeamLayoutModule.decorators = [
|
|
13
|
+
{ type: NgModule, args: [{
|
|
14
|
+
declarations: [],
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
FlexLayoutModule
|
|
18
|
+
],
|
|
19
|
+
exports: [
|
|
20
|
+
FlexLayoutModule
|
|
21
|
+
]
|
|
22
|
+
},] }
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
const mediaQueriesMap = {
|
|
26
|
+
'xs': 'screen and (max-width: 599px)',
|
|
27
|
+
'sm': 'screen and (min-width: 600px) and (max-width: 959px)',
|
|
28
|
+
'md': 'screen and (min-width: 960px) and (max-width: 1279px)',
|
|
29
|
+
'lg': 'screen and (min-width: 1280px) and (max-width: 1919px)',
|
|
30
|
+
'xl': 'screen and (min-width: 1920px) and (max-width: 5000px)',
|
|
31
|
+
'lt-sm': 'screen and (max-width: 599px)',
|
|
32
|
+
'lt-md': 'screen and (max-width: 959px)',
|
|
33
|
+
'lt-lg': 'screen and (max-width: 1279px)',
|
|
34
|
+
'lt-xl': 'screen and (max-width: 1919px)',
|
|
35
|
+
'gt-xs': 'screen and (min-width: 600px)',
|
|
36
|
+
'gt-sm': 'screen and (min-width: 960px)',
|
|
37
|
+
'gt-md': 'screen and (min-width: 1280px)',
|
|
38
|
+
'gt-lg': 'screen and (min-width: 1920px)'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* TODO: Find out if the MediaObserver can return an immediate result on load
|
|
42
|
+
* accurately like the native matchMedia. If not switch to another that can or
|
|
43
|
+
* just implement it myself. I would rather use a well tested library for
|
|
44
|
+
* something like that, since it could have a lot of affect on performance.
|
|
45
|
+
*/
|
|
46
|
+
function isMediaQueryActive(query, fallback) {
|
|
47
|
+
if (window && window.matchMedia) {
|
|
48
|
+
const x = window.matchMedia(mediaQueriesMap[query]);
|
|
49
|
+
return x.matches;
|
|
50
|
+
}
|
|
51
|
+
return fallback.isActive(query);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Observable helper for observing a single breakpoint alias with
|
|
55
|
+
* `@angular/flex-layout` MediaObserver.
|
|
56
|
+
*/
|
|
57
|
+
function observeMediaQuery(mediaObserver, alias) {
|
|
58
|
+
// console.log(alias, mediaObserver.isActive(alias), isMediaQueryActive(alias, mediaObserver))
|
|
59
|
+
return mediaObserver.asObservable()
|
|
60
|
+
.pipe(map(_ => mediaObserver.isActive(alias)),
|
|
61
|
+
// startWith(mediaObserver.isActive(alias)),
|
|
62
|
+
startWith(isMediaQueryActive(alias, mediaObserver)), distinctUntilChanged(), shareReplay({ refCount: true, bufferSize: 1 }));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
class TheSeamLayoutService {
|
|
66
|
+
constructor(_media) {
|
|
67
|
+
this._media = _media;
|
|
68
|
+
this.isMobile$ = this.observe('lt-sm');
|
|
69
|
+
}
|
|
70
|
+
observe(alias) {
|
|
71
|
+
return observeMediaQuery(this._media, alias);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
TheSeamLayoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TheSeamLayoutService_Factory() { return new TheSeamLayoutService(i0.ɵɵinject(i1.MediaObserver)); }, token: TheSeamLayoutService, providedIn: "root" });
|
|
75
|
+
TheSeamLayoutService.decorators = [
|
|
76
|
+
{ type: Injectable, args: [{
|
|
77
|
+
providedIn: 'root'
|
|
78
|
+
},] }
|
|
79
|
+
];
|
|
80
|
+
TheSeamLayoutService.ctorParameters = () => [
|
|
81
|
+
{ type: MediaObserver }
|
|
82
|
+
];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Generated bundle index. Do not edit.
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
export { TheSeamLayoutModule, TheSeamLayoutService, observeMediaQuery };
|
|
89
|
+
//# sourceMappingURL=theseam-ui-common-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theseam-ui-common-layout.js","sources":["../../../projects/ui-common/layout/breakpoint-aliases.ts","../../../projects/ui-common/layout/layout.module.ts","../../../projects/ui-common/layout/observe-media-query.ts","../../../projects/ui-common/layout/layout.service.ts","../../../projects/ui-common/layout/theseam-ui-common-layout.ts"],"sourcesContent":["// TODO: Make sure the `@angular/flex-layout` breakpoints and bootstrap\n// breakpoints work the same.\n//\n// I like the more spread-out ranges in '@angular/flex-layout', but since our\n// styles are mostly based on bootstrap it may be worth it to drop down closer\n// to the bootstrap breakpoints.\n//\n// Another option is to create new aliases to blend a mix between them, if it\n// doesn't add to much complexity.\n\n/**\n * | breakpoint | mediaQuery |\n * |------------|---------------------------------------------------------|\n * | xs | 'screen and (max-width: 599px)' |\n * | sm | 'screen and (min-width: 600px) and (max-width: 959px)' |\n * | md | 'screen and (min-width: 960px) and (max-width: 1279px)' |\n * | lg | 'screen and (min-width: 1280px) and (max-width: 1919px)'|\n * | xl | 'screen and (min-width: 1920px) and (max-width: 5000px)'|\n * | | |\n * | lt-sm | 'screen and (max-width: 599px)' |\n * | lt-md | 'screen and (max-width: 959px)' |\n * | lt-lg | 'screen and (max-width: 1279px)' |\n * | lt-xl | 'screen and (max-width: 1919px)' |\n * | | |\n * | gt-xs | 'screen and (min-width: 600px)' |\n * | gt-sm | 'screen and (min-width: 960px)' |\n * | gt-md | 'screen and (min-width: 1280px)' |\n * | gt-lg | 'screen and (min-width: 1920px)' |\n */\nexport type MediaQueryAliases =\n // Breakpoint MediaQuery\n 'xs' // 'screen and (max-width: 599px)'\n | 'sm' // 'screen and (min-width: 600px) and (max-width: 959px)'\n | 'md' // 'screen and (min-width: 960px) and (max-width: 1279px)'\n | 'lg' // 'screen and (min-width: 1280px) and (max-width: 1919px)'\n | 'xl' // 'screen and (min-width: 1920px) and (max-width: 5000px)'\n | 'lt-sm' // 'screen and (max-width: 599px)'\n | 'lt-md' // 'screen and (max-width: 959px)'\n | 'lt-lg' // 'screen and (max-width: 1279px)'\n | 'lt-xl' // 'screen and (max-width: 1919px)'\n | 'gt-xs' // 'screen and (min-width: 600px)'\n | 'gt-sm' // 'screen and (min-width: 960px)'\n | 'gt-md' // 'screen and (min-width: 1280px)'\n | 'gt-lg' // 'screen and (min-width: 1920px)'\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { FlexLayoutModule } from '@angular/flex-layout'\n\n@NgModule({\n declarations: [],\n imports: [\n CommonModule,\n FlexLayoutModule\n ],\n exports: [\n FlexLayoutModule\n ]\n})\nexport class TheSeamLayoutModule { }\n","import { MediaObserver } from '@angular/flex-layout'\nimport { Observable } from 'rxjs'\nimport { distinctUntilChanged, map, shareReplay, startWith, tap } from 'rxjs/operators'\n\nimport { MediaQueryAliases } from './breakpoint-aliases'\n\nconst mediaQueriesMap: { [breakpoint: string]: string } = {\n 'xs' : 'screen and (max-width: 599px)',\n 'sm' : 'screen and (min-width: 600px) and (max-width: 959px)',\n 'md' : 'screen and (min-width: 960px) and (max-width: 1279px)',\n 'lg' : 'screen and (min-width: 1280px) and (max-width: 1919px)',\n 'xl' : 'screen and (min-width: 1920px) and (max-width: 5000px)',\n 'lt-sm': 'screen and (max-width: 599px)',\n 'lt-md': 'screen and (max-width: 959px)',\n 'lt-lg': 'screen and (max-width: 1279px)',\n 'lt-xl': 'screen and (max-width: 1919px)',\n 'gt-xs': 'screen and (min-width: 600px)',\n 'gt-sm': 'screen and (min-width: 960px)',\n 'gt-md': 'screen and (min-width: 1280px)',\n 'gt-lg': 'screen and (min-width: 1920px)'\n}\n\n/**\n * TODO: Find out if the MediaObserver can return an immediate result on load\n * accurately like the native matchMedia. If not switch to another that can or\n * just implement it myself. I would rather use a well tested library for\n * something like that, since it could have a lot of affect on performance.\n */\nfunction isMediaQueryActive(query: string, fallback: MediaObserver) {\n if (window && window.matchMedia) {\n const x = window.matchMedia(mediaQueriesMap[query])\n return x.matches\n }\n return fallback.isActive(query)\n}\n\n/**\n * Observable helper for observing a single breakpoint alias with\n * `@angular/flex-layout` MediaObserver.\n */\nexport function observeMediaQuery(\n mediaObserver: MediaObserver,\n alias: MediaQueryAliases\n): Observable<boolean> {\n // console.log(alias, mediaObserver.isActive(alias), isMediaQueryActive(alias, mediaObserver))\n return mediaObserver.asObservable()\n .pipe(\n map(_ => mediaObserver.isActive(alias)),\n // startWith(mediaObserver.isActive(alias)),\n startWith(isMediaQueryActive(alias, mediaObserver)),\n distinctUntilChanged(),\n shareReplay({ refCount: true, bufferSize: 1 })\n )\n}\n","import { inject, Injectable, InjectionToken } from '@angular/core'\nimport { MediaObserver } from '@angular/flex-layout'\nimport { Observable } from 'rxjs'\n\nimport { MediaQueryAliases } from './breakpoint-aliases'\nimport { observeMediaQuery } from './observe-media-query'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TheSeamLayoutService {\n\n /**\n * Is app a mobile-like size.\n */\n public isMobile$: Observable<boolean>\n\n constructor(\n private _media: MediaObserver\n ) {\n this.isMobile$ = this.observe('lt-sm')\n }\n\n public observe(alias: MediaQueryAliases): Observable<boolean> {\n return observeMediaQuery(this._media, alias)\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAAA;;MCca,mBAAmB;;;YAV/B,QAAQ,SAAC;gBACR,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE;oBACP,YAAY;oBACZ,gBAAgB;iBACjB;gBACD,OAAO,EAAE;oBACP,gBAAgB;iBACjB;aACF;;;ACPD,MAAM,eAAe,GAAqC;IACxD,IAAI,EAAK,+BAA+B;IACxC,IAAI,EAAK,sDAAsD;IAC/D,IAAI,EAAK,uDAAuD;IAChE,IAAI,EAAK,wDAAwD;IACjE,IAAI,EAAK,wDAAwD;IACjE,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,gCAAgC;CAC1C,CAAA;AAED;;;;;;AAMA,SAAS,kBAAkB,CAAC,KAAa,EAAE,QAAuB;IAChE,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,EAAE;QAC/B,MAAM,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAA;QACnD,OAAO,CAAC,CAAC,OAAO,CAAA;KACjB;IACD,OAAO,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AACjC,CAAC;AAED;;;;SAIgB,iBAAiB,CAC/B,aAA4B,EAC5B,KAAwB;;IAGxB,OAAO,aAAa,CAAC,YAAY,EAAE;SAChC,IAAI,CACH,GAAG,CAAC,CAAC,IAAI,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;;IAEvC,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,EACnD,oBAAoB,EAAE,EACtB,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAC/C,CAAA;AACL;;MC3Ca,oBAAoB;IAO/B,YACU,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;QAE7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;KACvC;IAEM,OAAO,CAAC,KAAwB;QACrC,OAAO,iBAAiB,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;KAC7C;;;;YAlBF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;YARQ,aAAa;;;ACDtB;;;;;;"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
2
|
+
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { Component, Input, Injectable, NgModule } from '@angular/core';
|
|
5
|
+
import { ngxLoadingAnimationTypes, NgxLoadingModule } from '@marklb/ngx-loading';
|
|
6
|
+
import { throwError } from 'rxjs';
|
|
7
|
+
import { tap, catchError, finalize } from 'rxjs/operators';
|
|
8
|
+
|
|
9
|
+
const defaultThemeConfig = {
|
|
10
|
+
animationType: ngxLoadingAnimationTypes.threeBounce,
|
|
11
|
+
backdropBackgroundColour: 'rgba(0,0,0,0.3)',
|
|
12
|
+
backdropBorderRadius: '0px',
|
|
13
|
+
primaryColour: '#ffffff',
|
|
14
|
+
secondaryColour: '#ffffff',
|
|
15
|
+
tertiaryColour: '#ffffff'
|
|
16
|
+
};
|
|
17
|
+
const primaryThemeConfig = {
|
|
18
|
+
animationType: ngxLoadingAnimationTypes.threeBounce,
|
|
19
|
+
backdropBackgroundColour: 'rgba(250,250,250,0.2)',
|
|
20
|
+
backdropBorderRadius: '0px',
|
|
21
|
+
primaryColour: 'rgba(53,126,189,0.7)',
|
|
22
|
+
secondaryColour: 'rgba(53,126,189,0.7)',
|
|
23
|
+
tertiaryColour: 'rgba(53,126,189,0.7)'
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
class LoadingComponent {
|
|
27
|
+
constructor() {
|
|
28
|
+
this._theme = defaultThemeConfig;
|
|
29
|
+
}
|
|
30
|
+
set theme(value) {
|
|
31
|
+
if (value === 'primary') {
|
|
32
|
+
this._theme = primaryThemeConfig;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this._theme = defaultThemeConfig;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
ngOnInit() { }
|
|
39
|
+
}
|
|
40
|
+
LoadingComponent.decorators = [
|
|
41
|
+
{ type: Component, args: [{
|
|
42
|
+
selector: 'seam-loading',
|
|
43
|
+
template: "<ngx-loading [show]=\"true\" [config]=\"_theme\"></ngx-loading>\n",
|
|
44
|
+
styles: [":host{display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:9000}"]
|
|
45
|
+
},] }
|
|
46
|
+
];
|
|
47
|
+
LoadingComponent.ctorParameters = () => [];
|
|
48
|
+
LoadingComponent.propDecorators = {
|
|
49
|
+
theme: [{ type: Input }]
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
class TheSeamLoadingOverlayService {
|
|
53
|
+
constructor(_overlay) {
|
|
54
|
+
this._overlay = _overlay;
|
|
55
|
+
this._enabled = false;
|
|
56
|
+
}
|
|
57
|
+
get enabled() {
|
|
58
|
+
return this._enabled;
|
|
59
|
+
}
|
|
60
|
+
toggle(enabled) {
|
|
61
|
+
const enable = enabled === undefined ? !this.enabled : enabled;
|
|
62
|
+
if (enable && !this.enabled) {
|
|
63
|
+
this.enable();
|
|
64
|
+
}
|
|
65
|
+
else if (!enable && this.enabled) {
|
|
66
|
+
this.disable();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
enable() {
|
|
70
|
+
if (this.enabled) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this._overlayRef = this._overlay.create({
|
|
74
|
+
hasBackdrop: false,
|
|
75
|
+
width: '100%',
|
|
76
|
+
height: '100%'
|
|
77
|
+
});
|
|
78
|
+
this._overlayRef.attach(new ComponentPortal(LoadingComponent));
|
|
79
|
+
this._enabled = true;
|
|
80
|
+
}
|
|
81
|
+
disable() {
|
|
82
|
+
var _a;
|
|
83
|
+
if (!this.enabled) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
87
|
+
this._enabled = false;
|
|
88
|
+
}
|
|
89
|
+
while(source) {
|
|
90
|
+
this.enable();
|
|
91
|
+
return source
|
|
92
|
+
.pipe(tap(() => this.disable()), catchError(err => {
|
|
93
|
+
this.disable();
|
|
94
|
+
return throwError(err);
|
|
95
|
+
}), finalize(() => this.disable()));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
TheSeamLoadingOverlayService.decorators = [
|
|
99
|
+
{ type: Injectable }
|
|
100
|
+
];
|
|
101
|
+
TheSeamLoadingOverlayService.ctorParameters = () => [
|
|
102
|
+
{ type: Overlay }
|
|
103
|
+
];
|
|
104
|
+
|
|
105
|
+
// NOTE: Named export used for this because of a function calling bug in the builder.
|
|
106
|
+
const loadingForRoot = NgxLoadingModule.forRoot(defaultThemeConfig);
|
|
107
|
+
class TheSeamLoadingModule {
|
|
108
|
+
}
|
|
109
|
+
TheSeamLoadingModule.decorators = [
|
|
110
|
+
{ type: NgModule, args: [{
|
|
111
|
+
declarations: [LoadingComponent],
|
|
112
|
+
imports: [
|
|
113
|
+
CommonModule,
|
|
114
|
+
OverlayModule,
|
|
115
|
+
PortalModule,
|
|
116
|
+
loadingForRoot
|
|
117
|
+
],
|
|
118
|
+
providers: [
|
|
119
|
+
TheSeamLoadingOverlayService
|
|
120
|
+
],
|
|
121
|
+
exports: [LoadingComponent],
|
|
122
|
+
entryComponents: [LoadingComponent]
|
|
123
|
+
},] }
|
|
124
|
+
];
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Generated bundle index. Do not edit.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
export { LoadingComponent, TheSeamLoadingModule, TheSeamLoadingOverlayService, defaultThemeConfig, loadingForRoot, primaryThemeConfig };
|
|
131
|
+
//# sourceMappingURL=theseam-ui-common-loading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theseam-ui-common-loading.js","sources":["../../../projects/ui-common/loading/loading-themes.ts","../../../projects/ui-common/loading/loading/loading.component.ts","../../../projects/ui-common/loading/loading-overlay.service.ts","../../../projects/ui-common/loading/loading.module.ts","../../../projects/ui-common/loading/theseam-ui-common-loading.ts"],"sourcesContent":["import { ngxLoadingAnimationTypes, NgxLoadingConfig } from '@marklb/ngx-loading'\n\nexport const defaultThemeConfig: NgxLoadingConfig = {\n animationType: ngxLoadingAnimationTypes.threeBounce,\n backdropBackgroundColour: 'rgba(0,0,0,0.3)',\n backdropBorderRadius: '0px',\n primaryColour: '#ffffff',\n secondaryColour: '#ffffff',\n tertiaryColour: '#ffffff'\n}\n\nexport const primaryThemeConfig: NgxLoadingConfig = {\n animationType: ngxLoadingAnimationTypes.threeBounce,\n backdropBackgroundColour: 'rgba(250,250,250,0.2)',\n backdropBorderRadius: '0px',\n primaryColour: 'rgba(53,126,189,0.7)',\n secondaryColour: 'rgba(53,126,189,0.7)',\n tertiaryColour: 'rgba(53,126,189,0.7)'\n}\n","import { Component, Input, OnInit } from '@angular/core'\n\nimport { NgxLoadingConfig } from '@marklb/ngx-loading'\n\nimport { defaultThemeConfig, primaryThemeConfig } from '../loading-themes'\nimport type { TheSeamLoadingTheme } from '../loading.models'\n\n@Component({\n selector: 'seam-loading',\n templateUrl: './loading.component.html',\n styleUrls: ['./loading.component.scss']\n})\nexport class LoadingComponent implements OnInit {\n\n @Input()\n set theme(value: TheSeamLoadingTheme) {\n if (value === 'primary') {\n this._theme = primaryThemeConfig\n } else {\n this._theme = defaultThemeConfig\n }\n }\n _theme: NgxLoadingConfig = defaultThemeConfig\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay'\nimport { ComponentPortal } from '@angular/cdk/portal'\nimport { Injectable } from '@angular/core'\nimport { Observable, throwError } from 'rxjs'\nimport { catchError, finalize, tap } from 'rxjs/operators'\n\nimport { LoadingComponent } from './loading/loading.component'\n\n@Injectable()\nexport class TheSeamLoadingOverlayService {\n\n private _enabled = false\n\n private _overlayRef?: OverlayRef\n\n constructor(\n private _overlay: Overlay\n ) { }\n\n get enabled(): boolean {\n return this._enabled\n }\n\n public toggle(enabled?: boolean) {\n const enable = enabled === undefined ? !this.enabled : enabled\n if (enable && !this.enabled) {\n this.enable()\n } else if (!enable && this.enabled) {\n this.disable()\n }\n }\n\n public enable() {\n if (this.enabled) { return }\n\n this._overlayRef = this._overlay.create({\n hasBackdrop: false,\n width: '100%',\n height: '100%'\n })\n this._overlayRef.attach(new ComponentPortal(LoadingComponent))\n\n this._enabled = true\n }\n\n public disable() {\n if (!this.enabled) { return }\n\n this._overlayRef?.dispose()\n\n this._enabled = false\n }\n\n public while<T = any>(source: Observable<T>): Observable<T> {\n this.enable()\n return source\n .pipe(\n tap(() => this.disable()),\n catchError(err => {\n this.disable()\n return throwError(err)\n }),\n finalize(() => this.disable())\n )\n }\n\n}\n","import { OverlayModule } from '@angular/cdk/overlay'\nimport { PortalModule } from '@angular/cdk/portal'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { NgxLoadingModule } from '@marklb/ngx-loading'\n\nimport { TheSeamLoadingOverlayService } from './loading-overlay.service'\nimport { defaultThemeConfig } from './loading-themes'\nimport { LoadingComponent } from './loading/loading.component'\n\n// NOTE: Named export used for this because of a function calling bug in the builder.\nexport const loadingForRoot = NgxLoadingModule.forRoot(defaultThemeConfig)\n\n@NgModule({\n declarations: [LoadingComponent],\n imports: [\n CommonModule,\n OverlayModule,\n PortalModule,\n loadingForRoot\n ],\n providers: [\n TheSeamLoadingOverlayService\n ],\n exports: [LoadingComponent],\n entryComponents: [LoadingComponent]\n})\nexport class TheSeamLoadingModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
import { animation, style, group, animate, query, useAnimation, trigger, transition } from '@angular/animations';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, InjectionToken, ElementRef, Inject, Optional, Input, HostListener, Directive, ViewContainerRef, forwardRef, EventEmitter, ViewChild, TemplateRef, Output, HostBinding, NgModule } from '@angular/core';
|
|
3
|
+
import { FocusMonitor, isFakeMousedownFromScreenReader, FocusKeyManager } from '@angular/cdk/a11y';
|
|
4
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
5
|
+
import { Subject, Subscription, of, merge, BehaviorSubject, fromEvent } from 'rxjs';
|
|
6
|
+
import { mixinDisabled } from '@theseam/ui-common/core';
|
|
7
|
+
import { UP_ARROW, DOWN_ARROW, ESCAPE, END, hasModifierKey, HOME } from '@angular/cdk/keycodes';
|
|
8
|
+
import { Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
9
|
+
import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
|
|
10
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
11
|
+
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
12
|
+
import { map, switchMap, startWith, distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
13
|
+
import { TheSeamIconModule } from '@theseam/ui-common/icon';
|
|
14
|
+
|
|
15
|
+
const menuDropdownPanelSlideIn = animation([
|
|
16
|
+
style({
|
|
17
|
+
opacity: 0,
|
|
18
|
+
transform: 'translateY(-70%)'
|
|
19
|
+
}),
|
|
20
|
+
group([
|
|
21
|
+
animate('170ms linear', style({ opacity: 1 })),
|
|
22
|
+
animate('220ms ease', style({ transform: 'translateY(0)' })),
|
|
23
|
+
])
|
|
24
|
+
]);
|
|
25
|
+
const menuDropdownPanelSlideOut = animation([
|
|
26
|
+
style({
|
|
27
|
+
opacity: 1,
|
|
28
|
+
transform: 'translateY(0)'
|
|
29
|
+
}),
|
|
30
|
+
group([
|
|
31
|
+
animate('170ms linear', style({ opacity: 0 })),
|
|
32
|
+
animate('220ms ease', style({ transform: 'translateY(-70%)' })),
|
|
33
|
+
])
|
|
34
|
+
]);
|
|
35
|
+
const menuDropdownPanelExpandIn = animation([
|
|
36
|
+
style({
|
|
37
|
+
opacity: 0,
|
|
38
|
+
transform: 'scale(0.8)'
|
|
39
|
+
}),
|
|
40
|
+
group([
|
|
41
|
+
animate('100ms linear', style({ opacity: 1 })),
|
|
42
|
+
animate('120ms ease', style({ transform: 'scale(1)' })),
|
|
43
|
+
])
|
|
44
|
+
]);
|
|
45
|
+
const menuDropdownPanelExpandOut = animation([
|
|
46
|
+
style({
|
|
47
|
+
opacity: 1,
|
|
48
|
+
transform: 'scale(1)'
|
|
49
|
+
}),
|
|
50
|
+
group([
|
|
51
|
+
animate('100ms linear', style({ opacity: 0 })),
|
|
52
|
+
animate('120ms ease', style({ transform: 'scale(0.8)' })),
|
|
53
|
+
])
|
|
54
|
+
]);
|
|
55
|
+
const menuDropdownPanelFadeIn = animation([
|
|
56
|
+
style({ transform: 'translateY(-30px)', opacity: '0' }),
|
|
57
|
+
animate('250ms', style({ transform: 'translateY(0)', opacity: '1' }))
|
|
58
|
+
]);
|
|
59
|
+
const menuDropdownPanelFadeOut = animation([
|
|
60
|
+
style({ transform: 'translateY(0)', opacity: '1' }),
|
|
61
|
+
animate('250ms', style({ transform: 'translateY(-30px)', opacity: '0' }))
|
|
62
|
+
]);
|
|
63
|
+
const menuDropdownPanelIn = animation([
|
|
64
|
+
query('.seam-menu-container.seam-menu-anim--slide .dropdown-menu', useAnimation(menuDropdownPanelSlideIn), { optional: true }),
|
|
65
|
+
query('.seam-menu-container.seam-menu-anim--fade .dropdown-menu', useAnimation(menuDropdownPanelFadeIn), { optional: true })
|
|
66
|
+
]);
|
|
67
|
+
const menuDropdownPanelOut = animation([
|
|
68
|
+
query('.seam-menu-container.seam-menu-anim--slide .dropdown-menu', useAnimation(menuDropdownPanelSlideOut), { optional: true }),
|
|
69
|
+
query('.seam-menu-container.seam-menu-anim--fade .dropdown-menu', useAnimation(menuDropdownPanelFadeOut), { optional: true })
|
|
70
|
+
]);
|
|
71
|
+
|
|
72
|
+
class MenuDividerComponent {
|
|
73
|
+
}
|
|
74
|
+
MenuDividerComponent.decorators = [
|
|
75
|
+
{ type: Component, args: [{
|
|
76
|
+
selector: 'seam-menu-divider',
|
|
77
|
+
template: ``,
|
|
78
|
+
// tslint:disable-next-line:use-host-property-decorator
|
|
79
|
+
host: {
|
|
80
|
+
'class': 'dropdown-divider d-block'
|
|
81
|
+
},
|
|
82
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
83
|
+
},] }
|
|
84
|
+
];
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Injection token used to provide the parent menu to menu-specific components.
|
|
88
|
+
*/
|
|
89
|
+
const THESEAM_MENU_PANEL = new InjectionToken('THESEAM_MENU_PANEL');
|
|
90
|
+
|
|
91
|
+
class TheSeamMenuItemBase {
|
|
92
|
+
}
|
|
93
|
+
const _seamMenuItemMixinBase = mixinDisabled(TheSeamMenuItemBase);
|
|
94
|
+
class MenuItemComponent extends _seamMenuItemMixinBase {
|
|
95
|
+
constructor(_elementRef, document, _focusMonitor, _parentMenu) {
|
|
96
|
+
super();
|
|
97
|
+
this._elementRef = _elementRef;
|
|
98
|
+
this.document = document;
|
|
99
|
+
this._focusMonitor = _focusMonitor;
|
|
100
|
+
this._parentMenu = _parentMenu;
|
|
101
|
+
/** ARIA role for the menu item. */
|
|
102
|
+
this.role = 'menuitem';
|
|
103
|
+
this.badgeTheme = 'danger';
|
|
104
|
+
/** Stream that emits when the menu item is hovered. */
|
|
105
|
+
this._hovered = new Subject();
|
|
106
|
+
/** Whether the menu item is highlighted. */
|
|
107
|
+
this._highlighted = false;
|
|
108
|
+
if (_focusMonitor) {
|
|
109
|
+
// Start monitoring the element so it gets the appropriate focused classes. We want
|
|
110
|
+
// to show the focus style for menu items only when the focus was not caused by a
|
|
111
|
+
// mouse or touch interaction.
|
|
112
|
+
_focusMonitor.monitor(this._elementRef, false);
|
|
113
|
+
}
|
|
114
|
+
// console.log(this._parentMenu)
|
|
115
|
+
if (_parentMenu && _parentMenu.addItem) {
|
|
116
|
+
_parentMenu.addItem(this);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
ngOnInit() { }
|
|
120
|
+
ngOnDestroy() {
|
|
121
|
+
if (this._focusMonitor) {
|
|
122
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
123
|
+
}
|
|
124
|
+
if (this._parentMenu && this._parentMenu.removeItem) {
|
|
125
|
+
this._parentMenu.removeItem(this);
|
|
126
|
+
}
|
|
127
|
+
this._hovered.complete();
|
|
128
|
+
}
|
|
129
|
+
/** Focuses the menu item. */
|
|
130
|
+
focus(origin = 'program') {
|
|
131
|
+
if (this._focusMonitor) {
|
|
132
|
+
this._focusMonitor.focusVia(this._getHostElement(), origin);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
this._getHostElement().focus();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/** Used to set the `tabindex`. */
|
|
139
|
+
_getTabIndex() {
|
|
140
|
+
return this.disabled ? '-1' : '0';
|
|
141
|
+
}
|
|
142
|
+
/** Returns the host DOM element. */
|
|
143
|
+
_getHostElement() {
|
|
144
|
+
return this._elementRef.nativeElement;
|
|
145
|
+
}
|
|
146
|
+
/** Prevents the default element actions if it is disabled. */
|
|
147
|
+
_checkDisabled(event) {
|
|
148
|
+
if (this.disabled) {
|
|
149
|
+
event.preventDefault();
|
|
150
|
+
event.stopPropagation();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/** Emits to the hover stream. */
|
|
154
|
+
_handleMouseEnter() {
|
|
155
|
+
this._hovered.next(this);
|
|
156
|
+
}
|
|
157
|
+
/** Gets the label to be used when determining whether the option should be focused. */
|
|
158
|
+
getLabel() {
|
|
159
|
+
const element = this._elementRef.nativeElement;
|
|
160
|
+
const textNodeType = this.document ? this.document.TEXT_NODE : 3;
|
|
161
|
+
let output = '';
|
|
162
|
+
if (element.childNodes) {
|
|
163
|
+
const length = element.childNodes.length;
|
|
164
|
+
// Go through all the top-level text nodes and extract their text.
|
|
165
|
+
// We skip anything that's not a text node to prevent the text from
|
|
166
|
+
// being thrown off by something like an icon.
|
|
167
|
+
for (let i = 0; i < length; i++) {
|
|
168
|
+
if (element.childNodes[i].nodeType === textNodeType) {
|
|
169
|
+
output += element.childNodes[i].textContent;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return output.trim();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
MenuItemComponent.decorators = [
|
|
177
|
+
{ type: Component, args: [{
|
|
178
|
+
// tslint:disable-next-line:component-selector
|
|
179
|
+
selector: '[seamMenuItem]',
|
|
180
|
+
template: "<div class=\"d-flex flex-row\">\n <seam-icon *ngIf=\"icon\"\n style=\"width: 30px; height: 20px; flex: 0 0 auto;\"\n class=\"pr-2\"\n [icon]=\"icon\"\n [iconClass]=\"iconClass\"\n iconType=\"image-fill\">\n </seam-icon>\n <!-- <span class=\"text-nowrap\">\n <ng-content></ng-content>\n </span> -->\n <div class=\"text-truncate\">\n <ng-content></ng-content>\n </div>\n\n <div *ngIf=\"badgeText\">\n <span class=\"badge badge-pill{{ badgeTheme ? ' badge-' + badgeTheme : '' }} position-relative\"\n style=\"top: -8px\"\n >{{ badgeText }}</span>\n </div>\n</div>\n",
|
|
181
|
+
exportAs: 'seamMenuItem',
|
|
182
|
+
// tslint:disable-next-line:use-input-property-decorator
|
|
183
|
+
inputs: ['disabled'],
|
|
184
|
+
// tslint:disable-next-line:use-host-property-decorator
|
|
185
|
+
host: {
|
|
186
|
+
'[attr.role]': 'role',
|
|
187
|
+
'class': 'dropdown-item',
|
|
188
|
+
'[attr.tabindex]': '_getTabIndex()',
|
|
189
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
190
|
+
'[attr.disabled]': 'disabled || null',
|
|
191
|
+
},
|
|
192
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
193
|
+
styles: [""]
|
|
194
|
+
},] }
|
|
195
|
+
];
|
|
196
|
+
MenuItemComponent.ctorParameters = () => [
|
|
197
|
+
{ type: ElementRef },
|
|
198
|
+
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
199
|
+
{ type: FocusMonitor },
|
|
200
|
+
{ type: undefined, decorators: [{ type: Inject, args: [THESEAM_MENU_PANEL,] }, { type: Optional }] }
|
|
201
|
+
];
|
|
202
|
+
MenuItemComponent.propDecorators = {
|
|
203
|
+
role: [{ type: Input }],
|
|
204
|
+
icon: [{ type: Input }],
|
|
205
|
+
iconClass: [{ type: Input }],
|
|
206
|
+
badgeText: [{ type: Input }],
|
|
207
|
+
badgeTheme: [{ type: Input }],
|
|
208
|
+
_checkDisabled: [{ type: HostListener, args: ['click', ['$event'],] }],
|
|
209
|
+
_handleMouseEnter: [{ type: HostListener, args: ['mouseenter',] }]
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/** Options for binding a passive event listener. */
|
|
213
|
+
const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
|
|
214
|
+
class MenuToggleDirective {
|
|
215
|
+
// @HostListener('document:mousedown', [ '$event' ])
|
|
216
|
+
// _onDocumentMouseDown(event: any) {
|
|
217
|
+
// console.log('outside click')
|
|
218
|
+
// }
|
|
219
|
+
constructor(_elementRef, _viewContainerRef, _overlay, _focusMonitor) {
|
|
220
|
+
this._elementRef = _elementRef;
|
|
221
|
+
this._viewContainerRef = _viewContainerRef;
|
|
222
|
+
this._overlay = _overlay;
|
|
223
|
+
this._focusMonitor = _focusMonitor;
|
|
224
|
+
this._active = false;
|
|
225
|
+
this._menuClosedSubscription = Subscription.EMPTY;
|
|
226
|
+
this._closingActionsSubscription = Subscription.EMPTY;
|
|
227
|
+
this.restoreFocus = true;
|
|
228
|
+
// Tracking input type is necessary so it's possible to only auto-focus
|
|
229
|
+
// the first item of the list when the menu is opened via the keyboard
|
|
230
|
+
this._openedBy = null;
|
|
231
|
+
this._positions = [
|
|
232
|
+
{
|
|
233
|
+
originX: 'end',
|
|
234
|
+
originY: 'bottom',
|
|
235
|
+
overlayX: 'end',
|
|
236
|
+
overlayY: 'top',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
originX: 'start',
|
|
240
|
+
originY: 'bottom',
|
|
241
|
+
overlayX: 'start',
|
|
242
|
+
overlayY: 'top',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
originX: 'end',
|
|
246
|
+
originY: 'top',
|
|
247
|
+
overlayX: 'end',
|
|
248
|
+
overlayY: 'bottom',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
originX: 'start',
|
|
252
|
+
originY: 'top',
|
|
253
|
+
overlayX: 'start',
|
|
254
|
+
overlayY: 'bottom',
|
|
255
|
+
},
|
|
256
|
+
];
|
|
257
|
+
/**
|
|
258
|
+
* Handles touch start events on the trigger.
|
|
259
|
+
* Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
|
|
260
|
+
*/
|
|
261
|
+
this._handleTouchStart = () => this._openedBy = 'touch';
|
|
262
|
+
this._elementRef.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
263
|
+
}
|
|
264
|
+
set positions(val) {
|
|
265
|
+
var _a;
|
|
266
|
+
this._positions = val;
|
|
267
|
+
if (this.menuOpen()) {
|
|
268
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePositionStrategy(this.getOverlayPosition(this._elementRef.nativeElement));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
get positions() { return this._positions; }
|
|
272
|
+
_onMouseDown(event) {
|
|
273
|
+
if (!isFakeMousedownFromScreenReader(event)) {
|
|
274
|
+
// Since right or middle button clicks won't trigger the `click` event,
|
|
275
|
+
// we shouldn't consider the menu as opened by mouse in those cases.
|
|
276
|
+
this._openedBy = event.button === 0 ? 'mouse' : null;
|
|
277
|
+
// Since clicking on the trigger won't close the menu if it opens a sub-menu,
|
|
278
|
+
// we should prevent focus from moving onto it via click to avoid the
|
|
279
|
+
// highlight from lingering on the menu item.
|
|
280
|
+
// if (this.triggersSubmenu()) {
|
|
281
|
+
// event.preventDefault();
|
|
282
|
+
// }
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
_onKeydown(event) {
|
|
286
|
+
var _a;
|
|
287
|
+
this._openedBy = null;
|
|
288
|
+
// tslint:disable-next-line:deprecation
|
|
289
|
+
const keyCode = event.keyCode;
|
|
290
|
+
if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {
|
|
291
|
+
if (this.menuOpen()) {
|
|
292
|
+
(_a = this.seamMenuToggle) === null || _a === void 0 ? void 0 : _a.focusFirstItem(this._openedBy || 'program');
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
_onClick(event) {
|
|
297
|
+
this.toggle();
|
|
298
|
+
}
|
|
299
|
+
_onDocumentKeydown(event) {
|
|
300
|
+
if (event.keyCode === ESCAPE) {
|
|
301
|
+
this.closeMenu();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
ngOnDestroy() {
|
|
305
|
+
this.closeMenu();
|
|
306
|
+
this._elementRef.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
307
|
+
this._menuClosedSubscription.unsubscribe();
|
|
308
|
+
this._closingActionsSubscription.unsubscribe();
|
|
309
|
+
}
|
|
310
|
+
toggle() {
|
|
311
|
+
if (this._active) {
|
|
312
|
+
this.closeMenu();
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
this.openMenu();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
openMenu() {
|
|
319
|
+
if (this._active || !this.seamMenuToggle) {
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
this._active = true;
|
|
323
|
+
this._overlayRef = this._overlay.create({
|
|
324
|
+
hasBackdrop: true,
|
|
325
|
+
backdropClass: 'transparent',
|
|
326
|
+
positionStrategy: this.getOverlayPosition(this._elementRef.nativeElement),
|
|
327
|
+
});
|
|
328
|
+
const tpl = this.seamMenuToggle.templateRef;
|
|
329
|
+
if (!tpl) {
|
|
330
|
+
throw Error(`Menu template not found.`);
|
|
331
|
+
}
|
|
332
|
+
this._overlayRef.attach(new TemplatePortal(tpl, this._viewContainerRef));
|
|
333
|
+
this._closingActionsSubscription = this._menuClosingActions().subscribe(() => this.closeMenu());
|
|
334
|
+
this._initMenu();
|
|
335
|
+
this._menuClosedSubscription = this.seamMenuToggle.closed.subscribe(v => {
|
|
336
|
+
// console.log('closed', v)
|
|
337
|
+
this.closeMenu();
|
|
338
|
+
});
|
|
339
|
+
// this._overlayRef.backdropClick().subscribe(v => {
|
|
340
|
+
// console.log('backdropClick', v)
|
|
341
|
+
// })
|
|
342
|
+
}
|
|
343
|
+
closeMenu() {
|
|
344
|
+
var _a, _b;
|
|
345
|
+
if (!this._active) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
if ((_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
|
|
349
|
+
(_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.detach();
|
|
350
|
+
}
|
|
351
|
+
this._resetMenu();
|
|
352
|
+
this._menuClosedSubscription.unsubscribe();
|
|
353
|
+
this._closingActionsSubscription.unsubscribe();
|
|
354
|
+
this._active = false;
|
|
355
|
+
}
|
|
356
|
+
menuOpen() {
|
|
357
|
+
var _a;
|
|
358
|
+
return (_a = (this._overlayRef && this._overlayRef.hasAttached())) !== null && _a !== void 0 ? _a : false;
|
|
359
|
+
}
|
|
360
|
+
getOverlayPosition(origin) {
|
|
361
|
+
const positionStrategy = this._overlay.position()
|
|
362
|
+
.flexibleConnectedTo(origin)
|
|
363
|
+
.withPositions(this.positions)
|
|
364
|
+
.withFlexibleDimensions(false)
|
|
365
|
+
.withPush(true);
|
|
366
|
+
return positionStrategy;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Focuses the menu trigger.
|
|
370
|
+
* @param origin Source of the menu trigger's focus.
|
|
371
|
+
*/
|
|
372
|
+
focus(origin = 'program') {
|
|
373
|
+
if (this._focusMonitor) {
|
|
374
|
+
this._focusMonitor.focusVia(this._elementRef, origin);
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
this._elementRef.nativeElement.focus();
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* This method sets the menu state to open and focuses the first item if
|
|
382
|
+
* the menu was opened via the keyboard.
|
|
383
|
+
*/
|
|
384
|
+
_initMenu() {
|
|
385
|
+
// this.seamMenuToggle.parentMenu = this.triggersSubmenu() ? this._parentMenu : undefined
|
|
386
|
+
// this.seamMenuToggle.direction = this.dir
|
|
387
|
+
// this._setMenuElevation()
|
|
388
|
+
// this._setIsMenuOpen(true)
|
|
389
|
+
// this.seamMenuToggle.focusFirstItem(this._openedBy || 'program')
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* This method resets the menu when it's closed, most importantly restoring
|
|
393
|
+
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
394
|
+
*/
|
|
395
|
+
_resetMenu() {
|
|
396
|
+
// this._setIsMenuOpen(false)
|
|
397
|
+
// We should reset focus if the user is navigating using a keyboard or
|
|
398
|
+
// if we have a top-level trigger which might cause focus to be lost
|
|
399
|
+
// when clicking on the backdrop.
|
|
400
|
+
if (this.restoreFocus) {
|
|
401
|
+
if (!this._openedBy) {
|
|
402
|
+
// Note that the focus style will show up both for `program` and
|
|
403
|
+
// `keyboard` so we don't have to specify which one it is.
|
|
404
|
+
this.focus();
|
|
405
|
+
}
|
|
406
|
+
// else if (!this.triggersSubmenu()) {
|
|
407
|
+
// this.focus(this._openedBy)
|
|
408
|
+
// }
|
|
409
|
+
}
|
|
410
|
+
this._openedBy = null;
|
|
411
|
+
}
|
|
412
|
+
/** Returns a stream that emits whenever an action that should close the menu occurs. */
|
|
413
|
+
_menuClosingActions() {
|
|
414
|
+
var _a, _b, _c, _d;
|
|
415
|
+
const backdrop = (_b = (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.backdropClick()) !== null && _b !== void 0 ? _b : of();
|
|
416
|
+
const detachments = (_d = (_c = this._overlayRef) === null || _c === void 0 ? void 0 : _c.detachments()) !== null && _d !== void 0 ? _d : of();
|
|
417
|
+
// const parentClose = this._parentMenu ? this._parentMenu.closed : of()
|
|
418
|
+
const parentClose = of();
|
|
419
|
+
// const hover = this._parentMenu ? this._parentMenu._hovered().pipe(
|
|
420
|
+
// filter(active => active !== this._menuItemInstance),
|
|
421
|
+
// filter(() => this._menuOpen)
|
|
422
|
+
// ) : of()
|
|
423
|
+
const hover = of();
|
|
424
|
+
return merge(backdrop, parentClose, hover, detachments);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
MenuToggleDirective.decorators = [
|
|
428
|
+
{ type: Directive, args: [{
|
|
429
|
+
selector: '[seamMenuToggle]',
|
|
430
|
+
// tslint:disable-next-line:use-host-property-decorator
|
|
431
|
+
host: {
|
|
432
|
+
'aria-haspopup': 'true',
|
|
433
|
+
'[attr.aria-expanded]': 'menuOpen() || null'
|
|
434
|
+
},
|
|
435
|
+
exportAs: 'seamMenuToggle'
|
|
436
|
+
},] }
|
|
437
|
+
];
|
|
438
|
+
MenuToggleDirective.ctorParameters = () => [
|
|
439
|
+
{ type: ElementRef },
|
|
440
|
+
{ type: ViewContainerRef },
|
|
441
|
+
{ type: Overlay },
|
|
442
|
+
{ type: FocusMonitor }
|
|
443
|
+
];
|
|
444
|
+
MenuToggleDirective.propDecorators = {
|
|
445
|
+
seamMenuToggle: [{ type: Input }],
|
|
446
|
+
positions: [{ type: Input }],
|
|
447
|
+
_onMouseDown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],
|
|
448
|
+
_onKeydown: [{ type: HostListener, args: ['keydown', ['$event'],] }],
|
|
449
|
+
_onClick: [{ type: HostListener, args: ['click', ['$event'],] }],
|
|
450
|
+
_onDocumentKeydown: [{ type: HostListener, args: ['document:keydown', ['$event'],] }]
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
const LIB_MENU = {
|
|
454
|
+
provide: THESEAM_MENU_PANEL,
|
|
455
|
+
// tslint:disable-next-line:no-use-before-declare
|
|
456
|
+
useExisting: forwardRef(() => MenuComponent)
|
|
457
|
+
};
|
|
458
|
+
class MenuComponent {
|
|
459
|
+
constructor() {
|
|
460
|
+
this._ngUnsubscribe = new Subject();
|
|
461
|
+
this._footer = new BehaviorSubject(undefined);
|
|
462
|
+
this.hasFooter$ = this._footer.pipe(map(v => v !== null && v !== undefined));
|
|
463
|
+
this._header = new BehaviorSubject(undefined);
|
|
464
|
+
this.hasHeader$ = this._header.pipe(map(v => v !== null && v !== undefined));
|
|
465
|
+
/** Menu items inside the current menu. */
|
|
466
|
+
this._items = [];
|
|
467
|
+
/** Emits whenever the amount of menu items changes. */
|
|
468
|
+
this._itemChanges = new Subject();
|
|
469
|
+
/** Subscription to tab events on the menu panel */
|
|
470
|
+
this._tabSubscription = Subscription.EMPTY;
|
|
471
|
+
this.closed = new EventEmitter();
|
|
472
|
+
this._baseWidth = new BehaviorSubject(null);
|
|
473
|
+
this.animationType = 'slide';
|
|
474
|
+
this._menuWidth$ = this._baseWidth.pipe(switchMap(baseWidth => {
|
|
475
|
+
if (baseWidth) {
|
|
476
|
+
return fromEvent(window, 'resize').pipe(startWith(undefined), map(() => window.innerWidth < baseWidth ? `${window.innerWidth}px` : `${baseWidth}px`));
|
|
477
|
+
}
|
|
478
|
+
return of(undefined);
|
|
479
|
+
}), distinctUntilChanged(), takeUntil(this._ngUnsubscribe));
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Defines a width for a menu that will scale down if the window innerWidth is
|
|
483
|
+
* smaller than the value.
|
|
484
|
+
*/
|
|
485
|
+
get baseWidth() { return this._baseWidth.value; }
|
|
486
|
+
set baseWidth(value) {
|
|
487
|
+
const _val = coerceNumberProperty(value, null);
|
|
488
|
+
if (_val !== this._baseWidth.value) {
|
|
489
|
+
this._baseWidth.next(_val);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
ngOnDestroy() {
|
|
493
|
+
this._tabSubscription.unsubscribe();
|
|
494
|
+
this.closed.complete();
|
|
495
|
+
this._ngUnsubscribe.next();
|
|
496
|
+
this._ngUnsubscribe.complete();
|
|
497
|
+
}
|
|
498
|
+
ngAfterContentInit() {
|
|
499
|
+
this._keyManager = new FocusKeyManager(this._items).withWrap().withTypeAhead();
|
|
500
|
+
this._tabSubscription = this._keyManager.tabOut.subscribe(() => this.closed.emit('tab'));
|
|
501
|
+
}
|
|
502
|
+
/** Stream that emits whenever the hovered menu item changes. */
|
|
503
|
+
_hovered() {
|
|
504
|
+
return this._itemChanges.pipe(startWith(this._items), switchMap(items => merge(...items.map(item => item._hovered))));
|
|
505
|
+
}
|
|
506
|
+
/** Handle a keyboard event from the menu, delegating to the appropriate action. */
|
|
507
|
+
_handleKeydown(event) {
|
|
508
|
+
// tslint:disable-next-line:deprecation
|
|
509
|
+
const keyCode = event.keyCode;
|
|
510
|
+
const manager = this._keyManager;
|
|
511
|
+
switch (keyCode) {
|
|
512
|
+
case ESCAPE:
|
|
513
|
+
if (!hasModifierKey(event)) {
|
|
514
|
+
event.preventDefault();
|
|
515
|
+
this.closed.emit('keydown');
|
|
516
|
+
}
|
|
517
|
+
break;
|
|
518
|
+
// case LEFT_ARROW:
|
|
519
|
+
// if (this.parentMenu && this.direction === 'ltr') {
|
|
520
|
+
// this.closed.emit('keydown')
|
|
521
|
+
// }
|
|
522
|
+
// break
|
|
523
|
+
// case RIGHT_ARROW:
|
|
524
|
+
// if (this.parentMenu && this.direction === 'rtl') {
|
|
525
|
+
// this.closed.emit('keydown')
|
|
526
|
+
// }
|
|
527
|
+
// break
|
|
528
|
+
case HOME:
|
|
529
|
+
case END:
|
|
530
|
+
if (!hasModifierKey(event)) {
|
|
531
|
+
keyCode === HOME ? manager === null || manager === void 0 ? void 0 : manager.setFirstItemActive() : manager === null || manager === void 0 ? void 0 : manager.setLastItemActive();
|
|
532
|
+
event.preventDefault();
|
|
533
|
+
}
|
|
534
|
+
break;
|
|
535
|
+
default:
|
|
536
|
+
if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {
|
|
537
|
+
manager === null || manager === void 0 ? void 0 : manager.setFocusOrigin('keyboard');
|
|
538
|
+
}
|
|
539
|
+
manager === null || manager === void 0 ? void 0 : manager.onKeydown(event);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Focus the first item in the menu.
|
|
544
|
+
* @param origin Action from which the focus originated. Used to set the correct styling.
|
|
545
|
+
*/
|
|
546
|
+
focusFirstItem(origin = 'program') {
|
|
547
|
+
var _a;
|
|
548
|
+
(_a = this._keyManager) === null || _a === void 0 ? void 0 : _a.setFocusOrigin(origin).setFirstItemActive();
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Resets the active item in the menu. This is used when the menu is opened, allowing
|
|
552
|
+
* the user to start from the first option when pressing the down arrow.
|
|
553
|
+
*/
|
|
554
|
+
resetActiveItem() {
|
|
555
|
+
var _a;
|
|
556
|
+
(_a = this._keyManager) === null || _a === void 0 ? void 0 : _a.setActiveItem(-1);
|
|
557
|
+
}
|
|
558
|
+
/** Registers a menu item with the menu. */
|
|
559
|
+
addItem(item) {
|
|
560
|
+
// We register the items through this method, rather than picking them up through
|
|
561
|
+
// `ContentChildren`, because we need the items to be picked up by their closest
|
|
562
|
+
// `seam-menu` ancestor. If we used `@ContentChildren(MenuItemComponent, {descendants: true})`,
|
|
563
|
+
// all descendant items will bleed into the top-level menu in the case where the consumer
|
|
564
|
+
// has `seam-menu` instances nested inside each other.
|
|
565
|
+
if (this._items.indexOf(item) === -1) {
|
|
566
|
+
this._items.push(item);
|
|
567
|
+
this._itemChanges.next(this._items);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
/** Removes an item from the menu. */
|
|
571
|
+
removeItem(item) {
|
|
572
|
+
const index = this._items.indexOf(item);
|
|
573
|
+
if (this._items.indexOf(item) > -1) {
|
|
574
|
+
this._items.splice(index, 1);
|
|
575
|
+
this._itemChanges.next(this._items);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
/** Sets the footer component. */
|
|
579
|
+
setFooter(footer) {
|
|
580
|
+
this._footer.next(footer);
|
|
581
|
+
}
|
|
582
|
+
/** Sets the header component. */
|
|
583
|
+
setHeader(header) {
|
|
584
|
+
this._header.next(header);
|
|
585
|
+
}
|
|
586
|
+
_dropdownMenuClick(event) {
|
|
587
|
+
// This is needed, because some menu's will get stuck open if the component
|
|
588
|
+
// managing the menu is destroyed before the menu finishes its cleanup. I
|
|
589
|
+
// may look for a fix to that eventually.
|
|
590
|
+
this.closed.emit('click');
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
MenuComponent.decorators = [
|
|
594
|
+
{ type: Component, args: [{
|
|
595
|
+
selector: 'seam-menu',
|
|
596
|
+
template: "<ng-template>\n <div class=\"seam-menu-container\" @slideDown\n [class.seam-menu-anim--slide]=\"animationType==='slide'\"\n [class.seam-menu-anim--fade]=\"animationType==='fade'\">\n <div class=\"dropdown-menu show position-static{{ menuClass ? ' ' + menuClass : '' }}\"\n [style.width]=\"_menuWidth$ | async\"\n [class.pt-0]=\"hasHeader$ | async\"\n [class.pb-0]=\"hasFooter$ | async\"\n (keydown)=\"_handleKeydown($event)\"\n (click)=\"_dropdownMenuClick($event)\"\n tabindex=\"-1\"\n role=\"menu\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n",
|
|
597
|
+
providers: [LIB_MENU],
|
|
598
|
+
animations: [
|
|
599
|
+
trigger('slideDown', [
|
|
600
|
+
transition(':enter', useAnimation(menuDropdownPanelIn)),
|
|
601
|
+
transition(':leave', useAnimation(menuDropdownPanelOut)),
|
|
602
|
+
])
|
|
603
|
+
],
|
|
604
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
605
|
+
exportAs: 'seamMenu',
|
|
606
|
+
styles: [".seam-menu-container.seam-menu-anim--slide{overflow:hidden}.dropdown-menu.ng-animating,.seam-menu-container.ng-animating{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}"]
|
|
607
|
+
},] }
|
|
608
|
+
];
|
|
609
|
+
MenuComponent.ctorParameters = () => [];
|
|
610
|
+
MenuComponent.propDecorators = {
|
|
611
|
+
templateRef: [{ type: ViewChild, args: [TemplateRef,] }],
|
|
612
|
+
closed: [{ type: Output }],
|
|
613
|
+
menuClass: [{ type: Input }],
|
|
614
|
+
baseWidth: [{ type: Input }],
|
|
615
|
+
animationType: [{ type: Input }]
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
// TODO: Split up the button and anchor classes.
|
|
619
|
+
class MenuFooterActionComponent {
|
|
620
|
+
constructor(_elementRef) {
|
|
621
|
+
this._elementRef = _elementRef;
|
|
622
|
+
}
|
|
623
|
+
get _attrType() { return this.type; }
|
|
624
|
+
/** ARIA type for the button. */
|
|
625
|
+
get type() { return this._isButton() ? this._type || 'button' : undefined; }
|
|
626
|
+
set type(value) {
|
|
627
|
+
this._type = value;
|
|
628
|
+
}
|
|
629
|
+
get _classBtn() { return this._isButton(); }
|
|
630
|
+
get _classBtnLink() { return this._isButton(); }
|
|
631
|
+
get _stylePadding() { return this._isButton() && 0; }
|
|
632
|
+
get _styleBorder() { return this._isButton() && 0; }
|
|
633
|
+
get _styleDisplay() { return this._isButton() && 'inline'; }
|
|
634
|
+
/** Determines if the component host is a button. */
|
|
635
|
+
_isButton() {
|
|
636
|
+
return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button';
|
|
637
|
+
}
|
|
638
|
+
/** Determines if the component host is an anchor. */
|
|
639
|
+
_isAnchor() {
|
|
640
|
+
return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a';
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
MenuFooterActionComponent.decorators = [
|
|
644
|
+
{ type: Component, args: [{
|
|
645
|
+
// tslint:disable-next-line:component-selector
|
|
646
|
+
selector: 'button[seamMenuFooterAction],a[seamMenuFooterAction]',
|
|
647
|
+
template: "<ng-content></ng-content>\n",
|
|
648
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
649
|
+
styles: [""]
|
|
650
|
+
},] }
|
|
651
|
+
];
|
|
652
|
+
MenuFooterActionComponent.ctorParameters = () => [
|
|
653
|
+
{ type: ElementRef }
|
|
654
|
+
];
|
|
655
|
+
MenuFooterActionComponent.propDecorators = {
|
|
656
|
+
_attrType: [{ type: HostBinding, args: ['attr.type',] }],
|
|
657
|
+
type: [{ type: Input }],
|
|
658
|
+
_classBtn: [{ type: HostBinding, args: ['class.btn',] }],
|
|
659
|
+
_classBtnLink: [{ type: HostBinding, args: ['class.btn-link',] }],
|
|
660
|
+
_stylePadding: [{ type: HostBinding, args: ['style.padding.px',] }],
|
|
661
|
+
_styleBorder: [{ type: HostBinding, args: ['style.border.px',] }],
|
|
662
|
+
_styleDisplay: [{ type: HostBinding, args: ['style.display.px',] }]
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
class MenuFooterComponent {
|
|
666
|
+
constructor(_parentMenu) {
|
|
667
|
+
this._parentMenu = _parentMenu;
|
|
668
|
+
}
|
|
669
|
+
ngOnInit() {
|
|
670
|
+
if (this._parentMenu && this._parentMenu.setFooter) {
|
|
671
|
+
this._parentMenu.setFooter(this);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
ngOnDestroy() {
|
|
675
|
+
if (this._parentMenu && this._parentMenu.setFooter) {
|
|
676
|
+
this._parentMenu.setFooter(undefined);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
MenuFooterComponent.decorators = [
|
|
681
|
+
{ type: Component, args: [{
|
|
682
|
+
selector: 'seam-menu-footer',
|
|
683
|
+
template: "<ng-content select=\"a[seamMenuFooterAction],button[seamMenuFooterAction]\"></ng-content>\n",
|
|
684
|
+
host: {
|
|
685
|
+
'class': 'd-flex flex-column text-center bg-light border-top rounded-bottom py-2'
|
|
686
|
+
},
|
|
687
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
688
|
+
styles: [""]
|
|
689
|
+
},] }
|
|
690
|
+
];
|
|
691
|
+
MenuFooterComponent.ctorParameters = () => [
|
|
692
|
+
{ type: undefined, decorators: [{ type: Inject, args: [THESEAM_MENU_PANEL,] }, { type: Optional }] }
|
|
693
|
+
];
|
|
694
|
+
|
|
695
|
+
class MenuHeaderComponent {
|
|
696
|
+
constructor(_parentMenu) {
|
|
697
|
+
this._parentMenu = _parentMenu;
|
|
698
|
+
}
|
|
699
|
+
ngOnInit() {
|
|
700
|
+
if (this._parentMenu && this._parentMenu.setHeader) {
|
|
701
|
+
this._parentMenu.setHeader(this);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
ngOnDestroy() {
|
|
705
|
+
if (this._parentMenu && this._parentMenu.setHeader) {
|
|
706
|
+
this._parentMenu.setHeader(undefined);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
MenuHeaderComponent.decorators = [
|
|
711
|
+
{ type: Component, args: [{
|
|
712
|
+
selector: 'seam-menu-header',
|
|
713
|
+
template: "<ng-content></ng-content>\n",
|
|
714
|
+
host: {
|
|
715
|
+
'class': 'd-flex flex-column bg-light border-bottom rounded-top py-2 mb-2'
|
|
716
|
+
},
|
|
717
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
718
|
+
styles: [""]
|
|
719
|
+
},] }
|
|
720
|
+
];
|
|
721
|
+
MenuHeaderComponent.ctorParameters = () => [
|
|
722
|
+
{ type: undefined, decorators: [{ type: Inject, args: [THESEAM_MENU_PANEL,] }, { type: Optional }] }
|
|
723
|
+
];
|
|
724
|
+
|
|
725
|
+
class TheSeamMenuModule {
|
|
726
|
+
}
|
|
727
|
+
TheSeamMenuModule.decorators = [
|
|
728
|
+
{ type: NgModule, args: [{
|
|
729
|
+
declarations: [
|
|
730
|
+
MenuComponent,
|
|
731
|
+
MenuToggleDirective,
|
|
732
|
+
MenuItemComponent,
|
|
733
|
+
MenuDividerComponent,
|
|
734
|
+
MenuFooterComponent,
|
|
735
|
+
MenuFooterActionComponent,
|
|
736
|
+
MenuHeaderComponent,
|
|
737
|
+
],
|
|
738
|
+
imports: [
|
|
739
|
+
CommonModule,
|
|
740
|
+
OverlayModule,
|
|
741
|
+
TheSeamIconModule
|
|
742
|
+
],
|
|
743
|
+
exports: [
|
|
744
|
+
MenuComponent,
|
|
745
|
+
MenuToggleDirective,
|
|
746
|
+
MenuItemComponent,
|
|
747
|
+
MenuDividerComponent,
|
|
748
|
+
TheSeamIconModule,
|
|
749
|
+
OverlayModule,
|
|
750
|
+
MenuFooterComponent,
|
|
751
|
+
MenuFooterActionComponent,
|
|
752
|
+
MenuHeaderComponent
|
|
753
|
+
]
|
|
754
|
+
},] }
|
|
755
|
+
];
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Generated bundle index. Do not edit.
|
|
759
|
+
*/
|
|
760
|
+
|
|
761
|
+
export { LIB_MENU, MenuComponent, MenuDividerComponent, MenuFooterActionComponent, MenuFooterComponent, MenuHeaderComponent, MenuItemComponent, MenuToggleDirective, THESEAM_MENU_PANEL, TheSeamMenuModule, menuDropdownPanelExpandIn, menuDropdownPanelExpandOut, menuDropdownPanelFadeIn, menuDropdownPanelFadeOut, menuDropdownPanelIn, menuDropdownPanelOut, menuDropdownPanelSlideIn, menuDropdownPanelSlideOut };
|
|
762
|
+
//# sourceMappingURL=theseam-ui-common-menu.js.map
|