@tectra-ng/ui 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +26 -2
- package/amount/README.md +28 -0
- package/autocomplete/README.md +82 -0
- package/avatar/README.md +43 -0
- package/badge/README.md +19 -0
- package/button/README.md +46 -0
- package/button-group/README.md +8 -0
- package/card/README.md +30 -0
- package/cascade-select/README.md +49 -0
- package/checkbox/README.md +64 -0
- package/chip/README.md +38 -0
- package/chips-input/README.md +47 -0
- package/color-picker/README.md +43 -0
- package/confirm/README.md +46 -0
- package/country/README.md +23 -0
- package/country-select/README.md +39 -0
- package/dialog/README.md +84 -0
- package/divider/README.md +24 -0
- package/drawer/README.md +54 -0
- package/email-suggestion/README.md +20 -0
- package/fesm2022/tectra-ng-ui-amount.mjs +415 -0
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +730 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-avatar.mjs +670 -0
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-badge.mjs +191 -0
- package/fesm2022/tectra-ng-ui-badge.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-button-group.mjs +50 -0
- package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-button.mjs +725 -0
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-card.mjs +210 -0
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +887 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-checkbox.mjs +1150 -0
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-chip.mjs +344 -0
- package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-chips-input.mjs +649 -0
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-color-picker.mjs +828 -0
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-confirm.mjs +489 -0
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-country-select.mjs +545 -0
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-country.mjs +313 -0
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs +1539 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-divider.mjs +194 -0
- package/fesm2022/tectra-ng-ui-divider.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-drawer.mjs +540 -0
- package/fesm2022/tectra-ng-ui-drawer.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs +341 -0
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs +492 -0
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs +258 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-highlight-text.mjs +246 -0
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs +478 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +113 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-mask.mjs +413 -0
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-number.mjs +1045 -0
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-otp.mjs +553 -0
- package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input.mjs +260 -0
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-key-filter.mjs +185 -0
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-knob.mjs +630 -0
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-label.mjs +271 -0
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-link.mjs +699 -0
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-listbox.mjs +484 -0
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +717 -0
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-menu.mjs +1484 -0
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-message.mjs +975 -0
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +569 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs +345 -0
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-paginator.mjs +849 -0
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-panel.mjs +317 -0
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-password-generator.mjs +292 -0
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-password.mjs +871 -0
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-pill.mjs +361 -0
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-popover.mjs +742 -0
- package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-progress-bar.mjs +440 -0
- package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs +265 -0
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-radio-button.mjs +817 -0
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-rating.mjs +584 -0
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2478 -0
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-skeleton.mjs +548 -0
- package/fesm2022/tectra-ng-ui-skeleton.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-slider.mjs +630 -0
- package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +669 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-split-button.mjs +614 -0
- package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-status-icon.mjs +295 -0
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +5997 -0
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tag.mjs +422 -0
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +482 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toast.mjs +668 -0
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +416 -0
- package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +560 -0
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tooltip.mjs +835 -0
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +986 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui.mjs +4 -0
- package/fesm2022/tectra-ng-ui.mjs.map +1 -0
- package/field/README.md +43 -0
- package/fieldset/README.md +36 -0
- package/highlight-text/README.md +20 -0
- package/icon-field/README.md +30 -0
- package/input/README.md +22 -0
- package/input-group/README.md +21 -0
- package/input-mask/README.md +30 -0
- package/input-number/README.md +61 -0
- package/input-otp/README.md +44 -0
- package/key-filter/README.md +31 -0
- package/knob/README.md +50 -0
- package/label/README.md +29 -0
- package/link/README.md +47 -0
- package/listbox/README.md +68 -0
- package/mention-textarea/README.md +47 -0
- package/menu/README.md +65 -0
- package/message/README.md +58 -0
- package/multiselect/README.md +85 -0
- package/overlay-badge/README.md +30 -0
- package/package.json +301 -3
- package/paginator/README.md +60 -0
- package/panel/README.md +45 -0
- package/password/README.md +60 -0
- package/password-generator/README.md +34 -0
- package/pill/README.md +42 -0
- package/popover/README.md +67 -0
- package/progress-bar/README.md +32 -0
- package/progress-spinner/README.md +22 -0
- package/radio-button/README.md +54 -0
- package/rating/README.md +49 -0
- package/select/README.md +78 -0
- package/skeleton/README.md +27 -0
- package/slider/README.md +48 -0
- package/speed-dial/README.md +49 -0
- package/split-button/README.md +45 -0
- package/status-icon/README.md +22 -0
- package/table/README.md +178 -0
- package/tag/README.md +42 -0
- package/textarea/README.md +37 -0
- package/toast/README.md +52 -0
- package/toggle-button/README.md +34 -0
- package/toggle-switch/README.md +49 -0
- package/tooltip/README.md +60 -0
- package/tree-select/README.md +49 -0
- package/types/tectra-ng-ui-amount.d.ts +135 -0
- package/types/tectra-ng-ui-amount.d.ts.map +1 -0
- package/types/tectra-ng-ui-autocomplete.d.ts +250 -0
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -0
- package/types/tectra-ng-ui-avatar.d.ts +289 -0
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -0
- package/types/tectra-ng-ui-badge.d.ts +119 -0
- package/types/tectra-ng-ui-badge.d.ts.map +1 -0
- package/types/tectra-ng-ui-button-group.d.ts +6 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -0
- package/types/tectra-ng-ui-button.d.ts +466 -0
- package/types/tectra-ng-ui-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-card.d.ts +71 -0
- package/types/tectra-ng-ui-card.d.ts.map +1 -0
- package/types/tectra-ng-ui-cascade-select.d.ts +244 -0
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-checkbox.d.ts +450 -0
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -0
- package/types/tectra-ng-ui-chip.d.ts +106 -0
- package/types/tectra-ng-ui-chip.d.ts.map +1 -0
- package/types/tectra-ng-ui-chips-input.d.ts +187 -0
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -0
- package/types/tectra-ng-ui-color-picker.d.ts +237 -0
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -0
- package/types/tectra-ng-ui-confirm.d.ts +80 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -0
- package/types/tectra-ng-ui-country-select.d.ts +235 -0
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-country.d.ts +105 -0
- package/types/tectra-ng-ui-country.d.ts.map +1 -0
- package/types/tectra-ng-ui-dialog.d.ts +453 -0
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -0
- package/types/tectra-ng-ui-divider.d.ts +70 -0
- package/types/tectra-ng-ui-divider.d.ts.map +1 -0
- package/types/tectra-ng-ui-drawer.d.ts +188 -0
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -0
- package/types/tectra-ng-ui-email-suggestion.d.ts +84 -0
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -0
- package/types/tectra-ng-ui-field.d.ts +139 -0
- package/types/tectra-ng-ui-field.d.ts.map +1 -0
- package/types/tectra-ng-ui-fieldset.d.ts +74 -0
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -0
- package/types/tectra-ng-ui-highlight-text.d.ts +75 -0
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -0
- package/types/tectra-ng-ui-icon-field.d.ts +77 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-group.d.ts +18 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-mask.d.ts +91 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-number.d.ts +326 -0
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-otp.d.ts +173 -0
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -0
- package/types/tectra-ng-ui-input.d.ts +113 -0
- package/types/tectra-ng-ui-input.d.ts.map +1 -0
- package/types/tectra-ng-ui-key-filter.d.ts +43 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -0
- package/types/tectra-ng-ui-knob.d.ts +207 -0
- package/types/tectra-ng-ui-knob.d.ts.map +1 -0
- package/types/tectra-ng-ui-label.d.ts +53 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -0
- package/types/tectra-ng-ui-link.d.ts +223 -0
- package/types/tectra-ng-ui-link.d.ts.map +1 -0
- package/types/tectra-ng-ui-listbox.d.ts +131 -0
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts +169 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -0
- package/types/tectra-ng-ui-menu.d.ts +512 -0
- package/types/tectra-ng-ui-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-message.d.ts +390 -0
- package/types/tectra-ng-ui-message.d.ts.map +1 -0
- package/types/tectra-ng-ui-multiselect.d.ts +216 -0
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -0
- package/types/tectra-ng-ui-overlay-badge.d.ts +104 -0
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -0
- package/types/tectra-ng-ui-paginator.d.ts +293 -0
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel.d.ts +133 -0
- package/types/tectra-ng-ui-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-password-generator.d.ts +80 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -0
- package/types/tectra-ng-ui-password.d.ts +271 -0
- package/types/tectra-ng-ui-password.d.ts.map +1 -0
- package/types/tectra-ng-ui-pill.d.ts +167 -0
- package/types/tectra-ng-ui-pill.d.ts.map +1 -0
- package/types/tectra-ng-ui-popover.d.ts +244 -0
- package/types/tectra-ng-ui-popover.d.ts.map +1 -0
- package/types/tectra-ng-ui-progress-bar.d.ts +151 -0
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -0
- package/types/tectra-ng-ui-progress-spinner.d.ts +95 -0
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -0
- package/types/tectra-ng-ui-radio-button.d.ts +380 -0
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-rating.d.ts +195 -0
- package/types/tectra-ng-ui-rating.d.ts.map +1 -0
- package/types/tectra-ng-ui-select.d.ts +761 -0
- package/types/tectra-ng-ui-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-skeleton.d.ts +182 -0
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -0
- package/types/tectra-ng-ui-slider.d.ts +220 -0
- package/types/tectra-ng-ui-slider.d.ts.map +1 -0
- package/types/tectra-ng-ui-speed-dial.d.ts +175 -0
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -0
- package/types/tectra-ng-ui-split-button.d.ts +139 -0
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-status-icon.d.ts +105 -0
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +1301 -0
- package/types/tectra-ng-ui-table.d.ts.map +1 -0
- package/types/tectra-ng-ui-tag.d.ts +157 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +146 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -0
- package/types/tectra-ng-ui-toast.d.ts +268 -0
- package/types/tectra-ng-ui-toast.d.ts.map +1 -0
- package/types/tectra-ng-ui-toggle-button.d.ts +184 -0
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts +226 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -0
- package/types/tectra-ng-ui-tooltip.d.ts +275 -0
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-select.d.ts +339 -0
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -0
- package/types/tectra-ng-ui.d.ts +2 -0
- package/types/tectra-ng-ui.d.ts.map +1 -0
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, afterEveryRender, booleanAttribute, computed, contentChild, inject, input, signal } from "@angular/core";
|
|
3
|
+
import { NgControl } from "@angular/forms";
|
|
4
|
+
import { linkDescribedBy, uniqueId } from "@tectra-ng/core/a11y";
|
|
5
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
6
|
+
import { TX_FIELD_STATE } from "@tectra-ng/core/forms";
|
|
7
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
8
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
9
|
+
import { TxLabel } from "@tectra-ng/ui/label";
|
|
10
|
+
import { TxFieldError, TxFieldHint } from "@tectra-ng/ui/message";
|
|
11
|
+
const CONTROL_SELECTOR = [
|
|
12
|
+
"input:not([type=\"hidden\"])",
|
|
13
|
+
"textarea",
|
|
14
|
+
"select",
|
|
15
|
+
"[role=\"combobox\"]",
|
|
16
|
+
"[role=\"switch\"]",
|
|
17
|
+
"[role=\"checkbox\"]",
|
|
18
|
+
"[role=\"slider\"]",
|
|
19
|
+
"[role=\"spinbutton\"]",
|
|
20
|
+
"[contenteditable=\"true\"]"
|
|
21
|
+
].join(", ");
|
|
22
|
+
var TxField = class TxField {
|
|
23
|
+
elementRef = inject(ElementRef);
|
|
24
|
+
generatedId = uniqueId("tx-field");
|
|
25
|
+
linkedElement = null;
|
|
26
|
+
linkedKey = "";
|
|
27
|
+
unlinks = [];
|
|
28
|
+
label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
29
|
+
required = input(false, {
|
|
30
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
31
|
+
transform: booleanAttribute
|
|
32
|
+
});
|
|
33
|
+
colon = input(false, {
|
|
34
|
+
...ngDevMode ? { debugName: "colon" } : /* istanbul ignore next */ {},
|
|
35
|
+
transform: booleanAttribute
|
|
36
|
+
});
|
|
37
|
+
subtle = input(false, {
|
|
38
|
+
...ngDevMode ? { debugName: "subtle" } : /* istanbul ignore next */ {},
|
|
39
|
+
transform: booleanAttribute
|
|
40
|
+
});
|
|
41
|
+
tooltip = input(void 0, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
42
|
+
hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
43
|
+
control = input(void 0, ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
44
|
+
errorText = input(void 0, ...ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []);
|
|
45
|
+
successText = input(void 0, ...ngDevMode ? [{ debugName: "successText" }] : /* istanbul ignore next */ []);
|
|
46
|
+
messages = input(void 0, ...ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []);
|
|
47
|
+
showImmediately = input(false, {
|
|
48
|
+
...ngDevMode ? { debugName: "showImmediately" } : /* istanbul ignore next */ {},
|
|
49
|
+
transform: booleanAttribute
|
|
50
|
+
});
|
|
51
|
+
layout = input("vertical", ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
52
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
53
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
54
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
55
|
+
unstyled = input(void 0, {
|
|
56
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
57
|
+
transform: optionalBoolean
|
|
58
|
+
});
|
|
59
|
+
projectedControl = contentChild(NgControl, {
|
|
60
|
+
...ngDevMode ? { debugName: "projectedControl" } : /* istanbul ignore next */ {},
|
|
61
|
+
descendants: true
|
|
62
|
+
});
|
|
63
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
64
|
+
passThrough = injectPassThrough("field", this, this.pt, this.ptOptions);
|
|
65
|
+
labelId = `${this.generatedId}-label`;
|
|
66
|
+
hintId = `${this.generatedId}-hint`;
|
|
67
|
+
errorId = `${this.generatedId}-error`;
|
|
68
|
+
controlId = signal(null, ...ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []);
|
|
69
|
+
formControl = computed(() => this.control() ?? this.projectedControl()?.control ?? void 0, ...ngDevMode ? [{ debugName: "formControl" }] : /* istanbul ignore next */ []);
|
|
70
|
+
state = { invalid: computed(() => !!this.errorText()) };
|
|
71
|
+
hostStyle = computed(() => ({
|
|
72
|
+
...toStyleObject(this.dt(), "--tx-field"),
|
|
73
|
+
...this.passThrough().root?.style
|
|
74
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
75
|
+
constructor() {
|
|
76
|
+
afterEveryRender(() => this.linkControl());
|
|
77
|
+
inject(DestroyRef).onDestroy(() => this.unlink());
|
|
78
|
+
}
|
|
79
|
+
linkControl() {
|
|
80
|
+
const host = this.elementRef.nativeElement;
|
|
81
|
+
const group = host.querySelector(".tx-field__control :is([role=\"radiogroup\"], [role=\"group\"], [role=\"listbox\"])");
|
|
82
|
+
const element = group ?? host.querySelector(`.tx-field__control :is(${CONTROL_SELECTOR})`);
|
|
83
|
+
const describedBy = [host.querySelector(`#${this.hintId}`) ? this.hintId : null, this.errorId].filter((id) => !!id);
|
|
84
|
+
const key = `${describedBy.join(" ")}|${this.label() ? "label" : ""}`;
|
|
85
|
+
if (element === this.linkedElement && key === this.linkedKey) return;
|
|
86
|
+
this.unlink();
|
|
87
|
+
this.linkedElement = element;
|
|
88
|
+
this.linkedKey = key;
|
|
89
|
+
if (!element) {
|
|
90
|
+
this.controlId.set(null);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
this.unlinks = describedBy.map((id) => linkDescribedBy(element, id));
|
|
94
|
+
if (group || !isLabelable(element)) {
|
|
95
|
+
if (this.label() && !element.hasAttribute("aria-labelledby") && !element.hasAttribute("aria-label")) {
|
|
96
|
+
element.setAttribute("aria-labelledby", this.labelId);
|
|
97
|
+
this.unlinks.push(() => element.removeAttribute("aria-labelledby"));
|
|
98
|
+
}
|
|
99
|
+
this.controlId.set(null);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (!element.id) element.id = `${this.generatedId}-control`;
|
|
103
|
+
this.controlId.set(element.id);
|
|
104
|
+
}
|
|
105
|
+
unlink() {
|
|
106
|
+
this.unlinks.forEach((unlink) => unlink());
|
|
107
|
+
this.unlinks = [];
|
|
108
|
+
}
|
|
109
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
110
|
+
minVersion: "12.0.0",
|
|
111
|
+
version: "22.2.3",
|
|
112
|
+
ngImport: i0,
|
|
113
|
+
type: TxField,
|
|
114
|
+
deps: [],
|
|
115
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
116
|
+
});
|
|
117
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
118
|
+
minVersion: "17.0.0",
|
|
119
|
+
version: "22.2.3",
|
|
120
|
+
type: TxField,
|
|
121
|
+
isStandalone: true,
|
|
122
|
+
selector: "tx-field",
|
|
123
|
+
inputs: {
|
|
124
|
+
label: {
|
|
125
|
+
classPropertyName: "label",
|
|
126
|
+
publicName: "label",
|
|
127
|
+
isSignal: true,
|
|
128
|
+
isRequired: false,
|
|
129
|
+
transformFunction: null
|
|
130
|
+
},
|
|
131
|
+
required: {
|
|
132
|
+
classPropertyName: "required",
|
|
133
|
+
publicName: "required",
|
|
134
|
+
isSignal: true,
|
|
135
|
+
isRequired: false,
|
|
136
|
+
transformFunction: null
|
|
137
|
+
},
|
|
138
|
+
colon: {
|
|
139
|
+
classPropertyName: "colon",
|
|
140
|
+
publicName: "colon",
|
|
141
|
+
isSignal: true,
|
|
142
|
+
isRequired: false,
|
|
143
|
+
transformFunction: null
|
|
144
|
+
},
|
|
145
|
+
subtle: {
|
|
146
|
+
classPropertyName: "subtle",
|
|
147
|
+
publicName: "subtle",
|
|
148
|
+
isSignal: true,
|
|
149
|
+
isRequired: false,
|
|
150
|
+
transformFunction: null
|
|
151
|
+
},
|
|
152
|
+
tooltip: {
|
|
153
|
+
classPropertyName: "tooltip",
|
|
154
|
+
publicName: "tooltip",
|
|
155
|
+
isSignal: true,
|
|
156
|
+
isRequired: false,
|
|
157
|
+
transformFunction: null
|
|
158
|
+
},
|
|
159
|
+
hint: {
|
|
160
|
+
classPropertyName: "hint",
|
|
161
|
+
publicName: "hint",
|
|
162
|
+
isSignal: true,
|
|
163
|
+
isRequired: false,
|
|
164
|
+
transformFunction: null
|
|
165
|
+
},
|
|
166
|
+
control: {
|
|
167
|
+
classPropertyName: "control",
|
|
168
|
+
publicName: "control",
|
|
169
|
+
isSignal: true,
|
|
170
|
+
isRequired: false,
|
|
171
|
+
transformFunction: null
|
|
172
|
+
},
|
|
173
|
+
errorText: {
|
|
174
|
+
classPropertyName: "errorText",
|
|
175
|
+
publicName: "errorText",
|
|
176
|
+
isSignal: true,
|
|
177
|
+
isRequired: false,
|
|
178
|
+
transformFunction: null
|
|
179
|
+
},
|
|
180
|
+
successText: {
|
|
181
|
+
classPropertyName: "successText",
|
|
182
|
+
publicName: "successText",
|
|
183
|
+
isSignal: true,
|
|
184
|
+
isRequired: false,
|
|
185
|
+
transformFunction: null
|
|
186
|
+
},
|
|
187
|
+
messages: {
|
|
188
|
+
classPropertyName: "messages",
|
|
189
|
+
publicName: "messages",
|
|
190
|
+
isSignal: true,
|
|
191
|
+
isRequired: false,
|
|
192
|
+
transformFunction: null
|
|
193
|
+
},
|
|
194
|
+
showImmediately: {
|
|
195
|
+
classPropertyName: "showImmediately",
|
|
196
|
+
publicName: "showImmediately",
|
|
197
|
+
isSignal: true,
|
|
198
|
+
isRequired: false,
|
|
199
|
+
transformFunction: null
|
|
200
|
+
},
|
|
201
|
+
layout: {
|
|
202
|
+
classPropertyName: "layout",
|
|
203
|
+
publicName: "layout",
|
|
204
|
+
isSignal: true,
|
|
205
|
+
isRequired: false,
|
|
206
|
+
transformFunction: null
|
|
207
|
+
},
|
|
208
|
+
dt: {
|
|
209
|
+
classPropertyName: "dt",
|
|
210
|
+
publicName: "dt",
|
|
211
|
+
isSignal: true,
|
|
212
|
+
isRequired: false,
|
|
213
|
+
transformFunction: null
|
|
214
|
+
},
|
|
215
|
+
pt: {
|
|
216
|
+
classPropertyName: "pt",
|
|
217
|
+
publicName: "pt",
|
|
218
|
+
isSignal: true,
|
|
219
|
+
isRequired: false,
|
|
220
|
+
transformFunction: null
|
|
221
|
+
},
|
|
222
|
+
ptOptions: {
|
|
223
|
+
classPropertyName: "ptOptions",
|
|
224
|
+
publicName: "ptOptions",
|
|
225
|
+
isSignal: true,
|
|
226
|
+
isRequired: false,
|
|
227
|
+
transformFunction: null
|
|
228
|
+
},
|
|
229
|
+
unstyled: {
|
|
230
|
+
classPropertyName: "unstyled",
|
|
231
|
+
publicName: "unstyled",
|
|
232
|
+
isSignal: true,
|
|
233
|
+
isRequired: false,
|
|
234
|
+
transformFunction: null
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
host: {
|
|
238
|
+
properties: {
|
|
239
|
+
"class": "passThrough().root?.class",
|
|
240
|
+
"style": "hostStyle()",
|
|
241
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
242
|
+
"attr.data-layout": "layout()"
|
|
243
|
+
},
|
|
244
|
+
classAttribute: "tx-field"
|
|
245
|
+
},
|
|
246
|
+
providers: [{
|
|
247
|
+
provide: TX_FIELD_STATE,
|
|
248
|
+
useFactory: () => inject(TxField).state
|
|
249
|
+
}],
|
|
250
|
+
queries: [{
|
|
251
|
+
propertyName: "projectedControl",
|
|
252
|
+
first: true,
|
|
253
|
+
predicate: NgControl,
|
|
254
|
+
descendants: true,
|
|
255
|
+
isSignal: true
|
|
256
|
+
}],
|
|
257
|
+
ngImport: i0,
|
|
258
|
+
template: "@if (label()) {\n <tx-label\n class=\"tx-field__label\"\n [id]=\"labelId\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n [for]=\"controlId() ?? undefined\"\n [required]=\"required()\"\n [colon]=\"colon()\"\n [subtle]=\"subtle()\"\n [tooltip]=\"tooltip()\"\n >{{ label() }}</tx-label\n >\n}\n<div class=\"tx-field__body\">\n <div class=\"tx-field__control\" [class]=\"passThrough().control?.class\" [style]=\"passThrough().control?.style\">\n <ng-content />\n </div>\n @if (hint()) {\n <tx-field-hint [id]=\"hintId\" [class]=\"passThrough().hint?.class\" [style]=\"passThrough().hint?.style\">{{ hint() }}</tx-field-hint>\n }\n <tx-field-error\n [id]=\"errorId\"\n [class]=\"passThrough().error?.class\"\n [style]=\"passThrough().error?.style\"\n [control]=\"formControl()\"\n [errorText]=\"errorText()\"\n [successText]=\"successText()\"\n [messages]=\"messages()\"\n [showImmediately]=\"showImmediately()\"\n />\n</div>\n",
|
|
259
|
+
styles: [":host{display:block}:host([data-styled]){display:grid;gap:var(--tx-field-gap);min-width:0}:host([data-styled][data-layout=horizontal]){grid-template-columns:var(--tx-field-label-width, var(--tx-field-horizontal-label-width)) minmax(0,1fr);align-items:start;column-gap:var(--tx-field-horizontal-column-gap)}:host([data-styled][data-layout=horizontal]) .tx-field__label{margin-bottom:0;padding-top:var(--tx-field-horizontal-label-padding-top)}:host([data-styled][data-layout=horizontal]) .tx-field__body{grid-column:2}.tx-field__body{min-width:0}@media(width<40rem){:host([data-styled][data-layout=horizontal]){grid-template-columns:minmax(0,1fr)}:host([data-styled][data-layout=horizontal]) .tx-field__label{margin-bottom:var(--tx-label-margin-bottom);padding-top:0}:host([data-styled][data-layout=horizontal]) .tx-field__body{grid-column:1}}\n"],
|
|
260
|
+
dependencies: [
|
|
261
|
+
{
|
|
262
|
+
kind: "component",
|
|
263
|
+
type: TxLabel,
|
|
264
|
+
selector: "tx-label",
|
|
265
|
+
inputs: [
|
|
266
|
+
"for",
|
|
267
|
+
"required",
|
|
268
|
+
"colon",
|
|
269
|
+
"subtle",
|
|
270
|
+
"tooltip"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
kind: "component",
|
|
275
|
+
type: TxFieldHint,
|
|
276
|
+
selector: "tx-field-hint",
|
|
277
|
+
inputs: [
|
|
278
|
+
"for",
|
|
279
|
+
"id",
|
|
280
|
+
"severity",
|
|
281
|
+
"icon",
|
|
282
|
+
"dt",
|
|
283
|
+
"pt",
|
|
284
|
+
"ptOptions",
|
|
285
|
+
"unstyled"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
kind: "component",
|
|
290
|
+
type: TxFieldError,
|
|
291
|
+
selector: "tx-field-error",
|
|
292
|
+
inputs: [
|
|
293
|
+
"control",
|
|
294
|
+
"errorText",
|
|
295
|
+
"showImmediately",
|
|
296
|
+
"successText",
|
|
297
|
+
"messages",
|
|
298
|
+
"for",
|
|
299
|
+
"id",
|
|
300
|
+
"dt",
|
|
301
|
+
"pt",
|
|
302
|
+
"ptOptions",
|
|
303
|
+
"unstyled"
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
311
|
+
minVersion: "12.0.0",
|
|
312
|
+
version: "22.2.3",
|
|
313
|
+
ngImport: i0,
|
|
314
|
+
type: TxField,
|
|
315
|
+
decorators: [{
|
|
316
|
+
type: Component,
|
|
317
|
+
args: [{
|
|
318
|
+
selector: "tx-field",
|
|
319
|
+
imports: [
|
|
320
|
+
TxLabel,
|
|
321
|
+
TxFieldHint,
|
|
322
|
+
TxFieldError
|
|
323
|
+
],
|
|
324
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
325
|
+
providers: [{
|
|
326
|
+
provide: TX_FIELD_STATE,
|
|
327
|
+
useFactory: () => inject(TxField).state
|
|
328
|
+
}],
|
|
329
|
+
host: {
|
|
330
|
+
class: "tx-field",
|
|
331
|
+
"[class]": "passThrough().root?.class",
|
|
332
|
+
"[style]": "hostStyle()",
|
|
333
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
334
|
+
"[attr.data-layout]": "layout()"
|
|
335
|
+
},
|
|
336
|
+
template: "@if (label()) {\n <tx-label\n class=\"tx-field__label\"\n [id]=\"labelId\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n [for]=\"controlId() ?? undefined\"\n [required]=\"required()\"\n [colon]=\"colon()\"\n [subtle]=\"subtle()\"\n [tooltip]=\"tooltip()\"\n >{{ label() }}</tx-label\n >\n}\n<div class=\"tx-field__body\">\n <div class=\"tx-field__control\" [class]=\"passThrough().control?.class\" [style]=\"passThrough().control?.style\">\n <ng-content />\n </div>\n @if (hint()) {\n <tx-field-hint [id]=\"hintId\" [class]=\"passThrough().hint?.class\" [style]=\"passThrough().hint?.style\">{{ hint() }}</tx-field-hint>\n }\n <tx-field-error\n [id]=\"errorId\"\n [class]=\"passThrough().error?.class\"\n [style]=\"passThrough().error?.style\"\n [control]=\"formControl()\"\n [errorText]=\"errorText()\"\n [successText]=\"successText()\"\n [messages]=\"messages()\"\n [showImmediately]=\"showImmediately()\"\n />\n</div>\n",
|
|
337
|
+
styles: [":host{display:block}:host([data-styled]){display:grid;gap:var(--tx-field-gap);min-width:0}:host([data-styled][data-layout=horizontal]){grid-template-columns:var(--tx-field-label-width, var(--tx-field-horizontal-label-width)) minmax(0,1fr);align-items:start;column-gap:var(--tx-field-horizontal-column-gap)}:host([data-styled][data-layout=horizontal]) .tx-field__label{margin-bottom:0;padding-top:var(--tx-field-horizontal-label-padding-top)}:host([data-styled][data-layout=horizontal]) .tx-field__body{grid-column:2}.tx-field__body{min-width:0}@media(width<40rem){:host([data-styled][data-layout=horizontal]){grid-template-columns:minmax(0,1fr)}:host([data-styled][data-layout=horizontal]) .tx-field__label{margin-bottom:var(--tx-label-margin-bottom);padding-top:0}:host([data-styled][data-layout=horizontal]) .tx-field__body{grid-column:1}}\n"]
|
|
338
|
+
}]
|
|
339
|
+
}],
|
|
340
|
+
ctorParameters: () => [],
|
|
341
|
+
propDecorators: {
|
|
342
|
+
label: [{
|
|
343
|
+
type: i0.Input,
|
|
344
|
+
args: [{
|
|
345
|
+
isSignal: true,
|
|
346
|
+
alias: "label",
|
|
347
|
+
required: false
|
|
348
|
+
}]
|
|
349
|
+
}],
|
|
350
|
+
required: [{
|
|
351
|
+
type: i0.Input,
|
|
352
|
+
args: [{
|
|
353
|
+
isSignal: true,
|
|
354
|
+
alias: "required",
|
|
355
|
+
required: false
|
|
356
|
+
}]
|
|
357
|
+
}],
|
|
358
|
+
colon: [{
|
|
359
|
+
type: i0.Input,
|
|
360
|
+
args: [{
|
|
361
|
+
isSignal: true,
|
|
362
|
+
alias: "colon",
|
|
363
|
+
required: false
|
|
364
|
+
}]
|
|
365
|
+
}],
|
|
366
|
+
subtle: [{
|
|
367
|
+
type: i0.Input,
|
|
368
|
+
args: [{
|
|
369
|
+
isSignal: true,
|
|
370
|
+
alias: "subtle",
|
|
371
|
+
required: false
|
|
372
|
+
}]
|
|
373
|
+
}],
|
|
374
|
+
tooltip: [{
|
|
375
|
+
type: i0.Input,
|
|
376
|
+
args: [{
|
|
377
|
+
isSignal: true,
|
|
378
|
+
alias: "tooltip",
|
|
379
|
+
required: false
|
|
380
|
+
}]
|
|
381
|
+
}],
|
|
382
|
+
hint: [{
|
|
383
|
+
type: i0.Input,
|
|
384
|
+
args: [{
|
|
385
|
+
isSignal: true,
|
|
386
|
+
alias: "hint",
|
|
387
|
+
required: false
|
|
388
|
+
}]
|
|
389
|
+
}],
|
|
390
|
+
control: [{
|
|
391
|
+
type: i0.Input,
|
|
392
|
+
args: [{
|
|
393
|
+
isSignal: true,
|
|
394
|
+
alias: "control",
|
|
395
|
+
required: false
|
|
396
|
+
}]
|
|
397
|
+
}],
|
|
398
|
+
errorText: [{
|
|
399
|
+
type: i0.Input,
|
|
400
|
+
args: [{
|
|
401
|
+
isSignal: true,
|
|
402
|
+
alias: "errorText",
|
|
403
|
+
required: false
|
|
404
|
+
}]
|
|
405
|
+
}],
|
|
406
|
+
successText: [{
|
|
407
|
+
type: i0.Input,
|
|
408
|
+
args: [{
|
|
409
|
+
isSignal: true,
|
|
410
|
+
alias: "successText",
|
|
411
|
+
required: false
|
|
412
|
+
}]
|
|
413
|
+
}],
|
|
414
|
+
messages: [{
|
|
415
|
+
type: i0.Input,
|
|
416
|
+
args: [{
|
|
417
|
+
isSignal: true,
|
|
418
|
+
alias: "messages",
|
|
419
|
+
required: false
|
|
420
|
+
}]
|
|
421
|
+
}],
|
|
422
|
+
showImmediately: [{
|
|
423
|
+
type: i0.Input,
|
|
424
|
+
args: [{
|
|
425
|
+
isSignal: true,
|
|
426
|
+
alias: "showImmediately",
|
|
427
|
+
required: false
|
|
428
|
+
}]
|
|
429
|
+
}],
|
|
430
|
+
layout: [{
|
|
431
|
+
type: i0.Input,
|
|
432
|
+
args: [{
|
|
433
|
+
isSignal: true,
|
|
434
|
+
alias: "layout",
|
|
435
|
+
required: false
|
|
436
|
+
}]
|
|
437
|
+
}],
|
|
438
|
+
dt: [{
|
|
439
|
+
type: i0.Input,
|
|
440
|
+
args: [{
|
|
441
|
+
isSignal: true,
|
|
442
|
+
alias: "dt",
|
|
443
|
+
required: false
|
|
444
|
+
}]
|
|
445
|
+
}],
|
|
446
|
+
pt: [{
|
|
447
|
+
type: i0.Input,
|
|
448
|
+
args: [{
|
|
449
|
+
isSignal: true,
|
|
450
|
+
alias: "pt",
|
|
451
|
+
required: false
|
|
452
|
+
}]
|
|
453
|
+
}],
|
|
454
|
+
ptOptions: [{
|
|
455
|
+
type: i0.Input,
|
|
456
|
+
args: [{
|
|
457
|
+
isSignal: true,
|
|
458
|
+
alias: "ptOptions",
|
|
459
|
+
required: false
|
|
460
|
+
}]
|
|
461
|
+
}],
|
|
462
|
+
unstyled: [{
|
|
463
|
+
type: i0.Input,
|
|
464
|
+
args: [{
|
|
465
|
+
isSignal: true,
|
|
466
|
+
alias: "unstyled",
|
|
467
|
+
required: false
|
|
468
|
+
}]
|
|
469
|
+
}],
|
|
470
|
+
projectedControl: [{
|
|
471
|
+
type: i0.ContentChild,
|
|
472
|
+
args: [i0.forwardRef(() => NgControl), {
|
|
473
|
+
descendants: true,
|
|
474
|
+
isSignal: true
|
|
475
|
+
}]
|
|
476
|
+
}]
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
function isLabelable(element) {
|
|
480
|
+
return [
|
|
481
|
+
"INPUT",
|
|
482
|
+
"SELECT",
|
|
483
|
+
"TEXTAREA",
|
|
484
|
+
"BUTTON",
|
|
485
|
+
"METER",
|
|
486
|
+
"OUTPUT",
|
|
487
|
+
"PROGRESS"
|
|
488
|
+
].includes(element.tagName);
|
|
489
|
+
}
|
|
490
|
+
export { TxField };
|
|
491
|
+
|
|
492
|
+
//# sourceMappingURL=tectra-ng-ui-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-field.mjs","names":[],"sources":["../../../../packages/ui/field/src/field.component.ts","../../../../packages/ui/field/src/field.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterEveryRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { AbstractControl, NgControl } from '@angular/forms';\nimport { linkDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, TxValidationMessages, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TX_FIELD_STATE } from '@tectra-ng/core/forms';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraFieldTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxLabel } from '@tectra-ng/ui/label';\nimport { TxFieldError, TxFieldHint } from '@tectra-ng/ui/message';\nimport { TxFieldLayout, TxFieldPart } from './field.types';\n\nconst CONTROL_SELECTOR = [\n 'input:not([type=\"hidden\"])',\n 'textarea',\n 'select',\n '[role=\"combobox\"]',\n '[role=\"switch\"]',\n '[role=\"checkbox\"]',\n '[role=\"slider\"]',\n '[role=\"spinbutton\"]',\n '[contenteditable=\"true\"]',\n].join(', ');\n\n@Component({\n selector: 'tx-field',\n imports: [TxLabel, TxFieldHint, TxFieldError],\n templateUrl: './field.component.html',\n styleUrl: './field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: TX_FIELD_STATE, useFactory: () => inject(TxField).state }],\n host: {\n class: 'tx-field',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'layout()',\n },\n})\nexport class TxField {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private generatedId = uniqueId('tx-field');\n private linkedElement: HTMLElement | null = null;\n private linkedKey = '';\n private unlinks: (() => void)[] = [];\n\n readonly label = input<string | undefined>(undefined);\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly colon = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly subtle = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltip = input<string | undefined>(undefined);\n readonly hint = input<string | undefined>(undefined);\n readonly control = input<AbstractControl | undefined>(undefined);\n readonly errorText = input<string | undefined>(undefined);\n readonly successText = input<string | undefined>(undefined);\n readonly messages = input<TxValidationMessages | undefined>(undefined);\n readonly showImmediately = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly layout = input<TxFieldLayout>('vertical');\n readonly dt = input<TectraDeepPartial<TectraFieldTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldPart, TxField> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly projectedControl = contentChild(NgControl, { descendants: true });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('field', this, this.pt, this.ptOptions);\n readonly labelId = `${this.generatedId}-label`;\n readonly hintId = `${this.generatedId}-hint`;\n readonly errorId = `${this.generatedId}-error`;\n readonly controlId = signal<string | null>(null);\n readonly formControl = computed(() => this.control() ?? this.projectedControl()?.control ?? undefined);\n readonly state = { invalid: computed(() => !!this.errorText()) };\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-field'), ...this.passThrough().root?.style }));\n\n constructor() {\n afterEveryRender(() => this.linkControl());\n inject(DestroyRef).onDestroy(() => this.unlink());\n }\n\n private linkControl(): void {\n const host = this.elementRef.nativeElement;\n const group = host.querySelector<HTMLElement>('.tx-field__control :is([role=\"radiogroup\"], [role=\"group\"], [role=\"listbox\"])');\n const element = group ?? host.querySelector<HTMLElement>(`.tx-field__control :is(${CONTROL_SELECTOR})`);\n const describedBy = [host.querySelector(`#${this.hintId}`) ? this.hintId : null, this.errorId].filter((id): id is string => !!id);\n const key = `${describedBy.join(' ')}|${this.label() ? 'label' : ''}`;\n if (element === this.linkedElement && key === this.linkedKey) {\n return;\n }\n this.unlink();\n this.linkedElement = element;\n this.linkedKey = key;\n if (!element) {\n this.controlId.set(null);\n return;\n }\n this.unlinks = describedBy.map((id) => linkDescribedBy(element, id));\n if (group || !isLabelable(element)) {\n if (this.label() && !element.hasAttribute('aria-labelledby') && !element.hasAttribute('aria-label')) {\n element.setAttribute('aria-labelledby', this.labelId);\n this.unlinks.push(() => element.removeAttribute('aria-labelledby'));\n }\n this.controlId.set(null);\n return;\n }\n if (!element.id) {\n element.id = `${this.generatedId}-control`;\n }\n this.controlId.set(element.id);\n }\n\n private unlink(): void {\n this.unlinks.forEach((unlink) => unlink());\n this.unlinks = [];\n }\n}\n\nfunction isLabelable(element: HTMLElement): boolean {\n return ['INPUT', 'SELECT', 'TEXTAREA', 'BUTTON', 'METER', 'OUTPUT', 'PROGRESS'].includes(element.tagName);\n}\n","@if (label()) {\n <tx-label\n class=\"tx-field__label\"\n [id]=\"labelId\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n [for]=\"controlId() ?? undefined\"\n [required]=\"required()\"\n [colon]=\"colon()\"\n [subtle]=\"subtle()\"\n [tooltip]=\"tooltip()\"\n >{{ label() }}</tx-label\n >\n}\n<div class=\"tx-field__body\">\n <div class=\"tx-field__control\" [class]=\"passThrough().control?.class\" [style]=\"passThrough().control?.style\">\n <ng-content />\n </div>\n @if (hint()) {\n <tx-field-hint [id]=\"hintId\" [class]=\"passThrough().hint?.class\" [style]=\"passThrough().hint?.style\">{{ hint() }}</tx-field-hint>\n }\n <tx-field-error\n [id]=\"errorId\"\n [class]=\"passThrough().error?.class\"\n [style]=\"passThrough().error?.style\"\n [control]=\"formControl()\"\n [errorText]=\"errorText()\"\n [successText]=\"successText()\"\n [messages]=\"messages()\"\n [showImmediately]=\"showImmediately()\"\n />\n</div>\n"],"mappings":";;;;;;;;;;AAuBA,MAAM,mBAAmB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAA,CAAC,KAAK,IAAI;AAiBX,IAAa,UAAb,MAAa,QAAO;CACV,aAAa,OAAgC,UAAU;CACvD,cAAc,SAAS,UAAU;CACjC,gBAAoC;CACpC,YAAY;CACZ,UAA0B,CAAA;CAEzB,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,QAAQ,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACpE,SAAS,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACrE,UAAU,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC9C,O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