@taiga-ui/cdk 3.0.0-rc.0 → 3.0.0-rc.3
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/abstract/control.d.ts +2 -1
- package/abstract/dialog.service.d.ts +1 -1
- package/abstract/portal-host.d.ts +5 -3
- package/abstract/portal-service.d.ts +3 -2
- package/abstract/theme-switcher.d.ts +0 -1
- package/bundles/taiga-ui-cdk-abstract.umd.js +25 -16
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +0 -8
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +0 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +3 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +18 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +3 -29
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +5 -6
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +8 -9
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +0 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -6
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +11 -9
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +0 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +0 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +7 -10
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +4 -11
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +10 -12
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +0 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +1 -2
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +0 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +0 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +0 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +20 -76
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js +68 -0
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -0
- package/bundles/taiga-ui-cdk-pipes.umd.js +10 -4
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +37 -72
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +46 -20
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +3 -26
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +81 -0
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -0
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +57 -87
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +24 -67
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +0 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +8 -48
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +349 -84
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +5 -21
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +1 -5
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +10 -4
- package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
- package/classes/assert.d.ts +0 -3
- package/constants/browser.d.ts +4 -0
- package/constants/index.d.ts +1 -0
- package/constants/unicode-chars.d.ts +8 -0
- package/constants/version.d.ts +1 -0
- package/constants/version.js +4 -0
- package/date-time/day-range.d.ts +0 -5
- package/date-time/day.d.ts +1 -2
- package/date-time/month.d.ts +1 -2
- package/date-time/year.d.ts +1 -1
- package/directives/auto-focus/autofocus.directive.d.ts +2 -2
- package/directives/focus-visible/focus-visible.directive.d.ts +0 -1
- package/directives/high-dpi/high-dpi.directive.d.ts +0 -1
- package/directives/media/media.directive.d.ts +0 -2
- package/directives/overscroll/overscroll.directive.d.ts +0 -1
- package/directives/prevent-default/prevent-default.directive.d.ts +0 -1
- package/esm2015/abstract/control.js +7 -1
- package/esm2015/abstract/dialog.service.js +1 -1
- package/esm2015/abstract/portal-host.js +18 -15
- package/esm2015/abstract/portal-service.js +4 -4
- package/esm2015/abstract/theme-switcher.js +1 -2
- package/esm2015/classes/assert.js +1 -8
- package/esm2015/components/dialog-host/dialog-host.component.js +1 -2
- package/esm2015/components/dropdown-host/dropdown-host.component.js +4 -2
- package/esm2015/constants/browser.js +5 -1
- package/esm2015/constants/index.js +2 -1
- package/esm2015/constants/parent-animation.js +2 -2
- package/esm2015/constants/unicode-chars.js +9 -1
- package/esm2015/constants/version.js +2 -0
- package/esm2015/date-time/day-range.js +1 -6
- package/esm2015/date-time/day.js +2 -9
- package/esm2015/date-time/month.js +2 -8
- package/esm2015/date-time/year.js +2 -6
- package/esm2015/directives/active-zone/active-zone.directive.js +3 -6
- package/esm2015/directives/auto-focus/autofocus.directive.js +6 -5
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +1 -2
- package/esm2015/directives/autofilled/autofilled-style.component.js +1 -1
- package/esm2015/directives/copy-processor/copy-processor.directive.js +1 -2
- package/esm2015/directives/drag/drag.directive.js +3 -3
- package/esm2015/directives/droppable/droppable.directive.js +7 -8
- package/esm2015/directives/focus-trap/focus-trap.directive.js +14 -12
- package/esm2015/directives/focus-visible/focus-visible.directive.js +1 -2
- package/esm2015/directives/focused/focused.directive.js +3 -3
- package/esm2015/directives/high-dpi/high-dpi.directive.js +1 -2
- package/esm2015/directives/hovered/hovered.service.js +5 -8
- package/esm2015/directives/media/media.directive.js +5 -10
- package/esm2015/directives/overscroll/overscroll.directive.js +13 -15
- package/esm2015/directives/pan/pan.directive.js +1 -2
- package/esm2015/directives/pressed/pressed.directive.js +3 -3
- package/esm2015/directives/prevent-default/prevent-default.directive.js +3 -4
- package/esm2015/directives/repeat-times/repeat-times.directive.js +3 -3
- package/esm2015/directives/resize/resize.directive.js +1 -2
- package/esm2015/directives/swipe/swipe.directive.js +1 -2
- package/esm2015/directives/zoom/zoom.directive.js +1 -2
- package/esm2015/observables/drag-and-drop-from.js +6 -11
- package/esm2015/observables/focus-visible-observable.js +7 -12
- package/esm2015/observables/items-query-list-observable.js +4 -7
- package/esm2015/observables/mouse-drag-finish-from.js +4 -7
- package/esm2015/observables/must-be-present.js +4 -9
- package/esm2015/observables/pressed-observable.js +5 -10
- package/esm2015/observables/prevent-default.js +2 -7
- package/esm2015/observables/stop-propagation.js +2 -7
- package/esm2015/observables/typed-from-event.js +2 -7
- package/esm2015/observables/watch.js +2 -7
- package/esm2015/pipes/index.js +2 -1
- package/esm2015/pipes/keys/index.js +3 -0
- package/esm2015/pipes/keys/keys.module.js +16 -0
- package/esm2015/pipes/keys/keys.pipe.js +14 -0
- package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js +5 -0
- package/esm2015/services/directive-styles.service.js +3 -26
- package/esm2015/services/focus-visible.service.js +3 -4
- package/esm2015/services/obscured.service.js +3 -5
- package/esm2015/services/pan.service.js +6 -9
- package/esm2015/services/parents-scroll.service.js +3 -5
- package/esm2015/services/resize.service.js +1 -2
- package/esm2015/services/scroll.service.js +4 -5
- package/esm2015/services/swipe.service.js +6 -9
- package/esm2015/services/zoom.service.js +8 -9
- package/esm2015/tokens/active-element.js +16 -16
- package/esm2015/tokens/alerts.js +8 -1
- package/esm2015/tokens/dialogs.js +8 -1
- package/esm2015/tokens/focusable-item-accessor.js +7 -1
- package/esm2015/tokens/index.js +2 -2
- package/esm2015/tokens/is-apple.js +3 -3
- package/esm2015/tokens/is-cypress.js +1 -1
- package/esm2015/tokens/is-ios.js +3 -3
- package/esm2015/tokens/range.js +8 -0
- package/esm2015/tokens/window-height.js +3 -3
- package/esm2015/utils/browser/index.js +1 -2
- package/esm2015/utils/browser/is-edge.js +2 -7
- package/esm2015/utils/browser/is-firefox.js +2 -7
- package/esm2015/utils/browser/is-safari.js +2 -7
- package/esm2015/utils/color/hex-to-rgb.js +12 -0
- package/esm2015/utils/color/hsv-to-rgb.js +11 -0
- package/esm2015/utils/color/index.js +6 -0
- package/esm2015/utils/color/parse-color.js +27 -0
- package/esm2015/utils/color/rgb-to-hex.js +4 -0
- package/esm2015/utils/color/rgb-to-hsv.js +7 -0
- package/esm2015/utils/color/taiga-ui-cdk-utils-color.js +5 -0
- package/esm2015/utils/dom/can-scroll.js +2 -7
- package/esm2015/utils/dom/contains-or-after.js +2 -7
- package/esm2015/utils/dom/element-checks.js +21 -0
- package/esm2015/utils/dom/get-actual-target.js +2 -5
- package/esm2015/utils/dom/get-clipboard-data-text.js +2 -5
- package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -7
- package/esm2015/utils/dom/get-element-obscurers.js +14 -17
- package/esm2015/utils/dom/get-element-offset.js +4 -7
- package/esm2015/utils/dom/get-scroll-parent.js +3 -6
- package/esm2015/utils/dom/get-selected-text.js +3 -3
- package/esm2015/utils/dom/index.js +3 -2
- package/esm2015/utils/dom/is-current-target.js +2 -7
- package/esm2015/utils/dom/is-element-editable.js +5 -0
- package/esm2015/utils/dom/is-inside-iframe.js +2 -5
- package/esm2015/utils/dom/is-node-in.js +5 -7
- package/esm2015/utils/focus/blur-native-focused.js +4 -7
- package/esm2015/utils/focus/get-closest-focusable.js +26 -0
- package/esm2015/utils/focus/get-native-focused.js +3 -3
- package/esm2015/utils/focus/index.js +2 -3
- package/esm2015/utils/focus/is-native-focused-in.js +1 -2
- package/esm2015/utils/focus/is-native-focused.js +1 -2
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +3 -3
- package/esm2015/utils/focus/is-native-mouse-focusable.js +1 -4
- package/esm2015/utils/focus/move-focus.js +2 -4
- package/esm2015/utils/focus/set-native-mouse-focused.js +8 -7
- package/esm2015/utils/format/px.js +1 -2
- package/esm2015/utils/index.js +2 -1
- package/esm2015/utils/math/clamp.js +2 -5
- package/esm2015/utils/math/quantize.js +2 -5
- package/esm2015/utils/math/round.js +4 -19
- package/esm2015/utils/math/sum.js +2 -5
- package/esm2015/utils/math/to-int.js +2 -7
- package/esm2015/utils/math/to-radians.js +2 -5
- package/esm2015/utils/miscellaneous/array-remove.js +4 -0
- package/esm2015/utils/miscellaneous/array-toggle.js +6 -0
- package/esm2015/utils/miscellaneous/distance-between-touches.js +2 -7
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -7
- package/esm2015/utils/miscellaneous/flat-length.js +2 -5
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +2 -5
- package/esm2015/utils/miscellaneous/get-swipe-direction.js +2 -7
- package/esm2015/utils/miscellaneous/index.js +3 -3
- package/esm2015/utils/miscellaneous/is-number.js +2 -7
- package/esm2015/utils/miscellaneous/is-present.js +2 -7
- package/esm2015/utils/miscellaneous/mark-control-as-touched-and-validate.js +4 -9
- package/esm2015/utils/miscellaneous/uniq-by.js +2 -7
- package/esm2015/utils/os/is-apple-platform.js +2 -5
- package/esm2015/utils/os/is-apple.js +4 -9
- package/esm2015/utils/os/is-ios.js +4 -9
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +2 -5
- package/fesm2015/taiga-ui-cdk-abstract.js +26 -18
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +1 -8
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +0 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +3 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +16 -2
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +4 -26
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +2 -5
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +5 -5
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +6 -7
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +13 -11
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +4 -7
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +5 -10
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +12 -14
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +2 -3
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +21 -67
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js +34 -0
- package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -0
- package/fesm2015/taiga-ui-cdk-pipes.js +1 -0
- package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +25 -60
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +46 -23
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +4 -23
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +67 -0
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -0
- package/fesm2015/taiga-ui-cdk-utils-dom.js +53 -78
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +21 -57
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +0 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +9 -41
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +21 -73
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +6 -19
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +2 -5
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils.js +1 -0
- package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
- package/observables/drag-and-drop-from.d.ts +1 -5
- package/observables/focus-visible-observable.d.ts +1 -5
- package/observables/items-query-list-observable.d.ts +1 -3
- package/observables/mouse-drag-finish-from.d.ts +1 -3
- package/observables/must-be-present.d.ts +1 -5
- package/observables/pressed-observable.d.ts +1 -5
- package/observables/prevent-default.d.ts +1 -5
- package/observables/stop-propagation.d.ts +1 -5
- package/observables/typed-from-event.d.ts +5 -21
- package/observables/watch.d.ts +1 -5
- package/package.json +7 -3
- package/pipes/index.d.ts +1 -0
- package/pipes/keys/index.d.ts +2 -0
- package/pipes/keys/keys.module.d.ts +7 -0
- package/pipes/keys/keys.pipe.d.ts +7 -0
- package/pipes/keys/package.json +10 -0
- package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +5 -0
- package/schematics/collection.json +6 -0
- package/schematics/constants/file-globs.d.ts +2 -0
- package/schematics/constants/file-globs.js +11 -0
- package/schematics/constants/index.d.ts +1 -0
- package/schematics/constants/index.js +4 -0
- package/schematics/constants/taiga-styles.d.ts +2 -1
- package/schematics/constants/taiga-styles.js +3 -2
- package/schematics/ng-add/constants/versions.js +2 -2
- package/schematics/ng-add/index.js +6 -0
- package/schematics/ng-add/schema.d.ts +8 -0
- package/schematics/ng-add/schema.json +9 -0
- package/schematics/ng-add/steps/add-taiga-icons.js +5 -3
- package/schematics/ng-add/steps/add-taiga-modules.js +4 -0
- package/schematics/ng-add/steps/add-taiga-styles.js +6 -3
- package/schematics/ng-add/steps/wrap-with-tui-root.js +3 -0
- package/schematics/ng-update/constants/breakpoints.d.ts +82 -0
- package/schematics/ng-update/constants/breakpoints.js +34 -0
- package/schematics/ng-update/constants/consts.d.ts +1 -1
- package/schematics/ng-update/constants/consts.js +170 -0
- package/schematics/ng-update/constants/deprecated-functions.js +1 -36
- package/schematics/ng-update/constants/services.js +1 -1
- package/schematics/ng-update/constants/templates.d.ts +16 -0
- package/schematics/ng-update/constants/templates.js +261 -1
- package/schematics/ng-update/constants/warnings.js +10 -0
- package/schematics/ng-update/index.js +21 -10
- package/schematics/ng-update/schema.json +13 -0
- package/schematics/ng-update/steps/migrate-date-time.js +45 -1
- package/schematics/ng-update/steps/migrate-progress.d.ts +1 -1
- package/schematics/ng-update/steps/migrate-progress.js +2 -1
- package/schematics/ng-update/steps/migrate-sliders/index.d.ts +1 -1
- package/schematics/ng-update/steps/migrate-sliders/index.js +2 -0
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.d.ts +1 -1
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.js +4 -3
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-slider.d.ts +1 -1
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-slider.js +3 -2
- package/schematics/ng-update/steps/migrate-taiga-proprietary-icons.d.ts +3 -0
- package/schematics/ng-update/steps/migrate-taiga-proprietary-icons.js +51 -0
- package/schematics/ng-update/steps/migrate-templates.d.ts +1 -1
- package/schematics/ng-update/steps/migrate-templates.js +77 -5
- package/schematics/ng-update/steps/replace-deep-import.js +2 -1
- package/schematics/ng-update/steps/replace-enums.js +2 -1
- package/schematics/ng-update/steps/replace-functions.js +42 -2
- package/schematics/ng-update/steps/replace-styles.d.ts +1 -0
- package/schematics/ng-update/steps/replace-styles.js +18 -0
- package/schematics/ng-update/steps/show-warnings.js +2 -1
- package/schematics/utils/add-import-to-closest-module.d.ts +1 -0
- package/schematics/utils/add-import-to-closest-module.js +18 -0
- package/schematics/utils/add-styles.d.ts +6 -2
- package/schematics/utils/add-styles.js +32 -4
- package/schematics/utils/angular/ng-component.d.ts +1 -2
- package/schematics/utils/angular/ng-module.d.ts +1 -2
- package/schematics/utils/angular/ng-module.js +2 -1
- package/schematics/utils/colored-log.d.ts +1 -0
- package/schematics/utils/colored-log.js +5 -1
- package/schematics/utils/get-execution-time.d.ts +1 -0
- package/schematics/utils/get-execution-time.js +8 -0
- package/schematics/utils/get-named-import-references.js +2 -1
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +0 -4
- package/schematics/utils/insert-todo.d.ts +1 -0
- package/schematics/utils/insert-todo.js +3 -2
- package/schematics/utils/progress.d.ts +1 -0
- package/schematics/utils/progress.js +13 -0
- package/schematics/utils/templates/get-component-templates.d.ts +1 -2
- package/schematics/utils/templates/get-component-templates.js +1 -1
- package/schematics/utils/templates/ng-component-input-manipulations.js +2 -12
- package/schematics/utils/templates/template-resource.d.ts +1 -1
- package/services/directive-styles.service.d.ts +2 -9
- package/services/focus-visible.service.d.ts +0 -1
- package/services/pan.service.d.ts +0 -3
- package/services/swipe.service.d.ts +0 -3
- package/tokens/alerts.d.ts +2 -1
- package/tokens/dialogs.d.ts +2 -1
- package/tokens/focusable-item-accessor.d.ts +2 -1
- package/tokens/index.d.ts +1 -1
- package/tokens/is-cypress.d.ts +0 -3
- package/tokens/range.d.ts +2 -0
- package/utils/browser/index.d.ts +0 -1
- package/utils/browser/is-edge.d.ts +1 -5
- package/utils/browser/is-firefox.d.ts +1 -5
- package/utils/browser/is-safari.d.ts +1 -5
- package/utils/color/hex-to-rgb.d.ts +1 -0
- package/utils/color/hsv-to-rgb.d.ts +4 -0
- package/utils/color/index.d.ts +5 -0
- package/utils/color/package.json +10 -0
- package/utils/color/parse-color.d.ts +1 -0
- package/utils/color/rgb-to-hex.d.ts +1 -0
- package/utils/color/rgb-to-hsv.d.ts +1 -0
- package/utils/color/taiga-ui-cdk-utils-color.d.ts +5 -0
- package/utils/dom/can-scroll.d.ts +1 -5
- package/utils/dom/contains-or-after.d.ts +1 -5
- package/utils/dom/element-checks.d.ts +6 -0
- package/utils/dom/get-actual-target.d.ts +1 -3
- package/utils/dom/get-clipboard-data-text.d.ts +1 -3
- package/utils/dom/get-document-or-shadow-root.d.ts +1 -5
- package/utils/dom/get-element-obscurers.d.ts +1 -3
- package/utils/dom/get-element-offset.d.ts +1 -3
- package/utils/dom/get-scroll-parent.d.ts +1 -3
- package/utils/dom/index.d.ts +2 -1
- package/utils/dom/is-current-target.d.ts +1 -5
- package/utils/dom/is-element-editable.d.ts +1 -0
- package/utils/dom/is-inside-iframe.d.ts +1 -3
- package/utils/dom/is-node-in.d.ts +1 -3
- package/utils/focus/blur-native-focused.d.ts +1 -3
- package/utils/focus/get-closest-focusable.d.ts +27 -0
- package/utils/focus/index.d.ts +1 -2
- package/utils/focus/is-native-mouse-focusable.d.ts +0 -2
- package/utils/focus/set-native-mouse-focused.d.ts +1 -3
- package/utils/index.d.ts +1 -0
- package/utils/math/clamp.d.ts +1 -3
- package/utils/math/quantize.d.ts +1 -3
- package/utils/math/round.d.ts +3 -15
- package/utils/math/sum.d.ts +1 -3
- package/utils/math/to-int.d.ts +1 -5
- package/utils/math/to-radians.d.ts +1 -3
- package/utils/miscellaneous/array-remove.d.ts +1 -0
- package/utils/miscellaneous/array-toggle.d.ts +1 -0
- package/utils/miscellaneous/distance-between-touches.d.ts +1 -5
- package/utils/miscellaneous/ease-in-out-quad.d.ts +1 -5
- package/utils/miscellaneous/flat-length.d.ts +1 -3
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +1 -3
- package/utils/miscellaneous/get-swipe-direction.d.ts +1 -5
- package/utils/miscellaneous/index.d.ts +2 -2
- package/utils/miscellaneous/is-number.d.ts +1 -5
- package/utils/miscellaneous/is-present.d.ts +1 -5
- package/utils/miscellaneous/mark-control-as-touched-and-validate.d.ts +1 -5
- package/utils/miscellaneous/uniq-by.d.ts +1 -5
- package/utils/os/is-apple-platform.d.ts +1 -3
- package/utils/os/is-apple.d.ts +1 -5
- package/utils/os/is-ios.d.ts +1 -5
- package/utils/svg/svg-linear-gradient-processor.d.ts +1 -3
- package/esm2015/tokens/sanitizer.js +0 -4
- package/esm2015/utils/browser/is-ie.js +0 -4
- package/esm2015/utils/dom/is-form-field.js +0 -8
- package/esm2015/utils/focus/get-closest-keyboard-focusable.js +0 -34
- package/esm2015/utils/focus/set-native-focused.js +0 -19
- package/esm2015/utils/miscellaneous/identity.js +0 -8
- package/esm2015/utils/miscellaneous/is-element-editable.js +0 -12
- package/tokens/sanitizer.d.ts +0 -2
- package/utils/browser/is-ie.d.ts +0 -1
- package/utils/dom/is-form-field.d.ts +0 -1
- package/utils/focus/get-closest-keyboard-focusable.d.ts +0 -10
- package/utils/focus/set-native-focused.d.ts +0 -10
- package/utils/miscellaneous/identity.d.ts +0 -4
- package/utils/miscellaneous/is-element-editable.d.ts +0 -5
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ClassDeclaration, Pattern, Query } from 'ng-morph';
|
|
2
|
-
import { StructureType } from 'ng-morph/utils/types/structure-type';
|
|
1
|
+
import { ClassDeclaration, Pattern, Query, StructureType } from 'ng-morph';
|
|
3
2
|
export declare function getNgModules(pattern: Pattern, query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>>): ClassDeclaration[];
|
|
4
3
|
/**
|
|
5
4
|
* Find NgModule where the component was declared.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.findNgModule = exports.getNgModules = void 0;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
function getNgModules(pattern, query) {
|
|
6
7
|
return ng_morph_1.getClasses(pattern, query).filter(declaration => !!declaration.getDecorator('NgModule'));
|
|
7
8
|
}
|
|
@@ -10,7 +11,7 @@ exports.getNgModules = getNgModules;
|
|
|
10
11
|
* Find NgModule where the component was declared.
|
|
11
12
|
*/
|
|
12
13
|
function findNgModule(ngComponent) {
|
|
13
|
-
const allNgModules = getNgModules(
|
|
14
|
+
const allNgModules = getNgModules(constants_1.ALL_TS_FILES);
|
|
14
15
|
return (allNgModules.find(module => {
|
|
15
16
|
const moduleFile = module.getSourceFile();
|
|
16
17
|
const imports = ng_morph_1.getImports(moduleFile.getFilePath(), {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function processLog(message: string): void;
|
|
2
|
+
export declare function errorLog(message: string): void;
|
|
2
3
|
export declare function successLog(message: string): void;
|
|
3
4
|
export declare function infoLog(message: string): void;
|
|
4
5
|
export declare function titleLog(message: string): void;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SUCCESS_SYMBOL = exports.PROCESSING_SYMBOL = exports.REPLACE_SYMBOL = exports.FINISH_SYMBOL = exports.START_SYMBOL = exports.SMALL_TAB_SYMBOL = exports.titleLog = exports.infoLog = exports.successLog = exports.processLog = void 0;
|
|
3
|
+
exports.SUCCESS_SYMBOL = exports.PROCESSING_SYMBOL = exports.REPLACE_SYMBOL = exports.FINISH_SYMBOL = exports.START_SYMBOL = exports.SMALL_TAB_SYMBOL = exports.titleLog = exports.infoLog = exports.successLog = exports.errorLog = exports.processLog = void 0;
|
|
4
4
|
function processLog(message) {
|
|
5
5
|
console.info('\x1b[36m%s\x1b[0m', message);
|
|
6
6
|
}
|
|
7
7
|
exports.processLog = processLog;
|
|
8
|
+
function errorLog(message) {
|
|
9
|
+
console.info('\x1B[31m%s\x1B[0m', message);
|
|
10
|
+
}
|
|
11
|
+
exports.errorLog = errorLog;
|
|
8
12
|
function successLog(message) {
|
|
9
13
|
console.info('\x1B[32m%s\x1B[0m', message);
|
|
10
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getExecutionTime(t0: number, t1: number): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExecutionTime = void 0;
|
|
4
|
+
function getExecutionTime(t0, t1) {
|
|
5
|
+
const sum = t1 - t0;
|
|
6
|
+
return sum > 1000 ? `${(sum / 1000).toFixed(2)} sec` : `${sum.toFixed(2)} ms`;
|
|
7
|
+
}
|
|
8
|
+
exports.getExecutionTime = getExecutionTime;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNamedImportReferences = void 0;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
5
6
|
function getNamedImportReferences(namedImport, moduleSpecifier = '**/**') {
|
|
6
|
-
const importDeclarations = ng_morph_1.getImports(
|
|
7
|
+
const importDeclarations = ng_morph_1.getImports(constants_1.ALL_TS_FILES, {
|
|
7
8
|
namedImports: [namedImport],
|
|
8
9
|
moduleSpecifier: moduleSpecifier,
|
|
9
10
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { workspaces } from '@angular-devkit/core';
|
|
2
2
|
import { Schema } from '../ng-add/schema';
|
|
3
|
-
export declare function getProject(options: Schema, workspace: workspaces.WorkspaceDefinition): workspaces.ProjectDefinition;
|
|
3
|
+
export declare function getProject(options: Schema, workspace: workspaces.WorkspaceDefinition): workspaces.ProjectDefinition | undefined;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getProject = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
4
|
function getProject(options, workspace) {
|
|
6
5
|
var _a;
|
|
7
6
|
const projectName = options.project || ((_a = workspace.extensions.defaultProject) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
8
7
|
const project = workspace.projects.get(projectName);
|
|
9
|
-
if (!project) {
|
|
10
|
-
throw new schematics_1.SchematicsException(`Unable to find project '${projectName}' in the workspace`);
|
|
11
|
-
}
|
|
12
8
|
return project;
|
|
13
9
|
}
|
|
14
10
|
exports.getProject = getProject;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.insertTodo = void 0;
|
|
3
|
+
exports.insertTodo = exports.TODO_MARK = void 0;
|
|
4
|
+
exports.TODO_MARK = `TODO: (Taiga UI migration)`;
|
|
4
5
|
function insertTodo(identifier, message) {
|
|
5
6
|
const startLinePos = identifier.getStartLinePos();
|
|
6
7
|
const sourceFile = identifier.getSourceFile();
|
|
7
|
-
sourceFile.insertText(startLinePos, `//
|
|
8
|
+
sourceFile.insertText(startLinePos, `// ${exports.TODO_MARK} ${message}\n`);
|
|
8
9
|
}
|
|
9
10
|
exports.insertTodo = insertTodo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function printProgress(progressLog: string, isLastLog?: boolean): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printProgress = void 0;
|
|
4
|
+
const readline_1 = require("readline");
|
|
5
|
+
function printProgress(progressLog, isLastLog = false) {
|
|
6
|
+
readline_1.clearLine(process.stdout, 0);
|
|
7
|
+
readline_1.cursorTo(process.stdout, 0);
|
|
8
|
+
process.stdout.write(progressLog);
|
|
9
|
+
if (isLastLog) {
|
|
10
|
+
process.stdout.write('\n');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.printProgress = printProgress;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ClassDeclaration, Pattern, Query } from 'ng-morph';
|
|
2
|
-
import { StructureType } from 'ng-morph/utils/types/structure-type';
|
|
1
|
+
import { ClassDeclaration, Pattern, Query, StructureType } from 'ng-morph';
|
|
3
2
|
import { TemplateResource } from '../../ng-update/interfaces/template-resourse';
|
|
4
3
|
export declare function getComponentTemplates(pattern: Pattern, query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>>): TemplateResource[];
|
|
@@ -18,7 +18,7 @@ function decoratorToTemplateResource(decorator) {
|
|
|
18
18
|
const template = metadata.getProperty('template');
|
|
19
19
|
const componentPath = decorator.getSourceFile().getFilePath();
|
|
20
20
|
if (templateUrl) {
|
|
21
|
-
const templatePath = path.parse(((_a = templateUrl === null || templateUrl === void 0 ? void 0 : templateUrl.getInitializer()) === null || _a === void 0 ? void 0 : _a.getText().replace(/['"]/g, '')) || '');
|
|
21
|
+
const templatePath = path.parse(((_a = templateUrl === null || templateUrl === void 0 ? void 0 : templateUrl.getInitializer()) === null || _a === void 0 ? void 0 : _a.getText().replace(/['"`]/g, '')) || '');
|
|
22
22
|
return {
|
|
23
23
|
componentPath,
|
|
24
24
|
templatePath: getFullTemplatePath(templatePath, path.parse(componentPath)),
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.removeInputProperty = exports.replaceInputPropertyByDirective = exports.getInputPropertyValueOffsets = exports.getInputPropertyOffsets = exports.replaceInputProperty = void 0;
|
|
4
4
|
const template_resource_1 = require("./template-resource");
|
|
5
|
-
const ng_component_1 = require("../angular/ng-component");
|
|
6
|
-
const ng_module_1 = require("../angular/ng-module");
|
|
7
|
-
const ng_morph_1 = require("ng-morph");
|
|
8
|
-
const add_unique_import_1 = require("../add-unique-import");
|
|
9
5
|
const elements_1 = require("./elements");
|
|
6
|
+
const add_import_to_closest_module_1 = require("../add-import-to-closest-module");
|
|
10
7
|
/**
|
|
11
8
|
* Replace component input property by new value
|
|
12
9
|
* ___
|
|
@@ -113,14 +110,7 @@ function replaceInputPropertyByDirective({ templateResource, fileSystem, compone
|
|
|
113
110
|
filterFn,
|
|
114
111
|
});
|
|
115
112
|
if (wasModified && directiveModule) {
|
|
116
|
-
|
|
117
|
-
const ngModule = ngComponent ? ng_module_1.findNgModule(ngComponent) : null;
|
|
118
|
-
if (ngModule) {
|
|
119
|
-
ng_morph_1.addImportToNgModule(ngModule, directiveModule.name, {
|
|
120
|
-
unique: true,
|
|
121
|
-
});
|
|
122
|
-
add_unique_import_1.addUniqueImport(ngModule.getSourceFile().getFilePath(), directiveModule.name, directiveModule.moduleSpecifier);
|
|
123
|
-
}
|
|
113
|
+
add_import_to_closest_module_1.addImportToClosestModule(templateResource.componentPath, directiveModule.name, directiveModule.moduleSpecifier);
|
|
124
114
|
}
|
|
125
115
|
}
|
|
126
116
|
exports.replaceInputPropertyByDirective = replaceInputPropertyByDirective;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateResource } from '../../ng-update/interfaces/template-resourse';
|
|
2
|
-
import { DevkitFileSystem } from 'ng-morph
|
|
2
|
+
import { DevkitFileSystem } from 'ng-morph';
|
|
3
3
|
export declare function getTemplateFromTemplateResource(templateRes: TemplateResource, fileSystem: DevkitFileSystem): string;
|
|
4
4
|
export declare function getPathFromTemplateResource(templateRes: TemplateResource): string;
|
|
5
5
|
export declare function getTemplateOffset(templateRes: TemplateResource): number;
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, Injector,
|
|
1
|
+
import { ComponentFactoryResolver, Injector, Type } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Service to use styles with directives
|
|
5
|
-
* @dynamic
|
|
6
5
|
*/
|
|
7
6
|
export declare class TuiDirectiveStylesService {
|
|
8
7
|
private readonly resolver;
|
|
9
8
|
private readonly injector;
|
|
10
|
-
private readonly documentRef;
|
|
11
|
-
private readonly renderer;
|
|
12
9
|
private readonly map;
|
|
13
|
-
constructor(resolver: ComponentFactoryResolver, injector: Injector
|
|
10
|
+
constructor(resolver: ComponentFactoryResolver, injector: Injector);
|
|
14
11
|
addComponent(component: Type<unknown>): void;
|
|
15
|
-
/** @deprecated use components approach
|
|
16
|
-
* TODO: delete in v3.0
|
|
17
|
-
*/
|
|
18
|
-
addStyle(styles: string, attribute: string): void;
|
|
19
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDirectiveStylesService, never>;
|
|
20
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<TuiDirectiveStylesService>;
|
|
21
14
|
}
|
|
@@ -5,7 +5,6 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* Service to imitate :focus-visible
|
|
6
6
|
* (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)
|
|
7
7
|
* in browsers that do not support it
|
|
8
|
-
* @dynamic
|
|
9
8
|
*/
|
|
10
9
|
export declare class TuiFocusVisibleService extends Observable<boolean> {
|
|
11
10
|
private readonly focusVisible$;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @dynamic
|
|
6
|
-
*/
|
|
7
4
|
export declare class TuiPanService extends Observable<readonly [number, number]> {
|
|
8
5
|
constructor({ nativeElement }: ElementRef<Element>, documentRef: Document);
|
|
9
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPanService, never>;
|
|
@@ -2,9 +2,6 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { TuiSwipe, TuiSwipeOptions } from '@taiga-ui/cdk/interfaces';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* @dynamic
|
|
7
|
-
*/
|
|
8
5
|
export declare class TuiSwipeService extends Observable<TuiSwipe> {
|
|
9
6
|
constructor({ nativeElement }: ElementRef<Element>, { timeout, threshold }: TuiSwipeOptions, documentRef: Document);
|
|
10
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSwipeService, never>;
|
package/tokens/alerts.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
1
|
+
import { InjectionToken, Provider, Type } from '@angular/core';
|
|
2
2
|
import { TuiAriaDialogContext } from '@taiga-ui/cdk/interfaces';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
export declare const TUI_ALERTS: InjectionToken<readonly Observable<readonly TuiAriaDialogContext[]>[]>;
|
|
5
|
+
export declare function tuiAsAlerts(useExisting: Type<Observable<readonly TuiAriaDialogContext[]>>): Provider;
|
package/tokens/dialogs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
1
|
+
import { InjectionToken, Provider, Type } from '@angular/core';
|
|
2
2
|
import { TuiAriaDialogContext } from '@taiga-ui/cdk/interfaces';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
export declare const TUI_DIALOGS: InjectionToken<readonly Observable<readonly TuiAriaDialogContext[]>[]>;
|
|
5
|
+
export declare function tuiAsDialog(useExisting: Type<Observable<readonly TuiAriaDialogContext[]>>): Provider;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
1
|
+
import { InjectionToken, Provider, Type } from '@angular/core';
|
|
2
2
|
import { TuiFocusableElementAccessor } from '@taiga-ui/cdk/interfaces';
|
|
3
3
|
export declare const TUI_FOCUSABLE_ITEM_ACCESSOR: InjectionToken<TuiFocusableElementAccessor>;
|
|
4
|
+
export declare function tuiAsFocusableItemAccessor(useExisting: Type<TuiFocusableElementAccessor>): Provider;
|
package/tokens/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export * from './is-firefox';
|
|
|
11
11
|
export * from './is-ios';
|
|
12
12
|
export * from './is-mobile';
|
|
13
13
|
export * from './is-webkit';
|
|
14
|
+
export * from './range';
|
|
14
15
|
export * from './removed-element';
|
|
15
|
-
export * from './sanitizer';
|
|
16
16
|
export * from './swipe-options';
|
|
17
17
|
export * from './take-only-trusted-events';
|
|
18
18
|
export * from './touch-supported';
|
package/tokens/is-cypress.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export interface WindowWithCypress extends Window {
|
|
3
|
-
Cypress?: unknown;
|
|
4
|
-
}
|
|
5
2
|
/**
|
|
6
3
|
* {@link https://docs.cypress.io/faq/questions/using-cypress-faq#Is-there-any-way-to-detect-if-my-app-is-running-under-Cypress Cypress docs}
|
|
7
4
|
*/
|
package/utils/browser/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tuiHexToRgb(hex: string): [number, number, number];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-cdk-utils-color.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-cdk-utils-color.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-cdk-utils-color.js",
|
|
5
|
+
"esm2015": "../../esm2015/utils/color/taiga-ui-cdk-utils-color.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-cdk-utils-color.js",
|
|
7
|
+
"typings": "taiga-ui-cdk-utils-color.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/cdk/utils/color"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tuiParseColor(color: string): [number, number, number, number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tuiRgbToHex(r: number, g: number, b: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tuiRgbToHsv(r: number, g: number, b: number): [number, number, number];
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* @deprecated: use {@link tuiCanScroll} instead
|
|
3
|
-
*/
|
|
4
|
-
export declare function canScroll(element: Element, rootElement: Element, vertical: boolean, scrollEnd: boolean): boolean;
|
|
5
|
-
export declare const tuiCanScroll: typeof canScroll;
|
|
1
|
+
export declare function tuiCanScroll(element: Element, rootElement: Element, vertical: boolean, scrollEnd: boolean): boolean;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* @deprecated: use {@link tuiContainsOrAfter} instead
|
|
3
|
-
*/
|
|
4
|
-
export declare function containsOrAfter(current: Node, node: Node): boolean;
|
|
5
|
-
export declare const tuiContainsOrAfter: typeof containsOrAfter;
|
|
1
|
+
export declare function tuiContainsOrAfter(current: Node, node: Node): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function tuiIsInput(element: Element): element is HTMLInputElement;
|
|
2
|
+
export declare function tuiIsTextarea(element: Element): element is HTMLTextAreaElement;
|
|
3
|
+
export declare function tuiIsTextfield(element: Element): element is HTMLInputElement | HTMLTextAreaElement;
|
|
4
|
+
export declare function tuiIsElement(node?: Node | Element | EventTarget | null): node is Element;
|
|
5
|
+
export declare function tuiIsHTMLElement(node: unknown): node is HTMLElement;
|
|
6
|
+
export declare function tuiIsTextNode(node: Node): node is Text;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiGetActualTarget} instead
|
|
3
2
|
* Gets actual target from open Shadow DOM if event happened within it
|
|
4
3
|
*/
|
|
5
|
-
export declare function
|
|
6
|
-
export declare const tuiGetActualTarget: typeof getActualTarget;
|
|
4
|
+
export declare function tuiGetActualTarget(event: Event): Node;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiGetClipboardDataText} instead
|
|
3
2
|
* Gets text from data of clipboardEvent, it also works in IE and Edge browsers
|
|
4
3
|
*/
|
|
5
|
-
export declare function
|
|
6
|
-
export declare const tuiGetClipboardDataText: typeof getClipboardDataText;
|
|
4
|
+
export declare function tuiGetClipboardDataText(event: ClipboardEvent, format?: string): string;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* @deprecated: use {@link tuiGetDocumentOrShadowRoot} instead
|
|
3
|
-
*/
|
|
4
|
-
export declare function getDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot;
|
|
5
|
-
export declare const tuiGetDocumentOrShadowRoot: typeof getDocumentOrShadowRoot;
|
|
1
|
+
export declare function tuiGetDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiGetElementObscures} instead
|
|
3
2
|
* Returns array of Elements covering edges of given element or null if at least one edge middle point is visible
|
|
4
3
|
*
|
|
5
4
|
* CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered
|
|
6
5
|
*/
|
|
7
|
-
export declare function
|
|
8
|
-
export declare const tuiGetElementObscures: typeof getElementObscurers;
|
|
6
|
+
export declare function tuiGetElementObscures(element: Element): readonly Element[] | null;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiGetElementOffset} instead
|
|
3
2
|
* Calculates offset for an element relative to it's parent several levels above
|
|
4
3
|
*
|
|
5
4
|
* @param host parent element
|
|
6
5
|
* @param element
|
|
7
6
|
* @return object with offsetTop and offsetLeft number properties
|
|
8
7
|
*/
|
|
9
|
-
export declare function
|
|
8
|
+
export declare function tuiGetElementOffset(host: Element, element: HTMLElement): {
|
|
10
9
|
offsetTop: number;
|
|
11
10
|
offsetLeft: number;
|
|
12
11
|
};
|
|
13
|
-
export declare const tuiGetElementOffset: typeof getElementOffset;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiGetScrollParent} instead
|
|
3
2
|
* Finds the nearest parent with scroll in it
|
|
4
3
|
*
|
|
5
4
|
* @param element initial element
|
|
6
5
|
* @param vertical flag for orientation of scroll
|
|
7
6
|
*/
|
|
8
|
-
export declare function
|
|
9
|
-
export declare const tuiGetScrollParent: typeof getScrollParent;
|
|
7
|
+
export declare function tuiGetScrollParent(element: Element | null, vertical?: boolean): Element | null;
|
package/utils/dom/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './can-scroll';
|
|
2
2
|
export * from './contains-or-after';
|
|
3
|
+
export * from './element-checks';
|
|
3
4
|
export * from './get-actual-target';
|
|
4
5
|
export * from './get-clipboard-data-text';
|
|
5
6
|
export * from './get-document-or-shadow-root';
|
|
@@ -8,7 +9,7 @@ export * from './get-element-offset';
|
|
|
8
9
|
export * from './get-scroll-parent';
|
|
9
10
|
export * from './get-selected-text';
|
|
10
11
|
export * from './is-current-target';
|
|
11
|
-
export * from './is-
|
|
12
|
+
export * from './is-element-editable';
|
|
12
13
|
export * from './is-inside-iframe';
|
|
13
14
|
export * from './is-node-in';
|
|
14
15
|
export * from './point-to-client-rect';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* @deprecated: use {@link tuiIsCurrentTarget} instead
|
|
3
|
-
*/
|
|
4
|
-
export declare function isCurrentTarget({ target, currentTarget }: Event): boolean;
|
|
5
|
-
export declare const tuiIsCurrentTarget: typeof isCurrentTarget;
|
|
1
|
+
export declare function tuiIsCurrentTarget({ target, currentTarget }: Event): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tuiIsElementEditable(element: HTMLElement): boolean;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiIsInsideIframe} instead
|
|
3
2
|
* Checks if an app is running inside <iframe /> tag
|
|
4
3
|
*/
|
|
5
|
-
export declare function
|
|
6
|
-
export declare const tuiIsInsideIframe: typeof isInsideIframe;
|
|
4
|
+
export declare function tuiIsInsideIframe(windowRef: Window): boolean;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiIsNodeIn} instead
|
|
3
2
|
* Checks if node is inside a specific selector
|
|
4
3
|
*
|
|
5
4
|
* @param node
|
|
6
5
|
* @param selector
|
|
7
6
|
* @return true if node is inside a particular selector
|
|
8
7
|
*/
|
|
9
|
-
export declare function
|
|
10
|
-
export declare const tuiIsNodeIn: typeof isNodeIn;
|
|
8
|
+
export declare function tuiIsNodeIn(node: Node, selector: string): boolean;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiBlurNativeFocused} instead
|
|
3
2
|
* Finds and blurs current active element, including shadow DOM
|
|
4
3
|
*/
|
|
5
|
-
export declare function
|
|
6
|
-
export declare const tuiBlurNativeFocused: typeof blurNativeFocused;
|
|
4
|
+
export declare function tuiBlurNativeFocused(documentRef: Document): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface TuiGetClosestFocusableOptions {
|
|
2
|
+
/**
|
|
3
|
+
* @description:
|
|
4
|
+
* current HTML element
|
|
5
|
+
*/
|
|
6
|
+
initial: Element;
|
|
7
|
+
/**
|
|
8
|
+
* @description:
|
|
9
|
+
* top Node limiting the search area
|
|
10
|
+
*/
|
|
11
|
+
root: Node;
|
|
12
|
+
/**
|
|
13
|
+
* @description:
|
|
14
|
+
* should it look backwards instead (find item that will be focused with Shift + Tab)
|
|
15
|
+
*/
|
|
16
|
+
previous?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @description:
|
|
19
|
+
* determine if only keyboard focus is of interest
|
|
20
|
+
*/
|
|
21
|
+
keyboard?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @description:
|
|
25
|
+
* Finds the closest element that can be focused with a keyboard or mouse in theory
|
|
26
|
+
*/
|
|
27
|
+
export declare function tuiGetClosestFocusable({ initial, root, previous, keyboard, }: TuiGetClosestFocusableOptions): HTMLElement | null;
|
package/utils/focus/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export * from './blur-native-focused';
|
|
2
|
-
export * from './get-closest-
|
|
2
|
+
export * from './get-closest-focusable';
|
|
3
3
|
export * from './get-native-focused';
|
|
4
4
|
export * from './is-native-focused';
|
|
5
5
|
export * from './is-native-focused-in';
|
|
6
6
|
export * from './is-native-keyboard-focusable';
|
|
7
7
|
export * from './is-native-mouse-focusable';
|
|
8
8
|
export * from './move-focus';
|
|
9
|
-
export * from './set-native-focused';
|
|
10
9
|
export * from './set-native-mouse-focused';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiSetNativeMouseFocused} instead
|
|
3
2
|
* Focuses or blurs element with mouse action imitation (to spoof {@link TuiFocusVisibleService})
|
|
4
3
|
*
|
|
5
4
|
* @param element
|
|
6
5
|
* @param focused desired focused state
|
|
7
6
|
* @param preventScroll optionally prevent native browser scroll after focus
|
|
8
7
|
*/
|
|
9
|
-
export declare function
|
|
10
|
-
export declare const tuiSetNativeMouseFocused: typeof setNativeMouseFocused;
|
|
8
|
+
export declare function tuiSetNativeMouseFocused(element: HTMLOrSVGElement & Element, focused?: boolean, preventScroll?: boolean): void;
|
package/utils/index.d.ts
CHANGED
package/utils/math/clamp.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiClamp} instead
|
|
3
2
|
* Clamps a value between two inclusive limits
|
|
4
3
|
*
|
|
5
4
|
* @param value
|
|
6
5
|
* @param min lower limit
|
|
7
6
|
* @param max upper limit
|
|
8
7
|
*/
|
|
9
|
-
export declare function
|
|
10
|
-
export declare const tuiClamp: typeof clamp;
|
|
8
|
+
export declare function tuiClamp(value: number, min: number, max: number): number;
|
package/utils/math/quantize.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated: use {@link tuiQuantize} instead
|
|
3
2
|
* Rounds a number to the closest value in a fixed discrete series
|
|
4
3
|
*
|
|
5
4
|
* @param value
|
|
6
5
|
* @param quantum series step
|
|
7
6
|
*/
|
|
8
|
-
export declare function
|
|
9
|
-
export declare const tuiQuantize: typeof quantize;
|
|
7
|
+
export declare function tuiQuantize(value: number, quantum: number): number;
|