@web-utils/component 3.0.2 → 3.0.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/address-input/index.mjs +14 -14
- package/chat/index.mjs +39 -40
- package/chunk-file-uploader/index.mjs +35 -594
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/FormTemp.d079292b.mjs +139 -0
- package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
- package/chunks/detail.d6f8e347.mjs +29 -0
- package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
- package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
- package/chunks/form-input-mixin.78a567bc.mjs +24 -0
- package/chunks/form-item-mixin.57cb2019.mjs +140 -0
- package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
- package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
- package/chunks/input-number-mixin.41a066be.mjs +60 -0
- package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
- package/count-up/index.mjs +17 -14
- package/data-box/index.mjs +18 -19
- package/data-display/index.mjs +17 -18
- package/data-icons/index.mjs +16 -17
- package/data-panel/index.mjs +20 -21
- package/data-pay/index.mjs +15 -16
- package/data-progress/index.mjs +19 -20
- package/data-rotate/index.mjs +35 -36
- package/data-table-picker/index.mjs +23 -25
- package/data-tabs/index.mjs +15 -16
- package/dialog-form/index.mjs +11 -12
- package/dynamic-table/index.mjs +34 -35
- package/easy-popup/index.mjs +56 -29
- package/editable-tree/index.mjs +485 -134
- package/element-dialog/index.mjs +127 -37
- package/empty-view/index.mjs +31 -13
- 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 +40 -105
- package/flow-designer/index.mjs +555 -615
- package/flow-node/index.mjs +47 -15
- package/flow-viewer/index.mjs +78 -167
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox-group/index.mjs +35 -79
- package/form-date-picker/index.mjs +22 -22
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +86 -28
- package/form-input-email/index.mjs +18 -18
- package/form-input-id-card/index.mjs +27 -27
- package/form-input-number/index.mjs +59 -219
- package/form-input-phone-number/index.mjs +27 -27
- package/form-input-tag/index.mjs +38 -160
- package/form-input-time/index.mjs +16 -16
- package/form-item/index.mjs +146 -15
- package/form-item-group/index.mjs +164 -14
- package/form-radio-group/index.mjs +41 -41
- package/form-select/index.mjs +20 -20
- package/form-switch/index.mjs +19 -19
- package/form-textarea/index.mjs +29 -29
- package/form-view/index.mjs +42 -46
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +15 -15
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2824 -210
- package/fy-date/index.mjs +59 -17
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +208 -64
- package/fy-empty/index.mjs +29 -12
- package/fy-form/index.mjs +743 -178
- package/fy-form-design/index.mjs +1013 -1540
- package/fy-input/index.mjs +105 -17
- package/fy-input-color/index.mjs +67 -16
- package/fy-input-icon/index.mjs +119 -23
- package/fy-input-map/index.mjs +14 -15
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +19 -21
- package/fy-input-tree/index.mjs +3 -3
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +50 -16
- package/fy-select/index.mjs +126 -29
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +51 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +23 -25
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/highlight-j-s/index.mjs +29 -19
- package/icon-temp/index.mjs +30 -12
- package/iframe-window/index.mjs +18 -19
- package/image-cropper/index.mjs +22 -23
- package/image-preview/index.mjs +1 -1
- package/input-number/index.mjs +173 -63
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +33 -15
- package/login/index.mjs +1 -1
- package/nav-bar/index.mjs +31 -15
- package/package.json +1 -1
- package/page/index.mjs +20 -12
- package/page-header/index.mjs +34 -13
- package/page-index-top/index.mjs +53 -100
- package/page-skeleton/index.mjs +35 -18
- package/page-skeleton-new/index.mjs +15 -16
- package/pageable-table/index.mjs +228 -86
- package/pageable-view/index.mjs +1 -1
- package/present-view/index.mjs +71 -75
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +29 -21
- package/search/index.mjs +9 -9
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +45 -40
- package/swiper/index.mjs +13 -14
- package/table-view/index.mjs +97 -631
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +63 -63
- package/toolbar/index.mjs +208 -15
- package/toolbar-button/index.mjs +56 -30
- package/verify/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +118 -49
- package/chunks/CountUp.f1a19f35.mjs +0 -124
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
- package/chunks/ElementDialog.d8f3105c.mjs +0 -211
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
- package/chunks/EmptyView.e2430422.mjs +0 -51
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
- package/chunks/FormItem.2920ac0c.mjs +0 -45
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
- package/chunks/FormItemGroup.41daddb6.mjs +0 -64
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
- package/chunks/FyCurd.8acd2983.mjs +0 -548
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
- package/chunks/FyForm.0294e494.mjs +0 -439
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
- package/chunks/IconTemp.42c48e1f.mjs +0 -32
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
- package/chunks/Page.81f4b8d9.mjs +0 -32
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
- package/chunks/PageableTable.333cbdc1.mjs +0 -335
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
- package/chunks/ResizeObserver.60f728f0.mjs +0 -54
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
- package/chunks/TableColumn.8503272e.mjs +0 -106
- package/chunks/Toolbar.5c539dbb.mjs +0 -24
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
package/present-view/index.mjs
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
var c = (t, e, o) => new Promise((
|
|
1
|
+
var c = (t, e, o) => new Promise((r, s) => {
|
|
2
2
|
var n = (i) => {
|
|
3
3
|
try {
|
|
4
4
|
a(o.next(i));
|
|
5
5
|
} catch (f) {
|
|
6
|
-
|
|
6
|
+
s(f);
|
|
7
7
|
}
|
|
8
8
|
}, l = (i) => {
|
|
9
9
|
try {
|
|
10
10
|
a(o.throw(i));
|
|
11
11
|
} catch (f) {
|
|
12
|
-
|
|
12
|
+
s(f);
|
|
13
13
|
}
|
|
14
|
-
}, a = (i) => i.done ?
|
|
14
|
+
}, a = (i) => i.done ? r(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 d, toStringArray as p, delay as v, isInContainer as _ } from "@web-utils/core";
|
|
18
|
+
import { merge as w } from "@web-utils/integrations/lodash";
|
|
19
|
+
import y from "@web-utils/component/resize-observer";
|
|
20
20
|
import "@web-utils/component/resize-observer/style.css";
|
|
21
|
-
import {
|
|
22
|
-
|
|
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() {
|
|
21
|
+
import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
22
|
+
var x = function() {
|
|
27
23
|
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
28
24
|
return o("div", {
|
|
29
25
|
class: ["form-view", t.className]
|
|
@@ -36,7 +32,7 @@ var B = function() {
|
|
|
36
32
|
}],
|
|
37
33
|
staticClass: "form-view-toolbar"
|
|
38
34
|
}, [t._t("form-view-toolbar", function() {
|
|
39
|
-
return [o(
|
|
35
|
+
return [o("Toolbar", t._g(t._b({
|
|
40
36
|
directives: [{
|
|
41
37
|
name: "show",
|
|
42
38
|
rawName: "v-show",
|
|
@@ -48,17 +44,17 @@ var B = function() {
|
|
|
48
44
|
},
|
|
49
45
|
scopedSlots: t._u([{
|
|
50
46
|
key: "default",
|
|
51
|
-
fn: function(
|
|
52
|
-
var
|
|
47
|
+
fn: function(r) {
|
|
48
|
+
var s = r.buttons;
|
|
53
49
|
return [t._t("toolbar-button", null, {
|
|
54
|
-
buttons:
|
|
50
|
+
buttons: s
|
|
55
51
|
})];
|
|
56
52
|
}
|
|
57
|
-
}, t._l(t.getToolbarSlotKeys(), function(
|
|
53
|
+
}, t._l(t.getToolbarSlotKeys(), function(r) {
|
|
58
54
|
return {
|
|
59
|
-
key:
|
|
55
|
+
key: r,
|
|
60
56
|
fn: function() {
|
|
61
|
-
return [t._t(
|
|
57
|
+
return [t._t(r)];
|
|
62
58
|
},
|
|
63
59
|
proxy: !0
|
|
64
60
|
};
|
|
@@ -94,29 +90,29 @@ var B = function() {
|
|
|
94
90
|
}, [t.title ? o("div", {
|
|
95
91
|
staticClass: "form-view-title"
|
|
96
92
|
}, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
97
|
-
return [o(
|
|
93
|
+
return [o("EmptyView", {
|
|
98
94
|
attrs: {
|
|
99
95
|
"empty-tips": "请添加表单内容"
|
|
100
96
|
}
|
|
101
97
|
})];
|
|
102
|
-
}), o(
|
|
98
|
+
}), o("Toolbar", t._g(t._b({
|
|
103
99
|
attrs: {
|
|
104
100
|
footer: ""
|
|
105
101
|
},
|
|
106
102
|
scopedSlots: t._u([{
|
|
107
103
|
key: "default",
|
|
108
|
-
fn: function(
|
|
109
|
-
var
|
|
104
|
+
fn: function(r) {
|
|
105
|
+
var s = r.buttons, n = r.footer;
|
|
110
106
|
return [t._t("footer-button", null, {
|
|
111
|
-
buttons:
|
|
107
|
+
buttons: s,
|
|
112
108
|
footer: n
|
|
113
109
|
})];
|
|
114
110
|
}
|
|
115
|
-
}, t._l(t.getFooterSlotKeys(), function(
|
|
111
|
+
}, t._l(t.getFooterSlotKeys(), function(r) {
|
|
116
112
|
return {
|
|
117
|
-
key: t.getFooterSlotKey(
|
|
113
|
+
key: t.getFooterSlotKey(r),
|
|
118
114
|
fn: function() {
|
|
119
|
-
return [t._t(
|
|
115
|
+
return [t._t(r)];
|
|
120
116
|
},
|
|
121
117
|
proxy: !0
|
|
122
118
|
};
|
|
@@ -135,29 +131,29 @@ var B = function() {
|
|
|
135
131
|
}, [t.title ? o("div", {
|
|
136
132
|
staticClass: "form-view-title"
|
|
137
133
|
}, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
138
|
-
return [o(
|
|
134
|
+
return [o("EmptyView", {
|
|
139
135
|
attrs: {
|
|
140
136
|
"empty-tips": "请添加表单内容"
|
|
141
137
|
}
|
|
142
138
|
})];
|
|
143
|
-
}), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o(
|
|
139
|
+
}), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o("Toolbar", t._g(t._b({
|
|
144
140
|
attrs: {
|
|
145
141
|
footer: ""
|
|
146
142
|
},
|
|
147
143
|
scopedSlots: t._u([{
|
|
148
144
|
key: "default",
|
|
149
|
-
fn: function(
|
|
150
|
-
var
|
|
145
|
+
fn: function(r) {
|
|
146
|
+
var s = r.buttons, n = r.footer;
|
|
151
147
|
return [t._t("footer-button", null, {
|
|
152
|
-
buttons:
|
|
148
|
+
buttons: s,
|
|
153
149
|
footer: n
|
|
154
150
|
})];
|
|
155
151
|
}
|
|
156
|
-
}, t._l(t.getFooterSlotKeys(), function(
|
|
152
|
+
}, t._l(t.getFooterSlotKeys(), function(r) {
|
|
157
153
|
return {
|
|
158
|
-
key: t.getFooterSlotKey(
|
|
154
|
+
key: t.getFooterSlotKey(r),
|
|
159
155
|
fn: function() {
|
|
160
|
-
return [t._t(
|
|
156
|
+
return [t._t(r)];
|
|
161
157
|
},
|
|
162
158
|
proxy: !0
|
|
163
159
|
};
|
|
@@ -176,7 +172,7 @@ var B = function() {
|
|
|
176
172
|
}
|
|
177
173
|
}, [o("div", {
|
|
178
174
|
staticClass: "form-content"
|
|
179
|
-
}, [o(
|
|
175
|
+
}, [o("FormItemGroup", {
|
|
180
176
|
attrs: {
|
|
181
177
|
"block-title": "流程日志"
|
|
182
178
|
}
|
|
@@ -186,7 +182,7 @@ var B = function() {
|
|
|
186
182
|
"show-title": !1,
|
|
187
183
|
"business-key": t.$parent.bizKey
|
|
188
184
|
}
|
|
189
|
-
})], 1), t._t("form-bottom")], 2)]) : t._e()]), o(
|
|
185
|
+
})], 1), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", {
|
|
190
186
|
on: {
|
|
191
187
|
notify: t.onFormResize
|
|
192
188
|
}
|
|
@@ -196,26 +192,26 @@ var B = function() {
|
|
|
196
192
|
staticClass: "form-nav-header"
|
|
197
193
|
}, [t._v("表单导航")]), o("ul", {
|
|
198
194
|
staticClass: "form-nav-list"
|
|
199
|
-
}, t._l(t.tabs, function(
|
|
195
|
+
}, t._l(t.tabs, function(r, s) {
|
|
200
196
|
return o("li", {
|
|
201
|
-
key:
|
|
197
|
+
key: r.blockTitle,
|
|
202
198
|
class: ["form-nav-item", {
|
|
203
|
-
active: t.activeIndex ===
|
|
199
|
+
active: t.activeIndex === s
|
|
204
200
|
}],
|
|
205
201
|
on: {
|
|
206
202
|
click: function(n) {
|
|
207
|
-
return t.tabClick(
|
|
203
|
+
return t.tabClick(r, s);
|
|
208
204
|
}
|
|
209
205
|
}
|
|
210
|
-
}, [t._v(" " + t._s(
|
|
211
|
-
}), 0)]) : t._e(), t.isFormLoading ? o(
|
|
206
|
+
}, [t._v(" " + t._s(r.blockTitle) + " ")]);
|
|
207
|
+
}), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", {
|
|
212
208
|
attrs: {
|
|
213
209
|
"icon-size": "34px",
|
|
214
210
|
"font-size": "16px"
|
|
215
211
|
}
|
|
216
212
|
}) : t._e()], 1);
|
|
217
|
-
},
|
|
218
|
-
const
|
|
213
|
+
}, $ = [];
|
|
214
|
+
const b = [
|
|
219
215
|
"back",
|
|
220
216
|
"create",
|
|
221
217
|
"save",
|
|
@@ -235,17 +231,17 @@ const _ = [
|
|
|
235
231
|
"disabled",
|
|
236
232
|
"reload",
|
|
237
233
|
"slot"
|
|
238
|
-
],
|
|
234
|
+
], S = b.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
|
|
239
235
|
if (t.classList.contains(e))
|
|
240
236
|
return t;
|
|
241
237
|
let o = t.parentNode;
|
|
242
238
|
for (; o && !o.classList.contains(e); )
|
|
243
239
|
o = o.parentNode;
|
|
244
240
|
return o.classList.contains(e) ? o : null;
|
|
245
|
-
},
|
|
241
|
+
}, k = {
|
|
246
242
|
name: "PresentView",
|
|
247
243
|
components: {
|
|
248
|
-
ResizeObserver:
|
|
244
|
+
ResizeObserver: y
|
|
249
245
|
},
|
|
250
246
|
inject: {
|
|
251
247
|
flowContext: {
|
|
@@ -288,23 +284,23 @@ const _ = [
|
|
|
288
284
|
},
|
|
289
285
|
computed: {
|
|
290
286
|
isFormLoading() {
|
|
291
|
-
return this.loading ||
|
|
287
|
+
return this.loading || d(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
|
|
292
288
|
},
|
|
293
289
|
toolbarProps() {
|
|
294
|
-
var
|
|
295
|
-
const t = {}, e = ((
|
|
296
|
-
return o.buttons = e || ["back"], o.buttons =
|
|
290
|
+
var r;
|
|
291
|
+
const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = w({}, this.toolbarAttrs, t);
|
|
292
|
+
return o.buttons = e || ["back"], o.buttons = p(o.buttons), o;
|
|
297
293
|
}
|
|
298
294
|
},
|
|
299
295
|
created() {
|
|
300
296
|
this.$on("FormView.addTab", (t) => {
|
|
301
297
|
t && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(t), this.tabs = this.tabs.sort((e, o) => {
|
|
302
|
-
const
|
|
303
|
-
if (
|
|
298
|
+
const r = u(e.$el, "form-card"), s = u(o.$el, "form-card");
|
|
299
|
+
if (r === s) {
|
|
304
300
|
const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
|
|
305
301
|
return n - l;
|
|
306
302
|
} else {
|
|
307
|
-
const n =
|
|
303
|
+
const n = u(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
|
|
308
304
|
return l - a;
|
|
309
305
|
}
|
|
310
306
|
}), t.active && (this.activeIndex = this.tabs.indexOf(t), this.tabClick(t, this.activeIndex)));
|
|
@@ -322,10 +318,10 @@ const _ = [
|
|
|
322
318
|
},
|
|
323
319
|
methods: {
|
|
324
320
|
getToolbarSlotKeys() {
|
|
325
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
321
|
+
return Object.keys(this.$scopedSlots).filter((t) => b.includes(t));
|
|
326
322
|
},
|
|
327
323
|
getFooterSlotKeys() {
|
|
328
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
324
|
+
return Object.keys(this.$scopedSlots).filter((t) => S.includes(t));
|
|
329
325
|
},
|
|
330
326
|
getFooterSlotKey(t) {
|
|
331
327
|
return t.replace("-down", "");
|
|
@@ -334,18 +330,18 @@ const _ = [
|
|
|
334
330
|
this.showNav = t > 1500;
|
|
335
331
|
},
|
|
336
332
|
onEdit() {
|
|
337
|
-
!this.toolbarListeners.edit &&
|
|
333
|
+
!this.toolbarListeners.edit && d(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
338
334
|
},
|
|
339
335
|
tabClick(t, e) {
|
|
340
336
|
return c(this, null, function* () {
|
|
341
|
-
this.showNav && (yield this.$nextTick(), t.expand || (t.open(), yield
|
|
337
|
+
this.showNav && (yield this.$nextTick(), t.expand || (t.open(), yield v(200), yield this.$nextTick()), this.tryByClick = !0, this.activeIndex = e, this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10);
|
|
342
338
|
});
|
|
343
339
|
},
|
|
344
340
|
tryActive() {
|
|
345
341
|
return c(this, null, function* () {
|
|
346
342
|
if (this.showNav) {
|
|
347
343
|
for (let t = 0; t < this.tabs.length; t++)
|
|
348
|
-
if (
|
|
344
|
+
if (_(this.tabs[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
349
345
|
this.activeIndex = t;
|
|
350
346
|
break;
|
|
351
347
|
}
|
|
@@ -359,33 +355,33 @@ const _ = [
|
|
|
359
355
|
t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
|
|
360
356
|
},
|
|
361
357
|
getToolbarButtons(t) {
|
|
362
|
-
return t.filter((e) => !
|
|
358
|
+
return t.filter((e) => !m.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
|
|
363
359
|
},
|
|
364
360
|
getFooterBarButtons(t) {
|
|
365
361
|
let e = t.filter(
|
|
366
|
-
(o) => !
|
|
362
|
+
(o) => !F.includes(o) && (m.includes(o) || o.indexOf(":down") > -1)
|
|
367
363
|
).map((o) => o.replace(":down", ""));
|
|
368
364
|
return e = e || [], this.$parent.isEnabled && !e.includes("cancel") && e.push("cancel"), e;
|
|
369
365
|
}
|
|
370
366
|
}
|
|
371
|
-
},
|
|
372
|
-
var
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
367
|
+
}, h = {};
|
|
368
|
+
var B = /* @__PURE__ */ g(
|
|
369
|
+
k,
|
|
370
|
+
x,
|
|
371
|
+
$,
|
|
376
372
|
!1,
|
|
377
|
-
|
|
373
|
+
L,
|
|
378
374
|
null,
|
|
379
375
|
null,
|
|
380
376
|
null
|
|
381
377
|
);
|
|
382
|
-
function
|
|
383
|
-
for (let e in
|
|
384
|
-
this[e] =
|
|
378
|
+
function L(t) {
|
|
379
|
+
for (let e in h)
|
|
380
|
+
this[e] = h[e];
|
|
385
381
|
}
|
|
386
|
-
const
|
|
387
|
-
return
|
|
382
|
+
const j = /* @__PURE__ */ function() {
|
|
383
|
+
return B.exports;
|
|
388
384
|
}();
|
|
389
385
|
export {
|
|
390
|
-
|
|
386
|
+
j as default
|
|
391
387
|
};
|
package/record-video/index.mjs
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import { j as o } from "../chunks/index.
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { j as o } from "../chunks/index.57f871af.mjs";
|
|
2
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
var a = function() {
|
|
4
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
5
|
+
return r("div", {
|
|
6
|
+
staticClass: "resize-observer",
|
|
7
|
+
attrs: {
|
|
8
|
+
tabindex: "-1"
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
}, l = [];
|
|
12
|
+
let i;
|
|
13
|
+
function s() {
|
|
14
|
+
s.init || (s.init = !0, i = o() !== -1);
|
|
7
15
|
}
|
|
8
|
-
const
|
|
16
|
+
const c = {
|
|
9
17
|
name: "ResizeObserver",
|
|
10
18
|
mounted() {
|
|
11
|
-
|
|
19
|
+
s(), this.$nextTick(() => {
|
|
12
20
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
|
|
13
21
|
});
|
|
14
22
|
const e = document.createElement("object");
|
|
15
|
-
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html",
|
|
23
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", i && this.$el.appendChild(e), e.data = "about:blank", i || this.$el.appendChild(e);
|
|
16
24
|
},
|
|
17
25
|
beforeDestroy() {
|
|
18
26
|
this.removeResizeHandlers();
|
|
@@ -28,27 +36,27 @@ const d = {
|
|
|
28
36
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
29
37
|
},
|
|
30
38
|
removeResizeHandlers() {
|
|
31
|
-
this._resizeObject && this._resizeObject.onload && (!
|
|
39
|
+
this._resizeObject && this._resizeObject.onload && (!i && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
}, n = {};
|
|
35
|
-
var
|
|
36
|
-
d,
|
|
37
|
-
h,
|
|
38
|
-
r,
|
|
39
|
-
!1,
|
|
43
|
+
var d = /* @__PURE__ */ h(
|
|
40
44
|
c,
|
|
45
|
+
a,
|
|
46
|
+
l,
|
|
47
|
+
!1,
|
|
48
|
+
_,
|
|
41
49
|
null,
|
|
42
50
|
null,
|
|
43
51
|
null
|
|
44
52
|
);
|
|
45
|
-
function
|
|
46
|
-
for (let
|
|
47
|
-
this[
|
|
53
|
+
function _(e) {
|
|
54
|
+
for (let t in n)
|
|
55
|
+
this[t] = n[t];
|
|
48
56
|
}
|
|
49
|
-
const
|
|
50
|
-
return
|
|
57
|
+
const m = /* @__PURE__ */ function() {
|
|
58
|
+
return d.exports;
|
|
51
59
|
}();
|
|
52
60
|
export {
|
|
53
|
-
|
|
61
|
+
m as default
|
|
54
62
|
};
|
package/search/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as n } from "../chunks/init.
|
|
1
|
+
import { a as p } from "../chunks/util.ae730cde.mjs";
|
|
2
|
+
import { i as n } from "../chunks/init.47f219b4.mjs";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
4
|
import l from "element-ui/lib/col";
|
|
5
5
|
import u from "element-ui/lib/row";
|
|
@@ -26,18 +26,18 @@ var _ = function() {
|
|
|
26
26
|
staticClass: "avue-search__content"
|
|
27
27
|
}, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, {
|
|
28
28
|
dic: t.DIC[s.prop]
|
|
29
|
-
}) : t._l(t.DIC[s.prop], function(
|
|
29
|
+
}) : t._l(t.DIC[s.prop], function(a) {
|
|
30
30
|
return r("span", {
|
|
31
|
-
key: t.getKey(
|
|
31
|
+
key: t.getKey(a, s.props, t.valueKey),
|
|
32
32
|
class: ["avue-search__tags", {
|
|
33
|
-
"avue-search__tags--active": t.getActive(
|
|
33
|
+
"avue-search__tags--active": t.getActive(a, s)
|
|
34
34
|
}],
|
|
35
35
|
on: {
|
|
36
36
|
click: function(m) {
|
|
37
|
-
return t.handleClick(s,
|
|
37
|
+
return t.handleClick(s, a);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
}, [t._v(t._s(t.getKey(
|
|
40
|
+
}, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
|
|
41
41
|
})], 2)]);
|
|
42
42
|
}), 1);
|
|
43
43
|
}, c = [];
|
|
@@ -60,10 +60,10 @@ const f = {
|
|
|
60
60
|
return this.parentOption.props || {};
|
|
61
61
|
},
|
|
62
62
|
labelKey() {
|
|
63
|
-
return
|
|
63
|
+
return p.label;
|
|
64
64
|
},
|
|
65
65
|
valueKey() {
|
|
66
|
-
return
|
|
66
|
+
return p.value;
|
|
67
67
|
},
|
|
68
68
|
mainSlot() {
|
|
69
69
|
const t = [];
|
package/search-popover/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ var c = (t, r, e) => new Promise((s, o) => {
|
|
|
16
16
|
});
|
|
17
17
|
import { copy as d, isInContainer as p } from "@web-utils/core";
|
|
18
18
|
import v from "element-ui/lib/utils/clickoutside";
|
|
19
|
-
import { z as f } from "../chunks/util.
|
|
19
|
+
import { z as f } from "../chunks/util.ae730cde.mjs";
|
|
20
20
|
import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
21
21
|
var w = function() {
|
|
22
22
|
var t = this, r = t.$createElement, e = t._self._c || r;
|
package/sign/index.mjs
CHANGED
package/split-pane/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var f = (t, e, s) => new Promise((
|
|
2
|
-
var
|
|
1
|
+
var f = (t, e, s) => new Promise((o, i) => {
|
|
2
|
+
var n = (r) => {
|
|
3
3
|
try {
|
|
4
4
|
a(s.next(r));
|
|
5
5
|
} catch (l) {
|
|
@@ -11,12 +11,13 @@ var f = (t, e, s) => new Promise((n, i) => {
|
|
|
11
11
|
} catch (l) {
|
|
12
12
|
i(l);
|
|
13
13
|
}
|
|
14
|
-
}, a = (r) => r.done ?
|
|
14
|
+
}, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(n, g);
|
|
15
15
|
a((s = s.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
|
|
17
|
+
import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
18
|
+
import v from "@web-utils/component/resize-observer";
|
|
19
|
+
import "@web-utils/component/resize-observer/style.css";
|
|
20
|
+
function m(t, e) {
|
|
20
21
|
for (let s = 0; s < e.length; s++)
|
|
21
22
|
if (t === e[s])
|
|
22
23
|
return !0;
|
|
@@ -28,30 +29,30 @@ const h = function() {
|
|
|
28
29
|
} : function(t, e, s) {
|
|
29
30
|
t && e && s && t.attachEvent(`on${e}`, s);
|
|
30
31
|
};
|
|
31
|
-
}(),
|
|
32
|
+
}(), p = function() {
|
|
32
33
|
return document.removeEventListener ? function(t, e, s) {
|
|
33
34
|
t && e && t.removeEventListener(e, s, !1);
|
|
34
35
|
} : function(t, e, s) {
|
|
35
36
|
t && e && t.detachEvent(`on${e}`, s);
|
|
36
37
|
};
|
|
37
38
|
}();
|
|
38
|
-
var
|
|
39
|
+
var x = function() {
|
|
39
40
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
40
41
|
return s("div", {
|
|
41
42
|
class: t.classes
|
|
42
43
|
}, [t.showIcon ? s("div", {
|
|
43
44
|
class: t.barConClasses
|
|
44
45
|
}, t._m(0), 0) : t._e()]);
|
|
45
|
-
},
|
|
46
|
+
}, _ = [function() {
|
|
46
47
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
47
|
-
return t._l(8, function(
|
|
48
|
+
return t._l(8, function(o) {
|
|
48
49
|
return s("i", {
|
|
49
|
-
key: `trigger-${
|
|
50
|
+
key: `trigger-${o}`,
|
|
50
51
|
class: `${t.prefix}-bar`
|
|
51
52
|
});
|
|
52
53
|
});
|
|
53
54
|
}];
|
|
54
|
-
const
|
|
55
|
+
const $ = {
|
|
55
56
|
name: "Trigger",
|
|
56
57
|
props: {
|
|
57
58
|
mode: String,
|
|
@@ -81,25 +82,25 @@ const M = {
|
|
|
81
82
|
return [`${this.prefix}-bar-con`, this.isVertical ? "vertical" : "horizontal"];
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
},
|
|
85
|
-
var
|
|
86
|
-
M,
|
|
87
|
-
_,
|
|
85
|
+
}, u = {};
|
|
86
|
+
var M = /* @__PURE__ */ d(
|
|
88
87
|
$,
|
|
88
|
+
x,
|
|
89
|
+
_,
|
|
89
90
|
!1,
|
|
90
|
-
|
|
91
|
+
z,
|
|
91
92
|
null,
|
|
92
93
|
null,
|
|
93
94
|
null
|
|
94
95
|
);
|
|
95
|
-
function
|
|
96
|
-
for (let e in
|
|
97
|
-
this[e] =
|
|
96
|
+
function z(t) {
|
|
97
|
+
for (let e in u)
|
|
98
|
+
this[e] = u[e];
|
|
98
99
|
}
|
|
99
|
-
const
|
|
100
|
-
return
|
|
100
|
+
const O = /* @__PURE__ */ function() {
|
|
101
|
+
return M.exports;
|
|
101
102
|
}();
|
|
102
|
-
var
|
|
103
|
+
var S = function() {
|
|
103
104
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
104
105
|
return s("div", {
|
|
105
106
|
ref: "outerWrapper",
|
|
@@ -126,7 +127,7 @@ var w = function() {
|
|
|
126
127
|
mousedown: t.handleMousedown
|
|
127
128
|
}
|
|
128
129
|
}, [t._t("trigger", function() {
|
|
129
|
-
return [s(
|
|
130
|
+
return [s("Trigger", {
|
|
130
131
|
attrs: {
|
|
131
132
|
mode: "vertical"
|
|
132
133
|
}
|
|
@@ -153,7 +154,7 @@ var w = function() {
|
|
|
153
154
|
mousedown: t.handleMousedown
|
|
154
155
|
}
|
|
155
156
|
}, [t._t("trigger", function() {
|
|
156
|
-
return [s(
|
|
157
|
+
return [s("Trigger", {
|
|
157
158
|
attrs: {
|
|
158
159
|
mode: "horizontal"
|
|
159
160
|
}
|
|
@@ -163,14 +164,18 @@ var w = function() {
|
|
|
163
164
|
style: {
|
|
164
165
|
top: `calc(${t.offset}% + ${t.triggerSize}px)`
|
|
165
166
|
}
|
|
166
|
-
}, [t._t("bottom")], 2)]), s(
|
|
167
|
+
}, [t._t("bottom")], 2)]), s("ResizeObserver", {
|
|
167
168
|
on: {
|
|
168
169
|
notify: t.resetOffset
|
|
169
170
|
}
|
|
170
171
|
})], 1);
|
|
171
|
-
},
|
|
172
|
+
}, w = [];
|
|
172
173
|
const y = {
|
|
173
174
|
name: "SplitPane",
|
|
175
|
+
components: {
|
|
176
|
+
Trigger: O,
|
|
177
|
+
ResizeObserver: v
|
|
178
|
+
},
|
|
174
179
|
props: {
|
|
175
180
|
value: {
|
|
176
181
|
type: [Number, String],
|
|
@@ -178,7 +183,7 @@ const y = {
|
|
|
178
183
|
},
|
|
179
184
|
mode: {
|
|
180
185
|
validator(t) {
|
|
181
|
-
return
|
|
186
|
+
return m(t, ["horizontal", "vertical"]);
|
|
182
187
|
},
|
|
183
188
|
default: "horizontal"
|
|
184
189
|
},
|
|
@@ -263,23 +268,23 @@ const y = {
|
|
|
263
268
|
return this.valueIsPx ? e = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(t)}px` : e = 1 - t, e;
|
|
264
269
|
},
|
|
265
270
|
handleMove(t) {
|
|
266
|
-
const s = (this.isHorizontal ? t.pageX : t.pageY) - this.initOffset,
|
|
267
|
-
let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(
|
|
268
|
-
const
|
|
269
|
-
parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(
|
|
271
|
+
const s = (this.isHorizontal ? t.pageX : t.pageY) - this.initOffset, o = this.$refs.outerWrapper[this.offsetSize];
|
|
272
|
+
let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(o * this.oldOffset + s, o);
|
|
273
|
+
const n = this.getAnotherOffset(i);
|
|
274
|
+
parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(n) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(n, this.computedMax))), t.atMin = this.value === this.computedMin, t.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", t);
|
|
270
275
|
},
|
|
271
276
|
handleUp() {
|
|
272
|
-
this.isMoving = !1,
|
|
277
|
+
this.isMoving = !1, p(window, "mousemove", this.handleMove), p(window, "mouseup", this.handleUp), this.$emit("on-move-end");
|
|
273
278
|
},
|
|
274
279
|
handleMousedown(t) {
|
|
275
280
|
this.initOffset = this.isHorizontal ? t.pageX : t.pageY, this.oldOffset = this.value, this.isMoving = !0, h(window, "mousemove", this.handleMove), h(window, "mouseup", this.handleUp), this.$emit("on-move-start");
|
|
276
281
|
}
|
|
277
282
|
}
|
|
278
|
-
},
|
|
279
|
-
var F = /* @__PURE__ */
|
|
283
|
+
}, c = {};
|
|
284
|
+
var F = /* @__PURE__ */ d(
|
|
280
285
|
y,
|
|
286
|
+
S,
|
|
281
287
|
w,
|
|
282
|
-
O,
|
|
283
288
|
!1,
|
|
284
289
|
b,
|
|
285
290
|
null,
|
|
@@ -287,12 +292,12 @@ var F = /* @__PURE__ */ v(
|
|
|
287
292
|
null
|
|
288
293
|
);
|
|
289
294
|
function b(t) {
|
|
290
|
-
for (let e in
|
|
291
|
-
this[e] =
|
|
295
|
+
for (let e in c)
|
|
296
|
+
this[e] = c[e];
|
|
292
297
|
}
|
|
293
|
-
const
|
|
298
|
+
const T = /* @__PURE__ */ function() {
|
|
294
299
|
return F.exports;
|
|
295
300
|
}();
|
|
296
301
|
export {
|
|
297
|
-
|
|
302
|
+
T as default
|
|
298
303
|
};
|