@taiga-ui/cdk 3.60.0-canary.8108863 → 3.61.0-canary.2abddb0
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/bundles/taiga-ui-cdk-abstract.umd.js +971 -1117
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +505 -651
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +404 -550
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +590 -736
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +80 -80
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +33 -179
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +10 -156
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +434 -580
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +706 -852
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +426 -572
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +410 -556
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +482 -628
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +426 -572
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +9 -9
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +373 -519
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +1 -1
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +373 -519
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js +2 -2
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +841 -984
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +650 -796
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +8 -8
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +26 -172
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +11 -11
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +19 -19
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +7 -7
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +21 -167
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +11 -11
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/esm2015/abstract/control.js +4 -4
- package/esm2015/abstract/interactive.js +7 -7
- package/esm2015/abstract/portal-host.js +2 -2
- package/esm2015/abstract/theme-switcher.js +2 -2
- package/esm2015/coercion/coerce-boolean-property.js +2 -2
- package/esm2015/components/dropdown-host/dropdown-portal.service.js +3 -3
- package/esm2015/constants/parent-animation.js +4 -4
- package/esm2015/constants/svg-node-filter.js +2 -2
- package/esm2015/constants/unicode-chars.js +13 -13
- package/esm2015/constants/used-icons.js +64 -64
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/date-format.js +2 -2
- package/esm2015/date-time/date-separator.js +2 -2
- package/esm2015/date-time/day-range.js +3 -3
- package/esm2015/date-time/day.js +14 -14
- package/esm2015/date-time/month.js +2 -2
- package/esm2015/date-time/time.js +7 -7
- package/esm2015/date-time/year.js +2 -2
- package/esm2015/decorators/pure.js +5 -5
- package/esm2015/directives/auto-focus/autofocus.options.js +2 -2
- package/esm2015/directives/auto-focus/handlers/abstract.handler.js +2 -2
- package/esm2015/directives/auto-focus/handlers/default.handler.js +2 -2
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +28 -28
- package/esm2015/directives/hovered/hovered.service.js +3 -3
- package/esm2015/exceptions/computed-document.exception.js +2 -2
- package/esm2015/exceptions/document-selection.exception.js +2 -2
- package/esm2015/exceptions/invalid-day.exception.js +2 -2
- package/esm2015/exceptions/invalid-month.exception.js +2 -2
- package/esm2015/exceptions/invalid-year.exception.js +2 -2
- package/esm2015/exceptions/no-host.exception.js +2 -2
- package/esm2015/exceptions/owner-document.exception.js +2 -2
- package/esm2015/exceptions/pure.exception.js +2 -2
- package/esm2015/exceptions/table-sort-key.exception.js +2 -2
- package/esm2015/exceptions/ts-parser.exception.js +2 -2
- package/esm2015/exceptions/value-changes.exception.js +2 -2
- package/esm2015/exceptions/value-present.exception.js +2 -2
- package/esm2015/exceptions/xml-parsing.exception.js +2 -2
- package/esm2015/observables/drag-and-drop-from.js +2 -2
- package/esm2015/observables/focus-visible-observable.js +5 -5
- package/esm2015/observables/is-observed.js +2 -2
- package/esm2015/observables/mouse-drag-finish-from.js +2 -2
- package/esm2015/observables/pressed-observable.js +2 -2
- package/esm2015/observables/scroll-from.js +2 -2
- package/esm2015/pipes/filter/filter.pipe.js +2 -2
- package/esm2015/pipes/is-present/is-present.pipe.js +2 -2
- package/esm2015/pipes/keys/keys.pipe.js +2 -2
- package/esm2015/pipes/mapper/mapper.pipe.js +2 -2
- package/esm2015/pipes/replace/replace.pipe.js +3 -3
- package/esm2015/services/directive-styles.service.js +6 -3
- package/esm2015/services/id.service.js +4 -4
- package/esm2015/services/obscured.service.js +2 -2
- package/esm2015/services/pan.service.js +5 -5
- package/esm2015/services/parents-scroll.service.js +2 -2
- package/esm2015/services/scroll.service.js +8 -8
- package/esm2015/services/static-request.service.js +4 -4
- package/esm2015/services/swipe.service.js +2 -2
- package/esm2015/services/zoom.service.js +3 -3
- package/esm2015/tokens/active-element.js +9 -9
- package/esm2015/tokens/base-href.js +2 -2
- package/esm2015/tokens/ensure-base-href.js +4 -4
- package/esm2015/tokens/focusable-item-accessor.js +2 -2
- package/esm2015/tokens/fonts-ready.js +2 -2
- package/esm2015/tokens/is-firefox.js +2 -2
- package/esm2015/tokens/is-stackblitz.js +2 -2
- package/esm2015/tokens/platform.js +5 -5
- package/esm2015/tokens/touch-supported.js +2 -2
- package/esm2015/tokens/window-size.js +5 -5
- package/esm2015/utils/browser/is-edge-older-than.js +2 -2
- package/esm2015/utils/browser/is-edge.js +2 -2
- package/esm2015/utils/browser/is-firefox.js +2 -2
- package/esm2015/utils/browser/is-safari.js +6 -6
- package/esm2015/utils/color/hex-to-rgb.js +4 -4
- package/esm2015/utils/color/hex-to-rgba.js +5 -5
- package/esm2015/utils/color/parse-color.js +7 -7
- package/esm2015/utils/color/rgb-to-hex.js +2 -2
- package/esm2015/utils/color/rgba-to-hex.js +7 -7
- package/esm2015/utils/dom/element-checks.js +4 -4
- package/esm2015/utils/dom/get-clipboard-data-text.js +4 -4
- package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -2
- package/esm2015/utils/dom/get-element-offset.js +2 -2
- package/esm2015/utils/dom/retarget-boundary-crossing.js +4 -4
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +14 -14
- package/esm2015/utils/focus/is-native-mouse-focusable.js +3 -3
- package/esm2015/utils/focus/set-native-mouse-focused.js +5 -5
- package/esm2015/utils/format/px.js +2 -2
- package/esm2015/utils/math/round-with.js +4 -4
- package/esm2015/utils/math/round.js +5 -5
- package/esm2015/utils/miscellaneous/clean-object.js +2 -2
- package/esm2015/utils/miscellaneous/create-token.js +2 -2
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
- package/esm2015/utils/miscellaneous/get-swipe-direction.js +3 -3
- package/esm2015/utils/miscellaneous/is-number.js +2 -2
- package/esm2015/utils/miscellaneous/is-object.js +2 -2
- package/esm2015/utils/miscellaneous/is-string.js +2 -2
- package/esm2015/utils/miscellaneous/is-valid-url.js +8 -8
- package/esm2015/utils/os/is-apple-platform.js +2 -2
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +12 -12
- package/fesm2015/taiga-ui-cdk-abstract.js +11 -11
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +2 -2
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +80 -80
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +25 -25
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +4 -4
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +30 -30
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +13 -13
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +9 -9
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js +2 -2
- package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +27 -24
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +25 -25
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +8 -8
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +20 -20
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +11 -11
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +19 -19
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +7 -7
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +15 -15
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +11 -11
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/package.json +1 -1
- package/schematics/constants/file-globs.js +24 -24
- package/schematics/constants/taiga-styles.js +4 -4
- package/schematics/ng-add/constants/modules.js +12 -12
- package/schematics/ng-add/constants/packages.js +1 -1
- package/schematics/ng-add/constants/versions.d.ts +3 -3
- package/schematics/ng-add/constants/versions.js +3 -3
- package/schematics/ng-add/index.js +10 -10
- package/schematics/ng-add/steps/add-taiga-icons.js +4 -4
- package/schematics/ng-add/steps/add-taiga-modules.js +14 -14
- package/schematics/ng-add/steps/wrap-with-tui-root.js +12 -12
- package/schematics/ng-update/steps/icons/replace-imports.js +2 -2
- package/schematics/ng-update/steps/remove-module.js +2 -2
- package/schematics/ng-update/steps/rename-types.js +5 -5
- package/schematics/ng-update/steps/replace-deep-import.js +4 -4
- package/schematics/ng-update/steps/replace-enums.js +2 -2
- package/schematics/ng-update/steps/replace-identifier.js +2 -2
- package/schematics/ng-update/steps/replace-services.js +4 -4
- package/schematics/ng-update/steps/show-warnings.js +1 -1
- package/schematics/ng-update/utils/replace-text.js +1 -1
- package/schematics/ng-update/utils/templates/replace-tag.js +1 -1
- package/schematics/ng-update/v3/constants/breakpoints.js +27 -27
- package/schematics/ng-update/v3/constants/constants.js +187 -187
- package/schematics/ng-update/v3/constants/deprecated-functions.js +405 -405
- package/schematics/ng-update/v3/constants/enums.js +153 -153
- package/schematics/ng-update/v3/constants/modules.js +4 -4
- package/schematics/ng-update/v3/constants/services.js +16 -16
- 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.js +88 -88
- package/schematics/ng-update/v3/constants/warnings.js +62 -62
- package/schematics/ng-update/v3/index.js +7 -7
- package/schematics/ng-update/v3/steps/migrate-date-time.js +42 -42
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +14 -14
- package/schematics/ng-update/v3/steps/migrate-progress.js +6 -6
- package/schematics/ng-update/v3/steps/migrate-sliders/index.js +4 -4
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +27 -27
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +26 -26
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +7 -7
- package/schematics/ng-update/v3/steps/migrate-templates.js +18 -18
- package/schematics/ng-update/v3/steps/migrate-textfield-controller.js +33 -33
- package/schematics/ng-update/v3/steps/miscellaneous.js +16 -16
- package/schematics/ng-update/v3/steps/replace-functions.js +17 -17
- package/schematics/ng-update/v3/steps/replace-styles.js +12 -12
- 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.js +4 -4
- 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.js +5 -5
- package/schematics/ng-update/v3-36/index.js +6 -6
- package/schematics/ng-update/v3-40/index.js +11 -11
- package/schematics/ng-update/v3-5/index.js +1 -1
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +7 -7
- package/schematics/ng-update/v4/index.js +2 -2
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +19 -19
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +21 -21
- package/schematics/ng-update/v4/steps/constants/html-comments.js +9 -9
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +21 -21
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +4 -4
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +2 -2
- package/schematics/ng-update/v4/steps/migrate-templates.js +3 -3
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +6 -6
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +6 -6
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +14 -14
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +3 -3
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +5 -5
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +4 -4
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +4 -4
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +4 -4
- package/schematics/utils/add-import-to-component.js +1 -1
- package/schematics/utils/angular/is-standalone-component.js +3 -3
- package/schematics/utils/angular/ng-component.js +1 -1
- package/schematics/utils/angular/ng-module.js +1 -1
- package/schematics/utils/angular-json-manipulations.js +5 -5
- package/schematics/utils/colored-log.js +11 -11
- package/schematics/utils/create-angular-json.js +3 -3
- package/schematics/utils/get-component-from-identifier.js +1 -1
- package/schematics/utils/get-named-import-references.js +1 -1
- package/schematics/utils/get-projects.js +2 -2
- package/schematics/utils/get-standalone-bootstrap-function.js +1 -1
- package/schematics/utils/insert-todo.js +1 -1
- package/schematics/utils/is-ci.js +1 -1
- package/schematics/utils/progress.js +2 -2
- package/schematics/utils/project-root.js +1 -1
- package/schematics/utils/push-to-array-property.js +1 -1
- package/schematics/utils/templates/elements.js +1 -1
- package/schematics/utils/templates/get-component-templates.js +5 -5
- package/schematics/utils/templates/ng-component-input-manipulations.js +5 -5
- package/schematics/utils/templates/template-resource.js +3 -3
- package/services/directive-styles.service.d.ts +3 -2
- package/utils/miscellaneous/is-string.js +1 -1
@@ -3,7 +3,7 @@
|
|
3
3
|
* @example {@link https://material.angular.io/cdk/coercion/api#functions}
|
4
4
|
*/
|
5
5
|
function tuiCoerceBooleanProperty(value) {
|
6
|
-
return value !== null && typeof value !==
|
6
|
+
return value !== null && typeof value !== 'undefined' && `${value}` !== 'false';
|
7
7
|
}
|
8
8
|
|
9
9
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-coercion.js","sources":["../../../projects/cdk/coercion/coerce-boolean-property.ts","../../../projects/cdk/coercion/taiga-ui-cdk-coercion.ts"],"sourcesContent":["/**\n * Coerces a data-bound value (typically a string) to a boolean.\n * @example {@link https://material.angular.io/cdk/coercion/api#functions}\n */\nexport function tuiCoerceBooleanProperty(\n value: Record<string, any> | boolean | number | string | null | undefined,\n): boolean {\n return value !== null && typeof value !==
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-coercion.js","sources":["../../../projects/cdk/coercion/coerce-boolean-property.ts","../../../projects/cdk/coercion/taiga-ui-cdk-coercion.ts"],"sourcesContent":["/**\n * Coerces a data-bound value (typically a string) to a boolean.\n * @example {@link https://material.angular.io/cdk/coercion/api#functions}\n */\nexport function tuiCoerceBooleanProperty(\n value: Record<string, any> | boolean | number | string | null | undefined,\n): boolean {\n return value !== null && typeof value !== 'undefined' && `${value}` !== 'false';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;AAGG;AACG,SAAU,wBAAwB,CACpC,KAAyE,EAAA;AAEzE,IAAA,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,CAAG,EAAA,KAAK,CAAE,CAAA,KAAK,OAAO,CAAC;AACpF;;ACRA;;AAEG;;;;"}
|
@@ -8,11 +8,11 @@ import { AbstractTuiPortalService, AbstractTuiPortalHostComponent } from '@taiga
|
|
8
8
|
class TuiDropdownPortalService extends AbstractTuiPortalService {
|
9
9
|
}
|
10
10
|
TuiDropdownPortalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDropdownPortalService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
11
|
-
TuiDropdownPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDropdownPortalService, providedIn:
|
11
|
+
TuiDropdownPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDropdownPortalService, providedIn: 'root' });
|
12
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDropdownPortalService, decorators: [{
|
13
13
|
type: Injectable,
|
14
14
|
args: [{
|
15
|
-
providedIn:
|
15
|
+
providedIn: 'root',
|
16
16
|
}]
|
17
17
|
}] });
|
18
18
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-components-dropdown-host.js","sources":["../../../projects/cdk/components/dropdown-host/dropdown-portal.service.ts","../../../projects/cdk/components/dropdown-host/dropdown-host.component.ts","../../../projects/cdk/components/dropdown-host/dropdown-host.template.html","../../../projects/cdk/components/dropdown-host/dropdown-host.module.ts","../../../projects/cdk/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {AbstractTuiPortalService} from '@taiga-ui/cdk/abstract';\n\n/**\n * Service for displaying dropdown portals\n */\n@Injectable({\n providedIn:
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-components-dropdown-host.js","sources":["../../../projects/cdk/components/dropdown-host/dropdown-portal.service.ts","../../../projects/cdk/components/dropdown-host/dropdown-host.component.ts","../../../projects/cdk/components/dropdown-host/dropdown-host.template.html","../../../projects/cdk/components/dropdown-host/dropdown-host.module.ts","../../../projects/cdk/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {AbstractTuiPortalService} from '@taiga-ui/cdk/abstract';\n\n/**\n * Service for displaying dropdown portals\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiDropdownPortalService extends AbstractTuiPortalService {}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {\n AbstractTuiPortalHostComponent,\n AbstractTuiPortalService,\n} from '@taiga-ui/cdk/abstract';\n\nimport {TuiDropdownPortalService} from './dropdown-portal.service';\n\n/**\n * Host element for dynamically created portals, for example using {@link TuiDropdownDirective}.\n */\n@Component({\n selector: 'tui-dropdown-host',\n templateUrl: './dropdown-host.template.html',\n styleUrls: ['./dropdown-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {provide: AbstractTuiPortalService, useExisting: TuiDropdownPortalService},\n // TODO: Remove in 4.0\n {provide: AbstractTuiPortalHostComponent, useExisting: TuiDropdownHostComponent},\n ],\n})\nexport class TuiDropdownHostComponent extends AbstractTuiPortalHostComponent {}\n","<ng-content></ng-content>\n<ng-container #viewContainer></ng-container>\n","import {NgModule} from '@angular/core';\n\nimport {TuiDropdownHostComponent} from './dropdown-host.component';\n\n@NgModule({\n declarations: [TuiDropdownHostComponent],\n exports: [TuiDropdownHostComponent],\n})\nexport class TuiDropdownHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;AAEG;AAIG,MAAO,wBAAyB,SAAQ,wBAAwB,CAAA;;sHAAzD,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,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AuB,CAAC,MAAM;AAC/C,oBAAA,SAAS,EAAE;AACP,wBAAA,EAAC,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,wBAAwB,EAAC;;AAE1E,wBAAA,EAAC,OAAO,EAAE,8BAA8B,EAAE,WAAW,0BAA0B,EAAC;AACnF,qBAAA;AACJ,iBAAA,CAAA;;;MEbY,qBAAqB,CAAA;;mHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;oHAArB,qBAAqB,EAAA,YAAA,EAAA,CAHf,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAC7B,wBAAwB,CAAA,EAAA,CAAA,CAAA;oHAEzB,qBAAqB,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACtC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
@@ -75,26 +75,26 @@ const TUI_DEFAULT_IDENTITY_MATCHER = (item1, item2) => item1 === item2 || bothEm
|
|
75
75
|
/**
|
76
76
|
* Add to enable child :leave animation (fixes https://github.com/angular/angular/issues/15753)
|
77
77
|
*/
|
78
|
-
const TUI_PARENT_ANIMATION = trigger(
|
79
|
-
transition(
|
78
|
+
const TUI_PARENT_ANIMATION = trigger('tuiParentAnimation', [
|
79
|
+
transition(':leave', [query(':scope > *', [animateChild()], { optional: true })]),
|
80
80
|
]);
|
81
81
|
/**
|
82
82
|
* Add on parent to stop initial :enter animation for children
|
83
83
|
*/
|
84
|
-
const TUI_PARENT_STOP = trigger(
|
84
|
+
const TUI_PARENT_STOP = trigger('tuiParentStop', [transition(':enter', [])]);
|
85
85
|
|
86
86
|
const POLLING_TIME = 1000 / 15;
|
87
87
|
|
88
88
|
// Filtering SVGElements for TreeWalker
|
89
89
|
// Filter must be a function in IE, other modern browsers are compliant to this format
|
90
|
-
const svgNodeFilter = ((node) =>
|
90
|
+
const svgNodeFilter = ((node) => 'ownerSVGElement' in node
|
91
91
|
? NodeFilter.FILTER_REJECT
|
92
92
|
: NodeFilter.FILTER_ACCEPT);
|
93
93
|
|
94
94
|
/**
|
95
95
|
* {@link https://unicode-table.com/en/00A0/ Non-breaking space}.
|
96
96
|
*/
|
97
|
-
const CHAR_NO_BREAK_SPACE =
|
97
|
+
const CHAR_NO_BREAK_SPACE = '\u00A0';
|
98
98
|
/**
|
99
99
|
* {@link https://unicode-table.com/en/2013/ EN dash}
|
100
100
|
* is used to indicate a range of numbers or a span of time.
|
@@ -102,7 +102,7 @@ const CHAR_NO_BREAK_SPACE = `\u00A0`;
|
|
102
102
|
* ___
|
103
103
|
* Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!
|
104
104
|
*/
|
105
|
-
const CHAR_EN_DASH =
|
105
|
+
const CHAR_EN_DASH = '\u2013';
|
106
106
|
/**
|
107
107
|
* {@link https://unicode-table.com/en/2014/ EM dash}
|
108
108
|
* is used to mark a break in a sentence.
|
@@ -110,15 +110,15 @@ const CHAR_EN_DASH = `\u2013`;
|
|
110
110
|
* ___
|
111
111
|
* Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!
|
112
112
|
*/
|
113
|
-
const CHAR_EM_DASH =
|
113
|
+
const CHAR_EM_DASH = '\u2014';
|
114
114
|
/**
|
115
115
|
* {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}
|
116
116
|
*/
|
117
|
-
const CHAR_LAQUO =
|
117
|
+
const CHAR_LAQUO = '\u00AB';
|
118
118
|
/**
|
119
119
|
* {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}
|
120
120
|
*/
|
121
|
-
const CHAR_RAQUO =
|
121
|
+
const CHAR_RAQUO = '\u00BB';
|
122
122
|
/**
|
123
123
|
* {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}
|
124
124
|
* is used to combine words.
|
@@ -126,34 +126,34 @@ const CHAR_RAQUO = `\u00BB`;
|
|
126
126
|
* ___
|
127
127
|
* Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!
|
128
128
|
*/
|
129
|
-
const CHAR_HYPHEN =
|
129
|
+
const CHAR_HYPHEN = '\u002D';
|
130
130
|
/**
|
131
131
|
* {@link https://unicode-table.com/en/2212/ Minus}
|
132
132
|
* is used as math operator symbol or before negative digits.
|
133
133
|
* ---
|
134
134
|
* Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}
|
135
135
|
*/
|
136
|
-
const CHAR_MINUS =
|
136
|
+
const CHAR_MINUS = '\u2212';
|
137
137
|
/**
|
138
138
|
* {@link https://unicode-table.com/en/002B/ Plus}
|
139
139
|
*/
|
140
|
-
const CHAR_PLUS =
|
140
|
+
const CHAR_PLUS = '\u002B';
|
141
141
|
/**
|
142
142
|
* {@link https://unicode-table.com/en/2022/ Bullet}.
|
143
143
|
*/
|
144
|
-
const CHAR_BULLET =
|
144
|
+
const CHAR_BULLET = '\u2022';
|
145
145
|
/**
|
146
146
|
* {@link https://unicode-table.com/en/2026/ Suspension points}.
|
147
147
|
*/
|
148
|
-
const CHAR_ELLIPSIS =
|
148
|
+
const CHAR_ELLIPSIS = '\u2026';
|
149
149
|
/**
|
150
150
|
* {@link https://unicode-table.com/en/00A4/ Suspension points}.
|
151
151
|
*/
|
152
|
-
const CHAR_CURRENCY_SIGN =
|
152
|
+
const CHAR_CURRENCY_SIGN = '\u00A4';
|
153
153
|
/**
|
154
154
|
* {@link https://unicode-table.com/en/200b/ Suspension points}.
|
155
155
|
*/
|
156
|
-
const CHAR_ZERO_WIDTH_SPACE =
|
156
|
+
const CHAR_ZERO_WIDTH_SPACE = '\u200B';
|
157
157
|
|
158
158
|
/**
|
159
159
|
* @description:
|
@@ -162,72 +162,72 @@ const CHAR_ZERO_WIDTH_SPACE = `\u200B`;
|
|
162
162
|
* Array of icons used in taiga-ui components
|
163
163
|
*/
|
164
164
|
const TUI_USED_ICONS = [
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
165
|
+
'tuiIconMirMono',
|
166
|
+
'tuiIconVisaMono',
|
167
|
+
'tuiIconElectronMono',
|
168
|
+
'tuiIconMastercard',
|
169
|
+
'tuiIconMaestro',
|
170
|
+
'tuiIconAmex',
|
171
|
+
'tuiIconDinersClub',
|
172
|
+
'tuiIconDiscover',
|
173
|
+
'tuiIconHumo',
|
174
|
+
'tuiIconJCB',
|
175
|
+
'tuiIconRuPay',
|
176
|
+
'tuiIconUnionPay',
|
177
|
+
'tuiIconUzcard',
|
178
|
+
'tuiIconVerve',
|
179
|
+
'tuiIconCopyLarge',
|
180
|
+
'tuiIconCheckLarge',
|
181
|
+
'tuiIconLink',
|
182
|
+
'tuiIconSearch',
|
183
|
+
'tuiIconSun',
|
184
|
+
'tuiIconMoon',
|
185
|
+
'tuiIconCode',
|
186
|
+
'tuiIconMenuLarge',
|
187
|
+
'tuiIconRotate',
|
188
|
+
'tuiIconArrowLeft',
|
189
|
+
'tuiIconArrowRight',
|
190
|
+
'tuiIconPlus',
|
191
|
+
'tuiIconMinus',
|
192
|
+
'tuiIconMinimize',
|
193
|
+
'tuiIconEye',
|
194
|
+
'tuiIconEyeOff',
|
195
|
+
'tuiIconDrag',
|
196
|
+
'tuiIconSortAscending',
|
197
|
+
'tuiIconSortDescending',
|
198
|
+
'tuiIconSortOff',
|
199
|
+
'tuiIconCheck',
|
200
|
+
'tuiIconMinusLarge',
|
201
|
+
'tuiIconChevronUp',
|
202
|
+
'tuiIconHelpCircle',
|
203
|
+
'tuiIconClose',
|
204
|
+
'tuiIconAlertCircle',
|
205
|
+
'tuiIconChevronRight',
|
206
|
+
'tuiIconInfo',
|
207
|
+
'tuiIconCheckCircle',
|
208
|
+
'tuiIconXCircle',
|
209
|
+
'tuiIconChevronLeft',
|
210
|
+
'tuiIconStarLarge',
|
211
|
+
'tuiIconChevronDown',
|
212
|
+
'tuiIconChevronDownLarge',
|
213
|
+
'tuiIconFileLarge',
|
214
|
+
'tuiIconTrashLarge',
|
215
|
+
'tuiIconAlertCircleLarge',
|
216
|
+
'tuiIconCheckCircleLarge',
|
217
|
+
'tuiIconCopy',
|
218
|
+
'tuiIconEyeOffLarge',
|
219
|
+
'tuiIconEyeLarge',
|
220
|
+
'tuiIconClock',
|
221
|
+
'tuiIconClockLarge',
|
222
|
+
'tuiIconToggleOff',
|
223
|
+
'tuiIconToggleOffLarge',
|
224
|
+
'tuiIconToggleOn',
|
225
|
+
'tuiIconToggleOnLarge',
|
226
|
+
'tuiIconCalendar',
|
227
|
+
'tuiIconCalendarLarge',
|
228
228
|
];
|
229
229
|
|
230
|
-
const TUI_VERSION = `3.
|
230
|
+
const TUI_VERSION = `3.61.0`;
|
231
231
|
|
232
232
|
/**
|
233
233
|
* Generated bundle index. Do not edit.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-constants.js","sources":["../../../projects/cdk/constants/always-false-handler.ts","../../../projects/cdk/constants/always-true-handler.ts","../../../projects/cdk/constants/browser.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/stringify.ts","../../../projects/cdk/constants/matcher.ts","../../../projects/cdk/constants/parent-animation.ts","../../../projects/cdk/constants/polling-time.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","/**\n * @deprecated\n * TODO: drop support of legacy Edge (EdgeHTML) in v4.x\n */\nexport const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON() {\n return rect;\n },\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","import {animateChild, query, transition, trigger} from '@angular/animations';\n\n/**\n * Add to enable child :leave animation (fixes https://github.com/angular/angular/issues/15753)\n */\nexport const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [\n transition(`:leave`, [query(`:scope > *`, [animateChild()], {optional: true})]),\n]);\n\n/**\n * Add on parent to stop initial :enter animation for children\n */\nexport const TUI_PARENT_STOP = trigger(`tuiParentStop`, [transition(`:enter`, [])]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n `ownerSVGElement` in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = `\\u00A0`;\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = `\\u2013`;\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = `\\u2014`;\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = `\\u00AB`;\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = `\\u00BB`;\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = `\\u002D`;\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = `\\u2212`;\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = `\\u002B`;\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = `\\u2022`;\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = `\\u2026`;\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = `\\u00A4`;\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = `\\u200B`;\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in taiga-ui components\n */\nexport const TUI_USED_ICONS = [\n `tuiIconMirMono`,\n `tuiIconVisaMono`,\n `tuiIconElectronMono`,\n `tuiIconMastercard`,\n `tuiIconMaestro`,\n `tuiIconAmex`,\n `tuiIconDinersClub`,\n `tuiIconDiscover`,\n `tuiIconHumo`,\n `tuiIconJCB`,\n `tuiIconRuPay`,\n `tuiIconUnionPay`,\n `tuiIconUzcard`,\n `tuiIconVerve`,\n `tuiIconCopyLarge`,\n `tuiIconCheckLarge`,\n `tuiIconLink`,\n `tuiIconSearch`,\n `tuiIconSun`,\n `tuiIconMoon`,\n `tuiIconCode`,\n `tuiIconMenuLarge`,\n `tuiIconRotate`,\n `tuiIconArrowLeft`,\n `tuiIconArrowRight`,\n `tuiIconPlus`,\n `tuiIconMinus`,\n `tuiIconMinimize`,\n `tuiIconEye`,\n `tuiIconEyeOff`,\n `tuiIconDrag`,\n `tuiIconSortAscending`,\n `tuiIconSortDescending`,\n `tuiIconSortOff`,\n `tuiIconCheck`,\n `tuiIconMinusLarge`,\n `tuiIconChevronUp`,\n `tuiIconHelpCircle`,\n `tuiIconClose`,\n `tuiIconAlertCircle`,\n `tuiIconChevronRight`,\n `tuiIconInfo`,\n `tuiIconCheckCircle`,\n `tuiIconXCircle`,\n `tuiIconChevronLeft`,\n `tuiIconStarLarge`,\n `tuiIconChevronDown`,\n `tuiIconChevronDownLarge`,\n `tuiIconFileLarge`,\n `tuiIconTrashLarge`,\n `tuiIconAlertCircleLarge`,\n `tuiIconCheckCircleLarge`,\n `tuiIconCopy`,\n `tuiIconEyeOffLarge`,\n `tuiIconEyeLarge`,\n `tuiIconClock`,\n `tuiIconClockLarge`,\n `tuiIconToggleOff`,\n `tuiIconToggleOffLarge`,\n `tuiIconToggleOn`,\n `tuiIconToggleOnLarge`,\n `tuiIconCalendar`,\n `tuiIconCalendarLarge`,\n] as const;\n","export const TUI_VERSION = `3.60.0`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;AAEG;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B,gBAAA,CAAA;IAClB,CAAoB,kBAAA,CAAA;IACpB,CAAyB,uBAAA,CAAA;IACzB,CAAkB,gBAAA,CAAA;IAClB,CAAmB,iBAAA,CAAA;IACnB,CAAyB,uBAAA,CAAA;IACzB,CAAyB,uBAAA,CAAA;IACzB,CAAa,WAAA,CAAA;IACb,CAAoB,kBAAA,CAAA;IACpB,CAAiB,eAAA,CAAA;IACjB,CAAc,YAAA,CAAA;IACd,CAAmB,iBAAA,CAAA;IACnB,CAAkB,gBAAA,CAAA;IAClB,CAAuB,qBAAA,CAAA;IACvB,CAAiB,eAAA,CAAA;IACjB,CAAsB,oBAAA,CAAA;IACtB,CAAiB,eAAA,CAAA;IACjB,CAAsB,oBAAA,CAAA;;;ACrEnB,MAAM,WAAW,GAAG;;ACA3B;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-constants.js","sources":["../../../projects/cdk/constants/always-false-handler.ts","../../../projects/cdk/constants/always-true-handler.ts","../../../projects/cdk/constants/browser.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/stringify.ts","../../../projects/cdk/constants/matcher.ts","../../../projects/cdk/constants/parent-animation.ts","../../../projects/cdk/constants/polling-time.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","/**\n * @deprecated\n * TODO: drop support of legacy Edge (EdgeHTML) in v4.x\n */\nexport const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON() {\n return rect;\n },\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","import {animateChild, query, transition, trigger} from '@angular/animations';\n\n/**\n * Add to enable child :leave animation (fixes https://github.com/angular/angular/issues/15753)\n */\nexport const TUI_PARENT_ANIMATION = trigger('tuiParentAnimation', [\n transition(':leave', [query(':scope > *', [animateChild()], {optional: true})]),\n]);\n\n/**\n * Add on parent to stop initial :enter animation for children\n */\nexport const TUI_PARENT_STOP = trigger('tuiParentStop', [transition(':enter', [])]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = '\\u00AB';\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = '\\u00BB';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = '\\u2212';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in taiga-ui components\n */\nexport const TUI_USED_ICONS = [\n 'tuiIconMirMono',\n 'tuiIconVisaMono',\n 'tuiIconElectronMono',\n 'tuiIconMastercard',\n 'tuiIconMaestro',\n 'tuiIconAmex',\n 'tuiIconDinersClub',\n 'tuiIconDiscover',\n 'tuiIconHumo',\n 'tuiIconJCB',\n 'tuiIconRuPay',\n 'tuiIconUnionPay',\n 'tuiIconUzcard',\n 'tuiIconVerve',\n 'tuiIconCopyLarge',\n 'tuiIconCheckLarge',\n 'tuiIconLink',\n 'tuiIconSearch',\n 'tuiIconSun',\n 'tuiIconMoon',\n 'tuiIconCode',\n 'tuiIconMenuLarge',\n 'tuiIconRotate',\n 'tuiIconArrowLeft',\n 'tuiIconArrowRight',\n 'tuiIconPlus',\n 'tuiIconMinus',\n 'tuiIconMinimize',\n 'tuiIconEye',\n 'tuiIconEyeOff',\n 'tuiIconDrag',\n 'tuiIconSortAscending',\n 'tuiIconSortDescending',\n 'tuiIconSortOff',\n 'tuiIconCheck',\n 'tuiIconMinusLarge',\n 'tuiIconChevronUp',\n 'tuiIconHelpCircle',\n 'tuiIconClose',\n 'tuiIconAlertCircle',\n 'tuiIconChevronRight',\n 'tuiIconInfo',\n 'tuiIconCheckCircle',\n 'tuiIconXCircle',\n 'tuiIconChevronLeft',\n 'tuiIconStarLarge',\n 'tuiIconChevronDown',\n 'tuiIconChevronDownLarge',\n 'tuiIconFileLarge',\n 'tuiIconTrashLarge',\n 'tuiIconAlertCircleLarge',\n 'tuiIconCheckCircleLarge',\n 'tuiIconCopy',\n 'tuiIconEyeOffLarge',\n 'tuiIconEyeLarge',\n 'tuiIconClock',\n 'tuiIconClockLarge',\n 'tuiIconToggleOff',\n 'tuiIconToggleOffLarge',\n 'tuiIconToggleOn',\n 'tuiIconToggleOnLarge',\n 'tuiIconCalendar',\n 'tuiIconCalendarLarge',\n] as const;\n","export const TUI_VERSION = `3.61.0`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;AAEG;AACH;MACa,oBAAoB,GAAG,MAAa;;ACJjD;;AAEG;AACH;MACa,mBAAmB,GAAG,MAAY;;ACJ/C;;;AAGG;AACI,MAAM,2BAA2B,GAAG;;ACF3C,MAAM,IAAI,GAAG;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,CAAC,EAAE,CAAC;AACJ,IAAA,CAAC,EAAE,CAAC;CACE,CAAC;AAEX;;;;AAIG;AACU,MAAA,WAAW,GAAG,IAAI,SAAS,GAAQ;AACzC,MAAM,WAAW,GAAO,GAAG;MACrB,cAAc,GAA6B,MAAK,IAAI;AACpD,MAAA,iBAAiB,GACvB,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,IAAI,KACP,MAAM,GAAA;AACF,QAAA,OAAO,IAAI,CAAC;AAChB,KAAC;;ACvBL;;AAEG;AACI,MAAM,qBAAqB,GAA8B,IAAI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,mBAAmB;IACnB,yBAAyB;IACzB,yBAAyB;IACzB,aAAa;IACb,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,mBAAmB;IACnB,kBAAkB;IAClB,uBAAuB;IACvB,iBAAiB;IACjB,sBAAsB;IACtB,iBAAiB;IACjB,sBAAsB;;;ACrEnB,MAAM,WAAW,GAAG;;ACA3B;;AAEG;;;;"}
|
@@ -50,12 +50,12 @@ const DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.l
|
|
50
50
|
/**
|
51
51
|
* Active date format for Taiga UI
|
52
52
|
*/
|
53
|
-
const TUI_DATE_FORMAT = tuiCreateToken(
|
53
|
+
const TUI_DATE_FORMAT = tuiCreateToken('DMY');
|
54
54
|
|
55
55
|
/**
|
56
56
|
* Date separator for Taiga UI components
|
57
57
|
*/
|
58
|
-
const TUI_DATE_SEPARATOR = tuiCreateToken(
|
58
|
+
const TUI_DATE_SEPARATOR = tuiCreateToken('.');
|
59
59
|
const changeDateSeparator = (dateString, newDateSeparator) => dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);
|
60
60
|
|
61
61
|
/**
|
@@ -97,7 +97,7 @@ class TuiYear {
|
|
97
97
|
return tuiNormalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
|
98
98
|
}
|
99
99
|
get formattedYear() {
|
100
|
-
return String(this.year).padStart(4,
|
100
|
+
return String(this.year).padStart(4, '0');
|
101
101
|
}
|
102
102
|
get isLeapYear() {
|
103
103
|
return TuiYear.isLeapYear(this.year);
|
@@ -235,7 +235,7 @@ class TuiMonth extends TuiYear {
|
|
235
235
|
return Number.isInteger(month) && tuiInRange(month, MIN_MONTH, MAX_MONTH + 1);
|
236
236
|
}
|
237
237
|
get formattedMonthPart() {
|
238
|
-
return String(this.month + 1).padStart(2,
|
238
|
+
return String(this.month + 1).padStart(2, '0');
|
239
239
|
}
|
240
240
|
/**
|
241
241
|
* Returns days in a month
|
@@ -383,23 +383,23 @@ class TuiDay extends TuiMonth {
|
|
383
383
|
return Math.round((to.toLocalNativeDate().getTime() - from.toLocalNativeDate().getTime()) /
|
384
384
|
(1000 * 60 * 60 * 24));
|
385
385
|
}
|
386
|
-
static parseRawDateString(date, dateMode =
|
386
|
+
static parseRawDateString(date, dateMode = 'DMY') {
|
387
387
|
ngDevMode &&
|
388
|
-
tuiAssert.assert(date.length === DATE_FILLER_LENGTH,
|
388
|
+
tuiAssert.assert(date.length === DATE_FILLER_LENGTH, '[parseRawDateString]: wrong date string length');
|
389
389
|
switch (dateMode) {
|
390
|
-
case
|
390
|
+
case 'YMD':
|
391
391
|
return {
|
392
392
|
day: parseInt(date.slice(8, 10), 10),
|
393
393
|
month: parseInt(date.slice(5, 7), 10) - 1,
|
394
394
|
year: parseInt(date.slice(0, 4), 10),
|
395
395
|
};
|
396
|
-
case
|
396
|
+
case 'MDY':
|
397
397
|
return {
|
398
398
|
day: parseInt(date.slice(3, 5), 10),
|
399
399
|
month: parseInt(date.slice(0, 2), 10) - 1,
|
400
400
|
year: parseInt(date.slice(6, 10), 10),
|
401
401
|
};
|
402
|
-
case
|
402
|
+
case 'DMY':
|
403
403
|
default:
|
404
404
|
return {
|
405
405
|
day: parseInt(date.slice(0, 2), 10),
|
@@ -416,7 +416,7 @@ class TuiDay extends TuiMonth {
|
|
416
416
|
* @param dateMode date format of the date string (DMY | MDY | YMD)
|
417
417
|
* @return normalized date
|
418
418
|
*/
|
419
|
-
static normalizeParse(rawDate, dateMode =
|
419
|
+
static normalizeParse(rawDate, dateMode = 'DMY') {
|
420
420
|
const { day, month, year } = this.parseRawDateString(rawDate, dateMode);
|
421
421
|
return TuiDay.normalizeOf(year, month, day);
|
422
422
|
}
|
@@ -427,7 +427,7 @@ class TuiDay extends TuiMonth {
|
|
427
427
|
* @throws exceptions if any part of the date is invalid
|
428
428
|
*/
|
429
429
|
static jsonParse(yearMonthDayString) {
|
430
|
-
const { day, month, year } = this.parseRawDateString(yearMonthDayString,
|
430
|
+
const { day, month, year } = this.parseRawDateString(yearMonthDayString, 'YMD');
|
431
431
|
if (!TuiYear.isValidYear(year)) {
|
432
432
|
throw new TuiInvalidYearException(year);
|
433
433
|
}
|
@@ -446,7 +446,7 @@ class TuiDay extends TuiMonth {
|
|
446
446
|
return tuiNormalizeToIntNumber(day, 1, monthDaysCount);
|
447
447
|
}
|
448
448
|
get formattedDayPart() {
|
449
|
-
return String(this.day).padStart(2,
|
449
|
+
return String(this.day).padStart(2, '0');
|
450
450
|
}
|
451
451
|
get isWeekend() {
|
452
452
|
const dayOfWeek = this.dayOfWeek(false);
|
@@ -556,21 +556,21 @@ class TuiDay extends TuiMonth {
|
|
556
556
|
*/
|
557
557
|
getFormattedDay(dateFormat, separator) {
|
558
558
|
ngDevMode &&
|
559
|
-
tuiAssert.assert(separator.length === 1,
|
559
|
+
tuiAssert.assert(separator.length === 1, 'Separator should consist of only 1 symbol');
|
560
560
|
const dd = this.formattedDayPart;
|
561
561
|
const mm = this.formattedMonthPart;
|
562
562
|
const yyyy = this.formattedYear;
|
563
563
|
switch (dateFormat) {
|
564
|
-
case
|
564
|
+
case 'YMD':
|
565
565
|
return `${yyyy}${separator}${mm}${separator}${dd}`;
|
566
|
-
case
|
566
|
+
case 'MDY':
|
567
567
|
return `${mm}${separator}${dd}${separator}${yyyy}`;
|
568
|
-
case
|
568
|
+
case 'DMY':
|
569
569
|
default:
|
570
570
|
return `${dd}${separator}${mm}${separator}${yyyy}`;
|
571
571
|
}
|
572
572
|
}
|
573
|
-
toString(dateFormat =
|
573
|
+
toString(dateFormat = 'DMY', separator = '.') {
|
574
574
|
return this.getFormattedDay(dateFormat, separator);
|
575
575
|
}
|
576
576
|
toJSON() {
|
@@ -644,7 +644,7 @@ class TuiDayRange extends TuiMonthRange {
|
|
644
644
|
* @param dateMode {@link TuiDateMode}
|
645
645
|
* @return normalized day range object
|
646
646
|
*/
|
647
|
-
static normalizeParse(rangeString, dateMode =
|
647
|
+
static normalizeParse(rangeString, dateMode = 'DMY') {
|
648
648
|
const leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
|
649
649
|
if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
|
650
650
|
return new TuiDayRange(leftDay, leftDay);
|
@@ -681,7 +681,7 @@ class TuiDayRange extends TuiMonthRange {
|
|
681
681
|
const to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
682
682
|
return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
|
683
683
|
}
|
684
|
-
toString(dateFormat =
|
684
|
+
toString(dateFormat = 'DMY', dateSeparator = '.') {
|
685
685
|
return this.getFormattedDayRange(dateFormat, dateSeparator);
|
686
686
|
}
|
687
687
|
}
|
@@ -699,7 +699,7 @@ class TuiTime {
|
|
699
699
|
this.seconds = seconds;
|
700
700
|
this.ms = ms;
|
701
701
|
ngDevMode &&
|
702
|
-
tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms),
|
702
|
+
tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), 'Time must be real, but got:', hours, minutes, seconds, ms);
|
703
703
|
}
|
704
704
|
/**
|
705
705
|
* Checks if time is valid
|
@@ -782,11 +782,11 @@ class TuiTime {
|
|
782
782
|
* Converts TuiTime to string
|
783
783
|
*/
|
784
784
|
toString(mode) {
|
785
|
-
const needAddMs = mode ===
|
786
|
-
const needAddSeconds = needAddMs || mode ===
|
785
|
+
const needAddMs = mode === 'HH:MM:SS.MSS' || (!mode && this.ms > 0);
|
786
|
+
const needAddSeconds = needAddMs || mode === 'HH:MM:SS' || (!mode && this.seconds > 0);
|
787
787
|
return (`${this.formatTime(this.hours)}:${this.formatTime(this.minutes)}` +
|
788
|
-
`${needAddSeconds ? `:${this.formatTime(this.seconds)}` :
|
789
|
-
`${needAddMs ? `.${this.formatTime(this.ms, 3)}` :
|
788
|
+
`${needAddSeconds ? `:${this.formatTime(this.seconds)}` : ''}` +
|
789
|
+
`${needAddMs ? `.${this.formatTime(this.ms, 3)}` : ''}`);
|
790
790
|
}
|
791
791
|
valueOf() {
|
792
792
|
return this.toAbsoluteMilliseconds();
|
@@ -809,7 +809,7 @@ class TuiTime {
|
|
809
809
|
this.ms);
|
810
810
|
}
|
811
811
|
formatTime(time, digits = 2) {
|
812
|
-
return String(time).padStart(digits,
|
812
|
+
return String(time).padStart(digits, '0');
|
813
813
|
}
|
814
814
|
}
|
815
815
|
|