yukit-web 0.10.1 → 0.10.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
@@ -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.10.1",
4
+ "version": "0.10.4",
5
5
  "author": {
6
6
  "name": "Yurest Solutions",
7
7
  "email": "develop@yurest.com"
@@ -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 becomes manual — TanStack stops slicing `data`
2684
- * itself and `getPageCount()` is derived from this count instead of `data.length`. Leave unset
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
@@ -2761,6 +2765,7 @@ declare class YuwDatatableComponent<TData extends RowData> implements OnInit, Yu
2761
2765
  protected readonly _skeletonRows: _angular_core.Signal<number[]>;
2762
2766
  protected readonly _tableClass: _angular_core.Signal<string>;
2763
2767
  protected readonly currentPage: _angular_core.WritableSignal<number>;
2768
+ protected readonly totalPages: _angular_core.Signal<number>;
2764
2769
  /**
2765
2770
  * Applies the real options once, after inputs are set.
2766
2771
  *
@@ -4131,7 +4136,7 @@ declare class YuwSidebarSubmenuService {
4131
4136
  * - `sidebarContainerClass`: Extra classes merged onto the desktop fixed container (the helm merges them last, so they win).
4132
4137
  * - `content`: Renders the scrollable nav from a `YuwSidebarContentDto` instead of hand-written
4133
4138
  * markup. Groups → items → optional one level of children. An item with a `route` becomes a
4134
- * `[routerLink]` anchor whose active state, `aria-current` and pointer-lock resolve automatically
4139
+ * `[routerLink]` anchor whose active state and `aria-current` resolve automatically
4135
4140
  * from `routerLinkActive`; one with an `href` becomes a plain anchor; one with neither becomes a
4136
4141
  * button that reports through `itemClicked`. An item with `children` gets a submenu that follows
4137
4142
  * the sidebar's own state: an accordion while the panel is open, and a sheet sliding out beside the
@@ -5295,9 +5300,10 @@ declare class YuwsImageUploadComponent {
5295
5300
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsImageUploadComponent, "yuws-image-upload", never, { "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; "imageUrl": { "alias": "imageUrl"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; "uploadLabel": { "alias": "uploadLabel"; "required": true; "isSignal": true; }; }, { "imageUrl": "imageUrlChange"; }, never, never, true, never>;
5296
5301
  }
5297
5302
 
5298
- /** Text of the page size selector and its range message. */
5303
+ /** Text of the page size selector and its range message; without `all` the selector offers no option for every row. */
5299
5304
  interface YuwsPageSizeLabels {
5300
5305
  readonly label: string;
5306
+ readonly all?: string;
5301
5307
  readonly empty: string;
5302
5308
  readonly range: (range: YuwPageRange) => string;
5303
5309
  }
@@ -5358,7 +5364,7 @@ declare class YuwsListTableComponent<Row extends RowData> implements YuwTableSha
5358
5364
  *
5359
5365
  * Inputs:
5360
5366
  * - `disabled`: Disables the page size selector. Default is `false`.
5361
- * - `labels`: Required `YuwsPageSizeLabels` with the selector label, the text for an empty list and the function that builds the range message.
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.
5362
5368
  * - `list`: Required `YuwPagedList` whose page size is chosen and whose range is shown in the message.
5363
5369
  */
5364
5370
  declare class YuwsPageSizeComponent {
@@ -5366,6 +5372,7 @@ declare class YuwsPageSizeComponent {
5366
5372
  readonly labels: _angular_core.InputSignal<YuwsPageSizeLabels>;
5367
5373
  readonly list: _angular_core.InputSignal<YuwPagedList<unknown>>;
5368
5374
  protected readonly message: _angular_core.Signal<string>;
5375
+ protected readonly options: _angular_core.Signal<yukit_web.YuwComboboxOptionDto<unknown>[]>;
5369
5376
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwsPageSizeComponent, never>;
5370
5377
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwsPageSizeComponent, "yuws-page-size", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": true; "isSignal": true; }; "list": { "alias": "list"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
5371
5378
  }
@@ -5551,7 +5558,8 @@ interface YuwsDatePresetLabels {
5551
5558
  * every filter, `empty` the text of a filter search with no match, `search` the placeholder of the add-filter
5552
5559
  * list's search, which renders only when set, and `datePresets` the placeholder of the presets combobox of a date
5553
5560
  * filter, required when a group has `presets` or `datePresetLabels` is set. `datePresetLabels` names the standard
5554
- * presets every date filter without its own `presets` offers; without it those filters offer none.
5561
+ * presets every date filter without its own `presets` offers; without it those filters offer none. `formatDate` writes
5562
+ * each date of a date filter's trigger in the consumer's locale; without it the datepicker's default applies.
5555
5563
  */
5556
5564
  interface YuwsListToolbarFilterLabels {
5557
5565
  readonly title: string;
@@ -5563,6 +5571,7 @@ interface YuwsListToolbarFilterLabels {
5563
5571
  readonly datePresets?: string;
5564
5572
  readonly datePresetLabels?: YuwsDatePresetLabels;
5565
5573
  readonly sets?: YuwsFilterSetLabels;
5574
+ readonly formatDate?: (date: Date) => string;
5566
5575
  }
5567
5576
  interface YuwsListToolbarSearchLabels {
5568
5577
  readonly expand: string;
@@ -5575,11 +5584,12 @@ interface YuwsListToolbarColumnsLabels {
5575
5584
  readonly empty: string;
5576
5585
  }
5577
5586
  /**
5578
- * `trigger` names the share button, one entry per `YuwTableShareFormat` names its menu item, `copied` is the toast
5579
- * 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.
5580
5589
  */
5581
5590
  interface YuwsListToolbarShareLabels extends Readonly<Record<YuwTableShareFormat, string>> {
5582
5591
  readonly trigger: string;
5592
+ readonly title?: string;
5583
5593
  readonly copied: string;
5584
5594
  readonly failed: string;
5585
5595
  }