@taiga-ui/cdk 3.60.0-canary.8108863 → 3.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +69 -69
- 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.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
@@ -1,597 +1,451 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk/decorators'), require('@taiga-ui/cdk/observables'), require('@taiga-ui/cdk/tokens'), require('@taiga-ui/cdk/utils'), require('rxjs/operators'), require('rxjs')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/directives/active-zone', ['exports', '@angular/core', '@taiga-ui/cdk/decorators', '@taiga-ui/cdk/observables', '@taiga-ui/cdk/tokens', '@taiga-ui/cdk/utils', 'rxjs/operators', 'rxjs'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.directives = global["taiga-ui"].cdk.directives || {}, global["taiga-ui"].cdk.directives["active-zone"] = {}), global.ng.core, global["taiga-ui"].cdk.decorators, global["taiga-ui"].cdk.observables, global["taiga-ui"].cdk.tokens, global["taiga-ui"].cdk.utils, global.rxjs.operators, global.rxjs));
|
5
5
|
})(this, (function (exports, i0, decorators, observables, tokens, utils, operators, i1) { 'use strict';
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
function _interopNamespace(e) {
|
8
|
+
if (e && e.__esModule) return e;
|
9
|
+
var n = Object.create(null);
|
10
|
+
if (e) {
|
11
|
+
Object.keys(e).forEach(function (k) {
|
12
|
+
if (k !== 'default') {
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () { return e[k]; }
|
17
|
+
});
|
18
|
+
}
|
19
|
+
});
|
18
20
|
}
|
19
|
-
|
21
|
+
n["default"] = e;
|
22
|
+
return Object.freeze(n);
|
20
23
|
}
|
21
|
-
n["default"] = e;
|
22
|
-
return Object.freeze(n);
|
23
|
-
}
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
/*! *****************************************************************************
|
29
|
+
Copyright (c) Microsoft Corporation.
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
32
|
+
purpose with or without fee is hereby granted.
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
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
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
function reject(value) { resume("throw", value); }
|
346
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
347
|
-
resume(q[0][0], q[0][1]); }
|
348
|
-
}
|
349
|
-
function __asyncDelegator(o) {
|
350
|
-
var i, p;
|
351
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
352
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
353
|
-
}
|
354
|
-
function __asyncValues(o) {
|
355
|
-
if (!Symbol.asyncIterator)
|
356
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
357
|
-
var m = o[Symbol.asyncIterator], i;
|
358
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
359
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
360
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
361
|
-
}
|
362
|
-
function __makeTemplateObject(cooked, raw) {
|
363
|
-
if (Object.defineProperty) {
|
364
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
365
|
-
}
|
366
|
-
else {
|
367
|
-
cooked.raw = raw;
|
368
|
-
}
|
369
|
-
return cooked;
|
370
|
-
}
|
371
|
-
;
|
372
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
373
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
374
|
-
}) : function (o, v) {
|
375
|
-
o["default"] = v;
|
376
|
-
};
|
377
|
-
function __importStar(mod) {
|
378
|
-
if (mod && mod.__esModule)
|
379
|
-
return mod;
|
380
|
-
var result = {};
|
381
|
-
if (mod != null)
|
382
|
-
for (var k in mod)
|
383
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
384
|
-
__createBinding(result, mod, k);
|
385
|
-
__setModuleDefault(result, mod);
|
386
|
-
return result;
|
387
|
-
}
|
388
|
-
function __importDefault(mod) {
|
389
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
390
|
-
}
|
391
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
392
|
-
if (kind === "a" && !f)
|
393
|
-
throw new TypeError("Private accessor was defined without a getter");
|
394
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
395
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
396
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
397
|
-
}
|
398
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
399
|
-
if (kind === "m")
|
400
|
-
throw new TypeError("Private method is not writable");
|
401
|
-
if (kind === "a" && !f)
|
402
|
-
throw new TypeError("Private accessor was defined without a setter");
|
403
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
404
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
405
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
406
|
-
}
|
407
|
-
function __classPrivateFieldIn(state, receiver) {
|
408
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
409
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
410
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
411
|
-
}
|
412
|
-
function __addDisposableResource(env, value, async) {
|
413
|
-
if (value !== null && value !== void 0) {
|
414
|
-
if (typeof value !== "object" && typeof value !== "function")
|
415
|
-
throw new TypeError("Object expected.");
|
416
|
-
var dispose;
|
417
|
-
if (async) {
|
418
|
-
if (!Symbol.asyncDispose)
|
419
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
420
|
-
dispose = value[Symbol.asyncDispose];
|
421
|
-
}
|
422
|
-
if (dispose === void 0) {
|
423
|
-
if (!Symbol.dispose)
|
424
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
425
|
-
dispose = value[Symbol.dispose];
|
426
|
-
}
|
427
|
-
if (typeof dispose !== "function")
|
428
|
-
throw new TypeError("Object not disposable.");
|
429
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
430
|
-
}
|
431
|
-
else if (async) {
|
432
|
-
env.stack.push({ async: true });
|
433
|
-
}
|
434
|
-
return value;
|
435
|
-
}
|
436
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
437
|
-
var e = new Error(message);
|
438
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
439
|
-
};
|
440
|
-
function __disposeResources(env) {
|
441
|
-
function fail(e) {
|
442
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
443
|
-
env.hasError = true;
|
444
|
-
}
|
445
|
-
function next() {
|
446
|
-
while (env.stack.length) {
|
447
|
-
var rec = env.stack.pop();
|
448
|
-
try {
|
449
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
450
|
-
if (rec.async)
|
451
|
-
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
452
|
-
}
|
453
|
-
catch (e) {
|
454
|
-
fail(e);
|
455
|
-
}
|
456
|
-
}
|
457
|
-
if (env.hasError)
|
458
|
-
throw env.error;
|
459
|
-
}
|
460
|
-
return next();
|
461
|
-
}
|
462
|
-
var tslib_es6 = {
|
463
|
-
__extends: __extends,
|
464
|
-
__assign: __assign,
|
465
|
-
__rest: __rest,
|
466
|
-
__decorate: __decorate,
|
467
|
-
__param: __param,
|
468
|
-
__metadata: __metadata,
|
469
|
-
__awaiter: __awaiter,
|
470
|
-
__generator: __generator,
|
471
|
-
__createBinding: __createBinding,
|
472
|
-
__exportStar: __exportStar,
|
473
|
-
__values: __values,
|
474
|
-
__read: __read,
|
475
|
-
__spread: __spread,
|
476
|
-
__spreadArrays: __spreadArrays,
|
477
|
-
__spreadArray: __spreadArray,
|
478
|
-
__await: __await,
|
479
|
-
__asyncGenerator: __asyncGenerator,
|
480
|
-
__asyncDelegator: __asyncDelegator,
|
481
|
-
__asyncValues: __asyncValues,
|
482
|
-
__makeTemplateObject: __makeTemplateObject,
|
483
|
-
__importStar: __importStar,
|
484
|
-
__importDefault: __importDefault,
|
485
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
486
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
487
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
488
|
-
__addDisposableResource: __addDisposableResource,
|
489
|
-
__disposeResources: __disposeResources,
|
490
|
-
};
|
34
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
35
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
36
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
37
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
38
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
39
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
40
|
+
PERFORMANCE OF THIS SOFTWARE.
|
41
|
+
***************************************************************************** */
|
42
|
+
/* global Reflect, Promise */
|
43
|
+
var extendStatics = function (d, b) {
|
44
|
+
extendStatics = Object.setPrototypeOf ||
|
45
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
46
|
+
function (d, b) { for (var p in b)
|
47
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
48
|
+
d[p] = b[p]; };
|
49
|
+
return extendStatics(d, b);
|
50
|
+
};
|
51
|
+
function __extends(d, b) {
|
52
|
+
if (typeof b !== "function" && b !== null)
|
53
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
54
|
+
extendStatics(d, b);
|
55
|
+
function __() { this.constructor = d; }
|
56
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
57
|
+
}
|
58
|
+
var __assign = function () {
|
59
|
+
__assign = Object.assign || function __assign(t) {
|
60
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
61
|
+
s = arguments[i];
|
62
|
+
for (var p in s)
|
63
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
64
|
+
t[p] = s[p];
|
65
|
+
}
|
66
|
+
return t;
|
67
|
+
};
|
68
|
+
return __assign.apply(this, arguments);
|
69
|
+
};
|
70
|
+
function __rest(s, e) {
|
71
|
+
var t = {};
|
72
|
+
for (var p in s)
|
73
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
74
|
+
t[p] = s[p];
|
75
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
76
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
77
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
78
|
+
t[p[i]] = s[p[i]];
|
79
|
+
}
|
80
|
+
return t;
|
81
|
+
}
|
82
|
+
function __decorate(decorators, target, key, desc) {
|
83
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
84
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
85
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
86
|
+
else
|
87
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
88
|
+
if (d = decorators[i])
|
89
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
90
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
91
|
+
}
|
92
|
+
function __param(paramIndex, decorator) {
|
93
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
94
|
+
}
|
95
|
+
function __metadata(metadataKey, metadataValue) {
|
96
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
97
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
98
|
+
}
|
99
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
100
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
101
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
102
|
+
function fulfilled(value) { try {
|
103
|
+
step(generator.next(value));
|
104
|
+
}
|
105
|
+
catch (e) {
|
106
|
+
reject(e);
|
107
|
+
} }
|
108
|
+
function rejected(value) { try {
|
109
|
+
step(generator["throw"](value));
|
110
|
+
}
|
111
|
+
catch (e) {
|
112
|
+
reject(e);
|
113
|
+
} }
|
114
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
115
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
116
|
+
});
|
117
|
+
}
|
118
|
+
function __generator(thisArg, body) {
|
119
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
120
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
121
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
122
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
123
|
+
function step(op) {
|
124
|
+
if (f)
|
125
|
+
throw new TypeError("Generator is already executing.");
|
126
|
+
while (_)
|
127
|
+
try {
|
128
|
+
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)
|
129
|
+
return t;
|
130
|
+
if (y = 0, t)
|
131
|
+
op = [op[0] & 2, t.value];
|
132
|
+
switch (op[0]) {
|
133
|
+
case 0:
|
134
|
+
case 1:
|
135
|
+
t = op;
|
136
|
+
break;
|
137
|
+
case 4:
|
138
|
+
_.label++;
|
139
|
+
return { value: op[1], done: false };
|
140
|
+
case 5:
|
141
|
+
_.label++;
|
142
|
+
y = op[1];
|
143
|
+
op = [0];
|
144
|
+
continue;
|
145
|
+
case 7:
|
146
|
+
op = _.ops.pop();
|
147
|
+
_.trys.pop();
|
148
|
+
continue;
|
149
|
+
default:
|
150
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
151
|
+
_ = 0;
|
152
|
+
continue;
|
153
|
+
}
|
154
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
155
|
+
_.label = op[1];
|
156
|
+
break;
|
157
|
+
}
|
158
|
+
if (op[0] === 6 && _.label < t[1]) {
|
159
|
+
_.label = t[1];
|
160
|
+
t = op;
|
161
|
+
break;
|
162
|
+
}
|
163
|
+
if (t && _.label < t[2]) {
|
164
|
+
_.label = t[2];
|
165
|
+
_.ops.push(op);
|
166
|
+
break;
|
167
|
+
}
|
168
|
+
if (t[2])
|
169
|
+
_.ops.pop();
|
170
|
+
_.trys.pop();
|
171
|
+
continue;
|
172
|
+
}
|
173
|
+
op = body.call(thisArg, _);
|
174
|
+
}
|
175
|
+
catch (e) {
|
176
|
+
op = [6, e];
|
177
|
+
y = 0;
|
178
|
+
}
|
179
|
+
finally {
|
180
|
+
f = t = 0;
|
181
|
+
}
|
182
|
+
if (op[0] & 5)
|
183
|
+
throw op[1];
|
184
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
185
|
+
}
|
186
|
+
}
|
187
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
188
|
+
if (k2 === undefined)
|
189
|
+
k2 = k;
|
190
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
191
|
+
}) : (function (o, m, k, k2) {
|
192
|
+
if (k2 === undefined)
|
193
|
+
k2 = k;
|
194
|
+
o[k2] = m[k];
|
195
|
+
});
|
196
|
+
function __exportStar(m, o) {
|
197
|
+
for (var p in m)
|
198
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
199
|
+
__createBinding(o, m, p);
|
200
|
+
}
|
201
|
+
function __values(o) {
|
202
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
203
|
+
if (m)
|
204
|
+
return m.call(o);
|
205
|
+
if (o && typeof o.length === "number")
|
206
|
+
return {
|
207
|
+
next: function () {
|
208
|
+
if (o && i >= o.length)
|
209
|
+
o = void 0;
|
210
|
+
return { value: o && o[i++], done: !o };
|
211
|
+
}
|
212
|
+
};
|
213
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
214
|
+
}
|
215
|
+
function __read(o, n) {
|
216
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
217
|
+
if (!m)
|
218
|
+
return o;
|
219
|
+
var i = m.call(o), r, ar = [], e;
|
220
|
+
try {
|
221
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
222
|
+
ar.push(r.value);
|
223
|
+
}
|
224
|
+
catch (error) {
|
225
|
+
e = { error: error };
|
226
|
+
}
|
227
|
+
finally {
|
228
|
+
try {
|
229
|
+
if (r && !r.done && (m = i["return"]))
|
230
|
+
m.call(i);
|
231
|
+
}
|
232
|
+
finally {
|
233
|
+
if (e)
|
234
|
+
throw e.error;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
return ar;
|
238
|
+
}
|
239
|
+
/** @deprecated */
|
240
|
+
function __spread() {
|
241
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
242
|
+
ar = ar.concat(__read(arguments[i]));
|
243
|
+
return ar;
|
244
|
+
}
|
245
|
+
/** @deprecated */
|
246
|
+
function __spreadArrays() {
|
247
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
248
|
+
s += arguments[i].length;
|
249
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
250
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
251
|
+
r[k] = a[j];
|
252
|
+
return r;
|
253
|
+
}
|
254
|
+
function __spreadArray(to, from, pack) {
|
255
|
+
if (pack || arguments.length === 2)
|
256
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
257
|
+
if (ar || !(i in from)) {
|
258
|
+
if (!ar)
|
259
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
260
|
+
ar[i] = from[i];
|
261
|
+
}
|
262
|
+
}
|
263
|
+
return to.concat(ar || from);
|
264
|
+
}
|
265
|
+
function __await(v) {
|
266
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
267
|
+
}
|
268
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
269
|
+
if (!Symbol.asyncIterator)
|
270
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
271
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
272
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
273
|
+
function verb(n) { if (g[n])
|
274
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
275
|
+
function resume(n, v) { try {
|
276
|
+
step(g[n](v));
|
277
|
+
}
|
278
|
+
catch (e) {
|
279
|
+
settle(q[0][3], e);
|
280
|
+
} }
|
281
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
282
|
+
function fulfill(value) { resume("next", value); }
|
283
|
+
function reject(value) { resume("throw", value); }
|
284
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
285
|
+
resume(q[0][0], q[0][1]); }
|
286
|
+
}
|
287
|
+
function __asyncDelegator(o) {
|
288
|
+
var i, p;
|
289
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
290
|
+
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; }
|
291
|
+
}
|
292
|
+
function __asyncValues(o) {
|
293
|
+
if (!Symbol.asyncIterator)
|
294
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
295
|
+
var m = o[Symbol.asyncIterator], i;
|
296
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
297
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
298
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
299
|
+
}
|
300
|
+
function __makeTemplateObject(cooked, raw) {
|
301
|
+
if (Object.defineProperty) {
|
302
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
303
|
+
}
|
304
|
+
else {
|
305
|
+
cooked.raw = raw;
|
306
|
+
}
|
307
|
+
return cooked;
|
308
|
+
}
|
309
|
+
;
|
310
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
311
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
312
|
+
}) : function (o, v) {
|
313
|
+
o["default"] = v;
|
314
|
+
};
|
315
|
+
function __importStar(mod) {
|
316
|
+
if (mod && mod.__esModule)
|
317
|
+
return mod;
|
318
|
+
var result = {};
|
319
|
+
if (mod != null)
|
320
|
+
for (var k in mod)
|
321
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
322
|
+
__createBinding(result, mod, k);
|
323
|
+
__setModuleDefault(result, mod);
|
324
|
+
return result;
|
325
|
+
}
|
326
|
+
function __importDefault(mod) {
|
327
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
328
|
+
}
|
329
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
330
|
+
if (kind === "a" && !f)
|
331
|
+
throw new TypeError("Private accessor was defined without a getter");
|
332
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
333
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
334
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
335
|
+
}
|
336
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
337
|
+
if (kind === "m")
|
338
|
+
throw new TypeError("Private method is not writable");
|
339
|
+
if (kind === "a" && !f)
|
340
|
+
throw new TypeError("Private accessor was defined without a setter");
|
341
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
342
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
343
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
344
|
+
}
|
491
345
|
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
346
|
+
var TuiActiveZoneDirective = /** @class */ (function () {
|
347
|
+
function TuiActiveZoneDirective(active$, zone, el, directParentActiveZone) {
|
348
|
+
var _this = this;
|
349
|
+
var _a;
|
350
|
+
this.active$ = active$;
|
351
|
+
this.zone = zone;
|
352
|
+
this.el = el;
|
353
|
+
this.directParentActiveZone = directParentActiveZone;
|
354
|
+
this.subActiveZones = [];
|
355
|
+
this.tuiActiveZoneParent = null;
|
356
|
+
this.tuiActiveZoneChange = this.active$.pipe(operators.map(function (element) { return !!element && _this.contains(element); }), operators.startWith(false), operators.distinctUntilChanged(), operators.skip(1), observables.tuiZoneOptimized(this.zone));
|
357
|
+
(_a = this.directParentActiveZone) === null || _a === void 0 ? void 0 : _a.addSubActiveZone(this);
|
358
|
+
}
|
359
|
+
Object.defineProperty(TuiActiveZoneDirective.prototype, "tuiActiveZoneParentSetter", {
|
360
|
+
set: function (zone) {
|
361
|
+
this.setZone(zone);
|
362
|
+
},
|
363
|
+
enumerable: false,
|
364
|
+
configurable: true
|
365
|
+
});
|
366
|
+
TuiActiveZoneDirective.prototype.ngOnDestroy = function () {
|
367
|
+
var _a, _b;
|
368
|
+
(_a = this.directParentActiveZone) === null || _a === void 0 ? void 0 : _a.removeSubActiveZone(this);
|
369
|
+
(_b = this.tuiActiveZoneParent) === null || _b === void 0 ? void 0 : _b.removeSubActiveZone(this);
|
370
|
+
};
|
371
|
+
TuiActiveZoneDirective.prototype.contains = function (node) {
|
372
|
+
return (this.el.nativeElement.contains(node) ||
|
373
|
+
this.subActiveZones.some(function (item, index, array) { return array.indexOf(item) === index && item.contains(node); }));
|
374
|
+
};
|
375
|
+
TuiActiveZoneDirective.prototype.setZone = function (zone) {
|
376
|
+
var _a;
|
377
|
+
(_a = this.tuiActiveZoneParent) === null || _a === void 0 ? void 0 : _a.removeSubActiveZone(this);
|
378
|
+
zone === null || zone === void 0 ? void 0 : zone.addSubActiveZone(this);
|
379
|
+
this.tuiActiveZoneParent = zone;
|
380
|
+
};
|
381
|
+
TuiActiveZoneDirective.prototype.addSubActiveZone = function (activeZone) {
|
382
|
+
this.subActiveZones = __spreadArray(__spreadArray([], __read(this.subActiveZones)), [activeZone]);
|
383
|
+
};
|
384
|
+
TuiActiveZoneDirective.prototype.removeSubActiveZone = function (activeZone) {
|
385
|
+
this.subActiveZones = utils.tuiArrayRemove(this.subActiveZones, this.subActiveZones.indexOf(activeZone));
|
386
|
+
};
|
387
|
+
return TuiActiveZoneDirective;
|
388
|
+
}());
|
389
|
+
TuiActiveZoneDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiActiveZoneDirective, deps: [{ token: tokens.TUI_ACTIVE_ELEMENT }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: TuiActiveZoneDirective, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
390
|
+
TuiActiveZoneDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: { tuiActiveZoneParentSetter: ["tuiActiveZoneParent", "tuiActiveZoneParentSetter"] }, outputs: { tuiActiveZoneChange: "tuiActiveZoneChange" }, exportAs: ["tuiActiveZone"], ngImport: i0__namespace });
|
391
|
+
__decorate([
|
392
|
+
decorators.tuiPure
|
393
|
+
], TuiActiveZoneDirective.prototype, "setZone", null);
|
394
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiActiveZoneDirective, decorators: [{
|
395
|
+
type: i0.Directive,
|
396
|
+
args: [{
|
397
|
+
selector: '[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)',
|
398
|
+
exportAs: 'tuiActiveZone',
|
399
|
+
}]
|
400
|
+
}], ctorParameters: function () {
|
401
|
+
return [{ type: i1__namespace.Observable, decorators: [{
|
402
|
+
type: i0.Inject,
|
403
|
+
args: [tokens.TUI_ACTIVE_ELEMENT]
|
404
|
+
}] }, { type: i0__namespace.NgZone, decorators: [{
|
405
|
+
type: i0.Inject,
|
406
|
+
args: [i0.NgZone]
|
407
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
408
|
+
type: i0.Inject,
|
409
|
+
args: [i0.ElementRef]
|
410
|
+
}] }, { type: TuiActiveZoneDirective, decorators: [{
|
411
|
+
type: i0.Optional
|
412
|
+
}, {
|
413
|
+
type: i0.SkipSelf
|
414
|
+
}, {
|
415
|
+
type: i0.Inject,
|
416
|
+
args: [TuiActiveZoneDirective]
|
417
|
+
}] }];
|
418
|
+
}, propDecorators: { tuiActiveZoneParentSetter: [{
|
419
|
+
type: i0.Input,
|
420
|
+
args: ['tuiActiveZoneParent']
|
421
|
+
}], tuiActiveZoneChange: [{
|
422
|
+
type: i0.Output
|
423
|
+
}], setZone: [] } });
|
570
424
|
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
425
|
+
var TuiActiveZoneModule = /** @class */ (function () {
|
426
|
+
function TuiActiveZoneModule() {
|
427
|
+
}
|
428
|
+
return TuiActiveZoneModule;
|
429
|
+
}());
|
430
|
+
TuiActiveZoneModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiActiveZoneModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
431
|
+
TuiActiveZoneModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiActiveZoneModule, declarations: [TuiActiveZoneDirective], exports: [TuiActiveZoneDirective] });
|
432
|
+
TuiActiveZoneModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiActiveZoneModule });
|
433
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiActiveZoneModule, decorators: [{
|
434
|
+
type: i0.NgModule,
|
435
|
+
args: [{
|
436
|
+
declarations: [TuiActiveZoneDirective],
|
437
|
+
exports: [TuiActiveZoneDirective],
|
438
|
+
}]
|
439
|
+
}] });
|
586
440
|
|
587
|
-
|
588
|
-
|
589
|
-
|
441
|
+
/**
|
442
|
+
* Generated bundle index. Do not edit.
|
443
|
+
*/
|
590
444
|
|
591
|
-
|
592
|
-
|
445
|
+
exports.TuiActiveZoneDirective = TuiActiveZoneDirective;
|
446
|
+
exports.TuiActiveZoneModule = TuiActiveZoneModule;
|
593
447
|
|
594
|
-
|
448
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
595
449
|
|
596
450
|
}));
|
597
451
|
//# sourceMappingURL=taiga-ui-cdk-directives-active-zone.umd.js.map
|