yukit-web 0.8.8 → 0.9.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/fesm2022/yukit-web.mjs +312 -115
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +166 -21
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -1129,14 +1129,17 @@ declare class YuwRightAddonDirective {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
declare const YuwInputAddonImports: readonly [typeof YuwLeftAddonDirective, typeof YuwRightAddonDirective];
|
|
1131
1131
|
|
|
1132
|
-
/** Layouts of `<yuw-input-file>`: `avatar` previews the pick in a `yuw-avatar` beside an upload button; `inline` is a full-width upload button with the chosen files listed under it. */
|
|
1133
|
-
type YuwInputFileVariantDto = 'avatar' | 'inline';
|
|
1132
|
+
/** Layouts of `<yuw-input-file>`: `avatar` previews the pick in a `yuw-avatar` beside an upload button; `tile` is a dashed square that becomes the picked image; `inline` is a full-width upload button with the chosen files listed under it. */
|
|
1133
|
+
type YuwInputFileVariantDto = 'avatar' | 'tile' | 'inline';
|
|
1134
1134
|
/**
|
|
1135
|
-
* File picker with
|
|
1135
|
+
* File picker with three layouts, supporting two-way binding, form controls (`formControlName`,
|
|
1136
1136
|
* `ngModel`), validation styling and helper/error text.
|
|
1137
1137
|
*
|
|
1138
1138
|
* `avatar` (default) shows a `yuw-avatar` with the chosen image — or `src` while nothing is chosen —
|
|
1139
|
-
* beside an upload button, like a profile-photo field; clicking the avatar opens the picker too. `
|
|
1139
|
+
* beside an upload button, like a profile-photo field; clicking the avatar opens the picker too. `tile` is a dashed square
|
|
1140
|
+
* with an image icon and `uploadLabel`, filled by the chosen image — or `src` — once there is one, a logo field that
|
|
1141
|
+
* takes no row of its own; the square opens the picker, and with `removeLabel` an X inside its corner emits `removed`
|
|
1142
|
+
* for the chosen file, kept inside so a clipping parent does not cut it. `inline` is a full-width outline button with
|
|
1140
1143
|
* an upload icon; once a file is chosen, the button is replaced by a single line showing its name, size and a remove icon.
|
|
1141
1144
|
* With several files the line reads `countLabel(n)` and opens the list, one removable row each — in
|
|
1142
1145
|
* a popover from `md` up and a bottom sheet below it, like the list-toolbar filters.
|
|
@@ -1153,15 +1156,16 @@ type YuwInputFileVariantDto = 'avatar' | 'inline';
|
|
|
1153
1156
|
*
|
|
1154
1157
|
* Inputs / Models:
|
|
1155
1158
|
* - `value`: Two-way `File[]` selection.
|
|
1156
|
-
* - `variant`: `'avatar'` or `'inline'`. Default is `'avatar'`.
|
|
1159
|
+
* - `variant`: `'avatar'`, `'tile'` or `'inline'`. Default is `'avatar'`.
|
|
1157
1160
|
* - `uploadLabel`: Text of the upload button. User-facing text — the consuming app provides and
|
|
1158
1161
|
* translates it; required, there is no default copy.
|
|
1159
|
-
* - `removeLabel`: Accessible label of each remove icon (`inline`
|
|
1162
|
+
* - `removeLabel`: Accessible label of each remove icon (`inline` and `tile`). Required for `inline`; without it a
|
|
1163
|
+
* `tile` offers no remove.
|
|
1160
1164
|
* - `countLabel`: Builds the text of the multi-file box from the file count, e.g.
|
|
1161
1165
|
* `(n) => \`${n} files selected\`` (`inline` with `multiple` only). Required for that case.
|
|
1162
|
-
* - `alt`: Accessible label of the
|
|
1166
|
+
* - `alt`: Accessible label of the image (`avatar` and `tile`), also the source of the avatar's fallback.
|
|
1163
1167
|
* - `fallback`: Initials shown when there is no image (`avatar` only).
|
|
1164
|
-
* - `src`: Current image shown while no file is chosen (`avatar`
|
|
1168
|
+
* - `src`: Current image shown while no file is chosen (`avatar` and `tile`), e.g. the saved photo.
|
|
1165
1169
|
* - `accept`: Native `accept` filter (e.g. `'image/*,.pdf'`).
|
|
1166
1170
|
* - `multiple`: Allows choosing more than one file; the avatar previews the first. Default is `false`.
|
|
1167
1171
|
* - `size`: Height of the controls (`'default'`, `'xs'`, `'sm'`, `'lg'`), matching `<yuw-input>`.
|
|
@@ -1174,10 +1178,10 @@ type YuwInputFileVariantDto = 'avatar' | 'inline';
|
|
|
1174
1178
|
* - `errorText`: Error shown under the field while it is in its error state. Overrides the `message`
|
|
1175
1179
|
* carried by the bound control's validation errors.
|
|
1176
1180
|
* - `name`: HTML `name` attribute.
|
|
1177
|
-
* - `class`: Extra classes merged last onto the avatar (`avatar`) or the inline stack (`inline`).
|
|
1181
|
+
* - `class`: Extra classes merged last onto the avatar (`avatar`), the square (`tile`) or the inline stack (`inline`).
|
|
1178
1182
|
*
|
|
1179
1183
|
* Outputs:
|
|
1180
|
-
* - `removed`: Emits the `File` whose remove icon was pressed (`inline`
|
|
1184
|
+
* - `removed`: Emits the `File` whose remove icon was pressed (`inline` and `tile`).
|
|
1181
1185
|
*
|
|
1182
1186
|
* Usage:
|
|
1183
1187
|
* ```html
|
|
@@ -1213,15 +1217,16 @@ declare class YuwInputFileComponent extends YuwValueAccessorBase<File[]> {
|
|
|
1213
1217
|
protected readonly _isMobile: _angular_core.Signal<boolean>;
|
|
1214
1218
|
protected readonly _listOpen: _angular_core.WritableSignal<boolean>;
|
|
1215
1219
|
protected readonly _preview: _angular_core.WritableSignal<string | undefined>;
|
|
1216
|
-
protected readonly _avatarSrc: _angular_core.Signal<string | undefined>;
|
|
1217
1220
|
protected readonly _boxClasses: _angular_core.Signal<string>;
|
|
1218
1221
|
protected readonly _countText: _angular_core.Signal<string | undefined>;
|
|
1219
1222
|
protected readonly _entries: _angular_core.Signal<{
|
|
1220
1223
|
file: File;
|
|
1221
1224
|
size: string;
|
|
1222
1225
|
}[]>;
|
|
1226
|
+
protected readonly _imageSrc: _angular_core.Signal<string | undefined>;
|
|
1223
1227
|
protected readonly _inlineClasses: _angular_core.Signal<string>;
|
|
1224
1228
|
protected readonly _inputId: _angular_core.Signal<string>;
|
|
1229
|
+
protected readonly _tileClasses: _angular_core.Signal<string>;
|
|
1225
1230
|
constructor();
|
|
1226
1231
|
protected _emptyValue(): File[];
|
|
1227
1232
|
protected onChange(event: Event): void;
|
|
@@ -1654,6 +1659,45 @@ declare class YuwSwitchComponent extends YuwValueAccessorBase<boolean> {
|
|
|
1654
1659
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwSwitchComponent, "yuw-switch", never, { "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "primary": { "alias": "primary"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "value": { "alias": "checked"; "required": false; "isSignal": true; }; }, { "value": "checkedChange"; }, never, ["*"], true, never>;
|
|
1655
1660
|
}
|
|
1656
1661
|
|
|
1662
|
+
/**
|
|
1663
|
+
* A setting rendered as a card: title and description on the left, a switch on the right, and the
|
|
1664
|
+
* card's border turning the secondary colour while it is on. The whole card is the switch's label,
|
|
1665
|
+
* so clicking anywhere on it toggles it.
|
|
1666
|
+
*
|
|
1667
|
+
* The title names the switch (`aria-labelledby`) and the description describes it
|
|
1668
|
+
* (`aria-describedby`), so a screen reader does not read both as one long name.
|
|
1669
|
+
*
|
|
1670
|
+
* Inputs / Models:
|
|
1671
|
+
* - `label`: Required title of the setting. Already translated by the consumer.
|
|
1672
|
+
* - `description`: Optional explanation under the title. Omitted when absent.
|
|
1673
|
+
* - `checked` (alias for `value`): Two-way boolean on/off state. Bind as `[(checked)]`.
|
|
1674
|
+
* - `disabled`: Disables the card and its switch.
|
|
1675
|
+
* - `inputId`: HTML `id` for the underlying control.
|
|
1676
|
+
*
|
|
1677
|
+
* Usage:
|
|
1678
|
+
* ```html
|
|
1679
|
+
* <yuw-switch-card label="Pedidos valorados" description="Muestra los precios…" [(checked)]="valued" />
|
|
1680
|
+
* <yuw-switch-card [label]="'ocr.title' | translate" formControlName="ocrDiscount" />
|
|
1681
|
+
* ```
|
|
1682
|
+
*/
|
|
1683
|
+
declare class YuwSwitchCardComponent extends YuwValueAccessorBase<boolean> {
|
|
1684
|
+
private readonly _idPrefix;
|
|
1685
|
+
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
1686
|
+
readonly inputId: _angular_core.InputSignal<string | undefined>;
|
|
1687
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1688
|
+
readonly value: _angular_core.ModelSignal<boolean>;
|
|
1689
|
+
protected readonly _cardClass: string;
|
|
1690
|
+
protected readonly _descriptionId: string;
|
|
1691
|
+
protected readonly _focusSelectors: string[];
|
|
1692
|
+
protected readonly _labelId: string;
|
|
1693
|
+
protected readonly _switchClass: string;
|
|
1694
|
+
protected readonly _describedBy: _angular_core.Signal<string | null>;
|
|
1695
|
+
protected _emptyValue(): boolean;
|
|
1696
|
+
protected onCheckedChange(checked: boolean): void;
|
|
1697
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwSwitchCardComponent, never>;
|
|
1698
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwSwitchCardComponent, "yuw-switch-card", never, { "description": { "alias": "description"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "checked"; "required": false; "isSignal": true; }; }, { "value": "checkedChange"; }, never, never, true, never>;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1657
1701
|
/**
|
|
1658
1702
|
* A single option in `<yuw-radio-group>`'s `options` input.
|
|
1659
1703
|
*
|
|
@@ -1712,6 +1756,54 @@ declare class YuwRadioGroupComponent extends YuwValueAccessorBase<string | undef
|
|
|
1712
1756
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwRadioGroupComponent, "yuw-radio-group", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "primary": { "alias": "primary"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1713
1757
|
}
|
|
1714
1758
|
|
|
1759
|
+
/** One button of a `yuw-toggle-group`. `ariaLabel` names it when `label` alone is not enough, such as an initial. */
|
|
1760
|
+
interface YuwToggleOptionDto {
|
|
1761
|
+
value: string;
|
|
1762
|
+
label: string;
|
|
1763
|
+
ariaLabel?: string;
|
|
1764
|
+
disabled?: boolean;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
type YuwToggleGroupValue = string | string[] | undefined;
|
|
1768
|
+
/**
|
|
1769
|
+
* Row of buttons that press and release, for picking one option (`single`) or several (`multiple`) when they are few and
|
|
1770
|
+
* short enough to show at once, such as days of the week. Supports two-way binding and form controls.
|
|
1771
|
+
*
|
|
1772
|
+
* Inputs / Models:
|
|
1773
|
+
* - `value`: Two-way selection. A `string` (or `undefined`) with `single`, a `string[]` with `multiple`, in the order the
|
|
1774
|
+
* options are declared.
|
|
1775
|
+
* - `options` (required): The buttons (`YuwToggleOptionDto[]`).
|
|
1776
|
+
* - `type`: `'single'` or `'multiple'`. Default is `'multiple'`.
|
|
1777
|
+
* - `ariaLabel`: Accessible name of the group. User-facing text the consuming app translates.
|
|
1778
|
+
* - `ariaLabelledby`: ID of an external element that labels the group.
|
|
1779
|
+
* - `disabled`: Disables every button.
|
|
1780
|
+
* - `size`: Height of the buttons, `'sm'`, `'default'` or `'lg'`, as `yuw-button`'s. Default is `'lg'`.
|
|
1781
|
+
*
|
|
1782
|
+
* The buttons are outlined, and a pressed one is filled with `muted` and gets a darker border. When the row does not fit
|
|
1783
|
+
* its container it wraps onto the next line instead of overflowing.
|
|
1784
|
+
*
|
|
1785
|
+
* Usage:
|
|
1786
|
+
* ```html
|
|
1787
|
+
* <yuw-toggle-group [options]="days" [(value)]="deliveryDays" ariaLabel="Delivery days" />
|
|
1788
|
+
* <yuw-toggle-group type="single" [options]="sizes" formControlName="size" />
|
|
1789
|
+
* ```
|
|
1790
|
+
*/
|
|
1791
|
+
declare class YuwToggleGroupComponent extends YuwValueAccessorBase<YuwToggleGroupValue> {
|
|
1792
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
1793
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | undefined>;
|
|
1794
|
+
readonly options: _angular_core.InputSignal<readonly YuwToggleOptionDto[]>;
|
|
1795
|
+
readonly size: _angular_core.InputSignal<"default" | "sm" | "lg" | null | undefined>;
|
|
1796
|
+
readonly type: _angular_core.InputSignal<"single" | "multiple">;
|
|
1797
|
+
readonly value: _angular_core.ModelSignal<YuwToggleGroupValue>;
|
|
1798
|
+
protected readonly _focusSelectors: string[];
|
|
1799
|
+
protected readonly _groupValue: _angular_core.Signal<YuwToggleGroupValue>;
|
|
1800
|
+
protected _emptyValue(): YuwToggleGroupValue;
|
|
1801
|
+
/** Keeps a multiple selection in the order the options are declared, whatever order they were pressed in. */
|
|
1802
|
+
protected onValueChange(next: string | string[] | undefined | null): void;
|
|
1803
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwToggleGroupComponent, never>;
|
|
1804
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwToggleGroupComponent, "yuw-toggle-group", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1715
1807
|
/**
|
|
1716
1808
|
* Loading skeleton placeholder directive with pulse animation effect.
|
|
1717
1809
|
*
|
|
@@ -2915,6 +3007,8 @@ type YuwSheetScrollStrategyDto = null | 'close' | 'reposition';
|
|
|
2915
3007
|
* - `closeOnOutsidePointerEvents`: Whether a pointer press outside the panel closes it, backdrop
|
|
2916
3008
|
* clicks included. Default is `true`, matching the brain from `@spartan-ng/brain` 1.3.4 on; pass
|
|
2917
3009
|
* `false` for a panel that must be dismissed deliberately.
|
|
3010
|
+
* - `disableClose`: Ignores Escape and pointer presses outside, so only a write to `open` closes the panel: for a
|
|
3011
|
+
* panel whose host has to confirm before closing it. Default is `false`.
|
|
2918
3012
|
* - `triggerVariant`: Button style variant for the trigger button.
|
|
2919
3013
|
* - `triggerSize`: Button size for the trigger button.
|
|
2920
3014
|
*
|
|
@@ -2947,6 +3041,7 @@ declare class YuwSheetComponent {
|
|
|
2947
3041
|
readonly closeLabel: _angular_core.InputSignal<string | undefined>;
|
|
2948
3042
|
readonly closeOnOutsidePointerEvents: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2949
3043
|
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
3044
|
+
readonly disableClose: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2950
3045
|
readonly open: _angular_core.ModelSignal<boolean>;
|
|
2951
3046
|
readonly overlayClass: _angular_core.InputSignal<string | undefined>;
|
|
2952
3047
|
readonly panelClass: _angular_core.InputSignal<string | undefined>;
|
|
@@ -2961,7 +3056,7 @@ declare class YuwSheetComponent {
|
|
|
2961
3056
|
constructor();
|
|
2962
3057
|
protected onStateChanged(state: 'open' | 'closed'): void;
|
|
2963
3058
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwSheetComponent, never>;
|
|
2964
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwSheetComponent, "yuw-sheet", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaModal": { "alias": "ariaModal"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; "closeOnOutsidePointerEvents": { "alias": "closeOnOutsidePointerEvents"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "overlayClass": { "alias": "overlayClass"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; "isSignal": true; }; "showTrigger": { "alias": "showTrigger"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "triggerSize": { "alias": "triggerSize"; "required": false; "isSignal": true; }; "triggerVariant": { "alias": "triggerVariant"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["hasFooter", "hasHeader"], ["[yuwSheetTrigger]", "[yuwSheetHeader]", "*", "[yuwSheetFooter]"], true, never>;
|
|
3059
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwSheetComponent, "yuw-sheet", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaModal": { "alias": "ariaModal"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; "closeOnOutsidePointerEvents": { "alias": "closeOnOutsidePointerEvents"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "disableClose": { "alias": "disableClose"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "overlayClass": { "alias": "overlayClass"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; "isSignal": true; }; "showTrigger": { "alias": "showTrigger"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "triggerSize": { "alias": "triggerSize"; "required": false; "isSignal": true; }; "triggerVariant": { "alias": "triggerVariant"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["hasFooter", "hasHeader"], ["[yuwSheetTrigger]", "[yuwSheetHeader]", "*", "[yuwSheetFooter]"], true, never>;
|
|
2965
3060
|
}
|
|
2966
3061
|
declare const YuwSheetImports: readonly [typeof YuwSheetComponent, typeof YuwSheetHeaderDirective, typeof YuwSheetFooterDirective];
|
|
2967
3062
|
|
|
@@ -4999,8 +5094,11 @@ interface YuwsFormSheetLabels {
|
|
|
4999
5094
|
* from a row, so it has no trigger.
|
|
5000
5095
|
*
|
|
5001
5096
|
* Inputs:
|
|
5002
|
-
* - `backLabel`: Turns the panel into a sub-step: a back arrow with this accessible name precedes the title
|
|
5003
|
-
* button goes away and cancel emits `back`. Default is `undefined`.
|
|
5097
|
+
* - `backLabel`: Turns the panel into a sub-step: a back arrow with this accessible name precedes the title and
|
|
5098
|
+
* `description`, the close button goes away and cancel emits `back`. Default is `undefined`.
|
|
5099
|
+
* - `description`: Muted line under the title, such as the step and which fields are required. Default is `undefined`.
|
|
5100
|
+
* - `guarded`: The panel only closes when the host says so: Escape and presses outside do nothing, and the close
|
|
5101
|
+
* button and cancel emit `closeRequest`, so the host can confirm discarding what was typed. Default is `false`.
|
|
5004
5102
|
* - `errorMessage`: Rejection shown above the footer, so the draft stays on screen to be fixed. Default is `undefined`.
|
|
5005
5103
|
* - `hideFooter`: Hides the footer. Default is `false`.
|
|
5006
5104
|
* - `labels` (required): Cancel, close and save texts.
|
|
@@ -5014,11 +5112,13 @@ interface YuwsFormSheetLabels {
|
|
|
5014
5112
|
* - `title` (required): Panel title.
|
|
5015
5113
|
* - `open` (model): Whether the panel is open.
|
|
5016
5114
|
*
|
|
5017
|
-
* Outputs: `back`, `remove`, `restore`, `save`.
|
|
5115
|
+
* Outputs: `back`, `closeRequest`, `remove`, `restore`, `save`.
|
|
5018
5116
|
*/
|
|
5019
5117
|
declare class YuwsFormSheetComponent {
|
|
5020
5118
|
readonly backLabel: _angular_core.InputSignal<string | undefined>;
|
|
5119
|
+
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
5021
5120
|
readonly errorMessage: _angular_core.InputSignal<string | undefined>;
|
|
5121
|
+
readonly guarded: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5022
5122
|
readonly hideFooter: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5023
5123
|
readonly labels: _angular_core.InputSignal<YuwsFormSheetLabels>;
|
|
5024
5124
|
readonly open: _angular_core.ModelSignal<boolean>;
|
|
@@ -5031,17 +5131,18 @@ declare class YuwsFormSheetComponent {
|
|
|
5031
5131
|
readonly saving: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5032
5132
|
readonly title: _angular_core.InputSignal<string>;
|
|
5033
5133
|
readonly back: _angular_core.OutputEmitterRef<void>;
|
|
5134
|
+
readonly closeRequest: _angular_core.OutputEmitterRef<void>;
|
|
5034
5135
|
readonly remove: _angular_core.OutputEmitterRef<void>;
|
|
5035
5136
|
readonly restore: _angular_core.OutputEmitterRef<void>;
|
|
5036
5137
|
readonly save: _angular_core.OutputEmitterRef<void>;
|
|
5037
5138
|
protected onCancel(): void;
|
|
5038
5139
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsFormSheetComponent, never>;
|
|
5039
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsFormSheetComponent, "yuws-form-sheet", never, { "backLabel": { "alias": "backLabel"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "hideFooter": { "alias": "hideFooter"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": true; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "removeDisabled": { "alias": "removeDisabled"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; "restoreLabel": { "alias": "restoreLabel"; "required": false; "isSignal": true; }; "saveDisabled": { "alias": "saveDisabled"; "required": false; "isSignal": true; }; "saving": { "alias": "saving"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, { "open": "openChange"; "back": "back"; "remove": "remove"; "restore": "restore"; "save": "save"; }, never, ["*"], true, never>;
|
|
5140
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsFormSheetComponent, "yuws-form-sheet", never, { "backLabel": { "alias": "backLabel"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "guarded": { "alias": "guarded"; "required": false; "isSignal": true; }; "hideFooter": { "alias": "hideFooter"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": true; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "removeDisabled": { "alias": "removeDisabled"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; "restoreLabel": { "alias": "restoreLabel"; "required": false; "isSignal": true; }; "saveDisabled": { "alias": "saveDisabled"; "required": false; "isSignal": true; }; "saving": { "alias": "saving"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, { "open": "openChange"; "back": "back"; "closeRequest": "closeRequest"; "remove": "remove"; "restore": "restore"; "save": "save"; }, never, ["*"], true, never>;
|
|
5040
5141
|
}
|
|
5041
5142
|
|
|
5042
5143
|
/**
|
|
5043
|
-
* Image field of a form: label, avatar with the current image
|
|
5044
|
-
* the first letter of `name`.
|
|
5144
|
+
* Image field of a form: label and the picker, either an avatar with the current image beside an upload button, or a
|
|
5145
|
+
* dashed square the image fills. Without an image the avatar shows the first letter of `name`.
|
|
5045
5146
|
*
|
|
5046
5147
|
* Inputs:
|
|
5047
5148
|
* - `inputId` (required): Id of the file input, tied to the label.
|
|
@@ -5049,18 +5150,23 @@ declare class YuwsFormSheetComponent {
|
|
|
5049
5150
|
* - `name` (required): What the image represents; its alternative text.
|
|
5050
5151
|
* - `src`: Image already stored. Default is `undefined`.
|
|
5051
5152
|
* - `uploadLabel` (required): Upload button text. The consuming app translates it.
|
|
5153
|
+
* - `removeLabel`: Accessible name of the `tile`'s remove button; without it the picked image is only replaced.
|
|
5154
|
+
* Default is `undefined`.
|
|
5155
|
+
* - `variant`: `'avatar'` or `'tile'`. Default is `'avatar'`.
|
|
5052
5156
|
* - `value` (model): Files picked, sent by the form on save.
|
|
5053
5157
|
*/
|
|
5054
5158
|
declare class YuwsImageFieldComponent {
|
|
5055
5159
|
readonly inputId: _angular_core.InputSignal<string>;
|
|
5056
5160
|
readonly label: _angular_core.InputSignal<string>;
|
|
5057
5161
|
readonly name: _angular_core.InputSignal<string>;
|
|
5162
|
+
readonly removeLabel: _angular_core.InputSignal<string | undefined>;
|
|
5058
5163
|
readonly src: _angular_core.InputSignal<string | undefined>;
|
|
5059
5164
|
readonly uploadLabel: _angular_core.InputSignal<string>;
|
|
5060
5165
|
readonly value: _angular_core.ModelSignal<File[]>;
|
|
5166
|
+
readonly variant: _angular_core.InputSignal<"avatar" | "tile">;
|
|
5061
5167
|
protected readonly initial: _angular_core.Signal<string>;
|
|
5062
5168
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsImageFieldComponent, never>;
|
|
5063
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsImageFieldComponent, "yuws-image-field", never, { "inputId": { "alias": "inputId"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "uploadLabel": { "alias": "uploadLabel"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
5169
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsImageFieldComponent, "yuws-image-field", never, { "inputId": { "alias": "inputId"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "uploadLabel": { "alias": "uploadLabel"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
5064
5170
|
}
|
|
5065
5171
|
|
|
5066
5172
|
/**
|
|
@@ -5542,5 +5648,44 @@ declare class YuwsTitleSkeletonDirective {
|
|
|
5542
5648
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<YuwsTitleSkeletonDirective, "yuws-page-header[yuwsTitleSkeleton]", never, { "loading": { "alias": "yuwsTitleSkeleton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5543
5649
|
}
|
|
5544
5650
|
|
|
5545
|
-
|
|
5546
|
-
|
|
5651
|
+
/** How a day of the week reads in a `yuws-weekday-picker`: `short` on its button (`'X'`), `name` for screen readers (`'Miércoles'`). */
|
|
5652
|
+
interface YuwsWeekdayDto {
|
|
5653
|
+
short: string;
|
|
5654
|
+
name: string;
|
|
5655
|
+
}
|
|
5656
|
+
|
|
5657
|
+
/**
|
|
5658
|
+
* The seven days of the week as buttons that press and release, for picking the days something happens on (deliveries,
|
|
5659
|
+
* order reminders). Supports two-way binding and form controls.
|
|
5660
|
+
*
|
|
5661
|
+
* Days are ISO numbers, `1` Monday to `7` Sunday, and `value` keeps them in that order whatever order they were
|
|
5662
|
+
* pressed in.
|
|
5663
|
+
*
|
|
5664
|
+
* Inputs / Models:
|
|
5665
|
+
* - `value`: Two-way `number[]` of the days picked.
|
|
5666
|
+
* - `days` (required): The seven days, Monday first, as the consuming app names them (`YuwsWeekdayDto[]`).
|
|
5667
|
+
* - `ariaLabel`: Accessible name of the group. User-facing text the consuming app translates.
|
|
5668
|
+
* - `ariaLabelledby`: ID of an external element that labels the group.
|
|
5669
|
+
* - `disabled`: Disables every day.
|
|
5670
|
+
*
|
|
5671
|
+
* Usage:
|
|
5672
|
+
* ```html
|
|
5673
|
+
* <yuws-weekday-picker [days]="weekdays" [(value)]="deliveryDays" ariaLabelledby="delivery-days-label" />
|
|
5674
|
+
* ```
|
|
5675
|
+
*/
|
|
5676
|
+
declare class YuwsWeekdayPickerComponent extends YuwValueAccessorBase<number[]> {
|
|
5677
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
5678
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | undefined>;
|
|
5679
|
+
readonly days: _angular_core.InputSignal<readonly YuwsWeekdayDto[]>;
|
|
5680
|
+
readonly value: _angular_core.ModelSignal<number[]>;
|
|
5681
|
+
protected readonly _focusSelectors: string[];
|
|
5682
|
+
protected readonly _options: _angular_core.Signal<YuwToggleOptionDto[]>;
|
|
5683
|
+
protected readonly _selected: _angular_core.Signal<string[]>;
|
|
5684
|
+
protected _emptyValue(): number[];
|
|
5685
|
+
protected onValueChange(next: YuwToggleGroupValue): void;
|
|
5686
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsWeekdayPickerComponent, never>;
|
|
5687
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsWeekdayPickerComponent, "yuws-weekday-picker", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "days": { "alias": "days"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
5688
|
+
}
|
|
5689
|
+
|
|
5690
|
+
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_PADDING, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwDatePresets, yuwQuarterRange, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter };
|
|
5691
|
+
export type { YuwAlertDialogSizeDto, YuwAlertVariantDto, YuwAvatarGroupItemDto, YuwAvatarSizeDto, YuwBreadcrumbCrumb, YuwBreadcrumbItemDto, YuwBreadcrumbRouteData, YuwButtonGroupClickDto, YuwButtonGroupItemDto, YuwCalendarModeDto, YuwCalendarValue, YuwCalendarView, YuwColorDto, YuwComboboxItemContext, YuwComboboxOptionDto, YuwComboboxTriggerContext, YuwComboboxValue, YuwCommandGroupDto, YuwCommandItemDto, YuwDatatableAlign, YuwDatatableAppearanceDto, YuwDatatableColumnDef, YuwDatatableColumnMeta, YuwDatatableFeatures, YuwDatatableRowClass, YuwDatePickDto, YuwDatePresetDto, YuwDateRangeKey, YuwDatepickerModeDto, YuwDatepickerTriggerContext, YuwDatepickerValue, YuwFieldSizeDto, YuwInputFileVariantDto, YuwInputModeDto, YuwInputOtpGroupDto, YuwInputOtpModeDto, YuwInputTypeDto, YuwPageQuery, YuwPageRange, YuwPageSort, YuwPagedList, YuwPagedListOptions, YuwPaginationRangeItem, YuwPaginationSizeDto, YuwPasswordRevealStateDto, YuwPopoverAlignDto, YuwPrintHeader, YuwPrintHeaderBlock, YuwPrintHeaderLine, YuwQuarter, YuwRadioOptionDto, YuwSearchInputCollapseFromDto, YuwSheetScrollStrategyDto, YuwSheetSideDto, YuwSidebarAvatarDto, YuwSidebarCollapsibleDto, YuwSidebarContentDto, YuwSidebarGroupDto, YuwSidebarItemClickDto, YuwSidebarItemDto, YuwSidebarSideDto, YuwSidebarSubItemDto, YuwSidebarVariantDto, YuwStepChangeDto, YuwStepIndicatorContextDto, YuwStepItemDto, YuwStepStateDto, YuwStepperOrientationDto, YuwSwitchSizeDto, YuwTabItemDto, YuwTableExportColumn, YuwTableShareFormat, YuwTableShareSource, YuwTableSnapshot, YuwTabsActivationModeDto, YuwTabsOrientationDto, YuwTabsVariantDto, YuwTextFieldContract, YuwToasterPositionDto, YuwToasterThemeDto, YuwToggleGroupValue, YuwToggleOptionDto, YuwTooltipPositionDto, YuwsAvatarNameCellSize, YuwsConfirmationState, YuwsDateFilterDto, YuwsFilterContentContext, YuwsFilterGroupDto, YuwsFilterGroupMode, YuwsFilterOptionDto, YuwsFilterSelection, YuwsFilterSetDto, YuwsFilterSetLabels, YuwsFilterSetRenameDto, YuwsFilterSetSaveDto, YuwsFilterValue, YuwsFlagCellOffIcon, YuwsFormSheetLabels, YuwsIconActionColumn, YuwsImageCellSize, YuwsListPaginationLabels, YuwsListToolbarColumnsLabels, YuwsListToolbarFilterLabels, YuwsListToolbarLabels, YuwsListToolbarSearchLabels, YuwsListToolbarShareLabels, YuwsListToolbarViewModeIcons, YuwsListToolbarViewModeLabels, YuwsMenuAction, YuwsMenuActionsColumn, YuwsPageSizeLabels, YuwsSelectColumnLabels, YuwsSheetEditor, YuwsStateLabels, YuwsStatusToggleColumn, YuwsTextColumnOptions, YuwsViewMode, YuwsWeekdayDto };
|