@esic-lab/data-core-ui 0.0.35 → 0.0.37
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/dist/index.cjs +4084 -0
- package/dist/index.d.cts +573 -0
- package/dist/index.d.mts +1 -63
- package/dist/index.d.ts +1 -63
- package/dist/index.js +242 -988
- package/dist/index.mjs +225 -990
- package/package.json +2 -10
package/dist/index.mjs
CHANGED
|
@@ -1,479 +1,3 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
-
mod
|
|
25
|
-
));
|
|
26
|
-
|
|
27
|
-
// node_modules/dayjs/dayjs.min.js
|
|
28
|
-
var require_dayjs_min = __commonJS({
|
|
29
|
-
"node_modules/dayjs/dayjs.min.js"(exports, module) {
|
|
30
|
-
"use strict";
|
|
31
|
-
!(function(t, e) {
|
|
32
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
33
|
-
})(exports, (function() {
|
|
34
|
-
"use strict";
|
|
35
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
36
|
-
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
37
|
-
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
38
|
-
} }, m = function(t2, e2, n2) {
|
|
39
|
-
var r2 = String(t2);
|
|
40
|
-
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
41
|
-
}, v = { s: m, z: function(t2) {
|
|
42
|
-
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
43
|
-
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
44
|
-
}, m: function t2(e2, n2) {
|
|
45
|
-
if (e2.date() < n2.date()) return -t2(n2, e2);
|
|
46
|
-
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
|
47
|
-
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
48
|
-
}, a: function(t2) {
|
|
49
|
-
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
50
|
-
}, p: function(t2) {
|
|
51
|
-
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
52
|
-
}, u: function(t2) {
|
|
53
|
-
return void 0 === t2;
|
|
54
|
-
} }, g = "en", D = {};
|
|
55
|
-
D[g] = M;
|
|
56
|
-
var p = "$isDayjsObject", S = function(t2) {
|
|
57
|
-
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
58
|
-
}, w = function t2(e2, n2, r2) {
|
|
59
|
-
var i2;
|
|
60
|
-
if (!e2) return g;
|
|
61
|
-
if ("string" == typeof e2) {
|
|
62
|
-
var s2 = e2.toLowerCase();
|
|
63
|
-
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
64
|
-
var u2 = e2.split("-");
|
|
65
|
-
if (!i2 && u2.length > 1) return t2(u2[0]);
|
|
66
|
-
} else {
|
|
67
|
-
var a2 = e2.name;
|
|
68
|
-
D[a2] = e2, i2 = a2;
|
|
69
|
-
}
|
|
70
|
-
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
71
|
-
}, O = function(t2, e2) {
|
|
72
|
-
if (S(t2)) return t2.clone();
|
|
73
|
-
var n2 = "object" == typeof e2 ? e2 : {};
|
|
74
|
-
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
75
|
-
}, b = v;
|
|
76
|
-
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
77
|
-
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
78
|
-
};
|
|
79
|
-
var _ = (function() {
|
|
80
|
-
function M2(t2) {
|
|
81
|
-
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
82
|
-
}
|
|
83
|
-
var m2 = M2.prototype;
|
|
84
|
-
return m2.parse = function(t2) {
|
|
85
|
-
this.$d = (function(t3) {
|
|
86
|
-
var e2 = t3.date, n2 = t3.utc;
|
|
87
|
-
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
88
|
-
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
89
|
-
if (e2 instanceof Date) return new Date(e2);
|
|
90
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
91
|
-
var r2 = e2.match($);
|
|
92
|
-
if (r2) {
|
|
93
|
-
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
94
|
-
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return new Date(e2);
|
|
98
|
-
})(t2), this.init();
|
|
99
|
-
}, m2.init = function() {
|
|
100
|
-
var t2 = this.$d;
|
|
101
|
-
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
102
|
-
}, m2.$utils = function() {
|
|
103
|
-
return b;
|
|
104
|
-
}, m2.isValid = function() {
|
|
105
|
-
return !(this.$d.toString() === l);
|
|
106
|
-
}, m2.isSame = function(t2, e2) {
|
|
107
|
-
var n2 = O(t2);
|
|
108
|
-
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
109
|
-
}, m2.isAfter = function(t2, e2) {
|
|
110
|
-
return O(t2) < this.startOf(e2);
|
|
111
|
-
}, m2.isBefore = function(t2, e2) {
|
|
112
|
-
return this.endOf(e2) < O(t2);
|
|
113
|
-
}, m2.$g = function(t2, e2, n2) {
|
|
114
|
-
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
115
|
-
}, m2.unix = function() {
|
|
116
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
117
|
-
}, m2.valueOf = function() {
|
|
118
|
-
return this.$d.getTime();
|
|
119
|
-
}, m2.startOf = function(t2, e2) {
|
|
120
|
-
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
121
|
-
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
122
|
-
return r2 ? i2 : i2.endOf(a);
|
|
123
|
-
}, $2 = function(t3, e3) {
|
|
124
|
-
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
125
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
126
|
-
switch (f2) {
|
|
127
|
-
case h:
|
|
128
|
-
return r2 ? l2(1, 0) : l2(31, 11);
|
|
129
|
-
case c:
|
|
130
|
-
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
131
|
-
case o:
|
|
132
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
133
|
-
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
134
|
-
case a:
|
|
135
|
-
case d:
|
|
136
|
-
return $2(v2 + "Hours", 0);
|
|
137
|
-
case u:
|
|
138
|
-
return $2(v2 + "Minutes", 1);
|
|
139
|
-
case s:
|
|
140
|
-
return $2(v2 + "Seconds", 2);
|
|
141
|
-
case i:
|
|
142
|
-
return $2(v2 + "Milliseconds", 3);
|
|
143
|
-
default:
|
|
144
|
-
return this.clone();
|
|
145
|
-
}
|
|
146
|
-
}, m2.endOf = function(t2) {
|
|
147
|
-
return this.startOf(t2, false);
|
|
148
|
-
}, m2.$set = function(t2, e2) {
|
|
149
|
-
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
150
|
-
if (o2 === c || o2 === h) {
|
|
151
|
-
var y2 = this.clone().set(d, 1);
|
|
152
|
-
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
153
|
-
} else l2 && this.$d[l2]($2);
|
|
154
|
-
return this.init(), this;
|
|
155
|
-
}, m2.set = function(t2, e2) {
|
|
156
|
-
return this.clone().$set(t2, e2);
|
|
157
|
-
}, m2.get = function(t2) {
|
|
158
|
-
return this[b.p(t2)]();
|
|
159
|
-
}, m2.add = function(r2, f2) {
|
|
160
|
-
var d2, l2 = this;
|
|
161
|
-
r2 = Number(r2);
|
|
162
|
-
var $2 = b.p(f2), y2 = function(t2) {
|
|
163
|
-
var e2 = O(l2);
|
|
164
|
-
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
165
|
-
};
|
|
166
|
-
if ($2 === c) return this.set(c, this.$M + r2);
|
|
167
|
-
if ($2 === h) return this.set(h, this.$y + r2);
|
|
168
|
-
if ($2 === a) return y2(1);
|
|
169
|
-
if ($2 === o) return y2(7);
|
|
170
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
171
|
-
return b.w(m3, this);
|
|
172
|
-
}, m2.subtract = function(t2, e2) {
|
|
173
|
-
return this.add(-1 * t2, e2);
|
|
174
|
-
}, m2.format = function(t2) {
|
|
175
|
-
var e2 = this, n2 = this.$locale();
|
|
176
|
-
if (!this.isValid()) return n2.invalidDate || l;
|
|
177
|
-
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
178
|
-
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
179
|
-
}, d2 = function(t3) {
|
|
180
|
-
return b.s(s2 % 12 || 12, t3, "0");
|
|
181
|
-
}, $2 = f2 || function(t3, e3, n3) {
|
|
182
|
-
var r3 = t3 < 12 ? "AM" : "PM";
|
|
183
|
-
return n3 ? r3.toLowerCase() : r3;
|
|
184
|
-
};
|
|
185
|
-
return r2.replace(y, (function(t3, r3) {
|
|
186
|
-
return r3 || (function(t4) {
|
|
187
|
-
switch (t4) {
|
|
188
|
-
case "YY":
|
|
189
|
-
return String(e2.$y).slice(-2);
|
|
190
|
-
case "YYYY":
|
|
191
|
-
return b.s(e2.$y, 4, "0");
|
|
192
|
-
case "M":
|
|
193
|
-
return a2 + 1;
|
|
194
|
-
case "MM":
|
|
195
|
-
return b.s(a2 + 1, 2, "0");
|
|
196
|
-
case "MMM":
|
|
197
|
-
return h2(n2.monthsShort, a2, c2, 3);
|
|
198
|
-
case "MMMM":
|
|
199
|
-
return h2(c2, a2);
|
|
200
|
-
case "D":
|
|
201
|
-
return e2.$D;
|
|
202
|
-
case "DD":
|
|
203
|
-
return b.s(e2.$D, 2, "0");
|
|
204
|
-
case "d":
|
|
205
|
-
return String(e2.$W);
|
|
206
|
-
case "dd":
|
|
207
|
-
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
208
|
-
case "ddd":
|
|
209
|
-
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
210
|
-
case "dddd":
|
|
211
|
-
return o2[e2.$W];
|
|
212
|
-
case "H":
|
|
213
|
-
return String(s2);
|
|
214
|
-
case "HH":
|
|
215
|
-
return b.s(s2, 2, "0");
|
|
216
|
-
case "h":
|
|
217
|
-
return d2(1);
|
|
218
|
-
case "hh":
|
|
219
|
-
return d2(2);
|
|
220
|
-
case "a":
|
|
221
|
-
return $2(s2, u2, true);
|
|
222
|
-
case "A":
|
|
223
|
-
return $2(s2, u2, false);
|
|
224
|
-
case "m":
|
|
225
|
-
return String(u2);
|
|
226
|
-
case "mm":
|
|
227
|
-
return b.s(u2, 2, "0");
|
|
228
|
-
case "s":
|
|
229
|
-
return String(e2.$s);
|
|
230
|
-
case "ss":
|
|
231
|
-
return b.s(e2.$s, 2, "0");
|
|
232
|
-
case "SSS":
|
|
233
|
-
return b.s(e2.$ms, 3, "0");
|
|
234
|
-
case "Z":
|
|
235
|
-
return i2;
|
|
236
|
-
}
|
|
237
|
-
return null;
|
|
238
|
-
})(t3) || i2.replace(":", "");
|
|
239
|
-
}));
|
|
240
|
-
}, m2.utcOffset = function() {
|
|
241
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
242
|
-
}, m2.diff = function(r2, d2, l2) {
|
|
243
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
244
|
-
return b.m(y2, m3);
|
|
245
|
-
};
|
|
246
|
-
switch (M3) {
|
|
247
|
-
case h:
|
|
248
|
-
$2 = D2() / 12;
|
|
249
|
-
break;
|
|
250
|
-
case c:
|
|
251
|
-
$2 = D2();
|
|
252
|
-
break;
|
|
253
|
-
case f:
|
|
254
|
-
$2 = D2() / 3;
|
|
255
|
-
break;
|
|
256
|
-
case o:
|
|
257
|
-
$2 = (g2 - v2) / 6048e5;
|
|
258
|
-
break;
|
|
259
|
-
case a:
|
|
260
|
-
$2 = (g2 - v2) / 864e5;
|
|
261
|
-
break;
|
|
262
|
-
case u:
|
|
263
|
-
$2 = g2 / n;
|
|
264
|
-
break;
|
|
265
|
-
case s:
|
|
266
|
-
$2 = g2 / e;
|
|
267
|
-
break;
|
|
268
|
-
case i:
|
|
269
|
-
$2 = g2 / t;
|
|
270
|
-
break;
|
|
271
|
-
default:
|
|
272
|
-
$2 = g2;
|
|
273
|
-
}
|
|
274
|
-
return l2 ? $2 : b.a($2);
|
|
275
|
-
}, m2.daysInMonth = function() {
|
|
276
|
-
return this.endOf(c).$D;
|
|
277
|
-
}, m2.$locale = function() {
|
|
278
|
-
return D[this.$L];
|
|
279
|
-
}, m2.locale = function(t2, e2) {
|
|
280
|
-
if (!t2) return this.$L;
|
|
281
|
-
var n2 = this.clone(), r2 = w(t2, e2, true);
|
|
282
|
-
return r2 && (n2.$L = r2), n2;
|
|
283
|
-
}, m2.clone = function() {
|
|
284
|
-
return b.w(this.$d, this);
|
|
285
|
-
}, m2.toDate = function() {
|
|
286
|
-
return new Date(this.valueOf());
|
|
287
|
-
}, m2.toJSON = function() {
|
|
288
|
-
return this.isValid() ? this.toISOString() : null;
|
|
289
|
-
}, m2.toISOString = function() {
|
|
290
|
-
return this.$d.toISOString();
|
|
291
|
-
}, m2.toString = function() {
|
|
292
|
-
return this.$d.toUTCString();
|
|
293
|
-
}, M2;
|
|
294
|
-
})(), k = _.prototype;
|
|
295
|
-
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach((function(t2) {
|
|
296
|
-
k[t2[1]] = function(e2) {
|
|
297
|
-
return this.$g(e2, t2[0], t2[1]);
|
|
298
|
-
};
|
|
299
|
-
})), O.extend = function(t2, e2) {
|
|
300
|
-
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
301
|
-
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
302
|
-
return O(1e3 * t2);
|
|
303
|
-
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
304
|
-
}));
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
// node_modules/dayjs/locale/th.js
|
|
309
|
-
var require_th = __commonJS({
|
|
310
|
-
"node_modules/dayjs/locale/th.js"(exports, module) {
|
|
311
|
-
"use strict";
|
|
312
|
-
!(function(_, e) {
|
|
313
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = e(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], e) : (_ = "undefined" != typeof globalThis ? globalThis : _ || self).dayjs_locale_th = e(_.dayjs);
|
|
314
|
-
})(exports, (function(_) {
|
|
315
|
-
"use strict";
|
|
316
|
-
function e(_2) {
|
|
317
|
-
return _2 && "object" == typeof _2 && "default" in _2 ? _2 : { default: _2 };
|
|
318
|
-
}
|
|
319
|
-
var t = e(_), d = { name: "th", weekdays: "\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"), weekdaysShort: "\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"), weekdaysMin: "\u0E2D\u0E32._\u0E08._\u0E2D._\u0E1E._\u0E1E\u0E24._\u0E28._\u0E2A.".split("_"), months: "\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21_\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C_\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21_\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19_\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21_\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19_\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21_\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21_\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19_\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21_\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19_\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21".split("_"), monthsShort: "\u0E21.\u0E04._\u0E01.\u0E1E._\u0E21\u0E35.\u0E04._\u0E40\u0E21.\u0E22._\u0E1E.\u0E04._\u0E21\u0E34.\u0E22._\u0E01.\u0E04._\u0E2A.\u0E04._\u0E01.\u0E22._\u0E15.\u0E04._\u0E1E.\u0E22._\u0E18.\u0E04.".split("_"), formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm", LLLL: "\u0E27\u0E31\u0E19dddd\u0E17\u0E35\u0E48 D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm" }, relativeTime: { future: "\u0E2D\u0E35\u0E01 %s", past: "%s\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27", s: "\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35", m: "1 \u0E19\u0E32\u0E17\u0E35", mm: "%d \u0E19\u0E32\u0E17\u0E35", h: "1 \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", hh: "%d \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", d: "1 \u0E27\u0E31\u0E19", dd: "%d \u0E27\u0E31\u0E19", M: "1 \u0E40\u0E14\u0E37\u0E2D\u0E19", MM: "%d \u0E40\u0E14\u0E37\u0E2D\u0E19", y: "1 \u0E1B\u0E35", yy: "%d \u0E1B\u0E35" }, ordinal: function(_2) {
|
|
320
|
-
return _2 + ".";
|
|
321
|
-
} };
|
|
322
|
-
return t.default.locale(d, null, true), d;
|
|
323
|
-
}));
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
|
|
327
|
-
// node_modules/dayjs/plugin/buddhistEra.js
|
|
328
|
-
var require_buddhistEra = __commonJS({
|
|
329
|
-
"node_modules/dayjs/plugin/buddhistEra.js"(exports, module) {
|
|
330
|
-
"use strict";
|
|
331
|
-
!(function(t, e) {
|
|
332
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_buddhistEra = e();
|
|
333
|
-
})(exports, (function() {
|
|
334
|
-
"use strict";
|
|
335
|
-
return function(t, e) {
|
|
336
|
-
var n = e.prototype, i = n.format;
|
|
337
|
-
n.format = function(t2) {
|
|
338
|
-
var e2 = this, n2 = (t2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/(\[[^\]]+])|BBBB|BB/g, (function(t3, n3) {
|
|
339
|
-
var i2, o = String(e2.$y + 543), f = "BB" === t3 ? [o.slice(-2), 2] : [o, 4];
|
|
340
|
-
return n3 || (i2 = e2.$utils()).s.apply(i2, f.concat(["0"]));
|
|
341
|
-
}));
|
|
342
|
-
return i.bind(this)(n2);
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
}));
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
|
|
349
|
-
// node_modules/dayjs/plugin/customParseFormat.js
|
|
350
|
-
var require_customParseFormat = __commonJS({
|
|
351
|
-
"node_modules/dayjs/plugin/customParseFormat.js"(exports, module) {
|
|
352
|
-
"use strict";
|
|
353
|
-
!(function(e, t) {
|
|
354
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
|
|
355
|
-
})(exports, (function() {
|
|
356
|
-
"use strict";
|
|
357
|
-
var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
|
|
358
|
-
return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
|
|
359
|
-
};
|
|
360
|
-
var f = function(e2) {
|
|
361
|
-
return function(t2) {
|
|
362
|
-
this[e2] = +t2;
|
|
363
|
-
};
|
|
364
|
-
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
|
|
365
|
-
(this.zone || (this.zone = {})).offset = (function(e3) {
|
|
366
|
-
if (!e3) return 0;
|
|
367
|
-
if ("Z" === e3) return 0;
|
|
368
|
-
var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
|
|
369
|
-
return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
|
|
370
|
-
})(e2);
|
|
371
|
-
}], u = function(e2) {
|
|
372
|
-
var t2 = s[e2];
|
|
373
|
-
return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
|
|
374
|
-
}, d = function(e2, t2) {
|
|
375
|
-
var n2, r2 = s.meridiem;
|
|
376
|
-
if (r2) {
|
|
377
|
-
for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
|
|
378
|
-
n2 = i2 > 12;
|
|
379
|
-
break;
|
|
380
|
-
}
|
|
381
|
-
} else n2 = e2 === (t2 ? "pm" : "PM");
|
|
382
|
-
return n2;
|
|
383
|
-
}, c = { A: [o, function(e2) {
|
|
384
|
-
this.afternoon = d(e2, false);
|
|
385
|
-
}], a: [o, function(e2) {
|
|
386
|
-
this.afternoon = d(e2, true);
|
|
387
|
-
}], Q: [n, function(e2) {
|
|
388
|
-
this.month = 3 * (e2 - 1) + 1;
|
|
389
|
-
}], S: [n, function(e2) {
|
|
390
|
-
this.milliseconds = 100 * +e2;
|
|
391
|
-
}], SS: [r, function(e2) {
|
|
392
|
-
this.milliseconds = 10 * +e2;
|
|
393
|
-
}], SSS: [/\d{3}/, function(e2) {
|
|
394
|
-
this.milliseconds = +e2;
|
|
395
|
-
}], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r, f("day")], Do: [o, function(e2) {
|
|
396
|
-
var t2 = s.ordinal, n2 = e2.match(/\d+/);
|
|
397
|
-
if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
|
|
398
|
-
}], w: [i, f("week")], ww: [r, f("week")], M: [i, f("month")], MM: [r, f("month")], MMM: [o, function(e2) {
|
|
399
|
-
var t2 = u("months"), n2 = (u("monthsShort") || t2.map((function(e3) {
|
|
400
|
-
return e3.slice(0, 3);
|
|
401
|
-
}))).indexOf(e2) + 1;
|
|
402
|
-
if (n2 < 1) throw new Error();
|
|
403
|
-
this.month = n2 % 12 || n2;
|
|
404
|
-
}], MMMM: [o, function(e2) {
|
|
405
|
-
var t2 = u("months").indexOf(e2) + 1;
|
|
406
|
-
if (t2 < 1) throw new Error();
|
|
407
|
-
this.month = t2 % 12 || t2;
|
|
408
|
-
}], Y: [/[+-]?\d+/, f("year")], YY: [r, function(e2) {
|
|
409
|
-
this.year = a(e2);
|
|
410
|
-
}], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
|
|
411
|
-
function l(n2) {
|
|
412
|
-
var r2, i2;
|
|
413
|
-
r2 = n2, i2 = s && s.formats;
|
|
414
|
-
for (var o2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t2, n3, r3) {
|
|
415
|
-
var o3 = r3 && r3.toUpperCase();
|
|
416
|
-
return n3 || i2[r3] || e[r3] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e2, t3, n4) {
|
|
417
|
-
return t3 || n4.slice(1);
|
|
418
|
-
}));
|
|
419
|
-
}))).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
|
|
420
|
-
var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
|
|
421
|
-
o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
|
|
422
|
-
}
|
|
423
|
-
return function(e2) {
|
|
424
|
-
for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
|
|
425
|
-
var i3 = o2[n3];
|
|
426
|
-
if ("string" == typeof i3) r3 += i3.length;
|
|
427
|
-
else {
|
|
428
|
-
var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = s2.exec(h3)[0];
|
|
429
|
-
f3.call(t2, u3), e2 = e2.replace(u3, "");
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
return (function(e3) {
|
|
433
|
-
var t3 = e3.afternoon;
|
|
434
|
-
if (void 0 !== t3) {
|
|
435
|
-
var n4 = e3.hours;
|
|
436
|
-
t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
|
|
437
|
-
}
|
|
438
|
-
})(t2), t2;
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
return function(e2, t2, n2) {
|
|
442
|
-
n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
|
|
443
|
-
var r2 = t2.prototype, i2 = r2.parse;
|
|
444
|
-
r2.parse = function(e3) {
|
|
445
|
-
var t3 = e3.date, r3 = e3.utc, o2 = e3.args;
|
|
446
|
-
this.$u = r3;
|
|
447
|
-
var a2 = o2[1];
|
|
448
|
-
if ("string" == typeof a2) {
|
|
449
|
-
var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
|
|
450
|
-
h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = (function(e4, t4, n3, r4) {
|
|
451
|
-
try {
|
|
452
|
-
if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
|
|
453
|
-
var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
|
|
454
|
-
o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
|
|
455
|
-
var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
|
|
456
|
-
return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r4(D).week(m2).toDate()), D);
|
|
457
|
-
} catch (e5) {
|
|
458
|
-
return /* @__PURE__ */ new Date("");
|
|
459
|
-
}
|
|
460
|
-
})(t3, a2, r3, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
461
|
-
} else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
|
|
462
|
-
o2[1] = a2[m - 1];
|
|
463
|
-
var M = n2.apply(this, o2);
|
|
464
|
-
if (M.isValid()) {
|
|
465
|
-
this.$d = M.$d, this.$L = M.$L, this.init();
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
|
|
469
|
-
}
|
|
470
|
-
else i2.call(this, e3);
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
}));
|
|
474
|
-
}
|
|
475
|
-
});
|
|
476
|
-
|
|
477
1
|
// src/Button/PrimaryButton/PrimaryButton.tsx
|
|
478
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
479
3
|
function PrimaryButton({
|
|
@@ -1355,48 +879,24 @@ function InputFieldNumber({
|
|
|
1355
879
|
);
|
|
1356
880
|
}
|
|
1357
881
|
|
|
1358
|
-
// src/
|
|
1359
|
-
|
|
1360
|
-
var import_th2 = __toESM(require_th());
|
|
1361
|
-
var import_buddhistEra = __toESM(require_buddhistEra());
|
|
1362
|
-
import { ConfigProvider as ConfigProvider5, DatePicker } from "antd";
|
|
1363
|
-
import th from "antd/es/date-picker/locale/th_TH.js";
|
|
1364
|
-
import thTH from "antd/locale/th_TH.js";
|
|
1365
|
-
import { th as thFns } from "date-fns/locale";
|
|
1366
|
-
import { format } from "date-fns";
|
|
882
|
+
// src/ColorPicker/ColorPickerBasic/ColorPicker.tsx
|
|
883
|
+
import { ConfigProvider as ConfigProvider5, ColorPicker } from "antd";
|
|
1367
884
|
import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1368
|
-
|
|
1369
|
-
function DatePickerBasic({
|
|
885
|
+
function ColorPickerBasic({
|
|
1370
886
|
value,
|
|
1371
887
|
onChange,
|
|
1372
888
|
required,
|
|
1373
889
|
label,
|
|
1374
890
|
error,
|
|
1375
|
-
placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48",
|
|
1376
891
|
disabled,
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
maxDate,
|
|
1380
|
-
disabledDate,
|
|
892
|
+
allowClear,
|
|
893
|
+
defaultFormat,
|
|
1381
894
|
className,
|
|
1382
|
-
|
|
895
|
+
placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E35"
|
|
1383
896
|
}) {
|
|
1384
|
-
const dateFormat = "DD/MM/YYYY";
|
|
1385
|
-
import_dayjs.default.locale("th_TH");
|
|
1386
|
-
const buddhistLocale = {
|
|
1387
|
-
...th,
|
|
1388
|
-
lang: {
|
|
1389
|
-
...th.lang,
|
|
1390
|
-
fieldDateFormat: "BBBB-MM-DD",
|
|
1391
|
-
fieldDateTimeFormat: "BBBB-MM-DD HH:mm:ss",
|
|
1392
|
-
yearFormat: "BBBB",
|
|
1393
|
-
cellYearFormat: "BBBB"
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
897
|
return /* @__PURE__ */ jsx23(
|
|
1397
898
|
ConfigProvider5,
|
|
1398
899
|
{
|
|
1399
|
-
locale: thTH,
|
|
1400
900
|
theme: {
|
|
1401
901
|
token: {
|
|
1402
902
|
fontFamily: "Kanit",
|
|
@@ -1410,267 +910,6 @@ function DatePickerBasic({
|
|
|
1410
910
|
required && /* @__PURE__ */ jsx23("span", { className: "text-red-500", children: "*" })
|
|
1411
911
|
] }),
|
|
1412
912
|
/* @__PURE__ */ jsx23(
|
|
1413
|
-
DatePicker,
|
|
1414
|
-
{
|
|
1415
|
-
className: `body-1 w-full ${className ?? ""}`,
|
|
1416
|
-
value,
|
|
1417
|
-
placeholder,
|
|
1418
|
-
onChange,
|
|
1419
|
-
allowClear: true,
|
|
1420
|
-
disabled,
|
|
1421
|
-
format: (date) => date ? format(date.toDate(), "dd/MM/yyyy", { locale: thFns }).replace(
|
|
1422
|
-
/\d{4}$/,
|
|
1423
|
-
(y) => String(parseInt(y) + 543)
|
|
1424
|
-
) : "",
|
|
1425
|
-
defaultValue,
|
|
1426
|
-
disabledDate: (d) => disabledDate ? disabledDate(d.toDate()) : false,
|
|
1427
|
-
minDate: minDate ? (0, import_dayjs.default)(minDate) : void 0,
|
|
1428
|
-
maxDate: maxDate ? (0, import_dayjs.default)(maxDate) : void 0,
|
|
1429
|
-
size,
|
|
1430
|
-
locale: buddhistLocale
|
|
1431
|
-
}
|
|
1432
|
-
),
|
|
1433
|
-
error && /* @__PURE__ */ jsx23("p", { className: "text-red-500 caption-1", children: error })
|
|
1434
|
-
] })
|
|
1435
|
-
}
|
|
1436
|
-
);
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
// src/DatePicker/DatePickerRangePicker/DatePickerRangePicker.tsx
|
|
1440
|
-
var import_th3 = __toESM(require_th());
|
|
1441
|
-
var import_customParseFormat = __toESM(require_customParseFormat());
|
|
1442
|
-
var import_dayjs2 = __toESM(require_dayjs_min());
|
|
1443
|
-
import { ConfigProvider as ConfigProvider6, DatePicker as DatePicker2 } from "antd";
|
|
1444
|
-
import thTH2 from "antd/locale/th_TH.js";
|
|
1445
|
-
import th2 from "antd/es/date-picker/locale/th_TH.js";
|
|
1446
|
-
import { format as format2 } from "date-fns";
|
|
1447
|
-
import { th as thFns2 } from "date-fns/locale";
|
|
1448
|
-
import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1449
|
-
import_dayjs2.default.extend(import_customParseFormat.default);
|
|
1450
|
-
function DatePickerRangePicker({
|
|
1451
|
-
value,
|
|
1452
|
-
onChange,
|
|
1453
|
-
placeholder = ["\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
|
|
1454
|
-
label,
|
|
1455
|
-
required,
|
|
1456
|
-
error,
|
|
1457
|
-
disabled,
|
|
1458
|
-
minDate,
|
|
1459
|
-
maxDate,
|
|
1460
|
-
disabledDate,
|
|
1461
|
-
size = "middle",
|
|
1462
|
-
className,
|
|
1463
|
-
onOpenChange,
|
|
1464
|
-
onCalendarChange
|
|
1465
|
-
}) {
|
|
1466
|
-
const dateFormat = "DD/MM/YYYY";
|
|
1467
|
-
import_dayjs2.default.locale("th_TH");
|
|
1468
|
-
const buddhistLocale = {
|
|
1469
|
-
...th2,
|
|
1470
|
-
lang: {
|
|
1471
|
-
...th2.lang,
|
|
1472
|
-
fieldDateFormat: "BBBB-MM-DD",
|
|
1473
|
-
fieldDateTimeFormat: "BBBB-MM-DD HH:mm:ss",
|
|
1474
|
-
yearFormat: "BBBB",
|
|
1475
|
-
cellYearFormat: "BBBB"
|
|
1476
|
-
}
|
|
1477
|
-
};
|
|
1478
|
-
return /* @__PURE__ */ jsx24(
|
|
1479
|
-
ConfigProvider6,
|
|
1480
|
-
{
|
|
1481
|
-
locale: thTH2,
|
|
1482
|
-
theme: {
|
|
1483
|
-
token: {
|
|
1484
|
-
fontFamily: "Kanit",
|
|
1485
|
-
fontSize: 16
|
|
1486
|
-
}
|
|
1487
|
-
},
|
|
1488
|
-
children: /* @__PURE__ */ jsxs20("div", { className: "container-input", children: [
|
|
1489
|
-
/* @__PURE__ */ jsxs20("div", { children: [
|
|
1490
|
-
/* @__PURE__ */ jsx24("span", { className: "body-1", children: label }),
|
|
1491
|
-
" ",
|
|
1492
|
-
required && /* @__PURE__ */ jsx24("span", { className: "text-red-500", children: "*" })
|
|
1493
|
-
] }),
|
|
1494
|
-
/* @__PURE__ */ jsx24(
|
|
1495
|
-
DatePicker2.RangePicker,
|
|
1496
|
-
{
|
|
1497
|
-
format: (date) => date ? format2(date.toDate(), "dd/MM/yyyy", { locale: thFns2 }).replace(
|
|
1498
|
-
/\d{4}$/,
|
|
1499
|
-
(y) => String(parseInt(y) + 543)
|
|
1500
|
-
) : "",
|
|
1501
|
-
value: value ? [value[0] ? (0, import_dayjs2.default)(value[0]) : null, value[1] ? (0, import_dayjs2.default)(value[1]) : null] : null,
|
|
1502
|
-
placeholder,
|
|
1503
|
-
className: `body-1 w-full ${className ?? ""}`,
|
|
1504
|
-
onChange: (dates, dateStrings) => {
|
|
1505
|
-
if (!dates) {
|
|
1506
|
-
onChange(null);
|
|
1507
|
-
} else {
|
|
1508
|
-
onChange([dates[0] ? dates[0].toDate() : null, dates[1] ? dates[1].toDate() : null]);
|
|
1509
|
-
}
|
|
1510
|
-
},
|
|
1511
|
-
allowClear: true,
|
|
1512
|
-
disabled,
|
|
1513
|
-
minDate: minDate ? (0, import_dayjs2.default)(minDate) : void 0,
|
|
1514
|
-
maxDate: maxDate ? (0, import_dayjs2.default)(maxDate) : void 0,
|
|
1515
|
-
disabledDate: (d) => disabledDate ? disabledDate(d.toDate()) : false,
|
|
1516
|
-
size,
|
|
1517
|
-
onOpenChange,
|
|
1518
|
-
onCalendarChange: (dates, dateStrings, info) => {
|
|
1519
|
-
if (!dates) {
|
|
1520
|
-
onCalendarChange?.([null, null], dateStrings, info);
|
|
1521
|
-
} else {
|
|
1522
|
-
onCalendarChange?.(
|
|
1523
|
-
[dates[0] ? dates[0].toDate() : null, dates[1] ? dates[1].toDate() : null],
|
|
1524
|
-
dateStrings,
|
|
1525
|
-
info
|
|
1526
|
-
);
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
locale: buddhistLocale
|
|
1530
|
-
}
|
|
1531
|
-
),
|
|
1532
|
-
error && /* @__PURE__ */ jsx24("p", { className: "text-red-500 caption-1", children: error })
|
|
1533
|
-
] })
|
|
1534
|
-
}
|
|
1535
|
-
);
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
// src/TimePicker/TimePickerBasic/TimePickerBasic.tsx
|
|
1539
|
-
var import_dayjs3 = __toESM(require_dayjs_min());
|
|
1540
|
-
import { ConfigProvider as ConfigProvider7, TimePicker } from "antd";
|
|
1541
|
-
import thTH3 from "antd/locale/th_TH.js";
|
|
1542
|
-
import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1543
|
-
function TimePickerBasic({
|
|
1544
|
-
value,
|
|
1545
|
-
onChange,
|
|
1546
|
-
required,
|
|
1547
|
-
label,
|
|
1548
|
-
error,
|
|
1549
|
-
placeholder,
|
|
1550
|
-
disabled,
|
|
1551
|
-
className
|
|
1552
|
-
}) {
|
|
1553
|
-
return /* @__PURE__ */ jsx25(
|
|
1554
|
-
ConfigProvider7,
|
|
1555
|
-
{
|
|
1556
|
-
locale: thTH3,
|
|
1557
|
-
theme: {
|
|
1558
|
-
token: {
|
|
1559
|
-
fontFamily: "Kanit"
|
|
1560
|
-
}
|
|
1561
|
-
},
|
|
1562
|
-
children: /* @__PURE__ */ jsxs21("div", { className: "container-input", children: [
|
|
1563
|
-
/* @__PURE__ */ jsxs21("div", { children: [
|
|
1564
|
-
/* @__PURE__ */ jsx25("span", { className: "body-1", children: label }),
|
|
1565
|
-
" ",
|
|
1566
|
-
required && /* @__PURE__ */ jsx25("span", { className: "text-red-500", children: "*" })
|
|
1567
|
-
] }),
|
|
1568
|
-
/* @__PURE__ */ jsx25(
|
|
1569
|
-
TimePicker,
|
|
1570
|
-
{
|
|
1571
|
-
format: "HH:mm",
|
|
1572
|
-
className: `body-1 w-full ${className ?? ""}`,
|
|
1573
|
-
value: value ? (0, import_dayjs3.default)(value) : null,
|
|
1574
|
-
placeholder,
|
|
1575
|
-
onChange: (time) => {
|
|
1576
|
-
onChange(time ? time.toDate() : null);
|
|
1577
|
-
},
|
|
1578
|
-
allowClear: true,
|
|
1579
|
-
disabled
|
|
1580
|
-
}
|
|
1581
|
-
),
|
|
1582
|
-
error && /* @__PURE__ */ jsx25("p", { className: "text-red-500 caption-1", children: error })
|
|
1583
|
-
] })
|
|
1584
|
-
}
|
|
1585
|
-
);
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
// src/TimePicker/TimePickerRangePicker/TimerPickerRangePicker.tsx
|
|
1589
|
-
var import_dayjs4 = __toESM(require_dayjs_min());
|
|
1590
|
-
import { ConfigProvider as ConfigProvider8, TimePicker as TimePicker2 } from "antd";
|
|
1591
|
-
import thTH4 from "antd/locale/th_TH.js";
|
|
1592
|
-
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1593
|
-
function TimePickerRangePicker({
|
|
1594
|
-
value,
|
|
1595
|
-
onChange,
|
|
1596
|
-
placeholder = ["\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
|
|
1597
|
-
label,
|
|
1598
|
-
required,
|
|
1599
|
-
error,
|
|
1600
|
-
disabled,
|
|
1601
|
-
className
|
|
1602
|
-
}) {
|
|
1603
|
-
return /* @__PURE__ */ jsx26(
|
|
1604
|
-
ConfigProvider8,
|
|
1605
|
-
{
|
|
1606
|
-
locale: thTH4,
|
|
1607
|
-
theme: {
|
|
1608
|
-
token: {
|
|
1609
|
-
fontFamily: "Kanit"
|
|
1610
|
-
}
|
|
1611
|
-
},
|
|
1612
|
-
children: /* @__PURE__ */ jsxs22("div", { className: "container-input", children: [
|
|
1613
|
-
/* @__PURE__ */ jsxs22("div", { children: [
|
|
1614
|
-
/* @__PURE__ */ jsx26("span", { className: "body-1", children: label }),
|
|
1615
|
-
" ",
|
|
1616
|
-
required && /* @__PURE__ */ jsx26("span", { className: "text-red-500", children: "*" })
|
|
1617
|
-
] }),
|
|
1618
|
-
/* @__PURE__ */ jsx26(
|
|
1619
|
-
TimePicker2.RangePicker,
|
|
1620
|
-
{
|
|
1621
|
-
format: "HH:mm",
|
|
1622
|
-
value: value ? [value[0] ? (0, import_dayjs4.default)(value[0]) : null, value[1] ? (0, import_dayjs4.default)(value[1]) : null] : null,
|
|
1623
|
-
placeholder,
|
|
1624
|
-
className: `body-1 w-full ${className ?? ""}`,
|
|
1625
|
-
onChange: (dates, dateStrings) => {
|
|
1626
|
-
if (!dates) {
|
|
1627
|
-
onChange(null);
|
|
1628
|
-
} else {
|
|
1629
|
-
onChange([dates[0] ? dates[0].toDate() : null, dates[1] ? dates[1].toDate() : null]);
|
|
1630
|
-
}
|
|
1631
|
-
},
|
|
1632
|
-
allowClear: true,
|
|
1633
|
-
disabled,
|
|
1634
|
-
showNow: true
|
|
1635
|
-
}
|
|
1636
|
-
),
|
|
1637
|
-
error && /* @__PURE__ */ jsx26("p", { className: "text-red-500 caption-1", children: error })
|
|
1638
|
-
] })
|
|
1639
|
-
}
|
|
1640
|
-
);
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
// src/ColorPicker/ColorPickerBasic/ColorPicker.tsx
|
|
1644
|
-
import { ConfigProvider as ConfigProvider9, ColorPicker } from "antd";
|
|
1645
|
-
import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1646
|
-
function ColorPickerBasic({
|
|
1647
|
-
value,
|
|
1648
|
-
onChange,
|
|
1649
|
-
required,
|
|
1650
|
-
label,
|
|
1651
|
-
error,
|
|
1652
|
-
disabled,
|
|
1653
|
-
allowClear,
|
|
1654
|
-
defaultFormat,
|
|
1655
|
-
className,
|
|
1656
|
-
placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E35"
|
|
1657
|
-
}) {
|
|
1658
|
-
return /* @__PURE__ */ jsx27(
|
|
1659
|
-
ConfigProvider9,
|
|
1660
|
-
{
|
|
1661
|
-
theme: {
|
|
1662
|
-
token: {
|
|
1663
|
-
fontFamily: "Kanit",
|
|
1664
|
-
fontSize: 16
|
|
1665
|
-
}
|
|
1666
|
-
},
|
|
1667
|
-
children: /* @__PURE__ */ jsxs23("div", { className: "container-input", children: [
|
|
1668
|
-
/* @__PURE__ */ jsxs23("div", { children: [
|
|
1669
|
-
/* @__PURE__ */ jsx27("span", { className: "body-1", children: label }),
|
|
1670
|
-
" ",
|
|
1671
|
-
required && /* @__PURE__ */ jsx27("span", { className: "text-red-500", children: "*" })
|
|
1672
|
-
] }),
|
|
1673
|
-
/* @__PURE__ */ jsx27(
|
|
1674
913
|
ColorPicker,
|
|
1675
914
|
{
|
|
1676
915
|
defaultFormat,
|
|
@@ -1682,9 +921,9 @@ function ColorPickerBasic({
|
|
|
1682
921
|
showText: (color) => {
|
|
1683
922
|
const hex = color.toHexString();
|
|
1684
923
|
if (!value) {
|
|
1685
|
-
return /* @__PURE__ */
|
|
924
|
+
return /* @__PURE__ */ jsx23("span", { children: placeholder });
|
|
1686
925
|
}
|
|
1687
|
-
return /* @__PURE__ */
|
|
926
|
+
return /* @__PURE__ */ jsxs19("span", { children: [
|
|
1688
927
|
"(",
|
|
1689
928
|
hex,
|
|
1690
929
|
")"
|
|
@@ -1693,14 +932,14 @@ function ColorPickerBasic({
|
|
|
1693
932
|
disabled
|
|
1694
933
|
}
|
|
1695
934
|
),
|
|
1696
|
-
error && /* @__PURE__ */
|
|
935
|
+
error && /* @__PURE__ */ jsx23("p", { className: "text-red-500 caption-1", children: error })
|
|
1697
936
|
] })
|
|
1698
937
|
}
|
|
1699
938
|
);
|
|
1700
939
|
}
|
|
1701
940
|
|
|
1702
941
|
// src/ColorPicker/ColorPalettePickerBasic/ColorPalettePickerBasic.tsx
|
|
1703
|
-
import { ConfigProvider as
|
|
942
|
+
import { ConfigProvider as ConfigProvider6, ColorPicker as ColorPicker2, theme } from "antd";
|
|
1704
943
|
|
|
1705
944
|
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
1706
945
|
function _typeof(o) {
|
|
@@ -2402,7 +1641,7 @@ var greyDark = ["#151515", "#1f1f1f", "#2d2d2d", "#393939", "#494949", "#5a5a5a"
|
|
|
2402
1641
|
greyDark.primary = greyDark[5];
|
|
2403
1642
|
|
|
2404
1643
|
// src/ColorPicker/ColorPalettePickerBasic/ColorPalettePickerBasic.tsx
|
|
2405
|
-
import { jsx as
|
|
1644
|
+
import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2406
1645
|
function genPresets(presets = presetPalettes) {
|
|
2407
1646
|
return Object.entries(presets).map(([label, colors]) => ({
|
|
2408
1647
|
label,
|
|
@@ -2429,8 +1668,8 @@ function ColorPalettePickerBasic({
|
|
|
2429
1668
|
red,
|
|
2430
1669
|
green
|
|
2431
1670
|
});
|
|
2432
|
-
return /* @__PURE__ */
|
|
2433
|
-
|
|
1671
|
+
return /* @__PURE__ */ jsx24(
|
|
1672
|
+
ConfigProvider6,
|
|
2434
1673
|
{
|
|
2435
1674
|
theme: {
|
|
2436
1675
|
token: {
|
|
@@ -2438,13 +1677,13 @@ function ColorPalettePickerBasic({
|
|
|
2438
1677
|
fontSize: 16
|
|
2439
1678
|
}
|
|
2440
1679
|
},
|
|
2441
|
-
children: /* @__PURE__ */
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
/* @__PURE__ */
|
|
1680
|
+
children: /* @__PURE__ */ jsxs20("div", { className: "container-input", children: [
|
|
1681
|
+
/* @__PURE__ */ jsxs20("div", { children: [
|
|
1682
|
+
/* @__PURE__ */ jsx24("span", { className: "body-1", children: label }),
|
|
2444
1683
|
" ",
|
|
2445
|
-
required && /* @__PURE__ */
|
|
1684
|
+
required && /* @__PURE__ */ jsx24("span", { className: "text-red-500", children: "*" })
|
|
2446
1685
|
] }),
|
|
2447
|
-
/* @__PURE__ */
|
|
1686
|
+
/* @__PURE__ */ jsx24(
|
|
2448
1687
|
ColorPicker2,
|
|
2449
1688
|
{
|
|
2450
1689
|
defaultFormat,
|
|
@@ -2457,9 +1696,9 @@ function ColorPalettePickerBasic({
|
|
|
2457
1696
|
showText: (color) => {
|
|
2458
1697
|
const hex = color.toHexString();
|
|
2459
1698
|
if (!value) {
|
|
2460
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ jsx24("span", { children: placeholder });
|
|
2461
1700
|
}
|
|
2462
|
-
return /* @__PURE__ */
|
|
1701
|
+
return /* @__PURE__ */ jsxs20("span", { children: [
|
|
2463
1702
|
"(",
|
|
2464
1703
|
hex,
|
|
2465
1704
|
")"
|
|
@@ -2469,15 +1708,15 @@ function ColorPalettePickerBasic({
|
|
|
2469
1708
|
onClear
|
|
2470
1709
|
}
|
|
2471
1710
|
),
|
|
2472
|
-
error && /* @__PURE__ */
|
|
1711
|
+
error && /* @__PURE__ */ jsx24("p", { className: "text-red-500 caption-1", children: error })
|
|
2473
1712
|
] })
|
|
2474
1713
|
}
|
|
2475
1714
|
);
|
|
2476
1715
|
}
|
|
2477
1716
|
|
|
2478
1717
|
// src/Select/SelectField/SelectField.tsx
|
|
2479
|
-
import { Select, ConfigProvider as
|
|
2480
|
-
import { jsx as
|
|
1718
|
+
import { Select, ConfigProvider as ConfigProvider7 } from "antd";
|
|
1719
|
+
import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2481
1720
|
function SelectField({
|
|
2482
1721
|
value,
|
|
2483
1722
|
onChange,
|
|
@@ -2495,8 +1734,8 @@ function SelectField({
|
|
|
2495
1734
|
className,
|
|
2496
1735
|
onClear
|
|
2497
1736
|
}) {
|
|
2498
|
-
return /* @__PURE__ */
|
|
2499
|
-
|
|
1737
|
+
return /* @__PURE__ */ jsx25(
|
|
1738
|
+
ConfigProvider7,
|
|
2500
1739
|
{
|
|
2501
1740
|
theme: {
|
|
2502
1741
|
token: {
|
|
@@ -2504,13 +1743,13 @@ function SelectField({
|
|
|
2504
1743
|
fontSize: 16
|
|
2505
1744
|
}
|
|
2506
1745
|
},
|
|
2507
|
-
children: /* @__PURE__ */
|
|
2508
|
-
/* @__PURE__ */
|
|
2509
|
-
/* @__PURE__ */
|
|
1746
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "container-input", children: [
|
|
1747
|
+
/* @__PURE__ */ jsxs21("div", { children: [
|
|
1748
|
+
/* @__PURE__ */ jsx25("span", { className: "body-1", children: label }),
|
|
2510
1749
|
" ",
|
|
2511
|
-
required && /* @__PURE__ */
|
|
1750
|
+
required && /* @__PURE__ */ jsx25("span", { className: "text-red-500", children: "*" })
|
|
2512
1751
|
] }),
|
|
2513
|
-
/* @__PURE__ */
|
|
1752
|
+
/* @__PURE__ */ jsx25(
|
|
2514
1753
|
Select,
|
|
2515
1754
|
{
|
|
2516
1755
|
showSearch: true,
|
|
@@ -2525,7 +1764,7 @@ function SelectField({
|
|
|
2525
1764
|
options,
|
|
2526
1765
|
mode,
|
|
2527
1766
|
onSearch: handleSearch,
|
|
2528
|
-
prefix: prefix ? /* @__PURE__ */
|
|
1767
|
+
prefix: prefix ? /* @__PURE__ */ jsx25(
|
|
2529
1768
|
"span",
|
|
2530
1769
|
{
|
|
2531
1770
|
style: {
|
|
@@ -2542,15 +1781,15 @@ function SelectField({
|
|
|
2542
1781
|
onClear
|
|
2543
1782
|
}
|
|
2544
1783
|
),
|
|
2545
|
-
error && /* @__PURE__ */
|
|
1784
|
+
error && /* @__PURE__ */ jsx25("p", { className: "text-red-500 caption-1", children: error })
|
|
2546
1785
|
] })
|
|
2547
1786
|
}
|
|
2548
1787
|
);
|
|
2549
1788
|
}
|
|
2550
1789
|
|
|
2551
1790
|
// src/Select/SelectFieldGroup/SelectFieldGroup.tsx
|
|
2552
|
-
import { Select as Select2, ConfigProvider as
|
|
2553
|
-
import { jsx as
|
|
1791
|
+
import { Select as Select2, ConfigProvider as ConfigProvider8 } from "antd";
|
|
1792
|
+
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2554
1793
|
function SelectFieldGroup({
|
|
2555
1794
|
value,
|
|
2556
1795
|
onChange,
|
|
@@ -2567,21 +1806,21 @@ function SelectFieldGroup({
|
|
|
2567
1806
|
handleSearch,
|
|
2568
1807
|
className
|
|
2569
1808
|
}) {
|
|
2570
|
-
return /* @__PURE__ */
|
|
2571
|
-
|
|
1809
|
+
return /* @__PURE__ */ jsx26(
|
|
1810
|
+
ConfigProvider8,
|
|
2572
1811
|
{
|
|
2573
1812
|
theme: {
|
|
2574
1813
|
token: {
|
|
2575
1814
|
fontFamily: "Kanit"
|
|
2576
1815
|
}
|
|
2577
1816
|
},
|
|
2578
|
-
children: /* @__PURE__ */
|
|
2579
|
-
/* @__PURE__ */
|
|
2580
|
-
/* @__PURE__ */
|
|
1817
|
+
children: /* @__PURE__ */ jsxs22("div", { className: "container-input", children: [
|
|
1818
|
+
/* @__PURE__ */ jsxs22("div", { children: [
|
|
1819
|
+
/* @__PURE__ */ jsx26("span", { className: "body-1", children: label }),
|
|
2581
1820
|
" ",
|
|
2582
|
-
required && /* @__PURE__ */
|
|
1821
|
+
required && /* @__PURE__ */ jsx26("span", { className: "text-red-500", children: "*" })
|
|
2583
1822
|
] }),
|
|
2584
|
-
/* @__PURE__ */
|
|
1823
|
+
/* @__PURE__ */ jsx26(
|
|
2585
1824
|
Select2,
|
|
2586
1825
|
{
|
|
2587
1826
|
showSearch: true,
|
|
@@ -2596,7 +1835,7 @@ function SelectFieldGroup({
|
|
|
2596
1835
|
options,
|
|
2597
1836
|
mode,
|
|
2598
1837
|
onSearch: handleSearch,
|
|
2599
|
-
prefix: prefix ? /* @__PURE__ */
|
|
1838
|
+
prefix: prefix ? /* @__PURE__ */ jsx26(
|
|
2600
1839
|
"span",
|
|
2601
1840
|
{
|
|
2602
1841
|
style: {
|
|
@@ -2612,14 +1851,14 @@ function SelectFieldGroup({
|
|
|
2612
1851
|
allowClear: true
|
|
2613
1852
|
}
|
|
2614
1853
|
),
|
|
2615
|
-
error && /* @__PURE__ */
|
|
1854
|
+
error && /* @__PURE__ */ jsx26("p", { className: "text-red-500 caption-1", children: error })
|
|
2616
1855
|
] })
|
|
2617
1856
|
}
|
|
2618
1857
|
);
|
|
2619
1858
|
}
|
|
2620
1859
|
|
|
2621
1860
|
// src/Select/SelectFieldStatus/SelectFieldStatus.tsx
|
|
2622
|
-
import { Select as Select3, ConfigProvider as
|
|
1861
|
+
import { Select as Select3, ConfigProvider as ConfigProvider9 } from "antd";
|
|
2623
1862
|
|
|
2624
1863
|
// src/Select/SelectFieldStatus/StatusMockup.ts
|
|
2625
1864
|
var status = [
|
|
@@ -2632,7 +1871,7 @@ var status = [
|
|
|
2632
1871
|
|
|
2633
1872
|
// src/Select/SelectFieldStatus/SelectFieldStatus.tsx
|
|
2634
1873
|
import { DownOutlined } from "@ant-design/icons";
|
|
2635
|
-
import { jsx as
|
|
1874
|
+
import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2636
1875
|
function SelectFieldStatus({
|
|
2637
1876
|
value,
|
|
2638
1877
|
onChange,
|
|
@@ -2645,8 +1884,8 @@ function SelectFieldStatus({
|
|
|
2645
1884
|
className
|
|
2646
1885
|
}) {
|
|
2647
1886
|
const selectedItem = status.find((s) => s.value === value);
|
|
2648
|
-
return /* @__PURE__ */
|
|
2649
|
-
|
|
1887
|
+
return /* @__PURE__ */ jsx27(
|
|
1888
|
+
ConfigProvider9,
|
|
2650
1889
|
{
|
|
2651
1890
|
theme: {
|
|
2652
1891
|
components: {
|
|
@@ -2661,17 +1900,17 @@ function SelectFieldStatus({
|
|
|
2661
1900
|
fontFamily: "Kanit"
|
|
2662
1901
|
}
|
|
2663
1902
|
},
|
|
2664
|
-
children: /* @__PURE__ */
|
|
2665
|
-
/* @__PURE__ */
|
|
2666
|
-
/* @__PURE__ */
|
|
1903
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "container-input", children: [
|
|
1904
|
+
/* @__PURE__ */ jsxs23("div", { children: [
|
|
1905
|
+
/* @__PURE__ */ jsx27("span", { className: "body-1", children: label }),
|
|
2667
1906
|
" ",
|
|
2668
|
-
required && /* @__PURE__ */
|
|
1907
|
+
required && /* @__PURE__ */ jsx27("span", { className: "text-red-500", children: "*" })
|
|
2669
1908
|
] }),
|
|
2670
|
-
/* @__PURE__ */
|
|
1909
|
+
/* @__PURE__ */ jsx27(
|
|
2671
1910
|
Select3,
|
|
2672
1911
|
{
|
|
2673
1912
|
disabled,
|
|
2674
|
-
suffixIcon: /* @__PURE__ */
|
|
1913
|
+
suffixIcon: /* @__PURE__ */ jsx27(DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
|
|
2675
1914
|
value,
|
|
2676
1915
|
onChange,
|
|
2677
1916
|
className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
|
|
@@ -2682,14 +1921,14 @@ function SelectFieldStatus({
|
|
|
2682
1921
|
showSearch: true
|
|
2683
1922
|
}
|
|
2684
1923
|
),
|
|
2685
|
-
error && /* @__PURE__ */
|
|
1924
|
+
error && /* @__PURE__ */ jsx27("p", { className: "text-red-500 caption-1", children: error })
|
|
2686
1925
|
] })
|
|
2687
1926
|
}
|
|
2688
1927
|
);
|
|
2689
1928
|
}
|
|
2690
1929
|
|
|
2691
1930
|
// src/Select/SelectFieldStatusReport/SelectFieldStatusReport.tsx
|
|
2692
|
-
import { Select as Select4, ConfigProvider as
|
|
1931
|
+
import { Select as Select4, ConfigProvider as ConfigProvider10 } from "antd";
|
|
2693
1932
|
|
|
2694
1933
|
// src/Select/SelectFieldStatusReport/StatusReportMockup.ts
|
|
2695
1934
|
var status2 = [
|
|
@@ -2699,7 +1938,7 @@ var status2 = [
|
|
|
2699
1938
|
|
|
2700
1939
|
// src/Select/SelectFieldStatusReport/SelectFieldStatusReport.tsx
|
|
2701
1940
|
import { DownOutlined as DownOutlined2 } from "@ant-design/icons";
|
|
2702
|
-
import { jsx as
|
|
1941
|
+
import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2703
1942
|
function SelectFieldStatusReport({
|
|
2704
1943
|
value,
|
|
2705
1944
|
onChange,
|
|
@@ -2712,8 +1951,8 @@ function SelectFieldStatusReport({
|
|
|
2712
1951
|
options
|
|
2713
1952
|
}) {
|
|
2714
1953
|
const selectedItem = status2.find((s) => s.value === value);
|
|
2715
|
-
return /* @__PURE__ */
|
|
2716
|
-
|
|
1954
|
+
return /* @__PURE__ */ jsx28(
|
|
1955
|
+
ConfigProvider10,
|
|
2717
1956
|
{
|
|
2718
1957
|
theme: {
|
|
2719
1958
|
components: {
|
|
@@ -2728,17 +1967,17 @@ function SelectFieldStatusReport({
|
|
|
2728
1967
|
fontFamily: "Kanit"
|
|
2729
1968
|
}
|
|
2730
1969
|
},
|
|
2731
|
-
children: /* @__PURE__ */
|
|
2732
|
-
/* @__PURE__ */
|
|
2733
|
-
/* @__PURE__ */
|
|
1970
|
+
children: /* @__PURE__ */ jsxs24("div", { className: "container-input", children: [
|
|
1971
|
+
/* @__PURE__ */ jsxs24("div", { children: [
|
|
1972
|
+
/* @__PURE__ */ jsx28("span", { className: "body-1", children: label }),
|
|
2734
1973
|
" ",
|
|
2735
|
-
required && /* @__PURE__ */
|
|
1974
|
+
required && /* @__PURE__ */ jsx28("span", { className: "text-red-500", children: "*" })
|
|
2736
1975
|
] }),
|
|
2737
|
-
/* @__PURE__ */
|
|
1976
|
+
/* @__PURE__ */ jsx28(
|
|
2738
1977
|
Select4,
|
|
2739
1978
|
{
|
|
2740
1979
|
disabled,
|
|
2741
|
-
suffixIcon: /* @__PURE__ */
|
|
1980
|
+
suffixIcon: /* @__PURE__ */ jsx28(DownOutlined2, { style: { color: value ? "#fff" : "#D9D9D9" } }),
|
|
2742
1981
|
value,
|
|
2743
1982
|
onChange,
|
|
2744
1983
|
className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
|
|
@@ -2749,16 +1988,16 @@ function SelectFieldStatusReport({
|
|
|
2749
1988
|
showSearch: true
|
|
2750
1989
|
}
|
|
2751
1990
|
),
|
|
2752
|
-
error && /* @__PURE__ */
|
|
1991
|
+
error && /* @__PURE__ */ jsx28("p", { className: "text-red-500 caption-1", children: error })
|
|
2753
1992
|
] })
|
|
2754
1993
|
}
|
|
2755
1994
|
);
|
|
2756
1995
|
}
|
|
2757
1996
|
|
|
2758
1997
|
// src/Select/SelectFieldTag/SelectFieldTag.tsx
|
|
2759
|
-
import { Select as Select5, ConfigProvider as
|
|
1998
|
+
import { Select as Select5, ConfigProvider as ConfigProvider11 } from "antd";
|
|
2760
1999
|
import { useState as useState6 } from "react";
|
|
2761
|
-
import { jsx as
|
|
2000
|
+
import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2762
2001
|
function SelectFieldTag({
|
|
2763
2002
|
label,
|
|
2764
2003
|
required,
|
|
@@ -2791,21 +2030,21 @@ function SelectFieldTag({
|
|
|
2791
2030
|
}
|
|
2792
2031
|
onChange?.([]);
|
|
2793
2032
|
};
|
|
2794
|
-
return /* @__PURE__ */
|
|
2795
|
-
|
|
2033
|
+
return /* @__PURE__ */ jsx29(
|
|
2034
|
+
ConfigProvider11,
|
|
2796
2035
|
{
|
|
2797
2036
|
theme: {
|
|
2798
2037
|
token: {
|
|
2799
2038
|
fontFamily: "Kanit"
|
|
2800
2039
|
}
|
|
2801
2040
|
},
|
|
2802
|
-
children: /* @__PURE__ */
|
|
2803
|
-
/* @__PURE__ */
|
|
2804
|
-
/* @__PURE__ */
|
|
2041
|
+
children: /* @__PURE__ */ jsxs25("div", { className: "container-input", children: [
|
|
2042
|
+
/* @__PURE__ */ jsxs25("div", { children: [
|
|
2043
|
+
/* @__PURE__ */ jsx29("span", { className: "body-1", children: label }),
|
|
2805
2044
|
" ",
|
|
2806
|
-
required && /* @__PURE__ */
|
|
2045
|
+
required && /* @__PURE__ */ jsx29("span", { className: "text-red-500", children: "*" })
|
|
2807
2046
|
] }),
|
|
2808
|
-
/* @__PURE__ */
|
|
2047
|
+
/* @__PURE__ */ jsx29(
|
|
2809
2048
|
Select5,
|
|
2810
2049
|
{
|
|
2811
2050
|
mode: "tags",
|
|
@@ -2824,7 +2063,7 @@ function SelectFieldTag({
|
|
|
2824
2063
|
onClear
|
|
2825
2064
|
}
|
|
2826
2065
|
),
|
|
2827
|
-
error && /* @__PURE__ */
|
|
2066
|
+
error && /* @__PURE__ */ jsx29("p", { className: "text-red-500 caption-1", children: error })
|
|
2828
2067
|
] })
|
|
2829
2068
|
}
|
|
2830
2069
|
);
|
|
@@ -2832,9 +2071,9 @@ function SelectFieldTag({
|
|
|
2832
2071
|
|
|
2833
2072
|
// src/Select/SelectCustom/SelectCustom.tsx
|
|
2834
2073
|
import { IconTrash } from "@tabler/icons-react";
|
|
2835
|
-
import { Select as Select6, ConfigProvider as
|
|
2074
|
+
import { Select as Select6, ConfigProvider as ConfigProvider12 } from "antd";
|
|
2836
2075
|
import { useState as useState7 } from "react";
|
|
2837
|
-
import { jsx as
|
|
2076
|
+
import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2838
2077
|
function SelectCustom({
|
|
2839
2078
|
label = "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E42\u0E04\u0E23\u0E07\u0E01\u0E32\u0E23",
|
|
2840
2079
|
placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01",
|
|
@@ -2863,8 +2102,8 @@ function SelectCustom({
|
|
|
2863
2102
|
});
|
|
2864
2103
|
};
|
|
2865
2104
|
const filteredOptions = options.filter((opt) => !valueList.includes(opt.value)).map((opt) => ({ value: opt.value, label: opt.label }));
|
|
2866
|
-
return /* @__PURE__ */
|
|
2867
|
-
|
|
2105
|
+
return /* @__PURE__ */ jsx30(
|
|
2106
|
+
ConfigProvider12,
|
|
2868
2107
|
{
|
|
2869
2108
|
theme: {
|
|
2870
2109
|
token: {
|
|
@@ -2872,13 +2111,13 @@ function SelectCustom({
|
|
|
2872
2111
|
fontSize: 16
|
|
2873
2112
|
}
|
|
2874
2113
|
},
|
|
2875
|
-
children: /* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
2877
|
-
/* @__PURE__ */
|
|
2114
|
+
children: /* @__PURE__ */ jsxs26("div", { className: "container-input", children: [
|
|
2115
|
+
/* @__PURE__ */ jsxs26("div", { children: [
|
|
2116
|
+
/* @__PURE__ */ jsx30("span", { className: "body-1", children: label }),
|
|
2878
2117
|
" ",
|
|
2879
|
-
required && /* @__PURE__ */
|
|
2118
|
+
required && /* @__PURE__ */ jsx30("span", { className: "text-red-500", children: "*" })
|
|
2880
2119
|
] }),
|
|
2881
|
-
/* @__PURE__ */
|
|
2120
|
+
/* @__PURE__ */ jsx30(
|
|
2882
2121
|
Select6,
|
|
2883
2122
|
{
|
|
2884
2123
|
value,
|
|
@@ -2889,16 +2128,16 @@ function SelectCustom({
|
|
|
2889
2128
|
onClear
|
|
2890
2129
|
}
|
|
2891
2130
|
),
|
|
2892
|
-
error && /* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
2894
|
-
/* @__PURE__ */
|
|
2895
|
-
/* @__PURE__ */
|
|
2131
|
+
error && /* @__PURE__ */ jsx30("p", { className: "text-red-500 caption-1", children: error }),
|
|
2132
|
+
/* @__PURE__ */ jsx30("div", { className: "w-full p-[2px] overflow-y-auto", children: valueList.map((v, index) => /* @__PURE__ */ jsxs26("div", { className: "flex justify-between items-center py-[2px] body-1", children: [
|
|
2133
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex flex-row gap-[8px]", children: [
|
|
2134
|
+
/* @__PURE__ */ jsxs26("p", { children: [
|
|
2896
2135
|
index + 1,
|
|
2897
2136
|
"."
|
|
2898
2137
|
] }),
|
|
2899
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ jsx30("p", { children: v })
|
|
2900
2139
|
] }),
|
|
2901
|
-
/* @__PURE__ */
|
|
2140
|
+
/* @__PURE__ */ jsx30(IconTrash, { className: "cursor-pointer", onClick: () => handleDelete(v) })
|
|
2902
2141
|
] }, index)) })
|
|
2903
2142
|
] })
|
|
2904
2143
|
}
|
|
@@ -2906,7 +2145,7 @@ function SelectCustom({
|
|
|
2906
2145
|
}
|
|
2907
2146
|
|
|
2908
2147
|
// src/SortFilter/SortFilter.tsx
|
|
2909
|
-
import { ConfigProvider as
|
|
2148
|
+
import { ConfigProvider as ConfigProvider13 } from "antd";
|
|
2910
2149
|
import { CalendarOutlined } from "@ant-design/icons";
|
|
2911
2150
|
|
|
2912
2151
|
// src/SortFilter/DataMockSortFilter.ts
|
|
@@ -2939,7 +2178,7 @@ var quarters = [
|
|
|
2939
2178
|
// src/SortFilter/SortFilter.tsx
|
|
2940
2179
|
import { useState as useState8 } from "react";
|
|
2941
2180
|
import { IconSortDescending as IconSortDescending2, IconFilter } from "@tabler/icons-react";
|
|
2942
|
-
import { jsx as
|
|
2181
|
+
import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2943
2182
|
function SortFilter({
|
|
2944
2183
|
showYear = true,
|
|
2945
2184
|
showQuarter = true,
|
|
@@ -2950,20 +2189,20 @@ function SortFilter({
|
|
|
2950
2189
|
const [yearValue, setYearValue] = useState8();
|
|
2951
2190
|
const [monthValue, setMonthValue] = useState8();
|
|
2952
2191
|
const [quarterValue, setQuartersValue] = useState8();
|
|
2953
|
-
return /* @__PURE__ */
|
|
2954
|
-
|
|
2192
|
+
return /* @__PURE__ */ jsx31(
|
|
2193
|
+
ConfigProvider13,
|
|
2955
2194
|
{
|
|
2956
2195
|
theme: {
|
|
2957
2196
|
token: {
|
|
2958
2197
|
fontFamily: "Kanit"
|
|
2959
2198
|
}
|
|
2960
2199
|
},
|
|
2961
|
-
children: /* @__PURE__ */
|
|
2962
|
-
/* @__PURE__ */
|
|
2963
|
-
showYear && /* @__PURE__ */
|
|
2200
|
+
children: /* @__PURE__ */ jsxs27("div", { className: "w-full flex items-center justify-between", children: [
|
|
2201
|
+
/* @__PURE__ */ jsxs27("div", { className: "w-full flex gap-[10px]", children: [
|
|
2202
|
+
showYear && /* @__PURE__ */ jsx31("div", { className: "w-[200px]", children: /* @__PURE__ */ jsx31(
|
|
2964
2203
|
SelectField,
|
|
2965
2204
|
{
|
|
2966
|
-
prefix: /* @__PURE__ */
|
|
2205
|
+
prefix: /* @__PURE__ */ jsx31(CalendarOutlined, {}),
|
|
2967
2206
|
onChange: setYearValue,
|
|
2968
2207
|
options: years.map((s) => ({
|
|
2969
2208
|
value: s.value,
|
|
@@ -2973,10 +2212,10 @@ function SortFilter({
|
|
|
2973
2212
|
value: yearValue
|
|
2974
2213
|
}
|
|
2975
2214
|
) }),
|
|
2976
|
-
showMonth && /* @__PURE__ */
|
|
2215
|
+
showMonth && /* @__PURE__ */ jsx31("div", { className: "w-[200px]", children: /* @__PURE__ */ jsx31(
|
|
2977
2216
|
SelectField,
|
|
2978
2217
|
{
|
|
2979
|
-
prefix: /* @__PURE__ */
|
|
2218
|
+
prefix: /* @__PURE__ */ jsx31(CalendarOutlined, {}),
|
|
2980
2219
|
onChange: setMonthValue,
|
|
2981
2220
|
options: months.map((s) => ({
|
|
2982
2221
|
value: s.value,
|
|
@@ -2986,10 +2225,10 @@ function SortFilter({
|
|
|
2986
2225
|
placeholder: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19"
|
|
2987
2226
|
}
|
|
2988
2227
|
) }),
|
|
2989
|
-
showQuarter && /* @__PURE__ */
|
|
2228
|
+
showQuarter && /* @__PURE__ */ jsx31("div", { className: "w-[200px]", children: /* @__PURE__ */ jsx31(
|
|
2990
2229
|
SelectField,
|
|
2991
2230
|
{
|
|
2992
|
-
prefix: /* @__PURE__ */
|
|
2231
|
+
prefix: /* @__PURE__ */ jsx31(CalendarOutlined, {}),
|
|
2993
2232
|
onChange: setQuartersValue,
|
|
2994
2233
|
options: quarters.map((s) => ({
|
|
2995
2234
|
value: s.value,
|
|
@@ -3000,8 +2239,8 @@ function SortFilter({
|
|
|
3000
2239
|
}
|
|
3001
2240
|
) })
|
|
3002
2241
|
] }),
|
|
3003
|
-
/* @__PURE__ */
|
|
3004
|
-
/* @__PURE__ */
|
|
2242
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex gap-[10px]", children: [
|
|
2243
|
+
/* @__PURE__ */ jsx31(
|
|
3005
2244
|
IconSortDescending2,
|
|
3006
2245
|
{
|
|
3007
2246
|
size: 24,
|
|
@@ -3009,7 +2248,7 @@ function SortFilter({
|
|
|
3009
2248
|
onClick: onSortClick
|
|
3010
2249
|
}
|
|
3011
2250
|
),
|
|
3012
|
-
/* @__PURE__ */
|
|
2251
|
+
/* @__PURE__ */ jsx31(
|
|
3013
2252
|
IconFilter,
|
|
3014
2253
|
{
|
|
3015
2254
|
size: 24,
|
|
@@ -3026,7 +2265,7 @@ function SortFilter({
|
|
|
3026
2265
|
// src/Upload/FileUploader/FileUploader.tsx
|
|
3027
2266
|
import { IconPaperclip, IconUpload, IconTrash as IconTrash2 } from "@tabler/icons-react";
|
|
3028
2267
|
import { useRef as useRef2, useState as useState9 } from "react";
|
|
3029
|
-
import { Fragment as Fragment5, jsx as
|
|
2268
|
+
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3030
2269
|
function FileUploader({
|
|
3031
2270
|
onUpload,
|
|
3032
2271
|
onError,
|
|
@@ -3097,10 +2336,10 @@ function FileUploader({
|
|
|
3097
2336
|
}
|
|
3098
2337
|
if (inputRef.current) inputRef.current.value = "";
|
|
3099
2338
|
};
|
|
3100
|
-
return /* @__PURE__ */
|
|
3101
|
-
label && /* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3103
|
-
mode === "upload" ? /* @__PURE__ */
|
|
2339
|
+
return /* @__PURE__ */ jsxs28("div", { className: "w-full", children: [
|
|
2340
|
+
label && /* @__PURE__ */ jsx32("p", { className: "body-1", children: label }),
|
|
2341
|
+
/* @__PURE__ */ jsxs28("div", { children: [
|
|
2342
|
+
mode === "upload" ? /* @__PURE__ */ jsx32(
|
|
3104
2343
|
"button",
|
|
3105
2344
|
{
|
|
3106
2345
|
type: "button",
|
|
@@ -3108,15 +2347,15 @@ function FileUploader({
|
|
|
3108
2347
|
className: `h-[34px] flex justify-center items-center gap-2 w-full rounded-[2px] border border-gray-200 body-1
|
|
3109
2348
|
${disabled ? "cursor-not-allowed text-gray-400 bg-gray-100" : "cursor-pointer hover:text-primary-400 hover:border-primary-200 duration-300"}`,
|
|
3110
2349
|
disabled: disabled ? disabled : uploading,
|
|
3111
|
-
children: uploading ? /* @__PURE__ */
|
|
3112
|
-
/* @__PURE__ */
|
|
2350
|
+
children: uploading ? /* @__PURE__ */ jsxs28(Fragment5, { children: [
|
|
2351
|
+
/* @__PURE__ */ jsx32(Loader, { size: 15 }),
|
|
3113
2352
|
" \u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14"
|
|
3114
|
-
] }) : /* @__PURE__ */
|
|
3115
|
-
/* @__PURE__ */
|
|
2353
|
+
] }) : /* @__PURE__ */ jsxs28(Fragment5, { children: [
|
|
2354
|
+
/* @__PURE__ */ jsx32(IconUpload, { size: 15, className: "text-gray-400" }),
|
|
3116
2355
|
" \u0E41\u0E19\u0E1A\u0E44\u0E1F\u0E25\u0E4C"
|
|
3117
2356
|
] })
|
|
3118
2357
|
}
|
|
3119
|
-
) : /* @__PURE__ */
|
|
2358
|
+
) : /* @__PURE__ */ jsx32(
|
|
3120
2359
|
"div",
|
|
3121
2360
|
{
|
|
3122
2361
|
className: `min-w-[400px] min-h-[120px] flex justify-center items-center border-2 border-dashed rounded-md p-4 transition-colors body-1
|
|
@@ -3130,17 +2369,17 @@ function FileUploader({
|
|
|
3130
2369
|
},
|
|
3131
2370
|
onDragLeave: () => setDragActive(false),
|
|
3132
2371
|
onDrop: handleDrop,
|
|
3133
|
-
children: uploading ? /* @__PURE__ */
|
|
3134
|
-
/* @__PURE__ */
|
|
2372
|
+
children: uploading ? /* @__PURE__ */ jsxs28("div", { className: "flex justify-center items-center gap-2", children: [
|
|
2373
|
+
/* @__PURE__ */ jsx32(Loader, { size: 15 }),
|
|
3135
2374
|
" \u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14"
|
|
3136
|
-
] }) : /* @__PURE__ */
|
|
3137
|
-
/* @__PURE__ */
|
|
3138
|
-
/* @__PURE__ */
|
|
3139
|
-
/* @__PURE__ */
|
|
2375
|
+
] }) : /* @__PURE__ */ jsxs28("div", { className: "flex flex-col items-center gap-2", children: [
|
|
2376
|
+
/* @__PURE__ */ jsx32(IconUpload, { size: 20 }),
|
|
2377
|
+
/* @__PURE__ */ jsx32("span", { className: "body-1", children: "\u0E04\u0E25\u0E34\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E17\u0E35\u0E48\u0E1A\u0E23\u0E34\u0E40\u0E27\u0E13\u0E19\u0E35\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14" }),
|
|
2378
|
+
/* @__PURE__ */ jsx32("span", { className: "text-gray-400 body-3", children: "\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E1A\u0E1A\u0E40\u0E14\u0E35\u0E48\u0E22\u0E27\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E32\u0E22\u0E44\u0E1F\u0E25\u0E4C" })
|
|
3140
2379
|
] })
|
|
3141
2380
|
}
|
|
3142
2381
|
),
|
|
3143
|
-
/* @__PURE__ */
|
|
2382
|
+
/* @__PURE__ */ jsx32(
|
|
3144
2383
|
"input",
|
|
3145
2384
|
{
|
|
3146
2385
|
type: "file",
|
|
@@ -3153,13 +2392,13 @@ function FileUploader({
|
|
|
3153
2392
|
}
|
|
3154
2393
|
)
|
|
3155
2394
|
] }),
|
|
3156
|
-
description && /* @__PURE__ */
|
|
3157
|
-
/* @__PURE__ */
|
|
3158
|
-
/* @__PURE__ */
|
|
3159
|
-
/* @__PURE__ */
|
|
3160
|
-
/* @__PURE__ */
|
|
2395
|
+
description && /* @__PURE__ */ jsx32("p", { className: "text-gray-400 body-4", children: description }),
|
|
2396
|
+
/* @__PURE__ */ jsx32("div", { className: "mt-[8px]", children: fileList.length !== 0 && fileList.map((file, index) => /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2 rounded-[4px] px-[8px] py-[4px] body-1", children: [
|
|
2397
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2 w-[75%] overflow-hidden", children: [
|
|
2398
|
+
/* @__PURE__ */ jsx32("div", { className: "w-[15px] h-[15px]", children: /* @__PURE__ */ jsx32(IconPaperclip, { size: 15 }) }),
|
|
2399
|
+
/* @__PURE__ */ jsx32("span", { className: "truncate", children: file.name })
|
|
3161
2400
|
] }),
|
|
3162
|
-
/* @__PURE__ */
|
|
2401
|
+
/* @__PURE__ */ jsx32(
|
|
3163
2402
|
IconTrash2,
|
|
3164
2403
|
{
|
|
3165
2404
|
size: 20,
|
|
@@ -3193,9 +2432,9 @@ function messageLoading(content, duration) {
|
|
|
3193
2432
|
}
|
|
3194
2433
|
|
|
3195
2434
|
// src/Breadcrumb/Breadcrumb.tsx
|
|
3196
|
-
import { ConfigProvider as
|
|
2435
|
+
import { ConfigProvider as ConfigProvider14 } from "antd";
|
|
3197
2436
|
import { Breadcrumb } from "antd";
|
|
3198
|
-
import { jsx as
|
|
2437
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3199
2438
|
function Breadcrumbs({
|
|
3200
2439
|
items,
|
|
3201
2440
|
separator,
|
|
@@ -3203,15 +2442,15 @@ function Breadcrumbs({
|
|
|
3203
2442
|
classname,
|
|
3204
2443
|
params
|
|
3205
2444
|
}) {
|
|
3206
|
-
return /* @__PURE__ */
|
|
3207
|
-
|
|
2445
|
+
return /* @__PURE__ */ jsx33(
|
|
2446
|
+
ConfigProvider14,
|
|
3208
2447
|
{
|
|
3209
2448
|
theme: {
|
|
3210
2449
|
token: {
|
|
3211
2450
|
fontFamily: "Kanit"
|
|
3212
2451
|
}
|
|
3213
2452
|
},
|
|
3214
|
-
children: /* @__PURE__ */
|
|
2453
|
+
children: /* @__PURE__ */ jsx33(
|
|
3215
2454
|
Breadcrumb,
|
|
3216
2455
|
{
|
|
3217
2456
|
items,
|
|
@@ -3226,8 +2465,8 @@ function Breadcrumbs({
|
|
|
3226
2465
|
}
|
|
3227
2466
|
|
|
3228
2467
|
// src/HeadingPage/HeadingPage.tsx
|
|
3229
|
-
import { ConfigProvider as
|
|
3230
|
-
import { jsx as
|
|
2468
|
+
import { ConfigProvider as ConfigProvider15 } from "antd";
|
|
2469
|
+
import { jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3231
2470
|
function HeadingPage({ Heading }) {
|
|
3232
2471
|
const today = (/* @__PURE__ */ new Date()).toLocaleDateString("th-TH", {
|
|
3233
2472
|
weekday: "long",
|
|
@@ -3235,17 +2474,17 @@ function HeadingPage({ Heading }) {
|
|
|
3235
2474
|
month: "long",
|
|
3236
2475
|
year: "numeric"
|
|
3237
2476
|
});
|
|
3238
|
-
return /* @__PURE__ */
|
|
3239
|
-
|
|
2477
|
+
return /* @__PURE__ */ jsx34(
|
|
2478
|
+
ConfigProvider15,
|
|
3240
2479
|
{
|
|
3241
2480
|
theme: {
|
|
3242
2481
|
token: {
|
|
3243
2482
|
fontFamily: "Kanit"
|
|
3244
2483
|
}
|
|
3245
2484
|
},
|
|
3246
|
-
children: /* @__PURE__ */
|
|
3247
|
-
/* @__PURE__ */
|
|
3248
|
-
/* @__PURE__ */
|
|
2485
|
+
children: /* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-[10px] px-[20px] py-[10px]", children: [
|
|
2486
|
+
/* @__PURE__ */ jsx34("p", { className: "headline-5", children: Heading }),
|
|
2487
|
+
/* @__PURE__ */ jsxs29("p", { className: "body-1", children: [
|
|
3249
2488
|
" \u0E27\u0E31\u0E19\u0E19\u0E35\u0E49 ",
|
|
3250
2489
|
today
|
|
3251
2490
|
] })
|
|
@@ -3255,9 +2494,9 @@ function HeadingPage({ Heading }) {
|
|
|
3255
2494
|
}
|
|
3256
2495
|
|
|
3257
2496
|
// src/Progress/ProgressBar.tsx
|
|
3258
|
-
import { ConfigProvider as
|
|
2497
|
+
import { ConfigProvider as ConfigProvider16, Progress } from "antd";
|
|
3259
2498
|
import { useEffect as useEffect2, useRef as useRef3, useState as useState10 } from "react";
|
|
3260
|
-
import { jsx as
|
|
2499
|
+
import { jsx as jsx35, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3261
2500
|
function ProgressBar({
|
|
3262
2501
|
percent = 0,
|
|
3263
2502
|
size = "default",
|
|
@@ -3288,16 +2527,16 @@ function ProgressBar({
|
|
|
3288
2527
|
observer.observe(inner);
|
|
3289
2528
|
return () => observer.disconnect();
|
|
3290
2529
|
}, []);
|
|
3291
|
-
return /* @__PURE__ */
|
|
3292
|
-
|
|
2530
|
+
return /* @__PURE__ */ jsx35(
|
|
2531
|
+
ConfigProvider16,
|
|
3293
2532
|
{
|
|
3294
2533
|
theme: {
|
|
3295
2534
|
token: {
|
|
3296
2535
|
fontFamily: "Kanit"
|
|
3297
2536
|
}
|
|
3298
2537
|
},
|
|
3299
|
-
children: /* @__PURE__ */
|
|
3300
|
-
/* @__PURE__ */
|
|
2538
|
+
children: /* @__PURE__ */ jsxs30("div", { className: "relative w-full", ref: progressRef, children: [
|
|
2539
|
+
/* @__PURE__ */ jsx35(
|
|
3301
2540
|
Progress,
|
|
3302
2541
|
{
|
|
3303
2542
|
className: "w-full",
|
|
@@ -3313,7 +2552,7 @@ function ProgressBar({
|
|
|
3313
2552
|
strokeColor
|
|
3314
2553
|
}
|
|
3315
2554
|
),
|
|
3316
|
-
barWidth > 0 && isCheckPoints && type !== "circle" && checkpoints.map((cp) => /* @__PURE__ */
|
|
2555
|
+
barWidth > 0 && isCheckPoints && type !== "circle" && checkpoints.map((cp) => /* @__PURE__ */ jsx35(
|
|
3317
2556
|
"div",
|
|
3318
2557
|
{
|
|
3319
2558
|
className: "checkpoint absolute top-0",
|
|
@@ -3335,7 +2574,7 @@ function ProgressBar({
|
|
|
3335
2574
|
}
|
|
3336
2575
|
|
|
3337
2576
|
// src/KpiSection/KpiSection.tsx
|
|
3338
|
-
import { ConfigProvider as
|
|
2577
|
+
import { ConfigProvider as ConfigProvider17, message } from "antd";
|
|
3339
2578
|
import { useEffect as useEffect3, useState as useState12 } from "react";
|
|
3340
2579
|
|
|
3341
2580
|
// src/KpiSection/hooks/useGetKpiSection.ts
|
|
@@ -3486,7 +2725,7 @@ function useGetKpiSection() {
|
|
|
3486
2725
|
|
|
3487
2726
|
// src/KpiSection/KpiSection.tsx
|
|
3488
2727
|
import { IconCheck as IconCheck2, IconCirclePlus, IconPencil, IconTrash as IconTrash3, IconX as IconX2 } from "@tabler/icons-react";
|
|
3489
|
-
import { Fragment as Fragment6, jsx as
|
|
2728
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3490
2729
|
function KpiSection({ type, onChangeKpiList }) {
|
|
3491
2730
|
const {
|
|
3492
2731
|
handleAddKpi,
|
|
@@ -3516,8 +2755,8 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3516
2755
|
onChangeKpiList(kpiList);
|
|
3517
2756
|
}
|
|
3518
2757
|
}, [kpiList]);
|
|
3519
|
-
return /* @__PURE__ */
|
|
3520
|
-
|
|
2758
|
+
return /* @__PURE__ */ jsx36(
|
|
2759
|
+
ConfigProvider17,
|
|
3521
2760
|
{
|
|
3522
2761
|
theme: {
|
|
3523
2762
|
token: {
|
|
@@ -3525,11 +2764,11 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3525
2764
|
fontSize: 16
|
|
3526
2765
|
}
|
|
3527
2766
|
},
|
|
3528
|
-
children: /* @__PURE__ */
|
|
2767
|
+
children: /* @__PURE__ */ jsxs31("div", { className: "container-input", children: [
|
|
3529
2768
|
messageContainer,
|
|
3530
|
-
type === "number" && /* @__PURE__ */
|
|
3531
|
-
/* @__PURE__ */
|
|
3532
|
-
/* @__PURE__ */
|
|
2769
|
+
type === "number" && /* @__PURE__ */ jsxs31("div", { className: "space-y-4", children: [
|
|
2770
|
+
/* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-[1fr_200px_200px_50px] w-full gap-[24px] items-start", children: [
|
|
2771
|
+
/* @__PURE__ */ jsx36(
|
|
3533
2772
|
InputField,
|
|
3534
2773
|
{
|
|
3535
2774
|
value: nameKpi,
|
|
@@ -3541,7 +2780,7 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3541
2780
|
error: errors.nameKpi
|
|
3542
2781
|
}
|
|
3543
2782
|
),
|
|
3544
|
-
/* @__PURE__ */
|
|
2783
|
+
/* @__PURE__ */ jsx36(
|
|
3545
2784
|
InputField,
|
|
3546
2785
|
{
|
|
3547
2786
|
value: kpiValue,
|
|
@@ -3565,7 +2804,7 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3565
2804
|
error: errors.kpiValue
|
|
3566
2805
|
}
|
|
3567
2806
|
),
|
|
3568
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ jsx36(
|
|
3569
2808
|
InputField,
|
|
3570
2809
|
{
|
|
3571
2810
|
value: unitValue,
|
|
@@ -3577,7 +2816,7 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3577
2816
|
error: errors.unitValue
|
|
3578
2817
|
}
|
|
3579
2818
|
),
|
|
3580
|
-
/* @__PURE__ */
|
|
2819
|
+
/* @__PURE__ */ jsx36("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ jsx36(
|
|
3581
2820
|
IconCirclePlus,
|
|
3582
2821
|
{
|
|
3583
2822
|
className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
|
|
@@ -3586,17 +2825,17 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3586
2825
|
}
|
|
3587
2826
|
) })
|
|
3588
2827
|
] }),
|
|
3589
|
-
/* @__PURE__ */
|
|
2828
|
+
/* @__PURE__ */ jsx36("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ jsxs31(
|
|
3590
2829
|
"div",
|
|
3591
2830
|
{
|
|
3592
2831
|
className: "grid grid-cols-[30px_1fr_100px_120px_80px] items-start py-2 body-1 gap-[8px]",
|
|
3593
2832
|
children: [
|
|
3594
|
-
/* @__PURE__ */
|
|
2833
|
+
/* @__PURE__ */ jsxs31("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
|
|
3595
2834
|
index + 1,
|
|
3596
2835
|
"."
|
|
3597
2836
|
] }),
|
|
3598
|
-
kpi.isEditing ? /* @__PURE__ */
|
|
3599
|
-
/* @__PURE__ */
|
|
2837
|
+
kpi.isEditing ? /* @__PURE__ */ jsxs31(Fragment6, { children: [
|
|
2838
|
+
/* @__PURE__ */ jsx36(
|
|
3600
2839
|
InputField,
|
|
3601
2840
|
{
|
|
3602
2841
|
value: kpi.name,
|
|
@@ -3606,7 +2845,7 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3606
2845
|
error: itemErrors[kpi.id]?.name
|
|
3607
2846
|
}
|
|
3608
2847
|
),
|
|
3609
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ jsx36(
|
|
3610
2849
|
InputField,
|
|
3611
2850
|
{
|
|
3612
2851
|
value: kpi.value?.toString(),
|
|
@@ -3631,7 +2870,7 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3631
2870
|
error: itemErrors[kpi.id]?.value
|
|
3632
2871
|
}
|
|
3633
2872
|
),
|
|
3634
|
-
/* @__PURE__ */
|
|
2873
|
+
/* @__PURE__ */ jsx36(
|
|
3635
2874
|
InputField,
|
|
3636
2875
|
{
|
|
3637
2876
|
value: kpi.unit,
|
|
@@ -3641,29 +2880,29 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3641
2880
|
error: itemErrors[kpi.id]?.unit
|
|
3642
2881
|
}
|
|
3643
2882
|
),
|
|
3644
|
-
/* @__PURE__ */
|
|
2883
|
+
/* @__PURE__ */ jsxs31(
|
|
3645
2884
|
"div",
|
|
3646
2885
|
{
|
|
3647
2886
|
className: `flex gap-2 justify-end self-center ${!!itemErrors[kpi.id]?.value || !!itemErrors[kpi.id]?.unit || !!itemErrors[kpi.id]?.name ? "mt-[-12px]" : ""}`,
|
|
3648
2887
|
children: [
|
|
3649
|
-
/* @__PURE__ */
|
|
2888
|
+
/* @__PURE__ */ jsx36(
|
|
3650
2889
|
IconCheck2,
|
|
3651
2890
|
{
|
|
3652
2891
|
className: "w-[30px] h-[30px] cursor-pointer",
|
|
3653
2892
|
onClick: () => handleSave(kpi.id, type)
|
|
3654
2893
|
}
|
|
3655
2894
|
),
|
|
3656
|
-
/* @__PURE__ */
|
|
2895
|
+
/* @__PURE__ */ jsx36(IconX2, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
|
|
3657
2896
|
]
|
|
3658
2897
|
}
|
|
3659
2898
|
)
|
|
3660
|
-
] }) : /* @__PURE__ */
|
|
3661
|
-
/* @__PURE__ */
|
|
3662
|
-
/* @__PURE__ */
|
|
3663
|
-
/* @__PURE__ */
|
|
3664
|
-
/* @__PURE__ */
|
|
3665
|
-
/* @__PURE__ */
|
|
3666
|
-
/* @__PURE__ */
|
|
2899
|
+
] }) : /* @__PURE__ */ jsxs31(Fragment6, { children: [
|
|
2900
|
+
/* @__PURE__ */ jsx36("p", { className: "body-1", children: kpi.name }),
|
|
2901
|
+
/* @__PURE__ */ jsx36("p", { className: "body-1", children: kpi.value }),
|
|
2902
|
+
/* @__PURE__ */ jsx36("p", { className: "body-1", children: kpi.unit }),
|
|
2903
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex gap-3 justify-end", children: [
|
|
2904
|
+
/* @__PURE__ */ jsx36(IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
|
|
2905
|
+
/* @__PURE__ */ jsx36(IconTrash3, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
|
|
3667
2906
|
] })
|
|
3668
2907
|
] })
|
|
3669
2908
|
]
|
|
@@ -3671,9 +2910,9 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3671
2910
|
kpi.id
|
|
3672
2911
|
)) })
|
|
3673
2912
|
] }),
|
|
3674
|
-
type === "text" && /* @__PURE__ */
|
|
3675
|
-
/* @__PURE__ */
|
|
3676
|
-
/* @__PURE__ */
|
|
2913
|
+
type === "text" && /* @__PURE__ */ jsxs31("div", { className: "space-y-4", children: [
|
|
2914
|
+
/* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-[1fr_50px] w-full gap-[24px] items-start", children: [
|
|
2915
|
+
/* @__PURE__ */ jsx36(
|
|
3677
2916
|
InputField,
|
|
3678
2917
|
{
|
|
3679
2918
|
value: nameKpi,
|
|
@@ -3685,7 +2924,7 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3685
2924
|
error: errors.nameKpi
|
|
3686
2925
|
}
|
|
3687
2926
|
),
|
|
3688
|
-
/* @__PURE__ */
|
|
2927
|
+
/* @__PURE__ */ jsx36("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ jsx36(
|
|
3689
2928
|
IconCirclePlus,
|
|
3690
2929
|
{
|
|
3691
2930
|
className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
|
|
@@ -3694,13 +2933,13 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3694
2933
|
}
|
|
3695
2934
|
) })
|
|
3696
2935
|
] }),
|
|
3697
|
-
/* @__PURE__ */
|
|
3698
|
-
/* @__PURE__ */
|
|
2936
|
+
/* @__PURE__ */ jsx36("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-[30px_1fr_80px] items-start py-2 body-1 gap-[8px]", children: [
|
|
2937
|
+
/* @__PURE__ */ jsxs31("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
|
|
3699
2938
|
index + 1,
|
|
3700
2939
|
"."
|
|
3701
2940
|
] }),
|
|
3702
|
-
kpi.isEditing ? /* @__PURE__ */
|
|
3703
|
-
/* @__PURE__ */
|
|
2941
|
+
kpi.isEditing ? /* @__PURE__ */ jsxs31(Fragment6, { children: [
|
|
2942
|
+
/* @__PURE__ */ jsx36(
|
|
3704
2943
|
InputField,
|
|
3705
2944
|
{
|
|
3706
2945
|
value: kpi.name,
|
|
@@ -3710,27 +2949,27 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3710
2949
|
error: itemErrors[kpi.id]?.name
|
|
3711
2950
|
}
|
|
3712
2951
|
),
|
|
3713
|
-
/* @__PURE__ */
|
|
2952
|
+
/* @__PURE__ */ jsxs31(
|
|
3714
2953
|
"div",
|
|
3715
2954
|
{
|
|
3716
2955
|
className: `flex gap-2 justify-end self-center ${!!itemErrors[kpi.id]?.name ? "mt-[-12px]" : ""}`,
|
|
3717
2956
|
children: [
|
|
3718
|
-
/* @__PURE__ */
|
|
2957
|
+
/* @__PURE__ */ jsx36(
|
|
3719
2958
|
IconCheck2,
|
|
3720
2959
|
{
|
|
3721
2960
|
className: "w-[30px] h-[30px] cursor-pointer",
|
|
3722
2961
|
onClick: () => handleSave(kpi.id, type)
|
|
3723
2962
|
}
|
|
3724
2963
|
),
|
|
3725
|
-
/* @__PURE__ */
|
|
2964
|
+
/* @__PURE__ */ jsx36(IconX2, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
|
|
3726
2965
|
]
|
|
3727
2966
|
}
|
|
3728
2967
|
)
|
|
3729
|
-
] }) : /* @__PURE__ */
|
|
3730
|
-
/* @__PURE__ */
|
|
3731
|
-
/* @__PURE__ */
|
|
3732
|
-
/* @__PURE__ */
|
|
3733
|
-
/* @__PURE__ */
|
|
2968
|
+
] }) : /* @__PURE__ */ jsxs31(Fragment6, { children: [
|
|
2969
|
+
/* @__PURE__ */ jsx36("p", { className: "body-1", children: kpi.name }),
|
|
2970
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex gap-3 justify-end", children: [
|
|
2971
|
+
/* @__PURE__ */ jsx36(IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
|
|
2972
|
+
/* @__PURE__ */ jsx36(IconTrash3, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
|
|
3734
2973
|
] })
|
|
3735
2974
|
] })
|
|
3736
2975
|
] }, kpi.id)) })
|
|
@@ -3742,16 +2981,16 @@ function KpiSection({ type, onChangeKpiList }) {
|
|
|
3742
2981
|
|
|
3743
2982
|
// src/Modal/Modal/Modal.tsx
|
|
3744
2983
|
import { Modal } from "antd";
|
|
3745
|
-
import { jsx as
|
|
2984
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3746
2985
|
function AntDModal({ children, isOpen, width, onCancel }) {
|
|
3747
|
-
return /* @__PURE__ */
|
|
2986
|
+
return /* @__PURE__ */ jsx37("div", { children: /* @__PURE__ */ jsx37(Modal, { open: isOpen, onCancel, width, centered: true, footer: null, children: /* @__PURE__ */ jsx37("div", { children }) }) });
|
|
3748
2987
|
}
|
|
3749
2988
|
|
|
3750
2989
|
// src/Indicator/Indicator/Indicator.tsx
|
|
3751
2990
|
import { IconCheck as IconCheck3, IconCirclePlus as IconCirclePlus2, IconPencil as IconPencil2, IconTrash as IconTrash4, IconX as IconX3 } from "@tabler/icons-react";
|
|
3752
2991
|
import { useState as useState13 } from "react";
|
|
3753
2992
|
import { Input as Input4 } from "antd";
|
|
3754
|
-
import { Fragment as Fragment7, jsx as
|
|
2993
|
+
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3755
2994
|
function Indicator({
|
|
3756
2995
|
option = [
|
|
3757
2996
|
{ value: "TEXT", label: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21" },
|
|
@@ -3833,14 +3072,14 @@ function Indicator({
|
|
|
3833
3072
|
}));
|
|
3834
3073
|
console.log(cacheEditData);
|
|
3835
3074
|
};
|
|
3836
|
-
return /* @__PURE__ */
|
|
3837
|
-
/* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ jsxs32("div", { className: "w-full", children: [
|
|
3076
|
+
/* @__PURE__ */ jsxs32(
|
|
3838
3077
|
"div",
|
|
3839
3078
|
{
|
|
3840
3079
|
className: `space-x-2 grid ${valueSwitch === "TEXT" ? `grid-cols-[140px_1fr_50px]` : `grid-cols-[140px_1fr_200px_200px_50px]`} items-start`,
|
|
3841
3080
|
children: [
|
|
3842
|
-
/* @__PURE__ */
|
|
3843
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ jsx38(SwitchSelect, { option, onClick: handleClick, value: valueSwitch, label: "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17", required: true }),
|
|
3082
|
+
/* @__PURE__ */ jsx38(
|
|
3844
3083
|
InputField,
|
|
3845
3084
|
{
|
|
3846
3085
|
label: `\u0E0A\u0E37\u0E48\u0E2D\u0E15\u0E31\u0E27\u0E0A\u0E35\u0E49\u0E27\u0E31\u0E14${type === "OUTPUT" ? "\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" : "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C"}`,
|
|
@@ -3851,8 +3090,8 @@ function Indicator({
|
|
|
3851
3090
|
required: true
|
|
3852
3091
|
}
|
|
3853
3092
|
),
|
|
3854
|
-
valueSwitch === "NUMBER" && /* @__PURE__ */
|
|
3855
|
-
/* @__PURE__ */
|
|
3093
|
+
valueSwitch === "NUMBER" && /* @__PURE__ */ jsxs32(Fragment7, { children: [
|
|
3094
|
+
/* @__PURE__ */ jsx38(
|
|
3856
3095
|
InputFieldNumber,
|
|
3857
3096
|
{
|
|
3858
3097
|
label: `\u0E04\u0E48\u0E32\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22${type === "OUTPUT" ? "\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" : "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C"}`,
|
|
@@ -3863,7 +3102,7 @@ function Indicator({
|
|
|
3863
3102
|
required: true
|
|
3864
3103
|
}
|
|
3865
3104
|
),
|
|
3866
|
-
/* @__PURE__ */
|
|
3105
|
+
/* @__PURE__ */ jsx38(
|
|
3867
3106
|
InputField,
|
|
3868
3107
|
{
|
|
3869
3108
|
label: `\u0E2B\u0E19\u0E48\u0E27\u0E22`,
|
|
@@ -3875,17 +3114,17 @@ function Indicator({
|
|
|
3875
3114
|
}
|
|
3876
3115
|
)
|
|
3877
3116
|
] }),
|
|
3878
|
-
/* @__PURE__ */
|
|
3117
|
+
/* @__PURE__ */ jsx38(IconCirclePlus2, { onClick: handleAddIndicator, className: "mt-7 cursor-pointer", size: 32 })
|
|
3879
3118
|
]
|
|
3880
3119
|
}
|
|
3881
3120
|
),
|
|
3882
|
-
/* @__PURE__ */
|
|
3121
|
+
/* @__PURE__ */ jsx38(Fragment7, { children: arrayData.map((item, index) => /* @__PURE__ */ jsxs32(
|
|
3883
3122
|
"div",
|
|
3884
3123
|
{
|
|
3885
3124
|
className: `space-y-4 grid ${item.inputType === "TEXT" ? `grid-cols-[140px_1fr_50px_50px]` : `grid-cols-[140px_1fr_200px_150px_50px_50px]`} items-start`,
|
|
3886
3125
|
children: [
|
|
3887
|
-
/* @__PURE__ */
|
|
3888
|
-
index === editIndex ? /* @__PURE__ */
|
|
3126
|
+
/* @__PURE__ */ jsx38("div", { className: "body-1 mt-2", children: item.inputType === "TEXT" ? "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21" : "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02" }),
|
|
3127
|
+
index === editIndex ? /* @__PURE__ */ jsx38(
|
|
3889
3128
|
Input4,
|
|
3890
3129
|
{
|
|
3891
3130
|
className: "body-1 mt-2",
|
|
@@ -3894,9 +3133,9 @@ function Indicator({
|
|
|
3894
3133
|
name: "textValue",
|
|
3895
3134
|
onChange: (e) => handleChangeEditCashData(e)
|
|
3896
3135
|
}
|
|
3897
|
-
) : /* @__PURE__ */
|
|
3898
|
-
item.inputType === "NUMBER" && /* @__PURE__ */
|
|
3899
|
-
index === editIndex ? /* @__PURE__ */
|
|
3136
|
+
) : /* @__PURE__ */ jsx38("div", { className: "body-1 mt-2", children: item.textValue }),
|
|
3137
|
+
item.inputType === "NUMBER" && /* @__PURE__ */ jsxs32(Fragment7, { children: [
|
|
3138
|
+
index === editIndex ? /* @__PURE__ */ jsx38(
|
|
3900
3139
|
Input4,
|
|
3901
3140
|
{
|
|
3902
3141
|
className: "body-1 mt-2",
|
|
@@ -3905,8 +3144,8 @@ function Indicator({
|
|
|
3905
3144
|
name: "numberValue",
|
|
3906
3145
|
onChange: (e) => handleChangeEditCashData(e)
|
|
3907
3146
|
}
|
|
3908
|
-
) : /* @__PURE__ */
|
|
3909
|
-
index === editIndex ? /* @__PURE__ */
|
|
3147
|
+
) : /* @__PURE__ */ jsx38("div", { className: "body-1 mt-2", children: item.numberValue }),
|
|
3148
|
+
index === editIndex ? /* @__PURE__ */ jsx38(
|
|
3910
3149
|
Input4,
|
|
3911
3150
|
{
|
|
3912
3151
|
className: "body-1 mt-2",
|
|
@@ -3915,19 +3154,19 @@ function Indicator({
|
|
|
3915
3154
|
name: "unit",
|
|
3916
3155
|
onChange: (e) => handleChangeEditCashData(e)
|
|
3917
3156
|
}
|
|
3918
|
-
) : /* @__PURE__ */
|
|
3157
|
+
) : /* @__PURE__ */ jsx38("div", { className: "body-1 mt-2", children: item.unit })
|
|
3919
3158
|
] }),
|
|
3920
|
-
/* @__PURE__ */
|
|
3921
|
-
/* @__PURE__ */
|
|
3159
|
+
/* @__PURE__ */ jsx38("div", { className: "body-1 mt-2 flex", children: editIndex !== null ? editIndex === index ? /* @__PURE__ */ jsxs32("div", { className: "flex", children: [
|
|
3160
|
+
/* @__PURE__ */ jsx38(
|
|
3922
3161
|
IconCheck3,
|
|
3923
3162
|
{
|
|
3924
3163
|
className: "cursor-pointer text-green-600",
|
|
3925
3164
|
onClick: () => handleConfirmEditIndicator(index)
|
|
3926
3165
|
}
|
|
3927
3166
|
),
|
|
3928
|
-
/* @__PURE__ */
|
|
3929
|
-
] }) : void 0 : /* @__PURE__ */
|
|
3930
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ jsx38(IconX3, { className: "cursor-pointer text-red-600", onClick: handleCancelEditIndicator })
|
|
3168
|
+
] }) : void 0 : /* @__PURE__ */ jsx38(IconPencil2, { className: "cursor-pointer", onClick: () => handleEditIndicator(index) }) }),
|
|
3169
|
+
/* @__PURE__ */ jsx38("div", { className: "body-1 mt-2 cursor-pointer", children: /* @__PURE__ */ jsx38(IconTrash4, { onClick: () => handleDeleteIndicator(index) }) })
|
|
3931
3170
|
]
|
|
3932
3171
|
}
|
|
3933
3172
|
)) })
|
|
@@ -3937,7 +3176,7 @@ function Indicator({
|
|
|
3937
3176
|
// src/FilterPopUp/FilterPopUp.tsx
|
|
3938
3177
|
import { IconCheck as IconCheck4, IconFilter as IconFilter2, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
|
3939
3178
|
import { useState as useState14 } from "react";
|
|
3940
|
-
import { jsx as
|
|
3179
|
+
import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3941
3180
|
var FilterPopUp = (filter) => {
|
|
3942
3181
|
const [isAction, setIsAction] = useState14(true);
|
|
3943
3182
|
const [filterArray, setFilterArray] = useState14([""]);
|
|
@@ -3947,20 +3186,20 @@ var FilterPopUp = (filter) => {
|
|
|
3947
3186
|
const handleSubmitFilter = () => {
|
|
3948
3187
|
filter.handleSearch(filterArray);
|
|
3949
3188
|
};
|
|
3950
|
-
return /* @__PURE__ */
|
|
3951
|
-
/* @__PURE__ */
|
|
3952
|
-
/* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */ jsxs33("div", { className: "relative", children: [
|
|
3190
|
+
/* @__PURE__ */ jsxs33("button", { className: "flex px-2 py-1 rounded-lg border-1", onClick: () => setIsAction(!isAction), children: [
|
|
3191
|
+
/* @__PURE__ */ jsx39(IconFilter2, {}),
|
|
3953
3192
|
"filter"
|
|
3954
3193
|
] }),
|
|
3955
|
-
isAction ? /* @__PURE__ */
|
|
3956
|
-
/* @__PURE__ */
|
|
3957
|
-
/* @__PURE__ */
|
|
3958
|
-
/* @__PURE__ */
|
|
3959
|
-
/* @__PURE__ */
|
|
3194
|
+
isAction ? /* @__PURE__ */ jsxs33("div", { className: "absolute bg-white p-5 rounded-lg shadow-2xl w-[600px]", children: [
|
|
3195
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex justify-end", children: [
|
|
3196
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex justify-end text-nowrap gap-2", children: [
|
|
3197
|
+
/* @__PURE__ */ jsx39(GhostButton, { title: "\u0E43\u0E0A\u0E49\u0E1F\u0E34\u0E25\u0E40\u0E15\u0E2D\u0E23\u0E4C", onClick: handleSubmitFilter, iconLeft: /* @__PURE__ */ jsx39(IconCheck4, {}) }),
|
|
3198
|
+
/* @__PURE__ */ jsx39(GhostButton, { title: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14", onClick: handleClearFilter, iconLeft: /* @__PURE__ */ jsx39(IconTrash5, {}) })
|
|
3960
3199
|
] }),
|
|
3961
3200
|
""
|
|
3962
3201
|
] }),
|
|
3963
|
-
/* @__PURE__ */
|
|
3202
|
+
/* @__PURE__ */ jsx39(
|
|
3964
3203
|
SelectCustom,
|
|
3965
3204
|
{
|
|
3966
3205
|
options: filter.selectionFilter,
|
|
@@ -3981,8 +3220,6 @@ export {
|
|
|
3981
3220
|
ColorPalettePickerBasic,
|
|
3982
3221
|
ColorPickerBasic,
|
|
3983
3222
|
DataTable,
|
|
3984
|
-
DatePickerBasic,
|
|
3985
|
-
DatePickerRangePicker,
|
|
3986
3223
|
FileUploader,
|
|
3987
3224
|
FilterPopUp,
|
|
3988
3225
|
GhostButton,
|
|
@@ -4011,8 +3248,6 @@ export {
|
|
|
4011
3248
|
TabSelectionButton,
|
|
4012
3249
|
TextAreaInput,
|
|
4013
3250
|
TextInput,
|
|
4014
|
-
TimePickerBasic,
|
|
4015
|
-
TimePickerRangePicker,
|
|
4016
3251
|
TopNavBar,
|
|
4017
3252
|
messageError,
|
|
4018
3253
|
messageInfo,
|