yukit-web 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/yukit-web.mjs +217 -188
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme/components/button.css +9 -0
- package/types/yukit-web.d.ts +19 -9
package/package.json
CHANGED
|
@@ -2,3 +2,12 @@ yuw-button[data-yuw-variant='outline'] > :is(button, a):not(:hover) {
|
|
|
2
2
|
background-color: transparent;
|
|
3
3
|
color: var(--foreground);
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
yuw-button[data-yuw-variant='outline'][data-yuw-color='neutral'] > :is(button, a) {
|
|
7
|
+
background-color: var(--neutrals-surface);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
yuw-button[data-yuw-variant='outline'][data-yuw-color='neutral']
|
|
11
|
+
> :is(button, a):is(:hover, [aria-expanded='true']):not(:disabled, [data-disabled]) {
|
|
12
|
+
background-image: linear-gradient(var(--muted), var(--muted));
|
|
13
|
+
}
|
package/types/yukit-web.d.ts
CHANGED
|
@@ -416,6 +416,8 @@ type YuwComboboxValue = string | string[] | undefined;
|
|
|
416
416
|
* `<yuw-button>` size of the same name. Applies to whichever control shape renders; the popover
|
|
417
417
|
* panel and its inner search field keep their own compact sizing.
|
|
418
418
|
* - `multiple`: Enables multi-selection mode with removable tags/chips.
|
|
419
|
+
* - `checkboxes`: Leads each option with a `yuw-checkbox` showing whether it is selected, in place of the trailing
|
|
420
|
+
* check, for a list read as a checklist (which columns to show, say). Ignored by a `yuwComboboxItem` template.
|
|
419
421
|
* - `disabled`: Disables combobox interaction.
|
|
420
422
|
* - `placeholder`: Placeholder text when no option is selected.
|
|
421
423
|
* - `searchPlaceholder`: Placeholder of the search field inside the popover of a button-shaped control
|
|
@@ -472,6 +474,7 @@ declare class YuwComboboxComponent<TData = unknown> extends YuwValueAccessorBase
|
|
|
472
474
|
private readonly _singleBox;
|
|
473
475
|
protected readonly itemTemplate: _angular_core.Signal<YuwComboboxItemDirective<TData> | undefined>;
|
|
474
476
|
protected readonly triggerTemplate: _angular_core.Signal<YuwComboboxTriggerDirective | undefined>;
|
|
477
|
+
readonly checkboxes: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
475
478
|
readonly clearAriaLabel: _angular_core.InputSignal<string | undefined>;
|
|
476
479
|
readonly emptyText: _angular_core.InputSignal<string | undefined>;
|
|
477
480
|
readonly helperText: _angular_core.InputSignal<string | undefined>;
|
|
@@ -500,6 +503,7 @@ declare class YuwComboboxComponent<TData = unknown> extends YuwValueAccessorBase
|
|
|
500
503
|
protected readonly _contentClass: _angular_core.Signal<"" | "w-auto min-w-56 max-w-80">;
|
|
501
504
|
protected readonly _controlId: _angular_core.Signal<string>;
|
|
502
505
|
protected readonly _fieldClass: _angular_core.Signal<string>;
|
|
506
|
+
protected readonly _itemClass: _angular_core.Signal<"" | "cursor-pointer! gap-3! pe-1.5! [&>ng-icon]:hidden!">;
|
|
503
507
|
private readonly _labelByValue;
|
|
504
508
|
protected readonly _multipleValue: _angular_core.Signal<string[]>;
|
|
505
509
|
protected readonly _searchInPanel: _angular_core.Signal<boolean>;
|
|
@@ -530,7 +534,7 @@ declare class YuwComboboxComponent<TData = unknown> extends YuwValueAccessorBase
|
|
|
530
534
|
*/
|
|
531
535
|
private _guardEscape;
|
|
532
536
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwComboboxComponent<any>, never>;
|
|
533
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwComboboxComponent<any>, "yuw-combobox", never, { "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "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; }; "keepValueOnEscape": { "alias": "keepValueOnEscape"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonlyTrigger": { "alias": "readonlyTrigger"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "triggerAriaLabel": { "alias": "triggerAriaLabel"; "required": true; "isSignal": true; }; "triggerClass": { "alias": "triggerClass"; "required": false; "isSignal": true; }; "triggerColor": { "alias": "triggerColor"; "required": false; "isSignal": true; }; "triggerSize": { "alias": "triggerSize"; "required": false; "isSignal": true; }; "triggerVariant": { "alias": "triggerVariant"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "search": "searchChange"; "value": "valueChange"; }, ["itemTemplate", "triggerTemplate"], ["[yuwComboboxHeader]", "[yuwComboboxFooter]"], true, never>;
|
|
537
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwComboboxComponent<any>, "yuw-combobox", never, { "checkboxes": { "alias": "checkboxes"; "required": false; "isSignal": true; }; "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "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; }; "keepValueOnEscape": { "alias": "keepValueOnEscape"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonlyTrigger": { "alias": "readonlyTrigger"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "triggerAriaLabel": { "alias": "triggerAriaLabel"; "required": true; "isSignal": true; }; "triggerClass": { "alias": "triggerClass"; "required": false; "isSignal": true; }; "triggerColor": { "alias": "triggerColor"; "required": false; "isSignal": true; }; "triggerSize": { "alias": "triggerSize"; "required": false; "isSignal": true; }; "triggerVariant": { "alias": "triggerVariant"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "search": "searchChange"; "value": "valueChange"; }, ["itemTemplate", "triggerTemplate"], ["[yuwComboboxHeader]", "[yuwComboboxFooter]"], true, never>;
|
|
534
538
|
}
|
|
535
539
|
|
|
536
540
|
interface YuwPageSort {
|
|
@@ -2680,9 +2684,9 @@ type YuwDatatableRowClass<TData extends RowData> = string | ((row: TData, index:
|
|
|
2680
2684
|
* keys it by row index, so a kept selection would point at whatever rows the new data put there.
|
|
2681
2685
|
* - `pagination`: Two-way pagination state (`PaginationState`). Default is `{ pageIndex: 0, pageSize: YUW_DEFAULT_PAGE_SIZE }`.
|
|
2682
2686
|
* - `totalItems`: Total row count across all pages, for server-side pagination where `data` holds
|
|
2683
|
-
* only the current page. When set, pagination
|
|
2684
|
-
*
|
|
2685
|
-
* for the default client-side pagination, where `data` holds the whole dataset.
|
|
2687
|
+
* only the current page. When set, pagination and sorting become manual — TanStack stops slicing and
|
|
2688
|
+
* re-sorting `data`, which arrives already sorted, and `getPageCount()` is derived from this count instead of
|
|
2689
|
+
* `data.length`. Leave unset for the default client-side pagination, where `data` holds the whole dataset.
|
|
2686
2690
|
*
|
|
2687
2691
|
* Outputs:
|
|
2688
2692
|
* - `selectedRowsChange`: Emits the selected row objects (`TData[]`) on selection changes. The
|
|
@@ -4132,7 +4136,7 @@ declare class YuwSidebarSubmenuService {
|
|
|
4132
4136
|
* - `sidebarContainerClass`: Extra classes merged onto the desktop fixed container (the helm merges them last, so they win).
|
|
4133
4137
|
* - `content`: Renders the scrollable nav from a `YuwSidebarContentDto` instead of hand-written
|
|
4134
4138
|
* markup. Groups → items → optional one level of children. An item with a `route` becomes a
|
|
4135
|
-
* `[routerLink]` anchor whose active state
|
|
4139
|
+
* `[routerLink]` anchor whose active state and `aria-current` resolve automatically
|
|
4136
4140
|
* from `routerLinkActive`; one with an `href` becomes a plain anchor; one with neither becomes a
|
|
4137
4141
|
* button that reports through `itemClicked`. An item with `children` gets a submenu that follows
|
|
4138
4142
|
* the sidebar's own state: an accordion while the panel is open, and a sheet sliding out beside the
|
|
@@ -5360,7 +5364,7 @@ declare class YuwsListTableComponent<Row extends RowData> implements YuwTableSha
|
|
|
5360
5364
|
*
|
|
5361
5365
|
* Inputs:
|
|
5362
5366
|
* - `disabled`: Disables the page size selector. Default is `false`.
|
|
5363
|
-
* - `labels`: Required `YuwsPageSizeLabels` with the selector label, the text for an empty list and the function that builds the range message. Its optional `all` adds a
|
|
5367
|
+
* - `labels`: Required `YuwsPageSizeLabels` with the selector label, the text for an empty list and the function that builds the range message. Its optional `all` adds a first option, above the largest size, asking for every row (`limit` `-1`); leave it out when the source cannot serve them.
|
|
5364
5368
|
* - `list`: Required `YuwPagedList` whose page size is chosen and whose range is shown in the message.
|
|
5365
5369
|
*/
|
|
5366
5370
|
declare class YuwsPageSizeComponent {
|
|
@@ -5580,11 +5584,12 @@ interface YuwsListToolbarColumnsLabels {
|
|
|
5580
5584
|
readonly empty: string;
|
|
5581
5585
|
}
|
|
5582
5586
|
/**
|
|
5583
|
-
* `trigger` names the share button, one entry per `YuwTableShareFormat` names its menu
|
|
5584
|
-
* after a copy and `failed` the one when the browser refuses, e.g. clipboard access.
|
|
5587
|
+
* `trigger` names the share button, `title` heads its menu when set, one entry per `YuwTableShareFormat` names its menu
|
|
5588
|
+
* item, `copied` is the toast after a copy and `failed` the one when the browser refuses, e.g. clipboard access.
|
|
5585
5589
|
*/
|
|
5586
5590
|
interface YuwsListToolbarShareLabels extends Readonly<Record<YuwTableShareFormat, string>> {
|
|
5587
5591
|
readonly trigger: string;
|
|
5592
|
+
readonly title?: string;
|
|
5588
5593
|
readonly copied: string;
|
|
5589
5594
|
readonly failed: string;
|
|
5590
5595
|
}
|
|
@@ -5710,6 +5715,8 @@ declare class YuwsFilterContentDirective {
|
|
|
5710
5715
|
* - `searchPlaceholder`: Placeholder of the search field; the search renders only when set.
|
|
5711
5716
|
* - `shareSource`: `YuwTableShareSource`, typically the page's `yuws-list-table`; with `labels.share` it adds a menu that copies, prints or downloads the table as PDF, Excel or CSV.
|
|
5712
5717
|
* - `shareTitle`: Title of what the share menu prints and downloads, and name of its files.
|
|
5718
|
+
* - `serverSidePrint`: The share menu's print emits `printRequested` instead of printing the table in the browser, for a
|
|
5719
|
+
* consumer whose server builds the printout. Default is `false`.
|
|
5713
5720
|
* - `selection`: Two-way (`[(selection)]`) applied filter selection, values keyed by group id. Default is `{}`.
|
|
5714
5721
|
* - `showExport`: Renders the export button. Default is `false`.
|
|
5715
5722
|
* - `viewMode`: Two-way (`[(viewMode)]`) `YuwsViewMode` (`'list'` or `'block'`); the list/block switch renders only when set.
|
|
@@ -5717,6 +5724,7 @@ declare class YuwsFilterContentDirective {
|
|
|
5717
5724
|
*
|
|
5718
5725
|
* Outputs:
|
|
5719
5726
|
* - `exported`: Emits the `MouseEvent` of the export button click.
|
|
5727
|
+
* - `printRequested`: Emits when the share menu's print is picked with `serverSidePrint` set.
|
|
5720
5728
|
* - `searched`: Emits the current search text on every keystroke and when it is cleared.
|
|
5721
5729
|
*/
|
|
5722
5730
|
declare class YuwsListToolbarComponent {
|
|
@@ -5731,19 +5739,21 @@ declare class YuwsListToolbarComponent {
|
|
|
5731
5739
|
readonly search: _angular_core.ModelSignal<string>;
|
|
5732
5740
|
readonly searchPlaceholder: _angular_core.InputSignal<string | undefined>;
|
|
5733
5741
|
readonly selection: _angular_core.ModelSignal<Readonly<Record<string, yukit_web.YuwsFilterValue>>>;
|
|
5742
|
+
readonly serverSidePrint: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5734
5743
|
readonly shareSource: _angular_core.InputSignal<YuwTableShareSource | undefined>;
|
|
5735
5744
|
readonly shareTitle: _angular_core.InputSignal<string | undefined>;
|
|
5736
5745
|
readonly showExport: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5737
5746
|
readonly viewMode: _angular_core.ModelSignal<YuwsViewMode | undefined>;
|
|
5738
5747
|
readonly viewModeIcons: _angular_core.InputSignal<Partial<Readonly<Record<YuwsViewMode, string>>> | undefined>;
|
|
5739
5748
|
readonly exported: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
5749
|
+
readonly printRequested: _angular_core.OutputEmitterRef<void>;
|
|
5740
5750
|
readonly searched: _angular_core.OutputEmitterRef<string>;
|
|
5741
5751
|
readonly setDeleted: _angular_core.OutputEmitterRef<string>;
|
|
5742
5752
|
readonly setRenamed: _angular_core.OutputEmitterRef<YuwsFilterSetRenameDto>;
|
|
5743
5753
|
readonly setSaved: _angular_core.OutputEmitterRef<YuwsFilterSetSaveDto>;
|
|
5744
5754
|
protected readonly isMobile: _angular_core.Signal<boolean>;
|
|
5745
5755
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsListToolbarComponent, never>;
|
|
5746
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsListToolbarComponent, "yuws-list-toolbar", never, { "filterGroups": { "alias": "filterGroups"; "required": false; "isSignal": true; }; "filtersDisabled": { "alias": "filtersDisabled"; "required": false; "isSignal": true; }; "filterSets": { "alias": "filterSets"; "required": false; "isSignal": true; }; "hiddenColumns": { "alias": "hiddenColumns"; "required": false; "isSignal": true; }; "hideableColumns": { "alias": "hideableColumns"; "required": false; "isSignal": true; }; "idleColor": { "alias": "idleColor"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": true; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "shareSource": { "alias": "shareSource"; "required": false; "isSignal": true; }; "shareTitle": { "alias": "shareTitle"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; "viewModeIcons": { "alias": "viewModeIcons"; "required": false; "isSignal": true; }; }, { "hiddenColumns": "hiddenColumnsChange"; "search": "searchChange"; "selection": "selectionChange"; "viewMode": "viewModeChange"; "exported": "exported"; "searched": "searched"; "setDeleted": "setDeleted"; "setRenamed": "setRenamed"; "setSaved": "setSaved"; }, ["filterContents"], ["*"], true, never>;
|
|
5756
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsListToolbarComponent, "yuws-list-toolbar", never, { "filterGroups": { "alias": "filterGroups"; "required": false; "isSignal": true; }; "filtersDisabled": { "alias": "filtersDisabled"; "required": false; "isSignal": true; }; "filterSets": { "alias": "filterSets"; "required": false; "isSignal": true; }; "hiddenColumns": { "alias": "hiddenColumns"; "required": false; "isSignal": true; }; "hideableColumns": { "alias": "hideableColumns"; "required": false; "isSignal": true; }; "idleColor": { "alias": "idleColor"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": true; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "serverSidePrint": { "alias": "serverSidePrint"; "required": false; "isSignal": true; }; "shareSource": { "alias": "shareSource"; "required": false; "isSignal": true; }; "shareTitle": { "alias": "shareTitle"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; "viewModeIcons": { "alias": "viewModeIcons"; "required": false; "isSignal": true; }; }, { "hiddenColumns": "hiddenColumnsChange"; "search": "searchChange"; "selection": "selectionChange"; "viewMode": "viewModeChange"; "exported": "exported"; "printRequested": "printRequested"; "searched": "searched"; "setDeleted": "setDeleted"; "setRenamed": "setRenamed"; "setSaved": "setSaved"; }, ["filterContents"], ["*"], true, never>;
|
|
5747
5757
|
}
|
|
5748
5758
|
|
|
5749
5759
|
/**
|