@taiga-ui/cdk 3.491.1-canary.a08581f → 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,26 @@
|
|
1
|
+
export * from '@taiga-ui/cdk/directives/active-zone';
|
2
|
+
export * from '@taiga-ui/cdk/directives/auto-focus';
|
3
|
+
export * from '@taiga-ui/cdk/directives/click-outside';
|
4
|
+
export * from '@taiga-ui/cdk/directives/control';
|
5
|
+
export * from '@taiga-ui/cdk/directives/copy-processor';
|
6
|
+
export * from '@taiga-ui/cdk/directives/droppable';
|
7
|
+
export * from '@taiga-ui/cdk/directives/element';
|
8
|
+
export * from '@taiga-ui/cdk/directives/focus-trap';
|
9
|
+
export * from '@taiga-ui/cdk/directives/for';
|
10
|
+
export * from '@taiga-ui/cdk/directives/high-dpi';
|
11
|
+
export * from '@taiga-ui/cdk/directives/hovered';
|
12
|
+
export * from '@taiga-ui/cdk/directives/item';
|
13
|
+
export * from '@taiga-ui/cdk/directives/let';
|
14
|
+
export * from '@taiga-ui/cdk/directives/media';
|
15
|
+
export * from '@taiga-ui/cdk/directives/native-validator';
|
16
|
+
export * from '@taiga-ui/cdk/directives/obscured';
|
17
|
+
export * from '@taiga-ui/cdk/directives/pan';
|
18
|
+
export * from '@taiga-ui/cdk/directives/platform';
|
19
|
+
export * from '@taiga-ui/cdk/directives/popover';
|
20
|
+
export * from '@taiga-ui/cdk/directives/repeat-times';
|
21
|
+
export * from '@taiga-ui/cdk/directives/resizer';
|
22
|
+
export * from '@taiga-ui/cdk/directives/swipe';
|
23
|
+
export * from '@taiga-ui/cdk/directives/validator';
|
24
|
+
export * from '@taiga-ui/cdk/directives/value-changes';
|
25
|
+
export * from '@taiga-ui/cdk/directives/zoom';
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNDQUFzQyxDQUFDO0FBQ3JELGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsa0NBQWtDLENBQU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WN0aXZlcy92YWx1ZS1jaGFuZ2VzJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9jZGsvZGlyZWN0aXZlcy96b29tJztcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './item.directive';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9pdGVtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2l0ZW0uZGlyZWN0aXZlJztcbiJdfQ==
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Directive } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`
|
5
|
+
*/
|
6
|
+
class TuiItem {
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
8
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiItem, isStandalone: true, selector: "[tuiItem]", ngImport: i0 }); }
|
9
|
+
}
|
10
|
+
export { TuiItem };
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItem, decorators: [{
|
12
|
+
type: Directive,
|
13
|
+
args: [{
|
14
|
+
standalone: true,
|
15
|
+
selector: '[tuiItem]',
|
16
|
+
}]
|
17
|
+
}] });
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9pdGVtL2l0ZW0uZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7O0FBRXhDOztHQUVHO0FBQ0gsTUFJYSxPQUFPOytHQUFQLE9BQU87bUdBQVAsT0FBTzs7U0FBUCxPQUFPOzRGQUFQLE9BQU87a0JBSm5CLFNBQVM7bUJBQUM7b0JBQ1AsVUFBVSxFQUFFLElBQUk7b0JBQ2hCLFFBQVEsRUFBRSxXQUFXO2lCQUN4QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7RGlyZWN0aXZlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBCbGFuayBkaXJlY3RpdmUgZm9yIHF1ZXJpZXMgdmlhIGBAQ29udGVudENoaWxkcmVuYCAvIGBAVmlld0NoaWxkcmVuYCAvIGBxdWVyeVNlbGVjdG9yYFxuICovXG5ARGlyZWN0aXZlKHtcbiAgICBzdGFuZGFsb25lOiB0cnVlLFxuICAgIHNlbGVjdG9yOiAnW3R1aUl0ZW1dJyxcbn0pXG5leHBvcnQgY2xhc3MgVHVpSXRlbSB7fVxuIl19
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './let.directive';
|
2
|
+
export * from './let-context';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9sZXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGV0LmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2xldC1jb250ZXh0JztcbiJdfQ==
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @internal
|
3
|
+
*/
|
4
|
+
export class TuiLetContext {
|
5
|
+
constructor(internalDirectiveInstance) {
|
6
|
+
this.internalDirectiveInstance = internalDirectiveInstance;
|
7
|
+
}
|
8
|
+
get $implicit() {
|
9
|
+
return this.internalDirectiveInstance.tuiLet;
|
10
|
+
}
|
11
|
+
get tuiLet() {
|
12
|
+
return this.internalDirectiveInstance.tuiLet;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV0LWNvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9sZXQvbGV0LWNvbnRleHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUE7O0dBRUc7QUFDSCxNQUFNLE9BQU8sYUFBYTtJQUN0QixZQUE2Qix5QkFBb0M7UUFBcEMsOEJBQXlCLEdBQXpCLHlCQUF5QixDQUFXO0lBQUcsQ0FBQztJQUVyRSxJQUFXLFNBQVM7UUFDaEIsT0FBTyxJQUFJLENBQUMseUJBQXlCLENBQUMsTUFBTSxDQUFDO0lBQ2pELENBQUM7SUFFRCxJQUFXLE1BQU07UUFDYixPQUFPLElBQUksQ0FBQyx5QkFBeUIsQ0FBQyxNQUFNLENBQUM7SUFDakQsQ0FBQztDQUNKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUge1R1aUNvbnRleHR9IGZyb20gJ0B0YWlnYS11aS9jZGsvdHlwZXMnO1xuXG5pbXBvcnQgdHlwZSB7VHVpTGV0fSBmcm9tICcuL2xldC5kaXJlY3RpdmUnO1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgY2xhc3MgVHVpTGV0Q29udGV4dDxUPiBpbXBsZW1lbnRzIFR1aUNvbnRleHQ8VD4ge1xuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgaW50ZXJuYWxEaXJlY3RpdmVJbnN0YW5jZTogVHVpTGV0PFQ+KSB7fVxuXG4gICAgcHVibGljIGdldCAkaW1wbGljaXQoKTogVCB7XG4gICAgICAgIHJldHVybiB0aGlzLmludGVybmFsRGlyZWN0aXZlSW5zdGFuY2UudHVpTGV0O1xuICAgIH1cblxuICAgIHB1YmxpYyBnZXQgdHVpTGV0KCk6IFQge1xuICAgICAgICByZXR1cm4gdGhpcy5pbnRlcm5hbERpcmVjdGl2ZUluc3RhbmNlLnR1aUxldDtcbiAgICB9XG59XG4iXX0=
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { Directive, inject, Input, TemplateRef, ViewContainerRef } from '@angular/core';
|
2
|
+
import { TuiLetContext } from './let-context';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* Works like *ngIf but does not have a condition — use it to declare
|
6
|
+
* the result of pipes calculation (i.e. async pipe)
|
7
|
+
*/
|
8
|
+
class TuiLet {
|
9
|
+
constructor() {
|
10
|
+
inject(ViewContainerRef).createEmbeddedView(inject((TemplateRef)), new TuiLetContext(this));
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* Asserts the correct type of the context for the template that `TuiLet` will render.
|
14
|
+
*
|
15
|
+
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
16
|
+
* `TuiLet` structural directive renders its template with a specific context type.
|
17
|
+
*/
|
18
|
+
static ngTemplateContextGuard(_dir, _ctx) {
|
19
|
+
return true;
|
20
|
+
}
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
22
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
|
23
|
+
}
|
24
|
+
export { TuiLet };
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLet, decorators: [{
|
26
|
+
type: Directive,
|
27
|
+
args: [{
|
28
|
+
standalone: true,
|
29
|
+
selector: '[tuiLet]',
|
30
|
+
}]
|
31
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tuiLet: [{
|
32
|
+
type: Input
|
33
|
+
}] } });
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9kaXJlY3RpdmVzL2xldC9sZXQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdEYsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFFNUM7OztHQUdHO0FBQ0gsTUFJYSxNQUFNO0lBSWY7UUFDSSxNQUFNLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxrQkFBa0IsQ0FDdkMsTUFBTSxDQUFDLENBQUEsV0FBNkIsQ0FBQSxDQUFDLEVBQ3JDLElBQUksYUFBYSxDQUFJLElBQUksQ0FBQyxDQUM3QixDQUFDO0lBQ04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RDb250ZXh0PFQ+KHRoaXMpLFxuICAgICAgICApO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEFzc2VydHMgdGhlIGNvcnJlY3QgdHlwZSBvZiB0aGUgY29udGV4dCBmb3IgdGhlIHRlbXBsYXRlIHRoYXQgYFR1aUxldGAgd2lsbCByZW5kZXIuXG4gICAgICpcbiAgICAgKiBUaGUgcHJlc2VuY2Ugb2YgdGhpcyBtZXRob2QgaXMgYSBzaWduYWwgdG8gdGhlIEl2eSB0ZW1wbGF0ZSB0eXBlLWNoZWNrIGNvbXBpbGVyIHRoYXQgdGhlXG4gICAgICogYFR1aUxldGAgc3RydWN0dXJhbCBkaXJlY3RpdmUgcmVuZGVycyBpdHMgdGVtcGxhdGUgd2l0aCBhIHNwZWNpZmljIGNvbnRleHQgdHlwZS5cbiAgICAgKi9cbiAgICBwdWJsaWMgc3RhdGljIG5nVGVtcGxhdGVDb250ZXh0R3VhcmQ8VD4oXG4gICAgICAgIF9kaXI6IFR1aUxldDxUPixcbiAgICAgICAgX2N0eDogdW5rbm93bixcbiAgICApOiBfY3R4IGlzIFR1aUxldENvbnRleHQ8VD4ge1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG59XG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './media.directive';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9tZWRpYS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tZWRpYS5kaXJlY3RpdmUnO1xuIl19
|
@@ -0,0 +1,103 @@
|
|
1
|
+
import { Directive, EventEmitter, HostBinding, HostListener, Input, Output, } from '@angular/core';
|
2
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
class TuiMedia {
|
5
|
+
constructor() {
|
6
|
+
this.el = tuiInjectElement();
|
7
|
+
this.playbackRate = 1;
|
8
|
+
this.volume = 1;
|
9
|
+
this.currentTimeChange = new EventEmitter();
|
10
|
+
this.pausedChange = new EventEmitter();
|
11
|
+
this.volumeChange = new EventEmitter();
|
12
|
+
}
|
13
|
+
set playbackRateSetter(playbackRate) {
|
14
|
+
this.updatePlaybackRate(playbackRate);
|
15
|
+
}
|
16
|
+
set currentTime(currentTime) {
|
17
|
+
if (Math.abs(currentTime - this.currentTime) > 0.05) {
|
18
|
+
this.el.currentTime = currentTime;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
set paused(paused) {
|
22
|
+
if (paused) {
|
23
|
+
this.el.pause?.();
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
void this.el.play?.();
|
27
|
+
this.updatePlaybackRate(this.playbackRate);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
get currentTime() {
|
31
|
+
return this.el.currentTime ?? 0;
|
32
|
+
}
|
33
|
+
get paused() {
|
34
|
+
return Boolean(this.el.paused);
|
35
|
+
}
|
36
|
+
onPausedChange(paused) {
|
37
|
+
this.pausedChange.emit(paused);
|
38
|
+
this.updatePlaybackRate(this.playbackRate);
|
39
|
+
}
|
40
|
+
onVolumeChange() {
|
41
|
+
this.volume = this.el.volume;
|
42
|
+
this.volumeChange.emit(this.volume);
|
43
|
+
}
|
44
|
+
onCurrentTimeChange() {
|
45
|
+
this.currentTimeChange.emit(this.currentTime);
|
46
|
+
}
|
47
|
+
updatePlaybackRate(playbackRate) {
|
48
|
+
this.playbackRate = playbackRate;
|
49
|
+
this.el.playbackRate = this.playbackRate;
|
50
|
+
}
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
52
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMedia, isStandalone: true, selector: "video[tuiMedia], audio[tuiMedia]", inputs: { volume: "volume", playbackRateSetter: ["playbackRate", "playbackRateSetter"], currentTime: "currentTime", paused: "paused" }, outputs: { currentTimeChange: "currentTimeChange", pausedChange: "pausedChange", volumeChange: "volumeChange" }, host: { listeners: { "durationchange": "0", "ended": "onPausedChange(true)", "pause": "onPausedChange(true)", "play": "onPausedChange(false)", "volumechange": "onVolumeChange()", "timeupdate": "onCurrentTimeChange()", "seeking": "onCurrentTimeChange()", "seeked": "onCurrentTimeChange()" }, properties: { "volume": "this.volume" } }, exportAs: ["tuiMedia"], ngImport: i0 }); }
|
53
|
+
}
|
54
|
+
export { TuiMedia };
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMedia, decorators: [{
|
56
|
+
type: Directive,
|
57
|
+
args: [{
|
58
|
+
standalone: true,
|
59
|
+
selector: 'video[tuiMedia], audio[tuiMedia]',
|
60
|
+
exportAs: 'tuiMedia',
|
61
|
+
host: { '(durationchange)': '0' },
|
62
|
+
}]
|
63
|
+
}], propDecorators: { volume: [{
|
64
|
+
type: Input
|
65
|
+
}, {
|
66
|
+
type: HostBinding,
|
67
|
+
args: ['volume']
|
68
|
+
}], currentTimeChange: [{
|
69
|
+
type: Output
|
70
|
+
}], pausedChange: [{
|
71
|
+
type: Output
|
72
|
+
}], volumeChange: [{
|
73
|
+
type: Output
|
74
|
+
}], playbackRateSetter: [{
|
75
|
+
type: Input,
|
76
|
+
args: ['playbackRate']
|
77
|
+
}], currentTime: [{
|
78
|
+
type: Input
|
79
|
+
}], paused: [{
|
80
|
+
type: Input
|
81
|
+
}], onPausedChange: [{
|
82
|
+
type: HostListener,
|
83
|
+
args: ['ended', ['true']]
|
84
|
+
}, {
|
85
|
+
type: HostListener,
|
86
|
+
args: ['pause', ['true']]
|
87
|
+
}, {
|
88
|
+
type: HostListener,
|
89
|
+
args: ['play', ['false']]
|
90
|
+
}], onVolumeChange: [{
|
91
|
+
type: HostListener,
|
92
|
+
args: ['volumechange']
|
93
|
+
}], onCurrentTimeChange: [{
|
94
|
+
type: HostListener,
|
95
|
+
args: ['timeupdate']
|
96
|
+
}, {
|
97
|
+
type: HostListener,
|
98
|
+
args: ['seeking']
|
99
|
+
}, {
|
100
|
+
type: HostListener,
|
101
|
+
args: ['seeked']
|
102
|
+
}] } });
|
103
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWEuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2RrL2RpcmVjdGl2ZXMvbWVkaWEvbWVkaWEuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFdBQVcsRUFDWCxZQUFZLEVBQ1osS0FBSyxFQUNMLE1BQU0sR0FDVCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQzs7QUFFckQsTUFNYSxRQUFRO0lBTnJCO1FBT3FCLE9BQUUsR0FBRyxnQkFBZ0IsRUFBb0IsQ0FBQztRQUVuRCxpQkFBWSxHQUFHLENBQUMsQ0FBQztRQUlsQixXQUFNLEdBQUcsQ0FBQyxDQUFDO1FBR0Ysc0JBQWlCLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztRQUcvQyxpQkFBWSxHQUFHLElBQUksWUFBWSxFQUFXLENBQUM7UUFHM0MsaUJBQVksR0FBRyxJQUFJLFlBQVksRUFBVSxDQUFDO0tBeUQ3RDt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ucGxheWJhY2tSYXRlID0gcGxheWJhY2tSYXRlO1xuICAgICAgICB0aGlzLmVsLnBsYXliYWNrUmF0ZSA9IHRoaXMucGxheWJhY2tSYXRlO1xuICAgIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './native-validator.directive';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9uYXRpdmUtdmFsaWRhdG9yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsOEJBQThCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL25hdGl2ZS12YWxpZGF0b3IuZGlyZWN0aXZlJztcbiJdfQ==
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { DestroyRef, Directive, HostListener, inject, Input, NgZone } from '@angular/core';
|
2
|
+
import { NG_VALIDATORS } from '@angular/forms';
|
3
|
+
import { tuiTakeUntilDestroyed, tuiZonefree } from '@taiga-ui/cdk/observables';
|
4
|
+
import { tuiInjectElement, tuiProvide } from '@taiga-ui/cdk/utils';
|
5
|
+
import { timer } from 'rxjs';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
class TuiNativeValidator {
|
8
|
+
constructor() {
|
9
|
+
this.destroyRef = inject(DestroyRef);
|
10
|
+
this.zone = inject(NgZone);
|
11
|
+
this.host = tuiInjectElement();
|
12
|
+
this.tuiNativeValidator = 'Invalid';
|
13
|
+
}
|
14
|
+
validate(control) {
|
15
|
+
this.control = control;
|
16
|
+
timer(0)
|
17
|
+
.pipe(tuiZonefree(this.zone), tuiTakeUntilDestroyed(this.destroyRef))
|
18
|
+
.subscribe(() => this.handleValidation());
|
19
|
+
return null;
|
20
|
+
}
|
21
|
+
handleValidation() {
|
22
|
+
this.el.setCustomValidity?.(this.control?.touched && this.control?.invalid ? this.tuiNativeValidator : '');
|
23
|
+
}
|
24
|
+
get el() {
|
25
|
+
return this.host.querySelector('input,textarea,select') || this.host;
|
26
|
+
}
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNativeValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
28
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiNativeValidator, isStandalone: true, selector: "[tuiNativeValidator]", inputs: { tuiNativeValidator: "tuiNativeValidator" }, host: { listeners: { "blur": "handleValidation()" } }, providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)], ngImport: i0 }); }
|
29
|
+
}
|
30
|
+
export { TuiNativeValidator };
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNativeValidator, decorators: [{
|
32
|
+
type: Directive,
|
33
|
+
args: [{
|
34
|
+
standalone: true,
|
35
|
+
selector: '[tuiNativeValidator]',
|
36
|
+
providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)],
|
37
|
+
}]
|
38
|
+
}], propDecorators: { tuiNativeValidator: [{
|
39
|
+
type: Input
|
40
|
+
}], handleValidation: [{
|
41
|
+
type: HostListener,
|
42
|
+
args: ['blur']
|
43
|
+
}] } });
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLXZhbGlkYXRvci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9uYXRpdmUtdmFsaWRhdG9yL25hdGl2ZS12YWxpZGF0b3IuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbX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ICAgICAgICAuc3Vic2NyaWJlKCgpID0+IHRoaXMuaGFuZGxlVmFsaWRhdGlvbigpKTtcblxuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICBASG9zdExpc3RlbmVyKCdibHVyJylcbiAgICBwcm90ZWN0ZWQgaGFuZGxlVmFsaWRhdGlvbigpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5lbC5zZXRDdXN0b21WYWxpZGl0eT8uKFxuICAgICAgICAgICAgdGhpcy5jb250cm9sPy50b3VjaGVkICYmIHRoaXMuY29udHJvbD8uaW52YWxpZCA/IHRoaXMudHVpTmF0aXZlVmFsaWRhdG9yIDogJycsXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXQgZWwoKTogSFRNTElucHV0RWxlbWVudCB7XG4gICAgICAgIHJldHVybiB0aGlzLmhvc3QucXVlcnlTZWxlY3RvcignaW5wdXQsdGV4dGFyZWEsc2VsZWN0JykgfHwgdGhpcy5ob3N0O1xuICAgIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktY2RrLWRpcmVjdGl2ZXMtbmF0aXZlLXZhbGlkYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9kaXJlY3RpdmVzL25hdGl2ZS12YWxpZGF0b3IvdGFpZ2EtdWktY2RrLWRpcmVjdGl2ZXMtbmF0aXZlLXZhbGlkYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './obscured.directive';
|
2
|
+
export * from './obscured.service';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9vYnNjdXJlZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL29ic2N1cmVkLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL29ic2N1cmVkLnNlcnZpY2UnO1xuIl19
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { Directive, inject, Input, Output } from '@angular/core';
|
2
|
+
import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
|
3
|
+
import { tuiIfMap } from '@taiga-ui/cdk/observables';
|
4
|
+
import { map, Subject } from 'rxjs';
|
5
|
+
import { TuiObscuredService } from './obscured.service';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* Directive that monitors element visibility
|
9
|
+
*/
|
10
|
+
class TuiObscured {
|
11
|
+
constructor() {
|
12
|
+
this.activeZone = inject(TuiActiveZone, { optional: true });
|
13
|
+
this.enabled$ = new Subject();
|
14
|
+
this.obscured$ = inject(TuiObscuredService, { self: true }).pipe(map((by) => !!by?.every((el) => !this.activeZone?.contains(el))));
|
15
|
+
this.tuiObscured = this.enabled$.pipe(tuiIfMap(() => this.obscured$));
|
16
|
+
}
|
17
|
+
set tuiObscuredEnabled(enabled) {
|
18
|
+
this.enabled$.next(enabled);
|
19
|
+
}
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscured, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
21
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiObscured, isStandalone: true, selector: "[tuiObscured]", inputs: { tuiObscuredEnabled: "tuiObscuredEnabled" }, outputs: { tuiObscured: "tuiObscured" }, providers: [TuiObscuredService], ngImport: i0 }); }
|
22
|
+
}
|
23
|
+
export { TuiObscured };
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscured, decorators: [{
|
25
|
+
type: Directive,
|
26
|
+
args: [{
|
27
|
+
standalone: true,
|
28
|
+
selector: '[tuiObscured]',
|
29
|
+
providers: [TuiObscuredService],
|
30
|
+
}]
|
31
|
+
}], propDecorators: { tuiObscured: [{
|
32
|
+
type: Output
|
33
|
+
}], tuiObscuredEnabled: [{
|
34
|
+
type: Input
|
35
|
+
}] } });
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzY3VyZWQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2RrL2RpcmVjdGl2ZXMvb2JzY3VyZWQvb2JzY3VyZWQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0QsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLHNDQUFzQyxDQUFDO0FBQ25FLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSw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aU9ic2N1cmVkU2VydmljZSwge3NlbGY6IHRydWV9KS5waXBlKFxuICAgICAgICBtYXAoKGJ5KSA9PiAhIWJ5Py5ldmVyeSgoZWwpID0+ICF0aGlzLmFjdGl2ZVpvbmU/LmNvbnRhaW5zKGVsKSkpLFxuICAgICk7XG5cbiAgICBAT3V0cHV0KClcbiAgICBwdWJsaWMgcmVhZG9ubHkgdHVpT2JzY3VyZWQgPSB0aGlzLmVuYWJsZWQkLnBpcGUodHVpSWZNYXAoKCkgPT4gdGhpcy5vYnNjdXJlZCQpKTtcblxuICAgIEBJbnB1dCgpXG4gICAgcHVibGljIHNldCB0dWlPYnNjdXJlZEVuYWJsZWQoZW5hYmxlZDogYm9vbGVhbikge1xuICAgICAgICB0aGlzLmVuYWJsZWQkLm5leHQoZW5hYmxlZCk7XG4gICAgfVxufVxuIl19
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { inject, Injectable, NgZone } from '@angular/core';
|
2
|
+
import { ANIMATION_FRAME } from '@ng-web-apis/common';
|
3
|
+
import { tuiZoneOptimized } from '@taiga-ui/cdk/observables';
|
4
|
+
import { tuiGetElementObscures, tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
5
|
+
import { distinctUntilChanged, map, Observable, startWith, throttleTime } from 'rxjs';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* Service that monitors element visibility by polling and returning
|
9
|
+
* either null or an array of elements that overlap given element edges
|
10
|
+
*/
|
11
|
+
class TuiObscuredService extends Observable {
|
12
|
+
constructor() {
|
13
|
+
super((subscriber) => this.obscured$.subscribe(subscriber));
|
14
|
+
this.el = tuiInjectElement();
|
15
|
+
this.obscured$ = inject(ANIMATION_FRAME).pipe(throttleTime(100), map(() => tuiGetElementObscures(this.el)), startWith(null), distinctUntilChanged(), tuiZoneOptimized(inject(NgZone)));
|
16
|
+
}
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscuredService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
18
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscuredService }); }
|
19
|
+
}
|
20
|
+
export { TuiObscuredService };
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscuredService, decorators: [{
|
22
|
+
type: Injectable
|
23
|
+
}], ctorParameters: function () { return []; } });
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzY3VyZWQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9kaXJlY3RpdmVzL29ic2N1cmVkL29ic2N1cmVkLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUNwRCxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQztBQUMzRCxPQUFPLEVBQUMscUJBQXFCLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUNoRixPQUFPLEVBQUMsb0JBQW9CLEVBQUUsR0FBRyxFQUFFLFVBQVUsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFDLE1BQU0sTUFBTSxDQUFDOztBQUVwRjs7O0dBR0c7QUFDSCxNQUNhLGtCQUFtQixTQUFRLFVBQXFDO0lBVXpFO1FBQ0ksS0FBSyxDQUFDLENBQUMsVUFBVSxFQUFFLEVBQUUsQ0FBQyxJQUFJLENBQUMsU0F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Gl0eSBieSBwb2xsaW5nIGFuZCByZXR1cm5pbmdcbiAqIGVpdGhlciBudWxsIG9yIGFuIGFycmF5IG9mIGVsZW1lbnRzIHRoYXQgb3ZlcmxhcCBnaXZlbiBlbGVtZW50IGVkZ2VzXG4gKi9cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBUdWlPYnNjdXJlZFNlcnZpY2UgZXh0ZW5kcyBPYnNlcnZhYmxlPHJlYWRvbmx5IEVsZW1lbnRbXSB8IG51bGw+IHtcbiAgICBwcml2YXRlIHJlYWRvbmx5IGVsID0gdHVpSW5qZWN0RWxlbWVudCgpO1xuICAgIHByaXZhdGUgcmVhZG9ubHkgb2JzY3VyZWQkID0gaW5qZWN0KEFOSU1BVElPTl9GUkFNRSkucGlwZShcbiAgICAgICAgdGhyb3R0bGVUaW1lKDEwMCksXG4gICAgICAgIG1hcCgoKSA9PiB0dWlHZXRFbGVtZW50T2JzY3VyZXModGhpcy5lbCkpLFxuICAgICAgICBzdGFydFdpdGgobnVsbCksXG4gICAgICAgIGRpc3RpbmN0VW50aWxDaGFuZ2VkKCksXG4gICAgICAgIHR1aVpvbmVPcHRpbWl6ZWQoaW5qZWN0KE5nWm9uZSkpLFxuICAgICk7XG5cbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgc3VwZXIoKHN1YnNjcmliZXIpID0+IHRoaXMub2JzY3VyZWQkLnN1YnNjcmliZShzdWJzY3JpYmVyKSk7XG4gICAgfVxufVxuIl19
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './pan.directive';
|
2
|
+
export * from './pan.service';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9wYW4vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcGFuLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL3Bhbi5zZXJ2aWNlJztcbiJdfQ==
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Directive, inject, Output } from '@angular/core';
|
2
|
+
import { TuiPanService } from './pan.service';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
class TuiPan {
|
5
|
+
constructor() {
|
6
|
+
this.tuiPan = inject(TuiPanService);
|
7
|
+
}
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPan, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
9
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPan, isStandalone: true, selector: "[tuiPan]", outputs: { tuiPan: "tuiPan" }, providers: [TuiPanService], ngImport: i0 }); }
|
10
|
+
}
|
11
|
+
export { TuiPan };
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPan, decorators: [{
|
13
|
+
type: Directive,
|
14
|
+
args: [{
|
15
|
+
standalone: true,
|
16
|
+
selector: '[tuiPan]',
|
17
|
+
providers: [TuiPanService],
|
18
|
+
}]
|
19
|
+
}], propDecorators: { tuiPan: [{
|
20
|
+
type: Output
|
21
|
+
}] } });
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFuLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9kaXJlY3RpdmVzL3Bhbi9wYW4uZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV4RCxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sZUFBZSxDQUFDOztBQUU1QyxNQUthLE1BQU07SUFMbkI7UUFPb0IsV0FBTSxHQUFHLE1BQU0sQ0FBQyxhQUFhLENBQUMsQ0FBQztLQUNsRDsrR0FIWSxNQUFNO21HQUFOLE1BQU0sc0ZBRkosQ0FBQyxhQUFhLENBQUM7O1NBRWpCLE1BQU07NEZBQU4sTUFBTTtrQkFMbEIsU0FBUzttQkFBQztvQkFDUCxVQUFVLEVBQUUsSUFBSTtvQkFDaEIsUUFBUSxFQUFFLFVBQVU7b0JBQ3BCLFNBQVMsRUFBRSxDQUFDLGFBQWEsQ0FBQztpQkFDN0I7OEJBR21CLE1BQU07c0JBRHJCLE1BQU0iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0RpcmVjdGl2ZSwgaW5qZWN0LCBPdXRwdXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge1R1aVBhblNlcnZpY2V9IGZyb20gJy4vcGFuLnNlcnZpY2UnO1xuXG5ARGlyZWN0aXZlKHtcbiAgICBzdGFuZGFsb25lOiB0cnVlLFxuICAgIHNlbGVjdG9yOiAnW3R1aVBhbl0nLFxuICAgIHByb3ZpZGVyczogW1R1aVBhblNlcnZpY2VdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlQYW4ge1xuICAgIEBPdXRwdXQoKVxuICAgIHB1YmxpYyByZWFkb25seSB0dWlQYW4gPSBpbmplY3QoVHVpUGFuU2VydmljZSk7XG59XG4iXX0=
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
3
|
+
import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
|
4
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
5
|
+
import { filter, map, merge, Observable, pairwise, repeat, switchMap, takeUntil, } from 'rxjs';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
class TuiPanService extends Observable {
|
8
|
+
constructor() {
|
9
|
+
const el = tuiInjectElement();
|
10
|
+
const doc = inject(DOCUMENT);
|
11
|
+
super((subscriber) => {
|
12
|
+
merge(tuiTypedFromEvent(el, 'touchstart', { passive: true }), tuiTypedFromEvent(el, 'mousedown'))
|
13
|
+
.pipe(switchMap(() => merge(tuiTypedFromEvent(doc, 'touchmove', {
|
14
|
+
passive: true,
|
15
|
+
}).pipe(filter(({ touches }) => touches.length < 2), map(({ touches }) => touches[0])), tuiTypedFromEvent(doc, 'mousemove'))), pairwise(), map(([first, second]) => {
|
16
|
+
const deltaX = second.clientX - first.clientX;
|
17
|
+
const deltaY = second.clientY - first.clientY;
|
18
|
+
return [deltaX, deltaY];
|
19
|
+
}), takeUntil(merge(tuiTypedFromEvent(doc, 'touchend'), tuiTypedFromEvent(doc, 'mouseup'))), repeat())
|
20
|
+
.subscribe(subscriber);
|
21
|
+
});
|
22
|
+
}
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPanService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
24
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPanService }); }
|
25
|
+
}
|
26
|
+
export { TuiPanService };
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPanService, decorators: [{
|
28
|
+
type: Injectable
|
29
|
+
}], ctorParameters: function () { return []; } });
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFuLnNlcnZpY2UuanMiLCJzb3Vy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Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQge2luamVjdCwgSW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge3R1aVR5cGVkRnJvbUV2ZW50fSBmcm9tICdAdGFpZ2EtdWkvY2RrL29ic2VydmFibGVzJztcbmltcG9ydCB7dHVpSW5qZWN0RWxlbWVudH0gZnJvbSAnQHRhaWdhLXVpL2Nkay91dGlscy9kb20nO1xuaW1wb3J0IHtcbiAgICBmaWx0ZXIsXG4gICAgbWFwLFxuICAgIG1lcmdlLFxuICAgIE9ic2VydmFibGUsXG4gICAgcGFpcndpc2UsXG4gICAgcmVwZWF0LFxuICAgIHN3aXRjaE1hcCxcbiAgICB0YWtlVW50aWwsXG59IGZyb20gJ3J4anMnO1xuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgVHVpUGFuU2VydmljZSBleHRlbmRzIE9ic2VydmFibGU8cmVhZG9ubHkgW251bWJlciwgbnVtYmVyXT4ge1xuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICBjb25zdCBlbCA9IHR1aUluamVjdEVsZW1lbnQoKTtcbiAgICAgICAgY29uc3QgZG9jID0gaW5qZWN0KERPQ1VNRU5UKTtcblxuICAgICAgICBzdXBlcigoc3Vic2NyaWJlcikgPT4ge1xuICAgICAgICAgICAgbWVyZ2UoXG4gICAgICAgICAgICAgICAgdHVpVHlwZWRGcm9tRXZlbnQoZWwsICd0b3VjaHN0YXJ0Jywge3Bhc3NpdmU6IHRydWV9KSxcbiAgICAgICAgICAgICAgICB0dWlUeXBlZEZyb21FdmVudChlbCwgJ21vdXNlZG93bicpLFxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgICAgICBzd2l0Y2hNYXAoKCkgPT5cbiAgICAgICAgICAgICAgICAgICAgICAgIG1lcmdlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR1aVR5cGVkRnJvbUV2ZW50KGRvYywgJ3RvdWNobW92ZScsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFzc2l2ZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KS5waXBlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWx0ZXIoKHt0b3VjaGVzfSkgPT4gdG91Y2hlcy5sZW5ndGggPCAyKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwKCh7dG91Y2hlc30pID0+IHRvdWNoZXNbMF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHVpVHlwZWRGcm9tRXZlbnQoZG9jLCAnbW91c2Vtb3ZlJyksXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICBwYWlyd2lzZSgpLFxuICAgICAgICAgICAgICAgICAgICBtYXAoKFtmaXJzdCwgc2Vjb25kXSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgZGVsdGFYID0gc2Vjb25kLmNsaWVudFggLSBmaXJzdC5jbGllbnRYO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgZGVsdGFZID0gc2Vjb25kLmNsaWVudFkgLSBmaXJzdC5jbGllbnRZO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gW2RlbHRhWCwgZGVsdGFZXSBhcyBbbnVtYmVyLCBudW1iZXJdO1xuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgdGFrZVVudGlsKFxuICAgICAgICAgICAgICAgICAgICAgICAgbWVyZ2UoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHVpVHlwZWRGcm9tRXZlbnQoZG9jLCAndG91Y2hlbmQnKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0dWlUeXBlZEZyb21FdmVudChkb2MsICdtb3VzZXVwJyksXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICByZXBlYXQoKSxcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgLnN1YnNjcmliZShzdWJzY3JpYmVyKTtcbiAgICAgICAgfSk7XG4gICAgfVxufVxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './platform.directive';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9wbGF0Zm9ybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wbGF0Zm9ybS5kaXJlY3RpdmUnO1xuIl19
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Directive, HostBinding, inject, Input } from '@angular/core';
|
2
|
+
import { TUI_PLATFORM } from '@taiga-ui/cdk/tokens';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
class TuiPlatform {
|
5
|
+
constructor() {
|
6
|
+
this.tuiPlatform = inject(TUI_PLATFORM, {
|
7
|
+
skipSelf: true,
|
8
|
+
});
|
9
|
+
}
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPlatform, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
11
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPlatform, isStandalone: true, selector: "[tuiPlatform]", inputs: { tuiPlatform: "tuiPlatform" }, host: { properties: { "attr.data-platform": "this.tuiPlatform" } }, providers: [
|
12
|
+
{
|
13
|
+
provide: TUI_PLATFORM,
|
14
|
+
useFactory: () => inject(TuiPlatform).tuiPlatform,
|
15
|
+
},
|
16
|
+
], ngImport: i0 }); }
|
17
|
+
}
|
18
|
+
export { TuiPlatform };
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPlatform, decorators: [{
|
20
|
+
type: Directive,
|
21
|
+
args: [{
|
22
|
+
standalone: true,
|
23
|
+
selector: '[tuiPlatform]',
|
24
|
+
providers: [
|
25
|
+
{
|
26
|
+
provide: TUI_PLATFORM,
|
27
|
+
useFactory: () => inject(TuiPlatform).tuiPlatform,
|
28
|
+
},
|
29
|
+
],
|
30
|
+
}]
|
31
|
+
}], propDecorators: { tuiPlatform: [{
|
32
|
+
type: Input
|
33
|
+
}, {
|
34
|
+
type: HostBinding,
|
35
|
+
args: ['attr.data-platform']
|
36
|
+
}] } });
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm0uZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2RrL2RpcmVjdGl2ZXMvcGxhdGZvcm0vcGxhdGZvcm0uZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLHNCQUFzQixDQUFDOztBQUVsRCxNQVVhLFdBQVc7SUFWeEI7UUFhVyxnQkFBVyxHQUE4QixNQUFNLENBQUMsWUFBWSxFQUFFO1lBQ2pFLFFBQVEsRUFBRSxJQUFJO1NBQ2pCLENBQUMsQ0FBQ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c3RCaW5kaW5nKCdhdHRyLmRhdGEtcGxhdGZvcm0nKVxuICAgIHB1YmxpYyB0dWlQbGF0Zm9ybTogJ2FuZHJvaWQnIHwgJ2lvcycgfCAnd2ViJyA9IGluamVjdChUVUlfUExBVEZPUk0sIHtcbiAgICAgICAgc2tpcFNlbGY6IHRydWUsXG4gICAgfSk7XG59XG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './popover.directive';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9wb3BvdmVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3BvcG92ZXIuZGlyZWN0aXZlJztcbiJdfQ==
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { Directive, inject } from '@angular/core';
|
2
|
+
import { tuiIfMap } from '@taiga-ui/cdk/observables';
|
3
|
+
import { TuiPopoverService } from '@taiga-ui/cdk/services';
|
4
|
+
import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
5
|
+
import { distinctUntilChanged, endWith, ignoreElements, share, Subject } from 'rxjs';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
class TuiPopoverDirective extends PolymorpheusTemplate {
|
8
|
+
constructor() {
|
9
|
+
super(...arguments);
|
10
|
+
this.service = inject((TuiPopoverService));
|
11
|
+
this.open$ = new Subject();
|
12
|
+
this.options = {};
|
13
|
+
this.open = false;
|
14
|
+
this.openChange = this.open$.pipe(distinctUntilChanged(), tuiIfMap(() => this.service.open(this, this.options).pipe(ignoreElements(), endWith(false))), share());
|
15
|
+
}
|
16
|
+
ngOnChanges() {
|
17
|
+
this.open$.next(this.open);
|
18
|
+
}
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPopoverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
20
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPopoverDirective, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
21
|
+
}
|
22
|
+
export { TuiPopoverDirective };
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPopoverDirective, decorators: [{
|
24
|
+
type: Directive
|
25
|
+
}] });
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9wb3BvdmVyL3BvcG92ZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ2hELE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQztBQUVuRCxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSx3QkFBd0IsQ0FBQztBQUN6RCxPQUFPLEVBQUMsb0JBQW9CLEVBQUMsTUFBTSx3QkFBd0IsQ0FBQztBQUM1RCxPQUFPLEVBQUMsb0JBQW9CLEVBQUUsT0FBTyxFQUFFLGNBQWMsRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFDLE1BQU0sTUFBTSxDQUFDOztBQUVuRixNQUNzQixtQkFDbEIsU0FBUSxvQkFBeUM7SUFGckQ7O1FBS3FCLFlBQU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1xuICAgIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktY2RrLWRpcmVjdGl2ZXMtcG9wb3Zlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9kaXJlY3RpdmVzL3BvcG92ZXIvdGFpZ2EtdWktY2RrLWRpcmVjdGl2ZXMtcG9wb3Zlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './repeat-times.directive';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9yZXBlYXQtdGltZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcmVwZWF0LXRpbWVzLmRpcmVjdGl2ZSc7XG4iXX0=
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { Directive, inject, Input, TemplateRef, ViewContainerRef } from '@angular/core';
|
2
|
+
import { tuiClamp } from '@taiga-ui/cdk/utils/math';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
const MAX_VALUE = 0x10000;
|
5
|
+
export class TuiRepeatTimesContext {
|
6
|
+
constructor($implicit) {
|
7
|
+
this.$implicit = $implicit;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* Directive similar to ngFor but using a number of repetitions rather than an array
|
12
|
+
*
|
13
|
+
* {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.
|
14
|
+
* {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores
|
15
|
+
* {@link TuiRepeatTimesContext.$implicit index} of a template instance.
|
16
|
+
*/
|
17
|
+
class TuiRepeatTimes {
|
18
|
+
constructor() {
|
19
|
+
this.viewContainer = inject(ViewContainerRef);
|
20
|
+
this.templateRef = inject((TemplateRef));
|
21
|
+
}
|
22
|
+
set tuiRepeatTimesOf(count) {
|
23
|
+
const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));
|
24
|
+
const { length } = this.viewContainer;
|
25
|
+
if (count < length) {
|
26
|
+
this.removeContainers(length - count);
|
27
|
+
}
|
28
|
+
else {
|
29
|
+
this.addContainers(safeCount);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
addContainers(count) {
|
33
|
+
for (let index = this.viewContainer.length; index < count; index++) {
|
34
|
+
this.viewContainer.createEmbeddedView(this.templateRef, new TuiRepeatTimesContext(index));
|
35
|
+
}
|
36
|
+
}
|
37
|
+
removeContainers(amount) {
|
38
|
+
for (let index = 0; index < amount; index++) {
|
39
|
+
this.viewContainer.remove();
|
40
|
+
}
|
41
|
+
}
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRepeatTimes, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
43
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiRepeatTimes, isStandalone: true, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: { tuiRepeatTimesOf: "tuiRepeatTimesOf" }, ngImport: i0 }); }
|
44
|
+
}
|
45
|
+
export { TuiRepeatTimes };
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRepeatTimes, decorators: [{
|
47
|
+
type: Directive,
|
48
|
+
args: [{
|
49
|
+
standalone: true,
|
50
|
+
selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',
|
51
|
+
}]
|
52
|
+
}], propDecorators: { tuiRepeatTimesOf: [{
|
53
|
+
type: Input
|
54
|
+
}] } });
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwZWF0LXRpbWVzLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9kaXJlY3RpdmVzL3JlcGVhdC10aW1lcy9yZXBlYXQtdGltZXMuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdEYsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLDBCQUEwQixDQUFDOztBQUVsRCxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUM7QUFFMUIsTUFBTSxPQUFPLHFCQUFxQjtJQUM5QixZQUE0QixTQUFpQjtRQUFqQixjQUFTLEdBQVQsU0FBUyxDQUFRO0lBQUcsQ0FBQztDQUNwRDtBQUVEOzs7Ozs7R0FNRztBQUNILE1BSWEsY0FBYztJQUozQjtRQUtxQixrQkFBYSxHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQ3pDLGdCQUFXLEdBQUcsTU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VJlcGVhdFRpbWVzQ29udGV4dD4oXG4gICAgICAgICAgICAgICAgdGhpcy50ZW1wbGF0ZVJlZixcbiAgICAgICAgICAgICAgICBuZXcgVHVpUmVwZWF0VGltZXNDb250ZXh0KGluZGV4KSxcbiAgICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHJlbW92ZUNvbnRhaW5lcnMoYW1vdW50OiBudW1iZXIpOiB2b2lkIHtcbiAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IGFtb3VudDsgaW5kZXgrKykge1xuICAgICAgICAgICAgdGhpcy52aWV3Q29udGFpbmVyLnJlbW92ZSgpO1xuICAgICAgICB9XG4gICAgfVxufVxuIl19
|