@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,141 +1,86 @@
|
|
|
1
1
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraSelectTokens } from "@tectra-ng/themes";
|
|
3
3
|
import { TxFlagShape } from "@tectra-ng/ui/country";
|
|
4
4
|
import { TxFieldVariant, TxSelectItem, TxSelectSize } from "@tectra-ng/ui/select";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/** One country offered by `tx-country-select`. */
|
|
6
7
|
export interface TxCountryOption {
|
|
8
|
+
/** ISO 3166-1 alpha-2 code, in any case. */
|
|
7
9
|
code: string;
|
|
10
|
+
/** Value written to the model; the upper-case code when not set. */
|
|
8
11
|
value?: string;
|
|
12
|
+
/** Name shown for the country; the localized name when not set. */
|
|
9
13
|
label?: string;
|
|
14
|
+
/** Number shown at the end of the row. */
|
|
10
15
|
count?: number;
|
|
16
|
+
/** Small text shown in the row after the name. */
|
|
11
17
|
hint?: string;
|
|
18
|
+
/** Stops the country from being picked. */
|
|
12
19
|
disabled?: boolean;
|
|
13
20
|
}
|
|
21
|
+
/** A country option with every default filled in, as the list renders it. */
|
|
14
22
|
export interface TxCountryItem {
|
|
23
|
+
/** Upper-case country code. */
|
|
15
24
|
code: string;
|
|
25
|
+
/** Value written to the model. */
|
|
16
26
|
value: string;
|
|
27
|
+
/** Name shown for the country. */
|
|
17
28
|
label: string;
|
|
29
|
+
/** Number shown at the end of the row, or `null`. */
|
|
18
30
|
count: number | null;
|
|
31
|
+
/** Small text shown after the name; empty for none. */
|
|
19
32
|
hint: string;
|
|
33
|
+
/** Whether the country cannot be picked. */
|
|
20
34
|
disabled: boolean;
|
|
21
35
|
}
|
|
36
|
+
/** How the list is ordered: `name` by the localized name, or `none` to keep the order of `options`. */
|
|
22
37
|
export type TxCountrySort = 'name' | 'none';
|
|
38
|
+
/**
|
|
39
|
+
* Pick one country or several. Built on `tx-select` and `tx-multiselect`: every ISO country by default (or your own list), names in the current tectra locale sorted for that language, flags, search by name or code, counts and hints, a virtual list for long lists. With several countries the field shows a few flags and "+N". The value is the code (or your `value`), an array with `multiple`.
|
|
40
|
+
* @see https://tectra-ng.com/components/country-select
|
|
41
|
+
*/
|
|
23
42
|
export declare class TxCountrySelect extends TxFormControlBase<string | string[]> {
|
|
24
43
|
private readonly countrySelectTheme;
|
|
25
44
|
private locale;
|
|
45
|
+
/** Countries to offer: codes, or `{ code, value?, label?, count?, hint?, disabled? }`; all countries by default */
|
|
26
46
|
readonly options: import("@angular/core").InputSignal<readonly (string | TxCountryOption)[] | undefined>;
|
|
47
|
+
/** Several countries; the value is an array */
|
|
27
48
|
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
|
+
/** Search by name or code (on by default) */
|
|
28
50
|
readonly filter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
/** `name` (localized, by default) or `none` (keep the order of `options`) */
|
|
29
52
|
readonly sort: import("@angular/core").InputSignal<TxCountrySort>;
|
|
53
|
+
/** Flag shape: `rectangle` or `circle` */
|
|
30
54
|
readonly shape: import("@angular/core").InputSignal<TxFlagShape>;
|
|
55
|
+
/** With `multiple`: flags shown in the field before "+N" */
|
|
31
56
|
readonly maxFlags: import("@angular/core").InputSignal<number>;
|
|
57
|
+
/** Above this many countries the list is virtual */
|
|
32
58
|
readonly virtualScrollThreshold: import("@angular/core").InputSignal<number>;
|
|
59
|
+
/** Text shown while nothing is selected */
|
|
33
60
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
61
|
+
/** Shows a button that clears the value */
|
|
34
62
|
readonly showClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
/** Spinner instead of the dropdown icon */
|
|
35
64
|
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
65
|
+
/** Id of the field for a `<label for>` */
|
|
36
66
|
readonly inputId: import("@angular/core").InputSignal<string | undefined>;
|
|
67
|
+
/** Accessible name of the field */
|
|
37
68
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
69
|
+
/** Id of the element that labels the field */
|
|
38
70
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
71
|
+
/** `small`, `medium`, `large` */
|
|
39
72
|
readonly size: import("@angular/core").InputSignal<TxSelectSize>;
|
|
73
|
+
/** `outlined` or `filled` */
|
|
40
74
|
readonly variant: import("@angular/core").InputSignal<TxFieldVariant>;
|
|
75
|
+
/** Red border and `aria-invalid`; follows the form control by default */
|
|
41
76
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
77
|
+
/** Shows the value, does not open */
|
|
42
78
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
dropdownWidth: string;
|
|
47
|
-
clearSize: string;
|
|
48
|
-
gap: string;
|
|
49
|
-
};
|
|
50
|
-
overlay: {
|
|
51
|
-
background: string;
|
|
52
|
-
borderColor: string;
|
|
53
|
-
borderRadius: string;
|
|
54
|
-
shadow: string;
|
|
55
|
-
};
|
|
56
|
-
list: {
|
|
57
|
-
padding: string;
|
|
58
|
-
paddingBlock: string;
|
|
59
|
-
paddingInline: string;
|
|
60
|
-
gap: string;
|
|
61
|
-
maxHeight: string;
|
|
62
|
-
};
|
|
63
|
-
option: {
|
|
64
|
-
padding: string;
|
|
65
|
-
gap: string;
|
|
66
|
-
borderRadius: string;
|
|
67
|
-
color: string;
|
|
68
|
-
focusColor: string;
|
|
69
|
-
focusBackground: string;
|
|
70
|
-
selectedBackground: string;
|
|
71
|
-
selectedColor: string;
|
|
72
|
-
selectedFocusBackground: string;
|
|
73
|
-
selectedFocusColor: string;
|
|
74
|
-
selectedFontWeight: string;
|
|
75
|
-
disabledColor: string;
|
|
76
|
-
checkColor: string;
|
|
77
|
-
multiple: {
|
|
78
|
-
selectedBackground: string;
|
|
79
|
-
selectedFocusBackground: string;
|
|
80
|
-
selectedColor: string;
|
|
81
|
-
selectedFocusColor: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
checkbox: {
|
|
85
|
-
size: string;
|
|
86
|
-
borderRadius: string;
|
|
87
|
-
borderColor: string;
|
|
88
|
-
background: string;
|
|
89
|
-
checkedBackground: string;
|
|
90
|
-
checkedColor: string;
|
|
91
|
-
iconSize: string;
|
|
92
|
-
shadow: string;
|
|
93
|
-
};
|
|
94
|
-
chip: {
|
|
95
|
-
gap: string;
|
|
96
|
-
paddingY: string;
|
|
97
|
-
paddingStart: string;
|
|
98
|
-
paddingEnd: string;
|
|
99
|
-
borderRadius: string;
|
|
100
|
-
background: string;
|
|
101
|
-
color: string;
|
|
102
|
-
fontSize: string;
|
|
103
|
-
removeSize: string;
|
|
104
|
-
removeColor: string;
|
|
105
|
-
removeHoverColor: string;
|
|
106
|
-
};
|
|
107
|
-
optionGroup: {
|
|
108
|
-
padding: string;
|
|
109
|
-
color: string;
|
|
110
|
-
fontSize: string;
|
|
111
|
-
fontWeight: string;
|
|
112
|
-
};
|
|
113
|
-
filter: {
|
|
114
|
-
padding: string;
|
|
115
|
-
gap: string;
|
|
116
|
-
iconInset: string;
|
|
117
|
-
minHeight: string;
|
|
118
|
-
};
|
|
119
|
-
dropdownButton: {
|
|
120
|
-
width: string;
|
|
121
|
-
background: string;
|
|
122
|
-
hoverBackground: string;
|
|
123
|
-
activeBackground: string;
|
|
124
|
-
color: string;
|
|
125
|
-
hoverColor: string;
|
|
126
|
-
};
|
|
127
|
-
header: {
|
|
128
|
-
padding: string;
|
|
129
|
-
};
|
|
130
|
-
footer: {
|
|
131
|
-
padding: string;
|
|
132
|
-
};
|
|
133
|
-
empty: {
|
|
134
|
-
padding: string;
|
|
135
|
-
color: string;
|
|
136
|
-
};
|
|
137
|
-
}> | undefined>;
|
|
79
|
+
/** Design tokens of this instance (`select`) */
|
|
80
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraSelectTokens> | undefined>;
|
|
81
|
+
/** Removes the tectra styles */
|
|
138
82
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
83
|
+
/** The user changed the value */
|
|
139
84
|
readonly changed: import("@angular/core").OutputEmitterRef<string | string[] | null>;
|
|
140
85
|
readonly items: import("@angular/core").Signal<TxCountryItem[]>;
|
|
141
86
|
readonly virtual: import("@angular/core").Signal<boolean>;
|
|
@@ -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":"
|
|
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;;;;;qBCPC,wBAAwB;mBAClB;UAET;;WAEC,iCAAO,+BAAA;;WACP,kCAAQ;;WACR,gCAAM;;WACN,8BAAI,YAAA;;WACJ,+BAAK,YAAA;;WACL,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,+BAAK,OAAA;WAoBL,iCAAO;EAEhB,WAAW,OAAO;EAIlB,WAAW,OAAO,iBAAiB;EAInC,cAAc;EAKd;SA9DW,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"}
|
|
@@ -1,42 +1,49 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraCountryTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { InjectionToken, Provider } from "@angular/core";
|
|
5
|
+
/** Size of a country flag: `small` follows the text, `medium` or `large`. */
|
|
5
6
|
export type TxCountrySize = 'small' | 'medium' | 'large';
|
|
7
|
+
/** Outline of a flag: `rectangle` or `circle`. */
|
|
6
8
|
export type TxFlagShape = 'rectangle' | 'circle';
|
|
9
|
+
/** Names of the parts of `tx-country` that `pt` can style. */
|
|
7
10
|
export type TxCountryPart = 'root' | 'flag' | 'name';
|
|
11
|
+
/** What draws one flag: an image address, or CSS classes of a flag stylesheet. */
|
|
8
12
|
export interface TxFlag {
|
|
13
|
+
/** CSS classes put on the flag element. */
|
|
9
14
|
class?: string;
|
|
15
|
+
/** Address of the flag image. */
|
|
10
16
|
src?: string;
|
|
11
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Turns a country code and a shape into a flag image or CSS classes, now or as a promise; `null` falls back to the emoji flag.
|
|
20
|
+
*/
|
|
12
21
|
export type TxFlagResolver = (code: string, shape: TxFlagShape) => TxFlag | Promise<TxFlag | null> | null;
|
|
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`.
|
|
24
|
+
* @see https://tectra-ng.com/components/country
|
|
25
|
+
*/
|
|
13
26
|
export declare class TxCountry {
|
|
14
27
|
private readonly countryTheme;
|
|
15
28
|
private locale;
|
|
16
29
|
private resolver;
|
|
30
|
+
/** ISO 3166-1 alpha-2 code, any case (`ua`, `PL`); other text is shown as it is */
|
|
17
31
|
readonly country: import("@angular/core").InputSignal<string | null | undefined>;
|
|
32
|
+
/** Own name instead of the localized one */
|
|
18
33
|
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
34
|
+
/** Shows the name next to the flag (on by default); without it the flag is an image named by the country */
|
|
19
35
|
readonly showName: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
/** `small` (follows the text, 1em), `medium` (17.5px), `large` (28px) */
|
|
20
37
|
readonly size: import("@angular/core").InputSignal<TxCountrySize>;
|
|
38
|
+
/** `rectangle` or `circle` (image and class flags) */
|
|
21
39
|
readonly shape: import("@angular/core").InputSignal<TxFlagShape>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
smallSize: string;
|
|
26
|
-
mediumSize: string;
|
|
27
|
-
largeSize: string;
|
|
28
|
-
borderRadius: string;
|
|
29
|
-
ring: string;
|
|
30
|
-
ringGutter: string;
|
|
31
|
-
loadingBackground: string;
|
|
32
|
-
nameColor: string;
|
|
33
|
-
hintColor: string;
|
|
34
|
-
countColor: string;
|
|
35
|
-
countFontSize: string;
|
|
36
|
-
};
|
|
37
|
-
}> | undefined>;
|
|
40
|
+
/** Design tokens of this instance (`country`) */
|
|
41
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraCountryTokens> | undefined>;
|
|
42
|
+
/** Classes and styles of the parts: `root`, `flag`, `name` */
|
|
38
43
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxCountryPart, import("@tectra-ng/core/config").TxPassThroughValue<TxCountry>>> | undefined>;
|
|
44
|
+
/** How `pt` merges with the global pass-through */
|
|
39
45
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
46
|
+
/** Removes the tectra styles */
|
|
40
47
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
41
48
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
42
49
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxCountryPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -101,12 +108,28 @@ export declare class TxCountry {
|
|
|
101
108
|
};
|
|
102
109
|
}, {}, never, never, true, never>;
|
|
103
110
|
}
|
|
111
|
+
/** ISO 3166-1 alpha-2 codes of the countries the kit knows, plus `XK` for Kosovo. */
|
|
104
112
|
export declare const TX_COUNTRY_CODES: readonly string[];
|
|
113
|
+
/**
|
|
114
|
+
* Tells whether the text is two letters, in any case, as a country code looks; it does not check that the country exists.
|
|
115
|
+
*/
|
|
105
116
|
export declare function isCountryCode(code: string | null | undefined): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Name of the country in the given locale, such as `Poland` for `PL`; text that is not a country code comes back unchanged.
|
|
119
|
+
*/
|
|
106
120
|
export declare function countryName(code: string, locale: string): string;
|
|
121
|
+
/** Emoji flag of the country code; an empty string when the code is not valid. */
|
|
107
122
|
export declare function countryEmoji(code: string): string;
|
|
123
|
+
/** Injection token of the flag resolver that `tx-country` uses; set it with `provideTxFlags`. */
|
|
108
124
|
export declare const TX_FLAG_RESOLVER: InjectionToken<TxFlagResolver>;
|
|
125
|
+
/** Draws flags as images or CSS classes through the resolver instead of emoji; provide it once in the app. */
|
|
109
126
|
export declare function provideTxFlags(resolver: TxFlagResolver): Provider;
|
|
127
|
+
/**
|
|
128
|
+
* Flag resolver for a flag stylesheet that is already on the page, using the classes `fi fi-ua` (and `fis` for circles).
|
|
129
|
+
*/
|
|
110
130
|
export declare const txFlagIcons: TxFlagResolver;
|
|
131
|
+
/**
|
|
132
|
+
* Builds a flag resolver from a function that returns an image address for a lower-case code and a shape, now or as a promise.
|
|
133
|
+
*/
|
|
111
134
|
export declare function txFlagImages(url: (code: string, shape: TxFlagShape) => string | Promise<string | null>): TxFlagResolver;
|
|
112
135
|
//# sourceMappingURL=tectra-ng-ui-country.d.ts.map
|
|
@@ -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":"
|
|
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;;;;wBAeG,cAAc;;;;wBAOd,YAAY,cAAc;;wBAc1B,aAAa;;qBCjChB,kBAAgB,eAAA;;wBAGb,eAAe,UAAU,iBAAiB;;;;qBAO7C,aAAa;;;;wBAOV,aAAa,MAAM,cAAc,OAAO,yBAAyB,yBAAyB"}
|
|
@@ -1,135 +1,188 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDataViewTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
3
|
import { TxPageState, TxPaginatorTemplateContext, TxRowsPerPageOption } from "@tectra-ng/ui/paginator";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { TemplateRef } from "@angular/core";
|
|
6
6
|
import { TxButtonSize } from "@tectra-ng/ui/button";
|
|
7
|
+
/** How the items are laid out: as a `list` or a `grid`. */
|
|
7
8
|
export type TxDataViewLayout = 'list' | 'grid';
|
|
9
|
+
/** Where the paginator sits: `top`, `bottom` or `both`. */
|
|
8
10
|
export type TxDataViewPaginatorPosition = 'top' | 'bottom' | 'both';
|
|
11
|
+
/** Sort direction: `asc`, `desc`, or `null` for the original order. */
|
|
9
12
|
export type TxDataViewSortOrder = 'asc' | 'desc' | null;
|
|
13
|
+
/** Names of the parts of `tx-data-view` that `pt` can style. */
|
|
10
14
|
export type TxDataViewPart = 'root' | 'header' | 'content' | 'empty' | 'loading' | 'footer' | 'paginator';
|
|
15
|
+
/** Payload of `lazyLoad`: the page, sort and search the server should answer. */
|
|
11
16
|
export interface TxDataViewLazyLoadEvent {
|
|
17
|
+
/** Index of the first item of the wanted page. */
|
|
12
18
|
first: number;
|
|
19
|
+
/** Number of items per page. */
|
|
13
20
|
rows: number;
|
|
21
|
+
/** Field to sort by, or `null`. */
|
|
14
22
|
sortField: string | null;
|
|
23
|
+
/** Sort direction. */
|
|
15
24
|
sortOrder: TxDataViewSortOrder;
|
|
25
|
+
/** Search text; empty for none. */
|
|
16
26
|
filter: string;
|
|
17
27
|
}
|
|
28
|
+
/** Payload of `sortChange`: the field and the direction. */
|
|
18
29
|
export interface TxDataViewSortEvent {
|
|
30
|
+
/** Field to sort by, or `null`. */
|
|
19
31
|
sortField: string | null;
|
|
32
|
+
/** Sort direction. */
|
|
20
33
|
sortOrder: TxDataViewSortOrder;
|
|
21
34
|
}
|
|
35
|
+
/** Context of the list and grid templates: the items of the current page. */
|
|
22
36
|
export interface TxDataViewItemsContext<T = unknown> {
|
|
37
|
+
/** Items of the current page, so `let-items` works. */
|
|
23
38
|
$implicit: T[];
|
|
39
|
+
/** Items of the current page. */
|
|
24
40
|
items: T[];
|
|
41
|
+
/** Index in the whole collection of the first item of the page. */
|
|
25
42
|
first: number;
|
|
26
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* `<ng-template txDataViewList let-items>` — items of the page in the list layout
|
|
46
|
+
* @see https://tectra-ng.com/components/data-view
|
|
47
|
+
*/
|
|
27
48
|
export declare class TxDataViewList {
|
|
28
49
|
readonly templateRef: TemplateRef<TxDataViewItemsContext<unknown>>;
|
|
29
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewList, never>;
|
|
30
51
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewList, "ng-template[txDataViewList]", never, {}, {}, never, never, true, never>;
|
|
31
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* `<ng-template txDataViewGrid let-items>` — items of the page in the grid layout
|
|
55
|
+
* @see https://tectra-ng.com/components/data-view
|
|
56
|
+
*/
|
|
32
57
|
export declare class TxDataViewGrid {
|
|
33
58
|
readonly templateRef: TemplateRef<TxDataViewItemsContext<unknown>>;
|
|
34
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewGrid, never>;
|
|
35
60
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewGrid, "ng-template[txDataViewGrid]", never, {}, {}, never, never, true, never>;
|
|
36
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* `<ng-template txDataViewHeader>` — content above, e.g. `<tx-data-view-layout [(layout)]>` and a sort select
|
|
64
|
+
* @see https://tectra-ng.com/components/data-view
|
|
65
|
+
*/
|
|
37
66
|
export declare class TxDataViewHeader {
|
|
38
67
|
readonly templateRef: TemplateRef<void>;
|
|
39
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewHeader, never>;
|
|
40
69
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewHeader, "ng-template[txDataViewHeader]", never, {}, {}, never, never, true, never>;
|
|
41
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* `<ng-template txDataViewFooter>` — content below
|
|
73
|
+
* @see https://tectra-ng.com/components/data-view
|
|
74
|
+
*/
|
|
42
75
|
export declare class TxDataViewFooter {
|
|
43
76
|
readonly templateRef: TemplateRef<void>;
|
|
44
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewFooter, never>;
|
|
45
78
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewFooter, "ng-template[txDataViewFooter]", never, {}, {}, never, never, true, never>;
|
|
46
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* `<ng-template txDataViewEmpty>` — own empty state
|
|
82
|
+
* @see https://tectra-ng.com/components/data-view
|
|
83
|
+
*/
|
|
47
84
|
export declare class TxDataViewEmpty {
|
|
48
85
|
readonly templateRef: TemplateRef<void>;
|
|
49
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewEmpty, never>;
|
|
50
87
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewEmpty, "ng-template[txDataViewEmpty]", never, {}, {}, never, never, true, never>;
|
|
51
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* `<ng-template txDataViewLoading>` — own content of the loading overlay
|
|
91
|
+
* @see https://tectra-ng.com/components/data-view
|
|
92
|
+
*/
|
|
52
93
|
export declare class TxDataViewLoading {
|
|
53
94
|
readonly templateRef: TemplateRef<void>;
|
|
54
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewLoading, never>;
|
|
55
96
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewLoading, "ng-template[txDataViewLoading]", never, {}, {}, never, never, true, never>;
|
|
56
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* `<ng-template txDataViewPaginatorStart let-state>` — content at the start of the paginator
|
|
100
|
+
* @see https://tectra-ng.com/components/data-view
|
|
101
|
+
*/
|
|
57
102
|
export declare class TxDataViewPaginatorStart {
|
|
58
103
|
readonly templateRef: TemplateRef<TxPaginatorTemplateContext>;
|
|
59
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewPaginatorStart, never>;
|
|
60
105
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewPaginatorStart, "ng-template[txDataViewPaginatorStart]", never, {}, {}, never, never, true, never>;
|
|
61
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* `<ng-template txDataViewPaginatorEnd let-state>` — content at the end of the paginator
|
|
109
|
+
* @see https://tectra-ng.com/components/data-view
|
|
110
|
+
*/
|
|
62
111
|
export declare class TxDataViewPaginatorEnd {
|
|
63
112
|
readonly templateRef: TemplateRef<TxPaginatorTemplateContext>;
|
|
64
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDataViewPaginatorEnd, never>;
|
|
65
114
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDataViewPaginatorEnd, "ng-template[txDataViewPaginatorEnd]", never, {}, {}, never, never, true, never>;
|
|
66
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Shows a collection with your own list and grid templates, with a layout switch, paging, sorting, search and lazy loading.
|
|
118
|
+
*/
|
|
67
119
|
export declare class TxDataView<T = unknown> {
|
|
68
120
|
private readonly dataViewTheme;
|
|
121
|
+
/** Items */
|
|
69
122
|
readonly value: import("@angular/core").InputSignal<readonly T[] | null | undefined>;
|
|
123
|
+
/** `list` or `grid`; two-way, the grid template is used in `grid` */
|
|
70
124
|
readonly layout: import("@angular/core").ModelSignal<TxDataViewLayout>;
|
|
125
|
+
/** Paginator below, above or around the items */
|
|
71
126
|
readonly paginator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
127
|
+
/** `bottom`, `top` or `both` */
|
|
72
128
|
readonly paginatorPosition: import("@angular/core").InputSignal<TxDataViewPaginatorPosition>;
|
|
129
|
+
/** Index of the first item on the page; two-way */
|
|
73
130
|
readonly first: import("@angular/core").ModelSignal<number>;
|
|
131
|
+
/** Items per page; two-way */
|
|
74
132
|
readonly rows: import("@angular/core").ModelSignal<number>;
|
|
133
|
+
/** Number of items on the server (with `lazy`) */
|
|
75
134
|
readonly totalRecords: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
135
|
+
/** Page links shown at once */
|
|
76
136
|
readonly pageLinks: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
137
|
+
/** Page sizes in the size select */
|
|
77
138
|
readonly rowsPerPageOptions: import("@angular/core").InputSignal<TxRowsPerPageOption[] | null | undefined>;
|
|
139
|
+
/** Shows the paginator even with one page */
|
|
78
140
|
readonly alwaysShowPaginator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
141
|
+
/** Shows "1–10 of 50" */
|
|
79
142
|
readonly showCurrentPageReport: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
143
|
+
/** Own report text with `{first}`, `{last}`, `{totalRecords}`, `{currentPage}`, `{totalPages}`, `{rows}` */
|
|
80
144
|
readonly currentPageReportTemplate: import("@angular/core").InputSignal<string | undefined>;
|
|
145
|
+
/** Select of pages */
|
|
81
146
|
readonly showJumpToPageDropdown: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
147
|
+
/** Number input of the page */
|
|
82
148
|
readonly showJumpToPageInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
149
|
+
/** First / last page buttons */
|
|
83
150
|
readonly showFirstLastIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
151
|
+
/** Page number buttons */
|
|
84
152
|
readonly showPageLinks: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
153
|
+
/** "Total: N" before the paginator */
|
|
85
154
|
readonly showTotal: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
155
|
+
/** Pages, sort and search come from the server through `lazyLoad` */
|
|
86
156
|
readonly lazy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
157
|
+
/** Emits `lazyLoad` once on start */
|
|
87
158
|
readonly lazyLoadOnInit: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
159
|
+
/** Blurred loading overlay with a spinner */
|
|
88
160
|
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
161
|
+
/** Text when there is nothing to show */
|
|
89
162
|
readonly emptyMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
163
|
+
/** Field to sort by; two-way */
|
|
90
164
|
readonly sortField: import("@angular/core").ModelSignal<string | null>;
|
|
165
|
+
/** `asc`, `desc` or `null`; two-way */
|
|
91
166
|
readonly sortOrder: import("@angular/core").ModelSignal<TxDataViewSortOrder>;
|
|
167
|
+
/** Fields searched by `filterValue`, comma separated */
|
|
92
168
|
readonly filterBy: import("@angular/core").InputSignal<string | undefined>;
|
|
169
|
+
/** Search text; two-way, also set by `filter(text)` */
|
|
93
170
|
readonly filterValue: import("@angular/core").ModelSignal<string>;
|
|
171
|
+
/** Accessible name of the items region */
|
|
94
172
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
color: string;
|
|
99
|
-
borderColor: string;
|
|
100
|
-
borderWidth: string;
|
|
101
|
-
borderRadius: string;
|
|
102
|
-
transitionDuration: string;
|
|
103
|
-
};
|
|
104
|
-
header: {
|
|
105
|
-
background: string;
|
|
106
|
-
color: string;
|
|
107
|
-
padding: string;
|
|
108
|
-
borderRadius: string;
|
|
109
|
-
};
|
|
110
|
-
footer: {
|
|
111
|
-
background: string;
|
|
112
|
-
color: string;
|
|
113
|
-
padding: string;
|
|
114
|
-
borderRadius: string;
|
|
115
|
-
};
|
|
116
|
-
empty: {
|
|
117
|
-
padding: string;
|
|
118
|
-
color: string;
|
|
119
|
-
};
|
|
120
|
-
loading: {
|
|
121
|
-
blur: string;
|
|
122
|
-
background: string;
|
|
123
|
-
};
|
|
124
|
-
layoutSwitch: {
|
|
125
|
-
gap: string;
|
|
126
|
-
};
|
|
127
|
-
}> | undefined>;
|
|
173
|
+
/** Design tokens of this instance (`dataView`) */
|
|
174
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraDataViewTokens> | undefined>;
|
|
175
|
+
/** Classes and styles of the parts: `root`, `header`, `content`, `empty`, `loading`, `footer`, `paginator` */
|
|
128
176
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxDataViewPart, import("@tectra-ng/core/config").TxPassThroughValue<TxDataView<T>>>> | undefined>;
|
|
177
|
+
/** How `pt` merges with the global pass-through */
|
|
129
178
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
179
|
+
/** Removes the tectra styles */
|
|
130
180
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
181
|
+
/** The server should send items: `{ first, rows, sortField, sortOrder, filter }` */
|
|
131
182
|
readonly lazyLoad: import("@angular/core").OutputEmitterRef<TxDataViewLazyLoadEvent>;
|
|
183
|
+
/** The page changed: `{ page, first, rows, pageCount }` */
|
|
132
184
|
readonly pageChange: import("@angular/core").OutputEmitterRef<TxPageState>;
|
|
185
|
+
/** The sort changed: `{ sortField, sortOrder }` */
|
|
133
186
|
readonly sortChange: import("@angular/core").OutputEmitterRef<TxDataViewSortEvent>;
|
|
134
187
|
readonly listTemplate: import("@angular/core").Signal<TxDataViewList | undefined>;
|
|
135
188
|
readonly gridTemplate: import("@angular/core").Signal<TxDataViewGrid | undefined>;
|
|
@@ -328,11 +381,16 @@ export declare class TxDataView<T = unknown> {
|
|
|
328
381
|
"sortChange": "sortChange";
|
|
329
382
|
}, ["listTemplate", "gridTemplate", "headerTemplate", "footerTemplate", "emptyTemplate", "loadingTemplate", "paginatorStartTemplate", "paginatorEndTemplate"], never, true, never>;
|
|
330
383
|
}
|
|
384
|
+
/** Pair of buttons that switches a layout between list and grid; bind it to the layout of a `tx-data-view` with `[(layout)]`. */
|
|
331
385
|
export declare class TxDataViewLayoutSwitch {
|
|
332
386
|
private readonly dataViewTheme;
|
|
387
|
+
/** `list` (default) or `grid`. Two-way: `[(layout)]` */
|
|
333
388
|
readonly layout: import("@angular/core").ModelSignal<TxDataViewLayout>;
|
|
389
|
+
/** Size of the buttons: `small`, `medium` (default), `large` */
|
|
334
390
|
readonly size: import("@angular/core").InputSignal<TxButtonSize>;
|
|
391
|
+
/** Accessible name of the button group; "Layout" by default (translated) */
|
|
335
392
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
393
|
+
/** Removes the tectra styles */
|
|
336
394
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
337
395
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
338
396
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-data-view.d.ts","names":[],"sources":["../../../../packages/ui/data-view/src/data-view.types.ts","../../../../packages/ui/data-view/src/data-view.templates.ts","../../../../packages/ui/data-view/src/data-view.component.ts","../../../../packages/ui/data-view/src/data-view-layout.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-data-view.d.ts","names":[],"sources":["../../../../packages/ui/data-view/src/data-view.types.ts","../../../../packages/ui/data-view/src/data-view.templates.ts","../../../../packages/ui/data-view/src/data-view.component.ts","../../../../packages/ui/data-view/src/data-view-layout.component.ts"],"mappings":"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"}
|