forlogic-core 3.0.6 → 3.0.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/dist/types.d.ts CHANGED
@@ -341,6 +341,9 @@ export interface CrudPageConfig<T extends CrudEntity> {
341
341
  customListView?: (items: T[], manager?: CrudManager<T>) => React.ReactNode;
342
342
  /** Colunas ocultas por padrão (antes de qualquer interação do usuário). */
343
343
  defaultHiddenColumns?: string[];
344
+ /** Exibir ação "Excluir" na linha e no dialog de confirmação (default: true). Use `false`
345
+ * quando a entidade não suporta exclusão de verdade (ex.: só "ignorar"/soft actions). */
346
+ showDeleteAction?: boolean;
344
347
  }
345
348
  export interface EntityWithId {
346
349
  id: string | number;
@@ -12,5 +12,6 @@ A interface CrudPageConfig foi estendida para padronizar a UX em todos os CRUDs
12
12
  | `showActionBar` | `true` | Exibe a barra de ações (substitui `hideActionBar`) |
13
13
  | `newButtonLabel` | — | Customiza texto do botão de criação |
14
14
  | `searchPlaceholder` | — | Customiza placeholder da busca |
15
+ | `showDeleteAction` | `true` | Exibe ação "Excluir" na linha e no dialog de confirmação. Use `false` quando a entidade não suporta exclusão de verdade (ex.: só "ignorar"/soft actions) |
15
16
 
16
17
  Esta padronização garante que todos os CRUDs ofereçam as mesmas capacidades de busca, criação e ações em lote de forma consistente.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forlogic-core",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",