yukit-web 0.9.0 → 0.9.1
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 +37 -19
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +22 -6
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -1157,6 +1157,8 @@ type YuwInputFileVariantDto = 'avatar' | 'tile' | 'inline';
|
|
|
1157
1157
|
* Inputs / Models:
|
|
1158
1158
|
* - `value`: Two-way `File[]` selection.
|
|
1159
1159
|
* - `variant`: `'avatar'`, `'tile'` or `'inline'`. Default is `'avatar'`.
|
|
1160
|
+
* - `emptyLabel`: With nothing chosen, `inline` shows this text, such as "No document", with a compact attach button
|
|
1161
|
+
* beside it instead of the full-width upload button. Default is `undefined`.
|
|
1160
1162
|
* - `uploadLabel`: Text of the upload button. User-facing text — the consuming app provides and
|
|
1161
1163
|
* translates it; required, there is no default copy.
|
|
1162
1164
|
* - `removeLabel`: Accessible label of each remove icon (`inline` and `tile`). Required for `inline`; without it a
|
|
@@ -1196,6 +1198,7 @@ declare class YuwInputFileComponent extends YuwValueAccessorBase<File[]> {
|
|
|
1196
1198
|
readonly accept: _angular_core.InputSignal<string | undefined>;
|
|
1197
1199
|
readonly alt: _angular_core.InputSignal<string>;
|
|
1198
1200
|
readonly countLabel: _angular_core.InputSignal<((count: number) => string) | undefined>;
|
|
1201
|
+
readonly emptyLabel: _angular_core.InputSignal<string | undefined>;
|
|
1199
1202
|
readonly errorText: _angular_core.InputSignal<string | undefined>;
|
|
1200
1203
|
readonly fallback: _angular_core.InputSignal<string | undefined>;
|
|
1201
1204
|
readonly helperText: _angular_core.InputSignal<string | undefined>;
|
|
@@ -1231,7 +1234,7 @@ declare class YuwInputFileComponent extends YuwValueAccessorBase<File[]> {
|
|
|
1231
1234
|
protected _emptyValue(): File[];
|
|
1232
1235
|
protected onChange(event: Event): void;
|
|
1233
1236
|
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>;
|
|
1237
|
+
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
1238
|
}
|
|
1236
1239
|
|
|
1237
1240
|
/**
|
|
@@ -1779,7 +1782,8 @@ type YuwToggleGroupValue = string | string[] | undefined;
|
|
|
1779
1782
|
* - `disabled`: Disables every button.
|
|
1780
1783
|
* - `size`: Height of the buttons, `'sm'`, `'default'` or `'lg'`, as `yuw-button`'s. Default is `'lg'`.
|
|
1781
1784
|
*
|
|
1782
|
-
* The buttons are outlined, and a pressed one is
|
|
1785
|
+
* The buttons are outlined, and a pressed one is painted like a `secondary` `yuw-button` in the `secondary` color,
|
|
1786
|
+
* with the `secondary` border, from its tokens so the unpressed borders keep their color. When the row does not fit
|
|
1783
1787
|
* its container it wraps onto the next line instead of overflowing.
|
|
1784
1788
|
*
|
|
1785
1789
|
* Usage:
|
|
@@ -4780,10 +4784,11 @@ declare class YuwsIconActionCellComponent {
|
|
|
4780
4784
|
readonly destructive: _angular_core.InputSignal<boolean>;
|
|
4781
4785
|
readonly icon: _angular_core.InputSignal<string>;
|
|
4782
4786
|
readonly label: _angular_core.InputSignal<string>;
|
|
4787
|
+
readonly tooltip: _angular_core.InputSignal<string>;
|
|
4783
4788
|
protected readonly buttonClass: _angular_core.Signal<"" | "text-destructive hover:bg-destructive/10 hover:text-destructive">;
|
|
4784
4789
|
protected run(): void;
|
|
4785
4790
|
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>;
|
|
4791
|
+
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
4792
|
}
|
|
4788
4793
|
|
|
4789
4794
|
/** Image size of the cell: `lg` is the 60x60 catalog thumbnail, `md` the 45x45 one. */
|
|
@@ -4928,17 +4933,20 @@ declare class YuwsStackedTextCellComponent {
|
|
|
4928
4933
|
* - `label` (required): Visible text. The consuming app translates it.
|
|
4929
4934
|
* - `positive`: `true` paints the pill green, `false` red; unset keeps it neutral. Default is `undefined`.
|
|
4930
4935
|
* - `toggled` (required): Callback run on click.
|
|
4936
|
+
* - `tooltip`: Hint shown on hover or keyboard focus, such as what a click does; empty shows none. The consuming app
|
|
4937
|
+
* translates it.
|
|
4931
4938
|
*/
|
|
4932
4939
|
declare class YuwsStatusToggleCellComponent {
|
|
4933
4940
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
4934
4941
|
readonly label: _angular_core.InputSignal<string>;
|
|
4935
4942
|
readonly positive: _angular_core.InputSignal<boolean | undefined>;
|
|
4936
4943
|
readonly toggled: _angular_core.InputSignal<() => void>;
|
|
4944
|
+
readonly tooltip: _angular_core.InputSignal<string>;
|
|
4937
4945
|
private readonly _tone;
|
|
4938
4946
|
protected readonly toneClass: _angular_core.Signal<string>;
|
|
4939
4947
|
protected onClick(event: Event): void;
|
|
4940
4948
|
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>;
|
|
4949
|
+
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
4950
|
}
|
|
4943
4951
|
|
|
4944
4952
|
/** Text of a cell with no value. */
|
|
@@ -4955,7 +4963,7 @@ interface YuwsStateLabels {
|
|
|
4955
4963
|
}
|
|
4956
4964
|
/**
|
|
4957
4965
|
* Icon button column. `visible` decides the rows that show the button; without it every row does. `destructive` paints
|
|
4958
|
-
* it in the destructive color.
|
|
4966
|
+
* it in the destructive color. `tooltip` is the hint shown on hover.
|
|
4959
4967
|
*/
|
|
4960
4968
|
interface YuwsIconActionColumn<Row> {
|
|
4961
4969
|
id: string;
|
|
@@ -4965,6 +4973,7 @@ interface YuwsIconActionColumn<Row> {
|
|
|
4965
4973
|
onAction: (row: Row) => void;
|
|
4966
4974
|
visible?: (row: Row) => boolean;
|
|
4967
4975
|
destructive?: boolean;
|
|
4976
|
+
tooltip?: string;
|
|
4968
4977
|
}
|
|
4969
4978
|
/** Menu column. `label` names each row's button; a row whose `actions` are empty shows no button. */
|
|
4970
4979
|
interface YuwsMenuActionsColumn<Row> {
|
|
@@ -4977,7 +4986,10 @@ interface YuwsSelectColumnLabels<Row> {
|
|
|
4977
4986
|
selectAll: string;
|
|
4978
4987
|
selectRow: (row: Row) => string;
|
|
4979
4988
|
}
|
|
4980
|
-
/**
|
|
4989
|
+
/**
|
|
4990
|
+
* State column that flips on click. `disabled` locks the rows whose state cannot change. `tooltips` are the hints shown
|
|
4991
|
+
* on hover in each state, such as what a click on it does.
|
|
4992
|
+
*/
|
|
4981
4993
|
interface YuwsStatusToggleColumn<Row> {
|
|
4982
4994
|
key: keyof Row & string;
|
|
4983
4995
|
header: string;
|
|
@@ -4985,6 +4997,7 @@ interface YuwsStatusToggleColumn<Row> {
|
|
|
4985
4997
|
positive: (row: Row) => boolean;
|
|
4986
4998
|
toggled: (row: Row) => void;
|
|
4987
4999
|
disabled?: (row: Row) => boolean;
|
|
5000
|
+
tooltips?: YuwsStateLabels;
|
|
4988
5001
|
}
|
|
4989
5002
|
/** Text column that shows `YUWS_NO_DATA_PLACEHOLDER` when the value is missing or an empty string. */
|
|
4990
5003
|
declare function buildYuwsOptionalTextColumn<Row extends Record<string, unknown>>(key: keyof Row & string, header: string, options?: YuwsTextColumnOptions): YuwDatatableColumnDef<Row>;
|
|
@@ -5096,6 +5109,8 @@ interface YuwsFormSheetLabels {
|
|
|
5096
5109
|
* Inputs:
|
|
5097
5110
|
* - `backLabel`: Turns the panel into a sub-step: a back arrow with this accessible name precedes the title and
|
|
5098
5111
|
* `description`, the close button goes away and cancel emits `back`. Default is `undefined`.
|
|
5112
|
+
* Like `guarded`, it draws its own header, with an outlined button, and a border separates header and footer from the
|
|
5113
|
+
* body.
|
|
5099
5114
|
* - `description`: Muted line under the title, such as the step and which fields are required. Default is `undefined`.
|
|
5100
5115
|
* - `guarded`: The panel only closes when the host says so: Escape and presses outside do nothing, and the close
|
|
5101
5116
|
* button and cancel emit `closeRequest`, so the host can confirm discarding what was typed. Default is `false`.
|
|
@@ -5135,6 +5150,7 @@ declare class YuwsFormSheetComponent {
|
|
|
5135
5150
|
readonly remove: _angular_core.OutputEmitterRef<void>;
|
|
5136
5151
|
readonly restore: _angular_core.OutputEmitterRef<void>;
|
|
5137
5152
|
readonly save: _angular_core.OutputEmitterRef<void>;
|
|
5153
|
+
protected readonly _divided: _angular_core.Signal<boolean>;
|
|
5138
5154
|
protected onCancel(): void;
|
|
5139
5155
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsFormSheetComponent, never>;
|
|
5140
5156
|
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>;
|