yukit-web 0.2.6 → 0.2.7

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.2.6",
4
+ "version": "0.2.7",
5
5
  "author": {
6
6
  "name": "Yurest Solutions",
7
7
  "email": "develop@yurest.com"
@@ -0,0 +1,18 @@
1
+ @media (hover: hover) {
2
+ .yuw-reveal {
3
+ opacity: 0;
4
+ transition: opacity 150ms ease-in-out;
5
+ }
6
+
7
+ .yuw-reveal-host:is(:hover, :has(:focus-visible)) .yuw-reveal,
8
+ [data-highlighted] .yuw-reveal,
9
+ .yuw-reveal:has(:focus-visible) {
10
+ opacity: 1;
11
+ }
12
+
13
+ @media (prefers-reduced-motion: reduce) {
14
+ .yuw-reveal {
15
+ transition: none;
16
+ }
17
+ }
18
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  @import './components/button.css';
13
13
  @import './components/button-group.css';
14
+ @import './components/reveal-on-hover.css';
14
15
  @import './spartan-overwrites/accordion.css';
15
16
 
16
17
  @layer base {
@@ -2323,7 +2323,8 @@ declare class YuwDatatableRowSelect {
2323
2323
  }
2324
2324
 
2325
2325
  /**
2326
- * Pencil button cell that runs `onEdit`, an input because `flexRenderComponent` does not subscribe
2326
+ * Pencil button cell that runs `onEdit`, hidden until its row is hovered or keyboard-focused (`yuw-reveal`,
2327
+ * see `theme/components/reveal-on-hover.css`); touch devices keep it visible. An input because `flexRenderComponent` does not subscribe
2327
2328
  * outputs. The host stops the click so a clickable row does not fire twice.
2328
2329
  */
2329
2330
  declare class YuwActionsCellComponent {
@@ -2335,8 +2336,11 @@ declare class YuwActionsCellComponent {
2335
2336
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwActionsCellComponent, "yuw-actions-cell", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "onEdit": { "alias": "onEdit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2336
2337
  }
2337
2338
 
2338
- /** Headerless `actions` column; `label` is the button's accessible name, already translated. */
2339
- declare function buildYuwActionsColumn<Row extends RowData>(label: string, onEdit: (row: Row) => void, cellClass?: string): YuwDatatableColumnDef<Row>;
2339
+ /**
2340
+ * `actions` column; `label` is the button's accessible name and `header` the optional visible
2341
+ * column title, both already translated. Without `header` the column stays headerless.
2342
+ */
2343
+ declare function buildYuwActionsColumn<Row extends RowData>(label: string, onEdit: (row: Row) => void, cellClass?: string, header?: string): YuwDatatableColumnDef<Row>;
2340
2344
 
2341
2345
  /** A single entry in `<yuw-avatar>`'s `group` input, which turns it into a stack of overlapping avatars. */
2342
2346
  interface YuwAvatarGroupItemDto {