golden-logic-ui 1.3.33 → 1.3.34
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/components/GeneralComponents/ConfirmationModal.vue.js +32 -32
- package/dist/components/GeneralComponents/DataTable/DatatableDate.vue.js +8 -8
- package/dist/components/GeneralComponents/DataTable/DatatableDeleteAction.vue.js +42 -37
- package/dist/components/GeneralComponents/DataTable/DatatableStatus.vue.js +22 -16
- package/dist/components/GeneralComponents/DataTable/GLDataTable.vue.js +31 -30
- package/dist/components/GeneralComponents/DataTable/GLDataTableServerSide.vue.js +8 -5
- package/dist/components/GeneralComponents/DataTable/GlDataTableComponent.vue.js +4 -3
- package/dist/components/GeneralComponents/DataTable/GlDataTableServerSideGroupBy.vue.js +16 -15
- package/dist/components/GeneralComponents/FilesUpload.vue.js +114 -109
- package/dist/components/GeneralComponents/GlDropdown.vue.js +85 -77
- package/dist/components/GeneralComponents/GlMultiSelectDropdown.vue.js +9 -8
- package/dist/golden-logic-ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import L from "../../LaravelVuePagination/TailwindPagination.vue.js";
|
|
2
|
-
import { resolveComponent as y, createElementBlock as i, openBlock as l, createElementVNode as e, toDisplayString as
|
|
2
|
+
import { resolveComponent as y, createElementBlock as i, openBlock as l, createElementVNode as e, toDisplayString as p, createVNode as m, withDirectives as P, vModelText as C, Fragment as u, renderList as c, createCommentVNode as b, normalizeClass as D, createBlock as I, resolveDynamicComponent as j, createTextVNode as S } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import O from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const F = {
|
|
@@ -112,9 +112,10 @@ function ee(r, t, a, g, s, n) {
|
|
|
112
112
|
return l(), i("div", G, [
|
|
113
113
|
e("div", A, [
|
|
114
114
|
e("div", T, [
|
|
115
|
-
e("span", V,
|
|
115
|
+
e("span", V, p(r.language?.show ?? "Show"), 1),
|
|
116
116
|
e("div", B, [
|
|
117
117
|
m(w, {
|
|
118
|
+
language: r.language,
|
|
118
119
|
options_top_size: 0,
|
|
119
120
|
has_cancel: !1,
|
|
120
121
|
options: s.pageOptions,
|
|
@@ -125,10 +126,10 @@ function ee(r, t, a, g, s, n) {
|
|
|
125
126
|
label_name: "",
|
|
126
127
|
default_value: 5,
|
|
127
128
|
show: !1,
|
|
128
|
-
placeholder: "Please select an option"
|
|
129
|
-
}, null, 8, ["options", "modelValue"])
|
|
129
|
+
placeholder: r.language?.please_select_an_option ?? "Please select an option"
|
|
130
|
+
}, null, 8, ["language", "options", "modelValue", "placeholder"])
|
|
130
131
|
]),
|
|
131
|
-
e("span", z,
|
|
132
|
+
e("span", z, p(r.language?.entries ?? "Entries"), 1)
|
|
132
133
|
]),
|
|
133
134
|
t[5] || (t[5] = e("label", {
|
|
134
135
|
for: "table-search",
|
|
@@ -151,13 +152,13 @@ function ee(r, t, a, g, s, n) {
|
|
|
151
152
|
e("table", U, [
|
|
152
153
|
e("thead", q, [
|
|
153
154
|
e("tr", null, [
|
|
154
|
-
(l(!0), i(u, null,
|
|
155
|
+
(l(!0), i(u, null, c(a.columns, (o, f) => (l(), i("th", {
|
|
155
156
|
key: f,
|
|
156
157
|
onClick: (h) => n.updateSortColumn(o.field_name, o.sortable),
|
|
157
158
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
158
159
|
}, [
|
|
159
160
|
e("div", J, [
|
|
160
|
-
e("span", null,
|
|
161
|
+
e("span", null, p(o.field_label), 1),
|
|
161
162
|
s.sortField === o.field_name ? (l(), i("span", K, t[6] || (t[6] = [
|
|
162
163
|
e("svg", {
|
|
163
164
|
class: "w-4 h-4",
|
|
@@ -227,19 +228,19 @@ function ee(r, t, a, g, s, n) {
|
|
|
227
228
|
], -1)
|
|
228
229
|
]), 8, W)
|
|
229
230
|
])) : b("", !0),
|
|
230
|
-
s.isLoading ? b("", !0) : (l(!0), i(u, { key: 1 },
|
|
231
|
+
s.isLoading ? b("", !0) : (l(!0), i(u, { key: 1 }, c(n.groupedItems, (o, f) => (l(), i(u, null, [
|
|
231
232
|
e("tr", X, [
|
|
232
233
|
e("td", {
|
|
233
234
|
colspan: a.columns.length,
|
|
234
235
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
|
|
235
|
-
},
|
|
236
|
+
}, p(f), 9, Y)
|
|
236
237
|
]),
|
|
237
|
-
(l(!0), i(u, null,
|
|
238
|
-
key:
|
|
238
|
+
(l(!0), i(u, null, c(o, (h, _) => (l(), i("tr", {
|
|
239
|
+
key: _,
|
|
239
240
|
class: "text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
|
240
241
|
}, [
|
|
241
|
-
(l(!0), i(u, null,
|
|
242
|
-
key:
|
|
242
|
+
(l(!0), i(u, null, c(a.columns, (d, x) => (l(), i("td", {
|
|
243
|
+
key: x,
|
|
243
244
|
"data-label": d.field_label,
|
|
244
245
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[1px]! dark:border-gray-700"
|
|
245
246
|
}, [
|
|
@@ -255,7 +256,7 @@ function ee(r, t, a, g, s, n) {
|
|
|
255
256
|
onDeleteAction: t[3] || (t[3] = (k) => n.GetItemLists()),
|
|
256
257
|
onEditAction: (k) => n.editAction(h)
|
|
257
258
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (l(), i(u, { key: 1 }, [
|
|
258
|
-
S(
|
|
259
|
+
S(p(h[d.field_name]), 1)
|
|
259
260
|
], 64))
|
|
260
261
|
], 2)
|
|
261
262
|
], 8, Z))), 128))
|
|
@@ -277,7 +278,7 @@ function ee(r, t, a, g, s, n) {
|
|
|
277
278
|
])
|
|
278
279
|
]);
|
|
279
280
|
}
|
|
280
|
-
const le = /* @__PURE__ */ O(F, [["render", ee], ["__scopeId", "data-v-
|
|
281
|
+
const le = /* @__PURE__ */ O(F, [["render", ee], ["__scopeId", "data-v-b72ef021"]]);
|
|
281
282
|
export {
|
|
282
283
|
le as default
|
|
283
284
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import y from "./DeleteConfirmationModal.vue.js";
|
|
2
2
|
import x from "../../Stores/toast.js";
|
|
3
|
-
import { resolveComponent as b, createElementBlock as d, openBlock as n, Fragment as
|
|
3
|
+
import { resolveComponent as b, createElementBlock as d, openBlock as n, Fragment as g, createVNode as k, createElementVNode as a, normalizeClass as c, createCommentVNode as p, toDisplayString as u, withModifiers as _, renderList as h, normalizeStyle as v } from "vue";
|
|
4
4
|
import F from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const w = {
|
|
6
6
|
components: {
|
|
@@ -58,6 +58,10 @@ const w = {
|
|
|
58
58
|
max_file_size: {
|
|
59
59
|
type: Number,
|
|
60
60
|
default: 0
|
|
61
|
+
},
|
|
62
|
+
language: {
|
|
63
|
+
type: Object,
|
|
64
|
+
default: () => ({})
|
|
61
65
|
}
|
|
62
66
|
},
|
|
63
67
|
emits: ["update:modelValue", "uploaded"],
|
|
@@ -79,58 +83,58 @@ const w = {
|
|
|
79
83
|
this.open_delete_modal = !1;
|
|
80
84
|
},
|
|
81
85
|
deleteAction() {
|
|
82
|
-
axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((
|
|
86
|
+
axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((e) => {
|
|
83
87
|
this.inintUploadFileList();
|
|
84
|
-
let
|
|
85
|
-
(
|
|
88
|
+
let t = this.uploadFileList.findIndex(
|
|
89
|
+
(i) => i.id === this.media_id
|
|
86
90
|
);
|
|
87
|
-
|
|
88
|
-
message: "Item deleted successfully.",
|
|
91
|
+
t !== -1 && this.uploadFileList.splice(t, 1), this.closeDeleteModal(), x.methods.add({
|
|
92
|
+
message: this.language?.item_deleted_successfully ?? "Item deleted successfully.",
|
|
89
93
|
type: "success",
|
|
90
94
|
duration: 5e3
|
|
91
95
|
}), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList);
|
|
92
|
-
}).catch((
|
|
93
|
-
console.error(
|
|
96
|
+
}).catch((e) => {
|
|
97
|
+
console.error(e), this.is_loading = !1;
|
|
94
98
|
});
|
|
95
99
|
},
|
|
96
|
-
getFileName(
|
|
97
|
-
return
|
|
100
|
+
getFileName(e) {
|
|
101
|
+
return e.length > 12 ? e.substring(0, 13) + "... ." + e.split(".")[1] : e;
|
|
98
102
|
},
|
|
99
|
-
formatFileSize(
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
return parseFloat((
|
|
103
|
+
formatFileSize(e) {
|
|
104
|
+
if (e === 0) return "0 Bytes";
|
|
105
|
+
const t = 1024, i = ["Bytes", "KB", "MB", "GB", "TB"], o = Math.floor(Math.log(e) / Math.log(t));
|
|
106
|
+
return parseFloat((e / Math.pow(t, o)).toFixed(2)) + " " + i[o];
|
|
103
107
|
},
|
|
104
|
-
onDragOver(
|
|
105
|
-
|
|
108
|
+
onDragOver(e) {
|
|
109
|
+
e.preventDefault(), this.isDragging = !0, e.dataTransfer.dropEffect = "copy";
|
|
106
110
|
},
|
|
107
|
-
onDragLeave(
|
|
108
|
-
|
|
111
|
+
onDragLeave(e) {
|
|
112
|
+
e.preventDefault(), this.isDragging = !1;
|
|
109
113
|
},
|
|
110
|
-
onDrop(
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
Array.from(
|
|
114
|
-
this.uploadFile(
|
|
114
|
+
onDrop(e) {
|
|
115
|
+
e.preventDefault(), this.isDragging = !1;
|
|
116
|
+
const t = e.dataTransfer.files;
|
|
117
|
+
Array.from(t).forEach((i) => {
|
|
118
|
+
this.uploadFile(i);
|
|
115
119
|
});
|
|
116
120
|
},
|
|
117
|
-
async uploadFiles(
|
|
121
|
+
async uploadFiles(e) {
|
|
118
122
|
this.inintUploadFileList();
|
|
119
|
-
const
|
|
123
|
+
const t = e.target.files, i = Array.from(t).map(
|
|
120
124
|
(o) => this.uploadFile(o)
|
|
121
125
|
);
|
|
122
|
-
await Promise.all(
|
|
126
|
+
await Promise.all(i), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList);
|
|
123
127
|
},
|
|
124
|
-
getFirstError(
|
|
125
|
-
return
|
|
128
|
+
getFirstError(e, t) {
|
|
129
|
+
return e.hasOwnProperty(t) ? e[t][0] : "";
|
|
126
130
|
},
|
|
127
|
-
async uploadFile(
|
|
128
|
-
return new Promise((
|
|
129
|
-
|
|
131
|
+
async uploadFile(e) {
|
|
132
|
+
return new Promise((t, i) => {
|
|
133
|
+
e || t();
|
|
130
134
|
const o = new FormData();
|
|
131
|
-
o.append(this.field_name,
|
|
132
|
-
o.append(l,
|
|
133
|
-
}), this.files.push({ file_name:
|
|
135
|
+
o.append(this.field_name, e), o.append("accepts_file_types", this.accepts_file_types), o.append("max_file_size", this.max_file_size), o.append("field_name", this.field_name), Object.entries(this.file_config).forEach(([l, s]) => {
|
|
136
|
+
o.append(l, s);
|
|
137
|
+
}), this.files.push({ file_name: e.name, loading: 0 }), axios.post(this.route_url + "/media", o, {
|
|
134
138
|
headers: {
|
|
135
139
|
"Content-Type": "multipart/form-data"
|
|
136
140
|
},
|
|
@@ -140,24 +144,24 @@ const w = {
|
|
|
140
144
|
);
|
|
141
145
|
}
|
|
142
146
|
}).then((l) => {
|
|
143
|
-
let
|
|
144
|
-
(f) => f.file_name ===
|
|
147
|
+
let s = this.files.findIndex(
|
|
148
|
+
(f) => f.file_name === e.name
|
|
145
149
|
);
|
|
146
|
-
|
|
150
|
+
s !== -1 && this.files.splice(s, 1), this.has_multiple_file || (this.uploadFileList = []), this.uploadFileList.push({
|
|
147
151
|
file_name: l.data.file_name,
|
|
148
152
|
size: l.data.size,
|
|
149
153
|
id: l.data.id,
|
|
150
154
|
url: l.data.url
|
|
151
|
-
}), this.error_message_data = "",
|
|
155
|
+
}), this.error_message_data = "", t();
|
|
152
156
|
}).catch((l) => {
|
|
153
157
|
l.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
154
158
|
l.response.data.errors,
|
|
155
159
|
this.field_name
|
|
156
160
|
) : console.error("An error occurred:", l);
|
|
157
|
-
let
|
|
158
|
-
(f) => f.file_name ===
|
|
161
|
+
let s = this.files.findIndex(
|
|
162
|
+
(f) => f.file_name === e.name
|
|
159
163
|
);
|
|
160
|
-
|
|
164
|
+
s !== -1 && this.files.splice(s, 1), console.log(l), t();
|
|
161
165
|
});
|
|
162
166
|
});
|
|
163
167
|
}
|
|
@@ -171,132 +175,133 @@ const w = {
|
|
|
171
175
|
this.error_message_data = this.error_message;
|
|
172
176
|
},
|
|
173
177
|
watch: {
|
|
174
|
-
error_message(
|
|
175
|
-
this.error_message_data =
|
|
178
|
+
error_message(e, t) {
|
|
179
|
+
this.error_message_data = e;
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
|
-
}, D = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, L = ["multiple"], C = ["name", "value"], M = { key: 1 },
|
|
182
|
+
}, D = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, L = ["multiple"], C = ["name", "value"], M = { class: "text-sm text-gray-500 dark:text-gray-400" }, B = { key: 1 }, S = { class: "text-sm text-gray-500 dark:text-gray-400" }, j = { class: "mt-2 gl-span-form-error" }, z = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, V = {
|
|
179
183
|
key: 0,
|
|
180
184
|
class: ""
|
|
181
|
-
},
|
|
182
|
-
function
|
|
185
|
+
}, O = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow-sm dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, A = { class: "w-full ml-3" }, N = { class: "flex items-center justify-between mb-1" }, E = { class: "text-xs text-black dark:text-white" }, P = { class: "text-xs text-black dark:text-white" }, T = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, U = { class: "overflow-x-scroll max-h-56" }, I = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow-sm dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, q = { class: "flex items-center" }, G = { class: "flex flex-col ml-3" }, K = { class: "text-xs" }, H = { class: "text-xs" }, J = { class: "flex gap-2" }, Q = ["href"], R = ["onClick"];
|
|
186
|
+
function W(e, t, i, o, l, s) {
|
|
183
187
|
const f = b("DeleteConfirmationModal");
|
|
184
|
-
return n(), d(
|
|
188
|
+
return n(), d(g, null, [
|
|
185
189
|
k(f, {
|
|
190
|
+
language: i.language,
|
|
186
191
|
isOpen: l.open_delete_modal,
|
|
187
|
-
onConfirmDelete:
|
|
188
|
-
onCancelDelete:
|
|
189
|
-
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
190
|
-
|
|
191
|
-
class:
|
|
192
|
+
onConfirmDelete: s.deleteAction,
|
|
193
|
+
onCancelDelete: s.closeDeleteModal
|
|
194
|
+
}, null, 8, ["language", "isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
195
|
+
a("div", {
|
|
196
|
+
class: c([{
|
|
192
197
|
"border-red-500 dark:border-red-500": l.error_message_data !== "",
|
|
193
198
|
"border-gray-200 dark:border-gray-700": l.error_message_data == ""
|
|
194
199
|
}, "w-full p-4 bg-white border rounded-lg shadow-sm dark:bg-gray-800"])
|
|
195
200
|
}, [
|
|
196
|
-
|
|
197
|
-
class:
|
|
201
|
+
a("label", {
|
|
202
|
+
class: c({
|
|
198
203
|
"gl-label-form": l.error_message_data == "",
|
|
199
204
|
"gl-label-form-invalid": l.error_message_data !== "",
|
|
200
|
-
required:
|
|
205
|
+
required: i.is_required
|
|
201
206
|
})
|
|
202
|
-
}, u(
|
|
203
|
-
|
|
204
|
-
onDragover:
|
|
205
|
-
onDragleave:
|
|
206
|
-
onDrop:
|
|
207
|
+
}, u(i.label_name), 3),
|
|
208
|
+
a("div", {
|
|
209
|
+
onDragover: t[2] || (t[2] = _((...r) => s.onDragOver && s.onDragOver(...r), ["prevent"])),
|
|
210
|
+
onDragleave: t[3] || (t[3] = _((...r) => s.onDragLeave && s.onDragLeave(...r), ["prevent"])),
|
|
211
|
+
onDrop: t[4] || (t[4] = _((...r) => s.onDrop && s.onDrop(...r), ["prevent"])),
|
|
207
212
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
208
213
|
}, [
|
|
209
|
-
|
|
210
|
-
|
|
214
|
+
a("div", D, [
|
|
215
|
+
a("input", {
|
|
211
216
|
type: "file",
|
|
212
|
-
ref: "file_input" +
|
|
217
|
+
ref: "file_input" + i.field_name,
|
|
213
218
|
hidden: "",
|
|
214
|
-
multiple:
|
|
215
|
-
onChange:
|
|
219
|
+
multiple: i.has_multiple_file,
|
|
220
|
+
onChange: t[0] || (t[0] = (...r) => s.uploadFiles && s.uploadFiles(...r))
|
|
216
221
|
}, null, 40, L),
|
|
217
|
-
(n(!0), d(
|
|
222
|
+
(n(!0), d(g, null, h(s.uploadFileListFinal, (r, m) => (n(), d("input", {
|
|
218
223
|
type: "hidden",
|
|
219
|
-
name:
|
|
220
|
-
key:
|
|
221
|
-
value:
|
|
224
|
+
name: i.field_name + "[]",
|
|
225
|
+
key: m,
|
|
226
|
+
value: r.id
|
|
222
227
|
}, null, 8, C))), 128)),
|
|
223
|
-
l.isDragging ? (n(), d("div",
|
|
224
|
-
|
|
225
|
-
]))
|
|
228
|
+
l.isDragging ? (n(), d("div", B, [
|
|
229
|
+
a("p", S, u(i.language?.drop_files_here ?? "Drop files here"), 1)
|
|
230
|
+
])) : (n(), d("div", {
|
|
226
231
|
key: 0,
|
|
227
232
|
class: "flex flex-col items-center justify-center",
|
|
228
|
-
onClick:
|
|
229
|
-
},
|
|
230
|
-
|
|
233
|
+
onClick: t[1] || (t[1] = (r) => e.$refs["file_input" + this.field_name].click())
|
|
234
|
+
}, [
|
|
235
|
+
t[5] || (t[5] = a("svg", {
|
|
231
236
|
class: "w-8 h-8 mb-4 text-gray-500 dark:text-gray-400",
|
|
232
237
|
"aria-hidden": "true",
|
|
233
238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
234
239
|
fill: "none",
|
|
235
240
|
viewBox: "0 0 20 16"
|
|
236
241
|
}, [
|
|
237
|
-
|
|
242
|
+
a("path", {
|
|
238
243
|
stroke: "currentColor",
|
|
239
244
|
"stroke-linecap": "round",
|
|
240
245
|
"stroke-linejoin": "round",
|
|
241
246
|
"stroke-width": "2",
|
|
242
247
|
d: "M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"
|
|
243
248
|
})
|
|
244
|
-
], -1),
|
|
245
|
-
|
|
246
|
-
]))
|
|
249
|
+
], -1)),
|
|
250
|
+
a("p", M, u(i.language?.drag_drop_files_or_browse ?? "Drag & drop files or browse"), 1)
|
|
251
|
+
]))
|
|
247
252
|
])
|
|
248
253
|
], 32),
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
l.files.length > 0 ? (n(), d("section",
|
|
252
|
-
(n(!0), d(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
a("span", j, u(l.error_message_data), 1),
|
|
255
|
+
a("small", z, u(i.description), 1),
|
|
256
|
+
l.files.length > 0 ? (n(), d("section", V, [
|
|
257
|
+
(n(!0), d(g, null, h(l.files, (r, m) => (n(), d("li", O, [
|
|
258
|
+
t[6] || (t[6] = a("i", { class: "text-3xl fas fa-file-alt" }, null, -1)),
|
|
259
|
+
a("div", A, [
|
|
260
|
+
a("div", N, [
|
|
261
|
+
a("span", E, u(s.getFileName(r.file_name)), 1),
|
|
262
|
+
a("span", P, u(r.loading), 1)
|
|
258
263
|
]),
|
|
259
|
-
|
|
260
|
-
|
|
264
|
+
a("div", T, [
|
|
265
|
+
a("div", {
|
|
261
266
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
262
|
-
style: v({ width:
|
|
267
|
+
style: v({ width: r.loading + "%" })
|
|
263
268
|
}, null, 4)
|
|
264
269
|
])
|
|
265
270
|
])
|
|
266
271
|
]))), 256))
|
|
267
|
-
])) :
|
|
268
|
-
|
|
269
|
-
(n(!0), d(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
+
])) : p("", !0),
|
|
273
|
+
a("section", U, [
|
|
274
|
+
(n(!0), d(g, null, h(s.uploadFileListFinal, (r, m) => (n(), d("li", I, [
|
|
275
|
+
a("div", q, [
|
|
276
|
+
t[7] || (t[7] = a("i", {
|
|
272
277
|
class: "text-3xl fas fa-file-alt",
|
|
273
278
|
"aria-hidden": "true"
|
|
274
279
|
}, null, -1)),
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
280
|
+
a("div", G, [
|
|
281
|
+
a("span", K, u(s.getFileName(r.file_name)), 1),
|
|
282
|
+
a("span", H, u(s.formatFileSize(r.size)), 1)
|
|
278
283
|
])
|
|
279
284
|
]),
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
href:
|
|
285
|
+
a("div", J, [
|
|
286
|
+
a("a", {
|
|
287
|
+
href: r.url,
|
|
283
288
|
target: "_blank",
|
|
284
289
|
class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
|
|
285
|
-
}, null, 8,
|
|
286
|
-
|
|
290
|
+
}, null, 8, Q),
|
|
291
|
+
i.is_enable_delete ? (n(), d("i", {
|
|
287
292
|
key: 0,
|
|
288
|
-
onClick: (
|
|
289
|
-
l.media_id =
|
|
293
|
+
onClick: (X) => {
|
|
294
|
+
l.media_id = r.id, l.open_delete_modal = !0;
|
|
290
295
|
},
|
|
291
296
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
292
|
-
}, null, 8,
|
|
297
|
+
}, null, 8, R)) : p("", !0)
|
|
293
298
|
])
|
|
294
299
|
]))), 256))
|
|
295
300
|
])
|
|
296
301
|
], 2)
|
|
297
302
|
], 64);
|
|
298
303
|
}
|
|
299
|
-
const
|
|
304
|
+
const te = /* @__PURE__ */ F(w, [["render", W]]);
|
|
300
305
|
export {
|
|
301
|
-
|
|
306
|
+
te as default
|
|
302
307
|
};
|