yukit-web 0.9.0 → 0.9.2
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 +71 -25
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +31 -7
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -1043,8 +1043,14 @@ declare class YuwAccordionTriggerComponent {
|
|
|
1043
1043
|
* Collapsible panel container for a `yuw-accordion-item`.
|
|
1044
1044
|
*
|
|
1045
1045
|
* Projects body content revealed when the item is expanded (supports text, custom markup, or nested components).
|
|
1046
|
+
*
|
|
1047
|
+
* The keys the accordion uses to move between its triggers stop here. `BrnAccordion` listens for them on its whole
|
|
1048
|
+
* host and prevents their default unless the target is a text field, so a switch, a toggle or a button inside the
|
|
1049
|
+
* panel could not be pressed with Space or Enter. Escape and Tab still bubble, so an enclosing sheet or dialog keeps
|
|
1050
|
+
* closing and trapping focus.
|
|
1046
1051
|
*/
|
|
1047
1052
|
declare class YuwAccordionContentComponent {
|
|
1053
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
1048
1054
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwAccordionContentComponent, never>;
|
|
1049
1055
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwAccordionContentComponent, "yuw-accordion-content", never, {}, {}, never, ["*"], true, never>;
|
|
1050
1056
|
}
|
|
@@ -1157,6 +1163,8 @@ type YuwInputFileVariantDto = 'avatar' | 'tile' | 'inline';
|
|
|
1157
1163
|
* Inputs / Models:
|
|
1158
1164
|
* - `value`: Two-way `File[]` selection.
|
|
1159
1165
|
* - `variant`: `'avatar'`, `'tile'` or `'inline'`. Default is `'avatar'`.
|
|
1166
|
+
* - `emptyLabel`: With nothing chosen, `inline` shows this text, such as "No document", with a compact attach button
|
|
1167
|
+
* beside it instead of the full-width upload button. Default is `undefined`.
|
|
1160
1168
|
* - `uploadLabel`: Text of the upload button. User-facing text — the consuming app provides and
|
|
1161
1169
|
* translates it; required, there is no default copy.
|
|
1162
1170
|
* - `removeLabel`: Accessible label of each remove icon (`inline` and `tile`). Required for `inline`; without it a
|
|
@@ -1196,6 +1204,7 @@ declare class YuwInputFileComponent extends YuwValueAccessorBase<File[]> {
|
|
|
1196
1204
|
readonly accept: _angular_core.InputSignal<string | undefined>;
|
|
1197
1205
|
readonly alt: _angular_core.InputSignal<string>;
|
|
1198
1206
|
readonly countLabel: _angular_core.InputSignal<((count: number) => string) | undefined>;
|
|
1207
|
+
readonly emptyLabel: _angular_core.InputSignal<string | undefined>;
|
|
1199
1208
|
readonly errorText: _angular_core.InputSignal<string | undefined>;
|
|
1200
1209
|
readonly fallback: _angular_core.InputSignal<string | undefined>;
|
|
1201
1210
|
readonly helperText: _angular_core.InputSignal<string | undefined>;
|
|
@@ -1231,7 +1240,7 @@ declare class YuwInputFileComponent extends YuwValueAccessorBase<File[]> {
|
|
|
1231
1240
|
protected _emptyValue(): File[];
|
|
1232
1241
|
protected onChange(event: Event): void;
|
|
1233
1242
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwInputFileComponent, never>;
|
|
1234
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwInputFileComponent, "yuw-input-file", never, { "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "uploadLabel": { "alias": "uploadLabel"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "removed": "removed"; }, never, never, true, never>;
|
|
1243
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwInputFileComponent, "yuw-input-file", never, { "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "uploadLabel": { "alias": "uploadLabel"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "removed": "removed"; }, never, never, true, never>;
|
|
1235
1244
|
}
|
|
1236
1245
|
|
|
1237
1246
|
/**
|
|
@@ -1779,7 +1788,8 @@ type YuwToggleGroupValue = string | string[] | undefined;
|
|
|
1779
1788
|
* - `disabled`: Disables every button.
|
|
1780
1789
|
* - `size`: Height of the buttons, `'sm'`, `'default'` or `'lg'`, as `yuw-button`'s. Default is `'lg'`.
|
|
1781
1790
|
*
|
|
1782
|
-
* The buttons are outlined, and a pressed one is
|
|
1791
|
+
* The buttons are outlined, and a pressed one is painted like a `secondary` `yuw-button` in the `secondary` color,
|
|
1792
|
+
* with the `secondary` border, from its tokens so the unpressed borders keep their color. When the row does not fit
|
|
1783
1793
|
* its container it wraps onto the next line instead of overflowing.
|
|
1784
1794
|
*
|
|
1785
1795
|
* Usage:
|
|
@@ -4780,10 +4790,11 @@ declare class YuwsIconActionCellComponent {
|
|
|
4780
4790
|
readonly destructive: _angular_core.InputSignal<boolean>;
|
|
4781
4791
|
readonly icon: _angular_core.InputSignal<string>;
|
|
4782
4792
|
readonly label: _angular_core.InputSignal<string>;
|
|
4793
|
+
readonly tooltip: _angular_core.InputSignal<string>;
|
|
4783
4794
|
protected readonly buttonClass: _angular_core.Signal<"" | "text-destructive hover:bg-destructive/10 hover:text-destructive">;
|
|
4784
4795
|
protected run(): void;
|
|
4785
4796
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsIconActionCellComponent, never>;
|
|
4786
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsIconActionCellComponent, "yuws-icon-action-cell", never, { "action": { "alias": "action"; "required": true; "isSignal": true; }; "destructive": { "alias": "destructive"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4797
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsIconActionCellComponent, "yuws-icon-action-cell", never, { "action": { "alias": "action"; "required": true; "isSignal": true; }; "destructive": { "alias": "destructive"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4787
4798
|
}
|
|
4788
4799
|
|
|
4789
4800
|
/** Image size of the cell: `lg` is the 60x60 catalog thumbnail, `md` the 45x45 one. */
|
|
@@ -4928,17 +4939,20 @@ declare class YuwsStackedTextCellComponent {
|
|
|
4928
4939
|
* - `label` (required): Visible text. The consuming app translates it.
|
|
4929
4940
|
* - `positive`: `true` paints the pill green, `false` red; unset keeps it neutral. Default is `undefined`.
|
|
4930
4941
|
* - `toggled` (required): Callback run on click.
|
|
4942
|
+
* - `tooltip`: Hint shown on hover or keyboard focus, such as what a click does; empty shows none. The consuming app
|
|
4943
|
+
* translates it.
|
|
4931
4944
|
*/
|
|
4932
4945
|
declare class YuwsStatusToggleCellComponent {
|
|
4933
4946
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
4934
4947
|
readonly label: _angular_core.InputSignal<string>;
|
|
4935
4948
|
readonly positive: _angular_core.InputSignal<boolean | undefined>;
|
|
4936
4949
|
readonly toggled: _angular_core.InputSignal<() => void>;
|
|
4950
|
+
readonly tooltip: _angular_core.InputSignal<string>;
|
|
4937
4951
|
private readonly _tone;
|
|
4938
4952
|
protected readonly toneClass: _angular_core.Signal<string>;
|
|
4939
4953
|
protected onClick(event: Event): void;
|
|
4940
4954
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsStatusToggleCellComponent, never>;
|
|
4941
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsStatusToggleCellComponent, "yuws-status-toggle-cell", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "positive": { "alias": "positive"; "required": false; "isSignal": true; }; "toggled": { "alias": "toggled"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4955
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsStatusToggleCellComponent, "yuws-status-toggle-cell", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "positive": { "alias": "positive"; "required": false; "isSignal": true; }; "toggled": { "alias": "toggled"; "required": true; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4942
4956
|
}
|
|
4943
4957
|
|
|
4944
4958
|
/** Text of a cell with no value. */
|
|
@@ -4955,7 +4969,7 @@ interface YuwsStateLabels {
|
|
|
4955
4969
|
}
|
|
4956
4970
|
/**
|
|
4957
4971
|
* Icon button column. `visible` decides the rows that show the button; without it every row does. `destructive` paints
|
|
4958
|
-
* it in the destructive color.
|
|
4972
|
+
* it in the destructive color. `tooltip` is the hint shown on hover.
|
|
4959
4973
|
*/
|
|
4960
4974
|
interface YuwsIconActionColumn<Row> {
|
|
4961
4975
|
id: string;
|
|
@@ -4965,6 +4979,7 @@ interface YuwsIconActionColumn<Row> {
|
|
|
4965
4979
|
onAction: (row: Row) => void;
|
|
4966
4980
|
visible?: (row: Row) => boolean;
|
|
4967
4981
|
destructive?: boolean;
|
|
4982
|
+
tooltip?: string;
|
|
4968
4983
|
}
|
|
4969
4984
|
/** Menu column. `label` names each row's button; a row whose `actions` are empty shows no button. */
|
|
4970
4985
|
interface YuwsMenuActionsColumn<Row> {
|
|
@@ -4977,7 +4992,10 @@ interface YuwsSelectColumnLabels<Row> {
|
|
|
4977
4992
|
selectAll: string;
|
|
4978
4993
|
selectRow: (row: Row) => string;
|
|
4979
4994
|
}
|
|
4980
|
-
/**
|
|
4995
|
+
/**
|
|
4996
|
+
* State column that flips on click. `disabled` locks the rows whose state cannot change. `tooltips` are the hints shown
|
|
4997
|
+
* on hover in each state, such as what a click on it does.
|
|
4998
|
+
*/
|
|
4981
4999
|
interface YuwsStatusToggleColumn<Row> {
|
|
4982
5000
|
key: keyof Row & string;
|
|
4983
5001
|
header: string;
|
|
@@ -4985,6 +5003,7 @@ interface YuwsStatusToggleColumn<Row> {
|
|
|
4985
5003
|
positive: (row: Row) => boolean;
|
|
4986
5004
|
toggled: (row: Row) => void;
|
|
4987
5005
|
disabled?: (row: Row) => boolean;
|
|
5006
|
+
tooltips?: YuwsStateLabels;
|
|
4988
5007
|
}
|
|
4989
5008
|
/** Text column that shows `YUWS_NO_DATA_PLACEHOLDER` when the value is missing or an empty string. */
|
|
4990
5009
|
declare function buildYuwsOptionalTextColumn<Row extends Record<string, unknown>>(key: keyof Row & string, header: string, options?: YuwsTextColumnOptions): YuwDatatableColumnDef<Row>;
|
|
@@ -5096,6 +5115,8 @@ interface YuwsFormSheetLabels {
|
|
|
5096
5115
|
* Inputs:
|
|
5097
5116
|
* - `backLabel`: Turns the panel into a sub-step: a back arrow with this accessible name precedes the title and
|
|
5098
5117
|
* `description`, the close button goes away and cancel emits `back`. Default is `undefined`.
|
|
5118
|
+
* Like `guarded`, it draws its own header, with an outlined button, and a border separates header and footer from the
|
|
5119
|
+
* body.
|
|
5099
5120
|
* - `description`: Muted line under the title, such as the step and which fields are required. Default is `undefined`.
|
|
5100
5121
|
* - `guarded`: The panel only closes when the host says so: Escape and presses outside do nothing, and the close
|
|
5101
5122
|
* button and cancel emit `closeRequest`, so the host can confirm discarding what was typed. Default is `false`.
|
|
@@ -5107,6 +5128,7 @@ interface YuwsFormSheetLabels {
|
|
|
5107
5128
|
* - `removeDisabled`: Disables the delete button. Default is `false`.
|
|
5108
5129
|
* - `removeLabel`: Renders the delete button with this text. Default is `undefined`.
|
|
5109
5130
|
* - `restoreLabel`: Renders the restore button with this text. Default is `undefined`.
|
|
5131
|
+
* - `saveColor`: Color of the save button (any `YuwColorDto` value). Default is `'primary'`.
|
|
5110
5132
|
* - `saveDisabled`: Disables the save button. Default is `false`.
|
|
5111
5133
|
* - `saving`: Disables the footer actions while the host's write is in flight. Default is `false`.
|
|
5112
5134
|
* - `title` (required): Panel title.
|
|
@@ -5127,6 +5149,7 @@ declare class YuwsFormSheetComponent {
|
|
|
5127
5149
|
readonly removeDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5128
5150
|
readonly removeLabel: _angular_core.InputSignal<string | undefined>;
|
|
5129
5151
|
readonly restoreLabel: _angular_core.InputSignal<string | undefined>;
|
|
5152
|
+
readonly saveColor: _angular_core.InputSignal<YuwColorDto>;
|
|
5130
5153
|
readonly saveDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5131
5154
|
readonly saving: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5132
5155
|
readonly title: _angular_core.InputSignal<string>;
|
|
@@ -5135,9 +5158,10 @@ declare class YuwsFormSheetComponent {
|
|
|
5135
5158
|
readonly remove: _angular_core.OutputEmitterRef<void>;
|
|
5136
5159
|
readonly restore: _angular_core.OutputEmitterRef<void>;
|
|
5137
5160
|
readonly save: _angular_core.OutputEmitterRef<void>;
|
|
5161
|
+
protected readonly _divided: _angular_core.Signal<boolean>;
|
|
5138
5162
|
protected onCancel(): void;
|
|
5139
5163
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsFormSheetComponent, 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>;
|
|
5164
|
+
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; }; "saveColor": { "alias": "saveColor"; "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>;
|
|
5141
5165
|
}
|
|
5142
5166
|
|
|
5143
5167
|
/**
|