@web-utils/component 2.70.0 → 3.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/address-input/index.mjs +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/pageable-view/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var $ = Object.defineProperty, T = Object.defineProperties;
|
|
|
2
2
|
var w = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var d = Object.getOwnPropertySymbols;
|
|
4
4
|
var f = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (e, t, s) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s,
|
|
5
|
+
var u = (e, t, s) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, g = (e, t) => {
|
|
6
6
|
for (var s in t || (t = {}))
|
|
7
7
|
f.call(t, s) && u(e, s, t[s]);
|
|
8
8
|
if (d)
|
|
@@ -20,7 +20,7 @@ var y = (e, t) => {
|
|
|
20
20
|
return s;
|
|
21
21
|
};
|
|
22
22
|
var h = (e, t, s) => new Promise((l, r) => {
|
|
23
|
-
var
|
|
23
|
+
var p = (i) => {
|
|
24
24
|
try {
|
|
25
25
|
a(s.next(i));
|
|
26
26
|
} catch (n) {
|
|
@@ -32,14 +32,15 @@ var h = (e, t, s) => new Promise((l, r) => {
|
|
|
32
32
|
} catch (n) {
|
|
33
33
|
r(n);
|
|
34
34
|
}
|
|
35
|
-
}, a = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(
|
|
35
|
+
}, a = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(p, o);
|
|
36
36
|
a((s = s.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { cloneDeep as
|
|
38
|
+
import { cloneDeep as _, merge as P } from "@web-utils/integrations/lodash";
|
|
39
39
|
import { copy as x, hasOwn as C } from "@web-utils/core";
|
|
40
|
-
import { f as
|
|
41
|
-
import
|
|
42
|
-
|
|
40
|
+
import { f as S, a as O, b as M } from "../chunks/index.d91bd77a.mjs";
|
|
41
|
+
import R from "element-ui/lib/pagination";
|
|
42
|
+
import { n as j } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
43
|
+
var k = function() {
|
|
43
44
|
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
44
45
|
return s("div", {
|
|
45
46
|
staticClass: "work",
|
|
@@ -73,7 +74,7 @@ var R = function() {
|
|
|
73
74
|
return [e._t("default", null, {
|
|
74
75
|
item: l
|
|
75
76
|
})];
|
|
76
|
-
}), e._t("append")], 2)])]), s(
|
|
77
|
+
}), e._t("append")], 2)])]), s(R, {
|
|
77
78
|
staticClass: "flex-not-shrink",
|
|
78
79
|
staticStyle: {
|
|
79
80
|
"border-top": "1px solid #ebeef5"
|
|
@@ -92,8 +93,8 @@ var R = function() {
|
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
})], 1)]);
|
|
95
|
-
},
|
|
96
|
-
function
|
|
96
|
+
}, E = [];
|
|
97
|
+
function F(e) {
|
|
97
98
|
let t = "";
|
|
98
99
|
for (const s in e)
|
|
99
100
|
t += `<ElTableColumn prop="${s}" label="${s}"/>
|
|
@@ -105,7 +106,7 @@ const c = {
|
|
|
105
106
|
error: -1,
|
|
106
107
|
empty: 2,
|
|
107
108
|
success: 0
|
|
108
|
-
},
|
|
109
|
+
}, L = {
|
|
109
110
|
name: "PageableView",
|
|
110
111
|
bus: {
|
|
111
112
|
reloadTableView(e) {
|
|
@@ -167,7 +168,7 @@ const c = {
|
|
|
167
168
|
let e = { rules: [] };
|
|
168
169
|
this.rules && this.rules.length > 0 && (e.rules = this.rules), this.filters && (e = this.filters), this.filter && (e = Object.assign({}, e, this.filter));
|
|
169
170
|
let t = {};
|
|
170
|
-
this.model && (t =
|
|
171
|
+
this.model && (t = _(this.model));
|
|
171
172
|
const s = this.pageSize;
|
|
172
173
|
return {
|
|
173
174
|
// TABLE_STATUS: Object.freeze(TABLE_STATUS),
|
|
@@ -213,7 +214,7 @@ const c = {
|
|
|
213
214
|
},
|
|
214
215
|
headers() {
|
|
215
216
|
var e;
|
|
216
|
-
return ((e = this.columns) == null ? void 0 : e.map(
|
|
217
|
+
return ((e = this.columns) == null ? void 0 : e.map(S)) || [];
|
|
217
218
|
}
|
|
218
219
|
},
|
|
219
220
|
watch: {
|
|
@@ -249,12 +250,12 @@ const c = {
|
|
|
249
250
|
});
|
|
250
251
|
},
|
|
251
252
|
filterTableProperties: O,
|
|
252
|
-
filterTableEvents:
|
|
253
|
-
filterTableColumnProperties:
|
|
253
|
+
filterTableEvents: M,
|
|
254
|
+
filterTableColumnProperties: S,
|
|
254
255
|
onTableScroll() {
|
|
255
256
|
this.tableScrollTop = this.$refs.scroller.scrollTop, this.tableScrollLeft = this.$refs.scroller.scrollLeft;
|
|
256
257
|
},
|
|
257
|
-
copy: (e) => x(
|
|
258
|
+
copy: (e) => x(F(e)),
|
|
258
259
|
onSortChange({ prop: e, order: t }) {
|
|
259
260
|
this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
|
|
260
261
|
},
|
|
@@ -275,7 +276,7 @@ const c = {
|
|
|
275
276
|
this.$set(this.page.model, e, t);
|
|
276
277
|
},
|
|
277
278
|
setModel(e) {
|
|
278
|
-
this.page.page = 1, this.page.model =
|
|
279
|
+
this.page.page = 1, this.page.model = _(e);
|
|
279
280
|
},
|
|
280
281
|
deleteModelField(e) {
|
|
281
282
|
delete this.page.model[e];
|
|
@@ -314,7 +315,7 @@ const c = {
|
|
|
314
315
|
}
|
|
315
316
|
this.records = [];
|
|
316
317
|
let e;
|
|
317
|
-
const a = this.page, { filters: t } = a, s = y(a, ["filters"]), l =
|
|
318
|
+
const a = this.page, { filters: t } = a, s = y(a, ["filters"]), l = g({}, s);
|
|
318
319
|
if ((i = t == null ? void 0 : t.rules) != null && i.length && (l.filters = { rules: t.rules }), this.api || this.url) {
|
|
319
320
|
this.tableStatus = c.loading;
|
|
320
321
|
try {
|
|
@@ -330,8 +331,8 @@ const c = {
|
|
|
330
331
|
});
|
|
331
332
|
return;
|
|
332
333
|
}
|
|
333
|
-
const { data: r } = e || {}, { total:
|
|
334
|
-
this.page.total = Number(
|
|
334
|
+
const { data: r } = e || {}, { total: p, records: o } = r || {};
|
|
335
|
+
this.page.total = Number(p), this.records = o, !o || !o.length ? this.tableStatus = c.empty : this.tableStatus = c.success, this.$refs.table && (this.$refs.scroller.scrollTop = 0), this.$emit("page-loaded", r);
|
|
335
336
|
});
|
|
336
337
|
},
|
|
337
338
|
refresh() {
|
|
@@ -341,7 +342,7 @@ const c = {
|
|
|
341
342
|
},
|
|
342
343
|
reload() {
|
|
343
344
|
return h(this, null, function* () {
|
|
344
|
-
this.page = b(
|
|
345
|
+
this.page = b(g({}, this.$options.data.call(this).page), {
|
|
345
346
|
total: this.page.total
|
|
346
347
|
});
|
|
347
348
|
});
|
|
@@ -350,24 +351,24 @@ const c = {
|
|
|
350
351
|
e && (this.$refs.scroller.scrollTop = e), t && (this.$refs.scroller.scrollLeft = t);
|
|
351
352
|
}
|
|
352
353
|
}
|
|
353
|
-
},
|
|
354
|
-
var
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
354
|
+
}, v = {};
|
|
355
|
+
var A = /* @__PURE__ */ j(
|
|
356
|
+
L,
|
|
357
|
+
k,
|
|
358
|
+
E,
|
|
358
359
|
!1,
|
|
359
|
-
|
|
360
|
+
B,
|
|
360
361
|
null,
|
|
361
362
|
null,
|
|
362
363
|
null
|
|
363
364
|
);
|
|
364
|
-
function
|
|
365
|
-
for (let t in
|
|
366
|
-
this[t] =
|
|
365
|
+
function B(e) {
|
|
366
|
+
for (let t in v)
|
|
367
|
+
this[t] = v[t];
|
|
367
368
|
}
|
|
368
|
-
const
|
|
369
|
-
return
|
|
369
|
+
const H = /* @__PURE__ */ function() {
|
|
370
|
+
return A.exports;
|
|
370
371
|
}();
|
|
371
372
|
export {
|
|
372
|
-
|
|
373
|
+
H as default
|
|
373
374
|
};
|
package/present-view/index.mjs
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
var c = (t, e, o) => new Promise((
|
|
1
|
+
var c = (t, e, o) => new Promise((s, r) => {
|
|
2
2
|
var n = (i) => {
|
|
3
3
|
try {
|
|
4
4
|
a(o.next(i));
|
|
5
5
|
} catch (f) {
|
|
6
|
-
|
|
6
|
+
r(f);
|
|
7
7
|
}
|
|
8
8
|
}, l = (i) => {
|
|
9
9
|
try {
|
|
10
10
|
a(o.throw(i));
|
|
11
11
|
} catch (f) {
|
|
12
|
-
|
|
12
|
+
r(f);
|
|
13
13
|
}
|
|
14
|
-
}, a = (i) => i.done ?
|
|
14
|
+
}, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(n, l);
|
|
15
15
|
a((o = o.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { hasOwn as
|
|
18
|
-
import { merge as
|
|
19
|
-
import
|
|
17
|
+
import { hasOwn as m, toStringArray as v, delay as g, isInContainer as w } from "@web-utils/core";
|
|
18
|
+
import { merge as y } from "@web-utils/integrations/lodash";
|
|
19
|
+
import x from "@web-utils/component/resize-observer";
|
|
20
20
|
import "@web-utils/component/resize-observer/style.css";
|
|
21
|
-
import {
|
|
22
|
-
|
|
21
|
+
import { _ as $, a as S } from "../chunks/FormItemGroup.41daddb6.mjs";
|
|
22
|
+
import { _ as F } from "../chunks/ResizeObserver.60f728f0.mjs";
|
|
23
|
+
import { _ as u } from "../chunks/Toolbar.5c539dbb.mjs";
|
|
24
|
+
import { _ as h } from "../chunks/EmptyView.e2430422.mjs";
|
|
25
|
+
import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
26
|
+
var B = function() {
|
|
23
27
|
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
24
28
|
return o("div", {
|
|
25
29
|
class: ["form-view", t.className]
|
|
@@ -32,7 +36,7 @@ var x = function() {
|
|
|
32
36
|
}],
|
|
33
37
|
staticClass: "form-view-toolbar"
|
|
34
38
|
}, [t._t("form-view-toolbar", function() {
|
|
35
|
-
return [o(
|
|
39
|
+
return [o(u, t._g(t._b({
|
|
36
40
|
directives: [{
|
|
37
41
|
name: "show",
|
|
38
42
|
rawName: "v-show",
|
|
@@ -44,17 +48,17 @@ var x = function() {
|
|
|
44
48
|
},
|
|
45
49
|
scopedSlots: t._u([{
|
|
46
50
|
key: "default",
|
|
47
|
-
fn: function(
|
|
48
|
-
var
|
|
51
|
+
fn: function(s) {
|
|
52
|
+
var r = s.buttons;
|
|
49
53
|
return [t._t("toolbar-button", null, {
|
|
50
|
-
buttons:
|
|
54
|
+
buttons: r
|
|
51
55
|
})];
|
|
52
56
|
}
|
|
53
|
-
}, t._l(t.getToolbarSlotKeys(), function(
|
|
57
|
+
}, t._l(t.getToolbarSlotKeys(), function(s) {
|
|
54
58
|
return {
|
|
55
|
-
key:
|
|
59
|
+
key: s,
|
|
56
60
|
fn: function() {
|
|
57
|
-
return [t._t(
|
|
61
|
+
return [t._t(s)];
|
|
58
62
|
},
|
|
59
63
|
proxy: !0
|
|
60
64
|
};
|
|
@@ -90,29 +94,29 @@ var x = function() {
|
|
|
90
94
|
}, [t.title ? o("div", {
|
|
91
95
|
staticClass: "form-view-title"
|
|
92
96
|
}, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
93
|
-
return [o(
|
|
97
|
+
return [o(h, {
|
|
94
98
|
attrs: {
|
|
95
99
|
"empty-tips": "请添加表单内容"
|
|
96
100
|
}
|
|
97
101
|
})];
|
|
98
|
-
}), o(
|
|
102
|
+
}), o(u, t._g(t._b({
|
|
99
103
|
attrs: {
|
|
100
104
|
footer: ""
|
|
101
105
|
},
|
|
102
106
|
scopedSlots: t._u([{
|
|
103
107
|
key: "default",
|
|
104
|
-
fn: function(
|
|
105
|
-
var
|
|
108
|
+
fn: function(s) {
|
|
109
|
+
var r = s.buttons, n = s.footer;
|
|
106
110
|
return [t._t("footer-button", null, {
|
|
107
|
-
buttons:
|
|
111
|
+
buttons: r,
|
|
108
112
|
footer: n
|
|
109
113
|
})];
|
|
110
114
|
}
|
|
111
|
-
}, t._l(t.getFooterSlotKeys(), function(
|
|
115
|
+
}, t._l(t.getFooterSlotKeys(), function(s) {
|
|
112
116
|
return {
|
|
113
|
-
key: t.getFooterSlotKey(
|
|
117
|
+
key: t.getFooterSlotKey(s),
|
|
114
118
|
fn: function() {
|
|
115
|
-
return [t._t(
|
|
119
|
+
return [t._t(s)];
|
|
116
120
|
},
|
|
117
121
|
proxy: !0
|
|
118
122
|
};
|
|
@@ -131,29 +135,29 @@ var x = function() {
|
|
|
131
135
|
}, [t.title ? o("div", {
|
|
132
136
|
staticClass: "form-view-title"
|
|
133
137
|
}, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
134
|
-
return [o(
|
|
138
|
+
return [o(h, {
|
|
135
139
|
attrs: {
|
|
136
140
|
"empty-tips": "请添加表单内容"
|
|
137
141
|
}
|
|
138
142
|
})];
|
|
139
|
-
}), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o(
|
|
143
|
+
}), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o(u, t._g(t._b({
|
|
140
144
|
attrs: {
|
|
141
145
|
footer: ""
|
|
142
146
|
},
|
|
143
147
|
scopedSlots: t._u([{
|
|
144
148
|
key: "default",
|
|
145
|
-
fn: function(
|
|
146
|
-
var
|
|
149
|
+
fn: function(s) {
|
|
150
|
+
var r = s.buttons, n = s.footer;
|
|
147
151
|
return [t._t("footer-button", null, {
|
|
148
|
-
buttons:
|
|
152
|
+
buttons: r,
|
|
149
153
|
footer: n
|
|
150
154
|
})];
|
|
151
155
|
}
|
|
152
|
-
}, t._l(t.getFooterSlotKeys(), function(
|
|
156
|
+
}, t._l(t.getFooterSlotKeys(), function(s) {
|
|
153
157
|
return {
|
|
154
|
-
key: t.getFooterSlotKey(
|
|
158
|
+
key: t.getFooterSlotKey(s),
|
|
155
159
|
fn: function() {
|
|
156
|
-
return [t._t(
|
|
160
|
+
return [t._t(s)];
|
|
157
161
|
},
|
|
158
162
|
proxy: !0
|
|
159
163
|
};
|
|
@@ -172,7 +176,7 @@ var x = function() {
|
|
|
172
176
|
}
|
|
173
177
|
}, [o("div", {
|
|
174
178
|
staticClass: "form-content"
|
|
175
|
-
}, [o(
|
|
179
|
+
}, [o($, {
|
|
176
180
|
attrs: {
|
|
177
181
|
"block-title": "流程日志"
|
|
178
182
|
}
|
|
@@ -182,7 +186,7 @@ var x = function() {
|
|
|
182
186
|
"show-title": !1,
|
|
183
187
|
"business-key": t.$parent.bizKey
|
|
184
188
|
}
|
|
185
|
-
})], 1), t._t("form-bottom")], 2)]) : t._e()]), o(
|
|
189
|
+
})], 1), t._t("form-bottom")], 2)]) : t._e()]), o(F, {
|
|
186
190
|
on: {
|
|
187
191
|
notify: t.onFormResize
|
|
188
192
|
}
|
|
@@ -192,26 +196,26 @@ var x = function() {
|
|
|
192
196
|
staticClass: "form-nav-header"
|
|
193
197
|
}, [t._v("表单导航")]), o("ul", {
|
|
194
198
|
staticClass: "form-nav-list"
|
|
195
|
-
}, t._l(t.tabs, function(
|
|
199
|
+
}, t._l(t.tabs, function(s, r) {
|
|
196
200
|
return o("li", {
|
|
197
|
-
key:
|
|
201
|
+
key: s.blockTitle,
|
|
198
202
|
class: ["form-nav-item", {
|
|
199
|
-
active: t.activeIndex ===
|
|
203
|
+
active: t.activeIndex === r
|
|
200
204
|
}],
|
|
201
205
|
on: {
|
|
202
206
|
click: function(n) {
|
|
203
|
-
return t.tabClick(
|
|
207
|
+
return t.tabClick(s, r);
|
|
204
208
|
}
|
|
205
209
|
}
|
|
206
|
-
}, [t._v(" " + t._s(
|
|
207
|
-
}), 0)]) : t._e(), t.isFormLoading ? o(
|
|
210
|
+
}, [t._v(" " + t._s(s.blockTitle) + " ")]);
|
|
211
|
+
}), 0)]) : t._e(), t.isFormLoading ? o(S, {
|
|
208
212
|
attrs: {
|
|
209
213
|
"icon-size": "34px",
|
|
210
214
|
"font-size": "16px"
|
|
211
215
|
}
|
|
212
216
|
}) : t._e()], 1);
|
|
213
|
-
},
|
|
214
|
-
const
|
|
217
|
+
}, C = [];
|
|
218
|
+
const _ = [
|
|
215
219
|
"back",
|
|
216
220
|
"create",
|
|
217
221
|
"save",
|
|
@@ -231,17 +235,17 @@ const b = [
|
|
|
231
235
|
"disabled",
|
|
232
236
|
"reload",
|
|
233
237
|
"slot"
|
|
234
|
-
],
|
|
238
|
+
], L = _.map((t) => `${t}-down`), T = ["back", "withdraw", "edit"], b = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], d = (t, e) => {
|
|
235
239
|
if (t.classList.contains(e))
|
|
236
240
|
return t;
|
|
237
241
|
let o = t.parentNode;
|
|
238
242
|
for (; o && !o.classList.contains(e); )
|
|
239
243
|
o = o.parentNode;
|
|
240
244
|
return o.classList.contains(e) ? o : null;
|
|
241
|
-
},
|
|
245
|
+
}, O = {
|
|
242
246
|
name: "PresentView",
|
|
243
247
|
components: {
|
|
244
|
-
ResizeObserver:
|
|
248
|
+
ResizeObserver: x
|
|
245
249
|
},
|
|
246
250
|
inject: {
|
|
247
251
|
flowContext: {
|
|
@@ -284,23 +288,23 @@ const b = [
|
|
|
284
288
|
},
|
|
285
289
|
computed: {
|
|
286
290
|
isFormLoading() {
|
|
287
|
-
return this.loading ||
|
|
291
|
+
return this.loading || m(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
|
|
288
292
|
},
|
|
289
293
|
toolbarProps() {
|
|
290
|
-
var
|
|
291
|
-
const t = {}, e = ((
|
|
292
|
-
return o.buttons = e || ["back"], o.buttons =
|
|
294
|
+
var s;
|
|
295
|
+
const t = {}, e = ((s = this.toolbarAttrs) == null ? void 0 : s.buttons) || this.$parent.buttons, o = y({}, this.toolbarAttrs, t);
|
|
296
|
+
return o.buttons = e || ["back"], o.buttons = v(o.buttons), o;
|
|
293
297
|
}
|
|
294
298
|
},
|
|
295
299
|
created() {
|
|
296
300
|
this.$on("FormView.addTab", (t) => {
|
|
297
301
|
t && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(t), this.tabs = this.tabs.sort((e, o) => {
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
302
|
+
const s = d(e.$el, "form-card"), r = d(o.$el, "form-card");
|
|
303
|
+
if (s === r) {
|
|
300
304
|
const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
|
|
301
305
|
return n - l;
|
|
302
306
|
} else {
|
|
303
|
-
const n =
|
|
307
|
+
const n = d(s, "form-scroller"), l = [].indexOf.call(n.children, s), a = [].indexOf.call(n.children, r);
|
|
304
308
|
return l - a;
|
|
305
309
|
}
|
|
306
310
|
}), t.active && (this.activeIndex = this.tabs.indexOf(t), this.tabClick(t, this.activeIndex)));
|
|
@@ -318,10 +322,10 @@ const b = [
|
|
|
318
322
|
},
|
|
319
323
|
methods: {
|
|
320
324
|
getToolbarSlotKeys() {
|
|
321
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
325
|
+
return Object.keys(this.$scopedSlots).filter((t) => _.includes(t));
|
|
322
326
|
},
|
|
323
327
|
getFooterSlotKeys() {
|
|
324
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
328
|
+
return Object.keys(this.$scopedSlots).filter((t) => L.includes(t));
|
|
325
329
|
},
|
|
326
330
|
getFooterSlotKey(t) {
|
|
327
331
|
return t.replace("-down", "");
|
|
@@ -330,18 +334,18 @@ const b = [
|
|
|
330
334
|
this.showNav = t > 1500;
|
|
331
335
|
},
|
|
332
336
|
onEdit() {
|
|
333
|
-
!this.toolbarListeners.edit &&
|
|
337
|
+
!this.toolbarListeners.edit && m(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
334
338
|
},
|
|
335
339
|
tabClick(t, e) {
|
|
336
340
|
return c(this, null, function* () {
|
|
337
|
-
this.showNav && (yield this.$nextTick(), t.expand || (t.open(), yield
|
|
341
|
+
this.showNav && (yield this.$nextTick(), t.expand || (t.open(), yield g(200), yield this.$nextTick()), this.tryByClick = !0, this.activeIndex = e, this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10);
|
|
338
342
|
});
|
|
339
343
|
},
|
|
340
344
|
tryActive() {
|
|
341
345
|
return c(this, null, function* () {
|
|
342
346
|
if (this.showNav) {
|
|
343
347
|
for (let t = 0; t < this.tabs.length; t++)
|
|
344
|
-
if (
|
|
348
|
+
if (w(this.tabs[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
345
349
|
this.activeIndex = t;
|
|
346
350
|
break;
|
|
347
351
|
}
|
|
@@ -355,33 +359,33 @@ const b = [
|
|
|
355
359
|
t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
|
|
356
360
|
},
|
|
357
361
|
getToolbarButtons(t) {
|
|
358
|
-
return t.filter((e) => !
|
|
362
|
+
return t.filter((e) => !b.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
|
|
359
363
|
},
|
|
360
364
|
getFooterBarButtons(t) {
|
|
361
365
|
let e = t.filter(
|
|
362
|
-
(o) => !
|
|
366
|
+
(o) => !T.includes(o) && (b.includes(o) || o.indexOf(":down") > -1)
|
|
363
367
|
).map((o) => o.replace(":down", ""));
|
|
364
368
|
return e = e || [], this.$parent.isEnabled && !e.includes("cancel") && e.push("cancel"), e;
|
|
365
369
|
}
|
|
366
370
|
}
|
|
367
|
-
},
|
|
368
|
-
var
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
371
|
+
}, p = {};
|
|
372
|
+
var I = /* @__PURE__ */ k(
|
|
373
|
+
O,
|
|
374
|
+
B,
|
|
375
|
+
C,
|
|
372
376
|
!1,
|
|
373
|
-
|
|
377
|
+
N,
|
|
374
378
|
null,
|
|
375
379
|
null,
|
|
376
380
|
null
|
|
377
381
|
);
|
|
378
|
-
function
|
|
379
|
-
for (let e in
|
|
380
|
-
this[e] =
|
|
382
|
+
function N(t) {
|
|
383
|
+
for (let e in p)
|
|
384
|
+
this[e] = p[e];
|
|
381
385
|
}
|
|
382
|
-
const
|
|
383
|
-
return
|
|
386
|
+
const M = /* @__PURE__ */ function() {
|
|
387
|
+
return I.exports;
|
|
384
388
|
}();
|
|
385
389
|
export {
|
|
386
|
-
|
|
390
|
+
M as default
|
|
387
391
|
};
|
package/record-video/index.mjs
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import { j as o } from "../chunks/index.
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
attrs: {
|
|
8
|
-
tabindex: "-1"
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
}, l = [];
|
|
12
|
-
let i;
|
|
13
|
-
function s() {
|
|
14
|
-
s.init || (s.init = !0, i = o() !== -1);
|
|
1
|
+
import { j as o } from "../chunks/index.d91bd77a.mjs";
|
|
2
|
+
import { s as r, r as h } from "../chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs";
|
|
3
|
+
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
let t;
|
|
5
|
+
function i() {
|
|
6
|
+
i.init || (i.init = !0, t = o() !== -1);
|
|
15
7
|
}
|
|
16
|
-
const
|
|
8
|
+
const d = {
|
|
17
9
|
name: "ResizeObserver",
|
|
18
10
|
mounted() {
|
|
19
|
-
|
|
11
|
+
i(), this.$nextTick(() => {
|
|
20
12
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
|
|
21
13
|
});
|
|
22
14
|
const e = document.createElement("object");
|
|
23
|
-
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html",
|
|
15
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", t && this.$el.appendChild(e), e.data = "about:blank", t || this.$el.appendChild(e);
|
|
24
16
|
},
|
|
25
17
|
beforeDestroy() {
|
|
26
18
|
this.removeResizeHandlers();
|
|
@@ -36,27 +28,27 @@ const c = {
|
|
|
36
28
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
37
29
|
},
|
|
38
30
|
removeResizeHandlers() {
|
|
39
|
-
this._resizeObject && this._resizeObject.onload && (!
|
|
31
|
+
this._resizeObject && this._resizeObject.onload && (!t && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
40
32
|
}
|
|
41
33
|
}
|
|
42
34
|
}, n = {};
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
var a = /* @__PURE__ */ l(
|
|
36
|
+
d,
|
|
37
|
+
h,
|
|
38
|
+
r,
|
|
47
39
|
!1,
|
|
48
|
-
|
|
40
|
+
c,
|
|
49
41
|
null,
|
|
50
42
|
null,
|
|
51
43
|
null
|
|
52
44
|
);
|
|
53
|
-
function
|
|
54
|
-
for (let
|
|
55
|
-
this[
|
|
45
|
+
function c(e) {
|
|
46
|
+
for (let s in n)
|
|
47
|
+
this[s] = n[s];
|
|
56
48
|
}
|
|
57
|
-
const
|
|
58
|
-
return
|
|
49
|
+
const u = /* @__PURE__ */ function() {
|
|
50
|
+
return a.exports;
|
|
59
51
|
}();
|
|
60
52
|
export {
|
|
61
|
-
|
|
53
|
+
u as default
|
|
62
54
|
};
|