@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,275 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { InjectionToken, Provider, Signal, TemplateRef } from "@angular/core";
|
|
3
|
+
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
4
|
+
import { TxPassThroughOptions, TxResolvedPassThrough } from "@tectra-ng/core/config";
|
|
5
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
export type TxTooltipEvent = 'hover' | 'focus' | 'both' | 'manual';
|
|
7
|
+
export type TxTooltipPart = 'root' | 'content' | 'arrow';
|
|
8
|
+
export interface TxTooltipContext<TData = unknown> {
|
|
9
|
+
$implicit: TData;
|
|
10
|
+
close: () => void;
|
|
11
|
+
}
|
|
12
|
+
export type TxTooltipContent = string | number | TemplateRef<TxTooltipContext> | null | undefined;
|
|
13
|
+
export interface TxTooltipOptions {
|
|
14
|
+
placement?: TxPlacement;
|
|
15
|
+
event?: TxTooltipEvent;
|
|
16
|
+
showDelay?: number;
|
|
17
|
+
hideDelay?: number;
|
|
18
|
+
life?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
arrow?: boolean;
|
|
21
|
+
interactive?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const TX_TOOLTIP_DEFAULTS: {
|
|
24
|
+
readonly placement: "top";
|
|
25
|
+
readonly event: "both";
|
|
26
|
+
readonly showDelay: 0;
|
|
27
|
+
readonly hideDelay: 0;
|
|
28
|
+
readonly offset: 3.5;
|
|
29
|
+
readonly arrow: true;
|
|
30
|
+
readonly interactive: false;
|
|
31
|
+
};
|
|
32
|
+
export declare const TX_TOOLTIP_OPTIONS: InjectionToken<TxTooltipOptions>;
|
|
33
|
+
export declare function provideTxTooltip(options: TxTooltipOptions): Provider;
|
|
34
|
+
export interface TxTooltipHandle {
|
|
35
|
+
hideNow(): void;
|
|
36
|
+
}
|
|
37
|
+
export declare class TxTooltipRegistry {
|
|
38
|
+
private document;
|
|
39
|
+
private container;
|
|
40
|
+
private active;
|
|
41
|
+
private lastClosedAt;
|
|
42
|
+
describe(id: string): HTMLElement;
|
|
43
|
+
forget(node: HTMLElement): void;
|
|
44
|
+
isWarm(): boolean;
|
|
45
|
+
activate(tooltip: TxTooltipHandle): void;
|
|
46
|
+
release(tooltip: TxTooltipHandle): void;
|
|
47
|
+
private now;
|
|
48
|
+
private ensureContainer;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxTooltipRegistry, never>;
|
|
50
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
51
|
+
}
|
|
52
|
+
export interface TxTooltipPanelState {
|
|
53
|
+
id: string;
|
|
54
|
+
origin: HTMLElement;
|
|
55
|
+
content: Signal<TxTooltipContent>;
|
|
56
|
+
context: Signal<TxTooltipContext>;
|
|
57
|
+
placement: Signal<TxPlacement>;
|
|
58
|
+
arrow: Signal<boolean>;
|
|
59
|
+
interactive: Signal<boolean>;
|
|
60
|
+
hiddenFromReaders: Signal<boolean>;
|
|
61
|
+
multiline: Signal<boolean>;
|
|
62
|
+
unstyled: Signal<boolean>;
|
|
63
|
+
passThrough: Signal<TxResolvedPassThrough<TxTooltipPart>>;
|
|
64
|
+
style: Signal<Record<string, string>>;
|
|
65
|
+
panelClass: Signal<string | undefined>;
|
|
66
|
+
pointerEnter(): void;
|
|
67
|
+
pointerLeave(): void;
|
|
68
|
+
}
|
|
69
|
+
export declare const TX_TOOLTIP_PANEL: InjectionToken<TxTooltipPanelState>;
|
|
70
|
+
export declare class TxTooltipPanel {
|
|
71
|
+
readonly state: TxTooltipPanelState;
|
|
72
|
+
private readonly originSize;
|
|
73
|
+
readonly template: Signal<TemplateRef<TxTooltipContext<unknown>> | null>;
|
|
74
|
+
readonly side: Signal<import("@tectra-ng/core/overlay").TxPlacementSide>;
|
|
75
|
+
readonly rootClass: Signal<string>;
|
|
76
|
+
readonly arrowOffset: Signal<string>;
|
|
77
|
+
readonly hostStyle: Signal<{
|
|
78
|
+
'--tx-tooltip-arrow-offset': string;
|
|
79
|
+
}>;
|
|
80
|
+
constructor();
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxTooltipPanel, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxTooltipPanel, "tx-tooltip", never, {}, {}, never, never, true, never>;
|
|
83
|
+
}
|
|
84
|
+
export declare class TxTooltip implements TxTooltipHandle {
|
|
85
|
+
private host;
|
|
86
|
+
private overlay;
|
|
87
|
+
private injector;
|
|
88
|
+
private viewContainerRef;
|
|
89
|
+
private registry;
|
|
90
|
+
private options;
|
|
91
|
+
readonly txTooltip: import("@angular/core").InputSignal<TxTooltipContent>;
|
|
92
|
+
readonly tooltipPlacement: import("@angular/core").InputSignal<TxPlacement | undefined>;
|
|
93
|
+
readonly tooltipEvent: import("@angular/core").InputSignal<TxTooltipEvent | undefined>;
|
|
94
|
+
readonly tooltipShowDelay: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
95
|
+
readonly tooltipHideDelay: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
96
|
+
readonly tooltipLife: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
97
|
+
readonly tooltipOffset: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
98
|
+
readonly tooltipArrow: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
99
|
+
readonly tooltipInteractive: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
100
|
+
readonly tooltipDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
101
|
+
readonly tooltipOverflowOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
102
|
+
readonly tooltipMultiline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
103
|
+
readonly tooltipContext: import("@angular/core").InputSignal<unknown>;
|
|
104
|
+
readonly tooltipClass: import("@angular/core").InputSignal<string | undefined>;
|
|
105
|
+
readonly tooltipDt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
106
|
+
root: {
|
|
107
|
+
background: string;
|
|
108
|
+
color: string;
|
|
109
|
+
maxWidth: string;
|
|
110
|
+
padding: string;
|
|
111
|
+
borderRadius: string;
|
|
112
|
+
fontSize: string;
|
|
113
|
+
fontWeight: string;
|
|
114
|
+
lineHeight: string;
|
|
115
|
+
shadow: string;
|
|
116
|
+
};
|
|
117
|
+
multiline: {
|
|
118
|
+
maxWidth: string;
|
|
119
|
+
lineHeight: string;
|
|
120
|
+
};
|
|
121
|
+
arrow: {
|
|
122
|
+
size: string;
|
|
123
|
+
inset: string;
|
|
124
|
+
};
|
|
125
|
+
}> | undefined>;
|
|
126
|
+
readonly tooltipPt: import("@angular/core").InputSignal<Partial<Record<TxTooltipPart, import("@tectra-ng/core/config").TxPassThroughValue<TxTooltip>>> | undefined>;
|
|
127
|
+
readonly tooltipPtOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
128
|
+
readonly tooltipUnstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
129
|
+
readonly tooltipShown: import("@angular/core").OutputEmitterRef<void>;
|
|
130
|
+
readonly tooltipHidden: import("@angular/core").OutputEmitterRef<void>;
|
|
131
|
+
private readonly ref;
|
|
132
|
+
private showTimer;
|
|
133
|
+
private hideTimer;
|
|
134
|
+
private lifeTimer;
|
|
135
|
+
private hovered;
|
|
136
|
+
private focused;
|
|
137
|
+
private suppressed;
|
|
138
|
+
private touched;
|
|
139
|
+
private destroyed;
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
142
|
+
readonly placement: import("@angular/core").Signal<TxPlacement>;
|
|
143
|
+
readonly event: import("@angular/core").Signal<TxTooltipEvent>;
|
|
144
|
+
readonly showDelay: import("@angular/core").Signal<number>;
|
|
145
|
+
readonly hideDelay: import("@angular/core").Signal<number>;
|
|
146
|
+
readonly life: import("@angular/core").Signal<number | undefined>;
|
|
147
|
+
readonly offset: import("@angular/core").Signal<number>;
|
|
148
|
+
readonly arrow: import("@angular/core").Signal<boolean>;
|
|
149
|
+
readonly interactive: import("@angular/core").Signal<boolean>;
|
|
150
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
151
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxTooltipPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
152
|
+
readonly panelStyle: import("@angular/core").Signal<Record<string, string>>;
|
|
153
|
+
readonly text: import("@angular/core").Signal<string>;
|
|
154
|
+
readonly template: import("@angular/core").Signal<TemplateRef<TxTooltipContext<unknown>> | null>;
|
|
155
|
+
readonly hasContent: import("@angular/core").Signal<boolean>;
|
|
156
|
+
readonly describesAhead: import("@angular/core").Signal<boolean>;
|
|
157
|
+
readonly context: import("@angular/core").Signal<TxTooltipContext<unknown>>;
|
|
158
|
+
private readonly listensToHover;
|
|
159
|
+
private readonly listensToFocus;
|
|
160
|
+
constructor();
|
|
161
|
+
show(delay?: number): void;
|
|
162
|
+
hide(delay?: number): void;
|
|
163
|
+
hideNow(): void;
|
|
164
|
+
toggle(): void;
|
|
165
|
+
onPointerEnter(): void;
|
|
166
|
+
onPointerLeave(): void;
|
|
167
|
+
onPointerDown(event: PointerEvent): void;
|
|
168
|
+
onFocusIn(): void;
|
|
169
|
+
onFocusOut(event: FocusEvent): void;
|
|
170
|
+
private open;
|
|
171
|
+
private onPanelEnter;
|
|
172
|
+
private onPanelLeave;
|
|
173
|
+
private overflows;
|
|
174
|
+
private needsName;
|
|
175
|
+
private clearShow;
|
|
176
|
+
private clearHide;
|
|
177
|
+
private clearLife;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxTooltip, never>;
|
|
179
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxTooltip, "[txTooltip]", ["txTooltip"], {
|
|
180
|
+
"txTooltip": {
|
|
181
|
+
"alias": "txTooltip";
|
|
182
|
+
"required": false;
|
|
183
|
+
"isSignal": true;
|
|
184
|
+
};
|
|
185
|
+
"tooltipPlacement": {
|
|
186
|
+
"alias": "tooltipPlacement";
|
|
187
|
+
"required": false;
|
|
188
|
+
"isSignal": true;
|
|
189
|
+
};
|
|
190
|
+
"tooltipEvent": {
|
|
191
|
+
"alias": "tooltipEvent";
|
|
192
|
+
"required": false;
|
|
193
|
+
"isSignal": true;
|
|
194
|
+
};
|
|
195
|
+
"tooltipShowDelay": {
|
|
196
|
+
"alias": "tooltipShowDelay";
|
|
197
|
+
"required": false;
|
|
198
|
+
"isSignal": true;
|
|
199
|
+
};
|
|
200
|
+
"tooltipHideDelay": {
|
|
201
|
+
"alias": "tooltipHideDelay";
|
|
202
|
+
"required": false;
|
|
203
|
+
"isSignal": true;
|
|
204
|
+
};
|
|
205
|
+
"tooltipLife": {
|
|
206
|
+
"alias": "tooltipLife";
|
|
207
|
+
"required": false;
|
|
208
|
+
"isSignal": true;
|
|
209
|
+
};
|
|
210
|
+
"tooltipOffset": {
|
|
211
|
+
"alias": "tooltipOffset";
|
|
212
|
+
"required": false;
|
|
213
|
+
"isSignal": true;
|
|
214
|
+
};
|
|
215
|
+
"tooltipArrow": {
|
|
216
|
+
"alias": "tooltipArrow";
|
|
217
|
+
"required": false;
|
|
218
|
+
"isSignal": true;
|
|
219
|
+
};
|
|
220
|
+
"tooltipInteractive": {
|
|
221
|
+
"alias": "tooltipInteractive";
|
|
222
|
+
"required": false;
|
|
223
|
+
"isSignal": true;
|
|
224
|
+
};
|
|
225
|
+
"tooltipDisabled": {
|
|
226
|
+
"alias": "tooltipDisabled";
|
|
227
|
+
"required": false;
|
|
228
|
+
"isSignal": true;
|
|
229
|
+
};
|
|
230
|
+
"tooltipOverflowOnly": {
|
|
231
|
+
"alias": "tooltipOverflowOnly";
|
|
232
|
+
"required": false;
|
|
233
|
+
"isSignal": true;
|
|
234
|
+
};
|
|
235
|
+
"tooltipMultiline": {
|
|
236
|
+
"alias": "tooltipMultiline";
|
|
237
|
+
"required": false;
|
|
238
|
+
"isSignal": true;
|
|
239
|
+
};
|
|
240
|
+
"tooltipContext": {
|
|
241
|
+
"alias": "tooltipContext";
|
|
242
|
+
"required": false;
|
|
243
|
+
"isSignal": true;
|
|
244
|
+
};
|
|
245
|
+
"tooltipClass": {
|
|
246
|
+
"alias": "tooltipClass";
|
|
247
|
+
"required": false;
|
|
248
|
+
"isSignal": true;
|
|
249
|
+
};
|
|
250
|
+
"tooltipDt": {
|
|
251
|
+
"alias": "tooltipDt";
|
|
252
|
+
"required": false;
|
|
253
|
+
"isSignal": true;
|
|
254
|
+
};
|
|
255
|
+
"tooltipPt": {
|
|
256
|
+
"alias": "tooltipPt";
|
|
257
|
+
"required": false;
|
|
258
|
+
"isSignal": true;
|
|
259
|
+
};
|
|
260
|
+
"tooltipPtOptions": {
|
|
261
|
+
"alias": "tooltipPtOptions";
|
|
262
|
+
"required": false;
|
|
263
|
+
"isSignal": true;
|
|
264
|
+
};
|
|
265
|
+
"tooltipUnstyled": {
|
|
266
|
+
"alias": "tooltipUnstyled";
|
|
267
|
+
"required": false;
|
|
268
|
+
"isSignal": true;
|
|
269
|
+
};
|
|
270
|
+
}, {
|
|
271
|
+
"tooltipShown": "tooltipShown";
|
|
272
|
+
"tooltipHidden": "tooltipHidden";
|
|
273
|
+
}, never, never, true, never>;
|
|
274
|
+
}
|
|
275
|
+
//# sourceMappingURL=tectra-ng-ui-tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-tooltip.d.ts","names":[],"sources":["../../../../packages/ui/tooltip/src/tooltip.types.ts","../../../../packages/ui/tooltip/src/tooltip.options.ts","../../../../packages/ui/tooltip/src/tooltip-registry.service.ts","../../../../packages/ui/tooltip/src/tooltip-panel.component.ts","../../../../packages/ui/tooltip/src/tooltip.directive.ts"],"mappings":";;;;;YAGY;YACA;iBAEK,iBAAiB;EAChC,WAAW;EACX;;YAGU,qCAAqC,YAAY;iBAE5C;EACf,YAAY;EACZ,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;;qBClBW;;;;;;;;;qBAUA,oBAAkB,eAAA;wBAEf,iBAAiB,SAAS,mBAAmB;iBCX5C;EACf;;qBAIW;UACH;UACA;UACA;UACA;EAER,SAAS,aAAa;EAOtB,OAAO,MAAM;EAQb;EAIA,SAAS,SAAS;EAOlB,QAAQ,SAAS;UAOT;UAIA;SA3CG,MAAA,GAAA,qBAAA;;;iBCHI;EACf;EACA,QAAQ;EACR,SAAS,OAAO;EAChB,SAAS,OAAO;EAChB,WAAW,OAAO;EAClB,OAAO;EACP,aAAa;EACb,mBAAmB;EACnB,WAAW;EACX,UAAU;EACV,aAAa,OAAO,sBAAsB;EAC1C,OAAO,OAAO;EACd,YAAY;EACZ;EACA;;qBAGW,kBAAgB,eAAA;qBAmChB;WACF,OAAK;mBAEG;WAER,UAAQ,OAAA,YAAA;WAIR,MAAI,yCAAA;WACJ,WAAS;WACT,aAAW;WACX,WAAS;;;;SAZP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBCTA,qBAAqB;UACxB;UACA;UACA;UACA;UACA;UACA;WAEC,mCAAS,YAAA;WACT,0CAAgB,YAAA;WAChB,sCAAY,YAAA;WACZ,0CAAgB;WAChB,0CAAgB;WAChB,qCAAW;WACX,uCAAa;WACb,sCAAY;WACZ,4CAAkB;WAClB,yCAAe;WACf,6CAAmB;WACnB,0CAAgB;WAChB,wCAAc;WACd,sCAAY;WACZ,mCAAS,YAAA;;;;;;;;;;;;;;;;;;;;;WACT,mCAAS,YAAA,QAAA,OAAA,gDAAA,mBAAA;WACT,0CAAgB,YAAA;WAChB,yCAAe;WAEf,sCAAY;WACZ,uCAAa;mBAEL;UACT;UACA;UACA;UACA;UACA;UACA;UACA;UACA;WAEC;WACA,gCAAM;WACN,mCAAS,OAAA;WACT,+BAAK,OAAA;WACL,mCAAS;WACT,mCAAS;WACT,8BAAI;WACJ,gCAAM;WACN,+BAAK;WACL,qCAAW;WACX,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WACX,oCAAU,OAAA;WACV,8BAAI;WAIJ,kCAAQ,OAAA,YAAA;WAIR,oCAAU;WACV,wCAAc;WACd,iCAAO,OAAA;mBAEC;mBACA;;EAyCjB,KAAK;EAgBL,KAAK;EAaL;EAMA;EAQA;EAWA;EAQA,cAAc,OAAO;EAQrB;EAUA,WAAW,OAAO;UAcV;UAuDA;UAMA;UAMA;UAIA;UAQA;UAKA;UAKA;SAlSG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { ConnectedOverlayPositionChange } from "@angular/cdk/overlay";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ElementRef } from "@angular/core";
|
|
4
|
+
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
5
|
+
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
6
|
+
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
7
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
8
|
+
import { TxFieldVariant, TxSelectSize } from "@tectra-ng/ui/select";
|
|
9
|
+
import { TxIconName } from "@tectra-ng/icons";
|
|
10
|
+
export interface TxTreeNode<T = unknown> {
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
data?: T;
|
|
14
|
+
icon?: TxIconName;
|
|
15
|
+
children?: TxTreeNode<T>[];
|
|
16
|
+
selectable?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type TxTreeSelectionMode = 'single' | 'multiple' | 'checkbox';
|
|
20
|
+
export type TxTreeSelectDisplay = 'comma' | 'chip';
|
|
21
|
+
export type TxTreeSelectPart = 'root' | 'box' | 'trigger' | 'value' | 'chip' | 'clear' | 'dropdown' | 'panel' | 'filter' | 'filterInput' | 'tree' | 'node' | 'toggler' | 'empty';
|
|
22
|
+
export interface TxTreeRow {
|
|
23
|
+
id: string;
|
|
24
|
+
node: TxTreeNode;
|
|
25
|
+
level: number;
|
|
26
|
+
parent: TxTreeRow | null;
|
|
27
|
+
setSize: number;
|
|
28
|
+
posInSet: number;
|
|
29
|
+
hasChildren: boolean;
|
|
30
|
+
expanded: boolean;
|
|
31
|
+
checked: boolean;
|
|
32
|
+
partial: boolean;
|
|
33
|
+
selectable: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface TxTreeBranch {
|
|
36
|
+
row: TxTreeRow;
|
|
37
|
+
children: TxTreeBranch[];
|
|
38
|
+
}
|
|
39
|
+
export interface TxTreeSelectChangeEvent {
|
|
40
|
+
value: string | string[] | null;
|
|
41
|
+
node: TxTreeNode | null;
|
|
42
|
+
}
|
|
43
|
+
export declare class TxTreeSelect extends TxFormControlBase<string | string[]> {
|
|
44
|
+
readonly options: import("@angular/core").InputSignal<readonly TxTreeNode<unknown>[]>;
|
|
45
|
+
readonly selectionMode: import("@angular/core").InputSignal<TxTreeSelectionMode>;
|
|
46
|
+
readonly display: import("@angular/core").InputSignal<TxTreeSelectDisplay>;
|
|
47
|
+
readonly expandedKeys: import("@angular/core").ModelSignal<string[]>;
|
|
48
|
+
readonly filter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
|
+
readonly filterPlaceholder: import("@angular/core").InputSignal<string | undefined>;
|
|
50
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
51
|
+
readonly showClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
readonly emptyMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
53
|
+
readonly scrollHeight: import("@angular/core").InputSignal<string | undefined>;
|
|
54
|
+
readonly inputId: import("@angular/core").InputSignal<string | undefined>;
|
|
55
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
56
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
57
|
+
readonly size: import("@angular/core").InputSignal<TxSelectSize>;
|
|
58
|
+
readonly variant: import("@angular/core").InputSignal<TxFieldVariant>;
|
|
59
|
+
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
60
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
61
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
62
|
+
root: {
|
|
63
|
+
dropdownColor: string;
|
|
64
|
+
dropdownWidth: string;
|
|
65
|
+
clearSize: string;
|
|
66
|
+
gap: string;
|
|
67
|
+
};
|
|
68
|
+
overlay: {
|
|
69
|
+
background: string;
|
|
70
|
+
borderColor: string;
|
|
71
|
+
borderRadius: string;
|
|
72
|
+
shadow: string;
|
|
73
|
+
};
|
|
74
|
+
list: {
|
|
75
|
+
padding: string;
|
|
76
|
+
gap: string;
|
|
77
|
+
maxHeight: string;
|
|
78
|
+
};
|
|
79
|
+
option: {
|
|
80
|
+
padding: string;
|
|
81
|
+
gap: string;
|
|
82
|
+
borderRadius: string;
|
|
83
|
+
color: string;
|
|
84
|
+
focusBackground: string;
|
|
85
|
+
selectedBackground: string;
|
|
86
|
+
selectedColor: string;
|
|
87
|
+
selectedFocusBackground: string;
|
|
88
|
+
selectedFocusColor: string;
|
|
89
|
+
selectedFontWeight: string;
|
|
90
|
+
disabledColor: string;
|
|
91
|
+
checkColor: string;
|
|
92
|
+
};
|
|
93
|
+
checkbox: {
|
|
94
|
+
size: string;
|
|
95
|
+
borderRadius: string;
|
|
96
|
+
borderColor: string;
|
|
97
|
+
background: string;
|
|
98
|
+
checkedBackground: string;
|
|
99
|
+
checkedColor: string;
|
|
100
|
+
iconSize: string;
|
|
101
|
+
shadow: string;
|
|
102
|
+
};
|
|
103
|
+
chip: {
|
|
104
|
+
gap: string;
|
|
105
|
+
paddingY: string;
|
|
106
|
+
paddingStart: string;
|
|
107
|
+
paddingEnd: string;
|
|
108
|
+
borderRadius: string;
|
|
109
|
+
background: string;
|
|
110
|
+
color: string;
|
|
111
|
+
fontSize: string;
|
|
112
|
+
removeSize: string;
|
|
113
|
+
removeColor: string;
|
|
114
|
+
removeHoverColor: string;
|
|
115
|
+
};
|
|
116
|
+
optionGroup: {
|
|
117
|
+
padding: string;
|
|
118
|
+
color: string;
|
|
119
|
+
fontSize: string;
|
|
120
|
+
fontWeight: string;
|
|
121
|
+
};
|
|
122
|
+
filter: {
|
|
123
|
+
padding: string;
|
|
124
|
+
gap: string;
|
|
125
|
+
iconInset: string;
|
|
126
|
+
minHeight: string;
|
|
127
|
+
};
|
|
128
|
+
dropdownButton: {
|
|
129
|
+
background: string;
|
|
130
|
+
hoverBackground: string;
|
|
131
|
+
color: string;
|
|
132
|
+
hoverColor: string;
|
|
133
|
+
};
|
|
134
|
+
header: {
|
|
135
|
+
padding: string;
|
|
136
|
+
};
|
|
137
|
+
footer: {
|
|
138
|
+
padding: string;
|
|
139
|
+
};
|
|
140
|
+
empty: {
|
|
141
|
+
padding: string;
|
|
142
|
+
color: string;
|
|
143
|
+
};
|
|
144
|
+
}> | undefined>;
|
|
145
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxTreeSelectPart, import("@tectra-ng/core/config").TxPassThroughValue<TxTreeSelect>>> | undefined>;
|
|
146
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
147
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
148
|
+
readonly changed: import("@angular/core").OutputEmitterRef<TxTreeSelectChangeEvent>;
|
|
149
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
150
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
151
|
+
readonly box: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
152
|
+
readonly trigger: import("@angular/core").Signal<ElementRef<HTMLButtonElement>>;
|
|
153
|
+
readonly panel: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
154
|
+
readonly filterInput: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
155
|
+
private document;
|
|
156
|
+
private injector;
|
|
157
|
+
private overlayInsets;
|
|
158
|
+
private typeahead;
|
|
159
|
+
private stopWatching;
|
|
160
|
+
private hasEntered;
|
|
161
|
+
private readonly cleanup;
|
|
162
|
+
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
163
|
+
readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
164
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
165
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxTreeSelectPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
166
|
+
private readonly room;
|
|
167
|
+
private readonly connectedOverlay;
|
|
168
|
+
readonly positions: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").ConnectedPosition[]>;
|
|
169
|
+
readonly scrollStrategy: import("@angular/cdk/overlay").ScrollStrategy;
|
|
170
|
+
readonly viewportMargin: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").ViewportMargin>;
|
|
171
|
+
readonly treeId: string;
|
|
172
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
173
|
+
readonly isPanelMounted: import("@angular/core").WritableSignal<boolean>;
|
|
174
|
+
readonly placement: import("@angular/core").WritableSignal<TxPlacement>;
|
|
175
|
+
readonly panelWidth: import("@angular/core").WritableSignal<number>;
|
|
176
|
+
readonly query: import("@angular/core").WritableSignal<string>;
|
|
177
|
+
readonly activeKey: import("@angular/core").WritableSignal<string | null>;
|
|
178
|
+
readonly multiple: import("@angular/core").Signal<boolean>;
|
|
179
|
+
readonly selectedKeys: import("@angular/core").Signal<string[]>;
|
|
180
|
+
private readonly parents;
|
|
181
|
+
readonly selectedNodes: import("@angular/core").Signal<TxTreeNode<unknown>[]>;
|
|
182
|
+
readonly branches: import("@angular/core").Signal<TxTreeBranch[]>;
|
|
183
|
+
readonly rows: import("@angular/core").Signal<TxTreeRow[]>;
|
|
184
|
+
readonly mounted: import("@angular/core").WritableSignal<ReadonlySet<string>>;
|
|
185
|
+
readonly activeRow: import("@angular/core").Signal<TxTreeRow | null>;
|
|
186
|
+
readonly activeId: import("@angular/core").Signal<string | null>;
|
|
187
|
+
readonly canClear: import("@angular/core").Signal<boolean>;
|
|
188
|
+
readonly commaText: import("@angular/core").Signal<string>;
|
|
189
|
+
readonly emptyText: import("@angular/core").Signal<string>;
|
|
190
|
+
readonly tokenStyle: import("@angular/core").Signal<Record<string, string>>;
|
|
191
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
192
|
+
[x: string]: string;
|
|
193
|
+
}>;
|
|
194
|
+
readonly panelStyle: import("@angular/core").Signal<{
|
|
195
|
+
[x: string]: string;
|
|
196
|
+
}>;
|
|
197
|
+
open(): void;
|
|
198
|
+
close(): void;
|
|
199
|
+
toggle(): void;
|
|
200
|
+
onBoxClick(event: MouseEvent): void;
|
|
201
|
+
onAttach(): void;
|
|
202
|
+
onPositionChange(change: ConnectedOverlayPositionChange): void;
|
|
203
|
+
onOutsideClick(event: MouseEvent): void;
|
|
204
|
+
onPanelMousedown(event: MouseEvent): void;
|
|
205
|
+
onFilter(event: Event): void;
|
|
206
|
+
onRowClick(row: TxTreeRow, event: MouseEvent): void;
|
|
207
|
+
toggleExpanded(row: TxTreeRow): void;
|
|
208
|
+
onKeydown(event: KeyboardEvent): void;
|
|
209
|
+
clear(): void;
|
|
210
|
+
removeNode(node: TxTreeNode, event: Event): void;
|
|
211
|
+
checkState(row: TxTreeRow): string;
|
|
212
|
+
private pick;
|
|
213
|
+
private check;
|
|
214
|
+
private commit;
|
|
215
|
+
private isChecked;
|
|
216
|
+
private hasCheckedDescendant;
|
|
217
|
+
private parentChecked;
|
|
218
|
+
private revealSelected;
|
|
219
|
+
private scrollActive;
|
|
220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxTreeSelect, never>;
|
|
221
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxTreeSelect, "tx-tree-select", never, {
|
|
222
|
+
"options": {
|
|
223
|
+
"alias": "options";
|
|
224
|
+
"required": false;
|
|
225
|
+
"isSignal": true;
|
|
226
|
+
};
|
|
227
|
+
"selectionMode": {
|
|
228
|
+
"alias": "selectionMode";
|
|
229
|
+
"required": false;
|
|
230
|
+
"isSignal": true;
|
|
231
|
+
};
|
|
232
|
+
"display": {
|
|
233
|
+
"alias": "display";
|
|
234
|
+
"required": false;
|
|
235
|
+
"isSignal": true;
|
|
236
|
+
};
|
|
237
|
+
"expandedKeys": {
|
|
238
|
+
"alias": "expandedKeys";
|
|
239
|
+
"required": false;
|
|
240
|
+
"isSignal": true;
|
|
241
|
+
};
|
|
242
|
+
"filter": {
|
|
243
|
+
"alias": "filter";
|
|
244
|
+
"required": false;
|
|
245
|
+
"isSignal": true;
|
|
246
|
+
};
|
|
247
|
+
"filterPlaceholder": {
|
|
248
|
+
"alias": "filterPlaceholder";
|
|
249
|
+
"required": false;
|
|
250
|
+
"isSignal": true;
|
|
251
|
+
};
|
|
252
|
+
"placeholder": {
|
|
253
|
+
"alias": "placeholder";
|
|
254
|
+
"required": false;
|
|
255
|
+
"isSignal": true;
|
|
256
|
+
};
|
|
257
|
+
"showClear": {
|
|
258
|
+
"alias": "showClear";
|
|
259
|
+
"required": false;
|
|
260
|
+
"isSignal": true;
|
|
261
|
+
};
|
|
262
|
+
"emptyMessage": {
|
|
263
|
+
"alias": "emptyMessage";
|
|
264
|
+
"required": false;
|
|
265
|
+
"isSignal": true;
|
|
266
|
+
};
|
|
267
|
+
"scrollHeight": {
|
|
268
|
+
"alias": "scrollHeight";
|
|
269
|
+
"required": false;
|
|
270
|
+
"isSignal": true;
|
|
271
|
+
};
|
|
272
|
+
"inputId": {
|
|
273
|
+
"alias": "inputId";
|
|
274
|
+
"required": false;
|
|
275
|
+
"isSignal": true;
|
|
276
|
+
};
|
|
277
|
+
"ariaLabel": {
|
|
278
|
+
"alias": "ariaLabel";
|
|
279
|
+
"required": false;
|
|
280
|
+
"isSignal": true;
|
|
281
|
+
};
|
|
282
|
+
"ariaLabelledBy": {
|
|
283
|
+
"alias": "ariaLabelledBy";
|
|
284
|
+
"required": false;
|
|
285
|
+
"isSignal": true;
|
|
286
|
+
};
|
|
287
|
+
"size": {
|
|
288
|
+
"alias": "size";
|
|
289
|
+
"required": false;
|
|
290
|
+
"isSignal": true;
|
|
291
|
+
};
|
|
292
|
+
"variant": {
|
|
293
|
+
"alias": "variant";
|
|
294
|
+
"required": false;
|
|
295
|
+
"isSignal": true;
|
|
296
|
+
};
|
|
297
|
+
"invalid": {
|
|
298
|
+
"alias": "invalid";
|
|
299
|
+
"required": false;
|
|
300
|
+
"isSignal": true;
|
|
301
|
+
};
|
|
302
|
+
"readonly": {
|
|
303
|
+
"alias": "readonly";
|
|
304
|
+
"required": false;
|
|
305
|
+
"isSignal": true;
|
|
306
|
+
};
|
|
307
|
+
"dt": {
|
|
308
|
+
"alias": "dt";
|
|
309
|
+
"required": false;
|
|
310
|
+
"isSignal": true;
|
|
311
|
+
};
|
|
312
|
+
"pt": {
|
|
313
|
+
"alias": "pt";
|
|
314
|
+
"required": false;
|
|
315
|
+
"isSignal": true;
|
|
316
|
+
};
|
|
317
|
+
"ptOptions": {
|
|
318
|
+
"alias": "ptOptions";
|
|
319
|
+
"required": false;
|
|
320
|
+
"isSignal": true;
|
|
321
|
+
};
|
|
322
|
+
"unstyled": {
|
|
323
|
+
"alias": "unstyled";
|
|
324
|
+
"required": false;
|
|
325
|
+
"isSignal": true;
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
"expandedKeys": "expandedKeysChange";
|
|
329
|
+
"changed": "changed";
|
|
330
|
+
"opened": "opened";
|
|
331
|
+
"closed": "closed";
|
|
332
|
+
}, never, never, true, never>;
|
|
333
|
+
}
|
|
334
|
+
export declare function walkTree(nodes: readonly TxTreeNode[], visit: (node: TxTreeNode, parent: TxTreeNode | null) => void, parent?: TxTreeNode | null): void;
|
|
335
|
+
export declare function findNode(nodes: readonly TxTreeNode[], key: string): TxTreeNode | null;
|
|
336
|
+
export declare function descendantKeys(node: TxTreeNode): string[];
|
|
337
|
+
export declare function parentMap(nodes: readonly TxTreeNode[]): Map<string, TxTreeNode | null>;
|
|
338
|
+
export declare function normalizeChecked(nodes: readonly TxTreeNode[], keys: readonly string[]): string[];
|
|
339
|
+
//# sourceMappingURL=tectra-ng-ui-tree-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-tree-select.d.ts","names":[],"sources":["../../../../packages/ui/tree-select/src/tree-select.types.ts","../../../../packages/ui/tree-select/src/tree-select.component.ts","../../../../packages/ui/tree-select/src/tree.ts"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui.d.ts","names":[],"sources":["../../../../packages/ui/index.ts"],"mappings":"AAAA,qBAAa"}
|