@consilioweb/payload-support 0.6.2 → 0.6.3

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 (65) hide show
  1. package/dist/components/TicketConversation/components/AISummaryPanel.cjs +77 -0
  2. package/dist/components/TicketConversation/components/AISummaryPanel.js +76 -0
  3. package/dist/components/TicketConversation/components/ActionPanels.cjs +121 -0
  4. package/dist/components/TicketConversation/components/ActionPanels.js +118 -0
  5. package/dist/components/TicketConversation/components/ActivityLog.cjs +24 -0
  6. package/dist/components/TicketConversation/components/ActivityLog.js +23 -0
  7. package/dist/components/TicketConversation/components/ClientBar.cjs +43 -0
  8. package/dist/components/TicketConversation/components/ClientBar.js +42 -0
  9. package/dist/components/TicketConversation/components/ClientHistory.cjs +138 -0
  10. package/dist/components/TicketConversation/components/ClientHistory.js +137 -0
  11. package/dist/components/TicketConversation/components/CodeBlock.cjs +154 -0
  12. package/dist/components/TicketConversation/components/CodeBlock.js +152 -0
  13. package/dist/components/TicketConversation/components/CodeBlockInserter.cjs +156 -0
  14. package/dist/components/TicketConversation/components/CodeBlockInserter.js +155 -0
  15. package/dist/components/TicketConversation/components/QuickActions.cjs +66 -0
  16. package/dist/components/TicketConversation/components/QuickActions.js +65 -0
  17. package/dist/components/TicketConversation/components/TicketHeader.cjs +93 -0
  18. package/dist/components/TicketConversation/components/TicketHeader.js +92 -0
  19. package/dist/components/TicketConversation/components/TimeTrackingPanel.cjs +134 -0
  20. package/dist/components/TicketConversation/components/TimeTrackingPanel.js +133 -0
  21. package/dist/components/TicketConversation/config.cjs +44 -0
  22. package/dist/components/TicketConversation/config.js +41 -0
  23. package/dist/components/TicketConversation/constants.cjs +100 -0
  24. package/dist/components/TicketConversation/constants.js +96 -0
  25. package/dist/components/TicketConversation/context.cjs +13 -0
  26. package/dist/components/TicketConversation/context.js +11 -0
  27. package/dist/components/TicketConversation/hooks/useAI.cjs +177 -0
  28. package/dist/components/TicketConversation/hooks/useAI.js +176 -0
  29. package/dist/components/TicketConversation/hooks/useMessageActions.cjs +136 -0
  30. package/dist/components/TicketConversation/hooks/useMessageActions.js +135 -0
  31. package/dist/components/TicketConversation/hooks/useReply.cjs +188 -0
  32. package/dist/components/TicketConversation/hooks/useReply.js +187 -0
  33. package/dist/components/TicketConversation/hooks/useTicketActions.cjs +231 -0
  34. package/dist/components/TicketConversation/hooks/useTicketActions.js +230 -0
  35. package/dist/components/TicketConversation/hooks/useTimeTracking.cjs +123 -0
  36. package/dist/components/TicketConversation/hooks/useTimeTracking.js +122 -0
  37. package/dist/components/TicketConversation/hooks/useTranslation.cjs +78 -0
  38. package/dist/components/TicketConversation/hooks/useTranslation.js +70 -0
  39. package/dist/components/TicketConversation/index.cjs +1128 -0
  40. package/dist/components/TicketConversation/index.js +1123 -0
  41. package/dist/components/TicketConversation/locales/en.json +878 -0
  42. package/dist/components/TicketConversation/locales/fr.json +878 -0
  43. package/dist/components/TicketConversation/types.cjs +2 -0
  44. package/dist/components/TicketConversation/types.js +2 -0
  45. package/dist/components/TicketConversation/utils.cjs +27 -0
  46. package/dist/components/TicketConversation/utils.js +25 -0
  47. package/dist/styles/BillingView.module.scss +311 -0
  48. package/dist/styles/ChatView.module.scss +438 -0
  49. package/dist/styles/CommandPalette.module.scss +160 -0
  50. package/dist/styles/CrmView.module.scss +554 -0
  51. package/dist/styles/EmailTracking.module.scss +238 -0
  52. package/dist/styles/ImportConversation.module.scss +267 -0
  53. package/dist/styles/Layout.module.scss +55 -0
  54. package/dist/styles/Logs.module.scss +164 -0
  55. package/dist/styles/NewTicket.module.scss +143 -0
  56. package/dist/styles/PendingEmails.module.scss +629 -0
  57. package/dist/styles/SupportDashboard.module.scss +649 -0
  58. package/dist/styles/TicketDetail.module.scss +1050 -0
  59. package/dist/styles/TicketInbox.module.scss +296 -0
  60. package/dist/styles/TicketingSettings.module.scss +358 -0
  61. package/dist/styles/TimeDashboard.module.scss +287 -0
  62. package/dist/styles/_tokens.scss +78 -0
  63. package/dist/{components/TicketConversation.css → styles/theme.css} +326 -13
  64. package/package.json +2 -2
  65. package/dist/components/TicketConversation.js +0 -3004
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,2 @@
1
+ "use client";
2
+
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ function getDateLabel(dateStr) {
4
+ const date = new Date(dateStr);
5
+ const today = /* @__PURE__ */ new Date();
6
+ const yesterday = new Date(today);
7
+ yesterday.setDate(yesterday.getDate() - 1);
8
+ if (date.toDateString() === today.toDateString()) return "Aujourd'hui";
9
+ if (date.toDateString() === yesterday.toDateString()) return "Hier";
10
+ return date.toLocaleDateString("fr-FR", { day: "numeric", month: "short", year: "numeric" });
11
+ }
12
+ function formatMessageDate(dateStr) {
13
+ const date = new Date(dateStr);
14
+ const today = /* @__PURE__ */ new Date();
15
+ const yesterday = new Date(today);
16
+ yesterday.setDate(yesterday.getDate() - 1);
17
+ const time = date.toLocaleTimeString("fr-FR", { hour: "2-digit", minute: "2-digit" });
18
+ if (date.toDateString() === today.toDateString()) return time;
19
+ if (date.toDateString() === yesterday.toDateString()) return `Hier, ${time}`;
20
+ if (date.getFullYear() === today.getFullYear()) {
21
+ return `${date.toLocaleDateString("fr-FR", { day: "numeric", month: "short" })}, ${time}`;
22
+ }
23
+ return `${date.toLocaleDateString("fr-FR", { day: "numeric", month: "short", year: "numeric" })}, ${time}`;
24
+ }
25
+
26
+ exports.formatMessageDate = formatMessageDate;
27
+ exports.getDateLabel = getDateLabel;
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ function getDateLabel(dateStr) {
3
+ const date = new Date(dateStr);
4
+ const today = /* @__PURE__ */ new Date();
5
+ const yesterday = new Date(today);
6
+ yesterday.setDate(yesterday.getDate() - 1);
7
+ if (date.toDateString() === today.toDateString()) return "Aujourd'hui";
8
+ if (date.toDateString() === yesterday.toDateString()) return "Hier";
9
+ return date.toLocaleDateString("fr-FR", { day: "numeric", month: "short", year: "numeric" });
10
+ }
11
+ function formatMessageDate(dateStr) {
12
+ const date = new Date(dateStr);
13
+ const today = /* @__PURE__ */ new Date();
14
+ const yesterday = new Date(today);
15
+ yesterday.setDate(yesterday.getDate() - 1);
16
+ const time = date.toLocaleTimeString("fr-FR", { hour: "2-digit", minute: "2-digit" });
17
+ if (date.toDateString() === today.toDateString()) return time;
18
+ if (date.toDateString() === yesterday.toDateString()) return `Hier, ${time}`;
19
+ if (date.getFullYear() === today.getFullYear()) {
20
+ return `${date.toLocaleDateString("fr-FR", { day: "numeric", month: "short" })}, ${time}`;
21
+ }
22
+ return `${date.toLocaleDateString("fr-FR", { day: "numeric", month: "short", year: "numeric" })}, ${time}`;
23
+ }
24
+
25
+ export { formatMessageDate, getDateLabel };
@@ -0,0 +1,311 @@
1
+ // BillingView — Clean admin aesthetic, 2026
2
+
3
+ .page {
4
+ max-width: 1920px;
5
+ margin: 0 auto;
6
+ padding: 20px 24px 60px;
7
+ font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
8
+ }
9
+
10
+ // Header
11
+ .header {
12
+ display: flex;
13
+ align-items: flex-start;
14
+ justify-content: space-between;
15
+ margin-bottom: 20px;
16
+ }
17
+
18
+ .title {
19
+ font-size: 24px;
20
+ font-weight: 800;
21
+ color: var(--theme-text);
22
+ margin: 0;
23
+ }
24
+
25
+ .subtitle {
26
+ color: var(--theme-elevation-500);
27
+ margin: 4px 0 0;
28
+ font-size: 14px;
29
+ }
30
+
31
+ // Filters
32
+ .filters {
33
+ padding: 16px;
34
+ border: 1px solid var(--theme-elevation-300);
35
+ border-radius: 8px;
36
+ background: var(--theme-elevation-100);
37
+ margin-bottom: 20px;
38
+ }
39
+
40
+ .quickPeriod {
41
+ display: flex;
42
+ gap: 8px;
43
+ margin-bottom: 12px;
44
+ flex-wrap: wrap;
45
+ }
46
+
47
+ .filterRow {
48
+ display: flex;
49
+ gap: 12px;
50
+ align-items: flex-end;
51
+ flex-wrap: wrap;
52
+ }
53
+
54
+ .fieldGroup {
55
+ display: flex;
56
+ flex-direction: column;
57
+ }
58
+
59
+ .label {
60
+ font-size: 12px;
61
+ font-weight: 700;
62
+ color: var(--theme-elevation-500);
63
+ margin-bottom: 4px;
64
+ }
65
+
66
+ .input {
67
+ padding: 10px 12px;
68
+ border-radius: 8px;
69
+ border: 1px solid var(--theme-elevation-300);
70
+ font-size: 14px;
71
+ background: var(--theme-elevation-100);
72
+ color: var(--theme-text);
73
+ transition: border-color 150ms, box-shadow 150ms;
74
+
75
+ &:focus {
76
+ outline: none;
77
+ border-color: #2563eb;
78
+ box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
79
+ }
80
+ }
81
+
82
+ .select {
83
+ composes: input;
84
+ min-width: 180px;
85
+ }
86
+
87
+ .rateRow {
88
+ display: flex;
89
+ align-items: center;
90
+ gap: 4px;
91
+ }
92
+
93
+ .rateInput {
94
+ composes: input;
95
+ width: 80px;
96
+ }
97
+
98
+ .rateUnit {
99
+ font-weight: 700;
100
+ font-size: 14px;
101
+ color: var(--theme-text);
102
+ }
103
+
104
+ // Buttons
105
+ .btn {
106
+ padding: 8px 16px;
107
+ border-radius: 8px;
108
+ border: 1px solid var(--theme-elevation-300);
109
+ color: #fff;
110
+ font-weight: 600;
111
+ font-size: 13px;
112
+ cursor: pointer;
113
+ white-space: nowrap;
114
+ transition: opacity 100ms, background-color 100ms;
115
+
116
+ &:hover { opacity: 0.9; }
117
+ &:disabled {
118
+ cursor: not-allowed;
119
+ opacity: 0.5;
120
+ }
121
+ }
122
+
123
+ .btnPrimary { composes: btn; background: #2563eb; }
124
+ .btnSecondary { composes: btn; background: var(--theme-elevation-100); color: var(--theme-text); }
125
+ .btnAmber { composes: btn; background: #d97706; }
126
+ .btnMuted { composes: btn; background: var(--theme-elevation-150); color: var(--theme-text); }
127
+ .btnGreen { composes: btn; background: #16a34a; }
128
+ .btnSuccess { composes: btn; background: #22c55e; }
129
+
130
+ // Empty state
131
+ .empty {
132
+ padding: 40px;
133
+ text-align: center;
134
+ border: 1px solid var(--theme-elevation-300);
135
+ border-radius: 8px;
136
+ background: var(--theme-elevation-100);
137
+ color: var(--theme-elevation-500);
138
+ font-size: 14px;
139
+ }
140
+
141
+ // Project group card
142
+ .groupCard {
143
+ border: 1px solid var(--theme-elevation-300);
144
+ border-radius: 8px;
145
+ overflow: hidden;
146
+ margin-bottom: 16px;
147
+ }
148
+
149
+ .groupHeader {
150
+ padding: 12px 16px;
151
+ background: var(--theme-elevation-150);
152
+ border-bottom: 1px solid var(--theme-elevation-300);
153
+ display: flex;
154
+ justify-content: space-between;
155
+ align-items: center;
156
+ }
157
+
158
+ .groupName {
159
+ font-weight: 600;
160
+ font-size: 15px;
161
+ color: var(--theme-text);
162
+ }
163
+
164
+ .groupClient {
165
+ color: var(--theme-elevation-500);
166
+ margin-left: 10px;
167
+ font-size: 13px;
168
+ }
169
+
170
+ .groupTotals {
171
+ text-align: right;
172
+ }
173
+
174
+ .groupDuration {
175
+ font-weight: 600;
176
+ font-size: 14px;
177
+ color: var(--theme-text);
178
+ }
179
+
180
+ .groupAmount {
181
+ font-weight: 600;
182
+ font-size: 15px;
183
+ color: var(--theme-text);
184
+ }
185
+
186
+ .groupAmountBilled {
187
+ composes: groupAmount;
188
+ color: #16a34a;
189
+ }
190
+
191
+ .groupAmountStrike {
192
+ font-size: 11px;
193
+ color: var(--theme-elevation-500);
194
+ text-decoration: line-through;
195
+ }
196
+
197
+ // Table
198
+ .table {
199
+ width: 100%;
200
+ border-collapse: collapse;
201
+ font-size: 13px;
202
+ }
203
+
204
+ .th {
205
+ padding: 8px 12px;
206
+ font-weight: 600;
207
+ font-size: 11px;
208
+ text-transform: uppercase;
209
+ letter-spacing: 0.5px;
210
+ text-align: center;
211
+ color: var(--theme-elevation-500);
212
+ background: var(--theme-elevation-50);
213
+ border-bottom: 1px solid var(--theme-elevation-300);
214
+ }
215
+
216
+ .thLeft { composes: th; text-align: left; }
217
+ .thCheckbox { composes: th; width: 40px; }
218
+
219
+ .td {
220
+ padding: 8px 12px;
221
+ text-align: center;
222
+ vertical-align: top;
223
+ color: var(--theme-text);
224
+ }
225
+
226
+ .tdLeft { composes: td; text-align: left; }
227
+
228
+ .tableRow {
229
+ border-bottom: 1px solid var(--theme-elevation-200);
230
+ transition: opacity 200ms, background-color 200ms;
231
+ }
232
+
233
+ .tableRowBilled {
234
+ composes: tableRow;
235
+ background: var(--theme-elevation-100);
236
+ opacity: 0.4;
237
+ }
238
+
239
+ .tableRowEven {
240
+ background: var(--theme-elevation-100);
241
+ }
242
+
243
+ .tableRowOdd {
244
+ background: var(--theme-elevation-50);
245
+ }
246
+
247
+ .checkbox {
248
+ cursor: pointer;
249
+ width: 16px;
250
+ height: 16px;
251
+ accent-color: #2563eb;
252
+ }
253
+
254
+ .ticketLink {
255
+ color: var(--theme-text);
256
+ text-decoration: underline;
257
+ font-weight: 700;
258
+
259
+ &:hover { color: #2563eb; }
260
+ }
261
+
262
+ .strikethrough {
263
+ text-decoration: line-through;
264
+ }
265
+
266
+ .bold {
267
+ font-weight: 700;
268
+ }
269
+
270
+ .secondary {
271
+ color: var(--theme-elevation-500);
272
+ }
273
+
274
+ .billedAmount {
275
+ font-weight: 700;
276
+ color: #16a34a;
277
+ }
278
+
279
+ // Grand total
280
+ .grandTotal {
281
+ padding: 16px;
282
+ border: 1px solid var(--theme-elevation-300);
283
+ border-radius: 8px;
284
+ background: var(--theme-elevation-150);
285
+ display: flex;
286
+ justify-content: space-between;
287
+ align-items: center;
288
+ flex-wrap: wrap;
289
+ gap: 12px;
290
+ }
291
+
292
+ .totalMeta {
293
+ font-size: 13px;
294
+ color: var(--theme-elevation-500);
295
+ }
296
+
297
+ .totalChecked {
298
+ margin-left: 8px;
299
+ color: #16a34a;
300
+ }
301
+
302
+ .totalAmount {
303
+ font-size: 20px;
304
+ font-weight: 600;
305
+ color: var(--theme-text);
306
+ }
307
+
308
+ .totalActions {
309
+ display: flex;
310
+ gap: 8px;
311
+ }