@elasticias/ui 1.0.0 → 1.0.2
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/types/elasticias-ui.d.ts
CHANGED
|
@@ -3821,6 +3821,8 @@ interface EfRowAction {
|
|
|
3821
3821
|
|
|
3822
3822
|
/** Action identifier emitted by `ef-data-card`'s auto row-actions cell. */
|
|
3823
3823
|
type EfDataCardRowAction = 'view' | 'edit' | 'duplicate' | 'delete';
|
|
3824
|
+
/** Row height presets offered by the Density control. */
|
|
3825
|
+
type EfTableDensity = 'compact' | 'default' | 'comfortable';
|
|
3824
3826
|
/**
|
|
3825
3827
|
* Comptoir data card — column-driven `.tbl-wrap` with header (count
|
|
3826
3828
|
* info + actions) and integrated pager.
|
|
@@ -3890,6 +3892,17 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
|
|
|
3890
3892
|
readonly showEditAction: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3891
3893
|
readonly showDuplicateAction: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3892
3894
|
readonly showDeleteAction: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3895
|
+
/** Render the Density control in the head row. */
|
|
3896
|
+
readonly showDensityControl: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3897
|
+
/** Render the Columns picker in the head row. */
|
|
3898
|
+
readonly showColumnPicker: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3899
|
+
/**
|
|
3900
|
+
* Stable key used to remember density and hidden columns for this
|
|
3901
|
+
* table. Preferences are a per-viewer convenience, so they live in
|
|
3902
|
+
* localStorage and are read defensively -- a private window or
|
|
3903
|
+
* cleared site data simply falls back to the defaults.
|
|
3904
|
+
*/
|
|
3905
|
+
readonly tableKey: _angular_core.InputSignal<string>;
|
|
3893
3906
|
readonly pageChange: _angular_core.OutputEmitterRef<number>;
|
|
3894
3907
|
readonly pageSizeChange: _angular_core.OutputEmitterRef<number>;
|
|
3895
3908
|
readonly sortChange: _angular_core.OutputEmitterRef<EfDataCardSort>;
|
|
@@ -3931,6 +3944,32 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
|
|
|
3931
3944
|
resolveReference(value: unknown, col: EfDataCardColumn): string;
|
|
3932
3945
|
/** Build an Angular DigitInfo string from min/max fraction-digit hints. */
|
|
3933
3946
|
numberFormat(col: EfDataCardColumn): string;
|
|
3947
|
+
/** Which tools panel is open, if any. */
|
|
3948
|
+
readonly openTool: _angular_core.WritableSignal<"density" | "columns">;
|
|
3949
|
+
/** Row density. Applied as a class on `.tbl-wrap`. */
|
|
3950
|
+
readonly density: _angular_core.WritableSignal<EfTableDensity>;
|
|
3951
|
+
/** Column ids the viewer has hidden. */
|
|
3952
|
+
readonly hiddenColumnIds: _angular_core.WritableSignal<readonly string[]>;
|
|
3953
|
+
readonly densityOptions: ReadonlyArray<{
|
|
3954
|
+
value: EfTableDensity;
|
|
3955
|
+
labelKey: string;
|
|
3956
|
+
icon: string;
|
|
3957
|
+
}>;
|
|
3958
|
+
/** Columns the viewer may hide -- structural ones stay put, since
|
|
3959
|
+
* hiding the selection checkbox or the row-actions cell would strand
|
|
3960
|
+
* the bulk bar and the per-row menu with no way back. */
|
|
3961
|
+
readonly hideableColumns: _angular_core.Signal<EfDataCardColumn[]>;
|
|
3962
|
+
toggleTool(tool: 'density' | 'columns'): void;
|
|
3963
|
+
setDensity(value: EfTableDensity): void;
|
|
3964
|
+
isColumnHidden(id: string): boolean;
|
|
3965
|
+
toggleColumn(id: string): void;
|
|
3966
|
+
resetColumns(): void;
|
|
3967
|
+
/** Close an open panel on an outside click or Escape. */
|
|
3968
|
+
onDocumentClick(event: MouseEvent): void;
|
|
3969
|
+
onEscape(): void;
|
|
3970
|
+
private storageKey;
|
|
3971
|
+
private loadPreferences;
|
|
3972
|
+
private savePreferences;
|
|
3934
3973
|
/** Tracks how many `ef-row-actions` are currently open inside this
|
|
3935
3974
|
* card. When > 0, `.tbl-wrap` lifts its `overflow: hidden` so the
|
|
3936
3975
|
* popup can escape its rounded edges. */
|
|
@@ -3943,7 +3982,7 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
|
|
|
3943
3982
|
trackByRow: (_: number, row: TRow) => unknown;
|
|
3944
3983
|
trackByColumn: (_: number, col: EfDataCardColumn) => string;
|
|
3945
3984
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EfDataCardComponent<any>, never>;
|
|
3946
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EfDataCardComponent<any>, "ef-data-card", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "trackByField": { "alias": "trackByField"; "required": false; "isSignal": true; }; "pageNumber": { "alias": "pageNumber"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalCount": { "alias": "totalCount"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "hidePager": { "alias": "hidePager"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "loadingKey": { "alias": "loadingKey"; "required": false; "isSignal": true; }; "rowDoubleClickable": { "alias": "rowDoubleClickable"; "required": false; "isSignal": true; }; "hasActionsColumn": { "alias": "hasActionsColumn"; "required": false; "isSignal": true; }; "rowActionsContext": { "alias": "rowActionsContext"; "required": false; "isSignal": true; }; "showViewAction": { "alias": "showViewAction"; "required": false; "isSignal": true; }; "showEditAction": { "alias": "showEditAction"; "required": false; "isSignal": true; }; "showDuplicateAction": { "alias": "showDuplicateAction"; "required": false; "isSignal": true; }; "showDeleteAction": { "alias": "showDeleteAction"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "rowDoubleClick": "rowDoubleClick"; "rowAction": "rowAction"; }, ["bodyTemplates", "headerTemplates"], ["[tbl-head-info]", "[tbl-head-actions]", "[empty-state]"], true, never>;
|
|
3985
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EfDataCardComponent<any>, "ef-data-card", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "trackByField": { "alias": "trackByField"; "required": false; "isSignal": true; }; "pageNumber": { "alias": "pageNumber"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalCount": { "alias": "totalCount"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "hidePager": { "alias": "hidePager"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "loadingKey": { "alias": "loadingKey"; "required": false; "isSignal": true; }; "rowDoubleClickable": { "alias": "rowDoubleClickable"; "required": false; "isSignal": true; }; "hasActionsColumn": { "alias": "hasActionsColumn"; "required": false; "isSignal": true; }; "rowActionsContext": { "alias": "rowActionsContext"; "required": false; "isSignal": true; }; "showViewAction": { "alias": "showViewAction"; "required": false; "isSignal": true; }; "showEditAction": { "alias": "showEditAction"; "required": false; "isSignal": true; }; "showDuplicateAction": { "alias": "showDuplicateAction"; "required": false; "isSignal": true; }; "showDeleteAction": { "alias": "showDeleteAction"; "required": false; "isSignal": true; }; "showDensityControl": { "alias": "showDensityControl"; "required": false; "isSignal": true; }; "showColumnPicker": { "alias": "showColumnPicker"; "required": false; "isSignal": true; }; "tableKey": { "alias": "tableKey"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "rowDoubleClick": "rowDoubleClick"; "rowAction": "rowAction"; }, ["bodyTemplates", "headerTemplates"], ["[tbl-head-info]", "[tbl-head-actions]", "[empty-state]"], true, never>;
|
|
3947
3986
|
}
|
|
3948
3987
|
|
|
3949
3988
|
/**
|