yukit-web 0.8.2 → 0.8.3

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yukit-web",
3
3
  "description": "Angular UI component library for Yurest web applications.",
4
- "version": "0.8.2",
4
+ "version": "0.8.3",
5
5
  "author": {
6
6
  "name": "Yurest Solutions",
7
7
  "email": "develop@yurest.com"
@@ -0,0 +1,3 @@
1
+ td:has(> yuws-overflow-list-cell) {
2
+ position: relative;
3
+ }
@@ -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
 
@@ -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: 10 }`.
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
@@ -4820,7 +4814,10 @@ interface YuwsStateLabels {
4820
4814
  on: string;
4821
4815
  off: string;
4822
4816
  }
4823
- /** Icon button column. `visible` decides the rows that show the button; without it every row does. */
4817
+ /**
4818
+ * Icon button column. `visible` decides the rows that show the button; without it every row does. `destructive` paints
4819
+ * it in the destructive color.
4820
+ */
4824
4821
  interface YuwsIconActionColumn<Row> {
4825
4822
  id: string;
4826
4823
  icon: string;
@@ -4828,6 +4825,7 @@ interface YuwsIconActionColumn<Row> {
4828
4825
  header?: string;
4829
4826
  onAction: (row: Row) => void;
4830
4827
  visible?: (row: Row) => boolean;
4828
+ destructive?: boolean;
4831
4829
  }
4832
4830
  /** Menu column. `label` names each row's button; a row whose `actions` are empty shows no button. */
4833
4831
  interface YuwsMenuActionsColumn<Row> {