@seniorsistemas/scala-ng 2.2.0 → 2.3.0

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
@@ -237,5 +237,5 @@
237
237
  "schematics": "./schematics/collection.json",
238
238
  "sideEffects": false,
239
239
  "typings": "index.d.ts",
240
- "version": "2.2.0"
240
+ "version": "2.3.0"
241
241
  }
package/table/README.md CHANGED
@@ -39,7 +39,7 @@ A tabela reage a `headers`/`data` e, quando aplicável, delega a lógica pesada
39
39
  - **Agrupamento:** `groupBy` agrupa visualmente as linhas por valor de campo, com um cabeçalho de grupo colapsável; o zebra reinicia na primeira linha de cada grupo.
40
40
  - **Reorder:** `reorderable` habilita arrastar-e-soltar linhas (Angular CDK Drag & Drop), emitindo `rowReorder` com a linha movida e as listas antes/depois.
41
41
  - **Toolbar:** o input `toolbar` configura busca, alternância de visibilidade da linha de filtro, ações primária/secundária/"mais", e assume um modo alternativo (`selectionActive`/`allSelected`) quando há seleção ativa, trocando as ações exibidas. O atalho "Selecionar todos os registros" só é oferecido com `selectionMode="multiple"`.
42
- - **Paginação:** `paginator` exibe `sds-paginator` abaixo da tabela. Em modo local, pagina depois de filtrar/ordenar; em modo lazy, delega inteiramente ao consumidor via `lazyLoad` (`first`/`rows`/`page`).
42
+ - **Paginação:** `paginator` exibe `sds-paginator` abaixo da tabela. Em modo local, pagina depois de filtrar/ordenar; em modo lazy, delega inteiramente ao consumidor via `lazyLoad` (`first`/`rows`/`page`). `paginatorConfig` define as opções de itens por página e permite esconder partes do paginador (seletor de itens por página, "Ir para", contador e indicador de página).
43
43
  - **Estados:** `loading` exibe linhas skeleton no lugar dos dados; `error` exibe o empty state de erro (`loading` tem precedência); ausência de linhas exibe o empty state — "sem resultados" quando há busca/filtro, "padrão" caso contrário —, customizável via `emptyHeading`/`emptyDescription`. Nesses estados o cabeçalho fica oculto, exceto quando a linha de filtro está visível (para o usuário conseguir limpar o filtro).
44
44
  - **Fundos:** linhas de dados em aspecto Ghost (transparentes em repouso; zebra, hover, selecionada e foco mantêm a precedência `disabled › selected hover › selected › hover › zebra › repouso`); cabeçalho, linha de filtro e cabeçalho de grupo usam `interactive-secondary`; o container não pinta fundo.
45
45
  - **Ações por linha:** até 3 ações visíveis, todas com ícone, viram botões inline (Button Ghost Small, só ícone, com `aria-label` e tooltip iguais ao `label`; a destrutiva por último). Com mais de 3, ou se alguma ação visível não tiver `icon`, todas vão para o menu ⋯, onde cada ação aparece com o nome — a troca é automática e avaliada linha a linha. O cabeçalho da coluna mantém "Ações" como texto visualmente oculto e a coluna não é ordenável.
@@ -100,29 +100,30 @@ export class MyComponent {}
100
100
 
101
101
  ## Properties
102
102
 
103
- | Propriedade | Tipo | Padrão | Obrigatório | Descrição |
104
- | ------------------ | --------------------- | ------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
105
- | `headers` | `TableHeader<T>[]` | — | Sim | Definição das colunas: tipo de campo, label, ordenação e filtro por coluna. |
106
- | `data` | `T[]` | — | Sim | Dados das linhas exibidas (a página atual, quando `lazy` está ativo). |
107
- | `lazy` | `boolean` | `false` | Não | Ativa o modo lazy: ordenação, filtro e paginação passam a ser responsabilidade do consumidor via `lazyLoad`. |
108
- | `loading` | `boolean` | `false` | Não | Exibe linhas-esqueleto no lugar dos dados. |
109
- | `error` | `boolean` | `false` | Não | Exibe o estado de erro (falha de carregamento) no lugar dos dados; `loading` tem precedência. |
110
- | `emptyHeading` | `string` | `undefined` (i18n) | Não | Título exibido no estado vazio, sobrescrevendo o padrão. |
111
- | `emptyDescription` | `string` | `undefined` (i18n) | Não | Descrição exibida no estado vazio, sobrescrevendo o padrão. |
112
- | `actions` | `ActionButton<T>[]` | `undefined` | Não | Botões de ação por linha, renderizados numa coluna dedicada. |
113
- | `dataKey` | `KeyOfPrimitive<T>` | `undefined` | Condicional | Campo que identifica unicamente cada linha. Obrigatório quando `selectionMode` ou expansão de linha (`#rowDetail`) estão em uso — lança erro em runtime se ausente. |
114
- | `selectionMode` | `SelectionMode` | `'none'` | Não | Modo de seleção de linhas: `'none'`, `'single'` ou `'multiple'`. |
115
- | `selectedKeys` | `Set<TableRowKey>` | `new Set()` | Não | Chaves (`dataKey`) das linhas selecionadas. Two-way bindable. |
116
- | `allSelected` | `boolean` | `false` | Não | Indica seleção de todas as linhas correspondentes no servidor, além da página atual. Two-way bindable. |
117
- | `totalRecords` | `number` | `undefined` | Não | Total de registros no servidor, usado por paginação e seleção server-side. |
118
- | `expandedKeys` | `Set<TableRowKey>` | `new Set()` | Não | Chaves (`dataKey`) das linhas com detalhe expandido. Two-way bindable. |
119
- | `isRowExpandable` | `(row: T) => boolean` | `undefined` | Não | Função que determina se uma linha pode ser expandida. |
120
- | `groupBy` | `KeyOfPrimitive<T>` | `undefined` | Não | Campo usado para agrupar as linhas visualmente. |
121
- | `zebra` | `boolean` | `false` | Não | Ativa o listrado (zebra) entre linhas. |
122
- | `reorderable` | `boolean` | `false` | Não | Ativa a reordenação de linhas via drag-and-drop. |
123
- | `toolbar` | `TableToolbarConfig` | `undefined` | Não | Configuração da toolbar (busca, ações, modo de seleção em massa). |
124
- | `paginator` | `boolean` | `false` | Não | Exibe o `sds-paginator` abaixo da tabela e passa a incluir `first`/`rows`/`page` no `lazyLoad`. |
125
- | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Não | Opções exibidas no seletor "Itens por página" do paginator. |
103
+ | Propriedade | Tipo | Padrão | Obrigatório | Descrição |
104
+ | ------------------ | ---------------------- | ------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
105
+ | `headers` | `TableHeader<T>[]` | — | Sim | Definição das colunas: tipo de campo, label, ordenação e filtro por coluna. |
106
+ | `data` | `T[]` | — | Sim | Dados das linhas exibidas (a página atual, quando `lazy` está ativo). |
107
+ | `lazy` | `boolean` | `false` | Não | Ativa o modo lazy: ordenação, filtro e paginação passam a ser responsabilidade do consumidor via `lazyLoad`. |
108
+ | `loading` | `boolean` | `false` | Não | Exibe linhas-esqueleto no lugar dos dados. |
109
+ | `error` | `boolean` | `false` | Não | Exibe o estado de erro (falha de carregamento) no lugar dos dados; `loading` tem precedência. |
110
+ | `emptyHeading` | `string` | `undefined` (i18n) | Não | Título exibido no estado vazio, sobrescrevendo o padrão. |
111
+ | `emptyDescription` | `string` | `undefined` (i18n) | Não | Descrição exibida no estado vazio, sobrescrevendo o padrão. |
112
+ | `actions` | `ActionButton<T>[]` | `undefined` | Não | Botões de ação por linha, renderizados numa coluna dedicada. |
113
+ | `dataKey` | `KeyOfPrimitive<T>` | `undefined` | Condicional | Campo que identifica unicamente cada linha. Obrigatório quando `selectionMode` ou expansão de linha (`#rowDetail`) estão em uso — lança erro em runtime se ausente. |
114
+ | `selectionMode` | `SelectionMode` | `'none'` | Não | Modo de seleção de linhas: `'none'`, `'single'` ou `'multiple'`. |
115
+ | `selectedKeys` | `Set<TableRowKey>` | `new Set()` | Não | Chaves (`dataKey`) das linhas selecionadas. Two-way bindable. |
116
+ | `allSelected` | `boolean` | `false` | Não | Indica seleção de todas as linhas correspondentes no servidor, além da página atual. Two-way bindable. |
117
+ | `totalRecords` | `number` | `undefined` | Não | Total de registros no servidor, usado por paginação e seleção server-side. |
118
+ | `expandedKeys` | `Set<TableRowKey>` | `new Set()` | Não | Chaves (`dataKey`) das linhas com detalhe expandido. Two-way bindable. |
119
+ | `isRowExpandable` | `(row: T) => boolean` | `undefined` | Não | Função que determina se uma linha pode ser expandida. |
120
+ | `groupBy` | `KeyOfPrimitive<T>` | `undefined` | Não | Campo usado para agrupar as linhas visualmente. |
121
+ | `zebra` | `boolean` | `false` | Não | Ativa o listrado (zebra) entre linhas. |
122
+ | `reorderable` | `boolean` | `false` | Não | Ativa a reordenação de linhas via drag-and-drop. |
123
+ | `toolbar` | `TableToolbarConfig` | `undefined` | Não | Configuração da toolbar (busca, ações, modo de seleção em massa). |
124
+ | `paginator` | `boolean` | `false` | Não | Exibe o `sds-paginator` abaixo da tabela e passa a incluir `first`/`rows`/`page` no `lazyLoad`. |
125
+ | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Não | **Deprecated:** use `paginatorConfig.pageSizeOptions`, que tem prioridade quando os dois são informados. |
126
+ | `paginatorConfig` | `TablePaginatorConfig` | `{}` | Não | Opções do paginator: itens por página e quais partes dele são exibidas. |
126
127
 
127
128
  **Outputs:** `lazyLoad: TableLazyLoadEvent<T>` (mudança de ordenação/filtro/página em modo lazy) · `rowReorder: TableRowReorderEvent<T>` (linha reordenada via drag-and-drop) · `toolbarSearch: string` (mudança no campo de busca da toolbar).
128
129
 
@@ -193,6 +194,23 @@ Os campos próprios de cada tipo nativo estão em [Custom Field Types](#custom-f
193
194
  | `moreActions` | `ActionButton<unknown>[]` | ❌ | Ações do menu ⋯ da toolbar. |
194
195
  | `selection` | `TableToolbarSelectionConfig` | ❌ | Ações exibidas quando há linhas selecionadas. |
195
196
 
197
+ ### `TablePaginatorConfig`
198
+
199
+ | Campo | Tipo | Obrigatório | Descrição |
200
+ | ------------------- | ---------- | ----------- | ------------------------------------------------------------------ |
201
+ | `pageSizeOptions` | `number[]` | ❌ | Opções do seletor "Itens por página". Padrão: `[10, 25, 50, 100]`. |
202
+ | `showPageSize` | `boolean` | ❌ | Exibe o seletor "Itens por página". Padrão: `true`. |
203
+ | `showJumpToPage` | `boolean` | ❌ | Exibe o campo "Ir para". Padrão: `true`. |
204
+ | `showCounter` | `boolean` | ❌ | Exibe o texto "Mostrando X-Y de Z itens". Padrão: `true`. |
205
+ | `showPageIndicator` | `boolean` | ❌ | Exibe o texto "Página X de Y". Padrão: `true`. |
206
+
207
+ ```html
208
+ <sds-table
209
+ [paginator]="true"
210
+ [paginatorConfig]="{ pageSizeOptions: [20, 50], showJumpToPage: false }"
211
+ />
212
+ ```
213
+
196
214
  ### `TableToolbarAction`
197
215
 
198
216
  | Campo | Tipo | Obrigatório | Descrição |
@@ -365,12 +383,21 @@ Para um exemplo combinando todos os recursos (colunas `avatarSummary`/`string`/`
365
383
 
366
384
  ### [Unreleased] — 2026-10-23
367
385
 
386
+ #### Added
387
+
388
+ - Input `paginatorConfig` (`TablePaginatorConfig`): reúne as opções do paginador, com `pageSizeOptions` e `showPageSize`, `showJumpToPage`, `showCounter` e `showPageIndicator`, repassados ao `sds-paginator` interno. Antes era preciso trocar o paginador da tabela por um próprio para esconder essas partes.
389
+
390
+ #### Deprecated
391
+
392
+ - Input `pageSizeOptions`: use `paginatorConfig.pageSizeOptions`. O input continua funcionando; quando os dois são informados, vale o do `paginatorConfig`.
393
+
368
394
  #### Changed
369
395
 
370
396
  - `ActionButton.icon` passa a ser opcional. Se alguma ação visível da linha não tiver ícone, as ações da linha vão para o menu ⋯ em vez de virar botões inline sem ícone.
371
397
 
372
398
  #### Fixed
373
399
 
400
+ - O menu ⋯ de ações da linha passa a destacar as ações `destructive`, como os botões inline já faziam.
374
401
  - Os menus de ações da linha e de "mais ações" da toolbar passam a usar as reticências horizontais (`fa-ellipsis`, ⋯) em vez das verticais (⋮).
375
402
  - Borda do container (`sdsTableContainer`) passa a usar o token `border` (`border-color-border`) em vez de `border-bold`.
376
403
 
@@ -1,6 +1,6 @@
1
1
  export type { TableToolbarAction, TableToolbarConfig, TableToolbarSelectionConfig, } from "./src/table/table-toolbar.models";
2
2
  export { SdsTableComponent } from "./src/table/table.component";
3
- export type { ActionButton, SelectionMode, TableLazyLoadEvent, TableRowKey, TableRowReorderEvent, } from "./src/table/table.models";
3
+ export type { ActionButton, SelectionMode, TableLazyLoadEvent, TablePaginatorConfig, TableRowKey, TableRowReorderEvent, } from "./src/table/table.models";
4
4
  export type { AvatarSummaryTableHeader } from "./src/fields/avatar-summary-table-header";
5
5
  export type { DateTableHeader } from "./src/fields/date-table-header";
6
6
  export type { NumberTableHeader } from "./src/fields/number-table-header";
@@ -7,7 +7,7 @@ import type { KeyOfPrimitive, TableHeader } from "../fields/table-header";
7
7
  import type { RenderRow } from "../utils/table-group.utils";
8
8
  import type { ActiveSort } from "../utils/table-sort.utils";
9
9
  import type { TableToolbarConfig } from "./table-toolbar.models";
10
- import type { ActionButton, SelectionMode, TableLazyLoadEvent, TableRowKey, TableRowReorderEvent } from "./table.models";
10
+ import type { ActionButton, SelectionMode, TableLazyLoadEvent, TablePaginatorConfig, TableRowKey, TableRowReorderEvent } from "./table.models";
11
11
  import * as i0 from "@angular/core";
12
12
  type RequireKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
13
13
  export declare class SdsTableComponent<T> {
@@ -62,8 +62,14 @@ export declare class SdsTableComponent<T> {
62
62
  readonly toolbarSearch: import("@angular/core").OutputEmitterRef<string>;
63
63
  /** Exibe o `sds-paginator` abaixo da tabela e passa a incluir `first`/`rows`/`page` no `lazyLoad`. */
64
64
  readonly paginator: import("@angular/core").InputSignal<boolean>;
65
- /** Opções exibidas no seletor "Itens por página" do paginator. */
65
+ /**
66
+ * Opções exibidas no seletor "Itens por página" do paginator.
67
+ * @deprecated Use `paginatorConfig.pageSizeOptions`, que tem prioridade quando os dois são informados.
68
+ */
66
69
  readonly pageSizeOptions: import("@angular/core").InputSignal<number[]>;
70
+ /** Opções do paginator: itens por página e quais partes dele são exibidas. */
71
+ readonly paginatorConfig: import("@angular/core").InputSignal<TablePaginatorConfig>;
72
+ protected readonly resolvedPaginatorConfig: import("@angular/core").Signal<Required<TablePaginatorConfig>>;
67
73
  protected readonly skeletonRows: unknown[];
68
74
  protected readonly radioGroupName: string;
69
75
  protected readonly activeSort: import("@angular/core").WritableSignal<ActiveSort | null>;
@@ -127,6 +133,6 @@ export declare class SdsTableComponent<T> {
127
133
  private _expandableDataKeys;
128
134
  private _buildLazyLoadEvent;
129
135
  static ɵfac: i0.ɵɵFactoryDeclaration<SdsTableComponent<any>, never>;
130
- static ɵcmp: i0.ɵɵComponentDeclaration<SdsTableComponent<any>, "sds-table", never, { "headers": { "alias": "headers"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyHeading": { "alias": "emptyHeading"; "required": false; "isSignal": true; }; "emptyDescription": { "alias": "emptyDescription"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; "allSelected": { "alias": "allSelected"; "required": false; "isSignal": true; }; "totalRecords": { "alias": "totalRecords"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; "isRowExpandable": { "alias": "isRowExpandable"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "toolbar": { "alias": "toolbar"; "required": false; "isSignal": true; }; "paginator": { "alias": "paginator"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; }, { "lazyLoad": "lazyLoad"; "selectedKeys": "selectedKeysChange"; "allSelected": "allSelectedChange"; "expandedKeys": "expandedKeysChange"; "rowReorder": "rowReorder"; "toolbarSearch": "toolbarSearch"; }, ["rowDetailTemplate"], never, true, never>;
136
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsTableComponent<any>, "sds-table", never, { "headers": { "alias": "headers"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyHeading": { "alias": "emptyHeading"; "required": false; "isSignal": true; }; "emptyDescription": { "alias": "emptyDescription"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; "allSelected": { "alias": "allSelected"; "required": false; "isSignal": true; }; "totalRecords": { "alias": "totalRecords"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; "isRowExpandable": { "alias": "isRowExpandable"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "toolbar": { "alias": "toolbar"; "required": false; "isSignal": true; }; "paginator": { "alias": "paginator"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "paginatorConfig": { "alias": "paginatorConfig"; "required": false; "isSignal": true; }; }, { "lazyLoad": "lazyLoad"; "selectedKeys": "selectedKeysChange"; "allSelected": "allSelectedChange"; "expandedKeys": "expandedKeysChange"; "rowReorder": "rowReorder"; "toolbarSearch": "toolbarSearch"; }, ["rowDetailTemplate"], never, true, never>;
131
137
  }
132
138
  export {};
@@ -33,3 +33,16 @@ export interface ActionButton<T = unknown> {
33
33
  /** Chave primitiva usada para identificar uma linha (valor do campo apontado por `dataKey`). */
34
34
  export type TableRowKey = string | number;
35
35
  export type SelectionMode = "none" | "single" | "multiple";
36
+ /** Configuração do `sds-paginator` exibido pela tabela quando `paginator` é `true`. */
37
+ export interface TablePaginatorConfig {
38
+ /** Opções do seletor "Itens por página". Padrão: `[10, 25, 50, 100]`. */
39
+ pageSizeOptions?: number[];
40
+ /** Exibe o seletor "Itens por página". Padrão: `true`. */
41
+ showPageSize?: boolean;
42
+ /** Exibe o campo "Ir para" (navegação direta por número de página). Padrão: `true`. */
43
+ showJumpToPage?: boolean;
44
+ /** Exibe o texto "Mostrando X-Y de Z itens". Padrão: `true`. */
45
+ showCounter?: boolean;
46
+ /** Exibe o texto "Página X de Y". Padrão: `true`. */
47
+ showPageIndicator?: boolean;
48
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"seniorsistemas-scala-ng-table-table-actions-cell.component-D6ffnUl1.mjs","sources":["../../projects/scala-ng/table/src/components/actions-cell/table-actions-cell.component.ts","../../projects/scala-ng/table/src/components/actions-cell/table-actions-cell.component.html"],"sourcesContent":["import { Component, computed, input } from \"@angular/core\";\nimport { TranslatePipe } from \"@ngx-translate/core\";\nimport { SdsButtonComponent } from \"@seniorsistemas/scala-ng/button\";\nimport {\n SdsTieredMenuDirective,\n type SdsTieredMenuItem,\n} from \"@seniorsistemas/scala-ng/tiered-menu\";\nimport { SdsTooltipDirective } from \"@seniorsistemas/scala-ng/tooltip\";\nimport type { ActionButton } from \"../../table/table.models\";\n\nexport const TABLE_ACTIONS_MAX_INLINE = 3;\n\n@Component({\n selector: \"sds-table-actions-cell\",\n standalone: true,\n imports: [SdsButtonComponent, SdsTieredMenuDirective, SdsTooltipDirective, TranslatePipe],\n templateUrl: \"./table-actions-cell.component.html\",\n host: { class: \"flex items-center justify-end gap-space-0-50\" },\n})\nexport class SdsTableActionsCellComponent<T> {\n readonly actions = input.required<ActionButton<T>[]>();\n readonly row = input.required<T>();\n\n // Destructive actions go last, preserving the declared order otherwise.\n protected readonly visibleActions = computed<ActionButton<T>[]>(() => {\n const visible = this.actions().filter((action) => action.visible?.(this.row()) ?? true);\n return [\n ...visible.filter((action) => !action.destructive),\n ...visible.filter((action) => action.destructive),\n ];\n });\n\n // Inline buttons show only the icon, so an action without one would render as an empty button.\n protected readonly isInline = computed(() => {\n const visibleActions = this.visibleActions();\n return (\n visibleActions.length <= TABLE_ACTIONS_MAX_INLINE &&\n visibleActions.every((action) => !!action.icon)\n );\n });\n\n protected readonly menuItems = computed<SdsTieredMenuItem[]>(() =>\n this.visibleActions().map((action) => ({\n label: action.label,\n icon: action.icon,\n disabled: action.disabled?.(this.row()) ?? false,\n command: () => action.onClick(this.row()),\n })),\n );\n\n protected isDisabled(action: ActionButton<T>): boolean {\n return action.disabled?.(this.row()) ?? false;\n }\n}\n","@if (isInline()) {\n @for (action of visibleActions(); track action.label) {\n <button\n sdsButton\n type=\"ghost\"\n size=\"small\"\n class=\"!w-8 !p-0\"\n [destructive]=\"!!action.destructive\"\n [disabled]=\"isDisabled(action)\"\n [attr.aria-label]=\"action.label\"\n [sdsTooltip]=\"action.label\"\n (click)=\"action.onClick(row())\"\n >\n <i\n sdsLeadingIcon\n [class]=\"action.icon\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n} @else {\n <button\n sdsButton\n type=\"ghost\"\n size=\"small\"\n class=\"!w-8 !p-0\"\n [sdsTieredMenu]=\"menuItems()\"\n [attr.aria-label]=\"'platform.scala-ng.table_actions_trigger_label' | translate\"\n [sdsTooltip]=\"'platform.scala-ng.table_actions_trigger_label' | translate\"\n >\n <i\n sdsLeadingIcon\n class=\"fa-solid fa-ellipsis\"\n aria-hidden=\"true\"\n ></i>\n </button>\n}\n"],"names":[],"mappings":";;;;;;;AAUO,MAAM,wBAAwB,GAAG,EAAE;MAS7B,4BAA4B,CAAA;AAC9B,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAqB,CAAC;AAC9C,IAAA,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAK,CAAC;;AAGhB,IAAA,cAAc,GAAG,QAAQ,CAAoB,MAAK;QACnE,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC;QACxF,OAAO;AACL,YAAA,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC;AAClD,YAAA,GAAG,OAAO,CAAC,MAAM,CAAC,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