@taiga-ui/cdk 4.52.0-canary.24b31eb → 4.52.0-canary.2d877cf
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/README.md +1 -1
- package/classes/control.d.ts +4 -6
- package/classes/index.d.ts +0 -1
- package/constants/index.d.ts +0 -1
- package/constants/used-icons.d.ts +2 -2
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/date-fillers.d.ts +5 -5
- package/date-time/day-range.d.ts +1 -1
- package/date-time/day.d.ts +3 -3
- package/date-time/time.d.ts +2 -2
- package/date-time/types.d.ts +1 -12
- package/directives/active-zone/active-zone.directive.d.ts +0 -2
- package/directives/animated/animated.directive.d.ts +1 -3
- package/directives/animated/index.d.ts +0 -1
- package/directives/auto-focus/autofocus.directive.d.ts +2 -3
- package/directives/auto-focus/autofocus.options.d.ts +1 -1
- package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
- package/directives/hovered/hovered.directive.d.ts +1 -2
- package/directives/index.d.ts +0 -5
- package/directives/media/media.directive.d.ts +8 -12
- package/directives/native-validator/native-validator.directive.d.ts +2 -2
- package/directives/obscured/obscured.directive.d.ts +4 -4
- package/directives/pan/pan.directive.d.ts +1 -2
- package/directives/platform/platform.directive.d.ts +2 -2
- package/directives/resizer/resizer.directive.d.ts +3 -4
- package/directives/swipe/swipe.directive.d.ts +1 -2
- package/directives/transitioned/transitioned.directive.d.ts +1 -0
- package/directives/value-changes/value-changes.directive.d.ts +2 -2
- package/fesm2022/taiga-ui-cdk-classes.mjs +8 -91
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +16 -9
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs +34 -22
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +11 -16
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs +23 -72
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +10 -13
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +7 -10
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-element.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +5 -8
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +10 -13
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-media.mjs +32 -57
- package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +7 -10
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +14 -26
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs +10 -12
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +10 -12
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +7 -14
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +6 -7
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives.mjs +0 -5
- package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-observables.mjs +10 -28
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -5
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
- package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
- package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-tokens.mjs +13 -47
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs +3 -26
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-di.mjs +45 -4
- package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +3 -76
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -38
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-math.mjs +1 -12
- package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +45 -127
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk.mjs +1 -1
- package/index.d.ts +1 -1
- package/observables/index.d.ts +0 -2
- package/package.json +12 -58
- package/pipes/index.d.ts +0 -6
- package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
- package/portals/directive.d.ts +11 -0
- package/portals/index.d.ts +4 -0
- package/portals/portal.d.ts +24 -0
- package/portals/portals.d.ts +12 -0
- package/portals/service.d.ts +15 -0
- package/schematics/collection.json +2 -1
- package/schematics/migrate-tui-let/index.js +4 -3
- package/schematics/migrate-tui-let/index.js.map +1 -1
- package/schematics/migrate-tui-let/schema.json +7 -0
- package/schematics/ng-add/constants/versions.d.ts +1 -1
- package/schematics/ng-add/steps/add-taiga-modules.js +0 -15
- package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
- package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
- package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
- package/schematics/ng-update/v5/index.js +5 -0
- package/schematics/ng-update/v5/index.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js +22 -0
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/functions.js +37 -6
- package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +22 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js +46 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
- package/schematics/utils/angular-json-manipulations.js +0 -2
- package/schematics/utils/angular-json-manipulations.js.map +1 -1
- package/schematics/utils/run-migration.d.ts +14 -0
- package/schematics/utils/run-migration.js +27 -0
- package/schematics/utils/run-migration.js.map +1 -0
- package/schematics/utils/templates/elements.js +4 -12
- package/schematics/utils/templates/elements.js.map +1 -1
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js +1 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
- package/tokens/environment.d.ts +0 -13
- package/tokens/index.d.ts +0 -2
- package/tokens/removed-element.d.ts +0 -3
- package/types/index.d.ts +0 -2
- package/utils/browser/index.d.ts +0 -2
- package/utils/di/index.d.ts +3 -0
- package/utils/dom/index.d.ts +0 -6
- package/utils/focus/get-closest-focusable.d.ts +1 -6
- package/utils/focus/index.d.ts +4 -6
- package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -1
- package/utils/index.d.ts +0 -1
- package/utils/math/index.d.ts +0 -2
- package/utils/miscellaneous/generate-id.d.ts +1 -0
- package/utils/miscellaneous/index.d.ts +2 -11
- package/utils/miscellaneous/sanitize-text.d.ts +23 -0
- package/classes/portals.d.ts +0 -33
- package/constants/allow-signal-writes.d.ts +0 -2
- package/directives/animated/animated-parent.directive.d.ts +0 -10
- package/directives/click-outside/click-outside.directive.d.ts +0 -14
- package/directives/click-outside/index.d.ts +0 -1
- package/directives/droppable/droppable.directive.d.ts +0 -8
- package/directives/droppable/index.d.ts +0 -1
- package/directives/let/index.d.ts +0 -2
- package/directives/let/let-context.d.ts +0 -11
- package/directives/let/let.directive.d.ts +0 -18
- package/directives/popover/index.d.ts +0 -1
- package/directives/popover/popover.directive.d.ts +0 -14
- package/directives/repeat-times/index.d.ts +0 -1
- package/directives/repeat-times/repeat-times.directive.d.ts +0 -22
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -39
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -37
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -53
- package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -61
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -33
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -25
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -24
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -25
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -26
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -24
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-services.mjs +0 -151
- package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -195
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
- package/observables/must-be-present.d.ts +0 -5
- package/observables/query-list-observable.d.ts +0 -6
- package/pipes/animation/animation.pipe.d.ts +0 -13
- package/pipes/animation/index.d.ts +0 -1
- package/pipes/is-present/index.d.ts +0 -1
- package/pipes/is-present/is-present.pipe.d.ts +0 -7
- package/pipes/keys/index.d.ts +0 -1
- package/pipes/keys/keys.pipe.d.ts +0 -7
- package/pipes/repeat-times/index.d.ts +0 -7
- package/pipes/replace/index.d.ts +0 -1
- package/pipes/replace/replace.pipe.d.ts +0 -7
- package/pipes/to-array/index.d.ts +0 -1
- package/pipes/to-array/to-array.pipe.d.ts +0 -7
- package/services/id.service.d.ts +0 -8
- package/services/index.d.ts +0 -4
- package/services/popover.service.d.ts +0 -25
- package/services/scroll.service.d.ts +0 -13
- package/services/theme-color.service.d.ts +0 -18
- package/tokens/base-href.d.ts +0 -2
- package/tokens/range.d.ts +0 -5
- package/types/safe-html.d.ts +0 -2
- package/types/values-of.d.ts +0 -1
- package/utils/browser/is-apple.d.ts +0 -11
- package/utils/browser/is-ios.d.ts +0 -6
- package/utils/color/get-gradient-data.d.ts +0 -1
- package/utils/color/hex-to-rgb.d.ts +0 -1
- package/utils/color/hex-to-rgba.d.ts +0 -3
- package/utils/color/hsv-to-rgb.d.ts +0 -4
- package/utils/color/index.d.ts +0 -9
- package/utils/color/parse-color.d.ts +0 -1
- package/utils/color/parse-gradient.d.ts +0 -10
- package/utils/color/rgb-to-hex.d.ts +0 -1
- package/utils/color/rgb-to-hsv.d.ts +0 -1
- package/utils/color/rgba-to-hex.d.ts +0 -2
- package/utils/dom/get-element-point.d.ts +0 -2
- package/utils/dom/is-current-target.d.ts +0 -1
- package/utils/dom/is-inside-iframe.d.ts +0 -4
- package/utils/dom/is-node-in.d.ts +0 -8
- package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
- package/utils/dom/value-binding.d.ts +0 -3
- package/utils/focus/blur-native-focused.d.ts +0 -4
- package/utils/focus/is-native-mouse-focusable.d.ts +0 -1
- package/utils/math/to-integer.d.ts +0 -1
- package/utils/math/to-radians.d.ts +0 -4
- package/utils/miscellaneous/change-date-separator.d.ts +0 -1
- package/utils/miscellaneous/create-token.d.ts +0 -9
- package/utils/miscellaneous/directive-listener.d.ts +0 -9
- package/utils/miscellaneous/flat-length.d.ts +0 -6
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
- package/utils/miscellaneous/is-falsy.d.ts +0 -1
- package/utils/miscellaneous/is-valid-url.d.ts +0 -4
- package/utils/miscellaneous/uniq-by.d.ts +0 -1
- /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
- /package/utils/{miscellaneous → di}/provide-options.d.ts +0 -0
- /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
- /package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -0
- /package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -0
- /package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -0
package/README.md
CHANGED
package/classes/control.d.ts
CHANGED
|
@@ -8,30 +8,28 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare abstract class TuiControl<T> implements ControlValueAccessor {
|
|
9
9
|
private readonly fallback;
|
|
10
10
|
private readonly refresh$;
|
|
11
|
-
private readonly pseudoInvalid;
|
|
12
11
|
private readonly internal;
|
|
13
12
|
protected readonly control: NgControl;
|
|
14
13
|
protected readonly cdr: ChangeDetectorRef;
|
|
15
14
|
protected transformer: TuiValueTransformer<any, any>;
|
|
16
15
|
readonly value: import("@angular/core").Signal<T>;
|
|
17
|
-
readonly readOnly: import("@angular/core").
|
|
16
|
+
readonly readOnly: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
readonly pseudoInvalid: import("@angular/core").InputSignal<boolean | null>;
|
|
18
18
|
readonly touched: import("@angular/core").WritableSignal<boolean>;
|
|
19
19
|
readonly status: import("@angular/core").WritableSignal<FormControlStatus | undefined>;
|
|
20
20
|
readonly disabled: import("@angular/core").Signal<boolean>;
|
|
21
21
|
readonly interactive: import("@angular/core").Signal<boolean>;
|
|
22
22
|
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
23
|
-
readonly mode: import("@angular/core").Signal<"
|
|
23
|
+
readonly mode: import("@angular/core").Signal<"invalid" | "readonly" | "valid">;
|
|
24
24
|
onTouched: (...args: any[]) => void;
|
|
25
25
|
onChange: (value: T) => void;
|
|
26
26
|
constructor();
|
|
27
|
-
set readOnlySetter(readOnly: boolean);
|
|
28
|
-
set invalidSetter(invalid: boolean | null);
|
|
29
27
|
registerOnChange(onChange: (value: unknown) => void): void;
|
|
30
28
|
registerOnTouched(onTouched: () => void): void;
|
|
31
29
|
setDisabledState(): void;
|
|
32
30
|
writeValue(value: T | null): void;
|
|
33
31
|
private update;
|
|
34
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiControl<any>, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiControl<any>, never, never, { "
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiControl<any>, never, never, { "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "pseudoInvalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
34
|
}
|
|
37
35
|
export declare function tuiAsControl<T>(control: Type<TuiControl<T>>): Provider;
|
package/classes/index.d.ts
CHANGED
package/constants/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* @description:
|
|
3
3
|
* AUTOGENERATED
|
|
4
4
|
*
|
|
5
|
-
* Array of icons used in
|
|
5
|
+
* Array of icons used in ./projects
|
|
6
6
|
*/
|
|
7
|
-
export declare const TUI_USED_ICONS: readonly ["@tui.mir", "@tui.visa", "@tui.electron", "@tui.search", "@tui.sun", "@tui.moon", "@tui.code", "@tui.menu", "@tui.copy", "@tui.check", "@tui.link", "@tui.external-link", "@tui.languages", "@tui.shrink", "@tui.expand", "@tui.a-large-small", "@tui.arrow-right-left", "@tui.eye-off", "@tui.eye", "@tui.grip-vertical", "@tui.chevron-up", "@tui.chevron-down", "@tui.chevrons-up-down", "@tui.info", "@tui.circle-check", "@tui.circle-x", "@tui.circle-alert", "@tui.circle-help", "@tui.x", "@tui.chevron-right", "@tui.ellipsis", "@tui.chevron-left", "@tui.clock", "@tui.trash", "@tui.minus", "@tui.file", "@tui.calendar", "@tui.plus", "@tui.heart", "@tui.heart-filled", "@tui.
|
|
7
|
+
export declare const TUI_USED_ICONS: readonly ["@tui.mir", "@tui.visa", "@tui.electron", "@img.mastercard", "@img.maestro", "@img.amex", "@img.diners-club", "@img.discover", "@img.humo", "@img.jcb", "@img.ru-pay", "@img.union-pay", "@img.uzcard", "@img.verve", "@tui.search", "@tui.sun", "@tui.moon", "@tui.code", "@tui.menu", "@tui.copy", "@tui.check", "@tui.link", "@tui.external-link", "@tui.languages", "@tui.shrink", "@tui.expand", "@tui.a-large-small", "@tui.arrow-right-left", "@tui.eye-off", "@tui.eye", "@tui.grip-vertical", "@tui.chevron-up", "@tui.chevron-down", "@tui.chevrons-up-down", "@tui.info", "@tui.circle-check", "@tui.circle-x", "@tui.circle-alert", "@tui.circle-help", "@tui.x", "@tui.chevron-right", "@tui.ellipsis", "@tui.chevron-left", "@tui.clock", "@tui.trash", "@tui.minus", "@tui.file", "@tui.calendar", "@tui.plus", "@tui.heart", "@tui.heart-filled", "@tui.rotate-ccw-square", "@tui.arrow-left", "@tui.arrow-right", "@tui.minimize", "@tui.star", "@tui.filter", "@tui.layout-grid"];
|
package/constants/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TUI_VERSION = "4.52.0-canary.
|
|
1
|
+
export declare const TUI_VERSION = "4.52.0-canary.2d877cf";
|
package/constants/version.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @internal 'dd
|
|
2
|
+
* @internal 'dd/mm/yyyy'.length
|
|
3
3
|
* Used in:
|
|
4
|
-
* - {@link
|
|
5
|
-
* - {@link
|
|
6
|
-
* - {@link
|
|
4
|
+
* - {@link TuiInputDate}
|
|
5
|
+
* - {@link TuiInputDateRange}
|
|
6
|
+
* - {@link TuiInputDateTime}
|
|
7
7
|
*/
|
|
8
8
|
export declare const DATE_FILLER_LENGTH = 10;
|
|
9
9
|
/**
|
|
10
10
|
* @internal
|
|
11
|
-
* Used in {@link
|
|
11
|
+
* Used in {@link TuiInputDateRange}
|
|
12
12
|
*/
|
|
13
13
|
export declare const DATE_RANGE_FILLER_LENGTH: number;
|
package/date-time/day-range.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class TuiDayRange extends TuiMonthRange {
|
|
|
19
19
|
/**
|
|
20
20
|
* Parse and correct a day range in string format
|
|
21
21
|
*
|
|
22
|
-
* @param rangeString a string of dates in a format dd
|
|
22
|
+
* @param rangeString a string of dates in a format dd/mm/yyyy - dd/mm/yyyy
|
|
23
23
|
* @param dateMode {@link TuiDateMode}
|
|
24
24
|
* @return normalized day range object
|
|
25
25
|
*/
|
package/date-time/day.d.ts
CHANGED
|
@@ -55,17 +55,17 @@ export declare class TuiDay extends TuiMonth {
|
|
|
55
55
|
* Parsing a string with date with normalization
|
|
56
56
|
*
|
|
57
57
|
* @param rawDate date string
|
|
58
|
-
* @param dateMode date format of the date string (
|
|
58
|
+
* @param dateMode date format of the date string (dd/mm/yyyy | mm/dd/yyyy | yyyy/mm/dd)
|
|
59
59
|
* @return normalized date
|
|
60
60
|
*/
|
|
61
61
|
static normalizeParse(rawDate: string, dateMode?: TuiDateMode): TuiDay;
|
|
62
62
|
/**
|
|
63
63
|
* Parsing a date stringified in a toJSON format
|
|
64
|
-
* @param
|
|
64
|
+
* @param ymdString date string in format of YYYY-MM-DD
|
|
65
65
|
* @return date
|
|
66
66
|
* @throws exceptions if any part of the date is invalid
|
|
67
67
|
*/
|
|
68
|
-
static jsonParse(
|
|
68
|
+
static jsonParse(ymdString: string): TuiDay;
|
|
69
69
|
static normalizeDayPart(day: number, month: number, year: number): number;
|
|
70
70
|
get formattedDayPart(): string;
|
|
71
71
|
get isWeekend(): boolean;
|
package/date-time/time.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TuiTimeLike
|
|
1
|
+
import { type TuiTimeLike } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Immutable time object with hours, minutes, seconds and ms
|
|
4
4
|
*/
|
|
@@ -42,7 +42,7 @@ export declare class TuiTime implements TuiTimeLike {
|
|
|
42
42
|
/**
|
|
43
43
|
* Converts TuiTime to string
|
|
44
44
|
*/
|
|
45
|
-
toString(mode?:
|
|
45
|
+
toString(mode?: 'HH AA' | 'HH:MM AA' | 'HH:MM:SS AA' | 'HH:MM:SS.MSS AA' | 'HH:MM:SS.MSS' | 'HH:MM:SS' | 'HH:MM' | 'HH' | 'MM:SS.MSS' | 'MM:SS' | 'SS.MSS'): string;
|
|
46
46
|
valueOf(): number;
|
|
47
47
|
/**
|
|
48
48
|
* Returns the primitive value of the given Date object.
|
package/date-time/types.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* * DMY - dd.mm.yyyy
|
|
3
|
-
* * MDY - mm.dd.yyyy
|
|
4
|
-
* * YMD - yyyy.mm.dd
|
|
5
|
-
* TODO: Change to be MaskitoDateMode compatible in v5
|
|
6
|
-
*/
|
|
7
|
-
export type TuiDateMode = 'DMY' | 'MDY' | 'YMD';
|
|
8
|
-
/**
|
|
9
|
-
* TODO(v5): replace all its usage by MaskitoTimeMode and delete it
|
|
10
|
-
* @deprecated use `MaskitoTimeMode` (from `@maskito/kit`) instead
|
|
11
|
-
*/
|
|
12
|
-
export type TuiTimeMode = 'HH AA' | 'HH:MM AA' | 'HH:MM:SS AA' | 'HH:MM:SS.MSS AA' | 'HH:MM:SS.MSS' | 'HH:MM:SS' | 'HH:MM' | 'HH' | 'MM:SS.MSS' | 'MM:SS' | 'MM.SS.MSS' | 'SS.MSS';
|
|
1
|
+
export type TuiDateMode = 'dd/mm/yyyy' | 'mm/dd/yyyy' | 'yyyy/mm/dd';
|
|
13
2
|
/**
|
|
14
3
|
* Optionally has year and/or month and/or day
|
|
15
4
|
*/
|
|
@@ -2,9 +2,7 @@ import { type OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { type Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TuiActiveZone implements OnDestroy {
|
|
5
|
-
private readonly control;
|
|
6
5
|
private readonly active$;
|
|
7
|
-
private readonly zone;
|
|
8
6
|
private tuiActiveZoneParent;
|
|
9
7
|
private readonly parent;
|
|
10
8
|
private readonly el;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { type OnDestroy } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare const TUI_ENTER = "tui-enter";
|
|
4
3
|
export declare const TUI_LEAVE = "tui-leave";
|
|
5
|
-
export declare class TuiAnimated
|
|
4
|
+
export declare class TuiAnimated {
|
|
6
5
|
private readonly renderer;
|
|
7
6
|
private readonly el;
|
|
8
7
|
constructor();
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
8
|
protected remove(): void;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAnimated, never>;
|
|
12
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAnimated, "[tuiAnimated]", never, {}, {}, never, never, true, never>;
|
|
@@ -5,10 +5,9 @@ export declare class TuiAutoFocus implements AfterViewInit {
|
|
|
5
5
|
private readonly handler;
|
|
6
6
|
private readonly options;
|
|
7
7
|
private readonly destroyRef;
|
|
8
|
-
autoFocus: BooleanInput
|
|
8
|
+
readonly autoFocus: import("@angular/core").InputSignalWithTransform<BooleanInput, any>;
|
|
9
9
|
ngAfterViewInit(): void;
|
|
10
10
|
focus(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAutoFocus, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAutoFocus, "[tuiAutoFocus]", never, { "autoFocus": { "alias": "tuiAutoFocus"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
-
static ngAcceptInputType_autoFocus: any;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAutoFocus, "[tuiAutoFocus]", never, { "autoFocus": { "alias": "tuiAutoFocus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
13
|
}
|
|
@@ -14,6 +14,6 @@ export declare const TUI_AUTOFOCUS_OPTIONS: InjectionToken<TuiAutofocusOptions>,
|
|
|
14
14
|
export declare const TUI_AUTOFOCUS_HANDLER: InjectionToken<TuiAutofocusHandler>;
|
|
15
15
|
export declare const TUI_AUTOFOCUS_PROVIDERS: {
|
|
16
16
|
provide: InjectionToken<TuiAutofocusHandler>;
|
|
17
|
-
deps: (InjectionToken<
|
|
17
|
+
deps: (InjectionToken<TuiAutofocusOptions> | typeof ElementRef | typeof Renderer2 | typeof NgZone)[];
|
|
18
18
|
useFactory: (el: ElementRef<HTMLElement>, animationFrame$: Observable<number>, renderer: Renderer2, zone: NgZone, win: Window, isIos: boolean, options: TuiAutofocusOptions) => TuiDefaultAutofocusHandler | TuiIosAutofocusHandler;
|
|
19
19
|
}[];
|
|
@@ -2,8 +2,8 @@ import { type TuiStringHandler } from '@taiga-ui/cdk/types';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TuiCopyProcessor {
|
|
4
4
|
private readonly win;
|
|
5
|
-
tuiCopyProcessor: TuiStringHandler<string
|
|
5
|
+
readonly tuiCopyProcessor: import("@angular/core").InputSignal<TuiStringHandler<string>>;
|
|
6
6
|
protected onCopy(event: ClipboardEvent): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiCopyProcessor, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiCopyProcessor, "[tuiCopyProcessor]", never, { "tuiCopyProcessor": { "alias": "tuiCopyProcessor"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiCopyProcessor, "[tuiCopyProcessor]", never, { "tuiCopyProcessor": { "alias": "tuiCopyProcessor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TuiHoveredService } from './hovered.service';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class TuiHovered {
|
|
4
|
-
readonly tuiHoveredChange:
|
|
3
|
+
readonly tuiHoveredChange: import("@angular/core").OutputRef<boolean>;
|
|
5
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiHovered, never>;
|
|
6
5
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHovered, "[tuiHoveredChange]", never, {}, { "tuiHoveredChange": "tuiHoveredChange"; }, never, never, true, never>;
|
|
7
6
|
}
|
package/directives/index.d.ts
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
export * from '@taiga-ui/cdk/directives/active-zone';
|
|
2
2
|
export * from '@taiga-ui/cdk/directives/animated';
|
|
3
3
|
export * from '@taiga-ui/cdk/directives/auto-focus';
|
|
4
|
-
export * from '@taiga-ui/cdk/directives/click-outside';
|
|
5
4
|
export * from '@taiga-ui/cdk/directives/control';
|
|
6
5
|
export * from '@taiga-ui/cdk/directives/copy-processor';
|
|
7
|
-
export * from '@taiga-ui/cdk/directives/droppable';
|
|
8
6
|
export * from '@taiga-ui/cdk/directives/element';
|
|
9
7
|
export * from '@taiga-ui/cdk/directives/focus-trap';
|
|
10
8
|
export * from '@taiga-ui/cdk/directives/font-size';
|
|
11
9
|
export * from '@taiga-ui/cdk/directives/high-dpi';
|
|
12
10
|
export * from '@taiga-ui/cdk/directives/hovered';
|
|
13
11
|
export * from '@taiga-ui/cdk/directives/item';
|
|
14
|
-
export * from '@taiga-ui/cdk/directives/let';
|
|
15
12
|
export * from '@taiga-ui/cdk/directives/media';
|
|
16
13
|
export * from '@taiga-ui/cdk/directives/native-validator';
|
|
17
14
|
export * from '@taiga-ui/cdk/directives/obscured';
|
|
18
15
|
export * from '@taiga-ui/cdk/directives/pan';
|
|
19
16
|
export * from '@taiga-ui/cdk/directives/platform';
|
|
20
|
-
export * from '@taiga-ui/cdk/directives/popover';
|
|
21
|
-
export * from '@taiga-ui/cdk/directives/repeat-times';
|
|
22
17
|
export * from '@taiga-ui/cdk/directives/resizer';
|
|
23
18
|
export * from '@taiga-ui/cdk/directives/swipe';
|
|
24
19
|
export * from '@taiga-ui/cdk/directives/transitioned';
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class TuiMedia {
|
|
4
3
|
private readonly el;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
set paused(paused: boolean);
|
|
13
|
-
get currentTime(): number;
|
|
14
|
-
get paused(): boolean;
|
|
4
|
+
protected readonly setElCurrentTime: import("@angular/core").EffectRef;
|
|
5
|
+
protected readonly setElPlaybackRate: import("@angular/core").EffectRef;
|
|
6
|
+
protected readonly setElPaused: import("@angular/core").EffectRef;
|
|
7
|
+
readonly playbackRate: import("@angular/core").InputSignal<number>;
|
|
8
|
+
readonly volume: import("@angular/core").ModelSignal<number>;
|
|
9
|
+
readonly currentTime: import("@angular/core").ModelSignal<number>;
|
|
10
|
+
readonly paused: import("@angular/core").ModelSignal<boolean>;
|
|
15
11
|
protected onPausedChange(paused: boolean): void;
|
|
16
12
|
protected onVolumeChange(): void;
|
|
17
13
|
protected onCurrentTimeChange(): void;
|
|
18
14
|
private updatePlaybackRate;
|
|
19
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiMedia, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiMedia, "video[tuiMedia], audio[tuiMedia]", ["tuiMedia"], { "
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiMedia, "video[tuiMedia], audio[tuiMedia]", ["tuiMedia"], { "playbackRate": { "alias": "playbackRate"; "required": false; "isSignal": true; }; "volume": { "alias": "volume"; "required": false; "isSignal": true; }; "currentTime": { "alias": "currentTime"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; }, { "volume": "volumeChange"; "currentTime": "currentTimeChange"; "paused": "pausedChange"; }, never, never, true, never>;
|
|
21
17
|
}
|
|
@@ -4,9 +4,9 @@ export declare class TuiNativeValidator implements Validator {
|
|
|
4
4
|
private readonly el;
|
|
5
5
|
private readonly control$;
|
|
6
6
|
protected readonly sub: import("rxjs").Subscription;
|
|
7
|
-
tuiNativeValidator: string
|
|
7
|
+
readonly tuiNativeValidator: import("@angular/core").InputSignal<string>;
|
|
8
8
|
validate(control: AbstractControl): null;
|
|
9
9
|
protected handleValidation(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiNativeValidator, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiNativeValidator, "[tuiNativeValidator]", never, { "tuiNativeValidator": { "alias": "tuiNativeValidator"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiNativeValidator, "[tuiNativeValidator]", never, { "tuiNativeValidator": { "alias": "tuiNativeValidator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class TuiObscured {
|
|
6
6
|
private readonly activeZone;
|
|
7
|
-
private readonly enabled$;
|
|
8
7
|
private readonly obscured$;
|
|
9
|
-
readonly
|
|
10
|
-
|
|
8
|
+
readonly tuiObscuredEnabled: import("@angular/core").InputSignal<boolean | undefined>;
|
|
9
|
+
readonly tuiObscured$: import("rxjs").Observable<boolean>;
|
|
10
|
+
readonly tuiObscured: import("@angular/core").OutputRef<boolean>;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiObscured, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiObscured, "[tuiObscured]", never, { "tuiObscuredEnabled": { "alias": "tuiObscuredEnabled"; "required": false; }; }, { "tuiObscured": "tuiObscured"; }, never, never, true, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiObscured, "[tuiObscured]", never, { "tuiObscuredEnabled": { "alias": "tuiObscuredEnabled"; "required": false; "isSignal": true; }; }, { "tuiObscured": "tuiObscured"; }, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TuiPanService } from './pan.service';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class TuiPan {
|
|
4
|
-
readonly tuiPan:
|
|
3
|
+
readonly tuiPan: import("@angular/core").OutputRef<readonly [number, number]>;
|
|
5
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPan, never>;
|
|
6
5
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPan, "[tuiPan]", never, {}, { "tuiPan": "tuiPan"; }, never, never, true, never>;
|
|
7
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class TuiPlatform {
|
|
3
|
-
tuiPlatform: "android" | "ios" | "web"
|
|
3
|
+
readonly tuiPlatform: import("@angular/core").InputSignal<"android" | "ios" | "web">;
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPlatform, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPlatform, "[tuiPlatform]", never, { "tuiPlatform": { "alias": "tuiPlatform"; "required": false; }; }, {}, never, never, true, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPlatform, "[tuiPlatform]", never, { "tuiPlatform": { "alias": "tuiPlatform"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6
6
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class TuiResizer {
|
|
4
3
|
private readonly resizable;
|
|
@@ -6,13 +5,13 @@ export declare class TuiResizer {
|
|
|
6
5
|
protected y: number;
|
|
7
6
|
protected width: number;
|
|
8
7
|
protected height: number;
|
|
9
|
-
tuiResizer: readonly [x: number, y: number]
|
|
10
|
-
readonly tuiSizeChange:
|
|
8
|
+
readonly tuiResizer: import("@angular/core").InputSignal<readonly [x: number, y: number]>;
|
|
9
|
+
readonly tuiSizeChange: import("@angular/core").OutputEmitterRef<readonly [x: number, y: number]>;
|
|
11
10
|
protected get cursor(): string;
|
|
12
11
|
protected onPointerDown(x: number, y: number): void;
|
|
13
12
|
protected onPointerMove({ x, y, buttons }: PointerEvent): void;
|
|
14
13
|
protected onPointerUp(): void;
|
|
15
14
|
protected onMove(x: number, y: number): void;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiResizer, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiResizer, "[tuiResizer]", never, { "tuiResizer": { "alias": "tuiResizer"; "required": false; }; }, { "tuiSizeChange": "tuiSizeChange"; }, never, never, true, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiResizer, "[tuiResizer]", never, { "tuiResizer": { "alias": "tuiResizer"; "required": false; "isSignal": true; }; }, { "tuiSizeChange": "tuiSizeChange"; }, never, never, true, never>;
|
|
18
17
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TuiSwipeService } from './swipe.service';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class TuiSwipe {
|
|
4
|
-
readonly tuiSwipe:
|
|
3
|
+
readonly tuiSwipe: import("@angular/core").OutputRef<import("@taiga-ui/cdk/directives/swipe").TuiSwipeEvent>;
|
|
5
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSwipe, never>;
|
|
6
5
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSwipe, "[tuiSwipe]", never, {}, { "tuiSwipe": "tuiSwipe"; }, never, never, true, never>;
|
|
7
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class TuiTransitioned {
|
|
3
|
+
private readonly el;
|
|
3
4
|
constructor();
|
|
4
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTransitioned, never>;
|
|
5
6
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTransitioned, "[tuiTransitioned]", never, {}, {}, never, never, true, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type DoCheck } from '@angular/core';
|
|
2
|
-
import { type Observable } from 'rxjs';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class TuiValueChanges<T> implements DoCheck {
|
|
5
4
|
private readonly container;
|
|
6
5
|
private readonly control;
|
|
7
6
|
private readonly refresh$;
|
|
8
|
-
readonly tuiValueChanges
|
|
7
|
+
private readonly tuiValueChanges$;
|
|
8
|
+
readonly tuiValueChanges: import("@angular/core").OutputRef<T>;
|
|
9
9
|
ngDoCheck(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiValueChanges<any>, never>;
|
|
11
11
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiValueChanges<any>, "[tuiValueChanges]", never, {}, { "tuiValueChanges": "tuiValueChanges"; }, never, never, true, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, signal, ChangeDetectorRef, computed,
|
|
2
|
+
import { inject, signal, ChangeDetectorRef, computed, input, untracked, Directive } from '@angular/core';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { NgControl, NgModel } from '@angular/forms';
|
|
5
5
|
import { EMPTY_FUNCTION } from '@taiga-ui/cdk/constants';
|
|
@@ -38,13 +38,13 @@ class TuiControl {
|
|
|
38
38
|
constructor() {
|
|
39
39
|
this.fallback = inject(TUI_FALLBACK_VALUE, FLAGS);
|
|
40
40
|
this.refresh$ = new Subject();
|
|
41
|
-
this.pseudoInvalid = signal(null);
|
|
42
41
|
this.internal = signal(this.fallback);
|
|
43
42
|
this.control = inject(NgControl, { self: true });
|
|
44
43
|
this.cdr = inject(ChangeDetectorRef);
|
|
45
44
|
this.transformer = inject(TuiValueTransformer, FLAGS) ?? TUI_IDENTITY_VALUE_TRANSFORMER;
|
|
46
45
|
this.value = computed(() => this.internal() ?? this.fallback);
|
|
47
|
-
this.readOnly =
|
|
46
|
+
this.readOnly = input(false);
|
|
47
|
+
this.pseudoInvalid = input(null, { alias: 'invalid' });
|
|
48
48
|
this.touched = signal(false);
|
|
49
49
|
this.status = signal(undefined);
|
|
50
50
|
this.disabled = computed(() => this.status() === 'DISABLED');
|
|
@@ -62,12 +62,6 @@ class TuiControl {
|
|
|
62
62
|
.pipe(delay(0), startWith(null), map(() => this.control.control), filter(Boolean), distinctUntilChanged(), switchMap((c) => merge(c.valueChanges, c.statusChanges, c.events || EMPTY).pipe(startWith(null))), takeUntilDestroyed())
|
|
63
63
|
.subscribe(() => this.update());
|
|
64
64
|
}
|
|
65
|
-
set readOnlySetter(readOnly) {
|
|
66
|
-
this.readOnly.set(readOnly);
|
|
67
|
-
}
|
|
68
|
-
set invalidSetter(invalid) {
|
|
69
|
-
this.pseudoInvalid.set(invalid);
|
|
70
|
-
}
|
|
71
65
|
registerOnChange(onChange) {
|
|
72
66
|
this.refresh$.next();
|
|
73
67
|
this.onChange = (value) => {
|
|
@@ -100,93 +94,16 @@ class TuiControl {
|
|
|
100
94
|
this.touched.set(!!this.control.control?.touched);
|
|
101
95
|
this.cdr.markForCheck();
|
|
102
96
|
}
|
|
103
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
104
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
98
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiControl, isStandalone: true, inputs: { readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, pseudoInvalid: { classPropertyName: "pseudoInvalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
105
99
|
}
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiControl, decorators: [{
|
|
107
101
|
type: Directive
|
|
108
|
-
}], ctorParameters: () => []
|
|
109
|
-
type: Input,
|
|
110
|
-
args: ['readOnly']
|
|
111
|
-
}], invalidSetter: [{
|
|
112
|
-
type: Input,
|
|
113
|
-
args: ['invalid']
|
|
114
|
-
}] } });
|
|
102
|
+
}], ctorParameters: () => [] });
|
|
115
103
|
function tuiAsControl(control) {
|
|
116
104
|
return tuiProvide(TuiControl, control);
|
|
117
105
|
}
|
|
118
106
|
|
|
119
|
-
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
120
|
-
/**
|
|
121
|
-
* Abstract class for host element for dynamically created portals.
|
|
122
|
-
*/
|
|
123
|
-
class TuiPortals {
|
|
124
|
-
constructor() {
|
|
125
|
-
this.injector = inject(INJECTOR);
|
|
126
|
-
this.nothing = inject(TuiPortalService).attach(this);
|
|
127
|
-
}
|
|
128
|
-
addComponentChild(component) {
|
|
129
|
-
const injector = component.createInjector(this.injector);
|
|
130
|
-
const ref = this.vcr.createComponent(component.component, { injector });
|
|
131
|
-
ref.changeDetectorRef.detectChanges();
|
|
132
|
-
return ref;
|
|
133
|
-
}
|
|
134
|
-
addTemplateChild(templateRef, context) {
|
|
135
|
-
return this.vcr.createEmbeddedView(templateRef, context);
|
|
136
|
-
}
|
|
137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortals, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
138
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPortals, isStandalone: true, viewQueries: [{ propertyName: "vcr", first: true, predicate: ["viewContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0 }); }
|
|
139
|
-
}
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortals, decorators: [{
|
|
141
|
-
type: Directive
|
|
142
|
-
}], propDecorators: { vcr: [{
|
|
143
|
-
type: ViewChild,
|
|
144
|
-
args: ['viewContainer', { read: ViewContainerRef }]
|
|
145
|
-
}] } });
|
|
146
|
-
/**
|
|
147
|
-
* Abstract service for displaying portals
|
|
148
|
-
*/
|
|
149
|
-
class TuiPortalService {
|
|
150
|
-
attach(host) {
|
|
151
|
-
this.host = host;
|
|
152
|
-
}
|
|
153
|
-
add(component) {
|
|
154
|
-
return this.safeHost.addComponentChild(component);
|
|
155
|
-
}
|
|
156
|
-
remove({ hostView }) {
|
|
157
|
-
this.removeTemplate(hostView);
|
|
158
|
-
}
|
|
159
|
-
addTemplate(templateRef, context) {
|
|
160
|
-
return this.safeHost.addTemplateChild(templateRef, context);
|
|
161
|
-
}
|
|
162
|
-
removeTemplate(viewRef) {
|
|
163
|
-
if (!viewRef.destroyed) {
|
|
164
|
-
viewRef.destroy();
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
get safeHost() {
|
|
168
|
-
if (!this.host) {
|
|
169
|
-
throw new TuiNoHostException();
|
|
170
|
-
}
|
|
171
|
-
return this.host;
|
|
172
|
-
}
|
|
173
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
174
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalService }); }
|
|
175
|
-
}
|
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPortalService, decorators: [{
|
|
177
|
-
type: Injectable
|
|
178
|
-
}] });
|
|
179
|
-
function tuiAsPortal(portal) {
|
|
180
|
-
return tuiProvide(TuiPortalService, portal);
|
|
181
|
-
}
|
|
182
|
-
class TuiNoHostException extends Error {
|
|
183
|
-
constructor() {
|
|
184
|
-
super(ngDevMode
|
|
185
|
-
? 'Portals cannot be used without TuiPortalHostComponent; perhaps you forgot to wrap your application with tui-root.'
|
|
186
|
-
: '');
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
107
|
class TuiValidationError {
|
|
191
108
|
constructor(message, context = {}) {
|
|
192
109
|
this.message = message;
|
|
@@ -198,5 +115,5 @@ class TuiValidationError {
|
|
|
198
115
|
* Generated bundle index. Do not edit.
|
|
199
116
|
*/
|
|
200
117
|
|
|
201
|
-
export { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl,
|
|
118
|
+
export { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, TuiNonNullableValueTransformer, TuiValidationError, TuiValueTransformer, tuiAsControl, tuiValueTransformerFrom };
|
|
202
119
|
//# sourceMappingURL=taiga-ui-cdk-classes.mjs.map
|