@tectra-ng/ui 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data-view/README.md +9 -1
- package/dialog/README.md +3 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/fesm2022/tectra-ng-ui.mjs.map +1 -1
- package/package.json +9 -9
- package/table/README.md +1 -0
- package/tree-select/README.md +1 -0
- package/types/tectra-ng-ui-accordion.d.ts +96 -65
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
- package/types/tectra-ng-ui-amount.d.ts +40 -17
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +84 -259
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-badge.d.ts +18 -61
- package/types/tectra-ng-ui-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
- package/types/tectra-ng-ui-button-group.d.ts +4 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-button.d.ts +45 -266
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-card.d.ts +14 -16
- package/types/tectra-ng-ui-card.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +55 -27
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-checkbox.d.ts +79 -119
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +19 -22
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +41 -11
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +51 -47
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-confirm.d.ts +45 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +42 -10
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +41 -96
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +40 -17
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +92 -34
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +186 -147
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-dialog.d.ts +149 -67
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
- package/types/tectra-ng-ui-divider.d.ts +17 -12
- package/types/tectra-ng-ui-divider.d.ts.map +1 -1
- package/types/tectra-ng-ui-drawer.d.ts +31 -67
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
- package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
- package/types/tectra-ng-ui-export-font.d.ts +1 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +238 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +24 -11
- package/types/tectra-ng-ui-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-fieldset.d.ts +14 -23
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-file-upload.d.ts +127 -115
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
- package/types/tectra-ng-ui-galleria.d.ts +84 -84
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
- package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +20 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +60 -36
- package/types/tectra-ng-ui-image.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-group.d.ts +9 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-mask.d.ts +39 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +73 -15
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts +28 -21
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +17 -50
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +14 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +38 -18
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +19 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +39 -34
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-list-input.d.ts +54 -45
- package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-listbox.d.ts +24 -14
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +92 -166
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-menubar.d.ts +29 -58
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +61 -126
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +26 -96
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +69 -47
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +22 -30
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +27 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-password.d.ts +55 -26
- package/types/tectra-ng-ui-password.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +23 -70
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-popover.d.ts +58 -46
- package/types/tectra-ng-ui-popover.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
- package/types/tectra-ng-ui-radio-button.d.ts +64 -115
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-rating.d.ts +40 -29
- package/types/tectra-ng-ui-rating.d.ts.map +1 -1
- package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +169 -100
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-skeleton.d.ts +34 -37
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +37 -33
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-sparkline.d.ts +22 -15
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
- package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-split-button.d.ts +28 -7
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-splitter.d.ts +47 -23
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +19 -23
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +106 -133
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +415 -183
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +91 -133
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +46 -135
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-textarea.d.ts +25 -31
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +39 -27
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
- package/types/tectra-ng-ui-toast.d.ts +84 -78
- package/types/tectra-ng-ui-toast.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +15 -14
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
- package/types/tectra-ng-ui-tooltip.d.ts +72 -22
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +65 -104
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +30 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree.d.ts +197 -69
- package/types/tectra-ng-ui-tree.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +2 -1
- package/types/tectra-ng-ui.d.ts.map +1 -1
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
/** Where a floating label sits: over the field, inside it or on its border. */
|
|
2
3
|
export type TxFloatLabelVariant = 'over' | 'in' | 'on';
|
|
4
|
+
/**
|
|
5
|
+
* Names a field. Three forms: `<tx-label>` above the field, `<tx-float-label>` inside the field that moves up on focus or value, `<tx-ifta-label>` inside the field above the value. Inside the float and ifta labels use a native `<label for>` after the field; they work with `txInput`, `textarea` and `tx-select` (give the select an `inputId`).
|
|
6
|
+
* @see https://tectra-ng.com/components/label
|
|
7
|
+
*/
|
|
3
8
|
export declare class TxLabel {
|
|
4
9
|
private readonly labelTheme;
|
|
10
|
+
/** id of the field it names */
|
|
5
11
|
readonly for: import("@angular/core").InputSignal<string | undefined>;
|
|
12
|
+
/** shows a required mark (also put `required` on the field) */
|
|
6
13
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
/** adds `:` after the text */
|
|
7
15
|
readonly colon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
/** smaller, muted — for filters and dense forms */
|
|
8
17
|
readonly subtle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
/** help icon after the text with this hint */
|
|
9
19
|
readonly tooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
10
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxLabel, never>;
|
|
11
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxLabel, "tx-label", never, {
|
|
@@ -36,8 +46,13 @@ export declare class TxLabel {
|
|
|
36
46
|
};
|
|
37
47
|
}, {}, never, ["*"], true, never>;
|
|
38
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Names a field. Three forms: `<tx-label>` above the field, `<tx-float-label>` inside the field that moves up on focus or value, `<tx-ifta-label>` inside the field above the value. Inside the float and ifta labels use a native `<label for>` after the field; they work with `txInput`, `textarea` and `tx-select` (give the select an `inputId`).
|
|
51
|
+
* @see https://tectra-ng.com/components/label
|
|
52
|
+
*/
|
|
39
53
|
export declare class TxFloatLabel {
|
|
40
54
|
private readonly labelTheme;
|
|
55
|
+
/** `over` (moves above the field), `in` (moves to the top inside), `on` (sits on the border) */
|
|
41
56
|
readonly variant: import("@angular/core").InputSignal<TxFloatLabelVariant>;
|
|
42
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxFloatLabel, never>;
|
|
43
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxFloatLabel, "tx-float-label", never, {
|
|
@@ -48,6 +63,10 @@ export declare class TxFloatLabel {
|
|
|
48
63
|
};
|
|
49
64
|
}, {}, never, ["*"], true, never>;
|
|
50
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Names a field. Three forms: `<tx-label>` above the field, `<tx-float-label>` inside the field that moves up on focus or value, `<tx-ifta-label>` inside the field above the value. Inside the float and ifta labels use a native `<label for>` after the field; they work with `txInput`, `textarea` and `tx-select` (give the select an `inputId`).
|
|
68
|
+
* @see https://tectra-ng.com/components/label
|
|
69
|
+
*/
|
|
51
70
|
export declare class TxIftaLabel {
|
|
52
71
|
private readonly labelTheme;
|
|
53
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxIftaLabel, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-label.d.ts","names":[],"sources":["../../../../packages/ui/label/src/label.types.ts","../../../../packages/ui/label/src/label.component.ts","../../../../packages/ui/label/src/float-label.component.ts","../../../../packages/ui/label/src/ifta-label.component.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-label.d.ts","names":[],"sources":["../../../../packages/ui/label/src/label.types.ts","../../../../packages/ui/label/src/label.component.ts","../../../../packages/ui/label/src/float-label.component.ts","../../../../packages/ui/label/src/ifta-label.component.ts"],"mappings":";;YACY;;;;;qBCwBC;mBACM;;WAER,6BAAG;;WACH,kCAAQ;;WACR,+BAAK;;WACL,gCAAM;;WACN,iCAAO;SAPL,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAO;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;;;;;qBCVP;mBACM;;WAER,iCAAO,YAAA;SAHL,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;;;;;;;qBCDZ;mBACM;SADN,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA"}
|
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
2
|
import { TxIconName } from "@tectra-ng/icons";
|
|
3
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
|
+
import { TectraDeepPartial, TectraIconLinkTokens, TectraLinkTokens } from "@tectra-ng/themes";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { TxHighlightTerms } from "@tectra-ng/ui/highlight-text";
|
|
6
|
+
/** Parts of `tx-link` that `pt` can style. */
|
|
6
7
|
export type TxLinkPart = 'root' | 'anchor' | 'text' | 'external' | 'copy';
|
|
8
|
+
/** Parts of `tx-icon-link` that `pt` can style. */
|
|
7
9
|
export type TxIconLinkPart = 'root' | 'anchor' | 'icon' | 'text';
|
|
10
|
+
/** Kind of address a link opens: a web URL, an email or a phone number. */
|
|
8
11
|
export type TxLinkType = 'url' | 'email' | 'phone';
|
|
12
|
+
/** Router commands of a link: a path string, a commands array or nothing. */
|
|
9
13
|
export type TxLinkCommands = string | readonly unknown[] | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* `<tx-link>` shows a URL, an email or a phone number as a link: it builds the `href`, shortens long text, marks search matches and can add a copy button. Web links open in a new tab with `rel="noopener noreferrer"`, an arrow icon and a hidden "opens in a new tab" for screen readers. `<tx-icon-link>` is an icon with text for menus and footers — a router link with the active state, an external link, or a button.
|
|
16
|
+
* @see https://tectra-ng.com/components/link
|
|
17
|
+
*/
|
|
10
18
|
export declare class TxIconLink {
|
|
11
19
|
private readonly linkTheme;
|
|
12
20
|
private txIconRegistry;
|
|
21
|
+
/** icon name or icon class */
|
|
13
22
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
23
|
+
/** the text */
|
|
14
24
|
readonly text: import("@angular/core").InputSignal<string>;
|
|
25
|
+
/** Router commands; the link stays in the app */
|
|
15
26
|
readonly routerLink: import("@angular/core").InputSignal<TxLinkCommands>;
|
|
27
|
+
/** external address, opens in a new tab */
|
|
16
28
|
readonly href: import("@angular/core").InputSignal<string | null | undefined>;
|
|
29
|
+
/** Own target; web links use `_blank` by default */
|
|
17
30
|
readonly target: import("@angular/core").InputSignal<string | undefined>;
|
|
31
|
+
/** the router link is active only on its exact URL */
|
|
18
32
|
readonly exact: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hoverColor: string;
|
|
23
|
-
activeColor: string;
|
|
24
|
-
gap: string;
|
|
25
|
-
paddingX: string;
|
|
26
|
-
paddingY: string;
|
|
27
|
-
borderRadius: string;
|
|
28
|
-
hoverBackground: string;
|
|
29
|
-
activeBackground: string;
|
|
30
|
-
fontSize: string;
|
|
31
|
-
fontWeight: string;
|
|
32
|
-
iconSize: string;
|
|
33
|
-
focusRingColor: string;
|
|
34
|
-
};
|
|
35
|
-
}> | undefined>;
|
|
33
|
+
/** Design tokens of this instance (`link`, `iconLink`) */
|
|
34
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraIconLinkTokens> | undefined>;
|
|
35
|
+
/** Classes and styles of the parts: `root`, `anchor`, `text`, `external`, `copy` (link); `root`, `anchor`, `icon`, `text` (icon link) */
|
|
36
36
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxIconLinkPart, import("@tectra-ng/core/config").TxPassThroughValue<TxIconLink>>> | undefined>;
|
|
37
|
+
/** How `pt` merges with the global pass-through */
|
|
37
38
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
39
|
+
/** Removes the tectra styles */
|
|
38
40
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
39
41
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
40
42
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -99,38 +101,41 @@ export declare class TxIconLink {
|
|
|
99
101
|
};
|
|
100
102
|
}, {}, never, ["*"], true, never>;
|
|
101
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* `<tx-link>` shows a URL, an email or a phone number as a link: it builds the `href`, shortens long text, marks search matches and can add a copy button. Web links open in a new tab with `rel="noopener noreferrer"`, an arrow icon and a hidden "opens in a new tab" for screen readers. `<tx-icon-link>` is an icon with text for menus and footers — a router link with the active state, an external link, or a button.
|
|
106
|
+
* @see https://tectra-ng.com/components/link
|
|
107
|
+
*/
|
|
102
108
|
export declare class TxLink {
|
|
103
109
|
private readonly linkTheme;
|
|
104
110
|
private document;
|
|
105
111
|
private timer;
|
|
112
|
+
/** URL (without a protocol `https://` is added), email or phone number */
|
|
106
113
|
readonly link: import("@angular/core").InputSignal<string | null | undefined>;
|
|
114
|
+
/** `url`, `email` (`mailto:`) or `phone` (`tel:`) */
|
|
107
115
|
readonly type: import("@angular/core").InputSignal<TxLinkType>;
|
|
116
|
+
/** own text instead of the link */
|
|
108
117
|
readonly linkText: import("@angular/core").InputSignal<string | null | undefined>;
|
|
118
|
+
/** search terms to mark in the text */
|
|
109
119
|
readonly highlight: import("@angular/core").InputSignal<TxHighlightTerms>;
|
|
120
|
+
/** shortens longer text with `…`; the full text is in the tooltip */
|
|
110
121
|
readonly maxLength: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
122
|
+
/** Router commands; the link stays in the app */
|
|
111
123
|
readonly routerLink: import("@angular/core").InputSignal<TxLinkCommands>;
|
|
124
|
+
/** Own target; web links use `_blank` by default */
|
|
112
125
|
readonly target: import("@angular/core").InputSignal<string | undefined>;
|
|
126
|
+
/** shows or hides the arrow icon; shown when the link opens a new tab by default */
|
|
113
127
|
readonly external: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
128
|
+
/** adds a button that copies the link */
|
|
114
129
|
readonly copyable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
hoverColor: string;
|
|
119
|
-
gap: string;
|
|
120
|
-
underlineOffset: string;
|
|
121
|
-
externalIconSize: string;
|
|
122
|
-
copyColor: string;
|
|
123
|
-
copyHoverColor: string;
|
|
124
|
-
copyHoverBackground: string;
|
|
125
|
-
copySize: string;
|
|
126
|
-
copyIconSize: string;
|
|
127
|
-
copiedColor: string;
|
|
128
|
-
focusRingColor: string;
|
|
129
|
-
};
|
|
130
|
-
}> | undefined>;
|
|
130
|
+
/** Design tokens of this instance (`link`, `iconLink`) */
|
|
131
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraLinkTokens> | undefined>;
|
|
132
|
+
/** Classes and styles of the parts: `root`, `anchor`, `text`, `external`, `copy` (link); `root`, `anchor`, `icon`, `text` (icon link) */
|
|
131
133
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxLinkPart, import("@tectra-ng/core/config").TxPassThroughValue<TxLink>>> | undefined>;
|
|
134
|
+
/** How `pt` merges with the global pass-through */
|
|
132
135
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
136
|
+
/** Removes the tectra styles */
|
|
133
137
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
138
|
+
/** the link was copied; gives the copied text */
|
|
134
139
|
readonly copied: import("@angular/core").OutputEmitterRef<string>;
|
|
135
140
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
136
141
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-link.d.ts","names":[],"sources":["../../../../packages/ui/link/src/link.types.ts","../../../../packages/ui/link/src/icon-link.component.ts","../../../../packages/ui/link/src/link.component.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-link.d.ts","names":[],"sources":["../../../../packages/ui/link/src/link.types.ts","../../../../packages/ui/link/src/icon-link.component.ts","../../../../packages/ui/link/src/link.component.ts"],"mappings":";;;;;;YACY;;YAGA;;YAGA;;YAGA;;;;;qBCgBC;mBACM;UAET;;WAEC,8BAAI,YAAA;;WACJ,8BAAI;;WACJ,oCAAU,YAAA;;WACV,8BAAI;;WACJ,gCAAM;;WACN,+BAAK;;WACL,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,iDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,iDAAA;WACX,kCAAQ,OAAA;WAIR,wCAAc;WACd,qCAAW;WACX,mCAAS;;;SAzBP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAU;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;;;;;;;;qBCKV;mBACM;UAET;UACA;;WAEC,8BAAI;;WACJ,8BAAI,YAAA;;WACJ,kCAAQ;;WACR,mCAAS,YAAA;;WACT,mCAAS;;WACT,oCAAU,YAAA;;WACV,gCAAM;;WACN,kCAAQ;;WACR,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,6CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,gCAAM;WAEN,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,6CAAA;WACX,kCAAQ;WAER,+BAAK;WACL,kCAAQ;WACR,qCAAW;WAIX,qCAAW;WACX,mCAAS;WACT,8BAAI;WAWJ,wCAAc;WACd,qCAAW;WACX,sCAAY;WACZ,mCAAS;WAIT,mCAAS;;;;EAMlB;SA3DW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAM;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"}
|
|
@@ -3,90 +3,97 @@ import { ElementRef } from "@angular/core";
|
|
|
3
3
|
import { TxPassThroughOptions, TxTranslations } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
5
5
|
import { TxIconName } from "@tectra-ng/icons";
|
|
6
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
import { TectraDeepPartial, TectraListInputTokens } from "@tectra-ng/themes";
|
|
7
|
+
/** What `tx-list-input` accepts as an entry: domains, emails, URLs or any text. */
|
|
7
8
|
export type TxListInputType = 'domain' | 'email' | 'url' | 'text';
|
|
9
|
+
/** Cleans one entry and returns it, or `null` when the entry is not valid. */
|
|
8
10
|
export type TxListInputParser = (token: string) => string | null;
|
|
11
|
+
/** Parts of `tx-list-input` that `pt` can style. */
|
|
9
12
|
export type TxListInputPart = 'root' | 'field' | 'footer' | 'stats' | 'actions' | 'invalid';
|
|
13
|
+
/** Outcome of parsing a text into a list of entries. */
|
|
10
14
|
export interface TxListInputResult {
|
|
15
|
+
/** Valid entries without duplicates, in order of appearance. */
|
|
11
16
|
items: string[];
|
|
17
|
+
/** Tokens the parser rejected. */
|
|
12
18
|
invalid: string[];
|
|
19
|
+
/** How many valid entries were skipped because they were already in the list. */
|
|
13
20
|
duplicates: number;
|
|
14
21
|
}
|
|
22
|
+
/** Separator that splits a pasted text into entries at whitespace, commas and semicolons. */
|
|
15
23
|
export declare const TX_LIST_INPUT_WORDS: RegExp;
|
|
24
|
+
/**
|
|
25
|
+
* Separator that splits a pasted text into entries at line breaks, commas and semicolons; spaces stay
|
|
26
|
+
* inside an entry.
|
|
27
|
+
*/
|
|
16
28
|
export declare const TX_LIST_INPUT_LINES: RegExp;
|
|
29
|
+
/** Reads a domain name from a token, dropping protocol, path and port, and lower-cases it; `null` when invalid. */
|
|
17
30
|
export declare function txParseDomain(token: string): string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Reads an email address from a token, dropping `mailto:` and angle brackets, and lower-cases it;
|
|
33
|
+
* `null` when invalid.
|
|
34
|
+
*/
|
|
18
35
|
export declare function txParseEmail(token: string): string | null;
|
|
36
|
+
/** Reads an http or https URL from a token, adding `https://` when missing; `null` when invalid. */
|
|
19
37
|
export declare function txParseUrl(token: string): string | null;
|
|
38
|
+
/** Accepts any token as it is. */
|
|
20
39
|
export declare function txParseText(token: string): string | null;
|
|
40
|
+
/** Parser of every `TxListInputType`. */
|
|
21
41
|
export declare const TX_LIST_INPUT_PARSERS: Record<TxListInputType, TxListInputParser>;
|
|
42
|
+
/**
|
|
43
|
+
* Splits a text into entries with a parser; collects valid unique items, the invalid tokens and the
|
|
44
|
+
* number of duplicates.
|
|
45
|
+
*/
|
|
22
46
|
export declare function txParseList(text: string | null | undefined, parser: TxListInputParser, separator?: RegExp): TxListInputResult;
|
|
47
|
+
/**
|
|
48
|
+
* A textarea for pasting many values at once — domains, links, emails, ids. It parses the text as you type, counts the items, duplicates and lines it does not recognize, and offers "Clean up" (one item per line, without duplicates and invalid lines) and "Clear". The value is the parsed array, so send that to the server, not the raw text.
|
|
49
|
+
* @see https://tectra-ng.com/components/list-input
|
|
50
|
+
*/
|
|
23
51
|
export declare class TxListInput extends TxFormControlBase<string[]> {
|
|
24
52
|
private readonly listInputTheme;
|
|
25
53
|
private locale;
|
|
54
|
+
/** Raw text of the field. Two-way: `[(text)]`. Setting it does not emit `itemsChange` */
|
|
26
55
|
readonly text: import("@angular/core").ModelSignal<string>;
|
|
56
|
+
/** Built-in parser: `domain` (host of a domain or URL, lower case), `email`, `url` (adds a missing `https://`), `text` (any non-empty token) */
|
|
27
57
|
readonly type: import("@angular/core").InputSignal<TxListInputType>;
|
|
58
|
+
/** Own parser, a `TxListInputParser`: gets one token and returns the normalized item, or `null` when it is not recognized. Replaces `type` */
|
|
28
59
|
readonly parser: import("@angular/core").InputSignal<TxListInputParser | undefined>;
|
|
60
|
+
/** Splits only by new lines, commas and semicolons, so a line with spaces stays one item. By default spaces split too */
|
|
29
61
|
readonly splitByLines: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
62
|
+
/** Own separator as a `RegExp`; replaces `splitByLines` */
|
|
30
63
|
readonly separator: import("@angular/core").InputSignal<RegExp | undefined>;
|
|
64
|
+
/** Placeholder; a translated one for the `type` by default */
|
|
31
65
|
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
66
|
+
/** Footer text while the field is empty; a translated one for the `type` by default */
|
|
32
67
|
readonly hint: import("@angular/core").InputSignal<string | undefined>;
|
|
68
|
+
/** Text of the items counter, with `{count}` and plural forms: `{count, plural, one {# id} other {# ids}}` */
|
|
33
69
|
readonly countLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
70
|
+
/** Visible rows of the textarea */
|
|
34
71
|
readonly rows: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
72
|
+
/** How many unrecognized tokens are listed under the field before "+N more" */
|
|
35
73
|
readonly invalidLimit: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
74
|
+
/** Disables the field and its actions (also from the form control) */
|
|
36
75
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
76
|
+
/** The text cannot be changed; the actions are hidden */
|
|
37
77
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
/** Error look; from the form control when not set */
|
|
38
79
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
80
|
+
/** Id of the textarea, for a `<label for>` */
|
|
39
81
|
readonly inputId: import("@angular/core").InputSignal<string | undefined>;
|
|
82
|
+
/** Accessible name of the textarea when there is no label */
|
|
40
83
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
84
|
+
/** Id of the element that names the textarea */
|
|
41
85
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
borderColor: string;
|
|
46
|
-
borderWidth: string;
|
|
47
|
-
borderRadius: string;
|
|
48
|
-
focusBorderColor: string;
|
|
49
|
-
focusBorderWidth: string;
|
|
50
|
-
invalidBorderColor: string;
|
|
51
|
-
disabledOpacity: string;
|
|
52
|
-
transitionDuration: string;
|
|
53
|
-
};
|
|
54
|
-
field: {
|
|
55
|
-
minHeight: string;
|
|
56
|
-
padding: string;
|
|
57
|
-
fontFamily: string;
|
|
58
|
-
fontSize: string;
|
|
59
|
-
lineHeight: string;
|
|
60
|
-
color: string;
|
|
61
|
-
placeholderColor: string;
|
|
62
|
-
};
|
|
63
|
-
footer: {
|
|
64
|
-
padding: string;
|
|
65
|
-
gap: string;
|
|
66
|
-
background: string;
|
|
67
|
-
borderColor: string;
|
|
68
|
-
statsGap: string;
|
|
69
|
-
statsPaddingStart: string;
|
|
70
|
-
actionsGap: string;
|
|
71
|
-
};
|
|
72
|
-
hint: {
|
|
73
|
-
fontSize: string;
|
|
74
|
-
color: string;
|
|
75
|
-
};
|
|
76
|
-
unrecognized: {
|
|
77
|
-
padding: string;
|
|
78
|
-
gap: string;
|
|
79
|
-
borderColor: string;
|
|
80
|
-
titleFontSize: string;
|
|
81
|
-
titleFontWeight: string;
|
|
82
|
-
titleColor: string;
|
|
83
|
-
titleGap: string;
|
|
84
|
-
};
|
|
85
|
-
}> | undefined>;
|
|
86
|
+
/** Design tokens of this instance (`listInput`) */
|
|
87
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraListInputTokens> | undefined>;
|
|
88
|
+
/** Classes and styles of the parts: `root`, `field`, `footer`, `stats`, `actions`, `invalid` */
|
|
86
89
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxListInputPart, import("@tectra-ng/core/config").TxPassThroughValue<TxListInput>>> | undefined>;
|
|
90
|
+
/** How `pt` merges with the global pass-through */
|
|
87
91
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
92
|
+
/** Removes the tectra styles */
|
|
88
93
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
94
|
+
/** The unique recognized items after every edit, "Clean up" and "Clear" */
|
|
89
95
|
readonly itemsChange: import("@angular/core").OutputEmitterRef<string[]>;
|
|
96
|
+
/** `{ items, invalid, duplicates }` after every edit, "Clean up" and "Clear" */
|
|
90
97
|
readonly parsedChange: import("@angular/core").OutputEmitterRef<TxListInputResult>;
|
|
91
98
|
readonly field: import("@angular/core").Signal<ElementRef<HTMLTextAreaElement>>;
|
|
92
99
|
readonly statusId: string;
|
|
@@ -118,7 +125,9 @@ export declare class TxListInput extends TxFormControlBase<string[]> {
|
|
|
118
125
|
writeValue(value: string[] | null): void;
|
|
119
126
|
onInput(event: Event): void;
|
|
120
127
|
onBlur(): void;
|
|
128
|
+
/** Rewrites the text to one recognized item per line, without duplicates */
|
|
121
129
|
cleanUp(): void;
|
|
130
|
+
/** Empties the text */
|
|
122
131
|
clear(): void;
|
|
123
132
|
private setText;
|
|
124
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxListInput, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-list-input.d.ts","names":[],"sources":["../../../../packages/ui/list-input/src/list-input.types.ts","../../../../packages/ui/list-input/src/list-input.parsers.ts","../../../../packages/ui/list-input/src/list-input.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-list-input.d.ts","names":[],"sources":["../../../../packages/ui/list-input/src/list-input.types.ts","../../../../packages/ui/list-input/src/list-input.parsers.ts","../../../../packages/ui/list-input/src/list-input.component.ts"],"mappings":";;;;;;;YACY;;YAEA,qBAAqB;;YAErB;;iBAGK;;EAEf;;EAEA;;EAEA;;;qBCJW,qBAAmB;;;;;qBAKnB,qBAAmB;;wBAGhB,cAAc;;;;;wBAWd,aAAa;;wBAeb,WAAW;;wBAcX,YAAY;;qBAKf,uBAAuB,OAAO,iBAAiB;;;;;wBAW5C,YAAY,iCAAiC,QAAQ,mBAAmB,YAAW,SAA+B;;;;;qBCbrH,oBAAoB;mBACd;UAET;;WAEC,8BAAI;;WACJ,8BAAI,YAAA;;WACJ,gCAAM,YAAA;;WACN,sCAAY;;WACZ,mCAAS,YAAA;;WACT,qCAAW;;WACX,8BAAI;;WACJ,oCAAU;;WACV,8BAAI;;WACJ,sCAAY;;WAEZ,uCAAa;;WACb,kCAAQ;;WACR,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,kDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,qCAAW;;WACX,sCAAY,iBAAA;WAEZ,+BAAK,OAAA,WAAA;WAEL;WACA,sCAAY,OAAA;WACZ,mCAAS;WACT,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,kDAAA;WACX,oCAAU;WACV,+BAAK;IAnEoC,mBAAM;IAAsB,YAAM;IAAuB,aAAM;IAAsB,MAAA;;WAoE9H,gCAAM,OAAA;WAGN,wCAAc;WACd,uCAAa;WACb,iCAAO;WACP,oCAAU;WACV,yCAAe;WACf,kCAAQ;WACR,mCAAS;WAKT,wCAAc;WACd,0CAAgB;WAChB,kCAAQ;WACR,mCAAS;;;EAET,WAAW;EAQpB,QAAQ,OAAO;EAIf;;EAIA;;EAKA;UAKQ;SApFG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
|
|
@@ -1,39 +1,49 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraListboxTokens } from "@tectra-ng/themes";
|
|
3
3
|
import { TxOptionsBase, TxSelectItem, TxSelectPart } from "@tectra-ng/ui/select";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/** Parts of `tx-listbox` that `pt` can style. */
|
|
5
6
|
export type TxListboxPart = Exclude<TxSelectPart, 'box' | 'trigger' | 'value' | 'clear' | 'dropdown' | 'panel'>;
|
|
7
|
+
/** Event of `tx-listbox` when the selection changes. */
|
|
6
8
|
export interface TxListboxChangeEvent {
|
|
9
|
+
/** Model value after the change. */
|
|
7
10
|
value: unknown;
|
|
11
|
+
/** Option that was picked or toggled; `null` when nothing is left selected. */
|
|
8
12
|
option: unknown;
|
|
9
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* A list of options shown inline, without a popup — pick one value or several. Works with `[formControl]`, `ngModel` and signal forms. Uses the same option engine as select: groups, search, virtual scroll, lazy loading and templates.
|
|
16
|
+
* @see https://tectra-ng.com/components/listbox
|
|
17
|
+
*/
|
|
10
18
|
export declare class TxListbox extends TxOptionsBase<unknown> {
|
|
11
19
|
private readonly listboxTheme;
|
|
20
|
+
/** Items to choose from — objects, or plain strings / numbers */
|
|
12
21
|
readonly options: import("@angular/core").InputSignal<readonly unknown[]>;
|
|
22
|
+
/** Several values; the value is an array */
|
|
13
23
|
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
/** Shows a checkbox on each option (several values) */
|
|
14
25
|
readonly checkbox: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
|
+
/** With `multiple`: a plain click replaces the selection, Ctrl / ⌘ + click adds */
|
|
15
27
|
readonly metaKeySelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/** Check icon on selected options without checkboxes (off by default) */
|
|
16
29
|
readonly checkmark: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
/** Shows the selection, does not change it */
|
|
17
31
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
32
|
+
/** Red border and `aria-invalid`; follows the form control by default */
|
|
18
33
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
34
|
+
/** Accessible name of the list */
|
|
19
35
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
36
|
+
/** Id of the element that names the list (`tx-field` sets it) */
|
|
20
37
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
borderColor: string;
|
|
25
|
-
borderRadius: string;
|
|
26
|
-
shadow: string;
|
|
27
|
-
focusBorderColor: string;
|
|
28
|
-
focusRingShadow: string;
|
|
29
|
-
invalidBorderColor: string;
|
|
30
|
-
disabledBackground: string;
|
|
31
|
-
disabledColor: string;
|
|
32
|
-
};
|
|
33
|
-
}> | undefined>;
|
|
38
|
+
/** Design tokens of this instance (`listbox`); options use the `select` tokens */
|
|
39
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraListboxTokens> | undefined>;
|
|
40
|
+
/** Classes and styles of the parts: `root`, `header`, `filter`, `filterInput`, `list`, `group`, `option`, `check`, `empty`, `footer` */
|
|
34
41
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxListboxPart, import("@tectra-ng/core/config").TxPassThroughValue<TxListbox>>> | undefined>;
|
|
42
|
+
/** How `pt` merges with the global pass-through */
|
|
35
43
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
44
|
+
/** Removes the tectra styles */
|
|
36
45
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
46
|
+
/** The user changed the selection: `{ value, option }` */
|
|
37
47
|
readonly changed: import("@angular/core").OutputEmitterRef<TxListboxChangeEvent>;
|
|
38
48
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
39
49
|
readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-listbox.d.ts","names":[],"sources":["../../../../packages/ui/listbox/src/listbox.types.ts","../../../../packages/ui/listbox/src/listbox.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-listbox.d.ts","names":[],"sources":["../../../../packages/ui/listbox/src/listbox.types.ts","../../../../packages/ui/listbox/src/listbox.component.ts"],"mappings":";;;;;YAGY,gBAAgB,QAAQ;;iBAGnB;;EAEf;;EAEA;;;;;;qBCuBW,kBAAkB;mBACZ;;WAER,iCAAO;;WACP,kCAAQ;;WACR,kCAAQ;;WACR,0CAAgB;;WAChB,mCAAS;;WACT,kCAAQ;;WACR,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;WAEP,oCAAU;WACV,mCAAS;WACT,qCAAW,OAAA,QAAA,OAAA,gDAAA;WACX,iCAAO;qBACG,gCAAM;UACjB;WAEC,oCAAU;WACV,wCAAc;WAOd,0CAAgB;WAChB,mCAAS;;;EAElB,UAAU,OAAO;EAIjB;EAOA;EAKA,cAAc,MAAM;EAUpB,cAAc,OAAO;EAmCrB;EAOA;YAYU;YAIA,WAAW;YAIX,SAAS,MAAM;UAcjB;SA3IG,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"}
|
|
@@ -1,43 +1,65 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ElementRef } from "@angular/core";
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
4
|
+
import { TectraDeepPartial, TectraMentionTokens } from "@tectra-ng/themes";
|
|
5
5
|
import { TxOptionsBase, TxSelectItem, TxSelectPart } from "@tectra-ng/ui/select";
|
|
6
|
+
/** One suggestion of `tx-mention-textarea`: who or what can be mentioned. */
|
|
6
7
|
export interface TxMentionItem {
|
|
8
|
+
/** Text inserted after the trigger and shown in the list. */
|
|
7
9
|
label: string;
|
|
10
|
+
/** Stable identifier reported in `mentionsChange`. */
|
|
8
11
|
value: string;
|
|
12
|
+
/** Address of an image shown before the label, such as an avatar. */
|
|
9
13
|
image?: string;
|
|
14
|
+
/** Second line under the label in the list. */
|
|
10
15
|
description?: string;
|
|
11
16
|
}
|
|
17
|
+
/** Parts of `tx-mention-textarea` that `pt` can style. */
|
|
12
18
|
export type TxMentionTextareaPart = 'root' | 'textarea' | Extract<TxSelectPart, 'panel' | 'list' | 'option' | 'empty'>;
|
|
19
|
+
/** Event of `searched`: the user is typing a mention. */
|
|
13
20
|
export interface TxMentionSearchEvent {
|
|
21
|
+
/** Text typed after the trigger. */
|
|
14
22
|
query: string;
|
|
15
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* A text area where typing `@` suggests people (or anything else) next to the caret; the chosen one is inserted as `@Name`. `mentionsChange` reports who is mentioned in the text right now. The value is the text; works with `[formControl]`, `ngModel` and signal forms. Built on `txTextarea` and the select option list.
|
|
26
|
+
* @see https://tectra-ng.com/components/mention-textarea
|
|
27
|
+
*/
|
|
16
28
|
export declare class TxMentionTextarea extends TxOptionsBase<string> {
|
|
17
29
|
private readonly mentionTextareaTheme;
|
|
30
|
+
/** Items to suggest: `{ label, value, image?, description? }` */
|
|
18
31
|
readonly suggestions: import("@angular/core").InputSignal<readonly TxMentionItem[]>;
|
|
32
|
+
/** Character that starts a mention (`@` by default) */
|
|
19
33
|
readonly trigger: import("@angular/core").InputSignal<string>;
|
|
34
|
+
/** Filters `suggestions` by the typed text (on by default); turn off to search on a server through `filtered` */
|
|
20
35
|
readonly localSearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
/** Visible rows of the text area */
|
|
21
37
|
readonly lines: import("@angular/core").InputSignal<number>;
|
|
38
|
+
/** Grows with the text */
|
|
22
39
|
readonly autoResize: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
/** Text shown in an empty field */
|
|
23
41
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
42
|
+
/** Id of the text area for a `<label for>` */
|
|
24
43
|
readonly inputId: import("@angular/core").InputSignal<string | undefined>;
|
|
44
|
+
/** Accessible name of the text area */
|
|
25
45
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
46
|
+
/** Id of the element that labels the text area */
|
|
26
47
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
48
|
+
/** Red border and `aria-invalid`; follows the form control by default */
|
|
27
49
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
50
|
+
/** Text cannot be changed */
|
|
28
51
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
optionGap: string;
|
|
33
|
-
descriptionColor: string;
|
|
34
|
-
descriptionFontSize: string;
|
|
35
|
-
};
|
|
36
|
-
}> | undefined>;
|
|
52
|
+
/** Design tokens of this instance (`mention`) */
|
|
53
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMentionTokens> | undefined>;
|
|
54
|
+
/** Classes and styles of the parts: `root`, `textarea`, `panel`, `list`, `option`, `empty` */
|
|
37
55
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMentionTextareaPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMentionTextarea>>> | undefined>;
|
|
56
|
+
/** How `pt` merges with the global pass-through */
|
|
38
57
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
58
|
+
/** Removes the tectra styles */
|
|
39
59
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
60
|
+
/** Values of the items mentioned in the text, when the list changes */
|
|
40
61
|
readonly mentionsChange: import("@angular/core").OutputEmitterRef<string[]>;
|
|
62
|
+
/** An item was inserted */
|
|
41
63
|
readonly mentioned: import("@angular/core").OutputEmitterRef<TxMentionItem>;
|
|
42
64
|
readonly textarea: import("@angular/core").Signal<ElementRef<HTMLTextAreaElement>>;
|
|
43
65
|
private injector;
|
|
@@ -161,10 +183,15 @@ export declare class TxMentionTextarea extends TxOptionsBase<string> {
|
|
|
161
183
|
"mentioned": "mentioned";
|
|
162
184
|
}, never, never, true, never>;
|
|
163
185
|
}
|
|
186
|
+
/** Position of the caret inside a textarea, in px. */
|
|
164
187
|
export interface TxCaretPoint {
|
|
188
|
+
/** Distance from the top of the textarea to the caret line. */
|
|
165
189
|
top: number;
|
|
190
|
+
/** Distance from the left edge of the textarea to the caret. */
|
|
166
191
|
left: number;
|
|
192
|
+
/** Height of one text line. */
|
|
167
193
|
height: number;
|
|
168
194
|
}
|
|
195
|
+
/** Measures where the caret is in a textarea by laying the text out in a hidden mirror element. */
|
|
169
196
|
export declare function caretPoint(textarea: HTMLTextAreaElement, position: number): TxCaretPoint;
|
|
170
197
|
//# sourceMappingURL=tectra-ng-ui-mention-textarea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-mention-textarea.d.ts","names":[],"sources":["../../../../packages/ui/mention-textarea/src/mention-textarea.types.ts","../../../../packages/ui/mention-textarea/src/mention-textarea.component.ts","../../../../packages/ui/mention-textarea/src/caret.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-mention-textarea.d.ts","names":[],"sources":["../../../../packages/ui/mention-textarea/src/mention-textarea.types.ts","../../../../packages/ui/mention-textarea/src/mention-textarea.component.ts","../../../../packages/ui/mention-textarea/src/caret.ts"],"mappings":";;;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,8CAA8C,QAAQ;;iBAGjD;;EAEf;;;;;;qBC4BW,0BAA0B;mBACpB;;WAER,qCAAW,qBAAA;;WACX,iCAAO;;WACP,qCAAW;;WACX,+BAAK;;WACL,oCAAU;;WACV,qCAAW;;WACX,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,wDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,wCAAc;;WACd,mCAAS,iBAAA;WAET,kCAAQ,OAAA,WAAA;UACT;UACA;mBACS;mBACA;WAYR,oCAAU;WACV,mCAAS;WACT,qCAAW,OAAA,QAAA,OAAA,wDAAA;WACX,0CAAS;WACT,+CAAc;qBACJ,gCAAM,qBAAA;qBACG,oCAAU;WAE7B,gCAAM;WACN,+BAAK;;;;;UACN;mBACS;UACT;WAEC,8BAAI;WACJ,kCAAQ,OAAA;WAYR,mCAAS;WACT,mCAAS;;;;EAgBlB;EAMA,UAAU,OAAO;EAwBjB;EAMA;EAKA,iBAAiB,OAAO;EAIxB,cAAc,MAAM;EAIpB;YAKU;YAIA;YAIA,SAAS,MAAM;UAoBjB;UA6BA;SAjMG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAiB;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;;;;iBCzBb;;EAEf;;EAEA;;EAEA;;;wBAIc,WAAW,UAAU,qBAAqB,mBAAmB"}
|