@taiga-ui/cdk 4.51.0 → 4.52.0-canary.34c26c6
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/portals.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/directives/auto-focus/autofocus.options.d.ts +2 -2
- package/directives/popover/popover.directive.d.ts +1 -1
- package/fesm2022/taiga-ui-cdk-classes.mjs +11 -12
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +5 -5
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs +7 -7
- 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 +4 -4
- 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-for.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-for.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 +5 -5
- 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 +8 -8
- 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 +4 -4
- 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-zoom.mjs +7 -7
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
- 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-services.mjs +17 -15
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-tokens.mjs +6 -6
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- 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 -0
- package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- 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 +6 -2
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/package.json +15 -127
- package/pipes/obfuscate/obfuscate.options.d.ts +1 -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 +2 -1
- package/schematics/migrate-tui-let/index.js.map +1 -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/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 +2 -2
- 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 +1 -0
- 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/replace-functions.js +2 -2
- package/schematics/ng-update/v4/steps/replace-functions.js.map +1 -0
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +2 -2
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -0
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +2 -2
- 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 +2 -2
- package/schematics/ng-update/v5/index.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 -3
- 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 +12 -12
- 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 +6 -6
- 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/utils/di/create-options.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 +1 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, NgZone,
|
|
3
|
+
import { inject, NgZone, Input, Output, Directive } from '@angular/core';
|
|
4
4
|
import { NgControl } from '@angular/forms';
|
|
5
5
|
import { tuiZoneOptimized } from '@taiga-ui/cdk/observables';
|
|
6
6
|
import { TUI_ACTIVE_ELEMENT } from '@taiga-ui/cdk/tokens';
|
|
@@ -49,13 +49,13 @@ class TuiActiveZone {
|
|
|
49
49
|
removeSubActiveZone(activeZone) {
|
|
50
50
|
this.subActiveZones = tuiArrayRemove(this.subActiveZones, this.subActiveZones.indexOf(activeZone));
|
|
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.9", ngImport: i0, type: TuiActiveZone, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
53
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiActiveZone, isStandalone: true, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: { tuiActiveZoneParentSetter: ["tuiActiveZoneParent", "tuiActiveZoneParentSetter"] }, outputs: { tuiActiveZoneChange: "tuiActiveZoneChange" }, host: { listeners: { "document:mousedown.zoneless": "(0)" } }, exportAs: ["tuiActiveZone"], ngImport: i0 }); }
|
|
54
54
|
}
|
|
55
55
|
__decorate([
|
|
56
56
|
tuiPure
|
|
57
57
|
], TuiActiveZone.prototype, "setZone", null);
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiActiveZone, decorators: [{
|
|
59
59
|
type: Directive,
|
|
60
60
|
args: [{
|
|
61
61
|
standalone: true,
|
|
@@ -65,7 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
65
65
|
'(document:mousedown.zoneless)': '(0)',
|
|
66
66
|
},
|
|
67
67
|
}]
|
|
68
|
-
}], ctorParameters:
|
|
68
|
+
}], ctorParameters: () => [], propDecorators: { tuiActiveZoneChange: [{
|
|
69
69
|
type: Output
|
|
70
70
|
}], tuiActiveZoneParentSetter: [{
|
|
71
71
|
type: Input,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-active-zone.mjs","sources":["../../../projects/cdk/directives/active-zone/active-zone.directive.ts","../../../projects/cdk/directives/active-zone/taiga-ui-cdk-directives-active-zone.ts"],"sourcesContent":["import {Directive, inject, Input, NgZone, type OnDestroy, Output} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens';\nimport {tuiArrayRemove, tuiInjectElement, tuiPure} from '@taiga-ui/cdk/utils';\nimport {\n distinctUntilChanged,\n map,\n type Observable,\n share,\n skip,\n startWith,\n tap,\n} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector:\n '[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)',\n exportAs: 'tuiActiveZone',\n host: {\n '(document:mousedown.zoneless)': '(0)',\n },\n})\nexport class TuiActiveZone implements OnDestroy {\n // TODO: Should we remove in v5? It's no longer used in Taiga UI\n private readonly control: any = inject(NgControl, {self: true, optional: true});\n private readonly active$ = inject<Observable<Element | null>>(TUI_ACTIVE_ELEMENT);\n private readonly zone = inject(NgZone);\n private readonly el = tuiInjectElement();\n private tuiActiveZoneParent: TuiActiveZone | null = null;\n private subActiveZones: readonly TuiActiveZone[] = [];\n private readonly directParentActiveZone = inject(TuiActiveZone, {\n skipSelf: true,\n optional: true,\n });\n\n @Output()\n public readonly tuiActiveZoneChange = this.active$.pipe(\n map((element) => !!element && this.contains(element)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tap((active) => {\n if (!active && typeof this.control?.valueAccessor.onTouched === 'function') {\n this.control.valueAccessor.onTouched();\n }\n }),\n tuiZoneOptimized(this.zone),\n share(),\n );\n\n constructor() {\n this.directParentActiveZone?.addSubActiveZone(this);\n }\n\n @Input('tuiActiveZoneParent')\n public set tuiActiveZoneParentSetter(zone: TuiActiveZone | null) {\n this.setZone(zone);\n }\n\n public ngOnDestroy(): void {\n this.directParentActiveZone?.removeSubActiveZone(this);\n this.tuiActiveZoneParent?.removeSubActiveZone(this);\n }\n\n public contains(node: Node): boolean {\n return (\n this.el.contains(node) ||\n this.subActiveZones.some(\n (item, index, array) =>\n array.indexOf(item) === index && item.contains(node),\n )\n );\n }\n\n @tuiPure\n private setZone(zone: TuiActiveZone | null): void {\n this.tuiActiveZoneParent?.removeSubActiveZone(this);\n zone?.addSubActiveZone(this);\n this.tuiActiveZoneParent = zone;\n }\n\n private addSubActiveZone(activeZone: TuiActiveZone): void {\n this.subActiveZones = [...this.subActiveZones, activeZone];\n }\n\n private removeSubActiveZone(activeZone: TuiActiveZone): void {\n this.subActiveZones = tuiArrayRemove(\n this.subActiveZones,\n this.subActiveZones.indexOf(activeZone),\n );\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-active-zone.mjs","sources":["../../../projects/cdk/directives/active-zone/active-zone.directive.ts","../../../projects/cdk/directives/active-zone/taiga-ui-cdk-directives-active-zone.ts"],"sourcesContent":["import {Directive, inject, Input, NgZone, type OnDestroy, Output} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens';\nimport {tuiArrayRemove, tuiInjectElement, tuiPure} from '@taiga-ui/cdk/utils';\nimport {\n distinctUntilChanged,\n map,\n type Observable,\n share,\n skip,\n startWith,\n tap,\n} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector:\n '[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)',\n exportAs: 'tuiActiveZone',\n host: {\n '(document:mousedown.zoneless)': '(0)',\n },\n})\nexport class TuiActiveZone implements OnDestroy {\n // TODO: Should we remove in v5? It's no longer used in Taiga UI\n private readonly control: any = inject(NgControl, {self: true, optional: true});\n private readonly active$ = inject<Observable<Element | null>>(TUI_ACTIVE_ELEMENT);\n private readonly zone = inject(NgZone);\n private readonly el = tuiInjectElement();\n private tuiActiveZoneParent: TuiActiveZone | null = null;\n private subActiveZones: readonly TuiActiveZone[] = [];\n private readonly directParentActiveZone = inject(TuiActiveZone, {\n skipSelf: true,\n optional: true,\n });\n\n @Output()\n public readonly tuiActiveZoneChange = this.active$.pipe(\n map((element) => !!element && this.contains(element)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tap((active) => {\n if (!active && typeof this.control?.valueAccessor.onTouched === 'function') {\n this.control.valueAccessor.onTouched();\n }\n }),\n tuiZoneOptimized(this.zone),\n share(),\n );\n\n constructor() {\n this.directParentActiveZone?.addSubActiveZone(this);\n }\n\n @Input('tuiActiveZoneParent')\n public set tuiActiveZoneParentSetter(zone: TuiActiveZone | null) {\n this.setZone(zone);\n }\n\n public ngOnDestroy(): void {\n this.directParentActiveZone?.removeSubActiveZone(this);\n this.tuiActiveZoneParent?.removeSubActiveZone(this);\n }\n\n public contains(node: Node): boolean {\n return (\n this.el.contains(node) ||\n this.subActiveZones.some(\n (item, index, array) =>\n array.indexOf(item) === index && item.contains(node),\n )\n );\n }\n\n @tuiPure\n private setZone(zone: TuiActiveZone | null): void {\n this.tuiActiveZoneParent?.removeSubActiveZone(this);\n zone?.addSubActiveZone(this);\n this.tuiActiveZoneParent = zone;\n }\n\n private addSubActiveZone(activeZone: TuiActiveZone): void {\n this.subActiveZones = [...this.subActiveZones, activeZone];\n }\n\n private removeSubActiveZone(activeZone: TuiActiveZone): void {\n this.subActiveZones = tuiArrayRemove(\n this.subActiveZones,\n this.subActiveZones.indexOf(activeZone),\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAwBa,aAAa,CAAA;AA4BtB,IAAA,WAAA,GAAA;;AA1BiB,QAAA,IAAA,CAAA,OAAO,GAAQ,MAAM,CAAC,SAAS,EAAE,EAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;AAC9D,QAAA,IAAA,CAAA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;;AAqDd,UAAA,CAAA;IADP;AAKA,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,SAAA,EAAA,IAAA,CAAA;2FAzDQ,aAAa,EAAA,UAAA,EAAA,CAAA;kBATzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EACJ,qHAAqH;AACzH,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,IAAI,EAAE;AACF,wBAAA,+BAA+B,EAAE,KAAK;AACzC,qBAAA;AACJ,iBAAA;wDAemB,mBAAmB,EAAA,CAAA;sBADlC;gBAoBU,yBAAyB,EAAA,CAAA;sBADnC,KAAK;uBAAC,qBAAqB;gBAqBpB,OAAO,EAAA,EAAA,EAAA,EAAA,CAAA;;AC7EnB;;AAEG;;;;"}
|
|
@@ -65,10 +65,10 @@ class TuiAnimated {
|
|
|
65
65
|
this.el.classList.remove(TUI_ENTER);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
68
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiAnimated, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
69
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiAnimated, isStandalone: true, selector: "[tuiAnimated]", host: { listeners: { "animationend.self": "remove()", "animationcancel.self": "remove()" }, classAttribute: "tui-enter" }, ngImport: i0 }); }
|
|
70
70
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiAnimated, decorators: [{
|
|
72
72
|
type: Directive,
|
|
73
73
|
args: [{
|
|
74
74
|
standalone: true,
|
|
@@ -79,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
79
79
|
'(animationcancel.self)': 'remove()',
|
|
80
80
|
},
|
|
81
81
|
}]
|
|
82
|
-
}], ctorParameters:
|
|
82
|
+
}], ctorParameters: () => [] });
|
|
83
83
|
|
|
84
84
|
class TuiAnimatedParent {
|
|
85
85
|
constructor() {
|
|
@@ -90,10 +90,10 @@ class TuiAnimatedParent {
|
|
|
90
90
|
this.el.classList.remove(TUI_ENTER);
|
|
91
91
|
this.renderer.data[TUI_LEAVE] = Array.from(this.el.children);
|
|
92
92
|
}
|
|
93
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
94
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
93
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiAnimatedParent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
94
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiAnimatedParent, isStandalone: true, selector: "[tuiAnimatedParent]", host: { listeners: { "waMutationObserver": "handle()" } }, providers: [provideMutationObserverInit({ childList: true })], hostDirectives: [{ directive: TuiAnimated }, { directive: i2.WaMutationObserver, outputs: ["waMutationObserver", "waMutationObserver"] }], ngImport: i0 }); }
|
|
95
95
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiAnimatedParent, decorators: [{
|
|
97
97
|
type: Directive,
|
|
98
98
|
args: [{
|
|
99
99
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-animated.mjs","sources":["../../../projects/cdk/directives/animated/animated.directive.ts","../../../projects/cdk/directives/animated/animated-parent.directive.ts","../../../projects/cdk/directives/animated/taiga-ui-cdk-directives-animated.ts"],"sourcesContent":["import {\n afterNextRender,\n ApplicationRef,\n Directive,\n inject,\n type OnDestroy,\n ViewContainerRef,\n} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nexport const TUI_ENTER = 'tui-enter';\nexport const TUI_LEAVE = 'tui-leave';\n\n@Directive({\n standalone: true,\n selector: '[tuiAnimated]',\n host: {\n class: TUI_ENTER,\n '(animationend.self)': 'remove()',\n '(animationcancel.self)': 'remove()',\n },\n})\nexport class TuiAnimated implements OnDestroy {\n // @ts-ignore https://github.com/angular/angular/blob/main/packages/core/src/render3/interfaces/view.ts#L56\n private readonly renderer = inject(ViewContainerRef)._hostLView?.[11];\n private readonly el = tuiInjectElement();\n private readonly app = inject(ApplicationRef);\n\n constructor() {\n afterNextRender(() => this.remove());\n\n if (!this.renderer) {\n return;\n }\n\n // delegate is used in Angular Animations renderer\n const renderer = this.renderer.delegate || this.renderer;\n const {removeChild, data} = renderer;\n\n if (data[TUI_LEAVE]) {\n data[TUI_LEAVE].push(this.el);\n\n return;\n }\n\n data[TUI_LEAVE] = [this.el];\n\n afterNextRender(() => {\n renderer.removeChild = (parent: Node, el: Node, host?: boolean) => {\n const remove = (): void => removeChild.call(renderer, parent, el, host);\n const elements: Element[] = data[TUI_LEAVE];\n const element = elements.find((leave) => el.contains(leave));\n\n if (!element) {\n remove();\n\n return;\n }\n\n element.classList.remove(TUI_ENTER);\n\n const {length} = element.getAnimations?.() || [];\n\n element.classList.add(TUI_LEAVE);\n\n const animations = element.getAnimations?.() ?? [];\n const last = animations[animations.length - 1];\n const finish = (): void => {\n if (!parent || parent.contains(el)) {\n remove();\n this.app.tick();\n }\n };\n\n if (animations.length > length && last) {\n last.onfinish = finish;\n last.oncancel = finish;\n } else {\n remove();\n }\n };\n });\n }\n\n public ngOnDestroy(): void {\n const data = this.renderer?.data || {[TUI_LEAVE]: []};\n\n setTimeout(() => {\n data[TUI_LEAVE] = data[TUI_LEAVE].filter((e: Element) => e !== this.el);\n });\n }\n\n protected remove(): void {\n if (this.el.isConnected && !this.el.getAnimations?.().length) {\n this.el.classList.remove(TUI_ENTER);\n }\n }\n}\n","import {Directive, inject, Renderer2} from '@angular/core';\nimport {\n provideMutationObserverInit,\n WaMutationObserver,\n} from '@ng-web-apis/mutation-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TUI_ENTER, TUI_LEAVE, TuiAnimated} from './animated.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiAnimatedParent]',\n providers: [provideMutationObserverInit({childList: true})],\n hostDirectives: [\n TuiAnimated,\n {\n directive: WaMutationObserver,\n outputs: ['waMutationObserver'],\n },\n ],\n host: {\n '(waMutationObserver)': 'handle()',\n },\n})\nexport class TuiAnimatedParent {\n private readonly el = tuiInjectElement();\n private readonly renderer = inject(Renderer2);\n\n protected handle(): void {\n this.el.classList.remove(TUI_ENTER);\n this.renderer.data[TUI_LEAVE] = Array.from(this.el.children);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiAnimated"],"mappings":";;;;;;AAUO,MAAM,SAAS,GAAG
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-animated.mjs","sources":["../../../projects/cdk/directives/animated/animated.directive.ts","../../../projects/cdk/directives/animated/animated-parent.directive.ts","../../../projects/cdk/directives/animated/taiga-ui-cdk-directives-animated.ts"],"sourcesContent":["import {\n afterNextRender,\n ApplicationRef,\n Directive,\n inject,\n type OnDestroy,\n ViewContainerRef,\n} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nexport const TUI_ENTER = 'tui-enter';\nexport const TUI_LEAVE = 'tui-leave';\n\n@Directive({\n standalone: true,\n selector: '[tuiAnimated]',\n host: {\n class: TUI_ENTER,\n '(animationend.self)': 'remove()',\n '(animationcancel.self)': 'remove()',\n },\n})\nexport class TuiAnimated implements OnDestroy {\n // @ts-ignore https://github.com/angular/angular/blob/main/packages/core/src/render3/interfaces/view.ts#L56\n private readonly renderer = inject(ViewContainerRef)._hostLView?.[11];\n private readonly el = tuiInjectElement();\n private readonly app = inject(ApplicationRef);\n\n constructor() {\n afterNextRender(() => this.remove());\n\n if (!this.renderer) {\n return;\n }\n\n // delegate is used in Angular Animations renderer\n const renderer = this.renderer.delegate || this.renderer;\n const {removeChild, data} = renderer;\n\n if (data[TUI_LEAVE]) {\n data[TUI_LEAVE].push(this.el);\n\n return;\n }\n\n data[TUI_LEAVE] = [this.el];\n\n afterNextRender(() => {\n renderer.removeChild = (parent: Node, el: Node, host?: boolean) => {\n const remove = (): void => removeChild.call(renderer, parent, el, host);\n const elements: Element[] = data[TUI_LEAVE];\n const element = elements.find((leave) => el.contains(leave));\n\n if (!element) {\n remove();\n\n return;\n }\n\n element.classList.remove(TUI_ENTER);\n\n const {length} = element.getAnimations?.() || [];\n\n element.classList.add(TUI_LEAVE);\n\n const animations = element.getAnimations?.() ?? [];\n const last = animations[animations.length - 1];\n const finish = (): void => {\n if (!parent || parent.contains(el)) {\n remove();\n this.app.tick();\n }\n };\n\n if (animations.length > length && last) {\n last.onfinish = finish;\n last.oncancel = finish;\n } else {\n remove();\n }\n };\n });\n }\n\n public ngOnDestroy(): void {\n const data = this.renderer?.data || {[TUI_LEAVE]: []};\n\n setTimeout(() => {\n data[TUI_LEAVE] = data[TUI_LEAVE].filter((e: Element) => e !== this.el);\n });\n }\n\n protected remove(): void {\n if (this.el.isConnected && !this.el.getAnimations?.().length) {\n this.el.classList.remove(TUI_ENTER);\n }\n }\n}\n","import {Directive, inject, Renderer2} from '@angular/core';\nimport {\n provideMutationObserverInit,\n WaMutationObserver,\n} from '@ng-web-apis/mutation-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TUI_ENTER, TUI_LEAVE, TuiAnimated} from './animated.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiAnimatedParent]',\n providers: [provideMutationObserverInit({childList: true})],\n hostDirectives: [\n TuiAnimated,\n {\n directive: WaMutationObserver,\n outputs: ['waMutationObserver'],\n },\n ],\n host: {\n '(waMutationObserver)': 'handle()',\n },\n})\nexport class TuiAnimatedParent {\n private readonly el = tuiInjectElement();\n private readonly renderer = inject(Renderer2);\n\n protected handle(): void {\n this.el.classList.remove(TUI_ENTER);\n this.renderer.data[TUI_LEAVE] = Array.from(this.el.children);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiAnimated"],"mappings":";;;;;;AAUO,MAAM,SAAS,GAAG;AAClB,MAAM,SAAS,GAAG;MAWZ,WAAW,CAAA;AAMpB,IAAA,WAAA,GAAA;;QAJiB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC,UAAU,GAAG,EAAE,CAAC;QACpD,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,cAAc,CAAC;QAGzC,eAAe,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;AAEpC,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAChB;QACJ;;QAGA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ;AACxD,QAAA,MAAM,EAAC,WAAW,EAAE,IAAI,EAAC,GAAG,QAAQ;AAEpC,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE;YACjB,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAE7B;QACJ;QAEA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;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AA,IAAI,EAAE;AACF,wBAAA,sBAAsB,EAAE,UAAU;AACrC,qBAAA;AACJ,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, ElementRef, Renderer2, NgZone, inject, DestroyRef,
|
|
3
|
+
import { InjectionToken, ElementRef, Renderer2, NgZone, inject, DestroyRef, Input, Directive } from '@angular/core';
|
|
4
4
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
5
|
import { race, timer, throttleTime, map, skipWhile, take } from 'rxjs';
|
|
6
6
|
import { WA_ANIMATION_FRAME, WA_WINDOW } from '@ng-web-apis/common';
|
|
@@ -167,7 +167,7 @@ class TuiIosAutofocusHandler extends AbstractTuiAutofocusHandler {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
const [TUI_AUTOFOCUS_OPTIONS, tuiAutoFocusOptionsProvider] = tuiCreateOptions({
|
|
170
|
-
delay: NaN,
|
|
170
|
+
delay: NaN, // NaN = no delay/sync
|
|
171
171
|
query: 'input, textarea, select, [contenteditable]',
|
|
172
172
|
preventScroll: false,
|
|
173
173
|
});
|
|
@@ -212,10 +212,10 @@ class TuiAutoFocus {
|
|
|
212
212
|
.subscribe(() => this.handler.setFocus());
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
216
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiAutoFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
216
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.9", type: TuiAutoFocus, isStandalone: true, selector: "[tuiAutoFocus]", inputs: { autoFocus: ["tuiAutoFocus", "autoFocus", coerceBooleanProperty] }, providers: TUI_AUTOFOCUS_PROVIDERS, ngImport: i0 }); }
|
|
217
217
|
}
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiAutoFocus, decorators: [{
|
|
219
219
|
type: Directive,
|
|
220
220
|
args: [{
|
|
221
221
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-auto-focus.mjs","sources":["../../../projects/cdk/directives/auto-focus/handlers/abstract.handler.ts","../../../projects/cdk/directives/auto-focus/handlers/default.handler.ts","../../../projects/cdk/directives/auto-focus/handlers/ios.handler.ts","../../../projects/cdk/directives/auto-focus/autofocus.options.ts","../../../projects/cdk/directives/auto-focus/autofocus.directive.ts","../../../projects/cdk/directives/auto-focus/handlers/sync.handler.ts","../../../projects/cdk/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.ts"],"sourcesContent":["import {type ElementRef} from '@angular/core';\n\nimport {type TuiAutofocusHandler, type TuiAutofocusOptions} from '../autofocus.options';\n\nexport abstract class AbstractTuiAutofocusHandler implements TuiAutofocusHandler {\n constructor(\n protected readonly el: ElementRef<HTMLElement>,\n protected readonly options: TuiAutofocusOptions,\n ) {}\n\n public abstract setFocus(): void;\n\n protected get element(): HTMLElement {\n // TODO: Remove when legacy controls are dropped\n const el = this.el.nativeElement.tagName.includes('-')\n ? this.el.nativeElement.querySelector<HTMLElement>(this.options.query)\n : this.el.nativeElement;\n\n return el || this.el.nativeElement;\n }\n\n protected get isTextFieldElement(): boolean {\n return this.element.matches(this.options.query);\n }\n}\n","import {type ElementRef, type NgZone} from '@angular/core';\nimport {tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {map, type Observable, race, skipWhile, take, throttleTime, timer} from 'rxjs';\n\nimport {type TuiAutofocusOptions} from '../autofocus.options';\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TIMEOUT = 1000;\nconst NG_ANIMATION_SELECTOR = '.ng-animating';\n\nexport class TuiDefaultAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n el: ElementRef<HTMLElement>,\n private readonly animationFrame$: Observable<number>,\n private readonly zone: NgZone,\n options: TuiAutofocusOptions,\n ) {\n super(el, options);\n }\n\n public setFocus(): void {\n if (this.isTextFieldElement) {\n race(\n timer(this.options.delay || TIMEOUT),\n this.animationFrame$.pipe(\n throttleTime(100, tuiZonefreeScheduler(this.zone)),\n map(() => this.element.closest(NG_ANIMATION_SELECTOR)),\n skipWhile(Boolean),\n take(1),\n ),\n ).subscribe(() =>\n this.element.focus({preventScroll: this.options.preventScroll}),\n );\n } else {\n this.element.focus({preventScroll: true});\n }\n }\n}\n","import {type ElementRef, type NgZone, type Renderer2} from '@angular/core';\nimport {tuiIsPresent, tuiPx} from '@taiga-ui/cdk/utils';\n\nimport {type TuiAutofocusOptions} from '../autofocus.options';\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TEXTFIELD_ATTRS = [\n 'type',\n 'inputMode',\n 'autocomplete',\n 'accept',\n 'min',\n 'max',\n 'step',\n 'pattern',\n 'size',\n 'maxlength',\n] as const;\n\nexport class TuiIosAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n el: ElementRef<HTMLElement>,\n private readonly renderer: Renderer2,\n private readonly zone: NgZone,\n private readonly win: Window,\n options: TuiAutofocusOptions,\n ) {\n super(el, options);\n }\n\n public setFocus(): void {\n if (this.isTextFieldElement) {\n this.zone.runOutsideAngular(() => this.iosWebkitAutofocus());\n } else {\n this.element.focus({preventScroll: true});\n }\n }\n\n private iosWebkitAutofocus(): void {\n const fakeInput: HTMLInputElement = this.makeFakeInput();\n const duration = this.getDurationTimeBeforeFocus();\n let fakeFocusTimeoutId = 0;\n let elementFocusTimeoutId = 0;\n\n const blurHandler = (): void => fakeInput.focus({preventScroll: true});\n const focusHandler = (): void => {\n clearTimeout(fakeFocusTimeoutId);\n\n fakeFocusTimeoutId = this.win.setTimeout(() => {\n clearTimeout(elementFocusTimeoutId);\n\n fakeInput.removeEventListener('blur', blurHandler);\n fakeInput.removeEventListener('focus', focusHandler);\n\n elementFocusTimeoutId = this.win.setTimeout(() => {\n this.element.focus({preventScroll: this.options.preventScroll});\n fakeInput.remove();\n }, duration);\n });\n };\n\n fakeInput.addEventListener('blur', blurHandler, {once: true});\n fakeInput.addEventListener('focus', focusHandler);\n\n if (this.insideDialog()) {\n this.win.document.body.appendChild(fakeInput);\n } else {\n this.element.parentElement?.appendChild(fakeInput);\n }\n\n fakeInput.focus({preventScroll: true});\n }\n\n /**\n * @note:\n * emulate textfield position in layout with cursor\n * before focus to real textfield element\n *\n * required note:\n * [fakeInput.readOnly = true] ~\n * don't use {readOnly: true} value, it's doesn't work for emulate autofill\n *\n * [fakeInput.style.opacity = 0] ~\n * don't use {opacity: 0}, sometimes it's doesn't work for emulate real input\n *\n * [fakeInput.style.fontSize = 16px] ~\n * disable possible auto zoom\n *\n * [fakeInput.style.top/left] ~\n * emulate position cursor before focus to real textfield element\n */\n private makeFakeInput(): HTMLInputElement {\n const fakeInput: HTMLInputElement = this.renderer.createElement('input');\n const rect: DOMRect = this.element.getBoundingClientRect();\n\n this.patchFakeInputFromFocusableElement(fakeInput);\n\n fakeInput.style.height = tuiPx(rect.height);\n fakeInput.style.width = tuiPx(rect.width / 2);\n fakeInput.style.position = 'fixed';\n fakeInput.style.zIndex = '-99999999';\n fakeInput.style.caretColor = 'transparent';\n fakeInput.style.border = 'none';\n fakeInput.style.outline = 'none';\n fakeInput.style.color = 'transparent';\n fakeInput.style.background = 'transparent';\n fakeInput.style.cursor = 'none';\n fakeInput.style.fontSize = tuiPx(16);\n fakeInput.style.top = tuiPx(rect.top);\n fakeInput.style.left = tuiPx(rect.left);\n\n return fakeInput;\n }\n\n private getDurationTimeBeforeFocus(): number {\n return (\n parseFloat(\n this.win\n .getComputedStyle(this.element)\n .getPropertyValue('--tui-duration'),\n ) || 0\n );\n }\n\n /**\n * @note:\n * unfortunately, in older versions of iOS\n * there is a bug that the fake input cursor\n * will move along with the dialog animation\n * and then that dialog will be shaking\n */\n private insideDialog(): boolean {\n return !!this.element.closest('tui-dialog');\n }\n\n /**\n * @note:\n * inherit basic attributes values from real input\n * for help iOS detect what do you want see on keyboard,\n * for example [inputMode=numeric, autocomplete=cc-number]\n */\n private patchFakeInputFromFocusableElement(fakeInput: HTMLInputElement): void {\n TEXTFIELD_ATTRS.forEach((attr) => {\n const value = this.element.getAttribute(attr);\n\n if (tuiIsPresent(value)) {\n fakeInput.setAttribute(attr, value);\n }\n });\n }\n}\n","import {ElementRef, InjectionToken, NgZone, Renderer2} from '@angular/core';\nimport {WA_ANIMATION_FRAME, WA_WINDOW} from '@ng-web-apis/common';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils';\nimport {type Observable} from 'rxjs';\n\nimport {TuiDefaultAutofocusHandler} from './handlers/default.handler';\nimport {TuiIosAutofocusHandler} from './handlers/ios.handler';\n\nexport interface TuiAutofocusHandler {\n setFocus(): void;\n}\n\nexport interface TuiAutofocusOptions {\n readonly delay: number;\n readonly query: string;\n readonly preventScroll: boolean;\n}\n\nexport const [TUI_AUTOFOCUS_OPTIONS, tuiAutoFocusOptionsProvider] =\n tuiCreateOptions<TuiAutofocusOptions>({\n delay: NaN, // NaN = no delay/sync\n query: 'input, textarea, select, [contenteditable]',\n preventScroll: false,\n });\n\nexport const TUI_AUTOFOCUS_HANDLER = new InjectionToken<TuiAutofocusHandler>(\n ngDevMode ? 'TUI_AUTOFOCUS_HANDLER' : '',\n);\n\nexport const TUI_AUTOFOCUS_PROVIDERS = [\n {\n provide: TUI_AUTOFOCUS_HANDLER,\n deps: [\n ElementRef,\n WA_ANIMATION_FRAME,\n Renderer2,\n NgZone,\n WA_WINDOW,\n TUI_IS_IOS,\n TUI_AUTOFOCUS_OPTIONS,\n ],\n\n // eslint-disable-next-line @typescript-eslint/max-params,max-params\n useFactory: (\n el: ElementRef<HTMLElement>,\n animationFrame$: Observable<number>,\n renderer: Renderer2,\n zone: NgZone,\n win: Window,\n isIos: boolean,\n options: TuiAutofocusOptions,\n ) =>\n isIos\n ? new TuiIosAutofocusHandler(el, renderer, zone, win, options)\n : new TuiDefaultAutofocusHandler(el, animationFrame$, zone, options),\n },\n];\n","import {type BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {type AfterViewInit, DestroyRef, Directive, inject, Input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {timer} from 'rxjs';\n\nimport {\n TUI_AUTOFOCUS_HANDLER,\n TUI_AUTOFOCUS_OPTIONS,\n TUI_AUTOFOCUS_PROVIDERS,\n} from './autofocus.options';\n\n@Directive({\n standalone: true,\n selector: '[tuiAutoFocus]',\n providers: TUI_AUTOFOCUS_PROVIDERS,\n})\nexport class TuiAutoFocus implements AfterViewInit {\n private readonly handler = inject(TUI_AUTOFOCUS_HANDLER);\n private readonly options = inject(TUI_AUTOFOCUS_OPTIONS);\n private readonly destroyRef = inject(DestroyRef);\n\n @Input({\n alias: 'tuiAutoFocus',\n transform: coerceBooleanProperty,\n })\n public autoFocus: BooleanInput;\n\n public ngAfterViewInit(): void {\n if (this.autoFocus) {\n this.focus();\n }\n }\n\n public focus(): void {\n if (Number.isNaN(this.options.delay)) {\n void Promise.resolve().then(() => this.handler.setFocus());\n } else {\n timer(this.options.delay)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.handler.setFocus());\n }\n }\n}\n","import {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nexport class TuiSynchronousAutofocusHandler extends AbstractTuiAutofocusHandler {\n public setFocus(): void {\n this.element.focus({preventScroll: true});\n }\n}\n","/**\n * Generated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,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,CAAA,cAAA,EAAA,WAAA,EAON,qBAAqB,CAAA,EAAA,EAAA,SAAA,EATzB,uBAAuB,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAEzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,SAAS,EAAE,uBAAuB;AACrC,iBAAA,CAAA;8BAUU,SAAS,EAAA,CAAA;sBAJf,KAAK;AAAC,gBAAA,IAAA,EAAA,CAAA;AACH,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,SAAS,EAAE,qBAAqB;AACnC,qBAAA,CAAA;;;ACtBC,MAAO,8BAA+B,SAAQ,2BAA2B,CAAA;IACpE,QAAQ,GAAA;QACX,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAC,aAAa,EAAE,IAAI,EAAC,CAAC,CAAC;KAC7C;AACJ;;ACND;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-auto-focus.mjs","sources":["../../../projects/cdk/directives/auto-focus/handlers/abstract.handler.ts","../../../projects/cdk/directives/auto-focus/handlers/default.handler.ts","../../../projects/cdk/directives/auto-focus/handlers/ios.handler.ts","../../../projects/cdk/directives/auto-focus/autofocus.options.ts","../../../projects/cdk/directives/auto-focus/autofocus.directive.ts","../../../projects/cdk/directives/auto-focus/handlers/sync.handler.ts","../../../projects/cdk/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.ts"],"sourcesContent":["import {type ElementRef} from '@angular/core';\n\nimport {type TuiAutofocusHandler, type TuiAutofocusOptions} from '../autofocus.options';\n\nexport abstract class AbstractTuiAutofocusHandler implements TuiAutofocusHandler {\n constructor(\n protected readonly el: ElementRef<HTMLElement>,\n protected readonly options: TuiAutofocusOptions,\n ) {}\n\n public abstract setFocus(): void;\n\n protected get element(): HTMLElement {\n // TODO: Remove when legacy controls are dropped\n const el = this.el.nativeElement.tagName.includes('-')\n ? this.el.nativeElement.querySelector<HTMLElement>(this.options.query)\n : this.el.nativeElement;\n\n return el || this.el.nativeElement;\n }\n\n protected get isTextFieldElement(): boolean {\n return this.element.matches(this.options.query);\n }\n}\n","import {type ElementRef, type NgZone} from '@angular/core';\nimport {tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {map, type Observable, race, skipWhile, take, throttleTime, timer} from 'rxjs';\n\nimport {type TuiAutofocusOptions} from '../autofocus.options';\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TIMEOUT = 1000;\nconst NG_ANIMATION_SELECTOR = '.ng-animating';\n\nexport class TuiDefaultAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n el: ElementRef<HTMLElement>,\n private readonly animationFrame$: Observable<number>,\n private readonly zone: NgZone,\n options: TuiAutofocusOptions,\n ) {\n super(el, options);\n }\n\n public setFocus(): void {\n if (this.isTextFieldElement) {\n race(\n timer(this.options.delay || TIMEOUT),\n this.animationFrame$.pipe(\n throttleTime(100, tuiZonefreeScheduler(this.zone)),\n map(() => this.element.closest(NG_ANIMATION_SELECTOR)),\n skipWhile(Boolean),\n take(1),\n ),\n ).subscribe(() =>\n this.element.focus({preventScroll: this.options.preventScroll}),\n );\n } else {\n this.element.focus({preventScroll: true});\n }\n }\n}\n","import {type ElementRef, type NgZone, type Renderer2} from '@angular/core';\nimport {tuiIsPresent, tuiPx} from '@taiga-ui/cdk/utils';\n\nimport {type TuiAutofocusOptions} from '../autofocus.options';\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TEXTFIELD_ATTRS = [\n 'type',\n 'inputMode',\n 'autocomplete',\n 'accept',\n 'min',\n 'max',\n 'step',\n 'pattern',\n 'size',\n 'maxlength',\n] as const;\n\nexport class TuiIosAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n el: ElementRef<HTMLElement>,\n private readonly renderer: Renderer2,\n private readonly zone: NgZone,\n private readonly win: Window,\n options: TuiAutofocusOptions,\n ) {\n super(el, options);\n }\n\n public setFocus(): void {\n if (this.isTextFieldElement) {\n this.zone.runOutsideAngular(() => this.iosWebkitAutofocus());\n } else {\n this.element.focus({preventScroll: true});\n }\n }\n\n private iosWebkitAutofocus(): void {\n const fakeInput: HTMLInputElement = this.makeFakeInput();\n const duration = this.getDurationTimeBeforeFocus();\n let fakeFocusTimeoutId = 0;\n let elementFocusTimeoutId = 0;\n\n const blurHandler = (): void => fakeInput.focus({preventScroll: true});\n const focusHandler = (): void => {\n clearTimeout(fakeFocusTimeoutId);\n\n fakeFocusTimeoutId = this.win.setTimeout(() => {\n clearTimeout(elementFocusTimeoutId);\n\n fakeInput.removeEventListener('blur', blurHandler);\n fakeInput.removeEventListener('focus', focusHandler);\n\n elementFocusTimeoutId = this.win.setTimeout(() => {\n this.element.focus({preventScroll: this.options.preventScroll});\n fakeInput.remove();\n }, duration);\n });\n };\n\n fakeInput.addEventListener('blur', blurHandler, {once: true});\n fakeInput.addEventListener('focus', focusHandler);\n\n if (this.insideDialog()) {\n this.win.document.body.appendChild(fakeInput);\n } else {\n this.element.parentElement?.appendChild(fakeInput);\n }\n\n fakeInput.focus({preventScroll: true});\n }\n\n /**\n * @note:\n * emulate textfield position in layout with cursor\n * before focus to real textfield element\n *\n * required note:\n * [fakeInput.readOnly = true] ~\n * don't use {readOnly: true} value, it's doesn't work for emulate autofill\n *\n * [fakeInput.style.opacity = 0] ~\n * don't use {opacity: 0}, sometimes it's doesn't work for emulate real input\n *\n * [fakeInput.style.fontSize = 16px] ~\n * disable possible auto zoom\n *\n * [fakeInput.style.top/left] ~\n * emulate position cursor before focus to real textfield element\n */\n private makeFakeInput(): HTMLInputElement {\n const fakeInput: HTMLInputElement = this.renderer.createElement('input');\n const rect: DOMRect = this.element.getBoundingClientRect();\n\n this.patchFakeInputFromFocusableElement(fakeInput);\n\n fakeInput.style.height = tuiPx(rect.height);\n fakeInput.style.width = tuiPx(rect.width / 2);\n fakeInput.style.position = 'fixed';\n fakeInput.style.zIndex = '-99999999';\n fakeInput.style.caretColor = 'transparent';\n fakeInput.style.border = 'none';\n fakeInput.style.outline = 'none';\n fakeInput.style.color = 'transparent';\n fakeInput.style.background = 'transparent';\n fakeInput.style.cursor = 'none';\n fakeInput.style.fontSize = tuiPx(16);\n fakeInput.style.top = tuiPx(rect.top);\n fakeInput.style.left = tuiPx(rect.left);\n\n return fakeInput;\n }\n\n private getDurationTimeBeforeFocus(): number {\n return (\n parseFloat(\n this.win\n .getComputedStyle(this.element)\n .getPropertyValue('--tui-duration'),\n ) || 0\n );\n }\n\n /**\n * @note:\n * unfortunately, in older versions of iOS\n * there is a bug that the fake input cursor\n * will move along with the dialog animation\n * and then that dialog will be shaking\n */\n private insideDialog(): boolean {\n return !!this.element.closest('tui-dialog');\n }\n\n /**\n * @note:\n * inherit basic attributes values from real input\n * for help iOS detect what do you want see on keyboard,\n * for example [inputMode=numeric, autocomplete=cc-number]\n */\n private patchFakeInputFromFocusableElement(fakeInput: HTMLInputElement): void {\n TEXTFIELD_ATTRS.forEach((attr) => {\n const value = this.element.getAttribute(attr);\n\n if (tuiIsPresent(value)) {\n fakeInput.setAttribute(attr, value);\n }\n });\n }\n}\n","import {ElementRef, InjectionToken, NgZone, Renderer2} from '@angular/core';\nimport {WA_ANIMATION_FRAME, WA_WINDOW} from '@ng-web-apis/common';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils';\nimport {type Observable} from 'rxjs';\n\nimport {TuiDefaultAutofocusHandler} from './handlers/default.handler';\nimport {TuiIosAutofocusHandler} from './handlers/ios.handler';\n\nexport interface TuiAutofocusHandler {\n setFocus(): void;\n}\n\nexport interface TuiAutofocusOptions {\n readonly delay: number;\n readonly query: string;\n readonly preventScroll: boolean;\n}\n\nexport const [TUI_AUTOFOCUS_OPTIONS, tuiAutoFocusOptionsProvider] =\n tuiCreateOptions<TuiAutofocusOptions>({\n delay: NaN, // NaN = no delay/sync\n query: 'input, textarea, select, [contenteditable]',\n preventScroll: false,\n });\n\nexport const TUI_AUTOFOCUS_HANDLER = new InjectionToken<TuiAutofocusHandler>(\n ngDevMode ? 'TUI_AUTOFOCUS_HANDLER' : '',\n);\n\nexport const TUI_AUTOFOCUS_PROVIDERS = [\n {\n provide: TUI_AUTOFOCUS_HANDLER,\n deps: [\n ElementRef,\n WA_ANIMATION_FRAME,\n Renderer2,\n NgZone,\n WA_WINDOW,\n TUI_IS_IOS,\n TUI_AUTOFOCUS_OPTIONS,\n ],\n\n // eslint-disable-next-line @typescript-eslint/max-params,max-params\n useFactory: (\n el: ElementRef<HTMLElement>,\n animationFrame$: Observable<number>,\n renderer: Renderer2,\n zone: NgZone,\n win: Window,\n isIos: boolean,\n options: TuiAutofocusOptions,\n ) =>\n isIos\n ? new TuiIosAutofocusHandler(el, renderer, zone, win, options)\n : new TuiDefaultAutofocusHandler(el, animationFrame$, zone, options),\n },\n];\n","import {type BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {type AfterViewInit, DestroyRef, Directive, inject, Input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {timer} from 'rxjs';\n\nimport {\n TUI_AUTOFOCUS_HANDLER,\n TUI_AUTOFOCUS_OPTIONS,\n TUI_AUTOFOCUS_PROVIDERS,\n} from './autofocus.options';\n\n@Directive({\n standalone: true,\n selector: '[tuiAutoFocus]',\n providers: TUI_AUTOFOCUS_PROVIDERS,\n})\nexport class TuiAutoFocus implements AfterViewInit {\n private readonly handler = inject(TUI_AUTOFOCUS_HANDLER);\n private readonly options = inject(TUI_AUTOFOCUS_OPTIONS);\n private readonly destroyRef = inject(DestroyRef);\n\n @Input({\n alias: 'tuiAutoFocus',\n transform: coerceBooleanProperty,\n })\n public autoFocus: BooleanInput;\n\n public ngAfterViewInit(): void {\n if (this.autoFocus) {\n this.focus();\n }\n }\n\n public focus(): void {\n if (Number.isNaN(this.options.delay)) {\n void Promise.resolve().then(() => this.handler.setFocus());\n } else {\n timer(this.options.delay)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.handler.setFocus());\n }\n }\n}\n","import {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nexport class TuiSynchronousAutofocusHandler extends AbstractTuiAutofocusHandler {\n public setFocus(): void {\n this.element.focus({preventScroll: true});\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAIsB,2BAA2B,CAAA;IAC7C,WAAA,CACuB,EAA2B,EAC3B,OAA4B,EAAA;QAD5B,IAAA,CAAA,EAAE,GAAF,EAAE;QACF,IAAA,CAAA,OAAO,GAAP,OAAO;IAC3B;AAIH,IAAA,IAAc,OAAO,GAAA;;AAEjB,QAAA,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG;AACjD,cAAE,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,aAAa,CAAc,IAAI,CAAC,OAAO,CAAC,KAAK;AACrE,cAAE,IAAI,CAAC,EAAE,CAAC,aAAa;AAE3B,QAAA,OAAO,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC,aAAa;IACtC;AAEA,IAAA,IAAc,kBAAkB,GAAA;AAC5B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IACnD;AACH;;ACjBD,MAAM,OAAO,GAAG,IAAI;AACpB,MAAM,qBAAqB,GAAG,eAAe;AAEvC,MAAO,0BAA2B,SAAQ,2BAA2B,CAAA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CAAA,CAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,CAAA,cAAA,EAAA,WAAA,EAON,qBAAqB,CAAA,EAAA,EAAA,SAAA,EATzB,uBAAuB,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAEzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,SAAS,EAAE,uBAAuB;AACrC,iBAAA;8BAUU,SAAS,EAAA,CAAA;sBAJf,KAAK;AAAC,gBAAA,IAAA,EAAA,CAAA;AACH,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,SAAS,EAAE,qBAAqB;AACnC,qBAAA;;;ACtBC,MAAO,8BAA+B,SAAQ,2BAA2B,CAAA;IACpE,QAAQ,GAAA;QACX,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAC,aAAa,EAAE,IAAI,EAAC,CAAC;IAC7C;AACH;;ACND;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DOCUMENT } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, NgZone,
|
|
3
|
+
import { inject, NgZone, Output, Directive } from '@angular/core';
|
|
4
4
|
import { tuiZoneOptimized } from '@taiga-ui/cdk/observables';
|
|
5
5
|
import { tuiInjectElement, tuiGetActualTarget, tuiContainsOrAfter } from '@taiga-ui/cdk/utils';
|
|
6
6
|
import { fromEvent, map, filter } from 'rxjs';
|
|
@@ -18,10 +18,10 @@ class TuiClickOutside {
|
|
|
18
18
|
isOutside(target) {
|
|
19
19
|
return target === this.el || !tuiContainsOrAfter(this.el, target);
|
|
20
20
|
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
22
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiClickOutside, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
22
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiClickOutside, isStandalone: true, selector: "[tuiClickOutside]", outputs: { tuiClickOutside: "tuiClickOutside" }, ngImport: i0 }); }
|
|
23
23
|
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiClickOutside, decorators: [{
|
|
25
25
|
type: Directive,
|
|
26
26
|
args: [{
|
|
27
27
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-click-outside.mjs","sources":["../../../projects/cdk/directives/click-outside/click-outside.directive.ts","../../../projects/cdk/directives/click-outside/taiga-ui-cdk-directives-click-outside.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {\n tuiContainsOrAfter,\n tuiGetActualTarget,\n tuiInjectElement,\n} from '@taiga-ui/cdk/utils';\nimport {filter, fromEvent, map, type Observable} from 'rxjs';\n\n/**\n * @deprecated use {@link TuiActiveZone} instead\n */\n@Directive({\n standalone: true,\n selector: '[tuiClickOutside]',\n})\nexport class TuiClickOutside {\n private readonly zone = inject(NgZone);\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiClickOutside: Observable<unknown> = fromEvent(\n this.doc,\n 'mouseup',\n ).pipe(\n map(tuiGetActualTarget),\n filter((target) => this.isOutside(target)),\n tuiZoneOptimized(this.zone),\n );\n\n private isOutside(target: Node): boolean {\n return target === this.el || !tuiContainsOrAfter(this.el, target);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAUA;;AAEG;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-click-outside.mjs","sources":["../../../projects/cdk/directives/click-outside/click-outside.directive.ts","../../../projects/cdk/directives/click-outside/taiga-ui-cdk-directives-click-outside.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {\n tuiContainsOrAfter,\n tuiGetActualTarget,\n tuiInjectElement,\n} from '@taiga-ui/cdk/utils';\nimport {filter, fromEvent, map, type Observable} from 'rxjs';\n\n/**\n * @deprecated use {@link TuiActiveZone} instead\n */\n@Directive({\n standalone: true,\n selector: '[tuiClickOutside]',\n})\nexport class TuiClickOutside {\n private readonly zone = inject(NgZone);\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiClickOutside: Observable<unknown> = fromEvent(\n this.doc,\n 'mouseup',\n ).pipe(\n map(tuiGetActualTarget),\n filter((target) => this.isOutside(target)),\n tuiZoneOptimized(this.zone),\n );\n\n private isOutside(target: Node): boolean {\n return target === this.el || !tuiContainsOrAfter(this.el, target);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAUA;;AAEG;MAKU,eAAe,CAAA;AAJ5B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AACrB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;AAGxB,QAAA,IAAA,CAAA,eAAe,GAAwB,SAAS,CAC5D,IAAI,CAAC,GAAG,EACR,SAAS,CACZ,CAAC,IAAI,CACF,GAAG,CAAC,kBAAkB,CAAC,EACvB,MAAM,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAC1C,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B;AAKJ,IAAA;AAHW,IAAA,SAAS,CAAC,MAAY,EAAA;AAC1B,QAAA,OAAO,MAAM,KAAK,IAAI,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC;IACrE;8GAjBS,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAChC,iBAAA;8BAOmB,eAAe,EAAA,CAAA;sBAD9B;;;ACtBL;;AAEG;;;;"}
|
|
@@ -9,10 +9,10 @@ class TuiNgControl {
|
|
|
9
9
|
get control() {
|
|
10
10
|
return this.ngControl.control;
|
|
11
11
|
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNgControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
13
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiNgControl, isStandalone: true, selector: "[tuiControl]", exportAs: ["ngControl"], ngImport: i0 }); }
|
|
14
14
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNgControl, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
18
18
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-control.mjs","sources":["../../../projects/cdk/directives/control/control.directive.ts","../../../projects/cdk/directives/control/taiga-ui-cdk-directives-control.ts"],"sourcesContent":["import {Directive, inject} from '@angular/core';\nimport {type AbstractControl, NgControl} from '@angular/forms';\n\n@Directive({\n standalone: true,\n selector: '[tuiControl]',\n exportAs: 'ngControl',\n})\nexport class TuiNgControl {\n private readonly ngControl = inject(NgControl);\n\n public get control(): AbstractControl {\n return this.ngControl.control!;\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-control.mjs","sources":["../../../projects/cdk/directives/control/control.directive.ts","../../../projects/cdk/directives/control/taiga-ui-cdk-directives-control.ts"],"sourcesContent":["import {Directive, inject} from '@angular/core';\nimport {type AbstractControl, NgControl} from '@angular/forms';\n\n@Directive({\n standalone: true,\n selector: '[tuiControl]',\n exportAs: 'ngControl',\n})\nexport class TuiNgControl {\n private readonly ngControl = inject(NgControl);\n\n public get control(): AbstractControl {\n return this.ngControl.control!;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAQa,YAAY,CAAA;AALzB,IAAA,WAAA,GAAA;AAMqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAKjD,IAAA;AAHG,IAAA,IAAW,OAAO,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,OAAQ;IAClC;8GALS,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,WAAW;AACxB,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject,
|
|
2
|
+
import { inject, Input, Directive } from '@angular/core';
|
|
3
3
|
import { WA_WINDOW } from '@ng-web-apis/common';
|
|
4
4
|
import { tuiGetSelectedText } from '@taiga-ui/cdk/utils';
|
|
5
5
|
import { identity } from 'rxjs';
|
|
@@ -15,10 +15,10 @@ class TuiCopyProcessor {
|
|
|
15
15
|
event.clipboardData?.setData('text/plain', this.tuiCopyProcessor(text));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCopyProcessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiCopyProcessor, isStandalone: true, selector: "[tuiCopyProcessor]", inputs: { tuiCopyProcessor: "tuiCopyProcessor" }, host: { listeners: { "copy.prevent": "onCopy($event)" } }, ngImport: i0 }); }
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCopyProcessor, decorators: [{
|
|
22
22
|
type: Directive,
|
|
23
23
|
args: [{
|
|
24
24
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-copy-processor.mjs","sources":["../../../projects/cdk/directives/copy-processor/copy-processor.directive.ts","../../../projects/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, inject, Input} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiCopyProcessor]',\n host: {\n '(copy.prevent)': 'onCopy($event)',\n },\n})\nexport class TuiCopyProcessor {\n private readonly win = inject(WA_WINDOW);\n\n @Input()\n public tuiCopyProcessor: TuiStringHandler<string> = identity;\n\n protected onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.win);\n\n if (text) {\n event.clipboardData?.setData('text/plain', this.tuiCopyProcessor(text));\n }\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-copy-processor.mjs","sources":["../../../projects/cdk/directives/copy-processor/copy-processor.directive.ts","../../../projects/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, inject, Input} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiCopyProcessor]',\n host: {\n '(copy.prevent)': 'onCopy($event)',\n },\n})\nexport class TuiCopyProcessor {\n private readonly win = inject(WA_WINDOW);\n\n @Input()\n public tuiCopyProcessor: TuiStringHandler<string> = identity;\n\n protected onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.win);\n\n if (text) {\n event.clipboardData?.setData('text/plain', this.tuiCopyProcessor(text));\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAaa,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;AAQqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC;QAGjC,IAAA,CAAA,gBAAgB,GAA6B,QAAQ;AAS/D,IAAA;AAPa,IAAA,MAAM,CAAC,KAAqB,EAAA;QAClC,MAAM,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC;QAEzC,IAAI,IAAI,EAAE;AACN,YAAA,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC3E;IACJ;8GAZS,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,gBAAgB,EAAE,gBAAgB;AACrC,qBAAA;AACJ,iBAAA;8BAKU,gBAAgB,EAAA,CAAA;sBADtB;;;AChBL;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Output, Directive } from '@angular/core';
|
|
3
3
|
import { tuiTypedFromEvent, tuiPreventDefault } from '@taiga-ui/cdk/observables';
|
|
4
4
|
import { tuiInjectElement } from '@taiga-ui/cdk/utils';
|
|
5
5
|
import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
@@ -11,10 +11,10 @@ class TuiDroppable {
|
|
|
11
11
|
this.tuiDroppableDropped = tuiTypedFromEvent(this.el, 'drop').pipe(tuiPreventDefault(), map((event) => event.dataTransfer), filter(tuiIsPresent));
|
|
12
12
|
this.tuiDroppableDragOverChange = tuiTypedFromEvent(this.el, 'dragenter').pipe(switchMap(({ target, dataTransfer }) => merge(tuiTypedFromEvent(this.el, 'dragleave').pipe(filter((event) => event.target === target)), tuiTypedFromEvent(this.el, 'drop')).pipe(map(() => null), startWith(dataTransfer))), distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)));
|
|
13
13
|
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiDroppable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
15
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiDroppable, isStandalone: true, selector: "[tuiDroppableDropped], [tuiDroppableDragOverChange]", outputs: { tuiDroppableDropped: "tuiDroppableDropped", tuiDroppableDragOverChange: "tuiDroppableDragOverChange" }, host: { listeners: { "dragover.prevent.zoneless": "0" } }, ngImport: i0 }); }
|
|
16
16
|
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiDroppable, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-droppable.mjs","sources":["../../../projects/cdk/directives/droppable/droppable.directive.ts","../../../projects/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, Output} from '@angular/core';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {distinctUntilChanged, filter, map, merge, startWith, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n host: {\n '(dragover.prevent.zoneless)': '0',\n },\n})\nexport class TuiDroppable {\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiDroppableDropped = tuiTypedFromEvent(this.el, 'drop').pipe(\n tuiPreventDefault(),\n map((event) => event.dataTransfer),\n filter(tuiIsPresent),\n );\n\n @Output()\n public readonly tuiDroppableDragOverChange = tuiTypedFromEvent(\n this.el,\n 'dragenter',\n ).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n tuiTypedFromEvent(this.el, 'dragleave').pipe(\n filter((event) => event.target === target),\n ),\n tuiTypedFromEvent(this.el, 'drop'),\n ).pipe(\n map(() => null),\n startWith(dataTransfer),\n ),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\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-droppable.mjs","sources":["../../../projects/cdk/directives/droppable/droppable.directive.ts","../../../projects/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, Output} from '@angular/core';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {distinctUntilChanged, filter, map, merge, startWith, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n host: {\n '(dragover.prevent.zoneless)': '0',\n },\n})\nexport class TuiDroppable {\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiDroppableDropped = tuiTypedFromEvent(this.el, 'drop').pipe(\n tuiPreventDefault(),\n map((event) => event.dataTransfer),\n filter(tuiIsPresent),\n );\n\n @Output()\n public readonly tuiDroppableDragOverChange = tuiTypedFromEvent(\n this.el,\n 'dragenter',\n ).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n tuiTypedFromEvent(this.el, 'dragleave').pipe(\n filter((event) => event.target === target),\n ),\n tuiTypedFromEvent(this.el, 'drop'),\n ).pipe(\n map(() => null),\n startWith(dataTransfer),\n ),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAaa,YAAY,CAAA;AAPzB,IAAA,W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A,EAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qDAAqD;AAC/D,oBAAA,IAAI,EAAE;AACF,wBAAA,6BAA6B,EAAE,GAAG;AACrC,qBAAA;AACJ,iBAAA;8BAKmB,mBAAmB,EAAA,CAAA;sBADlC;gBAQe,0BAA0B,EAAA,CAAA;sBADzC;;;ACvBL;;AAEG;;;;"}
|
|
@@ -21,17 +21,17 @@ class TuiElement {
|
|
|
21
21
|
*/
|
|
22
22
|
return new ElementRef(this.nativeElement);
|
|
23
23
|
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiElement, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
25
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiElement, isStandalone: true, selector: "[tuiElement]", exportAs: ["elementRef"], ngImport: i0 }); }
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiElement, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
standalone: true,
|
|
31
31
|
selector: '[tuiElement]',
|
|
32
32
|
exportAs: 'elementRef',
|
|
33
33
|
}]
|
|
34
|
-
}], ctorParameters:
|
|
34
|
+
}], ctorParameters: () => [] });
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-element.mjs","sources":["../../../projects/cdk/directives/element/element.directive.ts","../../../projects/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiElement]',\n exportAs: 'elementRef',\n})\nexport class TuiElement<T extends Element = HTMLElement> implements ElementRef<T> {\n public nativeElement = tuiInjectElement<T>();\n\n constructor() {\n /**\n * @note:\n * Typically, when your constructor is invoked with new,\n * an object is created, its constructor is assigned to\n * the invoked constructor and the object is then assigned\n * to this before executing any operations specified\n * in your constructor method.\n *\n * ERROR TypeError: Class constructor ElementRef cannot be invoked without 'new'\n * https://github.com/taiga-family/taiga-ui/issues/3072\n *\n * This way we can instantiate object creation\n * without additional prototype chain for possible fix bug.\n */\n return new ElementRef<T>(this.nativeElement);\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-element.mjs","sources":["../../../projects/cdk/directives/element/element.directive.ts","../../../projects/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiElement]',\n exportAs: 'elementRef',\n})\nexport class TuiElement<T extends Element = HTMLElement> implements ElementRef<T> {\n public nativeElement = tuiInjectElement<T>();\n\n constructor() {\n /**\n * @note:\n * Typically, when your constructor is invoked with new,\n * an object is created, its constructor is assigned to\n * the invoked constructor and the object is then assigned\n * to this before executing any operations specified\n * in your constructor method.\n *\n * ERROR TypeError: Class constructor ElementRef cannot be invoked without 'new'\n * https://github.com/taiga-family/taiga-ui/issues/3072\n *\n * This way we can instantiate object creation\n * without additional prototype chain for possible fix bug.\n */\n return new ElementRef<T>(this.nativeElement);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAQa,UAAU,CAAA;AAGnB,IAAA,WAAA,GAAA;QAFO,IAAA,CAAA,aAAa,GAAG,gBAAgB,EAAK;AAGxC;;;;;;;;;;;;;AAaG;AACH,QAAA,OAAO,IAAI,UAAU,CAAI,IAAI,CAAC,aAAa,CAAC;IAChD;8GAnBS,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBALtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,YAAY;AACzB,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -50,10 +50,10 @@ class TuiFocusTrap {
|
|
|
50
50
|
})?.focus();
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFocusTrap, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
54
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiFocusTrap, isStandalone: true, selector: "[tuiFocusTrap]", host: { attributes: { "tabIndex": "0" }, listeners: { "window:focusin.zoneless": "initialized && onFocusIn($event.target)" } }, ngImport: i0 }); }
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFocusTrap, decorators: [{
|
|
57
57
|
type: Directive,
|
|
58
58
|
args: [{
|
|
59
59
|
standalone: true,
|
|
@@ -63,7 +63,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
63
63
|
'(window:focusin.zoneless)': 'initialized && onFocusIn($event.target)',
|
|
64
64
|
},
|
|
65
65
|
}]
|
|
66
|
-
}], ctorParameters:
|
|
66
|
+
}], ctorParameters: () => [] });
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-focus-trap.mjs","sources":["../../../projects/cdk/directives/focus-trap/focus-trap.directive.ts","../../../projects/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, type OnDestroy} from '@angular/core';\nimport {\n tuiContainsOrAfter,\n tuiInjectElement,\n tuiIsHTMLElement,\n} from '@taiga-ui/cdk/utils/dom';\nimport {\n tuiBlurNativeFocused,\n tuiGetClosestFocusable,\n tuiGetNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n@Directive({\n standalone: true,\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n '(window:focusin.zoneless)': 'initialized && onFocusIn($event.target)',\n },\n})\nexport class TuiFocusTrap implements OnDestroy {\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n private activeElement: Element | null = null;\n protected initialized = false;\n\n constructor() {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n Promise.resolve().then(() => {\n /**\n * The same event can synchronously close already opened focus trap and open another one.\n * All focus traps have microtask inside its `ngOnDestroy` –\n * they should be resolved before enabling of new focus trap.\n * Don't enable any new event listeners before `initialized` equals to `true`!\n */\n this.initialized = true;\n this.activeElement = tuiGetNativeFocused(this.doc);\n this.el.focus();\n });\n }\n\n public ngOnDestroy(): void {\n tuiBlurNativeFocused(this.doc);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n Promise.resolve().then(() => {\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n });\n }\n\n protected onFocusIn(node: Node): void {\n const {firstElementChild} = this.el;\n\n if (!tuiContainsOrAfter(this.el, node) && firstElementChild) {\n tuiGetClosestFocusable({\n initial: firstElementChild,\n root: this.el,\n })?.focus();\n }\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-focus-trap.mjs","sources":["../../../projects/cdk/directives/focus-trap/focus-trap.directive.ts","../../../projects/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, type OnDestroy} from '@angular/core';\nimport {\n tuiContainsOrAfter,\n tuiInjectElement,\n tuiIsHTMLElement,\n} from '@taiga-ui/cdk/utils/dom';\nimport {\n tuiBlurNativeFocused,\n tuiGetClosestFocusable,\n tuiGetNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n@Directive({\n standalone: true,\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n '(window:focusin.zoneless)': 'initialized && onFocusIn($event.target)',\n },\n})\nexport class TuiFocusTrap implements OnDestroy {\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n private activeElement: Element | null = null;\n protected initialized = false;\n\n constructor() {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n Promise.resolve().then(() => {\n /**\n * The same event can synchronously close already opened focus trap and open another one.\n * All focus traps have microtask inside its `ngOnDestroy` –\n * they should be resolved before enabling of new focus trap.\n * Don't enable any new event listeners before `initialized` equals to `true`!\n */\n this.initialized = true;\n this.activeElement = tuiGetNativeFocused(this.doc);\n this.el.focus();\n });\n }\n\n public ngOnDestroy(): void {\n tuiBlurNativeFocused(this.doc);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n Promise.resolve().then(() => {\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n });\n }\n\n protected onFocusIn(node: Node): void {\n const {firstElementChild} = this.el;\n\n if (!tuiContainsOrAfter(this.el, node) && firstElementChild) {\n tuiGetClosestFocusable({\n initial: firstElementChild,\n root: this.el,\n })?.focus();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAqBa,YAAY,CAAA;AAMrB,IAAA,WAAA,GAAA;AALiB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;QAChC,IAAA,CAAA,aAAa,GAAmB,IAAI;QAClC,IAAA,CAAA,WAAW,GAAG,KAAK;AAGzB;;;;AAIG;AACH,QAAA,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAK;AACxB;;;;;AAKG;AACH,YAAA,IAAI,CAAC,WAAW,GAAG,IAAI;YACvB,IAAI,CAAC,aAAa,GAAG,mBAAmB,CAAC,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AAE;AACF,wBAAA,QAAQ,EAAE,GAAG;AACb,wBAAA,2BAA2B,EAAE,yCAAyC;AACzE,qBAAA;AACJ,iBAAA;;;ACpBD;;AAEG;;;;"}
|
|
@@ -15,10 +15,10 @@ class TuiFontSize {
|
|
|
15
15
|
? tuiFontSizeWatcher(this.handler, inject(WA_WINDOW))
|
|
16
16
|
: EMPTY_FUNCTION);
|
|
17
17
|
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFontSize, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiFontSize, isStandalone: true, ngImport: i0 }); }
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFontSize, decorators: [{
|
|
22
22
|
type: Directive,
|
|
23
23
|
args: [{
|
|
24
24
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-font-size.mjs","sources":["../../../projects/cdk/directives/font-size/font-size.directive.ts","../../../projects/cdk/directives/font-size/taiga-ui-cdk-directives-font-size.ts"],"sourcesContent":["import {isPlatformBrowser} from '@angular/common';\nimport {DestroyRef, Directive, inject, InjectionToken, PLATFORM_ID} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiFontSizeWatcher} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_FONT_SIZE_HANDLER = new InjectionToken<(size: number) => void>(\n ngDevMode ? 'TUI_FONT_SIZE_HANDLER' : '',\n);\n\n@Directive({\n standalone: true,\n})\nexport class TuiFontSize {\n private readonly handler = inject(TUI_FONT_SIZE_HANDLER, {optional: true});\n protected readonly nothing = inject(DestroyRef).onDestroy(\n this.handler &&\n isPlatformBrowser(inject(PLATFORM_ID)) &&\n typeof ResizeObserver !== 'undefined'\n ? tuiFontSizeWatcher(this.handler, inject(WA_WINDOW))\n : EMPTY_FUNCTION,\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-font-size.mjs","sources":["../../../projects/cdk/directives/font-size/font-size.directive.ts","../../../projects/cdk/directives/font-size/taiga-ui-cdk-directives-font-size.ts"],"sourcesContent":["import {isPlatformBrowser} from '@angular/common';\nimport {DestroyRef, Directive, inject, InjectionToken, PLATFORM_ID} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiFontSizeWatcher} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_FONT_SIZE_HANDLER = new InjectionToken<(size: number) => void>(\n ngDevMode ? 'TUI_FONT_SIZE_HANDLER' : '',\n);\n\n@Directive({\n standalone: true,\n})\nexport class TuiFontSize {\n private readonly handler = inject(TUI_FONT_SIZE_HANDLER, {optional: true});\n protected readonly nothing = inject(DestroyRef).onDestroy(\n this.handler &&\n isPlatformBrowser(inject(PLATFORM_ID)) &&\n typeof ResizeObserver !== 'undefined'\n ? tuiFontSizeWatcher(this.handler, inject(WA_WINDOW))\n : EMPTY_FUNCTION,\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMO,MAAM,qBAAqB,GAAG,IAAI,cAAc,CACnD,SAAS,GAAG,uBAAuB,GAAG,EAAE;MAM/B,WAAW,CAAA;AAHxB,IAAA,WAAA,GAAA;QAIqB,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QACvD,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CACrD,IAAI,CAAC,OAAO;AACR,YAAA,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACtC,OAAO,cAAc,KAAK;cACxB,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC;cAClD,cAAc,CACvB;AACJ,IAAA;8GATY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAHvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ViewContainerRef,
|
|
2
|
+
import { inject, ViewContainerRef, Input, Directive } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class TuiFor {
|
|
5
5
|
constructor() {
|
|
@@ -15,10 +15,10 @@ class TuiFor {
|
|
|
15
15
|
this.ref = this.vcr.createEmbeddedView(this.ngForElse);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiFor, isStandalone: true, selector: "[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]", inputs: { ngForOf: "ngForOf", ngForElse: "ngForElse", ngForEmpty: "ngForEmpty" }, usesOnChanges: true, ngImport: i0 }); }
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFor, decorators: [{
|
|
22
22
|
type: Directive,
|
|
23
23
|
args: [{
|
|
24
24
|
standalone: true,
|