@taiga-ui/cdk 4.66.0 → 5.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/classes/control.d.ts +3 -5
- package/classes/index.d.ts +0 -1
- package/constants/empty.d.ts +0 -9
- package/constants/handlers.d.ts +2 -0
- package/constants/index.d.ts +0 -1
- package/constants/used-icons.d.ts +2 -2
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/constants/version.js.map +1 -1
- package/date-time/date-fillers.d.ts +5 -5
- package/date-time/date-time.d.ts +1 -1
- package/date-time/day-range.d.ts +1 -1
- package/date-time/day.d.ts +4 -4
- package/date-time/time.d.ts +2 -2
- package/date-time/types.d.ts +1 -12
- package/directives/active-zone/active-zone.directive.d.ts +3 -5
- package/directives/animated/animated.directive.d.ts +1 -3
- package/directives/animated/index.d.ts +0 -1
- package/directives/auto-focus/autofocus.directive.d.ts +2 -3
- package/directives/auto-focus/autofocus.options.d.ts +2 -2
- package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
- package/directives/hovered/hovered.directive.d.ts +1 -2
- package/directives/index.d.ts +1 -6
- package/directives/media/media.directive.d.ts +8 -12
- package/directives/native-validator/native-validator.directive.d.ts +2 -2
- package/directives/obscured/obscured.directive.d.ts +4 -4
- package/directives/pan/pan.directive.d.ts +1 -2
- package/directives/platform/platform.directive.d.ts +2 -2
- package/directives/resizer/resizer.directive.d.ts +3 -4
- package/directives/swipe/swipe.directive.d.ts +1 -2
- package/directives/transitioned/transitioned.directive.d.ts +1 -0
- package/directives/value-changes/value-changes.directive.d.ts +2 -1
- package/directives/with-styles/index.d.ts +1 -0
- package/directives/with-styles/with-styles.directive.d.ts +10 -0
- package/fesm2022/taiga-ui-cdk-classes.mjs +9 -93
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +16 -38
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs +22 -22
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +27 -42
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs +24 -71
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +15 -17
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +8 -11
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-element.mjs +5 -6
- package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +8 -13
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +14 -17
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-media.mjs +33 -58
- package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +9 -11
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +15 -23
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs +11 -13
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +11 -13
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +9 -16
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs +4 -5
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +7 -7
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +9 -9
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives.mjs +1 -6
- package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-observables.mjs +2 -24
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -5
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
- package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
- package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-tokens.mjs +23 -88
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-di.mjs +46 -6
- package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +4 -82
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -39
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-math.mjs +13 -21
- package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +18 -197
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils.mjs +0 -2
- package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk.mjs +1 -1
- package/index.d.ts +1 -1
- package/observables/index.d.ts +0 -2
- package/package.json +33 -196
- package/pipes/index.d.ts +0 -6
- package/pipes/obfuscate/obfuscate.options.d.ts +2 -2
- package/portals/directive.d.ts +11 -0
- package/portals/index.d.ts +4 -0
- package/portals/portal.d.ts +24 -0
- package/portals/portals.d.ts +12 -0
- package/portals/service.d.ts +15 -0
- package/schematics/constants/file-globs.js +1 -1
- package/schematics/constants/file-globs.js.map +1 -1
- package/schematics/index.d.ts +5 -0
- package/schematics/index.js +4 -0
- package/schematics/index.js.map +1 -1
- package/schematics/ng-add/constants/versions.d.ts +1 -1
- package/schematics/ng-add/index.js +1 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/setup-project.js +1 -1
- package/schematics/ng-add/setup-project.js.map +1 -1
- package/schematics/ng-add/steps/add-taiga-icons.js +2 -3
- package/schematics/ng-add/steps/add-taiga-icons.js.map +1 -1
- package/schematics/ng-add/steps/add-taiga-modules.js +1 -17
- package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
- package/schematics/ng-add/steps/add-taiga-styles.js +1 -2
- package/schematics/ng-add/steps/add-taiga-styles.js.map +1 -1
- package/schematics/ng-add/steps/wrap-with-tui-root.js +1 -2
- package/schematics/ng-add/steps/wrap-with-tui-root.js.map +1 -1
- package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
- package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
- package/schematics/ng-update/steps/icons/replace-imports.js +1 -2
- package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -1
- package/schematics/ng-update/steps/rename-types.js +1 -2
- package/schematics/ng-update/steps/rename-types.js.map +1 -1
- package/schematics/ng-update/steps/replace-deep-import.js +1 -2
- package/schematics/ng-update/steps/replace-deep-import.js.map +1 -1
- package/schematics/ng-update/steps/replace-enums.js +1 -2
- package/schematics/ng-update/steps/replace-enums.js.map +1 -1
- package/schematics/ng-update/steps/replace-identifier.js +2 -3
- package/schematics/ng-update/steps/replace-identifier.js.map +1 -1
- package/schematics/ng-update/steps/replace-package-name.js +1 -2
- package/schematics/ng-update/steps/replace-package-name.js.map +1 -1
- package/schematics/ng-update/steps/replace-services.js +1 -2
- package/schematics/ng-update/steps/replace-services.js.map +1 -1
- package/schematics/ng-update/steps/show-warnings.js +1 -2
- package/schematics/ng-update/steps/show-warnings.js.map +1 -1
- package/schematics/ng-update/utils/get-file-system.js +1 -2
- package/schematics/ng-update/utils/get-file-system.js.map +1 -1
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +2 -3
- package/schematics/ng-update/utils/replace-functions.js.map +1 -0
- package/schematics/ng-update/utils/replace-text.js +1 -2
- package/schematics/ng-update/utils/replace-text.js.map +1 -1
- package/schematics/ng-update/utils/templates/remove-inputs.js +1 -2
- package/schematics/ng-update/utils/templates/remove-inputs.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-attr-values.js +1 -2
- package/schematics/ng-update/utils/templates/replace-attr-values.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +1 -2
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-attrs.js +1 -2
- package/schematics/ng-update/utils/templates/replace-attrs.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-tag.js +1 -2
- package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -1
- package/schematics/ng-update/utils/templates/replace-tags.js +1 -2
- package/schematics/ng-update/utils/templates/replace-tags.js.map +1 -1
- package/schematics/ng-update/utils/templates/template-comments.js +1 -2
- package/schematics/ng-update/utils/templates/template-comments.js.map +1 -1
- package/schematics/ng-update/v4/index.js +2 -3
- package/schematics/ng-update/v4/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-addon-doc/index.js +1 -2
- package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/index.js +1 -2
- package/schematics/ng-update/v4/migrate-css-vars/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +4 -4
- package/schematics/ng-update/v4/migrate-css-vars/palette.js +4 -4
- package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +2 -3
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
- package/schematics/ng-update/v4/migrate-icons/index.js +1 -2
- package/schematics/ng-update/v4/migrate-icons/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +1 -2
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +1 -1
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +1 -2
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +1 -1
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +36 -37
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js.map +1 -1
- package/schematics/ng-update/v4/steps/drop-universal-mock.js +1 -2
- package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-alert-service.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -1
- package/schematics/ng-update/v4/steps/migrate-editor.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-editor.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-month-context.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-month-context.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-option-providers.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -1
- package/schematics/ng-update/v4/steps/migrate-proprietary.js +2 -3
- package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-providers-from.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-root.js +1 -2
- package/schematics/ng-update/v4/steps/migrate-root.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
- package/schematics/ng-update/v4/steps/migrate-templates.js +2 -3
- package/schematics/ng-update/v4/steps/migrate-templates.js.map +1 -1
- package/schematics/ng-update/v4/steps/remove-duplicates.js +1 -2
- package/schematics/ng-update/v4/steps/remove-duplicates.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +2 -3
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +2 -3
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/index.js +2 -2
- package/schematics/ng-update/v4/steps/styles/index.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +1 -2
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +2 -3
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +14 -15
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +1 -2
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-label.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-money.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +1 -2
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +4 -5
- package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +1 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +1 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +1 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +1 -1
- package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -1
- package/schematics/ng-update/v4/steps/update-packages.js +2 -2
- package/schematics/ng-update/v4/steps/update-packages.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/clean-object.js +1 -2
- package/schematics/ng-update/v4/steps/utils/clean-object.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +1 -2
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js +1 -2
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +1 -1
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +1 -2
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +1 -1
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +1 -2
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +1 -1
- package/schematics/ng-update/v5/index.js +17 -2
- package/schematics/ng-update/v5/index.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js +26 -0
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/functions.js +67 -0
- package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +32 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-css-variables.d.ts +3 -0
- package/schematics/ng-update/v5/steps/migrate-css-variables.js +30 -0
- package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js +48 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +1 -2
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +1 -2
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-tui-let.d.ts +3 -0
- package/schematics/ng-update/v5/steps/migrate-tui-let.js +95 -0
- package/schematics/ng-update/v5/steps/migrate-tui-let.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-notification.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-notification.js +45 -0
- package/schematics/ng-update/v5/steps/templates/migrate-notification.js.map +1 -0
- package/schematics/ng-update/v5/tests/migrate-tokens/utils.js +1 -2
- package/schematics/ng-update/v5/tests/migrate-tokens/utils.js.map +1 -1
- package/schematics/utils/add-import-to-closest-module.js +2 -3
- package/schematics/utils/add-import-to-closest-module.js.map +1 -1
- package/schematics/utils/add-unique-import.js +1 -2
- package/schematics/utils/add-unique-import.js.map +1 -1
- package/schematics/utils/angular-json-manipulations.js +2 -5
- package/schematics/utils/angular-json-manipulations.js.map +1 -1
- package/schematics/utils/create-angular-json.js +1 -2
- package/schematics/utils/create-angular-json.js.map +1 -1
- package/schematics/utils/get-component-from-identifier.js +1 -2
- package/schematics/utils/get-component-from-identifier.js.map +1 -1
- package/schematics/utils/get-execution-time.js +1 -2
- package/schematics/utils/get-execution-time.js.map +1 -1
- package/schematics/utils/get-named-import-references.js +1 -2
- package/schematics/utils/get-named-import-references.js.map +1 -1
- package/schematics/utils/get-project-target-options.js +1 -2
- package/schematics/utils/get-project-target-options.js.map +1 -1
- package/schematics/utils/get-projects.js +1 -2
- package/schematics/utils/get-projects.js.map +1 -1
- package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
- package/schematics/utils/get-standalone-bootstrap-function.js +2 -5
- package/schematics/utils/get-standalone-bootstrap-function.js.map +1 -1
- package/schematics/utils/import-manipulations.js +2 -3
- package/schematics/utils/import-manipulations.js.map +1 -1
- package/schematics/utils/insert-todo.js +2 -2
- package/schematics/utils/insert-todo.js.map +1 -1
- package/schematics/utils/is-ci.js +1 -2
- package/schematics/utils/is-ci.js.map +1 -1
- package/schematics/utils/make-angular-json-with-assets.js +1 -2
- package/schematics/utils/make-angular-json-with-assets.js.map +1 -1
- package/schematics/utils/progress.js +1 -2
- package/schematics/utils/progress.js.map +1 -1
- package/schematics/utils/push-to-array-property.js +1 -2
- package/schematics/utils/push-to-array-property.js.map +1 -1
- package/schematics/utils/remove-module.js +2 -3
- package/schematics/utils/remove-module.js.map +1 -1
- package/schematics/utils/run-migration.d.ts +14 -0
- package/schematics/utils/run-migration.js +27 -0
- package/schematics/utils/run-migration.js.map +1 -0
- package/schematics/utils/templates/elements.d.ts +4 -1
- package/schematics/utils/templates/elements.js +15 -24
- package/schematics/utils/templates/elements.js.map +1 -1
- package/schematics/utils/templates/get-component-templates.js +1 -2
- package/schematics/utils/templates/get-component-templates.js.map +1 -1
- package/schematics/utils/templates/inputs.js +2 -3
- package/schematics/utils/templates/inputs.js.map +1 -1
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js +6 -9
- package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
- package/schematics/utils/templates/template-resource.js +3 -4
- package/schematics/utils/templates/template-resource.js.map +1 -1
- package/tokens/index.d.ts +1 -3
- package/tokens/platform.d.ts +2 -0
- package/tokens/removed-element.d.ts +0 -3
- package/types/index.d.ts +0 -3
- package/utils/di/create-options.d.ts +2 -2
- package/utils/di/index.d.ts +3 -0
- package/utils/di/provide-options.d.ts +2 -0
- package/utils/dom/index.d.ts +0 -6
- package/utils/focus/get-closest-focusable.d.ts +1 -6
- package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -5
- package/utils/focus/index.d.ts +4 -6
- package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -6
- package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -5
- package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -5
- package/utils/index.d.ts +0 -2
- package/utils/math/clamp.d.ts +1 -5
- package/utils/math/index.d.ts +0 -2
- package/utils/miscellaneous/generate-id.d.ts +1 -0
- package/utils/miscellaneous/index.d.ts +2 -12
- package/utils/miscellaneous/is-string.js +1 -2
- package/utils/miscellaneous/is-string.js.map +1 -1
- package/utils/miscellaneous/set-signal.d.ts +2 -0
- package/classes/portals.d.ts +0 -33
- package/constants/allow-signal-writes.d.ts +0 -2
- package/directives/animated/animated-parent.directive.d.ts +0 -10
- package/directives/click-outside/click-outside.directive.d.ts +0 -14
- package/directives/click-outside/index.d.ts +0 -1
- package/directives/droppable/droppable.directive.d.ts +0 -8
- package/directives/droppable/index.d.ts +0 -1
- package/directives/for/for.directive.d.ts +0 -15
- package/directives/for/index.d.ts +0 -1
- package/directives/let/index.d.ts +0 -2
- package/directives/let/let-context.d.ts +0 -11
- package/directives/let/let.directive.d.ts +0 -18
- package/directives/popover/index.d.ts +0 -1
- package/directives/popover/popover.directive.d.ts +0 -14
- package/directives/repeat-times/index.d.ts +0 -1
- package/directives/repeat-times/repeat-times.directive.d.ts +0 -22
- 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 -306
- 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 -160
- 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 -73
- 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 -82
- 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 -61
- 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 -37
- 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 -33
- 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 -38
- 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 -29
- 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 -26
- package/esm2022/observables/control-value.mjs +0 -8
- package/esm2022/observables/drag-and-drop-from.mjs +0 -14
- package/esm2022/observables/events.mjs +0 -8
- package/esm2022/observables/if-map.mjs +0 -5
- package/esm2022/observables/index.mjs +0 -14
- package/esm2022/observables/must-be-present.mjs +0 -17
- package/esm2022/observables/query-list-observable.mjs +0 -9
- package/esm2022/observables/scroll-from.mjs +0 -10
- package/esm2022/observables/taiga-ui-cdk-observables.mjs +0 -5
- package/esm2022/observables/take-until-destroyed.mjs +0 -9
- package/esm2022/observables/typed-from-event.mjs +0 -9
- package/esm2022/observables/untracked-scheduler.mjs +0 -11
- package/esm2022/observables/watch.mjs +0 -6
- package/esm2022/observables/zone.mjs +0 -34
- package/esm2022/pipes/animation/animation.pipe.mjs +0 -27
- package/esm2022/pipes/animation/index.mjs +0 -2
- package/esm2022/pipes/animation/taiga-ui-cdk-pipes-animation.mjs +0 -5
- package/esm2022/pipes/filter/filter.pipe.mjs +0 -25
- package/esm2022/pipes/filter/index.mjs +0 -2
- package/esm2022/pipes/filter/taiga-ui-cdk-pipes-filter.mjs +0 -5
- package/esm2022/pipes/index.mjs +0 -10
- package/esm2022/pipes/is-present/index.mjs +0 -2
- package/esm2022/pipes/is-present/is-present.pipe.mjs +0 -19
- package/esm2022/pipes/is-present/taiga-ui-cdk-pipes-is-present.mjs +0 -5
- package/esm2022/pipes/keys/index.mjs +0 -2
- package/esm2022/pipes/keys/keys.pipe.mjs +0 -18
- package/esm2022/pipes/keys/taiga-ui-cdk-pipes-keys.mjs +0 -5
- package/esm2022/pipes/mapper/index.mjs +0 -2
- package/esm2022/pipes/mapper/mapper.pipe.mjs +0 -25
- package/esm2022/pipes/mapper/taiga-ui-cdk-pipes-mapper.mjs +0 -5
- package/esm2022/pipes/obfuscate/index.mjs +0 -3
- package/esm2022/pipes/obfuscate/obfuscate.options.mjs +0 -10
- package/esm2022/pipes/obfuscate/obfuscate.pipe.mjs +0 -44
- package/esm2022/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.mjs +0 -5
- package/esm2022/pipes/repeat-times/index.mjs +0 -19
- package/esm2022/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.mjs +0 -5
- package/esm2022/pipes/replace/index.mjs +0 -2
- package/esm2022/pipes/replace/replace.pipe.mjs +0 -20
- package/esm2022/pipes/replace/taiga-ui-cdk-pipes-replace.mjs +0 -5
- package/esm2022/pipes/taiga-ui-cdk-pipes.mjs +0 -5
- package/esm2022/pipes/to-array/index.mjs +0 -2
- package/esm2022/pipes/to-array/taiga-ui-cdk-pipes-to-array.mjs +0 -5
- package/esm2022/pipes/to-array/to-array.pipe.mjs +0 -18
- package/esm2022/services/id.service.mjs +0 -21
- package/esm2022/services/index.mjs +0 -5
- package/esm2022/services/popover.service.mjs +0 -45
- package/esm2022/services/scroll.service.mjs +0 -58
- package/esm2022/services/taiga-ui-cdk-services.mjs +0 -5
- package/esm2022/services/theme-color.service.mjs +0 -33
- package/esm2022/taiga-ui-cdk.mjs +0 -5
- package/esm2022/tokens/active-element.mjs +0 -56
- package/esm2022/tokens/base-href.mjs +0 -6
- package/esm2022/tokens/environment.mjs +0 -65
- package/esm2022/tokens/fallback-value.mjs +0 -11
- package/esm2022/tokens/index.mjs +0 -8
- package/esm2022/tokens/range.mjs +0 -9
- package/esm2022/tokens/removed-element.mjs +0 -20
- package/esm2022/tokens/taiga-ui-cdk-tokens.mjs +0 -5
- package/esm2022/tokens/window-size.mjs +0 -28
- package/esm2022/types/context.mjs +0 -2
- package/esm2022/types/handler.mjs +0 -2
- package/esm2022/types/index.mjs +0 -2
- package/esm2022/types/loose-union.mjs +0 -2
- package/esm2022/types/mapper.mjs +0 -2
- package/esm2022/types/matcher.mjs +0 -2
- package/esm2022/types/rounding.mjs +0 -2
- package/esm2022/types/safe-html.mjs +0 -2
- package/esm2022/types/taiga-ui-cdk-types.mjs +0 -5
- package/esm2022/types/values-of.mjs +0 -2
- package/esm2022/utils/browser/index.mjs +0 -6
- package/esm2022/utils/browser/is-apple.mjs +0 -14
- package/esm2022/utils/browser/is-edge.mjs +0 -4
- package/esm2022/utils/browser/is-firefox.mjs +0 -4
- package/esm2022/utils/browser/is-ios.mjs +0 -7
- package/esm2022/utils/browser/is-safari.mjs +0 -12
- package/esm2022/utils/browser/taiga-ui-cdk-utils-browser.mjs +0 -5
- package/esm2022/utils/color/get-gradient-data.mjs +0 -6
- package/esm2022/utils/color/hex-to-rgb.mjs +0 -12
- package/esm2022/utils/color/hex-to-rgba.mjs +0 -29
- package/esm2022/utils/color/hsv-to-rgb.mjs +0 -11
- package/esm2022/utils/color/index.mjs +0 -10
- package/esm2022/utils/color/parse-color.mjs +0 -27
- package/esm2022/utils/color/parse-gradient.mjs +0 -70
- package/esm2022/utils/color/rgb-to-hex.mjs +0 -4
- package/esm2022/utils/color/rgb-to-hsv.mjs +0 -8
- package/esm2022/utils/color/rgba-to-hex.mjs +0 -23
- package/esm2022/utils/color/taiga-ui-cdk-utils-color.mjs +0 -5
- package/esm2022/utils/di/create-options.mjs +0 -10
- package/esm2022/utils/di/index.mjs +0 -3
- package/esm2022/utils/di/taiga-ui-cdk-utils-di.mjs +0 -5
- package/esm2022/utils/dom/contains-or-after.mjs +0 -10
- package/esm2022/utils/dom/element-checks.mjs +0 -20
- package/esm2022/utils/dom/event-checks.mjs +0 -4
- package/esm2022/utils/dom/get-actual-target.mjs +0 -7
- package/esm2022/utils/dom/get-clipboard-data-text.mjs +0 -11
- package/esm2022/utils/dom/get-document-or-shadow-root.mjs +0 -6
- package/esm2022/utils/dom/get-element-obscurers.mjs +0 -36
- 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 -83
- package/esm2022/utils/focus/blur-native-focused.mjs +0 -17
- 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 -21
- package/esm2022/utils/focus/index.mjs +0 -10
- package/esm2022/utils/focus/is-native-focused-in.mjs +0 -17
- package/esm2022/utils/focus/is-native-focused.mjs +0 -20
- package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +0 -38
- package/esm2022/utils/focus/is-native-mouse-focusable.mjs +0 -12
- 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 -32
- package/esm2022/utils/miscellaneous/is-control-empty.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-falsy.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-number.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-object.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-present.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-string.mjs +0 -4
- package/esm2022/utils/miscellaneous/is-valid-url.mjs +0 -13
- package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +0 -16
- package/esm2022/utils/miscellaneous/nullable-same.mjs +0 -18
- package/esm2022/utils/miscellaneous/obfuscate.mjs +0 -53
- package/esm2022/utils/miscellaneous/provide-options.mjs +0 -14
- package/esm2022/utils/miscellaneous/provide.mjs +0 -4
- package/esm2022/utils/miscellaneous/pure.mjs +0 -83
- package/esm2022/utils/miscellaneous/px.mjs +0 -9
- package/esm2022/utils/miscellaneous/sanitize-text.mjs +0 -29
- package/esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs +0 -5
- package/esm2022/utils/miscellaneous/uniq-by.mjs +0 -6
- package/esm2022/utils/miscellaneous/with-styles.mjs +0 -17
- package/esm2022/utils/taiga-ui-cdk-utils.mjs +0 -5
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -39
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -37
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-for.mjs +0 -43
- package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -53
- package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -61
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -33
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -25
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -24
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -25
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -26
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -24
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-services.mjs +0 -152
- package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs +0 -48
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -195
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
- package/observables/must-be-present.d.ts +0 -5
- package/observables/query-list-observable.d.ts +0 -6
- package/pipes/animation/animation.pipe.d.ts +0 -13
- package/pipes/animation/index.d.ts +0 -1
- package/pipes/is-present/index.d.ts +0 -1
- package/pipes/is-present/is-present.pipe.d.ts +0 -7
- package/pipes/keys/index.d.ts +0 -1
- package/pipes/keys/keys.pipe.d.ts +0 -7
- package/pipes/repeat-times/index.d.ts +0 -7
- package/pipes/replace/index.d.ts +0 -1
- package/pipes/replace/replace.pipe.d.ts +0 -7
- package/pipes/to-array/index.d.ts +0 -1
- package/pipes/to-array/to-array.pipe.d.ts +0 -7
- package/schematics/migrate-tui-let/index.d.ts +0 -3
- package/schematics/migrate-tui-let/index.js +0 -72
- package/schematics/migrate-tui-let/index.js.map +0 -1
- package/schematics/migrate-tui-let/schema.json +0 -7
- package/schematics/ng-update/v4/steps/replace-functions.js.map +0 -1
- package/services/id.service.d.ts +0 -8
- package/services/index.d.ts +0 -4
- package/services/popover.service.d.ts +0 -26
- package/services/scroll.service.d.ts +0 -13
- package/services/theme-color.service.d.ts +0 -18
- package/tokens/base-href.d.ts +0 -2
- package/tokens/environment.d.ts +0 -29
- package/tokens/range.d.ts +0 -5
- package/types/loose-union.d.ts +0 -36
- package/types/safe-html.d.ts +0 -2
- package/types/values-of.d.ts +0 -1
- package/utils/browser/index.d.ts +0 -5
- package/utils/browser/is-apple.d.ts +0 -11
- package/utils/browser/is-edge.d.ts +0 -1
- package/utils/browser/is-firefox.d.ts +0 -1
- package/utils/browser/is-ios.d.ts +0 -6
- package/utils/browser/is-safari.d.ts +0 -1
- package/utils/color/get-gradient-data.d.ts +0 -1
- package/utils/color/hex-to-rgb.d.ts +0 -1
- package/utils/color/hex-to-rgba.d.ts +0 -3
- package/utils/color/hsv-to-rgb.d.ts +0 -4
- package/utils/color/index.d.ts +0 -9
- package/utils/color/parse-color.d.ts +0 -1
- package/utils/color/parse-gradient.d.ts +0 -10
- package/utils/color/rgb-to-hex.d.ts +0 -1
- package/utils/color/rgb-to-hsv.d.ts +0 -1
- package/utils/color/rgba-to-hex.d.ts +0 -2
- package/utils/dom/get-element-point.d.ts +0 -2
- package/utils/dom/is-current-target.d.ts +0 -1
- package/utils/dom/is-inside-iframe.d.ts +0 -4
- package/utils/dom/is-node-in.d.ts +0 -8
- package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
- package/utils/dom/value-binding.d.ts +0 -3
- package/utils/focus/blur-native-focused.d.ts +0 -9
- package/utils/focus/is-native-mouse-focusable.d.ts +0 -6
- package/utils/math/to-integer.d.ts +0 -1
- package/utils/math/to-radians.d.ts +0 -4
- package/utils/miscellaneous/change-date-separator.d.ts +0 -1
- package/utils/miscellaneous/create-token.d.ts +0 -9
- package/utils/miscellaneous/directive-listener.d.ts +0 -9
- package/utils/miscellaneous/flat-length.d.ts +0 -6
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
- package/utils/miscellaneous/is-falsy.d.ts +0 -1
- package/utils/miscellaneous/is-valid-url.d.ts +0 -4
- package/utils/miscellaneous/provide-options.d.ts +0 -2
- package/utils/miscellaneous/pure.d.ts +0 -22
- package/utils/miscellaneous/uniq-by.d.ts +0 -1
- /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
- /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, INJECTOR, NgZone, InjectionToken } from '@angular/core';
|
|
3
|
-
import { tuiProvide } from '@taiga-ui/cdk/utils';
|
|
4
|
-
import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
|
|
5
|
-
import { Observable, of, defer, switchMap, map, takeUntil, timer, endWith, tap } from 'rxjs';
|
|
6
|
-
import { WA_PERFORMANCE, WA_ANIMATION_FRAME } from '@ng-web-apis/common';
|
|
7
|
-
import { tuiZonefreeScheduler } from '@taiga-ui/cdk/observables';
|
|
8
|
-
import { tuiClamp } from '@taiga-ui/cdk/utils/math';
|
|
9
|
-
import { tuiEaseInOutQuad } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
10
|
-
import { DOCUMENT } from '@angular/common';
|
|
11
|
-
import { Meta } from '@angular/platform-browser';
|
|
12
|
-
|
|
13
|
-
class TuiIdService {
|
|
14
|
-
static { this.autoId = 0; }
|
|
15
|
-
generate() {
|
|
16
|
-
return `tui_${TuiIdService.autoId++}${Date.now()}`;
|
|
17
|
-
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiIdService, providedIn: 'root' }); }
|
|
20
|
-
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiIdService, decorators: [{
|
|
22
|
-
type: Injectable,
|
|
23
|
-
args: [{
|
|
24
|
-
providedIn: 'root',
|
|
25
|
-
}]
|
|
26
|
-
}] });
|
|
27
|
-
function tuiInjectId() {
|
|
28
|
-
return inject(TuiIdService).generate();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
class TuiPopoverService {
|
|
32
|
-
constructor(items, component, options = {}) {
|
|
33
|
-
this.options = options;
|
|
34
|
-
this.id = inject(TuiIdService);
|
|
35
|
-
this.component = new PolymorpheusComponent(component, inject(INJECTOR));
|
|
36
|
-
this.items$ = inject(items);
|
|
37
|
-
}
|
|
38
|
-
open(content, options = {}) {
|
|
39
|
-
return new Observable((observer) => {
|
|
40
|
-
const item = {
|
|
41
|
-
...this.options,
|
|
42
|
-
...options,
|
|
43
|
-
content,
|
|
44
|
-
$implicit: observer,
|
|
45
|
-
component: this.component,
|
|
46
|
-
createdAt: Date.now(),
|
|
47
|
-
id: this.id.generate(),
|
|
48
|
-
completeWith: (result) => {
|
|
49
|
-
observer.next(result);
|
|
50
|
-
observer.complete();
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
this.items$.next([...this.items$.value, item]);
|
|
54
|
-
return () => {
|
|
55
|
-
this.items$.next(this.items$.value.filter((value) => value !== item));
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPopoverService, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
60
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPopoverService }); }
|
|
61
|
-
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPopoverService, decorators: [{
|
|
63
|
-
type: Injectable
|
|
64
|
-
}], ctorParameters: function () { return [{ type: undefined }, { type: undefined }, { type: undefined }]; } });
|
|
65
|
-
function tuiAsPopover(popover) {
|
|
66
|
-
return tuiProvide(TuiPopoverService, popover);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
70
|
-
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
71
|
-
const SCROLL_TIME = 300;
|
|
72
|
-
function getX(elementOrWindow) {
|
|
73
|
-
return 'scrollX' in elementOrWindow
|
|
74
|
-
? elementOrWindow.scrollX
|
|
75
|
-
: elementOrWindow.scrollLeft;
|
|
76
|
-
}
|
|
77
|
-
function getY(elementOrWindow) {
|
|
78
|
-
return 'scrollY' in elementOrWindow
|
|
79
|
-
? elementOrWindow.scrollY
|
|
80
|
-
: elementOrWindow.scrollTop;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated: use native scroll
|
|
84
|
-
*/
|
|
85
|
-
class TuiScrollService {
|
|
86
|
-
constructor() {
|
|
87
|
-
this.performanceRef = inject(WA_PERFORMANCE);
|
|
88
|
-
this.animationFrame$ = inject(WA_ANIMATION_FRAME);
|
|
89
|
-
this.zone = inject(NgZone);
|
|
90
|
-
}
|
|
91
|
-
scroll$(elementOrWindow, scrollTop, scrollLeft = getX(elementOrWindow), duration = SCROLL_TIME) {
|
|
92
|
-
ngDevMode && console.assert(duration >= 0, 'duration cannot be negative');
|
|
93
|
-
ngDevMode && console.assert(scrollTop >= 0, 'scrollTop cannot be negative');
|
|
94
|
-
ngDevMode && console.assert(scrollLeft >= 0, 'scrollLeft cannot be negative');
|
|
95
|
-
const initialTop = getY(elementOrWindow);
|
|
96
|
-
const initialLeft = getX(elementOrWindow);
|
|
97
|
-
const deltaTop = scrollTop - initialTop;
|
|
98
|
-
const deltaLeft = scrollLeft - initialLeft;
|
|
99
|
-
const observable = !duration
|
|
100
|
-
? of([scrollTop, scrollLeft])
|
|
101
|
-
: defer(() => of(this.performanceRef.now())).pipe(switchMap((start) => this.animationFrame$.pipe(map((now) => now - start))), map((elapsed) => tuiEaseInOutQuad(tuiClamp(elapsed / duration, 0, 1))), map((percent) => [
|
|
102
|
-
initialTop + deltaTop * percent,
|
|
103
|
-
initialLeft + deltaLeft * percent,
|
|
104
|
-
]), takeUntil(timer(duration, tuiZonefreeScheduler(this.zone))), endWith([scrollTop, scrollLeft]));
|
|
105
|
-
return observable.pipe(tap(([scrollTop, scrollLeft]) => {
|
|
106
|
-
elementOrWindow.scrollTo?.(scrollLeft, scrollTop);
|
|
107
|
-
}));
|
|
108
|
-
}
|
|
109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
110
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiScrollService, providedIn: 'root' }); }
|
|
111
|
-
}
|
|
112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiScrollService, decorators: [{
|
|
113
|
-
type: Injectable,
|
|
114
|
-
args: [{
|
|
115
|
-
providedIn: 'root',
|
|
116
|
-
}]
|
|
117
|
-
}] });
|
|
118
|
-
|
|
119
|
-
const TUI_THEME_COLOR = new InjectionToken(ngDevMode ? 'TUI_THEME_COLOR' : '', {
|
|
120
|
-
factory: () => inject(Meta).getTag('name="theme-color"')?.content ?? '',
|
|
121
|
-
});
|
|
122
|
-
class TuiThemeColorService {
|
|
123
|
-
constructor() {
|
|
124
|
-
this.current = inject(TUI_THEME_COLOR);
|
|
125
|
-
this.doc = inject(DOCUMENT);
|
|
126
|
-
this.meta = inject(Meta);
|
|
127
|
-
this.color = this.current;
|
|
128
|
-
}
|
|
129
|
-
get color() {
|
|
130
|
-
return this.current;
|
|
131
|
-
}
|
|
132
|
-
set color(content) {
|
|
133
|
-
this.current = content;
|
|
134
|
-
this.meta.updateTag({ name: 'theme-color', content });
|
|
135
|
-
this.doc.documentElement.style.setProperty('--tui-theme-color', content);
|
|
136
|
-
}
|
|
137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiThemeColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
138
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiThemeColorService, providedIn: 'root' }); }
|
|
139
|
-
}
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiThemeColorService, decorators: [{
|
|
141
|
-
type: Injectable,
|
|
142
|
-
args: [{
|
|
143
|
-
providedIn: 'root',
|
|
144
|
-
}]
|
|
145
|
-
}], ctorParameters: function () { return []; } });
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Generated bundle index. Do not edit.
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
|
-
export { TUI_THEME_COLOR, TuiIdService, TuiPopoverService, TuiScrollService, TuiThemeColorService, tuiAsPopover, tuiInjectId };
|
|
152
|
-
//# sourceMappingURL=taiga-ui-cdk-services.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-services.mjs","sources":["../../../projects/cdk/services/id.service.ts","../../../projects/cdk/services/popover.service.ts","../../../projects/cdk/services/scroll.service.ts","../../../projects/cdk/services/theme-color.service.ts","../../../projects/cdk/services/taiga-ui-cdk-services.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiIdService {\n private static autoId = 0;\n\n public generate(): string {\n return `tui_${TuiIdService.autoId++}${Date.now()}`;\n }\n}\n\nexport function tuiInjectId(): string {\n return inject(TuiIdService).generate();\n}\n","import {\n inject,\n Injectable,\n INJECTOR,\n type Provider,\n type ProviderToken,\n type Type,\n} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvide} from '@taiga-ui/cdk/utils';\nimport {PolymorpheusComponent, type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {type BehaviorSubject, Observable, type Observer} from 'rxjs';\n\nimport {TuiIdService} from './id.service';\n\nexport interface TuiPopoverContext<O> extends TuiContext<Observer<O>> {\n readonly component: PolymorpheusComponent<any>;\n readonly createdAt: number;\n readonly id: string;\n readonly completeWith: (value: O) => void;\n}\n\nexport type TuiPopover<T, O> = T &\n TuiPopoverContext<O> & {\n content: PolymorpheusContent<T & TuiPopoverContext<O>>;\n };\n\n@Injectable()\nexport abstract class TuiPopoverService<T, K = void> {\n protected readonly component: PolymorpheusComponent<any>;\n protected readonly id = inject(TuiIdService);\n protected readonly items$: BehaviorSubject<ReadonlyArray<TuiPopover<T, any>>>;\n\n constructor(\n items: ProviderToken<BehaviorSubject<ReadonlyArray<TuiPopover<T, any>>>>,\n component: Type<any>,\n protected readonly options: T = {} as T,\n ) {\n this.component = new PolymorpheusComponent(component, inject(INJECTOR));\n this.items$ = inject(items);\n }\n\n public open<G = void>(\n content: PolymorpheusContent<T & TuiPopoverContext<K extends void ? G : K>>,\n options: Partial<T> = {},\n ): Observable<K extends void ? G : K> {\n return new Observable((observer) => {\n const item = {\n ...this.options,\n ...options,\n content,\n $implicit: observer,\n component: this.component,\n createdAt: Date.now(),\n id: this.id.generate(),\n completeWith: (result: K extends void ? G : K): void => {\n observer.next(result);\n observer.complete();\n },\n };\n\n this.items$.next([...this.items$.value, item]);\n\n return () => {\n this.items$.next(this.items$.value.filter((value) => value !== item));\n };\n });\n }\n}\n\nexport function tuiAsPopover(popover: Type<TuiPopoverService<any>>): Provider {\n return tuiProvide(TuiPopoverService, popover);\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {inject, Injectable, NgZone} from '@angular/core';\nimport {WA_ANIMATION_FRAME, WA_PERFORMANCE} from '@ng-web-apis/common';\nimport {tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiEaseInOutQuad} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n defer,\n endWith,\n map,\n type Observable,\n of,\n switchMap,\n takeUntil,\n tap,\n timer,\n} from 'rxjs';\n\nconst SCROLL_TIME = 300;\n\nfunction getX(elementOrWindow: Element | Window): number {\n return 'scrollX' in elementOrWindow\n ? elementOrWindow.scrollX\n : elementOrWindow.scrollLeft;\n}\n\nfunction getY(elementOrWindow: Element | Window): number {\n return 'scrollY' in elementOrWindow\n ? elementOrWindow.scrollY\n : elementOrWindow.scrollTop;\n}\n\n/**\n * @deprecated: use native scroll\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiScrollService {\n private readonly performanceRef = inject(WA_PERFORMANCE);\n private readonly animationFrame$ = inject(WA_ANIMATION_FRAME);\n private readonly zone = inject(NgZone);\n\n public scroll$(\n elementOrWindow: Element | Window,\n scrollTop: number,\n scrollLeft: number = getX(elementOrWindow),\n duration: number = SCROLL_TIME,\n ): Observable<[number, number]> {\n ngDevMode && console.assert(duration >= 0, 'duration cannot be negative');\n ngDevMode && console.assert(scrollTop >= 0, 'scrollTop cannot be negative');\n ngDevMode && console.assert(scrollLeft >= 0, 'scrollLeft cannot be negative');\n\n const initialTop = getY(elementOrWindow);\n const initialLeft = getX(elementOrWindow);\n const deltaTop = scrollTop - initialTop;\n const deltaLeft = scrollLeft - initialLeft;\n const observable = !duration\n ? of<[number, number]>([scrollTop, scrollLeft])\n : defer(() => of(this.performanceRef.now())).pipe(\n switchMap((start) =>\n this.animationFrame$.pipe(map((now) => now - start)),\n ),\n map((elapsed) => tuiEaseInOutQuad(tuiClamp(elapsed / duration, 0, 1))),\n map<number, [number, number]>((percent) => [\n initialTop + deltaTop * percent,\n initialLeft + deltaLeft * percent,\n ]),\n takeUntil(timer(duration, tuiZonefreeScheduler(this.zone))),\n endWith<[number, number]>([scrollTop, scrollLeft]),\n );\n\n return observable.pipe(\n tap(([scrollTop, scrollLeft]) => {\n elementOrWindow.scrollTo?.(scrollLeft, scrollTop);\n }),\n );\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable, InjectionToken} from '@angular/core';\nimport {Meta} from '@angular/platform-browser';\n\nexport const TUI_THEME_COLOR = new InjectionToken<string>(\n ngDevMode ? 'TUI_THEME_COLOR' : '',\n {\n factory: () => inject(Meta).getTag('name=\"theme-color\"')?.content ?? '',\n },\n);\n\ninterface TuiThemeColor {\n get color(): string;\n set color(value: string);\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiThemeColorService implements TuiThemeColor {\n private current = inject(TUI_THEME_COLOR);\n private readonly doc = inject(DOCUMENT);\n private readonly meta = inject(Meta);\n\n constructor() {\n this.color = this.current;\n }\n\n public get color(): string {\n return this.current;\n }\n\n public set color(content: string) {\n this.current = content;\n this.meta.updateTag({name: 'theme-color', content});\n this.doc.documentElement.style.setProperty('--tui-theme-color', content);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAGa,YAAY,CAAA;aACN,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK,EAAA;IAEnB,QAAQ,GAAA;QACX,OAAO,CAAA,IAAA,EAAO,YAAY,CAAC,MAAM,EAAE,CAAG,EAAA,IAAI,CAAC,GAAG,EAAE,CAAA,CAAE,CAAC;KACtD;+GALQ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,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AAA,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AAGjC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;KAC7B;AAED,IAAA,IAAW,KAAK,GAAA;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC;KACvB;IAED,IAAW,KAAK,CAAC,OAAe,EAAA;AAC5B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAC,CAAC,CAAC;AACpD,QAAA,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;KAC5E;+GAjBQ,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAApB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFjB,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAET,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { isIos } from '@ng-web-apis/platform';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description:
|
|
5
|
-
* All Chrome / Chromium-based browsers will return MacIntel on macOS,
|
|
6
|
-
* no matter what the hardware architecture is. See the source code here:
|
|
7
|
-
* https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6
|
|
8
|
-
* But maybe in future years, it will be changed to MacM1
|
|
9
|
-
*
|
|
10
|
-
* Documentation:
|
|
11
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
|
|
12
|
-
*/
|
|
13
|
-
function tuiIsApple(navigator) {
|
|
14
|
-
return navigator.platform.startsWith('Mac') || navigator.platform === 'iPhone';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function tuiIsEdge(userAgent) {
|
|
18
|
-
return userAgent.toLowerCase().includes('edge');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function tuiIsFirefox(userAgent) {
|
|
22
|
-
return userAgent.toLowerCase().includes('firefox');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated: drop in v5, use import {isApple} from '@ng-web-apis/platform';
|
|
27
|
-
* @param navigator
|
|
28
|
-
*/
|
|
29
|
-
const tuiIsIos = isIos;
|
|
30
|
-
|
|
31
|
-
// TODO: Drop change to Document in v5
|
|
32
|
-
function tuiIsSafari({ ownerDocument: doc }) {
|
|
33
|
-
const win = doc?.defaultView;
|
|
34
|
-
const isMacOsSafari = win.safari !== undefined &&
|
|
35
|
-
win.safari?.pushNotification?.toString() === '[object SafariRemoteNotification]';
|
|
36
|
-
const isIosSafari = (win.navigator?.vendor?.includes('Apple') &&
|
|
37
|
-
!win.navigator?.userAgent?.includes('CriOS') &&
|
|
38
|
-
!win.navigator?.userAgent?.includes('FxiOS')) ??
|
|
39
|
-
false;
|
|
40
|
-
return isMacOsSafari || isIosSafari;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Generated bundle index. Do not edit.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
export { tuiIsApple, tuiIsEdge, tuiIsFirefox, tuiIsIos, tuiIsSafari };
|
|
48
|
-
//# sourceMappingURL=taiga-ui-cdk-utils-browser.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-browser.mjs","sources":["../../../projects/cdk/utils/browser/is-apple.ts","../../../projects/cdk/utils/browser/is-edge.ts","../../../projects/cdk/utils/browser/is-firefox.ts","../../../projects/cdk/utils/browser/is-ios.ts","../../../projects/cdk/utils/browser/is-safari.ts","../../../projects/cdk/utils/browser/taiga-ui-cdk-utils-browser.ts"],"sourcesContent":["/**\n * @description:\n * All Chrome / Chromium-based browsers will return MacIntel on macOS,\n * no matter what the hardware architecture is. See the source code here:\n * https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6\n * But maybe in future years, it will be changed to MacM1\n *\n * Documentation:\n * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform\n */\nexport function tuiIsApple(navigator: Navigator): boolean {\n return navigator.platform.startsWith('Mac') || navigator.platform === 'iPhone';\n}\n","export function tuiIsEdge(userAgent: string): boolean {\n return userAgent.toLowerCase().includes('edge');\n}\n","export function tuiIsFirefox(userAgent: string): boolean {\n return userAgent.toLowerCase().includes('firefox');\n}\n","import {isIos} from '@ng-web-apis/platform';\n\n/**\n * @deprecated: drop in v5, use import {isApple} from '@ng-web-apis/platform';\n * @param navigator\n */\nexport const tuiIsIos = isIos;\n","// TODO: Drop change to Document in v5\nexport function tuiIsSafari({ownerDocument: doc}: Element): boolean {\n const win = doc?.defaultView as unknown as Window & {safari?: any};\n\n const isMacOsSafari =\n win.safari !== undefined &&\n win.safari?.pushNotification?.toString() === '[object SafariRemoteNotification]';\n\n const isIosSafari =\n (win.navigator?.vendor?.includes('Apple') &&\n !win.navigator?.userAgent?.includes('CriOS') &&\n !win.navigator?.userAgent?.includes('FxiOS')) ??\n false;\n\n return isMacOsSafari || isIosSafari;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;;;;;;;;AASG;AACG,SAAU,UAAU,CAAC,SAAoB,EAAA;AAC3C,IAAA,OAAO,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACnF;;ACZM,SAAU,SAAS,CAAC,SAAiB,EAAA;IACvC,OAAO,SAAS,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACpD;;ACFM,SAAU,YAAY,CAAC,SAAiB,EAAA;IAC1C,OAAO,SAAS,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACvD;;ACAA;;;AAGG;AACI,MAAM,QAAQ,GAAG;;ACNxB;SACgB,WAAW,CAAC,EAAC,aAAa,EAAE,GAAG,EAAU,EAAA;AACrD,IAAA,MAAM,GAAG,GAAG,GAAG,EAAE,WAAiD,CAAC;AAEnE,IAAA,MAAM,aAAa,GACf,GAAG,CAAC,MAAM,KAAK,SAAS;QACxB,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,mCAAmC,CAAC;AAErF,IAAA,MAAM,WAAW,GACb,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC;QACrC,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC;QAC5C,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC;AAChD,QAAA,KAAK,CAAC;IAEV,OAAO,aAAa,IAAI,WAAW,CAAC;AACxC;;ACfA;;AAEG;;;;"}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
function tuiGetGradientData(gradient) {
|
|
2
|
-
return gradient
|
|
3
|
-
.slice(0, Math.max(0, gradient.length - 1))
|
|
4
|
-
.replace('linear-gradient(', '');
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function tuiHexToRgb(hex) {
|
|
8
|
-
const matches = hex
|
|
9
|
-
.replace('#', '')
|
|
10
|
-
.split('')
|
|
11
|
-
.map((char, _, array) => (array.length === 3 ? char + char : char))
|
|
12
|
-
.join('')
|
|
13
|
-
.match(/.{2}/g);
|
|
14
|
-
return matches
|
|
15
|
-
? matches.map((x) => Number.parseInt(x, 16))
|
|
16
|
-
: [0, 0, 0];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const getChunksFromString = (hex, chunkSize) => hex.match(new RegExp(`.{${chunkSize}}`, 'g'));
|
|
20
|
-
const convertHexUnitTo256 = (hexStr) => parseInt(hexStr.repeat(2 / hexStr.length), 16);
|
|
21
|
-
const getAlphaFloat = (a, alpha) => {
|
|
22
|
-
if (a !== undefined) {
|
|
23
|
-
return Number((a / 255).toFixed(2));
|
|
24
|
-
}
|
|
25
|
-
if (typeof alpha !== 'number' || alpha < 0 || alpha > 1) {
|
|
26
|
-
return 1;
|
|
27
|
-
}
|
|
28
|
-
return alpha;
|
|
29
|
-
};
|
|
30
|
-
function tuiHexToRGBA(hex, alpha) {
|
|
31
|
-
const [r, g, b, a] = tuiParseHex(hex, alpha);
|
|
32
|
-
return a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : `rgb(${r}, ${g}, ${b})`;
|
|
33
|
-
}
|
|
34
|
-
function tuiIsValidHex(hex) {
|
|
35
|
-
return /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
|
|
36
|
-
}
|
|
37
|
-
function tuiParseHex(hex, alpha) {
|
|
38
|
-
if (!tuiIsValidHex(hex)) {
|
|
39
|
-
throw new Error('Invalid HEX');
|
|
40
|
-
}
|
|
41
|
-
const chunkSize = Math.floor((hex.length - 1) / 3);
|
|
42
|
-
const hexArr = getChunksFromString(hex.slice(1), chunkSize);
|
|
43
|
-
const [r = NaN, g = NaN, b = NaN, a] = hexArr?.map(convertHexUnitTo256) ?? [];
|
|
44
|
-
const floatAlpha = getAlphaFloat(a, alpha);
|
|
45
|
-
return [r, g, b, floatAlpha];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function hsvToColor(h, s, v, n) {
|
|
49
|
-
const k = (n + h / 60) % 6;
|
|
50
|
-
return Math.round(v - v * s * Math.max(Math.min(k, 4 - k, 1), 0));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* https://stackoverflow.com/a/54024653/2706426
|
|
54
|
-
*/
|
|
55
|
-
function tuiHsvToRgb(h, s, v) {
|
|
56
|
-
return [hsvToColor(h, s, v, 5), hsvToColor(h, s, v, 3), hsvToColor(h, s, v, 1)];
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const DEFAULT = [0, 0, 0, 1];
|
|
60
|
-
function tuiParseColor(color) {
|
|
61
|
-
const stripped = color
|
|
62
|
-
.replace('#', '')
|
|
63
|
-
.replace('rgba(', '')
|
|
64
|
-
.replace('rgb(', '')
|
|
65
|
-
.replace(')', '');
|
|
66
|
-
const array = stripped.split(',').map((item) => parseFloat(item));
|
|
67
|
-
if (array.length === 4) {
|
|
68
|
-
return array;
|
|
69
|
-
}
|
|
70
|
-
if (array.length === 3) {
|
|
71
|
-
return array.concat(1);
|
|
72
|
-
}
|
|
73
|
-
const matches = stripped.match(new RegExp(`(.{${stripped.length / 3}})`, 'g'));
|
|
74
|
-
if (!matches) {
|
|
75
|
-
return DEFAULT;
|
|
76
|
-
}
|
|
77
|
-
const parsed = matches.map((char) => parseInt(stripped.length % 2 ? char + char : char, 16));
|
|
78
|
-
return [
|
|
79
|
-
parsed[0] ?? DEFAULT[0],
|
|
80
|
-
parsed[1] ?? DEFAULT[1],
|
|
81
|
-
parsed[2] ?? DEFAULT[2],
|
|
82
|
-
parsed[3] ?? DEFAULT[3],
|
|
83
|
-
];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
//
|
|
87
|
-
// TypeScript parser based on Dean Taylor's answer:
|
|
88
|
-
// https://stackoverflow.com/a/20238168/2706426
|
|
89
|
-
//
|
|
90
|
-
// SETUP CODE
|
|
91
|
-
const COMMA = String.raw `\s*,\s*`; // Allow space around comma.
|
|
92
|
-
const HEX = '#(?:[a-f0-9]{6}|[a-f0-9]{3})'; // 3 or 6 character form
|
|
93
|
-
const RGB = String.raw `\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*\)`; // "(1, 2, 3)"
|
|
94
|
-
const RGBA = String.raw `\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*,\s*\d*\.?\d+\)`; // "(1, 2, 3, 4)"
|
|
95
|
-
const VALUE = String.raw `(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?`; // ".9", "-5px", "100%".
|
|
96
|
-
const KEYWORD = '[_a-z-][_a-z0-9-]*'; // "red", "transparent", "border-collapse".
|
|
97
|
-
const COLOR = [
|
|
98
|
-
'(?:',
|
|
99
|
-
HEX,
|
|
100
|
-
'|',
|
|
101
|
-
'(?:rgb|hsl)',
|
|
102
|
-
RGB,
|
|
103
|
-
'|',
|
|
104
|
-
'(?:rgba|hsla)',
|
|
105
|
-
RGBA,
|
|
106
|
-
'|',
|
|
107
|
-
KEYWORD,
|
|
108
|
-
')',
|
|
109
|
-
];
|
|
110
|
-
const REGEXP_ARRAY = [
|
|
111
|
-
String.raw `\s*(`,
|
|
112
|
-
...COLOR,
|
|
113
|
-
')',
|
|
114
|
-
String.raw `(?:\s+`,
|
|
115
|
-
'(',
|
|
116
|
-
VALUE,
|
|
117
|
-
'))?',
|
|
118
|
-
'(?:',
|
|
119
|
-
COMMA,
|
|
120
|
-
String.raw `\s*)?`,
|
|
121
|
-
];
|
|
122
|
-
function getPosition(match, stops) {
|
|
123
|
-
const fallback = stops === 1 ? '100%' : `${stops}%`;
|
|
124
|
-
return match?.includes('%') ? match : fallback;
|
|
125
|
-
}
|
|
126
|
-
function tuiParseGradient(input) {
|
|
127
|
-
const stopsRegexp = new RegExp(REGEXP_ARRAY.join(''), 'gi');
|
|
128
|
-
const stopsString = input.startsWith('to') || /^\d/.exec(input)
|
|
129
|
-
? input.slice(Math.max(0, input.indexOf(',') + 1)).trim()
|
|
130
|
-
: input;
|
|
131
|
-
const side = input.startsWith('to')
|
|
132
|
-
? input.split(',')[0]
|
|
133
|
-
: 'to bottom';
|
|
134
|
-
let stops = [];
|
|
135
|
-
let matchColorStop = stopsRegexp.exec(stopsString);
|
|
136
|
-
while (matchColorStop !== null) {
|
|
137
|
-
stops = stops.concat({
|
|
138
|
-
color: matchColorStop[1] || '',
|
|
139
|
-
position: getPosition(matchColorStop[2] || '', stops.length),
|
|
140
|
-
});
|
|
141
|
-
matchColorStop = stopsRegexp.exec(stopsString);
|
|
142
|
-
}
|
|
143
|
-
stops = stops.filter(({ color }) => color.startsWith('#') || color.startsWith('rgb'));
|
|
144
|
-
return {
|
|
145
|
-
stops,
|
|
146
|
-
side,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
function tuiToGradient({ stops, side }) {
|
|
150
|
-
return `linear-gradient(${side}, ${stops
|
|
151
|
-
.map(({ color, position }) => `rgba(${tuiParseColor(color).join(', ')}) ${position}`)
|
|
152
|
-
.join(', ')})`;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
function tuiRgbToHex(r, g, b) {
|
|
156
|
-
return `#${[r, g, b].map((x) => x.toString(16).padStart(2, '0')).join('')}`;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function tuiRgbToHsv(r, g, b) {
|
|
160
|
-
const v = Math.max(r, g, b);
|
|
161
|
-
const n = v - Math.min(r, g, b);
|
|
162
|
-
// eslint-disable-next-line no-nested-ternary
|
|
163
|
-
const h = n && (v === r ? (g - b) / n : v === g ? 2 + (b - r) / n : 4 + (r - g) / n);
|
|
164
|
-
return [60 * (h < 0 ? h + 6 : h), v && n / v, v];
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function tuiRgbaToHex(color) {
|
|
168
|
-
if (!tuiIsValidRgba(color)) {
|
|
169
|
-
throw new Error('Invalid RGBa');
|
|
170
|
-
}
|
|
171
|
-
const rgb = /^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i.exec(color.replaceAll(/\s/g, '')) ??
|
|
172
|
-
null;
|
|
173
|
-
let alpha = ((rgb?.[4] ?? '')).trim();
|
|
174
|
-
let hex = rgb
|
|
175
|
-
? ((parseInt(rgb?.[1] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1) +
|
|
176
|
-
((parseInt(rgb?.[2] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1) +
|
|
177
|
-
((parseInt(rgb?.[3] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1)
|
|
178
|
-
: color;
|
|
179
|
-
alpha = alpha !== '' ? alpha : 0o1;
|
|
180
|
-
alpha = ((Number(alpha) * 255) | (1 << 8)).toString(16).slice(1);
|
|
181
|
-
hex += alpha;
|
|
182
|
-
return `#${hex.toUpperCase()}`;
|
|
183
|
-
}
|
|
184
|
-
function tuiIsValidRgba(rgba) {
|
|
185
|
-
const range = String.raw `(\d|[1-9]\d|1\d{2}|2[0-4]\d|2[0-5]{2})`;
|
|
186
|
-
const alpha = String.raw `([01]|0?\.\d+)`;
|
|
187
|
-
return new RegExp(`^(?:rgb\\(\\s*${range}\\s*,\\s*${range}\\s*,\\s*${range}\\s*\\)|rgba\\(\\s*${range}\\s*,\\s*${range}\\s*,\\s*${range}\\s*,\\s*${alpha}\\s*\\))$`).test(rgba);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Generated bundle index. Do not edit.
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
export { tuiGetGradientData, tuiHexToRGBA, tuiHexToRgb, tuiHsvToRgb, tuiIsValidHex, tuiIsValidRgba, tuiParseColor, tuiParseGradient, tuiParseHex, tuiRgbToHex, tuiRgbToHsv, tuiRgbaToHex, tuiToGradient };
|
|
195
|
-
//# sourceMappingURL=taiga-ui-cdk-utils-color.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-color.mjs","sources":["../../../projects/cdk/utils/color/get-gradient-data.ts","../../../projects/cdk/utils/color/hex-to-rgb.ts","../../../projects/cdk/utils/color/hex-to-rgba.ts","../../../projects/cdk/utils/color/hsv-to-rgb.ts","../../../projects/cdk/utils/color/parse-color.ts","../../../projects/cdk/utils/color/parse-gradient.ts","../../../projects/cdk/utils/color/rgb-to-hex.ts","../../../projects/cdk/utils/color/rgb-to-hsv.ts","../../../projects/cdk/utils/color/rgba-to-hex.ts","../../../projects/cdk/utils/color/taiga-ui-cdk-utils-color.ts"],"sourcesContent":["export function tuiGetGradientData(gradient: string): string {\n return gradient\n .slice(0, Math.max(0, gradient.length - 1))\n .replace('linear-gradient(', '');\n}\n","export function tuiHexToRgb(hex: string): [number, number, number] {\n const matches = hex\n .replace('#', '')\n .split('')\n .map((char, _, array) => (array.length === 3 ? char + char : char))\n .join('')\n .match(/.{2}/g);\n\n return matches\n ? (matches.map((x) => Number.parseInt(x, 16)) as [number, number, number])\n : [0, 0, 0];\n}\n","const getChunksFromString = (hex: string, chunkSize: number): RegExpMatchArray | null =>\n hex.match(new RegExp(`.{${chunkSize}}`, 'g'));\n\nconst convertHexUnitTo256 = (hexStr: string): number =>\n parseInt(hexStr.repeat(2 / hexStr.length), 16);\n\nconst getAlphaFloat = (a?: number, alpha?: number): number => {\n if (a !== undefined) {\n return Number((a / 255).toFixed(2));\n }\n\n if (typeof alpha !== 'number' || alpha < 0 || alpha > 1) {\n return 1;\n }\n\n return alpha;\n};\n\nexport function tuiHexToRGBA(hex: string, alpha?: number): string {\n const [r, g, b, a] = tuiParseHex(hex, alpha);\n\n return a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : `rgb(${r}, ${g}, ${b})`;\n}\n\nexport function tuiIsValidHex(hex: string): boolean {\n return /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);\n}\n\nexport function tuiParseHex(\n hex: string,\n alpha?: number,\n): [number, number, number, number] {\n if (!tuiIsValidHex(hex)) {\n throw new Error('Invalid HEX');\n }\n\n const chunkSize = Math.floor((hex.length - 1) / 3);\n const hexArr = getChunksFromString(hex.slice(1), chunkSize);\n const [r = NaN, g = NaN, b = NaN, a] = hexArr?.map(convertHexUnitTo256) ?? [];\n const floatAlpha = getAlphaFloat(a, alpha);\n\n return [r, g, b, floatAlpha];\n}\n","function hsvToColor(h: number, s: number, v: number, n: number): number {\n const k = (n + h / 60) % 6;\n\n return Math.round(v - v * s * Math.max(Math.min(k, 4 - k, 1), 0));\n}\n\n/**\n * https://stackoverflow.com/a/54024653/2706426\n */\nexport function tuiHsvToRgb(h: number, s: number, v: number): [number, number, number] {\n return [hsvToColor(h, s, v, 5), hsvToColor(h, s, v, 3), hsvToColor(h, s, v, 1)];\n}\n","const DEFAULT: [number, number, number, number] = [0, 0, 0, 1];\n\nexport function tuiParseColor(color: string): [number, number, number, number] {\n const stripped = color\n .replace('#', '')\n .replace('rgba(', '')\n .replace('rgb(', '')\n .replace(')', '');\n const array = stripped.split(',').map((item) => parseFloat(item));\n\n if (array.length === 4) {\n return array as [number, number, number, number];\n }\n\n if (array.length === 3) {\n return array.concat(1) as [number, number, number, number];\n }\n\n const matches = stripped.match(new RegExp(`(.{${stripped.length / 3}})`, 'g'));\n\n if (!matches) {\n return DEFAULT;\n }\n\n const parsed = matches.map((char) =>\n parseInt(stripped.length % 2 ? char + char : char, 16),\n );\n\n return [\n parsed[0] ?? DEFAULT[0],\n parsed[1] ?? DEFAULT[1],\n parsed[2] ?? DEFAULT[2],\n parsed[3] ?? DEFAULT[3],\n ];\n}\n","import {tuiParseColor} from './parse-color';\n\nexport interface TuiParsedGradient {\n readonly side: TuiGradientDirection;\n readonly stops: ReadonlyArray<{\n readonly color: string;\n readonly position: string;\n }>;\n}\n\nexport type TuiGradientDirection =\n | 'to bottom left'\n | 'to bottom right'\n | 'to bottom'\n | 'to left'\n | 'to right'\n | 'to top left'\n | 'to top right'\n | 'to top';\n\n//\n// TypeScript parser based on Dean Taylor's answer:\n// https://stackoverflow.com/a/20238168/2706426\n//\n// SETUP CODE\nconst COMMA = String.raw`\\s*,\\s*`; // Allow space around comma.\nconst HEX = '#(?:[a-f0-9]{6}|[a-f0-9]{3})'; // 3 or 6 character form\nconst RGB = String.raw`\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*\\)`; // \"(1, 2, 3)\"\nconst RGBA = String.raw`\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*,\\s*\\d*\\.?\\d+\\)`; // \"(1, 2, 3, 4)\"\nconst VALUE = String.raw`(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?`; // \".9\", \"-5px\", \"100%\".\nconst KEYWORD = '[_a-z-][_a-z0-9-]*'; // \"red\", \"transparent\", \"border-collapse\".\nconst COLOR = [\n '(?:',\n HEX,\n '|',\n '(?:rgb|hsl)',\n RGB,\n '|',\n '(?:rgba|hsla)',\n RGBA,\n '|',\n KEYWORD,\n ')',\n];\nconst REGEXP_ARRAY = [\n String.raw`\\s*(`,\n ...COLOR,\n ')',\n String.raw`(?:\\s+`,\n '(',\n VALUE,\n '))?',\n '(?:',\n COMMA,\n String.raw`\\s*)?`,\n];\n\nfunction getPosition(match: string, stops: number): string {\n const fallback = stops === 1 ? '100%' : `${stops}%`;\n\n return match?.includes('%') ? match : fallback;\n}\n\nexport function tuiParseGradient(input: string): TuiParsedGradient {\n const stopsRegexp = new RegExp(REGEXP_ARRAY.join(''), 'gi');\n const stopsString =\n input.startsWith('to') || /^\\d/.exec(input)\n ? input.slice(Math.max(0, input.indexOf(',') + 1)).trim()\n : input;\n\n const side = input.startsWith('to')\n ? (input.split(',')[0] as TuiGradientDirection)\n : 'to bottom';\n let stops: TuiParsedGradient['stops'] = [];\n\n let matchColorStop = stopsRegexp.exec(stopsString);\n\n while (matchColorStop !== null) {\n stops = stops.concat({\n color: matchColorStop[1] || '',\n position: getPosition(matchColorStop[2] || '', stops.length),\n });\n\n matchColorStop = stopsRegexp.exec(stopsString);\n }\n\n stops = stops.filter(({color}) => color.startsWith('#') || color.startsWith('rgb'));\n\n return {\n stops,\n side,\n };\n}\n\nexport function tuiToGradient({stops, side}: TuiParsedGradient): string {\n return `linear-gradient(${side}, ${stops\n .map(\n ({color, position}) => `rgba(${tuiParseColor(color).join(', ')}) ${position}`,\n )\n .join(', ')})`;\n}\n","export function tuiRgbToHex(r: number, g: number, b: number): string {\n return `#${[r, g, b].map((x) => x.toString(16).padStart(2, '0')).join('')}`;\n}\n","export function tuiRgbToHsv(r: number, g: number, b: number): [number, number, number] {\n const v = Math.max(r, g, b);\n const n = v - Math.min(r, g, b);\n\n // eslint-disable-next-line no-nested-ternary\n const h = n && (v === r ? (g - b) / n : v === g ? 2 + (b - r) / n : 4 + (r - g) / n);\n\n return [60 * (h < 0 ? h + 6 : h), v && n / v, v];\n}\n","export function tuiRgbaToHex(color: string): string {\n if (!tuiIsValidRgba(color)) {\n throw new Error('Invalid RGBa');\n }\n\n const rgb =\n /^rgba?\\((\\d+),(\\d+),(\\d+),?([^,\\s)]+)?/i.exec(color.replaceAll(/\\s/g, '')) ??\n null;\n\n let alpha: number | string = ((rgb?.[4] ?? '') satisfies string).trim();\n\n let hex = rgb\n ? ((parseInt(rgb?.[1] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1) +\n ((parseInt(rgb?.[2] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1) +\n ((parseInt(rgb?.[3] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1)\n : color;\n\n alpha = alpha !== '' ? alpha : 0o1;\n alpha = ((Number(alpha) * 255) | (1 << 8)).toString(16).slice(1);\n hex += alpha;\n\n return `#${hex.toUpperCase()}`;\n}\n\nexport function tuiIsValidRgba(rgba: string): boolean {\n const range = String.raw`(\\d|[1-9]\\d|1\\d{2}|2[0-4]\\d|2[0-5]{2})`;\n const alpha = String.raw`([01]|0?\\.\\d+)`;\n\n return new RegExp(\n `^(?:rgb\\\\(\\\\s*${range}\\\\s*,\\\\s*${range}\\\\s*,\\\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CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjE,GAAG,IAAI,KAAK,CAAC;AAEb,IAAA,OAAO,IAAI,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;AACnC,CAAC;AAEK,SAAU,cAAc,CAAC,IAAY,EAAA;AACvC,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA,wCAAwC,CAAC;AACjE,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAgB,CAAC;IAEzC,OAAO,IAAI,MAAM,CACb,CAAiB,cAAA,EAAA,KAAK,YAAY,KAAK,CAAA,SAAA,EAAY,KAAK,CAAA,mBAAA,EAAsB,KAAK,CAAA,SAAA,EAAY,KAAK,CAAY,SAAA,EAAA,KAAK,CAAY,SAAA,EAAA,KAAK,CAAW,SAAA,CAAA,CACpJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB;;AC/BA;;AAEG;;;;"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type QueryList } from '@angular/core';
|
|
2
|
-
import { type Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Converts changes observable of a QueryList to an Observable of arrays
|
|
5
|
-
*/
|
|
6
|
-
export declare function tuiQueryListChanges<T>(queryList: QueryList<T>): Observable<readonly T[]>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type PipeTransform } from '@angular/core';
|
|
2
|
-
import { type TuiDurationOptions } from '@taiga-ui/core/animations';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TuiAnimationPipe implements PipeTransform {
|
|
5
|
-
private readonly speed;
|
|
6
|
-
readonly transform: ({ duration, speed, value, ...params }?: Partial<{
|
|
7
|
-
duration: number;
|
|
8
|
-
speed: number;
|
|
9
|
-
value: string;
|
|
10
|
-
}> & Record<string, any>) => TuiDurationOptions;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAnimationPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TuiAnimationPipe, "tuiAnimation", true>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './animation.pipe';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './is-present.pipe';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiIsPresentPipe implements PipeTransform {
|
|
4
|
-
transform<T>(value?: T | null): value is T;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiIsPresentPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TuiIsPresentPipe, "tuiIsPresent", true>;
|
|
7
|
-
}
|
package/pipes/keys/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './keys.pipe';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiKeysPipe implements PipeTransform {
|
|
4
|
-
transform(object: Record<any, any>): string[];
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiKeysPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TuiKeysPipe, "tuiKeys", true>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiRepeatTimesPipe implements PipeTransform {
|
|
4
|
-
transform(n: number): number[];
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiRepeatTimesPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TuiRepeatTimesPipe, "tuiRepeatTimes", true>;
|
|
7
|
-
}
|
package/pipes/replace/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './replace.pipe';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiReplacePipe implements PipeTransform {
|
|
4
|
-
transform(value: string | null | undefined, search: RegExp | string, replaceValue: string | ((substring: string, ...args: unknown[]) => string)): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiReplacePipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TuiReplacePipe, "tuiReplace", true>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './to-array.pipe';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PipeTransform, type QueryList } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiToArrayPipe implements PipeTransform {
|
|
4
|
-
transform<T>(items: Map<any, any> | QueryList<T> | Set<any>): readonly T[];
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiToArrayPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TuiToArrayPipe, "tuiToArray", true>;
|
|
7
|
-
}
|