@taiga-ui/cdk 4.52.0-canary.216e347 → 4.52.0-canary.2c75afa
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/classes/control.d.ts +3 -5
- package/classes/index.d.ts +0 -1
- package/constants/index.d.ts +0 -1
- package/constants/used-icons.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/date-time.d.ts +1 -1
- package/date-time/day.d.ts +1 -1
- package/date-time/time.d.ts +2 -2
- package/date-time/types.d.ts +0 -5
- package/directives/active-zone/active-zone.directive.d.ts +4 -3
- package/directives/animated/animated.directive.d.ts +0 -1
- package/directives/auto-focus/autofocus.directive.d.ts +2 -3
- package/directives/auto-focus/autofocus.options.d.ts +2 -2
- package/directives/click-outside/click-outside.directive.d.ts +2 -2
- package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
- package/directives/droppable/droppable.directive.d.ts +4 -2
- package/directives/hovered/hovered.directive.d.ts +1 -2
- package/directives/index.d.ts +1 -2
- package/directives/let/let.directive.d.ts +1 -2
- package/directives/media/media.directive.d.ts +8 -12
- package/directives/native-validator/native-validator.directive.d.ts +2 -2
- package/directives/obscured/obscured.directive.d.ts +4 -4
- package/directives/pan/pan.directive.d.ts +1 -2
- package/directives/platform/platform.directive.d.ts +2 -2
- package/directives/repeat-times/repeat-times.directive.d.ts +5 -4
- package/directives/resizer/resizer.directive.d.ts +3 -4
- package/directives/swipe/swipe.directive.d.ts +1 -2
- package/directives/value-changes/value-changes.directive.d.ts +2 -2
- package/directives/with-styles/index.d.ts +1 -0
- package/directives/with-styles/with-styles.directive.d.ts +10 -0
- package/fesm2022/taiga-ui-cdk-classes.mjs +8 -92
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +14 -27
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs +14 -2
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +22 -27
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs +48 -47
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +11 -14
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +8 -9
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +7 -10
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +10 -12
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -5
- package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +11 -20
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +11 -14
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-let.mjs +6 -8
- package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-media.mjs +32 -57
- package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +7 -10
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +21 -21
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs +11 -13
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +22 -23
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +11 -13
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +4 -5
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +7 -8
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives.mjs +1 -2
- package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-observables.mjs +8 -4
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-portals.mjs +127 -0
- package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-services.mjs +13 -54
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-tokens.mjs +11 -10
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs +1 -23
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs +3 -2
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-di.mjs +1 -2
- package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +16 -23
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +13 -14
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +26 -15
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk.mjs +1 -0
- package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +27 -136
- package/pipes/obfuscate/obfuscate.options.d.ts +2 -2
- package/portals/directive.d.ts +11 -0
- package/portals/index.d.ts +4 -0
- package/portals/portal.d.ts +25 -0
- package/portals/portals.d.ts +12 -0
- package/portals/service.d.ts +15 -0
- package/schematics/collection.json +2 -1
- package/schematics/constants/file-globs.js +1 -1
- package/schematics/constants/file-globs.js.map +1 -1
- package/schematics/migrate-tui-let/index.js +5 -4
- package/schematics/migrate-tui-let/index.js.map +1 -1
- package/schematics/migrate-tui-let/schema.json +7 -0
- package/schematics/ng-add/constants/versions.d.ts +1 -1
- package/schematics/ng-add/index.js +1 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/setup-project.js +1 -1
- package/schematics/ng-add/setup-project.js.map +1 -1
- package/schematics/ng-add/steps/add-taiga-icons.js +2 -3
- package/schematics/ng-add/steps/add-taiga-icons.js.map +1 -1
- package/schematics/ng-add/steps/add-taiga-modules.js +1 -2
- package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
- package/schematics/ng-add/steps/add-taiga-styles.js +1 -2
- package/schematics/ng-add/steps/add-taiga-styles.js.map +1 -1
- package/schematics/ng-add/steps/wrap-with-tui-root.js +1 -2
- package/schematics/ng-add/steps/wrap-with-tui-root.js.map +1 -1
- package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
- package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
- package/schematics/ng-update/steps/icons/replace-imports.js +1 -2
- package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -1
- package/schematics/ng-update/steps/rename-types.js +1 -2
- package/schematics/ng-update/steps/rename-types.js.map +1 -1
- package/schematics/ng-update/steps/replace-deep-import.js +1 -2
- package/schematics/ng-update/steps/replace-deep-import.js.map +1 -1
- package/schematics/ng-update/steps/replace-enums.js +1 -2
- package/schematics/ng-update/steps/replace-enums.js.map +1 -1
- package/schematics/ng-update/steps/replace-identifier.js +2 -3
- package/schematics/ng-update/steps/replace-identifier.js.map +1 -1
- package/schematics/ng-update/steps/replace-package-name.js +1 -2
- package/schematics/ng-update/steps/replace-package-name.js.map +1 -1
- package/schematics/ng-update/steps/replace-services.js +1 -2
- package/schematics/ng-update/steps/replace-services.js.map +1 -1
- package/schematics/ng-update/steps/show-warnings.js +1 -2
- package/schematics/ng-update/steps/show-warnings.js.map +1 -1
- package/schematics/ng-update/utils/get-file-system.js +1 -2
- package/schematics/ng-update/utils/get-file-system.js.map +1 -1
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +2 -3
- package/schematics/ng-update/utils/replace-functions.js.map +1 -0
- package/schematics/ng-update/utils/replace-text.js +1 -2
- package/schematics/ng-update/utils/replace-text.js.map +1 -1
- package/schematics/ng-update/utils/templates/remove-inputs.js +1 -2
- package/schematics/ng-update/utils/templates/remove-inputs.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-attr-values.js +1 -2
- package/schematics/ng-update/utils/templates/replace-attr-values.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +1 -2
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-attrs.js +1 -2
- package/schematics/ng-update/utils/templates/replace-attrs.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-tag.js +1 -2
- package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-tags.js +1 -2
- package/schematics/ng-update/utils/templates/replace-tags.js.map +1 -1
- package/schematics/ng-update/utils/templates/template-comments.js +1 -2
- package/schematics/ng-update/utils/templates/template-comments.js.map +1 -1
- package/schematics/ng-update/v4/index.js +2 -3
- package/schematics/ng-update/v4/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-addon-doc/index.js +1 -2
- package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/index.js +1 -2
- package/schematics/ng-update/v4/migrate-css-vars/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +2 -3
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
- package/schematics/ng-update/v4/migrate-icons/index.js +1 -2
- package/schematics/ng-update/v4/migrate-icons/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +1 -2
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +1 -1
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +1 -2
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -1
- package/schematics/ng-update/v4/steps/drop-universal-mock.js +1 -2
- package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-alert-service.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -1
- package/schematics/ng-update/v4/steps/migrate-editor.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-editor.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-month-context.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-month-context.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-option-providers.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -1
- package/schematics/ng-update/v4/steps/migrate-proprietary.js +2 -3
- package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-providers-from.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-root.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-root.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
- package/schematics/ng-update/v4/steps/migrate-templates.js +2 -3
- package/schematics/ng-update/v4/steps/migrate-templates.js.map +1 -1
- package/schematics/ng-update/v4/steps/remove-duplicates.js +1 -2
- package/schematics/ng-update/v4/steps/remove-duplicates.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +2 -3
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +2 -3
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/index.js +2 -2
- package/schematics/ng-update/v4/steps/styles/index.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +2 -3
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +1 -2
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-label.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-money.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +4 -5
- package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +1 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +1 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +1 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +1 -1
- package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -1
- package/schematics/ng-update/v4/steps/update-packages.js +2 -2
- package/schematics/ng-update/v4/steps/update-packages.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/clean-object.js +1 -2
- package/schematics/ng-update/v4/steps/utils/clean-object.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +1 -2
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js +1 -2
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +1 -2
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +1 -1
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +1 -2
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +1 -1
- package/schematics/ng-update/v5/index.js +13 -2
- package/schematics/ng-update/v5/index.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/functions.js +72 -0
- package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +22 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js +42 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +1 -2
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +1 -2
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -1
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
- package/schematics/ng-update/v5/tests/migrate-tokens/utils.js +1 -2
- package/schematics/ng-update/v5/tests/migrate-tokens/utils.js.map +1 -1
- package/schematics/utils/add-import-to-closest-module.js +2 -3
- package/schematics/utils/add-import-to-closest-module.js.map +1 -1
- package/schematics/utils/add-unique-import.js +1 -2
- package/schematics/utils/add-unique-import.js.map +1 -1
- package/schematics/utils/angular-json-manipulations.js +2 -5
- package/schematics/utils/angular-json-manipulations.js.map +1 -1
- package/schematics/utils/create-angular-json.js +1 -2
- package/schematics/utils/create-angular-json.js.map +1 -1
- package/schematics/utils/get-component-from-identifier.js +1 -2
- package/schematics/utils/get-component-from-identifier.js.map +1 -1
- package/schematics/utils/get-execution-time.js +1 -2
- package/schematics/utils/get-execution-time.js.map +1 -1
- package/schematics/utils/get-named-import-references.js +1 -2
- package/schematics/utils/get-named-import-references.js.map +1 -1
- package/schematics/utils/get-project-target-options.js +1 -2
- package/schematics/utils/get-project-target-options.js.map +1 -1
- package/schematics/utils/get-projects.js +1 -2
- package/schematics/utils/get-projects.js.map +1 -1
- package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
- package/schematics/utils/get-standalone-bootstrap-function.js +2 -5
- package/schematics/utils/get-standalone-bootstrap-function.js.map +1 -1
- package/schematics/utils/import-manipulations.js +2 -3
- package/schematics/utils/import-manipulations.js.map +1 -1
- package/schematics/utils/insert-todo.js +2 -2
- package/schematics/utils/insert-todo.js.map +1 -1
- package/schematics/utils/is-ci.js +1 -2
- package/schematics/utils/is-ci.js.map +1 -1
- package/schematics/utils/make-angular-json-with-assets.js +1 -2
- package/schematics/utils/make-angular-json-with-assets.js.map +1 -1
- package/schematics/utils/progress.js +1 -2
- package/schematics/utils/progress.js.map +1 -1
- package/schematics/utils/push-to-array-property.js +1 -2
- package/schematics/utils/push-to-array-property.js.map +1 -1
- package/schematics/utils/remove-module.js +2 -3
- package/schematics/utils/remove-module.js.map +1 -1
- package/schematics/utils/run-migration.d.ts +14 -0
- package/schematics/utils/run-migration.js +26 -0
- package/schematics/utils/run-migration.js.map +1 -0
- package/schematics/utils/templates/elements.js +15 -24
- package/schematics/utils/templates/elements.js.map +1 -1
- package/schematics/utils/templates/get-component-templates.js +1 -2
- package/schematics/utils/templates/get-component-templates.js.map +1 -1
- package/schematics/utils/templates/inputs.js +2 -3
- package/schematics/utils/templates/inputs.js.map +1 -1
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js +6 -9
- package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
- package/schematics/utils/templates/template-resource.js +3 -4
- package/schematics/utils/templates/template-resource.js.map +1 -1
- package/services/index.d.ts +0 -1
- package/tokens/environment.d.ts +5 -0
- package/utils/browser/index.d.ts +0 -2
- package/utils/di/create-options.d.ts +2 -2
- package/utils/dom/get-element-obscurers.d.ts +1 -1
- package/utils/focus/blur-native-focused.d.ts +1 -1
- package/utils/focus/get-native-focused.d.ts +1 -1
- package/utils/focus/is-native-focused-in.d.ts +1 -1
- package/utils/focus/is-native-focused.d.ts +1 -1
- package/utils/focus/is-native-keyboard-focusable.d.ts +1 -1
- package/utils/focus/is-native-mouse-focusable.d.ts +1 -1
- package/utils/miscellaneous/index.d.ts +2 -1
- package/utils/miscellaneous/is-string.js +1 -2
- package/utils/miscellaneous/is-string.js.map +1 -1
- package/utils/miscellaneous/object-shallow-equals.d.ts +1 -0
- package/utils/miscellaneous/provide-options.d.ts +2 -2
- package/utils/miscellaneous/set-signal.d.ts +2 -0
- package/classes/portals.d.ts +0 -33
- package/constants/allow-signal-writes.d.ts +0 -2
- package/directives/for/for.directive.d.ts +0 -12
- package/directives/for/index.d.ts +0 -1
- package/directives/popover/index.d.ts +0 -1
- package/directives/popover/popover.directive.d.ts +0 -14
- package/esm2022/classes/control.mjs +0 -96
- package/esm2022/classes/index.mjs +0 -5
- package/esm2022/classes/portals.mjs +0 -77
- package/esm2022/classes/taiga-ui-cdk-classes.mjs +0 -5
- package/esm2022/classes/validation-error.mjs +0 -7
- package/esm2022/classes/value-transformer.mjs +0 -25
- package/esm2022/constants/allow-signal-writes.mjs +0 -3
- package/esm2022/constants/empty.mjs +0 -25
- package/esm2022/constants/handlers.mjs +0 -11
- package/esm2022/constants/index.mjs +0 -10
- package/esm2022/constants/matchers.mjs +0 -26
- package/esm2022/constants/regexp.mjs +0 -4
- package/esm2022/constants/svg-node-filter.mjs +0 -8
- package/esm2022/constants/taiga-ui-cdk-constants.mjs +0 -5
- package/esm2022/constants/unicode-chars.mjs +0 -64
- package/esm2022/constants/used-icons.mjs +0 -76
- package/esm2022/constants/version.mjs +0 -2
- package/esm2022/date-time/date-clamp.mjs +0 -10
- package/esm2022/date-time/date-fillers.mjs +0 -15
- package/esm2022/date-time/date-time.mjs +0 -20
- package/esm2022/date-time/day-of-week.mjs +0 -10
- package/esm2022/date-time/day-range.mjs +0 -84
- package/esm2022/date-time/day.mjs +0 -294
- package/esm2022/date-time/days.const.mjs +0 -6
- package/esm2022/date-time/index.mjs +0 -13
- package/esm2022/date-time/month-number.mjs +0 -15
- package/esm2022/date-time/month-range.mjs +0 -27
- package/esm2022/date-time/month.mjs +0 -152
- package/esm2022/date-time/taiga-ui-cdk-date-time.mjs +0 -5
- package/esm2022/date-time/time.mjs +0 -161
- package/esm2022/date-time/types.mjs +0 -2
- package/esm2022/date-time/year.mjs +0 -111
- package/esm2022/directives/active-zone/active-zone.directive.mjs +0 -74
- package/esm2022/directives/active-zone/index.mjs +0 -2
- package/esm2022/directives/active-zone/taiga-ui-cdk-directives-active-zone.mjs +0 -5
- package/esm2022/directives/animated/animated-parent.directive.mjs +0 -39
- package/esm2022/directives/animated/animated.directive.mjs +0 -81
- package/esm2022/directives/animated/index.mjs +0 -3
- package/esm2022/directives/animated/taiga-ui-cdk-directives-animated.mjs +0 -5
- package/esm2022/directives/auto-focus/autofocus.directive.mjs +0 -46
- package/esm2022/directives/auto-focus/autofocus.options.mjs +0 -31
- package/esm2022/directives/auto-focus/handlers/abstract.handler.mjs +0 -17
- package/esm2022/directives/auto-focus/handlers/default.handler.mjs +0 -21
- package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +0 -125
- package/esm2022/directives/auto-focus/handlers/sync.handler.mjs +0 -7
- package/esm2022/directives/auto-focus/index.mjs +0 -7
- package/esm2022/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.mjs +0 -5
- package/esm2022/directives/click-outside/click-outside.directive.mjs +0 -33
- package/esm2022/directives/click-outside/index.mjs +0 -2
- package/esm2022/directives/click-outside/taiga-ui-cdk-directives-click-outside.mjs +0 -5
- package/esm2022/directives/control/control.directive.mjs +0 -23
- package/esm2022/directives/control/index.mjs +0 -2
- package/esm2022/directives/control/taiga-ui-cdk-directives-control.mjs +0 -5
- package/esm2022/directives/copy-processor/copy-processor.directive.mjs +0 -33
- package/esm2022/directives/copy-processor/index.mjs +0 -2
- package/esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs +0 -5
- package/esm2022/directives/droppable/droppable.directive.mjs +0 -31
- package/esm2022/directives/droppable/index.mjs +0 -2
- package/esm2022/directives/droppable/taiga-ui-cdk-directives-droppable.mjs +0 -5
- package/esm2022/directives/element/element.directive.mjs +0 -35
- package/esm2022/directives/element/index.mjs +0 -2
- package/esm2022/directives/element/taiga-ui-cdk-directives-element.mjs +0 -5
- package/esm2022/directives/focus-trap/focus-trap.directive.mjs +0 -67
- package/esm2022/directives/focus-trap/index.mjs +0 -2
- package/esm2022/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.mjs +0 -5
- package/esm2022/directives/font-size/font-size.directive.mjs +0 -27
- package/esm2022/directives/font-size/index.mjs +0 -2
- package/esm2022/directives/font-size/taiga-ui-cdk-directives-font-size.mjs +0 -5
- package/esm2022/directives/for/for.directive.mjs +0 -34
- package/esm2022/directives/for/index.mjs +0 -2
- package/esm2022/directives/for/taiga-ui-cdk-directives-for.mjs +0 -5
- package/esm2022/directives/high-dpi/high-dpi.directive.mjs +0 -23
- package/esm2022/directives/high-dpi/index.mjs +0 -2
- package/esm2022/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.mjs +0 -5
- package/esm2022/directives/hovered/hovered.directive.mjs +0 -22
- package/esm2022/directives/hovered/hovered.service.mjs +0 -35
- package/esm2022/directives/hovered/index.mjs +0 -3
- package/esm2022/directives/hovered/taiga-ui-cdk-directives-hovered.mjs +0 -5
- package/esm2022/directives/index.mjs +0 -30
- package/esm2022/directives/item/index.mjs +0 -2
- package/esm2022/directives/item/item.directive.mjs +0 -18
- package/esm2022/directives/item/taiga-ui-cdk-directives-item.mjs +0 -5
- package/esm2022/directives/let/index.mjs +0 -3
- package/esm2022/directives/let/let-context.mjs +0 -15
- package/esm2022/directives/let/let.directive.mjs +0 -34
- package/esm2022/directives/let/taiga-ui-cdk-directives-let.mjs +0 -5
- package/esm2022/directives/media/index.mjs +0 -2
- package/esm2022/directives/media/media.directive.mjs +0 -89
- package/esm2022/directives/media/taiga-ui-cdk-directives-media.mjs +0 -5
- package/esm2022/directives/native-validator/index.mjs +0 -2
- package/esm2022/directives/native-validator/native-validator.directive.mjs +0 -43
- package/esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs +0 -5
- package/esm2022/directives/obscured/index.mjs +0 -3
- package/esm2022/directives/obscured/obscured.directive.mjs +0 -36
- package/esm2022/directives/obscured/obscured.service.mjs +0 -24
- package/esm2022/directives/obscured/taiga-ui-cdk-directives-obscured.mjs +0 -5
- package/esm2022/directives/pan/index.mjs +0 -3
- package/esm2022/directives/pan/pan.directive.mjs +0 -22
- package/esm2022/directives/pan/pan.service.mjs +0 -28
- package/esm2022/directives/pan/taiga-ui-cdk-directives-pan.mjs +0 -5
- package/esm2022/directives/platform/index.mjs +0 -2
- package/esm2022/directives/platform/platform.directive.mjs +0 -35
- package/esm2022/directives/platform/taiga-ui-cdk-directives-platform.mjs +0 -5
- package/esm2022/directives/popover/index.mjs +0 -2
- package/esm2022/directives/popover/popover.directive.mjs +0 -26
- package/esm2022/directives/popover/taiga-ui-cdk-directives-popover.mjs +0 -5
- package/esm2022/directives/repeat-times/index.mjs +0 -2
- package/esm2022/directives/repeat-times/repeat-times.directive.mjs +0 -55
- package/esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs +0 -5
- package/esm2022/directives/resizer/index.mjs +0 -3
- package/esm2022/directives/resizer/resizable.directive.mjs +0 -16
- package/esm2022/directives/resizer/resizer.directive.mjs +0 -83
- package/esm2022/directives/resizer/taiga-ui-cdk-directives-resizer.mjs +0 -5
- package/esm2022/directives/swipe/index.mjs +0 -4
- package/esm2022/directives/swipe/swipe.directive.mjs +0 -22
- package/esm2022/directives/swipe/swipe.options.mjs +0 -8
- package/esm2022/directives/swipe/swipe.service.mjs +0 -50
- package/esm2022/directives/swipe/swipe.types.mjs +0 -2
- package/esm2022/directives/swipe/taiga-ui-cdk-directives-swipe.mjs +0 -5
- package/esm2022/directives/taiga-ui-cdk-directives.mjs +0 -5
- package/esm2022/directives/transitioned/index.mjs +0 -2
- package/esm2022/directives/transitioned/taiga-ui-cdk-directives-transitioned.mjs +0 -5
- package/esm2022/directives/transitioned/transitioned.directive.mjs +0 -27
- package/esm2022/directives/validator/index.mjs +0 -2
- package/esm2022/directives/validator/taiga-ui-cdk-directives-validator.mjs +0 -5
- package/esm2022/directives/validator/validator.directive.mjs +0 -30
- package/esm2022/directives/value-changes/index.mjs +0 -2
- package/esm2022/directives/value-changes/taiga-ui-cdk-directives-value-changes.mjs +0 -5
- package/esm2022/directives/value-changes/value-changes.directive.mjs +0 -28
- package/esm2022/directives/visual-viewport/index.mjs +0 -2
- package/esm2022/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.mjs +0 -5
- package/esm2022/directives/visual-viewport/visual-viewport.directive.mjs +0 -34
- package/esm2022/directives/zoom/index.mjs +0 -4
- package/esm2022/directives/zoom/taiga-ui-cdk-directives-zoom.mjs +0 -5
- package/esm2022/directives/zoom/zoom.directive.mjs +0 -24
- package/esm2022/directives/zoom/zoom.options.mjs +0 -10
- package/esm2022/directives/zoom/zoom.service.mjs +0 -46
- package/esm2022/directives/zoom/zoom.types.mjs +0 -2
- package/esm2022/index.mjs +0 -10
- package/esm2022/observables/close-watcher.mjs +0 -22
- package/esm2022/observables/control-value.mjs +0 -8
- package/esm2022/observables/drag-and-drop-from.mjs +0 -14
- package/esm2022/observables/events.mjs +0 -8
- package/esm2022/observables/if-map.mjs +0 -5
- package/esm2022/observables/index.mjs +0 -14
- package/esm2022/observables/must-be-present.mjs +0 -17
- package/esm2022/observables/query-list-observable.mjs +0 -9
- package/esm2022/observables/scroll-from.mjs +0 -10
- package/esm2022/observables/taiga-ui-cdk-observables.mjs +0 -5
- package/esm2022/observables/take-until-destroyed.mjs +0 -9
- package/esm2022/observables/typed-from-event.mjs +0 -9
- package/esm2022/observables/untracked-scheduler.mjs +0 -11
- package/esm2022/observables/watch.mjs +0 -6
- package/esm2022/observables/zone.mjs +0 -34
- package/esm2022/pipes/animation/animation.pipe.mjs +0 -27
- package/esm2022/pipes/animation/index.mjs +0 -2
- package/esm2022/pipes/animation/taiga-ui-cdk-pipes-animation.mjs +0 -5
- package/esm2022/pipes/filter/filter.pipe.mjs +0 -25
- package/esm2022/pipes/filter/index.mjs +0 -2
- package/esm2022/pipes/filter/taiga-ui-cdk-pipes-filter.mjs +0 -5
- package/esm2022/pipes/index.mjs +0 -10
- package/esm2022/pipes/is-present/index.mjs +0 -2
- package/esm2022/pipes/is-present/is-present.pipe.mjs +0 -19
- package/esm2022/pipes/is-present/taiga-ui-cdk-pipes-is-present.mjs +0 -5
- package/esm2022/pipes/keys/index.mjs +0 -2
- package/esm2022/pipes/keys/keys.pipe.mjs +0 -18
- package/esm2022/pipes/keys/taiga-ui-cdk-pipes-keys.mjs +0 -5
- package/esm2022/pipes/mapper/index.mjs +0 -2
- package/esm2022/pipes/mapper/mapper.pipe.mjs +0 -25
- package/esm2022/pipes/mapper/taiga-ui-cdk-pipes-mapper.mjs +0 -5
- package/esm2022/pipes/obfuscate/index.mjs +0 -3
- package/esm2022/pipes/obfuscate/obfuscate.options.mjs +0 -10
- package/esm2022/pipes/obfuscate/obfuscate.pipe.mjs +0 -44
- package/esm2022/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.mjs +0 -5
- package/esm2022/pipes/repeat-times/index.mjs +0 -19
- package/esm2022/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.mjs +0 -5
- package/esm2022/pipes/replace/index.mjs +0 -2
- package/esm2022/pipes/replace/replace.pipe.mjs +0 -20
- package/esm2022/pipes/replace/taiga-ui-cdk-pipes-replace.mjs +0 -5
- package/esm2022/pipes/taiga-ui-cdk-pipes.mjs +0 -5
- package/esm2022/pipes/to-array/index.mjs +0 -2
- package/esm2022/pipes/to-array/taiga-ui-cdk-pipes-to-array.mjs +0 -5
- package/esm2022/pipes/to-array/to-array.pipe.mjs +0 -18
- package/esm2022/services/id.service.mjs +0 -21
- package/esm2022/services/index.mjs +0 -5
- package/esm2022/services/popover.service.mjs +0 -45
- package/esm2022/services/scroll.service.mjs +0 -58
- package/esm2022/services/taiga-ui-cdk-services.mjs +0 -5
- package/esm2022/services/theme-color.service.mjs +0 -33
- package/esm2022/taiga-ui-cdk.mjs +0 -5
- package/esm2022/tokens/active-element.mjs +0 -56
- package/esm2022/tokens/base-href.mjs +0 -6
- package/esm2022/tokens/environment.mjs +0 -64
- package/esm2022/tokens/fallback-value.mjs +0 -11
- package/esm2022/tokens/index.mjs +0 -8
- package/esm2022/tokens/range.mjs +0 -9
- package/esm2022/tokens/removed-element.mjs +0 -20
- package/esm2022/tokens/taiga-ui-cdk-tokens.mjs +0 -5
- package/esm2022/tokens/window-size.mjs +0 -28
- package/esm2022/types/context.mjs +0 -2
- package/esm2022/types/handler.mjs +0 -2
- package/esm2022/types/index.mjs +0 -2
- package/esm2022/types/loose-union.mjs +0 -2
- package/esm2022/types/mapper.mjs +0 -2
- package/esm2022/types/matcher.mjs +0 -2
- package/esm2022/types/rounding.mjs +0 -2
- package/esm2022/types/safe-html.mjs +0 -2
- package/esm2022/types/taiga-ui-cdk-types.mjs +0 -5
- package/esm2022/types/values-of.mjs +0 -2
- package/esm2022/utils/browser/index.mjs +0 -6
- package/esm2022/utils/browser/is-apple.mjs +0 -14
- package/esm2022/utils/browser/is-edge.mjs +0 -4
- package/esm2022/utils/browser/is-firefox.mjs +0 -4
- package/esm2022/utils/browser/is-ios.mjs +0 -7
- package/esm2022/utils/browser/is-safari.mjs +0 -12
- package/esm2022/utils/browser/taiga-ui-cdk-utils-browser.mjs +0 -5
- package/esm2022/utils/color/get-gradient-data.mjs +0 -6
- package/esm2022/utils/color/hex-to-rgb.mjs +0 -12
- package/esm2022/utils/color/hex-to-rgba.mjs +0 -29
- package/esm2022/utils/color/hsv-to-rgb.mjs +0 -11
- package/esm2022/utils/color/index.mjs +0 -10
- package/esm2022/utils/color/parse-color.mjs +0 -27
- package/esm2022/utils/color/parse-gradient.mjs +0 -70
- package/esm2022/utils/color/rgb-to-hex.mjs +0 -4
- package/esm2022/utils/color/rgb-to-hsv.mjs +0 -8
- package/esm2022/utils/color/rgba-to-hex.mjs +0 -23
- package/esm2022/utils/color/taiga-ui-cdk-utils-color.mjs +0 -5
- package/esm2022/utils/di/create-options.mjs +0 -10
- package/esm2022/utils/di/index.mjs +0 -3
- package/esm2022/utils/di/taiga-ui-cdk-utils-di.mjs +0 -5
- package/esm2022/utils/dom/contains-or-after.mjs +0 -10
- package/esm2022/utils/dom/element-checks.mjs +0 -20
- package/esm2022/utils/dom/event-checks.mjs +0 -4
- package/esm2022/utils/dom/get-actual-target.mjs +0 -7
- package/esm2022/utils/dom/get-clipboard-data-text.mjs +0 -11
- package/esm2022/utils/dom/get-document-or-shadow-root.mjs +0 -6
- package/esm2022/utils/dom/get-element-obscurers.mjs +0 -44
- package/esm2022/utils/dom/get-element-offset.mjs +0 -20
- package/esm2022/utils/dom/get-element-point.mjs +0 -6
- package/esm2022/utils/dom/get-selected-text.mjs +0 -15
- package/esm2022/utils/dom/index.mjs +0 -20
- package/esm2022/utils/dom/inject-element.mjs +0 -5
- package/esm2022/utils/dom/is-current-target.mjs +0 -4
- package/esm2022/utils/dom/is-element-editable.mjs +0 -6
- package/esm2022/utils/dom/is-inside-iframe.mjs +0 -7
- package/esm2022/utils/dom/is-node-in.mjs +0 -14
- package/esm2022/utils/dom/point-to-client-rect.mjs +0 -17
- package/esm2022/utils/dom/retarget-boundary-crossing.mjs +0 -16
- package/esm2022/utils/dom/taiga-ui-cdk-utils-dom.mjs +0 -5
- package/esm2022/utils/dom/value-binding.mjs +0 -29
- package/esm2022/utils/dom/value.mjs +0 -78
- package/esm2022/utils/focus/blur-native-focused.mjs +0 -12
- package/esm2022/utils/focus/focused-in.mjs +0 -8
- package/esm2022/utils/focus/get-closest-focusable.mjs +0 -26
- package/esm2022/utils/focus/get-native-focused.mjs +0 -16
- package/esm2022/utils/focus/index.mjs +0 -10
- package/esm2022/utils/focus/is-native-focused-in.mjs +0 -12
- package/esm2022/utils/focus/is-native-focused.mjs +0 -15
- package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +0 -33
- package/esm2022/utils/focus/is-native-mouse-focusable.mjs +0 -7
- package/esm2022/utils/focus/move-focus.mjs +0 -19
- package/esm2022/utils/focus/taiga-ui-cdk-utils-focus.mjs +0 -5
- package/esm2022/utils/index.mjs +0 -8
- package/esm2022/utils/math/clamp.mjs +0 -16
- package/esm2022/utils/math/in-range.mjs +0 -9
- package/esm2022/utils/math/index.mjs +0 -11
- package/esm2022/utils/math/normalize-to-int-number.mjs +0 -22
- package/esm2022/utils/math/quantize.mjs +0 -15
- package/esm2022/utils/math/round-with.mjs +0 -14
- package/esm2022/utils/math/round.mjs +0 -42
- package/esm2022/utils/math/sum.mjs +0 -7
- package/esm2022/utils/math/taiga-ui-cdk-utils-math.mjs +0 -5
- package/esm2022/utils/math/to-int.mjs +0 -4
- package/esm2022/utils/math/to-integer.mjs +0 -4
- package/esm2022/utils/math/to-radians.mjs +0 -7
- package/esm2022/utils/miscellaneous/array-remove.mjs +0 -4
- package/esm2022/utils/miscellaneous/array-shallow-equals.mjs +0 -4
- package/esm2022/utils/miscellaneous/array-toggle.mjs +0 -8
- package/esm2022/utils/miscellaneous/change-date-separator.mjs +0 -3
- package/esm2022/utils/miscellaneous/count-filled-controls.mjs +0 -13
- package/esm2022/utils/miscellaneous/create-token.mjs +0 -16
- package/esm2022/utils/miscellaneous/default-sort.mjs +0 -11
- package/esm2022/utils/miscellaneous/directive-binding.mjs +0 -26
- package/esm2022/utils/miscellaneous/directive-listener.mjs +0 -8
- package/esm2022/utils/miscellaneous/distance-between-touches.mjs +0 -4
- package/esm2022/utils/miscellaneous/ease-in-out-quad.mjs +0 -7
- package/esm2022/utils/miscellaneous/flat-length.mjs +0 -9
- package/esm2022/utils/miscellaneous/font-size-watcher.mjs +0 -30
- package/esm2022/utils/miscellaneous/get-original-array-from-query-list.mjs +0 -15
- package/esm2022/utils/miscellaneous/index.mjs +0 -31
- package/esm2022/utils/miscellaneous/is-control-empty.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-falsy.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-number.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-object.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-present.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-string.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-valid-url.mjs +0 -13
- package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +0 -16
- package/esm2022/utils/miscellaneous/nullable-same.mjs +0 -18
- package/esm2022/utils/miscellaneous/obfuscate.mjs +0 -53
- package/esm2022/utils/miscellaneous/provide-options.mjs +0 -14
- package/esm2022/utils/miscellaneous/provide.mjs +0 -4
- package/esm2022/utils/miscellaneous/pure.mjs +0 -83
- package/esm2022/utils/miscellaneous/px.mjs +0 -9
- package/esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs +0 -5
- package/esm2022/utils/miscellaneous/uniq-by.mjs +0 -6
- package/esm2022/utils/miscellaneous/with-styles.mjs +0 -17
- package/esm2022/utils/taiga-ui-cdk-utils.mjs +0 -5
- package/fesm2022/taiga-ui-cdk-directives-for.mjs +0 -40
- package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
- package/schematics/ng-update/v4/steps/replace-functions.js.map +0 -1
- package/services/popover.service.d.ts +0 -25
- package/utils/browser/is-apple.d.ts +0 -11
- package/utils/browser/is-ios.d.ts +0 -6
- package/utils/miscellaneous/directive-listener.d.ts +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-observables.mjs","sources":["../../../projects/cdk/observables/close-watcher.ts","../../../projects/cdk/observables/control-value.ts","../../../projects/cdk/observables/typed-from-event.ts","../../../projects/cdk/observables/drag-and-drop-from.ts","../../../projects/cdk/observables/events.ts","../../../projects/cdk/observables/if-map.ts","../../../projects/cdk/observables/must-be-present.ts","../../../projects/cdk/observables/query-list-observable.ts","../../../projects/cdk/observables/scroll-from.ts","../../../projects/cdk/observables/take-until-destroyed.ts","../../../projects/cdk/observables/untracked-scheduler.ts","../../../projects/cdk/observables/watch.ts","../../../projects/cdk/observables/zone.ts","../../../projects/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {Observable} from 'rxjs';\n\ninterface CloseWatcher {\n destroy: () => void;\n onclose?: (event: Event) => void;\n oncancel?: (event: Event) => void;\n}\n\nexport function tuiCloseWatcher(): Observable<void> {\n return new Observable((subscriber) => {\n let watcher = getWatcher();\n\n const setup = (): void => {\n watcher = getWatcher();\n watcher.onclose = () => setup();\n\n watcher.oncancel = (event) => {\n event.preventDefault();\n subscriber.next();\n };\n };\n\n setup();\n\n return () => watcher.destroy();\n });\n}\n\nfunction getWatcher(): CloseWatcher {\n // @ts-ignore\n // eslint-disable-next-line unicorn/no-typeof-undefined\n return typeof CloseWatcher === 'undefined' ? {destroy: () => {}} : new CloseWatcher();\n}\n","import {type AbstractControl, type AbstractControlDirective} from '@angular/forms';\nimport {Observable, startWith} from 'rxjs';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n */\nexport function tuiControlValue<T>(\n control?: AbstractControl | AbstractControlDirective | null,\n): Observable<T> {\n return new Observable((subscriber) =>\n control?.valueChanges?.pipe(startWith(control.value)).subscribe(subscriber),\n );\n}\n","import {fromEvent, type Observable} from 'rxjs';\n\nexport interface TuiTypedEventTarget<E> {\n addEventListener(\n type: string,\n listener: ((evt: E) => void) | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n removeEventListener(\n type: string,\n listener?: ((evt: E) => void) | null,\n options?: EventListenerOptions | boolean,\n ): void;\n}\n\n/**\n * Wrapper around {@link Event} to add typings to target and currentTarget.\n */\nexport type TuiEventWith<G extends Event, T extends TuiTypedEventTarget<G>> = G & {\n readonly currentTarget: T;\n};\n\nexport function tuiTypedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n /**\n * @note:\n * in RxJS 7 type signature `TuiTypedEventTarget<E>` !== `HasEventTargetAddRemove<E>`\n */\n return fromEvent<E>(target as any, event, options) as unknown as Observable<E>;\n}\n","import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n concat,\n endWith,\n map,\n merge,\n type Observable,\n repeat,\n take,\n takeWhile,\n} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\nexport type TuiDragStage = 'continues' | 'end' | 'start';\n\nexport class TuiDragState {\n constructor(\n public readonly stage: TuiDragStage,\n public readonly event: MouseEvent,\n ) {}\n}\n\nexport function tuiDragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n return concat(\n tuiTypedFromEvent(element, 'mousedown').pipe(\n take(1),\n map((event) => new TuiDragState('start', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mousemove').pipe(\n map((event) => new TuiDragState('continues', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mouseup'),\n tuiTypedFromEvent(ownerDocument, 'dragend'),\n ).pipe(\n take(1),\n map((event) => new TuiDragState('end', event)),\n endWith(null),\n ),\n ).pipe(takeWhile(tuiIsPresent)),\n ).pipe(repeat());\n}\n","import {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiPreventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.preventDefault());\n}\n\nexport function tuiStopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.stopPropagation());\n}\n","import {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {EMPTY, type Observable, type OperatorFunction, pipe, switchMap} from 'rxjs';\n\nexport function tuiIfMap<T, G>(\n project: (value: T) => Observable<G>,\n predicate: TuiBooleanHandler<T> = Boolean,\n): OperatorFunction<T, G> {\n return pipe(switchMap((value) => (predicate(value) ? project(value) : EMPTY)));\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type OperatorFunction} from 'rxjs';\n\nexport function tuiMustBePresent<T>(): OperatorFunction<T | null | undefined, T> {\n return map((value) => {\n if (!tuiIsPresent(value)) {\n throw new TuiValuePresentException();\n }\n\n return value;\n });\n}\n\nexport class TuiValuePresentException extends Error {\n constructor() {\n super(ngDevMode ? 'Value must present' : '');\n }\n}\n","import {type QueryList} from '@angular/core';\nimport {tuiGetOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type Observable, startWith} from 'rxjs';\n\n/**\n * Converts changes observable of a QueryList to an Observable of arrays\n */\nexport function tuiQueryListChanges<T>(\n queryList: QueryList<T>,\n): Observable<readonly T[]> {\n return queryList.changes.pipe(\n startWith(null),\n map(() => tuiGetOriginalArrayFromQueryList(queryList)),\n );\n}\n","import {type Observable} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\n/**\n * Normalizes scroll event in case element is `html` (document.documentElement)\n */\nexport function tuiScrollFrom(element: Element): Observable<Event> {\n return tuiTypedFromEvent(\n element === element.ownerDocument.documentElement\n ? element.ownerDocument\n : element,\n 'scroll',\n );\n}\n","import {type DestroyRef} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n catchError,\n defaultIfEmpty,\n EMPTY,\n type MonoTypeOperatorFunction,\n NEVER,\n pipe,\n takeUntil,\n} from 'rxjs';\n\n// NOTE: takeUntilDestroyed and DestroyRef can cause error:\n// NG0911: View has already been destroyed\n// https://github.com/angular/angular/issues/54527\nexport function tuiTakeUntilDestroyed<T>(\n destroyRef?: DestroyRef,\n): MonoTypeOperatorFunction<T> {\n return pipe(\n takeUntil(\n NEVER.pipe(\n takeUntilDestroyed(destroyRef),\n catchError(() => EMPTY),\n defaultIfEmpty(null),\n ),\n ),\n );\n}\n","import {untracked} from '@angular/core';\nimport {\n queueScheduler,\n type SchedulerAction,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport const tuiUntrackedScheduler: SchedulerLike = {\n now: queueScheduler.now.bind(queueScheduler),\n\n schedule<T>(\n work: (this: SchedulerAction<T>, state?: T) => void,\n delay?: number,\n state?: T,\n ): Subscription {\n return queueScheduler.schedule(\n function (this: SchedulerAction<T>, s?: T) {\n return untracked(() => work.call(this, s));\n },\n delay,\n state,\n );\n },\n};\n","import {ChangeDetectorRef, inject} from '@angular/core';\nimport {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiWatch<T>(\n cdr = inject(ChangeDetectorRef),\n): MonoTypeOperatorFunction<T> {\n return tap(() => cdr.markForCheck());\n}\n","import {inject, NgZone} from '@angular/core';\nimport {\n asyncScheduler,\n type MonoTypeOperatorFunction,\n Observable,\n pipe,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport function tuiZonefull<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n source.subscribe({\n next: (value) => zone.run(() => subscriber.next(value)),\n error: (error: unknown) => zone.run(() => subscriber.error(error)),\n complete: () => zone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n zone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(zone), tuiZonefull(zone));\n}\n\nclass TuiZoneScheduler implements SchedulerLike {\n constructor(\n private readonly zoneConditionFn: <T>(fn: (...args: unknown[]) => T) => T,\n private readonly scheduler: SchedulerLike = asyncScheduler,\n ) {}\n\n public now(): number {\n return this.scheduler.now();\n }\n\n public schedule(...args: Parameters<SchedulerLike['schedule']>): Subscription {\n return this.zoneConditionFn(() => this.scheduler.schedule(...args));\n }\n}\n\nexport function tuiZonefreeScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.runOutsideAngular.bind(zone), scheduler);\n}\n\nexport function tuiZonefullScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.run.bind(zone), scheduler);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;SAQgB,eAAe,GAAA;AAC3B,IAAA,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,KAAI;AACjC,QAAA,IAAI,OAAO,GAAG,UAAU,EAAE,CAAC;QAE3B,MAAM,KAAK,GAAG,MAAW;YACrB,OAAO,GAAG,UAAU,EAAE,CAAC;YACvB,OAAO,CAAC,OAAO,GAAG,MAAM,KAAK,EAAE,CAAC;AAEhC,YAAA,OAAO,CAAC,QAAQ,GAAG,CAAC,KAAK,KAAI;gBACzB,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,UAAU,CAAC,IAAI,EAAE,CAAC;AACtB,aAAC,CAAC;AACN,SAAC,CAAC;AAEF,QAAA,KAAK,EAAE,CAAC;AAER,QAAA,OAAO,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;AACnC,KAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,UAAU,GAAA;;;IAGf,OAAO,OAAO,YAAY,KAAK,WAAW,GAAG,EAAC,OAAO,EAAE,MAAK,GAAG,EAAC,GAAG,IAAI,YAAY,EAAE,CAAC;AAC1F;;AC7BA;;AAEG;AACG,SAAU,eAAe,CAC3B,OAA2D,EAAA;IAE3D,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,KAC7B,OAAO,EA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;AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;AAChE;;AC3DA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-observables.mjs","sources":["../../../projects/cdk/observables/close-watcher.ts","../../../projects/cdk/observables/control-value.ts","../../../projects/cdk/observables/typed-from-event.ts","../../../projects/cdk/observables/drag-and-drop-from.ts","../../../projects/cdk/observables/events.ts","../../../projects/cdk/observables/if-map.ts","../../../projects/cdk/observables/must-be-present.ts","../../../projects/cdk/observables/query-list-observable.ts","../../../projects/cdk/observables/scroll-from.ts","../../../projects/cdk/observables/take-until-destroyed.ts","../../../projects/cdk/observables/untracked-scheduler.ts","../../../projects/cdk/observables/watch.ts","../../../projects/cdk/observables/zone.ts","../../../projects/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {Observable} from 'rxjs';\n\ninterface CloseWatcher {\n destroy(): void;\n onclose?(event: Event): void;\n oncancel?(event: Event): void;\n}\n\nexport function tuiCloseWatcher(): Observable<void> {\n return new Observable((subscriber) => {\n let watcher!: CloseWatcher;\n\n const setup = (): void => {\n watcher = getWatcher();\n watcher.onclose = () => setup();\n\n watcher.oncancel = (event) => {\n event.preventDefault();\n subscriber.next();\n };\n };\n\n setup();\n\n return () => watcher.destroy();\n });\n}\n\nfunction getWatcher(): CloseWatcher {\n try {\n // @ts-ignore\n return new CloseWatcher();\n } catch {\n return {destroy: () => {}};\n }\n}\n","import {type AbstractControl, type AbstractControlDirective} from '@angular/forms';\nimport {Observable, startWith} from 'rxjs';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n */\nexport function tuiControlValue<T>(\n control?: AbstractControl | AbstractControlDirective | null,\n): Observable<T> {\n return new Observable((subscriber) =>\n control?.valueChanges?.pipe(startWith(control.value)).subscribe(subscriber),\n );\n}\n","import {fromEvent, type Observable} from 'rxjs';\n\nexport interface TuiTypedEventTarget<E> {\n addEventListener(\n type: string,\n listener: ((evt: E) => void) | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n removeEventListener(\n type: string,\n listener?: ((evt: E) => void) | null,\n options?: EventListenerOptions | boolean,\n ): void;\n}\n\n/**\n * Wrapper around {@link Event} to add typings to target and currentTarget.\n */\nexport type TuiEventWith<G extends Event, T extends TuiTypedEventTarget<G>> = G & {\n readonly currentTarget: T;\n};\n\nexport function tuiTypedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n /**\n * @note:\n * in RxJS 7 type signature `TuiTypedEventTarget<E>` !== `HasEventTargetAddRemove<E>`\n */\n return fromEvent<E>(target as any, event, options) as unknown as Observable<E>;\n}\n","import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n concat,\n endWith,\n map,\n merge,\n type Observable,\n repeat,\n take,\n takeWhile,\n} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\nexport type TuiDragStage = 'continues' | 'end' | 'start';\n\nexport class TuiDragState {\n constructor(\n public readonly stage: TuiDragStage,\n public readonly event: MouseEvent,\n ) {}\n}\n\nexport function tuiDragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n return concat(\n tuiTypedFromEvent(element, 'mousedown').pipe(\n take(1),\n map((event) => new TuiDragState('start', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mousemove').pipe(\n map((event) => new TuiDragState('continues', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mouseup'),\n tuiTypedFromEvent(ownerDocument, 'dragend'),\n ).pipe(\n take(1),\n map((event) => new TuiDragState('end', event)),\n endWith(null),\n ),\n ).pipe(takeWhile(tuiIsPresent)),\n ).pipe(repeat());\n}\n","import {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiPreventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.preventDefault());\n}\n\nexport function tuiStopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.stopPropagation());\n}\n","import {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {EMPTY, type Observable, type OperatorFunction, pipe, switchMap} from 'rxjs';\n\nexport function tuiIfMap<T, G>(\n project: (value: T) => Observable<G>,\n predicate: TuiBooleanHandler<T> = Boolean,\n): OperatorFunction<T, G> {\n return pipe(switchMap((value) => (predicate(value) ? project(value) : EMPTY)));\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type OperatorFunction} from 'rxjs';\n\nexport function tuiMustBePresent<T>(): OperatorFunction<T | null | undefined, T> {\n return map((value) => {\n if (!tuiIsPresent(value)) {\n throw new TuiValuePresentException();\n }\n\n return value;\n });\n}\n\nexport class TuiValuePresentException extends Error {\n constructor() {\n super(ngDevMode ? 'Value must present' : '');\n }\n}\n","import {type QueryList} from '@angular/core';\nimport {tuiGetOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type Observable, startWith} from 'rxjs';\n\n/**\n * Converts changes observable of a QueryList to an Observable of arrays\n */\nexport function tuiQueryListChanges<T>(\n queryList: QueryList<T>,\n): Observable<readonly T[]> {\n return queryList.changes.pipe(\n startWith(null),\n map(() => tuiGetOriginalArrayFromQueryList(queryList)),\n );\n}\n","import {type Observable} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\n/**\n * Normalizes scroll event in case element is `html` (document.documentElement)\n */\nexport function tuiScrollFrom(element: Element): Observable<Event> {\n return tuiTypedFromEvent(\n element === element.ownerDocument.documentElement\n ? element.ownerDocument\n : element,\n 'scroll',\n );\n}\n","import {type DestroyRef} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n catchError,\n defaultIfEmpty,\n EMPTY,\n type MonoTypeOperatorFunction,\n NEVER,\n pipe,\n takeUntil,\n} from 'rxjs';\n\n// NOTE: takeUntilDestroyed and DestroyRef can cause error:\n// NG0911: View has already been destroyed\n// https://github.com/angular/angular/issues/54527\nexport function tuiTakeUntilDestroyed<T>(\n destroyRef?: DestroyRef,\n): MonoTypeOperatorFunction<T> {\n return pipe(\n takeUntil(\n NEVER.pipe(\n takeUntilDestroyed(destroyRef),\n catchError(() => EMPTY),\n defaultIfEmpty(null),\n ),\n ),\n );\n}\n","import {untracked} from '@angular/core';\nimport {\n queueScheduler,\n type SchedulerAction,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport const tuiUntrackedScheduler: SchedulerLike = {\n now: queueScheduler.now.bind(queueScheduler),\n\n schedule<T>(\n work: (this: SchedulerAction<T>, state?: T) => void,\n delay?: number,\n state?: T,\n ): Subscription {\n return queueScheduler.schedule(\n function (this: SchedulerAction<T>, s?: T) {\n return untracked(() => work.call(this, s));\n },\n delay,\n state,\n );\n },\n};\n","import {ChangeDetectorRef, inject} from '@angular/core';\nimport {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiWatch<T>(\n cdr = inject(ChangeDetectorRef),\n): MonoTypeOperatorFunction<T> {\n return tap(() => cdr.markForCheck());\n}\n","import {inject, NgZone} from '@angular/core';\nimport {\n asyncScheduler,\n type MonoTypeOperatorFunction,\n Observable,\n pipe,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport function tuiZonefull<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n source.subscribe({\n next: (value) => zone.run(() => subscriber.next(value)),\n error: (error: unknown) => zone.run(() => subscriber.error(error)),\n complete: () => zone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n zone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(zone), tuiZonefull(zone));\n}\n\nclass TuiZoneScheduler implements SchedulerLike {\n constructor(\n private readonly zoneConditionFn: <T>(fn: (...args: unknown[]) => T) => T,\n private readonly scheduler: SchedulerLike = asyncScheduler,\n ) {}\n\n public now(): number {\n return this.scheduler.now();\n }\n\n public schedule(...args: Parameters<SchedulerLike['schedule']>): Subscription {\n return this.zoneConditionFn(() => this.scheduler.schedule(...args));\n }\n}\n\nexport function tuiZonefreeScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.runOutsideAngular.bind(zone), scheduler);\n}\n\nexport function tuiZonefullScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.run.bind(zone), scheduler);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":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xB,QAAQ,CAAC,GAAG,IAA2C,EAAA;AAC1D,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;;AAE1E;AAEK,SAAU,oBAAoB,CAChC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EACrB,SAAA,GAA2B,cAAc,EAAA;AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;AAC7E;AAEM,SAAU,oBAAoB,CAChC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EACrB,SAAA,GAA2B,cAAc,EAAA;AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;AAC/D;;AC3DA;;AAEG;;;;"}
|
|
@@ -14,13 +14,12 @@ class TuiAnimationPipe {
|
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
18
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, isStandalone: true, name: "tuiAnimation" }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, decorators: [{
|
|
21
21
|
type: Pipe,
|
|
22
22
|
args: [{
|
|
23
|
-
standalone: true,
|
|
24
23
|
name: 'tuiAnimation',
|
|
25
24
|
}]
|
|
26
25
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-animation.mjs","sources":["../../../projects/cdk/pipes/animation/animation.pipe.ts","../../../projects/cdk/pipes/animation/taiga-ui-cdk-pipes-animation.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiDurationOptions} from '@taiga-ui/core/animations';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-animation.mjs","sources":["../../../projects/cdk/pipes/animation/animation.pipe.ts","../../../projects/cdk/pipes/animation/taiga-ui-cdk-pipes-animation.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiDurationOptions} from '@taiga-ui/core/animations';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\n@Pipe({\n name: 'tuiAnimation',\n})\nexport class TuiAnimationPipe implements PipeTransform {\n private readonly speed = inject(TUI_ANIMATIONS_SPEED);\n public readonly transform = ({\n duration,\n speed,\n value,\n ...params\n }: Partial<{duration: number; speed: number; value: string}> &\n Record<string, any> = {}): TuiDurationOptions => ({\n value: value ?? '',\n params: {\n ...params,\n duration: (duration ?? 1) * tuiGetDuration(speed ?? this.speed),\n },\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAQa,gBAAgB,CAAA;AAH7B,IAAA,WAAA,GAAA;AAIqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACrC,QAAA,IAAA,CAAA,SAAS,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,GAAG,MAAM,EAEa,GAAA,EAAE,MAA0B;YAClD,KAAK,EAAE,KAAK,IAAI,EAAE;AAClB,YAAA,MAAM,EAAE;AACJ,gBAAA,GAAG,MAAM;AACT,gBAAA,QAAQ,EAAE,CAAC,QAAQ,IAAI,CAAC,IAAI,cAAc,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC;AAClE,aAAA;AACJ,SAAA,CAAC;AACL;+GAfY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -12,13 +12,12 @@ class TuiFilterPipe {
|
|
|
12
12
|
transform(items, matcher, ...args) {
|
|
13
13
|
return items.filter((item) => matcher(item, ...args));
|
|
14
14
|
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
16
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiFilterPipe, isStandalone: true, name: "tuiFilter" }); }
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFilterPipe, decorators: [{
|
|
19
19
|
type: Pipe,
|
|
20
20
|
args: [{
|
|
21
|
-
standalone: true,
|
|
22
21
|
name: 'tuiFilter',
|
|
23
22
|
}]
|
|
24
23
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-filter.mjs","sources":["../../../projects/cdk/pipes/filter/filter.pipe.ts","../../../projects/cdk/pipes/filter/taiga-ui-cdk-pipes-filter.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMatcher} from '@taiga-ui/cdk/types';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-filter.mjs","sources":["../../../projects/cdk/pipes/filter/filter.pipe.ts","../../../projects/cdk/pipes/filter/taiga-ui-cdk-pipes-filter.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMatcher} from '@taiga-ui/cdk/types';\n\n@Pipe({\n name: 'tuiFilter',\n})\nexport class TuiFilterPipe implements PipeTransform {\n /**\n * Filters an array through a matcher function using additional arguments\n *\n * @param items array\n * @param matcher method for filtering\n * @param args arbitrary number of additional arguments\n */\n public transform<T, U extends unknown[]>(\n items: readonly T[],\n matcher: TuiMatcher<[T, ...U]>,\n ...args: U\n ): T[] {\n return items.filter((item) => matcher(item, ...args));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,aAAa,CAAA;AACtB;;;;;;AAMG;AACI,IAAA,SAAS,CACZ,KAAmB,EACnB,OAA8B,EAC9B,GAAG,IAAO,EAAA;AAEV,QAAA,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;;+GAbhD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,WAAW;AACpB,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -6,13 +6,12 @@ class TuiIsPresentPipe {
|
|
|
6
6
|
transform(value) {
|
|
7
7
|
return tuiIsPresent(value);
|
|
8
8
|
}
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
10
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, isStandalone: true, name: "tuiIsPresent" }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, decorators: [{
|
|
13
13
|
type: Pipe,
|
|
14
14
|
args: [{
|
|
15
|
-
standalone: true,
|
|
16
15
|
name: 'tuiIsPresent',
|
|
17
16
|
}]
|
|
18
17
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-is-present.mjs","sources":["../../../projects/cdk/pipes/is-present/is-present.pipe.ts","../../../projects/cdk/pipes/is-present/taiga-ui-cdk-pipes-is-present.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-is-present.mjs","sources":["../../../projects/cdk/pipes/is-present/is-present.pipe.ts","../../../projects/cdk/pipes/is-present/taiga-ui-cdk-pipes-is-present.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n name: 'tuiIsPresent',\n})\nexport class TuiIsPresentPipe implements PipeTransform {\n public transform<T>(value?: T | null): value is T {\n return tuiIsPresent(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,gBAAgB,CAAA;AAClB,IAAA,SAAS,CAAI,KAAgB,EAAA;AAChC,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC;;+GAFrB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -5,13 +5,12 @@ class TuiKeysPipe {
|
|
|
5
5
|
transform(object) {
|
|
6
6
|
return Object.keys(object);
|
|
7
7
|
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, isStandalone: true, name: "tuiKeys" }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
|
-
standalone: true,
|
|
15
14
|
name: 'tuiKeys',
|
|
16
15
|
}]
|
|
17
16
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-keys.mjs","sources":["../../../projects/cdk/pipes/keys/keys.pipe.ts","../../../projects/cdk/pipes/keys/taiga-ui-cdk-pipes-keys.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-keys.mjs","sources":["../../../projects/cdk/pipes/keys/keys.pipe.ts","../../../projects/cdk/pipes/keys/taiga-ui-cdk-pipes-keys.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n name: 'tuiKeys',\n})\nexport class TuiKeysPipe implements PipeTransform {\n public transform(object: Record<any, any>): string[] {\n return Object.keys(object);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,WAAW,CAAA;AACb,IAAA,SAAS,CAAC,MAAwB,EAAA;AACrC,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;;+GAFrB,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAHvB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,SAAS;AAClB,iBAAA;;;ACJD;;AAEG;;;;"}
|
|
@@ -12,13 +12,12 @@ class TuiMapperPipe {
|
|
|
12
12
|
transform(value, mapper, ...args) {
|
|
13
13
|
return mapper(value, ...args);
|
|
14
14
|
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMapperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
16
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiMapperPipe, isStandalone: true, name: "tuiMapper" }); }
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMapperPipe, decorators: [{
|
|
19
19
|
type: Pipe,
|
|
20
20
|
args: [{
|
|
21
|
-
standalone: true,
|
|
22
21
|
name: 'tuiMapper',
|
|
23
22
|
}]
|
|
24
23
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-mapper.mjs","sources":["../../../projects/cdk/pipes/mapper/mapper.pipe.ts","../../../projects/cdk/pipes/mapper/taiga-ui-cdk-pipes-mapper.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-mapper.mjs","sources":["../../../projects/cdk/pipes/mapper/mapper.pipe.ts","../../../projects/cdk/pipes/mapper/taiga-ui-cdk-pipes-mapper.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n\n@Pipe({\n name: 'tuiMapper',\n})\nexport class TuiMapperPipe implements PipeTransform {\n /**\n * Maps object to an arbitrary result through a mapper function\n *\n * @param value an item to transform\n * @param mapper a mapping function\n * @param args arbitrary number of additional arguments\n */\n public transform<T extends unknown[], U, G>(\n value: U,\n mapper: TuiMapper<[U, ...T], G>,\n ...args: T\n ): G {\n return mapper(value, ...args);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,aAAa,CAAA;AACtB;;;;;;AAMG;AACI,IAAA,SAAS,CACZ,KAAQ,EACR,MAA+B,EAC/B,GAAG,IAAO,EAAA;AAEV,QAAA,OAAO,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC;;+GAbxB,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,WAAW;AACpB,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -40,13 +40,12 @@ class TuiObfuscatePipe {
|
|
|
40
40
|
const availableRecipes = Object.keys(this.option.recipes).sort();
|
|
41
41
|
throw new Error(`Obfuscate recipe "${recipe}" not found. Available recipes: [${availableRecipes}]`);
|
|
42
42
|
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObfuscatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
44
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiObfuscatePipe, isStandalone: true, name: "tuiObfuscate" }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObfuscatePipe, decorators: [{
|
|
47
47
|
type: Pipe,
|
|
48
48
|
args: [{
|
|
49
|
-
standalone: true,
|
|
50
49
|
name: 'tuiObfuscate',
|
|
51
50
|
}]
|
|
52
51
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-obfuscate.mjs","sources":["../../../projects/cdk/pipes/obfuscate/obfuscate.options.ts","../../../projects/cdk/pipes/obfuscate/obfuscate.pipe.ts","../../../projects/cdk/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.ts"],"sourcesContent":["import {tuiCreateOptions, tuiObfuscate} from '@taiga-ui/cdk/utils';\n\n/**\n * Defines the options for obfuscation.\n */\nexport interface TuiObfuscateOptions {\n /**\n * Default function used to obfuscate a string\n * if no recipe was found.\n */\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-obfuscate.mjs","sources":["../../../projects/cdk/pipes/obfuscate/obfuscate.options.ts","../../../projects/cdk/pipes/obfuscate/obfuscate.pipe.ts","../../../projects/cdk/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.ts"],"sourcesContent":["import {tuiCreateOptions, tuiObfuscate} from '@taiga-ui/cdk/utils';\n\n/**\n * Defines the options for obfuscation.\n */\nexport interface TuiObfuscateOptions {\n /**\n * Default function used to obfuscate a string\n * if no recipe was found.\n */\n default(value: string, symbol?: string): string;\n\n /**\n * Collection of named recipes for different obfuscation scenarios.\n */\n readonly recipes: Record<string, (value: string) => string>;\n}\n\nexport const TUI_OBFUSCATE_DEFAULT_OPTIONS: TuiObfuscateOptions = {\n default: (value, symbol = '*') => tuiObfuscate(value, symbol),\n recipes: {},\n};\n\n/**\n * Injection token for obfuscation options.\n */\nexport const [TUI_OBFUSCATE_OPTIONS, tuiObfuscateOptionsProvider] = tuiCreateOptions(\n TUI_OBFUSCATE_DEFAULT_OPTIONS,\n);\n","import {inject, Pipe, type PipeTransform} from '@angular/core';\n\nimport {TUI_OBFUSCATE_OPTIONS} from './obfuscate.options';\n\n@Pipe({\n name: 'tuiObfuscate',\n})\nexport class TuiObfuscatePipe implements PipeTransform {\n private readonly option = inject(TUI_OBFUSCATE_OPTIONS);\n\n /**\n * Transforms the input value by obfuscating it according to the specified recipe or symbol.\n *\n * @param value The value to be obfuscated should be a string.\n * @param recipe The name of the recipe to use for obfuscation or a single character symbol for custom obfuscation.\n * @returns The obfuscated string.\n * @throws Will throw an error if the specified recipe is not found.\n */\n public transform(value: string, recipe = ''): string {\n if (!value) {\n return value;\n }\n\n if (!recipe) {\n return this.option.default(value);\n }\n\n const obfuscate = this.option.recipes[recipe];\n\n if (obfuscate) {\n return obfuscate(value);\n }\n\n if (recipe.length === 1) {\n return this.option.default(value, recipe[0]);\n }\n\n const availableRecipes = Object.keys(this.option.recipes).sort();\n\n throw new Error(\n `Obfuscate recipe \"${recipe}\" not found. Available recipes: [${availableRecipes}]`,\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAkBa,MAAA,6BAA6B,GAAwB;A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,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -6,13 +6,12 @@ class TuiRepeatTimesPipe {
|
|
|
6
6
|
transform(n) {
|
|
7
7
|
return Array.from({ length: tuiClamp(n, 0, n) }, (_, i) => i);
|
|
8
8
|
}
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
10
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, isStandalone: true, name: "tuiRepeatTimes" }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, decorators: [{
|
|
13
13
|
type: Pipe,
|
|
14
14
|
args: [{
|
|
15
|
-
standalone: true,
|
|
16
15
|
name: 'tuiRepeatTimes',
|
|
17
16
|
}]
|
|
18
17
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-repeat-times.mjs","sources":["../../../projects/cdk/pipes/repeat-times/index.ts","../../../projects/cdk/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiClamp} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-repeat-times.mjs","sources":["../../../projects/cdk/pipes/repeat-times/index.ts","../../../projects/cdk/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiClamp} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n name: 'tuiRepeatTimes',\n})\nexport class TuiRepeatTimesPipe implements PipeTransform {\n public transform(n: number): number[] {\n return Array.from({length: tuiClamp(n, 0, n)}, (_, i) => i);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,kBAAkB,CAAA;AACpB,IAAA,SAAS,CAAC,CAAS,EAAA;QACtB,OAAO,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;;+GAFtD,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,gBAAgB;AACzB,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -7,13 +7,12 @@ class TuiReplacePipe {
|
|
|
7
7
|
// TS bug: https://github.com/microsoft/TypeScript/issues/22378
|
|
8
8
|
replaceValue) ?? '');
|
|
9
9
|
}
|
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
11
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiReplacePipe, isStandalone: true, name: "tuiReplace" }); }
|
|
12
12
|
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiReplacePipe, decorators: [{
|
|
14
14
|
type: Pipe,
|
|
15
15
|
args: [{
|
|
16
|
-
standalone: true,
|
|
17
16
|
name: 'tuiReplace',
|
|
18
17
|
}]
|
|
19
18
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-replace.mjs","sources":["../../../projects/cdk/pipes/replace/replace.pipe.ts","../../../projects/cdk/pipes/replace/taiga-ui-cdk-pipes-replace.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-replace.mjs","sources":["../../../projects/cdk/pipes/replace/replace.pipe.ts","../../../projects/cdk/pipes/replace/taiga-ui-cdk-pipes-replace.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n name: 'tuiReplace',\n})\nexport class TuiReplacePipe implements PipeTransform {\n public transform(\n value: string | null | undefined,\n search: RegExp | string,\n replaceValue: string | ((substring: string, ...args: unknown[]) => string),\n ): string {\n return (\n value?.replace(\n search,\n // TS bug: https://github.com/microsoft/TypeScript/issues/22378\n replaceValue as unknown as string,\n ) ?? ''\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AAChB,IAAA,SAAS,CACZ,KAAgC,EAChC,MAAuB,EACvB,YAA0E,EAAA;AAE1E,QAAA,QACI,KAAK,EAAE,OAAO,CACV,MAAM;;AAEN,QAAA,YAAiC,CACpC,IAAI,EAAE;;+GAXN,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,YAAY;AACrB,iBAAA;;;ACJD;;AAEG;;;;"}
|
|
@@ -5,13 +5,12 @@ class TuiToArrayPipe {
|
|
|
5
5
|
transform(items) {
|
|
6
6
|
return Array.from(items);
|
|
7
7
|
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiToArrayPipe, isStandalone: true, name: "tuiToArray" }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToArrayPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
|
-
standalone: true,
|
|
15
14
|
name: 'tuiToArray',
|
|
16
15
|
}]
|
|
17
16
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-to-array.mjs","sources":["../../../projects/cdk/pipes/to-array/to-array.pipe.ts","../../../projects/cdk/pipes/to-array/taiga-ui-cdk-pipes-to-array.ts"],"sourcesContent":["import {Pipe, type PipeTransform, type QueryList} from '@angular/core';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-to-array.mjs","sources":["../../../projects/cdk/pipes/to-array/to-array.pipe.ts","../../../projects/cdk/pipes/to-array/taiga-ui-cdk-pipes-to-array.ts"],"sourcesContent":["import {Pipe, type PipeTransform, type QueryList} from '@angular/core';\n\n@Pipe({\n name: 'tuiToArray',\n})\nexport class TuiToArrayPipe implements PipeTransform {\n public transform<T>(items: Map<any, any> | QueryList<T> | Set<any>): readonly T[] {\n return Array.from(items);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AAChB,IAAA,SAAS,CAAI,KAA8C,EAAA;AAC9D,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;;+GAFnB,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,YAAY;AACrB,iBAAA;;;ACJD;;AAEG;;;;"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, INJECTOR, Injector, Injectable, input, Directive, viewChild, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { outputFromObservable, toObservable } from '@angular/core/rxjs-interop';
|
|
4
|
+
import { tuiIfMap } from '@taiga-ui/cdk/observables';
|
|
5
|
+
import { PolymorpheusComponent, POLYMORPHEUS_CONTEXT, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
6
|
+
import { Observable, ignoreElements, endWith, share } from 'rxjs';
|
|
7
|
+
import { TuiIdService } from '@taiga-ui/cdk/services';
|
|
8
|
+
import { tuiProvide } from '@taiga-ui/cdk/utils';
|
|
9
|
+
|
|
10
|
+
class TuiPortal {
|
|
11
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject
|
|
12
|
+
constructor(service) {
|
|
13
|
+
this.service = service;
|
|
14
|
+
this.injector = inject(INJECTOR);
|
|
15
|
+
this.id = inject(TuiIdService);
|
|
16
|
+
}
|
|
17
|
+
open(content, options = {}) {
|
|
18
|
+
return new Observable(($implicit) => this.add(new PolymorpheusComponent(this.component, Injector.create({
|
|
19
|
+
parent: this.injector,
|
|
20
|
+
providers: [
|
|
21
|
+
{
|
|
22
|
+
provide: POLYMORPHEUS_CONTEXT,
|
|
23
|
+
useValue: {
|
|
24
|
+
...this.options,
|
|
25
|
+
...options,
|
|
26
|
+
content,
|
|
27
|
+
$implicit,
|
|
28
|
+
createdAt: Date.now(),
|
|
29
|
+
id: this.id.generate(),
|
|
30
|
+
completeWith: (v) => {
|
|
31
|
+
$implicit.next(v);
|
|
32
|
+
$implicit.complete();
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
}))));
|
|
38
|
+
}
|
|
39
|
+
add(component) {
|
|
40
|
+
const ref = this.service.add(component);
|
|
41
|
+
return () => ref.destroy();
|
|
42
|
+
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortal, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortal }); }
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortal, decorators: [{
|
|
47
|
+
type: Injectable
|
|
48
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
49
|
+
function tuiAsPortal(portal) {
|
|
50
|
+
return tuiProvide(TuiPortal, portal);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
class TuiPortalDirective extends PolymorpheusTemplate {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
this.service = inject((TuiPortal));
|
|
57
|
+
this.options = input({});
|
|
58
|
+
this.open = input(false);
|
|
59
|
+
this.openChange = outputFromObservable(toObservable(this.open).pipe(tuiIfMap(() => this.service
|
|
60
|
+
.open(this, this.options())
|
|
61
|
+
.pipe(ignoreElements(), endWith(false))), share()));
|
|
62
|
+
}
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
64
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiPortalDirective, isStandalone: true, inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openChange: "openChange" }, usesInheritance: true, ngImport: i0 }); }
|
|
65
|
+
}
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalDirective, decorators: [{
|
|
67
|
+
type: Directive
|
|
68
|
+
}] });
|
|
69
|
+
|
|
70
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
71
|
+
class TuiPortalService {
|
|
72
|
+
attach(host) {
|
|
73
|
+
this.host = host;
|
|
74
|
+
}
|
|
75
|
+
add(content, context) {
|
|
76
|
+
if (!this.host) {
|
|
77
|
+
throw new TuiNoHostException();
|
|
78
|
+
}
|
|
79
|
+
return content instanceof PolymorpheusComponent
|
|
80
|
+
? this.host.addComponent(content)
|
|
81
|
+
: this.host.addTemplate(content, context);
|
|
82
|
+
}
|
|
83
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
84
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalService }); }
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalService, decorators: [{
|
|
87
|
+
type: Injectable
|
|
88
|
+
}] });
|
|
89
|
+
class TuiNoHostException extends Error {
|
|
90
|
+
constructor() {
|
|
91
|
+
super(ngDevMode
|
|
92
|
+
? 'Portals cannot be used without TuiPortals component; perhaps you forgot to wrap your application with tui-root.'
|
|
93
|
+
: '');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
98
|
+
class TuiPortals {
|
|
99
|
+
constructor() {
|
|
100
|
+
this.vcr = viewChild.required('vcr', { read: ViewContainerRef });
|
|
101
|
+
this.injector = inject(INJECTOR);
|
|
102
|
+
inject(TuiPortalService).attach(this);
|
|
103
|
+
}
|
|
104
|
+
addComponent(component) {
|
|
105
|
+
// TODO: Remove after updating to polymorpheus v5
|
|
106
|
+
const context = component['i'].get(POLYMORPHEUS_CONTEXT, { optional: true });
|
|
107
|
+
const injector = component.createInjector(this.injector, context || undefined);
|
|
108
|
+
const ref = this.vcr().createComponent(component.component, { injector });
|
|
109
|
+
ref.changeDetectorRef.detectChanges();
|
|
110
|
+
return ref;
|
|
111
|
+
}
|
|
112
|
+
addTemplate(templateRef, context) {
|
|
113
|
+
return this.vcr().createEmbeddedView(templateRef, context);
|
|
114
|
+
}
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortals, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
116
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.15", type: TuiPortals, isStandalone: true, viewQueries: [{ propertyName: "vcr", first: true, predicate: ["vcr"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0 }); }
|
|
117
|
+
}
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortals, decorators: [{
|
|
119
|
+
type: Directive
|
|
120
|
+
}], ctorParameters: () => [] });
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Generated bundle index. Do not edit.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
export { TuiNoHostException, TuiPortal, TuiPortalDirective, TuiPortalService, TuiPortals, tuiAsPortal };
|
|
127
|
+
//# sourceMappingURL=taiga-ui-cdk-portals.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-portals.mjs","sources":["../../../projects/cdk/portals/portal.ts","../../../projects/cdk/portals/directive.ts","../../../projects/cdk/portals/service.ts","../../../projects/cdk/portals/portals.ts","../../../projects/cdk/portals/taiga-ui-cdk-portals.ts"],"sourcesContent":["import {\n inject,\n Injectable,\n INJECTOR,\n Injector,\n type Provider,\n type Type,\n} from '@angular/core';\nimport {TuiIdService} from '@taiga-ui/cdk/services';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvide} from '@taiga-ui/cdk/utils';\nimport {\n // eslint-disable-next-line no-restricted-imports\n POLYMORPHEUS_CONTEXT,\n PolymorpheusComponent,\n type PolymorpheusContent,\n} from '@taiga-ui/polymorpheus';\nimport {Observable, type Observer} from 'rxjs';\n\nimport {type TuiPortalService} from './service';\n\nexport type TuiPortalContext<T, O = void> = T &\n TuiContext<Observer<O>> & {\n readonly content: PolymorpheusContent<TuiPortalContext<T, O>>;\n readonly createdAt: number;\n readonly id: string;\n completeWith(value: O): void;\n };\n\n@Injectable()\nexport abstract class TuiPortal<T, K = void> {\n protected abstract readonly component: Type<any>;\n protected abstract readonly options: T;\n\n private readonly injector = inject(INJECTOR);\n private readonly id = inject(TuiIdService);\n\n // eslint-disable-next-line @angular-eslint/prefer-inject\n constructor(protected readonly service: TuiPortalService) {}\n\n public open<G = void>(\n content: PolymorpheusContent<TuiPortalContext<T, K extends void ? G : K>>,\n options: Partial<T> = {},\n ): Observable<K extends void ? G : K> {\n return new Observable(($implicit) =>\n this.add(\n new PolymorpheusComponent(\n this.component,\n Injector.create({\n parent: this.injector,\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue: {\n ...this.options,\n ...options,\n content,\n $implicit,\n createdAt: Date.now(),\n id: this.id.generate(),\n completeWith: (v: K extends void ? G : K): void => {\n $implicit.next(v);\n $implicit.complete();\n },\n } satisfies TuiPortalContext<T, K extends void ? G : K>,\n },\n ],\n }),\n ),\n ),\n );\n }\n\n protected add(component: PolymorpheusComponent<unknown>): () => void {\n const ref = this.service.add(component);\n\n return () => ref.destroy();\n }\n}\n\nexport function tuiAsPortal(portal: typeof TuiPortal<any>): Provider {\n return tuiProvide(TuiPortal, portal);\n}\n","import {Directive, inject, input} from '@angular/core';\nimport {outputFromObservable, toObservable} from '@angular/core/rxjs-interop';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {endWith, ignoreElements, share} from 'rxjs';\n\nimport {TuiPortal, type TuiPortalContext} from './portal';\n\n@Directive()\nexport class TuiPortalDirective<T> extends PolymorpheusTemplate<TuiPortalContext<T>> {\n private readonly service = inject(TuiPortal<T>);\n\n public readonly options = input<Partial<T>>({});\n public readonly open = input(false);\n public readonly openChange = outputFromObservable(\n toObservable(this.open).pipe(\n tuiIfMap(() =>\n this.service\n .open(this, this.options())\n .pipe(ignoreElements(), endWith(false)),\n ),\n share(),\n ),\n );\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {\n type ComponentRef,\n type EmbeddedViewRef,\n Injectable,\n type TemplateRef,\n} from '@angular/core';\nimport {PolymorpheusComponent} from '@taiga-ui/polymorpheus';\n\nimport {type TuiPortals} from './portals';\n\n@Injectable()\nexport abstract class TuiPortalService {\n protected host?: TuiPortals;\n\n public attach(host: TuiPortals): void {\n this.host = host;\n }\n\n public add<C>(content: PolymorpheusComponent<C>): ComponentRef<C>;\n public add<C>(content: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;\n public add<C>(\n content: PolymorpheusComponent<C> | TemplateRef<C>,\n context?: C,\n ): ComponentRef<C> | EmbeddedViewRef<C> {\n if (!this.host) {\n throw new TuiNoHostException();\n }\n\n return content instanceof PolymorpheusComponent\n ? this.host.addComponent(content)\n : this.host.addTemplate(content, context);\n }\n}\n\nexport class TuiNoHostException extends Error {\n constructor() {\n super(\n ngDevMode\n ? 'Portals cannot be used without TuiPortals component; perhaps you forgot to wrap your application with tui-root.'\n : '',\n );\n }\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {\n type ComponentRef,\n Directive,\n type EmbeddedViewRef,\n inject,\n INJECTOR,\n type TemplateRef,\n viewChild,\n ViewContainerRef,\n} from '@angular/core';\n// eslint-disable-next-line no-restricted-imports\nimport {POLYMORPHEUS_CONTEXT, type PolymorpheusComponent} from '@taiga-ui/polymorpheus';\n\nimport {TuiPortalService} from './service';\n\n@Directive()\nexport abstract class TuiPortals {\n private readonly vcr = viewChild.required('vcr', {read: ViewContainerRef});\n private readonly injector = inject(INJECTOR);\n\n constructor() {\n inject(TuiPortalService).attach(this);\n }\n\n public addComponent<C>(component: PolymorpheusComponent<C>): ComponentRef<C> {\n // TODO: Remove after updating to polymorpheus v5\n const context = component['i'].get(POLYMORPHEUS_CONTEXT, {optional: true});\n const injector = component.createInjector(this.injector, context || undefined);\n const ref = this.vcr().createComponent(component.component, {injector});\n\n ref.changeDetectorRef.detectChanges();\n\n return ref;\n }\n\n public addTemplate<C>(templateRef: TemplateRef<C>, context?: C): EmbeddedViewRef<C> {\n return this.vcr().createEmbeddedView(templateRef, context);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MA8BsB,SAAS,CAAA;;AAQ3B,IAAA,WAAA,CAA+B,OAAyB,EAAA;QAAzB,IAAO,CAAA,OAAA,GAAP,OAAO;AAJrB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC;;AAKnC,IAAA,IAAI,CACP,OAAyE,EACzE,OAAA,GAAsB,EAAE,EAAA;QAExB,OAAO,IAAI,UAAU,CAAC,CAAC,SAAS,KAC5B,IAAI,CAAC,GAAG,CACJ,IAAI,qBAAqB,CACrB,IAAI,CAAC,SAAS,EACd,QAAQ,CAAC,MAAM,CAAC;YACZ,MAAM,EAAE,IAAI,CAAC,QAAQ;AACrB,YAAA,SAAS,EAAE;AACP,gBAAA;AACI,oBAAA,OAAO,EAAE,oBAAoB;AAC7B,oBAAA,QAAQ,EAAE;wBACN,GAAG,IAAI,CAAC,OAAO;AACf,wBAAA,GAAG,OAAO;wBACV,OAAO;wBACP,SAAS;AACT,wBAAA,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;AACrB,wBAAA,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE;AACtB,wBAAA,YAAY,EAAE,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