@tectra-ng/ui 0.0.0-stage → 0.1.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/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 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-tree-select.mjs","names":[],"sources":["../../../../packages/ui/tree-select/src/tree.ts","../../../../packages/ui/tree-select/src/tree-select.component.ts","../../../../packages/ui/tree-select/src/tree-select.component.html"],"sourcesContent":["import { TxTreeNode } from './tree-select.types';\n\nexport function walkTree(nodes: readonly TxTreeNode[], visit: (node: TxTreeNode, parent: TxTreeNode | null) => void, parent: TxTreeNode | null = null): void {\n for (const node of nodes) {\n visit(node, parent);\n walkTree(node.children ?? [], visit, node);\n }\n}\n\nexport function findNode(nodes: readonly TxTreeNode[], key: string): TxTreeNode | null {\n let found: TxTreeNode | null = null;\n walkTree(nodes, (node) => {\n if (!found && node.key === key) {\n found = node;\n }\n });\n return found;\n}\n\nexport function descendantKeys(node: TxTreeNode): string[] {\n const keys: string[] = [];\n walkTree(node.children ?? [], (child) => {\n if (!child.disabled) {\n keys.push(child.key);\n }\n });\n return keys;\n}\n\nexport function parentMap(nodes: readonly TxTreeNode[]): Map<string, TxTreeNode | null> {\n const parents = new Map<string, TxTreeNode | null>();\n walkTree(nodes, (node, parent) => parents.set(node.key, parent));\n return parents;\n}\n\nexport function normalizeChecked(nodes: readonly TxTreeNode[], keys: readonly string[]): string[] {\n const checked = new Set(keys);\n const settle = (node: TxTreeNode): boolean => {\n const children = (node.children ?? []).filter((child) => !child.disabled);\n if (!children.length) {\n return checked.has(node.key);\n }\n const all = children.map(settle).every(Boolean);\n if (all) {\n checked.add(node.key);\n } else {\n checked.delete(node.key);\n }\n return all;\n };\n nodes.forEach(settle);\n const order: string[] = [];\n walkTree(nodes, (node) => checked.has(node.key) && order.push(node.key));\n return order;\n}\n","import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TxTypeahead, uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport {\n TxOverlayInsets,\n TxPlacement,\n placementFromPosition,\n txAnimateEnter,\n txAnimateLeave,\n txPositions,\n TxOverlayRoom,\n watchOrigin,\n TxOverlayAnchor,\n txScrollStrategy,\n} from '@tectra-ng/core/overlay';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraSelectTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldVariant, TxSelectSize, foldText } from '@tectra-ng/ui/select';\nimport { descendantKeys, findNode, normalizeChecked, parentMap } from './tree';\nimport { TxTreeBranch, TxTreeNode, TxTreeRow, TxTreeSelectChangeEvent, TxTreeSelectDisplay, TxTreeSelectPart, TxTreeSelectionMode } from './tree-select.types';\n\n@Component({\n selector: 'tx-tree-select',\n imports: [CdkOverlayOrigin, CdkConnectedOverlay, TxOverlayAnchor, NgTemplateOutlet, TxIcon],\n templateUrl: './tree-select.component.html',\n styleUrl: './tree-select.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxTreeSelect), multi: true }],\n host: {\n class: 'tx-tree-select',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n '[class.tx-tree-select--open]': 'isOpen()',\n '[class.tx-tree-select--disabled]': 'disabled()',\n '[class.tx-tree-select--invalid]': 'isInvalid()',\n '[class.tx-tree-select--readonly]': 'readonly()',\n '[class.tx-tree-select--filled]': 'selectedKeys().length > 0',\n },\n})\nexport class TxTreeSelect extends TxFormControlBase<string | string[]> {\n readonly options = input<readonly TxTreeNode[]>([]);\n readonly selectionMode = input<TxTreeSelectionMode>('single');\n readonly display = input<TxTreeSelectDisplay>('comma');\n readonly expandedKeys = model<string[]>([]);\n readonly filter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly filterPlaceholder = input<string | undefined>(undefined);\n readonly placeholder = input<string>('');\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyMessage = input<string | undefined>(undefined);\n readonly scrollHeight = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly size = input<TxSelectSize>('medium');\n readonly variant = input<TxFieldVariant>('outlined');\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraSelectTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTreeSelectPart, TxTreeSelect> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxTreeSelectChangeEvent>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n readonly box = viewChild.required<ElementRef<HTMLElement>>('box');\n readonly trigger = viewChild.required<ElementRef<HTMLButtonElement>>('trigger');\n readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n readonly filterInput = viewChild<ElementRef<HTMLInputElement>>('filterInput');\n\n private document = inject(DOCUMENT);\n private injector = inject(Injector);\n private overlayInsets = inject(TxOverlayInsets);\n private typeahead = new TxTypeahead();\n private stopWatching: (() => void) | null = null;\n private hasEntered = false;\n private readonly cleanup = inject(DestroyRef).onDestroy(() => this.stopWatching?.());\n\n readonly translations = injectTranslations();\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('treeSelect', this, this.pt, this.ptOptions);\n private readonly room = new TxOverlayRoom(txPositions('bottom-start', 4));\n private readonly connectedOverlay = viewChild(CdkConnectedOverlay);\n readonly positions = this.room.positions;\n readonly scrollStrategy = txScrollStrategy(this.injector);\n readonly viewportMargin = this.room.viewportMargin;\n readonly treeId = uniqueId('tx-tree');\n\n readonly isOpen = signal(false);\n readonly isPanelMounted = signal(false);\n readonly placement = signal<TxPlacement>('bottom-start');\n readonly panelWidth = signal(0);\n readonly query = signal('');\n readonly activeKey = signal<string | null>(null);\n\n readonly multiple = computed(() => this.selectionMode() !== 'single');\n readonly selectedKeys = computed<string[]>(() => {\n const value = this.value();\n if (Array.isArray(value)) {\n return value;\n }\n return value === null || value === undefined || value === '' ? [] : [value];\n });\n private readonly parents = computed(() => parentMap(this.options()));\n readonly selectedNodes = computed(() =>\n this.selectedKeys()\n .map((key) => findNode(this.options(), key))\n .filter((node): node is TxTreeNode => !!node)\n .filter((node) => this.selectionMode() !== 'checkbox' || !this.parentChecked(node)),\n );\n readonly branches = computed<TxTreeBranch[]>(() => {\n const query = foldText(this.query().trim());\n const expanded = new Set(this.expandedKeys());\n const selected = new Set(this.selectedKeys());\n const matches = (node: TxTreeNode): boolean =>\n foldText(node.label).includes(query) || (node.children ?? []).some((child) => matches(child));\n const build = (nodes: readonly TxTreeNode[], level: number, parent: TxTreeRow | null, shown: boolean): TxTreeBranch[] => {\n const visible = query && !shown ? nodes.filter(matches) : nodes;\n return visible.map((node, index) => {\n const children = node.children ?? [];\n const own = !!query && foldText(node.label).includes(query);\n const open = query ? children.some((child) => matches(child)) || (own && children.length > 0 && expanded.has(node.key)) : expanded.has(node.key);\n const checkable = children.filter((child) => !child.disabled);\n const checkedChildren = checkable.filter((child) => this.isChecked(child, selected)).length;\n const row: TxTreeRow = {\n id: `${this.treeId}-${node.key}`,\n node,\n level: level + 1,\n parent,\n setSize: visible.length,\n posInSet: index + 1,\n hasChildren: children.length > 0,\n expanded: children.length > 0 && open,\n checked: selected.has(node.key),\n partial:\n this.selectionMode() === 'checkbox' &&\n !selected.has(node.key) &&\n (checkedChildren > 0 || checkable.some((child) => this.hasCheckedDescendant(child, selected))),\n selectable: !node.disabled && node.selectable !== false,\n };\n return { row, children: build(children, level + 1, row, shown || own) };\n });\n };\n return build(this.options(), 0, null, false);\n });\n readonly rows = computed<TxTreeRow[]>(() => {\n const rows: TxTreeRow[] = [];\n const walk = (branches: TxTreeBranch[]) =>\n branches.forEach((branch) => {\n rows.push(branch.row);\n if (branch.row.expanded) {\n walk(branch.children);\n }\n });\n walk(this.branches());\n return rows;\n });\n readonly mounted = signal<ReadonlySet<string>>(new Set());\n readonly activeRow = computed(() => this.rows().find((row) => row.node.key === this.activeKey()) ?? null);\n readonly activeId = computed(() => (this.isOpen() ? (this.activeRow()?.id ?? null) : null));\n readonly canClear = computed(() => this.showClear() && this.selectedKeys().length > 0 && !this.disabled() && !this.readonly());\n readonly commaText = computed(() => this.selectedNodes().map((node) => node.label).join(', '));\n readonly emptyText = computed(() => this.emptyMessage() ?? this.translations().emptyMessage);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-select'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly panelStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().panel?.style }));\n\n open(): void {\n if (this.disabled() || this.readonly() || this.isOpen()) {\n return;\n }\n this.panelWidth.set(this.box().nativeElement.offsetWidth);\n this.revealSelected();\n this.mounted.set(new Set(this.expandedKeys()));\n this.activeKey.set(this.selectedKeys().find((key) => this.rows().some((row) => row.node.key === key)) ?? this.rows()[0]?.node.key ?? null);\n this.isOpen.set(true);\n this.hasEntered = false;\n this.isPanelMounted.set(true);\n this.room.open(this.overlayInsets.measure());\n this.stopWatching = watchOrigin(this.box().nativeElement, this.overlayInsets, {\n insetsChange: (insets) => this.room.follow(insets, this.box().nativeElement, this.panel()?.nativeElement, this.connectedOverlay(), this.injector),\n containerScroll: () => this.close(),\n });\n this.opened.emit();\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n this.isOpen.set(false);\n this.stopWatching?.();\n this.stopWatching = null;\n this.markTouched();\n this.closed.emit();\n const panel = this.panel()?.nativeElement;\n (panel ? txAnimateLeave(panel, this.placement()) : Promise.resolve()).then(() => {\n if (!this.isOpen()) {\n this.isPanelMounted.set(false);\n }\n });\n }\n\n toggle(): void {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n onBoxClick(event: MouseEvent): void {\n if (!(event.target as HTMLElement).closest('.tx-select__clear, .tx-select__chip-remove')) {\n this.toggle();\n this.trigger().nativeElement.focus();\n }\n }\n\n onAttach(): void {\n this.filterInput()?.nativeElement.focus();\n }\n\n onPositionChange(change: ConnectedOverlayPositionChange): void {\n this.placement.set(placementFromPosition(change.connectionPair) ?? 'bottom-start');\n const panel = this.panel()?.nativeElement;\n if (!this.hasEntered && this.room.fit(this.box().nativeElement, panel, this.connectedOverlay(), this.injector)) {\n return;\n }\n if (!this.hasEntered && panel) {\n this.hasEntered = true;\n txAnimateEnter(panel, this.placement());\n this.scrollActive();\n }\n }\n\n onOutsideClick(event: MouseEvent): void {\n if (!this.box().nativeElement.contains(event.target as Node)) {\n this.close();\n }\n }\n\n onPanelMousedown(event: MouseEvent): void {\n if (!(event.target as HTMLElement).closest('input')) {\n event.preventDefault();\n }\n }\n\n onFilter(event: Event): void {\n this.query.set((event.target as HTMLInputElement).value);\n this.activeKey.set(this.rows().find((row) => row.selectable)?.node.key ?? this.rows()[0]?.node.key ?? null);\n }\n\n onRowClick(row: TxTreeRow, event: MouseEvent): void {\n if ((event.target as HTMLElement).closest('.tx-tree-select__toggler')) {\n this.toggleExpanded(row);\n return;\n }\n this.activeKey.set(row.node.key);\n this.pick(row);\n }\n\n toggleExpanded(row: TxTreeRow): void {\n if (!row.hasChildren) {\n return;\n }\n const keys = new Set(this.expandedKeys());\n if (row.expanded) {\n keys.delete(row.node.key);\n } else {\n keys.add(row.node.key);\n }\n if (!row.expanded) {\n this.mounted.update((mounted) => new Set([...mounted, row.node.key]));\n }\n this.expandedKeys.set([...keys]);\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.readonly()) {\n return;\n }\n const typing = (event.target as HTMLElement).classList.contains('tx-select__filter-input');\n if (!this.isOpen()) {\n if (['Enter', ' ', 'ArrowDown', 'ArrowUp'].includes(event.key)) {\n event.preventDefault();\n this.open();\n } else if (event.key === 'Backspace' && this.display() === 'chip' && this.multiple()) {\n const last = this.selectedNodes().at(-1);\n if (last) {\n event.preventDefault();\n this.removeNode(last, event);\n }\n }\n return;\n }\n const rows = this.rows();\n const index = rows.findIndex((row) => row.node.key === this.activeKey());\n const row = rows[index];\n const move = (next: number) => {\n const target = rows[Math.max(0, Math.min(rows.length - 1, next))];\n if (target) {\n this.activeKey.set(target.node.key);\n this.scrollActive();\n }\n };\n switch (event.key) {\n case 'Escape':\n event.preventDefault();\n this.close();\n this.trigger().nativeElement.focus();\n return;\n case 'Tab':\n this.close();\n return;\n case 'ArrowDown':\n event.preventDefault();\n move(index + 1);\n return;\n case 'ArrowUp':\n event.preventDefault();\n move(index - 1);\n return;\n case 'PageDown':\n event.preventDefault();\n move(index + 10);\n return;\n case 'PageUp':\n event.preventDefault();\n move(index - 10);\n return;\n case 'ArrowRight':\n if (typing || !row) {\n return;\n }\n event.preventDefault();\n if (row.hasChildren && !row.expanded) {\n this.toggleExpanded(row);\n } else if (row.expanded) {\n move(index + 1);\n }\n return;\n case 'ArrowLeft':\n if (typing || !row) {\n return;\n }\n event.preventDefault();\n if (row.expanded) {\n this.toggleExpanded(row);\n } else if (row.parent) {\n this.activeKey.set(row.parent.node.key);\n this.scrollActive();\n }\n return;\n case 'Home':\n case 'End':\n if (!typing) {\n event.preventDefault();\n move(event.key === 'Home' ? 0 : rows.length - 1);\n }\n return;\n case 'Enter':\n event.preventDefault();\n if (row) {\n this.pick(row);\n }\n return;\n }\n if (event.key === ' ' && !typing) {\n event.preventDefault();\n if (row) {\n this.pick(row);\n }\n return;\n }\n if (!typing && event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {\n const found = this.typeahead.search(\n event.key,\n rows.map((entry) => entry.node.label),\n index,\n );\n if (found !== null) {\n move(found);\n }\n }\n }\n\n clear(): void {\n this.commit(null, null);\n this.trigger().nativeElement.focus();\n }\n\n removeNode(node: TxTreeNode, event: Event): void {\n event.stopPropagation();\n if (this.disabled() || this.readonly()) {\n return;\n }\n if (this.selectionMode() === 'checkbox') {\n this.check(node, false);\n } else {\n this.commit(\n this.selectedKeys().filter((key) => key !== node.key),\n node,\n );\n }\n }\n\n checkState(row: TxTreeRow): string {\n return row.checked ? 'true' : row.partial ? 'mixed' : 'false';\n }\n\n private pick(row: TxTreeRow): void {\n if (!row.selectable) {\n if (row.hasChildren) {\n this.toggleExpanded(row);\n }\n return;\n }\n switch (this.selectionMode()) {\n case 'single':\n this.commit(row.node.key, row.node);\n this.close();\n this.trigger().nativeElement.focus();\n return;\n case 'multiple':\n this.commit(row.checked ? this.selectedKeys().filter((key) => key !== row.node.key) : [...this.selectedKeys(), row.node.key], row.node);\n return;\n default:\n this.check(row.node, !row.checked);\n }\n }\n\n private check(node: TxTreeNode, checked: boolean): void {\n const keys = new Set(this.selectedKeys());\n const affected = [node.key, ...descendantKeys(node)];\n if (checked) {\n affected.forEach((key) => keys.add(key));\n } else {\n affected.forEach((key) => keys.delete(key));\n let parent = this.parents().get(node.key) ?? null;\n while (parent) {\n keys.delete(parent.key);\n parent = this.parents().get(parent.key) ?? null;\n }\n }\n this.commit(normalizeChecked(this.options(), [...keys]), node);\n }\n\n private commit(value: string | string[] | null, node: TxTreeNode | null): void {\n const next = this.multiple() ? (Array.isArray(value) ? value : value ? [value] : []) : value;\n this.updateValue(next);\n this.changed.emit({ value: next, node });\n }\n\n private isChecked(node: TxTreeNode, selected: Set<string>): boolean {\n return selected.has(node.key);\n }\n\n private hasCheckedDescendant(node: TxTreeNode, selected: Set<string>): boolean {\n return (node.children ?? []).some((child) => selected.has(child.key) || this.hasCheckedDescendant(child, selected));\n }\n\n private parentChecked(node: TxTreeNode): boolean {\n const parent = this.parents().get(node.key);\n return !!parent && this.selectedKeys().includes(parent.key);\n }\n\n private revealSelected(): void {\n const keys = new Set(this.expandedKeys());\n const size = keys.size;\n for (const key of this.selectedKeys()) {\n let parent = this.parents().get(key) ?? null;\n while (parent) {\n keys.add(parent.key);\n parent = this.parents().get(parent.key) ?? null;\n }\n }\n if (keys.size !== size) {\n this.expandedKeys.set([...keys]);\n }\n }\n\n private scrollActive(): void {\n const id = this.activeId();\n queueMicrotask(() => (id ? this.document.getElementById(id)?.scrollIntoView?.({ block: 'nearest' }) : undefined));\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the combobox inside the box takes focus and keys; the box only widens the click area -->\n<div\n #box\n #origin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n class=\"tx-select__box\"\n [class]=\"passThrough().box?.class\"\n [style]=\"passThrough().box?.style\"\n (click)=\"onBoxClick($event)\"\n>\n <button\n #trigger\n type=\"button\"\n role=\"combobox\"\n class=\"tx-select__trigger\"\n aria-haspopup=\"tree\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"treeId\"\n [attr.aria-activedescendant]=\"filter() ? null : activeId()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"disabled()\"\n (keydown)=\"onKeydown($event)\"\n >\n @if (!selectedNodes().length) {\n <span class=\"tx-select__value tx-select__value--placeholder\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{\n placeholder()\n }}</span>\n } @else if (multiple() && display() === 'chip') {\n <span class=\"tx-select__value tx-select__chips\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">\n @for (node of selectedNodes(); track node.key) {\n <span class=\"tx-select__chip\" [class]=\"passThrough().chip?.class\" [style]=\"passThrough().chip?.style\">\n <span class=\"tx-select__chip-label\">{{ node.label }}</span>\n @if (!disabled() && !readonly()) {\n <span class=\"tx-select__chip-remove\" aria-hidden=\"true\" (click)=\"removeNode(node, $event)\">\n <tx-icon [name]=\"'times'\" />\n </span>\n }\n </span>\n }\n </span>\n } @else {\n <span class=\"tx-select__value\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{ commaText() }}</span>\n }\n </button>\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-select__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n <span class=\"tx-select__dropdown\" aria-hidden=\"true\" [class]=\"passThrough().dropdown?.class\" [style]=\"passThrough().dropdown?.style\">\n <tx-icon class=\"tx-select__chevron\" [name]=\"'chevron-down'\" />\n </span>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"isPanelMounted()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"viewportMargin()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (attach)=\"onAttach()\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"close()\"\n>\n <div\n #panel\n class=\"tx-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n @if (filter()) {\n <div class=\"tx-select__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n #filterInput\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"treeId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n }\n @if (rows().length) {\n <div\n class=\"tx-tree-select__tree\"\n role=\"tree\"\n [id]=\"treeId\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [style.max-height]=\"scrollHeight() ?? null\"\n [class]=\"passThrough().tree?.class\"\n [style]=\"passThrough().tree?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: branches() }\" />\n </div>\n } @else {\n <div class=\"tx-tree-select__tree tx-tree-select__tree--empty\" role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel() || placeholder() || null\">\n <div class=\"tx-select__empty tx-tree-select__empty\" role=\"presentation\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n {{ emptyText() }}\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #branch let-branches>\n @for (item of branches; track item.row.id) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- tree items use aria-activedescendant: focus and keys stay on the field -->\n <div\n role=\"treeitem\"\n class=\"tx-tree-select__node\"\n [id]=\"item.row.id\"\n [style.--tx-tree-level]=\"item.row.level - 1\"\n [class.tx-tree-select__node--active]=\"item.row.node.key === activeKey()\"\n [class.tx-tree-select__node--selected]=\"item.row.checked && selectionMode() !== 'checkbox'\"\n [class.tx-tree-select__node--disabled]=\"!item.row.selectable\"\n [attr.aria-level]=\"item.row.level\"\n [attr.aria-setsize]=\"item.row.setSize\"\n [attr.aria-posinset]=\"item.row.posInSet\"\n [attr.aria-expanded]=\"item.row.hasChildren ? item.row.expanded : null\"\n [attr.aria-selected]=\"selectionMode() === 'checkbox' ? null : item.row.checked\"\n [attr.aria-checked]=\"selectionMode() === 'checkbox' ? checkState(item.row) : null\"\n [attr.aria-disabled]=\"!item.row.selectable || null\"\n [attr.aria-owns]=\"item.children.length ? item.row.id + '-group' : null\"\n [class]=\"passThrough().node?.class\"\n [style]=\"passThrough().node?.style\"\n (mouseenter)=\"activeKey.set(item.row.node.key)\"\n (click)=\"onRowClick(item.row, $event)\"\n >\n <span\n class=\"tx-tree-select__toggler\"\n aria-hidden=\"true\"\n [class.tx-tree-select__toggler--leaf]=\"!item.row.hasChildren\"\n [class]=\"passThrough().toggler?.class\"\n [style]=\"passThrough().toggler?.style\"\n >\n @if (item.row.hasChildren) {\n <tx-icon class=\"tx-tree-select__chevron\" [class.tx-tree-select__chevron--open]=\"item.row.expanded\" [name]=\"'chevron-right'\" />\n }\n </span>\n @if (selectionMode() === 'checkbox') {\n <span class=\"tx-select__checkbox tx-tree-select__checkbox\" aria-hidden=\"true\">\n @if (item.row.checked) {\n <tx-icon [name]=\"'check'\" />\n } @else if (item.row.partial) {\n <tx-icon [name]=\"'minus'\" />\n }\n </span>\n }\n @if (item.row.node.icon; as icon) {\n <tx-icon class=\"tx-tree-select__icon\" [name]=\"icon\" />\n }\n <span class=\"tx-tree-select__label\">{{ item.row.node.label }}</span>\n </div>\n @if (item.children.length) {\n <div\n role=\"group\"\n class=\"tx-tree-select__children\"\n [id]=\"item.row.id + '-group'\"\n [class.tx-tree-select__children--open]=\"item.row.expanded\"\n [attr.inert]=\"item.row.expanded ? null : ''\"\n >\n <div class=\"tx-tree-select__children-inner\">\n @if (item.row.expanded || mounted().has(item.row.node.key)) {\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: item.children }\" />\n }\n </div>\n </div>\n }\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;;AAEA,SAAgB,SAAS,OAA8B,OAA8D,SAA4B,MAAI;CACnJ,KAAK,MAAM,QAAQ,OAAO;EACxB,MAAM,MAAM,MAAM;EAClB,SAAS,KAAK,YAAY,CAAA,GAAI,OAAO,IAAI;CAC3C;AACF;AAEA,SAAgB,SAAS,OAA8B,KAAW;CAChE,IAAI,QAA2B;CAC/B,SAAS,QAAQ,SAAQ;EACvB,IAAI,CAAC,SAAS,KAAK,QAAQ,KACzB,QAAQ;CAEZ,CAAC;CACD,OAAO;AACT;AAEA,SAAgB,eAAe,MAAgB;CAC7C,MAAM,OAAiB,CAAA;CACvB,SAAS,KAAK,YAAY,CAAA,IAAK,UAAS;EACtC,IAAI,CAAC,MAAM,UACT,KAAK,KAAK,MAAM,GAAG;CAEvB,CAAC;CACD,OAAO;AACT;AAEA,SAAgB,UAAU,OAA4B;CACpD,MAAM,0BAAU,IAAI,IAAG;CACvB,SAAS,QAAQ,MAAM,WAAW,QAAQ,IAAI,KAAK,KAAK,MAAM,CAAC;CAC/D,OAAO;AACT;AAEA,SAAgB,iBAAiB,OAA8B,MAAuB;CACpF,MAAM,UAAU,IAAI,IAAI,IAAI;CAC5B,MAAM,UAAU,SAA6B;EAC3C,MAAM,YAAY,KAAK,YAAY,CAAA,EAAA,CAAI,QAAQ,UAAU,CAAC,MAAM,QAAQ;EACxE,IAAI,CAAC,SAAS,QACZ,OAAO,QAAQ,IAAI,KAAK,GAAG;EAE7B,MAAM,MAAM,SAAS,IAAI,MAAM,CAAC,CAAC,MAAM,OAAO;EAC9C,IAAI,KACF,QAAQ,IAAI,K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
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui.mjs","names":[],"sources":["../../../../packages/ui/index.ts"],"sourcesContent":["export const TECTRA_UI_VERSION = '0.0.0';\n"],"mappings":"AAAA,MAAa,oBAAoB"}
|
package/field/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Field
|
|
2
|
+
|
|
3
|
+
A form row: label, control, hint and error in one element. It finds the control inside (input, textarea, select, `tx-select`, checkbox, switch, slider…), gives it an id when it has none, points the label at it and adds the hint and the error to its `aria-describedby`. A group (`tx-radio-group`, `tx-checkbox-group`, any `role="radiogroup"` / `role="group"`) or a custom control that is not a native field (`role="slider"`, e.g. `tx-rating`) is named by the label through `aria-labelledby` instead. The error comes from the projected `formControl` / `formControlName` / `ngModel`, or from `control`; `errorText` shows an error from outside the form and turns the control red.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-field label="Email" required hint="We never share it">
|
|
7
|
+
<input txInput type="email" formControlName="email" />
|
|
8
|
+
</tx-field>
|
|
9
|
+
|
|
10
|
+
<tx-field label="Plan" layout="horizontal" [errorText]="serverError()">
|
|
11
|
+
<tx-select [options]="plans" formControlName="plan" />
|
|
12
|
+
</tx-field>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Inputs
|
|
16
|
+
| Name | Description |
|
|
17
|
+
|---|---|
|
|
18
|
+
| label | Text of the label |
|
|
19
|
+
| required | Required mark after the label (also put `required` / `Validators.required` on the control) |
|
|
20
|
+
| colon | Adds `:` after the label |
|
|
21
|
+
| subtle | Smaller, muted label — for filters and dense forms |
|
|
22
|
+
| tooltip | Help icon after the label with this hint |
|
|
23
|
+
| hint | Help text under the control |
|
|
24
|
+
| control | Form control for the error, when it is not the projected one |
|
|
25
|
+
| errorText | Error from outside the form (e.g. the server); shown before the control's errors and marks the control invalid |
|
|
26
|
+
| successText | Text shown when the control has a valid value and was touched or changed |
|
|
27
|
+
| messages | Own error texts per error key (see `tx-field-error`) |
|
|
28
|
+
| showImmediately | Shows the error before the control is touched or changed |
|
|
29
|
+
| layout | `vertical` (label above) or `horizontal` (label on the left, stacks below 40rem) |
|
|
30
|
+
| dt | Design tokens of this instance (`field`) |
|
|
31
|
+
| pt | Classes and styles of the parts: `root`, `label`, `control`, `hint`, `error` |
|
|
32
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
33
|
+
| unstyled | Removes the tectra styles, keeps the wiring |
|
|
34
|
+
|
|
35
|
+
## Slots
|
|
36
|
+
| Name | Description |
|
|
37
|
+
|---|---|
|
|
38
|
+
| default | The control |
|
|
39
|
+
|
|
40
|
+
## Keyboard
|
|
41
|
+
| Key | Action |
|
|
42
|
+
|---|---|
|
|
43
|
+
| Click on the label | Focuses the control |
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Fieldset
|
|
2
|
+
|
|
3
|
+
Groups related fields under a legend — a native `<fieldset>`, so screen readers announce the legend with every field inside. It can collapse.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-fieldset legend="Billing address" [toggleable]="true">
|
|
7
|
+
…fields…
|
|
8
|
+
</tx-fieldset>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
| Name | Description |
|
|
13
|
+
|---|---|
|
|
14
|
+
| legend | Text of the legend |
|
|
15
|
+
| toggleable | Turns the legend into a button that collapses the content |
|
|
16
|
+
| collapsed | Two-way: the content is collapsed |
|
|
17
|
+
| dt | Design tokens of this instance (`fieldset`) |
|
|
18
|
+
| pt | Classes and styles of the parts: `root`, `legend`, `toggle`, `content` |
|
|
19
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
20
|
+
| unstyled | Removes the tectra styles |
|
|
21
|
+
|
|
22
|
+
## Outputs
|
|
23
|
+
| Name | Description |
|
|
24
|
+
|---|---|
|
|
25
|
+
| collapsedChange | The content was collapsed or expanded |
|
|
26
|
+
|
|
27
|
+
## Slots
|
|
28
|
+
| Name | Description |
|
|
29
|
+
|---|---|
|
|
30
|
+
| default | The fields |
|
|
31
|
+
| txFieldsetLegend | Own legend content, e.g. an icon with text |
|
|
32
|
+
|
|
33
|
+
## Keyboard
|
|
34
|
+
| Key | Action |
|
|
35
|
+
|---|---|
|
|
36
|
+
| Enter / Space | Collapses or expands from the legend button |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Highlight text
|
|
2
|
+
|
|
3
|
+
Marks every match of a search in a text — ignoring case and accents, for one or several terms. Matches are `<mark>` elements, so screen readers can report them; the text is never parsed as HTML.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-highlight-text [text]="row.name" [highlight]="search()" />
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
`highlightParts(text, terms)` returns the same split as an array of `{ text, match }` for own markup.
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
| Name | Description |
|
|
13
|
+
|---|---|
|
|
14
|
+
| text | The text (a number is shown as text) |
|
|
15
|
+
| highlight | A term or a list of terms to mark; empty marks nothing |
|
|
16
|
+
| caseSensitive | Matches the case exactly |
|
|
17
|
+
| dt | Design tokens of this instance (`highlightText`) |
|
|
18
|
+
| pt | Classes and styles of the parts: `root`, `mark` |
|
|
19
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
20
|
+
| unstyled | Removes the tectra styles |
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# IconField
|
|
2
|
+
|
|
3
|
+
Icons, text, a clear button or a copy button inside a field. Items before the input go on the left, `position="end"` puts them on the right; the input padding grows to make room by itself.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-icon-field>
|
|
7
|
+
<tx-input-icon [icon]="'search'" />
|
|
8
|
+
<input txInput placeholder="Search" />
|
|
9
|
+
<tx-input-clear />
|
|
10
|
+
</tx-icon-field>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Inputs
|
|
14
|
+
| Name | Description |
|
|
15
|
+
|---|---|
|
|
16
|
+
| fluid | Takes the full width of its container; inherits `<tx-fluid>` |
|
|
17
|
+
| icon | `tx-input-icon`: a `@tectra-ng/icons` name, a registered icon or any icon class; or put text / markup inside (prefix, suffix, unit) |
|
|
18
|
+
| position | `tx-input-icon`: `start` (default) or `end` — a static attribute, `position="end"` |
|
|
19
|
+
|
|
20
|
+
## Outputs
|
|
21
|
+
| Name | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| cleared | `tx-input-clear`: the field was cleared |
|
|
24
|
+
| copied | `tx-input-copy`: the value that was copied |
|
|
25
|
+
|
|
26
|
+
## Keyboard
|
|
27
|
+
| Key | Action |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Tab | Reaches the clear / copy buttons after the field |
|
|
30
|
+
| Enter / Space | On the clear / copy button: clears / copies |
|
package/input/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Input
|
|
2
|
+
|
|
3
|
+
Styles a native `input` or `textarea` with the shared `formField` tokens (also used by select, password, number…). Native `readonly` and `disabled` are styled too. Works with `[formControl]`, `ngModel` and signal forms as is — it is the native element.
|
|
4
|
+
|
|
5
|
+
## Inputs
|
|
6
|
+
| Name | Description |
|
|
7
|
+
|---|---|
|
|
8
|
+
| invalid | Red border and `aria-invalid`. Without it the field follows its form control: invalid once touched or changed |
|
|
9
|
+
| size | `small`, `medium`, `large` |
|
|
10
|
+
| variant | `outlined` (border) or `filled` (tinted background) |
|
|
11
|
+
| fluid | Takes the full width of its container; inherits `<tx-fluid>` |
|
|
12
|
+
| dt | `formField` design tokens of this one field |
|
|
13
|
+
| pt | Extra `class` / `style` on the `root` (the input itself) |
|
|
14
|
+
| ptOptions | How this `pt` meets the global one |
|
|
15
|
+
| unstyled | Drops all tectra styles |
|
|
16
|
+
|
|
17
|
+
## Keyboard
|
|
18
|
+
| Key | Action |
|
|
19
|
+
|---|---|
|
|
20
|
+
| Tab | Moves focus to the field (native behaviour) |
|
|
21
|
+
|
|
22
|
+
Icons, prefix / suffix, clear and copy buttons: `@tectra-ng/ui/icon-field`. Addons: `@tectra-ng/ui/input-group`. Allowed characters: `@tectra-ng/ui/key-filter`.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# InputGroup
|
|
2
|
+
|
|
3
|
+
Joins a field with addons — text, icons, buttons, selects — into one block with shared borders.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-input-group>
|
|
7
|
+
<tx-input-group-addon>https://</tx-input-group-addon>
|
|
8
|
+
<input txInput placeholder="site" />
|
|
9
|
+
<tx-input-group-addon>.com</tx-input-group-addon>
|
|
10
|
+
</tx-input-group>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Inputs
|
|
14
|
+
| Name | Description |
|
|
15
|
+
|---|---|
|
|
16
|
+
| fluid | Takes the full width of its container; inherits `<tx-fluid>` |
|
|
17
|
+
|
|
18
|
+
## Keyboard
|
|
19
|
+
| Key | Action |
|
|
20
|
+
|---|---|
|
|
21
|
+
| Tab | Moves through the field and the buttons inside the group |
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Input mask
|
|
2
|
+
|
|
3
|
+
Formats a text field as you type: phones, dates, cards, codes. Put `txInputMask` on a native input (with `txInput` for the tectra look). Fixed characters are typed for you, Backspace and Delete skip them, a pasted value is cleaned and fitted.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<input txInput txInputMask="(999) 999-9999" formControlName="phone" [unmask]="true" />
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Mask characters: `9` — a digit, `a` — a letter (`characterPattern`), `*` — a letter or a digit, `?` — everything after it is optional. Any other character is fixed.
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
| Name | Description |
|
|
13
|
+
|---|---|
|
|
14
|
+
| txInputMask | The mask, e.g. `99/99/9999` |
|
|
15
|
+
| slotChar | Placeholder shown in empty positions while the field has focus |
|
|
16
|
+
| autoClear | Clears an incomplete value when the field loses focus |
|
|
17
|
+
| unmask | The model gets only the typed characters, without the fixed ones |
|
|
18
|
+
| characterPattern | What `a` accepts, as a RegExp class, e.g. `[A-Za-zА-Яа-яІіЇїЄєҐґ]` |
|
|
19
|
+
|
|
20
|
+
## Outputs
|
|
21
|
+
| Name | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| completed | Every required position is filled — the value |
|
|
24
|
+
|
|
25
|
+
## Keyboard
|
|
26
|
+
| Key | Action |
|
|
27
|
+
|---|---|
|
|
28
|
+
| Character | Fills the next free position, skipping fixed characters; ignored when it does not fit |
|
|
29
|
+
| Backspace / Delete | Removes the character before / after the caret and shifts the rest |
|
|
30
|
+
| Paste | Keeps the characters that fit and fills the mask with them |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Input number
|
|
2
|
+
|
|
3
|
+
A number field that formats as you type — group separators, decimals and currency of the current locale — with step buttons, keyboard steps and limits. The model is a `number` (or `null`).
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-input-number formControlName="price" mode="currency" currency="UAH" [min]="0" />
|
|
7
|
+
<tx-input-number formControlName="seats" [showButtons]="true" [min]="1" [max]="50" />
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Inputs
|
|
11
|
+
| Name | Description |
|
|
12
|
+
|---|---|
|
|
13
|
+
| mode | `decimal` or `currency` |
|
|
14
|
+
| currency | ISO currency code for `currency` mode, e.g. `USD`, `EUR`, `UAH` |
|
|
15
|
+
| currencyDisplay | `symbol`, `narrowSymbol`, `code` or `name` |
|
|
16
|
+
| locale | Locale of the formatting; the current tectra locale by default |
|
|
17
|
+
| useGrouping | Thousands separators |
|
|
18
|
+
| minFractionDigits | Fraction digits always shown after the field loses focus |
|
|
19
|
+
| maxFractionDigits | Fraction digits allowed while typing (3 for decimals, the currency's own for money) |
|
|
20
|
+
| prefix | Text before the number, e.g. `~` |
|
|
21
|
+
| suffix | Text after the number, e.g. ` kg` |
|
|
22
|
+
| min | Smallest value; also blocks the minus sign when it is 0 or more |
|
|
23
|
+
| max | Largest value |
|
|
24
|
+
| step | Step of the buttons and the arrow keys |
|
|
25
|
+
| showButtons | Shows increment / decrement buttons; hold to repeat |
|
|
26
|
+
| buttonLayout | `stacked` (inside the field), `horizontal` (minus left, plus right) or `vertical` |
|
|
27
|
+
| incrementIcon | Icon of the increment button |
|
|
28
|
+
| decrementIcon | Icon of the decrement button |
|
|
29
|
+
| allowEmpty | Allows an empty value; off — an empty field becomes `min` or 0 |
|
|
30
|
+
| showClear | Adds a clear button when there is a value |
|
|
31
|
+
| placeholder | Placeholder of the input |
|
|
32
|
+
| size | `small`, `medium`, `large` |
|
|
33
|
+
| variant | `outlined` or `filled` |
|
|
34
|
+
| fluid | Takes the full width of its container; inherits `<tx-fluid>` |
|
|
35
|
+
| invalid | Red border; without it the field follows its form control |
|
|
36
|
+
| disabled | Disables the field (also from the form control) |
|
|
37
|
+
| readonly | Shows the value, no editing or steps |
|
|
38
|
+
| required | Native `required` |
|
|
39
|
+
| name | Native `name` |
|
|
40
|
+
| inputId | Id of the input, for an outside `<label for>` or a float label |
|
|
41
|
+
| ariaLabel | Accessible name when there is no visible label |
|
|
42
|
+
| ariaLabelledBy | Id of the element that names the field |
|
|
43
|
+
| tabindex | Tab order of the input |
|
|
44
|
+
| dt | Design tokens of this instance (`inputNumber`); the field itself uses `formField` |
|
|
45
|
+
| pt | Classes and styles of the parts: `root`, `input`, `increment`, `decrement`, `clear` |
|
|
46
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
47
|
+
| unstyled | Removes the tectra styles |
|
|
48
|
+
|
|
49
|
+
## Outputs
|
|
50
|
+
| Name | Description |
|
|
51
|
+
|---|---|
|
|
52
|
+
| changed | `{ value, originalEvent }` after typing, a step or clearing |
|
|
53
|
+
| cleared | The clear button emptied the field |
|
|
54
|
+
|
|
55
|
+
## Keyboard
|
|
56
|
+
| Key | Action |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Arrow Up / Down | Adds / subtracts `step` within `min` and `max` |
|
|
59
|
+
| Home / End | Sets `min` / `max` when they are defined |
|
|
60
|
+
| Enter | Applies the limits and formats the value |
|
|
61
|
+
| `.` or `,` | Starts the fraction (both work when the locale uses a comma) |
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Input OTP
|
|
2
|
+
|
|
3
|
+
A one-time code in separate cells. Typing moves to the next cell, Backspace and the arrow keys move back, a pasted or SMS-filled code spreads over the cells. The value is one string.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-input-otp formControlName="code" [length]="6" [integerOnly]="true" [groupSize]="3" ariaLabel="Verification code" (completed)="verify($event)" />
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Inputs
|
|
10
|
+
| Name | Description |
|
|
11
|
+
|---|---|
|
|
12
|
+
| length | Number of cells |
|
|
13
|
+
| integerOnly | Accepts digits only and opens the numeric keyboard on phones |
|
|
14
|
+
| mask | Hides the characters like a password |
|
|
15
|
+
| groupSize | Shows a separator after every this many cells (`3` → `123–456`) |
|
|
16
|
+
| autoFocus | Focuses the first cell on load |
|
|
17
|
+
| size | `small`, `medium`, `large` |
|
|
18
|
+
| variant | `outlined` or `filled` |
|
|
19
|
+
| invalid | Red borders; without it the cells follow the form control |
|
|
20
|
+
| disabled | Disables the cells (also from the form control) |
|
|
21
|
+
| readonly | Shows the code, no editing |
|
|
22
|
+
| name | Base `name` of the cells (`name-0`, `name-1`…) |
|
|
23
|
+
| inputId | Id of the first cell, for an outside `<label for>` |
|
|
24
|
+
| ariaLabel | Accessible name of the group; each cell is "Character 1 of 6" (translated) |
|
|
25
|
+
| ariaLabelledBy | Id of the element that names the group |
|
|
26
|
+
| dt | Design tokens of this instance (`inputOtp`); the cells use `formField` |
|
|
27
|
+
| pt | Classes and styles of the parts: `root`, `cell`, `separator` |
|
|
28
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
29
|
+
| unstyled | Removes the tectra styles |
|
|
30
|
+
|
|
31
|
+
## Outputs
|
|
32
|
+
| Name | Description |
|
|
33
|
+
|---|---|
|
|
34
|
+
| completed | Every cell is filled — the full code |
|
|
35
|
+
|
|
36
|
+
## Keyboard
|
|
37
|
+
| Key | Action |
|
|
38
|
+
|---|---|
|
|
39
|
+
| Character | Fills the cell and moves to the next one |
|
|
40
|
+
| Backspace | Clears the cell; on an empty cell clears the previous one and moves there |
|
|
41
|
+
| Delete | Clears the cell |
|
|
42
|
+
| Arrow Left / Right | Moves to the previous / next cell |
|
|
43
|
+
| Home / End | Moves to the first / last cell |
|
|
44
|
+
| Paste | Spreads the code over the cells from the focused one |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# KeyFilter
|
|
2
|
+
|
|
3
|
+
Lets only allowed characters into an `input` or `textarea`: blocks typing, cleans pasted and dropped text. With `validateOnly` it does not block anything and reports a `keyFilter` error to the form instead.
|
|
4
|
+
|
|
5
|
+
| Preset | Allows |
|
|
6
|
+
|---|---|
|
|
7
|
+
| `pint` | digits |
|
|
8
|
+
| `int` | digits and `-` |
|
|
9
|
+
| `pnum` | digits and `.` |
|
|
10
|
+
| `num` | digits, `.` and `-` |
|
|
11
|
+
| `money` | digits, `.`, `,` and spaces |
|
|
12
|
+
| `hex` | `0-9`, `a-f` |
|
|
13
|
+
| `email` | letters, digits, `_ . - @` |
|
|
14
|
+
| `alpha` | letters and `_` |
|
|
15
|
+
| `alphanum` | letters, digits and `_` |
|
|
16
|
+
| `latin` | Latin letters only (+ `keyFilterExtra`) |
|
|
17
|
+
| `positive` | digits and one decimal separator (`.` or `,`) |
|
|
18
|
+
| `nospace` | anything but whitespace |
|
|
19
|
+
|
|
20
|
+
## Inputs
|
|
21
|
+
| Name | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| txKeyFilter | A preset name or a `RegExp` that one character must match |
|
|
24
|
+
| keyFilterExtra | Extra characters allowed on top of the preset, e.g. `'-_ '` |
|
|
25
|
+
| validateOnly | Do not block input; add a `keyFilter` error to the form control when the value has other characters |
|
|
26
|
+
|
|
27
|
+
## Keyboard
|
|
28
|
+
| Key | Action |
|
|
29
|
+
|---|---|
|
|
30
|
+
| Typing | Characters outside the filter are ignored |
|
|
31
|
+
| Paste / drop | The text is inserted without the characters outside the filter |
|
package/knob/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Knob
|
|
2
|
+
|
|
3
|
+
A value on a dial: drag along the ring or use the keyboard. `arc="dial"` leaves a gap at the bottom (270°), `arc="ring"` is a full circle with a handle. `limit` caps the value below `max` and shows the unreachable part of the ring.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-knob formControlName="volume" [step]="5" valueTemplate="{value}%" ariaLabel="Volume" />
|
|
7
|
+
<tx-knob formControlName="quota" arc="ring" [max]="100" [limit]="80" ariaLabel="Storage quota" />
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Inputs
|
|
11
|
+
| Name | Description |
|
|
12
|
+
|---|---|
|
|
13
|
+
| min | Smallest value |
|
|
14
|
+
| max | Largest value of the scale |
|
|
15
|
+
| step | Step of dragging and the arrow keys |
|
|
16
|
+
| limit | Largest value you can set, below `max`; the rest of the ring is marked |
|
|
17
|
+
| size | Width and height in px |
|
|
18
|
+
| strokeWidth | Thickness of the ring, in units of a 100 × 100 box |
|
|
19
|
+
| arc | `dial` (270°, gap at the bottom) or `ring` (full circle from the top) |
|
|
20
|
+
| showValue | Shows the value in the middle |
|
|
21
|
+
| showHandle | Shows a handle at the end of the value; on by default for `ring` |
|
|
22
|
+
| valueTemplate | Text of the value, `{value}` is replaced (formatted for the locale), e.g. `{value}%` |
|
|
23
|
+
| invalid | Red ring; without it the knob follows its form control |
|
|
24
|
+
| disabled | Disables the knob (also from the form control) |
|
|
25
|
+
| readonly | Shows the value, ignores dragging and keys |
|
|
26
|
+
| ariaLabel | Accessible name of the knob |
|
|
27
|
+
| ariaLabelledBy | Id of the element that names the knob |
|
|
28
|
+
| tabindex | Tab order |
|
|
29
|
+
| dt | Design tokens of this instance (`knob`): value, range, limit, text and handle colours |
|
|
30
|
+
| pt | Classes and styles of the parts: `root`, `svg`, `range`, `value`, `handle`, `text` |
|
|
31
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
32
|
+
| unstyled | Removes the tectra styles |
|
|
33
|
+
|
|
34
|
+
## Outputs
|
|
35
|
+
| Name | Description |
|
|
36
|
+
|---|---|
|
|
37
|
+
| changed | `{ value, originalEvent }` while dragging or after a key |
|
|
38
|
+
|
|
39
|
+
## Slots
|
|
40
|
+
| Name | Description |
|
|
41
|
+
|---|---|
|
|
42
|
+
| txKnobValue | `<ng-template txKnobValue let-value>` — own content in the middle |
|
|
43
|
+
|
|
44
|
+
## Keyboard
|
|
45
|
+
| Key | Action |
|
|
46
|
+
|---|---|
|
|
47
|
+
| Arrow Right / Up | Adds `step` |
|
|
48
|
+
| Arrow Left / Down | Subtracts `step` |
|
|
49
|
+
| Page Up / Page Down | Adds / subtracts ten steps |
|
|
50
|
+
| Home / End | `min` / the limit (or `max`) |
|
package/label/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Label
|
|
2
|
+
|
|
3
|
+
Names a field. Three forms: `<tx-label>` above the field, `<tx-float-label>` inside the field that moves up on focus or value, `<tx-ifta-label>` inside the field above the value. Inside the float and ifta labels use a native `<label for>` after the field; they work with `txInput`, `textarea` and `tx-select` (give the select an `inputId`).
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-label for="email" required>Email</tx-label>
|
|
7
|
+
<input txInput id="email" />
|
|
8
|
+
|
|
9
|
+
<tx-float-label variant="on">
|
|
10
|
+
<input txInput id="name" />
|
|
11
|
+
<label for="name">Name</label>
|
|
12
|
+
</tx-float-label>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Inputs
|
|
16
|
+
| Name | Description |
|
|
17
|
+
|---|---|
|
|
18
|
+
| for | `tx-label`: id of the field it names |
|
|
19
|
+
| required | `tx-label`: shows a required mark (also put `required` on the field) |
|
|
20
|
+
| colon | `tx-label`: adds `:` after the text |
|
|
21
|
+
| subtle | `tx-label`: smaller, muted — for filters and dense forms |
|
|
22
|
+
| tooltip | `tx-label`: help icon after the text with this hint |
|
|
23
|
+
| variant | `tx-float-label`: `over` (moves above the field), `in` (moves to the top inside), `on` (sits on the border) |
|
|
24
|
+
|
|
25
|
+
## Keyboard
|
|
26
|
+
| Key | Action |
|
|
27
|
+
|---|---|
|
|
28
|
+
| Tab | Reaches the help icon of a `tx-label` |
|
|
29
|
+
| Click on the label | Focuses the field |
|
package/link/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Link
|
|
2
|
+
|
|
3
|
+
`<tx-link>` shows a URL, an email or a phone number as a link: it builds the `href`, shortens long text, marks search matches and can add a copy button. Web links open in a new tab with `rel="noopener noreferrer"`, an arrow icon and a hidden "opens in a new tab" for screen readers. `<tx-icon-link>` is an icon with text for menus and footers — a router link with the active state, an external link, or a button.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-link link="docs.example.com" [copyable]="true" />
|
|
7
|
+
<tx-link link="ann@example.com" type="email" />
|
|
8
|
+
<tx-icon-link icon="user" text="Profile" routerLink="/profile" />
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
| Name | Description |
|
|
13
|
+
|---|---|
|
|
14
|
+
| link | `tx-link`: URL (without a protocol `https://` is added), email or phone number |
|
|
15
|
+
| type | `tx-link`: `url`, `email` (`mailto:`) or `phone` (`tel:`) |
|
|
16
|
+
| linkText | `tx-link`: own text instead of the link |
|
|
17
|
+
| highlight | `tx-link`: search terms to mark in the text |
|
|
18
|
+
| maxLength | `tx-link`: shortens longer text with `…`; the full text is in the tooltip |
|
|
19
|
+
| routerLink | Router commands; the link stays in the app |
|
|
20
|
+
| target | Own target; web links use `_blank` by default |
|
|
21
|
+
| external | `tx-link`: shows or hides the arrow icon; shown when the link opens a new tab by default |
|
|
22
|
+
| copyable | `tx-link`: adds a button that copies the link |
|
|
23
|
+
| icon | `tx-icon-link`: icon name or icon class |
|
|
24
|
+
| text | `tx-icon-link`: the text |
|
|
25
|
+
| href | `tx-icon-link`: external address, opens in a new tab |
|
|
26
|
+
| exact | `tx-icon-link`: the router link is active only on its exact URL |
|
|
27
|
+
| dt | Design tokens of this instance (`link`, `iconLink`) |
|
|
28
|
+
| pt | Classes and styles of the parts: `root`, `anchor`, `text`, `external`, `copy` (link); `root`, `anchor`, `icon`, `text` (icon link) |
|
|
29
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
30
|
+
| unstyled | Removes the tectra styles |
|
|
31
|
+
|
|
32
|
+
## Outputs
|
|
33
|
+
| Name | Description |
|
|
34
|
+
|---|---|
|
|
35
|
+
| copied | `tx-link`: the link was copied; gives the copied text |
|
|
36
|
+
|
|
37
|
+
## Slots
|
|
38
|
+
| Name | Description |
|
|
39
|
+
|---|---|
|
|
40
|
+
| default | `tx-icon-link`: content after the text, e.g. a badge |
|
|
41
|
+
|
|
42
|
+
## Keyboard
|
|
43
|
+
| Key | Action |
|
|
44
|
+
|---|---|
|
|
45
|
+
| Tab | Reaches the link, then the copy button |
|
|
46
|
+
| Enter | Follows the link |
|
|
47
|
+
| Enter / Space | Copies from the copy button |
|