@taiga-ui/cdk 3.491.1-canary.d27927b → 4.0.0-rc.2
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 +2 -3
- 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 +4 -6
- 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/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/parse-color.mjs +27 -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-selected-text.mjs +15 -0
- package/esm2022/utils/dom/index.mjs +17 -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 +122 -0
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +206 -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 +317 -28
- 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 +19 -34
- 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 +55 -90
- 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 +7 -7
- package/schematics/ng-update/steps/index.d.ts +6 -0
- package/schematics/ng-update/steps/index.js +9 -0
- package/schematics/ng-update/steps/remove-module.d.ts +2 -2
- package/schematics/ng-update/steps/remove-module.js +6 -6
- package/schematics/ng-update/steps/rename-types.d.ts +3 -3
- package/schematics/ng-update/steps/rename-types.js +20 -20
- 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 +12 -12
- 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-services.d.ts +2 -2
- package/schematics/ng-update/steps/replace-services.js +15 -15
- package/schematics/ng-update/steps/show-warnings.d.ts +2 -2
- package/schematics/ng-update/steps/show-warnings.js +6 -6
- 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 +2 -2
- 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 +6 -6
- 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 +20 -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 +295 -295
- 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 +98 -98
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.d.ts +3 -3
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +43 -43
- package/schematics/ng-update/v3/steps/migrate-progress.d.ts +6 -2
- package/schematics/ng-update/v3/steps/migrate-progress.js +27 -29
- 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 +11 -11
- package/schematics/ng-update/v3/steps/migrate-templates.d.ts +3 -2
- package/schematics/ng-update/v3/steps/migrate-templates.js +88 -112
- package/schematics/ng-update/v3/steps/migrate-textfield-controller.d.ts +3 -3
- package/schematics/ng-update/v3/steps/migrate-textfield-controller.js +53 -53
- package/schematics/ng-update/v3/steps/miscellaneous.d.ts +1 -1
- package/schematics/ng-update/v3/steps/miscellaneous.js +37 -37
- package/schematics/ng-update/v3/steps/replace-functions.d.ts +1 -1
- package/schematics/ng-update/v3/steps/replace-functions.js +33 -33
- 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 +15 -15
- 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 +25 -25
- package/schematics/ng-update/v4/index.d.ts +2 -2
- package/schematics/ng-update/v4/index.js +42 -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 +89 -0
- package/schematics/ng-update/v4/migrate-css-vars/palette.js +120 -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 +31 -0
- package/schematics/ng-update/v4/migrate-icons/index.d.ts +3 -0
- package/schematics/ng-update/v4/migrate-icons/index.js +30 -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/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 +13 -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 +208 -0
- package/schematics/ng-update/v4/steps/constants/enums.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/enums.js +236 -0
- package/schematics/ng-update/v4/steps/constants/html-comments.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/html-comments.js +40 -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 +2226 -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 +145 -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 +21 -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 +53 -0
- package/schematics/ng-update/v4/steps/constants/types.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/types.js +11 -0
- package/schematics/ng-update/v4/steps/index.d.ts +6 -0
- package/schematics/ng-update/v4/steps/index.js +9 -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 +125 -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 +67 -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 +45 -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/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-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 +21 -0
- package/schematics/utils/add-import-to-closest-module.js +13 -6
- package/schematics/utils/add-unique-import.js +4 -4
- package/schematics/utils/angular-json-manipulations.d.ts +3 -3
- package/schematics/utils/angular-json-manipulations.js +15 -16
- 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 +9 -3
- 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 +2 -2
- package/schematics/utils/import-manipulations.d.ts +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 +1 -2
- package/schematics/utils/templates/elements.d.ts +8 -3
- package/schematics/utils/templates/elements.js +22 -7
- 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 +19 -20
- 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/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/index.d.ts +2 -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/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/index.js → esm2022/utils/color/index.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
@@ -1,1244 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/cdk/constants'), require('@taiga-ui/cdk/utils'), require('@taiga-ui/cdk/classes'), require('@taiga-ui/cdk/enums'), require('@taiga-ui/cdk/exceptions'), require('@taiga-ui/cdk/utils/math')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/date-time', ['exports', '@taiga-ui/cdk/constants', '@taiga-ui/cdk/utils', '@taiga-ui/cdk/classes', '@taiga-ui/cdk/enums', '@taiga-ui/cdk/exceptions', '@taiga-ui/cdk/utils/math'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk["date-time"] = {}), global["taiga-ui"].cdk.constants, global["taiga-ui"].cdk.utils, global["taiga-ui"].cdk.classes, global["taiga-ui"].cdk.enums, global["taiga-ui"].cdk.exceptions, global["taiga-ui"].cdk.utils.math));
|
5
|
-
})(this, (function (exports, constants, utils, classes, enums, exceptions, math) { 'use strict';
|
6
|
-
|
7
|
-
function tuiDateClamp(date, min, max) {
|
8
|
-
if (max && max < date) {
|
9
|
-
return max;
|
10
|
-
}
|
11
|
-
if (min && min > date) {
|
12
|
-
return min;
|
13
|
-
}
|
14
|
-
return date;
|
15
|
-
}
|
16
|
-
|
17
|
-
var DAYS_IN_WEEK = 7;
|
18
|
-
var DAYS_IN_NORMAL_YEAR = 365;
|
19
|
-
var DAYS_IN_LEAP_YEAR = 366;
|
20
|
-
var MONTHS_IN_YEAR = 12;
|
21
|
-
var MIN_DAY = 1;
|
22
|
-
var MIN_MONTH = 0;
|
23
|
-
var MAX_MONTH = 11;
|
24
|
-
var MIN_YEAR = 0;
|
25
|
-
var MAX_YEAR = 9999;
|
26
|
-
var RANGE_SEPARATOR_CHAR = "" + constants.CHAR_NO_BREAK_SPACE + constants.CHAR_EN_DASH + constants.CHAR_NO_BREAK_SPACE;
|
27
|
-
var MILLISECONDS_IN_SECOND = 1000;
|
28
|
-
var SECONDS_IN_MINUTE = 60;
|
29
|
-
var MINUTES_IN_HOUR = 60;
|
30
|
-
var HOURS_IN_DAY = 24;
|
31
|
-
var MILLISECONDS_IN_MINUTE = MILLISECONDS_IN_SECOND * SECONDS_IN_MINUTE;
|
32
|
-
var MILLISECONDS_IN_HOUR = MILLISECONDS_IN_MINUTE * MINUTES_IN_HOUR;
|
33
|
-
var MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
|
34
|
-
|
35
|
-
/**
|
36
|
-
* @internal 'dd.mm.yyyy'.length
|
37
|
-
* Used in:
|
38
|
-
* - {@link TuiInputDateComponent}
|
39
|
-
* - {@link TuiInputDateRangeComponent}
|
40
|
-
* - {@link TuiInputDateTimeComponent}
|
41
|
-
*/
|
42
|
-
var DATE_FILLER_LENGTH = 10;
|
43
|
-
/**
|
44
|
-
* @internal
|
45
|
-
* Used in {@link TuiInputDateRangeComponent}
|
46
|
-
*/
|
47
|
-
var DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
|
48
|
-
|
49
|
-
/**
|
50
|
-
* Active date format for Taiga UI
|
51
|
-
*/
|
52
|
-
var TUI_DATE_FORMAT = utils.tuiCreateToken("DMY");
|
53
|
-
|
54
|
-
/**
|
55
|
-
* Date separator for Taiga UI components
|
56
|
-
*/
|
57
|
-
var TUI_DATE_SEPARATOR = utils.tuiCreateToken(".");
|
58
|
-
var changeDateSeparator = function (dateString, newDateSeparator) { return dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator); };
|
59
|
-
|
60
|
-
/*! *****************************************************************************
|
61
|
-
Copyright (c) Microsoft Corporation.
|
62
|
-
|
63
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
64
|
-
purpose with or without fee is hereby granted.
|
65
|
-
|
66
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
67
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
68
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
69
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
70
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
71
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
72
|
-
PERFORMANCE OF THIS SOFTWARE.
|
73
|
-
***************************************************************************** */
|
74
|
-
/* global Reflect, Promise */
|
75
|
-
var extendStatics = function (d, b) {
|
76
|
-
extendStatics = Object.setPrototypeOf ||
|
77
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
78
|
-
function (d, b) { for (var p in b)
|
79
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
80
|
-
d[p] = b[p]; };
|
81
|
-
return extendStatics(d, b);
|
82
|
-
};
|
83
|
-
function __extends(d, b) {
|
84
|
-
if (typeof b !== "function" && b !== null)
|
85
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
86
|
-
extendStatics(d, b);
|
87
|
-
function __() { this.constructor = d; }
|
88
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
89
|
-
}
|
90
|
-
var __assign = function () {
|
91
|
-
__assign = Object.assign || function __assign(t) {
|
92
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
93
|
-
s = arguments[i];
|
94
|
-
for (var p in s)
|
95
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
96
|
-
t[p] = s[p];
|
97
|
-
}
|
98
|
-
return t;
|
99
|
-
};
|
100
|
-
return __assign.apply(this, arguments);
|
101
|
-
};
|
102
|
-
function __rest(s, e) {
|
103
|
-
var t = {};
|
104
|
-
for (var p in s)
|
105
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
106
|
-
t[p] = s[p];
|
107
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
108
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
109
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
110
|
-
t[p[i]] = s[p[i]];
|
111
|
-
}
|
112
|
-
return t;
|
113
|
-
}
|
114
|
-
function __decorate(decorators, target, key, desc) {
|
115
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
116
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
117
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
118
|
-
else
|
119
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
120
|
-
if (d = decorators[i])
|
121
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
122
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
123
|
-
}
|
124
|
-
function __param(paramIndex, decorator) {
|
125
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
126
|
-
}
|
127
|
-
function __metadata(metadataKey, metadataValue) {
|
128
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
129
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
130
|
-
}
|
131
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
132
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
133
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
134
|
-
function fulfilled(value) { try {
|
135
|
-
step(generator.next(value));
|
136
|
-
}
|
137
|
-
catch (e) {
|
138
|
-
reject(e);
|
139
|
-
} }
|
140
|
-
function rejected(value) { try {
|
141
|
-
step(generator["throw"](value));
|
142
|
-
}
|
143
|
-
catch (e) {
|
144
|
-
reject(e);
|
145
|
-
} }
|
146
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
147
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
148
|
-
});
|
149
|
-
}
|
150
|
-
function __generator(thisArg, body) {
|
151
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
152
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
153
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
154
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
155
|
-
function step(op) {
|
156
|
-
if (f)
|
157
|
-
throw new TypeError("Generator is already executing.");
|
158
|
-
while (_)
|
159
|
-
try {
|
160
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
161
|
-
return t;
|
162
|
-
if (y = 0, t)
|
163
|
-
op = [op[0] & 2, t.value];
|
164
|
-
switch (op[0]) {
|
165
|
-
case 0:
|
166
|
-
case 1:
|
167
|
-
t = op;
|
168
|
-
break;
|
169
|
-
case 4:
|
170
|
-
_.label++;
|
171
|
-
return { value: op[1], done: false };
|
172
|
-
case 5:
|
173
|
-
_.label++;
|
174
|
-
y = op[1];
|
175
|
-
op = [0];
|
176
|
-
continue;
|
177
|
-
case 7:
|
178
|
-
op = _.ops.pop();
|
179
|
-
_.trys.pop();
|
180
|
-
continue;
|
181
|
-
default:
|
182
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
183
|
-
_ = 0;
|
184
|
-
continue;
|
185
|
-
}
|
186
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
187
|
-
_.label = op[1];
|
188
|
-
break;
|
189
|
-
}
|
190
|
-
if (op[0] === 6 && _.label < t[1]) {
|
191
|
-
_.label = t[1];
|
192
|
-
t = op;
|
193
|
-
break;
|
194
|
-
}
|
195
|
-
if (t && _.label < t[2]) {
|
196
|
-
_.label = t[2];
|
197
|
-
_.ops.push(op);
|
198
|
-
break;
|
199
|
-
}
|
200
|
-
if (t[2])
|
201
|
-
_.ops.pop();
|
202
|
-
_.trys.pop();
|
203
|
-
continue;
|
204
|
-
}
|
205
|
-
op = body.call(thisArg, _);
|
206
|
-
}
|
207
|
-
catch (e) {
|
208
|
-
op = [6, e];
|
209
|
-
y = 0;
|
210
|
-
}
|
211
|
-
finally {
|
212
|
-
f = t = 0;
|
213
|
-
}
|
214
|
-
if (op[0] & 5)
|
215
|
-
throw op[1];
|
216
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
217
|
-
}
|
218
|
-
}
|
219
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
220
|
-
if (k2 === undefined)
|
221
|
-
k2 = k;
|
222
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
223
|
-
}) : (function (o, m, k, k2) {
|
224
|
-
if (k2 === undefined)
|
225
|
-
k2 = k;
|
226
|
-
o[k2] = m[k];
|
227
|
-
});
|
228
|
-
function __exportStar(m, o) {
|
229
|
-
for (var p in m)
|
230
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
231
|
-
__createBinding(o, m, p);
|
232
|
-
}
|
233
|
-
function __values(o) {
|
234
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
235
|
-
if (m)
|
236
|
-
return m.call(o);
|
237
|
-
if (o && typeof o.length === "number")
|
238
|
-
return {
|
239
|
-
next: function () {
|
240
|
-
if (o && i >= o.length)
|
241
|
-
o = void 0;
|
242
|
-
return { value: o && o[i++], done: !o };
|
243
|
-
}
|
244
|
-
};
|
245
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
246
|
-
}
|
247
|
-
function __read(o, n) {
|
248
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
249
|
-
if (!m)
|
250
|
-
return o;
|
251
|
-
var i = m.call(o), r, ar = [], e;
|
252
|
-
try {
|
253
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
254
|
-
ar.push(r.value);
|
255
|
-
}
|
256
|
-
catch (error) {
|
257
|
-
e = { error: error };
|
258
|
-
}
|
259
|
-
finally {
|
260
|
-
try {
|
261
|
-
if (r && !r.done && (m = i["return"]))
|
262
|
-
m.call(i);
|
263
|
-
}
|
264
|
-
finally {
|
265
|
-
if (e)
|
266
|
-
throw e.error;
|
267
|
-
}
|
268
|
-
}
|
269
|
-
return ar;
|
270
|
-
}
|
271
|
-
/** @deprecated */
|
272
|
-
function __spread() {
|
273
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
274
|
-
ar = ar.concat(__read(arguments[i]));
|
275
|
-
return ar;
|
276
|
-
}
|
277
|
-
/** @deprecated */
|
278
|
-
function __spreadArrays() {
|
279
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
280
|
-
s += arguments[i].length;
|
281
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
282
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
283
|
-
r[k] = a[j];
|
284
|
-
return r;
|
285
|
-
}
|
286
|
-
function __spreadArray(to, from, pack) {
|
287
|
-
if (pack || arguments.length === 2)
|
288
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
289
|
-
if (ar || !(i in from)) {
|
290
|
-
if (!ar)
|
291
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
292
|
-
ar[i] = from[i];
|
293
|
-
}
|
294
|
-
}
|
295
|
-
return to.concat(ar || from);
|
296
|
-
}
|
297
|
-
function __await(v) {
|
298
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
299
|
-
}
|
300
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
301
|
-
if (!Symbol.asyncIterator)
|
302
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
303
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
304
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
305
|
-
function verb(n) { if (g[n])
|
306
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
307
|
-
function resume(n, v) { try {
|
308
|
-
step(g[n](v));
|
309
|
-
}
|
310
|
-
catch (e) {
|
311
|
-
settle(q[0][3], e);
|
312
|
-
} }
|
313
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
314
|
-
function fulfill(value) { resume("next", value); }
|
315
|
-
function reject(value) { resume("throw", value); }
|
316
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
317
|
-
resume(q[0][0], q[0][1]); }
|
318
|
-
}
|
319
|
-
function __asyncDelegator(o) {
|
320
|
-
var i, p;
|
321
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
322
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
323
|
-
}
|
324
|
-
function __asyncValues(o) {
|
325
|
-
if (!Symbol.asyncIterator)
|
326
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
327
|
-
var m = o[Symbol.asyncIterator], i;
|
328
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
329
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
330
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
331
|
-
}
|
332
|
-
function __makeTemplateObject(cooked, raw) {
|
333
|
-
if (Object.defineProperty) {
|
334
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
335
|
-
}
|
336
|
-
else {
|
337
|
-
cooked.raw = raw;
|
338
|
-
}
|
339
|
-
return cooked;
|
340
|
-
}
|
341
|
-
;
|
342
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
343
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
344
|
-
}) : function (o, v) {
|
345
|
-
o["default"] = v;
|
346
|
-
};
|
347
|
-
function __importStar(mod) {
|
348
|
-
if (mod && mod.__esModule)
|
349
|
-
return mod;
|
350
|
-
var result = {};
|
351
|
-
if (mod != null)
|
352
|
-
for (var k in mod)
|
353
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
354
|
-
__createBinding(result, mod, k);
|
355
|
-
__setModuleDefault(result, mod);
|
356
|
-
return result;
|
357
|
-
}
|
358
|
-
function __importDefault(mod) {
|
359
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
360
|
-
}
|
361
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
362
|
-
if (kind === "a" && !f)
|
363
|
-
throw new TypeError("Private accessor was defined without a getter");
|
364
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
365
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
366
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
367
|
-
}
|
368
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
369
|
-
if (kind === "m")
|
370
|
-
throw new TypeError("Private method is not writable");
|
371
|
-
if (kind === "a" && !f)
|
372
|
-
throw new TypeError("Private accessor was defined without a setter");
|
373
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
374
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
375
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
376
|
-
}
|
377
|
-
|
378
|
-
/**
|
379
|
-
* Immutable year object
|
380
|
-
* @nosideeffects
|
381
|
-
*/
|
382
|
-
var TuiYear = /** @class */ (function () {
|
383
|
-
function TuiYear(year) {
|
384
|
-
this.year = year;
|
385
|
-
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
386
|
-
}
|
387
|
-
/**
|
388
|
-
* Checks year for validity
|
389
|
-
*/
|
390
|
-
TuiYear.isValidYear = function (year) {
|
391
|
-
return Number.isInteger(year) && math.tuiInRange(year, MIN_YEAR, MAX_YEAR + 1);
|
392
|
-
};
|
393
|
-
/**
|
394
|
-
* Check if passed year is a leap year
|
395
|
-
*/
|
396
|
-
TuiYear.isLeapYear = function (year) {
|
397
|
-
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
398
|
-
return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
|
399
|
-
};
|
400
|
-
/**
|
401
|
-
* Returns amount of leap years from year 0 to the passed one
|
402
|
-
*/
|
403
|
-
TuiYear.getAbsoluteLeapYears = function (year) {
|
404
|
-
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
405
|
-
return Math.ceil(year / 400) + (Math.ceil(year / 4) - Math.ceil(year / 100));
|
406
|
-
};
|
407
|
-
TuiYear.lengthBetween = function (from, to) {
|
408
|
-
return to.year - from.year;
|
409
|
-
};
|
410
|
-
/**
|
411
|
-
* Normalizes year by clamping it between min and max years
|
412
|
-
*/
|
413
|
-
TuiYear.normalizeYearPart = function (year) {
|
414
|
-
return math.tuiNormalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
|
415
|
-
};
|
416
|
-
Object.defineProperty(TuiYear.prototype, "formattedYear", {
|
417
|
-
get: function () {
|
418
|
-
return String(this.year).padStart(4, "0");
|
419
|
-
},
|
420
|
-
enumerable: false,
|
421
|
-
configurable: true
|
422
|
-
});
|
423
|
-
Object.defineProperty(TuiYear.prototype, "isLeapYear", {
|
424
|
-
get: function () {
|
425
|
-
return TuiYear.isLeapYear(this.year);
|
426
|
-
},
|
427
|
-
enumerable: false,
|
428
|
-
configurable: true
|
429
|
-
});
|
430
|
-
Object.defineProperty(TuiYear.prototype, "absoluteLeapYears", {
|
431
|
-
/**
|
432
|
-
* Returns amount of leap years from year 0 to current
|
433
|
-
*/
|
434
|
-
get: function () {
|
435
|
-
return TuiYear.getAbsoluteLeapYears(this.year);
|
436
|
-
},
|
437
|
-
enumerable: false,
|
438
|
-
configurable: true
|
439
|
-
});
|
440
|
-
/**
|
441
|
-
* Passed year is after current
|
442
|
-
*/
|
443
|
-
TuiYear.prototype.yearBefore = function (_a) {
|
444
|
-
var year = _a.year;
|
445
|
-
return this.year < year;
|
446
|
-
};
|
447
|
-
/**
|
448
|
-
* Passed year is the same or after current
|
449
|
-
*/
|
450
|
-
TuiYear.prototype.yearSameOrBefore = function (_a) {
|
451
|
-
var year = _a.year;
|
452
|
-
return this.year <= year;
|
453
|
-
};
|
454
|
-
/**
|
455
|
-
* Passed year is the same as current
|
456
|
-
*/
|
457
|
-
TuiYear.prototype.yearSame = function (_a) {
|
458
|
-
var year = _a.year;
|
459
|
-
return this.year === year;
|
460
|
-
};
|
461
|
-
/**
|
462
|
-
* Passed year is either the same of before the current
|
463
|
-
*/
|
464
|
-
TuiYear.prototype.yearSameOrAfter = function (_a) {
|
465
|
-
var year = _a.year;
|
466
|
-
return this.year >= year;
|
467
|
-
};
|
468
|
-
/**
|
469
|
-
* Passed year is before current
|
470
|
-
*/
|
471
|
-
TuiYear.prototype.yearAfter = function (_a) {
|
472
|
-
var year = _a.year;
|
473
|
-
return this.year > year;
|
474
|
-
};
|
475
|
-
/**
|
476
|
-
* Immutably offsets year
|
477
|
-
*/
|
478
|
-
TuiYear.prototype.append = function (_a) {
|
479
|
-
var _b = _a.year, year = _b === void 0 ? 0 : _b;
|
480
|
-
ngDevMode && classes.tuiAssert.assert(Number.isInteger(year));
|
481
|
-
var resultYear = this.year + year;
|
482
|
-
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(resultYear));
|
483
|
-
return new TuiYear(resultYear);
|
484
|
-
};
|
485
|
-
TuiYear.prototype.toString = function () {
|
486
|
-
return this.formattedYear;
|
487
|
-
};
|
488
|
-
TuiYear.prototype.valueOf = function () {
|
489
|
-
return this.year;
|
490
|
-
};
|
491
|
-
/**
|
492
|
-
* Returns the primitive value of the given Date object.
|
493
|
-
* Depending on the argument, the method can return either a string or a number.
|
494
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
495
|
-
*/
|
496
|
-
TuiYear.prototype[Symbol.toPrimitive] = function (hint) {
|
497
|
-
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
498
|
-
};
|
499
|
-
TuiYear.prototype.toJSON = function () {
|
500
|
-
return this.formattedYear;
|
501
|
-
};
|
502
|
-
return TuiYear;
|
503
|
-
}());
|
504
|
-
|
505
|
-
/**
|
506
|
-
* Immutable object consisting of year and month
|
507
|
-
*/
|
508
|
-
var TuiMonth = /** @class */ (function (_super) {
|
509
|
-
__extends(TuiMonth, _super);
|
510
|
-
/**
|
511
|
-
* @param year
|
512
|
-
* @param month (starting with 0)
|
513
|
-
*/
|
514
|
-
function TuiMonth(year, month) {
|
515
|
-
var _this = _super.call(this, year) || this;
|
516
|
-
_this.month = month;
|
517
|
-
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
518
|
-
return _this;
|
519
|
-
}
|
520
|
-
/**
|
521
|
-
* Tests month and year for validity
|
522
|
-
*/
|
523
|
-
TuiMonth.isValidMonth = function (year, month) {
|
524
|
-
return TuiYear.isValidYear(year) && TuiMonth.isValidMonthPart(month);
|
525
|
-
};
|
526
|
-
/**
|
527
|
-
* Returns number of days in a month
|
528
|
-
*/
|
529
|
-
TuiMonth.getMonthDaysCount = function (month, isLeapYear) {
|
530
|
-
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonthPart(month));
|
531
|
-
switch (month) {
|
532
|
-
case enums.TuiMonthNumber.February:
|
533
|
-
return isLeapYear ? 29 : 28;
|
534
|
-
case enums.TuiMonthNumber.April:
|
535
|
-
case enums.TuiMonthNumber.June:
|
536
|
-
case enums.TuiMonthNumber.September:
|
537
|
-
case enums.TuiMonthNumber.November:
|
538
|
-
return 30;
|
539
|
-
default:
|
540
|
-
return 31;
|
541
|
-
}
|
542
|
-
};
|
543
|
-
/**
|
544
|
-
* Returns current month and year based on local time zone
|
545
|
-
* @nosideeffects
|
546
|
-
*/
|
547
|
-
TuiMonth.currentLocal = function () {
|
548
|
-
var nativeDate = new Date();
|
549
|
-
return new TuiMonth(nativeDate.getFullYear(), nativeDate.getMonth());
|
550
|
-
};
|
551
|
-
/**
|
552
|
-
* Returns current month and year based on UTC
|
553
|
-
*/
|
554
|
-
TuiMonth.currentUtc = function () {
|
555
|
-
var nativeDate = new Date();
|
556
|
-
return new TuiMonth(nativeDate.getUTCFullYear(), nativeDate.getUTCMonth());
|
557
|
-
};
|
558
|
-
TuiMonth.lengthBetween = function (from, to) {
|
559
|
-
var absoluteFrom = from.month + from.year * 12;
|
560
|
-
var absoluteTo = to.month + to.year * 12;
|
561
|
-
return absoluteTo - absoluteFrom;
|
562
|
-
};
|
563
|
-
/**
|
564
|
-
* Normalizes number by clamping it between min and max month
|
565
|
-
*/
|
566
|
-
TuiMonth.normalizeMonthPart = function (month) {
|
567
|
-
return math.tuiNormalizeToIntNumber(month, MIN_MONTH, MAX_MONTH);
|
568
|
-
};
|
569
|
-
/**
|
570
|
-
* Tests month for validity
|
571
|
-
*/
|
572
|
-
TuiMonth.isValidMonthPart = function (month) {
|
573
|
-
return Number.isInteger(month) && math.tuiInRange(month, MIN_MONTH, MAX_MONTH + 1);
|
574
|
-
};
|
575
|
-
Object.defineProperty(TuiMonth.prototype, "formattedMonthPart", {
|
576
|
-
get: function () {
|
577
|
-
return String(this.month + 1).padStart(2, "0");
|
578
|
-
},
|
579
|
-
enumerable: false,
|
580
|
-
configurable: true
|
581
|
-
});
|
582
|
-
Object.defineProperty(TuiMonth.prototype, "daysCount", {
|
583
|
-
/**
|
584
|
-
* Returns days in a month
|
585
|
-
*/
|
586
|
-
get: function () {
|
587
|
-
return TuiMonth.getMonthDaysCount(this.month, this.isLeapYear);
|
588
|
-
},
|
589
|
-
enumerable: false,
|
590
|
-
configurable: true
|
591
|
-
});
|
592
|
-
/**
|
593
|
-
* Passed month and year are after current
|
594
|
-
*/
|
595
|
-
TuiMonth.prototype.monthBefore = function (another) {
|
596
|
-
return (this.yearBefore(another) ||
|
597
|
-
(this.yearSame(another) && this.month < another.month));
|
598
|
-
};
|
599
|
-
/**
|
600
|
-
* Passed month and year are after or the same as current
|
601
|
-
*/
|
602
|
-
TuiMonth.prototype.monthSameOrBefore = function (another) {
|
603
|
-
return (this.yearBefore(another) ||
|
604
|
-
(this.yearSame(another) && this.month <= another.month));
|
605
|
-
};
|
606
|
-
/**
|
607
|
-
* Passed month and year are the same as current
|
608
|
-
*/
|
609
|
-
TuiMonth.prototype.monthSame = function (another) {
|
610
|
-
return this.yearSame(another) && this.month === another.month;
|
611
|
-
};
|
612
|
-
/**
|
613
|
-
* Passed month and year are either before or equal to current
|
614
|
-
*/
|
615
|
-
TuiMonth.prototype.monthSameOrAfter = function (another) {
|
616
|
-
return (this.yearAfter(another) ||
|
617
|
-
(this.yearSame(another) && this.month >= another.month));
|
618
|
-
};
|
619
|
-
/**
|
620
|
-
* Passed month and year are before current
|
621
|
-
*/
|
622
|
-
TuiMonth.prototype.monthAfter = function (another) {
|
623
|
-
return (this.yearAfter(another) ||
|
624
|
-
(this.yearSame(another) && this.month > another.month));
|
625
|
-
};
|
626
|
-
/**
|
627
|
-
* Immutably alters current month and year by passed offset
|
628
|
-
*
|
629
|
-
* @param offset
|
630
|
-
* @return new month and year object as a result of offsetting current
|
631
|
-
*/
|
632
|
-
TuiMonth.prototype.append = function (_a) {
|
633
|
-
var _b = _a.year, year = _b === void 0 ? 0 : _b, _c = _a.month, month = _c === void 0 ? 0 : _c;
|
634
|
-
var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
635
|
-
return new TuiMonth(Math.floor(totalMonths / MONTHS_IN_YEAR), totalMonths % MONTHS_IN_YEAR);
|
636
|
-
};
|
637
|
-
TuiMonth.prototype.toString = function () {
|
638
|
-
return this.formattedMonthPart + "." + this.formattedYear;
|
639
|
-
};
|
640
|
-
TuiMonth.prototype.valueOf = function () {
|
641
|
-
return this.toLocalNativeDate().valueOf();
|
642
|
-
};
|
643
|
-
TuiMonth.prototype.toJSON = function () {
|
644
|
-
return _super.prototype.toJSON.call(this) + "-" + this.formattedMonthPart;
|
645
|
-
};
|
646
|
-
/**
|
647
|
-
* Returns native {@link Date} based on local time zone
|
648
|
-
*/
|
649
|
-
TuiMonth.prototype.toLocalNativeDate = function () {
|
650
|
-
return new Date(this.year, this.month);
|
651
|
-
};
|
652
|
-
/**
|
653
|
-
* Returns native {@link Date} based on UTC
|
654
|
-
*/
|
655
|
-
TuiMonth.prototype.toUtcNativeDate = function () {
|
656
|
-
return new Date(Date.UTC(this.year, this.month));
|
657
|
-
};
|
658
|
-
return TuiMonth;
|
659
|
-
}(TuiYear));
|
660
|
-
|
661
|
-
// TODO: Localized formatting
|
662
|
-
/**
|
663
|
-
* Immutable date object, consisting of day, month and year
|
664
|
-
*/
|
665
|
-
var TuiDay = /** @class */ (function (_super) {
|
666
|
-
__extends(TuiDay, _super);
|
667
|
-
function TuiDay(year, month, day) {
|
668
|
-
var _this = _super.call(this, year, month) || this;
|
669
|
-
_this.day = day;
|
670
|
-
ngDevMode && classes.tuiAssert.assert(TuiDay.isValidDay(year, month, day));
|
671
|
-
return _this;
|
672
|
-
}
|
673
|
-
/**
|
674
|
-
* Creates {@link TuiDay} from native {@link Date} based on local time zone
|
675
|
-
*/
|
676
|
-
TuiDay.fromLocalNativeDate = function (date) {
|
677
|
-
return new TuiDay(date.getFullYear(), date.getMonth(), date.getDate());
|
678
|
-
};
|
679
|
-
/**
|
680
|
-
* Creates {@link TuiDay} from native {@link Date} using UTC
|
681
|
-
*/
|
682
|
-
TuiDay.fromUtcNativeDate = function (date) {
|
683
|
-
return new TuiDay(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
684
|
-
};
|
685
|
-
/**
|
686
|
-
* Check validity of year, month and day
|
687
|
-
*
|
688
|
-
* @param year
|
689
|
-
* @param month
|
690
|
-
* @param day
|
691
|
-
* @return boolean validity
|
692
|
-
*/
|
693
|
-
TuiDay.isValidDay = function (year, month, day) {
|
694
|
-
return (TuiMonth.isValidMonth(year, month) &&
|
695
|
-
Number.isInteger(day) &&
|
696
|
-
math.tuiInRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1));
|
697
|
-
};
|
698
|
-
/**
|
699
|
-
* Current day based on local time zone
|
700
|
-
*/
|
701
|
-
TuiDay.currentLocal = function () {
|
702
|
-
var nativeDate = new Date();
|
703
|
-
var year = nativeDate.getFullYear();
|
704
|
-
var month = nativeDate.getMonth();
|
705
|
-
var day = nativeDate.getDate();
|
706
|
-
return new TuiDay(year, month, day);
|
707
|
-
};
|
708
|
-
/**
|
709
|
-
* Returns current day based on UTC
|
710
|
-
*/
|
711
|
-
TuiDay.currentUtc = function () {
|
712
|
-
var nativeDate = new Date();
|
713
|
-
var year = nativeDate.getUTCFullYear();
|
714
|
-
var month = nativeDate.getUTCMonth();
|
715
|
-
var day = nativeDate.getUTCDate();
|
716
|
-
return new TuiDay(year, month, day);
|
717
|
-
};
|
718
|
-
/**
|
719
|
-
* Calculates {@link TuiDay} normalizing year, month and day. {@link NaN} is turned into minimal value.
|
720
|
-
*
|
721
|
-
* @param year any year value, including invalid
|
722
|
-
* @param month any month value, including invalid (months start with 0)
|
723
|
-
* @param day any day value, including invalid
|
724
|
-
* @return normalized date
|
725
|
-
*/
|
726
|
-
TuiDay.normalizeOf = function (year, month, day) {
|
727
|
-
var normalizedYear = TuiYear.normalizeYearPart(year);
|
728
|
-
var normalizedMonth = TuiMonth.normalizeMonthPart(month);
|
729
|
-
var normalizedDay = TuiDay.normalizeDayPart(day, normalizedMonth, normalizedYear);
|
730
|
-
return new TuiDay(normalizedYear, normalizedMonth, normalizedDay);
|
731
|
-
};
|
732
|
-
TuiDay.lengthBetween = function (from, to) {
|
733
|
-
return Math.round((to.toLocalNativeDate().getTime() - from.toLocalNativeDate().getTime()) /
|
734
|
-
(1000 * 60 * 60 * 24));
|
735
|
-
};
|
736
|
-
TuiDay.parseRawDateString = function (date, dateMode) {
|
737
|
-
if (dateMode === void 0) { dateMode = "DMY"; }
|
738
|
-
ngDevMode &&
|
739
|
-
classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH, "[parseRawDateString]: wrong date string length");
|
740
|
-
switch (dateMode) {
|
741
|
-
case "YMD":
|
742
|
-
return {
|
743
|
-
day: parseInt(date.slice(8, 10), 10),
|
744
|
-
month: parseInt(date.slice(5, 7), 10) - 1,
|
745
|
-
year: parseInt(date.slice(0, 4), 10),
|
746
|
-
};
|
747
|
-
case "MDY":
|
748
|
-
return {
|
749
|
-
day: parseInt(date.slice(3, 5), 10),
|
750
|
-
month: parseInt(date.slice(0, 2), 10) - 1,
|
751
|
-
year: parseInt(date.slice(6, 10), 10),
|
752
|
-
};
|
753
|
-
default:
|
754
|
-
case "DMY":
|
755
|
-
return {
|
756
|
-
day: parseInt(date.slice(0, 2), 10),
|
757
|
-
month: parseInt(date.slice(3, 5), 10) - 1,
|
758
|
-
year: parseInt(date.slice(6, 10), 10),
|
759
|
-
};
|
760
|
-
}
|
761
|
-
};
|
762
|
-
// TODO: Move month and year related code corresponding classes
|
763
|
-
/**
|
764
|
-
* Parsing a string with date with normalization
|
765
|
-
*
|
766
|
-
* @param rawDate date string
|
767
|
-
* @param dateMode date format of the date string (DMY | MDY | YMD)
|
768
|
-
* @return normalized date
|
769
|
-
*/
|
770
|
-
TuiDay.normalizeParse = function (rawDate, dateMode) {
|
771
|
-
if (dateMode === void 0) { dateMode = "DMY"; }
|
772
|
-
var _a = this.parseRawDateString(rawDate, dateMode), day = _a.day, month = _a.month, year = _a.year;
|
773
|
-
return TuiDay.normalizeOf(year, month, day);
|
774
|
-
};
|
775
|
-
/**
|
776
|
-
* Parsing a date stringified in a toJSON format
|
777
|
-
* @param yearMonthDayString date string in format of YYYY-MM-DD
|
778
|
-
* @return date
|
779
|
-
* @throws exceptions if any part of the date is invalid
|
780
|
-
*/
|
781
|
-
TuiDay.jsonParse = function (yearMonthDayString) {
|
782
|
-
var _a = this.parseRawDateString(yearMonthDayString, "YMD"), day = _a.day, month = _a.month, year = _a.year;
|
783
|
-
if (!TuiYear.isValidYear(year)) {
|
784
|
-
throw new exceptions.TuiInvalidYearException(year);
|
785
|
-
}
|
786
|
-
if (!TuiMonth.isValidMonth(year, month)) {
|
787
|
-
throw new exceptions.TuiInvalidMonthException(month);
|
788
|
-
}
|
789
|
-
if (!Number.isInteger(day) ||
|
790
|
-
!math.tuiInRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1)) {
|
791
|
-
throw new exceptions.TuiInvalidDayException(day);
|
792
|
-
}
|
793
|
-
return new TuiDay(year, month, day);
|
794
|
-
};
|
795
|
-
TuiDay.normalizeDayPart = function (day, month, year) {
|
796
|
-
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
797
|
-
var monthDaysCount = TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year));
|
798
|
-
return math.tuiNormalizeToIntNumber(day, 1, monthDaysCount);
|
799
|
-
};
|
800
|
-
Object.defineProperty(TuiDay.prototype, "formattedDayPart", {
|
801
|
-
get: function () {
|
802
|
-
return String(this.day).padStart(2, "0");
|
803
|
-
},
|
804
|
-
enumerable: false,
|
805
|
-
configurable: true
|
806
|
-
});
|
807
|
-
Object.defineProperty(TuiDay.prototype, "isWeekend", {
|
808
|
-
get: function () {
|
809
|
-
var dayOfWeek = this.dayOfWeek(false);
|
810
|
-
return dayOfWeek === enums.TuiDayOfWeek.Saturday || dayOfWeek === enums.TuiDayOfWeek.Sunday;
|
811
|
-
},
|
812
|
-
enumerable: false,
|
813
|
-
configurable: true
|
814
|
-
});
|
815
|
-
/**
|
816
|
-
* Returns day of week
|
817
|
-
*
|
818
|
-
* @param startFromMonday whether week starts from Monday and not from Sunday
|
819
|
-
* @return day of week (from 0 to 6)
|
820
|
-
*/
|
821
|
-
TuiDay.prototype.dayOfWeek = function (startFromMonday) {
|
822
|
-
if (startFromMonday === void 0) { startFromMonday = true; }
|
823
|
-
var dayOfWeek = startFromMonday
|
824
|
-
? this.toLocalNativeDate().getDay() - 1
|
825
|
-
: this.toLocalNativeDate().getDay();
|
826
|
-
return dayOfWeek < 0 ? 6 : dayOfWeek;
|
827
|
-
};
|
828
|
-
/**
|
829
|
-
* Passed date is after current
|
830
|
-
*/
|
831
|
-
TuiDay.prototype.dayBefore = function (another) {
|
832
|
-
return (this.monthBefore(another) ||
|
833
|
-
(this.monthSame(another) && this.day < another.day));
|
834
|
-
};
|
835
|
-
/**
|
836
|
-
* Passed date is after or equals to current
|
837
|
-
*/
|
838
|
-
TuiDay.prototype.daySameOrBefore = function (another) {
|
839
|
-
return (this.monthBefore(another) ||
|
840
|
-
(this.monthSame(another) && this.day <= another.day));
|
841
|
-
};
|
842
|
-
/**
|
843
|
-
* Passed date is the same as current
|
844
|
-
*/
|
845
|
-
TuiDay.prototype.daySame = function (another) {
|
846
|
-
return this.monthSame(another) && this.day === another.day;
|
847
|
-
};
|
848
|
-
/**
|
849
|
-
* Passed date is either before or the same as current
|
850
|
-
*/
|
851
|
-
TuiDay.prototype.daySameOrAfter = function (another) {
|
852
|
-
return (this.monthAfter(another) ||
|
853
|
-
(this.monthSame(another) && this.day >= another.day));
|
854
|
-
};
|
855
|
-
/**
|
856
|
-
* Passed date is before current
|
857
|
-
*/
|
858
|
-
TuiDay.prototype.dayAfter = function (another) {
|
859
|
-
return (this.monthAfter(another) ||
|
860
|
-
(this.monthSame(another) && this.day > another.day));
|
861
|
-
};
|
862
|
-
/**
|
863
|
-
* Clamping date between two limits
|
864
|
-
*
|
865
|
-
* @param min
|
866
|
-
* @param max
|
867
|
-
* @return clamped date
|
868
|
-
*/
|
869
|
-
TuiDay.prototype.dayLimit = function (min, max) {
|
870
|
-
if (min !== null && this.dayBefore(min)) {
|
871
|
-
return min;
|
872
|
-
}
|
873
|
-
if (max !== null && this.dayAfter(max)) {
|
874
|
-
return max;
|
875
|
-
}
|
876
|
-
return this;
|
877
|
-
};
|
878
|
-
/**
|
879
|
-
* Immutably alters current day by passed offset
|
880
|
-
*
|
881
|
-
* If resulting month has more days than original one, date is rounded to the maximum day
|
882
|
-
* in the resulting month. Offset of days will be calculated based on the resulted year and month
|
883
|
-
* to not interfere with parent classes methods
|
884
|
-
*
|
885
|
-
* @param offset
|
886
|
-
* @return new date object as a result of offsetting current
|
887
|
-
*/
|
888
|
-
TuiDay.prototype.append = function (_a) {
|
889
|
-
var _b = _a.year, year = _b === void 0 ? 0 : _b, _c = _a.month, month = _c === void 0 ? 0 : _c, _d = _a.day, day = _d === void 0 ? 0 : _d;
|
890
|
-
var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
891
|
-
var years = Math.floor(totalMonths / MONTHS_IN_YEAR);
|
892
|
-
var months = totalMonths % MONTHS_IN_YEAR;
|
893
|
-
var days = Math.min(this.day, TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years))) + day;
|
894
|
-
while (days > TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years))) {
|
895
|
-
days -= TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years));
|
896
|
-
if (months === enums.TuiMonthNumber.December) {
|
897
|
-
years++;
|
898
|
-
months = enums.TuiMonthNumber.January;
|
899
|
-
}
|
900
|
-
else {
|
901
|
-
months++;
|
902
|
-
}
|
903
|
-
}
|
904
|
-
while (days < MIN_DAY) {
|
905
|
-
if (months === enums.TuiMonthNumber.January) {
|
906
|
-
years--;
|
907
|
-
months = enums.TuiMonthNumber.December;
|
908
|
-
}
|
909
|
-
else {
|
910
|
-
months--;
|
911
|
-
}
|
912
|
-
days += TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years));
|
913
|
-
}
|
914
|
-
return new TuiDay(years, months, days);
|
915
|
-
};
|
916
|
-
/**
|
917
|
-
* Returns formatted whole date
|
918
|
-
*/
|
919
|
-
TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
|
920
|
-
ngDevMode &&
|
921
|
-
classes.tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
|
922
|
-
var dd = this.formattedDayPart;
|
923
|
-
var mm = this.formattedMonthPart;
|
924
|
-
var yyyy = this.formattedYear;
|
925
|
-
switch (dateFormat) {
|
926
|
-
case "YMD":
|
927
|
-
return "" + yyyy + separator + mm + separator + dd;
|
928
|
-
case "MDY":
|
929
|
-
return "" + mm + separator + dd + separator + yyyy;
|
930
|
-
case "DMY":
|
931
|
-
default:
|
932
|
-
return "" + dd + separator + mm + separator + yyyy;
|
933
|
-
}
|
934
|
-
};
|
935
|
-
TuiDay.prototype.toString = function (dateFormat, separator) {
|
936
|
-
if (dateFormat === void 0) { dateFormat = "DMY"; }
|
937
|
-
if (separator === void 0) { separator = "."; }
|
938
|
-
return this.getFormattedDay(dateFormat, separator);
|
939
|
-
};
|
940
|
-
TuiDay.prototype.toJSON = function () {
|
941
|
-
return _super.prototype.toJSON.call(this) + "-" + this.formattedDayPart;
|
942
|
-
};
|
943
|
-
/**
|
944
|
-
* Returns native {@link Date} based on local time zone
|
945
|
-
*/
|
946
|
-
TuiDay.prototype.toLocalNativeDate = function () {
|
947
|
-
return new Date(this.year, this.month, this.day);
|
948
|
-
};
|
949
|
-
/**
|
950
|
-
* Returns native {@link Date} based on UTC
|
951
|
-
*/
|
952
|
-
TuiDay.prototype.toUtcNativeDate = function () {
|
953
|
-
return new Date(Date.UTC(this.year, this.month, this.day));
|
954
|
-
};
|
955
|
-
return TuiDay;
|
956
|
-
}(TuiMonth));
|
957
|
-
|
958
|
-
/**
|
959
|
-
* An immutable range of two {@link TuiMonth} objects
|
960
|
-
*/
|
961
|
-
var TuiMonthRange = /** @class */ (function () {
|
962
|
-
function TuiMonthRange(from, to) {
|
963
|
-
this.from = from;
|
964
|
-
this.to = to;
|
965
|
-
ngDevMode && classes.tuiAssert.assert(from.monthSameOrBefore(to));
|
966
|
-
}
|
967
|
-
TuiMonthRange.sort = function (month1, month2) {
|
968
|
-
return month1.monthSameOrBefore(month2)
|
969
|
-
? new TuiMonthRange(month1, month2)
|
970
|
-
: new TuiMonthRange(month2, month1);
|
971
|
-
};
|
972
|
-
Object.defineProperty(TuiMonthRange.prototype, "isSingleMonth", {
|
973
|
-
get: function () {
|
974
|
-
return this.from.monthSame(this.to);
|
975
|
-
},
|
976
|
-
enumerable: false,
|
977
|
-
configurable: true
|
978
|
-
});
|
979
|
-
TuiMonthRange.prototype.monthSame = function (another) {
|
980
|
-
return this.from.monthSame(another.from) && this.to.monthSame(another.to);
|
981
|
-
};
|
982
|
-
TuiMonthRange.prototype.toString = function () {
|
983
|
-
return "" + this.from + RANGE_SEPARATOR_CHAR + this.to;
|
984
|
-
};
|
985
|
-
return TuiMonthRange;
|
986
|
-
}());
|
987
|
-
|
988
|
-
/**
|
989
|
-
* An immutable range of two {@link TuiDay} objects
|
990
|
-
*/
|
991
|
-
var TuiDayRange = /** @class */ (function (_super) {
|
992
|
-
__extends(TuiDayRange, _super);
|
993
|
-
function TuiDayRange(from, to) {
|
994
|
-
var _this = _super.call(this, from, to) || this;
|
995
|
-
_this.from = from;
|
996
|
-
_this.to = to;
|
997
|
-
ngDevMode && classes.tuiAssert.assert(from.daySameOrBefore(to));
|
998
|
-
return _this;
|
999
|
-
}
|
1000
|
-
/**
|
1001
|
-
* Creates range from two days after sorting them
|
1002
|
-
*
|
1003
|
-
* @param day1
|
1004
|
-
* @param day2
|
1005
|
-
* @return new range with sorted days
|
1006
|
-
*/
|
1007
|
-
TuiDayRange.sort = function (day1, day2) {
|
1008
|
-
return day1.daySameOrBefore(day2)
|
1009
|
-
? new TuiDayRange(day1, day2)
|
1010
|
-
: new TuiDayRange(day2, day1);
|
1011
|
-
};
|
1012
|
-
/**
|
1013
|
-
* Parse and correct a day range in string format
|
1014
|
-
*
|
1015
|
-
* @param rangeString a string of dates in a format dd.mm.yyyy - dd.mm.yyyy
|
1016
|
-
* @param dateMode {@link TuiDateMode}
|
1017
|
-
* @return normalized day range object
|
1018
|
-
*/
|
1019
|
-
TuiDayRange.normalizeParse = function (rangeString, dateMode) {
|
1020
|
-
if (dateMode === void 0) { dateMode = "DMY"; }
|
1021
|
-
var leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
|
1022
|
-
if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
|
1023
|
-
return new TuiDayRange(leftDay, leftDay);
|
1024
|
-
}
|
1025
|
-
return TuiDayRange.sort(leftDay, TuiDay.normalizeParse(rangeString.slice(DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length), dateMode));
|
1026
|
-
};
|
1027
|
-
Object.defineProperty(TuiDayRange.prototype, "isSingleDay", {
|
1028
|
-
get: function () {
|
1029
|
-
return this.from.daySame(this.to);
|
1030
|
-
},
|
1031
|
-
enumerable: false,
|
1032
|
-
configurable: true
|
1033
|
-
});
|
1034
|
-
/**
|
1035
|
-
* Tests ranges for identity
|
1036
|
-
*
|
1037
|
-
* @param another second range to test against current
|
1038
|
-
* @return `true` if days are identical
|
1039
|
-
*/
|
1040
|
-
TuiDayRange.prototype.daySame = function (another) {
|
1041
|
-
return this.from.daySame(another.from) && this.to.daySame(another.to);
|
1042
|
-
};
|
1043
|
-
/**
|
1044
|
-
* Locks range between two days included, or limits from one side if the other is null
|
1045
|
-
*
|
1046
|
-
* @param min
|
1047
|
-
* @param max
|
1048
|
-
* @return range — clamped range
|
1049
|
-
*/
|
1050
|
-
TuiDayRange.prototype.dayLimit = function (min, max) {
|
1051
|
-
return new TuiDayRange(this.from.dayLimit(min, max), this.to.dayLimit(min, max));
|
1052
|
-
};
|
1053
|
-
/**
|
1054
|
-
* Human readable format.
|
1055
|
-
*/
|
1056
|
-
TuiDayRange.prototype.getFormattedDayRange = function (dateFormat, dateSeparator) {
|
1057
|
-
var from = this.from.getFormattedDay(dateFormat, dateSeparator);
|
1058
|
-
var to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
1059
|
-
return "" + from + RANGE_SEPARATOR_CHAR + to;
|
1060
|
-
};
|
1061
|
-
TuiDayRange.prototype.toString = function (dateFormat, dateSeparator) {
|
1062
|
-
if (dateFormat === void 0) { dateFormat = "DMY"; }
|
1063
|
-
if (dateSeparator === void 0) { dateSeparator = "."; }
|
1064
|
-
var from = this.from.getFormattedDay(dateFormat, dateSeparator);
|
1065
|
-
var to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
1066
|
-
return "" + from + RANGE_SEPARATOR_CHAR + to;
|
1067
|
-
};
|
1068
|
-
return TuiDayRange;
|
1069
|
-
}(TuiMonthRange));
|
1070
|
-
|
1071
|
-
var TUI_FIRST_DAY = new TuiDay(MIN_YEAR, MIN_MONTH, MIN_DAY);
|
1072
|
-
var TUI_LAST_DAY = new TuiDay(MAX_YEAR, MAX_MONTH, 31);
|
1073
|
-
|
1074
|
-
/**
|
1075
|
-
* Immutable time object with hours, minutes, seconds and ms
|
1076
|
-
*/
|
1077
|
-
var TuiTime = /** @class */ (function () {
|
1078
|
-
function TuiTime(hours, minutes, seconds, ms) {
|
1079
|
-
if (seconds === void 0) { seconds = 0; }
|
1080
|
-
if (ms === void 0) { ms = 0; }
|
1081
|
-
this.hours = hours;
|
1082
|
-
this.minutes = minutes;
|
1083
|
-
this.seconds = seconds;
|
1084
|
-
this.ms = ms;
|
1085
|
-
ngDevMode &&
|
1086
|
-
classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
|
1087
|
-
}
|
1088
|
-
/**
|
1089
|
-
* Checks if time is valid
|
1090
|
-
*/
|
1091
|
-
TuiTime.isValidTime = function (hours, minutes, seconds, ms) {
|
1092
|
-
if (seconds === void 0) { seconds = 0; }
|
1093
|
-
if (ms === void 0) { ms = 0; }
|
1094
|
-
return (Number.isInteger(hours) &&
|
1095
|
-
math.tuiInRange(hours, 0, HOURS_IN_DAY) &&
|
1096
|
-
Number.isInteger(minutes) &&
|
1097
|
-
math.tuiInRange(minutes, 0, MINUTES_IN_HOUR) &&
|
1098
|
-
Number.isInteger(seconds) &&
|
1099
|
-
math.tuiInRange(seconds, 0, SECONDS_IN_MINUTE) &&
|
1100
|
-
Number.isInteger(ms) &&
|
1101
|
-
math.tuiInRange(ms, 0, 1000));
|
1102
|
-
};
|
1103
|
-
/**
|
1104
|
-
* Current UTC time.
|
1105
|
-
*/
|
1106
|
-
TuiTime.current = function () {
|
1107
|
-
return TuiTime.fromAbsoluteMilliseconds(Date.now() % MILLISECONDS_IN_DAY);
|
1108
|
-
};
|
1109
|
-
/**
|
1110
|
-
* Current time in local timezone
|
1111
|
-
*/
|
1112
|
-
TuiTime.currentLocal = function () {
|
1113
|
-
var date = new Date();
|
1114
|
-
return TuiTime.fromAbsoluteMilliseconds((Date.now() - date.getTimezoneOffset() * MILLISECONDS_IN_MINUTE) %
|
1115
|
-
MILLISECONDS_IN_DAY);
|
1116
|
-
};
|
1117
|
-
/**
|
1118
|
-
* Calculates TuiTime from milliseconds
|
1119
|
-
*/
|
1120
|
-
TuiTime.fromAbsoluteMilliseconds = function (milliseconds) {
|
1121
|
-
ngDevMode && classes.tuiAssert.assert(Number.isInteger(milliseconds));
|
1122
|
-
ngDevMode &&
|
1123
|
-
classes.tuiAssert.assert(math.tuiInRange(milliseconds, 0, MILLISECONDS_IN_DAY), "Milliseconds must be below " + MILLISECONDS_IN_DAY + " (milliseconds in a day).");
|
1124
|
-
var hours = Math.floor(milliseconds / MILLISECONDS_IN_HOUR);
|
1125
|
-
var minutes = Math.floor((milliseconds % MILLISECONDS_IN_HOUR) / MILLISECONDS_IN_MINUTE);
|
1126
|
-
var seconds = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) / 1000) || 0;
|
1127
|
-
var ms = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) % 1000) || 0;
|
1128
|
-
return new TuiTime(hours, minutes, seconds, ms);
|
1129
|
-
};
|
1130
|
-
/**
|
1131
|
-
* Parses string into TuiTime object
|
1132
|
-
*/
|
1133
|
-
TuiTime.fromString = function (time) {
|
1134
|
-
var hours = Number(time.slice(0, 2));
|
1135
|
-
var minutes = Number(time.slice(3, 5));
|
1136
|
-
var seconds = Number(time.slice(6, 8)) || 0;
|
1137
|
-
var ms = Number(time.slice(9, 12)) || 0;
|
1138
|
-
return new TuiTime(hours, minutes, seconds, ms);
|
1139
|
-
};
|
1140
|
-
/**
|
1141
|
-
* Converts Date object into TuiTime
|
1142
|
-
* @param date
|
1143
|
-
*/
|
1144
|
-
TuiTime.fromLocalNativeDate = function (date) {
|
1145
|
-
return new TuiTime(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
1146
|
-
};
|
1147
|
-
/**
|
1148
|
-
* Shifts time by hours and minutes
|
1149
|
-
*/
|
1150
|
-
TuiTime.prototype.shift = function (_a) {
|
1151
|
-
var _b = _a.hours, hours = _b === void 0 ? 0 : _b, _c = _a.minutes, minutes = _c === void 0 ? 0 : _c, _d = _a.seconds, seconds = _d === void 0 ? 0 : _d, _e = _a.ms, ms = _e === void 0 ? 0 : _e;
|
1152
|
-
var newMs = (1000 + this.ms + (ms % 1000)) % 1000;
|
1153
|
-
var secondsInMs = ms < 0 ? Math.ceil(ms / 1000) : Math.floor(ms / 1000);
|
1154
|
-
var secondsToAdd = secondsInMs + seconds;
|
1155
|
-
var newSeconds = (60 + this.seconds + (secondsToAdd % 60)) % 60;
|
1156
|
-
var minutesInSeconds = secondsToAdd < 0
|
1157
|
-
? Math.ceil(secondsToAdd / 60)
|
1158
|
-
: Math.floor(secondsToAdd / 60);
|
1159
|
-
var minutesToAdd = minutesInSeconds + minutes;
|
1160
|
-
var newMinutes = (60 + this.minutes + (minutesToAdd % 60)) % 60;
|
1161
|
-
var hoursInMinutes = minutesToAdd < 0
|
1162
|
-
? Math.ceil(minutesToAdd / 60)
|
1163
|
-
: Math.floor(minutesToAdd / 60);
|
1164
|
-
var hoursToAdd = hoursInMinutes + hours;
|
1165
|
-
var newHours = (24 + this.hours + (hoursToAdd % 24)) % 24;
|
1166
|
-
return new TuiTime(newHours, newMinutes, newSeconds, newMs);
|
1167
|
-
};
|
1168
|
-
/**
|
1169
|
-
* Converts TuiTime to string
|
1170
|
-
*/
|
1171
|
-
TuiTime.prototype.toString = function (mode) {
|
1172
|
-
var needAddMs = mode === "HH:MM:SS.MSS" || (!mode && this.ms > 0);
|
1173
|
-
var needAddSeconds = needAddMs || mode === "HH:MM:SS" || (!mode && this.seconds > 0);
|
1174
|
-
return (this.formatTime(this.hours) + ":" + this.formatTime(this.minutes) +
|
1175
|
-
("" + (needAddSeconds ? ":" + this.formatTime(this.seconds) : "")) +
|
1176
|
-
("" + (needAddMs ? "." + this.formatTime(this.ms, 3) : "")));
|
1177
|
-
};
|
1178
|
-
TuiTime.prototype.valueOf = function () {
|
1179
|
-
return this.toAbsoluteMilliseconds();
|
1180
|
-
};
|
1181
|
-
/**
|
1182
|
-
* Returns the primitive value of the given Date object.
|
1183
|
-
* Depending on the argument, the method can return either a string or a number.
|
1184
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
1185
|
-
*/
|
1186
|
-
TuiTime.prototype[Symbol.toPrimitive] = function (hint) {
|
1187
|
-
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
1188
|
-
};
|
1189
|
-
/**
|
1190
|
-
* Converts TuiTime to milliseconds
|
1191
|
-
*/
|
1192
|
-
TuiTime.prototype.toAbsoluteMilliseconds = function () {
|
1193
|
-
return (this.hours * MILLISECONDS_IN_HOUR +
|
1194
|
-
this.minutes * MILLISECONDS_IN_MINUTE +
|
1195
|
-
this.seconds * 1000 +
|
1196
|
-
this.ms);
|
1197
|
-
};
|
1198
|
-
TuiTime.prototype.formatTime = function (time, digits) {
|
1199
|
-
if (digits === void 0) { digits = 2; }
|
1200
|
-
return String(time).padStart(digits, "0");
|
1201
|
-
};
|
1202
|
-
return TuiTime;
|
1203
|
-
}());
|
1204
|
-
|
1205
|
-
/**
|
1206
|
-
* Generated bundle index. Do not edit.
|
1207
|
-
*/
|
1208
|
-
|
1209
|
-
exports.DATE_FILLER_LENGTH = DATE_FILLER_LENGTH;
|
1210
|
-
exports.DATE_RANGE_FILLER_LENGTH = DATE_RANGE_FILLER_LENGTH;
|
1211
|
-
exports.DAYS_IN_LEAP_YEAR = DAYS_IN_LEAP_YEAR;
|
1212
|
-
exports.DAYS_IN_NORMAL_YEAR = DAYS_IN_NORMAL_YEAR;
|
1213
|
-
exports.DAYS_IN_WEEK = DAYS_IN_WEEK;
|
1214
|
-
exports.HOURS_IN_DAY = HOURS_IN_DAY;
|
1215
|
-
exports.MAX_MONTH = MAX_MONTH;
|
1216
|
-
exports.MAX_YEAR = MAX_YEAR;
|
1217
|
-
exports.MILLISECONDS_IN_DAY = MILLISECONDS_IN_DAY;
|
1218
|
-
exports.MILLISECONDS_IN_HOUR = MILLISECONDS_IN_HOUR;
|
1219
|
-
exports.MILLISECONDS_IN_MINUTE = MILLISECONDS_IN_MINUTE;
|
1220
|
-
exports.MILLISECONDS_IN_SECOND = MILLISECONDS_IN_SECOND;
|
1221
|
-
exports.MINUTES_IN_HOUR = MINUTES_IN_HOUR;
|
1222
|
-
exports.MIN_DAY = MIN_DAY;
|
1223
|
-
exports.MIN_MONTH = MIN_MONTH;
|
1224
|
-
exports.MIN_YEAR = MIN_YEAR;
|
1225
|
-
exports.MONTHS_IN_YEAR = MONTHS_IN_YEAR;
|
1226
|
-
exports.RANGE_SEPARATOR_CHAR = RANGE_SEPARATOR_CHAR;
|
1227
|
-
exports.SECONDS_IN_MINUTE = SECONDS_IN_MINUTE;
|
1228
|
-
exports.TUI_DATE_FORMAT = TUI_DATE_FORMAT;
|
1229
|
-
exports.TUI_DATE_SEPARATOR = TUI_DATE_SEPARATOR;
|
1230
|
-
exports.TUI_FIRST_DAY = TUI_FIRST_DAY;
|
1231
|
-
exports.TUI_LAST_DAY = TUI_LAST_DAY;
|
1232
|
-
exports.TuiDay = TuiDay;
|
1233
|
-
exports.TuiDayRange = TuiDayRange;
|
1234
|
-
exports.TuiMonth = TuiMonth;
|
1235
|
-
exports.TuiMonthRange = TuiMonthRange;
|
1236
|
-
exports.TuiTime = TuiTime;
|
1237
|
-
exports.TuiYear = TuiYear;
|
1238
|
-
exports.changeDateSeparator = changeDateSeparator;
|
1239
|
-
exports.tuiDateClamp = tuiDateClamp;
|
1240
|
-
|
1241
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
1242
|
-
|
1243
|
-
}));
|
1244
|
-
//# sourceMappingURL=taiga-ui-cdk-date-time.umd.js.map
|