@elasticias/ui 1.0.23 → 1.0.25

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": "@elasticias/ui",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -90,6 +90,11 @@
90
90
  --paper: var(--ink-50);
91
91
  --paper-alt: #fff;
92
92
  --rule: var(--ink-200);
93
+ /* The border a bordered control moves to on hover. One token, because the
94
+ two conventions that grew here — near-black on ghost buttons and pills,
95
+ mid-grey on selects, triggers and row actions — meant a button and a
96
+ select sitting in the same row hovered to different colours. */
97
+ --rule-hover: var(--ink-400);
93
98
  --rule-soft: rgba(15, 17, 21, 0.05);
94
99
  --text: var(--ink-900);
95
100
  --text-mute: var(--ink-500);
@@ -123,6 +128,7 @@
123
128
  --paper: var(--ink-900);
124
129
  --paper-alt: var(--ink-800);
125
130
  --rule: rgba(248, 249, 251, 0.08);
131
+ --rule-hover: rgba(248, 249, 251, 0.28);
126
132
  --rule-soft: rgba(248, 249, 251, 0.04);
127
133
  --text: var(--ink-50);
128
134
  --text-mute: var(--ink-400);
@@ -139,7 +139,7 @@
139
139
  }
140
140
 
141
141
  .btn-ghost:hover {
142
- border-color: var(--text);
142
+ border-color: var(--rule-hover);
143
143
  }
144
144
 
145
145
  /* Brand-tinted action buttons (e.g. ef-pdf-preview footer). */
@@ -172,10 +172,13 @@
172
172
  padding: 10px 12px;
173
173
  }
174
174
 
175
+ /* Dense rows and toolbars. `--hit` rather than a bare 32: the number was
176
+ hardcoded here while `.btn` above reads `--hit-base`, so the two ends of the
177
+ button scale were tuned in different places. */
175
178
  .btn-sm {
176
179
  font-size: 12px;
177
180
  padding: 7px 14px;
178
- min-height: 32px;
181
+ min-height: var(--hit);
179
182
  }
180
183
 
181
184
  /* ──────────── PILL GROUP (status filters) ───────────────────────── */
@@ -514,7 +517,7 @@
514
517
  }
515
518
 
516
519
  .f-pill:hover {
517
- border-color: var(--text);
520
+ border-color: var(--rule-hover);
518
521
  }
519
522
  .f-pill .ico {
520
523
  width: 14px;
@@ -602,7 +605,7 @@
602
605
 
603
606
  .f-more:hover {
604
607
  color: var(--text);
605
- border-color: var(--text);
608
+ border-color: var(--rule-hover);
606
609
  }
607
610
 
608
611
  .f-more.open {
@@ -981,7 +984,7 @@
981
984
  .ef-app-top__logout:hover,
982
985
  .ef-app-top__action:hover {
983
986
  color: var(--text);
984
- border-color: var(--ink-400);
987
+ border-color: var(--rule-hover);
985
988
  }
986
989
 
987
990
  .ef-theme-toggle:focus-visible,
@@ -1480,7 +1483,7 @@
1480
1483
 
1481
1484
  .row-actions__trigger:hover {
1482
1485
  color: var(--text);
1483
- border-color: var(--ink-400);
1486
+ border-color: var(--rule-hover);
1484
1487
  background: var(--paper);
1485
1488
  }
1486
1489
 
@@ -1819,7 +1822,7 @@
1819
1822
  }
1820
1823
 
1821
1824
  .dp__trigger:hover {
1822
- border-color: var(--ink-400);
1825
+ border-color: var(--rule-hover);
1823
1826
  }
1824
1827
 
1825
1828
  .dp__trigger:focus-visible {
@@ -1893,7 +1896,7 @@
1893
1896
  }
1894
1897
 
1895
1898
  .dp__field-trigger:hover:not(:disabled) {
1896
- border-color: var(--ink-400);
1899
+ border-color: var(--rule-hover);
1897
1900
  }
1898
1901
 
1899
1902
  .dp__field-trigger:focus-visible,
@@ -3515,7 +3518,7 @@ input.ef-input[type='number'] {
3515
3518
 
3516
3519
  .es.p-select:not(.p-disabled):hover,
3517
3520
  .es.p-multiselect:not(.p-disabled):hover {
3518
- border-color: var(--ink-400);
3521
+ border-color: var(--rule-hover);
3519
3522
  }
3520
3523
 
3521
3524
  .es.p-select.p-focus,
@@ -4260,7 +4263,7 @@ input.ef-input[type='number'] {
4260
4263
 
4261
4264
  .es-confirm .p-dialog-footer .p-confirmdialog-reject-button:hover {
4262
4265
  background: var(--paper-alt);
4263
- border-color: var(--text);
4266
+ border-color: var(--rule-hover);
4264
4267
  }
4265
4268
 
4266
4269
  .es-confirm .p-confirmdialog-accept-button:focus-visible,
@@ -1237,7 +1237,18 @@ declare class EfButtonComponent {
1237
1237
  */
1238
1238
  variant: 'primeng' | 'comptoir';
1239
1239
  severity: EfButtonSeverity;
1240
- size: 'small' | 'large';
1240
+ /**
1241
+ * Control height.
1242
+ *
1243
+ * - `'small'` — `--hit` (32px). Dense rows, toolbars, row actions. Default,
1244
+ * because that is what every call site in the product already renders.
1245
+ * - `'base'` — `--hit-base` (40px). The height a comptoir input, select and
1246
+ * datepicker render at, so this is the one to use for a button sitting in
1247
+ * a form row: at `'small'` it is 8px shorter than the field beside it and
1248
+ * the row reads as misaligned.
1249
+ * - `'large'` — retained alias for `'base'`; nothing in the product uses it.
1250
+ */
1251
+ size: 'small' | 'base' | 'large';
1241
1252
  disabled: boolean;
1242
1253
  rounded: boolean;
1243
1254
  outlined: boolean;
@@ -1289,6 +1300,12 @@ declare class EfButtonComponent {
1289
1300
  * set. */
1290
1301
  get effectiveTooltip(): string | undefined;
1291
1302
  clickEvent: EventEmitter<Event>;
1303
+ /**
1304
+ * Size as PrimeNG's Button understands it. Its own scale is only
1305
+ * `'small' | 'large'`, with the default (unset) being the normal height, so
1306
+ * `'base'` maps to `null` rather than being forwarded verbatim.
1307
+ */
1308
+ get pnSize(): 'small' | 'large' | null;
1292
1309
  /** Composed class string for the Comptoir variant —
1293
1310
  * `btn btn-{severity} btn-sm` plus any caller-supplied `styleClass`. */
1294
1311
  get comptoirClass(): string;
@@ -4635,6 +4652,21 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4635
4652
  * move is on the arrow keys while the handle has focus.
4636
4653
  */
4637
4654
  onDragKeydown(index: number, ev: KeyboardEvent): void;
4655
+ /**
4656
+ * Honour the declared column widths exactly instead of treating them as
4657
+ * hints.
4658
+ *
4659
+ * The default `table-layout: auto` sizes a column to its content, so a
4660
+ * cell whose content is wider than the declared width simply wins. On the
4661
+ * order builder that meant clicking into a 116px discount cell swapped in
4662
+ * an editor whose input carries an intrinsic 200px, the column jumped to
4663
+ * 271px, and the article column lost the difference — every row re-flowed
4664
+ * mid-edit. With fixed layout the declared widths hold and the columns
4665
+ * that declare none share what is left.
4666
+ *
4667
+ * Opt-in: a table whose columns are all content-sized still wants `auto`.
4668
+ */
4669
+ readonly fixedLayout: _angular_core.InputSignalWithTransform<boolean, unknown>;
4638
4670
  /** Row density. Applied as a class on `.tbl-wrap`. */
4639
4671
  readonly density: _angular_core.WritableSignal<EfTableDensity>;
4640
4672
  /** Column ids the viewer has hidden. */
@@ -4707,7 +4739,7 @@ declare class EfDataCardComponent<TRow = any> implements AfterContentInit {
4707
4739
  trackByRow: (_: number, row: TRow) => unknown;
4708
4740
  trackByColumn: (_: number, col: EfDataCardColumn) => string;
4709
4741
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EfDataCardComponent<any>, never>;
4710
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EfDataCardComponent<any>, "ef-data-card", never, { "mobileLayout": { "alias": "mobileLayout"; "required": false; "isSignal": true; }; "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; }; "showExportControl": { "alias": "showExportControl"; "required": false; "isSignal": true; }; "exporting": { "alias": "exporting"; "required": false; "isSignal": true; }; "screenContext": { "alias": "screenContext"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "tableKey": { "alias": "tableKey"; "required": false; "isSignal": true; }; "defaultDensity": { "alias": "defaultDensity"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "rowDoubleClick": "rowDoubleClick"; "rowAction": "rowAction"; "exportRequest": "exportRequest"; "clearSearch": "clearSearch"; "rowReorder": "rowReorder"; }, ["bodyTemplates", "headerTemplates"], ["[tbl-head-info]", "[tbl-head-actions]", "[empty-state-mobile]", "[empty-state]"], true, never>;
4742
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EfDataCardComponent<any>, "ef-data-card", never, { "mobileLayout": { "alias": "mobileLayout"; "required": false; "isSignal": true; }; "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; }; "showExportControl": { "alias": "showExportControl"; "required": false; "isSignal": true; }; "exporting": { "alias": "exporting"; "required": false; "isSignal": true; }; "screenContext": { "alias": "screenContext"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "tableKey": { "alias": "tableKey"; "required": false; "isSignal": true; }; "defaultDensity": { "alias": "defaultDensity"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "fixedLayout": { "alias": "fixedLayout"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "rowDoubleClick": "rowDoubleClick"; "rowAction": "rowAction"; "exportRequest": "exportRequest"; "clearSearch": "clearSearch"; "rowReorder": "rowReorder"; }, ["bodyTemplates", "headerTemplates"], ["[tbl-head-info]", "[tbl-head-actions]", "[empty-state-mobile]", "[empty-state]"], true, never>;
4711
4743
  }
4712
4744
 
4713
4745
  /**