yukit-web 0.8.2 → 0.8.4
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/package.json
CHANGED
package/src/lib/theme/theme.css
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@import './components/button.css';
|
|
13
13
|
@import './components/button-group.css';
|
|
14
14
|
@import './components/reveal-on-hover.css';
|
|
15
|
+
@import './components/overflow-list-cell.css';
|
|
15
16
|
@import './spartan-overwrites/accordion.css';
|
|
16
17
|
@import './spartan-overwrites/sheet.css';
|
|
17
18
|
|
package/types/yukit-web.d.ts
CHANGED
|
@@ -2487,7 +2487,7 @@ type YuwDatatableRowClass<TData extends RowData> = string | ((row: TData, index:
|
|
|
2487
2487
|
* - `emptyText`: Message shown when data is empty or filtered to nothing. User-facing text the
|
|
2488
2488
|
* consuming app is responsible for translating.
|
|
2489
2489
|
* - `loading`: Renders skeleton rows instead of data. The pagination footer stays visible (with
|
|
2490
|
-
* its buttons disabled) so the layout doesn't jump.
|
|
2490
|
+
* its buttons disabled) so the layout doesn't jump, and the header is inert: neither sorting nor select-all reacts.
|
|
2491
2491
|
* - `loadingRows`: Number of skeleton rows to show while `loading`. Default is `5`.
|
|
2492
2492
|
* - `previousPageLabel` (required): Accessible name for the footer's previous-page button.
|
|
2493
2493
|
* User-facing text the consuming app is responsible for translating.
|
|
@@ -2530,7 +2530,7 @@ type YuwDatatableRowClass<TData extends RowData> = string | ((row: TData, index:
|
|
|
2530
2530
|
* - `columnVisibility`: Two-way column visibility state (`ColumnVisibilityState`).
|
|
2531
2531
|
* - `rowSelection`: Two-way row selection state (`RowSelectionState`). It is cleared whenever `data` changes: TanStack
|
|
2532
2532
|
* keys it by row index, so a kept selection would point at whatever rows the new data put there.
|
|
2533
|
-
* - `pagination`: Two-way pagination state (`PaginationState`). Default is `{ pageIndex: 0, pageSize:
|
|
2533
|
+
* - `pagination`: Two-way pagination state (`PaginationState`). Default is `{ pageIndex: 0, pageSize: YUW_DEFAULT_PAGE_SIZE }`.
|
|
2534
2534
|
* - `totalItems`: Total row count across all pages, for server-side pagination where `data` holds
|
|
2535
2535
|
* only the current page. When set, pagination becomes manual — TanStack stops slicing `data`
|
|
2536
2536
|
* itself and `getPageCount()` is derived from this count instead of `data.length`. Leave unset
|
|
@@ -4638,23 +4638,15 @@ declare class YuwsFlagCellComponent {
|
|
|
4638
4638
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsFlagCellComponent, "yuws-flag-cell", never, { "enabled": { "alias": "enabled"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "offIcon": { "alias": "offIcon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4639
4639
|
}
|
|
4640
4640
|
|
|
4641
|
-
/**
|
|
4642
|
-
* Icon button at the end of a row, hidden until the row is hovered or keyboard-focused like the pencil of
|
|
4643
|
-
* `buildYuwActionsColumn`; touch devices keep it visible. `icon` is the SVG itself (e.g. `lucideEye`), so the cell does
|
|
4644
|
-
* not have to register every consumer's icon. The host stops the click so a clickable row does not fire too.
|
|
4645
|
-
*
|
|
4646
|
-
* Inputs:
|
|
4647
|
-
* - `action` (required): Callback run on click. An input because `flexRenderComponent` does not subscribe outputs.
|
|
4648
|
-
* - `icon` (required): SVG markup of the icon.
|
|
4649
|
-
* - `label` (required): Accessible name of the button. The consuming app translates it.
|
|
4650
|
-
*/
|
|
4651
4641
|
declare class YuwsIconActionCellComponent {
|
|
4652
4642
|
readonly action: _angular_core.InputSignal<() => void>;
|
|
4643
|
+
readonly destructive: _angular_core.InputSignal<boolean>;
|
|
4653
4644
|
readonly icon: _angular_core.InputSignal<string>;
|
|
4654
4645
|
readonly label: _angular_core.InputSignal<string>;
|
|
4646
|
+
protected readonly buttonClass: _angular_core.Signal<"" | "text-destructive hover:bg-destructive/10 hover:text-destructive">;
|
|
4655
4647
|
protected run(): void;
|
|
4656
4648
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsIconActionCellComponent, never>;
|
|
4657
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsIconActionCellComponent, "yuws-icon-action-cell", never, { "action": { "alias": "action"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4649
|
+
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>;
|
|
4658
4650
|
}
|
|
4659
4651
|
|
|
4660
4652
|
/** Image size of the cell: `lg` is the 60x60 catalog thumbnail, `md` the 45x45 one. */
|
|
@@ -4725,7 +4717,9 @@ declare class YuwsMenuActionsCellComponent {
|
|
|
4725
4717
|
|
|
4726
4718
|
/**
|
|
4727
4719
|
* Table cell with the first of a row's `items` and a `+N` badge counting the rest. The whole cell is the trigger of a
|
|
4728
|
-
* popover centred under it that lists every item; with a single item it is plain text with no popover.
|
|
4720
|
+
* popover centred under it that lists every item; with a single item it is plain text with no popover. The trigger's
|
|
4721
|
+
* `::after` stretches over the whole `<td>` (made `relative` by `theme/components/overflow-list-cell.css`), so a click
|
|
4722
|
+
* anywhere in the cell opens it and never reaches a clickable row.
|
|
4729
4723
|
*
|
|
4730
4724
|
* Only a click opens it. A mouse closes it on leaving the cell and the panel, after a short delay that lets the pointer
|
|
4731
4725
|
* cross between them; an outside click or Escape closes it too, which is the only way on touch. The host stops the
|
|
@@ -4753,7 +4747,8 @@ declare class YuwsOverflowListCellComponent {
|
|
|
4753
4747
|
/**
|
|
4754
4748
|
* Selection checkbox of a row, hidden until the row is hovered or keyboard-focused like the button of
|
|
4755
4749
|
* `buildYuwsMenuActionsColumn`; touch devices keep it visible. Once any row is selected, `revealed` keeps every
|
|
4756
|
-
* checkbox of the table visible. Built by `buildYuwsSelectColumn
|
|
4750
|
+
* checkbox of the table visible. Built by `buildYuwsSelectColumn`, whose `relative` cell the host fills, so a click
|
|
4751
|
+
* anywhere in the cell toggles the row instead of opening it.
|
|
4757
4752
|
*
|
|
4758
4753
|
* Inputs:
|
|
4759
4754
|
* - `checked` (required): Whether the row is selected.
|
|
@@ -4767,6 +4762,7 @@ declare class YuwsSelectCellComponent {
|
|
|
4767
4762
|
readonly label: _angular_core.InputSignal<string>;
|
|
4768
4763
|
readonly onToggle: _angular_core.InputSignal<() => void>;
|
|
4769
4764
|
readonly revealed: _angular_core.InputSignal<boolean>;
|
|
4765
|
+
protected onCellClick(event: Event): void;
|
|
4770
4766
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsSelectCellComponent, never>;
|
|
4771
4767
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsSelectCellComponent, "yuws-select-cell", never, { "checked": { "alias": "checked"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "onToggle": { "alias": "onToggle"; "required": true; "isSignal": true; }; "revealed": { "alias": "revealed"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4772
4768
|
}
|
|
@@ -4820,7 +4816,10 @@ interface YuwsStateLabels {
|
|
|
4820
4816
|
on: string;
|
|
4821
4817
|
off: string;
|
|
4822
4818
|
}
|
|
4823
|
-
/**
|
|
4819
|
+
/**
|
|
4820
|
+
* Icon button column. `visible` decides the rows that show the button; without it every row does. `destructive` paints
|
|
4821
|
+
* it in the destructive color.
|
|
4822
|
+
*/
|
|
4824
4823
|
interface YuwsIconActionColumn<Row> {
|
|
4825
4824
|
id: string;
|
|
4826
4825
|
icon: string;
|
|
@@ -4828,6 +4827,7 @@ interface YuwsIconActionColumn<Row> {
|
|
|
4828
4827
|
header?: string;
|
|
4829
4828
|
onAction: (row: Row) => void;
|
|
4830
4829
|
visible?: (row: Row) => boolean;
|
|
4830
|
+
destructive?: boolean;
|
|
4831
4831
|
}
|
|
4832
4832
|
/** Menu column. `label` names each row's button; a row whose `actions` are empty shows no button. */
|
|
4833
4833
|
interface YuwsMenuActionsColumn<Row> {
|