forlogic-core 1.16.11 → 1.16.12
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/.note/memory/features/crud-defaults-batteries-included.md +14 -0
- package/.note/memory/patterns/alias-url-resolution.md +39 -0
- package/.note/memory/patterns/dynamic-supabase-config.md +4 -0
- package/.note/memory/patterns/environment-detection-logic.md +35 -0
- package/dist/auth/components/AliasRouteGuard.d.ts +25 -0
- package/dist/auth/services/AuthService.d.ts +1 -1
- package/dist/auth/services/TokenManager.d.ts +6 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/crud/components/ColumnSettingsPopover.d.ts +2 -1
- package/dist/crud/components/CrudTable.d.ts +3 -1
- package/dist/crud/hooks/useColumnManager.d.ts +2 -0
- package/dist/hooks/useAliasFromUrl.d.ts +33 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/leadership/components/LeadershipPage.d.ts +12 -1
- package/dist/leadership/index.d.ts +0 -1
- package/dist/leadership/types.d.ts +6 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/linkHelpers.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { UnassociatedUser } from '../types';
|
|
2
|
+
export interface LeadershipPageProps {
|
|
3
|
+
/** Lista de usuários não associados à hierarquia (fornecida pelo consumidor) */
|
|
4
|
+
unassociatedUsers?: UnassociatedUser[];
|
|
5
|
+
/** Callback quando um usuário não associado é movido para a hierarquia */
|
|
6
|
+
onAssociateUser?: (userId: string, targetLeaderId: string | null) => void;
|
|
7
|
+
/** Callback para movimentação customizada (default: usa useUpdateLeaderMutation) */
|
|
8
|
+
onMoveNode?: (draggedId: string, targetId: string | null) => void;
|
|
9
|
+
/** Callback para movimentação em lote customizada */
|
|
10
|
+
onMoveNodes?: (draggedIds: string[], targetId: string | null) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function LeadershipPage({ unassociatedUsers, onAssociateUser, onMoveNode: customMoveNode, onMoveNodes: customMoveNodes, }?: LeadershipPageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,5 @@ export * from './utils/leadershipUtils';
|
|
|
9
9
|
export * from './hooks/useLeadershipApi';
|
|
10
10
|
export * from './hooks/useLeadershipMutations';
|
|
11
11
|
export * from './components/LeadershipPage';
|
|
12
|
-
export * from './components/LeaderRow';
|
|
13
12
|
export * from './components/LeadershipDialog';
|
|
14
13
|
export * from './components/LeadershipForm';
|
|
@@ -10,6 +10,12 @@ export interface Leader {
|
|
|
10
10
|
name?: string;
|
|
11
11
|
email?: string;
|
|
12
12
|
subordinatesCount?: number;
|
|
13
|
+
subordinateNames?: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface UnassociatedUser {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
email: string;
|
|
13
19
|
}
|
|
14
20
|
export interface LeaderNode extends Leader {
|
|
15
21
|
children: LeaderNode[];
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export { formatDatetime, formatDate } from './formatters/dateFormatters';
|
|
|
5
5
|
export { formatCurrency } from './formatters/currencyFormatters';
|
|
6
6
|
export declare const debounce: <T extends (...args: any[]) => any>(func: T, wait: number) => ((...args: Parameters<T>) => void);
|
|
7
7
|
export declare const slugify: (text: string) => string;
|
|
8
|
-
export { handleExternalLink } from './linkHelpers';
|
|
8
|
+
export { handleExternalLink, buildModuleUrl } from './linkHelpers';
|
|
@@ -2,3 +2,8 @@
|
|
|
2
2
|
* Abre link externo em nova aba ou copia para clipboard se bloqueado pelo navegador
|
|
3
3
|
*/
|
|
4
4
|
export declare function handleExternalLink(url: string, e?: React.MouseEvent): void;
|
|
5
|
+
/**
|
|
6
|
+
* Substitui placeholders `{alias}` em uma URL de módulo pelo alias ativo.
|
|
7
|
+
* Se alias não fornecido, retorna a URL original.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildModuleUrl(urlTemplate: string, alias?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forlogic-core",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@radix-ui/react-toggle": "^1.1.9",
|
|
75
75
|
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
76
76
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
77
|
-
"@supabase/supabase-js": "^2.
|
|
77
|
+
"@supabase/supabase-js": "^2.100.0",
|
|
78
78
|
"@tanstack/react-query": "^5.83.0",
|
|
79
79
|
"@tiptap/extension-color": "^3.14.0",
|
|
80
80
|
"@tiptap/extension-highlight": "^3.14.0",
|