@telamonjs/ui 1.3.0 → 1.4.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/README.md +7 -8
  3. package/dist/components/data/DataTableActions.js +4 -3
  4. package/dist/components/dialog/confirm-action-dialog.js +124 -111
  5. package/dist/data/ExportMenu.js +6 -3
  6. package/dist/data/InfiniteList.js +6 -2
  7. package/dist/data/datatable/sort-field.d.ts +14 -0
  8. package/dist/data/datatable/sort-field.js +24 -0
  9. package/dist/data/datatable/useDataTableInstance.js +3 -2
  10. package/dist/data/exportUtils.d.ts +14 -9
  11. package/dist/data/exportUtils.js +56 -56
  12. package/dist/data/missing-peer.d.ts +17 -0
  13. package/dist/data/missing-peer.js +22 -0
  14. package/dist/data/xlsx-writer.d.ts +24 -0
  15. package/dist/data/xlsx-writer.js +141 -0
  16. package/dist/exports/types-constants.d.ts +1 -1
  17. package/dist/exports/types-constants.js +1 -1
  18. package/dist/i18n/messages/en/data.d.ts +1 -0
  19. package/dist/i18n/messages/en/data.js +1 -0
  20. package/dist/i18n/messages/en/index.d.ts +3 -0
  21. package/dist/i18n/messages/en/queue.d.ts +2 -0
  22. package/dist/i18n/messages/en/queue.js +3 -1
  23. package/dist/i18n/messages/es/data.d.ts +1 -0
  24. package/dist/i18n/messages/es/data.js +1 -0
  25. package/dist/i18n/messages/es/index.d.ts +3 -0
  26. package/dist/i18n/messages/es/queue.d.ts +2 -0
  27. package/dist/i18n/messages/es/queue.js +3 -1
  28. package/dist/i18n/messages/pt-BR/data.d.ts +1 -0
  29. package/dist/i18n/messages/pt-BR/data.js +1 -0
  30. package/dist/i18n/messages/pt-BR/index.d.ts +3 -0
  31. package/dist/i18n/messages/pt-BR/queue.d.ts +2 -0
  32. package/dist/i18n/messages/pt-BR/queue.js +3 -1
  33. package/dist/i18n/use-t.d.ts +3 -0
  34. package/dist/pages/ListPage.js +6 -1
  35. package/dist/queue/components/DispatchJobModal.js +157 -115
  36. package/dist/queue/components/JobEventTimeline.js +321 -210
  37. package/dist/queue/hooks/use-queue-events-timeline.d.ts +7 -1
  38. package/dist/queue/hooks/use-queue-events-timeline.js +14 -43
  39. package/dist/queue/hooks/use-queue-sse.js +3 -1
  40. package/dist/queue/types.d.ts +2 -0
  41. package/dist/server/pagination/factory.js +5 -1
  42. package/dist/server/pagination/types.d.ts +6 -2
  43. package/dist/server/pagination/utils.d.ts +6 -3
  44. package/dist/server/pagination/utils.js +13 -7
  45. package/dist/server/prisma-helpers.d.ts +27 -19
  46. package/dist/server/prisma-helpers.js +37 -19
  47. package/dist/stores/datatable-store.d.ts +0 -4
  48. package/dist/stores/datatable-store.js +0 -5
  49. package/dist/stores/form-store.d.ts +5 -0
  50. package/dist/stores/form-store.js +8 -4
  51. package/dist/stores/index.d.ts +1 -1
  52. package/dist/stores/index.js +1 -3
  53. package/dist/stores/sidebar-store.d.ts +1 -1
  54. package/dist/types/actions.d.ts +4 -1
  55. package/dist/types/crud.d.ts +14 -1
  56. package/dist/types/system-config.d.ts +5 -0
  57. package/dist/ui/chart.d.ts +22 -27
  58. package/dist/ui/chart.js +2 -8
  59. package/dist/ui/form.d.ts +1 -1
  60. package/package.json +67 -64
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telamonjs/ui",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "description": "Admin framework for Next.js + React: declarative CRUD (CrudConfig + TanStack Query), 36-type field system, rich dialogs, app shell, dashboards and charts",
6
6
  "main": "dist/index.js",
@@ -75,66 +75,66 @@
75
75
  "@dnd-kit/sortable": "^10.0.0",
76
76
  "@dnd-kit/utilities": "^3.2.2",
77
77
  "@hookform/resolvers": "^5.2.2",
78
- "@radix-ui/react-accordion": "^1.2.12",
79
- "@radix-ui/react-alert-dialog": "^1.1.15",
80
- "@radix-ui/react-aspect-ratio": "^1.1.7",
81
- "@radix-ui/react-avatar": "^1.1.10",
82
- "@radix-ui/react-checkbox": "^1.3.3",
83
- "@radix-ui/react-collapsible": "^1.1.12",
84
- "@radix-ui/react-dialog": "^1.1.15",
85
- "@radix-ui/react-dropdown-menu": "^2.1.16",
86
- "@radix-ui/react-hover-card": "^1.1.15",
87
- "@radix-ui/react-label": "^2.1.7",
88
- "@radix-ui/react-popover": "^1.1.15",
89
- "@radix-ui/react-progress": "^1.1.7",
90
- "@radix-ui/react-radio-group": "^1.3.8",
91
- "@radix-ui/react-scroll-area": "^1.2.10",
92
- "@radix-ui/react-select": "^2.2.6",
93
- "@radix-ui/react-separator": "^1.1.7",
94
- "@radix-ui/react-slider": "^1.3.6",
95
- "@radix-ui/react-slot": "^1.2.3",
96
- "@radix-ui/react-switch": "^1.2.6",
97
- "@radix-ui/react-tabs": "^1.1.13",
98
- "@radix-ui/react-toast": "^1.2.15",
99
- "@radix-ui/react-toggle": "^1.1.10",
100
- "@radix-ui/react-toggle-group": "^1.1.11",
101
- "@radix-ui/react-tooltip": "^1.2.8",
78
+ "@radix-ui/react-accordion": "^1.3.1",
79
+ "@radix-ui/react-alert-dialog": "^1.2.1",
80
+ "@radix-ui/react-aspect-ratio": "^1.2.0",
81
+ "@radix-ui/react-avatar": "^1.3.1",
82
+ "@radix-ui/react-checkbox": "^1.4.1",
83
+ "@radix-ui/react-collapsible": "^1.2.1",
84
+ "@radix-ui/react-dialog": "^1.3.1",
85
+ "@radix-ui/react-dropdown-menu": "^2.2.1",
86
+ "@radix-ui/react-hover-card": "^1.2.1",
87
+ "@radix-ui/react-label": "^2.1.17",
88
+ "@radix-ui/react-popover": "^1.3.1",
89
+ "@radix-ui/react-progress": "^1.2.1",
90
+ "@radix-ui/react-radio-group": "^1.5.1",
91
+ "@radix-ui/react-scroll-area": "^1.4.0",
92
+ "@radix-ui/react-select": "^2.4.1",
93
+ "@radix-ui/react-separator": "^1.2.0",
94
+ "@radix-ui/react-slider": "^1.6.1",
95
+ "@radix-ui/react-slot": "^1.5.0",
96
+ "@radix-ui/react-switch": "^1.4.1",
97
+ "@radix-ui/react-tabs": "^1.2.1",
98
+ "@radix-ui/react-toast": "^1.3.1",
99
+ "@radix-ui/react-toggle": "^1.2.1",
100
+ "@radix-ui/react-toggle-group": "^1.2.1",
101
+ "@radix-ui/react-tooltip": "^1.4.1",
102
102
  "@react-input/mask": "^2.0.4",
103
103
  "@tanstack/react-table": "^8.21.3",
104
- "@tanstack/react-virtual": "^3.13.12",
105
- "@tiptap/core": "^3.7.2",
106
- "@tiptap/extension-image": "^3.7.2",
107
- "@tiptap/extension-link": "^3.7.2",
108
- "@tiptap/extension-placeholder": "^3.7.2",
109
- "@tiptap/extension-table": "^3.7.2",
110
- "@tiptap/extension-table-cell": "^3.7.2",
111
- "@tiptap/extension-table-header": "^3.7.2",
112
- "@tiptap/extension-table-row": "^3.7.2",
113
- "@tiptap/pm": "^3.7.2",
114
- "@tiptap/react": "^3.7.2",
115
- "@tiptap/starter-kit": "^3.7.2",
116
- "@uiw/react-textarea-code-editor": "^3.1.1",
117
- "@vis.gl/react-google-maps": "^1.5.5",
104
+ "@tanstack/react-virtual": "^3.14.26",
105
+ "@tiptap/core": "^3.35.0",
106
+ "@tiptap/extension-image": "^3.35.0",
107
+ "@tiptap/extension-link": "^3.35.0",
108
+ "@tiptap/extension-placeholder": "^3.35.0",
109
+ "@tiptap/extension-table": "^3.35.0",
110
+ "@tiptap/extension-table-cell": "^3.35.0",
111
+ "@tiptap/extension-table-header": "^3.35.0",
112
+ "@tiptap/extension-table-row": "^3.35.0",
113
+ "@tiptap/pm": "^3.35.0",
114
+ "@tiptap/react": "^3.35.0",
115
+ "@tiptap/starter-kit": "^3.35.0",
116
+ "@uiw/react-textarea-code-editor": "^3.1.3",
117
+ "@vis.gl/react-google-maps": "^1.10.2",
118
118
  "class-variance-authority": "^0.7.1",
119
119
  "clsx": "^2.1.1",
120
120
  "cmdk": "^1.1.1",
121
- "date-fns": "^4.1.0",
122
- "dompurify": "^3.4.11",
121
+ "date-fns": "^4.4.0",
122
+ "dompurify": "^3.4.18",
123
123
  "embla-carousel-react": "^8.6.0",
124
124
  "input-otp": "^1.4.2",
125
125
  "lucide-react": "^0.545.0",
126
126
  "next-themes": "^0.4.6",
127
- "react-aria": "^3.44.0",
127
+ "react-aria": "^3.53.1",
128
128
  "react-day-picker": "^9.11.1",
129
- "react-grid-layout": "^2.2.4",
130
- "react-is": "^19.2.0",
129
+ "react-grid-layout": "^2.3.0",
130
+ "react-is": "^19.3.1",
131
131
  "react-resizable-panels": "^3.0.6",
132
- "react-stately": "^3.42.0",
133
- "recharts": "~3.3.0",
132
+ "react-stately": "^3.51.0",
133
+ "recharts": "~3.11.0",
134
134
  "tailwind-merge": "^3.3.1",
135
135
  "tailwindcss-animate": "^1.0.7",
136
- "zustand": "^5.0.8",
137
- "@telamonjs/logger": "^1.0.2"
136
+ "zustand": "^5.1.0",
137
+ "@telamonjs/logger": "^1.1.0"
138
138
  },
139
139
  "peerDependencies": {
140
140
  "@prisma/client": "^5.0.0 || ^6.0.0",
@@ -143,12 +143,10 @@
143
143
  "jspdf-autotable": "^5.0.7",
144
144
  "next": "^15.5.29 || ^16.4.6",
145
145
  "next-auth": "^5.0.0-beta.20",
146
- "papaparse": "^5.5.0",
147
146
  "react": "^18.0.0 || ^19.0.0",
148
147
  "react-dom": "^18.0.0 || ^19.0.0",
149
148
  "react-hook-form": "^7.0.0",
150
149
  "sonner": "^1.7.1 || ^2.0.7",
151
- "xlsx": "^0.18.0",
152
150
  "zod": "^3.0.0",
153
151
  "next-intl": "^4.14.0",
154
152
  "@tanstack/react-query": "^5.90.2"
@@ -156,6 +154,12 @@
156
154
  "peerDependenciesMeta": {
157
155
  "@prisma/client": {
158
156
  "optional": true
157
+ },
158
+ "jspdf": {
159
+ "optional": true
160
+ },
161
+ "jspdf-autotable": {
162
+ "optional": true
159
163
  }
160
164
  },
161
165
  "devDependencies": {
@@ -167,29 +171,28 @@
167
171
  "@storybook/react": "^8.6.14",
168
172
  "@storybook/react-vite": "^8.6.14",
169
173
  "@storybook/test": "^8.6.14",
170
- "@tanstack/react-query": "^5.100.14",
171
- "@testing-library/dom": "^10.4.1",
174
+ "@tanstack/react-query": "^5.108.2",
175
+ "@testing-library/dom": "^10.4.2",
172
176
  "@testing-library/jest-dom": "^6.9.1",
173
177
  "@testing-library/react": "^16.3.0",
174
- "@testing-library/user-event": "^14.6.1",
178
+ "@testing-library/user-event": "^14.6.13",
175
179
  "@types/node": "^20.19.21",
176
- "@types/papaparse": "^5.3.16",
177
- "@types/react": "^19.2.13",
178
- "@types/react-dom": "^19.2.3",
179
- "@types/react-grid-layout": "^1.3.5",
180
+ "@types/react": "^19.3.0",
181
+ "@types/react-dom": "^19.3.0",
182
+ "@types/react-grid-layout": "^2.1.0",
180
183
  "@vitejs/plugin-react": "^5.0.4",
181
184
  "@vitest/coverage-v8": "^3.2.4",
182
185
  "@vitest/ui": "^3.2.4",
183
- "autoprefixer": "^10.4.21",
186
+ "autoprefixer": "^10.7.0",
184
187
  "framer-motion": "^12.23.24",
185
188
  "jsdom": "^27.0.0",
186
189
  "next": "^15.5.29",
187
- "next-intl": "^4.14.6",
188
- "postcss": "^8.5.6",
189
- "prettier": "^3.6.2",
190
- "react": "^19.2.4",
191
- "react-dom": "^19.2.4",
192
- "react-hook-form": "^7.71.1",
190
+ "next-intl": "^4.15.3",
191
+ "postcss": "^8.5.33",
192
+ "prettier": "^3.10.1",
193
+ "react": "^19.3.1",
194
+ "react-dom": "^19.3.1",
195
+ "react-hook-form": "^7.92.0",
193
196
  "sonner": "^2.0.7",
194
197
  "storybook": "8.6.14",
195
198
  "tailwindcss": "^3.4.17",