@web-utils/component 2.8.0 → 2.8.2
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/base.css +1 -1
- package/card/index.mjs +33 -37
- package/chat/index.mjs +132 -123
- package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
- package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
- package/chunks/dic.7f13b573.mjs +130 -0
- package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
- package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
- package/chunks/json-beautifier.21cfffea.mjs +126 -0
- package/chunks/util.505913d9.mjs +266 -0
- package/column/index.mjs +2 -2
- package/column-default/index.mjs +1 -1
- package/column-dynamic/index.mjs +1 -1
- package/column-menu/index.mjs +81 -79
- package/column-slot/index.mjs +8 -7
- package/comment/index.mjs +6 -10
- package/data-pay/index.mjs +16 -13
- package/data-table-picker/index.mjs +22 -22
- package/dialog-excel/index.mjs +8 -8
- package/dialog-filter/index.mjs +4 -2
- package/dialog-form/index.mjs +6 -6
- package/dynamic-table/index.mjs +8 -8
- package/editable-tree/index.mjs +5 -5
- package/flow/index.mjs +11 -11
- package/flow/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/form-block/index.mjs +156 -0
- package/form-block/style.css +1 -0
- package/form-button/index.mjs +16 -38
- package/form-group/index.mjs +28 -33
- package/form-input-tag/index.mjs +99 -0
- package/form-temp/index.mjs +15 -27
- package/fy-array/index.mjs +44 -42
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +2 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +29 -31
- package/fy-date/index.mjs +1 -1
- package/fy-dialog-form/index.mjs +5 -11
- package/fy-draggable/index.mjs +3 -3
- package/fy-dynamic/index.mjs +3 -3
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +133 -122
- package/fy-form-design/index.mjs +2596 -2893
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +10 -15
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +21 -16
- package/fy-input-map/index.mjs +22 -19
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +5 -6
- package/fy-radio/index.mjs +3 -1
- package/fy-rate/index.mjs +2 -1
- package/fy-select/index.mjs +29 -28
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +2 -1
- package/fy-tabs/index.mjs +19 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +8 -6
- package/fy-u-editor/index.mjs +10 -14
- package/fy-upload/index.mjs +85 -84
- package/header-menu/index.mjs +1 -1
- package/header-search/index.mjs +7 -5
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.cjs +62 -38
- package/index.css +1 -1
- package/index.mjs +17121 -16215
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +196 -0
- package/package.json +3 -2
- package/present-view/index.mjs +360 -0
- package/present-view/style.css +1 -0
- package/process-designer/index.mjs +10 -2
- package/queue/index.mjs +3 -8
- package/queue/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +25 -24
- package/sign/index.mjs +17 -18
- package/sign/style.css +1 -1
- package/swiper/index.mjs +1 -1
- package/table-page/index.mjs +21 -23
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/style.css +1 -1
- package/tinymce-wrapper/index.mjs +290 -97
- package/verify/index.mjs +1 -1
- package/web-types.json +829 -320
- package/x-input-tag/index.mjs +182 -0
- package/x-input-tag/style.css +1 -0
- package/chunks/dic.e8280157.mjs +0 -130
- package/chunks/util.17330567.mjs +0 -266
package/license/index.mjs
CHANGED
package/login/index.mjs
CHANGED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var r = Object.getOwnPropertySymbols;
|
|
3
|
+
var f = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (t, e, i) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, h = (t, e) => {
|
|
5
|
+
for (var i in e || (e = {}))
|
|
6
|
+
f.call(e, i) && d(t, i, e[i]);
|
|
7
|
+
if (r)
|
|
8
|
+
for (var i of r(e))
|
|
9
|
+
g.call(e, i) && d(t, i, e[i]);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as o from "monaco-editor/esm/vs/editor/editor.api";
|
|
13
|
+
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
|
|
14
|
+
import { c as l } from "../chunks/json-beautifier.21cfffea.mjs";
|
|
15
|
+
import { NOOP as a } from "@web-utils/core";
|
|
16
|
+
import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
|
+
const p = {
|
|
18
|
+
name: "MonacoEditor",
|
|
19
|
+
props: {
|
|
20
|
+
diffEditor: { type: Boolean, default: !1 },
|
|
21
|
+
// 是否使用diff模式
|
|
22
|
+
width: { type: [String, Number], default: "100%" },
|
|
23
|
+
height: { type: [String, Number], default: "100%" },
|
|
24
|
+
original: String,
|
|
25
|
+
// 只有在diff模式下有效
|
|
26
|
+
value: [String, Object],
|
|
27
|
+
language: { type: String, default: "javascript" },
|
|
28
|
+
theme: { type: String, default: "vs" },
|
|
29
|
+
readOnly: { type: Boolean, default: !1 },
|
|
30
|
+
options: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default() {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
editorMounted: { type: Function, default: a },
|
|
37
|
+
editorBeforeMount: { type: Function, default: a },
|
|
38
|
+
keyIndex: { type: String }
|
|
39
|
+
},
|
|
40
|
+
computed: {
|
|
41
|
+
style() {
|
|
42
|
+
return {
|
|
43
|
+
width: /^\d+$/.test(this.width) ? `${this.width}px` : this.width,
|
|
44
|
+
height: /^\d+$/.test(this.height) ? `${this.height}px` : this.height,
|
|
45
|
+
position: "relative"
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
watch: {
|
|
50
|
+
options: {
|
|
51
|
+
deep: !0,
|
|
52
|
+
handler(t) {
|
|
53
|
+
this.editor && this.editor.updateOptions(t);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
keyIndex() {
|
|
57
|
+
let t = this.value;
|
|
58
|
+
typeof t == "object" && (t = l(t)), this.editor && t !== this._getValue() && this._setValue(t);
|
|
59
|
+
},
|
|
60
|
+
language() {
|
|
61
|
+
if (this.editor)
|
|
62
|
+
if (this.diffEditor) {
|
|
63
|
+
const { original: t, modified: e } = this.editor.getModel();
|
|
64
|
+
o.editor.setModelLanguage(t, this.language), o.editor.setModelLanguage(e, this.language);
|
|
65
|
+
} else
|
|
66
|
+
o.editor.setModelLanguage(this.editor.getModel(), this.language);
|
|
67
|
+
},
|
|
68
|
+
theme() {
|
|
69
|
+
this.editor && o.editor.setTheme(this.theme);
|
|
70
|
+
},
|
|
71
|
+
style() {
|
|
72
|
+
this.editor && this.$nextTick(() => {
|
|
73
|
+
this.editor.layout();
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
value(t) {
|
|
77
|
+
this.editor && t !== this._getValue() && this._setValue(t);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
mounted() {
|
|
81
|
+
this.initMonaco();
|
|
82
|
+
},
|
|
83
|
+
beforeDestroy() {
|
|
84
|
+
this.editor && this.editor.dispose();
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
initMonaco() {
|
|
88
|
+
const { value: t, language: e, theme: i, readOnly: n, options: s } = this;
|
|
89
|
+
Object.assign(s, this._editorBeforeMount()), this.editor = o.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, h({
|
|
90
|
+
value: typeof t == "string" ? t : l(t),
|
|
91
|
+
language: e,
|
|
92
|
+
theme: i,
|
|
93
|
+
readOnly: n
|
|
94
|
+
}, s)), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor);
|
|
95
|
+
},
|
|
96
|
+
_handleFullScreen() {
|
|
97
|
+
this.isMaximum ? this.minEditor() : this.maxEditor();
|
|
98
|
+
},
|
|
99
|
+
// 放大
|
|
100
|
+
maxEditor() {
|
|
101
|
+
this.isMaximum = !0;
|
|
102
|
+
const t = this.$el;
|
|
103
|
+
this.originSize = {
|
|
104
|
+
width: t.clientWidth,
|
|
105
|
+
height: t.clientHeight
|
|
106
|
+
}, t.classList.add("editor-fullscreen"), this.editor.layout({
|
|
107
|
+
height: document.body.clientHeight,
|
|
108
|
+
width: document.body.clientWidth
|
|
109
|
+
}), document.addEventListener("keyup", (e) => {
|
|
110
|
+
e.keyCode === 27 && this.minEditor();
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
// 缩小
|
|
114
|
+
minEditor() {
|
|
115
|
+
this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
|
|
116
|
+
height: this.originSize.height,
|
|
117
|
+
width: this.originSize.width
|
|
118
|
+
}), document.removeEventListener("keyup", () => {
|
|
119
|
+
});
|
|
120
|
+
},
|
|
121
|
+
_getEditor() {
|
|
122
|
+
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
123
|
+
},
|
|
124
|
+
_setModel(t, e) {
|
|
125
|
+
const { language: i } = this, n = o.editor.createModel(e, i), s = o.editor.createModel(t, i);
|
|
126
|
+
this.editor.setModel({
|
|
127
|
+
original: n,
|
|
128
|
+
modified: s
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
_setValue(t) {
|
|
132
|
+
const e = this._getEditor();
|
|
133
|
+
if (e)
|
|
134
|
+
return e.setValue(t);
|
|
135
|
+
},
|
|
136
|
+
_getValue() {
|
|
137
|
+
const t = this._getEditor();
|
|
138
|
+
return t ? t.getValue() : "";
|
|
139
|
+
},
|
|
140
|
+
_editorBeforeMount() {
|
|
141
|
+
return this.editorBeforeMount(o) || {};
|
|
142
|
+
},
|
|
143
|
+
_editorMounted(t) {
|
|
144
|
+
this.editorMounted(t, o), this.diffEditor ? t.onDidUpdateDiff((e) => {
|
|
145
|
+
const i = this._getValue();
|
|
146
|
+
this._emitChange(i, e);
|
|
147
|
+
}) : t.onDidChangeModelContent((e) => {
|
|
148
|
+
const i = this._getValue();
|
|
149
|
+
this._emitChange(i, e);
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
_emitChange(t, e) {
|
|
153
|
+
this.$emit("change", t, e), this.$emit("input", t);
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
render(t) {
|
|
157
|
+
const e = this.options.fullScreen;
|
|
158
|
+
return t("div", { class: "monaco_editor_container", style: this.style }, [
|
|
159
|
+
e ? t("i", {
|
|
160
|
+
class: "el-icon-full-screen",
|
|
161
|
+
style: {
|
|
162
|
+
width: "1.2em",
|
|
163
|
+
height: "1.2em",
|
|
164
|
+
position: "absolute",
|
|
165
|
+
left: "0px",
|
|
166
|
+
top: "0px",
|
|
167
|
+
zIndex: "1",
|
|
168
|
+
cursor: "pointer"
|
|
169
|
+
},
|
|
170
|
+
on: { click: this._handleFullScreen }
|
|
171
|
+
}) : ""
|
|
172
|
+
]);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
let _, y;
|
|
176
|
+
const u = {};
|
|
177
|
+
var M = /* @__PURE__ */ m(
|
|
178
|
+
p,
|
|
179
|
+
_,
|
|
180
|
+
y,
|
|
181
|
+
!1,
|
|
182
|
+
v,
|
|
183
|
+
null,
|
|
184
|
+
null,
|
|
185
|
+
null
|
|
186
|
+
);
|
|
187
|
+
function v(t) {
|
|
188
|
+
for (let e in u)
|
|
189
|
+
this[e] = u[e];
|
|
190
|
+
}
|
|
191
|
+
const V = /* @__PURE__ */ function() {
|
|
192
|
+
return M.exports;
|
|
193
|
+
}();
|
|
194
|
+
export {
|
|
195
|
+
V as default
|
|
196
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "Web Components",
|
|
4
|
+
"version": "2.8.2",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"main": "./dist/index.cjs",
|
|
8
9
|
"module": "./dist/index.mjs",
|
|
9
10
|
"exports": {
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
var c = (t, e, o) => new Promise((r, s) => {
|
|
2
|
+
var n = (i) => {
|
|
3
|
+
try {
|
|
4
|
+
a(o.next(i));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
s(f);
|
|
7
|
+
}
|
|
8
|
+
}, l = (i) => {
|
|
9
|
+
try {
|
|
10
|
+
a(o.throw(i));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
s(f);
|
|
13
|
+
}
|
|
14
|
+
}, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(n, l);
|
|
15
|
+
a((o = o.apply(t, e)).next());
|
|
16
|
+
});
|
|
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 { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
20
|
+
var g = function() {
|
|
21
|
+
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
22
|
+
return o("div", {
|
|
23
|
+
class: ["form-view", t.className]
|
|
24
|
+
}, [o("div", {
|
|
25
|
+
directives: [{
|
|
26
|
+
name: "show",
|
|
27
|
+
rawName: "v-show",
|
|
28
|
+
value: !t.isFormLoading,
|
|
29
|
+
expression: "!isFormLoading"
|
|
30
|
+
}],
|
|
31
|
+
staticClass: "form-view-toolbar"
|
|
32
|
+
}, [t._t("form-view-toolbar", function() {
|
|
33
|
+
return [o("Toolbar", t._g(t._b({
|
|
34
|
+
directives: [{
|
|
35
|
+
name: "show",
|
|
36
|
+
rawName: "v-show",
|
|
37
|
+
value: t.showToolbar,
|
|
38
|
+
expression: "showToolbar"
|
|
39
|
+
}],
|
|
40
|
+
on: {
|
|
41
|
+
edit: t.onEdit
|
|
42
|
+
},
|
|
43
|
+
scopedSlots: t._u([{
|
|
44
|
+
key: "default",
|
|
45
|
+
fn: function(r) {
|
|
46
|
+
var s = r.buttons;
|
|
47
|
+
return [t._t("toolbar-button", null, {
|
|
48
|
+
buttons: s
|
|
49
|
+
})];
|
|
50
|
+
}
|
|
51
|
+
}, t._l(t.getToolbarSlotKeys(), function(r) {
|
|
52
|
+
return {
|
|
53
|
+
key: r,
|
|
54
|
+
fn: function() {
|
|
55
|
+
return [t._t(r)];
|
|
56
|
+
},
|
|
57
|
+
proxy: !0
|
|
58
|
+
};
|
|
59
|
+
}), {
|
|
60
|
+
key: "toolbar-right",
|
|
61
|
+
fn: function() {
|
|
62
|
+
return [t._t("toolbar-right")];
|
|
63
|
+
},
|
|
64
|
+
proxy: !0
|
|
65
|
+
}], null, !0)
|
|
66
|
+
}, "Toolbar", Object.assign({}, t.toolbarProps, {
|
|
67
|
+
buttons: t.getToolbarButtons(t.toolbarProps.buttons)
|
|
68
|
+
}), !1), t.toolbarListeners))];
|
|
69
|
+
})], 2), o("div", {
|
|
70
|
+
directives: [{
|
|
71
|
+
name: "show",
|
|
72
|
+
rawName: "v-show",
|
|
73
|
+
value: !t.isFormLoading,
|
|
74
|
+
expression: "!isFormLoading"
|
|
75
|
+
}],
|
|
76
|
+
staticClass: "form-scroller-wrapper"
|
|
77
|
+
}, [o("div", {
|
|
78
|
+
ref: "formScroller",
|
|
79
|
+
class: ["form-scroller", "absolute-box", t.contentClass],
|
|
80
|
+
on: {
|
|
81
|
+
scroll: t.onFormScroll
|
|
82
|
+
}
|
|
83
|
+
}, [t.notForm ? o("div", {
|
|
84
|
+
staticClass: "not-form",
|
|
85
|
+
style: {
|
|
86
|
+
width: t.formWidth
|
|
87
|
+
}
|
|
88
|
+
}, [t.title ? o("div", {
|
|
89
|
+
staticClass: "form-view-title"
|
|
90
|
+
}, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
91
|
+
return [o("EmptyView", {
|
|
92
|
+
attrs: {
|
|
93
|
+
"empty-tips": "请添加表单内容"
|
|
94
|
+
}
|
|
95
|
+
})];
|
|
96
|
+
}), o("Toolbar", t._g(t._b({
|
|
97
|
+
attrs: {
|
|
98
|
+
footer: ""
|
|
99
|
+
},
|
|
100
|
+
scopedSlots: t._u([{
|
|
101
|
+
key: "default",
|
|
102
|
+
fn: function(r) {
|
|
103
|
+
var s = r.buttons, n = r.footer;
|
|
104
|
+
return [t._t("footer-button", null, {
|
|
105
|
+
buttons: s,
|
|
106
|
+
footer: n
|
|
107
|
+
})];
|
|
108
|
+
}
|
|
109
|
+
}, t._l(t.getFooterSlotKeys(), function(r) {
|
|
110
|
+
return {
|
|
111
|
+
key: t.getFooterSlotKey(r),
|
|
112
|
+
fn: function() {
|
|
113
|
+
return [t._t(r)];
|
|
114
|
+
},
|
|
115
|
+
proxy: !0
|
|
116
|
+
};
|
|
117
|
+
})], null, !0)
|
|
118
|
+
}, "Toolbar", Object.assign({}, t.toolbarProps, {
|
|
119
|
+
buttons: t.getFooterBarButtons(t.toolbarProps.buttons)
|
|
120
|
+
}), !1), t.toolbarListeners)), t.$scopedSlots["form-bottom"] ? t._t("form-bottom") : t._e()], 2) : o("div", {
|
|
121
|
+
class: ["form-card", {
|
|
122
|
+
"un-limit": t.unLimit
|
|
123
|
+
}],
|
|
124
|
+
style: {
|
|
125
|
+
width: `calc(${t.formWidth} + 40px)`
|
|
126
|
+
}
|
|
127
|
+
}, [o("div", {
|
|
128
|
+
staticClass: "form-content"
|
|
129
|
+
}, [t.title ? o("div", {
|
|
130
|
+
staticClass: "form-view-title"
|
|
131
|
+
}, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
132
|
+
return [o("EmptyView", {
|
|
133
|
+
attrs: {
|
|
134
|
+
"empty-tips": "请添加表单内容"
|
|
135
|
+
}
|
|
136
|
+
})];
|
|
137
|
+
}), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o("Toolbar", t._g(t._b({
|
|
138
|
+
attrs: {
|
|
139
|
+
footer: ""
|
|
140
|
+
},
|
|
141
|
+
scopedSlots: t._u([{
|
|
142
|
+
key: "default",
|
|
143
|
+
fn: function(r) {
|
|
144
|
+
var s = r.buttons, n = r.footer;
|
|
145
|
+
return [t._t("footer-button", null, {
|
|
146
|
+
buttons: s,
|
|
147
|
+
footer: n
|
|
148
|
+
})];
|
|
149
|
+
}
|
|
150
|
+
}, t._l(t.getFooterSlotKeys(), function(r) {
|
|
151
|
+
return {
|
|
152
|
+
key: t.getFooterSlotKey(r),
|
|
153
|
+
fn: function() {
|
|
154
|
+
return [t._t(r)];
|
|
155
|
+
},
|
|
156
|
+
proxy: !0
|
|
157
|
+
};
|
|
158
|
+
})], null, !0)
|
|
159
|
+
}, "Toolbar", Object.assign({}, t.toolbarProps, {
|
|
160
|
+
buttons: t.getFooterBarButtons(t.toolbarProps.buttons)
|
|
161
|
+
}), !1), t.toolbarListeners)) : t._e()], 2)]), t.$scopedSlots["form-bottom"] || t.$parent.$options.flowForm && t.flowContext.logs.length ? o("div", {
|
|
162
|
+
class: ["form-card", {
|
|
163
|
+
"un-limit": t.unLimit
|
|
164
|
+
}],
|
|
165
|
+
staticStyle: {
|
|
166
|
+
"min-height": "0"
|
|
167
|
+
},
|
|
168
|
+
style: {
|
|
169
|
+
width: `calc(${t.formWidth} + 40px)`
|
|
170
|
+
}
|
|
171
|
+
}, [o("div", {
|
|
172
|
+
staticClass: "form-content"
|
|
173
|
+
}, [o("FormItemGroup", {
|
|
174
|
+
attrs: {
|
|
175
|
+
"block-title": "流程日志"
|
|
176
|
+
}
|
|
177
|
+
}, [o("FlowLog", {
|
|
178
|
+
attrs: {
|
|
179
|
+
fetch: !1,
|
|
180
|
+
"show-title": !1,
|
|
181
|
+
"business-key": t.$parent.bizKey
|
|
182
|
+
}
|
|
183
|
+
})], 1), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", {
|
|
184
|
+
on: {
|
|
185
|
+
notify: t.onFormResize
|
|
186
|
+
}
|
|
187
|
+
})], 1), t.formNav && !t.isFormLoading && t.showNav && t.tabs.length ? o("div", {
|
|
188
|
+
staticClass: "form-nav"
|
|
189
|
+
}, [o("div", {
|
|
190
|
+
staticClass: "form-nav-header"
|
|
191
|
+
}, [t._v("表单导航")]), o("ul", {
|
|
192
|
+
staticClass: "form-nav-list"
|
|
193
|
+
}, t._l(t.tabs, function(r, s) {
|
|
194
|
+
return o("li", {
|
|
195
|
+
key: r.blockTitle,
|
|
196
|
+
class: ["form-nav-item", {
|
|
197
|
+
active: t.activeIndex === s
|
|
198
|
+
}],
|
|
199
|
+
on: {
|
|
200
|
+
click: function(n) {
|
|
201
|
+
return t.tabClick(r, s);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}, [t._v(" " + t._s(r.blockTitle) + " ")]);
|
|
205
|
+
}), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", {
|
|
206
|
+
attrs: {
|
|
207
|
+
"icon-size": "34px",
|
|
208
|
+
"font-size": "16px"
|
|
209
|
+
}
|
|
210
|
+
}) : t._e()], 1);
|
|
211
|
+
}, x = [];
|
|
212
|
+
const b = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], $ = b.map((t) => `${t}-down`), S = ["back", "withdraw", "edit"], h = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
|
|
213
|
+
if (t.classList.contains(e))
|
|
214
|
+
return t;
|
|
215
|
+
let o = t.parentNode;
|
|
216
|
+
for (; o && !o.classList.contains(e); )
|
|
217
|
+
o = o.parentNode;
|
|
218
|
+
return o.classList.contains(e) ? o : null;
|
|
219
|
+
}, F = {
|
|
220
|
+
name: "PresentView",
|
|
221
|
+
inject: {
|
|
222
|
+
flowContext: {
|
|
223
|
+
default: {}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
props: {
|
|
227
|
+
notForm: Boolean,
|
|
228
|
+
loading: Boolean,
|
|
229
|
+
unLimit: Boolean,
|
|
230
|
+
formWidth: {
|
|
231
|
+
type: String,
|
|
232
|
+
default: "75%"
|
|
233
|
+
},
|
|
234
|
+
toolbarAttrs: {
|
|
235
|
+
type: Object,
|
|
236
|
+
default: () => {
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
toolbarListeners: Object,
|
|
240
|
+
contentClass: String,
|
|
241
|
+
className: String,
|
|
242
|
+
title: String,
|
|
243
|
+
showToolbar: {
|
|
244
|
+
type: Boolean,
|
|
245
|
+
default: !0
|
|
246
|
+
},
|
|
247
|
+
formNav: {
|
|
248
|
+
type: Boolean,
|
|
249
|
+
default: !0
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
data() {
|
|
253
|
+
return {
|
|
254
|
+
tabs: [],
|
|
255
|
+
activeIndex: -1,
|
|
256
|
+
tryByClick: !1,
|
|
257
|
+
showNav: !1
|
|
258
|
+
};
|
|
259
|
+
},
|
|
260
|
+
computed: {
|
|
261
|
+
isFormLoading() {
|
|
262
|
+
return this.loading || d(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
|
|
263
|
+
},
|
|
264
|
+
toolbarProps() {
|
|
265
|
+
var r;
|
|
266
|
+
const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = w({}, this.toolbarAttrs, t);
|
|
267
|
+
return o.buttons = e || ["back"], o.buttons = p(o.buttons), o;
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
created() {
|
|
271
|
+
this.$on("FormView.addTab", (t) => {
|
|
272
|
+
t && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(t), this.tabs = this.tabs.sort((e, o) => {
|
|
273
|
+
const r = u(e.$el, "form-card"), s = u(o.$el, "form-card");
|
|
274
|
+
if (r === s) {
|
|
275
|
+
const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
|
|
276
|
+
return n - l;
|
|
277
|
+
} else {
|
|
278
|
+
const n = u(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
|
|
279
|
+
return l - a;
|
|
280
|
+
}
|
|
281
|
+
}), t.active && (this.activeIndex = this.tabs.indexOf(t), this.tabClick(t, this.activeIndex)));
|
|
282
|
+
}), this.$on("FormView.removeTab", (t) => {
|
|
283
|
+
if (t) {
|
|
284
|
+
const e = this.tabs.indexOf(t);
|
|
285
|
+
this.tabs.splice(e, 1), this.activeIndex > this.tabs.length - 1 && (this.activeIndex = 0);
|
|
286
|
+
}
|
|
287
|
+
}), this.onFormResize({ width: window.document.body.clientWidth });
|
|
288
|
+
},
|
|
289
|
+
activated() {
|
|
290
|
+
return c(this, null, function* () {
|
|
291
|
+
this.$refs.formScroller && (yield this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
|
|
292
|
+
});
|
|
293
|
+
},
|
|
294
|
+
methods: {
|
|
295
|
+
getToolbarSlotKeys() {
|
|
296
|
+
return Object.keys(this.$scopedSlots).filter((t) => b.includes(t));
|
|
297
|
+
},
|
|
298
|
+
getFooterSlotKeys() {
|
|
299
|
+
return Object.keys(this.$scopedSlots).filter((t) => $.includes(t));
|
|
300
|
+
},
|
|
301
|
+
getFooterSlotKey(t) {
|
|
302
|
+
return t.replace("-down", "");
|
|
303
|
+
},
|
|
304
|
+
onFormResize({ width: t }) {
|
|
305
|
+
this.showNav = t > 1500;
|
|
306
|
+
},
|
|
307
|
+
onEdit() {
|
|
308
|
+
!this.toolbarListeners.edit && d(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
309
|
+
},
|
|
310
|
+
tabClick(t, e) {
|
|
311
|
+
return c(this, null, function* () {
|
|
312
|
+
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);
|
|
313
|
+
});
|
|
314
|
+
},
|
|
315
|
+
tryActive() {
|
|
316
|
+
return c(this, null, function* () {
|
|
317
|
+
if (this.showNav) {
|
|
318
|
+
for (let t = 0; t < this.tabs.length; t++)
|
|
319
|
+
if (_(this.tabs[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
320
|
+
this.activeIndex = t;
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
},
|
|
326
|
+
onFormScroll() {
|
|
327
|
+
this.formScrollTop = this.$refs.formScroller.scrollTop, this.formScrollLeft = this.$refs.formScroller.scrollLeft, !this.tryByClick && this.tabs.length && window.requestAnimationFrame(this.tryActive), this.tryByClick = !1;
|
|
328
|
+
},
|
|
329
|
+
scrollTo(t, e) {
|
|
330
|
+
t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
|
|
331
|
+
},
|
|
332
|
+
getToolbarButtons(t) {
|
|
333
|
+
return t.filter((e) => !h.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
|
|
334
|
+
},
|
|
335
|
+
getFooterBarButtons(t) {
|
|
336
|
+
let e = t.filter((o) => !S.includes(o) && (h.includes(o) || o.indexOf(":down") > -1)).map((o) => o.replace(":down", ""));
|
|
337
|
+
return e = e || [], this.$parent.isEnabled && !e.includes("cancel") && e.push("cancel"), e;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}, m = {};
|
|
341
|
+
var k = /* @__PURE__ */ y(
|
|
342
|
+
F,
|
|
343
|
+
g,
|
|
344
|
+
x,
|
|
345
|
+
!1,
|
|
346
|
+
B,
|
|
347
|
+
null,
|
|
348
|
+
null,
|
|
349
|
+
null
|
|
350
|
+
);
|
|
351
|
+
function B(t) {
|
|
352
|
+
for (let e in m)
|
|
353
|
+
this[e] = m[e];
|
|
354
|
+
}
|
|
355
|
+
const I = /* @__PURE__ */ function() {
|
|
356
|
+
return k.exports;
|
|
357
|
+
}();
|
|
358
|
+
export {
|
|
359
|
+
I as default
|
|
360
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-view{display:flex;flex-direction:column;height:100%}.form-view .form-scroller-wrapper{position:relative;flex:1}.form-view .not-form{margin:0 auto}.form-view .form-view-toolbar{overflow:hidden}.form-view .form-scroller{flex:1;overflow:auto}.form-view .form-scroller .el-row{position:static}.form-view .form-content .el-form .el-row{padding-right:2rem}.form-view .form-content .el-form .el-row .el-row{padding-right:0}.form-view .form-card{box-shadow:0 2px 12px #0000001a;max-width:1000px;margin:14px auto;padding:20px;color:#303133;background-color:#fff;border:1px solid #ebeef5;border-radius:4px;transition:.3s}.form-view .form-card.un-limit{max-width:100%}.form-view .form-nav{box-shadow:0 2px 12px #0000001a;position:absolute;top:55px;left:20px;background-color:#fff}.form-view .form-nav-list{min-width:180px;padding:10px 20px}.form-view .form-nav-header{position:relative;padding:5px 20px;color:#e34e55;font-weight:700;font-size:15px;background-color:#f3f5fb}.form-view .form-nav-item{position:relative;padding:5px 0;font-family:element-icons!important;cursor:pointer}.form-view .form-nav-item.active,.form-view .form-nav-item:hover{color:#e34e55;font-weight:700}.form-view .form-nav-item.active:before{position:absolute;left:-14px;content:"\e6e0"}.form-view .form-view-title{width:100%;height:36px;margin-top:-10px;margin-bottom:10px;color:#333;font-size:22px;line-height:36px;text-align:center;background-color:#fff}.form-view .tip{margin:20px 0;padding:8px 16px;background-color:#ecf8ff;border-left:5px solid #50bfff;border-radius:4px}.form-view .tip p{color:#5e6d82;font-size:14px;line-height:1.5em}.form-view .tip.danger{background-color:#fde2e2;border-left-color:#f56c6c}.form-view .tip.danger p{color:#564646}.form-view .tip.warning{background-color:#f7efe2;border-left-color:#e6a23c}.form-view .tip.warning p{color:#5d564b}.form-view .select-num{color:#898989;font-size:12px}.form-view .select-num .num{font-size:19px;font-family:impact,Constantia,Georgia}.form-view .el-table .el-table__header th{color:#595959;font-weight:400;background:#fff}.form-view .el-table td{padding:4px 0}
|
|
@@ -277,8 +277,16 @@ const U = {
|
|
|
277
277
|
"Due Date": "到期时间",
|
|
278
278
|
"Follow Up Date": "跟踪日期",
|
|
279
279
|
Priority: "优先级",
|
|
280
|
-
|
|
281
|
-
"The
|
|
280
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
281
|
+
"The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": (
|
|
282
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
283
|
+
"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00"
|
|
284
|
+
),
|
|
285
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
286
|
+
"The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": (
|
|
287
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
288
|
+
"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00"
|
|
289
|
+
),
|
|
282
290
|
Variables: "变量",
|
|
283
291
|
"Candidate Starter Configuration": "候选人起动器配置",
|
|
284
292
|
"Candidate Starter Groups": "候选人起动器组",
|
package/queue/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var o = function() {
|
|
|
7
7
|
}]
|
|
8
8
|
}, [n("div", {
|
|
9
9
|
ref: "queue",
|
|
10
|
-
staticClass: "
|
|
10
|
+
staticClass: "animate__animated",
|
|
11
11
|
class: e.animate
|
|
12
12
|
}, [e._t("default")], 2)]);
|
|
13
13
|
}, i = [];
|
|
@@ -18,10 +18,6 @@ const l = {
|
|
|
18
18
|
type: String,
|
|
19
19
|
default: "fadeInLeft"
|
|
20
20
|
},
|
|
21
|
-
leave: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "fadeOutRight"
|
|
24
|
-
},
|
|
25
21
|
block: {
|
|
26
22
|
type: Boolean,
|
|
27
23
|
default: !1
|
|
@@ -33,7 +29,6 @@ const l = {
|
|
|
33
29
|
},
|
|
34
30
|
data() {
|
|
35
31
|
return {
|
|
36
|
-
isFixed: 0,
|
|
37
32
|
animate: []
|
|
38
33
|
};
|
|
39
34
|
},
|
|
@@ -59,12 +54,12 @@ var u = /* @__PURE__ */ s(
|
|
|
59
54
|
o,
|
|
60
55
|
i,
|
|
61
56
|
!1,
|
|
62
|
-
|
|
57
|
+
c,
|
|
63
58
|
null,
|
|
64
59
|
null,
|
|
65
60
|
null
|
|
66
61
|
);
|
|
67
|
-
function
|
|
62
|
+
function c(e) {
|
|
68
63
|
for (let t in a)
|
|
69
64
|
this[t] = a[t];
|
|
70
65
|
}
|
package/queue/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-queue--block{display:inline-block}
|
package/record-video/index.mjs
CHANGED
package/search/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as i } from "../chunks/util.
|
|
2
|
-
import { i as n } from "../chunks/init.
|
|
1
|
+
import { D as i } from "../chunks/util.505913d9.mjs";
|
|
2
|
+
import { i as n } from "../chunks/init.47ce5ed9.mjs";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
4
|
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
5
|
var h = function() {
|