@aplus-frontend/ui 6.11.0 → 6.13.0
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/es/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +118 -108
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +27 -19
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +31 -30
- package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/es/src/ap-form/search-form/index.vue.mjs +35 -35
- package/es/src/ap-grid/index.vue.mjs +221 -225
- package/es/src/ap-modal/interface.d.ts +8 -0
- package/es/src/ap-modal/utils/createModalStream.mjs +69 -66
- package/es/src/ap-table/ap-table.vue2.mjs +107 -111
- package/es/src/ap-table/constants.d.ts +7 -7
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +6 -5
- package/es/src/ap-table/utils.d.ts +5 -3247
- package/es/src/ap-table/utils.mjs +107 -121
- package/es/src/business/ap-card/ApCard.vue2.mjs +17 -17
- package/es/src/business/ap-summary/interface.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +76 -74
- package/es/src/business/ap-view/interface.d.ts +1 -0
- package/es/src/business/batch-input-group/index.vue.d.ts +2 -1
- package/es/src/business/batch-input-group/index.vue.mjs +56 -52
- package/es/src/business/batch-input-group/interface.d.ts +5 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +36 -32
- package/es/src/business/batch-input-group/utils.d.ts +8 -0
- package/es/src/business/batch-input-group/utils.mjs +10 -0
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +14 -5
- package/es/src/config-provider/config-provider.mjs +19 -18
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +28 -13
- package/es/src/utils/config-provider-preset.d.ts +6 -6
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +8 -0
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +7 -7
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +5 -3247
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +1 -0
- package/lib/src/business/batch-input-group/index.vue.d.ts +2 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +5 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
- package/lib/src/business/batch-input-group/utils.d.ts +8 -0
- package/lib/src/business/batch-input-group/utils.js +1 -0
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +14 -5
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +28 -13
- package/lib/src/utils/config-provider-preset.d.ts +6 -6
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
- package/theme/ap-grid/index.css +3 -0
- package/theme/ap-grid/index.less +3 -4
- package/theme/index.css +3 -0
- package/es/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
- package/es/src/ap-table/components/dynamic-component/index.vue.mjs +0 -4
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +0 -15
- package/lib/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
- package/lib/src/ap-table/components/dynamic-component/index.vue.js +0 -1
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +0 -1
|
@@ -398,7 +398,9 @@ declare function __VLS_template(): {
|
|
|
398
398
|
push: (StringConstructor | NumberConstructor)[];
|
|
399
399
|
pull: (StringConstructor | NumberConstructor)[];
|
|
400
400
|
xs: {
|
|
401
|
-
type: PropType<string | number |
|
|
401
|
+
type: PropType<string | number | **
|
|
402
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
403
|
+
*/).ColSize>;
|
|
402
404
|
default: string | number | ColSize;
|
|
403
405
|
};
|
|
404
406
|
sm: {
|
|
@@ -1237,7 +1239,9 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1237
1239
|
push: (StringConstructor | NumberConstructor)[];
|
|
1238
1240
|
pull: (StringConstructor | NumberConstructor)[];
|
|
1239
1241
|
xs: {
|
|
1240
|
-
type: PropType<string | number |
|
|
1242
|
+
type: PropType<string | number | **
|
|
1243
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
1244
|
+
*/).ColSize>;
|
|
1241
1245
|
default: string | number | ColSize;
|
|
1242
1246
|
};
|
|
1243
1247
|
sm: {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as w, Flex as N, Button as M, Row as
|
|
1
|
+
import { isVNode as ne, defineComponent as le, useSlots as re, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _, createBlock as g, openBlock as d, mergeProps as se, withCtx as B, resolveDynamicComponent as I, createElementBlock as ie, renderList as ue } from "vue";
|
|
2
|
+
import { Col as w, Flex as N, Button as M, Row as ce } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
5
5
|
import { genRealChildren as z } from "../item-group/helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { isArray as
|
|
7
|
+
import { isArray as pe, isBoolean as de, omit as fe } from "lodash-unified";
|
|
8
8
|
import { isDef as q } from "../../utils/index.mjs";
|
|
9
|
-
import { execFunc as H, diffFormItem as
|
|
9
|
+
import { execFunc as H, diffFormItem as me } from "./utils.mjs";
|
|
10
10
|
import "./components/popover-filter.vue.mjs";
|
|
11
|
-
import { useCountPerRow as
|
|
11
|
+
import { useCountPerRow as he } from "./hooks/use-count-per-row.mjs";
|
|
12
12
|
import "./components/popover-sorter/index.vue.mjs";
|
|
13
|
-
import { useSorter as
|
|
14
|
-
import { useNamespace as
|
|
15
|
-
import { useLocale as
|
|
13
|
+
import { useSorter as xe } from "./hooks/use-sorter.mjs";
|
|
14
|
+
import { useNamespace as ge } from "../../config-provider/hooks/use-namespace.mjs";
|
|
15
|
+
import { useLocale as ye } from "../../config-provider/hooks/use-locale.mjs";
|
|
16
16
|
import G from "../item/index.vue.mjs";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
function
|
|
21
|
-
return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !
|
|
17
|
+
import ve from "./components/popover-filter.vue2.mjs";
|
|
18
|
+
import Ce from "./components/popover-sorter/index.vue2.mjs";
|
|
19
|
+
import Se from "../ap-form.vue2.mjs";
|
|
20
|
+
function _e(f) {
|
|
21
|
+
return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !ne(f);
|
|
22
22
|
}
|
|
23
|
-
const s = 24,
|
|
23
|
+
const s = 24, Me = /* @__PURE__ */ le({
|
|
24
24
|
name: "ApFormSearchForm",
|
|
25
25
|
__name: "index",
|
|
26
26
|
props: {
|
|
@@ -119,11 +119,11 @@ const s = 24, ze = /* @__PURE__ */ re({
|
|
|
119
119
|
expose: J
|
|
120
120
|
}) {
|
|
121
121
|
var L;
|
|
122
|
-
const i =
|
|
122
|
+
const i = re(), t = f, {
|
|
123
123
|
b: m
|
|
124
|
-
} =
|
|
124
|
+
} = ge("ap-form-search-form"), {
|
|
125
125
|
t: k
|
|
126
|
-
} =
|
|
126
|
+
} = ye(), K = he(t), y = D(), Q = D();
|
|
127
127
|
function T() {
|
|
128
128
|
var a;
|
|
129
129
|
const e = (a = y.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
|
|
@@ -133,15 +133,15 @@ const s = 24, ze = /* @__PURE__ */ re({
|
|
|
133
133
|
var e, a;
|
|
134
134
|
t.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), H(t.onReset);
|
|
135
135
|
}
|
|
136
|
-
const Y = (e) => q(e) ? (
|
|
136
|
+
const Y = (e) => q(e) ? (pe(e) ? e : [e]).join("") : Date.now();
|
|
137
137
|
let E = [];
|
|
138
138
|
const h = U(z(i.default())), c = U((L = i.extra) == null ? void 0 : L.call(i)), P = S(() => Math.floor(s / n(K))), {
|
|
139
139
|
items: R,
|
|
140
140
|
sorted: O,
|
|
141
141
|
handleClickConfirm: b
|
|
142
|
-
} =
|
|
142
|
+
} = xe(h);
|
|
143
143
|
W(() => i.default(), (e) => {
|
|
144
|
-
E = h.value, h.value =
|
|
144
|
+
E = h.value, h.value = me(E, z(e)), O.value = !1;
|
|
145
145
|
}), W(() => {
|
|
146
146
|
var e;
|
|
147
147
|
return (e = i.extra) == null ? void 0 : e.call(i);
|
|
@@ -152,21 +152,21 @@ const s = 24, ze = /* @__PURE__ */ re({
|
|
|
152
152
|
const e = h.value, a = [], r = [], x = [], u = n(P);
|
|
153
153
|
let v = 0, F = 0;
|
|
154
154
|
const te = s * t.maxRows - u * (n(c) && !t.extraInAction ? 2 : 1);
|
|
155
|
-
e.forEach((A
|
|
155
|
+
e.forEach((A) => {
|
|
156
156
|
const p = A.props;
|
|
157
|
-
if (
|
|
157
|
+
if (de(p.hidden) ? !!p.hidden : q(p.hidden))
|
|
158
158
|
a.push(A);
|
|
159
159
|
else {
|
|
160
160
|
let C = p.span || u;
|
|
161
|
-
const
|
|
161
|
+
const V = {
|
|
162
162
|
node: A,
|
|
163
163
|
span: C,
|
|
164
|
-
key: `ApFormSearchFormItem-${
|
|
165
|
-
},
|
|
166
|
-
|
|
164
|
+
key: `ApFormSearchFormItem-${Y(p.name)}-${p._signal}`
|
|
165
|
+
}, $ = s - v % s;
|
|
166
|
+
$ < C && (C += $), v += C, v > te ? r.push(V) : (F = v, x.push(V));
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
const
|
|
169
|
+
const j = s - (F + u) % s, oe = F % s < u, ae = j < u ? s : j;
|
|
170
170
|
return {
|
|
171
171
|
hideNode: o(_, null, [a]),
|
|
172
172
|
nodes: x,
|
|
@@ -191,11 +191,11 @@ const s = 24, ze = /* @__PURE__ */ re({
|
|
|
191
191
|
}, {
|
|
192
192
|
default: () => [a ? o("div", {
|
|
193
193
|
class: m("column-setting-trigger-wrapper")
|
|
194
|
-
}, [l.value.collapseNodes.length ? o(
|
|
194
|
+
}, [l.value.collapseNodes.length ? o(ve, {
|
|
195
195
|
onSubmit: T,
|
|
196
196
|
config: l.value.collapseNodes,
|
|
197
197
|
submitLoading: t.submitLoading
|
|
198
|
-
}, null) : null, t.sortable && R.value.length ? o(
|
|
198
|
+
}, null) : null, t.sortable && R.value.length ? o(Ce, {
|
|
199
199
|
ref: "sorterIns",
|
|
200
200
|
items: R.value,
|
|
201
201
|
onClickConfirm: b,
|
|
@@ -227,7 +227,7 @@ const s = 24, ze = /* @__PURE__ */ re({
|
|
|
227
227
|
default: () => [o(G, null, {
|
|
228
228
|
default: () => [o(N, {
|
|
229
229
|
justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
|
|
230
|
-
},
|
|
230
|
+
}, _e(e = n(c)) ? e : {
|
|
231
231
|
default: () => [e]
|
|
232
232
|
})]
|
|
233
233
|
})]
|
|
@@ -246,15 +246,15 @@ const s = 24, ze = /* @__PURE__ */ re({
|
|
|
246
246
|
getSorterItems: () => R.value,
|
|
247
247
|
setSorterItems: b,
|
|
248
248
|
resetSorterItems: ee
|
|
249
|
-
}), (e, a) => (d(), g(
|
|
249
|
+
}), (e, a) => (d(), g(Se, se({
|
|
250
250
|
ref_key: "apForm",
|
|
251
251
|
ref: y,
|
|
252
252
|
class: n(m)()
|
|
253
|
-
}, n(
|
|
254
|
-
default: B(() => [(d(), g(I(l.value.hideNode))), o(n(
|
|
253
|
+
}, n(fe)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
254
|
+
default: B(() => [(d(), g(I(l.value.hideNode))), o(n(ce), {
|
|
255
255
|
gutter: 8
|
|
256
256
|
}, {
|
|
257
|
-
default: B(() => [(d(!0),
|
|
257
|
+
default: B(() => [(d(!0), ie(_, null, ue(l.value.nodes, (r) => (d(), g(n(w), {
|
|
258
258
|
key: r.key,
|
|
259
259
|
span: r.span
|
|
260
260
|
}, {
|
|
@@ -268,5 +268,5 @@ const s = 24, ze = /* @__PURE__ */ re({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
export {
|
|
271
|
-
|
|
271
|
+
Me as default
|
|
272
272
|
};
|