@taiga-ui/cdk 4.51.0 → 4.52.0-canary.0ec45da
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 +2 -2
- 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 +2 -1
- package/constants/version.js.map +1 -0
- 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.options.d.ts +2 -2
- package/directives/index.d.ts +1 -1
- package/directives/let/let.directive.d.ts +1 -2
- package/directives/popover/popover.directive.d.ts +1 -1
- package/directives/repeat-times/repeat-times.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 +6 -78
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +3 -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 -26
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs +48 -45
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +5 -5
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +11 -19
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +8 -8
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-let.mjs +6 -7
- package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-media.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +15 -9
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs +8 -8
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +10 -10
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +7 -7
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +8 -8
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +3 -3
- 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 -7
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives.mjs +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 -3
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
- package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-services.mjs +17 -15
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-tokens.mjs +14 -13
- 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 +1 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-di.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +15 -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 +24 -14
- 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 +28 -136
- package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
- 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 +2 -1
- package/schematics/constants/file-globs.js.map +1 -0
- package/schematics/constants/index.js +1 -0
- package/schematics/constants/index.js.map +1 -0
- package/schematics/constants/taiga-styles.js +1 -0
- package/schematics/constants/taiga-styles.js.map +1 -0
- package/schematics/index.js +1 -0
- package/schematics/index.js.map +1 -0
- package/schematics/migrate-tui-let/index.js +5 -3
- package/schematics/migrate-tui-let/index.js.map +1 -0
- package/schematics/migrate-tui-let/schema.json +7 -0
- package/schematics/ng-add/constants/modules.js +1 -0
- package/schematics/ng-add/constants/modules.js.map +1 -0
- package/schematics/ng-add/constants/packages.js +1 -0
- package/schematics/ng-add/constants/packages.js.map +1 -0
- package/schematics/ng-add/constants/versions.d.ts +1 -1
- package/schematics/ng-add/constants/versions.js +1 -0
- package/schematics/ng-add/constants/versions.js.map +1 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.js +1 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/setup-project.js +2 -1
- package/schematics/ng-add/setup-project.js.map +1 -0
- package/schematics/ng-add/steps/add-taiga-icons.js +3 -3
- package/schematics/ng-add/steps/add-taiga-icons.js.map +1 -0
- package/schematics/ng-add/steps/add-taiga-modules.js +2 -2
- package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -0
- package/schematics/ng-add/steps/add-taiga-styles.js +2 -2
- package/schematics/ng-add/steps/add-taiga-styles.js.map +1 -0
- package/schematics/ng-add/steps/wrap-with-tui-root.js +2 -2
- package/schematics/ng-add/steps/wrap-with-tui-root.js.map +1 -0
- package/schematics/ng-update/interfaces/asset.js +1 -0
- package/schematics/ng-update/interfaces/asset.js.map +1 -0
- package/schematics/ng-update/interfaces/html-comment.js +1 -0
- package/schematics/ng-update/interfaces/html-comment.js.map +1 -0
- package/schematics/ng-update/interfaces/index.js +1 -0
- package/schematics/ng-update/interfaces/index.js.map +1 -0
- package/schematics/ng-update/interfaces/migration-warning.js +1 -0
- package/schematics/ng-update/interfaces/migration-warning.js.map +1 -0
- package/schematics/ng-update/interfaces/removable-input.js +1 -0
- package/schematics/ng-update/interfaces/removable-input.js.map +1 -0
- package/schematics/ng-update/interfaces/removed-module.js +1 -0
- package/schematics/ng-update/interfaces/removed-module.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-attribute-to-directive.js +1 -0
- package/schematics/ng-update/interfaces/replacement-attribute-to-directive.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-attribute-value.js +1 -0
- package/schematics/ng-update/interfaces/replacement-attribute-value.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-attribute.js +1 -0
- package/schematics/ng-update/interfaces/replacement-attribute.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-enum.js +1 -0
- package/schematics/ng-update/interfaces/replacement-enum.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-identifier.js +1 -0
- package/schematics/ng-update/interfaces/replacement-identifier.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-service.js +1 -0
- package/schematics/ng-update/interfaces/replacement-service.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-tag.js +1 -0
- package/schematics/ng-update/interfaces/replacement-tag.js.map +1 -0
- package/schematics/ng-update/interfaces/replacement-type.js +1 -0
- package/schematics/ng-update/interfaces/replacement-type.js.map +1 -0
- package/schematics/ng-update/interfaces/template-resource.js +1 -0
- package/schematics/ng-update/interfaces/template-resource.js.map +1 -0
- package/schematics/ng-update/steps/icons/replace-imports.js +2 -2
- package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -0
- package/schematics/ng-update/steps/index.js +1 -0
- package/schematics/ng-update/steps/index.js.map +1 -0
- package/schematics/ng-update/steps/rename-types.js +2 -2
- package/schematics/ng-update/steps/rename-types.js.map +1 -0
- package/schematics/ng-update/steps/replace-deep-import.js +2 -2
- package/schematics/ng-update/steps/replace-deep-import.js.map +1 -0
- package/schematics/ng-update/steps/replace-enums.js +2 -2
- package/schematics/ng-update/steps/replace-enums.js.map +1 -0
- package/schematics/ng-update/steps/replace-identifier.js +3 -3
- package/schematics/ng-update/steps/replace-identifier.js.map +1 -0
- package/schematics/ng-update/steps/replace-package-name.js +2 -2
- package/schematics/ng-update/steps/replace-package-name.js.map +1 -0
- package/schematics/ng-update/steps/replace-services.js +2 -2
- package/schematics/ng-update/steps/replace-services.js.map +1 -0
- package/schematics/ng-update/steps/show-warnings.js +2 -2
- package/schematics/ng-update/steps/show-warnings.js.map +1 -0
- package/schematics/ng-update/utils/get-file-system.js +2 -2
- package/schematics/ng-update/utils/get-file-system.js.map +1 -0
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +3 -3
- package/schematics/ng-update/utils/replace-functions.js.map +1 -0
- package/schematics/ng-update/utils/replace-text.js +2 -2
- package/schematics/ng-update/utils/replace-text.js.map +1 -0
- package/schematics/ng-update/utils/templates/index.js +1 -0
- package/schematics/ng-update/utils/templates/index.js.map +1 -0
- package/schematics/ng-update/utils/templates/remove-inputs.js +2 -2
- package/schematics/ng-update/utils/templates/remove-inputs.js.map +1 -0
- package/schematics/ng-update/utils/templates/replace-attr-values.js +2 -2
- package/schematics/ng-update/utils/templates/replace-attr-values.js.map +1 -0
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +2 -2
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js.map +1 -0
- package/schematics/ng-update/utils/templates/replace-attrs.js +2 -2
- package/schematics/ng-update/utils/templates/replace-attrs.js.map +1 -0
- package/schematics/ng-update/utils/templates/replace-tag.js +2 -2
- package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -0
- package/schematics/ng-update/utils/templates/replace-tags.js +2 -2
- package/schematics/ng-update/utils/templates/replace-tags.js.map +1 -0
- package/schematics/ng-update/utils/templates/template-comments.js +2 -2
- package/schematics/ng-update/utils/templates/template-comments.js.map +1 -0
- package/schematics/ng-update/v4/index.js +3 -3
- package/schematics/ng-update/v4/index.js.map +1 -0
- package/schematics/ng-update/v4/migrate-addon-doc/index.js +2 -2
- package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +1 -0
- package/schematics/ng-update/v4/migrate-addon-doc/replace-symbols.js +1 -0
- package/schematics/ng-update/v4/migrate-addon-doc/replace-symbols.js.map +1 -0
- package/schematics/ng-update/v4/migrate-css-vars/index.js +2 -2
- package/schematics/ng-update/v4/migrate-css-vars/index.js.map +1 -0
- package/schematics/ng-update/v4/migrate-css-vars/palette.js +1 -0
- package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -0
- 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 -2
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -0
- package/schematics/ng-update/v4/migrate-icons/index.js +2 -2
- package/schematics/ng-update/v4/migrate-icons/index.js.map +1 -0
- package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +2 -2
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +1 -0
- 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 +2 -2
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/enums.js +1 -0
- package/schematics/ng-update/v4/steps/constants/enums.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/functions.js +1 -0
- package/schematics/ng-update/v4/steps/constants/functions.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/html-comments.js +1 -0
- package/schematics/ng-update/v4/steps/constants/html-comments.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/index.js +1 -0
- package/schematics/ng-update/v4/steps/constants/index.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +1 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +2 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +1 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/services.js +1 -0
- package/schematics/ng-update/v4/steps/constants/services.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js.map +1 -0
- package/schematics/ng-update/v4/steps/constants/types.js +1 -0
- package/schematics/ng-update/v4/steps/constants/types.js.map +1 -0
- package/schematics/ng-update/v4/steps/drop-universal-mock.js +2 -2
- package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +1 -0
- package/schematics/ng-update/v4/steps/index.js +1 -0
- package/schematics/ng-update/v4/steps/index.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-alert-service.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -1
- package/schematics/ng-update/v4/steps/migrate-editor.js +3 -2
- package/schematics/ng-update/v4/steps/migrate-editor.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-month-context.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-month-context.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-option-providers.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -1
- package/schematics/ng-update/v4/steps/migrate-proprietary.js +3 -3
- package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-providers-from.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-root.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-root.js.map +1 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +3 -3
- package/schematics/ng-update/v4/steps/migrate-templates.js.map +1 -0
- package/schematics/ng-update/v4/steps/remove-duplicates.js +2 -2
- package/schematics/ng-update/v4/steps/remove-duplicates.js.map +1 -0
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +3 -3
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -0
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +3 -3
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -0
- package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/index.js +3 -2
- package/schematics/ng-update/v4/steps/styles/index.js.map +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +2 -2
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +2 -2
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +2 -2
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +2 -2
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +2 -2
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +2 -2
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +2 -2
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/index.js +1 -0
- package/schematics/ng-update/v4/steps/templates/index.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-label.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-money.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +5 -5
- package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/toggles/index.js +1 -0
- package/schematics/ng-update/v4/steps/templates/toggles/index.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +2 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +2 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +1 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +2 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +1 -0
- package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -1
- package/schematics/ng-update/v4/steps/update-packages.js +3 -2
- package/schematics/ng-update/v4/steps/update-packages.js.map +1 -0
- package/schematics/ng-update/v4/steps/utils/clean-object.js +2 -2
- package/schematics/ng-update/v4/steps/utils/clean-object.js.map +1 -0
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +2 -2
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +1 -0
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js +2 -2
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +1 -0
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js +1 -0
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +1 -0
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +2 -2
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +1 -0
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +2 -2
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +1 -0
- package/schematics/ng-update/v5/index.js +11 -2
- package/schematics/ng-update/v5/index.js.map +1 -0
- 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/migrate-templates.d.ts +17 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js +40 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +2 -2
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +2 -2
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -0
- package/schematics/ng-update/v5/tests/migrate-tokens/utils.js +2 -2
- package/schematics/ng-update/v5/tests/migrate-tokens/utils.js.map +1 -0
- package/schematics/utils/add-import-to-closest-module.js +3 -3
- package/schematics/utils/add-import-to-closest-module.js.map +1 -0
- package/schematics/utils/add-unique-import.js +2 -2
- package/schematics/utils/add-unique-import.js.map +1 -0
- package/schematics/utils/angular-json-manipulations.js +3 -5
- package/schematics/utils/angular-json-manipulations.js.map +1 -0
- package/schematics/utils/create-angular-json.js +2 -2
- package/schematics/utils/create-angular-json.js.map +1 -0
- package/schematics/utils/get-component-from-identifier.js +2 -2
- package/schematics/utils/get-component-from-identifier.js.map +1 -0
- package/schematics/utils/get-execution-time.js +2 -2
- package/schematics/utils/get-execution-time.js.map +1 -0
- package/schematics/utils/get-named-import-references.js +2 -2
- package/schematics/utils/get-named-import-references.js.map +1 -0
- package/schematics/utils/get-project-target-options.js +2 -2
- package/schematics/utils/get-project-target-options.js.map +1 -0
- package/schematics/utils/get-projects.js +2 -2
- package/schematics/utils/get-projects.js.map +1 -0
- package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
- package/schematics/utils/get-standalone-bootstrap-function.js +3 -5
- package/schematics/utils/get-standalone-bootstrap-function.js.map +1 -0
- package/schematics/utils/import-manipulations.js +3 -3
- package/schematics/utils/import-manipulations.js.map +1 -0
- package/schematics/utils/insert-todo.js +3 -2
- package/schematics/utils/insert-todo.js.map +1 -0
- package/schematics/utils/is-ci.js +2 -2
- package/schematics/utils/is-ci.js.map +1 -0
- package/schematics/utils/make-angular-json-with-assets.js +2 -2
- package/schematics/utils/make-angular-json-with-assets.js.map +1 -0
- package/schematics/utils/progress.js +2 -2
- package/schematics/utils/progress.js.map +1 -0
- package/schematics/utils/project-root.js +1 -0
- package/schematics/utils/project-root.js.map +1 -0
- package/schematics/utils/push-to-array-property.js +2 -2
- package/schematics/utils/push-to-array-property.js.map +1 -0
- package/schematics/utils/remove-module.js +3 -3
- package/schematics/utils/remove-module.js.map +1 -0
- package/schematics/utils/templates/elements.js +16 -24
- package/schematics/utils/templates/elements.js.map +1 -0
- package/schematics/utils/templates/get-component-templates.js +2 -2
- package/schematics/utils/templates/get-component-templates.js.map +1 -0
- package/schematics/utils/templates/inputs.js +3 -3
- package/schematics/utils/templates/inputs.js.map +1 -0
- package/schematics/utils/templates/ng-component-input-manipulations.js +7 -9
- package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -0
- package/schematics/utils/templates/template-resource.js +4 -4
- package/schematics/utils/templates/template-resource.js.map +1 -0
- package/services/scroll.service.d.ts +3 -0
- 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 +1 -1
- package/utils/miscellaneous/is-string.js +2 -2
- package/utils/miscellaneous/is-string.js.map +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/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 -55
- 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 -9
- 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 -11
- 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/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
|
@@ -5,10 +5,10 @@ import { Directive } from '@angular/core';
|
|
|
5
5
|
* Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`
|
|
6
6
|
*/
|
|
7
7
|
class TuiItem {
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiItem, isStandalone: true, selector: "[tuiItem]", ngImport: i0 }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItem, decorators: [{
|
|
12
12
|
type: Directive,
|
|
13
13
|
args: [{
|
|
14
14
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-item.mjs","sources":["../../../projects/cdk/directives/item/item.directive.ts","../../../projects/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`\n */\n@Directive({\n standalone: true,\n selector: '[tuiItem]',\n})\nexport class TuiItem {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-item.mjs","sources":["../../../projects/cdk/directives/item/item.directive.ts","../../../projects/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`\n */\n@Directive({\n standalone: true,\n selector: '[tuiItem]',\n})\nexport class TuiItem {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;MAKU,OAAO,CAAA;+GAAP,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAJnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACxB,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ViewContainerRef, TemplateRef,
|
|
2
|
+
import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
@@ -17,8 +17,7 @@ class TuiLetContext {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* the result of pipes calculation (i.e. async pipe)
|
|
20
|
+
* @deprecated use @let instead
|
|
22
21
|
*/
|
|
23
22
|
class TuiLet {
|
|
24
23
|
constructor() {
|
|
@@ -33,16 +32,16 @@ class TuiLet {
|
|
|
33
32
|
static ngTemplateContextGuard(_dir, _ctx) {
|
|
34
33
|
return true;
|
|
35
34
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
36
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
|
|
38
37
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, decorators: [{
|
|
40
39
|
type: Directive,
|
|
41
40
|
args: [{
|
|
42
41
|
standalone: true,
|
|
43
42
|
selector: '[tuiLet]',
|
|
44
43
|
}]
|
|
45
|
-
}], ctorParameters:
|
|
44
|
+
}], ctorParameters: () => [], propDecorators: { tuiLet: [{
|
|
46
45
|
type: Input
|
|
47
46
|
}] } });
|
|
48
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-let.mjs","sources":["../../../projects/cdk/directives/let/let-context.ts","../../../projects/cdk/directives/let/let.directive.ts","../../../projects/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {type TuiLet} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContext<T> {\n constructor(private readonly internalDirectiveInstance: TuiLet<T>) {}\n\n public get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n public get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-let.mjs","sources":["../../../projects/cdk/directives/let/let-context.ts","../../../projects/cdk/directives/let/let.directive.ts","../../../projects/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {type TuiLet} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContext<T> {\n constructor(private readonly internalDirectiveInstance: TuiLet<T>) {}\n\n public get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n public get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * @deprecated use @let instead\n */\n@Directive({\n standalone: true,\n selector: '[tuiLet]',\n})\nexport class TuiLet<T> {\n @Input()\n public tuiLet!: T;\n\n constructor() {\n inject(ViewContainerRef).createEmbeddedView(\n inject(TemplateRef<TuiLetContext<T>>),\n new TuiLetContext<T>(this),\n );\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n public static ngTemplateContextGuard<T>(\n _dir: TuiLet<T>,\n _ctx: unknown,\n ): _ctx is TuiLetContext<T> {\n return true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;AAEG;MACU,aAAa,CAAA;AACtB,IAAA,WAAA,CAA6B,yBAAoC,EAAA;QAApC,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB;;AAEtD,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAGhD,IAAA,IAAW,MAAM,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAEnD;;ACbD;;AAEG;MAKU,MAAM,CAAA;AAIf,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CACvC,MAAM,EAAC,WAA6B,EAAC,EACrC,IAAI,aAAa,CAAI,IAAI,CAAC,CAC7B;;AAGL;;;;;AAKG;AACI,IAAA,OAAO,sBAAsB,CAChC,IAAe,EACf,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI;;+GArBN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAN,MAAM,EAAA,UAAA,EAAA,CAAA;kBAJlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,UAAU;AACvB,iBAAA;wDAGU,MAAM,EAAA,CAAA;sBADZ;;;ACZL;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter,
|
|
2
|
+
import { EventEmitter, Input, Output, Directive } from '@angular/core';
|
|
3
3
|
import { tuiInjectElement } from '@taiga-ui/cdk/utils';
|
|
4
4
|
|
|
5
5
|
class TuiMedia {
|
|
@@ -49,10 +49,10 @@ class TuiMedia {
|
|
|
49
49
|
this.playbackRate = playbackRate;
|
|
50
50
|
this.el.playbackRate = this.playbackRate;
|
|
51
51
|
}
|
|
52
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
53
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiMedia, isStandalone: true, selector: "video[tuiMedia], audio[tuiMedia]", inputs: { volume: "volume", playbackRateSetter: ["playbackRate", "playbackRateSetter"], currentTime: "currentTime", paused: "paused" }, outputs: { currentTimeChange: "currentTimeChange", pausedChange: "pausedChange", volumeChange: "volumeChange" }, host: { listeners: { "durationchange": "0", "ended": "onPausedChange(true)", "pause": "onPausedChange(true)", "play": "onPausedChange(false)", "volumechange": "onVolumeChange()", "timeupdate": "onCurrentTimeChange()", "seeking": "onCurrentTimeChange()", "seeked": "onCurrentTimeChange()" }, properties: { "volume": "volume" } }, exportAs: ["tuiMedia"], ngImport: i0 }); }
|
|
54
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMedia, decorators: [{
|
|
56
56
|
type: Directive,
|
|
57
57
|
args: [{
|
|
58
58
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-media.mjs","sources":["../../../projects/cdk/directives/media/media.directive.ts","../../../projects/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {Directive, EventEmitter, Input, Output} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n host: {\n '[volume]': 'volume',\n '(durationchange)': '0',\n '(ended)': 'onPausedChange(true)',\n '(pause)': 'onPausedChange(true)',\n '(play)': 'onPausedChange(false)',\n '(volumechange)': 'onVolumeChange()',\n '(timeupdate)': 'onCurrentTimeChange()',\n '(seeking)': 'onCurrentTimeChange()',\n '(seeked)': 'onCurrentTimeChange()',\n },\n})\nexport class TuiMedia {\n private readonly el = tuiInjectElement<HTMLMediaElement>();\n\n private playbackRate = 1;\n\n @Input()\n public volume = 1;\n\n @Output()\n public readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n public readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n public readonly volumeChange = new EventEmitter<number>();\n\n @Input('playbackRate')\n public set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n public set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.el.currentTime = currentTime;\n }\n }\n\n @Input()\n public set paused(paused: boolean) {\n if (paused) {\n this.el.pause?.();\n } else {\n void this.el.play?.();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n public get currentTime(): number {\n return this.el.currentTime ?? 0;\n }\n\n public get paused(): boolean {\n return this.el.paused;\n }\n\n protected onPausedChange(paused: boolean): void {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n protected onVolumeChange(): void {\n this.volume = this.el.volume;\n this.volumeChange.emit(this.volume);\n }\n\n protected onCurrentTimeChange(): void {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n private updatePlaybackRate(playbackRate: number): void {\n this.playbackRate = playbackRate;\n this.el.playbackRate = this.playbackRate;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-media.mjs","sources":["../../../projects/cdk/directives/media/media.directive.ts","../../../projects/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {Directive, EventEmitter, Input, Output} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n host: {\n '[volume]': 'volume',\n '(durationchange)': '0',\n '(ended)': 'onPausedChange(true)',\n '(pause)': 'onPausedChange(true)',\n '(play)': 'onPausedChange(false)',\n '(volumechange)': 'onVolumeChange()',\n '(timeupdate)': 'onCurrentTimeChange()',\n '(seeking)': 'onCurrentTimeChange()',\n '(seeked)': 'onCurrentTimeChange()',\n },\n})\nexport class TuiMedia {\n private readonly el = tuiInjectElement<HTMLMediaElement>();\n\n private playbackRate = 1;\n\n @Input()\n public volume = 1;\n\n @Output()\n public readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n public readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n public readonly volumeChange = new EventEmitter<number>();\n\n @Input('playbackRate')\n public set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n public set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.el.currentTime = currentTime;\n }\n }\n\n @Input()\n public set paused(paused: boolean) {\n if (paused) {\n this.el.pause?.();\n } else {\n void this.el.play?.();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n public get currentTime(): number {\n return this.el.currentTime ?? 0;\n }\n\n public get paused(): boolean {\n return this.el.paused;\n }\n\n protected onPausedChange(paused: boolean): void {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n protected onVolumeChange(): void {\n this.volume = this.el.volume;\n this.volumeChange.emit(this.volume);\n }\n\n protected onCurrentTimeChange(): void {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n private updatePlaybackRate(playbackRate: number): void {\n this.playbackRate = playbackRate;\n this.el.playbackRate = this.playbackRate;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Input, Directive } from '@angular/core';
|
|
3
3
|
import { NG_VALIDATORS } from '@angular/forms';
|
|
4
4
|
import { tuiZonefree, tuiTakeUntilDestroyed } from '@taiga-ui/cdk/observables';
|
|
5
5
|
import { tuiInjectElement, tuiProvide } from '@taiga-ui/cdk/utils';
|
|
@@ -24,10 +24,10 @@ class TuiNativeValidator {
|
|
|
24
24
|
this.el.closest('tui-textfield')?.classList.toggle('tui-invalid', invalid);
|
|
25
25
|
this.el.setCustomValidity?.(invalid ? this.tuiNativeValidator : '');
|
|
26
26
|
}
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
28
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiNativeValidator, isStandalone: true, selector: "[tuiNativeValidator]", inputs: { tuiNativeValidator: "tuiNativeValidator" }, host: { listeners: { "focusout": "handleValidation()" } }, providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)], ngImport: i0 }); }
|
|
29
29
|
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeValidator, decorators: [{
|
|
31
31
|
type: Directive,
|
|
32
32
|
args: [{
|
|
33
33
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-native-validator.mjs","sources":["../../../projects/cdk/directives/native-validator/native-validator.directive.ts","../../../projects/cdk/directives/native-validator/taiga-ui-cdk-directives-native-validator.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {type AbstractControl, NG_VALIDATORS, type Validator} from '@angular/forms';\nimport {tuiTakeUntilDestroyed, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiProvide} from '@taiga-ui/cdk/utils';\nimport {BehaviorSubject, delay, of, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiNativeValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)],\n host: {\n '(focusout)': 'handleValidation()',\n },\n})\nexport class TuiNativeValidator implements Validator {\n private readonly el = tuiInjectElement<HTMLInputElement>();\n private readonly control$ = new BehaviorSubject<AbstractControl | null>(null);\n\n protected readonly sub = this.control$\n .pipe(\n switchMap((control: any) => control?.events || of(null)),\n delay(0),\n tuiZonefree(),\n tuiTakeUntilDestroyed(),\n )\n .subscribe(() => this.handleValidation());\n\n @Input()\n public tuiNativeValidator = 'Invalid';\n\n public validate(control: AbstractControl): null {\n this.control$.next(control);\n\n return null;\n }\n\n protected handleValidation(): void {\n const invalid = !!this.control$.value?.touched && this.control$.value?.invalid;\n\n // TODO: Replace with :has(:invalid) when supported\n this.el.closest('tui-textfield')?.classList.toggle('tui-invalid', invalid);\n this.el.setCustomValidity?.(invalid ? this.tuiNativeValidator : '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-native-validator.mjs","sources":["../../../projects/cdk/directives/native-validator/native-validator.directive.ts","../../../projects/cdk/directives/native-validator/taiga-ui-cdk-directives-native-validator.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {type AbstractControl, NG_VALIDATORS, type Validator} from '@angular/forms';\nimport {tuiTakeUntilDestroyed, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiProvide} from '@taiga-ui/cdk/utils';\nimport {BehaviorSubject, delay, of, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiNativeValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)],\n host: {\n '(focusout)': 'handleValidation()',\n },\n})\nexport class TuiNativeValidator implements Validator {\n private readonly el = tuiInjectElement<HTMLInputElement>();\n private readonly control$ = new BehaviorSubject<AbstractControl | null>(null);\n\n protected readonly sub = this.control$\n .pipe(\n switchMap((control: any) => control?.events || of(null)),\n delay(0),\n tuiZonefree(),\n tuiTakeUntilDestroyed(),\n )\n .subscribe(() => this.handleValidation());\n\n @Input()\n public tuiNativeValidator = 'Invalid';\n\n public validate(control: AbstractControl): null {\n this.control$.next(control);\n\n return null;\n }\n\n protected handleValidation(): void {\n const invalid = !!this.control$.value?.touched && this.control$.value?.invalid;\n\n // TODO: Replace with :has(:invalid) when supported\n this.el.closest('tui-textfield')?.classList.toggle('tui-invalid', invalid);\n this.el.setCustomValidity?.(invalid ? this.tuiNativeValidator : '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAca,kBAAkB,CAAA;AAR/B,IAAA,WAAA,GAAA;QASqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAoB;AACzC,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAyB,IAAI,CAAC;QAE1D,IAAG,CAAA,GAAA,GAAG,IAAI,CAAC;AACzB,aAAA,IAAI,CACD,SAAS,CAAC,CAAC,OAAY,KAAK,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,EACxD,KAAK,CAAC,CAAC,CAAC,EACR,WAAW,EAAE,EACb,qBAAqB,EAAE;aAE1B,SAAS,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAGtC,IAAkB,CAAA,kBAAA,GAAG,SAAS;AAexC;AAbU,IAAA,QAAQ,CAAC,OAAwB,EAAA;AACpC,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;AAE3B,QAAA,OAAO,IAAI;;IAGL,gBAAgB,GAAA;AACtB,QAAA,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO;;AAG9E,QAAA,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC;AAC1E,QAAA,IAAI,CAAC,EAAE,CAAC,iBAAiB,GAAG,OAAO,GAAG,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAC;;+GA3B9D,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,UAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,SAAA,EALhB,CAAC,UAAU,CAAC,aAAa,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAKvD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAR9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;oBAChC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAAsB,kBAAA,EAAA,IAAI,CAAC,CAAC;AAChE,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,oBAAoB;AACrC,qBAAA;AACJ,iBAAA;8BAeU,kBAAkB,EAAA,CAAA;sBADxB;;;AC3BL;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable,
|
|
2
|
+
import { inject, Injectable, Input, Output, Directive } from '@angular/core';
|
|
3
3
|
import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
|
|
4
4
|
import { tuiZonefreeScheduler, tuiZoneOptimized, tuiIfMap } from '@taiga-ui/cdk/observables';
|
|
5
5
|
import { Observable, throttleTime, map, startWith, distinctUntilChanged, BehaviorSubject } from 'rxjs';
|
|
@@ -16,12 +16,12 @@ class TuiObscuredService extends Observable {
|
|
|
16
16
|
this.el = tuiInjectElement();
|
|
17
17
|
this.obscured$ = inject(WA_ANIMATION_FRAME).pipe(throttleTime(100, tuiZonefreeScheduler()), map(() => tuiGetElementObscures(this.el)), startWith(null), distinctUntilChanged(), tuiZoneOptimized());
|
|
18
18
|
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscuredService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
20
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscuredService }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscuredService, decorators: [{
|
|
23
23
|
type: Injectable
|
|
24
|
-
}], ctorParameters:
|
|
24
|
+
}], ctorParameters: () => [] });
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Directive that monitors element visibility
|
|
@@ -30,16 +30,16 @@ class TuiObscured {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
this.activeZone = inject(TuiActiveZone, { optional: true });
|
|
32
32
|
this.enabled$ = new BehaviorSubject(false);
|
|
33
|
-
this.obscured$ = inject(TuiObscuredService, { self: true }).pipe(map((by) => !!by?.every((el) => !this.activeZone?.contains(el))));
|
|
33
|
+
this.obscured$ = inject(TuiObscuredService, { self: true }).pipe(map((by) => !!by?.every((el) => check(el) || !this.activeZone?.contains(el))));
|
|
34
34
|
this.tuiObscured = this.enabled$.pipe(tuiIfMap(() => this.obscured$));
|
|
35
35
|
}
|
|
36
36
|
set tuiObscuredEnabled(enabled) {
|
|
37
37
|
this.enabled$.next(enabled);
|
|
38
38
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscured, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
40
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiObscured, isStandalone: true, selector: "[tuiObscured]", inputs: { tuiObscuredEnabled: "tuiObscuredEnabled" }, outputs: { tuiObscured: "tuiObscured" }, providers: [TuiObscuredService], ngImport: i0 }); }
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscured, decorators: [{
|
|
43
43
|
type: Directive,
|
|
44
44
|
args: [{
|
|
45
45
|
standalone: true,
|
|
@@ -51,6 +51,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
51
51
|
}], tuiObscuredEnabled: [{
|
|
52
52
|
type: Input
|
|
53
53
|
}] } });
|
|
54
|
+
// TODO: Refactor so that dropdowns and dialogs work properly without hacks
|
|
55
|
+
function check(el) {
|
|
56
|
+
return (!!el.closest('tui-dialogs') &&
|
|
57
|
+
// eslint-disable-next-line unicorn/prefer-query-selector
|
|
58
|
+
!!el.ownerDocument.documentElement.getElementsByTagName('tui-dropdown').length);
|
|
59
|
+
}
|
|
54
60
|
|
|
55
61
|
/**
|
|
56
62
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-obscured.mjs","sources":["../../../projects/cdk/directives/obscured/obscured.service.ts","../../../projects/cdk/directives/obscured/obscured.directive.ts","../../../projects/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiGetElementObscures, tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {distinctUntilChanged, map, Observable, startWith, throttleTime} from 'rxjs';\n\n/**\n * Service that monitors element visibility by polling and returning\n * either null or an array of elements that overlap given element edges\n */\n@Injectable()\nexport class TuiObscuredService extends Observable<readonly Element[] | null> {\n private readonly el = tuiInjectElement();\n private readonly obscured$ = inject(WA_ANIMATION_FRAME).pipe(\n throttleTime(100, tuiZonefreeScheduler()),\n map(() => tuiGetElementObscures(this.el)),\n startWith(null),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n );\n\n constructor() {\n super((subscriber) => this.obscured$.subscribe(subscriber));\n }\n}\n","import {Directive, inject, Input, Output} from '@angular/core';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {BehaviorSubject, map} from 'rxjs';\n\nimport {TuiObscuredService} from './obscured.service';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n standalone: true,\n selector: '[tuiObscured]',\n providers: [TuiObscuredService],\n})\nexport class TuiObscured {\n private readonly activeZone = inject(TuiActiveZone, {optional: true});\n private readonly enabled$ = new BehaviorSubject(false);\n private readonly obscured$ = inject(TuiObscuredService, {self: true}).pipe(\n map((by) => !!by?.every((el) => !this.activeZone?.contains(el))),\n );\n\n @Output()\n public readonly tuiObscured = this.enabled$.pipe(tuiIfMap(() => this.obscured$));\n\n @Input()\n public set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-obscured.mjs","sources":["../../../projects/cdk/directives/obscured/obscured.service.ts","../../../projects/cdk/directives/obscured/obscured.directive.ts","../../../projects/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiGetElementObscures, tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {distinctUntilChanged, map, Observable, startWith, throttleTime} from 'rxjs';\n\n/**\n * Service that monitors element visibility by polling and returning\n * either null or an array of elements that overlap given element edges\n */\n@Injectable()\nexport class TuiObscuredService extends Observable<readonly Element[] | null> {\n private readonly el = tuiInjectElement();\n private readonly obscured$ = inject(WA_ANIMATION_FRAME).pipe(\n throttleTime(100, tuiZonefreeScheduler()),\n map(() => tuiGetElementObscures(this.el)),\n startWith(null),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n );\n\n constructor() {\n super((subscriber) => this.obscured$.subscribe(subscriber));\n }\n}\n","import {Directive, inject, Input, Output} from '@angular/core';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {BehaviorSubject, map} from 'rxjs';\n\nimport {TuiObscuredService} from './obscured.service';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n standalone: true,\n selector: '[tuiObscured]',\n providers: [TuiObscuredService],\n})\nexport class TuiObscured {\n private readonly activeZone = inject(TuiActiveZone, {optional: true});\n private readonly enabled$ = new BehaviorSubject(false);\n private readonly obscured$ = inject(TuiObscuredService, {self: true}).pipe(\n map((by) => !!by?.every((el) => check(el) || !this.activeZone?.contains(el))),\n );\n\n @Output()\n public readonly tuiObscured = this.enabled$.pipe(tuiIfMap(() => this.obscured$));\n\n @Input()\n public set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n}\n\n// TODO: Refactor so that dropdowns and dialogs work properly without hacks\nfunction check(el: Element): boolean {\n return (\n !!el.closest('tui-dialogs') &&\n // eslint-disable-next-line unicorn/prefer-query-selector\n !!el.ownerDocument.documentElement.getElementsByTagName('tui-dropdown').length\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA;;;AAGG;AAEG,MAAO,kBAAmB,SAAQ,UAAqC,CAAA;AAUzE,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAV9C,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC,IAAI,CACxD,YAAY,CAAC,GAAG,EAAE,oBAAoB,EAAE,CAAC,EACzC,GAAG,CAAC,MAAM,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACzC,SAAS,CAAC,IAAI,CAAC,EACf,oBAAoB,EAAE,EACtB,gBAAgB,EAAE,CACrB;;+GARQ,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAlB,kBAAkB,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B;;;ACHD;;AAEG;MAMU,WAAW,CAAA;AALxB,IAAA,WAAA,GAAA;QAMqB,IAAU,CAAA,UAAA,GAAG,MAAM,CAAC,aAAa,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AACpD,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC;QACrC,IAAS,CAAA,SAAA,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACtE,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAChF;AAGe,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC;AAMnF;IAJG,IACW,kBAAkB,CAAC,OAAgB,EAAA;AAC1C,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;;+GAZtB,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,SAAA,EAFT,CAAC,kBAAkB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAEtB,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,eAAe;oBACzB,SAAS,EAAE,CAAC,kBAAkB,CAAC;AAClC,iBAAA;8BASmB,WAAW,EAAA,CAAA;sBAD1B;gBAIU,kBAAkB,EAAA,CAAA;sBAD5B;;AAML;AACA,SAAS,KAAK,CAAC,EAAW,EAAA;IACtB,QACI,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;;AAE3B,QAAA,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC,MAAM;AAEtF;;ACtCA;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable,
|
|
2
|
+
import { inject, Injectable, Output, Directive } from '@angular/core';
|
|
3
3
|
import { DOCUMENT } from '@angular/common';
|
|
4
4
|
import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
|
|
5
5
|
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
@@ -19,21 +19,21 @@ class TuiPanService extends Observable {
|
|
|
19
19
|
}), takeUntil(merge(tuiTypedFromEvent(doc, 'touchend'), tuiTypedFromEvent(doc, 'mouseup'))), repeat())
|
|
20
20
|
.subscribe(subscriber));
|
|
21
21
|
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPanService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
23
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPanService }); }
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPanService, decorators: [{
|
|
26
26
|
type: Injectable
|
|
27
|
-
}], ctorParameters:
|
|
27
|
+
}], ctorParameters: () => [] });
|
|
28
28
|
|
|
29
29
|
class TuiPan {
|
|
30
30
|
constructor() {
|
|
31
31
|
this.tuiPan = inject(TuiPanService);
|
|
32
32
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPan, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
34
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPan, isStandalone: true, selector: "[tuiPan]", outputs: { tuiPan: "tuiPan" }, providers: [TuiPanService], ngImport: i0 }); }
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPan, decorators: [{
|
|
37
37
|
type: Directive,
|
|
38
38
|
args: [{
|
|
39
39
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-pan.mjs","sources":["../../../projects/cdk/directives/pan/pan.service.ts","../../../projects/cdk/directives/pan/pan.directive.ts","../../../projects/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n filter,\n map,\n merge,\n Observable,\n pairwise,\n repeat,\n switchMap,\n takeUntil,\n} from 'rxjs';\n\n@Injectable()\nexport class TuiPanService extends Observable<readonly [number, number]> {\n constructor() {\n const el = tuiInjectElement();\n const doc = inject(DOCUMENT);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}),\n tuiTypedFromEvent(el, 'mousedown'),\n )\n .pipe(\n switchMap(() =>\n merge(\n tuiTypedFromEvent(doc, 'touchmove', {\n passive: true,\n }).pipe(\n filter(({touches}) => touches.length < 2),\n map(({touches}) => touches[0]),\n ),\n tuiTypedFromEvent(doc, 'mousemove'),\n ),\n ),\n pairwise(),\n map(([first, second]) => {\n const deltaX = (second?.clientX ?? 0) - (first?.clientX ?? 0);\n const deltaY = (second?.clientY ?? 0) - (first?.clientY ?? 0);\n\n return [deltaX, deltaY] as [number, number];\n }),\n takeUntil(\n merge(\n tuiTypedFromEvent(doc, 'touchend'),\n tuiTypedFromEvent(doc, 'mouseup'),\n ),\n ),\n repeat(),\n )\n .subscribe(subscriber),\n );\n }\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiPanService} from './pan.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiPan]',\n providers: [TuiPanService],\n})\nexport class TuiPan {\n @Output()\n public readonly tuiPan = inject(TuiPanService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-pan.mjs","sources":["../../../projects/cdk/directives/pan/pan.service.ts","../../../projects/cdk/directives/pan/pan.directive.ts","../../../projects/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n filter,\n map,\n merge,\n Observable,\n pairwise,\n repeat,\n switchMap,\n takeUntil,\n} from 'rxjs';\n\n@Injectable()\nexport class TuiPanService extends Observable<readonly [number, number]> {\n constructor() {\n const el = tuiInjectElement();\n const doc = inject(DOCUMENT);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}),\n tuiTypedFromEvent(el, 'mousedown'),\n )\n .pipe(\n switchMap(() =>\n merge(\n tuiTypedFromEvent(doc, 'touchmove', {\n passive: true,\n }).pipe(\n filter(({touches}) => touches.length < 2),\n map(({touches}) => touches[0]),\n ),\n tuiTypedFromEvent(doc, 'mousemove'),\n ),\n ),\n pairwise(),\n map(([first, second]) => {\n const deltaX = (second?.clientX ?? 0) - (first?.clientX ?? 0);\n const deltaY = (second?.clientY ?? 0) - (first?.clientY ?? 0);\n\n return [deltaX, deltaY] as [number, number];\n }),\n takeUntil(\n merge(\n tuiTypedFromEvent(doc, 'touchend'),\n tuiTypedFromEvent(doc, 'mouseup'),\n ),\n ),\n repeat(),\n )\n .subscribe(subscriber),\n );\n }\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiPanService} from './pan.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiPan]',\n providers: [TuiPanService],\n})\nexport class TuiPan {\n @Output()\n public readonly tuiPan = inject(TuiPanService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAgBM,MAAO,aAAc,SAAQ,UAAqC,CAAA;AACpE,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE;AAC7B,QAAA,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QAE5B,KAAK,CAAC,CAAC,UAAU,KACb,KAAK,CACD,iBAAiB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,EACpD,iBAAiB,CAAC,EAAE,EAAE,WAAW,CAAC;AAEjC,aAAA,IAAI,CACD,SAAS,CAAC,MACN,KAAK,CACD,iBAAiB,CAAC,GAAG,EAAE,WAAW,EAAE;AAChC,YAAA,OAAO,EAAE,IAAI;SAChB,CAAC,CAAC,IAAI,CACH,MAAM,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EACzC,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CACjC,EACD,iBAAiB,CAAC,GAAG,EAAE,WAAW,CAAC,CACtC,CACJ,EACD,QAAQ,EAAE,EACV,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,KAAI;AACpB,YAAA,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,CAAC,KAAK,KAAK,EAAE,OAAO,IAAI,CAAC,CAAC;AAC7D,YAAA,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,CAAC,KAAK,KAAK,EAAE,OAAO,IAAI,CAAC,CAAC;AAE7D,YAAA,OAAO,CAAC,MAAM,EAAE,MAAM,CAAqB;SAC9C,CAAC,EACF,SAAS,CACL,KAAK,CACD,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,EAClC,iBAAiB,CAAC,GAAG,EAAE,SAAS,CAAC,CACpC,CACJ,EACD,MAAM,EAAE;AAEX,aAAA,SAAS,CAAC,UAAU,CAAC,CAC7B;;+GAtCI,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAb,aAAa,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB;;;MCNY,MAAM,CAAA;AALnB,IAAA,WAAA,GAAA;AAOoB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;AACjD;+GAHY,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,SAAA,EAFJ,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAEjB,MAAM,EAAA,UAAA,EAAA,CAAA;kBALlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,UAAU;oBACpB,SAAS,EAAE,CAAC,aAAa,CAAC;AAC7B,iBAAA;8BAGmB,MAAM,EAAA,CAAA;sBADrB;;;ACVL;;AAEG;;;;"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject,
|
|
2
|
+
import { inject, Input, Directive } from '@angular/core';
|
|
3
3
|
import { TUI_PLATFORM } from '@taiga-ui/cdk/tokens';
|
|
4
4
|
|
|
5
5
|
class TuiPlatform {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.tuiPlatform = inject(TUI_PLATFORM, { skipSelf: true });
|
|
8
8
|
}
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPlatform, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPlatform, isStandalone: true, selector: "[tuiPlatform]", inputs: { tuiPlatform: "tuiPlatform" }, host: { properties: { "attr.data-platform": "tuiPlatform" } }, providers: [
|
|
11
11
|
{
|
|
12
12
|
provide: TUI_PLATFORM,
|
|
13
13
|
useFactory: () => inject(TuiPlatform).tuiPlatform,
|
|
14
14
|
},
|
|
15
15
|
], ngImport: i0 }); }
|
|
16
16
|
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPlatform, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-platform.mjs","sources":["../../../projects/cdk/directives/platform/platform.directive.ts","../../../projects/cdk/directives/platform/taiga-ui-cdk-directives-platform.ts"],"sourcesContent":["import {Directive, inject, Input} from '@angular/core';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n standalone: true,\n selector: '[tuiPlatform]',\n providers: [\n {\n provide: TUI_PLATFORM,\n useFactory: () => inject(TuiPlatform).tuiPlatform,\n },\n ],\n host: {\n '[attr.data-platform]': 'tuiPlatform',\n },\n})\nexport class TuiPlatform {\n @Input()\n public tuiPlatform = inject(TUI_PLATFORM, {skipSelf: true});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-platform.mjs","sources":["../../../projects/cdk/directives/platform/platform.directive.ts","../../../projects/cdk/directives/platform/taiga-ui-cdk-directives-platform.ts"],"sourcesContent":["import {Directive, inject, Input} from '@angular/core';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n standalone: true,\n selector: '[tuiPlatform]',\n providers: [\n {\n provide: TUI_PLATFORM,\n useFactory: () => inject(TuiPlatform).tuiPlatform,\n },\n ],\n host: {\n '[attr.data-platform]': 'tuiPlatform',\n },\n})\nexport class TuiPlatform {\n @Input()\n public tuiPlatform = inject(TUI_PLATFORM, {skipSelf: true});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgBa,WAAW,CAAA;AAbxB,IAAA,WAAA,GAAA;QAeW,IAAW,CAAA,WAAA,GAAG,MAAM,CAAC,YAAY,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAC9D;+GAHY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,WAAW,EAVT,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,aAAA,EAAA,EAAA,EAAA,SAAA,EAAA;AACP,YAAA;AACI,gBAAA,OAAO,EAAE,YAAY;gBACrB,UAAU,EAAE,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW;AACpD,aAAA;AACJ,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAKQ,WAAW,EAAA,UAAA,EAAA,CAAA;kBAbvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,YAAY;AACrB,4BAAA,UAAU,EAAE,MAAM,MAAM,CAAA,WAAA,CAAa,CAAC,WAAW;AACpD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,sBAAsB,EAAE,aAAa;AACxC,qBAAA;AACJ,iBAAA;8BAGU,WAAW,EAAA,CAAA;sBADjB;;;ACjBL;;AAEG;;;;"}
|
|
@@ -17,10 +17,10 @@ class TuiPopoverDirective extends PolymorpheusTemplate {
|
|
|
17
17
|
ngOnChanges() {
|
|
18
18
|
this.open$.next(this.open);
|
|
19
19
|
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
21
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPopoverDirective, isStandalone: true, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverDirective, decorators: [{
|
|
24
24
|
type: Directive
|
|
25
25
|
}] });
|
|
26
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-popover.mjs","sources":["../../../projects/cdk/directives/popover/popover.directive.ts","../../../projects/cdk/directives/popover/taiga-ui-cdk-directives-popover.ts"],"sourcesContent":["import {Directive, inject, type OnChanges} from '@angular/core';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {type TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {distinctUntilChanged, endWith, ignoreElements, share, Subject} from 'rxjs';\n\n@Directive()\nexport abstract class TuiPopoverDirective<T>\n extends PolymorpheusTemplate<TuiPopover<T, void>>\n implements OnChanges\n{\n private readonly service = inject(TuiPopoverService<T>);\n private readonly open$ = new Subject<boolean>();\n\n public options: Partial<T> = {};\n public open = false;\n\n public readonly openChange = this.open$.pipe(\n distinctUntilChanged(),\n tuiIfMap(() =>\n this.service.open(this, this.options).pipe(ignoreElements(), endWith(false)),\n ),\n share(),\n );\n\n public ngOnChanges(): void {\n this.open$.next(this.open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-popover.mjs","sources":["../../../projects/cdk/directives/popover/popover.directive.ts","../../../projects/cdk/directives/popover/taiga-ui-cdk-directives-popover.ts"],"sourcesContent":["import {Directive, inject, type OnChanges} from '@angular/core';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {type TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {distinctUntilChanged, endWith, ignoreElements, share, Subject} from 'rxjs';\n\n@Directive()\nexport abstract class TuiPopoverDirective<T>\n extends PolymorpheusTemplate<TuiPopover<T, void>>\n implements OnChanges\n{\n private readonly service = inject(TuiPopoverService<T>);\n private readonly open$ = new Subject<boolean>();\n\n public options: Partial<T> = {};\n public open = false;\n\n public readonly openChange = this.open$.pipe(\n distinctUntilChanged(),\n tuiIfMap(() =>\n this.service.open(this, this.options).pipe(ignoreElements(), endWith(false)),\n ),\n share(),\n );\n\n public ngOnChanges(): void {\n this.open$.next(this.open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOM,MAAgB,mBAClB,SAAQ,oBAAyC,CAAA;AAFrD,IAAA,WAAA,GAAA;;AAKqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,iBAAoB,EAAC;AACtC,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,OAAO,EAAW;QAExC,IAAO,CAAA,OAAA,GAAe,EAAE;QACxB,IAAI,CAAA,IAAA,GAAG,KAAK;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CACxC,oBAAoB,EAAE,EACtB,QAAQ,CAAC,MACL,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAC/E,EACD,KAAK,EAAE,CACV;AAKJ;IAHU,WAAW,GAAA;QACd,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;+GAnBZ,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,eAAA,EAAA,IAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBADxC;;;ACND;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ViewContainerRef, TemplateRef,
|
|
2
|
+
import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
|
|
3
3
|
import { tuiClamp } from '@taiga-ui/cdk/utils/math';
|
|
4
4
|
|
|
5
5
|
const MAX_VALUE = 0x10000;
|
|
@@ -17,12 +17,12 @@ class TuiRepeatTimesContext {
|
|
|
17
17
|
*/
|
|
18
18
|
class TuiRepeatTimes {
|
|
19
19
|
constructor() {
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
20
|
+
this.vcr = inject(ViewContainerRef);
|
|
21
|
+
this.template = inject((TemplateRef));
|
|
22
22
|
}
|
|
23
23
|
set tuiRepeatTimesOf(count) {
|
|
24
24
|
const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));
|
|
25
|
-
const { length } = this.
|
|
25
|
+
const { length } = this.vcr;
|
|
26
26
|
if (count < length) {
|
|
27
27
|
this.removeContainers(length - count);
|
|
28
28
|
}
|
|
@@ -31,19 +31,19 @@ class TuiRepeatTimes {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
addContainers(count) {
|
|
34
|
-
for (let index = this.
|
|
35
|
-
this.
|
|
34
|
+
for (let index = this.vcr.length; index < count; index++) {
|
|
35
|
+
this.vcr.createEmbeddedView(this.template, new TuiRepeatTimesContext(index));
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
removeContainers(amount) {
|
|
39
39
|
for (let index = 0; index < amount; index++) {
|
|
40
|
-
this.
|
|
40
|
+
this.vcr.remove();
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
44
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiRepeatTimes, isStandalone: true, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: { tuiRepeatTimesOf: "tuiRepeatTimesOf" }, ngImport: i0 }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, decorators: [{
|
|
47
47
|
type: Directive,
|
|
48
48
|
args: [{
|
|
49
49
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.mjs","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContext<number> {\n constructor(public readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n standalone: true,\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimes {\n private readonly
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.mjs","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContext<number> {\n constructor(public readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n standalone: true,\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimes {\n private readonly vcr = inject(ViewContainerRef);\n private readonly template = inject(TemplateRef<TuiRepeatTimesContext>);\n\n @Input()\n public set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));\n\n const {length} = this.vcr;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n private addContainers(count: number): void {\n for (let index = this.vcr.length; index < count; index++) {\n this.vcr.createEmbeddedView<TuiRepeatTimesContext>(\n this.template,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number): void {\n for (let index = 0; index < amount; index++) {\n this.vcr.remove();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA,MAAM,SAAS,GAAG,OAAO;MAEZ,qBAAqB,CAAA;AAC9B,IAAA,WAAA,CAA4B,SAAiB,EAAA;QAAjB,IAAS,CAAA,SAAA,GAAT,SAAS;;AACxC;AAED;;;;;;AAMG;MAKU,cAAc,CAAA;AAJ3B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,EAAC,WAAkC,EAAC;AA6BzE;IA3BG,IACW,gBAAgB,CAAC,KAAa,EAAA;AACrC,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AAE3D,QAAA,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC,GAAG;AAEzB,QAAA,IAAI,KAAK,GAAG,MAAM,EAAE;AAChB,YAAA,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,KAAK,CAAC;;aAClC;AACH,YAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC;;;AAI7B,IAAA,aAAa,CAAC,KAAa,EAAA;AAC/B,QAAA,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE;AACtD,YAAA,IAAI,CAAC,GAAG,CAAC,kBAAkB,CACvB,IAAI,CAAC,QAAQ,EACb,IAAI,qBAAqB,CAAC,KAAK,CAAC,CACnC;;;AAID,IAAA,gBAAgB,CAAC,MAAc,EAAA;AACnC,QAAA,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;AACzC,YAAA,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;;;+GA5BhB,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oCAAoC;AACjD,iBAAA;8BAMc,gBAAgB,EAAA,CAAA;sBAD1B;;;ACzBL;;AAEG;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, inject, EventEmitter,
|
|
2
|
+
import { Directive, inject, EventEmitter, Output, Input } from '@angular/core';
|
|
3
3
|
import { TuiElement } from '@taiga-ui/cdk/directives/element';
|
|
4
4
|
import { tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
5
5
|
|
|
6
6
|
class TuiResizable extends TuiElement {
|
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizable, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiResizable, isStandalone: true, selector: "[tuiResizable]", usesInheritance: true, ngImport: i0 }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizable, decorators: [{
|
|
11
11
|
type: Directive,
|
|
12
12
|
args: [{
|
|
13
13
|
standalone: true,
|
|
@@ -71,10 +71,10 @@ class TuiResizer {
|
|
|
71
71
|
}
|
|
72
72
|
this.tuiSizeChange.emit(size);
|
|
73
73
|
}
|
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
75
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
75
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiResizer, isStandalone: true, selector: "[tuiResizer]", inputs: { tuiResizer: "tuiResizer" }, outputs: { tuiSizeChange: "tuiSizeChange" }, host: { listeners: { "pointerdown.zoneless.prevent": "onPointerDown($event.x, $event.y)", "document:pointermove.zoneless": "onPointerMove($event)", "document:pointerup.zoneless": "onPointerUp()" }, properties: { "style.cursor": "cursor", "style.touchAction": "\"none\"" } }, ngImport: i0 }); }
|
|
76
76
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizer, decorators: [{
|
|
78
78
|
type: Directive,
|
|
79
79
|
args: [{
|
|
80
80
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-resizer.mjs","sources":["../../../projects/cdk/directives/resizer/resizable.directive.ts","../../../projects/cdk/directives/resizer/resizer.directive.ts","../../../projects/cdk/directives/resizer/taiga-ui-cdk-directives-resizer.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TuiElement} from '@taiga-ui/cdk/directives/element';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizable]',\n})\nexport class TuiResizable extends TuiElement {}\n","import {\n Directive,\n type ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TuiResizable} from './resizable.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizer]',\n host: {\n '[style.cursor]': 'cursor',\n '[style.touchAction]': '\"none\"',\n '(pointerdown.zoneless.prevent)': 'onPointerDown($event.x, $event.y)',\n '(document:pointermove.zoneless)': 'onPointerMove($event)',\n '(document:pointerup.zoneless)': 'onPointerUp()',\n },\n})\nexport class TuiResizer {\n private readonly resizable: ElementRef<HTMLElement> = inject(TuiResizable);\n\n protected x = NaN;\n protected y = NaN;\n protected width = 0;\n protected height = 0;\n\n @Input()\n public tuiResizer: readonly [x: number, y: number] = [0, 0];\n\n @Output()\n public readonly tuiSizeChange = new EventEmitter<readonly [x: number, y: number]>();\n\n protected get cursor(): string {\n if (!this.tuiResizer[0]) {\n return 'ns-resize';\n }\n\n if (!this.tuiResizer[1]) {\n return 'ew-resize';\n }\n\n if (this.tuiResizer[0] * this.tuiResizer[1] > 0) {\n return 'nwse-resize';\n }\n\n return 'nesw-resize';\n }\n\n protected onPointerDown(x: number, y: number): void {\n this.x = x;\n this.y = y;\n this.width = this.resizable.nativeElement.clientWidth;\n this.height = this.resizable.nativeElement.clientHeight;\n }\n\n protected onPointerMove({x, y, buttons}: PointerEvent): void {\n if (!buttons) {\n this.onPointerUp();\n } else {\n this.onMove(x, y);\n }\n }\n\n protected onPointerUp(): void {\n this.x = NaN;\n }\n\n protected onMove(x: number, y: number): void {\n if (Number.isNaN(this.x)) {\n return;\n }\n\n const {style} = this.resizable.nativeElement;\n const size = [\n this.width + this.tuiResizer[0] * (x - this.x),\n this.height + this.tuiResizer[1] * (y - this.y),\n ] as const;\n\n if (this.tuiResizer[0]) {\n style.width = tuiPx(size[0]);\n }\n\n if (this.tuiResizer[1]) {\n style.height = tuiPx(size[1]);\n }\n\n this.tuiSizeChange.emit(size);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-resizer.mjs","sources":["../../../projects/cdk/directives/resizer/resizable.directive.ts","../../../projects/cdk/directives/resizer/resizer.directive.ts","../../../projects/cdk/directives/resizer/taiga-ui-cdk-directives-resizer.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TuiElement} from '@taiga-ui/cdk/directives/element';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizable]',\n})\nexport class TuiResizable extends TuiElement {}\n","import {\n Directive,\n type ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TuiResizable} from './resizable.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizer]',\n host: {\n '[style.cursor]': 'cursor',\n '[style.touchAction]': '\"none\"',\n '(pointerdown.zoneless.prevent)': 'onPointerDown($event.x, $event.y)',\n '(document:pointermove.zoneless)': 'onPointerMove($event)',\n '(document:pointerup.zoneless)': 'onPointerUp()',\n },\n})\nexport class TuiResizer {\n private readonly resizable: ElementRef<HTMLElement> = inject(TuiResizable);\n\n protected x = NaN;\n protected y = NaN;\n protected width = 0;\n protected height = 0;\n\n @Input()\n public tuiResizer: readonly [x: number, y: number] = [0, 0];\n\n @Output()\n public readonly tuiSizeChange = new EventEmitter<readonly [x: number, y: number]>();\n\n protected get cursor(): string {\n if (!this.tuiResizer[0]) {\n return 'ns-resize';\n }\n\n if (!this.tuiResizer[1]) {\n return 'ew-resize';\n }\n\n if (this.tuiResizer[0] * this.tuiResizer[1] > 0) {\n return 'nwse-resize';\n }\n\n return 'nesw-resize';\n }\n\n protected onPointerDown(x: number, y: number): void {\n this.x = x;\n this.y = y;\n this.width = this.resizable.nativeElement.clientWidth;\n this.height = this.resizable.nativeElement.clientHeight;\n }\n\n protected onPointerMove({x, y, buttons}: PointerEvent): void {\n if (!buttons) {\n this.onPointerUp();\n } else {\n this.onMove(x, y);\n }\n }\n\n protected onPointerUp(): void {\n this.x = NaN;\n }\n\n protected onMove(x: number, y: number): void {\n if (Number.isNaN(this.x)) {\n return;\n }\n\n const {style} = this.resizable.nativeElement;\n const size = [\n this.width + this.tuiResizer[0] * (x - this.x),\n this.height + this.tuiResizer[1] * (y - this.y),\n ] as const;\n\n if (this.tuiResizer[0]) {\n style.width = tuiPx(size[0]);\n }\n\n if (this.tuiResizer[1]) {\n style.height = tuiPx(size[1]);\n }\n\n this.tuiSizeChange.emit(size);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, Injectable,
|
|
2
|
+
import { InjectionToken, inject, Injectable, Output, Directive } from '@angular/core';
|
|
3
3
|
import { DOCUMENT } from '@angular/common';
|
|
4
4
|
import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
|
|
5
5
|
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
@@ -41,12 +41,12 @@ class TuiSwipeService extends Observable {
|
|
|
41
41
|
}), filter(tuiIsPresent))
|
|
42
42
|
.subscribe(subscriber));
|
|
43
43
|
}
|
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
45
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
45
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipeService }); }
|
|
46
46
|
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipeService, decorators: [{
|
|
48
48
|
type: Injectable
|
|
49
|
-
}], ctorParameters:
|
|
49
|
+
}], ctorParameters: () => [] });
|
|
50
50
|
function tuiGetSwipeDirection(deltaX, deltaY) {
|
|
51
51
|
if (Math.abs(deltaY) > Math.abs(deltaX)) {
|
|
52
52
|
return deltaY > 0 ? 'top' : 'bottom';
|
|
@@ -58,10 +58,10 @@ class TuiSwipe {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
this.tuiSwipe = inject(TuiSwipeService);
|
|
60
60
|
}
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipe, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
62
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiSwipe, isStandalone: true, selector: "[tuiSwipe]", outputs: { tuiSwipe: "tuiSwipe" }, providers: [TuiSwipeService], ngImport: i0 }); }
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipe, decorators: [{
|
|
65
65
|
type: Directive,
|
|
66
66
|
args: [{
|
|
67
67
|
standalone: true,
|