@tectra-ng/ui 0.4.4 → 0.4.5
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/amount/README.md +19 -1
- package/analog-clock/README.md +1 -1
- package/autocomplete/README.md +1 -1
- package/avatar/README.md +24 -4
- package/cascade-select/README.md +1 -1
- package/chips-input/README.md +10 -5
- package/color-picker/README.md +5 -0
- package/countdown/README.md +7 -1
- package/country/README.md +14 -1
- package/country-select/README.md +2 -1
- package/export/README.md +27 -2
- package/export-font/README.md +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs +96 -14
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +6 -19
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +5 -4
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs +59 -17
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-button.mjs +2 -2
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-card.mjs +2 -2
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +7 -4
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +114 -15
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +93 -6
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs +39 -10
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +28 -5
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +15 -6
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs +10 -8
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +6 -6
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs +1237 -84
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs +51 -23
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +5 -4
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs +84 -19
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +24 -2
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +68 -9
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-link.mjs +38 -14
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +16 -5
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +5 -1
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +26 -9
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +3 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +45 -14
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +4 -2
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs +18 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password.mjs +2 -2
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +36 -16
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-rating.mjs +2 -2
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs +30 -7
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +93 -8
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-status-icon.mjs +40 -3
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +20 -6
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +10 -8
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +4 -4
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +33 -9
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/icon-field/README.md +2 -1
- package/key-filter/README.md +3 -2
- package/knob/README.md +3 -1
- package/label/README.md +4 -1
- package/link/README.md +4 -1
- package/message/README.md +2 -2
- package/month-calendar/README.md +2 -1
- package/multiselect/README.md +1 -1
- package/package.json +4 -4
- package/panel/README.md +3 -1
- package/panel-menu/README.md +3 -2
- package/password-generator/README.md +2 -0
- package/pill/README.md +4 -4
- package/select/README.md +1 -1
- package/stat-tiles/README.md +17 -1
- package/status-icon/README.md +3 -1
- package/table/README.md +1 -1
- package/tag/README.md +2 -0
- package/tree-select/README.md +1 -1
- package/truncate-text/README.md +2 -1
- package/types/tectra-ng-ui-amount.d.ts +41 -1
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +1 -4
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +45 -12
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +3 -2
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +54 -6
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +38 -1
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +12 -1
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +17 -4
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +7 -1
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +2 -2
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +68 -8
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +9 -2
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +19 -4
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +10 -2
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +8 -1
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +8 -2
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +5 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +1 -1
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +14 -4
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +34 -6
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +1 -1
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +10 -3
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +9 -5
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +5 -2
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +49 -5
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +20 -2
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +2 -1
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +3 -3
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +7 -2
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-cascade-select.d.ts","names":[],"sources":["../../../../packages/ui/cascade-select/src/cascade-select.types.ts","../../../../packages/ui/cascade-select/src/cascade-select.component.ts"],"mappings":";;;;;;;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-cascade-select.d.ts","names":[],"sources":["../../../../packages/ui/cascade-select/src/cascade-select.types.ts","../../../../packages/ui/cascade-select/src/cascade-select.component.ts"],"mappings":";;;;;;;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;qBC+BW,wBAAwB;mBAClB;;WAER,iCAAO;;WACP,qCAAW;;WACX,qCAAW;;WACX,wCAAc;;WACd,0CAAgB;;WAChB,6CAAmB;;WACnB,iCAAO;;WACP,kCAAQ;;WACR,uCAAa;;WACb,qCAAW;;WACX,mCAAS;;WACT,sCAAY;;WACZ,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;;WACP,gCAAM;;WACN,gC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;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
|
|
@@ -20,7 +20,27 @@ export interface TxChipsInputItemContext {
|
|
|
20
20
|
export interface TxChipsInputEvent {
|
|
21
21
|
/** The chip text that was added, removed or rejected. */
|
|
22
22
|
value: string;
|
|
23
|
-
/** The list of chips after the change;
|
|
23
|
+
/** The list of chips after the change; for a rejected value, the list after the whole input (a paste, an `add()` call) was handled. */
|
|
24
|
+
values: string[];
|
|
25
|
+
}
|
|
26
|
+
/** Why a value was not added: already in the list, the list is full, no match with `itemPattern`, or longer than `maxLength`. */
|
|
27
|
+
export type TxChipsInputRejectReason = 'duplicate' | 'max' | 'pattern' | 'length';
|
|
28
|
+
/** What `maxLength` does with a longer value: cut it (`truncate`) or refuse it (`reject`). */
|
|
29
|
+
export type TxChipsInputLengthMode = 'truncate' | 'reject';
|
|
30
|
+
/** Turns a trimmed value into the chip text before the checks; `null` or `''` drops the value. */
|
|
31
|
+
export type TxChipsInputNormalizer = (value: string) => string | null | undefined;
|
|
32
|
+
/** Payload of `rejected`: the refused value, the list after the whole input was handled and the reason. */
|
|
33
|
+
export interface TxChipsInputRejectedEvent extends TxChipsInputEvent {
|
|
34
|
+
/** Why the value was not added. */
|
|
35
|
+
reason: TxChipsInputRejectReason;
|
|
36
|
+
}
|
|
37
|
+
/** Payload of `committed`: everything one Enter, separator, blur, paste or `add()` call did. */
|
|
38
|
+
export interface TxChipsInputCommitEvent {
|
|
39
|
+
/** Values added, in order. */
|
|
40
|
+
added: string[];
|
|
41
|
+
/** Values refused, with their reasons. */
|
|
42
|
+
rejected: TxChipsInputRejectedEvent[];
|
|
43
|
+
/** The list of chips after the change. */
|
|
24
44
|
values: string[];
|
|
25
45
|
}
|
|
26
46
|
/**
|
|
@@ -34,10 +54,13 @@ export declare class TxChipsInputItemTemplate {
|
|
|
34
54
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxChipsInputItemTemplate, "ng-template[txChipsInputItem]", never, {}, {}, never, never, true, never>;
|
|
35
55
|
}
|
|
36
56
|
/**
|
|
37
|
-
* A text field that turns typed text into removable chips;
|
|
57
|
+
* A text field that turns typed text into removable chips; the value is a list of strings. A `ControlValueAccessor` —
|
|
58
|
+
* works with `[formControl]`, `ngModel`, signal forms and `[(value)]`.
|
|
38
59
|
*/
|
|
39
60
|
export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
40
61
|
private readonly chipsInputTheme;
|
|
62
|
+
/** Two-way: the list of chips; use it or a form control */
|
|
63
|
+
readonly value: import("@angular/core").ModelSignal<string[] | null>;
|
|
41
64
|
/** Text shown while the field is empty */
|
|
42
65
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
43
66
|
/** Text or pattern that ends a chip while typing and splits pasted text (`,` by default); Enter always adds */
|
|
@@ -50,8 +73,12 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
50
73
|
readonly caseSensitive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
74
|
/** Maximum number of chips; the field becomes read-only when full */
|
|
52
75
|
readonly max: import("@angular/core").InputSignal<number | undefined>;
|
|
53
|
-
/** Maximum length of one chip */
|
|
76
|
+
/** Maximum length of one chip; also caps typing in the field */
|
|
54
77
|
readonly maxLength: import("@angular/core").InputSignal<number | undefined>;
|
|
78
|
+
/** What happens to a longer pasted or added value: `truncate` cuts it (default), `reject` refuses it with the reason `length` */
|
|
79
|
+
readonly maxLengthMode: import("@angular/core").InputSignal<TxChipsInputLengthMode>;
|
|
80
|
+
/** `(value) => string | null` — turns the trimmed text into the chip text before the checks (duplicates compare the result); `null` or `''` drops the value */
|
|
81
|
+
readonly normalize: import("@angular/core").InputSignal<TxChipsInputNormalizer | undefined>;
|
|
55
82
|
/** Values that do not match are rejected (`rejected` output) */
|
|
56
83
|
readonly itemPattern: import("@angular/core").InputSignal<RegExp | undefined>;
|
|
57
84
|
/** Shows a button that removes all chips */
|
|
@@ -84,8 +111,10 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
84
111
|
readonly added: import("@angular/core").OutputEmitterRef<TxChipsInputEvent>;
|
|
85
112
|
/** A chip was removed: `{ value, values }` */
|
|
86
113
|
readonly removed: import("@angular/core").OutputEmitterRef<TxChipsInputEvent>;
|
|
87
|
-
/** A value was not added
|
|
88
|
-
readonly rejected: import("@angular/core").OutputEmitterRef<
|
|
114
|
+
/** A value was not added: `{ value, values, reason }`, `reason` is `duplicate`, `max`, `pattern` or `length` */
|
|
115
|
+
readonly rejected: import("@angular/core").OutputEmitterRef<TxChipsInputRejectedEvent>;
|
|
116
|
+
/** Once per Enter, separator, blur, paste or `add()` call: `{ added, rejected, values }` */
|
|
117
|
+
readonly committed: import("@angular/core").OutputEmitterRef<TxChipsInputCommitEvent>;
|
|
89
118
|
readonly itemTemplate: import("@angular/core").Signal<TxChipsInputItemTemplate | undefined>;
|
|
90
119
|
readonly field: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
91
120
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
@@ -109,14 +138,21 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
109
138
|
removeAt(index: number): void;
|
|
110
139
|
/** Removes every chip and the typed text */
|
|
111
140
|
clear(): void;
|
|
112
|
-
/** Adds a chip or a list of chips with the same
|
|
141
|
+
/** Adds a chip or a list of chips with the same steps as typing (`normalize`, `maxLength`, `itemPattern`, duplicates, `max`); emits `added` / `rejected`; does nothing when disabled or read-only. The typed text stays */
|
|
113
142
|
add(value: string | readonly string[]): void;
|
|
114
143
|
/** Clears the typed text and keeps the chips */
|
|
115
144
|
clearText(): void;
|
|
116
145
|
private addAll;
|
|
146
|
+
private prepare;
|
|
147
|
+
private rejectReason;
|
|
117
148
|
private setText;
|
|
118
149
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxChipsInput, never>;
|
|
119
150
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxChipsInput, "tx-chips-input", never, {
|
|
151
|
+
"value": {
|
|
152
|
+
"alias": "value";
|
|
153
|
+
"required": false;
|
|
154
|
+
"isSignal": true;
|
|
155
|
+
};
|
|
120
156
|
"placeholder": {
|
|
121
157
|
"alias": "placeholder";
|
|
122
158
|
"required": false;
|
|
@@ -152,6 +188,16 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
152
188
|
"required": false;
|
|
153
189
|
"isSignal": true;
|
|
154
190
|
};
|
|
191
|
+
"maxLengthMode": {
|
|
192
|
+
"alias": "maxLengthMode";
|
|
193
|
+
"required": false;
|
|
194
|
+
"isSignal": true;
|
|
195
|
+
};
|
|
196
|
+
"normalize": {
|
|
197
|
+
"alias": "normalize";
|
|
198
|
+
"required": false;
|
|
199
|
+
"isSignal": true;
|
|
200
|
+
};
|
|
155
201
|
"itemPattern": {
|
|
156
202
|
"alias": "itemPattern";
|
|
157
203
|
"required": false;
|
|
@@ -223,10 +269,12 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
223
269
|
"isSignal": true;
|
|
224
270
|
};
|
|
225
271
|
}, {
|
|
272
|
+
"value": "valueChange";
|
|
226
273
|
"text": "textChange";
|
|
227
274
|
"added": "added";
|
|
228
275
|
"removed": "removed";
|
|
229
276
|
"rejected": "rejected";
|
|
277
|
+
"committed": "committed";
|
|
230
278
|
}, ["itemTemplate"], never, true, never>;
|
|
231
279
|
}
|
|
232
280
|
//# sourceMappingURL=tectra-ng-ui-chips-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-chips-input.d.ts","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input.types.ts","../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts"],"mappings":";;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-chips-input.d.ts","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input.types.ts","../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts"],"mappings":";;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;YAIU;;YAGA;;YAGA,0BAA0B;;iBAGrB,kCAAkC;;EAEjD,QAAQ;;;iBAIO;;EAEf;;EAEA,UAAU;;EAEV;;;;;;qBCzCW;WACF,aAAW,YAAA;SAEb,uBAAuB,YAAY,0BAA0B,mBAAmB,WAAW;SAHvF,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBC4DA,qBAAqB;mBACf;;WAEC,+BAAK;;WACd,qCAAW;;WACX,mCAAS,qBAAA;;WACT,mCAAS;;WACT,wCAAc;;WACd,uCAAa;;WACb,6BAAG;;WACH,mCAAS;;WACT,uCAAa,YAAA;;WACb,mCAAS,YAAA;;WACT,qCAAW,YAAA;;WACX,mCAAS;;WACT,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,mDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WACR,8BAAI;;WAEJ,+BAAK,iBAAA;;WACL,iCAAO,iBAAA;;WACP,kCAAQ,iBAAA;;WACR,mCAAS,iBAAA;WAET,sCAAY,OAAA;WACZ,+BAAK,OAAA,WAAA;WAEL,sCAAY,wCAAA;WACZ,mCAAS;WACT,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,mDAAA;WAEX,gCAAM;WACN,gCAAM;WAIN,kCAAQ;WACR,mCAAS;;;EAET,WAAW;EAIpB,YAAY;EAIZ,QAAQ,OAAO;EAYf,QAAQ,OAAO;EAqBf,UAAU,OAAO;EAkBjB;EAQA,YAAY,OAAO;;EAMnB,SAAS;;EAWT;;EAMA,IAAI;;EAOJ;UAIQ;UA4BA;UAWA;UAiBA;SA9MG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA"}
|
|
@@ -4,7 +4,7 @@ import { ElementRef } from "@angular/core";
|
|
|
4
4
|
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from "@angular/forms";
|
|
5
5
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
6
6
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
7
|
-
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
7
|
+
import { TxPanelWidth, TxPlacement } from "@tectra-ng/core/overlay";
|
|
8
8
|
import { TectraColorPickerTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
9
9
|
/** Type of the picker value: `hex` string, `rgb` object or `hsb` object. */
|
|
10
10
|
export type TxColorFormat = 'hex' | 'rgb' | 'hsb';
|
|
@@ -60,6 +60,16 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
60
60
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
61
61
|
/** Id of the element that labels the button */
|
|
62
62
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
63
|
+
/** Accessible name of the saturation / brightness area (translated "Saturation and brightness" by default) */
|
|
64
|
+
readonly areaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
65
|
+
/** Accessible name of the hue slider (translated "Hue" by default) */
|
|
66
|
+
readonly hueLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
67
|
+
/** Accessible name of the hex field in the panel (translated "Hex colour" by default) */
|
|
68
|
+
readonly hexLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
69
|
+
/** Accessible name of the clear button (translated "Clear" by default, none when `clearText` names it) */
|
|
70
|
+
readonly clearLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
71
|
+
/** Text shown next to the clear icon; without it the button shows only the icon */
|
|
72
|
+
readonly clearText: import("@angular/core").InputSignal<string | undefined>;
|
|
63
73
|
/** `small`, `medium`, `large` */
|
|
64
74
|
readonly size: import("@angular/core").InputSignal<TxColorPickerSize>;
|
|
65
75
|
/** Red border and `aria-invalid`; follows the form control by default */
|
|
@@ -95,6 +105,7 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
95
105
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
96
106
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxColorPickerPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
97
107
|
readonly positions: import("@angular/cdk/overlay").ConnectedPosition[];
|
|
108
|
+
readonly panelWidth: TxPanelWidth;
|
|
98
109
|
readonly scrollStrategy: import("@angular/cdk/overlay").ScrollStrategy;
|
|
99
110
|
readonly panelId: string;
|
|
100
111
|
readonly valueId: string;
|
|
@@ -113,6 +124,7 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
113
124
|
readonly triggerText: import("@angular/core").Signal<string>;
|
|
114
125
|
readonly triggerLabel: import("@angular/core").Signal<string | null>;
|
|
115
126
|
readonly fieldLabel: import("@angular/core").Signal<string | null>;
|
|
127
|
+
readonly clearName: import("@angular/core").Signal<string | null>;
|
|
116
128
|
readonly editable: import("@angular/core").Signal<boolean>;
|
|
117
129
|
readonly hostStyle: import("@angular/core").Signal<{
|
|
118
130
|
[x: string]: string;
|
|
@@ -201,6 +213,31 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
201
213
|
"required": false;
|
|
202
214
|
"isSignal": true;
|
|
203
215
|
};
|
|
216
|
+
"areaLabel": {
|
|
217
|
+
"alias": "areaLabel";
|
|
218
|
+
"required": false;
|
|
219
|
+
"isSignal": true;
|
|
220
|
+
};
|
|
221
|
+
"hueLabel": {
|
|
222
|
+
"alias": "hueLabel";
|
|
223
|
+
"required": false;
|
|
224
|
+
"isSignal": true;
|
|
225
|
+
};
|
|
226
|
+
"hexLabel": {
|
|
227
|
+
"alias": "hexLabel";
|
|
228
|
+
"required": false;
|
|
229
|
+
"isSignal": true;
|
|
230
|
+
};
|
|
231
|
+
"clearLabel": {
|
|
232
|
+
"alias": "clearLabel";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
236
|
+
"clearText": {
|
|
237
|
+
"alias": "clearText";
|
|
238
|
+
"required": false;
|
|
239
|
+
"isSignal": true;
|
|
240
|
+
};
|
|
204
241
|
"size": {
|
|
205
242
|
"alias": "size";
|
|
206
243
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-color-picker.d.ts","names":[],"sources":["../../../../packages/ui/color-picker/src/color-picker.types.ts","../../../../packages/ui/color-picker/src/color-picker.component.ts","../../../../packages/ui/color-picker/src/color.ts","../../../../packages/ui/color-picker/src/color-validator.ts"],"mappings":";;;;;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;YAIU,wBAAwB,QAAQ;;;;;qBCiC/B,sBAAsB,kBAAkB,yBAAyB;mBAC3D;;WAER,gCAAM,YAAA;;WACN,gCAAM;;WACN,+BAAK;;WACL,iCAAO;;WACP,mCAAS;;WACT,mCAAS;;WACT,mCAAS;;WACT,qCAAW;;WACX,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,8BAAI,YAAA;;WACJ,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;;WACP,gCAAM;;WACN,gCAAM;WAEN,iCAAO,OAAA,WAAA;WACP,8BAAI,OAAA,WAAA;WACJ,+BAAK,OAAA,WAAA;UAEN;UACA;WACC,aAAW;UACZ;UACA;mBACS;mBACA;WAWR,sCAAY,wCAAA;WACZ,mCAAS;WACT,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;WACX,0CAAS;WACT,+CAAc;WACd;WACA;WAEA,6BAAG,eAAA;WACH,kCAAQ;WACR,gCAAM;WACN,wCAAc;WACd,mCAAS,eAAA;WACT,+BAAK;WACL,mCAAS;mBACD;UACT;WAEC,6BAAG;WACH,kCAAQ;WACR,kCAAQ;WAKR,qCAAW;WACX,sCAAY;WAOZ,oCAAU;WACV,kCAAQ;WACR,mCAAS;;;WACT,oCAAU;;;EAEV,WAAW,OAAO;EAa3B,SAAS,SAAS,kBAAkB;EAIpC,aAAa,OAAO;EAcpB;EAeA;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-color-picker.d.ts","names":[],"sources":["../../../../packages/ui/color-picker/src/color-picker.types.ts","../../../../packages/ui/color-picker/src/color-picker.component.ts","../../../../packages/ui/color-picker/src/color.ts","../../../../packages/ui/color-picker/src/color-validator.ts"],"mappings":";;;;;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;YAIU,wBAAwB,QAAQ;;;;;qBCiC/B,sBAAsB,kBAAkB,yBAAyB;mBAC3D;;WAER,gCAAM,YAAA;;WACN,gCAAM;;WACN,+BAAK;;WACL,iCAAO;;WACP,mCAAS;;WACT,mCAAS;;WACT,mCAAS;;WACT,qCAAW;;WACX,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,mCAAS;;WACT,kCAAQ;;WACR,kCAAQ;;WACR,oCAAU;;WACV,mCAAS;;WACT,8BAAI,YAAA;;WACJ,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;;WACP,gCAAM;;WACN,gCAAM;WAEN,iCAAO,OAAA,WAAA;WACP,8BAAI,OAAA,WAAA;WACJ,+BAAK,OAAA,WAAA;UAEN;UACA;WACC,aAAW;UACZ;UACA;mBACS;mBACA;WAWR,sCAAY,wCAAA;WACZ,mCAAS;WACT,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;WACX,0CAAS;WACT,YAAU;WACV,+CAAc;WACd;WACA;WAEA,6BAAG,eAAA;WACH,kCAAQ;WACR,gCAAM;WACN,wCAAc;WACd,mCAAS,eAAA;WACT,+BAAK;WACL,mCAAS;mBACD;UACT;WAEC,6BAAG;WACH,kCAAQ;WACR,kCAAQ;WAKR,qCAAW;WACX,sCAAY;WAOZ,oCAAU;WACV,mCAAS;WACT,kCAAQ;WACR,mCAAS;;;WACT,oCAAU;;;EAEV,WAAW,OAAO;EAa3B,SAAS,SAAS,kBAAkB;EAIpC,aAAa,OAAO;E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heme;
|
|
65
|
-
/** Number of `unit`s to count down from; a new value starts again */
|
|
65
|
+
/** Number of `unit`s to count down from; a new value (or `unit`) starts again unless `restartOnChange` is off */
|
|
66
66
|
readonly value: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
67
67
|
/** `seconds`, `minutes`, `hours` or `days` */
|
|
68
68
|
readonly unit: import("@angular/core").InputSignal<TxCountdownUnit>;
|
|
@@ -76,6 +76,8 @@ export declare class TxCountdown {
|
|
|
76
76
|
readonly endingSoon: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
77
77
|
/** Stops the countdown and keeps the time left; it goes on from there */
|
|
78
78
|
readonly paused: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
79
|
+
/** `true` (default) — a new `value` or `unit` starts the countdown again; `false` — a running countdown keeps its deadline and the new value is taken at the next start (after zero or `restart()`). A new `target` always moves the deadline */
|
|
80
|
+
readonly restartOnChange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
79
81
|
/** `off` (default — a ticking timer would talk every second), `polite` or `assertive` */
|
|
80
82
|
readonly ariaLive: import("@angular/core").InputSignal<"off" | "polite" | "assertive">;
|
|
81
83
|
/** Design tokens of this instance (`countdown`) */
|
|
@@ -101,6 +103,7 @@ export declare class TxCountdown {
|
|
|
101
103
|
private readonly frozen;
|
|
102
104
|
private timer;
|
|
103
105
|
private done;
|
|
106
|
+
private countsValue;
|
|
104
107
|
readonly resolvedFormat: import("@angular/core").Signal<TxCountdownFormat>;
|
|
105
108
|
readonly remainingMs: import("@angular/core").Signal<number>;
|
|
106
109
|
readonly isExpired: import("@angular/core").Signal<boolean>;
|
|
@@ -108,6 +111,9 @@ export declare class TxCountdown {
|
|
|
108
111
|
readonly text: import("@angular/core").Signal<string>;
|
|
109
112
|
readonly context: import("@angular/core").Signal<TxCountdownContext>;
|
|
110
113
|
private readonly start;
|
|
114
|
+
/** Starts again from the current `value` and `unit` (or `target`) */
|
|
115
|
+
restart(): void;
|
|
116
|
+
private begin;
|
|
111
117
|
private readonly pause;
|
|
112
118
|
private readonly refresh;
|
|
113
119
|
private readonly schedule;
|
|
@@ -150,6 +156,11 @@ export declare class TxCountdown {
|
|
|
150
156
|
"required": false;
|
|
151
157
|
"isSignal": true;
|
|
152
158
|
};
|
|
159
|
+
"restartOnChange": {
|
|
160
|
+
"alias": "restartOnChange";
|
|
161
|
+
"required": false;
|
|
162
|
+
"isSignal": true;
|
|
163
|
+
};
|
|
153
164
|
"ariaLive": {
|
|
154
165
|
"alias": "ariaLive";
|
|
155
166
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-countdown.d.ts","names":[],"sources":["../../../../packages/ui/countdown/src/countdown.types.ts","../../../../packages/ui/countdown/src/countdown.utils.ts","../../../../packages/ui/countdown/src/countdown.templates.ts","../../../../packages/ui/countdown/src/remaining-time.pipe.ts","../../../../packages/ui/countdown/src/countdown.component.ts"],"mappings":";;;;;YACY;;YAEA;;YAEA,oBAAoB;;YAEpB;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;qBCnBW,sBAAsB,OAAO;;;;wBAU1B,gBAAgB;;wBAUhB,eAAe;EAAe;EAAc;EAAe;EAAiB;;;wBAW5E,WAAW,OAAO;;;;;qBC9BrB;WACF,aAAW,YAAA;SAEb,uBAAuB,YAAY,kBAAkB,mBAAmB,WAAW;SAH/E,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;qBCCA,+BAA+B;EAC1C,UAAU;SADC,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;;qBCiCA;mBACM;;WAER,+BAAK;;WACL,8BAAI,YAAA;;WACJ,gCAAM,YAAA;;WACN,gCAAM;;WACN,gCAAM,YAAA;;WACN,oCAAU;;WACV,gCAAM;;WACN,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,mCAAS;;WACT,8BAAI;qBAEM,uCAAa,OAAA;WAEvB,oCAAU;WACV,qCAAW,OAAA,QAAA,gDAAA;WACX,mCAAS;;;mBAED;mBACA;mBACA;UACT;UACA;WAEC,wCAAc,OAAA;WACd,qCAAW;WAMX,mCAAS;WACT,kCAAQ;WACR,8BAAI;WAKJ,iCAAO,OAAA;mBAEC;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-countdown.d.ts","names":[],"sources":["../../../../packages/ui/countdown/src/countdown.types.ts","../../../../packages/ui/countdown/src/countdown.utils.ts","../../../../packages/ui/countdown/src/countdown.templates.ts","../../../../packages/ui/countdown/src/remaining-time.pipe.ts","../../../../packages/ui/countdown/src/countdown.component.ts"],"mappings":";;;;;YACY;;YAEA;;YAEA,oBAAoB;;YAEpB;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;qBCnBW,sBAAsB,OAAO;;;;wBAU1B,gBAAgB;;wBAUhB,eAAe;EAAe;EAAc;EAAe;EAAiB;;;wBAW5E,WAAW,OAAO;;;;;qBC9BrB;WACF,aAAW,YAAA;SAEb,uBAAuB,YAAY,kBAAkB,mBAAmB,WAAW;SAH/E,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;qBCCA,+BAA+B;EAC1C,UAAU;SADC,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;;qBCiCA;mBACM;;WAER,+BAAK;;WACL,8BAAI,YAAA;;WACJ,gCAAM,YAAA;;WACN,gCAAM;;WACN,gCAAM,YAAA;;WACN,oCAAU;;WACV,gCAAM;;WACN,yCAAe;;WACf,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,mCAAS;;WACT,8BAAI;qBAEM,uCAAa,OAAA;WAEvB,oCAAU;WACV,qCAAW,OAAA,QAAA,gDAAA;WACX,mCAAS;;;mBAED;mBACA;mBACA;UACT;UACA;UACA;WAEC,wCAAc,OAAA;WACd,qCAAW;WAMX,mCAAS;WACT,kCAAQ;WACR,8BAAI;WAKJ,iCAAO,OAAA;mBAEC;;EAWjB;UAIQ;mBAcS;mBAYA;mBAMA;mBAeA;mBAYA;SA3HN,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;IAAA"}
|
|
@@ -5,9 +5,9 @@ import { TxFieldVariant, TxSelectItem, TxSelectSize } from "@tectra-ng/ui/select
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/** One country offered by `tx-country-select`. */
|
|
7
7
|
export interface TxCountryOption {
|
|
8
|
-
/** ISO 3166-1 alpha-2 code, in any case. */
|
|
8
|
+
/** ISO 3166-1 alpha-2 code, in any case; other text (`none`, `other`) makes a row without a flag. */
|
|
9
9
|
code: string;
|
|
10
|
-
/** Value written to the model; the upper-case code
|
|
10
|
+
/** Value written to the model; when not set, the upper-case country code, or other text as it is. */
|
|
11
11
|
value?: string;
|
|
12
12
|
/** Name shown for the country; the localized name when not set. */
|
|
13
13
|
label?: string;
|
|
@@ -17,10 +17,12 @@ export interface TxCountryOption {
|
|
|
17
17
|
hint?: string;
|
|
18
18
|
/** Stops the country from being picked. */
|
|
19
19
|
disabled?: boolean;
|
|
20
|
+
/** Draws the flag; on for country and region codes, off for any other code, which shows only its label. */
|
|
21
|
+
flag?: boolean;
|
|
20
22
|
}
|
|
21
23
|
/** A country option with every default filled in, as the list renders it. */
|
|
22
24
|
export interface TxCountryItem {
|
|
23
|
-
/** Upper-case country code. */
|
|
25
|
+
/** Upper-case country code, or other text as it is. */
|
|
24
26
|
code: string;
|
|
25
27
|
/** Value written to the model. */
|
|
26
28
|
value: string;
|
|
@@ -32,6 +34,8 @@ export interface TxCountryItem {
|
|
|
32
34
|
hint: string;
|
|
33
35
|
/** Whether the country cannot be picked. */
|
|
34
36
|
disabled: boolean;
|
|
37
|
+
/** Whether the row draws a flag; a row without one shows only its label. */
|
|
38
|
+
flag: boolean;
|
|
35
39
|
}
|
|
36
40
|
/** How the list is ordered: `name` by the localized name, or `none` to keep the order of `options`. */
|
|
37
41
|
export type TxCountrySort = 'name' | 'none';
|
|
@@ -42,7 +46,7 @@ export type TxCountrySort = 'name' | 'none';
|
|
|
42
46
|
export declare class TxCountrySelect extends TxFormControlBase<string | string[]> {
|
|
43
47
|
private readonly countrySelectTheme;
|
|
44
48
|
private locale;
|
|
45
|
-
/** Countries to offer: codes, or `{ code, value?, label?, count?, hint?, disabled? }`; all countries by default */
|
|
49
|
+
/** Countries to offer: codes, or `{ code, value?, label?, count?, hint?, disabled?, flag? }`; all countries by default. A code that is not a country or a region (`none`, `ZZ`) is a text row without a flag, and its value stays as written; `flag: false` drops the flag of any row */
|
|
46
50
|
readonly options: import("@angular/core").InputSignal<readonly (string | TxCountryOption)[] | undefined>;
|
|
47
51
|
/** Several countries; the value is an array */
|
|
48
52
|
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -54,6 +58,8 @@ export declare class TxCountrySelect extends TxFormControlBase<string | string[]
|
|
|
54
58
|
readonly shape: import("@angular/core").InputSignal<TxFlagShape>;
|
|
55
59
|
/** With `multiple`: flags shown in the field before "+N" */
|
|
56
60
|
readonly maxFlags: import("@angular/core").InputSignal<number>;
|
|
61
|
+
/** With `multiple`: up to this many picked countries show their names in the field, more show only flags (1 by default) */
|
|
62
|
+
readonly maxNamed: import("@angular/core").InputSignal<number>;
|
|
57
63
|
/** Above this many countries the list is virtual */
|
|
58
64
|
readonly virtualScrollThreshold: import("@angular/core").InputSignal<number>;
|
|
59
65
|
/** Text shown while nothing is selected */
|
|
@@ -82,10 +88,12 @@ export declare class TxCountrySelect extends TxFormControlBase<string | string[]
|
|
|
82
88
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
83
89
|
/** The user changed the value */
|
|
84
90
|
readonly changed: import("@angular/core").OutputEmitterRef<string | string[] | null>;
|
|
91
|
+
readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
85
92
|
readonly items: import("@angular/core").Signal<TxCountryItem[]>;
|
|
86
93
|
readonly virtual: import("@angular/core").Signal<boolean>;
|
|
87
94
|
extraCount(items: TxSelectItem[]): number;
|
|
88
95
|
firstFlags(items: TxSelectItem[]): TxCountryItem[];
|
|
96
|
+
showsNames(items: TxSelectItem[]): boolean;
|
|
89
97
|
onModelChange(value: string | string[] | null): void;
|
|
90
98
|
onClosed(): void;
|
|
91
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCountrySelect, never>;
|
|
@@ -120,6 +128,11 @@ export declare class TxCountrySelect extends TxFormControlBase<string | string[]
|
|
|
120
128
|
"required": false;
|
|
121
129
|
"isSignal": true;
|
|
122
130
|
};
|
|
131
|
+
"maxNamed": {
|
|
132
|
+
"alias": "maxNamed";
|
|
133
|
+
"required": false;
|
|
134
|
+
"isSignal": true;
|
|
135
|
+
};
|
|
123
136
|
"virtualScrollThreshold": {
|
|
124
137
|
"alias": "virtualScrollThreshold";
|
|
125
138
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-country-select.d.ts","names":[],"sources":["../../../../packages/ui/country-select/src/country-select.types.ts","../../../../packages/ui/country-select/src/country-select.component.ts"],"mappings":";;;;;;iBACiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-country-select.d.ts","names":[],"sources":["../../../../packages/ui/country-select/src/country-select.types.ts","../../../../packages/ui/country-select/src/country-select.component.ts"],"mappings":";;;;;;iBACiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;;;;qBCTC,wBAAwB;mBAClB;UAET;;WAEC,iCAAO,+BAAA;;WACP,kCAAQ;;WACR,gCAAM;;WACN,8BAAI,YAAA;;WACJ,+BAAK,YAAA;;WACL,kCAAQ;;WACR,kCAAQ;;WACR,gDAAsB;;WACtB,qCAAW;;WACX,mCAAS;;WACT,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,kCAAQ;;WAER,iCAAO;WAEP,mCAAS;WAET,+BAAK,OAAA;WAsBL,iCAAO;EAEhB,WAAW,OAAO;EAIlB,WAAW,OAAO,iBAAiB;EAInC,WAAW,OAAO;EAIlB,cAAc;EAKd;SAvEW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;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"}
|
|
@@ -20,7 +20,7 @@ export interface TxFlag {
|
|
|
20
20
|
*/
|
|
21
21
|
export type TxFlagResolver = (code: string, shape: TxFlagShape) => TxFlag | Promise<TxFlag | null> | null;
|
|
22
22
|
/**
|
|
23
|
-
* A country as a flag and its name. The name comes from `Intl.DisplayNames` in the current tectra locale, so it follows `setLocale`. Unknown values are shown as plain text. Also exports the ISO 3166-1 code list (`TX_COUNTRY_CODES`), `countryName`, `countryEmoji` and `isCountryCode`.
|
|
23
|
+
* A country as a flag and its name. The name comes from `Intl.DisplayNames` in the current tectra locale, so it follows `setLocale`. Unknown values are shown as plain text. Also exports the ISO 3166-1 code list (`TX_COUNTRY_CODES`), the region codes (`TX_REGION_CODES`), `countryName`, `countryEmoji` and `isCountryCode`.
|
|
24
24
|
* @see https://tectra-ng.com/components/country
|
|
25
25
|
*/
|
|
26
26
|
export declare class TxCountry {
|
|
@@ -110,12 +110,18 @@ export declare class TxCountry {
|
|
|
110
110
|
}
|
|
111
111
|
/** ISO 3166-1 alpha-2 codes of the countries the kit knows, plus `XK` for Kosovo. */
|
|
112
112
|
export declare const TX_COUNTRY_CODES: readonly string[];
|
|
113
|
+
/**
|
|
114
|
+
* Two-letter codes that are not countries but have a localized name and a flag: `EU` (European Union) and `UN`
|
|
115
|
+
* (United Nations). Add them to the country list where they fit: `[...TX_COUNTRY_CODES, ...TX_REGION_CODES]`.
|
|
116
|
+
*/
|
|
117
|
+
export declare const TX_REGION_CODES: readonly string[];
|
|
113
118
|
/**
|
|
114
119
|
* Tells whether the text is two letters, in any case, as a country code looks; it does not check that the country exists.
|
|
115
120
|
*/
|
|
116
121
|
export declare function isCountryCode(code: string | null | undefined): boolean;
|
|
117
122
|
/**
|
|
118
123
|
* Name of the country in the given locale, such as `Poland` for `PL`; text that is not a country code comes back unchanged.
|
|
124
|
+
* A locale that `Intl` does not accept falls back to `en-US`.
|
|
119
125
|
*/
|
|
120
126
|
export declare function countryName(code: string, locale: string): string;
|
|
121
127
|
/** Emoji flag of the country code; an empty string when the code is not valid. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-country.d.ts","names":[],"sources":["../../../../packages/ui/country/src/country.types.ts","../../../../packages/ui/country/src/country.component.ts","../../../../packages/ui/country/src/countries.ts","../../../../packages/ui/country/src/flags.ts"],"mappings":";;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;;;YAMU,kBAAkB,cAAc,OAAO,gBAAgB,SAAS,QAAQ;;;;;qBC+BvE;mBACM;UAET;UACA;;WAEC,iCAAO;;WACP,8BAAI;;WACJ,kCAAQ;;WACR,8BAAI,YAAA;;WACJ,+BAAK,YAAA;;WACL,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WACX,8BAAI;WAIJ,+BAAK;mBAIG;mBACA;WAIR,mCAAS;WAIT,8BAAI,OAAA;WAWJ,+BAAK;WACL,mCAAS;;;;EAelB,UAAU;SA9DC,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;;;;;qBChDT;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-country.d.ts","names":[],"sources":["../../../../packages/ui/country/src/country.types.ts","../../../../packages/ui/country/src/country.component.ts","../../../../packages/ui/country/src/countries.ts","../../../../packages/ui/country/src/flags.ts"],"mappings":";;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;;;YAMU,kBAAkB,cAAc,OAAO,gBAAgB,SAAS,QAAQ;;;;;qBC+BvE;mBACM;UAET;UACA;;WAEC,iCAAO;;WACP,8BAAI;;WACJ,kCAAQ;;WACR,8BAAI,YAAA;;WACJ,+BAAK,YAAA;;WACL,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WACX,8BAAI;WAIJ,+BAAK;mBAIG;mBACA;WAIR,mCAAS;WAIT,8BAAI,OAAA;WAWJ,+BAAK;WACL,mCAAS;;;;EAelB,UAAU;SA9DC,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;;;;;qBChDT;;;;;qBAaA;;;;wBASG,cAAc;;;;;wBAQd,YAAY,cAAc;;wBAsB1B,aAAa;;qBCjDhB,kBAAgB,eAAA;;wBAGb,eAAe,UAAU,iBAAiB;;;;qBAO7C,aAAa;;;;wBAOV,aAAa,MAAM,cAAc,OAAO,yBAAyB,yBAAyB"}
|
|
@@ -3,7 +3,7 @@ import { ElementRef, TemplateRef } from "@angular/core";
|
|
|
3
3
|
import { ConnectedOverlayPositionChange } from "@angular/cdk/overlay";
|
|
4
4
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
5
5
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
6
|
-
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
6
|
+
import { TxPanelWidth, TxPlacement } from "@tectra-ng/core/overlay";
|
|
7
7
|
import { TxIconName } from "@tectra-ng/icons";
|
|
8
8
|
import { TectraDatePickerTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
9
9
|
/** One day cell of the calendar. */
|
|
@@ -435,7 +435,7 @@ export declare class TxDatePicker extends TxFormControlBase<TxDatePickerValue> {
|
|
|
435
435
|
readonly focusedYear: import("@angular/core").WritableSignal<number>;
|
|
436
436
|
readonly pendingTime: import("@angular/core").WritableSignal<Date | null>;
|
|
437
437
|
readonly previewDate: import("@angular/core").WritableSignal<Date | null>;
|
|
438
|
-
readonly
|
|
438
|
+
readonly panelWidth: TxPanelWidth;
|
|
439
439
|
private readonly matchedMonths;
|
|
440
440
|
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
441
441
|
readonly isEditable: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-datepicker.d.ts","names":[],"sources":["../../../../packages/ui/datepicker/src/calendar.ts","../../../../packages/ui/datepicker/src/datepicker.types.ts","../../../../packages/ui/datepicker/src/datepicker.templates.ts","../../../../packages/ui/datepicker/src/date-format.ts","../../../../packages/ui/datepicker/src/datepicker.component.ts"],"mappings":";;;;;;;;;iBACiB;;EAEf,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA,MAAM;;;iBAIS;;EAEf;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf,UAAU;;EAEV,UAAU;;EAEV,yBAAyB;;EAEzB;;;wBAIc,WAAW,MAAM,OAAO;;wBAKxB,QAAQ,GAAG,yBAAyB,GAAG;;;;wBAOvC,YAAY,GAAG,MAAM,GAAG;;wBAKxB,QAAQ,MAAM,MAAM,eAAe;;;;wBASnC,UAAU,MAAM,MAAM,iBAAiB;;wB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;WACR,iCAAO;;WACP,sCAAY,iBAAA;;WACZ,sCAAY;;WACZ,qCAAW,iBAAA;;WACX,oCAAU,iBAAA;;WACV,gCAAM;;WACN,gCAAM;;WACN,iCAAO,iBAAA;;WACP,iCAAO,iBAAA;;WACP,+BAAK;qBAEK,sCAAY,OAAA;qBACZ,wCAAc,OAAA;qBACd,wCAAc,OAAA;qBACd,wCAAc,OAAA;qBACd,2CAAiB,OAAA;qBACjB,6CAAmB,OAAA;qBACnB,2CAAiB,OAAA;WAE3B,kCAAQ,OAAA,WAAA;WACR,kCAAQ,OAAA,WAAA;WACR,kCAAQ,OAAA,WAAA;WACR,uCAAa,OAAA;mBACL;UAET;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;WAEC,sCAAY,wCAAA;WACZ,oCAAU;WACV,iCAAO;WACP,mCAAS;WACT,qCAAW,OAAA,QAAA,OAAA,mDAAA;WACX,0CAAS;WACT,+CAAc;WACd;WACA;WAEA,gCAAM;WACN,wCAAc;WACd,mCAAS,eAAA;WACT,+BAAK;WACL,mCAAS;WACT,kCAAQ;WACR,qCAAW,eAAA;WACX,qCAAW,eAAA;WACX,sCAAY;WACZ,qCAAW;WACX,qCAAW,eAAA;WACX,qCAAW,eAAA;WACX,
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-datepicker.d.ts","names":[],"sources":["../../../../packages/ui/datepicker/src/calendar.ts","../../../../packages/ui/datepicker/src/datepicker.types.ts","../../../../packages/ui/datepicker/src/datepicker.templates.ts","../../../../packages/ui/datepicker/src/date-format.ts","../../../../packages/ui/datepicker/src/datepicker.component.ts"],"mappings":";;;;;;;;;iBACiB;;EAEf,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA,MAAM;;;iBAIS;;EAEf;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf,UAAU;;EAEV,UAAU;;EAEV,yBAAyB;;EAEzB;;;wBAIc,WAAW,MAA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AAA;MAAA;;;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA"}
|
|
@@ -106,6 +106,10 @@ export interface TxExportFont {
|
|
|
106
106
|
regular: ArrayBuffer | Uint8Array | string;
|
|
107
107
|
/** TrueType file of the bold weight; the regular one is emulated when not set. */
|
|
108
108
|
bold?: ArrayBuffer | Uint8Array | string;
|
|
109
|
+
/** TrueType file of the italic style, used by `writeHtmlPdf`; the regular one is slanted when not set. */
|
|
110
|
+
italic?: ArrayBuffer | Uint8Array | string;
|
|
111
|
+
/** TrueType file of a monospaced font for code, used by `writeHtmlPdf`; the regular one when not set. */
|
|
112
|
+
mono?: ArrayBuffer | Uint8Array | string;
|
|
109
113
|
}
|
|
110
114
|
/** Options of the CSV file. */
|
|
111
115
|
export interface TxExportCsvOptions {
|
|
@@ -177,6 +181,41 @@ export interface TxExportPdfOptions extends TxExportPageOptions {
|
|
|
177
181
|
/** Compresses the file (default on). */
|
|
178
182
|
compress?: boolean;
|
|
179
183
|
}
|
|
184
|
+
/** Options of `writeHtmlPdf`: page, text sizes and colours of a PDF made from HTML. */
|
|
185
|
+
export interface TxExportHtmlPdfOptions {
|
|
186
|
+
/** Page size (default `a4`). */
|
|
187
|
+
pageSize?: TxExportPageSize;
|
|
188
|
+
/** Page orientation; `auto` is portrait (default `portrait`). */
|
|
189
|
+
orientation?: TxExportOrientation;
|
|
190
|
+
/** Page margin in points: one number, or `[top, right, bottom, left]` (default 48). */
|
|
191
|
+
margin?: number | readonly [number, number, number, number];
|
|
192
|
+
/** Size of body text in points; headings, code and tables scale with it (default 10). */
|
|
193
|
+
fontSize?: number;
|
|
194
|
+
/** Line height as a multiple of the font size (default 1.45). */
|
|
195
|
+
lineHeight?: number;
|
|
196
|
+
/** Title stored in the file properties and shown by PDF viewers. */
|
|
197
|
+
title?: string;
|
|
198
|
+
/** Author stored in the file properties. */
|
|
199
|
+
author?: string;
|
|
200
|
+
/** Shows page numbers at the bottom (default on). */
|
|
201
|
+
pageNumbers?: boolean;
|
|
202
|
+
/** Colour of the text, as hex. */
|
|
203
|
+
textColor?: string;
|
|
204
|
+
/** Colour of quotes, captions and page numbers, as hex. */
|
|
205
|
+
mutedColor?: string;
|
|
206
|
+
/** Colour of links, as hex. */
|
|
207
|
+
linkColor?: string;
|
|
208
|
+
/** Colour of table lines, rules and the quote bar, as hex. */
|
|
209
|
+
borderColor?: string;
|
|
210
|
+
/** Background of table header cells, as hex, or `none`. */
|
|
211
|
+
headerBackground?: string;
|
|
212
|
+
/** Background of code, as hex. */
|
|
213
|
+
codeBackground?: string;
|
|
214
|
+
/** Loads the TrueType fonts; the Onest font of `@tectra-ng/ui/export-font` when not set. */
|
|
215
|
+
font?: () => Promise<TxExportFont>;
|
|
216
|
+
/** Compresses the file (default on). */
|
|
217
|
+
compress?: boolean;
|
|
218
|
+
}
|
|
180
219
|
/** Options of the JSON file. */
|
|
181
220
|
export interface TxExportJsonOptions {
|
|
182
221
|
/** Which names the objects use as keys: the `field` (default) or the column `title`. */
|
|
@@ -326,6 +365,10 @@ export declare function downloadCsv(document: Document, csv: string, filename: s
|
|
|
326
365
|
export declare function escapeXml(text: string): string;
|
|
327
366
|
/** Normalizes a hex colour to six upper-case digits without `#`; the fallback when it is not a hex colour. */
|
|
328
367
|
export declare function hexColor(color: string | undefined, fallback: string): string;
|
|
368
|
+
/**
|
|
369
|
+
* Loads the Onest font from `@tectra-ng/ui/export-font` for PDF files; it is fetched on the first PDF export.
|
|
370
|
+
*/
|
|
371
|
+
export declare function loadDefaultExportFont(): Promise<TxExportFont>;
|
|
329
372
|
/** Default export options for the app or a subtree; set it with `provideTxExport`. */
|
|
330
373
|
export declare const TX_EXPORT_OPTIONS: InjectionToken<TxExportOptions>;
|
|
331
374
|
/**
|
|
@@ -338,10 +381,6 @@ export declare const TX_EXPORT_EXTENSIONS: Record<TxExportFormat, string | null>
|
|
|
338
381
|
* Merges export options in order, later layers winning; the per-format objects such as `csv` are merged key by key.
|
|
339
382
|
*/
|
|
340
383
|
export declare function mergeExportOptions(...layers: (TxExportOptions | undefined)[]): TxExportOptions;
|
|
341
|
-
/**
|
|
342
|
-
* Loads the Onest font from `@tectra-ng/ui/export-font` for PDF files; it is fetched on the first PDF export.
|
|
343
|
-
*/
|
|
344
|
-
export declare function loadDefaultExportFont(): Promise<TxExportFont>;
|
|
345
384
|
/** Exports rows from code to a file, the clipboard or the printer; the export buttons use it. */
|
|
346
385
|
export declare class TxExportService {
|
|
347
386
|
private document;
|
|
@@ -354,6 +393,20 @@ export declare class TxExportService {
|
|
|
354
393
|
blob: Blob;
|
|
355
394
|
filename: string;
|
|
356
395
|
}>;
|
|
396
|
+
/**
|
|
397
|
+
* Turns rich HTML — a string, or an element whose content is read — into a paged PDF and saves it; resolves to the
|
|
398
|
+
* file name. Page and text options start from the `pdf` options and the title of `provideTxExport`.
|
|
399
|
+
*/
|
|
400
|
+
exportHtmlPdf(source: string | Node, options?: TxExportHtmlPdfOptions & {
|
|
401
|
+
filename?: string;
|
|
402
|
+
}): Promise<string>;
|
|
403
|
+
/** Builds the PDF of rich HTML like `exportHtmlPdf` without saving it. */
|
|
404
|
+
htmlPdfFile(source: string | Node, options?: TxExportHtmlPdfOptions & {
|
|
405
|
+
filename?: string;
|
|
406
|
+
}): Promise<{
|
|
407
|
+
blob: Blob;
|
|
408
|
+
filename: string;
|
|
409
|
+
}>;
|
|
357
410
|
/** Gives the locale and the yes and no texts used to write cell values. */
|
|
358
411
|
textContext(options?: TxExportOptions): TxExportTextContext;
|
|
359
412
|
private lang;
|
|
@@ -616,6 +669,17 @@ export declare function writeXlsx(table: TxExportTable, options?: TxExportExcelO
|
|
|
616
669
|
export declare function docxDocument(table: TxExportTable, options: TxExportWordOptions, context: TxExportTextContext, date: Date): string;
|
|
617
670
|
/** Writes the table as a Word `.docx` file blob. */
|
|
618
671
|
export declare function writeDocx(table: TxExportTable, options?: TxExportWordOptions, context?: TxExportTextContext, date?: Date): Promise<Blob>;
|
|
672
|
+
/** Breaks text into lines that fit the width, measured by the given function. */
|
|
673
|
+
export declare function wrapText(text: string, width: number, measure: (text: string) => number): string[];
|
|
674
|
+
/** Writes the table as a PDF file blob, with the glyphs it uses embedded from the font. */
|
|
675
|
+
export declare function writePdf(table: TxExportTable, options: TxExportPdfOptions, font: TxExportFont, context?: TxExportTextContext, date?: Date): Promise<Blob>;
|
|
676
|
+
/**
|
|
677
|
+
* Writes rich HTML as a paged PDF file blob with real, selectable text: headings, paragraphs, bold, italic, links and
|
|
678
|
+
* inline code, code blocks, nested lists, quotes, rules and tables whose header row repeats on every page. Takes an
|
|
679
|
+
* HTML string, read without a DOM so it also runs on the server, or a DOM node whose content is read; images, forms and
|
|
680
|
+
* scripts are left out. `break-before: page` / `break-after: page` start a new page.
|
|
681
|
+
*/
|
|
682
|
+
export declare function writeHtmlPdf(source: string | Node, options?: TxExportHtmlPdfOptions, date?: Date): Promise<Blob>;
|
|
619
683
|
/** A parsed TrueType font: metrics, glyph lookup and a subsetter. */
|
|
620
684
|
interface TxTrueTypeFont {
|
|
621
685
|
/** Font units in one em. */
|
|
@@ -641,10 +705,6 @@ interface TxTrueTypeFont {
|
|
|
641
705
|
}
|
|
642
706
|
/** Reads a TrueType font file; the result measures glyphs and cuts a smaller font with only the glyphs used. */
|
|
643
707
|
export declare function parseTrueType(input: Uint8Array): TxTrueTypeFont;
|
|
644
|
-
/** Breaks text into lines that fit the width, measured by the given function. */
|
|
645
|
-
export declare function wrapText(text: string, width: number, measure: (text: string) => number): string[];
|
|
646
|
-
/** Writes the table as a PDF file blob, with the glyphs it uses embedded from the font. */
|
|
647
|
-
export declare function writePdf(table: TxExportTable, options: TxExportPdfOptions, font: TxExportFont, context?: TxExportTextContext, date?: Date): Promise<Blob>;
|
|
648
708
|
/** One file in a zip archive. */
|
|
649
709
|
interface TxZipEntry {
|
|
650
710
|
/** Path of the file in the archive. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-export.d.ts","names":[],"sources":["../../../../packages/ui/export/src/export.types.ts","../../../../packages/ui/export/src/export.utils.ts","../../../../packages/ui/export/src/export.service.ts","../../../../packages/ui/export/src/export-action.directive.ts","../../../../packages/ui/export/src/export-button.component.ts","../../../../packages/ui/export/src/export-menu.component.ts","../../../../packages/ui/export/src/writers/text.ts","../../../../packages/ui/export/src/writers/xlsx.ts","../../../../packages/ui/export/src/writers/docx.ts","../../../../packages/ui/export/src/writers/
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-export.d.ts","names":[],"sources":["../../../../packages/ui/export/src/export.types.ts","../../../../packages/ui/export/src/export.utils.ts","../../../../packages/ui/export/src/writers/default-font.ts","../../../../packages/ui/export/src/export.service.ts","../../../../packages/ui/export/src/export-action.directive.ts","../../../../packages/ui/export/src/export-button.component.ts","../../../../packages/ui/export/src/export-menu.component.ts","../../../../packages/ui/export/src/writers/text.ts","../../../../packages/ui/export/src/writers/xlsx.ts","../../../../packages/ui/export/src/writers/docx.ts","../../../../packages/ui/export/src/writers/pdf.ts","../../../../packages/ui/export/src/writers/html-pdf.ts","../../../../packages/ui/export/src/writers/truetype.ts","../../../../packages/ui/export/src/writers/zip.ts"],"mappings":";;;;;;YACY,cAAc;;;;YAKd;;YAGA;;YAGA;;YAGA;;YAGA;;YAGA;;iBAGK,cAAc,IAAI;;EAEjC;;EAEA;;EAEA,cAAc,gBAAgB,KAAK,GAAG;;EAEtC,OAAO;;EAEP;;EAEA,QAAQ;;EAER;;EAEA,mBAAmB;;;iBAIJ;;EAEf;;EAEA;;EAEA,MAAM;;EAEN;;EAEA,OAAO;;EAEP;;;iBAIe;;EAEf,SAAS;;EAET;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe,4BAA4B;;EAE3C,WAAW;;EAEX,cAAc;;EAEd;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,SAAS,cAAc;;EAEvB,OAAO,c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