@rt-tools/ui-kit-v2 0.33.0 → 0.34.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/README.md +4 -3
- package/fesm2022/rt-tools-ui-kit-v2-ai-run-status.mjs +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-ai-run-status.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-autocomplete.mjs +92 -5
- package/fesm2022/rt-tools-ui-kit-v2-autocomplete.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-badge.mjs +191 -0
- package/fesm2022/rt-tools-ui-kit-v2-badge.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-breadcrumbs.mjs +3 -2
- package/fesm2022/rt-tools-ui-kit-v2-breadcrumbs.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs +6 -1
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-checkbox.mjs +35 -4
- package/fesm2022/rt-tools-ui-kit-v2-checkbox.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-color-palette.mjs +13 -4
- package/fesm2022/rt-tools-ui-kit-v2-color-palette.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-container.mjs +245 -60
- package/fesm2022/rt-tools-ui-kit-v2-container.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-copy-value.mjs +30 -5
- package/fesm2022/rt-tools-ui-kit-v2-copy-value.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs +113 -2
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-data-list.mjs +14 -3
- package/fesm2022/rt-tools-ui-kit-v2-data-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-data-table.mjs +17 -3
- package/fesm2022/rt-tools-ui-kit-v2-data-table.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-date-picker.mjs +6 -3
- package/fesm2022/rt-tools-ui-kit-v2-date-picker.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-date-range.mjs +2 -2
- package/fesm2022/rt-tools-ui-kit-v2-date-range.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-divider.mjs +112 -0
- package/fesm2022/rt-tools-ui-kit-v2-divider.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-draggable-tree.mjs +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-draggable-tree.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-drawer.mjs +854 -0
- package/fesm2022/rt-tools-ui-kit-v2-drawer.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-list.mjs +16 -5
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-selector.mjs +580 -65
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-selector.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-expansion-panel.mjs +203 -15
- package/fesm2022/rt-tools-ui-kit-v2-expansion-panel.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-field.mjs +40 -8
- package/fesm2022/rt-tools-ui-kit-v2-field.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-file-card.mjs +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-card.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-filter-control.mjs +7 -3
- package/fesm2022/rt-tools-ui-kit-v2-filter-control.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-form-control.mjs +53 -2
- package/fesm2022/rt-tools-ui-kit-v2-form-control.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree-selector.mjs +14 -4
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree-selector.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree.mjs +6 -3
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-icon-button.mjs +16 -5
- package/fesm2022/rt-tools-ui-kit-v2-icon-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-image-upload.mjs +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-image-upload.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-inline-edit.mjs +14 -4
- package/fesm2022/rt-tools-ui-kit-v2-inline-edit.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-input-number.mjs +3 -2
- package/fesm2022/rt-tools-ui-kit-v2-input-number.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-input.mjs +207 -7
- package/fesm2022/rt-tools-ui-kit-v2-input.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-menu.mjs +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-menu.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-multiselect.mjs +3 -2
- package/fesm2022/rt-tools-ui-kit-v2-multiselect.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-page-header.mjs +2 -0
- package/fesm2022/rt-tools-ui-kit-v2-page-header.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-pagination.mjs +3 -2
- package/fesm2022/rt-tools-ui-kit-v2-pagination.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-profile-menu.mjs +3 -2
- package/fesm2022/rt-tools-ui-kit-v2-profile-menu.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-progress-bar.mjs +171 -0
- package/fesm2022/rt-tools-ui-kit-v2-progress-bar.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-radio-button.mjs +176 -6
- package/fesm2022/rt-tools-ui-kit-v2-radio-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs +2 -1
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-scroll-area.mjs +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-scroll-area.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-select.mjs +142 -23
- package/fesm2022/rt-tools-ui-kit-v2-select.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-side-menu.mjs +22 -9
- package/fesm2022/rt-tools-ui-kit-v2-side-menu.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-speed-menu.mjs +3 -2
- package/fesm2022/rt-tools-ui-kit-v2-speed-menu.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-stepper.mjs +105 -8
- package/fesm2022/rt-tools-ui-kit-v2-stepper.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-table.mjs +13 -2
- package/fesm2022/rt-tools-ui-kit-v2-table.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tabs.mjs +609 -33
- package/fesm2022/rt-tools-ui-kit-v2-tabs.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tag.mjs +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-tag.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-textarea.mjs +45 -7
- package/fesm2022/rt-tools-ui-kit-v2-textarea.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-theme-toggle.mjs +2 -2
- package/fesm2022/rt-tools-ui-kit-v2-theme-toggle.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs +11 -2
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-toast.mjs +152 -11
- package/fesm2022/rt-tools-ui-kit-v2-toast.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-toggle-button-group.mjs +199 -17
- package/fesm2022/rt-tools-ui-kit-v2-toggle-button-group.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tooltip.mjs +35 -5
- package/fesm2022/rt-tools-ui-kit-v2-tooltip.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tree-selector.mjs +14 -4
- package/fesm2022/rt-tools-ui-kit-v2-tree-selector.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tree.mjs +6 -3
- package/fesm2022/rt-tools-ui-kit-v2-tree.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-workspace-details.mjs +21 -6
- package/fesm2022/rt-tools-ui-kit-v2-workspace-details.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2.mjs +4 -0
- package/package.json +17 -1
- package/src/assets/icons/volume-off.svg +2 -1
- package/src/lib/components/autocomplete/CONTEXT.md +25 -14
- package/src/lib/components/autocomplete/rt-autocomplete.component.scss +19 -0
- package/src/lib/components/badge/CONTEXT.md +33 -0
- package/src/lib/components/badge/rt-badge.directive.scss +104 -0
- package/src/lib/components/breadcrumbs/rt-breadcrumbs.component.scss +2 -2
- package/src/lib/components/button/CONTEXT.md +5 -0
- package/src/lib/components/button/rt-button.directive.scss +3 -1
- package/src/lib/components/checkbox/CONTEXT.md +15 -8
- package/src/lib/components/color-palette/rt-color-palette.component.scss +2 -2
- package/src/lib/components/container/CONTEXT.md +23 -6
- package/src/lib/components/container/rt-container.component.scss +90 -1
- package/src/lib/components/copy-value/CONTEXT.md +6 -5
- package/src/lib/components/copy-value/rt-copy-value.component.scss +16 -0
- package/src/lib/components/date-picker/rt-date-picker.component.scss +7 -0
- package/src/lib/components/date-range/rt-date-range.component.scss +7 -0
- package/src/lib/components/divider/CONTEXT.md +21 -0
- package/src/lib/components/divider/rt-divider.component.scss +34 -0
- package/src/lib/components/drawer/CONTEXT.md +73 -0
- package/src/lib/components/drawer/rt-drawer-container.component.scss +19 -0
- package/src/lib/components/drawer/rt-drawer.component.scss +168 -0
- package/src/lib/components/drawer/rt-resize-handle.component.scss +42 -0
- package/src/lib/components/dynamic-selector/CONTEXT.md +5 -0
- package/src/lib/components/expansion-panel/CONTEXT.md +32 -8
- package/src/lib/components/expansion-panel/rt-expansion-panel.component.scss +67 -2
- package/src/lib/components/field/CONTEXT.md +43 -0
- package/src/lib/components/field/rt-field-label-inside.scss +179 -0
- package/src/lib/components/field/rt-field.component.scss +51 -2
- package/src/lib/components/icon-button/CONTEXT.md +17 -15
- package/src/lib/components/icon-button/rt-icon-button.component.scss +3 -1
- package/src/lib/components/inline-edit/rt-inline-edit.component.scss +4 -4
- package/src/lib/components/input/CONTEXT.md +45 -11
- package/src/lib/components/input/rt-input-floating-label.scss +192 -0
- package/src/lib/components/input/rt-input-icons.scss +105 -0
- package/src/lib/components/input/rt-input.component.scss +91 -13
- package/src/lib/components/input-number/CONTEXT.md +7 -0
- package/src/lib/components/input-number/rt-input-number.component.scss +58 -1
- package/src/lib/components/menu/CONTEXT.md +1 -0
- package/src/lib/components/multiselect/CONTEXT.md +2 -1
- package/src/lib/components/multiselect/rt-multiselect.component.scss +7 -0
- package/src/lib/components/pagination/CONTEXT.md +3 -0
- package/src/lib/components/pagination/rt-pagination.component.scss +7 -0
- package/src/lib/components/progress-bar/CONTEXT.md +22 -0
- package/src/lib/components/progress-bar/rt-progress-bar.component.scss +77 -0
- package/src/lib/components/radio-button/CONTEXT.md +9 -0
- package/src/lib/components/radio-button/rt-radio-group.component.scss +13 -0
- package/src/lib/components/select/CONTEXT.md +28 -0
- package/src/lib/components/select/rt-select-clear.scss +88 -0
- package/src/lib/components/select/rt-select-floating-label.scss +155 -0
- package/src/lib/components/select/rt-select-material.scss +54 -0
- package/src/lib/components/select/rt-select.component.scss +54 -16
- package/src/lib/components/side-menu/CONTEXT.md +5 -0
- package/src/lib/components/speed-menu/rt-speed-menu.component.scss +5 -5
- package/src/lib/components/stepper/CONTEXT.md +13 -5
- package/src/lib/components/stepper/rt-stepper.component.scss +93 -0
- package/src/lib/components/tabs/CONTEXT.md +57 -9
- package/src/lib/components/tabs/rt-tabs.component.scss +201 -5
- package/src/lib/components/textarea/CONTEXT.md +12 -1
- package/src/lib/components/textarea/rt-textarea.component.scss +116 -1
- package/src/lib/components/toast/CONTEXT.md +23 -0
- package/src/lib/components/toast/rt-toast.component.scss +37 -0
- package/src/lib/components/toggle-button-group/CONTEXT.md +24 -4
- package/src/lib/components/toggle-button-group/rt-toggle-button-group-chips.scss +151 -0
- package/src/lib/components/toggle-button-group/rt-toggle-button-group.component.scss +35 -0
- package/src/lib/components/tooltip/CONTEXT.md +7 -1
- package/src/lib/components/tree/rt-tree.component.scss +2 -2
- package/src/styles/_color-scheme.scss +1 -1
- package/src/styles/_density.scss +48 -0
- package/src/styles/_index.scss +8 -0
- package/src/styles/_preset-material.scss +160 -70
- package/src/styles/_primitives.scss +1 -0
- package/src/styles/_semantic-navigation.scss +117 -0
- package/src/styles/_semantic.scss +29 -98
- package/src/styles/_theme-dark.scss +8 -0
- package/styles/tokens.css +2066 -1134
- package/types/rt-tools-ui-kit-v2-autocomplete.d.ts +34 -0
- package/types/rt-tools-ui-kit-v2-badge.d.ts +71 -0
- package/types/rt-tools-ui-kit-v2-checkbox.d.ts +17 -3
- package/types/rt-tools-ui-kit-v2-container.d.ts +65 -9
- package/types/rt-tools-ui-kit-v2-copy-value.d.ts +11 -1
- package/types/rt-tools-ui-kit-v2-core.d.ts +109 -4
- package/types/rt-tools-ui-kit-v2-divider.d.ts +29 -0
- package/types/rt-tools-ui-kit-v2-drawer.d.ts +257 -0
- package/types/rt-tools-ui-kit-v2-dynamic-selector.d.ts +240 -25
- package/types/rt-tools-ui-kit-v2-expansion-panel.d.ts +87 -3
- package/types/rt-tools-ui-kit-v2-field.d.ts +18 -1
- package/types/rt-tools-ui-kit-v2-form-control.d.ts +42 -4
- package/types/rt-tools-ui-kit-v2-icon-button.d.ts +2 -1
- package/types/rt-tools-ui-kit-v2-input-number.d.ts +1 -0
- package/types/rt-tools-ui-kit-v2-input.d.ts +98 -4
- package/types/rt-tools-ui-kit-v2-progress-bar.d.ts +53 -0
- package/types/rt-tools-ui-kit-v2-radio-button.d.ts +80 -1
- package/types/rt-tools-ui-kit-v2-select.d.ts +65 -1
- package/types/rt-tools-ui-kit-v2-side-menu.d.ts +3 -0
- package/types/rt-tools-ui-kit-v2-stepper.d.ts +57 -4
- package/types/rt-tools-ui-kit-v2-tabs.d.ts +291 -6
- package/types/rt-tools-ui-kit-v2-textarea.d.ts +16 -0
- package/types/rt-tools-ui-kit-v2-toast.d.ts +38 -2
- package/types/rt-tools-ui-kit-v2-toggle-button-group.d.ts +83 -3
- package/types/rt-tools-ui-kit-v2-tooltip.d.ts +17 -2
- package/types/rt-tools-ui-kit-v2.d.ts +4 -0
- package/src/lib/components/dynamic-selector/stories/component/test-dynamic-selector-popup-frame.component.scss +0 -6
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ViewEncapsulation, booleanAttribute, computed, forwardRef, inject, input, signal, viewChild } from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation, booleanAttribute, computed, forwardRef, inject, input, output, signal, viewChild } from "@angular/core";
|
|
3
3
|
import { BlockDirective, ElemDirective, ModDirective } from "@rt-tools/core";
|
|
4
4
|
import { RT_KIT_LABELS } from "@rt-tools/ui-kit-v2/core";
|
|
5
|
-
import { RtFormControlBase } from "@rt-tools/ui-kit-v2/form-control";
|
|
5
|
+
import { RtFormControlBase, rtMaxlength, rtNotchWidth } from "@rt-tools/ui-kit-v2/form-control";
|
|
6
6
|
import { RtIconComponent } from "@rt-tools/ui-kit-v2/icon";
|
|
7
7
|
import { RtIconButtonComponent } from "@rt-tools/ui-kit-v2/icon-button";
|
|
8
8
|
import * as i1 from "@rt-tools/ui-kit-v2/radius";
|
|
9
9
|
import { RtRadiusDirective } from "@rt-tools/ui-kit-v2/radius";
|
|
10
10
|
const BEM_BLOCK = "rt-input";
|
|
11
|
+
let floatingLabelSeed = 0;
|
|
12
|
+
function nextFloatingLabelId() {
|
|
13
|
+
floatingLabelSeed += 1;
|
|
14
|
+
return `rt-input-label-${floatingLabelSeed}`;
|
|
15
|
+
}
|
|
11
16
|
var RtInputComponent = class RtInputComponent extends RtFormControlBase {
|
|
12
17
|
constructor() {
|
|
13
18
|
super(...arguments);
|
|
14
19
|
this.t = inject(RT_KIT_LABELS);
|
|
15
20
|
this.fieldEl = viewChild("fieldEl", ...ngDevMode ? [{ debugName: "fieldEl" }] : /* istanbul ignore next */ []);
|
|
21
|
+
this.floatingLabelEl = viewChild("floatingLabelEl", ...ngDevMode ? [{ debugName: "floatingLabelEl" }] : /* istanbul ignore next */ []);
|
|
22
|
+
this.notchWidth = rtNotchWidth(this.floatingLabelEl);
|
|
16
23
|
this.isPasswordVisible = signal(false, ...ngDevMode ? [{ debugName: "isPasswordVisible" }] : /* istanbul ignore next */ []);
|
|
17
24
|
this.hasValue = computed(() => this.value() !== "", ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
|
|
25
|
+
this.floatingLabelId = nextFloatingLabelId();
|
|
26
|
+
this.labelledBy = computed(() => this.floatingLabel() && !this.ariaLabel() ? this.floatingLabelId : null, ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
|
|
18
27
|
this.effectiveType = computed(() => {
|
|
19
28
|
const t = this.type();
|
|
20
29
|
if (t === "password" && this.passwordToggle() && this.isPasswordVisible()) return "text";
|
|
@@ -22,7 +31,10 @@ var RtInputComponent = class RtInputComponent extends RtFormControlBase {
|
|
|
22
31
|
}, ...ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []);
|
|
23
32
|
this.showPasswordToggle = computed(() => this.passwordToggle() && this.type() === "password", ...ngDevMode ? [{ debugName: "showPasswordToggle" }] : /* istanbul ignore next */ []);
|
|
24
33
|
this.hasIconRight = computed(() => !!this.iconRight() || this.showPasswordToggle(), ...ngDevMode ? [{ debugName: "hasIconRight" }] : /* istanbul ignore next */ []);
|
|
34
|
+
this.isIconLeftDisabled = computed(() => this.isDisabled() || this.iconLeftDisabled(), ...ngDevMode ? [{ debugName: "isIconLeftDisabled" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this.isIconRightDisabled = computed(() => this.isDisabled() || this.iconRightDisabled(), ...ngDevMode ? [{ debugName: "isIconRightDisabled" }] : /* istanbul ignore next */ []);
|
|
25
36
|
this.passwordToggleIcon = computed(() => this.isPasswordVisible() ? "ico-eyeClose" : "ico-eye", ...ngDevMode ? [{ debugName: "passwordToggleIcon" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this.fieldLabelInside = true;
|
|
26
38
|
this.appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
27
39
|
this.displayText = computed(() => this.value(), ...ngDevMode ? [{ debugName: "displayText" }] : /* istanbul ignore next */ []);
|
|
28
40
|
this.type = input("text", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
@@ -34,6 +46,36 @@ var RtInputComponent = class RtInputComponent extends RtFormControlBase {
|
|
|
34
46
|
transform: booleanAttribute
|
|
35
47
|
});
|
|
36
48
|
this.autocomplete = input(null, ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
49
|
+
this.maxlength = input(null, {
|
|
50
|
+
...ngDevMode ? { debugName: "maxlength" } : /* istanbul ignore next */ {},
|
|
51
|
+
transform: rtMaxlength
|
|
52
|
+
});
|
|
53
|
+
this.floatingLabel = input(null, ...ngDevMode ? [{ debugName: "floatingLabel" }] : /* istanbul ignore next */ []);
|
|
54
|
+
this.iconLeftAction = input(false, {
|
|
55
|
+
...ngDevMode ? { debugName: "iconLeftAction" } : /* istanbul ignore next */ {},
|
|
56
|
+
transform: booleanAttribute
|
|
57
|
+
});
|
|
58
|
+
this.iconRightAction = input(false, {
|
|
59
|
+
...ngDevMode ? { debugName: "iconRightAction" } : /* istanbul ignore next */ {},
|
|
60
|
+
transform: booleanAttribute
|
|
61
|
+
});
|
|
62
|
+
this.iconLeftDisabled = input(false, {
|
|
63
|
+
...ngDevMode ? { debugName: "iconLeftDisabled" } : /* istanbul ignore next */ {},
|
|
64
|
+
transform: booleanAttribute
|
|
65
|
+
});
|
|
66
|
+
this.iconRightDisabled = input(false, {
|
|
67
|
+
...ngDevMode ? { debugName: "iconRightDisabled" } : /* istanbul ignore next */ {},
|
|
68
|
+
transform: booleanAttribute
|
|
69
|
+
});
|
|
70
|
+
this.iconLeftTooltip = input(null, ...ngDevMode ? [{ debugName: "iconLeftTooltip" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.iconRightTooltip = input(null, ...ngDevMode ? [{ debugName: "iconRightTooltip" }] : /* istanbul ignore next */ []);
|
|
72
|
+
this.iconLeftClick = output();
|
|
73
|
+
this.iconRightClick = output();
|
|
74
|
+
}
|
|
75
|
+
writeValue(value) {
|
|
76
|
+
super.writeValue(value);
|
|
77
|
+
const field = this.fieldEl()?.nativeElement;
|
|
78
|
+
if (field && field.value !== this.value()) field.value = this.value();
|
|
37
79
|
}
|
|
38
80
|
getEmptyValue() {
|
|
39
81
|
return "";
|
|
@@ -126,8 +168,68 @@ var RtInputComponent = class RtInputComponent extends RtFormControlBase {
|
|
|
126
168
|
isSignal: true,
|
|
127
169
|
isRequired: false,
|
|
128
170
|
transformFunction: null
|
|
171
|
+
},
|
|
172
|
+
maxlength: {
|
|
173
|
+
classPropertyName: "maxlength",
|
|
174
|
+
publicName: "maxlength",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
},
|
|
179
|
+
floatingLabel: {
|
|
180
|
+
classPropertyName: "floatingLabel",
|
|
181
|
+
publicName: "floatingLabel",
|
|
182
|
+
isSignal: true,
|
|
183
|
+
isRequired: false,
|
|
184
|
+
transformFunction: null
|
|
185
|
+
},
|
|
186
|
+
iconLeftAction: {
|
|
187
|
+
classPropertyName: "iconLeftAction",
|
|
188
|
+
publicName: "iconLeftAction",
|
|
189
|
+
isSignal: true,
|
|
190
|
+
isRequired: false,
|
|
191
|
+
transformFunction: null
|
|
192
|
+
},
|
|
193
|
+
iconRightAction: {
|
|
194
|
+
classPropertyName: "iconRightAction",
|
|
195
|
+
publicName: "iconRightAction",
|
|
196
|
+
isSignal: true,
|
|
197
|
+
isRequired: false,
|
|
198
|
+
transformFunction: null
|
|
199
|
+
},
|
|
200
|
+
iconLeftDisabled: {
|
|
201
|
+
classPropertyName: "iconLeftDisabled",
|
|
202
|
+
publicName: "iconLeftDisabled",
|
|
203
|
+
isSignal: true,
|
|
204
|
+
isRequired: false,
|
|
205
|
+
transformFunction: null
|
|
206
|
+
},
|
|
207
|
+
iconRightDisabled: {
|
|
208
|
+
classPropertyName: "iconRightDisabled",
|
|
209
|
+
publicName: "iconRightDisabled",
|
|
210
|
+
isSignal: true,
|
|
211
|
+
isRequired: false,
|
|
212
|
+
transformFunction: null
|
|
213
|
+
},
|
|
214
|
+
iconLeftTooltip: {
|
|
215
|
+
classPropertyName: "iconLeftTooltip",
|
|
216
|
+
publicName: "iconLeftTooltip",
|
|
217
|
+
isSignal: true,
|
|
218
|
+
isRequired: false,
|
|
219
|
+
transformFunction: null
|
|
220
|
+
},
|
|
221
|
+
iconRightTooltip: {
|
|
222
|
+
classPropertyName: "iconRightTooltip",
|
|
223
|
+
publicName: "iconRightTooltip",
|
|
224
|
+
isSignal: true,
|
|
225
|
+
isRequired: false,
|
|
226
|
+
transformFunction: null
|
|
129
227
|
}
|
|
130
228
|
},
|
|
229
|
+
outputs: {
|
|
230
|
+
iconLeftClick: "iconLeftClick",
|
|
231
|
+
iconRightClick: "iconRightClick"
|
|
232
|
+
},
|
|
131
233
|
host: {
|
|
132
234
|
listeners: { "mousedown": "onHostMousedown($event)" },
|
|
133
235
|
properties: {
|
|
@@ -140,7 +242,11 @@ var RtInputComponent = class RtInputComponent extends RtFormControlBase {
|
|
|
140
242
|
"class.rt-input--size--sm": "size() === 'sm'",
|
|
141
243
|
"class.rt-input--size--lg": "size() === 'lg'",
|
|
142
244
|
"class.rt-input--with-icon-left": "!!iconLeft()",
|
|
143
|
-
"class.rt-input--with-icon-right": "hasIconRight()"
|
|
245
|
+
"class.rt-input--with-icon-right": "hasIconRight()",
|
|
246
|
+
"class.rt-input--floating": "!!floatingLabel()",
|
|
247
|
+
"class.rt-input--clearable": "clearable()",
|
|
248
|
+
"style.--rt-input-notch-width": "notchWidth() + 'px'",
|
|
249
|
+
"class.rt-input--filled": "hasValue()"
|
|
144
250
|
},
|
|
145
251
|
classAttribute: "rt-input"
|
|
146
252
|
},
|
|
@@ -154,6 +260,12 @@ var RtInputComponent = class RtInputComponent extends RtFormControlBase {
|
|
|
154
260
|
predicate: ["fieldEl"],
|
|
155
261
|
descendants: true,
|
|
156
262
|
isSignal: true
|
|
263
|
+
}, {
|
|
264
|
+
propertyName: "floatingLabelEl",
|
|
265
|
+
first: true,
|
|
266
|
+
predicate: ["floatingLabelEl"],
|
|
267
|
+
descendants: true,
|
|
268
|
+
isSignal: true
|
|
157
269
|
}],
|
|
158
270
|
usesInheritance: true,
|
|
159
271
|
hostDirectives: [{
|
|
@@ -161,8 +273,12 @@ var RtInputComponent = class RtInputComponent extends RtFormControlBase {
|
|
|
161
273
|
inputs: ["radius", "radius"]
|
|
162
274
|
}],
|
|
163
275
|
ngImport: i0,
|
|
164
|
-
template: "<ng-container rtBlock=\"rt-input\">\n @if (isReadonly()) {\n <span rtElem=\"readonly\" qa-dataid=\"input-readonly\" [rtMod]=\"{ empty: !displayText() }\">{{ displayText() || '—' }}</span>\n } @else {\n @if (iconLeft(); as left) {\n <rt-icon rtElem=\"icon-left\" size=\"sm\" color=\"muted\" [name]=\"left\" />\n }\n <input\n #fieldEl\n rtElem=\"field\"\n qa-dataid=\"input-control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n [disabled]=\"isDisabled()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.id]=\"effectiveControlId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\" />\n @if (showClearButton() && !showPasswordToggle()) {\n <rt-icon-button\n rtElem=\"clear\"\n qa-dataid=\"input-clear\"\n icon=\"ico-close\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [ariaLabel]=\"t().uiClear\"\n [tabIndex]=\"
|
|
165
|
-
styles: [
|
|
276
|
+
template: "<ng-container rtBlock=\"rt-input\">\n @if (isReadonly()) {\n <span rtElem=\"readonly\" qa-dataid=\"input-readonly\" [rtMod]=\"{ empty: !displayText() }\">{{ displayText() || '—' }}</span>\n } @else {\n @if (iconLeft(); as left) {\n @if (iconLeftAction()) {\n <rt-icon-button\n rtElem=\"icon-left\"\n qa-dataid=\"input-icon-left-action\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [icon]=\"left\"\n [ariaLabel]=\"iconLeftTooltip() || left\"\n [tooltip]=\"iconLeftTooltip() ?? ''\"\n [disabled]=\"isIconLeftDisabled()\"\n (clicked)=\"iconLeftClick.emit($event)\" />\n } @else {\n <rt-icon rtElem=\"icon-left\" size=\"sm\" color=\"muted\" [name]=\"left\" />\n }\n }\n @if (floatingLabel(); as label) {\n <!-- Подпись — картинка поверх поля: клик проходит сквозь неё в поле, имя полю она даёт по aria-labelledby. -->\n <span #floatingLabelEl rtElem=\"floating-label\" qa-dataid=\"input-floating-label\" aria-hidden=\"true\" [id]=\"floatingLabelId\">\n {{ label }}\n </span>\n }\n <input\n #fieldEl\n rtElem=\"field\"\n qa-dataid=\"input-control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n [disabled]=\"isDisabled()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.id]=\"effectiveControlId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\" />\n @if (showClearButton() && !showPasswordToggle()) {\n <rt-icon-button\n rtElem=\"clear\"\n qa-dataid=\"input-clear\"\n icon=\"ico-close\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [ariaLabel]=\"t().uiClear\"\n [tabIndex]=\"clearTabIndex()\"\n (clicked)=\"clear($event)\" />\n }\n @if (showPasswordToggle()) {\n <button\n rtElem=\"toggle\"\n qa-dataid=\"input-password-toggle\"\n type=\"button\"\n [attr.aria-label]=\"isPasswordVisible() ? t().uiHidePassword : t().uiShowPassword\"\n [tabIndex]=\"-1\"\n (click)=\"togglePassword()\">\n <rt-icon size=\"sm\" color=\"muted\" [name]=\"passwordToggleIcon()\" />\n </button>\n } @else if (iconRight(); as right) {\n @if (iconRightAction()) {\n <rt-icon-button\n rtElem=\"icon-right\"\n qa-dataid=\"input-icon-right-action\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [icon]=\"right\"\n [ariaLabel]=\"iconRightTooltip() || right\"\n [tooltip]=\"iconRightTooltip() ?? ''\"\n [disabled]=\"isIconRightDisabled()\"\n (clicked)=\"iconRightClick.emit($event)\" />\n } @else {\n <rt-icon rtElem=\"icon-right\" size=\"sm\" color=\"muted\" [name]=\"right\" />\n }\n }\n }\n</ng-container>\n",
|
|
277
|
+
styles: [
|
|
278
|
+
"@charset \"UTF-8\";@layer rt-kit.components{.rt-input{--rt-input-box-radius: var(--rt-input-radius);--rt-input-fill-radius: var(--rt-radius-sm);--rt-input-toggle-radius: var(--rt-radius-sm);--rt-input-floating-label-color: var(--rt-input-color-text-placeholder);--rt-input-floating-label-color-focus: var(--rt-input-color-border-focus);--rt-input-floating-label-color-error: var(--rt-input-color-border-error);--rt-input-floating-label-bg: var(--rt-input-color-bg);--rt-input-floating-label-font-size: var(--rt-text-xs);--rt-input-floating-label-start: var(--rt-input-padding-x);--rt-input-floating-label-rest-start: var(--rt-input-floating-label-start);--rt-input-floating-label-raised-start: var(--rt-input-floating-label-start);--rt-input-notch-start: calc(var(--rt-input-floating-label-raised-start) - var(--rt-space-1) + var(--rt-input-border-width));--rt-input-notch-depth: calc(2 * var(--rt-input-border-width));--rt-input-notch-width: 0px;--rt-input-fill-floating-height: var(--rt-input-height-md);--rt-input-color-border-hover: var(--rt-color-text-primary);--rt-input-floating-label-duration: var(--rt-duration-fast);--rt-input-edge: var(--rt-input-border-width);position:relative;display:inline-flex;width:100%;min-width:var(--rt-input-min-width);min-height:var(--rt-input-height);box-sizing:border-box;align-items:center;padding:var(--rt-input-padding-y) var(--rt-input-padding-x);border:var(--rt-input-border-width) solid var(--rt-input-color-border);border-radius:var(--rt-input-box-radius);background-color:var(--rt-input-color-bg);color:var(--rt-input-color-text);cursor:text;font-size:var(--rt-input-font-size);gap:var(--rt-input-gap);line-height:var(--rt-input-line-height);transition:var(--rt-input-transition)}.rt-input:focus-within{border-color:var(--rt-input-color-border-focus);box-shadow:var(--rt-input-focus-shadow);outline:2px solid transparent;outline-offset:var(--rt-input-focus-outline-offset)}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):where(:hover:not(:has(:disabled))){border-color:var(--rt-input-color-border-hover)}.rt-input--borderless{border-color:transparent}.rt-input--appearance--fill{--rt-input-edge: var(--rt-input-fill-edge);border-width:var(--rt-input-fill-edge) var(--rt-input-fill-edge) var(--rt-input-border-width);border-color:transparent;border-radius:var(--rt-input-fill-radius) var(--rt-input-fill-radius) 0 0;border-bottom-color:var(--rt-color-field-fill-underline);background-color:var(--rt-color-bg-surface-subtle-2)}.rt-input--appearance--fill:where([data-rt-radius]){border-radius:var(--rt-input-box-radius);border-bottom-color:transparent}.rt-input--appearance--pill{--rt-input-box-radius: var(--rt-radius-full);border-color:transparent;background-color:var(--rt-color-bg-surface-subtle-2)}.rt-input--invalid{border-color:var(--rt-input-color-border-error)}.rt-input--invalid:focus-within{box-shadow:var(--rt-input-focus-shadow-error)}.rt-input--appearance--fill:focus-within{box-shadow:var(--rt-input-fill-focus-shadow)}.rt-input--appearance--fill.rt-input--invalid:focus-within{box-shadow:var(--rt-input-fill-focus-shadow-error)}.rt-input--disabled{color:var(--rt-input-color-text-disabled);cursor:not-allowed;opacity:var(--rt-input-disabled-field-opacity)}.rt-input--disabled:not(.rt-input--invalid,.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--borderless,.rt-input--readonly){border-color:var(--rt-input-color-border-disabled)}.rt-input--appearance--fill.rt-input--disabled{background-color:var(--rt-input-fill-color-bg-disabled)}.rt-input--disabled .rt-input__field::placeholder{color:var(--rt-input-color-placeholder-disabled)}.rt-input--size--sm{--rt-input-height: var(--rt-input-height-sm);min-height:var(--rt-input-height-sm)}.rt-input--size--lg{--rt-input-height: var(--rt-input-height-lg);min-height:var(--rt-input-height-lg)}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]){--rt-input-floating-label-start: calc(var(--rt-input-padding-x) - var(--rt-input-edge));padding-inline:calc(var(--rt-input-padding-x) - var(--rt-input-edge))}.rt-input--readonly{padding-right:0;padding-left:0;border-color:transparent;background-color:transparent;cursor:default}.rt-input__readonly{color:var(--rt-field-value-color);font-size:var(--rt-field-value-font-size)}.rt-input__readonly--empty{color:var(--rt-field-value-empty-color)}.rt-input__field{min-width:0;flex:1 1 auto;padding:0;border:none;background:transparent;caret-color:var(--rt-input-caret-color);color:inherit;font:inherit;letter-spacing:var(--rt-input-letter-spacing, normal);outline:none}.rt-input__field::placeholder{color:var(--rt-input-color-text-placeholder);opacity:1}.rt-input__field:disabled{cursor:not-allowed}.rt-input__icon-left,.rt-input__icon-right,.rt-input__clear{flex-shrink:0}.rt-input__toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:var(--rt-space-1);border:none;border-radius:var(--rt-input-toggle-radius);margin:0;background:transparent;color:inherit;cursor:pointer}.rt-input__toggle:hover{background-color:var(--rt-input-color-bg-hover)}.rt-input__toggle:focus-visible{outline:var(--rt-input-border-width) solid var(--rt-input-color-border-focus);outline-offset:var(--rt-input-focus-outline-offset)}.rt-input[data-rt-radius=none]{--rt-input-box-radius: var(--rt-radius-none)}.rt-input[data-rt-radius=xs]{--rt-input-box-radius: var(--rt-radius-xs)}.rt-input[data-rt-radius=sm]{--rt-input-box-radius: var(--rt-radius-sm)}.rt-input[data-rt-radius=ms]{--rt-input-box-radius: var(--rt-radius-ms)}.rt-input[data-rt-radius=md]{--rt-input-box-radius: var(--rt-radius-md)}.rt-input[data-rt-radius=lg]{--rt-input-box-radius: var(--rt-radius-lg)}.rt-input[data-rt-radius=xl]{--rt-input-box-radius: var(--rt-radius-xl)}.rt-input[data-rt-radius=\"2xl\"]{--rt-input-box-radius: var(--rt-radius-2xl)}.rt-input[data-rt-radius=full]{--rt-input-box-radius: var(--rt-radius-full)}}\n",
|
|
279
|
+
"@charset \"UTF-8\";@layer rt-kit.components{.rt-input--with-icon-left{--rt-input-floating-label-rest-start: calc( var(--rt-input-floating-label-start) + var(--rt-input-icon-size) + var(--rt-input-gap) )}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]){--rt-input-floating-label-bg: transparent;--rt-input-floating-label-raised-start: max( var(--rt-input-floating-label-start), calc(min(var(--rt-input-box-radius), var(--rt-input-height) / 2) + var(--rt-space-2)) )}.rt-input--with-icon-left:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-left){--rt-input-floating-label-rest-start: calc( var(--rt-space-2) + var(--rt-space-1) - var(--rt-input-edge) + var(--rt-input-icon-size) + var(--rt-space-1) )}.rt-input--appearance--fill,.rt-input--appearance--pill{--rt-input-floating-label-bg: var(--rt-color-bg-surface-subtle-2)}.rt-input--appearance--fill{--rt-input-floating-label-raised-start: var(--rt-input-floating-label-start)}.rt-input__floating-label{position:absolute;top:50%;left:var(--rt-input-floating-label-rest-start);display:none;overflow:hidden;max-width:calc(100% - var(--rt-input-floating-label-rest-start) - var(--rt-input-padding-x));color:var(--rt-input-floating-label-color);pointer-events:none;text-overflow:ellipsis;transform:translateY(-50%);transform-origin:left center;transition:top var(--rt-input-floating-label-duration) ease,left var(--rt-input-floating-label-duration) ease,font-size var(--rt-input-floating-label-duration) ease,color var(--rt-input-floating-label-duration) ease;white-space:nowrap}.rt-input:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__floating-label{display:block}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--filled,:focus-within) .rt-input__field::placeholder{color:transparent}.rt-input--filled .rt-input__floating-label,.rt-input:focus-within .rt-input__floating-label{top:0;left:var(--rt-input-floating-label-raised-start);max-width:calc(100% - var(--rt-input-floating-label-raised-start) - var(--rt-input-floating-label-start));padding:0 var(--rt-space-1);margin-left:calc(-1 * var(--rt-space-1));background-color:var(--rt-input-floating-label-bg);font-size:var(--rt-input-floating-label-font-size);line-height:1}.rt-input:focus-within .rt-input__floating-label{color:var(--rt-input-floating-label-color-focus)}.rt-input--invalid .rt-input__floating-label{color:var(--rt-input-floating-label-color-error)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill{--rt-input-height: var(--rt-input-fill-floating-height)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill .rt-input__floating-label{line-height:var(--rt-leading-tight)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill .rt-input__field,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill .rt-input__field{align-self:stretch;padding:calc(var(--rt-input-height) / 2 - var(--rt-space-1) - var(--rt-input-edge)) 0 calc(var(--rt-input-height) / 2 - var(--rt-space-5) - var(--rt-input-border-width));line-height:var(--rt-leading-normal)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill.rt-input--filled .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill:focus-within .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill.rt-input--filled .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill:focus-within .rt-input__floating-label{top:calc(var(--rt-input-height) / 2 - var(--rt-space-5) - var(--rt-input-edge));left:var(--rt-input-floating-label-rest-start);padding:0;margin-left:0;background-color:transparent;transform:none}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly){border-color:transparent;box-shadow:none}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):before{position:absolute;border:var(--rt-input-border-width) solid var(--rt-input-color-border);border-radius:inherit;content:\"\";inset:calc(-1 * var(--rt-input-border-width));pointer-events:none}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):where(:hover:not(:has(:disabled))):before{border-color:var(--rt-input-color-border-hover)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):focus-within:before{border-color:var(--rt-input-color-border-focus);box-shadow:var(--rt-input-focus-shadow)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--invalid:before{border-color:var(--rt-input-color-border-error)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--invalid:focus-within:before{box-shadow:var(--rt-input-focus-shadow-error)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--borderless:not(:focus-within,.rt-input--invalid):before{border-color:transparent}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--filled:before,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):focus-within:before{clip-path:polygon(0 0,var(--rt-input-notch-start) 0,var(--rt-input-notch-start) var(--rt-input-notch-depth),calc(var(--rt-input-notch-start) + var(--rt-input-notch-width)) var(--rt-input-notch-depth),calc(var(--rt-input-notch-start) + var(--rt-input-notch-width)) 0,100% 0,100% 100%,0 100%)}}\n",
|
|
280
|
+
"@charset \"UTF-8\";@layer rt-kit.components{.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__icon-left .rt-icon-button,.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__icon-right .rt-icon-button{width:min(var(--rt-icon-button-size, var(--rt-icon-button-size-step)),var(--rt-input-height) - 2 * var(--rt-input-border-width));height:min(var(--rt-icon-button-size, var(--rt-icon-button-size-step)),var(--rt-input-height) - 2 * var(--rt-input-border-width))}.rt-input__icon-left,.rt-input__icon-right{--rt-icon-color-muted: var(--rt-input-icon-color);--rt-icon-step-sm: var(--rt-input-icon-size);min-width:var(--rt-input-icon-size);min-height:var(--rt-input-icon-size)}.rt-input__clear{--rt-icon-color-muted: var(--rt-input-clear-color);--rt-icon-step-sm: var(--rt-input-clear-icon-size);margin-inline-start:var(--rt-input-clear-offset-start)}.rt-input--clearable:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--with-icon-right,.rt-input--readonly){padding-right:calc(var(--rt-space-1) - var(--rt-input-edge))}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__clear .rt-icon-button{width:min(var(--rt-input-clear-size),var(--rt-input-height) - 2 * var(--rt-input-border-width));height:min(var(--rt-input-clear-size),var(--rt-input-height) - 2 * var(--rt-input-border-width))}.rt-input .rt-input__clear .rt-icon-button{--rt-icon-button-radius: var(--rt-input-clear-radius);--rt-icon-button-bg-variant: var(--rt-input-clear-bg);--rt-icon-button-color-bg-hover: var(--rt-input-clear-bg-hover)}.rt-input__clear:last-child{margin-inline-end:var(--rt-input-clear-offset-end)}.rt-input--with-icon-left:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-left){padding-left:calc(var(--rt-space-2) + var(--rt-space-1) - var(--rt-input-edge))}.rt-input--with-icon-left:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-left)>.rt-input__icon-left{margin-right:calc(var(--rt-space-1) - var(--rt-input-gap))}.rt-input--with-icon-right:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-right){padding-right:calc(var(--rt-space-2) + var(--rt-space-1) - var(--rt-input-edge))}.rt-input--with-icon-right:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-right)>.rt-input__icon-right{margin-left:calc(var(--rt-space-1) - var(--rt-input-gap))}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material])>.rt-input__icon-left .rt-icon-button,.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material])>.rt-input__icon-right .rt-icon-button{--rt-input-icon-button-width: min( var(--rt-icon-button-size, var(--rt-icon-button-size-step)), calc(var(--rt-input-height) - 2 * var(--rt-input-border-width)) );--rt-input-icon-overhang: calc((var(--rt-input-icon-button-width) - var(--rt-input-icon-size)) / 2);margin-inline:calc(-1 * var(--rt-input-icon-overhang))}}\n"
|
|
281
|
+
],
|
|
166
282
|
dependencies: [
|
|
167
283
|
{
|
|
168
284
|
kind: "component",
|
|
@@ -265,10 +381,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
265
381
|
"[class.rt-input--size--lg]": "size() === 'lg'",
|
|
266
382
|
"[class.rt-input--with-icon-left]": "!!iconLeft()",
|
|
267
383
|
"[class.rt-input--with-icon-right]": "hasIconRight()",
|
|
384
|
+
"[class.rt-input--floating]": "!!floatingLabel()",
|
|
385
|
+
"[class.rt-input--clearable]": "clearable()",
|
|
386
|
+
"[style.--rt-input-notch-width]": "notchWidth() + 'px'",
|
|
387
|
+
"[class.rt-input--filled]": "hasValue()",
|
|
268
388
|
"(mousedown)": "onHostMousedown($event)"
|
|
269
389
|
},
|
|
270
|
-
template: "<ng-container rtBlock=\"rt-input\">\n @if (isReadonly()) {\n <span rtElem=\"readonly\" qa-dataid=\"input-readonly\" [rtMod]=\"{ empty: !displayText() }\">{{ displayText() || '—' }}</span>\n } @else {\n @if (iconLeft(); as left) {\n <rt-icon rtElem=\"icon-left\" size=\"sm\" color=\"muted\" [name]=\"left\" />\n }\n <input\n #fieldEl\n rtElem=\"field\"\n qa-dataid=\"input-control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n [disabled]=\"isDisabled()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.id]=\"effectiveControlId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\" />\n @if (showClearButton() && !showPasswordToggle()) {\n <rt-icon-button\n rtElem=\"clear\"\n qa-dataid=\"input-clear\"\n icon=\"ico-close\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [ariaLabel]=\"t().uiClear\"\n [tabIndex]=\"
|
|
271
|
-
styles: [
|
|
390
|
+
template: "<ng-container rtBlock=\"rt-input\">\n @if (isReadonly()) {\n <span rtElem=\"readonly\" qa-dataid=\"input-readonly\" [rtMod]=\"{ empty: !displayText() }\">{{ displayText() || '—' }}</span>\n } @else {\n @if (iconLeft(); as left) {\n @if (iconLeftAction()) {\n <rt-icon-button\n rtElem=\"icon-left\"\n qa-dataid=\"input-icon-left-action\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [icon]=\"left\"\n [ariaLabel]=\"iconLeftTooltip() || left\"\n [tooltip]=\"iconLeftTooltip() ?? ''\"\n [disabled]=\"isIconLeftDisabled()\"\n (clicked)=\"iconLeftClick.emit($event)\" />\n } @else {\n <rt-icon rtElem=\"icon-left\" size=\"sm\" color=\"muted\" [name]=\"left\" />\n }\n }\n @if (floatingLabel(); as label) {\n <!-- Подпись — картинка поверх поля: клик проходит сквозь неё в поле, имя полю она даёт по aria-labelledby. -->\n <span #floatingLabelEl rtElem=\"floating-label\" qa-dataid=\"input-floating-label\" aria-hidden=\"true\" [id]=\"floatingLabelId\">\n {{ label }}\n </span>\n }\n <input\n #fieldEl\n rtElem=\"field\"\n qa-dataid=\"input-control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n [disabled]=\"isDisabled()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.id]=\"effectiveControlId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\" />\n @if (showClearButton() && !showPasswordToggle()) {\n <rt-icon-button\n rtElem=\"clear\"\n qa-dataid=\"input-clear\"\n icon=\"ico-close\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [ariaLabel]=\"t().uiClear\"\n [tabIndex]=\"clearTabIndex()\"\n (clicked)=\"clear($event)\" />\n }\n @if (showPasswordToggle()) {\n <button\n rtElem=\"toggle\"\n qa-dataid=\"input-password-toggle\"\n type=\"button\"\n [attr.aria-label]=\"isPasswordVisible() ? t().uiHidePassword : t().uiShowPassword\"\n [tabIndex]=\"-1\"\n (click)=\"togglePassword()\">\n <rt-icon size=\"sm\" color=\"muted\" [name]=\"passwordToggleIcon()\" />\n </button>\n } @else if (iconRight(); as right) {\n @if (iconRightAction()) {\n <rt-icon-button\n rtElem=\"icon-right\"\n qa-dataid=\"input-icon-right-action\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [icon]=\"right\"\n [ariaLabel]=\"iconRightTooltip() || right\"\n [tooltip]=\"iconRightTooltip() ?? ''\"\n [disabled]=\"isIconRightDisabled()\"\n (clicked)=\"iconRightClick.emit($event)\" />\n } @else {\n <rt-icon rtElem=\"icon-right\" size=\"sm\" color=\"muted\" [name]=\"right\" />\n }\n }\n }\n</ng-container>\n",
|
|
391
|
+
styles: [
|
|
392
|
+
"@charset \"UTF-8\";@layer rt-kit.components{.rt-input{--rt-input-box-radius: var(--rt-input-radius);--rt-input-fill-radius: var(--rt-radius-sm);--rt-input-toggle-radius: var(--rt-radius-sm);--rt-input-floating-label-color: var(--rt-input-color-text-placeholder);--rt-input-floating-label-color-focus: var(--rt-input-color-border-focus);--rt-input-floating-label-color-error: var(--rt-input-color-border-error);--rt-input-floating-label-bg: var(--rt-input-color-bg);--rt-input-floating-label-font-size: var(--rt-text-xs);--rt-input-floating-label-start: var(--rt-input-padding-x);--rt-input-floating-label-rest-start: var(--rt-input-floating-label-start);--rt-input-floating-label-raised-start: var(--rt-input-floating-label-start);--rt-input-notch-start: calc(var(--rt-input-floating-label-raised-start) - var(--rt-space-1) + var(--rt-input-border-width));--rt-input-notch-depth: calc(2 * var(--rt-input-border-width));--rt-input-notch-width: 0px;--rt-input-fill-floating-height: var(--rt-input-height-md);--rt-input-color-border-hover: var(--rt-color-text-primary);--rt-input-floating-label-duration: var(--rt-duration-fast);--rt-input-edge: var(--rt-input-border-width);position:relative;display:inline-flex;width:100%;min-width:var(--rt-input-min-width);min-height:var(--rt-input-height);box-sizing:border-box;align-items:center;padding:var(--rt-input-padding-y) var(--rt-input-padding-x);border:var(--rt-input-border-width) solid var(--rt-input-color-border);border-radius:var(--rt-input-box-radius);background-color:var(--rt-input-color-bg);color:var(--rt-input-color-text);cursor:text;font-size:var(--rt-input-font-size);gap:var(--rt-input-gap);line-height:var(--rt-input-line-height);transition:var(--rt-input-transition)}.rt-input:focus-within{border-color:var(--rt-input-color-border-focus);box-shadow:var(--rt-input-focus-shadow);outline:2px solid transparent;outline-offset:var(--rt-input-focus-outline-offset)}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):where(:hover:not(:has(:disabled))){border-color:var(--rt-input-color-border-hover)}.rt-input--borderless{border-color:transparent}.rt-input--appearance--fill{--rt-input-edge: var(--rt-input-fill-edge);border-width:var(--rt-input-fill-edge) var(--rt-input-fill-edge) var(--rt-input-border-width);border-color:transparent;border-radius:var(--rt-input-fill-radius) var(--rt-input-fill-radius) 0 0;border-bottom-color:var(--rt-color-field-fill-underline);background-color:var(--rt-color-bg-surface-subtle-2)}.rt-input--appearance--fill:where([data-rt-radius]){border-radius:var(--rt-input-box-radius);border-bottom-color:transparent}.rt-input--appearance--pill{--rt-input-box-radius: var(--rt-radius-full);border-color:transparent;background-color:var(--rt-color-bg-surface-subtle-2)}.rt-input--invalid{border-color:var(--rt-input-color-border-error)}.rt-input--invalid:focus-within{box-shadow:var(--rt-input-focus-shadow-error)}.rt-input--appearance--fill:focus-within{box-shadow:var(--rt-input-fill-focus-shadow)}.rt-input--appearance--fill.rt-input--invalid:focus-within{box-shadow:var(--rt-input-fill-focus-shadow-error)}.rt-input--disabled{color:var(--rt-input-color-text-disabled);cursor:not-allowed;opacity:var(--rt-input-disabled-field-opacity)}.rt-input--disabled:not(.rt-input--invalid,.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--borderless,.rt-input--readonly){border-color:var(--rt-input-color-border-disabled)}.rt-input--appearance--fill.rt-input--disabled{background-color:var(--rt-input-fill-color-bg-disabled)}.rt-input--disabled .rt-input__field::placeholder{color:var(--rt-input-color-placeholder-disabled)}.rt-input--size--sm{--rt-input-height: var(--rt-input-height-sm);min-height:var(--rt-input-height-sm)}.rt-input--size--lg{--rt-input-height: var(--rt-input-height-lg);min-height:var(--rt-input-height-lg)}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]){--rt-input-floating-label-start: calc(var(--rt-input-padding-x) - var(--rt-input-edge));padding-inline:calc(var(--rt-input-padding-x) - var(--rt-input-edge))}.rt-input--readonly{padding-right:0;padding-left:0;border-color:transparent;background-color:transparent;cursor:default}.rt-input__readonly{color:var(--rt-field-value-color);font-size:var(--rt-field-value-font-size)}.rt-input__readonly--empty{color:var(--rt-field-value-empty-color)}.rt-input__field{min-width:0;flex:1 1 auto;padding:0;border:none;background:transparent;caret-color:var(--rt-input-caret-color);color:inherit;font:inherit;letter-spacing:var(--rt-input-letter-spacing, normal);outline:none}.rt-input__field::placeholder{color:var(--rt-input-color-text-placeholder);opacity:1}.rt-input__field:disabled{cursor:not-allowed}.rt-input__icon-left,.rt-input__icon-right,.rt-input__clear{flex-shrink:0}.rt-input__toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:var(--rt-space-1);border:none;border-radius:var(--rt-input-toggle-radius);margin:0;background:transparent;color:inherit;cursor:pointer}.rt-input__toggle:hover{background-color:var(--rt-input-color-bg-hover)}.rt-input__toggle:focus-visible{outline:var(--rt-input-border-width) solid var(--rt-input-color-border-focus);outline-offset:var(--rt-input-focus-outline-offset)}.rt-input[data-rt-radius=none]{--rt-input-box-radius: var(--rt-radius-none)}.rt-input[data-rt-radius=xs]{--rt-input-box-radius: var(--rt-radius-xs)}.rt-input[data-rt-radius=sm]{--rt-input-box-radius: var(--rt-radius-sm)}.rt-input[data-rt-radius=ms]{--rt-input-box-radius: var(--rt-radius-ms)}.rt-input[data-rt-radius=md]{--rt-input-box-radius: var(--rt-radius-md)}.rt-input[data-rt-radius=lg]{--rt-input-box-radius: var(--rt-radius-lg)}.rt-input[data-rt-radius=xl]{--rt-input-box-radius: var(--rt-radius-xl)}.rt-input[data-rt-radius=\"2xl\"]{--rt-input-box-radius: var(--rt-radius-2xl)}.rt-input[data-rt-radius=full]{--rt-input-box-radius: var(--rt-radius-full)}}\n",
|
|
393
|
+
"@charset \"UTF-8\";@layer rt-kit.components{.rt-input--with-icon-left{--rt-input-floating-label-rest-start: calc( var(--rt-input-floating-label-start) + var(--rt-input-icon-size) + var(--rt-input-gap) )}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]){--rt-input-floating-label-bg: transparent;--rt-input-floating-label-raised-start: max( var(--rt-input-floating-label-start), calc(min(var(--rt-input-box-radius), var(--rt-input-height) / 2) + var(--rt-space-2)) )}.rt-input--with-icon-left:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-left){--rt-input-floating-label-rest-start: calc( var(--rt-space-2) + var(--rt-space-1) - var(--rt-input-edge) + var(--rt-input-icon-size) + var(--rt-space-1) )}.rt-input--appearance--fill,.rt-input--appearance--pill{--rt-input-floating-label-bg: var(--rt-color-bg-surface-subtle-2)}.rt-input--appearance--fill{--rt-input-floating-label-raised-start: var(--rt-input-floating-label-start)}.rt-input__floating-label{position:absolute;top:50%;left:var(--rt-input-floating-label-rest-start);display:none;overflow:hidden;max-width:calc(100% - var(--rt-input-floating-label-rest-start) - var(--rt-input-padding-x));color:var(--rt-input-floating-label-color);pointer-events:none;text-overflow:ellipsis;transform:translateY(-50%);transform-origin:left center;transition:top var(--rt-input-floating-label-duration) ease,left var(--rt-input-floating-label-duration) ease,font-size var(--rt-input-floating-label-duration) ease,color var(--rt-input-floating-label-duration) ease;white-space:nowrap}.rt-input:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__floating-label{display:block}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--filled,:focus-within) .rt-input__field::placeholder{color:transparent}.rt-input--filled .rt-input__floating-label,.rt-input:focus-within .rt-input__floating-label{top:0;left:var(--rt-input-floating-label-raised-start);max-width:calc(100% - var(--rt-input-floating-label-raised-start) - var(--rt-input-floating-label-start));padding:0 var(--rt-space-1);margin-left:calc(-1 * var(--rt-space-1));background-color:var(--rt-input-floating-label-bg);font-size:var(--rt-input-floating-label-font-size);line-height:1}.rt-input:focus-within .rt-input__floating-label{color:var(--rt-input-floating-label-color-focus)}.rt-input--invalid .rt-input__floating-label{color:var(--rt-input-floating-label-color-error)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill{--rt-input-height: var(--rt-input-fill-floating-height)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill .rt-input__floating-label{line-height:var(--rt-leading-tight)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill .rt-input__field,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill .rt-input__field{align-self:stretch;padding:calc(var(--rt-input-height) / 2 - var(--rt-space-1) - var(--rt-input-edge)) 0 calc(var(--rt-input-height) / 2 - var(--rt-space-5) - var(--rt-input-border-width));line-height:var(--rt-leading-normal)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill.rt-input--filled .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--fill:focus-within .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill.rt-input--filled .rt-input__floating-label,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]).rt-input--appearance--pill:focus-within .rt-input__floating-label{top:calc(var(--rt-input-height) / 2 - var(--rt-space-5) - var(--rt-input-edge));left:var(--rt-input-floating-label-rest-start);padding:0;margin-left:0;background-color:transparent;transform:none}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly){border-color:transparent;box-shadow:none}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):before{position:absolute;border:var(--rt-input-border-width) solid var(--rt-input-color-border);border-radius:inherit;content:\"\";inset:calc(-1 * var(--rt-input-border-width));pointer-events:none}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):where(:hover:not(:has(:disabled))):before{border-color:var(--rt-input-color-border-hover)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):focus-within:before{border-color:var(--rt-input-color-border-focus);box-shadow:var(--rt-input-focus-shadow)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--invalid:before{border-color:var(--rt-input-color-border-error)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--invalid:focus-within:before{box-shadow:var(--rt-input-focus-shadow-error)}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--borderless:not(:focus-within,.rt-input--invalid):before{border-color:transparent}.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly).rt-input--filled:before,.rt-input--floating:is(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--appearance--fill,.rt-input--appearance--pill,.rt-input--readonly):focus-within:before{clip-path:polygon(0 0,var(--rt-input-notch-start) 0,var(--rt-input-notch-start) var(--rt-input-notch-depth),calc(var(--rt-input-notch-start) + var(--rt-input-notch-width)) var(--rt-input-notch-depth),calc(var(--rt-input-notch-start) + var(--rt-input-notch-width)) 0,100% 0,100% 100%,0 100%)}}\n",
|
|
394
|
+
"@charset \"UTF-8\";@layer rt-kit.components{.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__icon-left .rt-icon-button,.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__icon-right .rt-icon-button{width:min(var(--rt-icon-button-size, var(--rt-icon-button-size-step)),var(--rt-input-height) - 2 * var(--rt-input-border-width));height:min(var(--rt-icon-button-size, var(--rt-icon-button-size-step)),var(--rt-input-height) - 2 * var(--rt-input-border-width))}.rt-input__icon-left,.rt-input__icon-right{--rt-icon-color-muted: var(--rt-input-icon-color);--rt-icon-step-sm: var(--rt-input-icon-size);min-width:var(--rt-input-icon-size);min-height:var(--rt-input-icon-size)}.rt-input__clear{--rt-icon-color-muted: var(--rt-input-clear-color);--rt-icon-step-sm: var(--rt-input-clear-icon-size);margin-inline-start:var(--rt-input-clear-offset-start)}.rt-input--clearable:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):not(.rt-input--with-icon-right,.rt-input--readonly){padding-right:calc(var(--rt-space-1) - var(--rt-input-edge))}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]) .rt-input__clear .rt-icon-button{width:min(var(--rt-input-clear-size),var(--rt-input-height) - 2 * var(--rt-input-border-width));height:min(var(--rt-input-clear-size),var(--rt-input-height) - 2 * var(--rt-input-border-width))}.rt-input .rt-input__clear .rt-icon-button{--rt-icon-button-radius: var(--rt-input-clear-radius);--rt-icon-button-bg-variant: var(--rt-input-clear-bg);--rt-icon-button-color-bg-hover: var(--rt-input-clear-bg-hover)}.rt-input__clear:last-child{margin-inline-end:var(--rt-input-clear-offset-end)}.rt-input--with-icon-left:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-left){padding-left:calc(var(--rt-space-2) + var(--rt-space-1) - var(--rt-input-edge))}.rt-input--with-icon-left:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-left)>.rt-input__icon-left{margin-right:calc(var(--rt-space-1) - var(--rt-input-gap))}.rt-input--with-icon-right:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-right){padding-right:calc(var(--rt-space-2) + var(--rt-space-1) - var(--rt-input-edge))}.rt-input--with-icon-right:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material]):has(>.rt-input__icon-right)>.rt-input__icon-right{margin-left:calc(var(--rt-space-1) - var(--rt-input-gap))}.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material])>.rt-input__icon-left .rt-icon-button,.rt-input:where(.rt-preset-material *,[data-preset=material] *,.rt-preset-material,[data-preset=material])>.rt-input__icon-right .rt-icon-button{--rt-input-icon-button-width: min( var(--rt-icon-button-size, var(--rt-icon-button-size-step)), calc(var(--rt-input-height) - 2 * var(--rt-input-border-width)) );--rt-input-icon-overhang: calc((var(--rt-input-icon-button-width) - var(--rt-input-icon-size)) / 2);margin-inline:calc(-1 * var(--rt-input-icon-overhang))}}\n"
|
|
395
|
+
]
|
|
272
396
|
}]
|
|
273
397
|
}],
|
|
274
398
|
propDecorators: {
|
|
@@ -276,6 +400,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
276
400
|
type: i0.ViewChild,
|
|
277
401
|
args: ["fieldEl", { isSignal: true }]
|
|
278
402
|
}],
|
|
403
|
+
floatingLabelEl: [{
|
|
404
|
+
type: i0.ViewChild,
|
|
405
|
+
args: ["floatingLabelEl", { isSignal: true }]
|
|
406
|
+
}],
|
|
279
407
|
appearance: [{
|
|
280
408
|
type: i0.Input,
|
|
281
409
|
args: [{
|
|
@@ -331,6 +459,78 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
331
459
|
alias: "autocomplete",
|
|
332
460
|
required: false
|
|
333
461
|
}]
|
|
462
|
+
}],
|
|
463
|
+
maxlength: [{
|
|
464
|
+
type: i0.Input,
|
|
465
|
+
args: [{
|
|
466
|
+
isSignal: true,
|
|
467
|
+
alias: "maxlength",
|
|
468
|
+
required: false
|
|
469
|
+
}]
|
|
470
|
+
}],
|
|
471
|
+
floatingLabel: [{
|
|
472
|
+
type: i0.Input,
|
|
473
|
+
args: [{
|
|
474
|
+
isSignal: true,
|
|
475
|
+
alias: "floatingLabel",
|
|
476
|
+
required: false
|
|
477
|
+
}]
|
|
478
|
+
}],
|
|
479
|
+
iconLeftAction: [{
|
|
480
|
+
type: i0.Input,
|
|
481
|
+
args: [{
|
|
482
|
+
isSignal: true,
|
|
483
|
+
alias: "iconLeftAction",
|
|
484
|
+
required: false
|
|
485
|
+
}]
|
|
486
|
+
}],
|
|
487
|
+
iconRightAction: [{
|
|
488
|
+
type: i0.Input,
|
|
489
|
+
args: [{
|
|
490
|
+
isSignal: true,
|
|
491
|
+
alias: "iconRightAction",
|
|
492
|
+
required: false
|
|
493
|
+
}]
|
|
494
|
+
}],
|
|
495
|
+
iconLeftDisabled: [{
|
|
496
|
+
type: i0.Input,
|
|
497
|
+
args: [{
|
|
498
|
+
isSignal: true,
|
|
499
|
+
alias: "iconLeftDisabled",
|
|
500
|
+
required: false
|
|
501
|
+
}]
|
|
502
|
+
}],
|
|
503
|
+
iconRightDisabled: [{
|
|
504
|
+
type: i0.Input,
|
|
505
|
+
args: [{
|
|
506
|
+
isSignal: true,
|
|
507
|
+
alias: "iconRightDisabled",
|
|
508
|
+
required: false
|
|
509
|
+
}]
|
|
510
|
+
}],
|
|
511
|
+
iconLeftTooltip: [{
|
|
512
|
+
type: i0.Input,
|
|
513
|
+
args: [{
|
|
514
|
+
isSignal: true,
|
|
515
|
+
alias: "iconLeftTooltip",
|
|
516
|
+
required: false
|
|
517
|
+
}]
|
|
518
|
+
}],
|
|
519
|
+
iconRightTooltip: [{
|
|
520
|
+
type: i0.Input,
|
|
521
|
+
args: [{
|
|
522
|
+
isSignal: true,
|
|
523
|
+
alias: "iconRightTooltip",
|
|
524
|
+
required: false
|
|
525
|
+
}]
|
|
526
|
+
}],
|
|
527
|
+
iconLeftClick: [{
|
|
528
|
+
type: i0.Output,
|
|
529
|
+
args: ["iconLeftClick"]
|
|
530
|
+
}],
|
|
531
|
+
iconRightClick: [{
|
|
532
|
+
type: i0.Output,
|
|
533
|
+
args: ["iconRightClick"]
|
|
334
534
|
}]
|
|
335
535
|
}
|
|
336
536
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rt-tools-ui-kit-v2-input.mjs","names":[],"sources":["../../../projects/ui-kit-v2/src/lib/components/input/rt-input.component.ts","../../../projects/ui-kit-v2/src/lib/components/input/rt-input.component.html"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n signal,\n viewChild,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n InputSignal,\n InputSignalWithTransform,\n Signal,\n ViewEncapsulation,\n WritableSignal,\n} from '@angular/core';\n\nimport { BlockDirective, ElemDirective, ModDirective } from '@rt-tools/core';\n\nimport { RT_KIT_LABELS, TRtKitLabelMap } from '@rt-tools/ui-kit-v2/core';\nimport { RtFormControlBase } from '@rt-tools/ui-kit-v2/form-control';\nimport { IRtIcon } from '@rt-tools/ui-kit-v2/core';\nimport { RtIconComponent } from '@rt-tools/ui-kit-v2/icon';\nimport { RtIconButtonComponent } from '@rt-tools/ui-kit-v2/icon-button';\nimport { RtRadiusDirective } from '@rt-tools/ui-kit-v2/radius';\nimport { IRtInput } from '@rt-tools/ui-kit-v2/core';\n\nconst BEM_BLOCK: string = 'rt-input';\n\n/**\n * Шеренный input common/ui. Поддерживает:\n * - интеграцию с Reactive Forms через общий `RtFormControlBase` (CVA-ядро,\n * авто-подсветка invalid, `clearable`);\n * - левую и правую иконочные «слоты» (`iconLeft`, `iconRight`);\n * - встроенный password-toggle (`passwordToggle=true` + `type=\"password\"`);\n * - кнопку очистки (крестик) при наличии значения; на password-полях крестик\n * не показывается (postfix занят toggle'ом).\n *\n * Все размеры/цвета — через `--rt-input-*` semantic-токены.\n */\n@Component({\n selector: 'rt-input',\n templateUrl: './rt-input.component.html',\n styleUrls: ['./rt-input.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [\n // standalone components / directives\n RtIconButtonComponent,\n RtIconComponent,\n BlockDirective,\n ElemDirective,\n ModDirective,\n ],\n providers: [\n // Алиас базового токена — чтобы rt-field мог найти контрол через\n // contentChild(RtFormControlBase) (query по абстрактному классу).\n { provide: RtFormControlBase, useExisting: forwardRef(() => RtInputComponent) },\n ],\n hostDirectives: [{ directive: RtRadiusDirective, inputs: ['radius'] }],\n host: {\n class: BEM_BLOCK,\n '[class.rt-input--disabled]': 'isDisabled()',\n '[class.rt-input--invalid]': 'isInvalid()',\n '[class.rt-input--readonly]': 'isReadonly()',\n '[class.rt-input--borderless]': '!bordered()',\n '[class.rt-input--appearance--fill]': \"appearance() === 'fill'\",\n '[class.rt-input--appearance--pill]': \"appearance() === 'pill'\",\n '[class.rt-input--size--sm]': \"size() === 'sm'\",\n '[class.rt-input--size--lg]': \"size() === 'lg'\",\n '[class.rt-input--with-icon-left]': '!!iconLeft()',\n '[class.rt-input--with-icon-right]': 'hasIconRight()',\n '(mousedown)': 'onHostMousedown($event)',\n },\n})\nexport class RtInputComponent extends RtFormControlBase<string> {\n protected readonly t: Signal<TRtKitLabelMap> = inject(RT_KIT_LABELS);\n\n protected readonly fieldEl: Signal<ElementRef<HTMLInputElement> | undefined> = viewChild<ElementRef<HTMLInputElement>>('fieldEl');\n\n protected readonly isPasswordVisible: WritableSignal<boolean> = signal<boolean>(false);\n\n protected readonly hasValue: Signal<boolean> = computed((): boolean => this.value() !== '');\n\n protected readonly effectiveType: Signal<string> = computed((): string => {\n const t: IRtInput.Type = this.type();\n if (t === 'password' && this.passwordToggle() && this.isPasswordVisible()) {\n return 'text';\n }\n return t;\n });\n\n protected readonly showPasswordToggle: Signal<boolean> = computed((): boolean => this.passwordToggle() && this.type() === 'password');\n\n protected readonly hasIconRight: Signal<boolean> = computed((): boolean => !!this.iconRight() || this.showPasswordToggle());\n\n protected readonly passwordToggleIcon: Signal<IRtIcon.Name> = computed((): IRtIcon.Name =>\n this.isPasswordVisible() ? 'ico-eyeClose' : 'ico-eye'\n );\n\n /** Вид рамки: `outline` — рамка со всех сторон, `fill` — залитое поле с чертой снизу. */\n public readonly appearance: InputSignal<IRtInput.Appearance> = input<IRtInput.Appearance>('outline');\n\n public readonly displayText: Signal<string> = computed((): string => this.value());\n\n public readonly type: InputSignal<IRtInput.Type> = input<IRtInput.Type>('text');\n public readonly placeholder: InputSignal<string> = input<string>('');\n public readonly iconLeft: InputSignal<IRtIcon.Name | null> = input<IRtIcon.Name | null>(null);\n public readonly iconRight: InputSignal<IRtIcon.Name | null> = input<IRtIcon.Name | null>(null);\n public readonly passwordToggle: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n public readonly autocomplete: InputSignal<string | null> = input<string | null>(null);\n\n protected getEmptyValue(): string {\n return '';\n }\n\n protected focusAfterClear(): void {\n this.fieldEl()?.nativeElement.focus();\n }\n\n /**\n * Падинг/гэп рамки принадлежат host-контейнеру, а не `<input>`, поэтому клик\n * по этой зоне сам по себе не фокусирует поле. Перехватываем mousedown и\n * переводим фокус в input — но только если клик не пришёлся на само поле\n * (там нужно нативное позиционирование курсора) и не на интерактивный\n * постфикс (крестик/таггл со своими обработчиками).\n */\n protected onHostMousedown(event: MouseEvent): void {\n if (this.isDisabled()) {\n return;\n }\n const field: HTMLInputElement | undefined = this.fieldEl()?.nativeElement;\n const target: HTMLElement = event.target as HTMLElement;\n if (!field || target === field || target.closest('button, rt-icon-button')) {\n return;\n }\n event.preventDefault();\n field.focus();\n }\n\n protected onInput(event: Event): void {\n const target: HTMLInputElement = event.target as HTMLInputElement;\n const next: string = target.value;\n this.value.set(next);\n this.emitChange(next);\n }\n\n protected onBlur(): void {\n this.markTouched();\n }\n\n protected togglePassword(): void {\n this.isPasswordVisible.update((v: boolean): boolean => !v);\n }\n}\n","<ng-container rtBlock=\"rt-input\">\n @if (isReadonly()) {\n <span rtElem=\"readonly\" qa-dataid=\"input-readonly\" [rtMod]=\"{ empty: !displayText() }\">{{ displayText() || '—' }}</span>\n } @else {\n @if (iconLeft(); as left) {\n <rt-icon rtElem=\"icon-left\" size=\"sm\" color=\"muted\" [name]=\"left\" />\n }\n <input\n #fieldEl\n rtElem=\"field\"\n qa-dataid=\"input-control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n [disabled]=\"isDisabled()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.id]=\"effectiveControlId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\" />\n @if (showClearButton() && !showPasswordToggle()) {\n <rt-icon-button\n rtElem=\"clear\"\n qa-dataid=\"input-clear\"\n icon=\"ico-close\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [ariaLabel]=\"t().uiClear\"\n [tabIndex]=\"-1\"\n (clicked)=\"clear($event)\" />\n }\n @if (showPasswordToggle()) {\n <button\n rtElem=\"toggle\"\n qa-dataid=\"input-password-toggle\"\n type=\"button\"\n [attr.aria-label]=\"isPasswordVisible() ? t().uiHidePassword : t().uiShowPassword\"\n [tabIndex]=\"-1\"\n (click)=\"togglePassword()\">\n <rt-icon size=\"sm\" color=\"muted\" [name]=\"passwordToggleIcon()\" />\n </button>\n } @else if (iconRight(); as right) {\n <rt-icon rtElem=\"icon-right\" size=\"sm\" color=\"muted\" [name]=\"right\" />\n }\n }\n</ng-container>\n"],"mappings":";;;;;;;;;AA6BA,MAAM,YAAoB;AAgD1B,IAAa,mBAAb,MAAa,yBAAyB,kBAAyB;CAnC/D,cAAA;;EAoCuB,KAAA,IAA4B,OAAO,aAAa;EAEhD,KAAA,UAA4D,UAAwC,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAE9G,KAAA,oBAA6C,OAAgB,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,oBAAA,C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OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"rt-tools-ui-kit-v2-input.mjs","names":[],"sources":["../../../projects/ui-kit-v2/src/lib/components/input/rt-input.component.ts","../../../projects/ui-kit-v2/src/lib/components/input/rt-input.component.html"],"sourcesContent":["import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n InputSignal,\n InputSignalWithTransform,\n OutputEmitterRef,\n Signal,\n ViewEncapsulation,\n WritableSignal,\n} from '@angular/core';\n\nimport { BlockDirective, ElemDirective, ModDirective } from '@rt-tools/core';\n\nimport { RT_KIT_LABELS, TRtKitLabelMap } from '@rt-tools/ui-kit-v2/core';\nimport { rtMaxlength, rtNotchWidth, RtFormControlBase } from '@rt-tools/ui-kit-v2/form-control';\nimport { IRtIcon } from '@rt-tools/ui-kit-v2/core';\nimport { RtIconComponent } from '@rt-tools/ui-kit-v2/icon';\nimport { RtIconButtonComponent } from '@rt-tools/ui-kit-v2/icon-button';\nimport { RtRadiusDirective } from '@rt-tools/ui-kit-v2/radius';\nimport { IRtInput } from '@rt-tools/ui-kit-v2/core';\n\nconst BEM_BLOCK: string = 'rt-input';\n\nlet floatingLabelSeed: number = 0;\n\nfunction nextFloatingLabelId(): string {\n floatingLabelSeed += 1;\n return `rt-input-label-${floatingLabelSeed}`;\n}\n\n/**\n * Шеренный input common/ui. Поддерживает:\n * - интеграцию с Reactive Forms через общий `RtFormControlBase` (CVA-ядро,\n * авто-подсветка invalid, `clearable`);\n * - левую и правую иконочные «слоты» (`iconLeft`, `iconRight`); по `iconLeftAction` /\n * `iconRightAction` иконка становится кнопкой с подсказкой и своим выходом;\n * - подпись на рамке (`floatingLabel`): у пустого поля в покое лежит на месте подсказки, при\n * значении или фокусе поднимается на верхнюю рамку, высоту поля не меняет;\n * - встроенный password-toggle (`passwordToggle=true` + `type=\"password\"`);\n * - кнопку очистки (крестик) при наличии значения; на password-полях крестик\n * не показывается (postfix занят toggle'ом).\n *\n * Все размеры/цвета — через `--rt-input-*` semantic-токены.\n */\n@Component({\n selector: 'rt-input',\n templateUrl: './rt-input.component.html',\n styleUrls: ['./rt-input.component.scss', './rt-input-floating-label.scss', './rt-input-icons.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [\n // standalone components / directives\n RtIconButtonComponent,\n RtIconComponent,\n BlockDirective,\n ElemDirective,\n ModDirective,\n ],\n providers: [\n // Алиас базового токена — чтобы rt-field мог найти контрол через\n // contentChild(RtFormControlBase) (query по абстрактному классу).\n { provide: RtFormControlBase, useExisting: forwardRef(() => RtInputComponent) },\n ],\n hostDirectives: [{ directive: RtRadiusDirective, inputs: ['radius'] }],\n host: {\n class: BEM_BLOCK,\n '[class.rt-input--disabled]': 'isDisabled()',\n '[class.rt-input--invalid]': 'isInvalid()',\n '[class.rt-input--readonly]': 'isReadonly()',\n '[class.rt-input--borderless]': '!bordered()',\n '[class.rt-input--appearance--fill]': \"appearance() === 'fill'\",\n '[class.rt-input--appearance--pill]': \"appearance() === 'pill'\",\n '[class.rt-input--size--sm]': \"size() === 'sm'\",\n '[class.rt-input--size--lg]': \"size() === 'lg'\",\n '[class.rt-input--with-icon-left]': '!!iconLeft()',\n '[class.rt-input--with-icon-right]': 'hasIconRight()',\n '[class.rt-input--floating]': '!!floatingLabel()',\n '[class.rt-input--clearable]': 'clearable()',\n '[style.--rt-input-notch-width]': \"notchWidth() + 'px'\",\n '[class.rt-input--filled]': 'hasValue()',\n '(mousedown)': 'onHostMousedown($event)',\n },\n})\nexport class RtInputComponent extends RtFormControlBase<string> {\n protected readonly t: Signal<TRtKitLabelMap> = inject(RT_KIT_LABELS);\n\n protected readonly fieldEl: Signal<ElementRef<HTMLInputElement> | undefined> = viewChild<ElementRef<HTMLInputElement>>('fieldEl');\n\n /** Подпись на рамке: по её ширине материальный набор вырезает разрыв в рамке. `#`-поле `viewChild` не принимает. */\n protected readonly floatingLabelEl: Signal<ElementRef<HTMLElement> | undefined> = viewChild<ElementRef<HTMLElement>>('floatingLabelEl');\n\n /** Ширина подписи на рамке, px. */\n protected readonly notchWidth: Signal<number> = rtNotchWidth(this.floatingLabelEl);\n\n protected readonly isPasswordVisible: WritableSignal<boolean> = signal<boolean>(false);\n\n protected readonly hasValue: Signal<boolean> = computed((): boolean => this.value() !== '');\n\n /** Id подписи на рамке: на него ссылается `aria-labelledby` поля. */\n protected readonly floatingLabelId: string = nextFloatingLabelId();\n\n /** Подпись на рамке называет поле, только когда явного `ariaLabel` нет. */\n protected readonly labelledBy: Signal<string | null> = computed((): string | null =>\n this.floatingLabel() && !this.ariaLabel() ? this.floatingLabelId : null\n );\n\n protected readonly effectiveType: Signal<string> = computed((): string => {\n const t: IRtInput.Type = this.type();\n if (t === 'password' && this.passwordToggle() && this.isPasswordVisible()) {\n return 'text';\n }\n return t;\n });\n\n protected readonly showPasswordToggle: Signal<boolean> = computed((): boolean => this.passwordToggle() && this.type() === 'password');\n\n protected readonly hasIconRight: Signal<boolean> = computed((): boolean => !!this.iconRight() || this.showPasswordToggle());\n\n /** Иконка-кнопка отключена вместе с полем или своим входом. */\n protected readonly isIconLeftDisabled: Signal<boolean> = computed((): boolean => this.isDisabled() || this.iconLeftDisabled());\n protected readonly isIconRightDisabled: Signal<boolean> = computed((): boolean => this.isDisabled() || this.iconRightDisabled());\n\n protected readonly passwordToggleIcon: Signal<IRtIcon.Name> = computed((): IRtIcon.Name =>\n this.isPasswordVisible() ? 'ico-eyeClose' : 'ico-eye'\n );\n\n /** Вид рамки: `outline` — рамка со всех сторон, `fill` — залитое поле с чертой снизу. */\n public override readonly fieldLabelInside: boolean = true;\n public readonly appearance: InputSignal<IRtInput.Appearance> = input<IRtInput.Appearance>('outline');\n\n public readonly displayText: Signal<string> = computed((): string => this.value());\n\n public readonly type: InputSignal<IRtInput.Type> = input<IRtInput.Type>('text');\n public readonly placeholder: InputSignal<string> = input<string>('');\n public readonly iconLeft: InputSignal<IRtIcon.Name | null> = input<IRtIcon.Name | null>(null);\n public readonly iconRight: InputSignal<IRtIcon.Name | null> = input<IRtIcon.Name | null>(null);\n public readonly passwordToggle: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n public readonly autocomplete: InputSignal<string | null> = input<string | null>(null);\n\n /**\n * Предел длины значения: уходит атрибутом `maxlength` на поле, и браузер не даёт набрать лишний\n * знак. `null` — предела нет. Проверку формы вход не заменяет: значение, записанное кодом,\n * браузер не режет.\n */\n public readonly maxlength: InputSignalWithTransform<number | null, NumberInput> = input<number | null, NumberInput>(null, {\n transform: rtMaxlength,\n });\n\n /** Видимая подпись на рамке поля. `null` — подписи нет, поле как прежде. */\n public readonly floatingLabel: InputSignal<string | null> = input<string | null>(null);\n\n /** Левая иконка — кнопка: Tab, Enter, Space, нажатие уходит в `iconLeftClick`. */\n public readonly iconLeftAction: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n /**\n * Правая иконка — кнопка, нажатие уходит в `iconRightClick`. На поле пароля с переключателем\n * показа не действует: место занято переключателем.\n */\n public readonly iconRightAction: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n /**\n * Левая иконка-кнопка отключена, хотя поле доступно: например, поиск, который не ищет, пока\n * введено меньше трёх знаков. Подсказка у отключённой кнопки остаётся и объясняет почему.\n */\n public readonly iconLeftDisabled: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n /** Правая иконка-кнопка отключена, хотя поле доступно. */\n public readonly iconRightDisabled: InputSignalWithTransform<boolean, BooleanInput> = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n });\n\n /** Подсказка левой иконки-кнопки; она же её доступное имя. Без неё имя — имя иконки. */\n public readonly iconLeftTooltip: InputSignal<string | null> = input<string | null>(null);\n\n /** Подсказка правой иконки-кнопки; она же её доступное имя. */\n public readonly iconRightTooltip: InputSignal<string | null> = input<string | null>(null);\n\n /** Нажатие левой иконки-кнопки — мышью или клавишей (браузер шлёт click и на Enter/Space). */\n public readonly iconLeftClick: OutputEmitterRef<MouseEvent> = output<MouseEvent>();\n\n /** Нажатие правой иконки-кнопки. */\n public readonly iconRightClick: OutputEmitterRef<MouseEvent> = output<MouseEvent>();\n\n /**\n * Форма может вернуть полю прежнее значение в том же стеке, что и ввод: сигнал тогда равен\n * последнему отрисованному, привязка `[value]` не срабатывает, и поле остаётся с набранным.\n * Поэтому расхождение с полем пишется в него сразу.\n */\n public override writeValue(value: string | null): void {\n super.writeValue(value);\n const field: HTMLInputElement | undefined = this.fieldEl()?.nativeElement;\n if (field && field.value !== this.value()) {\n field.value = this.value();\n }\n }\n\n protected getEmptyValue(): string {\n return '';\n }\n\n protected focusAfterClear(): void {\n this.fieldEl()?.nativeElement.focus();\n }\n\n /**\n * Падинг/гэп рамки принадлежат host-контейнеру, а не `<input>`, поэтому клик\n * по этой зоне сам по себе не фокусирует поле. Перехватываем mousedown и\n * переводим фокус в input — но только если клик не пришёлся на само поле\n * (там нужно нативное позиционирование курсора) и не на интерактивный\n * постфикс (крестик/таггл со своими обработчиками).\n */\n protected onHostMousedown(event: MouseEvent): void {\n if (this.isDisabled()) {\n return;\n }\n const field: HTMLInputElement | undefined = this.fieldEl()?.nativeElement;\n const target: HTMLElement = event.target as HTMLElement;\n if (!field || target === field || target.closest('button, rt-icon-button')) {\n return;\n }\n event.preventDefault();\n field.focus();\n }\n\n protected onInput(event: Event): void {\n const target: HTMLInputElement = event.target as HTMLInputElement;\n const next: string = target.value;\n this.value.set(next);\n this.emitChange(next);\n }\n\n protected onBlur(): void {\n this.markTouched();\n }\n\n protected togglePassword(): void {\n this.isPasswordVisible.update((v: boolean): boolean => !v);\n }\n}\n","<ng-container rtBlock=\"rt-input\">\n @if (isReadonly()) {\n <span rtElem=\"readonly\" qa-dataid=\"input-readonly\" [rtMod]=\"{ empty: !displayText() }\">{{ displayText() || '—' }}</span>\n } @else {\n @if (iconLeft(); as left) {\n @if (iconLeftAction()) {\n <rt-icon-button\n rtElem=\"icon-left\"\n qa-dataid=\"input-icon-left-action\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [icon]=\"left\"\n [ariaLabel]=\"iconLeftTooltip() || left\"\n [tooltip]=\"iconLeftTooltip() ?? ''\"\n [disabled]=\"isIconLeftDisabled()\"\n (clicked)=\"iconLeftClick.emit($event)\" />\n } @else {\n <rt-icon rtElem=\"icon-left\" size=\"sm\" color=\"muted\" [name]=\"left\" />\n }\n }\n @if (floatingLabel(); as label) {\n <!-- Подпись — картинка поверх поля: клик проходит сквозь неё в поле, имя полю она даёт по aria-labelledby. -->\n <span #floatingLabelEl rtElem=\"floating-label\" qa-dataid=\"input-floating-label\" aria-hidden=\"true\" [id]=\"floatingLabelId\">\n {{ label }}\n </span>\n }\n <input\n #fieldEl\n rtElem=\"field\"\n qa-dataid=\"input-control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n [disabled]=\"isDisabled()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.id]=\"effectiveControlId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\" />\n @if (showClearButton() && !showPasswordToggle()) {\n <rt-icon-button\n rtElem=\"clear\"\n qa-dataid=\"input-clear\"\n icon=\"ico-close\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [ariaLabel]=\"t().uiClear\"\n [tabIndex]=\"clearTabIndex()\"\n (clicked)=\"clear($event)\" />\n }\n @if (showPasswordToggle()) {\n <button\n rtElem=\"toggle\"\n qa-dataid=\"input-password-toggle\"\n type=\"button\"\n [attr.aria-label]=\"isPasswordVisible() ? t().uiHidePassword : t().uiShowPassword\"\n [tabIndex]=\"-1\"\n (click)=\"togglePassword()\">\n <rt-icon size=\"sm\" color=\"muted\" [name]=\"passwordToggleIcon()\" />\n </button>\n } @else if (iconRight(); as right) {\n @if (iconRightAction()) {\n <rt-icon-button\n rtElem=\"icon-right\"\n qa-dataid=\"input-icon-right-action\"\n size=\"sm\"\n variant=\"ghost\"\n iconColor=\"muted\"\n [icon]=\"right\"\n [ariaLabel]=\"iconRightTooltip() || right\"\n [tooltip]=\"iconRightTooltip() ?? ''\"\n [disabled]=\"isIconRightDisabled()\"\n (clicked)=\"iconRightClick.emit($event)\" />\n } @else {\n <rt-icon rtElem=\"icon-right\" size=\"sm\" color=\"muted\" [name]=\"right\" />\n }\n }\n }\n</ng-container>\n"],"mappings":";;;;;;;;;AA+BA,MAAM,YAAoB;AAE1B,IAAI,oBAA4B;AAEhC,SAAS,sBAAmB;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