@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,730 @@
|
|
|
1
|
+
import { CdkConnectedOverlay, CdkOverlayOrigin } from "@angular/cdk/overlay";
|
|
2
|
+
import { TxOverlayAnchor } from "@tectra-ng/core/overlay";
|
|
3
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, booleanAttribute, computed, forwardRef, inject, input, output, signal } from "@angular/core";
|
|
6
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
7
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
8
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
9
|
+
import { TxIcon } from "@tectra-ng/icons";
|
|
10
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
11
|
+
import { TxOptionList, TxSelectBase, foldText, isSelectableRow, readOptionField } from "@tectra-ng/ui/select";
|
|
12
|
+
var TxAutocomplete = class TxAutocomplete extends TxSelectBase {
|
|
13
|
+
suggestions = input([], ...ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []);
|
|
14
|
+
multiple = input(false, {
|
|
15
|
+
...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
|
|
16
|
+
transform: booleanAttribute
|
|
17
|
+
});
|
|
18
|
+
dropdown = input(false, {
|
|
19
|
+
...ngDevMode ? { debugName: "dropdown" } : /* istanbul ignore next */ {},
|
|
20
|
+
transform: booleanAttribute
|
|
21
|
+
});
|
|
22
|
+
dropdownMode = input("blank", ...ngDevMode ? [{ debugName: "dropdownMode" }] : /* istanbul ignore next */ []);
|
|
23
|
+
dropdownIcon = input("chevron-down", ...ngDevMode ? [{ debugName: "dropdownIcon" }] : /* istanbul ignore next */ []);
|
|
24
|
+
forceSelection = input(false, {
|
|
25
|
+
...ngDevMode ? { debugName: "forceSelection" } : /* istanbul ignore next */ {},
|
|
26
|
+
transform: booleanAttribute
|
|
27
|
+
});
|
|
28
|
+
localSearch = input(false, {
|
|
29
|
+
...ngDevMode ? { debugName: "localSearch" } : /* istanbul ignore next */ {},
|
|
30
|
+
transform: booleanAttribute
|
|
31
|
+
});
|
|
32
|
+
delay = input(300, ...ngDevMode ? [{ debugName: "delay" }] : /* istanbul ignore next */ []);
|
|
33
|
+
minLength = input(1, ...ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []);
|
|
34
|
+
completeOnFocus = input(false, {
|
|
35
|
+
...ngDevMode ? { debugName: "completeOnFocus" } : /* istanbul ignore next */ {},
|
|
36
|
+
transform: booleanAttribute
|
|
37
|
+
});
|
|
38
|
+
autoOptionFocus = input(false, {
|
|
39
|
+
...ngDevMode ? { debugName: "autoOptionFocus" } : /* istanbul ignore next */ {},
|
|
40
|
+
transform: booleanAttribute
|
|
41
|
+
});
|
|
42
|
+
showEmptyMessage = input(true, {
|
|
43
|
+
...ngDevMode ? { debugName: "showEmptyMessage" } : /* istanbul ignore next */ {},
|
|
44
|
+
transform: booleanAttribute
|
|
45
|
+
});
|
|
46
|
+
maxlength = input(void 0, ...ngDevMode ? [{ debugName: "maxlength" }] : /* istanbul ignore next */ []);
|
|
47
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
48
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
49
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
50
|
+
unstyled = input(void 0, {
|
|
51
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
52
|
+
transform: optionalBoolean
|
|
53
|
+
});
|
|
54
|
+
completed = output();
|
|
55
|
+
changed = output();
|
|
56
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
57
|
+
passThrough = injectPassThrough("autocomplete", this, this.pt, this.ptOptions);
|
|
58
|
+
source = this.suggestions;
|
|
59
|
+
localQuery = computed(() => this.localSearch() ? this.query().trim() : "", ...ngDevMode ? [{ debugName: "localQuery" }] : /* istanbul ignore next */ []);
|
|
60
|
+
known = signal([], ...ngDevMode ? [{ debugName: "known" }] : /* istanbul ignore next */ []);
|
|
61
|
+
completeTimer = null;
|
|
62
|
+
clearComplete = inject(DestroyRef).onDestroy(() => this.completeTimer && clearTimeout(this.completeTimer));
|
|
63
|
+
selectedValues = computed(() => {
|
|
64
|
+
const value = this.value();
|
|
65
|
+
if (this.multiple()) return Array.isArray(value) ? value : [];
|
|
66
|
+
return value === null || value === void 0 || value === "" ? [] : [value];
|
|
67
|
+
}, ...ngDevMode ? [{ debugName: "selectedValues" }] : /* istanbul ignore next */ []);
|
|
68
|
+
selectedItems = computed(() => {
|
|
69
|
+
const loaded = this.allRows().filter((row) => row.type === "option");
|
|
70
|
+
return this.selectedValues().map((value, index) => loaded.find((item) => this.sameValue(item.value, value)) ?? this.known().find((item) => this.sameValue(item.value, value)) ?? {
|
|
71
|
+
type: "option",
|
|
72
|
+
id: `${this.listboxId}-value-${index}`,
|
|
73
|
+
index: -1,
|
|
74
|
+
label: this.labelOf(value),
|
|
75
|
+
value,
|
|
76
|
+
option: value,
|
|
77
|
+
selected: true,
|
|
78
|
+
disabled: false
|
|
79
|
+
});
|
|
80
|
+
}, ...ngDevMode ? [{ debugName: "selectedItems" }] : /* istanbul ignore next */ []);
|
|
81
|
+
hasValue = computed(() => this.selectedValues().length > 0, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
|
|
82
|
+
showPanel = computed(() => this.isPanelMounted() && (this.rows().length > 0 || this.loading() || this.showEmptyMessage()), ...ngDevMode ? [{ debugName: "showPanel" }] : /* istanbul ignore next */ []);
|
|
83
|
+
tokenStyle = computed(() => toStyleObject(this.dt(), "--tx-select"), ...ngDevMode ? [{ debugName: "tokenStyle" }] : /* istanbul ignore next */ []);
|
|
84
|
+
hostStyle = computed(() => ({
|
|
85
|
+
...this.tokenStyle(),
|
|
86
|
+
...this.passThrough().root?.style
|
|
87
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
88
|
+
panelStyle = computed(() => ({
|
|
89
|
+
...this.tokenStyle(),
|
|
90
|
+
...this.passThrough().panel?.style
|
|
91
|
+
}), ...ngDevMode ? [{ debugName: "panelStyle" }] : /* istanbul ignore next */ []);
|
|
92
|
+
get typingTarget() {
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
writeValue(value) {
|
|
96
|
+
super.writeValue(this.multiple() ? Array.isArray(value) ? value : [] : value);
|
|
97
|
+
if (!this.multiple()) this.query.set(this.labelOf(value));
|
|
98
|
+
}
|
|
99
|
+
open() {
|
|
100
|
+
super.open();
|
|
101
|
+
if (this.autoOptionFocus()) this.resetActive(true);
|
|
102
|
+
else this.activeIndex.set(-1);
|
|
103
|
+
}
|
|
104
|
+
onInput(event) {
|
|
105
|
+
const text = event.target.value;
|
|
106
|
+
this.query.set(text);
|
|
107
|
+
if (!this.multiple() && !this.forceSelection()) {
|
|
108
|
+
const folded = foldText(text.trim());
|
|
109
|
+
const match = folded ? this.allRows().find((row) => isSelectableRow(row) && foldText(row.label) === folded) : void 0;
|
|
110
|
+
if (match) this.remember(match);
|
|
111
|
+
const value = match ? match.value : text || null;
|
|
112
|
+
this.updateValue(value);
|
|
113
|
+
this.changed.emit({
|
|
114
|
+
value,
|
|
115
|
+
option: match?.option ?? null,
|
|
116
|
+
selected: !!match
|
|
117
|
+
});
|
|
118
|
+
} else if (!this.multiple() && !text) this.updateValue(null);
|
|
119
|
+
if (text.trim().length >= this.minLength()) this.search(text);
|
|
120
|
+
else {
|
|
121
|
+
this.cancelSearch();
|
|
122
|
+
this.close();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
onFocus() {
|
|
126
|
+
if (this.completeOnFocus() && !this.isOpen()) this.search(this.query());
|
|
127
|
+
}
|
|
128
|
+
onBlur(event) {
|
|
129
|
+
const next = event.relatedTarget;
|
|
130
|
+
if (next && (this.panel()?.nativeElement.contains(next) || this.box().nativeElement.contains(next))) return;
|
|
131
|
+
this.settleText();
|
|
132
|
+
}
|
|
133
|
+
onDropdownClick(event) {
|
|
134
|
+
event.stopPropagation();
|
|
135
|
+
if (this.isOpen()) this.close();
|
|
136
|
+
else this.search(this.dropdownMode() === "current" ? this.query() : "", true);
|
|
137
|
+
this.focusTrigger();
|
|
138
|
+
}
|
|
139
|
+
onBoxClick(event) {
|
|
140
|
+
if (!event.target.closest(".tx-select__clear, .tx-select__chip-remove, .tx-autocomplete__dropdown")) this.focusTrigger();
|
|
141
|
+
}
|
|
142
|
+
close() {
|
|
143
|
+
this.cancelSearch();
|
|
144
|
+
super.close();
|
|
145
|
+
}
|
|
146
|
+
removeItem(item, event) {
|
|
147
|
+
event.stopPropagation();
|
|
148
|
+
if (this.disabled() || this.readonly()) return;
|
|
149
|
+
const values = this.selectedValues().filter((value) => !this.sameValue(value, item.value));
|
|
150
|
+
this.updateValue(values);
|
|
151
|
+
this.changed.emit({
|
|
152
|
+
value: values,
|
|
153
|
+
option: item.option,
|
|
154
|
+
selected: false
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
isSelected(value) {
|
|
158
|
+
return this.selectedValues().some((selected) => this.sameValue(selected, value));
|
|
159
|
+
}
|
|
160
|
+
activate(item) {
|
|
161
|
+
if (item.disabled) return;
|
|
162
|
+
this.remember(item);
|
|
163
|
+
if (this.multiple()) {
|
|
164
|
+
const values = item.selected ? this.selectedValues() : [...this.selectedValues(), item.value];
|
|
165
|
+
this.updateValue(values);
|
|
166
|
+
this.query.set("");
|
|
167
|
+
this.changed.emit({
|
|
168
|
+
value: values,
|
|
169
|
+
option: item.option,
|
|
170
|
+
selected: true
|
|
171
|
+
});
|
|
172
|
+
} else {
|
|
173
|
+
this.updateValue(item.value);
|
|
174
|
+
this.query.set(item.label);
|
|
175
|
+
this.changed.emit({
|
|
176
|
+
value: item.value,
|
|
177
|
+
option: item.option,
|
|
178
|
+
selected: true
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
this.close();
|
|
182
|
+
this.focusTrigger();
|
|
183
|
+
}
|
|
184
|
+
clearValue() {
|
|
185
|
+
this.query.set("");
|
|
186
|
+
const value = this.multiple() ? [] : null;
|
|
187
|
+
this.updateValue(value);
|
|
188
|
+
this.changed.emit({
|
|
189
|
+
value,
|
|
190
|
+
option: null,
|
|
191
|
+
selected: false
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
onTypeaheadClosed() {}
|
|
195
|
+
handleExtraKey(event) {
|
|
196
|
+
if (event.key === "Enter" && !this.isOpen()) return true;
|
|
197
|
+
if (event.key === "ArrowDown" && !this.isOpen()) {
|
|
198
|
+
event.preventDefault();
|
|
199
|
+
this.search(this.query(), true);
|
|
200
|
+
return true;
|
|
201
|
+
}
|
|
202
|
+
if (event.key === "Backspace" && this.multiple() && !this.query()) {
|
|
203
|
+
const last = this.selectedItems().at(-1);
|
|
204
|
+
if (last) this.removeItem(last, event);
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
if (event.key === "Tab") this.settleText();
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
ignoreBoxClick() {
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
search(query, immediately = false) {
|
|
214
|
+
this.cancelSearch();
|
|
215
|
+
const run = () => {
|
|
216
|
+
this.completeTimer = null;
|
|
217
|
+
this.completed.emit({ query });
|
|
218
|
+
this.resetLazyRange();
|
|
219
|
+
if (!this.isOpen()) this.open();
|
|
220
|
+
};
|
|
221
|
+
if (immediately || this.delay() <= 0) run();
|
|
222
|
+
else this.completeTimer = setTimeout(run, this.delay());
|
|
223
|
+
}
|
|
224
|
+
cancelSearch() {
|
|
225
|
+
if (this.completeTimer) {
|
|
226
|
+
clearTimeout(this.completeTimer);
|
|
227
|
+
this.completeTimer = null;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
settleText() {
|
|
231
|
+
if (this.multiple()) {
|
|
232
|
+
if (this.forceSelection()) this.query.set("");
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
const selected = this.selectedItems()[0];
|
|
236
|
+
if (this.forceSelection() && (!selected || selected.label !== this.query())) {
|
|
237
|
+
const folded = foldText(this.query().trim());
|
|
238
|
+
const match = folded ? this.allRows().find((row) => isSelectableRow(row) && foldText(row.label) === folded) : void 0;
|
|
239
|
+
if (match) {
|
|
240
|
+
this.activate(match);
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
this.query.set("");
|
|
244
|
+
if (this.value() !== null) {
|
|
245
|
+
this.updateValue(null);
|
|
246
|
+
this.changed.emit({
|
|
247
|
+
value: null,
|
|
248
|
+
option: null,
|
|
249
|
+
selected: false
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
remember(item) {
|
|
255
|
+
this.known.update((known) => [...known.filter((entry) => !this.sameValue(entry.value, item.value)), item]);
|
|
256
|
+
}
|
|
257
|
+
labelOf(value) {
|
|
258
|
+
if (value === null || value === void 0) return "";
|
|
259
|
+
const item = this.allRows().find((row) => row.type === "option" && this.sameValue(row.value, value)) ?? this.known().find((entry) => this.sameValue(entry.value, value));
|
|
260
|
+
if (item) return item.label;
|
|
261
|
+
return typeof value === "object" ? String(readOptionField(value, this.optionLabel()) ?? "") : String(value);
|
|
262
|
+
}
|
|
263
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
264
|
+
minVersion: "12.0.0",
|
|
265
|
+
version: "22.2.3",
|
|
266
|
+
ngImport: i0,
|
|
267
|
+
type: TxAutocomplete,
|
|
268
|
+
deps: null,
|
|
269
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
270
|
+
});
|
|
271
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
272
|
+
minVersion: "17.0.0",
|
|
273
|
+
version: "22.2.3",
|
|
274
|
+
type: TxAutocomplete,
|
|
275
|
+
isStandalone: true,
|
|
276
|
+
selector: "tx-autocomplete",
|
|
277
|
+
inputs: {
|
|
278
|
+
suggestions: {
|
|
279
|
+
classPropertyName: "suggestions",
|
|
280
|
+
publicName: "suggestions",
|
|
281
|
+
isSignal: true,
|
|
282
|
+
isRequired: false,
|
|
283
|
+
transformFunction: null
|
|
284
|
+
},
|
|
285
|
+
multiple: {
|
|
286
|
+
classPropertyName: "multiple",
|
|
287
|
+
publicName: "multiple",
|
|
288
|
+
isSignal: true,
|
|
289
|
+
isRequired: false,
|
|
290
|
+
transformFunction: null
|
|
291
|
+
},
|
|
292
|
+
dropdown: {
|
|
293
|
+
classPropertyName: "dropdown",
|
|
294
|
+
publicName: "dropdown",
|
|
295
|
+
isSignal: true,
|
|
296
|
+
isRequired: false,
|
|
297
|
+
transformFunction: null
|
|
298
|
+
},
|
|
299
|
+
dropdownMode: {
|
|
300
|
+
classPropertyName: "dropdownMode",
|
|
301
|
+
publicName: "dropdownMode",
|
|
302
|
+
isSignal: true,
|
|
303
|
+
isRequired: false,
|
|
304
|
+
transformFunction: null
|
|
305
|
+
},
|
|
306
|
+
dropdownIcon: {
|
|
307
|
+
classPropertyName: "dropdownIcon",
|
|
308
|
+
publicName: "dropdownIcon",
|
|
309
|
+
isSignal: true,
|
|
310
|
+
isRequired: false,
|
|
311
|
+
transformFunction: null
|
|
312
|
+
},
|
|
313
|
+
forceSelection: {
|
|
314
|
+
classPropertyName: "forceSelection",
|
|
315
|
+
publicName: "forceSelection",
|
|
316
|
+
isSignal: true,
|
|
317
|
+
isRequired: false,
|
|
318
|
+
transformFunction: null
|
|
319
|
+
},
|
|
320
|
+
localSearch: {
|
|
321
|
+
classPropertyName: "localSearch",
|
|
322
|
+
publicName: "localSearch",
|
|
323
|
+
isSignal: true,
|
|
324
|
+
isRequired: false,
|
|
325
|
+
transformFunction: null
|
|
326
|
+
},
|
|
327
|
+
delay: {
|
|
328
|
+
classPropertyName: "delay",
|
|
329
|
+
publicName: "delay",
|
|
330
|
+
isSignal: true,
|
|
331
|
+
isRequired: false,
|
|
332
|
+
transformFunction: null
|
|
333
|
+
},
|
|
334
|
+
minLength: {
|
|
335
|
+
classPropertyName: "minLength",
|
|
336
|
+
publicName: "minLength",
|
|
337
|
+
isSignal: true,
|
|
338
|
+
isRequired: false,
|
|
339
|
+
transformFunction: null
|
|
340
|
+
},
|
|
341
|
+
completeOnFocus: {
|
|
342
|
+
classPropertyName: "completeOnFocus",
|
|
343
|
+
publicName: "completeOnFocus",
|
|
344
|
+
isSignal: true,
|
|
345
|
+
isRequired: false,
|
|
346
|
+
transformFunction: null
|
|
347
|
+
},
|
|
348
|
+
autoOptionFocus: {
|
|
349
|
+
classPropertyName: "autoOptionFocus",
|
|
350
|
+
publicName: "autoOptionFocus",
|
|
351
|
+
isSignal: true,
|
|
352
|
+
isRequired: false,
|
|
353
|
+
transformFunction: null
|
|
354
|
+
},
|
|
355
|
+
showEmptyMessage: {
|
|
356
|
+
classPropertyName: "showEmptyMessage",
|
|
357
|
+
publicName: "showEmptyMessage",
|
|
358
|
+
isSignal: true,
|
|
359
|
+
isRequired: false,
|
|
360
|
+
transformFunction: null
|
|
361
|
+
},
|
|
362
|
+
maxlength: {
|
|
363
|
+
classPropertyName: "maxlength",
|
|
364
|
+
publicName: "maxlength",
|
|
365
|
+
isSignal: true,
|
|
366
|
+
isRequired: false,
|
|
367
|
+
transformFunction: null
|
|
368
|
+
},
|
|
369
|
+
dt: {
|
|
370
|
+
classPropertyName: "dt",
|
|
371
|
+
publicName: "dt",
|
|
372
|
+
isSignal: true,
|
|
373
|
+
isRequired: false,
|
|
374
|
+
transformFunction: null
|
|
375
|
+
},
|
|
376
|
+
pt: {
|
|
377
|
+
classPropertyName: "pt",
|
|
378
|
+
publicName: "pt",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
},
|
|
383
|
+
ptOptions: {
|
|
384
|
+
classPropertyName: "ptOptions",
|
|
385
|
+
publicName: "ptOptions",
|
|
386
|
+
isSignal: true,
|
|
387
|
+
isRequired: false,
|
|
388
|
+
transformFunction: null
|
|
389
|
+
},
|
|
390
|
+
unstyled: {
|
|
391
|
+
classPropertyName: "unstyled",
|
|
392
|
+
publicName: "unstyled",
|
|
393
|
+
isSignal: true,
|
|
394
|
+
isRequired: false,
|
|
395
|
+
transformFunction: null
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
outputs: {
|
|
399
|
+
completed: "completed",
|
|
400
|
+
changed: "changed"
|
|
401
|
+
},
|
|
402
|
+
host: {
|
|
403
|
+
properties: {
|
|
404
|
+
"class": "passThrough().root?.class",
|
|
405
|
+
"style": "hostStyle()",
|
|
406
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
407
|
+
"attr.data-size": "size()",
|
|
408
|
+
"attr.data-variant": "variant()",
|
|
409
|
+
"class.tx-autocomplete--open": "isOpen()",
|
|
410
|
+
"class.tx-autocomplete--disabled": "disabled()",
|
|
411
|
+
"class.tx-autocomplete--invalid": "isInvalid()",
|
|
412
|
+
"class.tx-autocomplete--readonly": "readonly()",
|
|
413
|
+
"class.tx-autocomplete--filled": "hasValue() || !!query()",
|
|
414
|
+
"class.tx-autocomplete--multiple": "multiple()"
|
|
415
|
+
},
|
|
416
|
+
classAttribute: "tx-autocomplete"
|
|
417
|
+
},
|
|
418
|
+
providers: [{
|
|
419
|
+
provide: NG_VALUE_ACCESSOR,
|
|
420
|
+
useExisting: forwardRef(() => TxAutocomplete),
|
|
421
|
+
multi: true
|
|
422
|
+
}],
|
|
423
|
+
usesInheritance: true,
|
|
424
|
+
ngImport: i0,
|
|
425
|
+
template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- a click on the box focuses its input, which takes the keys -->\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 @if (multiple()) {\n <span class=\"tx-select__chips tx-autocomplete__chips\">\n @for (item of selectedItems(); track item.id) {\n <span class=\"tx-select__chip\" [class]=\"passThrough().chip?.class\" [style]=\"passThrough().chip?.style\">\n <span class=\"tx-select__chip-label\">\n @if (optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item.option, selected: true, disabled: false, index: item.index }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n @if (!disabled() && !readonly()) {\n <span class=\"tx-select__chip-remove\" aria-hidden=\"true\" (click)=\"removeItem(item, $event)\">\n <tx-icon [name]=\"'times'\" />\n </span>\n }\n </span>\n }\n <ng-container [ngTemplateOutlet]=\"field\" />\n </span>\n } @else {\n <ng-container [ngTemplateOutlet]=\"field\" />\n }\n @if (canClear() || (!multiple() && showClear() && !!query() && !disabled() && !readonly())) {\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 @if (loading()) {\n <span class=\"tx-select__dropdown\" aria-hidden=\"true\" [class]=\"passThrough().dropdown?.class\" [style]=\"passThrough().dropdown?.style\">\n <tx-icon class=\"tx-select__spinner\" [name]=\"'spinner'\" />\n </span>\n }\n @if (dropdown()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-autocomplete__dropdown\"\n [class]=\"passThrough().dropdownButton?.class\"\n [style]=\"passThrough().dropdownButton?.style\"\n [attr.aria-label]=\"translations().showOptions\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"onDropdownClick($event)\"\n >\n <tx-icon class=\"tx-select__chevron\" [name]=\"dropdownIcon()\" />\n </button>\n }\n</div>\n\n<ng-template #field>\n <input\n #trigger\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n class=\"tx-select__trigger tx-select__input\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-expanded]=\"isOpen() && showPanel()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [placeholder]=\"multiple() && hasValue() ? '' : placeholder()\"\n [value]=\"query()\"\n [readOnly]=\"readonly()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur($event)\"\n />\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"showPanel()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"viewportMargin()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"onPanelDetach()\"\n>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- the panel only listens to keys and focus that bubble from its actions -->\n <div\n #panel\n class=\"tx-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-size]=\"size()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (keydown)=\"onPanelKeydown($event)\"\n (mousedown)=\"onPanelMousedown($event)\"\n (focusout)=\"onPanelFocusOut($event)\"\n >\n @if (headerTemplate(); as template) {\n <div class=\"tx-select__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n <tx-option-list\n [rows]=\"rows()\"\n [listboxId]=\"listboxId\"\n [activeIndex]=\"activeIndex()\"\n [multiple]=\"multiple()\"\n [checkmark]=\"false\"\n [virtualScroll]=\"virtualScroll()\"\n [itemSize]=\"virtualScrollItemSize()\"\n [scrollHeight]=\"scrollHeight()\"\n [loading]=\"loading()\"\n [query]=\"query()\"\n [emptyText]=\"emptyText()\"\n [loadingText]=\"translations().loading\"\n [optionTemplate]=\"optionTemplate()?.templateRef\"\n [groupTemplate]=\"groupTemplate()?.templateRef\"\n [emptyTemplate]=\"emptyTemplate()?.templateRef\"\n [emptyFilterTemplate]=\"emptyFilterTemplate()?.templateRef\"\n [passThrough]=\"passThrough()\"\n [unstyled]=\"isUnstyled()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n />\n @if (footerTemplate(); as template) {\n <div class=\"tx-select__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n </div>\n</ng-template>\n",
|
|
426
|
+
styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-autocomplete--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-autocomplete--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-autocomplete--disabled,.tx-autocomplete--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-autocomplete--disabled,.tx-autocomplete--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-autocomplete--readonly .tx-select__box,:host([data-styled]).tx-autocomplete--readonly .tx-select__box:hover{background:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-autocomplete--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-autocomplete--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-autocomplete--disabled .tx-select__box{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-autocomplete--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-autocomplete--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}.tx-select__chips{display:flex;flex-wrap:wrap;align-items:center}.tx-select__chip{display:inline-flex;align-items:center;max-width:100%}.tx-select__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__chips{gap:var(--tx-select-chip-gap);margin-block:calc((1lh - var(--tx-select-chip-font-size) * 1.5 - 2 * var(--tx-select-chip-padding-y)) / 2);white-space:normal}:host([data-styled]) .tx-select__chip{gap:var(--tx-select-chip-gap);padding:var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-end) var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-start);border-radius:var(--tx-select-chip-border-radius);background:var(--tx-select-chip-background);color:var(--tx-select-chip-color);font-size:var(--tx-select-chip-font-size);line-height:1.5}:host([data-styled]) .tx-select__chip-remove{transition:color var(--tx-motion-duration) var(--tx-motion-easing);font-size:var(--tx-select-chip-remove-size);display:inline-grid;place-items:center;border-radius:var(--tx-radius-full);color:var(--tx-select-chip-remove-color);cursor:pointer}:host([data-styled]) .tx-select__chip-remove:hover{color:var(--tx-select-chip-remove-hover-color)}:host .tx-select__box{cursor:text}.tx-autocomplete__chips{flex:1 1 auto;min-width:0}.tx-autocomplete__chips .tx-select__input{flex:1 1 64px;min-width:64px}:host([data-styled]) .tx-autocomplete__dropdown{display:grid;flex:none;place-items:center;align-self:stretch;width:var(--tx-select-dropdown-width);margin-block:calc(-1 * var(--_py));padding:0;border:none;border-inline-start:1px solid var(--tx-form-field-border-color);border-start-end-radius:calc(var(--tx-form-field-border-radius) - 1px);border-end-end-radius:calc(var(--tx-form-field-border-radius) - 1px);background:var(--tx-select-dropdown-button-background);color:var(--tx-select-dropdown-button-color);font-size:var(--tx-form-field-font-size);cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-autocomplete__dropdown:enabled:hover{background:var(--tx-select-dropdown-button-hover-background);color:var(--tx-select-dropdown-button-hover-color)}:host([data-styled]) .tx-autocomplete__dropdown:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-styled].tx-autocomplete--multiple) .tx-select__box{padding-block:calc(var(--_py) / 2 + .75px);padding-inline-start:calc(var(--_px) / 3)}:host([data-styled].tx-autocomplete--multiple) .tx-autocomplete__chips{margin-block:0;gap:calc(var(--_px) / 3)}\n"],
|
|
427
|
+
dependencies: [
|
|
428
|
+
{
|
|
429
|
+
kind: "directive",
|
|
430
|
+
type: CdkOverlayOrigin,
|
|
431
|
+
selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",
|
|
432
|
+
exportAs: ["cdkOverlayOrigin"]
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
kind: "directive",
|
|
436
|
+
type: CdkConnectedOverlay,
|
|
437
|
+
selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",
|
|
438
|
+
inputs: [
|
|
439
|
+
"cdkConnectedOverlayOrigin",
|
|
440
|
+
"cdkConnectedOverlayPositions",
|
|
441
|
+
"cdkConnectedOverlayPositionStrategy",
|
|
442
|
+
"cdkConnectedOverlayOffsetX",
|
|
443
|
+
"cdkConnectedOverlayOffsetY",
|
|
444
|
+
"cdkConnectedOverlayWidth",
|
|
445
|
+
"cdkConnectedOverlayHeight",
|
|
446
|
+
"cdkConnectedOverlayMinWidth",
|
|
447
|
+
"cdkConnectedOverlayMinHeight",
|
|
448
|
+
"cdkConnectedOverlayBackdropClass",
|
|
449
|
+
"cdkConnectedOverlayPanelClass",
|
|
450
|
+
"cdkConnectedOverlayViewportMargin",
|
|
451
|
+
"cdkConnectedOverlayScrollStrategy",
|
|
452
|
+
"cdkConnectedOverlayOpen",
|
|
453
|
+
"cdkConnectedOverlayDisableClose",
|
|
454
|
+
"cdkConnectedOverlayTransformOriginOn",
|
|
455
|
+
"cdkConnectedOverlayHasBackdrop",
|
|
456
|
+
"cdkConnectedOverlayLockPosition",
|
|
457
|
+
"cdkConnectedOverlayFlexibleDimensions",
|
|
458
|
+
"cdkConnectedOverlayGrowAfterOpen",
|
|
459
|
+
"cdkConnectedOverlayPush",
|
|
460
|
+
"cdkConnectedOverlayDisposeOnNavigation",
|
|
461
|
+
"cdkConnectedOverlayUsePopover",
|
|
462
|
+
"cdkConnectedOverlayMatchWidth",
|
|
463
|
+
"cdkConnectedOverlay"
|
|
464
|
+
],
|
|
465
|
+
outputs: [
|
|
466
|
+
"backdropClick",
|
|
467
|
+
"positionChange",
|
|
468
|
+
"attach",
|
|
469
|
+
"detach",
|
|
470
|
+
"overlayKeydown",
|
|
471
|
+
"overlayOutsideClick"
|
|
472
|
+
],
|
|
473
|
+
exportAs: ["cdkConnectedOverlay"]
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
kind: "directive",
|
|
477
|
+
type: TxOverlayAnchor,
|
|
478
|
+
selector: "[cdkConnectedOverlay][txOverlayAnchor]"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
kind: "directive",
|
|
482
|
+
type: NgTemplateOutlet,
|
|
483
|
+
selector: "[ngTemplateOutlet]",
|
|
484
|
+
inputs: [
|
|
485
|
+
"ngTemplateOutletContext",
|
|
486
|
+
"ngTemplateOutlet",
|
|
487
|
+
"ngTemplateOutletInjector"
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
kind: "component",
|
|
492
|
+
type: TxIcon,
|
|
493
|
+
selector: "tx-icon",
|
|
494
|
+
inputs: ["name"]
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
kind: "component",
|
|
498
|
+
type: TxOptionList,
|
|
499
|
+
selector: "tx-option-list",
|
|
500
|
+
inputs: [
|
|
501
|
+
"rows",
|
|
502
|
+
"listboxId",
|
|
503
|
+
"activeIndex",
|
|
504
|
+
"multiple",
|
|
505
|
+
"checkbox",
|
|
506
|
+
"checkmark",
|
|
507
|
+
"virtualScroll",
|
|
508
|
+
"itemSize",
|
|
509
|
+
"scrollHeight",
|
|
510
|
+
"loading",
|
|
511
|
+
"query",
|
|
512
|
+
"emptyText",
|
|
513
|
+
"loadingText",
|
|
514
|
+
"optionTemplate",
|
|
515
|
+
"groupTemplate",
|
|
516
|
+
"emptyTemplate",
|
|
517
|
+
"emptyFilterTemplate",
|
|
518
|
+
"passThrough",
|
|
519
|
+
"unstyled",
|
|
520
|
+
"focusable",
|
|
521
|
+
"disabled",
|
|
522
|
+
"ariaLabel",
|
|
523
|
+
"ariaLabelledBy",
|
|
524
|
+
"ariaDescribedBy",
|
|
525
|
+
"ariaInvalid"
|
|
526
|
+
],
|
|
527
|
+
outputs: [
|
|
528
|
+
"optionClick",
|
|
529
|
+
"optionHover",
|
|
530
|
+
"rangeChange",
|
|
531
|
+
"listKeydown",
|
|
532
|
+
"listFocus",
|
|
533
|
+
"listBlur"
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
541
|
+
minVersion: "12.0.0",
|
|
542
|
+
version: "22.2.3",
|
|
543
|
+
ngImport: i0,
|
|
544
|
+
type: TxAutocomplete,
|
|
545
|
+
decorators: [{
|
|
546
|
+
type: Component,
|
|
547
|
+
args: [{
|
|
548
|
+
selector: "tx-autocomplete",
|
|
549
|
+
imports: [
|
|
550
|
+
CdkOverlayOrigin,
|
|
551
|
+
CdkConnectedOverlay,
|
|
552
|
+
TxOverlayAnchor,
|
|
553
|
+
NgTemplateOutlet,
|
|
554
|
+
TxIcon,
|
|
555
|
+
TxOptionList
|
|
556
|
+
],
|
|
557
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
558
|
+
providers: [{
|
|
559
|
+
provide: NG_VALUE_ACCESSOR,
|
|
560
|
+
useExisting: forwardRef(() => TxAutocomplete),
|
|
561
|
+
multi: true
|
|
562
|
+
}],
|
|
563
|
+
host: {
|
|
564
|
+
class: "tx-autocomplete",
|
|
565
|
+
"[class]": "passThrough().root?.class",
|
|
566
|
+
"[style]": "hostStyle()",
|
|
567
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
568
|
+
"[attr.data-size]": "size()",
|
|
569
|
+
"[attr.data-variant]": "variant()",
|
|
570
|
+
"[class.tx-autocomplete--open]": "isOpen()",
|
|
571
|
+
"[class.tx-autocomplete--disabled]": "disabled()",
|
|
572
|
+
"[class.tx-autocomplete--invalid]": "isInvalid()",
|
|
573
|
+
"[class.tx-autocomplete--readonly]": "readonly()",
|
|
574
|
+
"[class.tx-autocomplete--filled]": "hasValue() || !!query()",
|
|
575
|
+
"[class.tx-autocomplete--multiple]": "multiple()"
|
|
576
|
+
},
|
|
577
|
+
template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- a click on the box focuses its input, which takes the keys -->\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 @if (multiple()) {\n <span class=\"tx-select__chips tx-autocomplete__chips\">\n @for (item of selectedItems(); track item.id) {\n <span class=\"tx-select__chip\" [class]=\"passThrough().chip?.class\" [style]=\"passThrough().chip?.style\">\n <span class=\"tx-select__chip-label\">\n @if (optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item.option, selected: true, disabled: false, index: item.index }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n @if (!disabled() && !readonly()) {\n <span class=\"tx-select__chip-remove\" aria-hidden=\"true\" (click)=\"removeItem(item, $event)\">\n <tx-icon [name]=\"'times'\" />\n </span>\n }\n </span>\n }\n <ng-container [ngTemplateOutlet]=\"field\" />\n </span>\n } @else {\n <ng-container [ngTemplateOutlet]=\"field\" />\n }\n @if (canClear() || (!multiple() && showClear() && !!query() && !disabled() && !readonly())) {\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 @if (loading()) {\n <span class=\"tx-select__dropdown\" aria-hidden=\"true\" [class]=\"passThrough().dropdown?.class\" [style]=\"passThrough().dropdown?.style\">\n <tx-icon class=\"tx-select__spinner\" [name]=\"'spinner'\" />\n </span>\n }\n @if (dropdown()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-autocomplete__dropdown\"\n [class]=\"passThrough().dropdownButton?.class\"\n [style]=\"passThrough().dropdownButton?.style\"\n [attr.aria-label]=\"translations().showOptions\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"onDropdownClick($event)\"\n >\n <tx-icon class=\"tx-select__chevron\" [name]=\"dropdownIcon()\" />\n </button>\n }\n</div>\n\n<ng-template #field>\n <input\n #trigger\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n class=\"tx-select__trigger tx-select__input\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-expanded]=\"isOpen() && showPanel()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [placeholder]=\"multiple() && hasValue() ? '' : placeholder()\"\n [value]=\"query()\"\n [readOnly]=\"readonly()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur($event)\"\n />\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"showPanel()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"viewportMargin()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"onPanelDetach()\"\n>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- the panel only listens to keys and focus that bubble from its actions -->\n <div\n #panel\n class=\"tx-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-size]=\"size()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (keydown)=\"onPanelKeydown($event)\"\n (mousedown)=\"onPanelMousedown($event)\"\n (focusout)=\"onPanelFocusOut($event)\"\n >\n @if (headerTemplate(); as template) {\n <div class=\"tx-select__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n <tx-option-list\n [rows]=\"rows()\"\n [listboxId]=\"listboxId\"\n [activeIndex]=\"activeIndex()\"\n [multiple]=\"multiple()\"\n [checkmark]=\"false\"\n [virtualScroll]=\"virtualScroll()\"\n [itemSize]=\"virtualScrollItemSize()\"\n [scrollHeight]=\"scrollHeight()\"\n [loading]=\"loading()\"\n [query]=\"query()\"\n [emptyText]=\"emptyText()\"\n [loadingText]=\"translations().loading\"\n [optionTemplate]=\"optionTemplate()?.templateRef\"\n [groupTemplate]=\"groupTemplate()?.templateRef\"\n [emptyTemplate]=\"emptyTemplate()?.templateRef\"\n [emptyFilterTemplate]=\"emptyFilterTemplate()?.templateRef\"\n [passThrough]=\"passThrough()\"\n [unstyled]=\"isUnstyled()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n />\n @if (footerTemplate(); as template) {\n <div class=\"tx-select__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n </div>\n</ng-template>\n",
|
|
578
|
+
styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-autocomplete--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-autocomplete--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-autocomplete--disabled,.tx-autocomplete--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-autocomplete--disabled,.tx-autocomplete--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-autocomplete--readonly .tx-select__box,:host([data-styled]).tx-autocomplete--readonly .tx-select__box:hover{background:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-autocomplete--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-autocomplete--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-autocomplete--disabled .tx-select__box{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-autocomplete--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-autocomplete--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}.tx-select__chips{display:flex;flex-wrap:wrap;align-items:center}.tx-select__chip{display:inline-flex;align-items:center;max-width:100%}.tx-select__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__chips{gap:var(--tx-select-chip-gap);margin-block:calc((1lh - var(--tx-select-chip-font-size) * 1.5 - 2 * var(--tx-select-chip-padding-y)) / 2);white-space:normal}:host([data-styled]) .tx-select__chip{gap:var(--tx-select-chip-gap);padding:var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-end) var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-start);border-radius:var(--tx-select-chip-border-radius);background:var(--tx-select-chip-background);color:var(--tx-select-chip-color);font-size:var(--tx-select-chip-font-size);line-height:1.5}:host([data-styled]) .tx-select__chip-remove{transition:color var(--tx-motion-duration) var(--tx-motion-easing);font-size:var(--tx-select-chip-remove-size);display:inline-grid;place-items:center;border-radius:var(--tx-radius-full);color:var(--tx-select-chip-remove-color);cursor:pointer}:host([data-styled]) .tx-select__chip-remove:hover{color:var(--tx-select-chip-remove-hover-color)}:host .tx-select__box{cursor:text}.tx-autocomplete__chips{flex:1 1 auto;min-width:0}.tx-autocomplete__chips .tx-select__input{flex:1 1 64px;min-width:64px}:host([data-styled]) .tx-autocomplete__dropdown{display:grid;flex:none;place-items:center;align-self:stretch;width:var(--tx-select-dropdown-width);margin-block:calc(-1 * var(--_py));padding:0;border:none;border-inline-start:1px solid var(--tx-form-field-border-color);border-start-end-radius:calc(var(--tx-form-field-border-radius) - 1px);border-end-end-radius:calc(var(--tx-form-field-border-radius) - 1px);background:var(--tx-select-dropdown-button-background);color:var(--tx-select-dropdown-button-color);font-size:var(--tx-form-field-font-size);cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-autocomplete__dropdown:enabled:hover{background:var(--tx-select-dropdown-button-hover-background);color:var(--tx-select-dropdown-button-hover-color)}:host([data-styled]) .tx-autocomplete__dropdown:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-styled].tx-autocomplete--multiple) .tx-select__box{padding-block:calc(var(--_py) / 2 + .75px);padding-inline-start:calc(var(--_px) / 3)}:host([data-styled].tx-autocomplete--multiple) .tx-autocomplete__chips{margin-block:0;gap:calc(var(--_px) / 3)}\n"]
|
|
579
|
+
}]
|
|
580
|
+
}],
|
|
581
|
+
propDecorators: {
|
|
582
|
+
suggestions: [{
|
|
583
|
+
type: i0.Input,
|
|
584
|
+
args: [{
|
|
585
|
+
isSignal: true,
|
|
586
|
+
alias: "suggestions",
|
|
587
|
+
required: false
|
|
588
|
+
}]
|
|
589
|
+
}],
|
|
590
|
+
multiple: [{
|
|
591
|
+
type: i0.Input,
|
|
592
|
+
args: [{
|
|
593
|
+
isSignal: true,
|
|
594
|
+
alias: "multiple",
|
|
595
|
+
required: false
|
|
596
|
+
}]
|
|
597
|
+
}],
|
|
598
|
+
dropdown: [{
|
|
599
|
+
type: i0.Input,
|
|
600
|
+
args: [{
|
|
601
|
+
isSignal: true,
|
|
602
|
+
alias: "dropdown",
|
|
603
|
+
required: false
|
|
604
|
+
}]
|
|
605
|
+
}],
|
|
606
|
+
dropdownMode: [{
|
|
607
|
+
type: i0.Input,
|
|
608
|
+
args: [{
|
|
609
|
+
isSignal: true,
|
|
610
|
+
alias: "dropdownMode",
|
|
611
|
+
required: false
|
|
612
|
+
}]
|
|
613
|
+
}],
|
|
614
|
+
dropdownIcon: [{
|
|
615
|
+
type: i0.Input,
|
|
616
|
+
args: [{
|
|
617
|
+
isSignal: true,
|
|
618
|
+
alias: "dropdownIcon",
|
|
619
|
+
required: false
|
|
620
|
+
}]
|
|
621
|
+
}],
|
|
622
|
+
forceSelection: [{
|
|
623
|
+
type: i0.Input,
|
|
624
|
+
args: [{
|
|
625
|
+
isSignal: true,
|
|
626
|
+
alias: "forceSelection",
|
|
627
|
+
required: false
|
|
628
|
+
}]
|
|
629
|
+
}],
|
|
630
|
+
localSearch: [{
|
|
631
|
+
type: i0.Input,
|
|
632
|
+
args: [{
|
|
633
|
+
isSignal: true,
|
|
634
|
+
alias: "localSearch",
|
|
635
|
+
required: false
|
|
636
|
+
}]
|
|
637
|
+
}],
|
|
638
|
+
delay: [{
|
|
639
|
+
type: i0.Input,
|
|
640
|
+
args: [{
|
|
641
|
+
isSignal: true,
|
|
642
|
+
alias: "delay",
|
|
643
|
+
required: false
|
|
644
|
+
}]
|
|
645
|
+
}],
|
|
646
|
+
minLength: [{
|
|
647
|
+
type: i0.Input,
|
|
648
|
+
args: [{
|
|
649
|
+
isSignal: true,
|
|
650
|
+
alias: "minLength",
|
|
651
|
+
required: false
|
|
652
|
+
}]
|
|
653
|
+
}],
|
|
654
|
+
completeOnFocus: [{
|
|
655
|
+
type: i0.Input,
|
|
656
|
+
args: [{
|
|
657
|
+
isSignal: true,
|
|
658
|
+
alias: "completeOnFocus",
|
|
659
|
+
required: false
|
|
660
|
+
}]
|
|
661
|
+
}],
|
|
662
|
+
autoOptionFocus: [{
|
|
663
|
+
type: i0.Input,
|
|
664
|
+
args: [{
|
|
665
|
+
isSignal: true,
|
|
666
|
+
alias: "autoOptionFocus",
|
|
667
|
+
required: false
|
|
668
|
+
}]
|
|
669
|
+
}],
|
|
670
|
+
showEmptyMessage: [{
|
|
671
|
+
type: i0.Input,
|
|
672
|
+
args: [{
|
|
673
|
+
isSignal: true,
|
|
674
|
+
alias: "showEmptyMessage",
|
|
675
|
+
required: false
|
|
676
|
+
}]
|
|
677
|
+
}],
|
|
678
|
+
maxlength: [{
|
|
679
|
+
type: i0.Input,
|
|
680
|
+
args: [{
|
|
681
|
+
isSignal: true,
|
|
682
|
+
alias: "maxlength",
|
|
683
|
+
required: false
|
|
684
|
+
}]
|
|
685
|
+
}],
|
|
686
|
+
dt: [{
|
|
687
|
+
type: i0.Input,
|
|
688
|
+
args: [{
|
|
689
|
+
isSignal: true,
|
|
690
|
+
alias: "dt",
|
|
691
|
+
required: false
|
|
692
|
+
}]
|
|
693
|
+
}],
|
|
694
|
+
pt: [{
|
|
695
|
+
type: i0.Input,
|
|
696
|
+
args: [{
|
|
697
|
+
isSignal: true,
|
|
698
|
+
alias: "pt",
|
|
699
|
+
required: false
|
|
700
|
+
}]
|
|
701
|
+
}],
|
|
702
|
+
ptOptions: [{
|
|
703
|
+
type: i0.Input,
|
|
704
|
+
args: [{
|
|
705
|
+
isSignal: true,
|
|
706
|
+
alias: "ptOptions",
|
|
707
|
+
required: false
|
|
708
|
+
}]
|
|
709
|
+
}],
|
|
710
|
+
unstyled: [{
|
|
711
|
+
type: i0.Input,
|
|
712
|
+
args: [{
|
|
713
|
+
isSignal: true,
|
|
714
|
+
alias: "unstyled",
|
|
715
|
+
required: false
|
|
716
|
+
}]
|
|
717
|
+
}],
|
|
718
|
+
completed: [{
|
|
719
|
+
type: i0.Output,
|
|
720
|
+
args: ["completed"]
|
|
721
|
+
}],
|
|
722
|
+
changed: [{
|
|
723
|
+
type: i0.Output,
|
|
724
|
+
args: ["changed"]
|
|
725
|
+
}]
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
export { TxAutocomplete };
|
|
729
|
+
|
|
730
|
+
//# sourceMappingURL=tectra-ng-ui-autocomplete.mjs.map
|