@akcelik/strct 0.5.1 → 0.5.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akcelik/strct",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "UIStruct — a standalone Angular component library with a tokenised, multi-palette theme system, built for datacenter / infrastructure management UIs.",
|
|
5
5
|
"author": "Serkan Akcelik <serkan.akcelik@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
package/types/akcelik-strct.d.ts
CHANGED
|
@@ -139,6 +139,10 @@ declare class StrctOverlay implements OnDestroy {
|
|
|
139
139
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctOverlay, "[strctOverlay]", never, { "anchor": { "alias": "strctOverlay"; "required": true; "isSignal": true; }; "placement": { "alias": "strctOverlayPlacement"; "required": false; "isSignal": true; }; "matchWidth": { "alias": "strctOverlayMatchWidth"; "required": false; "isSignal": true; }; "gap": { "alias": "strctOverlayGap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
/** Shared layout state between shell parts. */
|
|
143
|
+
declare class StrctShellService {
|
|
144
|
+
readonly mobileNavOpen: _angular_core.WritableSignal<boolean>;
|
|
145
|
+
}
|
|
142
146
|
/**
|
|
143
147
|
* Application frame: a full-viewport grid of header / body / footer rows.
|
|
144
148
|
* <strct-shell>
|
|
@@ -151,10 +155,6 @@ declare class StrctShell {
|
|
|
151
155
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctShell, never>;
|
|
152
156
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctShell, "strct-shell", never, {}, {}, never, ["strct-header", "*", "strct-footer"], true, never>;
|
|
153
157
|
}
|
|
154
|
-
/** Shared layout state between shell parts. */
|
|
155
|
-
declare class StrctShellService {
|
|
156
|
-
readonly mobileNavOpen: _angular_core.WritableSignal<boolean>;
|
|
157
|
-
}
|
|
158
158
|
/** Top application bar. Holds brand on the left and actions on the right. */
|
|
159
159
|
declare class StrctHeader {
|
|
160
160
|
protected readonly shell: StrctShellService;
|
|
@@ -1431,6 +1431,9 @@ interface StrctDatagridColumn {
|
|
|
1431
1431
|
sortable?: boolean;
|
|
1432
1432
|
align?: 'start' | 'center' | 'end';
|
|
1433
1433
|
width?: string;
|
|
1434
|
+
/** Allow the user to resize this column by dragging its right edge.
|
|
1435
|
+
* Defaults to the global {@link StrctDatagrid#resizable} setting. */
|
|
1436
|
+
resizable?: boolean;
|
|
1434
1437
|
}
|
|
1435
1438
|
/**
|
|
1436
1439
|
* Marks the expandable-row detail template. The row is the template's implicit
|
|
@@ -1474,6 +1477,8 @@ declare class StrctDatagrid {
|
|
|
1474
1477
|
readonly emptyText: _angular_core.InputSignal<string>;
|
|
1475
1478
|
/** Show skeleton rows while data is loading. */
|
|
1476
1479
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1480
|
+
/** Enable column resizing by dragging column headers. */
|
|
1481
|
+
readonly resizable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1477
1482
|
/**
|
|
1478
1483
|
* Stable row identity (property key or function). Set this for live-refreshing
|
|
1479
1484
|
* data so selection, expansion and the active detail row survive re-fetches
|
|
@@ -1490,7 +1495,16 @@ declare class StrctDatagrid {
|
|
|
1490
1495
|
private readonly sort;
|
|
1491
1496
|
/** Selection / expansion are tracked by row id (see {@link rowId}). */
|
|
1492
1497
|
private readonly selected;
|
|
1498
|
+
protected readonly selectedCount: _angular_core.Signal<number>;
|
|
1493
1499
|
private readonly expandedRows;
|
|
1500
|
+
private readonly columnWidths;
|
|
1501
|
+
private resizeState;
|
|
1502
|
+
private readonly onMove;
|
|
1503
|
+
private readonly onUp;
|
|
1504
|
+
colWidth(key: string): string | null;
|
|
1505
|
+
onResizeStart(e: MouseEvent, key: string): void;
|
|
1506
|
+
private onResizeMove;
|
|
1507
|
+
private onResizeEnd;
|
|
1494
1508
|
private readonly activeId;
|
|
1495
1509
|
protected readonly activeRow: _angular_core.Signal<StrctRow | null>;
|
|
1496
1510
|
protected readonly canExpand: _angular_core.Signal<boolean>;
|
|
@@ -1500,7 +1514,6 @@ declare class StrctDatagrid {
|
|
|
1500
1514
|
protected readonly visibleColumns: _angular_core.Signal<StrctDatagridColumn[]>;
|
|
1501
1515
|
protected readonly sorted: _angular_core.Signal<StrctRow[]>;
|
|
1502
1516
|
protected readonly paged: _angular_core.Signal<StrctRow[]>;
|
|
1503
|
-
protected readonly selectedCount: _angular_core.Signal<number>;
|
|
1504
1517
|
protected readonly allPageSelected: _angular_core.Signal<boolean>;
|
|
1505
1518
|
protected readonly somePageSelected: _angular_core.Signal<boolean>;
|
|
1506
1519
|
/** Resolve a row's stable identity (defaults to the row object itself). */
|
|
@@ -1528,7 +1541,7 @@ declare class StrctDatagrid {
|
|
|
1528
1541
|
private commitSelection;
|
|
1529
1542
|
private compare;
|
|
1530
1543
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctDatagrid, never>;
|
|
1531
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctDatagrid, "strct-datagrid", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "detailPane": { "alias": "detailPane"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, ["detailDef", "actionBarDef", "cellDefs"], ["[strctDatagridActionBar]"
|
|
1544
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctDatagrid, "strct-datagrid", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "detailPane": { "alias": "detailPane"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, ["detailDef", "actionBarDef", "cellDefs"], ["[strctDatagridActionBar]"], true, never>;
|
|
1532
1545
|
}
|
|
1533
1546
|
|
|
1534
1547
|
/** Timeline node state colors. */
|