forlogic-core 1.17.0 → 1.17.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.
@@ -1,4 +1,5 @@
1
- import { UnassociatedUser } from '../types';
1
+ import type { TreeTableColumn } from '../../crud/primitives/types';
2
+ import { LeaderNode, UnassociatedUser } from '../types';
2
3
  export interface LeadershipPageProps {
3
4
  /** Lista de usuários não associados à hierarquia (fornecida pelo consumidor) */
4
5
  unassociatedUsers?: UnassociatedUser[];
@@ -8,5 +9,11 @@ export interface LeadershipPageProps {
8
9
  onMoveNode?: (draggedId: string, targetId: string | null) => void;
9
10
  /** Callback para movimentação em lote customizada */
10
11
  onMoveNodes?: (draggedIds: string[], targetId: string | null) => void;
12
+ /** Colunas customizadas para o TreeTable (default: Subordinados + Email) */
13
+ columns?: TreeTableColumn<LeaderNode>[];
14
+ /** Header da coluna de nome (default: "Líder") */
15
+ nameHeader?: string;
16
+ /** Texto da zona de drop raiz (default: "Tornar Líder Raiz") */
17
+ rootDropLabel?: string;
11
18
  }
12
- export declare function LeadershipPage({ unassociatedUsers, onAssociateUser, onMoveNode: customMoveNode, onMoveNodes: customMoveNodes, }?: LeadershipPageProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function LeadershipPage({ unassociatedUsers, onAssociateUser, onMoveNode: customMoveNode, onMoveNodes: customMoveNodes, columns: customColumns, nameHeader, rootDropLabel, }?: LeadershipPageProps): import("react/jsx-runtime").JSX.Element;
@@ -188,6 +188,9 @@ function createForlogicViteConfig(options = {}) {
188
188
  port: server.port ?? 8080
189
189
  },
190
190
  publicDir: false,
191
+ optimizeDeps: {
192
+ force: true
193
+ },
191
194
  esbuild: {
192
195
  sourcemap: build.sourcemap ?? true,
193
196
  target: "es2020"
@@ -190,6 +190,9 @@ function createForlogicViteConfig(options = {}) {
190
190
  port: server.port ?? 8080
191
191
  },
192
192
  publicDir: false,
193
+ optimizeDeps: {
194
+ force: true
195
+ },
193
196
  esbuild: {
194
197
  sourcemap: build.sourcemap ?? true,
195
198
  target: "es2020"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forlogic-core",
3
- "version": "1.17.0",
3
+ "version": "1.17.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",