forlogic-core 2.1.5 → 2.2.1

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.
Files changed (196) hide show
  1. package/README.md +53 -1
  2. package/dist/action-plans/components/ActionPlanAttachmentsTab.d.ts +3 -0
  3. package/dist/action-plans/components/ActionPlanCommentsTab.d.ts +3 -0
  4. package/dist/action-plans/components/ActionPlanCostTab.d.ts +5 -0
  5. package/dist/action-plans/components/ActionPlanGeneralTab.d.ts +3 -0
  6. package/dist/action-plans/components/ActionPlanHistoryTab.d.ts +3 -0
  7. package/dist/action-plans/components/ActionPlanPredecessorsTab.d.ts +5 -0
  8. package/dist/action-plans/components/ActionPlanProgressDialog.d.ts +3 -0
  9. package/dist/action-plans/components/ActionPlanProgressTab.d.ts +5 -0
  10. package/dist/action-plans/components/ActionPlanStatusBadge.d.ts +3 -0
  11. package/dist/action-plans/constants.d.ts +24 -0
  12. package/dist/action-plans/hooks/useActionPlan.d.ts +5 -0
  13. package/dist/action-plans/hooks/useActionPlanProgress.d.ts +5 -0
  14. package/dist/action-plans/types.d.ts +60 -0
  15. package/dist/action-plans/utils/formatTime.d.ts +9 -0
  16. package/dist/audit-trail/components/AuditTrailDetails.d.ts +10 -0
  17. package/dist/audit-trail/components/AuditTrailFilter.d.ts +10 -0
  18. package/dist/audit-trail/components/AuditTrailPage.d.ts +10 -0
  19. package/dist/audit-trail/types.d.ts +58 -0
  20. package/dist/audit-trail/utils.d.ts +18 -2
  21. package/dist/auth/components/EditProfileDialog.d.ts +1 -0
  22. package/dist/auth/components/ProtectedRoute.d.ts +5 -0
  23. package/dist/auth/contexts/AuthContext.d.ts +5 -0
  24. package/dist/auth/pages/CallbackPage.d.ts +5 -0
  25. package/dist/auth/services/AuthService.d.ts +5 -0
  26. package/dist/auth/services/TokenManager.d.ts +5 -0
  27. package/dist/auth/services/TokenService.d.ts +10 -0
  28. package/dist/auth/utils/ErrorInterceptor.d.ts +5 -0
  29. package/dist/components/dashboards/dashboard-form.d.ts +15 -0
  30. package/dist/components/dashboards/dashboard-general-view.d.ts +15 -0
  31. package/dist/components/dashboards/dashboard-grid.d.ts +25 -0
  32. package/dist/components/dashboards/dashboard-list.d.ts +10 -0
  33. package/dist/components/dashboards/dashboard-panel-renderer.d.ts +10 -0
  34. package/dist/components/dashboards/dashboard-view.d.ts +10 -0
  35. package/dist/components/dashboards/helpers.d.ts +44 -5
  36. package/dist/components/dashboards/panels/burndown-panel.d.ts +15 -0
  37. package/dist/components/dashboards/panels/cartesian-panel.d.ts +20 -0
  38. package/dist/components/dashboards/panels/list-panel.d.ts +15 -0
  39. package/dist/components/dashboards/panels/matrix-risk-panel.d.ts +25 -0
  40. package/dist/components/dashboards/panels/numeric-panel.d.ts +10 -0
  41. package/dist/components/dashboards/panels/panel-error.d.ts +10 -0
  42. package/dist/components/dashboards/panels/panel-header.d.ts +10 -0
  43. package/dist/components/dashboards/panels/panel-loader.d.ts +10 -0
  44. package/dist/components/dashboards/panels/panel-no-data.d.ts +10 -0
  45. package/dist/components/dashboards/panels/panel-unavailable.d.ts +10 -0
  46. package/dist/components/dashboards/panels/pareto-panel.d.ts +10 -0
  47. package/dist/components/dashboards/panels/performance-panel.d.ts +15 -0
  48. package/dist/components/dashboards/panels/pie-panel.d.ts +10 -0
  49. package/dist/components/dashboards/panels/text-panel.d.ts +10 -0
  50. package/dist/components/dashboards/types.d.ts +230 -0
  51. package/dist/components/modules/AccessDeniedDialog.d.ts +3 -1
  52. package/dist/components/modules/ModuleAccessGuard.d.ts +3 -1
  53. package/dist/components/modules/ModulesContent.d.ts +3 -1
  54. package/dist/components/modules/ModulesDialog.d.ts +1 -1
  55. package/dist/components/modules/ModulesFooterCards.d.ts +3 -1
  56. package/dist/components/modules/types.d.ts +2 -0
  57. package/dist/components/ui/accordion.d.ts +35 -0
  58. package/dist/components/ui/action-button.d.ts +5 -0
  59. package/dist/components/ui/alert-dialog.d.ts +82 -0
  60. package/dist/components/ui/alert.d.ts +32 -0
  61. package/dist/components/ui/avatar.d.ts +30 -0
  62. package/dist/components/ui/badge.d.ts +32 -0
  63. package/dist/components/ui/breadcrumb.d.ts +54 -0
  64. package/dist/components/ui/button-group.d.ts +15 -0
  65. package/dist/components/ui/button.d.ts +55 -0
  66. package/dist/components/ui/calendar.d.ts +16 -0
  67. package/dist/components/ui/card.d.ts +49 -0
  68. package/dist/components/ui/chart.d.ts +35 -0
  69. package/dist/components/ui/checkbox.d.ts +11 -0
  70. package/dist/components/ui/collapsible.d.ts +15 -0
  71. package/dist/components/ui/color-picker.d.ts +5 -0
  72. package/dist/components/ui/combo-tree.d.ts +23 -0
  73. package/dist/components/ui/combobox.d.ts +28 -0
  74. package/dist/components/ui/command.d.ts +66 -0
  75. package/dist/components/ui/context-menu.d.ts +95 -0
  76. package/dist/components/ui/date-picker.d.ts +10 -0
  77. package/dist/components/ui/dialog-wizard.d.ts +22 -4
  78. package/dist/components/ui/dialog.d.ts +181 -0
  79. package/dist/components/ui/drawer.d.ts +72 -0
  80. package/dist/components/ui/dropdown-menu.d.ts +153 -0
  81. package/dist/components/ui/electronic-signature-dialog.d.ts +10 -0
  82. package/dist/components/ui/export-dialog.d.ts +20 -0
  83. package/dist/components/ui/form.d.ts +96 -0
  84. package/dist/components/ui/hover-card.d.ts +15 -0
  85. package/dist/components/ui/icon-picker.d.ts +5 -0
  86. package/dist/components/ui/iframe-dialog.d.ts +10 -0
  87. package/dist/components/ui/input-group.d.ts +16 -0
  88. package/dist/components/ui/input.d.ts +5 -0
  89. package/dist/components/ui/menubar.d.ts +80 -0
  90. package/dist/components/ui/multiselect-permissions.d.ts +25 -0
  91. package/dist/components/ui/navigation-menu.d.ts +45 -0
  92. package/dist/components/ui/onboarding-dialog.d.ts +15 -0
  93. package/dist/components/ui/online-editor-dialog.d.ts +10 -0
  94. package/dist/components/ui/pagination.d.ts +53 -0
  95. package/dist/components/ui/popover.d.ts +8 -0
  96. package/dist/components/ui/radio-group.d.ts +3 -0
  97. package/dist/components/ui/report-request-list.d.ts +20 -0
  98. package/dist/components/ui/resizable.d.ts +15 -0
  99. package/dist/components/ui/rich-text-editor.d.ts +13 -0
  100. package/dist/components/ui/scroll-area.d.ts +3 -0
  101. package/dist/components/ui/select.d.ts +71 -0
  102. package/dist/components/ui/separator.d.ts +13 -0
  103. package/dist/components/ui/sheet.d.ts +76 -0
  104. package/dist/components/ui/sidebar.d.ts +203 -0
  105. package/dist/components/ui/skeleton-variants.d.ts +25 -0
  106. package/dist/components/ui/skeleton.d.ts +12 -0
  107. package/dist/components/ui/slider.d.ts +5 -0
  108. package/dist/components/ui/sonner.d.ts +5 -0
  109. package/dist/components/ui/spinner.d.ts +5 -0
  110. package/dist/components/ui/split-button.d.ts +6 -0
  111. package/dist/components/ui/stack.d.ts +5 -0
  112. package/dist/components/ui/status-badge.d.ts +3 -0
  113. package/dist/components/ui/step-selector.d.ts +5 -0
  114. package/dist/components/ui/stimulsoft-viewer.d.ts +8 -0
  115. package/dist/components/ui/switch.d.ts +21 -0
  116. package/dist/components/ui/tab-page-layout.d.ts +33 -0
  117. package/dist/components/ui/table-resize-handle.d.ts +10 -3
  118. package/dist/components/ui/table.d.ts +102 -0
  119. package/dist/components/ui/tabs.d.ts +59 -0
  120. package/dist/components/ui/terms-of-use-dialog.d.ts +50 -4
  121. package/dist/components/ui/textarea.d.ts +27 -0
  122. package/dist/components/ui/timepicker.d.ts +23 -0
  123. package/dist/components/ui/toggle-group.d.ts +25 -0
  124. package/dist/components/ui/toggle.d.ts +21 -0
  125. package/dist/components/ui/tooltip.d.ts +55 -1
  126. package/dist/components/ui/truncated-cell.d.ts +13 -0
  127. package/dist/components/ui/typography.d.ts +119 -0
  128. package/dist/components/ui/updates-notification.d.ts +33 -0
  129. package/dist/components/ui/users-groups-selector.d.ts +43 -0
  130. package/dist/components/ui/viewer-dialog.d.ts +107 -0
  131. package/dist/crud/components/ActionMenuItems.d.ts +5 -0
  132. package/dist/crud/components/BaseForm.d.ts +46 -0
  133. package/dist/crud/components/ColumnSettingsPopover.d.ts +10 -0
  134. package/dist/crud/components/CrudActionBar.d.ts +20 -0
  135. package/dist/crud/components/CrudGrid.d.ts +10 -0
  136. package/dist/crud/components/CrudPagination.d.ts +5 -0
  137. package/dist/crud/components/CrudTable.d.ts +5 -0
  138. package/dist/crud/components/TableRowActions.d.ts +5 -0
  139. package/dist/crud/createCrudPage.d.ts +41 -8
  140. package/dist/crud/generateCrudConfig.d.ts +13 -8
  141. package/dist/crud/hooks/useBaseForm.d.ts +39 -0
  142. package/dist/crud/hooks/useColumnManager.d.ts +25 -0
  143. package/dist/crud/hooks/useCrud.d.ts +35 -0
  144. package/dist/crud/primitives/ActionMenu.d.ts +41 -0
  145. package/dist/crud/primitives/FilterBar.d.ts +45 -0
  146. package/dist/crud/primitives/Pagination.d.ts +5 -0
  147. package/dist/crud/primitives/Table.d.ts +5 -0
  148. package/dist/crud/primitives/TreeTable.d.ts +5 -0
  149. package/dist/crud/primitives/types.d.ts +57 -0
  150. package/dist/crud/utils/routingHelpers.d.ts +11 -0
  151. package/dist/custom-form-fields/components/CustomFormFields.d.ts +3 -0
  152. package/dist/custom-form-fields/fields/FormDateField.d.ts +3 -0
  153. package/dist/custom-form-fields/fields/FormMultiSelectionField.d.ts +3 -0
  154. package/dist/custom-form-fields/fields/FormNumericField.d.ts +3 -0
  155. package/dist/custom-form-fields/fields/FormQuestionsField.d.ts +3 -0
  156. package/dist/custom-form-fields/fields/FormSingleSelectionField.d.ts +3 -0
  157. package/dist/custom-form-fields/fields/FormTextField.d.ts +3 -0
  158. package/dist/custom-form-fields/fields/FormTimeField.d.ts +3 -0
  159. package/dist/custom-form-fields/fields/FormUrlField.d.ts +3 -0
  160. package/dist/custom-form-fields/fields/ReadOnlyTextField.d.ts +3 -0
  161. package/dist/custom-form-fields/types.d.ts +84 -21
  162. package/dist/exports/integrations.d.ts +1 -0
  163. package/dist/file-upload/components/SingleFileUpload.d.ts +59 -0
  164. package/dist/file-upload/types.d.ts +15 -0
  165. package/dist/file-upload/utils/formatBytes.d.ts +5 -0
  166. package/dist/file-upload/utils/getFileExtension.d.ts +5 -0
  167. package/dist/hooks/useColumnResize.d.ts +24 -0
  168. package/dist/hooks/useRowResize.d.ts +18 -0
  169. package/dist/hooks/useSidebarResize.d.ts +18 -0
  170. package/dist/hooks/useUpdatesNotification.d.ts +16 -0
  171. package/dist/index.css +1 -1
  172. package/dist/index.css.map +1 -1
  173. package/dist/index.esm.js +1 -1
  174. package/dist/index.js +1 -1
  175. package/dist/integrations/clarity/clarityTracking.d.ts +31 -0
  176. package/dist/integrations/clarity/index.d.ts +3 -0
  177. package/dist/integrations/clarity/types.d.ts +46 -0
  178. package/dist/integrations/clarity/useClarity.d.ts +34 -0
  179. package/dist/integrations/index.d.ts +5 -0
  180. package/dist/providers/CoreProviders.d.ts +16 -1
  181. package/dist/qualiex/components/QualiexUserField.d.ts +8 -0
  182. package/dist/qualiex/hooks/useQualiexUsers.d.ts +16 -26
  183. package/dist/qualiex/services/qualiexApi.d.ts +38 -2
  184. package/dist/qualiex/utils/QualiexErrorInterceptor.d.ts +5 -0
  185. package/dist/supabase/SupabaseSingleton.d.ts +34 -0
  186. package/dist/types.d.ts +51 -2
  187. package/dist/vite/index.esm.js +4 -1
  188. package/dist/vite/index.js +4 -1
  189. package/docs/STORAGE_BUCKETS.md +384 -0
  190. package/docs/WORKSPACE_KNOWLEDGE.md +1 -0
  191. package/docs/design-system/README.md +1 -1
  192. package/docs/design-system/dialogs.md +2 -0
  193. package/docs/design-system/patterns/core-providers.md +2 -0
  194. package/docs/design-system/selectors.md +4 -0
  195. package/package.json +7 -1
  196. package/dist/components/ui/__tests__/status-badge.test.d.ts +0 -1
package/README.md CHANGED
@@ -1,6 +1,58 @@
1
1
  # forlogic-core
2
2
 
3
- > Biblioteca compartilhada de componentes, hooks, serviços e configuração para projetos Forlogic/Qualiex.
3
+ Shared React component library, hooks, services, and configuration for Forlogic / Qualiex projects. Built on Vite + React 18 + Tailwind + shadcn primitives, opinionated for multi-tenant SaaS with Supabase.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install forlogic-core
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```tsx
14
+ import { CoreProviders, Button } from 'forlogic-core';
15
+ import { setupQualiexCore } from 'forlogic-core/setup';
16
+ import ptBR from './i18n/pt-BR.json';
17
+
18
+ setupQualiexCore(); // injects fonts, favicon, etc.
19
+
20
+ function App() {
21
+ return (
22
+ <CoreProviders moduleAlias="my-module" appTranslations={{ 'pt-BR': ptBR }}>
23
+ <Button variant="primary">Hello</Button>
24
+ </CoreProviders>
25
+ );
26
+ }
27
+ ```
28
+
29
+ `CoreProviders` wires up auth, React Query, i18n and tooltip providers in the right order.
30
+
31
+ ## Modules
32
+
33
+ | Module | What it provides | README |
34
+ |---|---|---|
35
+ | `forlogic-core` (UI) | shadcn-based components (`Button`, `Dialog`, `Combobox`, `Tabs`, ...) | `docs/design-system/` |
36
+ | `forlogic-core` (CRUD) | `createCrudPage`, `CrudTable`, `BaseForm`, services hook | `docs/design-system/crud.md` |
37
+ | `forlogic-core/auth` | OAuth + PKCE, multi-tenant alias routing, `useAuth` | [`lib/auth/README.md`](lib/auth/README.md) |
38
+ | `forlogic-core/services` | `BaseService`, `createSimpleService`, Email, Error | [`lib/services/README.md`](lib/services/README.md) |
39
+ | `forlogic-core/places` | Hierarchical Org Units (UO) selectors and tree view | [`lib/places/README.md`](lib/places/README.md) |
40
+ | `forlogic-core/approval-flow` | Approval sidebar, dialogs and types | [`lib/approval-flow/README.md`](lib/approval-flow/README.md) |
41
+ | `forlogic-core/media` | `VideoEditor`, `ImageEditor` with pluggable upload | [`lib/media/README.md`](lib/media/README.md) |
42
+ | `forlogic-core/integrations` | Clarity, Supabase client | [`lib/integrations/README.md`](lib/integrations/README.md) |
43
+
44
+ ## Modular imports
45
+
46
+ Subpath exports keep bundles lean:
47
+
48
+ ```ts
49
+ import { Button } from 'forlogic-core/ui';
50
+ import { createCrudPage } from 'forlogic-core/crud';
51
+ import { createSecurityHeadersPlugin } from 'forlogic-core/vite';
52
+ import { forlogicTailwindPreset } from 'forlogic-core/tailwind';
53
+ ```
54
+
55
+ The flat `forlogic-core` export re-exports everything for convenience.
4
56
 
5
57
  ---
6
58
 
@@ -13,6 +13,9 @@ interface ActionPlanAttachmentsTabProps {
13
13
  *
14
14
  * Portado de FlcAttachmentsComponent (flc-attachments).
15
15
  * Suporta upload, visualização, download, renomear e exclusão de arquivos.
16
+ *
17
+ * @example
18
+ * ActionPlanAttachmentsTab();
16
19
  */
17
20
  export declare function ActionPlanAttachmentsTab({ attachments, onUpload, onDelete, onRename, onDownload, onView, disabled, }: ActionPlanAttachmentsTabProps): import("react/jsx-runtime").JSX.Element;
18
21
  export {};
@@ -13,6 +13,9 @@ interface ActionPlanCommentsTabProps {
13
13
  *
14
14
  * Portado de FlcCommentsComponent (flc-comments).
15
15
  * Suporta criação, edição e exclusão de comentários com avatar e timestamp.
16
+ *
17
+ * @example
18
+ * ActionPlanCommentsTab();
16
19
  */
17
20
  export declare function ActionPlanCommentsTab({ comments, currentUserId, onAdd, onEdit, onDelete, disabled, maxLength, }: ActionPlanCommentsTabProps): import("react/jsx-runtime").JSX.Element;
18
21
  export {};
@@ -6,5 +6,10 @@ interface ActionPlanCostTabProps {
6
6
  onDelete?: (costId: string) => void;
7
7
  disabled?: boolean;
8
8
  }
9
+ /**
10
+ * Função utilitária `ActionPlanCostTab`.
11
+ * @example
12
+ * ActionPlanCostTab();
13
+ */
9
14
  export declare function ActionPlanCostTab({ costs, onAdd, onEdit, onDelete, disabled, }: ActionPlanCostTabProps): import("react/jsx-runtime").JSX.Element;
10
15
  export {};
@@ -13,6 +13,9 @@ interface ActionPlanGeneralTabProps {
13
13
  /**
14
14
  * Aba Geral do formulário de Plano de Ação
15
15
  * Contém todos os campos principais configuráveis
16
+ *
17
+ * @example
18
+ * ActionPlanGeneralTab();
16
19
  */
17
20
  export declare function ActionPlanGeneralTab({ formData, updateField, disabled, users, places, actionTypes, causes, parentActions, config, }: ActionPlanGeneralTabProps): import("react/jsx-runtime").JSX.Element;
18
21
  export {};
@@ -8,6 +8,9 @@ interface ActionPlanHistoryTabProps {
8
8
  *
9
9
  * Portado de FlcHistoryComponent (flc-history).
10
10
  * Exibe uma timeline de eventos do plano de ação.
11
+ *
12
+ * @example
13
+ * ActionPlanHistoryTab();
11
14
  */
12
15
  export declare function ActionPlanHistoryTab({ history, isLoading, }: ActionPlanHistoryTabProps): import("react/jsx-runtime").JSX.Element;
13
16
  export {};
@@ -6,5 +6,10 @@ interface ActionPlanPredecessorsTabProps {
6
6
  onRemove?: (predecessorId: string) => void;
7
7
  disabled?: boolean;
8
8
  }
9
+ /**
10
+ * Função utilitária `ActionPlanPredecessorsTab`.
11
+ * @example
12
+ * ActionPlanPredecessorsTab();
13
+ */
9
14
  export declare function ActionPlanPredecessorsTab({ predecessors, availablePredecessors, onAdd, onRemove, disabled, }: ActionPlanPredecessorsTabProps): import("react/jsx-runtime").JSX.Element;
10
15
  export {};
@@ -8,6 +8,9 @@ interface ActionPlanProgressDialogProps {
8
8
  }
9
9
  /**
10
10
  * Dialog para editar um relatório de progresso existente
11
+ *
12
+ * @example
13
+ * ActionPlanProgressDialog();
11
14
  */
12
15
  export declare function ActionPlanProgressDialog({ open, onOpenChange, report, onSave, isSubmitting, }: ActionPlanProgressDialogProps): import("react/jsx-runtime").JSX.Element;
13
16
  export {};
@@ -1,5 +1,10 @@
1
1
  import type { ActionPlanPageProps } from '../types';
2
2
  interface ActionPlanProgressTabProps extends ActionPlanPageProps {
3
3
  }
4
+ /**
5
+ * Função utilitária `ActionPlanProgressTab`.
6
+ * @example
7
+ * ActionPlanProgressTab();
8
+ */
4
9
  export declare function ActionPlanProgressTab(props: ActionPlanProgressTabProps): import("react/jsx-runtime").JSX.Element;
5
10
  export {};
@@ -10,6 +10,9 @@ interface ActionPlanStatusBadgeProps {
10
10
  /**
11
11
  * Badge de status do plano de ação com cores dinâmicas.
12
12
  * Wrapper do StatusBadge genérico com mapeamento de ETaskPlanStatus.
13
+ *
14
+ * @example
15
+ * ActionPlanStatusBadge();
13
16
  */
14
17
  export declare function ActionPlanStatusBadge({ status, labels, className, size, showIcon, variant, }: ActionPlanStatusBadgeProps): import("react/jsx-runtime").JSX.Element;
15
18
  export {};
@@ -2,15 +2,24 @@ import { ETaskPlanStatus, ETaskPlanPriority } from './types';
2
2
  /**
3
3
  * Cores de background por status
4
4
  * Portado de FlcActionPlansService.getStatusColorById
5
+ *
6
+ * @example
7
+ * <STATUS_COLORS />
5
8
  */
6
9
  export declare const STATUS_COLORS: Record<ETaskPlanStatus, string>;
7
10
  /**
8
11
  * Cores de texto por status
12
+ *
13
+ * @example
14
+ * <STATUS_TEXT_COLORS />
9
15
  */
10
16
  export declare const STATUS_TEXT_COLORS: Record<ETaskPlanStatus, string>;
11
17
  /**
12
18
  * Mapa de status para chave i18n / identificador
13
19
  * Portado de FlcActionPlansService.getTaskPlanStatusMap
20
+ *
21
+ * @example
22
+ * <STATUS_MAP />
14
23
  */
15
24
  export declare const STATUS_MAP: Record<ETaskPlanStatus, string>;
16
25
  /**
@@ -20,6 +29,9 @@ export declare const STATUS_MAP: Record<ETaskPlanStatus, string>;
20
29
  export declare function getStatusLabels(): Record<ETaskPlanStatus, string>;
21
30
  /**
22
31
  * @deprecated Use getStatusLabels() instead
32
+ *
33
+ * @example
34
+ * <STATUS_LABELS />
23
35
  */
24
36
  export declare const STATUS_LABELS: Record<ETaskPlanStatus, string>;
25
37
  /**
@@ -31,6 +43,9 @@ export declare function getActionTypes(): {
31
43
  }[];
32
44
  /**
33
45
  * @deprecated Use getActionTypes() instead
46
+ *
47
+ * @example
48
+ * <DEFAULT_ACTION_TYPES />
34
49
  */
35
50
  export declare const DEFAULT_ACTION_TYPES: {
36
51
  id: string;
@@ -46,6 +61,9 @@ export declare function getPriorities(): {
46
61
  }[];
47
62
  /**
48
63
  * @deprecated Use getPriorities() instead
64
+ *
65
+ * @example
66
+ * <PRIORITIES />
49
67
  */
50
68
  export declare const PRIORITIES: {
51
69
  id: ETaskPlanPriority;
@@ -54,9 +72,15 @@ export declare const PRIORITIES: {
54
72
  }[];
55
73
  /**
56
74
  * Status considerados "fechados" (não editáveis)
75
+ *
76
+ * @example
77
+ * <CLOSED_STATUSES />
57
78
  */
58
79
  export declare const CLOSED_STATUSES: ETaskPlanStatus[];
59
80
  /**
60
81
  * Status que permitem reporte de progresso
82
+ *
83
+ * @example
84
+ * <PROGRESS_ALLOWED_STATUSES />
61
85
  */
62
86
  export declare const PROGRESS_ALLOWED_STATUSES: ETaskPlanStatus[];
@@ -1,4 +1,9 @@
1
1
  import type { ActionPlan, ActionPlanPageProps, ETaskPlanStatus } from '../types';
2
+ /**
3
+ * Função utilitária `useActionPlan`.
4
+ * @example
5
+ * useActionPlan();
6
+ */
2
7
  export declare function useActionPlan(props: ActionPlanPageProps): {
3
8
  formData: Partial<ActionPlan>;
4
9
  isLoading: boolean;
@@ -1,4 +1,9 @@
1
1
  import type { ActionPlanReport, ActionPlanPageProps } from '../types';
2
+ /**
3
+ * Função utilitária `useActionPlanProgress`.
4
+ * @example
5
+ * useActionPlanProgress();
6
+ */
2
7
  export declare function useActionPlanProgress(props: ActionPlanPageProps): {
3
8
  progress: import("..").ActionPlanProgress;
4
9
  canReportProgress: boolean;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Status do plano de ação
3
3
  * Portado de EQexTaskPlanStatus / EFlcTaskPlanStatus
4
+ *
5
+ * @example
6
+ * const v = ETaskPlanStatus;
4
7
  */
5
8
  export declare enum ETaskPlanStatus {
6
9
  waitingStart = 1,
@@ -13,6 +16,9 @@ export declare enum ETaskPlanStatus {
13
16
  /**
14
17
  * Prioridade do plano de ação
15
18
  * Portado de EQexTaskPlanPriorityType
19
+ *
20
+ * @example
21
+ * const v = ETaskPlanPriority;
16
22
  */
17
23
  export declare enum ETaskPlanPriority {
18
24
  low = 0,
@@ -22,6 +28,9 @@ export declare enum ETaskPlanPriority {
22
28
  /**
23
29
  * Tipo de associação do plano de ação
24
30
  * Portado de EQexTaskPlanAssociationType
31
+ *
32
+ * @example
33
+ * const v = ETaskPlanAssociationType;
25
34
  */
26
35
  export declare enum ETaskPlanAssociationType {
27
36
  plan = 2,
@@ -37,6 +46,9 @@ export declare enum ETaskPlanAssociationType {
37
46
  /**
38
47
  * Tipo de progresso
39
48
  * Portado de EQexTaskPlanTypeProgress
49
+ *
50
+ * @example
51
+ * const v = ETaskPlanTypeProgress;
40
52
  */
41
53
  export declare enum ETaskPlanTypeProgress {
42
54
  currentProgress = 1,
@@ -44,6 +56,9 @@ export declare enum ETaskPlanTypeProgress {
44
56
  }
45
57
  /**
46
58
  * Relatório individual de progresso
59
+ *
60
+ * @example
61
+ * const value: ActionPlanReport = {} as ActionPlanReport;
47
62
  */
48
63
  export interface ActionPlanReport {
49
64
  id: string;
@@ -63,6 +78,9 @@ export interface ActionPlanReport {
63
78
  }
64
79
  /**
65
80
  * Dados de progresso do plano de ação
81
+ *
82
+ * @example
83
+ * const value: ActionPlanProgress = {} as ActionPlanProgress;
66
84
  */
67
85
  export interface ActionPlanProgress {
68
86
  id: string;
@@ -75,6 +93,9 @@ export interface ActionPlanProgress {
75
93
  }
76
94
  /**
77
95
  * Plano de ação principal
96
+ *
97
+ * @example
98
+ * const value: ActionPlan = {} as ActionPlan;
78
99
  */
79
100
  export interface ActionPlan {
80
101
  id: string;
@@ -112,6 +133,9 @@ export interface ActionPlan {
112
133
  /**
113
134
  * Configuração de campos obrigatórios/visíveis
114
135
  * Portado de IQexRequiredFieldsPlanTask
136
+ *
137
+ * @example
138
+ * const value: ActionPlanRequiredFields = {} as ActionPlanRequiredFields;
115
139
  */
116
140
  export interface ActionPlanRequiredFields {
117
141
  responsibleWho?: boolean;
@@ -143,6 +167,9 @@ export interface ActionPlanRequiredFields {
143
167
  /**
144
168
  * Permissões para planos de ação
145
169
  * Portado de IQexPlansPermissions
170
+ *
171
+ * @example
172
+ * const value: ActionPlanPermissions = {} as ActionPlanPermissions;
146
173
  */
147
174
  export interface ActionPlanPermissions {
148
175
  canCreateActionPlans: boolean;
@@ -170,6 +197,9 @@ export interface ActionPlanPermissions {
170
197
  }
171
198
  /**
172
199
  * Configuração do formulário de plano de ação
200
+ *
201
+ * @example
202
+ * const value: ActionPlanFormConfig = {} as ActionPlanFormConfig;
173
203
  */
174
204
  export interface ActionPlanFormConfig {
175
205
  isCheckerRequired?: boolean;
@@ -192,6 +222,9 @@ export interface ActionPlanFormConfig {
192
222
  }
193
223
  /**
194
224
  * Item de custo do plano de ação
225
+ *
226
+ * @example
227
+ * const value: ActionPlanCost = {} as ActionPlanCost;
195
228
  */
196
229
  export interface ActionPlanCost {
197
230
  id: string;
@@ -203,6 +236,9 @@ export interface ActionPlanCost {
203
236
  }
204
237
  /**
205
238
  * Item predecessor
239
+ *
240
+ * @example
241
+ * const value: ActionPlanPredecessor = {} as ActionPlanPredecessor;
206
242
  */
207
243
  export interface ActionPlanPredecessor {
208
244
  id: string;
@@ -215,6 +251,9 @@ export interface ActionPlanPredecessor {
215
251
  }
216
252
  /**
217
253
  * Opção genérica para selects (tipo, causa, etc.)
254
+ *
255
+ * @example
256
+ * const value: ActionPlanOption = {} as ActionPlanOption;
218
257
  */
219
258
  export interface ActionPlanOption {
220
259
  id: string;
@@ -222,6 +261,9 @@ export interface ActionPlanOption {
222
261
  }
223
262
  /**
224
263
  * Opção de usuário para combobox
264
+ *
265
+ * @example
266
+ * const value: ActionPlanUser = {} as ActionPlanUser;
225
267
  */
226
268
  export interface ActionPlanUser {
227
269
  id: string;
@@ -231,6 +273,9 @@ export interface ActionPlanUser {
231
273
  }
232
274
  /**
233
275
  * Opção de local para combo tree
276
+ *
277
+ * @example
278
+ * const value: ActionPlanPlace = {} as ActionPlanPlace;
234
279
  */
235
280
  export interface ActionPlanPlace {
236
281
  id: string;
@@ -241,6 +286,9 @@ export interface ActionPlanPlace {
241
286
  /**
242
287
  * Comentário individual
243
288
  * Portado de IFlcComment
289
+ *
290
+ * @example
291
+ * const value: ActionPlanComment = {} as ActionPlanComment;
244
292
  */
245
293
  export interface ActionPlanComment {
246
294
  id: string;
@@ -258,6 +306,9 @@ export interface ActionPlanComment {
258
306
  /**
259
307
  * Item de histórico / audit trail
260
308
  * Portado de IFlcTrail
309
+ *
310
+ * @example
311
+ * const value: ActionPlanHistoryItem = {} as ActionPlanHistoryItem;
261
312
  */
262
313
  export interface ActionPlanHistoryItem {
263
314
  id: string;
@@ -273,6 +324,9 @@ export interface ActionPlanHistoryItem {
273
324
  }
274
325
  /**
275
326
  * Status do item de anexo
327
+ *
328
+ * @example
329
+ * const v = EAttachmentItemStatus;
276
330
  */
277
331
  export declare enum EAttachmentItemStatus {
278
332
  uploading = "uploading",
@@ -285,6 +339,9 @@ export declare enum EAttachmentItemStatus {
285
339
  /**
286
340
  * Item de anexo
287
341
  * Portado de IFlcAttachmentItem
342
+ *
343
+ * @example
344
+ * const value: ActionPlanAttachment = {} as ActionPlanAttachment;
288
345
  */
289
346
  export interface ActionPlanAttachment {
290
347
  id: string;
@@ -298,6 +355,9 @@ export interface ActionPlanAttachment {
298
355
  }
299
356
  /**
300
357
  * Props do componente ActionPlanPage
358
+ *
359
+ * @example
360
+ * const value: ActionPlanPageProps = {} as ActionPlanPageProps;
301
361
  */
302
362
  export interface ActionPlanPageProps {
303
363
  /** Dados do plano de ação (null/undefined para novo) */
@@ -1,15 +1,24 @@
1
1
  /**
2
2
  * Formata string de tempo para HH:MM
3
3
  * Portado de FlcActionPlansService.formatTimeProgress
4
+ *
5
+ * @example
6
+ * formatTimeProgress();
4
7
  */
5
8
  export declare function formatTimeProgress(valueTimeProgress: string | undefined): string;
6
9
  /**
7
10
  * Formata valor numérico de tempo para HH:MM
8
11
  * Portado de FlcActionPlansService.formatTime
12
+ *
13
+ * @example
14
+ * formatTime();
9
15
  */
10
16
  export declare function formatTime(value: string | null | undefined): string;
11
17
  /**
12
18
  * Cor dinâmica da barra de progresso
13
19
  * Portado de FlcActionPlansProgressComponent.dynamicColor
20
+ *
21
+ * @example
22
+ * getProgressColor();
14
23
  */
15
24
  export declare function getProgressColor(value: number): string;
@@ -5,6 +5,11 @@
5
5
  */
6
6
  import type { AuditTrailDetails as AuditTrailDetailsType } from '../types';
7
7
  import type { AuditTrailLabels } from '../utils';
8
+ /**
9
+ * Tipo `AuditTrailDetailsProps` exportado pela lib.
10
+ * @example
11
+ * const value: AuditTrailDetailsProps = {} as AuditTrailDetailsProps;
12
+ */
8
13
  export interface AuditTrailDetailsProps {
9
14
  documentId: string | null;
10
15
  onFetchDetails: (documentId: string) => Promise<AuditTrailDetailsType>;
@@ -14,4 +19,9 @@ export interface AuditTrailDetailsProps {
14
19
  translatePropertyValue?: (eventName: string, propertyResource: string, value: string) => string | null;
15
20
  formatDate?: (date: string) => string;
16
21
  }
22
+ /**
23
+ * Função utilitária `AuditTrailDetails`.
24
+ * @example
25
+ * AuditTrailDetails();
26
+ */
17
27
  export declare function AuditTrailDetails({ documentId, onFetchDetails, onClose, labels, translateProperty, translatePropertyValue, formatDate, }: AuditTrailDetailsProps): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,11 @@
4
4
  * Ported from flc-audit-trail-filter (v2) and qex-audit-trail-readable-filter (v1)
5
5
  */
6
6
  import type { AuditTrailEvent, AuditTrailQueryParams, AuditTrailSoftware, AuditTrailUserOption, AuditTrailPermissions } from '../types';
7
+ /**
8
+ * Tipo `AuditTrailFilterProps` exportado pela lib.
9
+ * @example
10
+ * const value: AuditTrailFilterProps = {} as AuditTrailFilterProps;
11
+ */
7
12
  export interface AuditTrailFilterProps {
8
13
  queryParams: AuditTrailQueryParams;
9
14
  events: AuditTrailEvent[];
@@ -16,4 +21,9 @@ export interface AuditTrailFilterProps {
16
21
  onExport?: (format: 'csv' | 'pdf' | 'xlsx') => void;
17
22
  onSoftwareChange?: (softwareId: number) => void;
18
23
  }
24
+ /**
25
+ * Função utilitária `AuditTrailFilter`.
26
+ * @example
27
+ * AuditTrailFilter();
28
+ */
19
29
  export declare function AuditTrailFilter({ queryParams, events, softwares, users, permissions, isLoading, onFilter, onReset, onExport, onSoftwareChange, }: AuditTrailFilterProps): import("react/jsx-runtime").JSX.Element;
@@ -5,6 +5,11 @@
5
5
  */
6
6
  import type { AuditTrailCallbacks, AuditTrailPermissions, AuditTrailSoftware } from '../types';
7
7
  import type { AuditTrailLabels } from '../utils';
8
+ /**
9
+ * Tipo `AuditTrailPageProps` exportado pela lib.
10
+ * @example
11
+ * const value: AuditTrailPageProps = {} as AuditTrailPageProps;
12
+ */
8
13
  export interface AuditTrailPageProps {
9
14
  /** Page title */
10
15
  title?: string;
@@ -27,4 +32,9 @@ export interface AuditTrailPageProps {
27
32
  /** Anonymous user label */
28
33
  anonymousLabel?: string;
29
34
  }
35
+ /**
36
+ * Função utilitária `AuditTrailPage`.
37
+ * @example
38
+ * AuditTrailPage();
39
+ */
30
40
  export declare function AuditTrailPage({ title, softwares, softwareId: initialSoftwareId, permissions, callbacks, limit, currentUserId, labels, formatDate, anonymousLabel, }: AuditTrailPageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Audit Trail Types
3
3
  * Ported from Angular v1 (qex-audit-trail-readable) and v2 (flc-audit-trail)
4
+ *
5
+ * @example
6
+ * const value: AuditTrail = {} as AuditTrail;
4
7
  */
5
8
  export interface AuditTrail {
6
9
  documentId: string;
@@ -40,6 +43,11 @@ export interface AuditTrailDetails {
40
43
  ip: string;
41
44
  entities: AuditTrailEntity[];
42
45
  }
46
+ /**
47
+ * Tipo `AuditTrailEntity` exportado pela lib.
48
+ * @example
49
+ * const value: AuditTrailEntity = {} as AuditTrailEntity;
50
+ */
43
51
  export interface AuditTrailEntity {
44
52
  id: string;
45
53
  code: string;
@@ -59,6 +67,11 @@ export interface AuditTrailEntity {
59
67
  justification?: string;
60
68
  equipmentType?: string;
61
69
  }
70
+ /**
71
+ * Tipo `AuditTrailChangedProperty` exportado pela lib.
72
+ * @example
73
+ * const value: AuditTrailChangedProperty = {} as AuditTrailChangedProperty;
74
+ */
62
75
  export interface AuditTrailChangedProperty {
63
76
  property: string;
64
77
  propertyCustomName?: string;
@@ -71,12 +84,22 @@ export interface AuditTrailChangedProperty {
71
84
  oldValueTagTranslate?: string;
72
85
  details?: any;
73
86
  }
87
+ /**
88
+ * Tipo `AuditTrailExtraProperty` exportado pela lib.
89
+ * @example
90
+ * const value: AuditTrailExtraProperty = {} as AuditTrailExtraProperty;
91
+ */
74
92
  export interface AuditTrailExtraProperty {
75
93
  property: string;
76
94
  value: string;
77
95
  data?: any;
78
96
  translate?: boolean;
79
97
  }
98
+ /**
99
+ * Tipo `AuditTrailAssociation` exportado pela lib.
100
+ * @example
101
+ * const value: AuditTrailAssociation = {} as AuditTrailAssociation;
102
+ */
80
103
  export interface AuditTrailAssociation {
81
104
  id: string;
82
105
  code: string;
@@ -87,18 +110,33 @@ export interface AuditTrailAssociation {
87
110
  type?: number | string;
88
111
  association?: AuditTrailAssociation[];
89
112
  }
113
+ /**
114
+ * Tipo `AuditTrailEvent` exportado pela lib.
115
+ * @example
116
+ * const value: AuditTrailEvent = {} as AuditTrailEvent;
117
+ */
90
118
  export interface AuditTrailEvent {
91
119
  id: number;
92
120
  name: string;
93
121
  translation: string;
94
122
  softwareId: number;
95
123
  }
124
+ /**
125
+ * Tipo `AuditTrailSoftware` exportado pela lib.
126
+ * @example
127
+ * const value: AuditTrailSoftware = {} as AuditTrailSoftware;
128
+ */
96
129
  export interface AuditTrailSoftware {
97
130
  id: number;
98
131
  name: string;
99
132
  software: string;
100
133
  translation: string;
101
134
  }
135
+ /**
136
+ * Tipo `AuditTrailQueryParams` exportado pela lib.
137
+ * @example
138
+ * const value: AuditTrailQueryParams = {} as AuditTrailQueryParams;
139
+ */
102
140
  export interface AuditTrailQueryParams {
103
141
  software: string;
104
142
  softwareId: number;
@@ -111,21 +149,41 @@ export interface AuditTrailQueryParams {
111
149
  userId?: string;
112
150
  entityId?: string;
113
151
  }
152
+ /**
153
+ * Tipo `AuditTrailPermissions` exportado pela lib.
154
+ * @example
155
+ * const value: AuditTrailPermissions = {} as AuditTrailPermissions;
156
+ */
114
157
  export interface AuditTrailPermissions {
115
158
  viewAllEvents: boolean;
116
159
  viewOnlyMyEvents: boolean;
117
160
  download: boolean;
118
161
  }
162
+ /**
163
+ * Tipo `AuditTrailUserOption` exportado pela lib.
164
+ * @example
165
+ * const value: AuditTrailUserOption = {} as AuditTrailUserOption;
166
+ */
119
167
  export interface AuditTrailUserOption {
120
168
  id: string;
121
169
  name: string;
122
170
  email?: string;
123
171
  avatar?: string;
124
172
  }
173
+ /**
174
+ * Tipo `AuditTrailDetailRow` exportado pela lib.
175
+ * @example
176
+ * const value: AuditTrailDetailRow = {} as AuditTrailDetailRow;
177
+ */
125
178
  export interface AuditTrailDetailRow {
126
179
  name: string;
127
180
  value: string;
128
181
  }
182
+ /**
183
+ * Tipo `AuditTrailCallbacks` exportado pela lib.
184
+ * @example
185
+ * const value: AuditTrailCallbacks = {} as AuditTrailCallbacks;
186
+ */
129
187
  export interface AuditTrailCallbacks {
130
188
  /** Fetch trail list based on query params */
131
189
  onFetchTrails: (params: AuditTrailQueryParams) => Promise<{