@web-utils/component 2.8.8 → 2.8.10

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.
Files changed (97) hide show
  1. package/chat/index.mjs +1 -1
  2. package/chunk-file-uploader/index.mjs +5 -3
  3. package/chunks/FormTemp.a77c73c4.mjs +163 -0
  4. package/chunks/{dataformat.ab62230f.mjs → dataformat.4100726d.mjs} +8 -8
  5. package/chunks/{dic.7f13b573.mjs → dic.9e90e2a4.mjs} +1 -1
  6. package/chunks/{event.1ac32f1d.mjs → event.ebd9a3a6.mjs} +2 -2
  7. package/chunks/{init.47ce5ed9.mjs → init.27f6a0c4.mjs} +2 -2
  8. package/chunks/{util.505913d9.mjs → util.d691afb6.mjs} +17 -17
  9. package/dialog-form/index.mjs +1 -1
  10. package/egd-collapse-item/index.mjs +14 -12
  11. package/flow/index.mjs +1 -1
  12. package/flow-node/index.mjs +1 -1
  13. package/flow-viewer/index.mjs +36 -32
  14. package/fy-array/index.mjs +2 -2
  15. package/fy-cascader/index.mjs +1 -1
  16. package/fy-checkbox/index.mjs +1 -1
  17. package/fy-code/index.mjs +1 -1
  18. package/fy-curd/index.mjs +2504 -140
  19. package/fy-curd/style.css +1 -1
  20. package/fy-date/index.mjs +1 -1
  21. package/fy-draggable/index.mjs +1 -1
  22. package/fy-dynamic/index.mjs +2 -2
  23. package/fy-empty/index.mjs +1 -1
  24. package/fy-form/index.mjs +538 -333
  25. package/fy-form/style.css +1 -1
  26. package/fy-form-design/index.mjs +21 -21
  27. package/fy-form-design/style.css +1 -1
  28. package/fy-input/index.mjs +1 -1
  29. package/fy-input-color/index.mjs +1 -1
  30. package/fy-input-icon/index.mjs +14 -12
  31. package/fy-input-map/index.mjs +1 -1
  32. package/fy-input-number/index.mjs +1 -1
  33. package/fy-input-table/index.mjs +1 -1
  34. package/fy-input-tree/index.mjs +1 -1
  35. package/fy-radio/index.mjs +1 -1
  36. package/fy-rate/index.mjs +1 -1
  37. package/fy-select/index.mjs +3 -3
  38. package/fy-slider/index.mjs +2 -2
  39. package/fy-switch/index.mjs +1 -1
  40. package/fy-time/index.mjs +1 -1
  41. package/fy-title/index.mjs +1 -1
  42. package/fy-tree/index.mjs +1 -1
  43. package/fy-u-editor/index.mjs +1 -1
  44. package/fy-upload/index.mjs +2 -2
  45. package/image-cropper/index.mjs +1 -1
  46. package/image-preview/index.mjs +1 -1
  47. package/index.mjs +476 -549
  48. package/license/index.mjs +1 -1
  49. package/login/index.mjs +1 -1
  50. package/package.json +1 -1
  51. package/process-palette/index.mjs +190 -0
  52. package/process-palette/style.css +1 -0
  53. package/record-video/index.mjs +1 -1
  54. package/search/index.mjs +2 -2
  55. package/search-popover/index.mjs +1 -1
  56. package/sign/index.mjs +1 -1
  57. package/split-pane/index.mjs +104 -34
  58. package/text-ellipsis/index.mjs +1 -1
  59. package/tinymce-editor/index.mjs +846 -44
  60. package/tinymce-editor/style.css +1 -1
  61. package/verify/index.mjs +1 -1
  62. package/web-types.json +35 -646
  63. package/chunk-file-uploader-button/index.mjs +0 -60
  64. package/chunk-file-uploader-button/style.css +0 -1
  65. package/chunk-file-uploader-drop/index.mjs +0 -83
  66. package/chunk-file-uploader-drop/style.css +0 -1
  67. package/chunk-file-uploader-file/index.mjs +0 -311
  68. package/chunk-file-uploader-file/style.css +0 -1
  69. package/chunk-file-uploader-files/index.mjs +0 -49
  70. package/chunk-file-uploader-files/style.css +0 -1
  71. package/chunk-file-uploader-list/index.mjs +0 -50
  72. package/chunk-file-uploader-list/style.css +0 -1
  73. package/chunk-file-uploader-un-support/index.mjs +0 -51
  74. package/chunk-file-uploader-un-support/style.css +0 -1
  75. package/chunks/config.46422d7f.mjs +0 -73
  76. package/chunks/detail.6e46de33.mjs +0 -29
  77. package/chunks/mixins.5a78e0db.mjs +0 -16
  78. package/chunks/utils.97652d86.mjs +0 -26
  79. package/column/index.mjs +0 -115
  80. package/column-default/index.mjs +0 -106
  81. package/column-dynamic/index.mjs +0 -93
  82. package/column-menu/index.mjs +0 -288
  83. package/column-slot/index.mjs +0 -267
  84. package/dialog-column/index.mjs +0 -139
  85. package/dialog-excel/index.mjs +0 -211
  86. package/dialog-filter/index.mjs +0 -248
  87. package/form-group/index.mjs +0 -117
  88. package/form-group/style.css +0 -1
  89. package/form-temp/index.mjs +0 -137
  90. package/fy-dialog-form/index.mjs +0 -272
  91. package/fy-form-menu/index.mjs +0 -95
  92. package/header-menu/index.mjs +0 -238
  93. package/header-search/index.mjs +0 -255
  94. package/table-page/index.mjs +0 -130
  95. package/tinymce-wrapper/index.mjs +0 -821
  96. package/tinymce-wrapper/style.css +0 -1
  97. package/trigger/index.mjs +0 -71
@@ -1,73 +0,0 @@
1
- const e = {
2
- menuWidth: 220,
3
- menuFixed: "right",
4
- menuXsWidth: 100,
5
- menuAlign: "center",
6
- menuHeaderAlign: "center",
7
- headerAlign: "left",
8
- // 图标
9
- cancelBtnIcon: "el-icon-circle-close",
10
- viewBtnIcon: "el-icon-view",
11
- editBtnIcon: "el-icon-edit",
12
- copyBtnIcon: "el-icon-document-add",
13
- addBtnIcon: "el-icon-plus",
14
- printBtnIcon: "el-icon-printer",
15
- excelBtnIcon: "el-icon-download",
16
- delBtnIcon: "el-icon-delete",
17
- searchBtnIcon: "el-icon-search",
18
- emptyBtnIcon: "el-icon-delete",
19
- saveBtnIcon: "el-icon-circle-plus-outline",
20
- updateBtnIcon: "el-icon-circle-check",
21
- columnBtnIcon: "el-icon-s-operation",
22
- filterBtnIcon: "el-icon-tickets",
23
- refreshBtnIcon: "el-icon-refresh",
24
- // 显隐
25
- viewBtn: !1,
26
- editBtn: !0,
27
- copyBtn: !1,
28
- cancelBtn: !0,
29
- addBtn: !0,
30
- addRowBtn: !1,
31
- printBtn: !1,
32
- excelBtn: !1,
33
- delBtn: !0,
34
- cellBtn: !1,
35
- dateBtn: !1,
36
- updateBtn: !0,
37
- saveBtn: !0,
38
- refreshBtn: !0,
39
- columnBtn: !0,
40
- filterBtn: !1,
41
- queryBtn: !0,
42
- menuBtn: !1,
43
- searchBtn: !0,
44
- clearBtn: !0,
45
- selectClearBtn: !0,
46
- searchShow: !0,
47
- tip: !0,
48
- dialogWidth: "60%",
49
- dialogDrag: !1,
50
- formFullscreen: !1,
51
- pageBackground: !0,
52
- page: !0,
53
- menu: !0,
54
- indexLabel: "#",
55
- indexWidth: 50,
56
- indexFixed: "left",
57
- selectionWidth: 50,
58
- selectionFixed: "left",
59
- expandWidth: 60,
60
- expandFixed: "left",
61
- filterMultiple: !0,
62
- calcHeight: 300,
63
- width: "100%",
64
- searchGutter: 20,
65
- searchLabelWidth: 80,
66
- searchSpan: 6,
67
- dropRowClass: ".el-table__body-wrapper > table > tbody",
68
- dropColClass: ".el-table__header-wrapper tr",
69
- ghostClass: "avue-crud__ghost"
70
- };
71
- export {
72
- e as c
73
- };
@@ -1,29 +0,0 @@
1
- import { isBlank as Y } from "@web-utils/core";
2
- import { formatDate as p } from "@web-utils/integrations/dayjs";
3
- import { g as D, M as I, A as L, c as y, e as _, f as S, b as n, h as $, j as b, k as h } from "./util.505913d9.mjs";
4
- const P = (r = {}, t = {}, l = {}, A = []) => {
5
- let e = r[t.prop];
6
- const a = t.type, s = t.separator;
7
- if (t.bind && (e = D(r, t.bind)), Y(e))
8
- e = "";
9
- else {
10
- const g = I.includes(t.type) && t.multiple, T = L.includes(t.type);
11
- if ((["string", "number"].includes(t.dataType) || g || T) && !Array.isArray(e) && (e = `${e}`.split(s || y), t.dataType === "number" && (e = _(e))), S.includes(a))
12
- Array.isArray(e) ? e = e.join(s || n) : e = e.split(s || y).join(s || n);
13
- else if (a === "password")
14
- e = $(e, "*");
15
- else if (b.includes(a) && t.format) {
16
- const d = t.format.replace("dd", "DD").replace("yyyy", "YYYY"), o = p(Date.now(), "YYYY-MM-DD");
17
- if (a.indexOf("range") !== -1) {
18
- let i = e[0] || "", f = e[1] || "";
19
- a === "timerange" && i.length <= 8 && f.length < 8 && (i = `${o} ${i}`, f = `${o} ${f}`), e = [p(i, d), p(f, d)].join(t.separator || "~");
20
- } else
21
- a === "time" && e.length <= 8 && (e = `${o} ${e}`), e = p(e, d);
22
- }
23
- e = h(A, e, t.props || l.props);
24
- }
25
- return t.formatter && typeof t.formatter == "function" && (e = t.formatter(r, r[t.prop], e, t)), e;
26
- };
27
- export {
28
- P as d
29
- };
@@ -1,16 +0,0 @@
1
- const t = {
2
- inject: ["uploader"]
3
- }, p = {
4
- data() {
5
- return {
6
- support: !0
7
- };
8
- },
9
- mounted() {
10
- this.support = this.uploader.uploader.support;
11
- }
12
- };
13
- export {
14
- p as s,
15
- t as u
16
- };
@@ -1,26 +0,0 @@
1
- function c(r) {
2
- const n = Math.floor(r / 31536e3);
3
- if (n)
4
- return `${n} 年${o(n)}`;
5
- const t = Math.floor((r %= 31536e3) / 86400);
6
- if (t)
7
- return `${t} 天${o(t)}`;
8
- const s = Math.floor((r %= 86400) / 3600);
9
- if (s)
10
- return `${s} 时${o(s)}`;
11
- const e = Math.floor((r %= 3600) / 60);
12
- if (e)
13
- return `${e} 分${o(e)}`;
14
- const u = r % 60;
15
- return `${u} 秒${o(u)}`;
16
- function o(a) {
17
- return a > 1, "";
18
- }
19
- }
20
- function f(r) {
21
- return r.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
22
- }
23
- export {
24
- f as k,
25
- c as s
26
- };
package/column/index.mjs DELETED
@@ -1,115 +0,0 @@
1
- import { a as s, D as l } from "../chunks/util.505913d9.mjs";
2
- import { isBlank as p } from "@web-utils/core";
3
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var d = function() {
5
- var t = this, n = t.$createElement, e = t._self._c || n;
6
- return e("div", [t._t("header"), t._l(t.list, function(r) {
7
- return [r.children && r.children.length > 0 ? e("ColumnDynamic", {
8
- key: r.pop,
9
- attrs: {
10
- "column-option": r
11
- },
12
- scopedSlots: t._u([t._l(t.crud.mainSlot, function(o) {
13
- return {
14
- key: o,
15
- fn: function(i) {
16
- return [t._t(o, null, null, i)];
17
- }
18
- };
19
- })], null, !0)
20
- }) : e("ColumnSlot", {
21
- key: r.prop,
22
- attrs: {
23
- column: r,
24
- "column-option": t.columnOption
25
- },
26
- scopedSlots: t._u([t._l(t.crud.mainSlot, function(o) {
27
- return {
28
- key: o,
29
- fn: function(i) {
30
- return [t._t(o, null, null, i)];
31
- }
32
- };
33
- })], null, !0)
34
- })];
35
- }), t._t("footer")], 2);
36
- }, a = [];
37
- const f = {
38
- name: "Column",
39
- inject: ["crud"],
40
- provide() {
41
- return {
42
- crud: this.crud,
43
- dynamic: this
44
- };
45
- },
46
- props: {
47
- columnOption: Array
48
- },
49
- computed: {
50
- list() {
51
- let t = [...this.columnOption];
52
- return t = s(t, "index", (n, e) => {
53
- var r, o;
54
- return ((r = this.crud.objectOption[n.prop]) == null ? void 0 : r.index) - ((o = this.crud.objectOption[e.prop]) == null ? void 0 : o.index);
55
- }), t;
56
- }
57
- },
58
- methods: {
59
- // 表格筛选逻辑
60
- handleFilterMethod(t, n, e) {
61
- const r = this.columnOption.filter(
62
- (o) => o.prop === e.property
63
- )[0];
64
- return typeof r.filterMethod == "function" ? r.filterMethod(t, n, r) : n[r.prop] === t;
65
- },
66
- // 表格筛选字典
67
- handleFilters(t, n) {
68
- if (n !== !0)
69
- return;
70
- const e = this.crud.DIC[t.prop] || [], r = [];
71
- return p(e) ? this.crud.cellForm.list.forEach((o) => {
72
- r.map((i) => i.text).includes(o[t.prop]) || r.push({
73
- text: o[t.prop],
74
- value: o[t.prop]
75
- });
76
- }) : e.forEach((o) => {
77
- const i = t.props || this.crud.tableOption.props || {};
78
- r.push({
79
- text: o[i.label || l.label],
80
- value: o[i.value || l.value]
81
- });
82
- }), r;
83
- },
84
- getColumnProp(t, n) {
85
- const e = this.crud.objectOption[t.prop] || {};
86
- if (n === "filterMethod")
87
- return e == null ? void 0 : e.filters;
88
- if (this.crud.isMobile && ["fixed"].includes(n))
89
- return !1;
90
- const r = e == null ? void 0 : e[n];
91
- if (!(n === "width" && r === 0))
92
- return n === "filters" ? this.handleFilters(t, r) : n === "hide" ? (e == null ? void 0 : e.hide) !== !0 : r;
93
- }
94
- }
95
- }, u = {};
96
- var h = /* @__PURE__ */ c(
97
- f,
98
- d,
99
- a,
100
- !1,
101
- _,
102
- null,
103
- null,
104
- null
105
- );
106
- function _(t) {
107
- for (let n in u)
108
- this[n] = u[n];
109
- }
110
- const C = /* @__PURE__ */ function() {
111
- return h.exports;
112
- }();
113
- export {
114
- C as default
115
- };
@@ -1,106 +0,0 @@
1
- import { c as r } from "../chunks/config.46422d7f.mjs";
2
- import { o as d } from "../chunks/util.505913d9.mjs";
3
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var a = function() {
5
- var e = this, n = e.$createElement, t = e._self._c || n;
6
- return t("div", [t("ElTableColumn", {
7
- attrs: {
8
- width: "1px"
9
- }
10
- }), e.crud.tableOption.expand ? t("ElTableColumn", {
11
- key: "expand",
12
- attrs: {
13
- type: "expand",
14
- width: e.crud.tableOption.expandWidth || e.config.expandWidth,
15
- fixed: e.optVal(e.crud.tableOption.expandFixed, e.config.expandFixed),
16
- align: "center"
17
- },
18
- scopedSlots: e._u([{
19
- key: "default",
20
- fn: function(o) {
21
- var i = o.row;
22
- return [e._t("expand", null, {
23
- row: i,
24
- index: i.$index
25
- })];
26
- }
27
- }], null, !0)
28
- }) : e._e(), e.crud.tableOption.selection ? t("ElTableColumn", {
29
- key: "selection",
30
- attrs: {
31
- fixed: e.optVal(e.crud.tableOption.selectionFixed, e.config.selectionFixed),
32
- type: "selection",
33
- selectable: e.crud.tableOption.selectable,
34
- "reserve-selection": e.optVal(e.crud.tableOption.reserveSelection),
35
- width: e.crud.tableOption.selectionWidth || e.config.selectionWidth,
36
- align: "center"
37
- }
38
- }) : e._e(), e.optVal(e.crud.tableOption.index) ? t("ElTableColumn", {
39
- key: "index",
40
- attrs: {
41
- fixed: e.optVal(e.crud.tableOption.indexFixed, e.config.indexFixed),
42
- label: e.crud.tableOption.indexLabel || e.config.indexLabel,
43
- type: "index",
44
- width: e.crud.tableOption.indexWidth || e.config.indexWidth,
45
- index: e.indexMethod,
46
- align: "center"
47
- }
48
- }) : e._e()], 1);
49
- }, s = [];
50
- const u = {
51
- name: "ColumnDefault",
52
- inject: ["crud"],
53
- data() {
54
- return {
55
- config: r
56
- };
57
- },
58
- mounted() {
59
- this.setSort();
60
- },
61
- methods: {
62
- optVal: d,
63
- indexMethod(e) {
64
- return e + 1 + ((this.crud.page.currentPage || 1) - 1) * (this.crud.page.pageSize || 10);
65
- },
66
- setSort() {
67
- this.rowDrop(), this.columnDrop();
68
- },
69
- rowDrop() {
70
- const e = this.crud.$refs.table.$el.querySelectorAll(this.config.dropRowClass)[0];
71
- this.crud.tableDrop("row", e, (n) => {
72
- const t = n.oldIndex, o = n.newIndex, i = this.crud.list.splice(t, 1)[0];
73
- this.crud.list.splice(o, 0, i), this.crud.$emit("sortable-change", t, o), this.crud.refreshTable(() => this.rowDrop());
74
- });
75
- },
76
- columnDrop() {
77
- const e = this.crud.$refs.table.$el.querySelector(this.config.dropColClass);
78
- let n = 0;
79
- ["selection", "index", "expand"].forEach((t) => {
80
- this.crud.tableOption[t] && (n += 1);
81
- }), this.crud.tableDrop("column", e, (t) => {
82
- this.crud.headerSort(t.oldIndex - n, t.newIndex - n), this.columnDrop();
83
- });
84
- }
85
- }
86
- }, l = {};
87
- var p = /* @__PURE__ */ c(
88
- u,
89
- a,
90
- s,
91
- !1,
92
- x,
93
- null,
94
- null,
95
- null
96
- );
97
- function x(e) {
98
- for (let n in l)
99
- this[n] = l[n];
100
- }
101
- const m = /* @__PURE__ */ function() {
102
- return p.exports;
103
- }();
104
- export {
105
- m as default
106
- };
@@ -1,93 +0,0 @@
1
- import { o as u } from "../chunks/util.505913d9.mjs";
2
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var p = function() {
4
- var n = this, t = n.$createElement, l = n._self._c || t;
5
- return n.getColumnProp(n.columnOption, "hide") ? l("ElTableColumn", {
6
- key: n.columnOption.prop,
7
- attrs: {
8
- prop: n.columnOption.prop,
9
- label: n.columnOption.label,
10
- "filter-placement": "bottom-end",
11
- filters: n.getColumnProp(n.columnOption, "filters"),
12
- "filter-method": n.getColumnProp(n.columnOption, "filterMethod") ? n.handleFilterMethod : void 0,
13
- "filter-multiple": n.optVal(n.columnOption.filterMultiple, !0),
14
- "show-overflow-tooltip": n.columnOption.overHidden,
15
- "min-width": n.columnOption.minWidth,
16
- sortable: n.getColumnProp(n.columnOption, "sortable"),
17
- "render-header": n.columnOption.renderHeader,
18
- align: n.columnOption.align || n.crud.tableOption.align,
19
- "header-align": n.columnOption.headerAlign || n.crud.tableOption.headerAlign,
20
- width: n.getColumnProp(n.columnOption, "width"),
21
- fixed: n.getColumnProp(n.columnOption, "fixed")
22
- }
23
- }, [n._l(n.columnOption.children, function(o) {
24
- return [o.children && o.children.length > 0 ? l("ColumnDynamic", {
25
- key: o.prop,
26
- attrs: {
27
- "column-option": o
28
- },
29
- scopedSlots: n._u([n._l(n.crud.mainSlot, function(e) {
30
- return {
31
- key: e,
32
- fn: function(i) {
33
- return [n._t(e, null, null, i)];
34
- }
35
- };
36
- })], null, !0)
37
- }) : l("ColumnSlot", {
38
- key: o.prop,
39
- attrs: {
40
- column: o,
41
- "column-option": n.columnOption.children
42
- },
43
- scopedSlots: n._u([n._l(n.crud.mainSlot, function(e) {
44
- return {
45
- key: e,
46
- fn: function(i) {
47
- return [n._t(e, null, null, i)];
48
- }
49
- };
50
- })], null, !0)
51
- })];
52
- })], 2) : n._e();
53
- }, m = [];
54
- const a = {
55
- name: "ColumnDynamic",
56
- inject: ["dynamic", "crud"],
57
- props: {
58
- columnOption: Object
59
- },
60
- created() {
61
- const n = [
62
- "getColumnProp",
63
- "handleFilterMethod",
64
- "handleFilters"
65
- ];
66
- Object.keys(this.dynamic).forEach((t) => {
67
- n.includes(t) && (this[t] = this.dynamic[t]);
68
- });
69
- },
70
- methods: {
71
- optVal: u
72
- }
73
- }, r = {};
74
- var d = /* @__PURE__ */ c(
75
- a,
76
- p,
77
- m,
78
- !1,
79
- s,
80
- null,
81
- null,
82
- null
83
- );
84
- function s(n) {
85
- for (let t in r)
86
- this[t] = r[t];
87
- }
88
- const _ = /* @__PURE__ */ function() {
89
- return d.exports;
90
- }();
91
- export {
92
- _ as default
93
- };