@taiga-ui/cdk 3.491.1-canary.d27927b → 4.0.0-alpha.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/LICENSE +1 -1
- package/classes/control.d.ts +41 -0
- package/classes/controller.d.ts +9 -0
- package/classes/index.d.ts +4 -1
- package/classes/portals.d.ts +33 -0
- package/classes/validation-error.d.ts +1 -1
- package/classes/value-transformer.d.ts +4 -0
- package/constants/handlers.d.ts +8 -0
- package/constants/index.d.ts +3 -7
- package/constants/matchers.d.ts +23 -0
- package/constants/regexp.d.ts +3 -0
- package/constants/svg-node-filter.d.ts +1 -1
- package/constants/used-icons.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/day-of-week.d.ts +9 -0
- package/date-time/day-range.d.ts +1 -1
- package/date-time/day.d.ts +5 -3
- package/date-time/index.d.ts +3 -2
- package/date-time/month-number.d.ts +14 -0
- package/date-time/month-range.d.ts +1 -1
- package/date-time/month.d.ts +2 -2
- package/date-time/time.d.ts +1 -2
- package/date-time/types.d.ts +31 -0
- package/date-time/year.d.ts +2 -2
- package/directives/active-zone/active-zone.directive.d.ts +10 -9
- package/directives/active-zone/index.d.ts +0 -1
- package/directives/auto-focus/autofocus.directive.d.ts +8 -9
- package/directives/auto-focus/autofocus.options.d.ts +7 -8
- package/directives/auto-focus/handlers/abstract.handler.d.ts +4 -9
- package/directives/auto-focus/handlers/default.handler.d.ts +3 -7
- package/directives/auto-focus/handlers/ios.handler.d.ts +2 -6
- package/directives/auto-focus/handlers/sync.handler.d.ts +0 -6
- package/directives/auto-focus/index.d.ts +0 -1
- package/directives/click-outside/click-outside.directive.d.ts +4 -6
- package/directives/click-outside/index.d.ts +0 -1
- package/directives/control/control.directive.d.ts +4 -5
- package/directives/control/index.d.ts +0 -1
- package/directives/copy-processor/copy-processor.directive.d.ts +5 -6
- package/directives/copy-processor/index.d.ts +0 -1
- package/directives/droppable/droppable.directive.d.ts +6 -8
- package/directives/droppable/index.d.ts +0 -1
- package/directives/element/element.directive.d.ts +4 -4
- package/directives/element/index.d.ts +0 -1
- package/directives/focus-trap/focus-trap.directive.d.ts +7 -8
- package/directives/focus-trap/index.d.ts +0 -1
- package/directives/for/for.directive.d.ts +4 -5
- package/directives/for/index.d.ts +0 -1
- package/directives/high-dpi/high-dpi.directive.d.ts +4 -5
- package/directives/high-dpi/index.d.ts +0 -1
- package/directives/hovered/hovered.directive.d.ts +5 -6
- package/directives/hovered/hovered.service.d.ts +3 -2
- package/directives/hovered/index.d.ts +0 -1
- package/directives/index.d.ts +2 -12
- package/directives/item/index.d.ts +0 -1
- package/directives/item/item.directive.d.ts +3 -3
- package/directives/let/index.d.ts +0 -1
- package/directives/let/let-context.d.ts +4 -4
- package/directives/let/let.directive.d.ts +5 -6
- package/directives/media/index.d.ts +0 -1
- package/directives/media/media.directive.d.ts +9 -11
- package/directives/native-validator/index.d.ts +1 -0
- package/directives/native-validator/native-validator.directive.d.ts +14 -0
- package/directives/obscured/index.d.ts +1 -1
- package/directives/obscured/obscured.directive.d.ts +6 -8
- package/directives/obscured/obscured.service.d.ts +13 -0
- package/directives/pan/index.d.ts +1 -1
- package/directives/pan/pan.directive.d.ts +5 -6
- package/directives/pan/pan.service.d.ts +7 -0
- package/directives/platform/index.d.ts +0 -1
- package/directives/platform/platform.directive.d.ts +4 -5
- package/directives/popover/index.d.ts +1 -0
- package/directives/popover/popover.directive.d.ts +14 -0
- package/directives/repeat-times/index.d.ts +0 -1
- package/directives/repeat-times/repeat-times.directive.d.ts +6 -8
- package/directives/resizer/index.d.ts +1 -2
- package/directives/resizer/resizable.directive.d.ts +6 -0
- package/directives/resizer/resizer.directive.d.ts +14 -17
- package/directives/swipe/index.d.ts +3 -1
- package/directives/swipe/swipe.directive.d.ts +5 -7
- package/directives/swipe/swipe.options.d.ts +2 -0
- package/directives/swipe/swipe.service.d.ts +8 -0
- package/directives/swipe/swipe.types.d.ts +9 -0
- package/directives/validator/index.d.ts +0 -1
- package/directives/validator/validator.directive.d.ts +5 -5
- package/directives/value-changes/index.d.ts +0 -1
- package/directives/value-changes/value-changes.directive.d.ts +5 -7
- package/directives/zoom/index.d.ts +3 -1
- package/directives/zoom/zoom.directive.d.ts +5 -7
- package/directives/zoom/zoom.options.d.ts +5 -0
- package/directives/zoom/zoom.service.d.ts +8 -0
- package/directives/zoom/zoom.types.d.ts +9 -0
- package/esm2022/classes/control.mjs +111 -0
- package/esm2022/classes/controller.mjs +18 -0
- package/esm2022/classes/index.mjs +6 -0
- package/esm2022/classes/portals.mjs +76 -0
- package/esm2022/classes/validation-error.mjs +7 -0
- package/esm2022/classes/value-transformer.mjs +3 -0
- package/esm2022/constants/empty.mjs +24 -0
- package/esm2022/constants/handlers.mjs +11 -0
- package/esm2022/constants/index.mjs +9 -0
- package/esm2022/constants/matchers.mjs +26 -0
- package/esm2022/constants/regexp.mjs +4 -0
- package/esm2022/constants/svg-node-filter.mjs +8 -0
- package/esm2022/constants/unicode-chars.mjs +64 -0
- package/esm2022/constants/used-icons.mjs +56 -0
- package/esm2022/constants/version.mjs +2 -0
- package/esm2022/date-time/day-of-week.mjs +10 -0
- package/esm2022/date-time/day-range.mjs +76 -0
- package/esm2022/date-time/day.mjs +287 -0
- package/esm2022/date-time/index.mjs +14 -0
- package/esm2022/date-time/month-number.mjs +15 -0
- package/esm2022/date-time/month-range.mjs +27 -0
- package/esm2022/date-time/month.mjs +149 -0
- package/esm2022/date-time/time.mjs +128 -0
- package/esm2022/date-time/types.mjs +2 -0
- package/esm2022/date-time/year.mjs +111 -0
- package/esm2022/directives/active-zone/active-zone.directive.mjs +73 -0
- package/esm2022/directives/active-zone/index.mjs +2 -0
- package/esm2022/directives/auto-focus/autofocus.directive.mjs +46 -0
- package/esm2022/directives/auto-focus/autofocus.options.mjs +24 -0
- package/esm2022/directives/auto-focus/handlers/abstract.handler.mjs +16 -0
- package/esm2022/directives/auto-focus/handlers/default.handler.mjs +19 -0
- package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +140 -0
- package/esm2022/directives/auto-focus/handlers/sync.handler.mjs +7 -0
- package/esm2022/directives/auto-focus/index.mjs +7 -0
- package/esm2022/directives/click-outside/click-outside.directive.mjs +30 -0
- package/esm2022/directives/click-outside/index.mjs +2 -0
- package/esm2022/directives/control/control.directive.mjs +23 -0
- package/esm2022/directives/control/index.mjs +2 -0
- package/esm2022/directives/copy-processor/copy-processor.directive.mjs +33 -0
- package/esm2022/directives/copy-processor/index.mjs +2 -0
- package/esm2022/directives/droppable/droppable.directive.mjs +31 -0
- package/esm2022/directives/droppable/index.mjs +2 -0
- package/esm2022/directives/element/element.directive.mjs +35 -0
- package/esm2022/directives/element/index.mjs +2 -0
- package/esm2022/directives/focus-trap/focus-trap.directive.mjs +64 -0
- package/esm2022/directives/focus-trap/index.mjs +2 -0
- package/esm2022/directives/for/for.directive.mjs +34 -0
- package/esm2022/directives/for/index.mjs +2 -0
- package/esm2022/directives/high-dpi/high-dpi.directive.mjs +23 -0
- package/esm2022/directives/high-dpi/index.mjs +2 -0
- package/esm2022/directives/hovered/hovered.directive.mjs +22 -0
- package/esm2022/directives/hovered/hovered.service.mjs +37 -0
- package/esm2022/directives/hovered/index.mjs +3 -0
- package/esm2022/directives/index.mjs +26 -0
- package/esm2022/directives/item/index.mjs +2 -0
- package/esm2022/directives/item/item.directive.mjs +18 -0
- package/esm2022/directives/let/index.mjs +3 -0
- package/esm2022/directives/let/let-context.mjs +15 -0
- package/esm2022/directives/let/let.directive.mjs +34 -0
- package/esm2022/directives/media/index.mjs +2 -0
- package/esm2022/directives/media/media.directive.mjs +103 -0
- package/esm2022/directives/native-validator/index.mjs +2 -0
- package/esm2022/directives/native-validator/native-validator.directive.mjs +44 -0
- package/esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs +5 -0
- package/esm2022/directives/obscured/index.mjs +3 -0
- package/esm2022/directives/obscured/obscured.directive.mjs +36 -0
- package/esm2022/directives/obscured/obscured.service.mjs +24 -0
- package/esm2022/directives/pan/index.mjs +3 -0
- package/esm2022/directives/pan/pan.directive.mjs +22 -0
- package/esm2022/directives/pan/pan.service.mjs +30 -0
- package/esm2022/directives/platform/index.mjs +2 -0
- package/esm2022/directives/platform/platform.directive.mjs +37 -0
- package/esm2022/directives/popover/index.mjs +2 -0
- package/esm2022/directives/popover/popover.directive.mjs +26 -0
- package/esm2022/directives/popover/taiga-ui-cdk-directives-popover.mjs +5 -0
- package/esm2022/directives/repeat-times/index.mjs +2 -0
- package/esm2022/directives/repeat-times/repeat-times.directive.mjs +55 -0
- package/esm2022/directives/resizer/index.mjs +3 -0
- package/esm2022/directives/resizer/resizable.directive.mjs +16 -0
- package/esm2022/directives/resizer/resizer.directive.mjs +89 -0
- package/esm2022/directives/swipe/index.mjs +5 -0
- package/esm2022/directives/swipe/swipe.directive.mjs +22 -0
- package/esm2022/directives/swipe/swipe.options.mjs +6 -0
- package/esm2022/directives/swipe/swipe.service.mjs +52 -0
- package/esm2022/directives/swipe/swipe.types.mjs +2 -0
- package/esm2022/directives/validator/index.mjs +2 -0
- package/esm2022/directives/validator/validator.directive.mjs +38 -0
- package/esm2022/directives/value-changes/index.mjs +2 -0
- package/esm2022/directives/value-changes/value-changes.directive.mjs +28 -0
- package/esm2022/directives/zoom/index.mjs +5 -0
- package/esm2022/directives/zoom/zoom.directive.mjs +24 -0
- package/esm2022/directives/zoom/zoom.options.mjs +8 -0
- package/esm2022/directives/zoom/zoom.service.mjs +48 -0
- package/esm2022/directives/zoom/zoom.types.mjs +2 -0
- package/esm2022/index.mjs +11 -0
- package/esm2022/observables/control-value.mjs +19 -0
- package/esm2022/observables/drag-and-drop-from.mjs +14 -0
- package/esm2022/observables/events.mjs +8 -0
- package/esm2022/observables/if-map.mjs +5 -0
- package/esm2022/observables/index.mjs +12 -0
- package/esm2022/observables/must-be-present.mjs +17 -0
- package/esm2022/observables/query-list-observable.mjs +9 -0
- package/esm2022/observables/scroll-from.mjs +10 -0
- package/esm2022/observables/take-until-destroyed.mjs +9 -0
- package/esm2022/observables/typed-from-event.mjs +9 -0
- package/esm2022/observables/watch.mjs +5 -0
- package/esm2022/observables/zone.mjs +15 -0
- package/esm2022/pipes/filter/filter.pipe.mjs +25 -0
- package/esm2022/pipes/filter/index.mjs +2 -0
- package/esm2022/pipes/index.mjs +7 -0
- package/esm2022/pipes/is-present/index.mjs +2 -0
- package/esm2022/pipes/is-present/is-present.pipe.mjs +19 -0
- package/esm2022/pipes/keys/index.mjs +2 -0
- package/esm2022/pipes/keys/keys.pipe.mjs +18 -0
- package/esm2022/pipes/mapper/index.mjs +2 -0
- package/esm2022/pipes/mapper/mapper.pipe.mjs +25 -0
- package/esm2022/pipes/replace/index.mjs +2 -0
- package/esm2022/pipes/replace/replace.pipe.mjs +20 -0
- package/esm2022/pipes/to-array/index.mjs +2 -0
- package/esm2022/pipes/to-array/taiga-ui-cdk-pipes-to-array.mjs +5 -0
- package/esm2022/pipes/to-array/to-array.pipe.mjs +18 -0
- package/esm2022/services/id.service.mjs +22 -0
- package/esm2022/services/index.mjs +5 -0
- package/esm2022/services/popover.service.mjs +45 -0
- package/esm2022/services/scroll.service.mjs +53 -0
- package/esm2022/services/static-request.service.mjs +33 -0
- package/esm2022/tokens/active-element.mjs +51 -0
- package/esm2022/tokens/base-href.mjs +5 -0
- package/esm2022/tokens/environment.mjs +32 -0
- package/esm2022/tokens/fallback-value.mjs +9 -0
- package/esm2022/tokens/index.mjs +8 -0
- package/esm2022/tokens/removed-element.mjs +19 -0
- package/esm2022/tokens/window-size.mjs +28 -0
- package/esm2022/types/context.mjs +2 -0
- package/esm2022/types/index.mjs +8 -0
- package/esm2022/types/mapper.mjs +2 -0
- package/esm2022/types/matcher.mjs +2 -0
- package/esm2022/types/safe-html.mjs +2 -0
- package/esm2022/utils/browser/index.mjs +6 -0
- package/esm2022/utils/browser/is-apple.mjs +14 -0
- package/esm2022/utils/browser/is-edge.mjs +4 -0
- package/esm2022/utils/browser/is-firefox.mjs +4 -0
- package/esm2022/utils/browser/is-ios.mjs +7 -0
- package/esm2022/utils/browser/is-safari.mjs +10 -0
- package/esm2022/utils/color/get-gradient-data.mjs +6 -0
- package/esm2022/utils/color/hex-to-rgb.mjs +12 -0
- package/esm2022/utils/color/hex-to-rgba.mjs +29 -0
- package/esm2022/utils/color/hsv-to-rgb.mjs +11 -0
- package/esm2022/utils/color/index.mjs +10 -0
- package/esm2022/utils/color/parse-color.mjs +27 -0
- package/esm2022/utils/color/parse-gradient.mjs +70 -0
- package/esm2022/utils/color/rgb-to-hex.mjs +4 -0
- package/esm2022/utils/color/rgba-to-hex.mjs +25 -0
- package/esm2022/utils/dom/contains-or-after.mjs +10 -0
- package/esm2022/utils/dom/element-checks.mjs +19 -0
- package/esm2022/utils/dom/event-checks.mjs +4 -0
- package/esm2022/utils/dom/get-clipboard-data-text.mjs +11 -0
- package/esm2022/utils/dom/get-document-or-shadow-root.mjs +6 -0
- package/esm2022/utils/dom/get-element-obscurers.mjs +44 -0
- package/esm2022/utils/dom/get-element-offset.mjs +20 -0
- package/esm2022/utils/dom/get-element-point.mjs +6 -0
- package/esm2022/utils/dom/get-selected-text.mjs +15 -0
- package/esm2022/utils/dom/index.mjs +18 -0
- package/esm2022/utils/dom/inject-element.mjs +5 -0
- package/esm2022/utils/dom/is-node-in.mjs +14 -0
- package/esm2022/utils/dom/point-to-client-rect.mjs +17 -0
- package/esm2022/utils/dom/retarget-boundary-crossing.mjs +16 -0
- package/esm2022/utils/focus/get-native-focused.mjs +16 -0
- package/esm2022/utils/focus/index.mjs +9 -0
- package/esm2022/utils/focus/is-native-focused-in.mjs +12 -0
- package/esm2022/utils/focus/is-native-focused.mjs +15 -0
- package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +33 -0
- package/esm2022/utils/focus/is-native-mouse-focusable.mjs +7 -0
- package/esm2022/utils/index.mjs +7 -0
- package/esm2022/utils/math/clamp.mjs +16 -0
- package/esm2022/utils/math/in-range.mjs +9 -0
- package/esm2022/utils/math/normalize-to-int-number.mjs +22 -0
- package/esm2022/utils/math/quantize.mjs +15 -0
- package/esm2022/utils/math/round-with.mjs +14 -0
- package/esm2022/utils/math/round.mjs +34 -0
- package/esm2022/utils/miscellaneous/change-date-separator.mjs +3 -0
- package/esm2022/utils/miscellaneous/create-token.mjs +8 -0
- package/esm2022/utils/miscellaneous/directive-binding.mjs +25 -0
- package/esm2022/utils/miscellaneous/directive-listener.mjs +7 -0
- package/esm2022/utils/miscellaneous/ease-in-out-quad.mjs +7 -0
- package/esm2022/utils/miscellaneous/get-original-array-from-query-list.mjs +15 -0
- package/esm2022/utils/miscellaneous/index.mjs +27 -0
- package/esm2022/utils/miscellaneous/is-number.mjs +4 -0
- package/esm2022/utils/miscellaneous/is-object.mjs +4 -0
- package/esm2022/utils/miscellaneous/is-string.mjs +4 -0
- package/esm2022/utils/miscellaneous/is-valid-url.mjs +11 -0
- package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +16 -0
- package/esm2022/utils/miscellaneous/nullable-same.mjs +18 -0
- package/esm2022/utils/miscellaneous/provide-options.mjs +12 -0
- package/esm2022/utils/miscellaneous/provide.mjs +4 -0
- package/esm2022/utils/miscellaneous/pure.mjs +82 -0
- package/esm2022/utils/miscellaneous/px.mjs +9 -0
- package/esm2022/utils/miscellaneous/uniq-by.mjs +6 -0
- package/esm2022/utils/miscellaneous/with-styles.mjs +16 -0
- package/fesm2022/taiga-ui-cdk-classes.mjs +211 -0
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-constants.mjs +202 -0
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-date-time.mjs +837 -0
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +79 -0
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +250 -0
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +36 -0
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-control.mjs +29 -0
- package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +39 -0
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +37 -0
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-element.mjs +41 -0
- package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +70 -0
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-for.mjs +40 -0
- package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +29 -0
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +61 -0
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-item.mjs +24 -0
- package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-let.mjs +54 -0
- package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-media.mjs +109 -0
- package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +50 -0
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +60 -0
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs +54 -0
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs +43 -0
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs +32 -0
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +61 -0
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +107 -0
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +81 -0
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs +44 -0
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +34 -0
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +80 -0
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives.mjs +30 -0
- package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-observables.mjs +114 -0
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +31 -0
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +25 -0
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +24 -0
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +31 -0
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +26 -0
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +24 -0
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-pipes.mjs +11 -0
- package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-services.mjs +147 -0
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-tokens.mjs +141 -0
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-types.mjs +4 -0
- package/fesm2022/taiga-ui-cdk-types.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs +44 -0
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils-color.mjs +197 -0
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +211 -0
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +138 -0
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils-math.mjs +137 -0
- package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +297 -0
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils.mjs +11 -0
- package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk.mjs +15 -0
- package/fesm2022/taiga-ui-cdk.mjs.map +1 -0
- package/index.d.ts +0 -7
- package/observables/control-value.d.ts +5 -2
- package/observables/drag-and-drop-from.d.ts +2 -6
- package/observables/events.d.ts +3 -0
- package/observables/if-map.d.ts +2 -2
- package/observables/index.d.ts +4 -9
- package/observables/must-be-present.d.ts +4 -1
- package/observables/query-list-observable.d.ts +6 -0
- package/observables/scroll-from.d.ts +1 -1
- package/observables/take-until-destroyed.d.ts +3 -0
- package/observables/typed-from-event.d.ts +11 -2
- package/observables/watch.d.ts +2 -2
- package/observables/zone.d.ts +5 -0
- package/package.json +67 -68
- package/pipes/filter/filter.pipe.d.ts +4 -4
- package/pipes/filter/index.d.ts +0 -1
- package/pipes/index.d.ts +1 -0
- package/pipes/is-present/index.d.ts +0 -1
- package/pipes/is-present/is-present.pipe.d.ts +2 -2
- package/pipes/keys/index.d.ts +0 -1
- package/pipes/keys/keys.pipe.d.ts +2 -2
- package/pipes/mapper/index.d.ts +0 -1
- package/pipes/mapper/mapper.pipe.d.ts +4 -4
- package/pipes/replace/index.d.ts +0 -1
- package/pipes/replace/replace.pipe.d.ts +2 -2
- package/pipes/to-array/index.d.ts +1 -0
- package/pipes/to-array/to-array.pipe.d.ts +7 -0
- package/schematics/collection.json +16 -4
- package/schematics/constants/file-globs.d.ts +1 -1
- package/schematics/constants/file-globs.js +24 -24
- package/schematics/constants/taiga-styles.js +4 -4
- package/schematics/index.d.ts +0 -4
- package/schematics/index.js +0 -4
- package/schematics/migration.json +9 -29
- package/schematics/ng-add/constants/modules.d.ts +0 -3
- package/schematics/ng-add/constants/modules.js +5 -27
- package/schematics/ng-add/constants/packages.js +1 -1
- package/schematics/ng-add/constants/versions.d.ts +0 -3
- package/schematics/ng-add/constants/versions.js +1 -4
- package/schematics/ng-add/index.d.ts +2 -2
- package/schematics/ng-add/index.js +20 -35
- package/schematics/ng-add/schema.d.ts +0 -3
- package/schematics/ng-add/schema.json +0 -35
- package/schematics/ng-add/setup-project.d.ts +2 -2
- package/schematics/ng-add/setup-project.js +5 -5
- package/schematics/ng-add/steps/add-taiga-icons.d.ts +2 -2
- package/schematics/ng-add/steps/add-taiga-icons.js +6 -6
- package/schematics/ng-add/steps/add-taiga-modules.d.ts +2 -2
- package/schematics/ng-add/steps/add-taiga-modules.js +58 -93
- package/schematics/ng-add/steps/add-taiga-styles.d.ts +2 -2
- package/schematics/ng-add/steps/add-taiga-styles.js +1 -1
- package/schematics/ng-add/steps/wrap-with-tui-root.d.ts +3 -3
- package/schematics/ng-add/steps/wrap-with-tui-root.js +33 -33
- package/schematics/ng-update/interfaces/asset.d.ts +1 -1
- package/schematics/ng-update/interfaces/html-comment.d.ts +5 -0
- package/schematics/ng-update/interfaces/index.d.ts +14 -0
- package/schematics/ng-update/interfaces/index.js +17 -0
- package/schematics/ng-update/interfaces/removable-input.d.ts +6 -0
- package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +11 -0
- package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +11 -0
- package/schematics/ng-update/interfaces/replacement-attribute.d.ts +12 -0
- package/schematics/ng-update/interfaces/replacement-identifier.d.ts +22 -0
- package/schematics/ng-update/interfaces/replacement-service.d.ts +2 -2
- package/schematics/ng-update/interfaces/replacement-tag.d.ts +7 -0
- package/schematics/ng-update/interfaces/replacement-type.d.ts +7 -0
- package/schematics/ng-update/interfaces/replacement-type.js +2 -0
- package/schematics/ng-update/interfaces/template-resource.d.ts +1 -1
- package/schematics/ng-update/steps/icons/replace-imports.d.ts +3 -3
- package/schematics/ng-update/steps/icons/replace-imports.js +12 -12
- package/schematics/ng-update/steps/index.d.ts +7 -0
- package/schematics/ng-update/steps/index.js +10 -0
- package/schematics/ng-update/steps/remove-module.d.ts +2 -2
- package/schematics/ng-update/steps/remove-module.js +8 -8
- package/schematics/ng-update/steps/rename-types.d.ts +3 -3
- package/schematics/ng-update/steps/rename-types.js +22 -22
- package/schematics/ng-update/steps/replace-deep-import.d.ts +1 -1
- package/schematics/ng-update/steps/replace-deep-import.js +8 -8
- package/schematics/ng-update/steps/replace-enums.d.ts +2 -2
- package/schematics/ng-update/steps/replace-enums.js +13 -13
- package/schematics/ng-update/steps/replace-identifier.d.ts +4 -0
- package/schematics/ng-update/steps/replace-identifier.js +40 -0
- package/schematics/ng-update/steps/replace-package-name.d.ts +5 -0
- package/schematics/ng-update/steps/replace-package-name.js +19 -0
- package/schematics/ng-update/steps/replace-services.d.ts +2 -2
- package/schematics/ng-update/steps/replace-services.js +19 -19
- package/schematics/ng-update/steps/show-warnings.d.ts +2 -2
- package/schematics/ng-update/steps/show-warnings.js +9 -9
- package/schematics/ng-update/utils/get-file-system.d.ts +2 -2
- package/schematics/ng-update/utils/get-file-system.js +2 -2
- package/schematics/ng-update/utils/replace-text.js +3 -3
- package/schematics/ng-update/utils/templates/index.d.ts +6 -0
- package/schematics/ng-update/utils/templates/index.js +9 -0
- package/schematics/ng-update/utils/templates/remove-inputs.d.ts +10 -0
- package/schematics/ng-update/utils/templates/remove-inputs.js +19 -0
- package/schematics/ng-update/utils/templates/replace-attr-values.d.ts +6 -6
- package/schematics/ng-update/utils/templates/replace-attr-values.js +9 -9
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.d.ts +7 -0
- package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +18 -0
- package/schematics/ng-update/utils/templates/replace-attrs.d.ts +10 -0
- package/schematics/ng-update/utils/templates/replace-attrs.js +20 -0
- package/schematics/ng-update/utils/templates/replace-tag.d.ts +3 -0
- package/schematics/ng-update/utils/templates/replace-tag.js +17 -0
- package/schematics/ng-update/utils/templates/replace-tags.d.ts +10 -0
- package/schematics/ng-update/utils/templates/replace-tags.js +19 -0
- package/schematics/ng-update/utils/templates/template-comments.d.ts +9 -0
- package/schematics/ng-update/utils/templates/template-comments.js +22 -0
- package/schematics/ng-update/v3/constants/breakpoints.js +27 -27
- package/schematics/ng-update/v3/constants/constants.d.ts +2 -2
- package/schematics/ng-update/v3/constants/constants.js +187 -187
- package/schematics/ng-update/v3/constants/deprecated-functions.d.ts +2 -2
- package/schematics/ng-update/v3/constants/deprecated-functions.js +405 -405
- package/schematics/ng-update/v3/constants/enums.d.ts +1 -1
- package/schematics/ng-update/v3/constants/enums.js +153 -153
- package/schematics/ng-update/v3/constants/modules.d.ts +1 -1
- package/schematics/ng-update/v3/constants/modules.js +4 -4
- package/schematics/ng-update/v3/constants/services.d.ts +1 -1
- package/schematics/ng-update/v3/constants/services.js +16 -16
- package/schematics/ng-update/v3/constants/templates.d.ts +9 -9
- package/schematics/ng-update/v3/constants/templates.js +298 -298
- package/schematics/ng-update/v3/constants/tui-interactive-selectors.js +50 -50
- package/schematics/ng-update/v3/constants/types.d.ts +2 -2
- package/schematics/ng-update/v3/constants/types.js +88 -88
- package/schematics/ng-update/v3/constants/warnings.d.ts +1 -1
- package/schematics/ng-update/v3/constants/warnings.js +62 -62
- package/schematics/ng-update/v3/index.d.ts +2 -3
- package/schematics/ng-update/v3/index.js +45 -59
- package/schematics/ng-update/v3/steps/migrate-date-time.d.ts +1 -1
- package/schematics/ng-update/v3/steps/migrate-date-time.js +104 -104
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.d.ts +3 -3
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +44 -44
- package/schematics/ng-update/v3/steps/migrate-progress.d.ts +6 -2
- package/schematics/ng-update/v3/steps/migrate-progress.js +28 -30
- package/schematics/ng-update/v3/steps/migrate-sliders/index.d.ts +2 -2
- package/schematics/ng-update/v3/steps/migrate-sliders/index.js +10 -10
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.d.ts +2 -2
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +61 -64
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.d.ts +2 -2
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +55 -57
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.d.ts +2 -2
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +12 -12
- package/schematics/ng-update/v3/steps/migrate-templates.d.ts +3 -2
- package/schematics/ng-update/v3/steps/migrate-templates.js +97 -121
- package/schematics/ng-update/v3/steps/migrate-textfield-controller.d.ts +3 -3
- package/schematics/ng-update/v3/steps/migrate-textfield-controller.js +56 -56
- package/schematics/ng-update/v3/steps/miscellaneous.d.ts +1 -1
- package/schematics/ng-update/v3/steps/miscellaneous.js +42 -42
- package/schematics/ng-update/v3/steps/replace-functions.d.ts +1 -1
- package/schematics/ng-update/v3/steps/replace-functions.js +43 -43
- package/schematics/ng-update/v3/steps/replace-styles.js +13 -13
- package/schematics/ng-update/v3-30/constants/constants.d.ts +2 -2
- package/schematics/ng-update/v3-30/constants/constants.js +2 -2
- package/schematics/ng-update/v3-30/constants/icons.js +494 -494
- package/schematics/ng-update/v3-30/index.d.ts +2 -2
- package/schematics/ng-update/v3-30/index.js +14 -14
- package/schematics/ng-update/v3-35/constants/constants.d.ts +2 -2
- package/schematics/ng-update/v3-35/constants/constants.js +2 -2
- package/schematics/ng-update/v3-35/constants/icons.js +1266 -1266
- package/schematics/ng-update/v3-35/index.d.ts +2 -2
- package/schematics/ng-update/v3-35/index.js +14 -14
- package/schematics/ng-update/v3-36/index.d.ts +2 -2
- package/schematics/ng-update/v3-36/index.js +12 -22
- package/schematics/ng-update/v3-40/index.d.ts +2 -2
- package/schematics/ng-update/v3-40/index.js +32 -33
- package/schematics/ng-update/v3-5/index.d.ts +2 -2
- package/schematics/ng-update/v3-5/index.js +6 -6
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.d.ts +2 -2
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +26 -26
- package/schematics/ng-update/v4/index.d.ts +2 -2
- package/schematics/ng-update/v4/index.js +45 -11
- package/schematics/ng-update/v4/migrate-css-vars/index.d.ts +3 -0
- package/schematics/ng-update/v4/migrate-css-vars/index.js +23 -0
- package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +98 -0
- package/schematics/ng-update/v4/migrate-css-vars/palette.js +130 -0
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +2 -0
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +39 -0
- package/schematics/ng-update/v4/migrate-icons/index.d.ts +3 -0
- package/schematics/ng-update/v4/migrate-icons/index.js +32 -0
- package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +2 -0
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +49 -0
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +2 -0
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +66 -0
- package/schematics/ng-update/v4/schema.json +7 -0
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +62 -0
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +21 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +209 -0
- package/schematics/ng-update/v4/steps/constants/enums.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/enums.js +267 -0
- package/schematics/ng-update/v4/steps/constants/html-comments.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/html-comments.js +50 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +2288 -0
- package/schematics/ng-update/v4/steps/constants/index.d.ts +9 -0
- package/schematics/ng-update/v4/steps/constants/index.js +12 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +15 -0
- package/schematics/ng-update/v4/steps/constants/migration-warnings.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +150 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +29 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.d.ts +12 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.js +15 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +54 -0
- package/schematics/ng-update/v4/steps/constants/types.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/types.js +17 -0
- package/schematics/ng-update/v4/steps/index.d.ts +10 -0
- package/schematics/ng-update/v4/steps/index.js +13 -0
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +24 -0
- package/schematics/ng-update/v4/steps/migrate-destroy-service.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js +128 -0
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +54 -0
- package/schematics/ng-update/v4/steps/migrate-option-providers.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-option-providers.js +42 -0
- package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +5 -0
- package/schematics/ng-update/v4/steps/migrate-proprietary.js +65 -0
- package/schematics/ng-update/v4/steps/migrate-styles.d.ts +3 -0
- package/schematics/ng-update/v4/steps/migrate-styles.js +20 -0
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +3 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +61 -0
- package/schematics/ng-update/v4/steps/restore-tui-mapper.d.ts +2 -0
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +40 -0
- package/schematics/ng-update/v4/steps/restore-tui-matcher.d.ts +2 -0
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +40 -0
- package/schematics/ng-update/v4/steps/templates/index.d.ts +11 -0
- package/schematics/ng-update/v4/steps/templates/index.js +14 -0
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +85 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +68 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +117 -0
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +30 -0
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +50 -0
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +43 -0
- package/schematics/ng-update/v4/steps/templates/migrate-money.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-money.js +53 -0
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +29 -0
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +27 -0
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +25 -0
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +46 -0
- package/schematics/ng-update/v4/steps/templates/toggles/common.d.ts +10 -0
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +49 -0
- package/schematics/ng-update/v4/steps/templates/toggles/index.d.ts +3 -0
- package/schematics/ng-update/v4/steps/templates/toggles/index.js +6 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +25 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +25 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +25 -0
- package/schematics/ng-update/v4/steps/update-packages.d.ts +4 -0
- package/schematics/ng-update/v4/steps/update-packages.js +31 -0
- package/schematics/ng-update/v4/steps/utils/clean-object.d.ts +4 -0
- package/schematics/ng-update/v4/steps/utils/clean-object.js +12 -0
- package/schematics/ng-update/v4/steps/utils/remove-attrs.d.ts +3 -0
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js +14 -0
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.d.ts +13 -0
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js +47 -0
- package/schematics/ng-update/v4/steps/utils/replace-substrings.d.ts +6 -0
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +19 -0
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.d.ts +1 -0
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +22 -0
- package/schematics/utils/add-import-to-closest-module.js +13 -6
- package/schematics/utils/add-unique-import.js +5 -5
- package/schematics/utils/angular-json-manipulations.d.ts +3 -3
- package/schematics/utils/angular-json-manipulations.js +17 -18
- package/schematics/utils/colored-log.js +11 -11
- package/schematics/utils/create-angular-json.js +5 -5
- package/schematics/utils/get-component-from-identifier.d.ts +1 -1
- package/schematics/utils/get-component-from-identifier.js +3 -6
- package/schematics/utils/get-named-import-references.d.ts +1 -1
- package/schematics/utils/get-named-import-references.js +11 -5
- package/schematics/utils/get-project-target-options.d.ts +1 -1
- package/schematics/utils/get-projects.d.ts +3 -3
- package/schematics/utils/get-projects.js +2 -4
- package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
- package/schematics/utils/get-standalone-bootstrap-function.js +3 -3
- package/schematics/utils/import-manipulations.d.ts +1 -1
- package/schematics/utils/import-manipulations.js +1 -1
- package/schematics/utils/insert-todo.d.ts +2 -2
- package/schematics/utils/insert-todo.js +4 -4
- package/schematics/utils/is-ci.js +1 -1
- package/schematics/utils/make-angular-json-with-assets.d.ts +1 -0
- package/schematics/utils/make-angular-json-with-assets.js +29 -0
- package/schematics/utils/progress.js +6 -6
- package/schematics/utils/project-root.js +1 -1
- package/schematics/utils/push-to-array-property.d.ts +1 -1
- package/schematics/utils/push-to-array-property.js +2 -3
- package/schematics/utils/templates/elements.d.ts +8 -3
- package/schematics/utils/templates/elements.js +34 -16
- package/schematics/utils/templates/get-component-templates.d.ts +2 -2
- package/schematics/utils/templates/get-component-templates.js +13 -13
- package/schematics/utils/templates/inputs.d.ts +3 -0
- package/schematics/utils/templates/inputs.js +11 -0
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js +23 -24
- package/schematics/utils/templates/template-resource.d.ts +2 -2
- package/schematics/utils/templates/template-resource.js +5 -4
- package/services/index.d.ts +1 -9
- package/services/popover.service.d.ts +27 -0
- package/services/scroll.service.d.ts +1 -2
- package/services/static-request.service.d.ts +1 -4
- package/tokens/active-element.d.ts +1 -1
- package/tokens/environment.d.ts +18 -0
- package/tokens/fallback-value.d.ts +4 -0
- package/tokens/index.d.ts +2 -24
- package/tokens/window-size.d.ts +2 -2
- package/types/context.d.ts +3 -0
- package/types/handler.d.ts +4 -4
- package/types/index.d.ts +2 -11
- package/types/mapper.d.ts +1 -7
- package/types/matcher.d.ts +5 -11
- package/types/rounding.d.ts +1 -1
- package/types/safe-html.d.ts +2 -0
- package/types/values-of.d.ts +1 -1
- package/utils/browser/index.d.ts +2 -1
- package/utils/browser/is-apple.d.ts +11 -0
- package/utils/color/get-gradient-data.d.ts +1 -0
- package/utils/color/index.d.ts +2 -0
- package/utils/color/parse-gradient.d.ts +10 -0
- package/utils/dom/element-checks.d.ts +1 -1
- package/utils/dom/event-checks.d.ts +1 -0
- package/utils/dom/get-element-obscurers.d.ts +1 -2
- package/utils/dom/get-element-point.d.ts +2 -0
- package/utils/dom/index.d.ts +3 -2
- package/utils/dom/inject-element.d.ts +1 -0
- package/utils/focus/index.d.ts +0 -1
- package/utils/focus/is-native-focused-in.d.ts +1 -1
- package/utils/focus/is-native-focused.d.ts +1 -1
- package/utils/index.d.ts +0 -3
- package/utils/math/round-with.d.ts +1 -1
- package/utils/miscellaneous/change-date-separator.d.ts +1 -0
- package/utils/miscellaneous/directive-binding.d.ts +5 -0
- package/utils/miscellaneous/directive-listener.d.ts +8 -0
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +1 -1
- package/utils/miscellaneous/index.d.ts +7 -4
- package/utils/miscellaneous/is-string.js +1 -2
- package/utils/miscellaneous/mark-control-as-touched-and-validate.d.ts +1 -1
- package/utils/miscellaneous/nullable-same.d.ts +1 -1
- package/utils/miscellaneous/provide-options.d.ts +1 -1
- package/utils/miscellaneous/provide.d.ts +3 -0
- package/utils/miscellaneous/pure.d.ts +21 -0
- package/utils/miscellaneous/with-styles.d.ts +2 -0
- package/abstract/control.d.ts +0 -59
- package/abstract/controller.d.ts +0 -9
- package/abstract/dialog.directive.d.ts +0 -16
- package/abstract/dialog.service.d.ts +0 -16
- package/abstract/index.d.ts +0 -11
- package/abstract/interactive.d.ts +0 -35
- package/abstract/multiple-control.d.ts +0 -8
- package/abstract/nullable-control.d.ts +0 -7
- package/abstract/package.json +0 -10
- package/abstract/portal-host.d.ts +0 -18
- package/abstract/portal-service.d.ts +0 -18
- package/abstract/taiga-ui-cdk-abstract.d.ts +0 -5
- package/abstract/theme-switcher.d.ts +0 -19
- package/abstract/value-transformer.d.ts +0 -4
- package/bundles/taiga-ui-cdk-abstract.umd.js +0 -991
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +0 -40
- package/bundles/taiga-ui-cdk-classes.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +0 -26
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +0 -122
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +0 -522
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +0 -420
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +0 -609
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-components.umd.js +0 -39
- package/bundles/taiga-ui-cdk-components.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +0 -278
- package/bundles/taiga-ui-cdk-constants.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +0 -1244
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +0 -545
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +0 -451
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +0 -740
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +0 -115
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +0 -111
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js +0 -89
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-control.umd.js +0 -82
- package/bundles/taiga-ui-cdk-directives-control.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +0 -86
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +0 -110
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +0 -93
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +0 -89
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +0 -133
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +0 -81
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +0 -87
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +0 -84
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +0 -438
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +0 -90
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +0 -85
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +0 -428
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +0 -70
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +0 -116
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +0 -176
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +0 -102
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +0 -164
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +0 -79
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-platform.umd.js +0 -89
- package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +0 -95
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +0 -82
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +0 -102
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +0 -118
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +0 -79
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +0 -500
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +0 -79
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +0 -97
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +0 -90
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +0 -82
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives.umd.js +0 -225
- package/bundles/taiga-ui-cdk-directives.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +0 -45
- package/bundles/taiga-ui-cdk-enums.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +0 -450
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-cdk-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +0 -201
- package/bundles/taiga-ui-cdk-observables.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +0 -390
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +0 -68
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js +0 -68
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +0 -390
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js +0 -71
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes.umd.js +0 -45
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-services.umd.js +0 -865
- package/bundles/taiga-ui-cdk-services.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +0 -656
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-types.umd.js +0 -11
- package/bundles/taiga-ui-cdk-types.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +0 -45
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +0 -462
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +0 -286
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +0 -186
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +0 -24
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +0 -164
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +0 -539
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +0 -43
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +0 -73
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +0 -69
- package/bundles/taiga-ui-cdk-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk.umd.js +0 -117
- package/bundles/taiga-ui-cdk.umd.js.map +0 -1
- package/classes/assert.d.ts +0 -9
- package/classes/package.json +0 -10
- package/classes/taiga-ui-cdk-classes.d.ts +0 -5
- package/coercion/coerce-boolean-property.d.ts +0 -5
- package/coercion/index.d.ts +0 -1
- package/coercion/package.json +0 -10
- package/coercion/taiga-ui-cdk-coercion.d.ts +0 -5
- package/components/alert-host/alert-host.component.d.ts +0 -17
- package/components/alert-host/alert-host.module.d.ts +0 -9
- package/components/alert-host/index.d.ts +0 -2
- package/components/alert-host/package.json +0 -10
- package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +0 -5
- package/components/dialog-host/dialog-host.component.d.ts +0 -26
- package/components/dialog-host/dialog-host.module.d.ts +0 -11
- package/components/dialog-host/index.d.ts +0 -2
- package/components/dialog-host/package.json +0 -10
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +0 -5
- package/components/dropdown-host/dropdown-host.component.d.ts +0 -9
- package/components/dropdown-host/dropdown-host.module.d.ts +0 -7
- package/components/dropdown-host/dropdown-portal.service.d.ts +0 -9
- package/components/dropdown-host/index.d.ts +0 -3
- package/components/dropdown-host/package.json +0 -10
- package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +0 -5
- package/components/index.d.ts +0 -4
- package/components/package.json +0 -10
- package/components/scroll-controls/index.d.ts +0 -4
- package/components/scroll-controls/package.json +0 -10
- package/components/scroll-controls/scroll-controls.component.d.ts +0 -13
- package/components/scroll-controls/scroll-controls.module.d.ts +0 -10
- package/components/scroll-controls/scroll-ref.directive.d.ts +0 -6
- package/components/scroll-controls/scrollbar.directive.d.ts +0 -19
- package/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.d.ts +0 -5
- package/components/taiga-ui-cdk-components.d.ts +0 -5
- package/constants/always-false-handler.d.ts +0 -4
- package/constants/always-true-handler.d.ts +0 -4
- package/constants/browser.d.ts +0 -5
- package/constants/matcher.d.ts +0 -23
- package/constants/package.json +0 -10
- package/constants/parent-animation.d.ts +0 -8
- package/constants/polling-time.d.ts +0 -1
- package/constants/stringify.d.ts +0 -5
- package/constants/taiga-ui-cdk-constants.d.ts +0 -5
- package/date-time/date-format.d.ts +0 -5
- package/date-time/date-separator.d.ts +0 -5
- package/date-time/package.json +0 -10
- package/date-time/taiga-ui-cdk-date-time.d.ts +0 -5
- package/decorators/debounce.d.ts +0 -5
- package/decorators/default-prop.d.ts +0 -11
- package/decorators/index.d.ts +0 -4
- package/decorators/package.json +0 -10
- package/decorators/pure.d.ts +0 -29
- package/decorators/required-setter.d.ts +0 -11
- package/decorators/taiga-ui-cdk-decorators.d.ts +0 -5
- package/directives/active-zone/active-zone.module.d.ts +0 -7
- package/directives/active-zone/package.json +0 -10
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +0 -5
- package/directives/auto-focus/autofocus.module.d.ts +0 -7
- package/directives/auto-focus/package.json +0 -10
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +0 -5
- package/directives/autofilled/autofilled-style.component.d.ts +0 -5
- package/directives/autofilled/autofilled.directive.d.ts +0 -11
- package/directives/autofilled/autofilled.module.d.ts +0 -8
- package/directives/autofilled/index.d.ts +0 -3
- package/directives/autofilled/package.json +0 -10
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +0 -5
- package/directives/checked/checked.directive.d.ts +0 -13
- package/directives/checked/checked.module.d.ts +0 -7
- package/directives/checked/index.d.ts +0 -2
- package/directives/checked/package.json +0 -10
- package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +0 -5
- package/directives/click-outside/click-outside.module.d.ts +0 -7
- package/directives/click-outside/package.json +0 -10
- package/directives/click-outside/taiga-ui-cdk-directives-click-outside.d.ts +0 -5
- package/directives/control/control.module.d.ts +0 -7
- package/directives/control/package.json +0 -10
- package/directives/control/taiga-ui-cdk-directives-control.d.ts +0 -5
- package/directives/copy-processor/copy-processor.module.d.ts +0 -7
- package/directives/copy-processor/package.json +0 -10
- package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +0 -5
- package/directives/drag/drag.directive.d.ts +0 -16
- package/directives/drag/drag.module.d.ts +0 -10
- package/directives/drag/index.d.ts +0 -2
- package/directives/drag/package.json +0 -10
- package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +0 -5
- package/directives/droppable/droppable.module.d.ts +0 -7
- package/directives/droppable/package.json +0 -10
- package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +0 -5
- package/directives/element/element.module.d.ts +0 -7
- package/directives/element/package.json +0 -10
- package/directives/element/taiga-ui-cdk-directives-element.d.ts +0 -5
- package/directives/focus-trap/focus-trap.module.d.ts +0 -7
- package/directives/focus-trap/package.json +0 -10
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +0 -5
- package/directives/focus-visible/focus-visible.directive.d.ts +0 -13
- package/directives/focus-visible/focus-visible.module.d.ts +0 -7
- package/directives/focus-visible/index.d.ts +0 -2
- package/directives/focus-visible/package.json +0 -10
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +0 -5
- package/directives/focusable/focusable.directive.d.ts +0 -13
- package/directives/focusable/focusable.module.d.ts +0 -7
- package/directives/focusable/index.d.ts +0 -2
- package/directives/focusable/package.json +0 -10
- package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +0 -5
- package/directives/focused/focused.directive.d.ts +0 -14
- package/directives/focused/focused.module.d.ts +0 -7
- package/directives/focused/index.d.ts +0 -2
- package/directives/focused/package.json +0 -10
- package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +0 -5
- package/directives/for/for.module.d.ts +0 -7
- package/directives/for/package.json +0 -10
- package/directives/for/taiga-ui-cdk-directives-for.d.ts +0 -5
- package/directives/for-async/for-async.directive.d.ts +0 -18
- package/directives/for-async/for-async.module.d.ts +0 -10
- package/directives/for-async/index.d.ts +0 -2
- package/directives/for-async/package.json +0 -10
- package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +0 -5
- package/directives/high-dpi/high-dpi.module.d.ts +0 -7
- package/directives/high-dpi/package.json +0 -10
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +0 -5
- package/directives/hovered/hovered.module.d.ts +0 -7
- package/directives/hovered/package.json +0 -10
- package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +0 -5
- package/directives/item/item.module.d.ts +0 -7
- package/directives/item/package.json +0 -10
- package/directives/item/taiga-ui-cdk-directives-item.d.ts +0 -5
- package/directives/let/let.module.d.ts +0 -7
- package/directives/let/package.json +0 -10
- package/directives/let/taiga-ui-cdk-directives-let.d.ts +0 -5
- package/directives/media/media.module.d.ts +0 -7
- package/directives/media/package.json +0 -10
- package/directives/media/taiga-ui-cdk-directives-media.d.ts +0 -5
- package/directives/obscured/obscured.module.d.ts +0 -7
- package/directives/obscured/package.json +0 -10
- package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +0 -5
- package/directives/overscroll/index.d.ts +0 -2
- package/directives/overscroll/overscroll.directive.d.ts +0 -16
- package/directives/overscroll/overscroll.module.d.ts +0 -7
- package/directives/overscroll/package.json +0 -10
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +0 -5
- package/directives/package.json +0 -10
- package/directives/pan/package.json +0 -10
- package/directives/pan/pan.module.d.ts +0 -10
- package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +0 -5
- package/directives/platform/package.json +0 -10
- package/directives/platform/platform.module.d.ts +0 -7
- package/directives/platform/taiga-ui-cdk-directives-platform.d.ts +0 -5
- package/directives/portal/index.d.ts +0 -2
- package/directives/portal/package.json +0 -10
- package/directives/portal/portal.directive.d.ts +0 -13
- package/directives/portal/portal.module.d.ts +0 -7
- package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +0 -5
- package/directives/pressed/index.d.ts +0 -2
- package/directives/pressed/package.json +0 -10
- package/directives/pressed/pressed.directive.d.ts +0 -10
- package/directives/pressed/pressed.module.d.ts +0 -7
- package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +0 -5
- package/directives/prevent-default/index.d.ts +0 -2
- package/directives/prevent-default/package.json +0 -10
- package/directives/prevent-default/prevent-default.directive.d.ts +0 -18
- package/directives/prevent-default/prevent-default.module.d.ts +0 -10
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +0 -5
- package/directives/repeat-times/package.json +0 -10
- package/directives/repeat-times/repeat-times.module.d.ts +0 -7
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +0 -5
- package/directives/resize/index.d.ts +0 -2
- package/directives/resize/package.json +0 -10
- package/directives/resize/resize.directive.d.ts +0 -8
- package/directives/resize/resize.module.d.ts +0 -10
- package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +0 -5
- package/directives/resizer/package.json +0 -10
- package/directives/resizer/resizeable.directive.d.ts +0 -6
- package/directives/resizer/resizer.module.d.ts +0 -8
- package/directives/resizer/taiga-ui-cdk-directives-resizer.d.ts +0 -5
- package/directives/swipe/package.json +0 -10
- package/directives/swipe/swipe.module.d.ts +0 -10
- package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +0 -5
- package/directives/taiga-ui-cdk-directives.d.ts +0 -5
- package/directives/validator/package.json +0 -10
- package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +0 -5
- package/directives/validator/validator.module.d.ts +0 -7
- package/directives/value-changes/package.json +0 -10
- package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +0 -5
- package/directives/value-changes/value-changes.module.d.ts +0 -7
- package/directives/zoom/package.json +0 -10
- package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +0 -5
- package/directives/zoom/zoom.module.d.ts +0 -10
- package/enums/day-of-week.d.ts +0 -9
- package/enums/index.d.ts +0 -2
- package/enums/month-number.d.ts +0 -14
- package/enums/package.json +0 -10
- package/enums/taiga-ui-cdk-enums.d.ts +0 -5
- package/esm2015/abstract/control.js +0 -194
- package/esm2015/abstract/controller.js +0 -17
- package/esm2015/abstract/dialog.directive.js +0 -36
- package/esm2015/abstract/dialog.service.js +0 -35
- package/esm2015/abstract/index.js +0 -12
- package/esm2015/abstract/interactive.js +0 -86
- package/esm2015/abstract/multiple-control.js +0 -17
- package/esm2015/abstract/nullable-control.js +0 -14
- package/esm2015/abstract/portal-host.js +0 -48
- package/esm2015/abstract/portal-service.js +0 -35
- package/esm2015/abstract/taiga-ui-cdk-abstract.js +0 -5
- package/esm2015/abstract/theme-switcher.js +0 -46
- package/esm2015/abstract/value-transformer.js +0 -3
- package/esm2015/classes/assert.js +0 -15
- package/esm2015/classes/index.js +0 -3
- package/esm2015/classes/validation-error.js +0 -7
- package/esm2015/coercion/coerce-boolean-property.js +0 -10
- package/esm2015/coercion/index.js +0 -2
- package/esm2015/coercion/taiga-ui-cdk-coercion.js +0 -5
- package/esm2015/components/alert-host/alert-host.component.js +0 -71
- package/esm2015/components/alert-host/alert-host.module.js +0 -19
- package/esm2015/components/alert-host/index.js +0 -3
- package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +0 -5
- package/esm2015/components/dialog-host/dialog-host.component.js +0 -137
- package/esm2015/components/dialog-host/dialog-host.module.js +0 -40
- package/esm2015/components/dialog-host/index.js +0 -3
- package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +0 -5
- package/esm2015/components/dropdown-host/dropdown-host.component.js +0 -28
- package/esm2015/components/dropdown-host/dropdown-host.module.js +0 -16
- package/esm2015/components/dropdown-host/dropdown-portal.service.js +0 -17
- package/esm2015/components/dropdown-host/index.js +0 -4
- package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +0 -5
- package/esm2015/components/index.js +0 -5
- package/esm2015/components/scroll-controls/index.js +0 -5
- package/esm2015/components/scroll-controls/scroll-controls.component.js +0 -45
- package/esm2015/components/scroll-controls/scroll-controls.module.js +0 -26
- package/esm2015/components/scroll-controls/scroll-ref.directive.js +0 -26
- package/esm2015/components/scroll-controls/scrollbar.directive.js +0 -133
- package/esm2015/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.js +0 -5
- package/esm2015/components/taiga-ui-cdk-components.js +0 -5
- package/esm2015/constants/always-false-handler.js +0 -6
- package/esm2015/constants/always-true-handler.js +0 -6
- package/esm2015/constants/browser.js +0 -6
- package/esm2015/constants/empty.js +0 -23
- package/esm2015/constants/index.js +0 -13
- package/esm2015/constants/matcher.js +0 -27
- package/esm2015/constants/parent-animation.js +0 -12
- package/esm2015/constants/polling-time.js +0 -2
- package/esm2015/constants/stringify.js +0 -5
- package/esm2015/constants/svg-node-filter.js +0 -6
- package/esm2015/constants/unicode-chars.js +0 -64
- package/esm2015/constants/used-icons.js +0 -72
- package/esm2015/constants/version.js +0 -2
- package/esm2015/date-time/date-format.js +0 -6
- package/esm2015/date-time/date-separator.js +0 -7
- package/esm2015/date-time/day-range.js +0 -78
- package/esm2015/date-time/day.js +0 -288
- package/esm2015/date-time/index.js +0 -13
- package/esm2015/date-time/month-range.js +0 -27
- package/esm2015/date-time/month.js +0 -149
- package/esm2015/date-time/time.js +0 -127
- package/esm2015/date-time/year.js +0 -111
- package/esm2015/decorators/debounce.js +0 -16
- package/esm2015/decorators/default-prop.js +0 -59
- package/esm2015/decorators/index.js +0 -5
- package/esm2015/decorators/pure.js +0 -77
- package/esm2015/decorators/required-setter.js +0 -35
- package/esm2015/decorators/taiga-ui-cdk-decorators.js +0 -5
- package/esm2015/directives/active-zone/active-zone.directive.js +0 -80
- package/esm2015/directives/active-zone/active-zone.module.js +0 -16
- package/esm2015/directives/active-zone/index.js +0 -3
- package/esm2015/directives/auto-focus/autofocus.directive.js +0 -55
- package/esm2015/directives/auto-focus/autofocus.module.js +0 -16
- package/esm2015/directives/auto-focus/autofocus.options.js +0 -35
- package/esm2015/directives/auto-focus/handlers/abstract.handler.js +0 -21
- package/esm2015/directives/auto-focus/handlers/default.handler.js +0 -44
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +0 -170
- package/esm2015/directives/auto-focus/handlers/sync.handler.js +0 -28
- package/esm2015/directives/auto-focus/index.js +0 -8
- package/esm2015/directives/autofilled/autofilled-style.component.js +0 -19
- package/esm2015/directives/autofilled/autofilled.directive.js +0 -41
- package/esm2015/directives/autofilled/autofilled.module.js +0 -17
- package/esm2015/directives/autofilled/index.js +0 -4
- package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +0 -5
- package/esm2015/directives/checked/checked.directive.js +0 -46
- package/esm2015/directives/checked/checked.module.js +0 -16
- package/esm2015/directives/checked/index.js +0 -3
- package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +0 -5
- package/esm2015/directives/click-outside/click-outside.directive.js +0 -39
- package/esm2015/directives/click-outside/click-outside.module.js +0 -16
- package/esm2015/directives/click-outside/index.js +0 -3
- package/esm2015/directives/control/control.directive.js +0 -25
- package/esm2015/directives/control/control.module.js +0 -16
- package/esm2015/directives/control/index.js +0 -3
- package/esm2015/directives/copy-processor/copy-processor.directive.js +0 -35
- package/esm2015/directives/copy-processor/copy-processor.module.js +0 -16
- package/esm2015/directives/copy-processor/index.js +0 -3
- package/esm2015/directives/drag/drag.directive.js +0 -37
- package/esm2015/directives/drag/drag.module.js +0 -19
- package/esm2015/directives/drag/index.js +0 -3
- package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +0 -5
- package/esm2015/directives/droppable/droppable.directive.js +0 -40
- package/esm2015/directives/droppable/droppable.module.js +0 -16
- package/esm2015/directives/droppable/index.js +0 -3
- package/esm2015/directives/element/element.directive.js +0 -34
- package/esm2015/directives/element/element.module.js +0 -16
- package/esm2015/directives/element/index.js +0 -3
- package/esm2015/directives/focus-trap/focus-trap.directive.js +0 -80
- package/esm2015/directives/focus-trap/focus-trap.module.js +0 -16
- package/esm2015/directives/focus-trap/index.js +0 -3
- package/esm2015/directives/focus-visible/focus-visible.directive.js +0 -28
- package/esm2015/directives/focus-visible/focus-visible.module.js +0 -16
- package/esm2015/directives/focus-visible/index.js +0 -3
- package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +0 -5
- package/esm2015/directives/focusable/focusable.directive.js +0 -31
- package/esm2015/directives/focusable/focusable.module.js +0 -16
- package/esm2015/directives/focusable/index.js +0 -3
- package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +0 -5
- package/esm2015/directives/focused/focused.directive.js +0 -33
- package/esm2015/directives/focused/focused.module.js +0 -16
- package/esm2015/directives/focused/index.js +0 -3
- package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +0 -5
- package/esm2015/directives/for/for.directive.js +0 -36
- package/esm2015/directives/for/for.module.js +0 -16
- package/esm2015/directives/for/index.js +0 -3
- package/esm2015/directives/for-async/for-async.directive.js +0 -57
- package/esm2015/directives/for-async/for-async.module.js +0 -19
- package/esm2015/directives/for-async/index.js +0 -3
- package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +0 -5
- package/esm2015/directives/high-dpi/high-dpi.directive.js +0 -31
- package/esm2015/directives/high-dpi/high-dpi.module.js +0 -16
- package/esm2015/directives/high-dpi/index.js +0 -3
- package/esm2015/directives/hovered/hovered.directive.js +0 -23
- package/esm2015/directives/hovered/hovered.module.js +0 -16
- package/esm2015/directives/hovered/hovered.service.js +0 -34
- package/esm2015/directives/hovered/index.js +0 -4
- package/esm2015/directives/index.js +0 -36
- package/esm2015/directives/item/index.js +0 -3
- package/esm2015/directives/item/item.directive.js +0 -16
- package/esm2015/directives/item/item.module.js +0 -16
- package/esm2015/directives/let/index.js +0 -4
- package/esm2015/directives/let/let-context.js +0 -15
- package/esm2015/directives/let/let.directive.js +0 -38
- package/esm2015/directives/let/let.module.js +0 -16
- package/esm2015/directives/media/index.js +0 -3
- package/esm2015/directives/media/media.directive.js +0 -110
- package/esm2015/directives/media/media.module.js +0 -16
- package/esm2015/directives/obscured/index.js +0 -3
- package/esm2015/directives/obscured/obscured.directive.js +0 -49
- package/esm2015/directives/obscured/obscured.module.js +0 -16
- package/esm2015/directives/overscroll/index.js +0 -3
- package/esm2015/directives/overscroll/overscroll.directive.js +0 -103
- package/esm2015/directives/overscroll/overscroll.module.js +0 -16
- package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +0 -5
- package/esm2015/directives/pan/index.js +0 -3
- package/esm2015/directives/pan/pan.directive.js +0 -23
- package/esm2015/directives/pan/pan.module.js +0 -19
- package/esm2015/directives/platform/index.js +0 -3
- package/esm2015/directives/platform/platform.directive.js +0 -32
- package/esm2015/directives/platform/platform.module.js +0 -16
- package/esm2015/directives/portal/index.js +0 -3
- package/esm2015/directives/portal/portal.directive.js +0 -38
- package/esm2015/directives/portal/portal.module.js +0 -16
- package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +0 -5
- package/esm2015/directives/pressed/index.js +0 -3
- package/esm2015/directives/pressed/pressed.directive.js +0 -30
- package/esm2015/directives/pressed/pressed.module.js +0 -16
- package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +0 -5
- package/esm2015/directives/prevent-default/index.js +0 -3
- package/esm2015/directives/prevent-default/prevent-default.directive.js +0 -49
- package/esm2015/directives/prevent-default/prevent-default.module.js +0 -19
- package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +0 -5
- package/esm2015/directives/repeat-times/index.js +0 -3
- package/esm2015/directives/repeat-times/repeat-times.directive.js +0 -59
- package/esm2015/directives/repeat-times/repeat-times.module.js +0 -16
- package/esm2015/directives/resize/index.js +0 -3
- package/esm2015/directives/resize/resize.directive.js +0 -23
- package/esm2015/directives/resize/resize.module.js +0 -19
- package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +0 -5
- package/esm2015/directives/resizer/index.js +0 -4
- package/esm2015/directives/resizer/resizeable.directive.js +0 -14
- package/esm2015/directives/resizer/resizer.directive.js +0 -106
- package/esm2015/directives/resizer/resizer.module.js +0 -17
- package/esm2015/directives/swipe/index.js +0 -3
- package/esm2015/directives/swipe/swipe.directive.js +0 -23
- package/esm2015/directives/swipe/swipe.module.js +0 -19
- package/esm2015/directives/validator/index.js +0 -3
- package/esm2015/directives/validator/validator.directive.js +0 -47
- package/esm2015/directives/validator/validator.module.js +0 -16
- package/esm2015/directives/value-changes/index.js +0 -3
- package/esm2015/directives/value-changes/value-changes.directive.js +0 -39
- package/esm2015/directives/value-changes/value-changes.module.js +0 -16
- package/esm2015/directives/zoom/index.js +0 -3
- package/esm2015/directives/zoom/zoom.directive.js +0 -26
- package/esm2015/directives/zoom/zoom.module.js +0 -19
- package/esm2015/enums/day-of-week.js +0 -13
- package/esm2015/enums/index.js +0 -3
- package/esm2015/enums/month-number.js +0 -18
- package/esm2015/enums/taiga-ui-cdk-enums.js +0 -5
- package/esm2015/exceptions/computed-document.exception.js +0 -6
- package/esm2015/exceptions/document-selection.exception.js +0 -6
- package/esm2015/exceptions/index.js +0 -14
- package/esm2015/exceptions/invalid-day.exception.js +0 -6
- package/esm2015/exceptions/invalid-month.exception.js +0 -6
- package/esm2015/exceptions/invalid-year.exception.js +0 -6
- package/esm2015/exceptions/no-host.exception.js +0 -6
- package/esm2015/exceptions/owner-document.exception.js +0 -6
- package/esm2015/exceptions/pure.exception.js +0 -6
- package/esm2015/exceptions/table-sort-key.exception.js +0 -6
- package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +0 -5
- package/esm2015/exceptions/ts-parser.exception.js +0 -6
- package/esm2015/exceptions/value-changes.exception.js +0 -6
- package/esm2015/exceptions/value-present.exception.js +0 -6
- package/esm2015/exceptions/xml-parsing.exception.js +0 -6
- package/esm2015/index.js +0 -18
- package/esm2015/interfaces/alert-context.js +0 -2
- package/esm2015/interfaces/aria-dialog-context.js +0 -2
- package/esm2015/interfaces/base-dialog-context.js +0 -2
- package/esm2015/interfaces/base-dialog.js +0 -2
- package/esm2015/interfaces/context-with-implicit.js +0 -2
- package/esm2015/interfaces/control-value-transformer.js +0 -2
- package/esm2015/interfaces/day-like.js +0 -2
- package/esm2015/interfaces/focusable-element-accessor.js +0 -2
- package/esm2015/interfaces/index.js +0 -15
- package/esm2015/interfaces/month-like.js +0 -2
- package/esm2015/interfaces/safe-html.js +0 -2
- package/esm2015/interfaces/swipe.js +0 -2
- package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +0 -5
- package/esm2015/interfaces/time-like.js +0 -2
- package/esm2015/interfaces/year-like.js +0 -2
- package/esm2015/interfaces/zoom.js +0 -2
- package/esm2015/observables/control-value.js +0 -15
- package/esm2015/observables/drag-and-drop-from.js +0 -28
- package/esm2015/observables/focus-visible-observable.js +0 -31
- package/esm2015/observables/if-map.js +0 -6
- package/esm2015/observables/index.js +0 -17
- package/esm2015/observables/is-alive.js +0 -10
- package/esm2015/observables/is-observed.js +0 -7
- package/esm2015/observables/items-query-list-observable.js +0 -13
- package/esm2015/observables/mouse-drag-finish-from.js +0 -10
- package/esm2015/observables/must-be-present.js +0 -12
- package/esm2015/observables/pressed-observable.js +0 -13
- package/esm2015/observables/prevent-default.js +0 -5
- package/esm2015/observables/scroll-from.js +0 -10
- package/esm2015/observables/stop-propagation.js +0 -7
- package/esm2015/observables/typed-from-event.js +0 -9
- package/esm2015/observables/watch.js +0 -7
- package/esm2015/observables/zone-free.js +0 -15
- package/esm2015/pipes/filter/filter.module.js +0 -16
- package/esm2015/pipes/filter/filter.pipe.js +0 -14
- package/esm2015/pipes/filter/index.js +0 -3
- package/esm2015/pipes/index.js +0 -6
- package/esm2015/pipes/is-present/index.js +0 -3
- package/esm2015/pipes/is-present/is-present.module.js +0 -16
- package/esm2015/pipes/is-present/is-present.pipe.js +0 -15
- package/esm2015/pipes/keys/index.js +0 -3
- package/esm2015/pipes/keys/keys.module.js +0 -16
- package/esm2015/pipes/keys/keys.pipe.js +0 -14
- package/esm2015/pipes/mapper/index.js +0 -3
- package/esm2015/pipes/mapper/mapper.module.js +0 -16
- package/esm2015/pipes/mapper/mapper.pipe.js +0 -14
- package/esm2015/pipes/replace/index.js +0 -3
- package/esm2015/pipes/replace/replace.module.js +0 -16
- package/esm2015/pipes/replace/replace.pipe.js +0 -17
- package/esm2015/services/destroy.service.js +0 -26
- package/esm2015/services/directive-styles.service.js +0 -32
- package/esm2015/services/focus-visible.service.js +0 -35
- package/esm2015/services/id.service.js +0 -21
- package/esm2015/services/index.js +0 -13
- package/esm2015/services/obscured.service.js +0 -54
- package/esm2015/services/pan.service.js +0 -35
- package/esm2015/services/parents-scroll.service.js +0 -36
- package/esm2015/services/resize.service.js +0 -47
- package/esm2015/services/scroll.service.js +0 -60
- package/esm2015/services/static-request.service.js +0 -51
- package/esm2015/services/swipe.service.js +0 -51
- package/esm2015/services/zoom.service.js +0 -54
- package/esm2015/tokens/active-element.js +0 -61
- package/esm2015/tokens/alerts.js +0 -13
- package/esm2015/tokens/base-href.js +0 -5
- package/esm2015/tokens/default-renderer.js +0 -12
- package/esm2015/tokens/dialogs.js +0 -14
- package/esm2015/tokens/ensure-base-href.js +0 -17
- package/esm2015/tokens/focusable-item-accessor.js +0 -12
- package/esm2015/tokens/fonts-ready.js +0 -11
- package/esm2015/tokens/index.js +0 -30
- package/esm2015/tokens/is-android.js +0 -9
- package/esm2015/tokens/is-apple.js +0 -8
- package/esm2015/tokens/is-chromium.js +0 -8
- package/esm2015/tokens/is-cypress.js +0 -9
- package/esm2015/tokens/is-e2e.js +0 -9
- package/esm2015/tokens/is-firefox.js +0 -11
- package/esm2015/tokens/is-ios.js +0 -8
- package/esm2015/tokens/is-mobile.js +0 -12
- package/esm2015/tokens/is-playwright.js +0 -7
- package/esm2015/tokens/is-stackblitz.js +0 -5
- package/esm2015/tokens/is-webkit.js +0 -11
- package/esm2015/tokens/platform.js +0 -16
- package/esm2015/tokens/removed-element.js +0 -20
- package/esm2015/tokens/scroll-ref.js +0 -8
- package/esm2015/tokens/swipe-options.js +0 -9
- package/esm2015/tokens/take-only-trusted-events.js +0 -10
- package/esm2015/tokens/touch-supported.js +0 -5
- package/esm2015/tokens/window-height.js +0 -9
- package/esm2015/tokens/window-size.js +0 -23
- package/esm2015/tokens/zoom-options.js +0 -8
- package/esm2015/types/autocomplete.js +0 -2
- package/esm2015/types/date-mode.js +0 -2
- package/esm2015/types/deep-partial.js +0 -2
- package/esm2015/types/dialog.js +0 -2
- package/esm2015/types/event-with.js +0 -2
- package/esm2015/types/index.js +0 -17
- package/esm2015/types/injection-token-type.js +0 -2
- package/esm2015/types/input-mode.js +0 -2
- package/esm2015/types/input-type.js +0 -2
- package/esm2015/types/mapper.js +0 -2
- package/esm2015/types/matcher.js +0 -2
- package/esm2015/types/overscroll-mode.js +0 -2
- package/esm2015/types/platform.js +0 -2
- package/esm2015/types/time-mode.js +0 -2
- package/esm2015/utils/browser/index.js +0 -5
- package/esm2015/utils/browser/is-edge-older-than.js +0 -6
- package/esm2015/utils/browser/is-edge.js +0 -4
- package/esm2015/utils/browser/is-firefox.js +0 -4
- package/esm2015/utils/browser/is-safari.js +0 -11
- package/esm2015/utils/color/hex-to-rgb.js +0 -12
- package/esm2015/utils/color/hex-to-rgba.js +0 -31
- package/esm2015/utils/color/hsv-to-rgb.js +0 -11
- package/esm2015/utils/color/index.js +0 -8
- package/esm2015/utils/color/parse-color.js +0 -27
- package/esm2015/utils/color/rgb-to-hex.js +0 -4
- package/esm2015/utils/color/rgba-to-hex.js +0 -26
- package/esm2015/utils/dom/can-scroll.js +0 -42
- package/esm2015/utils/dom/contains-or-after.js +0 -10
- package/esm2015/utils/dom/element-checks.js +0 -20
- package/esm2015/utils/dom/get-clipboard-data-text.js +0 -11
- package/esm2015/utils/dom/get-document-or-shadow-root.js +0 -6
- package/esm2015/utils/dom/get-element-obscurers.js +0 -43
- package/esm2015/utils/dom/get-element-offset.js +0 -20
- package/esm2015/utils/dom/get-scroll-parent.js +0 -19
- package/esm2015/utils/dom/get-selected-text.js +0 -16
- package/esm2015/utils/dom/index.js +0 -17
- package/esm2015/utils/dom/is-node-in.js +0 -15
- package/esm2015/utils/dom/point-to-client-rect.js +0 -16
- package/esm2015/utils/dom/retarget-boundary-crossing.js +0 -11
- package/esm2015/utils/focus/get-native-focused.js +0 -16
- package/esm2015/utils/focus/index.js +0 -10
- package/esm2015/utils/focus/is-native-focused-in.js +0 -16
- package/esm2015/utils/focus/is-native-focused.js +0 -13
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +0 -33
- package/esm2015/utils/focus/is-native-mouse-focusable.js +0 -7
- package/esm2015/utils/focus/set-native-mouse-focused.js +0 -27
- package/esm2015/utils/format/index.js +0 -2
- package/esm2015/utils/format/px.js +0 -9
- package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +0 -5
- package/esm2015/utils/index.js +0 -10
- package/esm2015/utils/math/clamp.js +0 -16
- package/esm2015/utils/math/in-range.js +0 -9
- package/esm2015/utils/math/normalize-to-int-number.js +0 -22
- package/esm2015/utils/math/quantize.js +0 -15
- package/esm2015/utils/math/round-with.js +0 -14
- package/esm2015/utils/math/round.js +0 -35
- package/esm2015/utils/miscellaneous/clean-object.js +0 -9
- package/esm2015/utils/miscellaneous/create-options.js +0 -6
- package/esm2015/utils/miscellaneous/create-token.js +0 -8
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +0 -7
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +0 -15
- package/esm2015/utils/miscellaneous/get-swipe-direction.js +0 -7
- package/esm2015/utils/miscellaneous/index.js +0 -24
- package/esm2015/utils/miscellaneous/is-number.js +0 -5
- package/esm2015/utils/miscellaneous/is-object.js +0 -5
- package/esm2015/utils/miscellaneous/is-string.js +0 -5
- package/esm2015/utils/miscellaneous/is-valid-url.js +0 -11
- package/esm2015/utils/miscellaneous/mark-control-as-touched-and-validate.js +0 -16
- package/esm2015/utils/miscellaneous/nullable-same.js +0 -18
- package/esm2015/utils/miscellaneous/object-from-entries.js +0 -12
- package/esm2015/utils/miscellaneous/provide-options.js +0 -9
- package/esm2015/utils/miscellaneous/uniq-by.js +0 -6
- package/esm2015/utils/os/index.js +0 -4
- package/esm2015/utils/os/is-apple-platform.js +0 -14
- package/esm2015/utils/os/is-apple.js +0 -6
- package/esm2015/utils/os/is-ios.js +0 -7
- package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +0 -5
- package/esm2015/utils/svg/index.js +0 -2
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +0 -56
- package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +0 -5
- package/exceptions/computed-document.exception.d.ts +0 -3
- package/exceptions/document-selection.exception.d.ts +0 -3
- package/exceptions/index.d.ts +0 -13
- package/exceptions/invalid-day.exception.d.ts +0 -3
- package/exceptions/invalid-month.exception.d.ts +0 -3
- package/exceptions/invalid-year.exception.d.ts +0 -3
- package/exceptions/no-host.exception.d.ts +0 -3
- package/exceptions/owner-document.exception.d.ts +0 -3
- package/exceptions/package.json +0 -10
- package/exceptions/pure.exception.d.ts +0 -3
- package/exceptions/table-sort-key.exception.d.ts +0 -3
- package/exceptions/taiga-ui-cdk-exceptions.d.ts +0 -5
- package/exceptions/ts-parser.exception.d.ts +0 -3
- package/exceptions/value-changes.exception.d.ts +0 -3
- package/exceptions/value-present.exception.d.ts +0 -3
- package/exceptions/xml-parsing.exception.d.ts +0 -3
- package/fesm2015/taiga-ui-cdk-abstract.js +0 -508
- package/fesm2015/taiga-ui-cdk-abstract.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-classes.js +0 -29
- package/fesm2015/taiga-ui-cdk-classes.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +0 -16
- package/fesm2015/taiga-ui-cdk-coercion.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +0 -94
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +0 -180
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +0 -61
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js +0 -220
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-components.js +0 -9
- package/fesm2015/taiga-ui-cdk-components.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-constants.js +0 -237
- package/fesm2015/taiga-ui-cdk-constants.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +0 -823
- package/fesm2015/taiga-ui-cdk-date-time.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +0 -193
- package/fesm2015/taiga-ui-cdk-decorators.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +0 -100
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +0 -349
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +0 -77
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +0 -66
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js +0 -59
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-control.js +0 -45
- package/fesm2015/taiga-ui-cdk-directives-control.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +0 -55
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +0 -60
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +0 -60
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +0 -54
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +0 -100
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +0 -48
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +0 -51
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +0 -53
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +0 -80
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +0 -56
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +0 -51
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +0 -74
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +0 -36
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +0 -72
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +0 -130
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +0 -69
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +0 -123
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +0 -46
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-platform.js +0 -52
- package/fesm2015/taiga-ui-cdk-directives-platform.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +0 -58
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +0 -50
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +0 -72
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +0 -79
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +0 -46
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-resizer.js +0 -137
- package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +0 -46
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +0 -67
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js +0 -59
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +0 -49
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-directives.js +0 -40
- package/fesm2015/taiga-ui-cdk-directives.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-enums.js +0 -37
- package/fesm2015/taiga-ui-cdk-enums.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +0 -84
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js +0 -4
- package/fesm2015/taiga-ui-cdk-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-observables.js +0 -172
- package/fesm2015/taiga-ui-cdk-observables.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +0 -34
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js +0 -35
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js +0 -34
- package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +0 -34
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js +0 -37
- package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-pipes.js +0 -10
- package/fesm2015/taiga-ui-cdk-pipes.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-services.js +0 -449
- package/fesm2015/taiga-ui-cdk-services.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +0 -287
- package/fesm2015/taiga-ui-cdk-tokens.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-types.js +0 -4
- package/fesm2015/taiga-ui-cdk-types.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +0 -31
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +0 -125
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +0 -254
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +0 -167
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +0 -16
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +0 -135
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +0 -187
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +0 -31
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +0 -63
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +0 -1
- package/fesm2015/taiga-ui-cdk-utils.js +0 -14
- package/fesm2015/taiga-ui-cdk-utils.js.map +0 -1
- package/fesm2015/taiga-ui-cdk.js +0 -22
- package/fesm2015/taiga-ui-cdk.js.map +0 -1
- package/interfaces/alert-context.d.ts +0 -2
- package/interfaces/aria-dialog-context.d.ts +0 -6
- package/interfaces/base-dialog-context.d.ts +0 -6
- package/interfaces/base-dialog.d.ts +0 -7
- package/interfaces/context-with-implicit.d.ts +0 -3
- package/interfaces/control-value-transformer.d.ts +0 -7
- package/interfaces/day-like.d.ts +0 -7
- package/interfaces/focusable-element-accessor.d.ts +0 -12
- package/interfaces/index.d.ts +0 -14
- package/interfaces/month-like.d.ts +0 -7
- package/interfaces/package.json +0 -10
- package/interfaces/safe-html.d.ts +0 -2
- package/interfaces/swipe.d.ts +0 -9
- package/interfaces/taiga-ui-cdk-interfaces.d.ts +0 -5
- package/interfaces/time-like.d.ts +0 -6
- package/interfaces/year-like.d.ts +0 -6
- package/interfaces/zoom.d.ts +0 -9
- package/observables/focus-visible-observable.d.ts +0 -2
- package/observables/is-alive.d.ts +0 -5
- package/observables/is-observed.d.ts +0 -2
- package/observables/items-query-list-observable.d.ts +0 -10
- package/observables/mouse-drag-finish-from.d.ts +0 -7
- package/observables/package.json +0 -10
- package/observables/pressed-observable.d.ts +0 -5
- package/observables/prevent-default.d.ts +0 -2
- package/observables/stop-propagation.d.ts +0 -2
- package/observables/taiga-ui-cdk-observables.d.ts +0 -5
- package/observables/zone-free.d.ts +0 -5
- package/pipes/filter/filter.module.d.ts +0 -7
- package/pipes/filter/package.json +0 -10
- package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +0 -5
- package/pipes/is-present/is-present.module.d.ts +0 -7
- package/pipes/is-present/package.json +0 -10
- package/pipes/is-present/taiga-ui-cdk-pipes-is-present.d.ts +0 -5
- package/pipes/keys/keys.module.d.ts +0 -7
- package/pipes/keys/package.json +0 -10
- package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +0 -5
- package/pipes/mapper/mapper.module.d.ts +0 -7
- package/pipes/mapper/package.json +0 -10
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +0 -5
- package/pipes/package.json +0 -10
- package/pipes/replace/package.json +0 -10
- package/pipes/replace/replace.module.d.ts +0 -7
- package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +0 -5
- package/pipes/taiga-ui-cdk-pipes.d.ts +0 -5
- package/schematics/ng-update/interfaces/replaceable-attribute.d.ts +0 -12
- package/schematics/ng-update/interfaces/replacement-const.d.ts +0 -11
- package/schematics/ng-update/interfaces/type-to-rename.d.ts +0 -6
- package/schematics/ng-update/steps/replace-const.d.ts +0 -4
- package/schematics/ng-update/steps/replace-const.js +0 -33
- package/schematics/ng-update/v3/interfaces/attribute-to-directive.d.ts +0 -11
- package/schematics/ng-update/v3/interfaces/removable-input.d.ts +0 -4
- package/schematics/ng-update/v3/interfaces/replaceable-attribute-value.d.ts +0 -8
- package/schematics/ng-update/v3/interfaces/replaceable-tag.d.ts +0 -5
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.d.ts +0 -3
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.js +0 -58
- package/schematics/utils/add-import-to-component.d.ts +0 -4
- package/schematics/utils/add-import-to-component.js +0 -12
- package/schematics/utils/angular/ng-component.d.ts +0 -2
- package/schematics/utils/angular/ng-component.js +0 -8
- package/schematics/utils/angular/ng-module.d.ts +0 -6
- package/schematics/utils/angular/ng-module.js +0 -23
- package/schematics/utils/replace-tag.d.ts +0 -3
- package/schematics/utils/replace-tag.js +0 -17
- package/services/destroy.service.d.ts +0 -17
- package/services/directive-styles.service.d.ts +0 -14
- package/services/focus-visible.service.d.ts +0 -14
- package/services/obscured.service.d.ts +0 -15
- package/services/package.json +0 -10
- package/services/pan.service.d.ts +0 -8
- package/services/parents-scroll.service.d.ts +0 -12
- package/services/resize.service.d.ts +0 -9
- package/services/swipe.service.d.ts +0 -9
- package/services/taiga-ui-cdk-services.d.ts +0 -5
- package/services/zoom.service.d.ts +0 -9
- package/taiga-ui-cdk.d.ts +0 -5
- package/tokens/alerts.d.ts +0 -8
- package/tokens/default-renderer.d.ts +0 -8
- package/tokens/dialogs.d.ts +0 -8
- package/tokens/ensure-base-href.d.ts +0 -4
- package/tokens/focusable-item-accessor.d.ts +0 -7
- package/tokens/fonts-ready.d.ts +0 -3
- package/tokens/is-android.d.ts +0 -4
- package/tokens/is-apple.d.ts +0 -4
- package/tokens/is-chromium.d.ts +0 -4
- package/tokens/is-cypress.d.ts +0 -5
- package/tokens/is-e2e.d.ts +0 -4
- package/tokens/is-firefox.d.ts +0 -4
- package/tokens/is-ios.d.ts +0 -4
- package/tokens/is-mobile.d.ts +0 -4
- package/tokens/is-playwright.d.ts +0 -4
- package/tokens/is-stackblitz.d.ts +0 -1
- package/tokens/is-webkit.d.ts +0 -4
- package/tokens/package.json +0 -10
- package/tokens/platform.d.ts +0 -3
- package/tokens/scroll-ref.d.ts +0 -5
- package/tokens/swipe-options.d.ts +0 -5
- package/tokens/taiga-ui-cdk-tokens.d.ts +0 -5
- package/tokens/take-only-trusted-events.d.ts +0 -7
- package/tokens/touch-supported.d.ts +0 -1
- package/tokens/window-height.d.ts +0 -4
- package/tokens/zoom-options.d.ts +0 -5
- package/types/autocomplete.d.ts +0 -2
- package/types/date-mode.d.ts +0 -6
- package/types/deep-partial.d.ts +0 -3
- package/types/dialog.d.ts +0 -5
- package/types/event-with.d.ts +0 -10
- package/types/injection-token-type.d.ts +0 -2
- package/types/input-mode.d.ts +0 -1
- package/types/input-type.d.ts +0 -1
- package/types/overscroll-mode.d.ts +0 -1
- package/types/package.json +0 -10
- package/types/platform.d.ts +0 -1
- package/types/taiga-ui-cdk-types.d.ts +0 -5
- package/types/time-mode.d.ts +0 -1
- package/utils/browser/is-edge-older-than.d.ts +0 -1
- package/utils/browser/package.json +0 -10
- package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +0 -5
- package/utils/color/package.json +0 -10
- package/utils/color/taiga-ui-cdk-utils-color.d.ts +0 -5
- package/utils/dom/can-scroll.d.ts +0 -1
- package/utils/dom/get-scroll-parent.d.ts +0 -7
- package/utils/dom/package.json +0 -10
- package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +0 -5
- package/utils/focus/package.json +0 -10
- package/utils/focus/set-native-mouse-focused.d.ts +0 -8
- package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +0 -5
- package/utils/format/index.d.ts +0 -1
- package/utils/format/package.json +0 -10
- package/utils/format/taiga-ui-cdk-utils-format.d.ts +0 -5
- package/utils/math/package.json +0 -10
- package/utils/math/taiga-ui-cdk-utils-math.d.ts +0 -5
- package/utils/miscellaneous/clean-object.d.ts +0 -2
- package/utils/miscellaneous/create-options.d.ts +0 -3
- package/utils/miscellaneous/get-swipe-direction.d.ts +0 -2
- package/utils/miscellaneous/object-from-entries.d.ts +0 -9
- package/utils/miscellaneous/package.json +0 -10
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +0 -5
- package/utils/os/index.d.ts +0 -3
- package/utils/os/is-apple-platform.d.ts +0 -11
- package/utils/os/is-apple.d.ts +0 -1
- package/utils/os/package.json +0 -10
- package/utils/os/taiga-ui-cdk-utils-os.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/svg/index.d.ts +0 -1
- package/utils/svg/package.json +0 -10
- package/utils/svg/svg-linear-gradient-processor.d.ts +0 -16
- package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +0 -5
- package/utils/taiga-ui-cdk-utils.d.ts +0 -5
- /package/{esm2015/classes/taiga-ui-cdk-classes.js → esm2022/classes/taiga-ui-cdk-classes.mjs} +0 -0
- /package/{esm2015/constants/taiga-ui-cdk-constants.js → esm2022/constants/taiga-ui-cdk-constants.mjs} +0 -0
- /package/{esm2015/date-time/date-clamp.js → esm2022/date-time/date-clamp.mjs} +0 -0
- /package/{esm2015/date-time/date-fillers.js → esm2022/date-time/date-fillers.mjs} +0 -0
- /package/{esm2015/date-time/date-time.js → esm2022/date-time/date-time.mjs} +0 -0
- /package/{esm2015/date-time/days.const.js → esm2022/date-time/days.const.mjs} +0 -0
- /package/{esm2015/date-time/taiga-ui-cdk-date-time.js → esm2022/date-time/taiga-ui-cdk-date-time.mjs} +0 -0
- /package/{esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js → esm2022/directives/active-zone/taiga-ui-cdk-directives-active-zone.mjs} +0 -0
- /package/{esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js → esm2022/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.mjs} +0 -0
- /package/{esm2015/directives/click-outside/taiga-ui-cdk-directives-click-outside.js → esm2022/directives/click-outside/taiga-ui-cdk-directives-click-outside.mjs} +0 -0
- /package/{esm2015/directives/control/taiga-ui-cdk-directives-control.js → esm2022/directives/control/taiga-ui-cdk-directives-control.mjs} +0 -0
- /package/{esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js → esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs} +0 -0
- /package/{esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js → esm2022/directives/droppable/taiga-ui-cdk-directives-droppable.mjs} +0 -0
- /package/{esm2015/directives/element/taiga-ui-cdk-directives-element.js → esm2022/directives/element/taiga-ui-cdk-directives-element.mjs} +0 -0
- /package/{esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js → esm2022/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.mjs} +0 -0
- /package/{esm2015/directives/for/taiga-ui-cdk-directives-for.js → esm2022/directives/for/taiga-ui-cdk-directives-for.mjs} +0 -0
- /package/{esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js → esm2022/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.mjs} +0 -0
- /package/{esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js → esm2022/directives/hovered/taiga-ui-cdk-directives-hovered.mjs} +0 -0
- /package/{esm2015/directives/item/taiga-ui-cdk-directives-item.js → esm2022/directives/item/taiga-ui-cdk-directives-item.mjs} +0 -0
- /package/{esm2015/directives/let/taiga-ui-cdk-directives-let.js → esm2022/directives/let/taiga-ui-cdk-directives-let.mjs} +0 -0
- /package/{esm2015/directives/media/taiga-ui-cdk-directives-media.js → esm2022/directives/media/taiga-ui-cdk-directives-media.mjs} +0 -0
- /package/{esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js → esm2022/directives/obscured/taiga-ui-cdk-directives-obscured.mjs} +0 -0
- /package/{esm2015/directives/pan/taiga-ui-cdk-directives-pan.js → esm2022/directives/pan/taiga-ui-cdk-directives-pan.mjs} +0 -0
- /package/{esm2015/directives/platform/taiga-ui-cdk-directives-platform.js → esm2022/directives/platform/taiga-ui-cdk-directives-platform.mjs} +0 -0
- /package/{esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js → esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs} +0 -0
- /package/{esm2015/directives/resizer/taiga-ui-cdk-directives-resizer.js → esm2022/directives/resizer/taiga-ui-cdk-directives-resizer.mjs} +0 -0
- /package/{esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js → esm2022/directives/swipe/taiga-ui-cdk-directives-swipe.mjs} +0 -0
- /package/{esm2015/directives/taiga-ui-cdk-directives.js → esm2022/directives/taiga-ui-cdk-directives.mjs} +0 -0
- /package/{esm2015/directives/validator/taiga-ui-cdk-directives-validator.js → esm2022/directives/validator/taiga-ui-cdk-directives-validator.mjs} +0 -0
- /package/{esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js → esm2022/directives/value-changes/taiga-ui-cdk-directives-value-changes.mjs} +0 -0
- /package/{esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js → esm2022/directives/zoom/taiga-ui-cdk-directives-zoom.mjs} +0 -0
- /package/{esm2015/observables/taiga-ui-cdk-observables.js → esm2022/observables/taiga-ui-cdk-observables.mjs} +0 -0
- /package/{esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js → esm2022/pipes/filter/taiga-ui-cdk-pipes-filter.mjs} +0 -0
- /package/{esm2015/pipes/is-present/taiga-ui-cdk-pipes-is-present.js → esm2022/pipes/is-present/taiga-ui-cdk-pipes-is-present.mjs} +0 -0
- /package/{esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js → esm2022/pipes/keys/taiga-ui-cdk-pipes-keys.mjs} +0 -0
- /package/{esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js → esm2022/pipes/mapper/taiga-ui-cdk-pipes-mapper.mjs} +0 -0
- /package/{esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js → esm2022/pipes/replace/taiga-ui-cdk-pipes-replace.mjs} +0 -0
- /package/{esm2015/pipes/taiga-ui-cdk-pipes.js → esm2022/pipes/taiga-ui-cdk-pipes.mjs} +0 -0
- /package/{esm2015/services/taiga-ui-cdk-services.js → esm2022/services/taiga-ui-cdk-services.mjs} +0 -0
- /package/{esm2015/taiga-ui-cdk.js → esm2022/taiga-ui-cdk.mjs} +0 -0
- /package/{esm2015/tokens/range.js → esm2022/tokens/range.mjs} +0 -0
- /package/{esm2015/tokens/taiga-ui-cdk-tokens.js → esm2022/tokens/taiga-ui-cdk-tokens.mjs} +0 -0
- /package/{esm2015/types/handler.js → esm2022/types/handler.mjs} +0 -0
- /package/{esm2015/types/rounding.js → esm2022/types/rounding.mjs} +0 -0
- /package/{esm2015/types/taiga-ui-cdk-types.js → esm2022/types/taiga-ui-cdk-types.mjs} +0 -0
- /package/{esm2015/types/values-of.js → esm2022/types/values-of.mjs} +0 -0
- /package/{esm2015/utils/browser/taiga-ui-cdk-utils-browser.js → esm2022/utils/browser/taiga-ui-cdk-utils-browser.mjs} +0 -0
- /package/{esm2015/utils/color/rgb-to-hsv.js → esm2022/utils/color/rgb-to-hsv.mjs} +0 -0
- /package/{esm2015/utils/color/taiga-ui-cdk-utils-color.js → esm2022/utils/color/taiga-ui-cdk-utils-color.mjs} +0 -0
- /package/{esm2015/utils/dom/get-actual-target.js → esm2022/utils/dom/get-actual-target.mjs} +0 -0
- /package/{esm2015/utils/dom/is-current-target.js → esm2022/utils/dom/is-current-target.mjs} +0 -0
- /package/{esm2015/utils/dom/is-element-editable.js → esm2022/utils/dom/is-element-editable.mjs} +0 -0
- /package/{esm2015/utils/dom/is-inside-iframe.js → esm2022/utils/dom/is-inside-iframe.mjs} +0 -0
- /package/{esm2015/utils/dom/taiga-ui-cdk-utils-dom.js → esm2022/utils/dom/taiga-ui-cdk-utils-dom.mjs} +0 -0
- /package/{esm2015/utils/focus/blur-native-focused.js → esm2022/utils/focus/blur-native-focused.mjs} +0 -0
- /package/{esm2015/utils/focus/get-closest-focusable.js → esm2022/utils/focus/get-closest-focusable.mjs} +0 -0
- /package/{esm2015/utils/focus/move-focus.js → esm2022/utils/focus/move-focus.mjs} +0 -0
- /package/{esm2015/utils/focus/taiga-ui-cdk-utils-focus.js → esm2022/utils/focus/taiga-ui-cdk-utils-focus.mjs} +0 -0
- /package/{esm2015/utils/math/index.js → esm2022/utils/math/index.mjs} +0 -0
- /package/{esm2015/utils/math/sum.js → esm2022/utils/math/sum.mjs} +0 -0
- /package/{esm2015/utils/math/taiga-ui-cdk-utils-math.js → esm2022/utils/math/taiga-ui-cdk-utils-math.mjs} +0 -0
- /package/{esm2015/utils/math/to-int.js → esm2022/utils/math/to-int.mjs} +0 -0
- /package/{esm2015/utils/math/to-integer.js → esm2022/utils/math/to-integer.mjs} +0 -0
- /package/{esm2015/utils/math/to-radians.js → esm2022/utils/math/to-radians.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/array-remove.js → esm2022/utils/miscellaneous/array-remove.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/array-shallow-equals.js → esm2022/utils/miscellaneous/array-shallow-equals.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/array-toggle.js → esm2022/utils/miscellaneous/array-toggle.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/default-sort.js → esm2022/utils/miscellaneous/default-sort.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/distance-between-touches.js → esm2022/utils/miscellaneous/distance-between-touches.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/flat-length.js → esm2022/utils/miscellaneous/flat-length.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/is-falsy.js → esm2022/utils/miscellaneous/is-falsy.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/is-present.js → esm2022/utils/miscellaneous/is-present.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js → esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-cdk-utils.js → esm2022/utils/taiga-ui-cdk-utils.mjs} +0 -0
- /package/schematics/ng-update/interfaces/{replaceable-attribute.js → html-comment.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces → interfaces}/removable-input.js +0 -0
- /package/schematics/ng-update/interfaces/{replacement-const.js → replacement-attribute-to-directive.js} +0 -0
- /package/schematics/ng-update/interfaces/{type-to-rename.js → replacement-attribute-value.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces/attribute-to-directive.js → interfaces/replacement-attribute.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces/replaceable-attribute-value.js → interfaces/replacement-identifier.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces/replaceable-tag.js → interfaces/replacement-tag.js} +0 -0
- /package/utils/{os → browser}/is-ios.d.ts +0 -0
- /package/utils/{format → miscellaneous}/px.d.ts +0 -0
@@ -0,0 +1 @@
|
|
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 (typeof 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, g, b, 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] === undefined ? DEFAULT[3] : parsed[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 = '\\\\s*,\\\\s*'; // Allow space around comma.\nconst HEX = '#(?:[a-f0-9]{6}|[a-f0-9]{3})'; // 3 or 6 character form\nconst RGB = '\\\\(\\\\s*(?:\\\\d{1,3}\\\\s*,\\\\s*){2}\\\\d{1,3}\\\\s*\\\\)'; // \"(1, 2, 3)\"\nconst RGBA = '\\\\(\\\\s*(?:\\\\d{1,3}\\\\s*,\\\\s*){2}\\\\d{1,3}\\\\s*,\\\\s*\\\\d*\\\\.?\\\\d+\\\\)'; // \"(1, 2, 3, 4)\"\nconst VALUE = '(?:[+-]?\\\\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 '\\\\s*(',\n ...COLOR,\n ')',\n '(?:\\\\s+',\n '(',\n VALUE,\n '))?',\n '(?:',\n COMMA,\n '\\\\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') || input.match(/^\\d/)\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: number[] =\n (color\n .replaceAll(/\\s/g, '')\n .match(/^rgba?\\((\\d+),(\\d+),(\\d+),?([^,\\s)]+)?/i) as unknown as number[]) ??\n [];\n let alpha: number | string = (rgb?.[4] ?? '').toString().trim();\n let hex = rgb\n ? (rgb[1] | (1 << 8)).toString(16).slice(1) +\n (rgb[2] | (1 << 8)).toString(16).slice(1) +\n (rgb[3] | (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 = '(\\\\d|[1-9]\\\\d|1\\\\d{2}|2[0-4]\\\\d|2[0-5]{2})';\n const alpha = '([01]|0?\\\\.\\\\d+)';\n\n return new RegExp(\n `^(?:rgb\\\\(\\\\s*${range}\\\\s*,\\\\s*${range}\\\\s*,\\\\s*${range}\\\\s*\\\\)|rgba\\\\(\\\\s*${range}\\\\s*,\\\\s*${range}\\\\s*,\\\\s*${range}\\\\s*,\\\\s*${alpha}\\\\s*\\\\))$`,\n ).test(rgba);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAM,SAAU,kBAAkB,CAAC,QAAgB,EAAA;AAC/C,IAAA,OAAO,QAAQ;AACV,SAAA,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,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IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACzC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;UACzC,KAAK,CAAC;AAEZ,IAAA,KAAK,GAAG,KAAK,KAAK,EAAE,GAAG,KAAK,GAAG,GAAG,CAAC;IACnC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,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;IACvC,MAAM,KAAK,GAAG,4CAA4C,CAAC;IAC3D,MAAM,KAAK,GAAG,kBAAkB,CAAC;IAEjC,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;;;;"}
|
@@ -0,0 +1,211 @@
|
|
1
|
+
import { tuiClamp } from '@taiga-ui/cdk/utils/math';
|
2
|
+
import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
|
3
|
+
import { inject, ElementRef } from '@angular/core';
|
4
|
+
|
5
|
+
function tuiContainsOrAfter(current, node) {
|
6
|
+
try {
|
7
|
+
return (current.contains(node) ||
|
8
|
+
!!(node.compareDocumentPosition(current) & Node.DOCUMENT_POSITION_PRECEDING));
|
9
|
+
}
|
10
|
+
catch {
|
11
|
+
return false;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
function tuiIsInput(element) {
|
16
|
+
return element.matches('input');
|
17
|
+
}
|
18
|
+
function tuiIsTextarea(element) {
|
19
|
+
return element.matches('textarea');
|
20
|
+
}
|
21
|
+
function tuiIsTextfield(element) {
|
22
|
+
return tuiIsInput(element) || tuiIsTextarea(element);
|
23
|
+
}
|
24
|
+
function tuiIsElement(node) {
|
25
|
+
return !!node && 'nodeType' in node && node.nodeType === Node.ELEMENT_NODE;
|
26
|
+
}
|
27
|
+
function tuiIsHTMLElement(node) {
|
28
|
+
return !!node && node instanceof node.ownerDocument.defaultView.HTMLElement;
|
29
|
+
}
|
30
|
+
function tuiIsTextNode(node) {
|
31
|
+
return node.nodeType === Node.TEXT_NODE;
|
32
|
+
}
|
33
|
+
|
34
|
+
function tuiIsInputEvent(event) {
|
35
|
+
return 'data' in event && 'inputType' in event;
|
36
|
+
}
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Gets actual target from open Shadow DOM if event happened within it
|
40
|
+
*/
|
41
|
+
function tuiGetActualTarget(event) {
|
42
|
+
return event.composedPath()[0];
|
43
|
+
}
|
44
|
+
|
45
|
+
const DEFAULT_FORMAT = 'text/plain';
|
46
|
+
/**
|
47
|
+
* Gets text from data of clipboardEvent, it also works in IE and Edge browsers
|
48
|
+
*/
|
49
|
+
function tuiGetClipboardDataText(event, format = DEFAULT_FORMAT) {
|
50
|
+
return 'clipboardData' in event && event.clipboardData !== null
|
51
|
+
? event.clipboardData.getData(format) ||
|
52
|
+
event.clipboardData.getData(DEFAULT_FORMAT)
|
53
|
+
: event.target.ownerDocument.defaultView.clipboardData.getData('text');
|
54
|
+
}
|
55
|
+
|
56
|
+
function tuiGetDocumentOrShadowRoot(node) {
|
57
|
+
return 'getRootNode' in node && node.isConnected
|
58
|
+
? node.getRootNode()
|
59
|
+
: node.ownerDocument;
|
60
|
+
}
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Returns array of Elements covering edges of given element or null if at least one edge middle point is visible
|
64
|
+
*
|
65
|
+
* CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered
|
66
|
+
* ```ts
|
67
|
+
* function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null
|
68
|
+
* ```
|
69
|
+
*/
|
70
|
+
function tuiGetElementObscures(element) {
|
71
|
+
const { ownerDocument } = element;
|
72
|
+
if (!ownerDocument?.defaultView || !element.getBoundingClientRect) {
|
73
|
+
return null;
|
74
|
+
}
|
75
|
+
const { innerWidth, innerHeight } = ownerDocument.defaultView;
|
76
|
+
const doc = tuiGetDocumentOrShadowRoot(element);
|
77
|
+
const rect = element.getBoundingClientRect();
|
78
|
+
if (rect.width === 0 && rect.height === 0) {
|
79
|
+
return null;
|
80
|
+
}
|
81
|
+
const left = tuiClamp(Math.round(rect.left) + 2, 0, innerWidth);
|
82
|
+
const top = tuiClamp(Math.round(rect.top) + 2, 0, innerHeight);
|
83
|
+
const right = tuiClamp(Math.round(rect.right) - 2, 0, innerWidth);
|
84
|
+
const bottom = tuiClamp(Math.round(rect.bottom) - 2, 0, innerHeight);
|
85
|
+
const horizontalMiddle = tuiClamp(Math.round(rect.left + rect.width / 2), 0, innerWidth);
|
86
|
+
const verticalMiddle = tuiClamp(Math.round(rect.top + rect.height / 2), 0, innerHeight);
|
87
|
+
const elements = [
|
88
|
+
doc.elementFromPoint(horizontalMiddle, top),
|
89
|
+
doc.elementFromPoint(horizontalMiddle, bottom),
|
90
|
+
doc.elementFromPoint(left, verticalMiddle),
|
91
|
+
doc.elementFromPoint(right, verticalMiddle),
|
92
|
+
];
|
93
|
+
const nonNull = elements.filter(tuiIsPresent);
|
94
|
+
if (!nonNull.length) {
|
95
|
+
return [];
|
96
|
+
}
|
97
|
+
const filtered = nonNull.filter((el) => !element.contains(el) && !el.contains(element));
|
98
|
+
return filtered.length === 4
|
99
|
+
? filtered
|
100
|
+
: null;
|
101
|
+
}
|
102
|
+
|
103
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
104
|
+
/**
|
105
|
+
* Calculates offset for an element relative to it's parent several levels above
|
106
|
+
*
|
107
|
+
* @param host parent element
|
108
|
+
* @param element
|
109
|
+
* @return object with offsetTop and offsetLeft number properties
|
110
|
+
*/
|
111
|
+
function tuiGetElementOffset(host, element) {
|
112
|
+
ngDevMode && console.assert(host.contains(element), 'Host must contain element');
|
113
|
+
let { offsetTop, offsetLeft, offsetParent } = element;
|
114
|
+
while (tuiIsHTMLElement(offsetParent) && offsetParent !== host) {
|
115
|
+
offsetTop += offsetParent.offsetTop;
|
116
|
+
offsetLeft += offsetParent.offsetLeft;
|
117
|
+
offsetParent = offsetParent.offsetParent;
|
118
|
+
}
|
119
|
+
return { offsetTop, offsetLeft };
|
120
|
+
}
|
121
|
+
|
122
|
+
function tuiGetElementPoint(x, y, element) {
|
123
|
+
const { left, top, width, height } = element.getBoundingClientRect();
|
124
|
+
return [tuiClamp(x - left, 0, width) / width, tuiClamp(y - top, 0, height) / height];
|
125
|
+
}
|
126
|
+
|
127
|
+
/**
|
128
|
+
* @description:
|
129
|
+
* cross browser way to get selected text
|
130
|
+
*
|
131
|
+
* History:
|
132
|
+
* BUG - window.getSelection() fails when text selected in a form field
|
133
|
+
* https://bugzilla.mozilla.org/show_bug.cgi?id=85686
|
134
|
+
*/
|
135
|
+
function tuiGetSelectedText({ getSelection, document }) {
|
136
|
+
return document.activeElement && tuiIsTextfield(document.activeElement)
|
137
|
+
? document.activeElement.value.slice(document.activeElement.selectionStart || 0, document.activeElement.selectionEnd || 0)
|
138
|
+
: getSelection()?.toString() || null;
|
139
|
+
}
|
140
|
+
|
141
|
+
function tuiInjectElement() {
|
142
|
+
return inject(ElementRef).nativeElement;
|
143
|
+
}
|
144
|
+
|
145
|
+
function tuiIsCurrentTarget({ target, currentTarget }) {
|
146
|
+
return target === currentTarget;
|
147
|
+
}
|
148
|
+
|
149
|
+
function tuiIsElementEditable(element) {
|
150
|
+
return (tuiIsTextfield(element) && !element.readOnly) || !!element.isContentEditable;
|
151
|
+
}
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Checks if an app is running inside <iframe /> tag
|
155
|
+
*/
|
156
|
+
function tuiIsInsideIframe(win) {
|
157
|
+
return win.parent !== win;
|
158
|
+
}
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Checks if node is inside a specific selector
|
162
|
+
*
|
163
|
+
* @param node
|
164
|
+
* @param selector
|
165
|
+
* @return true if node is inside a particular selector
|
166
|
+
*/
|
167
|
+
function tuiIsNodeIn(node, selector) {
|
168
|
+
return tuiIsTextNode(node)
|
169
|
+
? !!node.parentElement?.closest(selector)
|
170
|
+
: tuiIsElement(node) && !!node.closest(selector);
|
171
|
+
}
|
172
|
+
|
173
|
+
function tuiPointToClientRect(x = 0, y = 0) {
|
174
|
+
const rect = {
|
175
|
+
x,
|
176
|
+
y,
|
177
|
+
left: x,
|
178
|
+
right: x,
|
179
|
+
top: y,
|
180
|
+
bottom: y,
|
181
|
+
width: 0,
|
182
|
+
height: 0,
|
183
|
+
};
|
184
|
+
return {
|
185
|
+
...rect,
|
186
|
+
toJSON: () => rect,
|
187
|
+
};
|
188
|
+
}
|
189
|
+
|
190
|
+
function tuiRetargetedBoundaryCrossing(event) {
|
191
|
+
// firefox
|
192
|
+
if ('explicitOriginalTarget' in event) {
|
193
|
+
return event?.explicitOriginalTarget !== event.target;
|
194
|
+
}
|
195
|
+
// chrome
|
196
|
+
if ('pointerId' in event) {
|
197
|
+
return event.pointerId === -1;
|
198
|
+
}
|
199
|
+
// safari
|
200
|
+
if ('detail' in event && 'webkitForce' in event) {
|
201
|
+
return event?.detail === 0;
|
202
|
+
}
|
203
|
+
return false;
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Generated bundle index. Do not edit.
|
208
|
+
*/
|
209
|
+
|
210
|
+
export { tuiContainsOrAfter, tuiGetActualTarget, tuiGetClipboardDataText, tuiGetDocumentOrShadowRoot, tuiGetElementObscures, tuiGetElementOffset, tuiGetElementPoint, tuiGetSelectedText, tuiInjectElement, tuiIsCurrentTarget, tuiIsElement, tuiIsElementEditable, tuiIsHTMLElement, tuiIsInput, tuiIsInputEvent, tuiIsInsideIframe, tuiIsNodeIn, tuiIsTextNode, tuiIsTextarea, tuiIsTextfield, tuiPointToClientRect, tuiRetargetedBoundaryCrossing };
|
211
|
+
//# sourceMappingURL=taiga-ui-cdk-utils-dom.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-dom.mjs","sources":["../../../projects/cdk/utils/dom/contains-or-after.ts","../../../projects/cdk/utils/dom/element-checks.ts","../../../projects/cdk/utils/dom/event-checks.ts","../../../projects/cdk/utils/dom/get-actual-target.ts","../../../projects/cdk/utils/dom/get-clipboard-data-text.ts","../../../projects/cdk/utils/dom/get-document-or-shadow-root.ts","../../../projects/cdk/utils/dom/get-element-obscurers.ts","../../../projects/cdk/utils/dom/get-element-offset.ts","../../../projects/cdk/utils/dom/get-element-point.ts","../../../projects/cdk/utils/dom/get-selected-text.ts","../../../projects/cdk/utils/dom/inject-element.ts","../../../projects/cdk/utils/dom/is-current-target.ts","../../../projects/cdk/utils/dom/is-element-editable.ts","../../../projects/cdk/utils/dom/is-inside-iframe.ts","../../../projects/cdk/utils/dom/is-node-in.ts","../../../projects/cdk/utils/dom/point-to-client-rect.ts","../../../projects/cdk/utils/dom/retarget-boundary-crossing.ts","../../../projects/cdk/utils/dom/taiga-ui-cdk-utils-dom.ts"],"sourcesContent":["export function tuiContainsOrAfter(current: Node, node: Node): boolean {\n try {\n return (\n current.contains(node) ||\n !!(node.compareDocumentPosition(current) & Node.DOCUMENT_POSITION_PRECEDING)\n );\n } catch {\n return false;\n }\n}\n","export function tuiIsInput(element: Element): element is HTMLInputElement {\n return element.matches('input');\n}\n\nexport function tuiIsTextarea(element: Element): element is HTMLTextAreaElement {\n return element.matches('textarea');\n}\n\nexport function tuiIsTextfield(\n element: Element,\n): element is HTMLInputElement | HTMLTextAreaElement {\n return tuiIsInput(element) || tuiIsTextarea(element);\n}\n\nexport function tuiIsElement(\n node?: Element | EventTarget | Node | null,\n): node is Element {\n return !!node && 'nodeType' in node && node.nodeType === Node.ELEMENT_NODE;\n}\n\nexport function tuiIsHTMLElement(node: any): node is HTMLElement {\n return !!node && node instanceof node.ownerDocument.defaultView.HTMLElement;\n}\n\nexport function tuiIsTextNode(node: Node): node is Text {\n return node.nodeType === Node.TEXT_NODE;\n}\n","export function tuiIsInputEvent(event: Event): event is InputEvent {\n return 'data' in event && 'inputType' in event;\n}\n","/**\n * Gets actual target from open Shadow DOM if event happened within it\n */\nexport function tuiGetActualTarget(event: Event): Node {\n return event.composedPath()[0] as Node;\n}\n","const DEFAULT_FORMAT = 'text/plain';\n\n/**\n * Gets text from data of clipboardEvent, it also works in IE and Edge browsers\n */\nexport function tuiGetClipboardDataText(\n event: ClipboardEvent,\n format: string = DEFAULT_FORMAT,\n): string {\n return 'clipboardData' in event && event.clipboardData !== null\n ? event.clipboardData.getData(format) ||\n event.clipboardData.getData(DEFAULT_FORMAT)\n : (event as any).target.ownerDocument.defaultView.clipboardData.getData('text');\n}\n","export function tuiGetDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot {\n return 'getRootNode' in node && node.isConnected\n ? (node.getRootNode() as Document)\n : (node.ownerDocument as DocumentOrShadowRoot);\n}\n","import {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {tuiGetDocumentOrShadowRoot} from './get-document-or-shadow-root';\n\n/**\n * Returns array of Elements covering edges of given element or null if at least one edge middle point is visible\n *\n * CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered\n * ```ts\n * function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null\n * ```\n */\nexport function tuiGetElementObscures(\n element: Element,\n): readonly [Element, Element, Element, Element] | [] | null {\n const {ownerDocument} = element;\n\n if (!ownerDocument?.defaultView || !element.getBoundingClientRect) {\n return null;\n }\n\n const {innerWidth, innerHeight} = ownerDocument.defaultView;\n const doc = tuiGetDocumentOrShadowRoot(element);\n const rect = element.getBoundingClientRect();\n\n if (rect.width === 0 && rect.height === 0) {\n return null;\n }\n\n const left = tuiClamp(Math.round(rect.left) + 2, 0, innerWidth);\n const top = tuiClamp(Math.round(rect.top) + 2, 0, innerHeight);\n const right = tuiClamp(Math.round(rect.right) - 2, 0, innerWidth);\n const bottom = tuiClamp(Math.round(rect.bottom) - 2, 0, innerHeight);\n const horizontalMiddle = tuiClamp(\n Math.round(rect.left + rect.width / 2),\n 0,\n innerWidth,\n );\n const verticalMiddle = tuiClamp(\n Math.round(rect.top + rect.height / 2),\n 0,\n innerHeight,\n );\n const elements = [\n doc.elementFromPoint(horizontalMiddle, top),\n doc.elementFromPoint(horizontalMiddle, bottom),\n doc.elementFromPoint(left, verticalMiddle),\n doc.elementFromPoint(right, verticalMiddle),\n ];\n const nonNull = elements.filter(tuiIsPresent);\n\n if (!nonNull.length) {\n return [];\n }\n\n const filtered = nonNull.filter(\n (el) => !element.contains(el) && !el.contains(element),\n );\n\n return filtered.length === 4\n ? (filtered as [Element, Element, Element, Element])\n : null;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nimport {tuiIsHTMLElement} from './element-checks';\n\n/**\n * Calculates offset for an element relative to it's parent several levels above\n *\n * @param host parent element\n * @param element\n * @return object with offsetTop and offsetLeft number properties\n */\nexport function tuiGetElementOffset(\n host: Element,\n element: HTMLElement,\n): {offsetLeft: number; offsetTop: number} {\n ngDevMode && console.assert(host.contains(element), 'Host must contain element');\n\n let {offsetTop, offsetLeft, offsetParent} = element;\n\n while (tuiIsHTMLElement(offsetParent) && offsetParent !== host) {\n offsetTop += offsetParent.offsetTop;\n offsetLeft += offsetParent.offsetLeft;\n offsetParent = offsetParent.offsetParent;\n }\n\n return {offsetTop, offsetLeft};\n}\n","import {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport type {TuiPoint} from '@taiga-ui/core/types';\n\nexport function tuiGetElementPoint(x: number, y: number, element: HTMLElement): TuiPoint {\n const {left, top, width, height} = element.getBoundingClientRect();\n\n return [tuiClamp(x - left, 0, width) / width, tuiClamp(y - top, 0, height) / height];\n}\n","import {tuiIsTextfield} from './element-checks';\n\n/**\n * @description:\n * cross browser way to get selected text\n *\n * History:\n * BUG - window.getSelection() fails when text selected in a form field\n * https://bugzilla.mozilla.org/show_bug.cgi?id=85686\n */\nexport function tuiGetSelectedText({getSelection, document}: Window): string | null {\n return document.activeElement && tuiIsTextfield(document.activeElement)\n ? document.activeElement.value.slice(\n document.activeElement.selectionStart || 0,\n document.activeElement.selectionEnd || 0,\n )\n : getSelection()?.toString() || null;\n}\n","import {ElementRef, inject} from '@angular/core';\n\nexport function tuiInjectElement<T = HTMLElement>(): T {\n return inject(ElementRef).nativeElement;\n}\n","export function tuiIsCurrentTarget({target, currentTarget}: Event): boolean {\n return target === currentTarget;\n}\n","import {tuiIsTextfield} from './element-checks';\n\nexport function tuiIsElementEditable(element: HTMLElement): boolean {\n return (tuiIsTextfield(element) && !element.readOnly) || !!element.isContentEditable;\n}\n","/**\n * Checks if an app is running inside <iframe /> tag\n */\nexport function tuiIsInsideIframe(win: Window): boolean {\n return win.parent !== win;\n}\n","import {tuiIsElement, tuiIsTextNode} from './element-checks';\n\n/**\n * Checks if node is inside a specific selector\n *\n * @param node\n * @param selector\n * @return true if node is inside a particular selector\n */\nexport function tuiIsNodeIn(node: Node, selector: string): boolean {\n return tuiIsTextNode(node)\n ? !!node.parentElement?.closest(selector)\n : tuiIsElement(node) && !!node.closest(selector);\n}\n","export function tuiPointToClientRect(x = 0, y = 0): DOMRect {\n const rect = {\n x,\n y,\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n } as const;\n\n return {\n ...rect,\n toJSON: () => rect,\n };\n}\n","export function tuiRetargetedBoundaryCrossing(event: any): boolean {\n // firefox\n if ('explicitOriginalTarget' in event) {\n return event?.explicitOriginalTarget !== event.target;\n }\n\n // chrome\n if ('pointerId' in event) {\n return event.pointerId === -1;\n }\n\n // safari\n if ('detail' in event && 'webkitForce' in event) {\n return event?.detail === 0;\n }\n\n return false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAgB,SAAA,kBAAkB,CAAC,OAAa,EAAE,IAAU,EAAA;IACxD,IAAI;AACA,QAAA,QACI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;AACtB,YAAA,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAAC,EAC9E;AACL,KAAA;IAAC,MAAM;AACJ,QAAA,OAAO,KAAK,CAAC;AAChB,KAAA;AACL;;ACTM,SAAU,UAAU,CAAC,OAAgB,EAAA;AACvC,IAAA,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AAEK,SAAU,aAAa,CAAC,OAAgB,EAAA;AAC1C,IAAA,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC;AAEK,SAAU,cAAc,CAC1B,OAAgB,EAAA;IAEhB,OAAO,UAAU,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;AACzD,CAAC;AAEK,SAAU,YAAY,CACxB,IAA0C,EAAA;AAE1C,IAAA,OAAO,CAAC,CAAC,IAAI,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,CAAC;AAC/E,CAAC;AAEK,SAAU,gBAAgB,CAAC,IAAS,EAAA;AACtC,IAAA,OAAO,CAAC,CAAC,IAAI,IAAI,IAAI,YAAY,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,WAAW,CAAC;AACh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,CAAC,IAAI,CAAC;UACpB,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,QAAQ,CAAC;AACzC,UAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACzD;;ACbM,SAAU,oBAAoB,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAA;AAC7C,IAAA,MAAM,IAAI,GAAG;QACT,CAAC;QACD,CAAC;AACD,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,GAAG,EAAE,CAAC;AACN,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,MAAM,EAAE,CAAC;KACH,CAAC;IAEX,OAAO;AACH,QAAA,GAAG,IAAI;AACP,QAAA,MAAM,EAAE,MAAM,IAAI;KACrB,CAAC;AACN;;AChBM,SAAU,6BAA6B,CAAC,KAAU,EAAA;;IAEpD,IAAI,wBAAwB,IAAI,KAAK,EAAE;AACnC,QAAA,OAAO,KAAK,EAAE,sBAAsB,KAAK,KAAK,CAAC,MAAM,CAAC;AACzD,KAAA;;IAGD,IAAI,WAAW,IAAI,KAAK,EAAE;AACtB,QAAA,OAAO,KAAK,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC;AACjC,KAAA;;AAGD,IAAA,IAAI,QAAQ,IAAI,KAAK,IAAI,aAAa,IAAI,KAAK,EAAE;AAC7C,QAAA,OAAO,KAAK,EAAE,MAAM,KAAK,CAAC,CAAC;AAC9B,KAAA;AAED,IAAA,OAAO,KAAK,CAAC;AACjB;;ACjBA;;AAEG;;;;"}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
import { tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';
|
2
|
+
import { svgNodeFilter } from '@taiga-ui/cdk/constants';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Returns current active element, including shadow dom
|
6
|
+
*
|
7
|
+
* @return element or null
|
8
|
+
*/
|
9
|
+
function tuiGetNativeFocused({ activeElement }) {
|
10
|
+
if (!activeElement?.shadowRoot) {
|
11
|
+
return activeElement;
|
12
|
+
}
|
13
|
+
let element = activeElement.shadowRoot.activeElement;
|
14
|
+
while (element?.shadowRoot) {
|
15
|
+
element = element.shadowRoot.activeElement;
|
16
|
+
}
|
17
|
+
return element;
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Finds and blurs current active element, including shadow DOM
|
22
|
+
*/
|
23
|
+
function tuiBlurNativeFocused(doc) {
|
24
|
+
const activeElement = tuiGetNativeFocused(doc);
|
25
|
+
if (tuiIsHTMLElement(activeElement)) {
|
26
|
+
activeElement.blur();
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Checks for signs that element can be focused with keyboard. tabIndex above 0 is ignored to
|
32
|
+
* only target natural focus order. Not checking the possibility of an element to
|
33
|
+
* be focused, for example element can have display: none applied to it or any other
|
34
|
+
* circumstances could prevent actual focus.
|
35
|
+
*/
|
36
|
+
function tuiIsNativeKeyboardFocusable(element) {
|
37
|
+
if (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {
|
38
|
+
return false;
|
39
|
+
}
|
40
|
+
if ((tuiIsHTMLElement(element) && element.isContentEditable) ||
|
41
|
+
element.getAttribute('tabIndex') === '0') {
|
42
|
+
return true;
|
43
|
+
}
|
44
|
+
switch (element.tagName) {
|
45
|
+
case 'BUTTON':
|
46
|
+
case 'SELECT':
|
47
|
+
case 'TEXTAREA':
|
48
|
+
return true;
|
49
|
+
case 'VIDEO':
|
50
|
+
case 'AUDIO':
|
51
|
+
return element.hasAttribute('controls');
|
52
|
+
case 'INPUT':
|
53
|
+
return element.getAttribute('type') !== 'hidden';
|
54
|
+
case 'A':
|
55
|
+
case 'LINK':
|
56
|
+
return element.hasAttribute('href');
|
57
|
+
default:
|
58
|
+
return false;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
function tuiIsNativeMouseFocusable(element) {
|
63
|
+
return (!element.hasAttribute('disabled') &&
|
64
|
+
(element.getAttribute('tabIndex') === '-1' ||
|
65
|
+
tuiIsNativeKeyboardFocusable(element)));
|
66
|
+
}
|
67
|
+
|
68
|
+
/**
|
69
|
+
* @description:
|
70
|
+
* Finds the closest element that can be focused with a keyboard or mouse in theory
|
71
|
+
*/
|
72
|
+
function tuiGetClosestFocusable({ initial, root, previous = false, keyboard = true, }) {
|
73
|
+
if (!root.ownerDocument) {
|
74
|
+
return null;
|
75
|
+
}
|
76
|
+
const check = keyboard ? tuiIsNativeKeyboardFocusable : tuiIsNativeMouseFocusable;
|
77
|
+
const treeWalker = root.ownerDocument.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, svgNodeFilter);
|
78
|
+
treeWalker.currentNode = initial;
|
79
|
+
while (previous ? treeWalker.previousNode() : treeWalker.nextNode()) {
|
80
|
+
if (tuiIsHTMLElement(treeWalker.currentNode)) {
|
81
|
+
initial = treeWalker.currentNode;
|
82
|
+
}
|
83
|
+
if (tuiIsHTMLElement(initial) && check(initial)) {
|
84
|
+
return initial;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
return null;
|
88
|
+
}
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Checks if element is focused.
|
92
|
+
*
|
93
|
+
* Could return true even after blur since element remains focused if you switch away from a browser tab.
|
94
|
+
*
|
95
|
+
* @param node or null (as a common return value of DOM nodes walking)
|
96
|
+
* @return true if focused
|
97
|
+
*/
|
98
|
+
function tuiIsNativeFocused(node) {
|
99
|
+
return (!!node?.ownerDocument &&
|
100
|
+
tuiGetNativeFocused(node.ownerDocument) === node &&
|
101
|
+
node.ownerDocument.hasFocus());
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Checks if focused element is within given element.
|
106
|
+
*
|
107
|
+
* @param node
|
108
|
+
* @return true if focused node is contained within element
|
109
|
+
*/
|
110
|
+
function tuiIsNativeFocusedIn(node) {
|
111
|
+
const focused = node?.ownerDocument && tuiGetNativeFocused(node.ownerDocument);
|
112
|
+
return !!focused && node.contains(focused) && !!node.ownerDocument?.hasFocus();
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Utility method for moving focus in a list of elements
|
117
|
+
*
|
118
|
+
* @param currentIndex currently focused index
|
119
|
+
* @param elements array of focusable elements
|
120
|
+
* @param step a step to move focus by, typically -1 or 1
|
121
|
+
*/
|
122
|
+
function tuiMoveFocus(currentIndex, elements, step) {
|
123
|
+
currentIndex += step;
|
124
|
+
while (currentIndex >= 0 && currentIndex < elements.length) {
|
125
|
+
elements[currentIndex].focus();
|
126
|
+
if (tuiIsNativeFocused(elements[currentIndex])) {
|
127
|
+
return;
|
128
|
+
}
|
129
|
+
currentIndex += step;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Generated bundle index. Do not edit.
|
135
|
+
*/
|
136
|
+
|
137
|
+
export { tuiBlurNativeFocused, tuiGetClosestFocusable, tuiGetNativeFocused, tuiIsNativeFocused, tuiIsNativeFocusedIn, tuiIsNativeKeyboardFocusable, tuiIsNativeMouseFocusable, tuiMoveFocus };
|
138
|
+
//# sourceMappingURL=taiga-ui-cdk-utils-focus.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-focus.mjs","sources":["../../../projects/cdk/utils/focus/get-native-focused.ts","../../../projects/cdk/utils/focus/blur-native-focused.ts","../../../projects/cdk/utils/focus/is-native-keyboard-focusable.ts","../../../projects/cdk/utils/focus/is-native-mouse-focusable.ts","../../../projects/cdk/utils/focus/get-closest-focusable.ts","../../../projects/cdk/utils/focus/is-native-focused.ts","../../../projects/cdk/utils/focus/is-native-focused-in.ts","../../../projects/cdk/utils/focus/move-focus.ts","../../../projects/cdk/utils/focus/taiga-ui-cdk-utils-focus.ts"],"sourcesContent":["/**\n * Returns current active element, including shadow dom\n *\n * @return element or null\n */\nexport function tuiGetNativeFocused({activeElement}: Document): Element | null {\n if (!activeElement?.shadowRoot) {\n return activeElement;\n }\n\n let element = activeElement.shadowRoot.activeElement;\n\n while (element?.shadowRoot) {\n element = element.shadowRoot.activeElement;\n }\n\n return element;\n}\n","import {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Finds and blurs current active element, including shadow DOM\n */\nexport function tuiBlurNativeFocused(doc: Document): void {\n const activeElement = tuiGetNativeFocused(doc);\n\n if (tuiIsHTMLElement(activeElement)) {\n activeElement.blur();\n }\n}\n","import {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\n/**\n * Checks for signs that element can be focused with keyboard. tabIndex above 0 is ignored to\n * only target natural focus order. Not checking the possibility of an element to\n * be focused, for example element can have display: none applied to it or any other\n * circumstances could prevent actual focus.\n */\nexport function tuiIsNativeKeyboardFocusable(element: Element): boolean {\n if (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {\n return false;\n }\n\n if (\n (tuiIsHTMLElement(element) && element.isContentEditable) ||\n element.getAttribute('tabIndex') === '0'\n ) {\n return true;\n }\n\n switch (element.tagName) {\n case 'BUTTON':\n case 'SELECT':\n case 'TEXTAREA':\n return true;\n case 'VIDEO':\n case 'AUDIO':\n return element.hasAttribute('controls');\n case 'INPUT':\n return element.getAttribute('type') !== 'hidden';\n case 'A':\n case 'LINK':\n return element.hasAttribute('href');\n default:\n return false;\n }\n}\n","import {tuiIsNativeKeyboardFocusable} from './is-native-keyboard-focusable';\n\nexport function tuiIsNativeMouseFocusable(element: Element): boolean {\n return (\n !element.hasAttribute('disabled') &&\n (element.getAttribute('tabIndex') === '-1' ||\n tuiIsNativeKeyboardFocusable(element))\n );\n}\n","import {svgNodeFilter} from '@taiga-ui/cdk/constants';\nimport {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {tuiIsNativeKeyboardFocusable} from './is-native-keyboard-focusable';\nimport {tuiIsNativeMouseFocusable} from './is-native-mouse-focusable';\n\nexport interface TuiGetClosestFocusableOptions {\n /**\n * @description:\n * current HTML element\n */\n initial: Element;\n\n /**\n * @description:\n * determine if only keyboard focus is of interest\n */\n keyboard?: boolean;\n\n /**\n * @description:\n * should it look backwards instead (find item that will be focused with Shift + Tab)\n */\n previous?: boolean;\n\n /**\n * @description:\n * top Node limiting the search area\n */\n root: Node;\n}\n\n/**\n * @description:\n * Finds the closest element that can be focused with a keyboard or mouse in theory\n */\nexport function tuiGetClosestFocusable({\n initial,\n root,\n previous = false,\n keyboard = true,\n}: TuiGetClosestFocusableOptions): HTMLElement | null {\n if (!root.ownerDocument) {\n return null;\n }\n\n const check = keyboard ? tuiIsNativeKeyboardFocusable : tuiIsNativeMouseFocusable;\n const treeWalker = root.ownerDocument.createTreeWalker(\n root,\n NodeFilter.SHOW_ELEMENT,\n svgNodeFilter,\n );\n\n treeWalker.currentNode = initial;\n\n while (previous ? treeWalker.previousNode() : treeWalker.nextNode()) {\n if (tuiIsHTMLElement(treeWalker.currentNode)) {\n initial = treeWalker.currentNode;\n }\n\n if (tuiIsHTMLElement(initial) && check(initial)) {\n return initial;\n }\n }\n\n return null;\n}\n","import {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Checks if element is focused.\n *\n * Could return true even after blur since element remains focused if you switch away from a browser tab.\n *\n * @param node or null (as a common return value of DOM nodes walking)\n * @return true if focused\n */\nexport function tuiIsNativeFocused(node?: Node | null): boolean {\n return (\n !!node?.ownerDocument &&\n tuiGetNativeFocused(node.ownerDocument) === node &&\n node.ownerDocument.hasFocus()\n );\n}\n","import {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Checks if focused element is within given element.\n *\n * @param node\n * @return true if focused node is contained within element\n */\nexport function tuiIsNativeFocusedIn(node?: Node | null): boolean {\n const focused = node?.ownerDocument && tuiGetNativeFocused(node.ownerDocument);\n\n return !!focused && node.contains(focused) && !!node.ownerDocument?.hasFocus();\n}\n","import {tuiIsNativeFocused} from './is-native-focused';\n\n/**\n * Utility method for moving focus in a list of elements\n *\n * @param currentIndex currently focused index\n * @param elements array of focusable elements\n * @param step a step to move focus by, typically -1 or 1\n */\nexport function tuiMoveFocus(\n currentIndex: number,\n elements: readonly HTMLElement[],\n step: number,\n): void {\n currentIndex += step;\n\n while (currentIndex >= 0 && currentIndex < elements.length) {\n elements[currentIndex].focus();\n\n if (tuiIsNativeFocused(elements[currentIndex])) {\n return;\n }\n\n currentIndex += step;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;AAIG;AACa,SAAA,mBAAmB,CAAC,EAAC,aAAa,EAAW,EAAA;AACzD,IAAA,IAAI,CAAC,aAAa,EAAE,UAAU,EAAE;AAC5B,QAAA,OAAO,aAAa,CAAC;AACxB,KAAA;AAED,IAAA,IAAI,OAAO,GAAG,aAAa,CAAC,UAAU,CAAC,aAAa,CAAC;IAErD,OAAO,OAAO,EAAE,UAAU,EAAE;AACxB,QAAA,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;AAC9C,KAAA;AAED,IAAA,OAAO,OAAO,CAAC;AACnB;;ACbA;;AAEG;AACG,SAAU,oBAAoB,CAAC,GAAa,EAAA;AAC9C,IAAA,MAAM,aAAa,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;AAE/C,IAAA,IAAI,gBAAgB,CAAC,aAAa,CAAC,EAAE;QACjC,aAAa,CAAC,IAAI,EAAE,CAAC;AACxB,KAAA;AACL;;ACXA;;;;;AAKG;AACG,SAAU,4BAA4B,CAAC,OAAgB,EAAA;AACzD,IAAA,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;AAC/E,QAAA,OAAO,KAAK,CAAC;AAChB,KAAA;IAED,IACI,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,OAAO,C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/B,QAAA,IAAI,kBAAkB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,EAAE;YAC5C,OAAO;AACV,SAAA;QAED,YAAY,IAAI,IAAI,CAAC;AACxB,KAAA;AACL;;ACzBA;;AAEG;;;;"}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
2
|
+
/**
|
3
|
+
* Clamps a value between two inclusive limits
|
4
|
+
*
|
5
|
+
* @param value
|
6
|
+
* @param min lower limit
|
7
|
+
* @param max upper limit
|
8
|
+
*/
|
9
|
+
function tuiClamp(value, min, max) {
|
10
|
+
ngDevMode && console.assert(!Number.isNaN(value));
|
11
|
+
ngDevMode && console.assert(!Number.isNaN(min));
|
12
|
+
ngDevMode && console.assert(!Number.isNaN(max));
|
13
|
+
ngDevMode && console.assert(max >= min);
|
14
|
+
return Math.min(max, Math.max(min, value));
|
15
|
+
}
|
16
|
+
|
17
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
18
|
+
function tuiInRange(value, fromInclude, toExclude) {
|
19
|
+
ngDevMode && console.assert(!Number.isNaN(value));
|
20
|
+
ngDevMode && console.assert(!Number.isNaN(fromInclude));
|
21
|
+
ngDevMode && console.assert(!Number.isNaN(toExclude));
|
22
|
+
ngDevMode && console.assert(fromInclude < toExclude);
|
23
|
+
return value >= fromInclude && value < toExclude;
|
24
|
+
}
|
25
|
+
|
26
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
27
|
+
/**
|
28
|
+
* Normalizes any number to an integer within inclusive range
|
29
|
+
*
|
30
|
+
* @param value
|
31
|
+
* @param min lower inclusive integer
|
32
|
+
* @param max upper inclusive integer
|
33
|
+
* @return an integer between min and max inclusive
|
34
|
+
*/
|
35
|
+
function tuiNormalizeToIntNumber(value, min, max) {
|
36
|
+
ngDevMode && console.assert(Number.isInteger(min));
|
37
|
+
ngDevMode && console.assert(Number.isInteger(max));
|
38
|
+
ngDevMode && console.assert(min <= max);
|
39
|
+
if (Number.isNaN(value) || value <= min) {
|
40
|
+
return min;
|
41
|
+
}
|
42
|
+
if (value >= max) {
|
43
|
+
return max;
|
44
|
+
}
|
45
|
+
return Math.round(value);
|
46
|
+
}
|
47
|
+
|
48
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
49
|
+
/**
|
50
|
+
* Rounds a number to the closest value in a fixed discrete series
|
51
|
+
*
|
52
|
+
* @param value
|
53
|
+
* @param quantum series step
|
54
|
+
*/
|
55
|
+
function tuiQuantize(value, quantum) {
|
56
|
+
ngDevMode && console.assert(Number.isFinite(value));
|
57
|
+
ngDevMode && console.assert(Number.isFinite(quantum));
|
58
|
+
ngDevMode && console.assert(quantum > 0);
|
59
|
+
const remainder = value % quantum;
|
60
|
+
return remainder < quantum / 2 ? value - remainder : value + quantum - remainder;
|
61
|
+
}
|
62
|
+
|
63
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
64
|
+
const MAX_PRECISION = 292;
|
65
|
+
/**
|
66
|
+
* Rounding number to the set precision
|
67
|
+
*
|
68
|
+
* @param value
|
69
|
+
* @param precision number of digits in a float part
|
70
|
+
* @param func rounding function (round, floor, ceil)
|
71
|
+
*/
|
72
|
+
function calculate(value, precision, func) {
|
73
|
+
if (value === Infinity) {
|
74
|
+
return value;
|
75
|
+
}
|
76
|
+
ngDevMode && console.assert(!Number.isNaN(value), 'Value must be number');
|
77
|
+
ngDevMode && console.assert(Number.isInteger(precision), 'Precision must be integer');
|
78
|
+
precision = Math.min(precision, MAX_PRECISION);
|
79
|
+
const pair = `${value}e`.split('e');
|
80
|
+
const tempValue = func(Number(`${pair[0]}e${Number(pair[1]) + precision}`));
|
81
|
+
const processedPair = `${tempValue}e`.split('e');
|
82
|
+
return Number(`${processedPair[0]}e${Number(processedPair[1]) - precision}`);
|
83
|
+
}
|
84
|
+
function tuiRound(value, precision = 0) {
|
85
|
+
return calculate(value, precision, Math.round);
|
86
|
+
}
|
87
|
+
function tuiCeil(value, precision = 0) {
|
88
|
+
return calculate(value, precision, Math.ceil);
|
89
|
+
}
|
90
|
+
function tuiFloor(value, precision = 0) {
|
91
|
+
return calculate(value, precision, Math.floor);
|
92
|
+
}
|
93
|
+
function tuiTrunc(value, precision = 0) {
|
94
|
+
return calculate(value, precision, Math.trunc);
|
95
|
+
}
|
96
|
+
|
97
|
+
function tuiRoundWith({ value, precision, method, }) {
|
98
|
+
switch (method) {
|
99
|
+
case 'round':
|
100
|
+
return tuiRound(value, precision);
|
101
|
+
case 'ceil':
|
102
|
+
return tuiCeil(value, precision);
|
103
|
+
case 'floor':
|
104
|
+
return tuiFloor(value, precision);
|
105
|
+
default:
|
106
|
+
return tuiTrunc(value, precision);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Calculates sum of any number of passed arguments
|
112
|
+
*/
|
113
|
+
function tuiSum(...args) {
|
114
|
+
return args.reduce((a, b) => a + b, 0);
|
115
|
+
}
|
116
|
+
|
117
|
+
function tuiToInt(bool) {
|
118
|
+
return bool ? 1 : 0;
|
119
|
+
}
|
120
|
+
|
121
|
+
function tuiToInteger(value) {
|
122
|
+
return parseInt(value, 10);
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Converts angle in degrees to radians
|
127
|
+
*/
|
128
|
+
function tuiToRadians(deg) {
|
129
|
+
return (deg * Math.PI) / 180;
|
130
|
+
}
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Generated bundle index. Do not edit.
|
134
|
+
*/
|
135
|
+
|
136
|
+
export { tuiCeil, tuiClamp, tuiFloor, tuiInRange, tuiNormalizeToIntNumber, tuiQuantize, tuiRound, tuiRoundWith, tuiSum, tuiToInt, tuiToInteger, tuiToRadians, tuiTrunc };
|
137
|
+
//# sourceMappingURL=taiga-ui-cdk-utils-math.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-math.mjs","sources":["../../../projects/cdk/utils/math/clamp.ts","../../../projects/cdk/utils/math/in-range.ts","../../../projects/cdk/utils/math/normalize-to-int-number.ts","../../../projects/cdk/utils/math/quantize.ts","../../../projects/cdk/utils/math/round.ts","../../../projects/cdk/utils/math/round-with.ts","../../../projects/cdk/utils/math/sum.ts","../../../projects/cdk/utils/math/to-int.ts","../../../projects/cdk/utils/math/to-integer.ts","../../../projects/cdk/utils/math/to-radians.ts","../../../projects/cdk/utils/math/taiga-ui-cdk-utils-math.ts"],"sourcesContent":["/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Clamps a value between two inclusive limits\n *\n * @param value\n * @param min lower limit\n * @param max upper limit\n */\nexport function tuiClamp(value: number, min: number, max: number): number {\n ngDevMode && console.assert(!Number.isNaN(value));\n ngDevMode && console.assert(!Number.isNaN(min));\n ngDevMode && console.assert(!Number.isNaN(max));\n ngDevMode && console.assert(max >= min);\n\n return Math.min(max, Math.max(min, value));\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nexport function tuiInRange(\n value: number,\n fromInclude: number,\n toExclude: number,\n): boolean {\n ngDevMode && console.assert(!Number.isNaN(value));\n ngDevMode && console.assert(!Number.isNaN(fromInclude));\n ngDevMode && console.assert(!Number.isNaN(toExclude));\n ngDevMode && console.assert(fromInclude < toExclude);\n\n return value >= fromInclude && value < toExclude;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Normalizes any number to an integer within inclusive range\n *\n * @param value\n * @param min lower inclusive integer\n * @param max upper inclusive integer\n * @return an integer between min and max inclusive\n */\nexport function tuiNormalizeToIntNumber(value: number, min: number, max: number): number {\n ngDevMode && console.assert(Number.isInteger(min));\n ngDevMode && console.assert(Number.isInteger(max));\n ngDevMode && console.assert(min <= max);\n\n if (Number.isNaN(value) || value <= min) {\n return min;\n }\n\n if (value >= max) {\n return max;\n }\n\n return Math.round(value);\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Rounds a number to the closest value in a fixed discrete series\n *\n * @param value\n * @param quantum series step\n */\nexport function tuiQuantize(value: number, quantum: number): number {\n ngDevMode && console.assert(Number.isFinite(value));\n ngDevMode && console.assert(Number.isFinite(quantum));\n ngDevMode && console.assert(quantum > 0);\n\n const remainder = value % quantum;\n\n return remainder < quantum / 2 ? value - remainder : value + quantum - remainder;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nconst MAX_PRECISION = 292;\n\n/**\n * Rounding number to the set precision\n *\n * @param value\n * @param precision number of digits in a float part\n * @param func rounding function (round, floor, ceil)\n */\nfunction calculate(\n value: number,\n precision: number,\n func: (x: number) => number,\n): number {\n if (value === Infinity) {\n return value;\n }\n\n ngDevMode && console.assert(!Number.isNaN(value), 'Value must be number');\n ngDevMode && console.assert(Number.isInteger(precision), 'Precision must be integer');\n\n precision = Math.min(precision, MAX_PRECISION);\n\n const pair = `${value}e`.split('e');\n const tempValue = func(Number(`${pair[0]}e${Number(pair[1]) + precision}`));\n const processedPair = `${tempValue}e`.split('e');\n\n return Number(`${processedPair[0]}e${Number(processedPair[1]) - precision}`);\n}\n\nexport function tuiRound(value: number, precision = 0): number {\n return calculate(value, precision, Math.round);\n}\n\nexport function tuiCeil(value: number, precision = 0): number {\n return calculate(value, precision, Math.ceil);\n}\n\nexport function tuiFloor(value: number, precision = 0): number {\n return calculate(value, precision, Math.floor);\n}\n\nexport function tuiTrunc(value: number, precision = 0): number {\n return calculate(value, precision, Math.trunc);\n}\n","import type {TuiRounding} from '@taiga-ui/cdk/types';\n\nimport {tuiCeil, tuiFloor, tuiRound, tuiTrunc} from './round';\n\nexport function tuiRoundWith({\n value,\n precision,\n method,\n}: {\n method: TuiRounding;\n precision: number;\n value: number;\n}): number {\n switch (method) {\n case 'round':\n return tuiRound(value, precision);\n case 'ceil':\n return tuiCeil(value, precision);\n case 'floor':\n return tuiFloor(value, precision);\n default:\n return tuiTrunc(value, precision);\n }\n}\n","/**\n * Calculates sum of any number of passed arguments\n */\nexport function tuiSum(...args: number[]): number {\n return args.reduce((a, b) => a + b, 0);\n}\n","export function tuiToInt(bool: boolean): 0 | 1 {\n return bool ? 1 : 0;\n}\n","export function tuiToInteger(value: number | string): number {\n return parseInt(value as unknown as string, 10);\n}\n","/**\n * Converts angle in degrees to radians\n */\nexport function tuiToRadians(deg: number): number {\n return (deg * Math.PI) / 180;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA;;;;;;AAMG;SACa,QAAQ,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAA;AAC5D,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAClD,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAChD,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAChD,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAExC,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC/C;;AChBA;SAEgB,UAAU,CACtB,KAAa,EACb,WAAmB,EACnB,SAAiB,EAAA;AAEjB,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAClD,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACxD,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MA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