@theseam/ui-common 0.4.30 → 1.0.0-beta.0
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/ai/index.d.ts +2 -0
- package/asset-reader/index.d.ts +67 -5
- package/breadcrumbs/index.d.ts +46 -5
- package/buttons/index.d.ts +220 -5
- package/card/index.d.ts +46 -5
- package/carousel/index.d.ts +100 -5
- package/checkbox/index.d.ts +200 -5
- package/confirm-dialog/index.d.ts +64 -5
- package/core/index.d.ts +139 -5
- package/data-exporter/index.d.ts +60 -5
- package/data-filters/index.d.ts +219 -5
- package/datatable/index.d.ts +1339 -5
- package/datatable-alterations-display/index.d.ts +101 -0
- package/datatable-dynamic/index.d.ts +548 -5
- package/dynamic/index.d.ts +469 -5
- package/dynamic-component-loader/index.d.ts +42 -5
- package/fesm2022/theseam-ui-common-ai.mjs +6 -0
- package/fesm2022/theseam-ui-common-ai.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-asset-reader.mjs +193 -0
- package/fesm2022/theseam-ui-common-asset-reader.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs +171 -0
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-buttons.mjs +478 -0
- package/fesm2022/theseam-ui-common-buttons.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-card.mjs +128 -0
- package/fesm2022/theseam-ui-common-card.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-carousel.mjs +269 -0
- package/fesm2022/theseam-ui-common-carousel.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-checkbox.mjs +393 -0
- package/fesm2022/theseam-ui-common-checkbox.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs +183 -0
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-core.mjs +229 -0
- package/fesm2022/theseam-ui-common-core.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-data-exporter.mjs +89 -0
- package/fesm2022/theseam-ui-common-data-exporter.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-data-filters.mjs +516 -0
- package/fesm2022/theseam-ui-common-data-filters.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs +350 -0
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs +1096 -0
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-datatable.mjs +4263 -0
- package/fesm2022/theseam-ui-common-datatable.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs +134 -0
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-dynamic.mjs +699 -0
- package/fesm2022/theseam-ui-common-dynamic.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-footer-bar.mjs +38 -0
- package/fesm2022/theseam-ui-common-footer-bar.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-form-field-error.mjs +494 -0
- package/fesm2022/theseam-ui-common-form-field-error.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-form-field.mjs +675 -0
- package/fesm2022/theseam-ui-common-form-field.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-framework.mjs +4018 -0
- package/fesm2022/theseam-ui-common-framework.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-google-maps.mjs +2191 -0
- package/fesm2022/theseam-ui-common-google-maps.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-graphql.mjs +1745 -0
- package/fesm2022/theseam-ui-common-graphql.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-icon.mjs +646 -0
- package/fesm2022/theseam-ui-common-icon.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-layout.mjs +118 -0
- package/fesm2022/theseam-ui-common-layout.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-loading.mjs +130 -0
- package/fesm2022/theseam-ui-common-loading.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-menu.mjs +1322 -0
- package/fesm2022/theseam-ui-common-menu.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-modal.mjs +1447 -0
- package/fesm2022/theseam-ui-common-modal.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-models.mjs +55 -0
- package/fesm2022/theseam-ui-common-models.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-navigation-reload.mjs +72 -0
- package/fesm2022/theseam-ui-common-navigation-reload.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-popover.mjs +520 -0
- package/fesm2022/theseam-ui-common-popover.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-progress.mjs +97 -0
- package/fesm2022/theseam-ui-common-progress.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-rich-text.mjs +782 -0
- package/fesm2022/theseam-ui-common-rich-text.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-scrollbar.mjs +158 -0
- package/fesm2022/theseam-ui-common-scrollbar.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-services.mjs +281 -0
- package/fesm2022/theseam-ui-common-services.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-shared.mjs +719 -0
- package/fesm2022/theseam-ui-common-shared.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-storage.mjs +146 -0
- package/fesm2022/theseam-ui-common-storage.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-story-helpers.mjs +512 -0
- package/fesm2022/theseam-ui-common-story-helpers.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tabbed.mjs +292 -0
- package/fesm2022/theseam-ui-common-tabbed.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-table-cell-type.mjs +211 -0
- package/fesm2022/theseam-ui-common-table-cell-type.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-table-cell-types.mjs +1207 -0
- package/fesm2022/theseam-ui-common-table-cell-types.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-table.mjs +341 -0
- package/fesm2022/theseam-ui-common-table.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tel-input.mjs +843 -0
- package/fesm2022/theseam-ui-common-tel-input.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-testing.mjs +315 -0
- package/fesm2022/theseam-ui-common-testing.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tiled-select.mjs +584 -0
- package/fesm2022/theseam-ui-common-tiled-select.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-toggle-edit.mjs +517 -0
- package/fesm2022/theseam-ui-common-toggle-edit.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-toggle-group.mjs +269 -0
- package/fesm2022/theseam-ui-common-toggle-group.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-tooltip.mjs +592 -0
- package/fesm2022/theseam-ui-common-tooltip.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs +78 -0
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-utils.mjs +1366 -0
- package/fesm2022/theseam-ui-common-utils.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-validators.mjs +94 -0
- package/fesm2022/theseam-ui-common-validators.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs +85 -0
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-viewers.mjs +566 -0
- package/fesm2022/theseam-ui-common-viewers.mjs.map +1 -0
- package/fesm2022/theseam-ui-common-widget.mjs +1466 -0
- package/fesm2022/theseam-ui-common-widget.mjs.map +1 -0
- package/fesm2022/theseam-ui-common.mjs +7 -0
- package/fesm2022/theseam-ui-common.mjs.map +1 -0
- package/footer-bar/index.d.ts +15 -5
- package/form-field/index.d.ts +255 -5
- package/form-field-error/index.d.ts +102 -5
- package/framework/index.d.ts +1372 -5
- package/framework/nav/nav-item/nav-item.component.scss +3 -1
- package/framework/nav/styles/_themes/light/_variables.scss +6 -4
- package/framework/nav/styles/_themes/primary/_variables.scss +6 -4
- package/framework/side-nav/side-nav-item/side-nav-item.component.scss +3 -1
- package/framework/side-nav/styles/_themes/light/_variables.scss +3 -1
- package/framework/side-nav/styles/_themes/primary/_variables.scss +7 -5
- package/google-maps/index.d.ts +657 -5
- package/graphql/index.d.ts +336 -5
- package/icon/index.d.ts +193 -5
- package/index.d.ts +2 -5
- package/layout/index.d.ts +61 -5
- package/loading/index.d.ts +42 -5
- package/menu/index.d.ts +437 -5
- package/modal/index.d.ts +531 -5
- package/models/index.d.ts +36 -5
- package/navigation-reload/index.d.ts +24 -5
- package/package.json +185 -316
- package/popover/index.d.ts +127 -5
- package/progress/index.d.ts +38 -5
- package/progress/progress-circle/styles/_variables.scss +5 -3
- package/rich-text/index.d.ts +537 -5
- package/scrollbar/index.d.ts +95 -5
- package/services/index.d.ts +129 -5
- package/shared/index.d.ts +229 -5
- package/storage/index.d.ts +35 -5
- package/story-helpers/index.d.ts +184 -5
- package/styles/bootstrap/_bs-variables.scss +5 -3
- package/styles/vendor/ngx-datatable/_ngx-datatable.scss +1 -1
- package/styles/vendor/ngx-datatable/_themes/bootstrap/_variables.scss +6 -4
- package/styles/vendor/quill/_quill.scss +2 -2
- package/tabbed/index.d.ts +108 -5
- package/table/index.d.ts +110 -5
- package/table-cell-type/index.d.ts +145 -5
- package/table-cell-types/index.d.ts +537 -5
- package/tel-input/index.d.ts +532 -5
- package/testing/index.d.ts +220 -5
- package/tiled-select/index.d.ts +179 -5
- package/toggle-edit/index.d.ts +160 -5
- package/toggle-group/index.d.ts +61 -5
- package/tooltip/index.d.ts +118 -0
- package/unsaved-changes-dialog/index.d.ts +24 -5
- package/utils/index.d.ts +434 -5
- package/validators/index.d.ts +49 -5
- package/vertical-list-filter/index.d.ts +31 -5
- package/viewers/index.d.ts +173 -5
- package/widget/index.d.ts +535 -5
- package/asset-reader/asset-reader-helper.service.d.ts +0 -10
- package/asset-reader/asset-reader.module.d.ts +0 -7
- package/asset-reader/encrypted-asset-link.directive.d.ts +0 -26
- package/asset-reader/encrypted-asset-reader.d.ts +0 -24
- package/asset-reader/public-api.d.ts +0 -4
- package/breadcrumbs/breadcrumb.d.ts +0 -11
- package/breadcrumbs/breadcrumbs/breadcrumbs.component.d.ts +0 -11
- package/breadcrumbs/breadcrumbs-resolver.d.ts +0 -5
- package/breadcrumbs/breadcrumbs.module.d.ts +0 -9
- package/breadcrumbs/breadcrumbs.service.d.ts +0 -23
- package/breadcrumbs/public-api.d.ts +0 -5
- package/buttons/badge-button/badge-button.component.d.ts +0 -23
- package/buttons/button/button.component.d.ts +0 -35
- package/buttons/buttons.module.d.ts +0 -12
- package/buttons/progress-circle-button/progress-circle-button.component.d.ts +0 -22
- package/buttons/public-api.d.ts +0 -6
- package/buttons/testing/anchor-badge-button.harness.d.ts +0 -16
- package/buttons/testing/anchor-button.harness.d.ts +0 -16
- package/buttons/testing/badge-button.harness.d.ts +0 -15
- package/buttons/testing/base-badge-button.harness.d.ts +0 -15
- package/buttons/testing/base-button.harness.d.ts +0 -19
- package/buttons/testing/button.harness.d.ts +0 -15
- package/buttons/testing/index.d.ts +0 -5
- package/buttons/testing/toggle-button.harness.d.ts +0 -21
- package/buttons/toggle-button/toggle-button.component.d.ts +0 -29
- package/card/card-action/card-action.component.d.ts +0 -12
- package/card/card-body/card-body.component.d.ts +0 -13
- package/card/card-footer/card-footer.component.d.ts +0 -5
- package/card/card-header/card-header.component.d.ts +0 -7
- package/card/card.component.d.ts +0 -6
- package/card/card.module.d.ts +0 -13
- package/card/public-api.d.ts +0 -6
- package/carousel/carousel-slide.directive.d.ts +0 -8
- package/carousel/carousel.component.d.ts +0 -85
- package/carousel/carousel.module.d.ts +0 -11
- package/carousel/public-api.d.ts +0 -3
- package/checkbox/checkbox.component.d.ts +0 -141
- package/checkbox/checkbox.module.d.ts +0 -8
- package/checkbox/public-api.d.ts +0 -3
- package/checkbox/testing/checkbox.harness.d.ts +0 -49
- package/checkbox/testing/index.d.ts +0 -1
- package/confirm-dialog/confirm-click.directive.d.ts +0 -31
- package/confirm-dialog/confirm-dialog.component.d.ts +0 -16
- package/confirm-dialog/confirm-dialog.module.d.ts +0 -12
- package/confirm-dialog/confirm-dialog.service.d.ts +0 -18
- package/confirm-dialog/public-api.d.ts +0 -4
- package/core/common-behaviors/active.d.ts +0 -8
- package/core/common-behaviors/constructor.d.ts +0 -9
- package/core/common-behaviors/disabled.d.ts +0 -17
- package/core/common-behaviors/element-ref.d.ts +0 -4
- package/core/common-behaviors/index.d.ts +0 -9
- package/core/common-behaviors/initialized.d.ts +0 -30
- package/core/common-behaviors/renderer2.d.ts +0 -4
- package/core/common-behaviors/size.d.ts +0 -9
- package/core/common-behaviors/tabindex.d.ts +0 -18
- package/core/common-behaviors/theme.d.ts +0 -10
- package/core/input-decorators/index.d.ts +0 -2
- package/core/input-decorators/input-boolean.decorator.d.ts +0 -12
- package/core/input-decorators/input-number.decorator.d.ts +0 -12
- package/core/public-api.d.ts +0 -2
- package/data-exporter/data-exporter.d.ts +0 -30
- package/data-exporter/data-exporter.module.d.ts +0 -6
- package/data-exporter/exporters/csv-exporter.d.ts +0 -11
- package/data-exporter/exporters/xlsx-exporter.d.ts +0 -11
- package/data-exporter/public-api.d.ts +0 -4
- package/data-filters/data-filter-container.d.ts +0 -8
- package/data-filters/data-filter-def.d.ts +0 -10
- package/data-filters/data-filter.d.ts +0 -53
- package/data-filters/data-filters.module.d.ts +0 -15
- package/data-filters/filters/data-filter-search/data-filter-search.component.d.ts +0 -39
- package/data-filters/filters/data-filter-search/search-filter-options.d.ts +0 -2
- package/data-filters/filters/data-filter-text/data-filter-text.component.d.ts +0 -37
- package/data-filters/filters/data-filter-text/text-filter-options.d.ts +0 -25
- package/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.d.ts +0 -46
- package/data-filters/public-api.d.ts +0 -9
- package/datatable/datatable/datatable.component.d.ts +0 -266
- package/datatable/datatable-action-menu/datatable-action-menu.component.d.ts +0 -23
- package/datatable/datatable-action-menu-item/datatable-action-menu-item.component.d.ts +0 -33
- package/datatable/datatable-column/datatable-column.component.d.ts +0 -44
- package/datatable/datatable-column-filter-menu/datatable-column-filter-menu.component.d.ts +0 -25
- package/datatable/datatable-column-filter-search-date/datatable-column-filter-search-date.component.d.ts +0 -18
- package/datatable/datatable-column-filter-search-numeric/datatable-column-filter-search-numeric.component.d.ts +0 -16
- package/datatable/datatable-column-filter-search-text/datatable-column-filter-search-text.component.d.ts +0 -15
- package/datatable/datatable-column-preferences/datatable-column-preferences.component.d.ts +0 -18
- package/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.d.ts +0 -13
- package/datatable/datatable-export-button/datatable-export-button.component.d.ts +0 -25
- package/datatable/datatable-footer/datatable-footer-tpl.directive.d.ts +0 -8
- package/datatable/datatable-footer/datatable-footer.directive.d.ts +0 -9
- package/datatable/datatable-menu-bar/datatable-menu-bar.component.d.ts +0 -17
- package/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.d.ts +0 -5
- package/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.d.ts +0 -11
- package/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.d.ts +0 -8
- package/datatable/datatable-row-detail/datatable-row-detail.directive.d.ts +0 -40
- package/datatable/datatable.module.d.ts +0 -56
- package/datatable/directives/datatable-action-menu-item.directive.d.ts +0 -36
- package/datatable/directives/datatable-action-menu-toggle.directive.d.ts +0 -30
- package/datatable/directives/datatable-cell-tpl.directive.d.ts +0 -8
- package/datatable/directives/datatable-column-filter-tpl.directive.d.ts +0 -8
- package/datatable/directives/datatable-column-filter.directive.d.ts +0 -10
- package/datatable/directives/datatable-filter.directive.d.ts +0 -9
- package/datatable/directives/datatable-row-action-item.directive.d.ts +0 -8
- package/datatable/models/action-item-column-position.d.ts +0 -13
- package/datatable/models/columns-alteration.d.ts +0 -61
- package/datatable/models/columns-alterations/hide-column.columns-alteration.d.ts +0 -15
- package/datatable/models/columns-alterations/order.columns-alteration.d.ts +0 -20
- package/datatable/models/columns-alterations/sort.columns-alteration.d.ts +0 -14
- package/datatable/models/columns-alterations/width.columns-alteration.d.ts +0 -16
- package/datatable/models/columns-data-filter.d.ts +0 -57
- package/datatable/models/columns-data-filters/models.d.ts +0 -65
- package/datatable/models/columns-data-filters/search-date.columns-data-filter.d.ts +0 -23
- package/datatable/models/columns-data-filters/search-numeric.columns-data-filter.d.ts +0 -22
- package/datatable/models/columns-data-filters/search-text.columns-data-filter.d.ts +0 -21
- package/datatable/models/columns-data-filters/utils.d.ts +0 -15
- package/datatable/models/datatable-accessor.d.ts +0 -21
- package/datatable/models/datatable-config.d.ts +0 -97
- package/datatable/models/datatable-data-source.d.ts +0 -14
- package/datatable/models/datatable-gql-data-source.d.ts +0 -7
- package/datatable/models/internal-column-props.d.ts +0 -7
- package/datatable/models/menubar-item-data.d.ts +0 -3
- package/datatable/models/page-info.d.ts +0 -18
- package/datatable/models/preferences-accessor.d.ts +0 -3
- package/datatable/models/preferences.d.ts +0 -18
- package/datatable/models/sort-event.d.ts +0 -4
- package/datatable/models/sort-item.d.ts +0 -5
- package/datatable/models/table-column.d.ts +0 -35
- package/datatable/public-api.d.ts +0 -54
- package/datatable/services/columns-alterations-manager.service.d.ts +0 -42
- package/datatable/services/columns-filters.service.d.ts +0 -29
- package/datatable/services/columns-manager.service.d.ts +0 -65
- package/datatable/services/datatable-column-changes.service.d.ts +0 -9
- package/datatable/services/datatable-preferences.service.d.ts +0 -22
- package/datatable/services/datatable-scrollbar-helper.service.d.ts +0 -22
- package/datatable/tokens/datatable-accessor.d.ts +0 -3
- package/datatable/tokens/datatable-preferences-accessor.d.ts +0 -3
- package/datatable/tokens/menubar-item-data.d.ts +0 -3
- package/datatable/utils/create-action-menu-column.d.ts +0 -3
- package/datatable/utils/create-checkbox-column.d.ts +0 -3
- package/datatable/utils/get-column-prop.d.ts +0 -5
- package/datatable/utils/map-columns-alterations-states.d.ts +0 -2
- package/datatable/utils/remove-unused-diffs.d.ts +0 -7
- package/datatable/utils/set-column-defaults.d.ts +0 -2
- package/datatable/utils/translate-templates.d.ts +0 -2
- package/datatable/utils/with-stored-column-info.d.ts +0 -3
- package/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.d.ts +0 -33
- package/datatable-dynamic/datatable-dynamic-def.d.ts +0 -71
- package/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.d.ts +0 -18
- package/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.d.ts +0 -63
- package/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.d.ts +0 -16
- package/datatable-dynamic/datatable-dynamic-menu-bar-token.d.ts +0 -3
- package/datatable-dynamic/datatable-dynamic.component.d.ts +0 -89
- package/datatable-dynamic/datatable-dynamic.module.d.ts +0 -22
- package/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.d.ts +0 -75
- package/datatable-dynamic/dynamic-datatable-def.service.d.ts +0 -62
- package/datatable-dynamic/dynamic-datatable-row-actions.service.d.ts +0 -19
- package/datatable-dynamic/models/dynamic-datatable-action-menu-record.d.ts +0 -17
- package/datatable-dynamic/models/dynamic-datatable-filter-menu-item.d.ts +0 -7
- package/datatable-dynamic/models/dynamic-datatable-menu-bar.d.ts +0 -63
- package/datatable-dynamic/models/dynamic-datatable-row-action-context.d.ts +0 -5
- package/datatable-dynamic/models/dynamic-datatable-row-action.d.ts +0 -17
- package/datatable-dynamic/models/index.d.ts +0 -5
- package/datatable-dynamic/public-api.d.ts +0 -13
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.d.ts +0 -2
- package/datatable-dynamic/utils/index.d.ts +0 -4
- package/dynamic/action/api/dynamic-action-api-def.d.ts +0 -35
- package/dynamic/action/api/dynamic-action-api-errors.d.ts +0 -1
- package/dynamic/action/api/dynamic-action-api.d.ts +0 -3
- package/dynamic/action/api/dynamic-action-api.service.d.ts +0 -33
- package/dynamic/action/dynamic-action-helper.service.d.ts +0 -39
- package/dynamic/action/index.d.ts +0 -10
- package/dynamic/action/link/dynamic-action-link-def.d.ts +0 -58
- package/dynamic/action/link/dynamic-action-link.d.ts +0 -3
- package/dynamic/action/link/dynamic-action-link.service.d.ts +0 -17
- package/dynamic/action/modal/dynamic-action-modal-def.d.ts +0 -10
- package/dynamic/action/modal/dynamic-action-modal.d.ts +0 -3
- package/dynamic/action/modal/dynamic-action-modal.service.d.ts +0 -32
- package/dynamic/dynamic-value-helper.service.d.ts +0 -38
- package/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.d.ts +0 -19
- package/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.d.ts +0 -8
- package/dynamic/evaluators/exporters-data-evaluator/index.d.ts +0 -2
- package/dynamic/evaluators/index.d.ts +0 -2
- package/dynamic/evaluators/jexl-evaluator/index.d.ts +0 -2
- package/dynamic/evaluators/jexl-evaluator/jexl-evaluator.d.ts +0 -13
- package/dynamic/evaluators/jexl-evaluator/jexl-value.d.ts +0 -11
- package/dynamic/models/dynamic-action-confirm-def.d.ts +0 -10
- package/dynamic/models/dynamic-action-context.d.ts +0 -2
- package/dynamic/models/dynamic-action-def.d.ts +0 -9
- package/dynamic/models/dynamic-action-ui-anchor-def.d.ts +0 -39
- package/dynamic/models/dynamic-action-ui-button-def.d.ts +0 -13
- package/dynamic/models/dynamic-action-ui-def.d.ts +0 -37
- package/dynamic/models/dynamic-action.d.ts +0 -11
- package/dynamic/models/dynamic-value-base-type.d.ts +0 -4
- package/dynamic/models/dynamic-value-evaluatable-type.d.ts +0 -3
- package/dynamic/models/dynamic-value-evaluator.d.ts +0 -6
- package/dynamic/models/dynamic-value-primitive.d.ts +0 -1
- package/dynamic/models/dynamic-value-type.d.ts +0 -4
- package/dynamic/models/dynamic-value.d.ts +0 -3
- package/dynamic/models/index.d.ts +0 -13
- package/dynamic/public-api.d.ts +0 -6
- package/dynamic/tokens/api-config.d.ts +0 -30
- package/dynamic/tokens/dynamic-action.d.ts +0 -3
- package/dynamic/tokens/dynamic-data.d.ts +0 -2
- package/dynamic/tokens/dynamic-value-evaluator.d.ts +0 -3
- package/dynamic/tokens/index.d.ts +0 -4
- package/dynamic/utils/index.d.ts +0 -1
- package/dynamic/utils/is-action-type.d.ts +0 -2
- package/dynamic-component-loader/dynamic-component-loader.module.d.ts +0 -11
- package/dynamic-component-loader/dynamic-component-loader.service.d.ts +0 -16
- package/dynamic-component-loader/dynamic-component-manifest.d.ts +0 -9
- package/dynamic-component-loader/dynamic-component-tokens.d.ts +0 -4
- package/dynamic-component-loader/public-api.d.ts +0 -4
- package/esm2020/asset-reader/asset-reader-helper.service.mjs +0 -70
- package/esm2020/asset-reader/asset-reader.module.mjs +0 -20
- package/esm2020/asset-reader/encrypted-asset-link.directive.mjs +0 -74
- package/esm2020/asset-reader/encrypted-asset-reader.mjs +0 -20
- package/esm2020/asset-reader/public-api.mjs +0 -5
- package/esm2020/asset-reader/theseam-ui-common-asset-reader.mjs +0 -5
- package/esm2020/breadcrumbs/breadcrumb.mjs +0 -2
- package/esm2020/breadcrumbs/breadcrumbs/breadcrumbs.component.mjs +0 -18
- package/esm2020/breadcrumbs/breadcrumbs-resolver.mjs +0 -2
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +0 -28
- package/esm2020/breadcrumbs/breadcrumbs.service.mjs +0 -156
- package/esm2020/breadcrumbs/public-api.mjs +0 -6
- package/esm2020/breadcrumbs/theseam-ui-common-breadcrumbs.mjs +0 -5
- package/esm2020/buttons/badge-button/badge-button.component.mjs +0 -62
- package/esm2020/buttons/button/button.component.mjs +0 -85
- package/esm2020/buttons/buttons.module.mjs +0 -51
- package/esm2020/buttons/progress-circle-button/progress-circle-button.component.mjs +0 -52
- package/esm2020/buttons/public-api.mjs +0 -7
- package/esm2020/buttons/testing/anchor-badge-button.harness.mjs +0 -18
- package/esm2020/buttons/testing/anchor-button.harness.mjs +0 -18
- package/esm2020/buttons/testing/badge-button.harness.mjs +0 -14
- package/esm2020/buttons/testing/base-badge-button.harness.mjs +0 -29
- package/esm2020/buttons/testing/base-button.harness.mjs +0 -41
- package/esm2020/buttons/testing/button.harness.mjs +0 -16
- package/esm2020/buttons/testing/index.mjs +0 -6
- package/esm2020/buttons/testing/toggle-button.harness.mjs +0 -25
- package/esm2020/buttons/theseam-ui-common-buttons.mjs +0 -5
- package/esm2020/buttons/toggle-button/toggle-button.component.mjs +0 -79
- package/esm2020/card/card-action/card-action.component.mjs +0 -31
- package/esm2020/card/card-body/card-body.component.mjs +0 -32
- package/esm2020/card/card-footer/card-footer.component.mjs +0 -11
- package/esm2020/card/card-header/card-header.component.mjs +0 -21
- package/esm2020/card/card.component.mjs +0 -17
- package/esm2020/card/card.module.mjs +0 -48
- package/esm2020/card/public-api.mjs +0 -7
- package/esm2020/card/theseam-ui-common-card.mjs +0 -5
- package/esm2020/carousel/carousel-slide.directive.mjs +0 -16
- package/esm2020/carousel/carousel.component.mjs +0 -212
- package/esm2020/carousel/carousel.module.mjs +0 -38
- package/esm2020/carousel/public-api.mjs +0 -4
- package/esm2020/carousel/theseam-ui-common-carousel.mjs +0 -5
- package/esm2020/checkbox/checkbox.component.mjs +0 -285
- package/esm2020/checkbox/checkbox.module.mjs +0 -21
- package/esm2020/checkbox/public-api.mjs +0 -4
- package/esm2020/checkbox/testing/checkbox.harness.mjs +0 -63
- package/esm2020/checkbox/testing/index.mjs +0 -2
- package/esm2020/checkbox/theseam-ui-common-checkbox.mjs +0 -5
- package/esm2020/confirm-dialog/confirm-click.directive.mjs +0 -71
- package/esm2020/confirm-dialog/confirm-dialog.component.mjs +0 -38
- package/esm2020/confirm-dialog/confirm-dialog.module.mjs +0 -47
- package/esm2020/confirm-dialog/confirm-dialog.service.mjs +0 -41
- package/esm2020/confirm-dialog/public-api.mjs +0 -5
- package/esm2020/confirm-dialog/theseam-ui-common-confirm-dialog.mjs +0 -5
- package/esm2020/core/common-behaviors/active.mjs +0 -14
- package/esm2020/core/common-behaviors/constructor.mjs +0 -9
- package/esm2020/core/common-behaviors/disabled.mjs +0 -21
- package/esm2020/core/common-behaviors/element-ref.mjs +0 -2
- package/esm2020/core/common-behaviors/index.mjs +0 -10
- package/esm2020/core/common-behaviors/initialized.mjs +0 -63
- package/esm2020/core/common-behaviors/renderer2.mjs +0 -2
- package/esm2020/core/common-behaviors/size.mjs +0 -24
- package/esm2020/core/common-behaviors/tabindex.mjs +0 -23
- package/esm2020/core/common-behaviors/theme.mjs +0 -24
- package/esm2020/core/input-decorators/index.mjs +0 -3
- package/esm2020/core/input-decorators/input-boolean.decorator.mjs +0 -26
- package/esm2020/core/input-decorators/input-number.decorator.mjs +0 -26
- package/esm2020/core/public-api.mjs +0 -3
- package/esm2020/core/theseam-ui-common-core.mjs +0 -5
- package/esm2020/data-exporter/data-exporter.mjs +0 -7
- package/esm2020/data-exporter/data-exporter.module.mjs +0 -25
- package/esm2020/data-exporter/exporters/csv-exporter.mjs +0 -35
- package/esm2020/data-exporter/exporters/xlsx-exporter.mjs +0 -33
- package/esm2020/data-exporter/public-api.mjs +0 -5
- package/esm2020/data-exporter/theseam-ui-common-data-exporter.mjs +0 -5
- package/esm2020/data-filters/data-filter-container.mjs +0 -3
- package/esm2020/data-filters/data-filter-def.mjs +0 -3
- package/esm2020/data-filters/data-filter.mjs +0 -25
- package/esm2020/data-filters/data-filters.module.mjs +0 -66
- package/esm2020/data-filters/filters/data-filter-search/data-filter-search.component.mjs +0 -121
- package/esm2020/data-filters/filters/data-filter-search/search-filter-options.mjs +0 -2
- package/esm2020/data-filters/filters/data-filter-text/data-filter-text.component.mjs +0 -148
- package/esm2020/data-filters/filters/data-filter-text/text-filter-options.mjs +0 -2
- package/esm2020/data-filters/filters/data-filter-toggle-buttons/data-filter-toggle-buttons.component.mjs +0 -166
- package/esm2020/data-filters/public-api.mjs +0 -10
- package/esm2020/data-filters/theseam-ui-common-data-filters.mjs +0 -5
- package/esm2020/datatable/datatable/datatable.component.mjs +0 -879
- package/esm2020/datatable/datatable-action-menu/datatable-action-menu.component.mjs +0 -112
- package/esm2020/datatable/datatable-action-menu-item/datatable-action-menu-item.component.mjs +0 -50
- package/esm2020/datatable/datatable-column/datatable-column.component.mjs +0 -107
- package/esm2020/datatable/datatable-column-filter-menu/datatable-column-filter-menu.component.mjs +0 -55
- package/esm2020/datatable/datatable-column-filter-search-date/datatable-column-filter-search-date.component.mjs +0 -54
- package/esm2020/datatable/datatable-column-filter-search-numeric/datatable-column-filter-search-numeric.component.mjs +0 -48
- package/esm2020/datatable/datatable-column-filter-search-text/datatable-column-filter-search-text.component.mjs +0 -44
- package/esm2020/datatable/datatable-column-preferences/datatable-column-preferences.component.mjs +0 -67
- package/esm2020/datatable/datatable-column-preferences-button/datatable-column-preferences-button.component.mjs +0 -51
- package/esm2020/datatable/datatable-export-button/datatable-export-button.component.mjs +0 -106
- package/esm2020/datatable/datatable-footer/datatable-footer-tpl.directive.mjs +0 -16
- package/esm2020/datatable/datatable-footer/datatable-footer.directive.mjs +0 -24
- package/esm2020/datatable/datatable-menu-bar/datatable-menu-bar.component.mjs +0 -49
- package/esm2020/datatable/datatable-menu-bar-column-center/datatable-menu-bar-column-center.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-column-left/datatable-menu-bar-column-left.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-column-right/datatable-menu-bar-column-right.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-row/datatable-menu-bar-row.component.mjs +0 -11
- package/esm2020/datatable/datatable-menu-bar-text/datatable-menu-bar-text.component.mjs +0 -30
- package/esm2020/datatable/datatable-row-detail/datatable-row-detail-tpl.directive.mjs +0 -16
- package/esm2020/datatable/datatable-row-detail/datatable-row-detail.directive.mjs +0 -77
- package/esm2020/datatable/datatable.module.mjs +0 -247
- package/esm2020/datatable/directives/datatable-action-menu-item.directive.mjs +0 -62
- package/esm2020/datatable/directives/datatable-action-menu-toggle.directive.mjs +0 -137
- package/esm2020/datatable/directives/datatable-cell-tpl.directive.mjs +0 -16
- package/esm2020/datatable/directives/datatable-column-filter-tpl.directive.mjs +0 -16
- package/esm2020/datatable/directives/datatable-column-filter.directive.mjs +0 -26
- package/esm2020/datatable/directives/datatable-filter.directive.mjs +0 -27
- package/esm2020/datatable/directives/datatable-row-action-item.directive.mjs +0 -16
- package/esm2020/datatable/models/action-item-column-position.mjs +0 -5
- package/esm2020/datatable/models/columns-alteration.mjs +0 -38
- package/esm2020/datatable/models/columns-alterations/hide-column.columns-alteration.mjs +0 -38
- package/esm2020/datatable/models/columns-alterations/order.columns-alteration.mjs +0 -83
- package/esm2020/datatable/models/columns-alterations/sort.columns-alteration.mjs +0 -33
- package/esm2020/datatable/models/columns-alterations/width.columns-alteration.mjs +0 -41
- package/esm2020/datatable/models/columns-data-filter.mjs +0 -10
- package/esm2020/datatable/models/columns-data-filters/models.mjs +0 -74
- package/esm2020/datatable/models/columns-data-filters/search-date.columns-data-filter.mjs +0 -113
- package/esm2020/datatable/models/columns-data-filters/search-numeric.columns-data-filter.mjs +0 -104
- package/esm2020/datatable/models/columns-data-filters/search-text.columns-data-filter.mjs +0 -86
- package/esm2020/datatable/models/columns-data-filters/utils.mjs +0 -28
- package/esm2020/datatable/models/datatable-accessor.mjs +0 -2
- package/esm2020/datatable/models/datatable-config.mjs +0 -3
- package/esm2020/datatable/models/datatable-data-source.mjs +0 -42
- package/esm2020/datatable/models/datatable-gql-data-source.mjs +0 -15
- package/esm2020/datatable/models/internal-column-props.mjs +0 -15
- package/esm2020/datatable/models/menubar-item-data.mjs +0 -2
- package/esm2020/datatable/models/page-info.mjs +0 -2
- package/esm2020/datatable/models/preferences-accessor.mjs +0 -2
- package/esm2020/datatable/models/preferences.mjs +0 -6
- package/esm2020/datatable/models/sort-event.mjs +0 -2
- package/esm2020/datatable/models/sort-item.mjs +0 -2
- package/esm2020/datatable/models/table-column.mjs +0 -2
- package/esm2020/datatable/public-api.mjs +0 -55
- package/esm2020/datatable/services/columns-alterations-manager.service.mjs +0 -136
- package/esm2020/datatable/services/columns-filters.service.mjs +0 -109
- package/esm2020/datatable/services/columns-manager.service.mjs +0 -286
- package/esm2020/datatable/services/datatable-column-changes.service.mjs +0 -20
- package/esm2020/datatable/services/datatable-preferences.service.mjs +0 -94
- package/esm2020/datatable/services/datatable-scrollbar-helper.service.mjs +0 -50
- package/esm2020/datatable/theseam-ui-common-datatable.mjs +0 -5
- package/esm2020/datatable/tokens/datatable-accessor.mjs +0 -3
- package/esm2020/datatable/tokens/datatable-preferences-accessor.mjs +0 -3
- package/esm2020/datatable/tokens/menubar-item-data.mjs +0 -3
- package/esm2020/datatable/utils/create-action-menu-column.mjs +0 -19
- package/esm2020/datatable/utils/create-checkbox-column.mjs +0 -15
- package/esm2020/datatable/utils/get-column-prop.mjs +0 -9
- package/esm2020/datatable/utils/map-columns-alterations-states.mjs +0 -42
- package/esm2020/datatable/utils/remove-unused-diffs.mjs +0 -9
- package/esm2020/datatable/utils/set-column-defaults.mjs +0 -10
- package/esm2020/datatable/utils/translate-templates.mjs +0 -12
- package/esm2020/datatable/utils/with-stored-column-info.mjs +0 -20
- package/esm2020/datatable-dynamic/datatable-dynamic-action-menu/datatable-dynamic-action-menu.component.mjs +0 -118
- package/esm2020/datatable-dynamic/datatable-dynamic-def.mjs +0 -2
- package/esm2020/datatable-dynamic/datatable-dynamic-filter-container/datatable-dynamic-filter-container.component.mjs +0 -50
- package/esm2020/datatable-dynamic/datatable-dynamic-menu-bar-content/datatable-dynamic-menu-bar-content.component.mjs +0 -148
- package/esm2020/datatable-dynamic/datatable-dynamic-menu-bar-item-manifest.mjs +0 -2
- package/esm2020/datatable-dynamic/datatable-dynamic-menu-bar-token.mjs +0 -3
- package/esm2020/datatable-dynamic/datatable-dynamic.component.mjs +0 -75
- package/esm2020/datatable-dynamic/datatable-dynamic.module.mjs +0 -80
- package/esm2020/datatable-dynamic/directives/datatable-dynamic-action-menu-item.directive.mjs +0 -400
- package/esm2020/datatable-dynamic/dynamic-datatable-def.service.mjs +0 -88
- package/esm2020/datatable-dynamic/dynamic-datatable-row-actions.service.mjs +0 -46
- package/esm2020/datatable-dynamic/models/dynamic-datatable-action-menu-record.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-filter-menu-item.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-menu-bar.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-row-action-context.mjs +0 -2
- package/esm2020/datatable-dynamic/models/dynamic-datatable-row-action.mjs +0 -2
- package/esm2020/datatable-dynamic/models/index.mjs +0 -6
- package/esm2020/datatable-dynamic/public-api.mjs +0 -14
- package/esm2020/datatable-dynamic/theseam-ui-common-datatable-dynamic.mjs +0 -5
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-columns-defaults.mjs +0 -8
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-def-defaults.mjs +0 -13
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-filter-menu-defaults.mjs +0 -6
- package/esm2020/datatable-dynamic/utils/defaults/set-dynamic-datatable-options-defaults.mjs +0 -6
- package/esm2020/datatable-dynamic/utils/index.mjs +0 -5
- package/esm2020/dynamic/action/api/dynamic-action-api-def.mjs +0 -2
- package/esm2020/dynamic/action/api/dynamic-action-api-errors.mjs +0 -4
- package/esm2020/dynamic/action/api/dynamic-action-api.mjs +0 -2
- package/esm2020/dynamic/action/api/dynamic-action-api.service.mjs +0 -209
- package/esm2020/dynamic/action/dynamic-action-helper.service.mjs +0 -158
- package/esm2020/dynamic/action/index.mjs +0 -11
- package/esm2020/dynamic/action/link/dynamic-action-link-def.mjs +0 -2
- package/esm2020/dynamic/action/link/dynamic-action-link.mjs +0 -2
- package/esm2020/dynamic/action/link/dynamic-action-link.service.mjs +0 -47
- package/esm2020/dynamic/action/modal/dynamic-action-modal-def.mjs +0 -2
- package/esm2020/dynamic/action/modal/dynamic-action-modal.mjs +0 -2
- package/esm2020/dynamic/action/modal/dynamic-action-modal.service.mjs +0 -85
- package/esm2020/dynamic/dynamic-value-helper.service.mjs +0 -105
- package/esm2020/dynamic/evaluators/exporters-data-evaluator/exporters-data-evaluator.mjs +0 -30
- package/esm2020/dynamic/evaluators/exporters-data-evaluator/exporters-data-value.mjs +0 -2
- package/esm2020/dynamic/evaluators/exporters-data-evaluator/index.mjs +0 -3
- package/esm2020/dynamic/evaluators/index.mjs +0 -3
- package/esm2020/dynamic/evaluators/jexl-evaluator/index.mjs +0 -3
- package/esm2020/dynamic/evaluators/jexl-evaluator/jexl-evaluator.mjs +0 -32
- package/esm2020/dynamic/evaluators/jexl-evaluator/jexl-value.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-confirm-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-context.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-def.mjs +0 -3
- package/esm2020/dynamic/models/dynamic-action-ui-anchor-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-ui-button-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action-ui-def.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-action.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-base-type.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-evaluatable-type.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-evaluator.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-primitive.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value-type.mjs +0 -2
- package/esm2020/dynamic/models/dynamic-value.mjs +0 -2
- package/esm2020/dynamic/models/index.mjs +0 -14
- package/esm2020/dynamic/public-api.mjs +0 -7
- package/esm2020/dynamic/theseam-ui-common-dynamic.mjs +0 -5
- package/esm2020/dynamic/tokens/api-config.mjs +0 -29
- package/esm2020/dynamic/tokens/dynamic-action.mjs +0 -3
- package/esm2020/dynamic/tokens/dynamic-data.mjs +0 -3
- package/esm2020/dynamic/tokens/dynamic-value-evaluator.mjs +0 -3
- package/esm2020/dynamic/tokens/index.mjs +0 -5
- package/esm2020/dynamic/utils/index.mjs +0 -2
- package/esm2020/dynamic/utils/is-action-type.mjs +0 -4
- package/esm2020/dynamic-component-loader/dynamic-component-loader.module.mjs +0 -50
- package/esm2020/dynamic-component-loader/dynamic-component-loader.service.mjs +0 -78
- package/esm2020/dynamic-component-loader/dynamic-component-manifest.mjs +0 -2
- package/esm2020/dynamic-component-loader/dynamic-component-tokens.mjs +0 -5
- package/esm2020/dynamic-component-loader/public-api.mjs +0 -5
- package/esm2020/dynamic-component-loader/theseam-ui-common-dynamic-component-loader.mjs +0 -5
- package/esm2020/footer-bar/footer-bar/footer-bar.component.mjs +0 -11
- package/esm2020/footer-bar/footer-bar.module.mjs +0 -20
- package/esm2020/footer-bar/public-api.mjs +0 -3
- package/esm2020/footer-bar/theseam-ui-common-footer-bar.mjs +0 -5
- package/esm2020/form-field/form-field-error.directive.mjs +0 -30
- package/esm2020/form-field/form-field-help-text.directive.mjs +0 -16
- package/esm2020/form-field/form-field-label-tpl.directive.mjs +0 -16
- package/esm2020/form-field/form-field-required-indicator.component.mjs +0 -61
- package/esm2020/form-field/form-field-tokens.mjs +0 -3
- package/esm2020/form-field/form-field.component.mjs +0 -221
- package/esm2020/form-field/form-field.module.mjs +0 -61
- package/esm2020/form-field/input.directive.mjs +0 -227
- package/esm2020/form-field/public-api.mjs +0 -10
- package/esm2020/form-field/testing/form-field-required-indicator.harness.mjs +0 -8
- package/esm2020/form-field/testing/form-field.harness.mjs +0 -45
- package/esm2020/form-field/testing/index.mjs +0 -3
- package/esm2020/form-field/theseam-ui-common-form-field.mjs +0 -5
- package/esm2020/form-field-error/form-field-error/form-field-error.component.mjs +0 -26
- package/esm2020/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.mjs +0 -26
- package/esm2020/form-field-error/form-field-error-list/form-field-error-list-item.directive.mjs +0 -18
- package/esm2020/form-field-error/form-field-error-list/form-field-error-list.component.mjs +0 -384
- package/esm2020/form-field-error/form-field-error.module.mjs +0 -39
- package/esm2020/form-field-error/public-api.mjs +0 -6
- package/esm2020/form-field-error/theseam-ui-common-form-field-error.mjs +0 -5
- package/esm2020/framework/base-layout/base-layout-action.mjs +0 -2
- package/esm2020/framework/base-layout/base-layout-nav.mjs +0 -2
- package/esm2020/framework/base-layout/base-layout-ref.mjs +0 -2
- package/esm2020/framework/base-layout/base-layout-tokens.mjs +0 -3
- package/esm2020/framework/base-layout/base-layout.component.mjs +0 -133
- package/esm2020/framework/base-layout/base-layout.module.mjs +0 -80
- package/esm2020/framework/base-layout/directives/base-layout-content-footer.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-content-header.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-content.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-nav-toggle.directive.mjs +0 -66
- package/esm2020/framework/base-layout/directives/base-layout-side-bar-footer.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-side-bar-header.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-side-bar.directive.mjs +0 -16
- package/esm2020/framework/base-layout/directives/base-layout-top-bar.directive.mjs +0 -16
- package/esm2020/framework/base-layout/index.mjs +0 -15
- package/esm2020/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.mjs +0 -16
- package/esm2020/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.mjs +0 -23
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.mjs +0 -119
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-item.mjs +0 -2
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.mjs +0 -3
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.mjs +0 -2
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.mjs +0 -177
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets.component.mjs +0 -207
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets.service.mjs +0 -181
- package/esm2020/framework/dashboard/dashboard-widgets-tokens.mjs +0 -3
- package/esm2020/framework/dashboard/dashboard.component.mjs +0 -24
- package/esm2020/framework/dashboard/dashboard.module.mjs +0 -60
- package/esm2020/framework/dashboard/index.mjs +0 -12
- package/esm2020/framework/dynamic-router/dynamic-route-def.mjs +0 -2
- package/esm2020/framework/dynamic-router/dynamic-router.module.mjs +0 -28
- package/esm2020/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.mjs +0 -256
- package/esm2020/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.mjs +0 -116
- package/esm2020/framework/dynamic-router/index.mjs +0 -6
- package/esm2020/framework/dynamic-router/resolvers/hierarchy-level.resolver.mjs +0 -26
- package/esm2020/framework/nav/horizontal-nav/horizontal-nav.component.mjs +0 -55
- package/esm2020/framework/nav/index.mjs +0 -6
- package/esm2020/framework/nav/nav-item/nav-item.component.mjs +0 -227
- package/esm2020/framework/nav/nav-utils.mjs +0 -107
- package/esm2020/framework/nav/nav.models.mjs +0 -2
- package/esm2020/framework/nav/nav.module.mjs +0 -67
- package/esm2020/framework/nav/nav.service.mjs +0 -204
- package/esm2020/framework/public-api.mjs +0 -8
- package/esm2020/framework/schema-form/index.mjs +0 -5
- package/esm2020/framework/schema-form/schema-form-framework.component.mjs +0 -21
- package/esm2020/framework/schema-form/schema-form-framework.mjs +0 -85
- package/esm2020/framework/schema-form/schema-form-widget.mjs +0 -2
- package/esm2020/framework/schema-form/schema-form.module.mjs +0 -45
- package/esm2020/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.mjs +0 -53
- package/esm2020/framework/schema-form-controls/schema-form-divider/schema-form-divider.component.mjs +0 -20
- package/esm2020/framework/schema-form-controls/schema-form-input/schema-form-input.component.mjs +0 -43
- package/esm2020/framework/schema-form-controls/schema-form-number/schema-form-number.component.mjs +0 -49
- package/esm2020/framework/schema-form-controls/schema-form-select/schema-form-select.component.mjs +0 -48
- package/esm2020/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.mjs +0 -54
- package/esm2020/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.mjs +0 -156
- package/esm2020/framework/schema-form-controls/schema-form-tel/schema-form-tel.component.mjs +0 -48
- package/esm2020/framework/schema-form-controls/schema-form-tiled-select/schema-form-tiled-select.component.mjs +0 -57
- package/esm2020/framework/side-nav/index.mjs +0 -8
- package/esm2020/framework/side-nav/side-nav-item/side-nav-item.component.mjs +0 -186
- package/esm2020/framework/side-nav/side-nav-toggle/side-nav-toggle.component.mjs +0 -40
- package/esm2020/framework/side-nav/side-nav-tokens.mjs +0 -7
- package/esm2020/framework/side-nav/side-nav-utils.mjs +0 -90
- package/esm2020/framework/side-nav/side-nav.component.mjs +0 -408
- package/esm2020/framework/side-nav/side-nav.models.mjs +0 -2
- package/esm2020/framework/side-nav/side-nav.module.mjs +0 -32
- package/esm2020/framework/side-nav/side-nav.service.mjs +0 -178
- package/esm2020/framework/theseam-ui-common-framework.mjs +0 -5
- package/esm2020/framework/top-bar/index.mjs +0 -10
- package/esm2020/framework/top-bar/top-bar-compact-menu-btn-detail.directive.mjs +0 -16
- package/esm2020/framework/top-bar/top-bar-item.directive.mjs +0 -22
- package/esm2020/framework/top-bar/top-bar-menu-btn-detail.directive.mjs +0 -16
- package/esm2020/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.mjs +0 -56
- package/esm2020/framework/top-bar/top-bar-menu.directive.mjs +0 -19
- package/esm2020/framework/top-bar/top-bar-nav-toggle-btn-detail.directive.mjs +0 -16
- package/esm2020/framework/top-bar/top-bar-title/top-bar-title.component.mjs +0 -17
- package/esm2020/framework/top-bar/top-bar.component.mjs +0 -141
- package/esm2020/framework/top-bar/top-bar.module.mjs +0 -83
- package/esm2020/google-maps/google-maps/google-maps.component.mjs +0 -333
- package/esm2020/google-maps/google-maps-api-loader/google-maps-api-loader.mjs +0 -3
- package/esm2020/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.mjs +0 -104
- package/esm2020/google-maps/google-maps-api-loader/noop-google-maps-api-loader.mjs +0 -25
- package/esm2020/google-maps/google-maps-contextmenu.mjs +0 -114
- package/esm2020/google-maps/google-maps-controls.service.mjs +0 -67
- package/esm2020/google-maps/google-maps-feature-helpers.mjs +0 -223
- package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.mjs +0 -209
- package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.directive.mjs +0 -165
- package/esm2020/google-maps/google-maps-recenter-button-control/google-maps-recenter-button-control.component.mjs +0 -58
- package/esm2020/google-maps/google-maps-upload-button-control/google-maps-upload-button-control.component.mjs +0 -115
- package/esm2020/google-maps/google-maps.module.mjs +0 -72
- package/esm2020/google-maps/google-maps.service.mjs +0 -429
- package/esm2020/google-maps/map-control.component.mjs +0 -66
- package/esm2020/google-maps/map-controls-service.mjs +0 -4
- package/esm2020/google-maps/map-file-drop/map-file-drop.component.mjs +0 -128
- package/esm2020/google-maps/map-value-manager.service.mjs +0 -48
- package/esm2020/google-maps/public-api.mjs +0 -18
- package/esm2020/google-maps/theseam-ui-common-google-maps.mjs +0 -5
- package/esm2020/graphql/datatable/create-page-info-observable.mjs +0 -38
- package/esm2020/graphql/datatable/datatable-graphql-query-ref.mjs +0 -212
- package/esm2020/graphql/datatable/datatable-graphql.service.mjs +0 -50
- package/esm2020/graphql/datatable/datatable-helpers.mjs +0 -175
- package/esm2020/graphql/datatable/get-page-info.mjs +0 -10
- package/esm2020/graphql/datatable/index.mjs +0 -10
- package/esm2020/graphql/datatable/map-filter-states.mjs +0 -63
- package/esm2020/graphql/datatable/map-page-info.mjs +0 -14
- package/esm2020/graphql/datatable/map-search-date-columns-data-filter-state-to-gql.mjs +0 -139
- package/esm2020/graphql/datatable/map-search-numeric-columns-data-filter-state-to-gql.mjs +0 -75
- package/esm2020/graphql/datatable/map-search-text-columns-data-filter-state-to-gql.mjs +0 -44
- package/esm2020/graphql/datatable/mapper-context.mjs +0 -2
- package/esm2020/graphql/models/direction.mjs +0 -8
- package/esm2020/graphql/models/gql-datatable-accessor.mjs +0 -2
- package/esm2020/graphql/models/hint-definition.mjs +0 -2
- package/esm2020/graphql/models/hint-transform-operation.mjs +0 -2
- package/esm2020/graphql/models/hint-transformer.mjs +0 -2
- package/esm2020/graphql/models/hints-kind.mjs +0 -9
- package/esm2020/graphql/models/hints-token.mjs +0 -2
- package/esm2020/graphql/models/index.mjs +0 -10
- package/esm2020/graphql/models/query-processing-config.mjs +0 -2
- package/esm2020/graphql/models/variable.mjs +0 -7
- package/esm2020/graphql/public-api.mjs +0 -3
- package/esm2020/graphql/theseam-ui-common-graphql.mjs +0 -5
- package/esm2020/graphql/utils/contains-variable.mjs +0 -14
- package/esm2020/graphql/utils/gql-var.mjs +0 -4
- package/esm2020/graphql/utils/hints-tokens-containing-hint.mjs +0 -4
- package/esm2020/graphql/utils/index.mjs +0 -11
- package/esm2020/graphql/utils/inline-variables.mjs +0 -51
- package/esm2020/graphql/utils/parse-comments.mjs +0 -24
- package/esm2020/graphql/utils/parse-hints.mjs +0 -108
- package/esm2020/graphql/utils/remove-variable-definition.mjs +0 -14
- package/esm2020/graphql/utils/remove-variable-definitions-not-defined.mjs +0 -19
- package/esm2020/graphql/utils/remove-variable.mjs +0 -22
- package/esm2020/graphql/utils/to-gql.mjs +0 -40
- package/esm2020/icon/icon/icon.component.mjs +0 -139
- package/esm2020/icon/icon-btn/icon-btn.component.mjs +0 -183
- package/esm2020/icon/icon-notification/icon-notification.component.mjs +0 -124
- package/esm2020/icon/icon.mjs +0 -2
- package/esm2020/icon/icon.module.mjs +0 -38
- package/esm2020/icon/public-api.mjs +0 -7
- package/esm2020/icon/theseam-ui-common-icon.mjs +0 -5
- package/esm2020/icon/utils/file-extension-icon.mjs +0 -33
- package/esm2020/icon/utils/get-known-icon.mjs +0 -82
- package/esm2020/icon/utils/index.mjs +0 -3
- package/esm2020/layout/breakpoint-aliases.mjs +0 -11
- package/esm2020/layout/layout.module.mjs +0 -25
- package/esm2020/layout/layout.service.mjs +0 -32
- package/esm2020/layout/observe-media-query.mjs +0 -41
- package/esm2020/layout/public-api.mjs +0 -5
- package/esm2020/layout/theseam-ui-common-layout.mjs +0 -5
- package/esm2020/loading/loading/loading.component.mjs +0 -26
- package/esm2020/loading/loading-overlay.service.mjs +0 -58
- package/esm2020/loading/loading-themes.mjs +0 -18
- package/esm2020/loading/loading.models.mjs +0 -2
- package/esm2020/loading/loading.module.mjs +0 -41
- package/esm2020/loading/public-api.mjs +0 -6
- package/esm2020/loading/theseam-ui-common-loading.mjs +0 -5
- package/esm2020/menu/menu-animations.mjs +0 -58
- package/esm2020/menu/menu-divider.component.mjs +0 -13
- package/esm2020/menu/menu-footer/menu-footer.component.mjs +0 -32
- package/esm2020/menu/menu-footer-action/menu-footer-action.component.mjs +0 -54
- package/esm2020/menu/menu-header/menu-header.component.mjs +0 -32
- package/esm2020/menu/menu-item.component.mjs +0 -158
- package/esm2020/menu/menu-panel-token.mjs +0 -6
- package/esm2020/menu/menu-panel.mjs +0 -2
- package/esm2020/menu/menu-toggle.directive.mjs +0 -427
- package/esm2020/menu/menu.component.mjs +0 -200
- package/esm2020/menu/menu.module.mjs +0 -67
- package/esm2020/menu/public-api.mjs +0 -16
- package/esm2020/menu/testing/menu-footer.harness.mjs +0 -28
- package/esm2020/menu/testing/menu-header.harness.mjs +0 -23
- package/esm2020/menu/testing/menu-item.harness.mjs +0 -59
- package/esm2020/menu/testing/menu.harness.mjs +0 -163
- package/esm2020/menu/testing/utils.mjs +0 -13
- package/esm2020/menu/theseam-ui-common-menu.mjs +0 -5
- package/esm2020/modal/directives/modal-close.directive.mjs +0 -74
- package/esm2020/modal/directives/modal-footer-tpl.directive.mjs +0 -16
- package/esm2020/modal/directives/modal-header-icon-tpl.directive.mjs +0 -16
- package/esm2020/modal/directives/modal-header-title-tpl.directive.mjs +0 -16
- package/esm2020/modal/directives/modal-title.directive.mjs +0 -20
- package/esm2020/modal/directives/modal.directive.mjs +0 -25
- package/esm2020/modal/modal/modal.component.mjs +0 -162
- package/esm2020/modal/modal-body/modal-body.component.mjs +0 -21
- package/esm2020/modal/modal-config.mjs +0 -47
- package/esm2020/modal/modal-container/modal-container.component.mjs +0 -245
- package/esm2020/modal/modal-footer/modal-footer.component.mjs +0 -17
- package/esm2020/modal/modal-header/modal-header.component.mjs +0 -28
- package/esm2020/modal/modal-injectors.mjs +0 -23
- package/esm2020/modal/modal-ref.mjs +0 -171
- package/esm2020/modal/modal-utils.mjs +0 -14
- package/esm2020/modal/modal.models.mjs +0 -3
- package/esm2020/modal/modal.module.mjs +0 -127
- package/esm2020/modal/modal.service.mjs +0 -352
- package/esm2020/modal/public-api.mjs +0 -20
- package/esm2020/modal/route-modal/route-modal.component.mjs +0 -62
- package/esm2020/modal/theseam-ui-common-modal.mjs +0 -5
- package/esm2020/models/component-type.mjs +0 -4
- package/esm2020/models/http-status-codes.mjs +0 -20
- package/esm2020/models/public-api.mjs +0 -8
- package/esm2020/models/size-prefixes.mjs +0 -2
- package/esm2020/models/size-types.mjs +0 -2
- package/esm2020/models/theme-names.mjs +0 -26
- package/esm2020/models/theme-prefixes.mjs +0 -2
- package/esm2020/models/theme-types.mjs +0 -2
- package/esm2020/models/theseam-ui-common-models.mjs +0 -5
- package/esm2020/navigation-reload/navigation-reload.config.mjs +0 -2
- package/esm2020/navigation-reload/navigation-reload.provider.mjs +0 -14
- package/esm2020/navigation-reload/navigation-reload.service.mjs +0 -54
- package/esm2020/navigation-reload/public-api.mjs +0 -4
- package/esm2020/navigation-reload/theseam-ui-common-navigation-reload.mjs +0 -5
- package/esm2020/popover/popover/popover.component.mjs +0 -160
- package/esm2020/popover/popover-animations.mjs +0 -46
- package/esm2020/popover/popover.directive.mjs +0 -264
- package/esm2020/popover/popover.module.mjs +0 -40
- package/esm2020/popover/public-api.mjs +0 -5
- package/esm2020/popover/theseam-ui-common-popover.mjs +0 -5
- package/esm2020/progress/progress-circle/progress-circle.component.mjs +0 -65
- package/esm2020/progress/progress.module.mjs +0 -24
- package/esm2020/progress/public-api.mjs +0 -3
- package/esm2020/progress/theseam-ui-common-progress.mjs +0 -5
- package/esm2020/public_api.mjs +0 -2
- package/esm2020/rich-text/public-api.mjs +0 -5
- package/esm2020/rich-text/rich-text/rich-text.component.mjs +0 -594
- package/esm2020/rich-text/rich-text.module.mjs +0 -32
- package/esm2020/rich-text/theseam-ui-common-rich-text.mjs +0 -5
- package/esm2020/rich-text/utils/models.mjs +0 -24
- package/esm2020/rich-text/utils/utils.mjs +0 -123
- package/esm2020/scrollbar/overlay-scrollbar.directive.mjs +0 -60
- package/esm2020/scrollbar/overlay-scrollbars-config-model.mjs +0 -2
- package/esm2020/scrollbar/overlay-scrollbars-config.mjs +0 -13
- package/esm2020/scrollbar/overlay-scrollbars.service.mjs +0 -83
- package/esm2020/scrollbar/public-api.mjs +0 -6
- package/esm2020/scrollbar/scrollbar.module.mjs +0 -30
- package/esm2020/scrollbar/theseam-ui-common-scrollbar.mjs +0 -5
- package/esm2020/services/asset-loader.service.mjs +0 -32
- package/esm2020/services/font-loader.service.mjs +0 -83
- package/esm2020/services/preferences/preferences-accessor.mjs +0 -2
- package/esm2020/services/preferences/preferences-manager.service.mjs +0 -69
- package/esm2020/services/preferences/preferences-record.mjs +0 -72
- package/esm2020/services/preferences/preferences.models.mjs +0 -2
- package/esm2020/services/public-api.mjs +0 -8
- package/esm2020/services/router-helpers.service.mjs +0 -25
- package/esm2020/services/theseam-ui-common-services.mjs +0 -5
- package/esm2020/shared/components/index.mjs +0 -2
- package/esm2020/shared/components/password-input-reveal/password-input-reveal.component.mjs +0 -49
- package/esm2020/shared/directives/auto-focus.directive.mjs +0 -54
- package/esm2020/shared/directives/click-outside.directive.mjs +0 -52
- package/esm2020/shared/directives/disable-control.directive.mjs +0 -27
- package/esm2020/shared/directives/elem-resized.directive.mjs +0 -28
- package/esm2020/shared/directives/hover-class-toggle.directive.mjs +0 -88
- package/esm2020/shared/directives/hover-class.directive.mjs +0 -82
- package/esm2020/shared/directives/index.mjs +0 -9
- package/esm2020/shared/directives/ng-select-extra.directive.mjs +0 -184
- package/esm2020/shared/directives/ngx-quill-extra.directive.mjs +0 -61
- package/esm2020/shared/pipes/index.mjs +0 -3
- package/esm2020/shared/pipes/mask-chars.pipe.mjs +0 -25
- package/esm2020/shared/pipes/truncate.pipe.mjs +0 -23
- package/esm2020/shared/public-api.mjs +0 -5
- package/esm2020/shared/shared.module.mjs +0 -93
- package/esm2020/shared/theseam-ui-common-shared.mjs +0 -5
- package/esm2020/storage/local-storage.service.mjs +0 -78
- package/esm2020/storage/localstorage-memory.mjs +0 -64
- package/esm2020/storage/public-api.mjs +0 -2
- package/esm2020/storage/theseam-ui-common-storage.mjs +0 -5
- package/esm2020/story-helpers/arg-type-helpers.mjs +0 -31
- package/esm2020/story-helpers/args-to-tpl.mjs +0 -83
- package/esm2020/story-helpers/initial-route-factory.mjs +0 -4
- package/esm2020/story-helpers/initial-route.service.mjs +0 -27
- package/esm2020/story-helpers/on-story-bootstrapped-exec.mjs +0 -61
- package/esm2020/story-helpers/on-story-bootstrapped-trigger.mjs +0 -39
- package/esm2020/story-helpers/public-api.mjs +0 -16
- package/esm2020/story-helpers/route-button.mjs +0 -12
- package/esm2020/story-helpers/routes-arg-type.mjs +0 -19
- package/esm2020/story-helpers/story-empty-with-route.component.mjs +0 -12
- package/esm2020/story-helpers/story-empty.component.mjs +0 -11
- package/esm2020/story-helpers/story-helper-components.module.mjs +0 -42
- package/esm2020/story-helpers/story-initial-route.mjs +0 -28
- package/esm2020/story-helpers/story-modal-container.component.mjs +0 -90
- package/esm2020/story-helpers/story-preferences-accessor.service.mjs +0 -34
- package/esm2020/story-helpers/story-toastr.service.mjs +0 -36
- package/esm2020/story-helpers/theseam-ui-common-story-helpers.mjs +0 -5
- package/esm2020/tabbed/directives/tabbed-tab-content.directive.mjs +0 -17
- package/esm2020/tabbed/directives/tabbed-tab.directive.mjs +0 -37
- package/esm2020/tabbed/public-api.mjs +0 -9
- package/esm2020/tabbed/tabbed-content/tabbed-content.component.mjs +0 -16
- package/esm2020/tabbed/tabbed-item/tabbed-item.component.mjs +0 -33
- package/esm2020/tabbed/tabbed-models.mjs +0 -2
- package/esm2020/tabbed/tabbed.component.mjs +0 -119
- package/esm2020/tabbed/tabbed.module.mjs +0 -54
- package/esm2020/tabbed/tabbed.service.mjs +0 -30
- package/esm2020/tabbed/theseam-ui-common-tabbed.mjs +0 -5
- package/esm2020/table/public-api.mjs +0 -6
- package/esm2020/table/table/table.component.mjs +0 -181
- package/esm2020/table/table-cell-tpl.directive.mjs +0 -17
- package/esm2020/table/table-column-header-tpl.directive.mjs +0 -17
- package/esm2020/table/table-column.component.mjs +0 -68
- package/esm2020/table/table.module.mjs +0 -48
- package/esm2020/table/theseam-ui-common-table.mjs +0 -5
- package/esm2020/table-cell-type/public-api.mjs +0 -12
- package/esm2020/table-cell-type/services/table-cell-types-helpers.service.mjs +0 -67
- package/esm2020/table-cell-type/table-cell-type-action.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-column.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-config.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-export-props.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-manifest-provider.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-models.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-name.mjs +0 -2
- package/esm2020/table-cell-type/table-cell-type-selector.component.mjs +0 -100
- package/esm2020/table-cell-type/table-cell-type-tokens.mjs +0 -4
- package/esm2020/table-cell-type/table-cell-type.module.mjs +0 -29
- package/esm2020/table-cell-type/theseam-ui-common-table-cell-type.mjs +0 -5
- package/esm2020/table-cell-types/public-api.mjs +0 -23
- package/esm2020/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.mjs +0 -86
- package/esm2020/table-cell-types/table-cell-type-currency/table-cell-type-currency.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-date/table-cell-type-date-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-date/table-cell-type-date.component.mjs +0 -52
- package/esm2020/table-cell-types/table-cell-type-date/table-cell-type-date.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.mjs +0 -84
- package/esm2020/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.mjs +0 -175
- package/esm2020/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.mjs +0 -82
- package/esm2020/table-cell-types/table-cell-type-integer/table-cell-type-integer.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-manifests.mjs +0 -92
- package/esm2020/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.mjs +0 -67
- package/esm2020/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.mjs +0 -168
- package/esm2020/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.mjs +0 -77
- package/esm2020/table-cell-types/table-cell-type-string/table-cell-type-string-config.mjs +0 -2
- package/esm2020/table-cell-types/table-cell-type-string/table-cell-type-string.component.mjs +0 -197
- package/esm2020/table-cell-types/table-cell-types.module.mjs +0 -118
- package/esm2020/table-cell-types/theseam-ui-common-table-cell-types.mjs +0 -5
- package/esm2020/tel-input/intl-tel-input.mjs +0 -55
- package/esm2020/tel-input/models/index.mjs +0 -3
- package/esm2020/tel-input/models/tel-input-country-data.mjs +0 -2
- package/esm2020/tel-input/models/tel-input-number-format-name.mjs +0 -8
- package/esm2020/tel-input/phone-number.pipe.mjs +0 -49
- package/esm2020/tel-input/public-api.mjs +0 -11
- package/esm2020/tel-input/tel-input/tel-input.component.mjs +0 -198
- package/esm2020/tel-input/tel-input-constants.mjs +0 -18
- package/esm2020/tel-input/tel-input-validator.mjs +0 -27
- package/esm2020/tel-input/tel-input.directive.mjs +0 -209
- package/esm2020/tel-input/tel-input.module.mjs +0 -43
- package/esm2020/tel-input/testing/tel-input.harness.mjs +0 -49
- package/esm2020/tel-input/theseam-ui-common-tel-input.mjs +0 -5
- package/esm2020/tel-input/utils/add-country-code.mjs +0 -23
- package/esm2020/tel-input/utils/coerce-phone-number-format.mjs +0 -22
- package/esm2020/tel-input/utils/get-country-code.mjs +0 -9
- package/esm2020/tel-input/utils/get-dial-code.mjs +0 -45
- package/esm2020/tel-input/utils/get-global-intl-tel-input-globals.mjs +0 -4
- package/esm2020/tel-input/utils/get-global-intl-tel-input-utils.mjs +0 -4
- package/esm2020/tel-input/utils/get-intl-tel-input-utils.mjs +0 -17
- package/esm2020/tel-input/utils/get-validation-error-message.mjs +0 -12
- package/esm2020/tel-input/utils/index.mjs +0 -10
- package/esm2020/tel-input/utils/process-country-codes.mjs +0 -46
- package/esm2020/testing/current-tick-time.mjs +0 -16
- package/esm2020/testing/fake-toastr.mjs +0 -29
- package/esm2020/testing/get-harness.mjs +0 -19
- package/esm2020/testing/harnesses/ng-select-dropdown.harness.mjs +0 -39
- package/esm2020/testing/harnesses/ng-select-option.harness.mjs +0 -26
- package/esm2020/testing/harnesses/ng-select.harness.mjs +0 -104
- package/esm2020/testing/public-api.mjs +0 -10
- package/esm2020/testing/render-story.mjs +0 -10
- package/esm2020/testing/story-expect.mjs +0 -40
- package/esm2020/testing/theseam-ui-common-testing.mjs +0 -5
- package/esm2020/testing/tick-helper.mjs +0 -74
- package/esm2020/theseam-ui-common.mjs +0 -5
- package/esm2020/tiled-select/components/tiled-select/tiled-select.component.mjs +0 -214
- package/esm2020/tiled-select/components/tiled-select-tile/tiled-select-tile.component.mjs +0 -159
- package/esm2020/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.mjs +0 -63
- package/esm2020/tiled-select/directives/tiled-select-tile-icon-tpl.directive.mjs +0 -17
- package/esm2020/tiled-select/directives/tiled-select-tile-label-tpl.directive.mjs +0 -16
- package/esm2020/tiled-select/directives/tiled-select-tile-overlay.directive.mjs +0 -19
- package/esm2020/tiled-select/public-api.mjs +0 -10
- package/esm2020/tiled-select/testing/index.mjs +0 -3
- package/esm2020/tiled-select/testing/tiled-select-harness.mjs +0 -21
- package/esm2020/tiled-select/testing/tiled-select-tile-harness.mjs +0 -23
- package/esm2020/tiled-select/theseam-ui-common-tiled-select.mjs +0 -5
- package/esm2020/tiled-select/tiled-select.models.mjs +0 -2
- package/esm2020/tiled-select/tiled-select.module.mjs +0 -51
- package/esm2020/toggle-edit/models/can-toggle-edit.mjs +0 -2
- package/esm2020/toggle-edit/models/index.mjs +0 -3
- package/esm2020/toggle-edit/models/toggle-edit-ref.mjs +0 -2
- package/esm2020/toggle-edit/public-api.mjs +0 -7
- package/esm2020/toggle-edit/theseam-ui-common-toggle-edit.mjs +0 -5
- package/esm2020/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.mjs +0 -11
- package/esm2020/toggle-edit/toggle-edit-display-tpl.directive.mjs +0 -16
- package/esm2020/toggle-edit/toggle-edit-keyboard-listener.service.mjs +0 -57
- package/esm2020/toggle-edit/toggle-edit.component.mjs +0 -414
- package/esm2020/toggle-edit/toggle-edit.module.mjs +0 -64
- package/esm2020/toggle-group/public-api.mjs +0 -4
- package/esm2020/toggle-group/theseam-ui-common-toggle-group.mjs +0 -5
- package/esm2020/toggle-group/toggle-group-option.directive.mjs +0 -47
- package/esm2020/toggle-group/toggle-group.directive.mjs +0 -199
- package/esm2020/toggle-group/toggle-group.module.mjs +0 -33
- package/esm2020/unsaved-changes-dialog/public-api.mjs +0 -5
- package/esm2020/unsaved-changes-dialog/theseam-ui-common-unsaved-changes-dialog.mjs +0 -5
- package/esm2020/unsaved-changes-dialog/unsaved-changes-can-deactivate.mjs +0 -30
- package/esm2020/unsaved-changes-dialog/unsaved-changes-dialog.component.mjs +0 -21
- package/esm2020/unsaved-changes-dialog/unsaved-changes-dialog.guard.mjs +0 -38
- package/esm2020/unsaved-changes-dialog/unsaved-changes-dialog.module.mjs +0 -17
- package/esm2020/utils/array-move.mjs +0 -62
- package/esm2020/utils/calc-percentage.mjs +0 -4
- package/esm2020/utils/cdk/get-closest-widget-cdk-drag.mjs +0 -18
- package/esm2020/utils/create-padding.mjs +0 -17
- package/esm2020/utils/file-utils.mjs +0 -49
- package/esm2020/utils/form/get-control-name.mjs +0 -31
- package/esm2020/utils/form/get-control-path.mjs +0 -38
- package/esm2020/utils/form/has-required-control.mjs +0 -50
- package/esm2020/utils/form/is-empty-input-value.mjs +0 -6
- package/esm2020/utils/form/observe-control-is-different.mjs +0 -18
- package/esm2020/utils/form/observe-control-status.mjs +0 -17
- package/esm2020/utils/form/observe-control-valid.mjs +0 -30
- package/esm2020/utils/form/observe-control-value-change.mjs +0 -10
- package/esm2020/utils/form/observe-control-value.mjs +0 -11
- package/esm2020/utils/form/wait-on-non-pending-status.mjs +0 -18
- package/esm2020/utils/fractional-digits-count.mjs +0 -19
- package/esm2020/utils/geo-json/close-polygons.mjs +0 -38
- package/esm2020/utils/geo-json/coerce-feature-collection.mjs +0 -44
- package/esm2020/utils/geo-json/geo-json-to-area.mjs +0 -11
- package/esm2020/utils/geo-json/is-feature-collection.validator.mjs +0 -21
- package/esm2020/utils/geo-json/is-only-geometry-types.mjs +0 -23
- package/esm2020/utils/geo-json/is-only-geometry-types.validator.mjs +0 -32
- package/esm2020/utils/geo-json/merge-polygons.mjs +0 -35
- package/esm2020/utils/geo-json/min-max-points.validator.mjs +0 -56
- package/esm2020/utils/geo-json/no-empty-feature-collection.validator.mjs +0 -24
- package/esm2020/utils/geo-json/no-inner-rings.validator.mjs +0 -63
- package/esm2020/utils/geo-json/no-kinks.validator.mjs +0 -39
- package/esm2020/utils/geo-json/read-geo-file.mjs +0 -93
- package/esm2020/utils/geo-json/split-multi-polygons.mjs +0 -29
- package/esm2020/utils/get-attribute.mjs +0 -7
- package/esm2020/utils/has-attribute.mjs +0 -7
- package/esm2020/utils/has-property.mjs +0 -7
- package/esm2020/utils/input-masks.mjs +0 -2
- package/esm2020/utils/is-absolute-url.mjs +0 -17
- package/esm2020/utils/is-null-or-undefined-or-empty.mjs +0 -4
- package/esm2020/utils/is-null-or-undefined.mjs +0 -4
- package/esm2020/utils/is-numeric.mjs +0 -4
- package/esm2020/utils/load-style-sheet.mjs +0 -14
- package/esm2020/utils/load-style.mjs +0 -13
- package/esm2020/utils/not-null-or-undefined-or-empty.mjs +0 -4
- package/esm2020/utils/not-null-or-undefined.mjs +0 -4
- package/esm2020/utils/obj-utils.mjs +0 -26
- package/esm2020/utils/observe-query-list.mjs +0 -5
- package/esm2020/utils/operators/index.mjs +0 -3
- package/esm2020/utils/operators/map-each.mjs +0 -6
- package/esm2020/utils/operators/tap-first.mjs +0 -14
- package/esm2020/utils/pad-end.mjs +0 -9
- package/esm2020/utils/pad-start.mjs +0 -9
- package/esm2020/utils/polling-ticker.mjs +0 -121
- package/esm2020/utils/public-api.mjs +0 -54
- package/esm2020/utils/refreshable.mjs +0 -65
- package/esm2020/utils/router/index.mjs +0 -7
- package/esm2020/utils/router/is-empty-url-route.mjs +0 -4
- package/esm2020/utils/router/leaf-child-route.mjs +0 -8
- package/esm2020/utils/router/operators/activated-routes-with-data-property.mjs +0 -11
- package/esm2020/utils/router/route-snapshot-path-full.mjs +0 -5
- package/esm2020/utils/router/route-snapshot-path-relative.mjs +0 -4
- package/esm2020/utils/router/will-have-data-prop.mjs +0 -10
- package/esm2020/utils/subscriber-count.mjs +0 -45
- package/esm2020/utils/theseam-ui-common-utils.mjs +0 -5
- package/esm2020/utils/toggle-attribute.mjs +0 -36
- package/esm2020/utils/wait-on-condition-async.mjs +0 -30
- package/esm2020/utils/wrap-into-observable.mjs +0 -8
- package/esm2020/validators/decimal.validator.mjs +0 -25
- package/esm2020/validators/email-exists.validator.mjs +0 -18
- package/esm2020/validators/integer.validator.mjs +0 -25
- package/esm2020/validators/phone-length.validator.mjs +0 -8
- package/esm2020/validators/public-api.mjs +0 -6
- package/esm2020/validators/tax-id.validator.mjs +0 -13
- package/esm2020/validators/theseam-ui-common-validators.mjs +0 -5
- package/esm2020/vertical-list-filter/public-api.mjs +0 -3
- package/esm2020/vertical-list-filter/testing/index.mjs +0 -2
- package/esm2020/vertical-list-filter/testing/vertical-list-filter.harness.mjs +0 -28
- package/esm2020/vertical-list-filter/theseam-ui-common-vertical-list-filter.mjs +0 -5
- package/esm2020/vertical-list-filter/vertical-list-filter.component.mjs +0 -52
- package/esm2020/viewers/html-template-viewer/html-template-viewer.component.mjs +0 -219
- package/esm2020/viewers/html-template-viewer/html-template-viewer.module.mjs +0 -32
- package/esm2020/viewers/html-template-viewer/index.mjs +0 -3
- package/esm2020/viewers/pdf-viewer/index.mjs +0 -4
- package/esm2020/viewers/pdf-viewer/pdf-page/pdf-page.component.mjs +0 -143
- package/esm2020/viewers/pdf-viewer/pdf-renderer.service.mjs +0 -28
- package/esm2020/viewers/pdf-viewer/pdf-viewer.component.mjs +0 -164
- package/esm2020/viewers/pdf-viewer/pdf-viewer.module.mjs +0 -33
- package/esm2020/viewers/public-api.mjs +0 -3
- package/esm2020/viewers/theseam-ui-common-viewers.mjs +0 -5
- package/esm2020/widget/directives/widget-drag-handle.directive.mjs +0 -150
- package/esm2020/widget/directives/widget-icon-tpl.directive.mjs +0 -16
- package/esm2020/widget/directives/widget-title-tpl.directive.mjs +0 -16
- package/esm2020/widget/preferences/widget-preferences.models.mjs +0 -5
- package/esm2020/widget/preferences/widget-preferences.service.mjs +0 -78
- package/esm2020/widget/preferences/widget-preferences.token.mjs +0 -3
- package/esm2020/widget/public-api.mjs +0 -42
- package/esm2020/widget/theseam-ui-common-widget.mjs +0 -5
- package/esm2020/widget/widget/widget.component.mjs +0 -214
- package/esm2020/widget/widget-content-components/widget-button-group/widget-button-group.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-button-group/widget-button-group.module.mjs +0 -30
- package/esm2020/widget/widget-content-components/widget-content-header/widget-content-header.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-content-header/widget-content-header.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-description/widget-description.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-description/widget-description.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-empty-label/widget-empty-label.component.mjs +0 -39
- package/esm2020/widget/widget-content-components/widget-empty-label/widget-empty-label.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-footer-link/widget-footer-link.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-footer-link/widget-footer-link.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-footer-text/widget-footer-text.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-footer-text/widget-footer-text.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-header-badge/widget-header-badge.component.mjs +0 -22
- package/esm2020/widget/widget-content-components/widget-header-badge/widget-header-badge.module.mjs +0 -24
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.mjs +0 -17
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.mjs +0 -124
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group.component.mjs +0 -14
- package/esm2020/widget/widget-content-components/widget-list-group/widget-list-group.module.mjs +0 -46
- package/esm2020/widget/widget-content-components/widget-table/widget-table.component.mjs +0 -38
- package/esm2020/widget/widget-content-components/widget-table/widget-table.module.mjs +0 -32
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.mjs +0 -13
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.mjs +0 -41
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.mjs +0 -17
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile.component.mjs +0 -122
- package/esm2020/widget/widget-content-components/widget-tile/widget-tile.module.mjs +0 -48
- package/esm2020/widget/widget-content-components/widget-tile-list/widget-tile-list.component.mjs +0 -11
- package/esm2020/widget/widget-content-components/widget-tile-list/widget-tile-list.module.mjs +0 -27
- package/esm2020/widget/widget-footer/widget-footer.component.mjs +0 -11
- package/esm2020/widget/widget-registry.models.mjs +0 -2
- package/esm2020/widget/widget-registry.service.mjs +0 -56
- package/esm2020/widget/widget-token.mjs +0 -5
- package/esm2020/widget/widget.models.mjs +0 -2
- package/esm2020/widget/widget.module.mjs +0 -125
- package/fesm2015/theseam-ui-common-asset-reader.mjs +0 -186
- package/fesm2015/theseam-ui-common-asset-reader.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-breadcrumbs.mjs +0 -201
- package/fesm2015/theseam-ui-common-breadcrumbs.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-buttons.mjs +0 -492
- package/fesm2015/theseam-ui-common-buttons.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-card.mjs +0 -153
- package/fesm2015/theseam-ui-common-card.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-carousel.mjs +0 -266
- package/fesm2015/theseam-ui-common-carousel.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-checkbox.mjs +0 -391
- package/fesm2015/theseam-ui-common-checkbox.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-confirm-dialog.mjs +0 -192
- package/fesm2015/theseam-ui-common-confirm-dialog.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-core.mjs +0 -225
- package/fesm2015/theseam-ui-common-core.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-data-exporter.mjs +0 -93
- package/fesm2015/theseam-ui-common-data-exporter.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-data-filters.mjs +0 -508
- package/fesm2015/theseam-ui-common-data-filters.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-datatable-dynamic.mjs +0 -998
- package/fesm2015/theseam-ui-common-datatable-dynamic.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-datatable.mjs +0 -3685
- package/fesm2015/theseam-ui-common-datatable.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-dynamic-component-loader.mjs +0 -135
- package/fesm2015/theseam-ui-common-dynamic-component-loader.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-dynamic.mjs +0 -722
- package/fesm2015/theseam-ui-common-dynamic.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-footer-bar.mjs +0 -35
- package/fesm2015/theseam-ui-common-footer-bar.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-form-field-error.mjs +0 -479
- package/fesm2015/theseam-ui-common-form-field-error.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-form-field.mjs +0 -670
- package/fesm2015/theseam-ui-common-form-field.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-framework.mjs +0 -3891
- package/fesm2015/theseam-ui-common-framework.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-google-maps.mjs +0 -2083
- package/fesm2015/theseam-ui-common-google-maps.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-graphql.mjs +0 -1115
- package/fesm2015/theseam-ui-common-graphql.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-icon.mjs +0 -587
- package/fesm2015/theseam-ui-common-icon.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-layout.mjs +0 -101
- package/fesm2015/theseam-ui-common-layout.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-loading.mjs +0 -139
- package/fesm2015/theseam-ui-common-loading.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-menu.mjs +0 -1361
- package/fesm2015/theseam-ui-common-menu.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-modal.mjs +0 -1378
- package/fesm2015/theseam-ui-common-modal.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-models.mjs +0 -52
- package/fesm2015/theseam-ui-common-models.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-navigation-reload.mjs +0 -75
- package/fesm2015/theseam-ui-common-navigation-reload.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-popover.mjs +0 -506
- package/fesm2015/theseam-ui-common-popover.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-progress.mjs +0 -93
- package/fesm2015/theseam-ui-common-progress.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-rich-text.mjs +0 -767
- package/fesm2015/theseam-ui-common-rich-text.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-scrollbar.mjs +0 -184
- package/fesm2015/theseam-ui-common-scrollbar.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-services.mjs +0 -273
- package/fesm2015/theseam-ui-common-services.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-shared.mjs +0 -739
- package/fesm2015/theseam-ui-common-shared.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-storage.mjs +0 -148
- package/fesm2015/theseam-ui-common-storage.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-story-helpers.mjs +0 -514
- package/fesm2015/theseam-ui-common-story-helpers.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-tabbed.mjs +0 -288
- package/fesm2015/theseam-ui-common-tabbed.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-table-cell-type.mjs +0 -201
- package/fesm2015/theseam-ui-common-table-cell-type.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-table-cell-types.mjs +0 -1134
- package/fesm2015/theseam-ui-common-table-cell-types.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-table.mjs +0 -320
- package/fesm2015/theseam-ui-common-table.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-tel-input.mjs +0 -841
- package/fesm2015/theseam-ui-common-tel-input.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-testing.mjs +0 -395
- package/fesm2015/theseam-ui-common-testing.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-tiled-select.mjs +0 -571
- package/fesm2015/theseam-ui-common-tiled-select.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-toggle-edit.mjs +0 -560
- package/fesm2015/theseam-ui-common-toggle-edit.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-toggle-group.mjs +0 -281
- package/fesm2015/theseam-ui-common-toggle-group.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-unsaved-changes-dialog.mjs +0 -106
- package/fesm2015/theseam-ui-common-unsaved-changes-dialog.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-utils.mjs +0 -1387
- package/fesm2015/theseam-ui-common-utils.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-validators.mjs +0 -94
- package/fesm2015/theseam-ui-common-validators.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-vertical-list-filter.mjs +0 -96
- package/fesm2015/theseam-ui-common-vertical-list-filter.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-viewers.mjs +0 -602
- package/fesm2015/theseam-ui-common-viewers.mjs.map +0 -1
- package/fesm2015/theseam-ui-common-widget.mjs +0 -1395
- package/fesm2015/theseam-ui-common-widget.mjs.map +0 -1
- package/fesm2015/theseam-ui-common.mjs +0 -6
- package/fesm2015/theseam-ui-common.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-asset-reader.mjs +0 -184
- package/fesm2020/theseam-ui-common-asset-reader.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-breadcrumbs.mjs +0 -201
- package/fesm2020/theseam-ui-common-breadcrumbs.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-buttons.mjs +0 -466
- package/fesm2020/theseam-ui-common-buttons.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-card.mjs +0 -151
- package/fesm2020/theseam-ui-common-card.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-carousel.mjs +0 -266
- package/fesm2020/theseam-ui-common-carousel.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-checkbox.mjs +0 -373
- package/fesm2020/theseam-ui-common-checkbox.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-confirm-dialog.mjs +0 -192
- package/fesm2020/theseam-ui-common-confirm-dialog.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-core.mjs +0 -233
- package/fesm2020/theseam-ui-common-core.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-data-exporter.mjs +0 -93
- package/fesm2020/theseam-ui-common-data-exporter.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-data-filters.mjs +0 -500
- package/fesm2020/theseam-ui-common-data-filters.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-datatable-dynamic.mjs +0 -986
- package/fesm2020/theseam-ui-common-datatable-dynamic.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-datatable.mjs +0 -3662
- package/fesm2020/theseam-ui-common-datatable.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-dynamic-component-loader.mjs +0 -133
- package/fesm2020/theseam-ui-common-dynamic-component-loader.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-dynamic.mjs +0 -689
- package/fesm2020/theseam-ui-common-dynamic.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-footer-bar.mjs +0 -35
- package/fesm2020/theseam-ui-common-footer-bar.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-form-field-error.mjs +0 -483
- package/fesm2020/theseam-ui-common-form-field-error.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-form-field.mjs +0 -659
- package/fesm2020/theseam-ui-common-form-field.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-framework.mjs +0 -3883
- package/fesm2020/theseam-ui-common-framework.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-google-maps.mjs +0 -2072
- package/fesm2020/theseam-ui-common-google-maps.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-graphql.mjs +0 -1121
- package/fesm2020/theseam-ui-common-graphql.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-icon.mjs +0 -587
- package/fesm2020/theseam-ui-common-icon.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-layout.mjs +0 -111
- package/fesm2020/theseam-ui-common-layout.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-loading.mjs +0 -138
- package/fesm2020/theseam-ui-common-loading.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-menu.mjs +0 -1288
- package/fesm2020/theseam-ui-common-menu.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-modal.mjs +0 -1370
- package/fesm2020/theseam-ui-common-modal.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-models.mjs +0 -55
- package/fesm2020/theseam-ui-common-models.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-navigation-reload.mjs +0 -74
- package/fesm2020/theseam-ui-common-navigation-reload.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-popover.mjs +0 -503
- package/fesm2020/theseam-ui-common-popover.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-progress.mjs +0 -93
- package/fesm2020/theseam-ui-common-progress.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-rich-text.mjs +0 -773
- package/fesm2020/theseam-ui-common-rich-text.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-scrollbar.mjs +0 -184
- package/fesm2020/theseam-ui-common-scrollbar.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-services.mjs +0 -274
- package/fesm2020/theseam-ui-common-services.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-shared.mjs +0 -733
- package/fesm2020/theseam-ui-common-shared.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-storage.mjs +0 -148
- package/fesm2020/theseam-ui-common-storage.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-story-helpers.mjs +0 -512
- package/fesm2020/theseam-ui-common-story-helpers.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-tabbed.mjs +0 -286
- package/fesm2020/theseam-ui-common-tabbed.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-table-cell-type.mjs +0 -198
- package/fesm2020/theseam-ui-common-table-cell-type.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-table-cell-types.mjs +0 -1109
- package/fesm2020/theseam-ui-common-table-cell-types.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-table.mjs +0 -322
- package/fesm2020/theseam-ui-common-table.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-tel-input.mjs +0 -810
- package/fesm2020/theseam-ui-common-tel-input.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-testing.mjs +0 -359
- package/fesm2020/theseam-ui-common-testing.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-tiled-select.mjs +0 -557
- package/fesm2020/theseam-ui-common-tiled-select.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-toggle-edit.mjs +0 -553
- package/fesm2020/theseam-ui-common-toggle-edit.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-toggle-group.mjs +0 -277
- package/fesm2020/theseam-ui-common-toggle-group.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-unsaved-changes-dialog.mjs +0 -106
- package/fesm2020/theseam-ui-common-unsaved-changes-dialog.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-utils.mjs +0 -1364
- package/fesm2020/theseam-ui-common-utils.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-validators.mjs +0 -94
- package/fesm2020/theseam-ui-common-validators.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-vertical-list-filter.mjs +0 -87
- package/fesm2020/theseam-ui-common-vertical-list-filter.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-viewers.mjs +0 -598
- package/fesm2020/theseam-ui-common-viewers.mjs.map +0 -1
- package/fesm2020/theseam-ui-common-widget.mjs +0 -1387
- package/fesm2020/theseam-ui-common-widget.mjs.map +0 -1
- package/fesm2020/theseam-ui-common.mjs +0 -6
- package/fesm2020/theseam-ui-common.mjs.map +0 -1
- package/footer-bar/footer-bar/footer-bar.component.d.ts +0 -5
- package/footer-bar/footer-bar.module.d.ts +0 -8
- package/footer-bar/public-api.d.ts +0 -2
- package/form-field/form-field-error.directive.d.ts +0 -15
- package/form-field/form-field-help-text.directive.d.ts +0 -8
- package/form-field/form-field-label-tpl.directive.d.ts +0 -8
- package/form-field/form-field-required-indicator.component.d.ts +0 -16
- package/form-field/form-field-tokens.d.ts +0 -2
- package/form-field/form-field.component.d.ts +0 -117
- package/form-field/form-field.module.d.ts +0 -16
- package/form-field/input.directive.d.ts +0 -70
- package/form-field/public-api.d.ts +0 -9
- package/form-field/testing/form-field-required-indicator.harness.d.ts +0 -5
- package/form-field/testing/form-field.harness.d.ts +0 -14
- package/form-field/testing/index.d.ts +0 -2
- package/form-field-error/form-field-error/form-field-error.component.d.ts +0 -8
- package/form-field-error/form-field-error-list/form-field-error-list-item-tpl.directive.d.ts +0 -12
- package/form-field-error/form-field-error-list/form-field-error-list-item.directive.d.ts +0 -9
- package/form-field-error/form-field-error-list/form-field-error-list.component.d.ts +0 -65
- package/form-field-error/form-field-error.module.d.ts +0 -11
- package/form-field-error/public-api.d.ts +0 -5
- package/framework/base-layout/base-layout-action.d.ts +0 -31
- package/framework/base-layout/base-layout-nav.d.ts +0 -18
- package/framework/base-layout/base-layout-ref.d.ts +0 -14
- package/framework/base-layout/base-layout-tokens.d.ts +0 -3
- package/framework/base-layout/base-layout.component.d.ts +0 -48
- package/framework/base-layout/base-layout.module.d.ts +0 -20
- package/framework/base-layout/directives/base-layout-content-footer.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-content-header.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-content.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-nav-toggle.directive.d.ts +0 -22
- package/framework/base-layout/directives/base-layout-side-bar-footer.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-side-bar-header.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-side-bar.directive.d.ts +0 -9
- package/framework/base-layout/directives/base-layout-top-bar.directive.d.ts +0 -9
- package/framework/base-layout/index.d.ts +0 -14
- package/framework/dashboard/dashboard-widget-container/dashboard-widget-container.component.d.ts +0 -9
- package/framework/dashboard/dashboard-widget-template-container/dashboard-widget-template-container.component.d.ts +0 -13
- package/framework/dashboard/dashboard-widgets/dashboard-widget-portal-outlet.directive.d.ts +0 -50
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-item.d.ts +0 -43
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor-token.d.ts +0 -3
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences-accessor.d.ts +0 -15
- package/framework/dashboard/dashboard-widgets/dashboard-widgets-preferences.service.d.ts +0 -30
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.component.d.ts +0 -62
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.service.d.ts +0 -37
- package/framework/dashboard/dashboard-widgets-tokens.d.ts +0 -7
- package/framework/dashboard/dashboard.component.d.ts +0 -10
- package/framework/dashboard/dashboard.module.d.ts +0 -17
- package/framework/dashboard/index.d.ts +0 -11
- package/framework/dynamic-router/dynamic-route-def.d.ts +0 -8
- package/framework/dynamic-router/dynamic-router.module.d.ts +0 -9
- package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-route-animations.d.ts +0 -5
- package/framework/dynamic-router/hierarchy-router-outlet/hierarchy-router-outlet.component.d.ts +0 -25
- package/framework/dynamic-router/index.d.ts +0 -5
- package/framework/dynamic-router/resolvers/hierarchy-level.resolver.d.ts +0 -9
- package/framework/nav/horizontal-nav/horizontal-nav.component.d.ts +0 -25
- package/framework/nav/index.d.ts +0 -5
- package/framework/nav/nav-item/nav-item.component.d.ts +0 -74
- package/framework/nav/nav-utils.d.ts +0 -20
- package/framework/nav/nav.models.d.ts +0 -77
- package/framework/nav/nav.module.d.ts +0 -17
- package/framework/nav/nav.service.d.ts +0 -27
- package/framework/public-api.d.ts +0 -7
- package/framework/schema-form/index.d.ts +0 -4
- package/framework/schema-form/schema-form-framework.component.d.ts +0 -8
- package/framework/schema-form/schema-form-framework.d.ts +0 -32
- package/framework/schema-form/schema-form-widget.d.ts +0 -61
- package/framework/schema-form/schema-form.module.d.ts +0 -9
- package/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.d.ts +0 -25
- package/framework/schema-form-controls/schema-form-divider/schema-form-divider.component.d.ts +0 -12
- package/framework/schema-form-controls/schema-form-input/schema-form-input.component.d.ts +0 -23
- package/framework/schema-form-controls/schema-form-number/schema-form-number.component.d.ts +0 -26
- package/framework/schema-form-controls/schema-form-select/schema-form-select.component.d.ts +0 -24
- package/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.d.ts +0 -22
- package/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.d.ts +0 -38
- package/framework/schema-form-controls/schema-form-tel/schema-form-tel.component.d.ts +0 -23
- package/framework/schema-form-controls/schema-form-tiled-select/schema-form-tiled-select.component.d.ts +0 -32
- package/framework/side-nav/index.d.ts +0 -7
- package/framework/side-nav/side-nav-item/side-nav-item.component.d.ts +0 -70
- package/framework/side-nav/side-nav-toggle/side-nav-toggle.component.d.ts +0 -14
- package/framework/side-nav/side-nav-tokens.d.ts +0 -14
- package/framework/side-nav/side-nav-utils.d.ts +0 -24
- package/framework/side-nav/side-nav.component.d.ts +0 -66
- package/framework/side-nav/side-nav.models.d.ts +0 -93
- package/framework/side-nav/side-nav.module.d.ts +0 -9
- package/framework/side-nav/side-nav.service.d.ts +0 -24
- package/framework/top-bar/index.d.ts +0 -9
- package/framework/top-bar/top-bar-compact-menu-btn-detail.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-item.directive.d.ts +0 -11
- package/framework/top-bar/top-bar-menu-btn-detail.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-menu-button/top-bar-menu-button.component.d.ts +0 -26
- package/framework/top-bar/top-bar-menu.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-nav-toggle-btn-detail.directive.d.ts +0 -8
- package/framework/top-bar/top-bar-title/top-bar-title.component.d.ts +0 -7
- package/framework/top-bar/top-bar.component.d.ts +0 -85
- package/framework/top-bar/top-bar.module.d.ts +0 -21
- package/google-maps/google-maps/google-maps.component.d.ts +0 -105
- package/google-maps/google-maps-api-loader/google-maps-api-loader.d.ts +0 -4
- package/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.d.ts +0 -74
- package/google-maps/google-maps-api-loader/noop-google-maps-api-loader.d.ts +0 -13
- package/google-maps/google-maps-contextmenu.d.ts +0 -15
- package/google-maps/google-maps-controls.service.d.ts +0 -26
- package/google-maps/google-maps-feature-helpers.d.ts +0 -41
- package/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.d.ts +0 -106
- package/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.directive.d.ts +0 -83
- package/google-maps/google-maps-recenter-button-control/google-maps-recenter-button-control.component.d.ts +0 -24
- package/google-maps/google-maps-upload-button-control/google-maps-upload-button-control.component.d.ts +0 -37
- package/google-maps/google-maps.module.d.ts +0 -20
- package/google-maps/google-maps.service.d.ts +0 -65
- package/google-maps/map-control.component.d.ts +0 -23
- package/google-maps/map-controls-service.d.ts +0 -13
- package/google-maps/map-file-drop/map-file-drop.component.d.ts +0 -37
- package/google-maps/map-value-manager.service.d.ts +0 -21
- package/google-maps/public-api.d.ts +0 -17
- package/graphql/datatable/create-page-info-observable.d.ts +0 -4
- package/graphql/datatable/datatable-graphql-query-ref.d.ts +0 -64
- package/graphql/datatable/datatable-graphql.service.d.ts +0 -29
- package/graphql/datatable/datatable-helpers.d.ts +0 -12
- package/graphql/datatable/get-page-info.d.ts +0 -4
- package/graphql/datatable/index.d.ts +0 -9
- package/graphql/datatable/map-filter-states.d.ts +0 -18
- package/graphql/datatable/map-page-info.d.ts +0 -11
- package/graphql/datatable/map-search-date-columns-data-filter-state-to-gql.d.ts +0 -4
- package/graphql/datatable/map-search-numeric-columns-data-filter-state-to-gql.d.ts +0 -4
- package/graphql/datatable/map-search-text-columns-data-filter-state-to-gql.d.ts +0 -4
- package/graphql/datatable/mapper-context.d.ts +0 -6
- package/graphql/models/direction.d.ts +0 -6
- package/graphql/models/gql-datatable-accessor.d.ts +0 -9
- package/graphql/models/hint-definition.d.ts +0 -7
- package/graphql/models/hint-transform-operation.d.ts +0 -5
- package/graphql/models/hint-transformer.d.ts +0 -3
- package/graphql/models/hints-kind.d.ts +0 -7
- package/graphql/models/hints-token.d.ts +0 -7
- package/graphql/models/index.d.ts +0 -9
- package/graphql/models/query-processing-config.d.ts +0 -13
- package/graphql/models/variable.d.ts +0 -5
- package/graphql/public-api.d.ts +0 -2
- package/graphql/utils/contains-variable.d.ts +0 -2
- package/graphql/utils/gql-var.d.ts +0 -3
- package/graphql/utils/hints-tokens-containing-hint.d.ts +0 -2
- package/graphql/utils/index.d.ts +0 -10
- package/graphql/utils/inline-variables.d.ts +0 -2
- package/graphql/utils/parse-comments.d.ts +0 -2
- package/graphql/utils/parse-hints.d.ts +0 -17
- package/graphql/utils/remove-variable-definition.d.ts +0 -2
- package/graphql/utils/remove-variable-definitions-not-defined.d.ts +0 -3
- package/graphql/utils/remove-variable.d.ts +0 -2
- package/graphql/utils/to-gql.d.ts +0 -1
- package/icon/icon/icon.component.d.ts +0 -57
- package/icon/icon-btn/icon-btn.component.d.ts +0 -76
- package/icon/icon-notification/icon-notification.component.d.ts +0 -50
- package/icon/icon.d.ts +0 -2
- package/icon/icon.module.d.ts +0 -11
- package/icon/public-api.d.ts +0 -6
- package/icon/utils/file-extension-icon.d.ts +0 -3
- package/icon/utils/get-known-icon.d.ts +0 -2
- package/icon/utils/index.d.ts +0 -2
- package/layout/breakpoint-aliases.d.ts +0 -20
- package/layout/layout.module.d.ts +0 -8
- package/layout/layout.service.d.ts +0 -23
- package/layout/observe-media-query.d.ts +0 -8
- package/layout/public-api.d.ts +0 -4
- package/loading/loading/loading.component.d.ts +0 -9
- package/loading/loading-overlay.service.d.ts +0 -16
- package/loading/loading-themes.d.ts +0 -3
- package/loading/loading.models.d.ts +0 -1
- package/loading/loading.module.d.ts +0 -13
- package/loading/public-api.d.ts +0 -5
- package/menu/menu-animations.d.ts +0 -8
- package/menu/menu-divider.component.d.ts +0 -5
- package/menu/menu-footer/menu-footer.component.d.ts +0 -12
- package/menu/menu-footer-action/menu-footer-action.component.d.ts +0 -22
- package/menu/menu-header/menu-header.component.d.ts +0 -12
- package/menu/menu-item.component.d.ts +0 -54
- package/menu/menu-panel-token.d.ts +0 -6
- package/menu/menu-panel.d.ts +0 -20
- package/menu/menu-toggle.directive.d.ts +0 -83
- package/menu/menu.component.d.ts +0 -79
- package/menu/menu.module.d.ts +0 -16
- package/menu/public-api.d.ts +0 -15
- package/menu/testing/menu-footer.harness.d.ts +0 -22
- package/menu/testing/menu-header.harness.d.ts +0 -18
- package/menu/testing/menu-item.harness.d.ts +0 -37
- package/menu/testing/menu.harness.d.ts +0 -74
- package/menu/testing/utils.d.ts +0 -5
- package/modal/directives/modal-close.directive.d.ts +0 -23
- package/modal/directives/modal-footer-tpl.directive.d.ts +0 -8
- package/modal/directives/modal-header-icon-tpl.directive.d.ts +0 -8
- package/modal/directives/modal-header-title-tpl.directive.d.ts +0 -8
- package/modal/directives/modal-title.directive.d.ts +0 -9
- package/modal/directives/modal.directive.d.ts +0 -11
- package/modal/modal/modal.component.d.ts +0 -58
- package/modal/modal-body/modal-body.component.d.ts +0 -7
- package/modal/modal-config.d.ts +0 -93
- package/modal/modal-container/modal-container.component.d.ts +0 -81
- package/modal/modal-footer/modal-footer.component.d.ts +0 -6
- package/modal/modal-header/modal-header.component.d.ts +0 -11
- package/modal/modal-injectors.d.ts +0 -23
- package/modal/modal-ref.d.ts +0 -52
- package/modal/modal-utils.d.ts +0 -8
- package/modal/modal.models.d.ts +0 -24
- package/modal/modal.module.d.ts +0 -25
- package/modal/modal.service.d.ts +0 -98
- package/modal/public-api.d.ts +0 -19
- package/modal/route-modal/route-modal.component.d.ts +0 -18
- package/models/component-type.d.ts +0 -2
- package/models/http-status-codes.d.ts +0 -18
- package/models/public-api.d.ts +0 -7
- package/models/size-prefixes.d.ts +0 -1
- package/models/size-types.d.ts +0 -1
- package/models/theme-names.d.ts +0 -2
- package/models/theme-prefixes.d.ts +0 -1
- package/models/theme-types.d.ts +0 -2
- package/navigation-reload/navigation-reload.config.d.ts +0 -5
- package/navigation-reload/navigation-reload.provider.d.ts +0 -3
- package/navigation-reload/navigation-reload.service.d.ts +0 -13
- package/navigation-reload/public-api.d.ts +0 -3
- package/popover/popover/popover.component.d.ts +0 -50
- package/popover/popover-animations.d.ts +0 -4
- package/popover/popover.directive.d.ts +0 -61
- package/popover/popover.module.d.ts +0 -11
- package/popover/public-api.d.ts +0 -4
- package/progress/progress-circle/progress-circle.component.d.ts +0 -29
- package/progress/progress.module.d.ts +0 -8
- package/progress/public-api.d.ts +0 -2
- package/public_api.d.ts +0 -2
- package/rich-text/public-api.d.ts +0 -4
- package/rich-text/rich-text/rich-text.component.d.ts +0 -194
- package/rich-text/rich-text.module.d.ts +0 -10
- package/rich-text/utils/models.d.ts +0 -343
- package/rich-text/utils/utils.d.ts +0 -14
- package/scrollbar/overlay-scrollbar.directive.d.ts +0 -23
- package/scrollbar/overlay-scrollbars-config-model.d.ts +0 -2
- package/scrollbar/overlay-scrollbars-config.d.ts +0 -51
- package/scrollbar/overlay-scrollbars.service.d.ts +0 -23
- package/scrollbar/public-api.d.ts +0 -5
- package/scrollbar/scrollbar.module.d.ts +0 -8
- package/services/asset-loader.service.d.ts +0 -15
- package/services/font-loader.service.d.ts +0 -45
- package/services/preferences/preferences-accessor.d.ts +0 -15
- package/services/preferences/preferences-manager.service.d.ts +0 -15
- package/services/preferences/preferences-record.d.ts +0 -28
- package/services/preferences/preferences.models.d.ts +0 -3
- package/services/public-api.d.ts +0 -7
- package/services/router-helpers.service.d.ts +0 -10
- package/shared/components/index.d.ts +0 -1
- package/shared/components/password-input-reveal/password-input-reveal.component.d.ts +0 -17
- package/shared/directives/auto-focus.directive.d.ts +0 -18
- package/shared/directives/click-outside.directive.d.ts +0 -13
- package/shared/directives/disable-control.directive.d.ts +0 -9
- package/shared/directives/elem-resized.directive.d.ts +0 -20
- package/shared/directives/hover-class-toggle.directive.d.ts +0 -36
- package/shared/directives/hover-class.directive.d.ts +0 -31
- package/shared/directives/index.d.ts +0 -8
- package/shared/directives/ng-select-extra.directive.d.ts +0 -42
- package/shared/directives/ngx-quill-extra.directive.d.ts +0 -23
- package/shared/pipes/index.d.ts +0 -2
- package/shared/pipes/mask-chars.pipe.d.ts +0 -7
- package/shared/pipes/truncate.pipe.d.ts +0 -7
- package/shared/public-api.d.ts +0 -4
- package/shared/shared.module.d.ts +0 -22
- package/storage/local-storage.service.d.ts +0 -31
- package/storage/localstorage-memory.d.ts +0 -37
- package/storage/public-api.d.ts +0 -1
- package/story-helpers/arg-type-helpers.d.ts +0 -6
- package/story-helpers/args-to-tpl.d.ts +0 -25
- package/story-helpers/initial-route-factory.d.ts +0 -2
- package/story-helpers/initial-route.service.d.ts +0 -10
- package/story-helpers/on-story-bootstrapped-exec.d.ts +0 -24
- package/story-helpers/on-story-bootstrapped-trigger.d.ts +0 -23
- package/story-helpers/public-api.d.ts +0 -15
- package/story-helpers/route-button.d.ts +0 -5
- package/story-helpers/routes-arg-type.d.ts +0 -7
- package/story-helpers/story-empty-with-route.component.d.ts +0 -5
- package/story-helpers/story-empty.component.d.ts +0 -5
- package/story-helpers/story-helper-components.module.d.ts +0 -12
- package/story-helpers/story-initial-route.d.ts +0 -8
- package/story-helpers/story-modal-container.component.d.ts +0 -23
- package/story-helpers/story-preferences-accessor.service.d.ts +0 -19
- package/story-helpers/story-toastr.service.d.ts +0 -33
- package/tabbed/directives/tabbed-tab-content.directive.d.ts +0 -7
- package/tabbed/directives/tabbed-tab.directive.d.ts +0 -13
- package/tabbed/public-api.d.ts +0 -8
- package/tabbed/tabbed-content/tabbed-content.component.d.ts +0 -7
- package/tabbed/tabbed-item/tabbed-item.component.d.ts +0 -16
- package/tabbed/tabbed-models.d.ts +0 -12
- package/tabbed/tabbed.component.d.ts +0 -44
- package/tabbed/tabbed.module.d.ts +0 -14
- package/tabbed/tabbed.service.d.ts +0 -10
- package/table/public-api.d.ts +0 -5
- package/table/table/table.component.d.ts +0 -63
- package/table/table-cell-tpl.directive.d.ts +0 -7
- package/table/table-column-header-tpl.directive.d.ts +0 -7
- package/table/table-column.component.d.ts +0 -24
- package/table/table.module.d.ts +0 -13
- package/table-cell-type/public-api.d.ts +0 -11
- package/table-cell-type/services/table-cell-types-helpers.service.d.ts +0 -18
- package/table-cell-type/table-cell-type-action.d.ts +0 -13
- package/table-cell-type/table-cell-type-column.d.ts +0 -12
- package/table-cell-type/table-cell-type-config.d.ts +0 -12
- package/table-cell-type/table-cell-type-export-props.d.ts +0 -15
- package/table-cell-type/table-cell-type-manifest-provider.d.ts +0 -7
- package/table-cell-type/table-cell-type-models.d.ts +0 -39
- package/table-cell-type/table-cell-type-name.d.ts +0 -1
- package/table-cell-type/table-cell-type-selector.component.d.ts +0 -27
- package/table-cell-type/table-cell-type-tokens.d.ts +0 -4
- package/table-cell-type/table-cell-type.module.d.ts +0 -9
- package/table-cell-types/public-api.d.ts +0 -22
- package/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.d.ts +0 -44
- package/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.d.ts +0 -21
- package/table-cell-types/table-cell-type-currency/table-cell-type-currency.d.ts +0 -3
- package/table-cell-types/table-cell-type-date/table-cell-type-date-config.d.ts +0 -9
- package/table-cell-types/table-cell-type-date/table-cell-type-date.component.d.ts +0 -14
- package/table-cell-types/table-cell-type-date/table-cell-type-date.d.ts +0 -3
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.d.ts +0 -38
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.d.ts +0 -21
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.d.ts +0 -3
- package/table-cell-types/table-cell-type-icon/table-cell-type-icon-config.d.ts +0 -34
- package/table-cell-types/table-cell-type-icon/table-cell-type-icon.component.d.ts +0 -55
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.d.ts +0 -30
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.d.ts +0 -21
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer.d.ts +0 -3
- package/table-cell-types/table-cell-type-manifests.d.ts +0 -11
- package/table-cell-types/table-cell-type-phone/table-cell-type-phone-config.d.ts +0 -13
- package/table-cell-types/table-cell-type-phone/table-cell-type-phone.component.d.ts +0 -19
- package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle-config.d.ts +0 -29
- package/table-cell-types/table-cell-type-progress-circle/table-cell-type-progress-circle.component.d.ts +0 -50
- package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon-config.d.ts +0 -49
- package/table-cell-types/table-cell-type-progress-circle-icon/table-cell-type-progress-circle-icon.component.d.ts +0 -23
- package/table-cell-types/table-cell-type-string/table-cell-type-string-config.d.ts +0 -18
- package/table-cell-types/table-cell-type-string/table-cell-type-string.component.d.ts +0 -57
- package/table-cell-types/table-cell-types.module.d.ts +0 -26
- package/tel-input/intl-tel-input.d.ts +0 -300
- package/tel-input/models/index.d.ts +0 -2
- package/tel-input/models/tel-input-country-data.d.ts +0 -9
- package/tel-input/models/tel-input-number-format-name.d.ts +0 -4
- package/tel-input/phone-number.pipe.d.ts +0 -14
- package/tel-input/public-api.d.ts +0 -10
- package/tel-input/tel-input/tel-input.component.d.ts +0 -86
- package/tel-input/tel-input-constants.d.ts +0 -4
- package/tel-input/tel-input-validator.d.ts +0 -7
- package/tel-input/tel-input.directive.d.ts +0 -35
- package/tel-input/tel-input.module.d.ts +0 -12
- package/tel-input/testing/tel-input.harness.d.ts +0 -19
- package/tel-input/utils/add-country-code.d.ts +0 -7
- package/tel-input/utils/coerce-phone-number-format.d.ts +0 -7
- package/tel-input/utils/get-country-code.d.ts +0 -2
- package/tel-input/utils/get-dial-code.d.ts +0 -9
- package/tel-input/utils/get-global-intl-tel-input-globals.d.ts +0 -2
- package/tel-input/utils/get-global-intl-tel-input-utils.d.ts +0 -2
- package/tel-input/utils/get-intl-tel-input-utils.d.ts +0 -2
- package/tel-input/utils/get-validation-error-message.d.ts +0 -5
- package/tel-input/utils/index.d.ts +0 -9
- package/tel-input/utils/process-country-codes.d.ts +0 -8
- package/testing/current-tick-time.d.ts +0 -13
- package/testing/fake-toastr.d.ts +0 -30
- package/testing/get-harness.d.ts +0 -7
- package/testing/harnesses/ng-select-dropdown.harness.d.ts +0 -23
- package/testing/harnesses/ng-select-option.harness.d.ts +0 -18
- package/testing/harnesses/ng-select.harness.d.ts +0 -50
- package/testing/public-api.d.ts +0 -9
- package/testing/render-story.d.ts +0 -2
- package/testing/story-expect.d.ts +0 -6
- package/testing/tick-helper.d.ts +0 -70
- package/tiled-select/components/tiled-select/tiled-select.component.d.ts +0 -56
- package/tiled-select/components/tiled-select-tile/tiled-select-tile.component.d.ts +0 -45
- package/tiled-select/components/tiled-select-tile-icon/tiled-select-tile-icon.component.d.ts +0 -26
- package/tiled-select/directives/tiled-select-tile-icon-tpl.directive.d.ts +0 -8
- package/tiled-select/directives/tiled-select-tile-label-tpl.directive.d.ts +0 -8
- package/tiled-select/directives/tiled-select-tile-overlay.directive.d.ts +0 -10
- package/tiled-select/public-api.d.ts +0 -9
- package/tiled-select/testing/index.d.ts +0 -2
- package/tiled-select/testing/tiled-select-harness.d.ts +0 -9
- package/tiled-select/testing/tiled-select-tile-harness.d.ts +0 -17
- package/tiled-select/tiled-select.models.d.ts +0 -13
- package/tiled-select/tiled-select.module.d.ts +0 -14
- package/toggle-edit/models/can-toggle-edit.d.ts +0 -7
- package/toggle-edit/models/index.d.ts +0 -2
- package/toggle-edit/models/toggle-edit-ref.d.ts +0 -30
- package/toggle-edit/public-api.d.ts +0 -6
- package/toggle-edit/toggle-edit-actions-container/toggle-edit-actions-container.component.d.ts +0 -5
- package/toggle-edit/toggle-edit-display-tpl.directive.d.ts +0 -8
- package/toggle-edit/toggle-edit-keyboard-listener.service.d.ts +0 -17
- package/toggle-edit/toggle-edit.component.d.ts +0 -93
- package/toggle-edit/toggle-edit.module.d.ts +0 -18
- package/toggle-group/public-api.d.ts +0 -3
- package/toggle-group/toggle-group-option.directive.d.ts +0 -18
- package/toggle-group/toggle-group.directive.d.ts +0 -38
- package/toggle-group/toggle-group.module.d.ts +0 -10
- package/unsaved-changes-dialog/public-api.d.ts +0 -4
- package/unsaved-changes-dialog/unsaved-changes-can-deactivate.d.ts +0 -7
- package/unsaved-changes-dialog/unsaved-changes-dialog.component.d.ts +0 -5
- package/unsaved-changes-dialog/unsaved-changes-dialog.guard.d.ts +0 -11
- package/unsaved-changes-dialog/unsaved-changes-dialog.module.d.ts +0 -7
- package/utils/array-move.d.ts +0 -49
- package/utils/calc-percentage.d.ts +0 -1
- package/utils/cdk/get-closest-widget-cdk-drag.d.ts +0 -8
- package/utils/create-padding.d.ts +0 -1
- package/utils/file-utils.d.ts +0 -12
- package/utils/form/get-control-name.d.ts +0 -22
- package/utils/form/get-control-path.d.ts +0 -27
- package/utils/form/has-required-control.d.ts +0 -31
- package/utils/form/is-empty-input-value.d.ts +0 -1
- package/utils/form/observe-control-is-different.d.ts +0 -13
- package/utils/form/observe-control-status.d.ts +0 -7
- package/utils/form/observe-control-valid.d.ts +0 -14
- package/utils/form/observe-control-value-change.d.ts +0 -9
- package/utils/form/observe-control-value.d.ts +0 -6
- package/utils/form/wait-on-non-pending-status.d.ts +0 -12
- package/utils/fractional-digits-count.d.ts +0 -8
- package/utils/geo-json/close-polygons.d.ts +0 -9
- package/utils/geo-json/coerce-feature-collection.d.ts +0 -2
- package/utils/geo-json/geo-json-to-area.d.ts +0 -6
- package/utils/geo-json/is-feature-collection.validator.d.ts +0 -3
- package/utils/geo-json/is-only-geometry-types.d.ts +0 -5
- package/utils/geo-json/is-only-geometry-types.validator.d.ts +0 -4
- package/utils/geo-json/merge-polygons.d.ts +0 -9
- package/utils/geo-json/min-max-points.validator.d.ts +0 -3
- package/utils/geo-json/no-empty-feature-collection.validator.d.ts +0 -3
- package/utils/geo-json/no-inner-rings.validator.d.ts +0 -10
- package/utils/geo-json/no-kinks.validator.d.ts +0 -3
- package/utils/geo-json/read-geo-file.d.ts +0 -7
- package/utils/geo-json/split-multi-polygons.d.ts +0 -8
- package/utils/get-attribute.d.ts +0 -4
- package/utils/has-attribute.d.ts +0 -4
- package/utils/has-property.d.ts +0 -1
- package/utils/input-masks.d.ts +0 -1
- package/utils/is-absolute-url.d.ts +0 -1
- package/utils/is-null-or-undefined-or-empty.d.ts +0 -1
- package/utils/is-null-or-undefined.d.ts +0 -1
- package/utils/is-numeric.d.ts +0 -1
- package/utils/load-style-sheet.d.ts +0 -1
- package/utils/load-style.d.ts +0 -1
- package/utils/not-null-or-undefined-or-empty.d.ts +0 -1
- package/utils/not-null-or-undefined.d.ts +0 -1
- package/utils/obj-utils.d.ts +0 -8
- package/utils/observe-query-list.d.ts +0 -3
- package/utils/operators/index.d.ts +0 -2
- package/utils/operators/map-each.d.ts +0 -2
- package/utils/operators/tap-first.d.ts +0 -5
- package/utils/pad-end.d.ts +0 -1
- package/utils/pad-start.d.ts +0 -1
- package/utils/polling-ticker.d.ts +0 -13
- package/utils/public-api.d.ts +0 -53
- package/utils/refreshable.d.ts +0 -20
- package/utils/router/index.d.ts +0 -6
- package/utils/router/is-empty-url-route.d.ts +0 -2
- package/utils/router/leaf-child-route.d.ts +0 -2
- package/utils/router/operators/activated-routes-with-data-property.d.ts +0 -7
- package/utils/router/route-snapshot-path-full.d.ts +0 -2
- package/utils/router/route-snapshot-path-relative.d.ts +0 -2
- package/utils/router/will-have-data-prop.d.ts +0 -2
- package/utils/subscriber-count.d.ts +0 -13
- package/utils/toggle-attribute.d.ts +0 -16
- package/utils/wait-on-condition-async.d.ts +0 -1
- package/utils/wrap-into-observable.d.ts +0 -2
- package/validators/decimal.validator.d.ts +0 -9
- package/validators/email-exists.validator.d.ts +0 -10
- package/validators/integer.validator.d.ts +0 -9
- package/validators/phone-length.validator.d.ts +0 -7
- package/validators/public-api.d.ts +0 -5
- package/validators/tax-id.validator.d.ts +0 -11
- package/vertical-list-filter/public-api.d.ts +0 -2
- package/vertical-list-filter/testing/index.d.ts +0 -1
- package/vertical-list-filter/testing/vertical-list-filter.harness.d.ts +0 -9
- package/vertical-list-filter/vertical-list-filter.component.d.ts +0 -17
- package/viewers/html-template-viewer/html-template-viewer.component.d.ts +0 -70
- package/viewers/html-template-viewer/html-template-viewer.module.d.ts +0 -10
- package/viewers/html-template-viewer/index.d.ts +0 -2
- package/viewers/pdf-viewer/index.d.ts +0 -3
- package/viewers/pdf-viewer/pdf-page/pdf-page.component.d.ts +0 -42
- package/viewers/pdf-viewer/pdf-renderer.service.d.ts +0 -9
- package/viewers/pdf-viewer/pdf-viewer.component.d.ts +0 -62
- package/viewers/pdf-viewer/pdf-viewer.module.d.ts +0 -10
- package/viewers/public-api.d.ts +0 -2
- package/widget/directives/widget-drag-handle.directive.d.ts +0 -56
- package/widget/directives/widget-icon-tpl.directive.d.ts +0 -8
- package/widget/directives/widget-title-tpl.directive.d.ts +0 -8
- package/widget/preferences/widget-preferences.models.d.ts +0 -8
- package/widget/preferences/widget-preferences.service.d.ts +0 -21
- package/widget/preferences/widget-preferences.token.d.ts +0 -3
- package/widget/public-api.d.ts +0 -41
- package/widget/widget/widget.component.d.ts +0 -85
- package/widget/widget-content-components/widget-button-group/widget-button-group.component.d.ts +0 -5
- package/widget/widget-content-components/widget-button-group/widget-button-group.module.d.ts +0 -9
- package/widget/widget-content-components/widget-content-header/widget-content-header.component.d.ts +0 -5
- package/widget/widget-content-components/widget-content-header/widget-content-header.module.d.ts +0 -8
- package/widget/widget-content-components/widget-description/widget-description.component.d.ts +0 -5
- package/widget/widget-content-components/widget-description/widget-description.module.d.ts +0 -8
- package/widget/widget-content-components/widget-empty-label/widget-empty-label.component.d.ts +0 -17
- package/widget/widget-content-components/widget-empty-label/widget-empty-label.module.d.ts +0 -8
- package/widget/widget-content-components/widget-footer-link/widget-footer-link.component.d.ts +0 -5
- package/widget/widget-content-components/widget-footer-link/widget-footer-link.module.d.ts +0 -8
- package/widget/widget-content-components/widget-footer-text/widget-footer-text.component.d.ts +0 -5
- package/widget/widget-content-components/widget-footer-text/widget-footer-text.module.d.ts +0 -8
- package/widget/widget-content-components/widget-header-badge/widget-header-badge.component.d.ts +0 -14
- package/widget/widget-content-components/widget-header-badge/widget-header-badge.module.d.ts +0 -8
- package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.d.ts +0 -8
- package/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.d.ts +0 -65
- package/widget/widget-content-components/widget-list-group/widget-list-group.component.d.ts +0 -5
- package/widget/widget-content-components/widget-list-group/widget-list-group.module.d.ts +0 -11
- package/widget/widget-content-components/widget-table/widget-table.component.d.ts +0 -16
- package/widget/widget-content-components/widget-table/widget-table.module.d.ts +0 -10
- package/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.d.ts +0 -5
- package/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.d.ts +0 -17
- package/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.d.ts +0 -5
- package/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.d.ts +0 -8
- package/widget/widget-content-components/widget-tile/widget-tile.component.d.ts +0 -51
- package/widget/widget-content-components/widget-tile/widget-tile.module.d.ts +0 -13
- package/widget/widget-content-components/widget-tile-list/widget-tile-list.component.d.ts +0 -5
- package/widget/widget-content-components/widget-tile-list/widget-tile-list.module.d.ts +0 -9
- package/widget/widget-footer/widget-footer.component.d.ts +0 -5
- package/widget/widget-registry.models.d.ts +0 -20
- package/widget/widget-registry.service.d.ts +0 -19
- package/widget/widget-token.d.ts +0 -6
- package/widget/widget.models.d.ts +0 -7
- package/widget/widget.module.d.ts +0 -30
|
@@ -0,0 +1,1745 @@
|
|
|
1
|
+
import { visit, BREAK } from 'graphql/language';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { isDevMode, InjectionToken, Optional, Inject, Injectable, EventEmitter } from '@angular/core';
|
|
4
|
+
import { hasProperty, notNullOrUndefined, isNullOrUndefined, wrapIntoObservable, subscriberCount, withoutProperty } from '@theseam/ui-common/utils';
|
|
5
|
+
import { visit as visit$1, parse, BREAK as BREAK$1, graphqlSync, print, parseValue, buildSchema } from 'graphql';
|
|
6
|
+
import { Observable, EMPTY, from, of, ReplaySubject, combineLatest, BehaviorSubject, defer, Subject, isObservable } from 'rxjs';
|
|
7
|
+
import { switchMap, tap, take, concatMap, filter, toArray, map, shareReplay, startWith, distinctUntilChanged, skip, auditTime, finalize } from 'rxjs/operators';
|
|
8
|
+
import { NetworkStatus, ApolloLink, Observable as Observable$1 } from '@apollo/client/core';
|
|
9
|
+
import * as i1 from 'apollo-angular';
|
|
10
|
+
import { gql, APOLLO_OPTIONS } from 'apollo-angular';
|
|
11
|
+
import { THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES, getFormattedDateForComparison, THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_TEXT_TEXT_SEARCH_TYPES } from '@theseam/ui-common/datatable';
|
|
12
|
+
import { concat, InMemoryCache } from '@apollo/client';
|
|
13
|
+
|
|
14
|
+
function containsVariable(node, variableName) {
|
|
15
|
+
let found = false;
|
|
16
|
+
visit(node, {
|
|
17
|
+
Variable(variable) {
|
|
18
|
+
if (variableName === variable.name.value) {
|
|
19
|
+
found = true;
|
|
20
|
+
return BREAK;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return found;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function gqlVar(varName) {
|
|
28
|
+
return { gqlVar: `$${varName}` };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function inlineVariable(query, variableName, variableValue) {
|
|
32
|
+
// return visit(query, {
|
|
33
|
+
// VariableDefinition(node) {
|
|
34
|
+
// if (variableName === node.variable.name.value) {
|
|
35
|
+
// console.log(node)
|
|
36
|
+
// // found = true
|
|
37
|
+
// console.log('insert', variableValue)
|
|
38
|
+
// // return BREAK
|
|
39
|
+
// // node.defaultValue = variableValue
|
|
40
|
+
// return {
|
|
41
|
+
// ...node,
|
|
42
|
+
// defaultValue: variableValue
|
|
43
|
+
// }
|
|
44
|
+
// }
|
|
45
|
+
// }
|
|
46
|
+
// })
|
|
47
|
+
// console.log('~inlineVariable', variableName, variableValue)
|
|
48
|
+
// TODO: Decide if this is a good solution.
|
|
49
|
+
if (hasProperty(variableValue, 'value') && variableValue.value === 'undefined') {
|
|
50
|
+
if (isDevMode()) {
|
|
51
|
+
// eslint-disable-next-line no-console
|
|
52
|
+
console.warn(`Ignoring attempt to inline '${variableName}', because it is undefined.`);
|
|
53
|
+
}
|
|
54
|
+
return visit$1(query, {
|
|
55
|
+
SelectionSet(selectionSetNode) {
|
|
56
|
+
return visit$1(selectionSetNode, {
|
|
57
|
+
Variable(variableNode) {
|
|
58
|
+
if (variableName === variableNode.name.value) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return visit$1(query, {
|
|
67
|
+
SelectionSet(selectionSetNode) {
|
|
68
|
+
return visit$1(selectionSetNode, {
|
|
69
|
+
Variable(variableNode) {
|
|
70
|
+
if (variableName === variableNode.name.value) {
|
|
71
|
+
return variableValue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Based on Prettier's comment parsing.
|
|
80
|
+
//
|
|
81
|
+
// Source: https://github.com/prettier/prettier/blob/4e46f92b8648c7f25de62bfaf4368aa3f2e588d9/src/language-graphql/parser-graphql.js#L6
|
|
82
|
+
function parseComments(ast) {
|
|
83
|
+
const comments = [];
|
|
84
|
+
if (ast.loc === undefined) {
|
|
85
|
+
return comments;
|
|
86
|
+
}
|
|
87
|
+
const startToken = ast.loc.startToken;
|
|
88
|
+
let next = startToken.next;
|
|
89
|
+
while (next !== null && next.kind !== '<EOF>') {
|
|
90
|
+
if (next.kind === 'Comment') {
|
|
91
|
+
Object.assign(next, {
|
|
92
|
+
// The Comment token's column starts _after_ the `#`,
|
|
93
|
+
// but we need to make sure the node captures the `#`
|
|
94
|
+
column: next.column - 1
|
|
95
|
+
});
|
|
96
|
+
comments.push(next);
|
|
97
|
+
}
|
|
98
|
+
next = next.next;
|
|
99
|
+
}
|
|
100
|
+
return comments;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
class GQLDirection {
|
|
104
|
+
direction;
|
|
105
|
+
constructor(direction) {
|
|
106
|
+
this.direction = direction;
|
|
107
|
+
}
|
|
108
|
+
static ASC = new GQLDirection('ASC');
|
|
109
|
+
static DESC = new GQLDirection('DESC');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
var HintsKind;
|
|
113
|
+
(function (HintsKind) {
|
|
114
|
+
HintsKind["OperationDefinition"] = "OperationDefinition";
|
|
115
|
+
HintsKind["Field"] = "Field";
|
|
116
|
+
HintsKind["VariableDefinition"] = "VariableDefinition";
|
|
117
|
+
HintsKind["Variable"] = "Variable";
|
|
118
|
+
HintsKind["Argument"] = "Argument";
|
|
119
|
+
})(HintsKind || (HintsKind = {}));
|
|
120
|
+
|
|
121
|
+
const DEFAULT_TO_REMOVE_ON_UNDEFINED = ['where', 'order'];
|
|
122
|
+
|
|
123
|
+
class GQLVariable {
|
|
124
|
+
name;
|
|
125
|
+
type;
|
|
126
|
+
constructor(name, type) {
|
|
127
|
+
this.name = name;
|
|
128
|
+
this.type = type;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const HINT_PREFIX_REGEX = /^\s*@gql-hint:.+/;
|
|
133
|
+
const HINT_NAMES_CAPTURE_REGEX = /^\s*@gql-hint:([a-zA-z-\d\s]+)$/;
|
|
134
|
+
/**
|
|
135
|
+
* If AST loc has startToken prop then return same AST else reparse with config
|
|
136
|
+
* to contain comments and loc at each node.
|
|
137
|
+
*/
|
|
138
|
+
function parseAst(ast) {
|
|
139
|
+
if (ast.loc === undefined) {
|
|
140
|
+
throw Error(`Expected AST to have loc.`);
|
|
141
|
+
}
|
|
142
|
+
if (ast.loc.startToken !== undefined) {
|
|
143
|
+
return ast;
|
|
144
|
+
}
|
|
145
|
+
return parse(ast.loc.source);
|
|
146
|
+
}
|
|
147
|
+
function isCommentToken(token) {
|
|
148
|
+
return token.kind === 'Comment';
|
|
149
|
+
}
|
|
150
|
+
function isHintToken(token) {
|
|
151
|
+
return (isCommentToken(token) &&
|
|
152
|
+
(token.value?.match(HINT_PREFIX_REGEX)?.length || 0) > 0) || false;
|
|
153
|
+
}
|
|
154
|
+
function isInlineComment(token) {
|
|
155
|
+
return isCommentToken(token) &&
|
|
156
|
+
token.prev !== null &&
|
|
157
|
+
token.prev.line === token.line;
|
|
158
|
+
}
|
|
159
|
+
function hintNamesFromHintToken(token) {
|
|
160
|
+
const grp = token.value?.match(HINT_NAMES_CAPTURE_REGEX);
|
|
161
|
+
if (grp === null || grp === undefined || grp.length === 0) {
|
|
162
|
+
return [];
|
|
163
|
+
}
|
|
164
|
+
return grp[1].split(' ').map(x => x.trim()).filter(x => x.length > 0);
|
|
165
|
+
}
|
|
166
|
+
function getTokenAppliesTo(token) {
|
|
167
|
+
if (isInlineComment(token)) {
|
|
168
|
+
return token.prev;
|
|
169
|
+
}
|
|
170
|
+
let t = token.next;
|
|
171
|
+
if (t?.kind === '$' && t.next?.kind === 'Name') {
|
|
172
|
+
t = t.next;
|
|
173
|
+
}
|
|
174
|
+
return t;
|
|
175
|
+
}
|
|
176
|
+
function createHintsToken(token, node, kind) {
|
|
177
|
+
return {
|
|
178
|
+
node,
|
|
179
|
+
hints: hintNamesFromHintToken(token),
|
|
180
|
+
kind
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function getHintsToken(token, ast) {
|
|
184
|
+
// console.log('getHintsToken', token)
|
|
185
|
+
const appliesTo = getTokenAppliesTo(token);
|
|
186
|
+
if (appliesTo === null) {
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
let appliesToNode = null;
|
|
190
|
+
visit$1(ast, {
|
|
191
|
+
OperationDefinition(node) {
|
|
192
|
+
if (node.loc?.start === appliesTo.start) {
|
|
193
|
+
appliesToNode = createHintsToken(token, node, HintsKind.OperationDefinition);
|
|
194
|
+
return BREAK$1;
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
VariableDefinition(node) {
|
|
198
|
+
if (node.variable.name.loc?.start === appliesTo.start) {
|
|
199
|
+
appliesToNode = createHintsToken(token, node, HintsKind.VariableDefinition);
|
|
200
|
+
return BREAK$1;
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
Variable(node) {
|
|
204
|
+
if (node.name.loc?.start === appliesTo.start) {
|
|
205
|
+
appliesToNode = createHintsToken(token, node, HintsKind.Variable);
|
|
206
|
+
return BREAK$1;
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
Argument(node) {
|
|
210
|
+
if (node.name.loc?.start === appliesTo.start) {
|
|
211
|
+
appliesToNode = createHintsToken(token, node, HintsKind.Argument);
|
|
212
|
+
return BREAK$1;
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
Field(node) {
|
|
216
|
+
if (node.name.loc?.start === appliesTo.start) {
|
|
217
|
+
appliesToNode = createHintsToken(token, node, HintsKind.Field);
|
|
218
|
+
return BREAK$1;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
return appliesToNode;
|
|
223
|
+
}
|
|
224
|
+
function parseHints(ast) {
|
|
225
|
+
const _ast = parseAst(ast);
|
|
226
|
+
// console.log('_ast', _ast)
|
|
227
|
+
return parseComments(_ast)
|
|
228
|
+
.filter(isHintToken)
|
|
229
|
+
.map(r => getHintsToken(r, _ast))
|
|
230
|
+
.filter(notNullOrUndefined);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function removeVariableDefinition(query, variableName) {
|
|
234
|
+
return visit$1(query, {
|
|
235
|
+
VariableDefinition: {
|
|
236
|
+
enter(variable) {
|
|
237
|
+
const name = variable.variable.name.value;
|
|
238
|
+
if (name === variableName) {
|
|
239
|
+
return null;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function removeVariableDefinitionsNotDefined(query, node, variables) {
|
|
247
|
+
return visit$1(query, {
|
|
248
|
+
OperationDefinition(opDef) {
|
|
249
|
+
if (opDef === node) {
|
|
250
|
+
return visit$1(opDef, {
|
|
251
|
+
VariableDefinition(varDef) {
|
|
252
|
+
const name = varDef.variable.name.value;
|
|
253
|
+
if (isNullOrUndefined(variables[name])) {
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function removeVariable(query, variableName) {
|
|
264
|
+
return visit$1(query, {
|
|
265
|
+
VariableDefinition: {
|
|
266
|
+
enter(variable) {
|
|
267
|
+
const name = variable.variable.name.value;
|
|
268
|
+
if (name === variableName) {
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
Argument: {
|
|
274
|
+
enter(variable) {
|
|
275
|
+
const name = variable.name.value;
|
|
276
|
+
if (name === variableName) {
|
|
277
|
+
return null;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Naive initial implementation. This is intended for dynamic values, such as
|
|
285
|
+
// sorting and filtering. If you are defining a schema, use the gql template
|
|
286
|
+
// function from 'apollo-angular'.
|
|
287
|
+
//
|
|
288
|
+
// TODO: Try to find a maintained library that will handle this. Ideally a
|
|
289
|
+
// type-safe one, but that is becoming surprisingly harder to find than I
|
|
290
|
+
// expected for GraphQL.
|
|
291
|
+
function toGQL(json) {
|
|
292
|
+
const props = Object.keys(json).map(prop => {
|
|
293
|
+
const value = json[prop];
|
|
294
|
+
let resultValue;
|
|
295
|
+
if (typeof value === 'string') {
|
|
296
|
+
resultValue = `"${value}"`;
|
|
297
|
+
}
|
|
298
|
+
else if (value instanceof GQLDirection) {
|
|
299
|
+
resultValue = `${value.direction}`;
|
|
300
|
+
}
|
|
301
|
+
else if (Array.isArray(value)) {
|
|
302
|
+
resultValue = `[${value.map(v => toGQL(v)).join(',')}]`;
|
|
303
|
+
}
|
|
304
|
+
else if (typeof value === 'object') {
|
|
305
|
+
if (Object.prototype.hasOwnProperty.call(value, 'gqlVar')) {
|
|
306
|
+
resultValue = `${value.gqlVar}`;
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
resultValue = toGQL(value);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
resultValue = `${value}`;
|
|
314
|
+
}
|
|
315
|
+
if (typeof resultValue !== 'string') {
|
|
316
|
+
throw Error(`Unexpected value.`);
|
|
317
|
+
}
|
|
318
|
+
return `${prop}: ${resultValue}`;
|
|
319
|
+
});
|
|
320
|
+
return `{${props.join(', ')}}`;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function hintsTokensContainingHint(hintsTokens, hint) {
|
|
324
|
+
return hintsTokens.filter(r => r.hints.indexOf(hint) !== -1);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
const DEFAULT_PAGE_SIZE = 20;
|
|
328
|
+
function getPageInfo(datatable, defaultPageSize = DEFAULT_PAGE_SIZE) {
|
|
329
|
+
return {
|
|
330
|
+
offset: datatable?.ngxDatatable?.offset ?? 0,
|
|
331
|
+
pageSize: datatable?.ngxDatatable?.pageSize ?? defaultPageSize,
|
|
332
|
+
limit: datatable?.ngxDatatable?.limit,
|
|
333
|
+
count: datatable?.ngxDatatable?.count ?? 0
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
function createPageInfoObservable(datatable$, defaultPageSize = 20) {
|
|
338
|
+
return new Observable((subscriber) => {
|
|
339
|
+
let prev = null;
|
|
340
|
+
const handlePageInfo = (pageInfo) => {
|
|
341
|
+
if (!_isPageInfoSame(prev, pageInfo)) {
|
|
342
|
+
if (pageInfo !== null) {
|
|
343
|
+
subscriber.next(pageInfo);
|
|
344
|
+
}
|
|
345
|
+
prev = pageInfo;
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
const dtSub = datatable$.pipe(switchMap(dt => {
|
|
349
|
+
if (!notNullOrUndefined(dt)) {
|
|
350
|
+
handlePageInfo(null);
|
|
351
|
+
return EMPTY;
|
|
352
|
+
}
|
|
353
|
+
handlePageInfo(getPageInfo(dt, defaultPageSize));
|
|
354
|
+
return dt.page.pipe(tap(p => handlePageInfo(p)));
|
|
355
|
+
})).subscribe();
|
|
356
|
+
return () => {
|
|
357
|
+
dtSub.unsubscribe();
|
|
358
|
+
};
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
function _isPageInfoSame(prev, curr) {
|
|
362
|
+
if (prev?.offset === curr?.offset &&
|
|
363
|
+
prev?.pageSize === curr?.pageSize &&
|
|
364
|
+
prev?.limit === curr?.limit &&
|
|
365
|
+
prev?.count === curr?.count) {
|
|
366
|
+
return true;
|
|
367
|
+
}
|
|
368
|
+
return false;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
function resolveMapper(filterState, filterStateMappers, context) {
|
|
372
|
+
const mapper = filterStateMappers[filterState.name];
|
|
373
|
+
if (!notNullOrUndefined(mapper)) {
|
|
374
|
+
throw Error(`Mapper for filter '${filterState.name}' not found.`);
|
|
375
|
+
}
|
|
376
|
+
return wrapIntoObservable(mapper(filterState, context)).pipe(
|
|
377
|
+
// Require each mapper to complete.
|
|
378
|
+
take(1));
|
|
379
|
+
}
|
|
380
|
+
function resolveMappers(filterStates, filterStateMappers, context) {
|
|
381
|
+
return from(filterStates).pipe(concatMap(filterState => resolveMapper(filterState, filterStateMappers, context)), filter(notNullOrUndefined), toArray());
|
|
382
|
+
}
|
|
383
|
+
function mergeFilters(filters) {
|
|
384
|
+
return { or: filters };
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Merges variable objects.
|
|
388
|
+
*
|
|
389
|
+
* NOTE: This does not try to deep merge, so if two objects define the same
|
|
390
|
+
* variable then the last object's value will be in the merged object. *In
|
|
391
|
+
* devMode an error will be thrown.*
|
|
392
|
+
*/
|
|
393
|
+
function mergeVariables(variableObjects) {
|
|
394
|
+
const variables = {};
|
|
395
|
+
for (const v of variableObjects) {
|
|
396
|
+
const props = Object.keys(v);
|
|
397
|
+
if (isDevMode()) {
|
|
398
|
+
for (const p of props) {
|
|
399
|
+
if (notNullOrUndefined(variables[p]) && variables[p] !== v[p]) {
|
|
400
|
+
// eslint-disable-next-line no-console
|
|
401
|
+
console.warn(`Multiple filters adding the same variable with a different result. This could cause unexpected results.`);
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
for (const p of props) {
|
|
407
|
+
variables[p] = v[p];
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
return variables;
|
|
411
|
+
}
|
|
412
|
+
function isEmptyFilter(mapperFilter) {
|
|
413
|
+
return Object.keys(mapperFilter).length === 0;
|
|
414
|
+
}
|
|
415
|
+
async function mapFilterStates(filterStates, filterStateMappers, context) {
|
|
416
|
+
const results = (await resolveMappers(filterStates, filterStateMappers, context).toPromise()) ?? [];
|
|
417
|
+
if (results.length === 0) {
|
|
418
|
+
return null;
|
|
419
|
+
}
|
|
420
|
+
const filters = results
|
|
421
|
+
.map((r) => r.filter)
|
|
422
|
+
.filter(notNullOrUndefined)
|
|
423
|
+
.filter(mapperFilter => !isEmptyFilter(mapperFilter));
|
|
424
|
+
const variableObjs = results
|
|
425
|
+
.map((r) => r.variables)
|
|
426
|
+
.filter(notNullOrUndefined);
|
|
427
|
+
return {
|
|
428
|
+
filter: mergeFilters(filters),
|
|
429
|
+
variables: mergeVariables(variableObjs)
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Maps to a range that fetches the page before the current page, the current
|
|
435
|
+
* page, and the page after the current page.
|
|
436
|
+
*/
|
|
437
|
+
function mapPageInfo(pageInfo) {
|
|
438
|
+
const _skip = pageInfo.offset * pageInfo.pageSize;
|
|
439
|
+
const skipWithWindowOffset = _skip - pageInfo.pageSize;
|
|
440
|
+
const takeOffset = skipWithWindowOffset < 0 ? skipWithWindowOffset : 0;
|
|
441
|
+
return {
|
|
442
|
+
skip: Math.max(skipWithWindowOffset, 0),
|
|
443
|
+
take: Math.max((pageInfo.pageSize * 3) + takeOffset, 0)
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
function observeRowsWithGqlInputsHandling(queryRef, rows, datatable, extraVariables, sortsMapper, filterStateMappers) {
|
|
448
|
+
return new Observable((subscriber) => {
|
|
449
|
+
const datatable$ = wrapIntoObservable(datatable);
|
|
450
|
+
const extraVariables$ = wrapIntoObservable(extraVariables);
|
|
451
|
+
const context$ = extraVariables$.pipe(map(_extraVariables => {
|
|
452
|
+
const context = {
|
|
453
|
+
extraVariables: _extraVariables
|
|
454
|
+
};
|
|
455
|
+
return context;
|
|
456
|
+
}), shareReplay({ bufferSize: 1, refCount: true }));
|
|
457
|
+
const datatableMappers = {
|
|
458
|
+
pageInfo: mapPageInfo,
|
|
459
|
+
sorts: sortsMapper,
|
|
460
|
+
filters: filterStateMappers,
|
|
461
|
+
};
|
|
462
|
+
const datatableResults$ = _createDatatableResultsObservable(datatable$, datatableMappers, context$);
|
|
463
|
+
const queryVariablesChanged$ = datatableResults$.pipe(tap(results => {
|
|
464
|
+
queryRef.setVariables({
|
|
465
|
+
...(results.context || {}),
|
|
466
|
+
...results.pageInfo,
|
|
467
|
+
...(results.sorts.length > 0 ? { order: results.sorts } : {}),
|
|
468
|
+
...(results.filter?.variables || {}),
|
|
469
|
+
...(results.filter?.filter ? { where: results.filter.filter } : {})
|
|
470
|
+
});
|
|
471
|
+
}));
|
|
472
|
+
// const _emitSubject = new Subject<void>()
|
|
473
|
+
// const queryVarsChangedSub = queryVariablesChanged$.pipe(
|
|
474
|
+
// switchMap(() => subscriberCount(rows, 'rows'))
|
|
475
|
+
// ).subscribe(subscriber)
|
|
476
|
+
const queryVarsChangedSub = queryVariablesChanged$.subscribe();
|
|
477
|
+
const _sub = subscriberCount(rows, 'rows').subscribe(subscriber);
|
|
478
|
+
return () => {
|
|
479
|
+
queryVarsChangedSub.unsubscribe();
|
|
480
|
+
_sub.unsubscribe();
|
|
481
|
+
};
|
|
482
|
+
});
|
|
483
|
+
// const context$ = extraVariables$.pipe(
|
|
484
|
+
// map(_extraVariables => {
|
|
485
|
+
// const context: MapperContext = {
|
|
486
|
+
// extraVariables: _extraVariables
|
|
487
|
+
// }
|
|
488
|
+
// return context
|
|
489
|
+
// })
|
|
490
|
+
// )
|
|
491
|
+
// const datatableMappers: DatatableMappers = {
|
|
492
|
+
// pageInfo: mapPageInfo,
|
|
493
|
+
// sorts: sortsMapper,
|
|
494
|
+
// filters: filterStateMappers,
|
|
495
|
+
// }
|
|
496
|
+
// const datatableResults$ = _createDatatableResultsObservable(
|
|
497
|
+
// datatable$,
|
|
498
|
+
// datatableMappers,
|
|
499
|
+
// context$,
|
|
500
|
+
// )
|
|
501
|
+
// const queryVariablesChanged$ = datatableResults$.pipe(
|
|
502
|
+
// tap(results => {
|
|
503
|
+
// queryRef.setVariables({
|
|
504
|
+
// ...(results.extraVariables || {}),
|
|
505
|
+
// ...results.pageInfo,
|
|
506
|
+
// ...(results.sorts.length > 0 ? { order: results.sorts } : {}),
|
|
507
|
+
// ...(results.filterInfo?.variables || {}),
|
|
508
|
+
// ...(results.filterInfo?.filter ? { where: results.filterInfo.filter } : {})
|
|
509
|
+
// } as any)
|
|
510
|
+
// })
|
|
511
|
+
// )
|
|
512
|
+
// const handleQueryInputs = combineLatest([ extraVariables$, pageInfo$ ]).pipe(
|
|
513
|
+
// switchMap(([ _extraVariables, pageInfo ]) => {
|
|
514
|
+
// // console.log('_extraVariables, pageInfo', _extraVariables, pageInfo)
|
|
515
|
+
// const context: MapperContext = {
|
|
516
|
+
// extraVariables: _extraVariables
|
|
517
|
+
// }
|
|
518
|
+
// return combineLatest([ sorts$, filterInfo$ ]).pipe(
|
|
519
|
+
// // map(([ sorts, filterInfo ]) => ({ extraVariables: _extraVariables, pageInfo, sorts, filterInfo }))
|
|
520
|
+
// map(([ sorts, filterInfo ]) => {
|
|
521
|
+
// // console.log('sorts, filterInfo', sorts, filterInfo)
|
|
522
|
+
// return { extraVariables: _extraVariables, pageInfo, sorts, filterInfo }
|
|
523
|
+
// })
|
|
524
|
+
// )
|
|
525
|
+
// }),
|
|
526
|
+
// tap(v => {
|
|
527
|
+
// // console.log('~~~', v)
|
|
528
|
+
// queryRef.setVariables({
|
|
529
|
+
// ...(v.extraVariables || {}),
|
|
530
|
+
// ...v.pageInfo,
|
|
531
|
+
// ...(v.sorts.length > 0 ? { order: v.sorts } : {}),
|
|
532
|
+
// ...(v.filterInfo?.variables || {}),
|
|
533
|
+
// ...(v.filterInfo?.filter ? { where: v.filterInfo.filter } : {})
|
|
534
|
+
// } as any)
|
|
535
|
+
// })
|
|
536
|
+
// )
|
|
537
|
+
// return defer(() => {
|
|
538
|
+
// const _emitted = new Subject<void>()
|
|
539
|
+
// const handlerSub = handleQueryInputs.pipe(
|
|
540
|
+
// // skip(1)
|
|
541
|
+
// // ).subscribe(() => _emitted.next())
|
|
542
|
+
// ).subscribe(() => {
|
|
543
|
+
// _emitted.next()
|
|
544
|
+
// })
|
|
545
|
+
// return _emitted.pipe(
|
|
546
|
+
// // tap(v => {
|
|
547
|
+
// // console.log('emitted', v)
|
|
548
|
+
// // }),
|
|
549
|
+
// distinctUntilChanged(),
|
|
550
|
+
// switchMap(() => subscriberCount(rows, 'rows')),
|
|
551
|
+
// // tap(v => {
|
|
552
|
+
// // console.log('emitting rows', v)
|
|
553
|
+
// // }),
|
|
554
|
+
// finalize(() => handlerSub.unsubscribe())
|
|
555
|
+
// )
|
|
556
|
+
// }).pipe(
|
|
557
|
+
// // tap(v => {
|
|
558
|
+
// // console.log('rows', v)
|
|
559
|
+
// // }),
|
|
560
|
+
// catchError(err => {
|
|
561
|
+
// console.error(err)
|
|
562
|
+
// return of([] as TRow[])
|
|
563
|
+
// }),
|
|
564
|
+
// shareReplay({ bufferSize: 1, refCount: true })
|
|
565
|
+
// )
|
|
566
|
+
}
|
|
567
|
+
function _createSortsObservable(datatable$) {
|
|
568
|
+
return datatable$.pipe(
|
|
569
|
+
// tap(v => console.log('sorts got dt', v)),
|
|
570
|
+
switchMap(dt => dt
|
|
571
|
+
? dt.sort.pipe(map(v => v.sorts), startWith(dt.sorts)) // .pipe(tap(v => console.log('sorts 1', v)))
|
|
572
|
+
: of([]) // .pipe(tap(v => console.log('sorts 2', v)))
|
|
573
|
+
), shareReplay({ bufferSize: 1, refCount: true }));
|
|
574
|
+
}
|
|
575
|
+
function _createFilterStatesObservable(datatable$) {
|
|
576
|
+
return datatable$.pipe(
|
|
577
|
+
// tap(v => console.log('filters got dt', v)),
|
|
578
|
+
switchMap(dt => dt
|
|
579
|
+
? dt.filterStates // .pipe(tap(v => console.log('filterStates 1', v)))
|
|
580
|
+
: of([]) // .pipe(tap(v => console.log('filterStates 2', v)))
|
|
581
|
+
),
|
|
582
|
+
// TODO: Remove when the datatable fixes the bug causing it to emit more than it should.
|
|
583
|
+
distinctUntilChanged((x, y) => JSON.stringify(x) === JSON.stringify(y)));
|
|
584
|
+
}
|
|
585
|
+
function _createDatatableResultsObservable(datatable$, mappers, context$) {
|
|
586
|
+
return new Observable((subscriber) => {
|
|
587
|
+
const datatableSubject = new ReplaySubject();
|
|
588
|
+
const dtSub = datatable$.subscribe(dt => datatableSubject.next(dt), err => datatableSubject.error(err), () => datatableSubject.complete());
|
|
589
|
+
const ctxSub = context$.pipe(switchMap(context => {
|
|
590
|
+
// TODO: Decide if the disabled paging feature will be reimplemented in a way
|
|
591
|
+
// that it should be considered here. `_isPagingDisabled(queryRef)`
|
|
592
|
+
const pageInfo$ = createPageInfoObservable(datatable$).pipe(map(info => mappers.pageInfo(info)));
|
|
593
|
+
const sorts$ = _createSortsObservable(datatable$).pipe(switchMap(m => wrapIntoObservable(mappers.sorts(m, context))));
|
|
594
|
+
const filterInfo$ = _createFilterStatesObservable(datatable$).pipe(switchMap(x => mapFilterStates(x, mappers.filters, context)));
|
|
595
|
+
return combineLatest([
|
|
596
|
+
pageInfo$,
|
|
597
|
+
sorts$,
|
|
598
|
+
filterInfo$,
|
|
599
|
+
]).pipe(map(([pageInfo, sorts, filterInfo]) => ({
|
|
600
|
+
pageInfo,
|
|
601
|
+
sorts,
|
|
602
|
+
filter: filterInfo,
|
|
603
|
+
context
|
|
604
|
+
})));
|
|
605
|
+
})).subscribe(subscriber);
|
|
606
|
+
return () => {
|
|
607
|
+
dtSub.unsubscribe();
|
|
608
|
+
ctxSub.unsubscribe();
|
|
609
|
+
};
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
// function _isPagingDisabled<TData, TVariables, TRow>(queryRef: DatatableGraphQLQueryRef<TData, TVariables, TRow>): boolean {
|
|
613
|
+
// return queryRef.getQueryProcessingConfig()?.disablePaging ?? false
|
|
614
|
+
// }
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Partially wraps ApolloClient's QueryRef with some of our datatable boilerplate.
|
|
618
|
+
*
|
|
619
|
+
* TODO: Decide how to handle/display errors.
|
|
620
|
+
*/
|
|
621
|
+
class DatatableGraphQLQueryRef {
|
|
622
|
+
_queryRef;
|
|
623
|
+
_updatesPollDelay;
|
|
624
|
+
_variablesSubject = new BehaviorSubject({});
|
|
625
|
+
_observingChangesSubject = new BehaviorSubject(false);
|
|
626
|
+
/**
|
|
627
|
+
* Temporary way of tracking total count when paging is disabled.
|
|
628
|
+
*/
|
|
629
|
+
_totalCount = DEFAULT_PAGE_SIZE;
|
|
630
|
+
get _observingChanges() { return this._observingChangesSubject.value; }
|
|
631
|
+
set _observingChanges(value) { this._observingChangesSubject.next(value); }
|
|
632
|
+
_variablesUpdatePending = false;
|
|
633
|
+
_valueChanges;
|
|
634
|
+
loading$;
|
|
635
|
+
get updatesPollDelay() { return this._updatesPollDelay; }
|
|
636
|
+
get variablesUpdatePending() { return this._variablesUpdatePending; }
|
|
637
|
+
constructor(
|
|
638
|
+
/** Original ApolloClient's QueryRef. */
|
|
639
|
+
_queryRef,
|
|
640
|
+
/**
|
|
641
|
+
* How long to wait before refetching from an update to the query or variables.
|
|
642
|
+
*/
|
|
643
|
+
_updatesPollDelay = 500) {
|
|
644
|
+
this._queryRef = _queryRef;
|
|
645
|
+
this._updatesPollDelay = _updatesPollDelay;
|
|
646
|
+
this._variablesSubject.next(this._queryRef.obsQuery.options.variables || {});
|
|
647
|
+
// this._getValueChanges().subscribe(v => this._logNetworkStatus(v.networkStatus))
|
|
648
|
+
this._valueChanges = defer(() => {
|
|
649
|
+
// console.log('Observing value changes')
|
|
650
|
+
const varChangesSub = this._variablesSubject.pipe(skip(1), tap(() => {
|
|
651
|
+
this._variablesUpdatePending = true;
|
|
652
|
+
}), auditTime(this._updatesPollDelay), finalize(() => {
|
|
653
|
+
// If the query stopped being observed before setting the pending
|
|
654
|
+
// variables, set them now.
|
|
655
|
+
if (this._variablesUpdatePending) {
|
|
656
|
+
this.refetch();
|
|
657
|
+
this._variablesUpdatePending = false;
|
|
658
|
+
}
|
|
659
|
+
})).subscribe(variables => {
|
|
660
|
+
// console.log('set vars', variables)
|
|
661
|
+
this._setVariablesImmediate(variables);
|
|
662
|
+
// this.refetch()
|
|
663
|
+
this._variablesUpdatePending = false;
|
|
664
|
+
});
|
|
665
|
+
this._observingChanges = true;
|
|
666
|
+
return this._queryRef.valueChanges.pipe(
|
|
667
|
+
// tap(v => {
|
|
668
|
+
// console.log('v', v)
|
|
669
|
+
// }),
|
|
670
|
+
filter(v => v.networkStatus === NetworkStatus.ready), finalize(() => {
|
|
671
|
+
// console.log('Done observing value changes')
|
|
672
|
+
varChangesSub.unsubscribe();
|
|
673
|
+
this._observingChanges = false;
|
|
674
|
+
}));
|
|
675
|
+
}).pipe(
|
|
676
|
+
// share()
|
|
677
|
+
shareReplay({ bufferSize: 1, refCount: true }));
|
|
678
|
+
this.loading$ = this._observingChangesSubject.pipe(switchMap(observingChanges => {
|
|
679
|
+
if (!observingChanges) {
|
|
680
|
+
return of(false);
|
|
681
|
+
}
|
|
682
|
+
return this._valueChanges.pipe(map(result => result.loading), startWith(this._queryRef.getCurrentResult().loading), auditTime(0), shareReplay({ bufferSize: 1, refCount: true }));
|
|
683
|
+
}));
|
|
684
|
+
}
|
|
685
|
+
rows(mapper) {
|
|
686
|
+
return this._rowsObservable(mapper);
|
|
687
|
+
}
|
|
688
|
+
_rowsObservable(mapper) {
|
|
689
|
+
return new Observable((subscriber) => {
|
|
690
|
+
// const rowsBufferSubject = new BehaviorSubject<TRow[]>([])
|
|
691
|
+
// console.log('obs _rowsObservable')
|
|
692
|
+
let rowsBuffer = [];
|
|
693
|
+
// const rowsBufferSubject = new ReplaySubject<TRow[]>()
|
|
694
|
+
const rowsBufferSubject = new Subject();
|
|
695
|
+
const querySub = this._valueChanges.pipe(switchMap(result => {
|
|
696
|
+
if (result.data === undefined) {
|
|
697
|
+
return of([]);
|
|
698
|
+
}
|
|
699
|
+
return this._resolveRowMapper(mapper(result.data)).pipe(tap(mapperResult => {
|
|
700
|
+
// console.log('mapperResult', mapperResult)
|
|
701
|
+
if (this._needsToRequeryWithAllRecords(mapperResult)) {
|
|
702
|
+
this.patchVariables({ take: mapperResult.totalCount });
|
|
703
|
+
}
|
|
704
|
+
if (hasProperty(mapperResult, 'totalCount')) {
|
|
705
|
+
this._totalCount = mapperResult.totalCount;
|
|
706
|
+
}
|
|
707
|
+
// let rows = rowsBufferSubject.value || []
|
|
708
|
+
let rows = rowsBuffer || [];
|
|
709
|
+
const hasTotalCount = mapperResult.totalCount !== undefined && mapperResult.totalCount !== null;
|
|
710
|
+
// If the rows buffer is not the same size as the totalCount, create a
|
|
711
|
+
// new buffer.
|
|
712
|
+
//
|
|
713
|
+
// TODO: Find out if this is resetting the buffer too eagerly.
|
|
714
|
+
// ApolloClient may have a better solution.
|
|
715
|
+
if (hasTotalCount) {
|
|
716
|
+
if (mapperResult.totalCount !== rows.length) {
|
|
717
|
+
rows = new Array(mapperResult.totalCount || 0);
|
|
718
|
+
}
|
|
719
|
+
let startIndex = this.getVariables().skip ?? 0;
|
|
720
|
+
if (this.getQueryProcessingConfig()?.disablePaging) {
|
|
721
|
+
startIndex = 0;
|
|
722
|
+
}
|
|
723
|
+
// Insert rows into buffer location.
|
|
724
|
+
rows.splice(startIndex, mapperResult.rows.length, ...mapperResult.rows);
|
|
725
|
+
rows = [...rows];
|
|
726
|
+
}
|
|
727
|
+
else {
|
|
728
|
+
rows = [...mapperResult.rows];
|
|
729
|
+
}
|
|
730
|
+
rowsBuffer = rows;
|
|
731
|
+
rowsBufferSubject.next(rows);
|
|
732
|
+
}));
|
|
733
|
+
})).subscribe();
|
|
734
|
+
const rowsSub = rowsBufferSubject.subscribe(subscriber);
|
|
735
|
+
return () => {
|
|
736
|
+
// console.log('unsub')
|
|
737
|
+
querySub.unsubscribe();
|
|
738
|
+
rowsSub.unsubscribe();
|
|
739
|
+
rowsBufferSubject.next([]);
|
|
740
|
+
rowsBufferSubject.complete();
|
|
741
|
+
};
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
_needsToRequeryWithAllRecords(data) {
|
|
745
|
+
if (!(this.getQueryProcessingConfig()?.disablePaging)) {
|
|
746
|
+
return false;
|
|
747
|
+
}
|
|
748
|
+
return hasProperty(data, 'totalCount') &&
|
|
749
|
+
hasProperty(data, 'rows') &&
|
|
750
|
+
Array.isArray(data.rows) &&
|
|
751
|
+
data.totalCount > data.rows.length &&
|
|
752
|
+
this._totalCount !== data.totalCount;
|
|
753
|
+
}
|
|
754
|
+
_resolveRowMapper(mapperReturn) {
|
|
755
|
+
if (isObservable(mapperReturn)) {
|
|
756
|
+
return mapperReturn.pipe(take(1));
|
|
757
|
+
}
|
|
758
|
+
return from(Promise.resolve(mapperReturn));
|
|
759
|
+
}
|
|
760
|
+
getVariables() {
|
|
761
|
+
// The types aren't accurate or Apollo has a bug, so I had to use `any`.
|
|
762
|
+
// return (this._queryRef as any).obsQuery.options.variables || {}
|
|
763
|
+
// TODO: Look into debouncing our variable setting, while still depending on Apollo for managing them.
|
|
764
|
+
return this._variablesSubject.value;
|
|
765
|
+
}
|
|
766
|
+
_setVariablesImmediate(variables) {
|
|
767
|
+
const _vars = this._withVariableOverrides(variables);
|
|
768
|
+
return this._queryRef.setVariables(_vars || {});
|
|
769
|
+
}
|
|
770
|
+
_patchVariablesImmediate(variables) {
|
|
771
|
+
const _variables = {
|
|
772
|
+
...this.getVariables(),
|
|
773
|
+
...variables
|
|
774
|
+
};
|
|
775
|
+
const _vars = this._withVariableOverrides(_variables);
|
|
776
|
+
return this._queryRef.setVariables(_vars || {});
|
|
777
|
+
}
|
|
778
|
+
setVariables(variables) {
|
|
779
|
+
this._variablesSubject.next(variables);
|
|
780
|
+
if (!this._observingChanges) {
|
|
781
|
+
this._setVariablesImmediate(variables);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
patchVariables(variables) {
|
|
785
|
+
const _variables = {
|
|
786
|
+
...this.getVariables(),
|
|
787
|
+
...variables
|
|
788
|
+
};
|
|
789
|
+
this._variablesSubject.next(_variables);
|
|
790
|
+
if (!this._observingChanges) {
|
|
791
|
+
this._setVariablesImmediate(_variables);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
refetch(variables) {
|
|
795
|
+
const _vars = this._withVariableOverrides(variables);
|
|
796
|
+
return this._queryRef.refetch(_vars);
|
|
797
|
+
}
|
|
798
|
+
setQuery(query, triggerRefetch = false) {
|
|
799
|
+
this._queryRef.setOptions({ query });
|
|
800
|
+
if (triggerRefetch) {
|
|
801
|
+
// TODO: Consider refactoring the refetch process. I can't call Apollo's
|
|
802
|
+
// refetch directly, because I want it to share the update triggered
|
|
803
|
+
// polling delay with the setting of variables.
|
|
804
|
+
// this._queryRef.refetch(this.getVariables())
|
|
805
|
+
// Fake variables update to trigger a refetch that shares it's refetch delay.
|
|
806
|
+
this.setVariables(this.getVariables());
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
getOptions() {
|
|
810
|
+
return this._queryRef.obsQuery.options;
|
|
811
|
+
}
|
|
812
|
+
getQueryProcessingConfig() {
|
|
813
|
+
return this.getOptions()?.context?.queryProcessingConfig;
|
|
814
|
+
}
|
|
815
|
+
_withVariableOverrides(variables) {
|
|
816
|
+
if (!notNullOrUndefined(variables) && !(this.getQueryProcessingConfig()?.disablePaging)) {
|
|
817
|
+
return undefined;
|
|
818
|
+
}
|
|
819
|
+
const _vars = { ...(variables || {}) };
|
|
820
|
+
if (this.getQueryProcessingConfig()?.disablePaging) {
|
|
821
|
+
_vars.take = this._totalCount;
|
|
822
|
+
}
|
|
823
|
+
return _vars;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
const DATATABLE_GRAPHQL_SERVICE_CONFIG = new InjectionToken('DATATABLE_GRAPHQL_SERVICE_CONFIG');
|
|
828
|
+
const _CONFIG_DEFAULTS = {
|
|
829
|
+
pollingIntervalTime: 1 * 60 * 1000
|
|
830
|
+
};
|
|
831
|
+
class DatatableGraphqlService {
|
|
832
|
+
_apollo;
|
|
833
|
+
_config;
|
|
834
|
+
constructor(_apollo, _config) {
|
|
835
|
+
this._apollo = _apollo;
|
|
836
|
+
this._config = {
|
|
837
|
+
..._CONFIG_DEFAULTS,
|
|
838
|
+
...(_config || {})
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
watchQuery(options, queryProcessingConfig) {
|
|
842
|
+
const _options = {
|
|
843
|
+
useInitialLoading: true,
|
|
844
|
+
..._CONFIG_DEFAULTS,
|
|
845
|
+
pollInterval: this._config.pollingIntervalTime,
|
|
846
|
+
...options
|
|
847
|
+
};
|
|
848
|
+
if (queryProcessingConfig) {
|
|
849
|
+
_options.context = {
|
|
850
|
+
...(_options.context || {}),
|
|
851
|
+
queryProcessingConfig: {
|
|
852
|
+
...(_options.context?.queryProcessingConfig || {}),
|
|
853
|
+
...queryProcessingConfig
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
const queryRef = this._apollo.watchQuery(_options);
|
|
858
|
+
return new DatatableGraphQLQueryRef(queryRef);
|
|
859
|
+
}
|
|
860
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: DatatableGraphqlService, deps: [{ token: i1.Apollo }, { token: DATATABLE_GRAPHQL_SERVICE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
861
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: DatatableGraphqlService, providedIn: 'root' });
|
|
862
|
+
}
|
|
863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: DatatableGraphqlService, decorators: [{
|
|
864
|
+
type: Injectable,
|
|
865
|
+
args: [{
|
|
866
|
+
providedIn: 'root'
|
|
867
|
+
}]
|
|
868
|
+
}], ctorParameters: () => [{ type: i1.Apollo }, { type: undefined, decorators: [{
|
|
869
|
+
type: Optional
|
|
870
|
+
}, {
|
|
871
|
+
type: Inject,
|
|
872
|
+
args: [DATATABLE_GRAPHQL_SERVICE_CONFIG]
|
|
873
|
+
}] }] });
|
|
874
|
+
|
|
875
|
+
const mapSearchDateColumnsDataFilterStateToGql = (filterState, context) => {
|
|
876
|
+
const formValue = filterState.state.formValue;
|
|
877
|
+
const options = filterState.state.options;
|
|
878
|
+
let filter = null;
|
|
879
|
+
if (isNullOrUndefined(filterState.state.prop) || isNullOrUndefined(options) || isNullOrUndefined(formValue) || isNullOrUndefined(formValue.searchType)) {
|
|
880
|
+
return filter;
|
|
881
|
+
}
|
|
882
|
+
if (THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES.includes(formValue.searchType) && notNullOrUndefined(formValue.searchText)) {
|
|
883
|
+
const searchDate = getFormattedDateForComparison(formValue.searchText, options.dateType, true);
|
|
884
|
+
if (!isNaN(searchDate.valueOf())) {
|
|
885
|
+
switch (formValue.searchType) {
|
|
886
|
+
case 'eq': {
|
|
887
|
+
let searchDateEnd;
|
|
888
|
+
if (options.dateType === 'datetime-local') {
|
|
889
|
+
searchDateEnd = new Date(searchDate);
|
|
890
|
+
searchDateEnd.setMinutes(searchDateEnd.getMinutes() + 1);
|
|
891
|
+
}
|
|
892
|
+
else if (options.dateType === 'date') {
|
|
893
|
+
searchDateEnd = new Date(searchDate);
|
|
894
|
+
searchDateEnd.setDate(searchDateEnd.getDate() + 1);
|
|
895
|
+
}
|
|
896
|
+
if (notNullOrUndefined(searchDateEnd)) {
|
|
897
|
+
filter = {
|
|
898
|
+
filter: {
|
|
899
|
+
and: [
|
|
900
|
+
{ [filterState.state.prop]: { gte: searchDate.toISOString() } },
|
|
901
|
+
{ [filterState.state.prop]: { lt: searchDateEnd.toISOString() } }
|
|
902
|
+
]
|
|
903
|
+
},
|
|
904
|
+
variables: {}
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
case 'gt':
|
|
910
|
+
case 'lte': {
|
|
911
|
+
const comparator = formValue.searchType === 'gt' ? 'gte' : formValue.searchType === 'lte' ? 'lt' : null;
|
|
912
|
+
let searchDateEnd;
|
|
913
|
+
if (options.dateType === 'datetime-local') {
|
|
914
|
+
searchDateEnd = new Date(searchDate);
|
|
915
|
+
searchDateEnd.setMinutes(searchDateEnd.getMinutes() + 1);
|
|
916
|
+
}
|
|
917
|
+
else if (options.dateType === 'date') {
|
|
918
|
+
searchDateEnd = new Date(searchDate);
|
|
919
|
+
searchDateEnd.setDate(searchDateEnd.getDate() + 1);
|
|
920
|
+
}
|
|
921
|
+
if (notNullOrUndefined(comparator) && notNullOrUndefined(searchDateEnd)) {
|
|
922
|
+
filter = {
|
|
923
|
+
filter: {
|
|
924
|
+
and: [
|
|
925
|
+
{ [filterState.state.prop]: { [comparator]: searchDateEnd.toISOString() } },
|
|
926
|
+
]
|
|
927
|
+
},
|
|
928
|
+
variables: {}
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
case 'lt':
|
|
934
|
+
case 'gte': {
|
|
935
|
+
filter = {
|
|
936
|
+
filter: {
|
|
937
|
+
and: [
|
|
938
|
+
{ [filterState.state.prop]: { [formValue.searchType]: searchDate.toISOString() } },
|
|
939
|
+
]
|
|
940
|
+
},
|
|
941
|
+
variables: {}
|
|
942
|
+
};
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
default:
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
else if (THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES.includes(formValue.searchType) && notNullOrUndefined(formValue.fromText) && notNullOrUndefined(formValue.toText)) {
|
|
951
|
+
const fromDate = getFormattedDateForComparison(formValue.fromText, options.dateType, true);
|
|
952
|
+
const toDate = getFormattedDateForComparison(formValue.toText, options.dateType, true);
|
|
953
|
+
if (!isNaN(fromDate.valueOf()) && !isNaN(toDate.valueOf())) {
|
|
954
|
+
let toDateEnd;
|
|
955
|
+
if (options.dateType === 'datetime-local') {
|
|
956
|
+
toDateEnd = new Date(toDate);
|
|
957
|
+
toDateEnd.setMinutes(toDateEnd.getMinutes() + 1);
|
|
958
|
+
}
|
|
959
|
+
else if (options.dateType === 'date') {
|
|
960
|
+
toDateEnd = new Date(toDate);
|
|
961
|
+
toDateEnd.setDate(toDateEnd.getDate() + 1);
|
|
962
|
+
}
|
|
963
|
+
if (notNullOrUndefined(toDateEnd)) {
|
|
964
|
+
if (formValue.searchType === 'between') {
|
|
965
|
+
filter = {
|
|
966
|
+
filter: {
|
|
967
|
+
and: [
|
|
968
|
+
{ [filterState.state.prop]: { gte: fromDate.toISOString() } },
|
|
969
|
+
{ [filterState.state.prop]: { lt: toDateEnd.toISOString() } },
|
|
970
|
+
]
|
|
971
|
+
},
|
|
972
|
+
variables: {}
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
else if (formValue.searchType === 'not-between') {
|
|
976
|
+
filter = {
|
|
977
|
+
filter: {
|
|
978
|
+
or: [
|
|
979
|
+
{ [filterState.state.prop]: { lt: fromDate.toISOString() } },
|
|
980
|
+
{ [filterState.state.prop]: { gt: toDateEnd.toISOString() } },
|
|
981
|
+
]
|
|
982
|
+
},
|
|
983
|
+
variables: {}
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
else if (formValue.searchType === 'blank') {
|
|
990
|
+
filter = {
|
|
991
|
+
filter: {
|
|
992
|
+
or: [
|
|
993
|
+
{ [filterState.state.prop]: { eq: null } }
|
|
994
|
+
]
|
|
995
|
+
},
|
|
996
|
+
variables: {}
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
else if (formValue.searchType === 'not-blank') {
|
|
1000
|
+
filter = {
|
|
1001
|
+
filter: {
|
|
1002
|
+
and: [
|
|
1003
|
+
{ [filterState.state.prop]: { neq: null } }
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
variables: {}
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
return filter;
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
const mapSearchNumericColumnsDataFilterStateToGql = (filterState, context) => {
|
|
1013
|
+
let filter = null;
|
|
1014
|
+
if (isNullOrUndefined(filterState.state.prop)) {
|
|
1015
|
+
return filter;
|
|
1016
|
+
}
|
|
1017
|
+
if (notNullOrUndefined(filterState.state.formValue) && notNullOrUndefined(filterState.state.formValue.searchType)) {
|
|
1018
|
+
if (THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES.includes(filterState.state.formValue.searchType) && notNullOrUndefined(filterState.state.formValue.searchText)) {
|
|
1019
|
+
const searchNumeric = parseFloat(filterState.state.formValue.searchText);
|
|
1020
|
+
if (!isNaN(searchNumeric)) {
|
|
1021
|
+
filter = {
|
|
1022
|
+
filter: {
|
|
1023
|
+
and: [
|
|
1024
|
+
{ [filterState.state.prop]: { [filterState.state.formValue.searchType]: searchNumeric } }
|
|
1025
|
+
]
|
|
1026
|
+
},
|
|
1027
|
+
variables: {}
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
else if (THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES.includes(filterState.state.formValue.searchType) && notNullOrUndefined(filterState.state.formValue.fromText) && notNullOrUndefined(filterState.state.formValue.toText)) {
|
|
1032
|
+
const fromNumeric = parseFloat(filterState.state.formValue.fromText);
|
|
1033
|
+
const toNumeric = parseFloat(filterState.state.formValue.toText);
|
|
1034
|
+
if (!isNaN(fromNumeric) && !isNaN(toNumeric)) {
|
|
1035
|
+
if (filterState.state.formValue.searchType === 'between') {
|
|
1036
|
+
filter = {
|
|
1037
|
+
filter: {
|
|
1038
|
+
and: [
|
|
1039
|
+
{ [filterState.state.prop]: { 'gte': fromNumeric } },
|
|
1040
|
+
{ [filterState.state.prop]: { 'lte': toNumeric } },
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1043
|
+
variables: {}
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
else if (filterState.state.formValue.searchType === 'not-between') {
|
|
1047
|
+
filter = {
|
|
1048
|
+
filter: {
|
|
1049
|
+
or: [
|
|
1050
|
+
{ [filterState.state.prop]: { 'lt': fromNumeric } },
|
|
1051
|
+
{ [filterState.state.prop]: { 'gt': toNumeric } },
|
|
1052
|
+
]
|
|
1053
|
+
},
|
|
1054
|
+
variables: {}
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
else if (filterState.state.formValue.searchType === 'blank') {
|
|
1060
|
+
filter = {
|
|
1061
|
+
filter: {
|
|
1062
|
+
or: [
|
|
1063
|
+
{ [filterState.state.prop]: { eq: null } },
|
|
1064
|
+
{ [filterState.state.prop]: { eq: '' } },
|
|
1065
|
+
]
|
|
1066
|
+
},
|
|
1067
|
+
variables: {}
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
else if (filterState.state.formValue.searchType === 'not-blank') {
|
|
1071
|
+
filter = {
|
|
1072
|
+
filter: {
|
|
1073
|
+
and: [
|
|
1074
|
+
{ [filterState.state.prop]: { neq: null } },
|
|
1075
|
+
{ [filterState.state.prop]: { neq: '' } }
|
|
1076
|
+
]
|
|
1077
|
+
},
|
|
1078
|
+
variables: {}
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
return filter;
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
const mapSearchTextColumnsDataFilterStateToGql = (filterState, context) => {
|
|
1086
|
+
let filter = null;
|
|
1087
|
+
if (isNullOrUndefined(filterState.state.prop)) {
|
|
1088
|
+
return filter;
|
|
1089
|
+
}
|
|
1090
|
+
if (notNullOrUndefined(filterState.state.formValue) && notNullOrUndefined(filterState.state.formValue.searchType)) {
|
|
1091
|
+
if (THESEAM_COLUMNS_DATA_FILTER_TEXT_TEXT_SEARCH_TYPES.includes(filterState.state.formValue.searchType) && notNullOrUndefined(filterState.state.formValue.searchText)) {
|
|
1092
|
+
filter = {
|
|
1093
|
+
filter: {
|
|
1094
|
+
and: [
|
|
1095
|
+
{ [filterState.state.prop]: { [filterState.state.formValue.searchType]: filterState.state.formValue.searchText } }
|
|
1096
|
+
]
|
|
1097
|
+
},
|
|
1098
|
+
variables: {}
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
else if (filterState.state.formValue.searchType === 'blank') {
|
|
1102
|
+
filter = {
|
|
1103
|
+
filter: {
|
|
1104
|
+
or: [
|
|
1105
|
+
{ [filterState.state.prop]: { eq: null } },
|
|
1106
|
+
{ [filterState.state.prop]: { eq: '' } },
|
|
1107
|
+
]
|
|
1108
|
+
},
|
|
1109
|
+
variables: {}
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
else if (filterState.state.formValue.searchType === 'not-blank') {
|
|
1113
|
+
filter = {
|
|
1114
|
+
filter: {
|
|
1115
|
+
and: [
|
|
1116
|
+
{ [filterState.state.prop]: { neq: null } },
|
|
1117
|
+
{ [filterState.state.prop]: { neq: '' } }
|
|
1118
|
+
]
|
|
1119
|
+
},
|
|
1120
|
+
variables: {}
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
return filter;
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
const baseSchemaFragment = gql `
|
|
1128
|
+
input ComparableInt32OperationFilterInput {
|
|
1129
|
+
eq: Int
|
|
1130
|
+
neq: Int
|
|
1131
|
+
in: [Int!]
|
|
1132
|
+
nin: [Int!]
|
|
1133
|
+
gt: Int
|
|
1134
|
+
ngt: Int
|
|
1135
|
+
gte: Int
|
|
1136
|
+
ngte: Int
|
|
1137
|
+
lt: Int
|
|
1138
|
+
nlt: Int
|
|
1139
|
+
lte: Int
|
|
1140
|
+
nlte: Int
|
|
1141
|
+
objectContains: String
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
input StringOperationFilterInput {
|
|
1145
|
+
and: [StringOperationFilterInput!]
|
|
1146
|
+
or: [StringOperationFilterInput!]
|
|
1147
|
+
eq: String
|
|
1148
|
+
neq: String
|
|
1149
|
+
contains: String
|
|
1150
|
+
ncontains: String
|
|
1151
|
+
in: [String]
|
|
1152
|
+
nin: [String]
|
|
1153
|
+
startsWith: String
|
|
1154
|
+
nstartsWith: String
|
|
1155
|
+
endsWith: String
|
|
1156
|
+
nendsWith: String
|
|
1157
|
+
objectContains: String
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
input ComparableDateTimeOffsetOperationFilterInput {
|
|
1161
|
+
eq: DateTime
|
|
1162
|
+
neq: DateTime
|
|
1163
|
+
in: [DateTime!]
|
|
1164
|
+
nin: [DateTime!]
|
|
1165
|
+
gt: DateTime
|
|
1166
|
+
ngt: DateTime
|
|
1167
|
+
gte: DateTime
|
|
1168
|
+
ngte: DateTime
|
|
1169
|
+
lt: DateTime
|
|
1170
|
+
nlt: DateTime
|
|
1171
|
+
lte: DateTime
|
|
1172
|
+
nlte: DateTime
|
|
1173
|
+
objectContains: String
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
input BooleanOperationFilterInput {
|
|
1177
|
+
eq: Boolean
|
|
1178
|
+
neq: Boolean
|
|
1179
|
+
objectContains: String
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
input ComparableNullableOfDateTimeOffsetOperationFilterInput {
|
|
1183
|
+
eq: DateTime
|
|
1184
|
+
neq: DateTime
|
|
1185
|
+
in: [DateTime]
|
|
1186
|
+
nin: [DateTime]
|
|
1187
|
+
gt: DateTime
|
|
1188
|
+
ngt: DateTime
|
|
1189
|
+
gte: DateTime
|
|
1190
|
+
ngte: DateTime
|
|
1191
|
+
lt: DateTime
|
|
1192
|
+
nlt: DateTime
|
|
1193
|
+
lte: DateTime
|
|
1194
|
+
nlte: DateTime
|
|
1195
|
+
objectContains: String
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
enum SortEnumType {
|
|
1200
|
+
ASC
|
|
1201
|
+
DESC
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
"""The \`DateTime\` scalar represents an ISO-8601 compliant date time type."""
|
|
1206
|
+
scalar DateTime
|
|
1207
|
+
|
|
1208
|
+
scalar Uuid
|
|
1209
|
+
|
|
1210
|
+
"""The built-in \`Decimal\` scalar type."""
|
|
1211
|
+
scalar Decimal
|
|
1212
|
+
|
|
1213
|
+
"""
|
|
1214
|
+
The \`Long\` scalar type represents non-fractional signed whole 64-bit numeric values. Long can represent values between -(2^63) and 2^63 - 1.
|
|
1215
|
+
"""
|
|
1216
|
+
scalar Long
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
"""Information about the offset pagination."""
|
|
1220
|
+
type CollectionSegmentInfo {
|
|
1221
|
+
"""
|
|
1222
|
+
Indicates whether more items exist following the set defined by the clients arguments.
|
|
1223
|
+
"""
|
|
1224
|
+
hasNextPage: Boolean!
|
|
1225
|
+
|
|
1226
|
+
"""
|
|
1227
|
+
Indicates whether more items exist prior the set defined by the clients arguments.
|
|
1228
|
+
"""
|
|
1229
|
+
hasPreviousPage: Boolean!
|
|
1230
|
+
}
|
|
1231
|
+
`;
|
|
1232
|
+
|
|
1233
|
+
const _whereItemCollectionKinds = ['and', 'or'];
|
|
1234
|
+
function _createWhereFieldFn(fieldName) {
|
|
1235
|
+
return (obj) => obj[fieldName];
|
|
1236
|
+
}
|
|
1237
|
+
function _resolveWhereField(obj, f) {
|
|
1238
|
+
if (f instanceof Function) {
|
|
1239
|
+
return f(obj);
|
|
1240
|
+
}
|
|
1241
|
+
return f;
|
|
1242
|
+
}
|
|
1243
|
+
const _eqConditionOp = (field1, field2) => (obj) => _resolveWhereField(obj, field1) === _resolveWhereField(obj, field2);
|
|
1244
|
+
const _neqConditionOp = (field1, field2) => (obj) => _resolveWhereField(obj, field1) !== _resolveWhereField(obj, field2);
|
|
1245
|
+
const _conditions = {
|
|
1246
|
+
eq: _eqConditionOp,
|
|
1247
|
+
neq: _neqConditionOp,
|
|
1248
|
+
};
|
|
1249
|
+
const _conditionKinds = ['eq', 'neq'];
|
|
1250
|
+
function _getWhereCondition(x) {
|
|
1251
|
+
for (const k of _conditionKinds) {
|
|
1252
|
+
// if (hasProperty(x, k)) {
|
|
1253
|
+
if (x[k] !== undefined) {
|
|
1254
|
+
return { condition: _conditions[k], value: x[k] };
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
return null;
|
|
1258
|
+
}
|
|
1259
|
+
function _parseWhereItems(where) {
|
|
1260
|
+
const conditions = [];
|
|
1261
|
+
const keys = Object.keys(where);
|
|
1262
|
+
if (keys.find(k => _whereItemCollectionKinds.find(k2 => k === k2) !== undefined) !== undefined) {
|
|
1263
|
+
// TODO: Implement
|
|
1264
|
+
}
|
|
1265
|
+
else {
|
|
1266
|
+
for (const k of keys) {
|
|
1267
|
+
const c = _getWhereCondition(where[k]);
|
|
1268
|
+
if (c === null) {
|
|
1269
|
+
throw Error(`Unexpected where item.`);
|
|
1270
|
+
}
|
|
1271
|
+
conditions.push(c.condition(_createWhereFieldFn(`${k}`), c.value));
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
return conditions;
|
|
1275
|
+
}
|
|
1276
|
+
function filterWhere(data, where) {
|
|
1277
|
+
const items = _parseWhereItems(where);
|
|
1278
|
+
const filteredClaims = data.filter(c => {
|
|
1279
|
+
// const idx = items.indexOf(itm => itm(c))
|
|
1280
|
+
// return idx !== -1
|
|
1281
|
+
let found = false;
|
|
1282
|
+
for (const itm of items) {
|
|
1283
|
+
const b = itm(c);
|
|
1284
|
+
if (b) {
|
|
1285
|
+
found = b;
|
|
1286
|
+
break;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
return found;
|
|
1290
|
+
});
|
|
1291
|
+
return filteredClaims;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
function skipAndTake(data, skip, take) {
|
|
1295
|
+
if (skip < 0) {
|
|
1296
|
+
throw Error(`Invalid 'skip' value: ${skip}`);
|
|
1297
|
+
}
|
|
1298
|
+
// if (take > data.length) {
|
|
1299
|
+
// throw Error(`Invalid 'take' value: ${take}`)
|
|
1300
|
+
// }
|
|
1301
|
+
const tmp = [];
|
|
1302
|
+
for (let i = skip; i < take + skip && i < data.length - 1; i++) {
|
|
1303
|
+
tmp.push(data[i]);
|
|
1304
|
+
}
|
|
1305
|
+
return tmp;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
function filteredResults(items, args) {
|
|
1309
|
+
let _items = items;
|
|
1310
|
+
const where = args?.where;
|
|
1311
|
+
if (where !== undefined) {
|
|
1312
|
+
_items = filterWhere(_items, where);
|
|
1313
|
+
}
|
|
1314
|
+
const totalCount = _items.length;
|
|
1315
|
+
const skip = args?.skip ?? 0;
|
|
1316
|
+
const take = args?.take ?? _items.length;
|
|
1317
|
+
if (args?.skip !== undefined || args?.take !== undefined) {
|
|
1318
|
+
_items = skipAndTake(_items, skip, take);
|
|
1319
|
+
}
|
|
1320
|
+
const pageInfo = {
|
|
1321
|
+
hasNextPage: (skip + take) < totalCount,
|
|
1322
|
+
hasPreviousPage: skip > 0,
|
|
1323
|
+
};
|
|
1324
|
+
return {
|
|
1325
|
+
items: _items,
|
|
1326
|
+
pageInfo,
|
|
1327
|
+
totalCount,
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
class MockDatatable {
|
|
1332
|
+
_filterStatesSubject = new BehaviorSubject([]);
|
|
1333
|
+
_sorts = [];
|
|
1334
|
+
_rows = [];
|
|
1335
|
+
_offset = 0;
|
|
1336
|
+
_rowHeight = 50;
|
|
1337
|
+
_bodyHeight = 500;
|
|
1338
|
+
_scrolledPosV = 0;
|
|
1339
|
+
page = new EventEmitter();
|
|
1340
|
+
sort = new EventEmitter();
|
|
1341
|
+
get sorts() { return this._sorts; }
|
|
1342
|
+
set sorts(value) { this._sorts = value; }
|
|
1343
|
+
filterStates = this._filterStatesSubject.asObservable();
|
|
1344
|
+
static pageDefaults(dt, defaultPageSize = 20) {
|
|
1345
|
+
return {
|
|
1346
|
+
offset: dt.ngxDatatable?.offset ?? 0,
|
|
1347
|
+
pageSize: dt.ngxDatatable?.pageSize ?? defaultPageSize,
|
|
1348
|
+
limit: dt.ngxDatatable?.limit,
|
|
1349
|
+
count: dt.ngxDatatable?.count ?? 0
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
get ngxDatatable() {
|
|
1353
|
+
return {
|
|
1354
|
+
offset: this.getPage(),
|
|
1355
|
+
pageSize: this.getPageSize(),
|
|
1356
|
+
count: this._rows.length
|
|
1357
|
+
};
|
|
1358
|
+
}
|
|
1359
|
+
setSorts(v) {
|
|
1360
|
+
this._sorts = v;
|
|
1361
|
+
this.sort.emit({ sorts: this._sorts });
|
|
1362
|
+
}
|
|
1363
|
+
setFilterStates(v) {
|
|
1364
|
+
this._filterStatesSubject.next(v);
|
|
1365
|
+
}
|
|
1366
|
+
getNumPages() {
|
|
1367
|
+
if (this._rows.length === 0) {
|
|
1368
|
+
return 1;
|
|
1369
|
+
}
|
|
1370
|
+
const t = Math.ceil(this._rows.length / this.getPageSize());
|
|
1371
|
+
if (t <= 0) {
|
|
1372
|
+
return 1;
|
|
1373
|
+
}
|
|
1374
|
+
return t;
|
|
1375
|
+
}
|
|
1376
|
+
_calcPage() {
|
|
1377
|
+
// This page calculation could most likely be simplified.
|
|
1378
|
+
const bodyHeight = this._rowHeight * this.getPageSize();
|
|
1379
|
+
const visibleHeight = this._bodyHeight + this._scrolledPosV;
|
|
1380
|
+
const pages = Math.floor(visibleHeight / bodyHeight);
|
|
1381
|
+
const overflow = visibleHeight - (pages * bodyHeight);
|
|
1382
|
+
const page = overflow > 1 ? pages + 1 : pages;
|
|
1383
|
+
return page - 1;
|
|
1384
|
+
}
|
|
1385
|
+
_calcScrolledPosV() {
|
|
1386
|
+
return this._offset * this._rowHeight;
|
|
1387
|
+
}
|
|
1388
|
+
getPage() {
|
|
1389
|
+
return this._offset;
|
|
1390
|
+
}
|
|
1391
|
+
setPage(v) {
|
|
1392
|
+
let _v = v;
|
|
1393
|
+
if (_v === this.getPage()) {
|
|
1394
|
+
return;
|
|
1395
|
+
}
|
|
1396
|
+
if (_v > this.getNumPages() - 1) {
|
|
1397
|
+
// Should this throw an error instead?
|
|
1398
|
+
_v = this.getNumPages() - 1;
|
|
1399
|
+
}
|
|
1400
|
+
this._offset = _v;
|
|
1401
|
+
this._scrolledPosV = this._calcScrolledPosV();
|
|
1402
|
+
this.page.emit(this.ngxDatatable);
|
|
1403
|
+
}
|
|
1404
|
+
getPageSize() {
|
|
1405
|
+
return Math.floor(this._bodyHeight / this._rowHeight);
|
|
1406
|
+
}
|
|
1407
|
+
setRows(v) {
|
|
1408
|
+
this._rows = v;
|
|
1409
|
+
}
|
|
1410
|
+
setScrolledPosV(v) {
|
|
1411
|
+
if (this._scrolledPosV === v) {
|
|
1412
|
+
return;
|
|
1413
|
+
}
|
|
1414
|
+
const pageBefore = this.getPage();
|
|
1415
|
+
this._scrolledPosV = v;
|
|
1416
|
+
this._offset = this._calcPage();
|
|
1417
|
+
if (this.getPage() !== pageBefore) {
|
|
1418
|
+
this.page.emit(this.ngxDatatable);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Returns the height of a row.
|
|
1423
|
+
*
|
|
1424
|
+
* NOTE: This will not be accurate if your rows do not use a single fixed
|
|
1425
|
+
* height for each row.
|
|
1426
|
+
*/
|
|
1427
|
+
getRowHeight() {
|
|
1428
|
+
return this._rowHeight;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
function checkRecordsHaveValue(arr, indices, testValueCheckProp = 'name', onlyCheckProvidedIndices = false) {
|
|
1433
|
+
if (indices.length > 0 && !Array.isArray(arr)) {
|
|
1434
|
+
throw Error(`Records array should be defined.`);
|
|
1435
|
+
}
|
|
1436
|
+
if (!Array.isArray(arr)) {
|
|
1437
|
+
return;
|
|
1438
|
+
}
|
|
1439
|
+
for (let i = 0; i < arr.length; i++) {
|
|
1440
|
+
const item = arr[i];
|
|
1441
|
+
if (_isOneOfIndices(indices, i)) {
|
|
1442
|
+
if (!notNullOrUndefined(arr[i])) {
|
|
1443
|
+
throw Error(`Record at index '${i}' should be defined.`);
|
|
1444
|
+
}
|
|
1445
|
+
if (notNullOrUndefined(testValueCheckProp)) {
|
|
1446
|
+
const actualValue = item[testValueCheckProp];
|
|
1447
|
+
const expectedValue = `Item_${i}`;
|
|
1448
|
+
if (actualValue !== expectedValue) {
|
|
1449
|
+
throw Error(`Record at index '${i}' should be '${expectedValue}', but is '${actualValue}'`);
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
else {
|
|
1454
|
+
if (!onlyCheckProvidedIndices) {
|
|
1455
|
+
if (notNullOrUndefined(arr[i])) {
|
|
1456
|
+
throw Error(`Record at index '${i}' should not be defined.`);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* NOTE: This is a very niave implementation that could be improved.
|
|
1464
|
+
*/
|
|
1465
|
+
function _isOneOfIndices(indices, index) {
|
|
1466
|
+
for (const r of indices) {
|
|
1467
|
+
if (Array.isArray(r)) {
|
|
1468
|
+
if (index >= r[0] && index <= r[1]) {
|
|
1469
|
+
return true;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
else {
|
|
1473
|
+
if (index === r) {
|
|
1474
|
+
return true;
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
return false;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
function graphQLLink(options) {
|
|
1482
|
+
return new ApolloLink((operation, forward) => {
|
|
1483
|
+
return new Observable$1(subscriber => {
|
|
1484
|
+
// console.log('graphQLLink', operation.variables)
|
|
1485
|
+
const response = graphqlSync({
|
|
1486
|
+
schema: options.schema,
|
|
1487
|
+
source: print(operation.query),
|
|
1488
|
+
rootValue: options.rootValue,
|
|
1489
|
+
contextValue: operation.getContext(),
|
|
1490
|
+
variableValues: operation.variables,
|
|
1491
|
+
operationName: operation.operationName,
|
|
1492
|
+
// fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
|
|
1493
|
+
// typeResolver?: Maybe<GraphQLTypeResolver<any, any>>;
|
|
1494
|
+
});
|
|
1495
|
+
// console.log('graphQLLink response', response)
|
|
1496
|
+
operation.setContext({ response });
|
|
1497
|
+
subscriber.next(response);
|
|
1498
|
+
subscriber.complete();
|
|
1499
|
+
return () => { };
|
|
1500
|
+
});
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
const inlineVariableTransformer = (operation, hintsToken) => {
|
|
1505
|
+
const query = operation.query;
|
|
1506
|
+
const variables = operation.variables;
|
|
1507
|
+
return {
|
|
1508
|
+
query,
|
|
1509
|
+
variables
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
const removeNotDefinedTransformer = (operation, hintsToken) => {
|
|
1514
|
+
const query = operation.query;
|
|
1515
|
+
const variables = operation.variables;
|
|
1516
|
+
return {
|
|
1517
|
+
query,
|
|
1518
|
+
variables
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Maps variable value to gql and inlines it into the query.
|
|
1524
|
+
*/
|
|
1525
|
+
const inlineVariableHintDef = {
|
|
1526
|
+
name: 'inline-variable',
|
|
1527
|
+
appliesTo: [HintsKind.Variable, HintsKind.VariableDefinition],
|
|
1528
|
+
transformer: inlineVariableTransformer
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Remove the variable from the query if it is not defined in the operation
|
|
1533
|
+
* variables.
|
|
1534
|
+
*/
|
|
1535
|
+
const removeNotDefinedHintDef = {
|
|
1536
|
+
name: 'remove-not-defined',
|
|
1537
|
+
appliesTo: [HintsKind.OperationDefinition],
|
|
1538
|
+
transformer: removeNotDefinedTransformer
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
// /**
|
|
1542
|
+
// * Remove the variable from the query if it is not defined in the operation
|
|
1543
|
+
// * variables.
|
|
1544
|
+
// *
|
|
1545
|
+
// * Applies to: OperationDefinition
|
|
1546
|
+
// */
|
|
1547
|
+
// export const GQL_HINT_REMOVE_NOT_DEFINED = 'remove-not-defined'
|
|
1548
|
+
// /**
|
|
1549
|
+
// * Maps variable value to gql and inlines it into the query.
|
|
1550
|
+
// *
|
|
1551
|
+
// * Applies to: Variable, VariableDefinition
|
|
1552
|
+
// */
|
|
1553
|
+
// export const GQL_HINT_INLINE_VARIABLE = 'inline-variable'
|
|
1554
|
+
// /**
|
|
1555
|
+
// * Remove variable definition from the query if it is not used by the operation.
|
|
1556
|
+
// *
|
|
1557
|
+
// * Applies to: VariableDefinition
|
|
1558
|
+
// */
|
|
1559
|
+
// // export const GQL_HINT_REMOVE_IF_NOT_USED = 'remove-if-not-used'
|
|
1560
|
+
// export const GQL_HINTS = [
|
|
1561
|
+
// // GQL_HINT_REMOVE_IF_NOT_USED,
|
|
1562
|
+
// GQL_HINT_REMOVE_NOT_DEFINED,
|
|
1563
|
+
// GQL_HINT_INLINE_VARIABLE
|
|
1564
|
+
// ]
|
|
1565
|
+
|
|
1566
|
+
const queryProcessingLink = new ApolloLink((operation, forward) => {
|
|
1567
|
+
// console.log('~link operation', operation)
|
|
1568
|
+
const context = operation.getContext();
|
|
1569
|
+
const queryProcessingConfig = context.queryProcessingConfig || {};
|
|
1570
|
+
// console.log(operation.query)
|
|
1571
|
+
// const rules = parseHints(operation.query)
|
|
1572
|
+
let _ast = parseAst(operation.query);
|
|
1573
|
+
const rules = parseHints(_ast);
|
|
1574
|
+
// console.log('rules', rules)
|
|
1575
|
+
operation.query = _ast;
|
|
1576
|
+
const removeNotDefined = hintsTokensContainingHint(rules, removeNotDefinedHintDef.name);
|
|
1577
|
+
// console.log('removeNotDefined', removeNotDefined)
|
|
1578
|
+
for (const rulesToken of removeNotDefined) {
|
|
1579
|
+
// _ast = removeVariableDefinitionsNotDefined(_ast, rulesToken.node as OperationDefinitionNode, operation.variables)
|
|
1580
|
+
if (!removeNotDefinedHintDef.transformer) {
|
|
1581
|
+
continue;
|
|
1582
|
+
}
|
|
1583
|
+
const result = removeNotDefinedHintDef.transformer({
|
|
1584
|
+
query: operation.query,
|
|
1585
|
+
variables: operation.variables
|
|
1586
|
+
}, rulesToken);
|
|
1587
|
+
operation.query = result.query;
|
|
1588
|
+
operation.variables = result.variables;
|
|
1589
|
+
}
|
|
1590
|
+
const inlineVariableRulesTokens = hintsTokensContainingHint(rules, inlineVariableHintDef.name);
|
|
1591
|
+
// console.log('inlineVariableRulesTokens', inlineVariableRulesTokens)
|
|
1592
|
+
for (const rulesToken of inlineVariableRulesTokens) {
|
|
1593
|
+
let varName = null;
|
|
1594
|
+
let varDefaultValue;
|
|
1595
|
+
if (rulesToken.kind === HintsKind.VariableDefinition) {
|
|
1596
|
+
varName = rulesToken.node.variable.name.value;
|
|
1597
|
+
varDefaultValue = rulesToken.node.defaultValue;
|
|
1598
|
+
}
|
|
1599
|
+
else if (rulesToken.kind === HintsKind.Variable) {
|
|
1600
|
+
varName = rulesToken.node.name.value;
|
|
1601
|
+
}
|
|
1602
|
+
if (varName === null) {
|
|
1603
|
+
// TODO: Throw error here?
|
|
1604
|
+
continue;
|
|
1605
|
+
}
|
|
1606
|
+
const varValue = operation.variables[varName];
|
|
1607
|
+
operation.variables = withoutProperty(operation.variables, varName);
|
|
1608
|
+
_ast = removeVariableDefinition(_ast, varName);
|
|
1609
|
+
const varValueNode = _ast = inlineVariable(_ast, varName, parseValue(toGQL(varValue)));
|
|
1610
|
+
}
|
|
1611
|
+
// const removeIfNotDefined = hintsTokensContainingHint(rules, GQL_HINT_REMOVE_IF_NOT_USED)
|
|
1612
|
+
// console.log('removeIfNotDefined', removeIfNotDefined)
|
|
1613
|
+
// const _operation = operation
|
|
1614
|
+
// const removeIdNotDefined = (queryProcessingConfig?.variables?.removeIfNotDefined || [])
|
|
1615
|
+
// for (const varName of removeIdNotDefined) {
|
|
1616
|
+
// if (isNullOrUndefined(operation.variables[varName])) {
|
|
1617
|
+
// _operation.query = removeVariable(_operation.query, varName)
|
|
1618
|
+
// }
|
|
1619
|
+
// }
|
|
1620
|
+
// const removeIfNotUsed = (queryProcessingConfig?.variables?.removeIfNotUsed || [])
|
|
1621
|
+
// for (const varName of removeIfNotUsed) {
|
|
1622
|
+
// if (!containsVariable(_operation.query, varName)) {
|
|
1623
|
+
// _operation.query = removeVariable(_operation.query, varName)
|
|
1624
|
+
// }
|
|
1625
|
+
// }
|
|
1626
|
+
// const inlineVariables = (queryProcessingConfig?.variables?.inline || [])
|
|
1627
|
+
// for (const varName of inlineVariables) {
|
|
1628
|
+
// const varValue = _operation.variables[varName]
|
|
1629
|
+
// _operation.variables = withoutProperty(_operation.variables, varName)
|
|
1630
|
+
// _operation.query = removeVariableDefinition(_operation.query, varName)
|
|
1631
|
+
// _operation.query = inlineVariable(_operation.query, varName, parseValue(toGQL(varValue)))
|
|
1632
|
+
// }
|
|
1633
|
+
operation.query = _ast;
|
|
1634
|
+
return forward(operation);
|
|
1635
|
+
});
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Creates an `APOLLO_OPTIONS` provider configured like our apps, except with
|
|
1639
|
+
* the Apollo HttpLink replaced with a custom GraphQL link that queries from the
|
|
1640
|
+
* schema and root provided. The responses to GQL queries should be the same as
|
|
1641
|
+
* responses from our api, but the query features are limited to common features
|
|
1642
|
+
* necessary for tests. Since we use a C# GraphQL api, it would be a lot of
|
|
1643
|
+
* overhead to use that implementation in this project's tests, but you can
|
|
1644
|
+
* check our `graphQLLink` to find what features have been implemented to
|
|
1645
|
+
* hopefully match the result our api would return.
|
|
1646
|
+
*
|
|
1647
|
+
* NOTE: This was created because `ApolloTestingModule` is very limited. We
|
|
1648
|
+
* mostly use queries intended to emit more than once, but `ApolloTestingModule`
|
|
1649
|
+
* can only emit a query response once.
|
|
1650
|
+
*/
|
|
1651
|
+
function createApolloTestingProvider(schema, rootValue) {
|
|
1652
|
+
return {
|
|
1653
|
+
provide: APOLLO_OPTIONS,
|
|
1654
|
+
useFactory: () => {
|
|
1655
|
+
return {
|
|
1656
|
+
cache: new InMemoryCache(),
|
|
1657
|
+
link: concat(queryProcessingLink, graphQLLink({
|
|
1658
|
+
schema,
|
|
1659
|
+
rootValue,
|
|
1660
|
+
})),
|
|
1661
|
+
defaultOptions: {
|
|
1662
|
+
watchQuery: {
|
|
1663
|
+
fetchPolicy: 'cache-and-network',
|
|
1664
|
+
errorPolicy: 'ignore',
|
|
1665
|
+
},
|
|
1666
|
+
query: {
|
|
1667
|
+
fetchPolicy: 'network-only',
|
|
1668
|
+
errorPolicy: 'all',
|
|
1669
|
+
},
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
function createSimpleGqlTestRecord(num) {
|
|
1677
|
+
return { id: num, name: `Item_${num}` };
|
|
1678
|
+
}
|
|
1679
|
+
const simpleGqlTestSchema = buildSchema(print(gql `
|
|
1680
|
+
${baseSchemaFragment}
|
|
1681
|
+
|
|
1682
|
+
type SimpleGqlTestRecordCollectionSegment {
|
|
1683
|
+
items: [SimpleGqlTestRecord!]
|
|
1684
|
+
|
|
1685
|
+
"""Information to aid in pagination."""
|
|
1686
|
+
pageInfo: CollectionSegmentInfo!
|
|
1687
|
+
totalCount: Int!
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
input SimpleGqlTestRecordFilterInput {
|
|
1691
|
+
and: [SimpleGqlTestRecordFilterInput!]
|
|
1692
|
+
or: [SimpleGqlTestRecordFilterInput!]
|
|
1693
|
+
objectContains: String
|
|
1694
|
+
id: ComparableInt32OperationFilterInput
|
|
1695
|
+
name: StringOperationFilterInput
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
type SimpleGqlTestRecord {
|
|
1699
|
+
id: Int
|
|
1700
|
+
name: String
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
type Query {
|
|
1704
|
+
simpleGqlTestRecords(
|
|
1705
|
+
skip: Int
|
|
1706
|
+
take: Int
|
|
1707
|
+
where: SimpleGqlTestRecordFilterInput
|
|
1708
|
+
): SimpleGqlTestRecordCollectionSegment
|
|
1709
|
+
}
|
|
1710
|
+
`));
|
|
1711
|
+
function createSimpleGqlTestRoot(numRecords) {
|
|
1712
|
+
const _records = [];
|
|
1713
|
+
for (let i = 0; i < numRecords; i++) {
|
|
1714
|
+
_records.push(createSimpleGqlTestRecord(i));
|
|
1715
|
+
}
|
|
1716
|
+
return {
|
|
1717
|
+
simpleGqlTestRecords: (args) => filteredResults([..._records], args)
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
const SIMPLE_GQL_TEST_QUERY = gql `
|
|
1721
|
+
query ExampleQuery(
|
|
1722
|
+
$skip: Int
|
|
1723
|
+
$take: Int
|
|
1724
|
+
$where: SimpleGqlTestRecordFilterInput
|
|
1725
|
+
) {
|
|
1726
|
+
simpleGqlTestRecords(
|
|
1727
|
+
skip: $skip
|
|
1728
|
+
take: $take
|
|
1729
|
+
where: $where
|
|
1730
|
+
) {
|
|
1731
|
+
items {
|
|
1732
|
+
id
|
|
1733
|
+
name
|
|
1734
|
+
}
|
|
1735
|
+
totalCount
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
`;
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Generated bundle index. Do not edit.
|
|
1742
|
+
*/
|
|
1743
|
+
|
|
1744
|
+
export { DATATABLE_GRAPHQL_SERVICE_CONFIG, DEFAULT_PAGE_SIZE, DatatableGraphQLQueryRef, DatatableGraphqlService, HINT_NAMES_CAPTURE_REGEX, HINT_PREFIX_REGEX, MockDatatable, SIMPLE_GQL_TEST_QUERY, baseSchemaFragment, checkRecordsHaveValue, containsVariable, createApolloTestingProvider, createHintsToken, createSimpleGqlTestRecord, createSimpleGqlTestRoot, filterWhere, filteredResults, getHintsToken, getPageInfo, getTokenAppliesTo, gqlVar, hintNamesFromHintToken, hintsTokensContainingHint, inlineVariable, isCommentToken, isHintToken, isInlineComment, mapFilterStates, mapSearchDateColumnsDataFilterStateToGql, mapSearchNumericColumnsDataFilterStateToGql, mapSearchTextColumnsDataFilterStateToGql, observeRowsWithGqlInputsHandling, parseAst, parseComments, parseHints, removeVariable, removeVariableDefinition, removeVariableDefinitionsNotDefined, simpleGqlTestSchema, skipAndTake, toGQL };
|
|
1745
|
+
//# sourceMappingURL=theseam-ui-common-graphql.mjs.map
|