@deskhero/dh_ui 1.36.1 → 1.36.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dh_ui.es.js
CHANGED
|
@@ -24167,12 +24167,24 @@ const _sfc_main$c = defineComponent({
|
|
|
24167
24167
|
title: {
|
|
24168
24168
|
type: String,
|
|
24169
24169
|
default: "Advanced"
|
|
24170
|
+
},
|
|
24171
|
+
isAdvancedSettingsOpen: {
|
|
24172
|
+
type: Boolean,
|
|
24173
|
+
default: false
|
|
24170
24174
|
}
|
|
24171
24175
|
},
|
|
24172
24176
|
data() {
|
|
24173
24177
|
return {
|
|
24174
|
-
|
|
24178
|
+
isAdvancedSettingsCurrentlyOpen: false
|
|
24175
24179
|
};
|
|
24180
|
+
},
|
|
24181
|
+
watch: {
|
|
24182
|
+
isAdvancedSettingsOpen: function(newVal) {
|
|
24183
|
+
this.isAdvancedSettingsCurrentlyOpen = newVal;
|
|
24184
|
+
}
|
|
24185
|
+
},
|
|
24186
|
+
mounted() {
|
|
24187
|
+
this.isAdvancedSettingsCurrentlyOpen = this.isAdvancedSettingsOpen;
|
|
24176
24188
|
}
|
|
24177
24189
|
});
|
|
24178
24190
|
const _hoisted_1$c = { class: "dh-body-1-medium" };
|
|
@@ -24181,18 +24193,21 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24181
24193
|
const _component_dh_icon = resolveComponent("dh-icon");
|
|
24182
24194
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24183
24195
|
createElementVNode("div", {
|
|
24184
|
-
class: normalizeClass(["advanced-panel-header clickable", {
|
|
24196
|
+
class: normalizeClass(["advanced-panel-header clickable", {
|
|
24197
|
+
opened: _ctx.isAdvancedSettingsCurrentlyOpen,
|
|
24198
|
+
closed: !_ctx.isAdvancedSettingsCurrentlyOpen
|
|
24199
|
+
}]),
|
|
24185
24200
|
"data-e2e": "expansion-panel-button",
|
|
24186
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.
|
|
24201
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.isAdvancedSettingsCurrentlyOpen = !_ctx.isAdvancedSettingsCurrentlyOpen)
|
|
24187
24202
|
}, [
|
|
24188
24203
|
createElementVNode("h4", _hoisted_1$c, toDisplayString(_ctx.title), 1),
|
|
24189
24204
|
createVNode(_component_dh_icon, {
|
|
24190
24205
|
class: "icon",
|
|
24191
|
-
"icon-name": _ctx.
|
|
24206
|
+
"icon-name": _ctx.isAdvancedSettingsCurrentlyOpen ? "arrow-up" : "arrow-down",
|
|
24192
24207
|
size: 24
|
|
24193
24208
|
}, null, 8, ["icon-name"])
|
|
24194
24209
|
], 2),
|
|
24195
|
-
_ctx.
|
|
24210
|
+
_ctx.isAdvancedSettingsCurrentlyOpen ? renderSlot(_ctx.$slots, "content", { key: 0 }, () => [
|
|
24196
24211
|
_hoisted_2$c
|
|
24197
24212
|
]) : createCommentVNode("", true)
|
|
24198
24213
|
], 64);
|
|
@@ -24246,19 +24261,22 @@ const _sfc_main$b = {
|
|
|
24246
24261
|
},
|
|
24247
24262
|
modelValue: {
|
|
24248
24263
|
type: FileList,
|
|
24249
|
-
required:
|
|
24264
|
+
required: false,
|
|
24265
|
+
default: void 0
|
|
24250
24266
|
},
|
|
24251
24267
|
inline: {
|
|
24252
24268
|
type: Boolean,
|
|
24269
|
+
required: false,
|
|
24253
24270
|
default: false
|
|
24254
24271
|
},
|
|
24255
|
-
|
|
24272
|
+
errorOccurred: {
|
|
24256
24273
|
type: Array,
|
|
24257
24274
|
required: true
|
|
24258
24275
|
},
|
|
24259
24276
|
errorMessage: {
|
|
24260
24277
|
type: String,
|
|
24261
|
-
|
|
24278
|
+
required: false,
|
|
24279
|
+
default: "an error occurred while uploading"
|
|
24262
24280
|
},
|
|
24263
24281
|
fileSaved: {
|
|
24264
24282
|
type: Boolean,
|
|
@@ -24270,22 +24288,27 @@ const _sfc_main$b = {
|
|
|
24270
24288
|
},
|
|
24271
24289
|
virusCheckText: {
|
|
24272
24290
|
type: String,
|
|
24291
|
+
required: false,
|
|
24273
24292
|
default: "Antivirus check ..."
|
|
24274
24293
|
},
|
|
24275
24294
|
virusCheckFailedText: {
|
|
24276
24295
|
type: String,
|
|
24296
|
+
required: false,
|
|
24277
24297
|
default: "Antivirus check failed"
|
|
24278
24298
|
},
|
|
24279
24299
|
virusDetectedText: {
|
|
24280
24300
|
type: String,
|
|
24301
|
+
required: false,
|
|
24281
24302
|
default: "Virus detected"
|
|
24282
24303
|
},
|
|
24283
24304
|
deleteConfirmationText: {
|
|
24284
24305
|
type: String,
|
|
24306
|
+
required: false,
|
|
24285
24307
|
default: "Are you sure you want to delete it permanently? this action will be irreversible"
|
|
24286
24308
|
},
|
|
24287
24309
|
zIndex: {
|
|
24288
24310
|
type: Number,
|
|
24311
|
+
required: false,
|
|
24289
24312
|
default: 99
|
|
24290
24313
|
}
|
|
24291
24314
|
},
|
|
@@ -24403,11 +24426,11 @@ const _sfc_main$b = {
|
|
|
24403
24426
|
class: normalizeClass(["file__upload_list", __props.inline ? "" : "file__upload_list_box"])
|
|
24404
24427
|
}, [
|
|
24405
24428
|
createVNode(DhIcon, {
|
|
24406
|
-
class: normalizeClass(__props.
|
|
24429
|
+
class: normalizeClass(__props.errorOccurred[id] ? "file__upload_list_icon" : ""),
|
|
24407
24430
|
"icon-name": `file-` + iconName(file.name),
|
|
24408
24431
|
size: 40
|
|
24409
24432
|
}, null, 8, ["class", "icon-name"]),
|
|
24410
|
-
props.uploadProgress[id] == 100 && __props.fileSaved && !__props.
|
|
24433
|
+
props.uploadProgress[id] == 100 && __props.fileSaved && !__props.errorOccurred[id] && __props.virusCheck[id] == "loading" ? (openBlock(), createBlock(DhIcon, {
|
|
24411
24434
|
key: 0,
|
|
24412
24435
|
class: "file__upload_list_icon_sub file__upload_list_icon_sub--loading",
|
|
24413
24436
|
"icon-name": "states",
|
|
@@ -24428,7 +24451,7 @@ const _sfc_main$b = {
|
|
|
24428
24451
|
size: 20,
|
|
24429
24452
|
style: normalizeStyle({ "z-index": props.zIndex })
|
|
24430
24453
|
}, null, 8, ["style"])) : createCommentVNode("", true),
|
|
24431
|
-
__props.fileSaved && __props.
|
|
24454
|
+
__props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createBlock(DhIcon, {
|
|
24432
24455
|
key: 3,
|
|
24433
24456
|
class: "file__upload_list_icon_sub",
|
|
24434
24457
|
"icon-name": "error",
|
|
@@ -24441,7 +24464,7 @@ const _sfc_main$b = {
|
|
|
24441
24464
|
createElementVNode("span", {
|
|
24442
24465
|
title: file.name
|
|
24443
24466
|
}, toDisplayString(getName(file.name)) + toDisplayString(getExtension(file.name)), 9, _hoisted_5$3),
|
|
24444
|
-
props.uploadProgress[id] == 100 && __props.fileSaved && !__props.
|
|
24467
|
+
props.uploadProgress[id] == 100 && __props.fileSaved && !__props.errorOccurred[id] && __props.virusCheck[id] == "loading" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
|
|
24445
24468
|
createTextVNode(toDisplayString(__props.virusCheckText) + " ", 1),
|
|
24446
24469
|
createVNode(DhIcon, {
|
|
24447
24470
|
class: "file__upload_list_icon_sub--loading",
|
|
@@ -24452,8 +24475,8 @@ const _sfc_main$b = {
|
|
|
24452
24475
|
props.uploadProgress[id] == 100 && __props.fileSaved && __props.virusCheck[id] == "failed" ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(__props.virusCheckFailedText), 1)) : createCommentVNode("", true),
|
|
24453
24476
|
props.uploadProgress[id] == 100 && __props.fileSaved && __props.virusCheck[id] == "detected" ? (openBlock(), createElementBlock("span", _hoisted_8$1, toDisplayString(__props.virusDetectedText), 1)) : createCommentVNode("", true),
|
|
24454
24477
|
_hoisted_9$1,
|
|
24455
|
-
__props.fileSaved && !__props.
|
|
24456
|
-
__props.fileSaved && __props.
|
|
24478
|
+
__props.fileSaved && !__props.errorOccurred[id] || !__props.errorOccurred[id] && __props.virusCheck[id] ? (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(formatBytes(file.size)), 1)) : createCommentVNode("", true),
|
|
24479
|
+
__props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
|
|
24457
24480
|
]),
|
|
24458
24481
|
!__props.fileSaved ? (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(props.uploadProgress[id]) + "%", 1)) : createCommentVNode("", true)
|
|
24459
24482
|
]),
|
|
@@ -24464,7 +24487,7 @@ const _sfc_main$b = {
|
|
|
24464
24487
|
value: props.uploadProgress[id]
|
|
24465
24488
|
}, toDisplayString(props.uploadProgress[id]) + "% ", 9, _hoisted_13$1)) : createCommentVNode("", true)
|
|
24466
24489
|
]),
|
|
24467
|
-
__props.fileSaved && !__props.virusCheck[id] && !__props.
|
|
24490
|
+
__props.fileSaved && !__props.virusCheck[id] && !__props.errorOccurred[id] ? (openBlock(), createElementBlock("a", {
|
|
24468
24491
|
key: 4,
|
|
24469
24492
|
class: "file__upload_list_download",
|
|
24470
24493
|
download: "",
|
|
@@ -24476,7 +24499,7 @@ const _sfc_main$b = {
|
|
|
24476
24499
|
size: 24
|
|
24477
24500
|
})
|
|
24478
24501
|
], 8, _hoisted_14$1)) : createCommentVNode("", true),
|
|
24479
|
-
__props.fileSaved && __props.
|
|
24502
|
+
__props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createElementBlock("a", {
|
|
24480
24503
|
key: 5,
|
|
24481
24504
|
class: "file__upload_list_retry",
|
|
24482
24505
|
onClick: _cache[3] || (_cache[3] = ($event) => reload($event))
|