@forgeroute/ui 0.4.53 → 0.4.55
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/forgeroute-ui.mjs +261 -15
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui.d.ts +40 -0
package/package.json
CHANGED
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -1424,6 +1424,8 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
|
|
|
1424
1424
|
* tabs are all off, the header row is not rendered at all.
|
|
1425
1425
|
*/
|
|
1426
1426
|
readonly showQuickTabs: import("@angular/core").InputSignal<boolean>;
|
|
1427
|
+
/** `false` hides the pager under the rows: the table shows only the first `pageSize` rows (a dashboard card that links to the full list instead). Default `true`. */
|
|
1428
|
+
readonly showPagination: import("@angular/core").InputSignal<boolean>;
|
|
1427
1429
|
/**
|
|
1428
1430
|
* Keep the Actions column (the row "⋮" menu) pinned to the right edge while the table scrolls sideways, so a wide table never hides it
|
|
1429
1431
|
* off-screen. Default false: every existing table is unchanged. Only matters when the table is wider than its container (columns scroll);
|
|
@@ -1998,6 +2000,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
|
|
|
1998
2000
|
"required": false;
|
|
1999
2001
|
"isSignal": true;
|
|
2000
2002
|
};
|
|
2003
|
+
"showPagination": {
|
|
2004
|
+
"alias": "showPagination";
|
|
2005
|
+
"required": false;
|
|
2006
|
+
"isSignal": true;
|
|
2007
|
+
};
|
|
2001
2008
|
"stickyActions": {
|
|
2002
2009
|
"alias": "stickyActions";
|
|
2003
2010
|
"required": false;
|
|
@@ -6741,6 +6748,8 @@ export declare class CardListItemComponent {
|
|
|
6741
6748
|
readonly indicator: import("@angular/core").InputSignal<CardListIndicator>;
|
|
6742
6749
|
/** Round icon on the left (wins over `indicator`). */
|
|
6743
6750
|
readonly icon: import("@angular/core").InputSignal<CardListIcon | undefined>;
|
|
6751
|
+
/** A type badge or a status badge (with its variant) shows: they sit in the card's upper right corner. */
|
|
6752
|
+
protected readonly hasBadges: import("@angular/core").Signal<boolean>;
|
|
6744
6753
|
/** Built-in "Edit" chip button -> `editClick`. */
|
|
6745
6754
|
readonly editButton: import("@angular/core").InputSignal<boolean>;
|
|
6746
6755
|
/** Built-in "View" chip button -> `viewClick`. */
|
|
@@ -10971,13 +10980,32 @@ export interface CalendarSlotClick {
|
|
|
10971
10980
|
* In the week view each all-day cell and each day column has a visually hidden "+ Add" button that appears when focused; Enter/Space on it
|
|
10972
10981
|
* creates (all-day, or the first visible hour). The initial `view` must be one of `views`.
|
|
10973
10982
|
*
|
|
10983
|
+
* Loading: bind `[loading]`. On the FIRST load (nothing shown yet) the whole page is drawn as one skeleton outline (`data-testid="calendar-skeleton"`,
|
|
10984
|
+
* one `role="status"` region "Loading calendar", only decorative `ui-skeleton`s): period label, Previous / Today / Next, view tabs, `loadingActions`
|
|
10985
|
+
* (default 2) action placeholders, the filter label + one chip per filter plus All, and the weekday row + day grid of the current view. The real
|
|
10986
|
+
* toolbar / filters / grid are not in the DOM until loading ends, but `rangeChange` still fires on the first render. After the first load,
|
|
10987
|
+
* `[loading]` replaces only the grid with a skeleton so the toolbar and period navigation stay usable. No markup or config is needed in the host;
|
|
10988
|
+
* start with `loading` true to avoid a one-frame flash of the real toolbar before the outline.
|
|
10989
|
+
*
|
|
10974
10990
|
* Content slots: `[calendar-actions]` (right of the view switcher), `[calendar-summary]` (centre of the toolbar on
|
|
10975
10991
|
* desktop) and `[calendar-summary-mobile]` (shown instead of it on phones).
|
|
10976
10992
|
*/
|
|
10977
10993
|
export declare class CalendarComponent {
|
|
10978
10994
|
/** Everything to show in the visible range. Ids must be unique across the whole list. */
|
|
10979
10995
|
readonly items: import("@angular/core").InputSignal<CalendarItem[]>;
|
|
10996
|
+
/**
|
|
10997
|
+
* The host is loading the visible range. On the FIRST load (nothing shown yet) the component draws an outline of the whole page (period label,
|
|
10998
|
+
* nav buttons, view tabs, action placeholders, filter chips, weekday row and day grid) built only from decorative `ui-skeleton`s in ONE status
|
|
10999
|
+
* region (`data-testid="calendar-skeleton"`, "Loading calendar"); the real toolbar / filters / grid are not in the DOM until loading ends.
|
|
11000
|
+
* `rangeChange` still fires meanwhile. Later reloads (after a first load finished, or while items are shown) replace only the grid with a
|
|
11001
|
+
* skeleton so the toolbar and period navigation stay usable. Hosts need no markup or config: they just bind `[loading]`.
|
|
11002
|
+
*/
|
|
10980
11003
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
11004
|
+
/**
|
|
11005
|
+
* Optional. How many skeleton button placeholders the first-load outline draws in the actions position (where `[calendar-actions]` content
|
|
11006
|
+
* goes). The calendar cannot count projected content, so this is a number: default 2; 0 draws none. Not used after the first load.
|
|
11007
|
+
*/
|
|
11008
|
+
readonly loadingActions: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
10981
11009
|
/** Active view; two-way bindable. A value that is not in `views` is replaced by the first allowed view. */
|
|
10982
11010
|
readonly view: import("@angular/core").ModelSignal<CalendarViewMode>;
|
|
10983
11011
|
/** Views the switcher offers. One entry hides the switcher. */
|
|
@@ -11024,6 +11052,13 @@ export declare class CalendarComponent {
|
|
|
11024
11052
|
protected readonly weekDayLabels: string[];
|
|
11025
11053
|
protected readonly weekDayNames: string[];
|
|
11026
11054
|
protected readonly skeletonCells: number[];
|
|
11055
|
+
protected readonly skeletonDays: number[];
|
|
11056
|
+
protected readonly skeletonRows: number[];
|
|
11057
|
+
/** `idle` until the first loading cycle starts, `first` while it runs, `loaded` once it has ended: from then on `loading` only skeletons the grid. */
|
|
11058
|
+
private readonly loadPhase;
|
|
11059
|
+
/** True while the first load runs and nothing is shown yet: the whole page is drawn as a skeleton outline. */
|
|
11060
|
+
protected readonly showOutline: import("@angular/core").Signal<boolean>;
|
|
11061
|
+
protected readonly loadingActionSlots: import("@angular/core").Signal<number[]>;
|
|
11027
11062
|
protected readonly formatHour: typeof formatHour;
|
|
11028
11063
|
/** The browser clock's today as `YYYY-MM-DD`; refreshed at local midnight, when the tab becomes visible again and when the user presses Today. */
|
|
11029
11064
|
private readonly clockToday;
|
|
@@ -11124,6 +11159,11 @@ export declare class CalendarComponent {
|
|
|
11124
11159
|
"required": false;
|
|
11125
11160
|
"isSignal": true;
|
|
11126
11161
|
};
|
|
11162
|
+
"loadingActions": {
|
|
11163
|
+
"alias": "loadingActions";
|
|
11164
|
+
"required": false;
|
|
11165
|
+
"isSignal": true;
|
|
11166
|
+
};
|
|
11127
11167
|
"view": {
|
|
11128
11168
|
"alias": "view";
|
|
11129
11169
|
"required": false;
|