@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
@@ -49,15 +49,15 @@
|
|
49
49
|
/**
|
50
50
|
* Active date format for Taiga UI
|
51
51
|
*/
|
52
|
-
var TUI_DATE_FORMAT = utils.tuiCreateToken(
|
52
|
+
var TUI_DATE_FORMAT = utils.tuiCreateToken('DMY');
|
53
53
|
|
54
54
|
/**
|
55
55
|
* Date separator for Taiga UI components
|
56
56
|
*/
|
57
|
-
var TUI_DATE_SEPARATOR = utils.tuiCreateToken(
|
57
|
+
var TUI_DATE_SEPARATOR = utils.tuiCreateToken('.');
|
58
58
|
var changeDateSeparator = function (dateString, newDateSeparator) { return dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator); };
|
59
59
|
|
60
|
-
|
60
|
+
/*! *****************************************************************************
|
61
61
|
Copyright (c) Microsoft Corporation.
|
62
62
|
|
63
63
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -71,7 +71,7 @@
|
|
71
71
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
72
72
|
PERFORMANCE OF THIS SOFTWARE.
|
73
73
|
***************************************************************************** */
|
74
|
-
/* global Reflect, Promise
|
74
|
+
/* global Reflect, Promise */
|
75
75
|
var extendStatics = function (d, b) {
|
76
76
|
extendStatics = Object.setPrototypeOf ||
|
77
77
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
@@ -124,64 +124,6 @@
|
|
124
124
|
function __param(paramIndex, decorator) {
|
125
125
|
return function (target, key) { decorator(target, key, paramIndex); };
|
126
126
|
}
|
127
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
128
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
129
|
-
throw new TypeError("Function expected"); return f; }
|
130
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
131
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
132
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
133
|
-
var _, done = false;
|
134
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
135
|
-
var context = {};
|
136
|
-
for (var p in contextIn)
|
137
|
-
context[p] = p === "access" ? {} : contextIn[p];
|
138
|
-
for (var p in contextIn.access)
|
139
|
-
context.access[p] = contextIn.access[p];
|
140
|
-
context.addInitializer = function (f) { if (done)
|
141
|
-
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
142
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
143
|
-
if (kind === "accessor") {
|
144
|
-
if (result === void 0)
|
145
|
-
continue;
|
146
|
-
if (result === null || typeof result !== "object")
|
147
|
-
throw new TypeError("Object expected");
|
148
|
-
if (_ = accept(result.get))
|
149
|
-
descriptor.get = _;
|
150
|
-
if (_ = accept(result.set))
|
151
|
-
descriptor.set = _;
|
152
|
-
if (_ = accept(result.init))
|
153
|
-
initializers.unshift(_);
|
154
|
-
}
|
155
|
-
else if (_ = accept(result)) {
|
156
|
-
if (kind === "field")
|
157
|
-
initializers.unshift(_);
|
158
|
-
else
|
159
|
-
descriptor[key] = _;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
if (target)
|
163
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
164
|
-
done = true;
|
165
|
-
}
|
166
|
-
;
|
167
|
-
function __runInitializers(thisArg, initializers, value) {
|
168
|
-
var useValue = arguments.length > 2;
|
169
|
-
for (var i = 0; i < initializers.length; i++) {
|
170
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
171
|
-
}
|
172
|
-
return useValue ? value : void 0;
|
173
|
-
}
|
174
|
-
;
|
175
|
-
function __propKey(x) {
|
176
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
177
|
-
}
|
178
|
-
;
|
179
|
-
function __setFunctionName(f, name, prefix) {
|
180
|
-
if (typeof name === "symbol")
|
181
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
182
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
183
|
-
}
|
184
|
-
;
|
185
127
|
function __metadata(metadataKey, metadataValue) {
|
186
128
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
187
129
|
return Reflect.metadata(metadataKey, metadataValue);
|
@@ -213,7 +155,7 @@
|
|
213
155
|
function step(op) {
|
214
156
|
if (f)
|
215
157
|
throw new TypeError("Generator is already executing.");
|
216
|
-
while (
|
158
|
+
while (_)
|
217
159
|
try {
|
218
160
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
219
161
|
return t;
|
@@ -277,11 +219,7 @@
|
|
277
219
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
278
220
|
if (k2 === undefined)
|
279
221
|
k2 = k;
|
280
|
-
|
281
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
282
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
283
|
-
}
|
284
|
-
Object.defineProperty(o, k2, desc);
|
222
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
285
223
|
}) : (function (o, m, k, k2) {
|
286
224
|
if (k2 === undefined)
|
287
225
|
k2 = k;
|
@@ -354,7 +292,7 @@
|
|
354
292
|
ar[i] = from[i];
|
355
293
|
}
|
356
294
|
}
|
357
|
-
return to.concat(ar ||
|
295
|
+
return to.concat(ar || from);
|
358
296
|
}
|
359
297
|
function __await(v) {
|
360
298
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
@@ -381,7 +319,7 @@
|
|
381
319
|
function __asyncDelegator(o) {
|
382
320
|
var i, p;
|
383
321
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
384
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
322
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
385
323
|
}
|
386
324
|
function __asyncValues(o) {
|
387
325
|
if (!Symbol.asyncIterator)
|
@@ -436,90 +374,6 @@
|
|
436
374
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
437
375
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
438
376
|
}
|
439
|
-
function __classPrivateFieldIn(state, receiver) {
|
440
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
441
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
442
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
443
|
-
}
|
444
|
-
function __addDisposableResource(env, value, async) {
|
445
|
-
if (value !== null && value !== void 0) {
|
446
|
-
if (typeof value !== "object" && typeof value !== "function")
|
447
|
-
throw new TypeError("Object expected.");
|
448
|
-
var dispose;
|
449
|
-
if (async) {
|
450
|
-
if (!Symbol.asyncDispose)
|
451
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
452
|
-
dispose = value[Symbol.asyncDispose];
|
453
|
-
}
|
454
|
-
if (dispose === void 0) {
|
455
|
-
if (!Symbol.dispose)
|
456
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
457
|
-
dispose = value[Symbol.dispose];
|
458
|
-
}
|
459
|
-
if (typeof dispose !== "function")
|
460
|
-
throw new TypeError("Object not disposable.");
|
461
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
462
|
-
}
|
463
|
-
else if (async) {
|
464
|
-
env.stack.push({ async: true });
|
465
|
-
}
|
466
|
-
return value;
|
467
|
-
}
|
468
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
469
|
-
var e = new Error(message);
|
470
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
471
|
-
};
|
472
|
-
function __disposeResources(env) {
|
473
|
-
function fail(e) {
|
474
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
475
|
-
env.hasError = true;
|
476
|
-
}
|
477
|
-
function next() {
|
478
|
-
while (env.stack.length) {
|
479
|
-
var rec = env.stack.pop();
|
480
|
-
try {
|
481
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
482
|
-
if (rec.async)
|
483
|
-
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
484
|
-
}
|
485
|
-
catch (e) {
|
486
|
-
fail(e);
|
487
|
-
}
|
488
|
-
}
|
489
|
-
if (env.hasError)
|
490
|
-
throw env.error;
|
491
|
-
}
|
492
|
-
return next();
|
493
|
-
}
|
494
|
-
var tslib_es6 = {
|
495
|
-
__extends: __extends,
|
496
|
-
__assign: __assign,
|
497
|
-
__rest: __rest,
|
498
|
-
__decorate: __decorate,
|
499
|
-
__param: __param,
|
500
|
-
__metadata: __metadata,
|
501
|
-
__awaiter: __awaiter,
|
502
|
-
__generator: __generator,
|
503
|
-
__createBinding: __createBinding,
|
504
|
-
__exportStar: __exportStar,
|
505
|
-
__values: __values,
|
506
|
-
__read: __read,
|
507
|
-
__spread: __spread,
|
508
|
-
__spreadArrays: __spreadArrays,
|
509
|
-
__spreadArray: __spreadArray,
|
510
|
-
__await: __await,
|
511
|
-
__asyncGenerator: __asyncGenerator,
|
512
|
-
__asyncDelegator: __asyncDelegator,
|
513
|
-
__asyncValues: __asyncValues,
|
514
|
-
__makeTemplateObject: __makeTemplateObject,
|
515
|
-
__importStar: __importStar,
|
516
|
-
__importDefault: __importDefault,
|
517
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
518
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
519
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
520
|
-
__addDisposableResource: __addDisposableResource,
|
521
|
-
__disposeResources: __disposeResources,
|
522
|
-
};
|
523
377
|
|
524
378
|
/**
|
525
379
|
* Immutable year object
|
@@ -561,7 +415,7 @@
|
|
561
415
|
};
|
562
416
|
Object.defineProperty(TuiYear.prototype, "formattedYear", {
|
563
417
|
get: function () {
|
564
|
-
return String(this.year).padStart(4,
|
418
|
+
return String(this.year).padStart(4, '0');
|
565
419
|
},
|
566
420
|
enumerable: false,
|
567
421
|
configurable: true
|
@@ -720,7 +574,7 @@
|
|
720
574
|
};
|
721
575
|
Object.defineProperty(TuiMonth.prototype, "formattedMonthPart", {
|
722
576
|
get: function () {
|
723
|
-
return String(this.month + 1).padStart(2,
|
577
|
+
return String(this.month + 1).padStart(2, '0');
|
724
578
|
},
|
725
579
|
enumerable: false,
|
726
580
|
configurable: true
|
@@ -880,23 +734,23 @@
|
|
880
734
|
(1000 * 60 * 60 * 24));
|
881
735
|
};
|
882
736
|
TuiDay.parseRawDateString = function (date, dateMode) {
|
883
|
-
if (dateMode === void 0) { dateMode =
|
737
|
+
if (dateMode === void 0) { dateMode = 'DMY'; }
|
884
738
|
ngDevMode &&
|
885
|
-
classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH,
|
739
|
+
classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH, '[parseRawDateString]: wrong date string length');
|
886
740
|
switch (dateMode) {
|
887
|
-
case
|
741
|
+
case 'YMD':
|
888
742
|
return {
|
889
743
|
day: parseInt(date.slice(8, 10), 10),
|
890
744
|
month: parseInt(date.slice(5, 7), 10) - 1,
|
891
745
|
year: parseInt(date.slice(0, 4), 10),
|
892
746
|
};
|
893
|
-
case
|
747
|
+
case 'MDY':
|
894
748
|
return {
|
895
749
|
day: parseInt(date.slice(3, 5), 10),
|
896
750
|
month: parseInt(date.slice(0, 2), 10) - 1,
|
897
751
|
year: parseInt(date.slice(6, 10), 10),
|
898
752
|
};
|
899
|
-
case
|
753
|
+
case 'DMY':
|
900
754
|
default:
|
901
755
|
return {
|
902
756
|
day: parseInt(date.slice(0, 2), 10),
|
@@ -914,7 +768,7 @@
|
|
914
768
|
* @return normalized date
|
915
769
|
*/
|
916
770
|
TuiDay.normalizeParse = function (rawDate, dateMode) {
|
917
|
-
if (dateMode === void 0) { dateMode =
|
771
|
+
if (dateMode === void 0) { dateMode = 'DMY'; }
|
918
772
|
var _a = this.parseRawDateString(rawDate, dateMode), day = _a.day, month = _a.month, year = _a.year;
|
919
773
|
return TuiDay.normalizeOf(year, month, day);
|
920
774
|
};
|
@@ -925,7 +779,7 @@
|
|
925
779
|
* @throws exceptions if any part of the date is invalid
|
926
780
|
*/
|
927
781
|
TuiDay.jsonParse = function (yearMonthDayString) {
|
928
|
-
var _a = this.parseRawDateString(yearMonthDayString,
|
782
|
+
var _a = this.parseRawDateString(yearMonthDayString, 'YMD'), day = _a.day, month = _a.month, year = _a.year;
|
929
783
|
if (!TuiYear.isValidYear(year)) {
|
930
784
|
throw new exceptions.TuiInvalidYearException(year);
|
931
785
|
}
|
@@ -945,7 +799,7 @@
|
|
945
799
|
};
|
946
800
|
Object.defineProperty(TuiDay.prototype, "formattedDayPart", {
|
947
801
|
get: function () {
|
948
|
-
return String(this.day).padStart(2,
|
802
|
+
return String(this.day).padStart(2, '0');
|
949
803
|
},
|
950
804
|
enumerable: false,
|
951
805
|
configurable: true
|
@@ -1064,23 +918,23 @@
|
|
1064
918
|
*/
|
1065
919
|
TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
|
1066
920
|
ngDevMode &&
|
1067
|
-
classes.tuiAssert.assert(separator.length === 1,
|
921
|
+
classes.tuiAssert.assert(separator.length === 1, 'Separator should consist of only 1 symbol');
|
1068
922
|
var dd = this.formattedDayPart;
|
1069
923
|
var mm = this.formattedMonthPart;
|
1070
924
|
var yyyy = this.formattedYear;
|
1071
925
|
switch (dateFormat) {
|
1072
|
-
case
|
926
|
+
case 'YMD':
|
1073
927
|
return "" + yyyy + separator + mm + separator + dd;
|
1074
|
-
case
|
928
|
+
case 'MDY':
|
1075
929
|
return "" + mm + separator + dd + separator + yyyy;
|
1076
|
-
case
|
930
|
+
case 'DMY':
|
1077
931
|
default:
|
1078
932
|
return "" + dd + separator + mm + separator + yyyy;
|
1079
933
|
}
|
1080
934
|
};
|
1081
935
|
TuiDay.prototype.toString = function (dateFormat, separator) {
|
1082
|
-
if (dateFormat === void 0) { dateFormat =
|
1083
|
-
if (separator === void 0) { separator =
|
936
|
+
if (dateFormat === void 0) { dateFormat = 'DMY'; }
|
937
|
+
if (separator === void 0) { separator = '.'; }
|
1084
938
|
return this.getFormattedDay(dateFormat, separator);
|
1085
939
|
};
|
1086
940
|
TuiDay.prototype.toJSON = function () {
|
@@ -1163,7 +1017,7 @@
|
|
1163
1017
|
* @return normalized day range object
|
1164
1018
|
*/
|
1165
1019
|
TuiDayRange.normalizeParse = function (rangeString, dateMode) {
|
1166
|
-
if (dateMode === void 0) { dateMode =
|
1020
|
+
if (dateMode === void 0) { dateMode = 'DMY'; }
|
1167
1021
|
var leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
|
1168
1022
|
if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
|
1169
1023
|
return new TuiDayRange(leftDay, leftDay);
|
@@ -1205,8 +1059,8 @@
|
|
1205
1059
|
return "" + from + RANGE_SEPARATOR_CHAR + to;
|
1206
1060
|
};
|
1207
1061
|
TuiDayRange.prototype.toString = function (dateFormat, dateSeparator) {
|
1208
|
-
if (dateFormat === void 0) { dateFormat =
|
1209
|
-
if (dateSeparator === void 0) { dateSeparator =
|
1062
|
+
if (dateFormat === void 0) { dateFormat = 'DMY'; }
|
1063
|
+
if (dateSeparator === void 0) { dateSeparator = '.'; }
|
1210
1064
|
return this.getFormattedDayRange(dateFormat, dateSeparator);
|
1211
1065
|
};
|
1212
1066
|
return TuiDayRange;
|
@@ -1227,7 +1081,7 @@
|
|
1227
1081
|
this.seconds = seconds;
|
1228
1082
|
this.ms = ms;
|
1229
1083
|
ngDevMode &&
|
1230
|
-
classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms),
|
1084
|
+
classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), 'Time must be real, but got:', hours, minutes, seconds, ms);
|
1231
1085
|
}
|
1232
1086
|
/**
|
1233
1087
|
* Checks if time is valid
|
@@ -1313,11 +1167,11 @@
|
|
1313
1167
|
* Converts TuiTime to string
|
1314
1168
|
*/
|
1315
1169
|
TuiTime.prototype.toString = function (mode) {
|
1316
|
-
var needAddMs = mode ===
|
1317
|
-
var needAddSeconds = needAddMs || mode ===
|
1170
|
+
var needAddMs = mode === 'HH:MM:SS.MSS' || (!mode && this.ms > 0);
|
1171
|
+
var needAddSeconds = needAddMs || mode === 'HH:MM:SS' || (!mode && this.seconds > 0);
|
1318
1172
|
return (this.formatTime(this.hours) + ":" + this.formatTime(this.minutes) +
|
1319
|
-
("" + (needAddSeconds ? ":" + this.formatTime(this.seconds) :
|
1320
|
-
("" + (needAddMs ? "." + this.formatTime(this.ms, 3) :
|
1173
|
+
("" + (needAddSeconds ? ":" + this.formatTime(this.seconds) : '')) +
|
1174
|
+
("" + (needAddMs ? "." + this.formatTime(this.ms, 3) : '')));
|
1321
1175
|
};
|
1322
1176
|
TuiTime.prototype.valueOf = function () {
|
1323
1177
|
return this.toAbsoluteMilliseconds();
|
@@ -1341,7 +1195,7 @@
|
|
1341
1195
|
};
|
1342
1196
|
TuiTime.prototype.formatTime = function (time, digits) {
|
1343
1197
|
if (digits === void 0) { digits = 2; }
|
1344
|
-
return String(time).padStart(digits,
|
1198
|
+
return String(time).padStart(digits, '0');
|
1345
1199
|
};
|
1346
1200
|
return TuiTime;
|
1347
1201
|
}());
|