@jsg-developer/vue-pack 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/README.md +154 -0
- package/dist/DEPENDENCY-LICENSES.txt +1170 -0
- package/dist/TabelData-C_eyn6Uq.cjs +1 -0
- package/dist/TabelData-fKFaSnkC.js +2142 -0
- package/dist/TabelData.vue_vue_type_style_index_0_scoped_76b9b7a6_lang-Dtm1AO8H.js +13685 -0
- package/dist/TabelData.vue_vue_type_style_index_0_scoped_76b9b7a6_lang-jjKlGR9H.cjs +64 -0
- package/dist/config.cjs.js +1 -0
- package/dist/config.es.js +6 -0
- package/dist/init.cjs.js +1 -0
- package/dist/init.es.js +24 -0
- package/dist/jsgd-vue-pack.cjs.js +1 -0
- package/dist/jsgd-vue-pack.css +7 -0
- package/dist/jsgd-vue-pack.es.js +388 -0
- package/dist/plugin/vue.cjs.js +1 -0
- package/dist/plugin/vue.es.js +51 -0
- package/dist/types/components/Form/FormFieldRenderer.vue.d.ts +23 -0
- package/dist/types/components/Form/FormModal.vue.d.ts +11 -0
- package/dist/types/components/Form/composables/index.d.ts +2 -0
- package/dist/types/components/Form/composables/useFormFieldRenderer.d.ts +22 -0
- package/dist/types/components/Form/composables/useFormModal.d.ts +19 -0
- package/dist/types/components/Form/index.d.ts +2 -0
- package/dist/types/components/Tabel/TabelData.vue.d.ts +62 -0
- package/dist/types/components/Tabel/composables/index.d.ts +4 -0
- package/dist/types/components/Tabel/composables/useDataNormalization.d.ts +7 -0
- package/dist/types/components/Tabel/composables/useDisplayHelpers.d.ts +8 -0
- package/dist/types/components/Tabel/composables/useFormHandling.d.ts +23 -0
- package/dist/types/components/Tabel/composables/useTableLogic.d.ts +35 -0
- package/dist/types/components/Tabel/index.d.ts +1 -0
- package/dist/types/components/UI/Display/BaseImage.vue.d.ts +6 -0
- package/dist/types/components/UI/Display/BaseLabel.vue.d.ts +20 -0
- package/dist/types/components/UI/Display/FieldDetailRenderer.vue.d.ts +16 -0
- package/dist/types/components/UI/Display/ImagePreview.vue.d.ts +12 -0
- package/dist/types/components/UI/Display/ModalDetailData.vue.d.ts +17 -0
- package/dist/types/components/UI/Display/SafeHtml.vue.d.ts +5 -0
- package/dist/types/components/UI/Display/Tooltip.vue.d.ts +62 -0
- package/dist/types/components/UI/Display/index.d.ts +7 -0
- package/dist/types/components/UI/Feedback/AlertApp.vue.d.ts +14 -0
- package/dist/types/components/UI/Feedback/LoaderSuccessError.vue.d.ts +12 -0
- package/dist/types/components/UI/Feedback/WarningForm.vue.d.ts +17 -0
- package/dist/types/components/UI/Feedback/index.d.ts +3 -0
- package/dist/types/components/UI/Inputs/ArrayObject.vue.d.ts +9 -0
- package/dist/types/components/UI/Inputs/ColorPicker.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts +33 -0
- package/dist/types/components/UI/Inputs/DateInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/DateTimeInput.vue.d.ts +67 -0
- package/dist/types/components/UI/Inputs/EmailInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/FileArrayInput.vue.d.ts +14 -0
- package/dist/types/components/UI/Inputs/FileInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/GroupRenderer.vue.d.ts +17 -0
- package/dist/types/components/UI/Inputs/ImageArrayInput.vue.d.ts +14 -0
- package/dist/types/components/UI/Inputs/ImageInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/NumberInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/ObjectInput.vue.d.ts +17 -0
- package/dist/types/components/UI/Inputs/PasswordInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/TagInput.vue.d.ts +16 -0
- package/dist/types/components/UI/Inputs/TextAreaInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/TextInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/TimeInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/ToggleInput.vue.d.ts +9 -0
- package/dist/types/components/UI/Inputs/UrlInput.vue.d.ts +13 -0
- package/dist/types/components/UI/Inputs/composables/index.d.ts +3 -0
- package/dist/types/components/UI/Inputs/composables/useArrayObject.d.ts +17 -0
- package/dist/types/components/UI/Inputs/composables/useSchemaGroupRenderer.d.ts +14 -0
- package/dist/types/components/UI/Inputs/composables/useSingleObject.d.ts +11 -0
- package/dist/types/components/UI/Inputs/index.d.ts +21 -0
- package/dist/types/components/UI/index.d.ts +3 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/config.d.ts +2 -0
- package/dist/types/configs/defaults/index.d.ts +1 -0
- package/dist/types/configs/defaults/table.d.ts +8 -0
- package/dist/types/configs/i18n/errors.d.ts +2 -0
- package/dist/types/configs/i18n/index.d.ts +4 -0
- package/dist/types/configs/i18n/inputs.d.ts +2 -0
- package/dist/types/configs/i18n/labels.d.ts +2 -0
- package/dist/types/configs/i18n/register.d.ts +4 -0
- package/dist/types/configs/index.d.ts +3 -0
- package/dist/types/configs/types/base.types.d.ts +8 -0
- package/dist/types/configs/types/date.types.d.ts +10 -0
- package/dist/types/configs/types/field.types.d.ts +255 -0
- package/dist/types/configs/types/globalText.types.d.ts +94 -0
- package/dist/types/configs/types/index.d.ts +10 -0
- package/dist/types/configs/types/modal-text.types.d.ts +42 -0
- package/dist/types/configs/types/plugin-config.types.d.ts +28 -0
- package/dist/types/configs/types/props.types.d.ts +355 -0
- package/dist/types/configs/types/schema.types.d.ts +20 -0
- package/dist/types/configs/types/submit-options.types.d.ts +31 -0
- package/dist/types/configs/types/table-data.types.d.ts +130 -0
- package/dist/types/fetch/index.d.ts +1 -0
- package/dist/types/fetch/submitData.d.ts +2 -0
- package/dist/types/helpers/clientInfo.d.ts +5 -0
- package/dist/types/helpers/index.d.ts +3 -0
- package/dist/types/helpers/locale.d.ts +3 -0
- package/dist/types/helpers/message.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/init.d.ts +2 -0
- package/dist/types/lib/index.d.ts +2 -0
- package/dist/types/lib/indexedDB.d.ts +29 -0
- package/dist/types/lib/secureFetch.d.ts +8 -0
- package/dist/types/plugin/vue.plugin.d.ts +3 -0
- package/dist/types/schemas/TestSchema.d.ts +2 -0
- package/dist/types/schemas/index.d.ts +1 -0
- package/dist/types/untils/index.d.ts +4 -0
- package/dist/types/untils/math.d.ts +28 -0
- package/dist/types/untils/misc.d.ts +3 -0
- package/dist/types/untils/objectPath.d.ts +5 -0
- package/dist/types/untils/regex.d.ts +8 -0
- package/dist/types/validate/index.d.ts +1 -0
- package/dist/types/validate/validate.d.ts +27 -0
- package/package.json +70 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
import { A as s, C as o, a4 as p, a2 as n, D as u, a as b, E as m, b as g, c as d, _ as y, F as c, G as h, I as T, d as x, L as f, N as I, O as A, P as L, S, a3 as D, e as k, f as v, g as w, h as q, i as E, j as F, T as P, U as N, z as j, p as B, k as W, m as M, B as R, $ as C, a1 as G, K as O, Q as z, w as K, y as H, a8 as U, X as V, u as X, W as _, l as J, V as Y, q as Z, a0 as Q, n as $, o as ee, r as ae, H as te, s as le, t as re, J as ie, Y as se, R as oe, M as pe, a9 as ne, a5 as ue, a7 as be, a6 as me, Z as ge, x as de, v as ye } from "./TabelData.vue_vue_type_style_index_0_scoped_76b9b7a6_lang-Dtm1AO8H.js";
|
|
2
|
+
import { A as he, B as Te, a as xe, F as fe, I as Ie, M as Ae, _ as Le, T as Se, W as De, g as ke, b as ve, d as we, c as qe, e as Ee, h as Fe, f as Pe, j as Ne, l as je, k as Be, i as We } from "./TabelData-fKFaSnkC.js";
|
|
3
|
+
const e = [
|
|
4
|
+
"png",
|
|
5
|
+
"jpg",
|
|
6
|
+
"jpeg",
|
|
7
|
+
"gif",
|
|
8
|
+
"bmp",
|
|
9
|
+
"webp",
|
|
10
|
+
"heif",
|
|
11
|
+
"heic",
|
|
12
|
+
"tiff",
|
|
13
|
+
"tif",
|
|
14
|
+
"svg",
|
|
15
|
+
"avif",
|
|
16
|
+
"ico",
|
|
17
|
+
"jfif"
|
|
18
|
+
], a = [
|
|
19
|
+
"text",
|
|
20
|
+
"email",
|
|
21
|
+
"password",
|
|
22
|
+
"number",
|
|
23
|
+
"image",
|
|
24
|
+
"color",
|
|
25
|
+
"select",
|
|
26
|
+
"arrayObject",
|
|
27
|
+
"richText",
|
|
28
|
+
"optionGroupSchema",
|
|
29
|
+
"tag",
|
|
30
|
+
"object",
|
|
31
|
+
"url",
|
|
32
|
+
"toggle",
|
|
33
|
+
"date",
|
|
34
|
+
"time",
|
|
35
|
+
"dateTime",
|
|
36
|
+
"imageArray",
|
|
37
|
+
// 🔹 baru
|
|
38
|
+
"file",
|
|
39
|
+
"fileArray",
|
|
40
|
+
// 🔹 baru
|
|
41
|
+
"textArea"
|
|
42
|
+
], t = ["form", "news"], l = {
|
|
43
|
+
// === Text ===
|
|
44
|
+
name: {
|
|
45
|
+
type: "text",
|
|
46
|
+
label: "Nama",
|
|
47
|
+
required: !0,
|
|
48
|
+
validate: {
|
|
49
|
+
duplicate: !0,
|
|
50
|
+
minLength: 3,
|
|
51
|
+
maxLength: 50,
|
|
52
|
+
pattern: "^[a-zA-Z0-9 ]+$"
|
|
53
|
+
},
|
|
54
|
+
value: "hahahahah"
|
|
55
|
+
},
|
|
56
|
+
Toogle: {
|
|
57
|
+
type: "toggle",
|
|
58
|
+
label: "Toogle",
|
|
59
|
+
required: !0,
|
|
60
|
+
value: !0
|
|
61
|
+
},
|
|
62
|
+
// === Email ===
|
|
63
|
+
email: {
|
|
64
|
+
type: "email",
|
|
65
|
+
label: "Email",
|
|
66
|
+
required: !0,
|
|
67
|
+
validate: {
|
|
68
|
+
duplicate: !0
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
imagesArray: {
|
|
72
|
+
type: "imageArray",
|
|
73
|
+
label: "Foto Profil",
|
|
74
|
+
validate: {
|
|
75
|
+
maxSize: 2048,
|
|
76
|
+
ratio: { Width: 1, Height: 1 },
|
|
77
|
+
pixel: { minWidth: 500, minHeight: 500 },
|
|
78
|
+
allowedTypes: ["png"]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
filesaya: {
|
|
82
|
+
type: "fileArray",
|
|
83
|
+
label: "File saya",
|
|
84
|
+
validate: {
|
|
85
|
+
maxSize: 2e4
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
// === Password ===
|
|
89
|
+
password: {
|
|
90
|
+
type: "password",
|
|
91
|
+
label: "Password",
|
|
92
|
+
required: !0,
|
|
93
|
+
validate: {
|
|
94
|
+
minLength: 8,
|
|
95
|
+
maxLength: 20,
|
|
96
|
+
requireUppercase: !0,
|
|
97
|
+
requireNumber: !0
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
// === Number ===
|
|
101
|
+
age: {
|
|
102
|
+
type: "number",
|
|
103
|
+
label: "Umur",
|
|
104
|
+
validate: {
|
|
105
|
+
min: 1,
|
|
106
|
+
max: 100,
|
|
107
|
+
integer: !0
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
// === Image ===
|
|
111
|
+
avatar: {
|
|
112
|
+
type: "image",
|
|
113
|
+
label: "Foto Profil",
|
|
114
|
+
validate: {
|
|
115
|
+
maxSize: 2048,
|
|
116
|
+
ratio: { Width: 16, Height: 9 },
|
|
117
|
+
pixel: { minWidth: 500, minHeight: 500 },
|
|
118
|
+
allowedTypes: ["png"]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
// === Color ===
|
|
122
|
+
favoriteColor: {
|
|
123
|
+
type: "color",
|
|
124
|
+
label: "Warna Favorit",
|
|
125
|
+
single: !0,
|
|
126
|
+
validate: { min: 1, max: 10 }
|
|
127
|
+
},
|
|
128
|
+
// === Select ===
|
|
129
|
+
role: {
|
|
130
|
+
type: "select",
|
|
131
|
+
label: "Peran",
|
|
132
|
+
options: ["admin", "editor", "user"],
|
|
133
|
+
optionsView: ["Admin", "Editor", "User"],
|
|
134
|
+
withCreate: {
|
|
135
|
+
DB_NAME: "roles",
|
|
136
|
+
schema: {
|
|
137
|
+
roleName: { type: "text", label: "Nama Role", required: !0 }
|
|
138
|
+
},
|
|
139
|
+
endPoint: "/api/admin/role/create"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
// === ArrayObject ===
|
|
143
|
+
addresses: {
|
|
144
|
+
type: "arrayObject",
|
|
145
|
+
label: "Alamat",
|
|
146
|
+
schema: {
|
|
147
|
+
street: { type: "text", label: "Jalan", required: !0 },
|
|
148
|
+
city: { type: "text", label: "Kota", required: !0 },
|
|
149
|
+
zip: { type: "number", label: "Kode Pos", required: !0 },
|
|
150
|
+
// === Object (nested all fields again) ===
|
|
151
|
+
addresses: {
|
|
152
|
+
type: "arrayObject",
|
|
153
|
+
label: "Alamat",
|
|
154
|
+
schema: {
|
|
155
|
+
street: { type: "text", label: "Jalan", required: !0 },
|
|
156
|
+
city: { type: "text", label: "Kota", required: !0 },
|
|
157
|
+
zip: { type: "number", label: "Kode Pos", required: !0 },
|
|
158
|
+
// === Object (nested all fields again) ===
|
|
159
|
+
profile: {
|
|
160
|
+
type: "object",
|
|
161
|
+
label: "Profil Lengkap",
|
|
162
|
+
schema: {
|
|
163
|
+
nick: { type: "text", label: "Nick" },
|
|
164
|
+
website: { type: "url", label: "Website" },
|
|
165
|
+
birthDate: { type: "date", label: "Tanggal Lahir" },
|
|
166
|
+
birthTime: { type: "time", label: "Waktu Lahir" },
|
|
167
|
+
lastLogin: { type: "dateTime", label: "Login Terakhir" },
|
|
168
|
+
about: { type: "textArea", label: "Tentang Saya" }
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
profile: {
|
|
174
|
+
type: "object",
|
|
175
|
+
label: "Profil Lengkap",
|
|
176
|
+
schema: {
|
|
177
|
+
nick: { type: "text", label: "Nick" },
|
|
178
|
+
website: { type: "url", label: "Website" },
|
|
179
|
+
birthDate: { type: "date", label: "Tanggal Lahir" },
|
|
180
|
+
birthTime: { type: "time", label: "Waktu Lahir" },
|
|
181
|
+
lastLogin: { type: "dateTime", label: "Login Terakhir" },
|
|
182
|
+
about: { type: "textArea", label: "Tentang Saya" }
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
// === RichText ===
|
|
188
|
+
bio: {
|
|
189
|
+
type: "richText",
|
|
190
|
+
label: "Biografi",
|
|
191
|
+
validate: { minLength: 10, maxLength: 200 }
|
|
192
|
+
},
|
|
193
|
+
// === Tag ===
|
|
194
|
+
tags: {
|
|
195
|
+
type: "tag",
|
|
196
|
+
label: "Tag",
|
|
197
|
+
validate: { min: 1, max: 5 }
|
|
198
|
+
},
|
|
199
|
+
isActive: { type: "toggle", label: "Aktif?" },
|
|
200
|
+
// === Object (nested all fields again) ===
|
|
201
|
+
profile: {
|
|
202
|
+
type: "object",
|
|
203
|
+
label: "Profil Lengkap",
|
|
204
|
+
schema: {
|
|
205
|
+
nick: { type: "text", label: "Nick" },
|
|
206
|
+
website: { type: "url", label: "Website" },
|
|
207
|
+
birthDate: { type: "date", label: "Tanggal Lahir" },
|
|
208
|
+
birthTime: { type: "time", label: "Waktu Lahir" },
|
|
209
|
+
lastLogin: { type: "dateTime", label: "Login Terakhir" },
|
|
210
|
+
about: { type: "textArea", label: "Tentang Saya" },
|
|
211
|
+
// === ArrayObject ===
|
|
212
|
+
addresses: {
|
|
213
|
+
type: "arrayObject",
|
|
214
|
+
label: "Alamat",
|
|
215
|
+
schema: {
|
|
216
|
+
street: { type: "text", label: "Jalan", required: !0 },
|
|
217
|
+
city: { type: "text", label: "Kota", required: !0 },
|
|
218
|
+
zip: { type: "number", label: "Kode Pos", required: !0 },
|
|
219
|
+
// === Object (nested all fields again) ===
|
|
220
|
+
profile: {
|
|
221
|
+
type: "object",
|
|
222
|
+
label: "Profil Lengkap",
|
|
223
|
+
schema: {
|
|
224
|
+
nick: { type: "text", label: "Nick" },
|
|
225
|
+
website: { type: "url", label: "Website" },
|
|
226
|
+
birthDate: { type: "date", label: "Tanggal Lahir" },
|
|
227
|
+
birthTime: { type: "time", label: "Waktu Lahir" },
|
|
228
|
+
lastLogin: { type: "dateTime", label: "Login Terakhir" },
|
|
229
|
+
about: { type: "textArea", label: "Tentang Saya" }
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
// === OptionGroup (with all field types) ===
|
|
237
|
+
settings: {
|
|
238
|
+
type: "optionGroupSchema",
|
|
239
|
+
label: "Pengaturan",
|
|
240
|
+
typeDesign: "cekbox",
|
|
241
|
+
withValue: !0,
|
|
242
|
+
options: {
|
|
243
|
+
"Grup A": {
|
|
244
|
+
optionA: { type: "text", label: "Teks A", required: !0 },
|
|
245
|
+
optionB: { type: "number", label: "Angka B" },
|
|
246
|
+
optionC: {
|
|
247
|
+
type: "optionGroupSchema",
|
|
248
|
+
label: "Sub Group",
|
|
249
|
+
withValue: !0,
|
|
250
|
+
typeDesign: "select",
|
|
251
|
+
options: {
|
|
252
|
+
"Sub A": {
|
|
253
|
+
subText: { type: "text", label: "Sub Text" },
|
|
254
|
+
subNumber: { type: "number", label: "Sub Number" },
|
|
255
|
+
subToggle: { type: "toggle", label: "Sub Toggle" }
|
|
256
|
+
},
|
|
257
|
+
"Sub B": {
|
|
258
|
+
subImage: { type: "image", label: "Sub Image" },
|
|
259
|
+
subColor: { type: "color", label: "Sub Color" }
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"Grup B": {
|
|
265
|
+
optionX: { type: "email", label: "Email X" },
|
|
266
|
+
optionY: { type: "password", label: "Password Y" }
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
// settingsQ: {
|
|
271
|
+
// type: 'optionGroupSchema',
|
|
272
|
+
// label: 'Pengaturan',
|
|
273
|
+
// typeDesign: 'select',
|
|
274
|
+
// withValue: true,
|
|
275
|
+
// options: {'Grup L' :
|
|
276
|
+
// {
|
|
277
|
+
// optionG: { type: 'text', label: 'Teks G', required: true },
|
|
278
|
+
// optionF: { type: 'number', label: 'Angka F' },
|
|
279
|
+
// optionASAS: {
|
|
280
|
+
// type: 'optionGroupSchema',
|
|
281
|
+
// label: 'Sub Group',
|
|
282
|
+
// withValue: true,
|
|
283
|
+
// typeDesign: 'select',
|
|
284
|
+
// options: {'Sub AsSS' : {
|
|
285
|
+
// subText: { type: 'text', label: 'Sub Text' },
|
|
286
|
+
// subNumber: { type: 'number', label: 'Sub Number' },
|
|
287
|
+
// subToggle: { type: 'toggle', label: 'Sub Toggle' },
|
|
288
|
+
// }, 'Sub Bvcvxc': {
|
|
289
|
+
// subImage: { type: 'image', label: 'Sub Image' },
|
|
290
|
+
// subColor: { type: 'color', label: 'Sub Color' },
|
|
291
|
+
// }},
|
|
292
|
+
// },
|
|
293
|
+
// }, 'Grup Basdzxczxc': {
|
|
294
|
+
// optionXAFF: { type: 'email', label: 'Email X' },
|
|
295
|
+
// optionYAFFF: { type: 'password', label: 'Password Y' },
|
|
296
|
+
// }},
|
|
297
|
+
// },
|
|
298
|
+
};
|
|
299
|
+
export {
|
|
300
|
+
he as AlertApp,
|
|
301
|
+
s as ArrayObjectInput,
|
|
302
|
+
Te as BaseImage,
|
|
303
|
+
xe as BaseLabel,
|
|
304
|
+
o as ColorInput,
|
|
305
|
+
p as DATETIME_REGEX,
|
|
306
|
+
n as DATE_REGEX,
|
|
307
|
+
u as DateInput,
|
|
308
|
+
b as DateTimeInput,
|
|
309
|
+
m as EmailInput,
|
|
310
|
+
fe as FieldDetailRenderer,
|
|
311
|
+
g as FileArrayInput,
|
|
312
|
+
d as FileInput,
|
|
313
|
+
y as FormFieldRenderer,
|
|
314
|
+
c as FormModal,
|
|
315
|
+
h as GroupRendererInput,
|
|
316
|
+
T as ImageArrayInput,
|
|
317
|
+
x as ImageInput,
|
|
318
|
+
Ie as ImagePreview,
|
|
319
|
+
e as ImageTypes,
|
|
320
|
+
f as Loader,
|
|
321
|
+
Ae as ModalDetailData,
|
|
322
|
+
I as NumberInput,
|
|
323
|
+
A as ObjectInput,
|
|
324
|
+
L as PasswordInput,
|
|
325
|
+
Le as SafeHtml,
|
|
326
|
+
S as SelectedOptions,
|
|
327
|
+
D as TIME_REGEX,
|
|
328
|
+
Se as TabelData,
|
|
329
|
+
k as TagInput,
|
|
330
|
+
l as TestSchema,
|
|
331
|
+
v as TextAreaInput,
|
|
332
|
+
w as TextAreaQuillInput,
|
|
333
|
+
q as TextInput,
|
|
334
|
+
E as TimeInput,
|
|
335
|
+
F as ToggleInput,
|
|
336
|
+
P as Tooltip,
|
|
337
|
+
N as UrlInput,
|
|
338
|
+
De as WarningForm,
|
|
339
|
+
j as clearStore,
|
|
340
|
+
B as configureIndexedDB,
|
|
341
|
+
ke as defaultEndpoints,
|
|
342
|
+
ve as defaultFeatureToggles,
|
|
343
|
+
we as defaultKeys,
|
|
344
|
+
qe as defaultManualControl,
|
|
345
|
+
W as defaultMessagesErrorRequired,
|
|
346
|
+
Ee as defaultPagination,
|
|
347
|
+
Fe as defaultSubmitAuth,
|
|
348
|
+
M as defaultTextLabelsMap,
|
|
349
|
+
Pe as defaultValidation,
|
|
350
|
+
R as deleteItemFromStore,
|
|
351
|
+
C as deleteNestedAndCleanup,
|
|
352
|
+
G as emailRegex,
|
|
353
|
+
a as fieldTypes,
|
|
354
|
+
t as formDesign,
|
|
355
|
+
Ne as formatDate,
|
|
356
|
+
je as formatDateTime,
|
|
357
|
+
Be as formatTime,
|
|
358
|
+
O as gcd,
|
|
359
|
+
We as getClientLocaleAndTimeZone,
|
|
360
|
+
z as getCommonRatio,
|
|
361
|
+
K as getFromIndexedDB,
|
|
362
|
+
H as getItemById,
|
|
363
|
+
U as getMessage,
|
|
364
|
+
V as getNested,
|
|
365
|
+
X as getSingleFromIndexedDB,
|
|
366
|
+
_ as hasAnyError,
|
|
367
|
+
J as inputMessages,
|
|
368
|
+
Y as isSameMessage,
|
|
369
|
+
Z as isStoreArray,
|
|
370
|
+
Q as normalizeKey,
|
|
371
|
+
$ as registerErrorMessageRequired,
|
|
372
|
+
ee as registerInputMessages,
|
|
373
|
+
ae as registerLanguage,
|
|
374
|
+
te as removeFromIndexedDB,
|
|
375
|
+
le as safeValidate,
|
|
376
|
+
re as saveToIndexedDB,
|
|
377
|
+
ie as secureFetch,
|
|
378
|
+
se as setNested,
|
|
379
|
+
oe as setUID,
|
|
380
|
+
pe as simplifyRatio,
|
|
381
|
+
ne as submitData,
|
|
382
|
+
ue as toDateOnly,
|
|
383
|
+
be as toDateTimeString,
|
|
384
|
+
me as toTimeOnly,
|
|
385
|
+
ge as unsetNested,
|
|
386
|
+
de as updateItemInStore,
|
|
387
|
+
ye as validate
|
|
388
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../TabelData.vue_vue_type_style_index_0_scoped_76b9b7a6_lang-jjKlGR9H.cjs"),t=require("../TabelData-C_eyn6Uq.cjs"),l=require("../init.cjs.js"),p=Object.freeze(Object.defineProperty({__proto__:null,AlertApp:t.AlertApp,ArrayObjectInput:e.ArrayObjectInput,BaseImage:t.BaseImage,BaseLabel:t.BaseLabel,ColorInput:e.ColorInput,DateInput:e.DateInput,DateTimeInput:e.DateTimeInput,EmailInput:e.EmailInput,FieldDetailRenderer:t.FieldDetailRenderer,FileArrayInput:e.FileArrayInput,FileInput:e.FileInput,FormFieldRenderer:e._sfc_main,FormModal:e.FormModal,GroupRendererInput:e.GroupRendererInput,ImageArrayInput:e.ImageArrayInput,ImageInput:e.ImageInput,ImagePreview:t.ImagePreview,Loader:e.Loader,ModalDetailData:t.ModalDetailData,NumberInput:e.NumberInput,ObjectInput:e.ObjectInput,PasswordInput:e.PasswordInput,SafeHtml:t._sfc_main,SelectedOptions:e.SelectedOptions,TabelData:t.TabelData,TagInput:e.TagInput,TextAreaInput:e.TextAreaInput,TextAreaQuillInput:e.TextAreaQuillInput,TextInput:e.TextInput,TimeInput:e.TimeInput,ToggleInput:e.ToggleInput,Tooltip:e.Tooltip,UrlInput:e.UrlInput,WarningForm:t.WarningForm},Symbol.toStringTag,{value:"Module"})),o={install(u,a){for(const r in p){const n=p[r];n&&(n.name||n.__name)&&u.component(r,n)}a&&l(a)}};module.exports=o;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { A as r, C as o, D as p, a as i, E as l, b as m, c as u, _ as I, F as c, G as d, I as f, d as g, L as T, N as _, O as b, P as A, S as F, e as D, f as y, g as O, h as j, i as S, j as x, T as M, U as P } from "../TabelData.vue_vue_type_style_index_0_scoped_76b9b7a6_lang-Dtm1AO8H.js";
|
|
2
|
+
import { A as B, B as C, a as L, F as R, I as v, M as w, _ as z, T as E, W as G } from "../TabelData-fKFaSnkC.js";
|
|
3
|
+
import N from "../init.es.js";
|
|
4
|
+
const s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
|
+
__proto__: null,
|
|
6
|
+
AlertApp: B,
|
|
7
|
+
ArrayObjectInput: r,
|
|
8
|
+
BaseImage: C,
|
|
9
|
+
BaseLabel: L,
|
|
10
|
+
ColorInput: o,
|
|
11
|
+
DateInput: p,
|
|
12
|
+
DateTimeInput: i,
|
|
13
|
+
EmailInput: l,
|
|
14
|
+
FieldDetailRenderer: R,
|
|
15
|
+
FileArrayInput: m,
|
|
16
|
+
FileInput: u,
|
|
17
|
+
FormFieldRenderer: I,
|
|
18
|
+
FormModal: c,
|
|
19
|
+
GroupRendererInput: d,
|
|
20
|
+
ImageArrayInput: f,
|
|
21
|
+
ImageInput: g,
|
|
22
|
+
ImagePreview: v,
|
|
23
|
+
Loader: T,
|
|
24
|
+
ModalDetailData: w,
|
|
25
|
+
NumberInput: _,
|
|
26
|
+
ObjectInput: b,
|
|
27
|
+
PasswordInput: A,
|
|
28
|
+
SafeHtml: z,
|
|
29
|
+
SelectedOptions: F,
|
|
30
|
+
TabelData: E,
|
|
31
|
+
TagInput: D,
|
|
32
|
+
TextAreaInput: y,
|
|
33
|
+
TextAreaQuillInput: O,
|
|
34
|
+
TextInput: j,
|
|
35
|
+
TimeInput: S,
|
|
36
|
+
ToggleInput: x,
|
|
37
|
+
Tooltip: M,
|
|
38
|
+
UrlInput: P,
|
|
39
|
+
WarningForm: G
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), k = {
|
|
41
|
+
install(n, e) {
|
|
42
|
+
for (const t in s) {
|
|
43
|
+
const a = s[t];
|
|
44
|
+
a && (a.name || a.__name) && n.component(t, a);
|
|
45
|
+
}
|
|
46
|
+
e && N(e);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
k as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Field, Errors, SupportedLanguage, FormData } from '../../configs';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
field: Field;
|
|
4
|
+
fieldKey: string;
|
|
5
|
+
formData: FormData;
|
|
6
|
+
errors: Errors;
|
|
7
|
+
isUpdate?: boolean;
|
|
8
|
+
lang: SupportedLanguage;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
"push:errors": (message: string, key: string) => any;
|
|
12
|
+
"remove:errors": (key: string) => any;
|
|
13
|
+
"update:model-value": (val: any, key: string) => any;
|
|
14
|
+
"selected-option-change": (val: string | null, key: string) => any;
|
|
15
|
+
"multi-selected-change": (val: string[], key: string) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onPush:errors"?: ((message: string, key: string) => any) | undefined;
|
|
18
|
+
"onRemove:errors"?: ((key: string) => any) | undefined;
|
|
19
|
+
"onUpdate:model-value"?: ((val: any, key: string) => any) | undefined;
|
|
20
|
+
"onSelected-option-change"?: ((val: string | null, key: string) => any) | undefined;
|
|
21
|
+
"onMulti-selected-change"?: ((val: string[], key: string) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FromModalProps } from '../../configs/types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<FromModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
submit: (value: Record<string, any>) => any;
|
|
4
|
+
cancel: () => any;
|
|
5
|
+
DataChildRemove: (value: number[]) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<FromModalProps> & Readonly<{
|
|
7
|
+
onSubmit?: ((value: Record<string, any>) => any) | undefined;
|
|
8
|
+
onCancel?: (() => any) | undefined;
|
|
9
|
+
onDataChildRemove?: ((value: number[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { Field, Errors, FormData, GlobalDefaultText, SupportedLanguage } from '../../../configs';
|
|
3
|
+
interface FormFieldRendererProps {
|
|
4
|
+
field: Field;
|
|
5
|
+
fieldKey: string;
|
|
6
|
+
formData: FormData;
|
|
7
|
+
errors: Errors;
|
|
8
|
+
lang?: SupportedLanguage;
|
|
9
|
+
}
|
|
10
|
+
interface FormFieldRendererComposable {
|
|
11
|
+
label: ComputedRef<string>;
|
|
12
|
+
labels: Ref<GlobalDefaultText>;
|
|
13
|
+
removedItems: Ref<number[]>;
|
|
14
|
+
handlers: {
|
|
15
|
+
pushError: (message: string | string[], key: string) => void;
|
|
16
|
+
removeError: (key: string) => void;
|
|
17
|
+
removeChildData: (items: number[]) => void;
|
|
18
|
+
};
|
|
19
|
+
mergeNumberArrays: (arrayA: number[], arrayB: number[]) => number[];
|
|
20
|
+
}
|
|
21
|
+
export declare function useFormFieldRenderer<TEmit extends (event: any, ...args: any[]) => void>(props: FormFieldRendererProps, emit: TEmit): FormFieldRendererComposable;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { Schema, Errors, FormData, FromModalProps, GlobalDefaultText } from '../../../configs/types';
|
|
3
|
+
interface FormModalComposable {
|
|
4
|
+
formData: Ref<FormData>;
|
|
5
|
+
errors: Ref<Errors>;
|
|
6
|
+
hasChanges: ComputedRef<boolean>;
|
|
7
|
+
seletedOption: Ref<Record<string, string | null>>;
|
|
8
|
+
multiSelected: Ref<Record<string, string[]>>;
|
|
9
|
+
DataChildRemove: Ref<number[]>;
|
|
10
|
+
isSubmitting: Ref<boolean>;
|
|
11
|
+
initializeFormData: (schema: Schema) => void;
|
|
12
|
+
validate: () => boolean;
|
|
13
|
+
handleSubmit: () => void;
|
|
14
|
+
handleCancel: () => void;
|
|
15
|
+
pushInputValidateErrorMessage: (message: string | string[], key: string) => void;
|
|
16
|
+
deleteInputValidateErrorMessage: (key: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function useFormModal<TEmit extends (event: any, ...args: any[]) => void>(options: FromModalProps, emit: TEmit, loader?: any, ShowAlert?: Function, labels?: GlobalDefaultText): FormModalComposable;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Alert } from '../UI/Feedback/AlertApp.vue';
|
|
2
|
+
import { FormData, TabelDataProperty, Item } from '../../configs/types';
|
|
3
|
+
type __VLS_Props = TabelDataProperty<Item>;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
create: () => any;
|
|
6
|
+
delete: (value: number) => any;
|
|
7
|
+
deleteMany: (value: number[]) => any;
|
|
8
|
+
edit: (value: FormData, id: string | number) => any;
|
|
9
|
+
show: (value: FormData, id: string | number) => any;
|
|
10
|
+
refreshData: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onCreate?: (() => any) | undefined;
|
|
13
|
+
onDelete?: ((value: number) => any) | undefined;
|
|
14
|
+
onDeleteMany?: ((value: number[]) => any) | undefined;
|
|
15
|
+
onEdit?: ((value: FormData, id: string | number) => any) | undefined;
|
|
16
|
+
onShow?: ((value: FormData, id: string | number) => any) | undefined;
|
|
17
|
+
onRefreshData?: (() => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
keys: import('../..').DataKeyConfig;
|
|
20
|
+
validation: import('../..').TabelValidationSchema<Item>;
|
|
21
|
+
feature: import('../..').TabelFeatureToggles;
|
|
22
|
+
pagination: import('../..').TabelPagination;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
loader: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
25
|
+
onError?: (() => any) | undefined;
|
|
26
|
+
onSuccess?: (() => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
show: (type?: "error" | "success" | "loading", msg?: string) => void;
|
|
29
|
+
hide: () => void;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
31
|
+
error: () => any;
|
|
32
|
+
success: () => any;
|
|
33
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
34
|
+
P: {};
|
|
35
|
+
B: {};
|
|
36
|
+
D: {};
|
|
37
|
+
C: {};
|
|
38
|
+
M: {};
|
|
39
|
+
Defaults: {};
|
|
40
|
+
}, Readonly<{}> & Readonly<{
|
|
41
|
+
onError?: (() => any) | undefined;
|
|
42
|
+
onSuccess?: (() => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
show: (type?: "error" | "success" | "loading", msg?: string) => void;
|
|
45
|
+
hide: () => void;
|
|
46
|
+
}, {}, {}, {}, {}> | null;
|
|
47
|
+
alert: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
48
|
+
addAlert: (alert: Alert) => void;
|
|
49
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
50
|
+
alertRefs: HTMLDivElement[];
|
|
51
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
52
|
+
P: {};
|
|
53
|
+
B: {};
|
|
54
|
+
D: {};
|
|
55
|
+
C: {};
|
|
56
|
+
M: {};
|
|
57
|
+
Defaults: {};
|
|
58
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
59
|
+
addAlert: (alert: Alert) => void;
|
|
60
|
+
}, {}, {}, {}, {}> | null;
|
|
61
|
+
}, HTMLDivElement>;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Field } from '../../../configs/types';
|
|
2
|
+
export declare function normalizeDataForForm(data: Record<string, any>, schema: Record<string, any>, isUpdate?: number | null, idKey?: string | number | null): Promise<Record<string, any>>;
|
|
3
|
+
export declare function normalizeDataForDetail(data: Record<string, any>, schema: Record<string, any>): Promise<Record<string, any>>;
|
|
4
|
+
export declare function normalizeOptionGroupSchemaDetail(data: Record<string, any>, schemaGroup: Record<string, any>[]): Promise<Record<string, any>>;
|
|
5
|
+
export declare function normalizeFieldValue(value: any, field: Field): any;
|
|
6
|
+
export declare function normalizeData(obj: any): any;
|
|
7
|
+
export declare function mergeWithDefaults<T>(defaults: T, override?: Partial<T>): T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Item } from '../../../configs/types';
|
|
2
|
+
export declare function isImage(value: any): boolean;
|
|
3
|
+
export declare function getImageSource(value: any): string;
|
|
4
|
+
export declare function isImageArray(value: any): boolean;
|
|
5
|
+
export declare function isColorArray(value: any): boolean;
|
|
6
|
+
export declare function isColor(value: any): boolean;
|
|
7
|
+
export declare function isHtml(value: string): boolean;
|
|
8
|
+
export declare function displayItem(item: Item): Record<string, any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Item, TabelDataConfig, FormData, GlobalDefaultText } from '../../../configs/types';
|
|
3
|
+
export declare function useFormHandling<TEmit extends (event: any, ...args: any[]) => void>(props: TabelDataConfig<Item>, emit: TEmit, setUpData: Function, loader: Ref<any>, ShowAlert: Function, labels: GlobalDefaultText, GetDataById: Function, refs: {
|
|
4
|
+
selectedItems: any;
|
|
5
|
+
idData: Ref<string | number | null>;
|
|
6
|
+
isUpdate: Ref<number | null>;
|
|
7
|
+
FormModalOpen: Ref<boolean>;
|
|
8
|
+
detailItemModal: Ref<boolean>;
|
|
9
|
+
dataChildDelete: Ref<number[] | null>;
|
|
10
|
+
showWarningModel: Ref<boolean>;
|
|
11
|
+
showWarningModelSelected: Ref<boolean>;
|
|
12
|
+
}): {
|
|
13
|
+
initialData: Ref<Record<string, any>, Record<string, any>>;
|
|
14
|
+
openEditModal: (id: number | string) => Promise<void>;
|
|
15
|
+
openCreateModal: () => void;
|
|
16
|
+
openShowModal: (id: string | number) => Promise<void>;
|
|
17
|
+
openWarningDeleteData: (id: string | number) => void;
|
|
18
|
+
openWarningDeleteSelectedData: () => void;
|
|
19
|
+
closeModal: () => void;
|
|
20
|
+
submitFormData: (formData: FormData) => Promise<void>;
|
|
21
|
+
DeleteData: (id: string | number, endPointDelete?: string, deleteValidation?: Record<string, any>, DB_NAME?: string, deleteDataDB?: boolean) => Promise<void>;
|
|
22
|
+
DeleteSeletedData: (ids: (string | number)[], endPointDeleteMany?: string, deleteManyValidation?: Record<string, any>, DB_NAME?: string, deleteDataDB?: boolean) => Promise<any>;
|
|
23
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Item, TabelDataConfig, GlobalDefaultText } from '../../../configs/types';
|
|
3
|
+
export declare function useTableLogic<TEmit extends (event: any, ...args: any[]) => void>(props: TabelDataConfig<Item>, emit: TEmit, loader: Ref<any>, labels: GlobalDefaultText): {
|
|
4
|
+
searchQuery: Ref<string, string>;
|
|
5
|
+
currentPage: Ref<number, number>;
|
|
6
|
+
selectedItems: Ref<(string | number)[], (string | number)[]>;
|
|
7
|
+
selectAll: Ref<boolean, boolean>;
|
|
8
|
+
showWarningModel: Ref<boolean, boolean>;
|
|
9
|
+
showWarningModelSelected: Ref<boolean, boolean>;
|
|
10
|
+
idData: Ref<string | number | null, string | number | null>;
|
|
11
|
+
sortField: Ref<string | null, string | null>;
|
|
12
|
+
sortDirection: Ref<"desc" | "asc", "desc" | "asc">;
|
|
13
|
+
FormModalOpen: Ref<boolean, boolean>;
|
|
14
|
+
detailItemModal: Ref<boolean, boolean>;
|
|
15
|
+
isUpdate: Ref<number | null, number | null>;
|
|
16
|
+
dataChildDelete: Ref<number[] | null, number[] | null>;
|
|
17
|
+
selectedItem: import('vue').ComputedRef<Item>;
|
|
18
|
+
selectedItemNames: import('vue').ComputedRef<any>;
|
|
19
|
+
filteredData: import('vue').ComputedRef<Item[]>;
|
|
20
|
+
paginatedData: import('vue').ComputedRef<Item[]>;
|
|
21
|
+
totalPages: import('vue').ComputedRef<number>;
|
|
22
|
+
visiblePages: import('vue').ComputedRef<(number | "...")[]>;
|
|
23
|
+
toggleAll: () => void;
|
|
24
|
+
sortBy: (field: string) => void;
|
|
25
|
+
prevPage: () => void;
|
|
26
|
+
nextPage: () => void;
|
|
27
|
+
summarizeValue: (val: any) => string;
|
|
28
|
+
setUpData: () => Promise<void>;
|
|
29
|
+
getValueByPath: (obj: any, path: string) => any;
|
|
30
|
+
toTitleCase: (str: string) => string;
|
|
31
|
+
GetDataById: <T extends {
|
|
32
|
+
id: string | number;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>(list: T[], id: string | number) => Promise<T | undefined>;
|
|
35
|
+
};
|