asiaint-lowcode 3.1.29 → 3.1.32
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/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +112 -112
- package/dist/index.d.ts +9 -27
- package/dist/lazy/{Card-XvYmArV6.js → Card-BwNa1hDj.js} +1 -1
- package/dist/lazy/{Cascader-X8-x5OVi.js → Cascader-CO31vocU.js} +1 -1
- package/dist/lazy/{Checkbox-BAvIffVy.js → Checkbox-DnKjRokQ.js} +2 -2
- package/dist/lazy/{Collapse-Dxb0-Gm0.js → Collapse-Bj6jTROO.js} +1 -1
- package/dist/lazy/{Component-ha4PkWiH.js → Component-B5LV-KaP.js} +1 -1
- package/dist/lazy/{Component-CRMf78p5.js → Component-BdScPQJE.js} +1 -1
- package/dist/lazy/{Component-DmeXKeND.js → Component-BdegLcld.js} +1 -1
- package/dist/lazy/{Component-BsgdHDP2.js → Component-C9n4lMEL.js} +1 -1
- package/dist/lazy/{Component-C8CEK8SN.js → Component-PmyO01kg.js} +1 -1
- package/dist/lazy/{Component-BJZk0sqT.js → Component-uCK5rapQ.js} +1 -1
- package/dist/lazy/{CurdCard-Us3z-Taz.js → CurdCard-CsiT8A_x.js} +1 -1
- package/dist/lazy/{Custom-DKrjeFti.js → Custom-W0JF0Dyi.js} +1 -1
- package/dist/lazy/{DatePicker-DRM8P6jp.js → DatePicker-CQy59KtN.js} +1 -1
- package/dist/lazy/DragList-IgtjrMRt.js +332 -0
- package/dist/lazy/{FilterSearch-elTbLDzk.js → FilterSearch-Cr0_y7A6.js} +1 -1
- package/dist/lazy/{FormList-vb7RuvO-.js → FormList-BUHgpi2T.js} +1 -1
- package/dist/lazy/{Grid-CY3IeecA.js → Grid-CFooYco_.js} +1 -1
- package/dist/lazy/InfiniteScroll-CB3I6t7N.js +38 -0
- package/dist/lazy/{Inline-DIwh4C_Y.js → Inline-C8C_pWZn.js} +1 -1
- package/dist/lazy/{JsonEdit-B3IWsFHN.js → JsonEdit-BI6f3E8d.js} +1 -1
- package/dist/lazy/{LogList-BKcgl3d5.js → LogList-9YVVSkru.js} +1 -1
- package/dist/lazy/{ObjGroup-B4hVMb42.js → ObjGroup-D2SfhwJS.js} +1 -1
- package/dist/lazy/{OfferDetails-CJRFtCgG.js → OfferDetails-C3-Ehi6N.js} +1 -1
- package/dist/lazy/{Pagination-mgCbpgxW.js → Pagination-CMS6eUN-.js} +1 -1
- package/dist/lazy/{Progress-_Zuh01mF.js → Progress-CwN_cudN.js} +1 -1
- package/dist/lazy/{Radio-DJrcuE5r.js → Radio-CxGp1o2I.js} +2 -2
- package/dist/lazy/{SearchSelect-BE08GNhm.js → SearchSelect-B5m_yG_4.js} +2 -2
- package/dist/lazy/{Select-Bk668HeD.js → Select-D-xVt93H.js} +2 -2
- package/dist/lazy/{Table-DDlK04gz.js → Table-Ay_abxF4.js} +1 -1
- package/dist/lazy/{Tabs-lJ9GGrra.js → Tabs-Dptk_Xp_.js} +1 -1
- package/dist/lazy/{Wrapper-CbeCkXPQ.js → Wrapper-DvspQhb6.js} +1 -1
- package/dist/lazy/{index-Cg7LKdr9.js → index-C-0KoMei.js} +1560 -1540
- package/dist/lazy/{useSelect-CSlxQCNo.js → useSelect-CaTbd2nX.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/DragList-B0bZTVHu.js +0 -328
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { ComponentPublicInstance } from 'vue';
|
|
|
6
6
|
import { DeepReadonly } from 'vue';
|
|
7
7
|
import { DefineComponent } from 'vue';
|
|
8
8
|
import { ExtractPropTypes } from 'vue';
|
|
9
|
-
import { FormInstance as FormInstance_2 } from 'packages/types';
|
|
10
9
|
import { FormValidationResult } from 'element-plus';
|
|
11
10
|
import { InjectionKey } from 'vue';
|
|
12
11
|
import { ModelRef } from 'vue';
|
|
@@ -72,13 +71,13 @@ design: boolean;
|
|
|
72
71
|
footer: boolean;
|
|
73
72
|
pageRulePath: string;
|
|
74
73
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
75
|
-
reset: () => void;
|
|
76
74
|
finish: (values: Record<string, any>) => void;
|
|
77
75
|
failed: (errors: {
|
|
78
76
|
message?: string;
|
|
79
77
|
fieldValue?: any;
|
|
80
78
|
field?: string;
|
|
81
79
|
}[]) => void;
|
|
80
|
+
reset: () => void;
|
|
82
81
|
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
83
82
|
modelValue: PropType<Record<string, any>>;
|
|
84
83
|
realValues: PropType<Record<string, any>>;
|
|
@@ -96,13 +95,13 @@ pageRulePath: {
|
|
|
96
95
|
type: PropType<string>;
|
|
97
96
|
};
|
|
98
97
|
}>> & Readonly<{
|
|
99
|
-
onReset?: (() => any) | undefined;
|
|
100
98
|
onFinish?: ((values: Record<string, any>) => any) | undefined;
|
|
101
99
|
onFailed?: ((errors: {
|
|
102
100
|
message?: string;
|
|
103
101
|
fieldValue?: any;
|
|
104
102
|
field?: string;
|
|
105
103
|
}[]) => any) | undefined;
|
|
104
|
+
onReset?: (() => any) | undefined;
|
|
106
105
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
107
106
|
|
|
108
107
|
declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -466,6 +465,7 @@ w: number;
|
|
|
466
465
|
h: number;
|
|
467
466
|
i: string;
|
|
468
467
|
rowHeight?: number;
|
|
468
|
+
contentHeight?: number;
|
|
469
469
|
}[]>;
|
|
470
470
|
};
|
|
471
471
|
children: {
|
|
@@ -500,6 +500,7 @@ readonly w: number;
|
|
|
500
500
|
readonly h: number;
|
|
501
501
|
readonly i: string;
|
|
502
502
|
readonly rowHeight?: number | undefined;
|
|
503
|
+
readonly contentHeight?: number | undefined;
|
|
503
504
|
}[], readonly {
|
|
504
505
|
readonly x: number;
|
|
505
506
|
readonly y: number;
|
|
@@ -507,9 +508,11 @@ readonly w: number;
|
|
|
507
508
|
readonly h: number;
|
|
508
509
|
readonly i: string;
|
|
509
510
|
readonly rowHeight?: number | undefined;
|
|
511
|
+
readonly contentHeight?: number | undefined;
|
|
510
512
|
}[]>>;
|
|
511
513
|
setItemX: (index: number, x: number) => void;
|
|
512
514
|
setItemY: (index: number, y: number) => void;
|
|
515
|
+
setItemVisible: (i: string, visible: boolean) => void;
|
|
513
516
|
type: "draglist";
|
|
514
517
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
515
518
|
gridlayout: {
|
|
@@ -521,6 +524,7 @@ w: number;
|
|
|
521
524
|
h: number;
|
|
522
525
|
i: string;
|
|
523
526
|
rowHeight?: number;
|
|
527
|
+
contentHeight?: number;
|
|
524
528
|
}[]>;
|
|
525
529
|
};
|
|
526
530
|
children: {
|
|
@@ -706,21 +710,7 @@ export declare type FormElement = {
|
|
|
706
710
|
lbTitle?: boolean;
|
|
707
711
|
};
|
|
708
712
|
|
|
709
|
-
export declare
|
|
710
|
-
formValues: Record<string, any>;
|
|
711
|
-
selectData: Record<string, Record<string, any>>;
|
|
712
|
-
initialValues: Record<string, Record<string, any>>;
|
|
713
|
-
context: Record<string, any>;
|
|
714
|
-
vCodePass: boolean;
|
|
715
|
-
updateFormValues: (values: Record<string, any>, isAssign?: boolean) => void;
|
|
716
|
-
updateSelectData: (key: string, value: Record<string, any>) => void;
|
|
717
|
-
updateInitialValues: (values: Record<string, any>) => void;
|
|
718
|
-
updateVCodePass: (value: boolean) => void;
|
|
719
|
-
validate: () => FormValidationResult | undefined;
|
|
720
|
-
resetFields: (names?: string[]) => void;
|
|
721
|
-
findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
|
|
722
|
-
submit: () => void;
|
|
723
|
-
}
|
|
713
|
+
export declare type FormInstance = Omit<InstanceType<typeof FormRender>, keyof ComponentPublicInstance>;
|
|
724
714
|
|
|
725
715
|
export declare interface FormItemType {
|
|
726
716
|
label?: string;
|
|
@@ -748,14 +738,6 @@ export declare interface FormItemType {
|
|
|
748
738
|
|
|
749
739
|
export declare const FormRender: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
750
740
|
|
|
751
|
-
declare interface FormRenderProps {
|
|
752
|
-
schema: FormSchema;
|
|
753
|
-
schemaContext?: Record<string, any>;
|
|
754
|
-
design?: boolean;
|
|
755
|
-
footer?: boolean;
|
|
756
|
-
pageRulePath?: string;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
741
|
declare type FormRule = {
|
|
760
742
|
type: 'email' | 'url' | 'custom' | string;
|
|
761
743
|
customReg?: string;
|
|
@@ -1174,7 +1156,7 @@ export declare type TemplateData = {
|
|
|
1174
1156
|
id?: string;
|
|
1175
1157
|
}[];
|
|
1176
1158
|
|
|
1177
|
-
export declare const useFormInstance: () =>
|
|
1159
|
+
export declare const useFormInstance: () => FormInstance;
|
|
1178
1160
|
|
|
1179
1161
|
export declare const useRuleContext: () => {
|
|
1180
1162
|
ruleModule: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, ref as $, inject as _, resolveComponent as d, openBlock as o, createBlock as c, mergeProps as M, withCtx as i, createElementVNode as s, normalizeClass as C, createElementBlock as n, createVNode as r, unref as p, createCommentVNode as k, toDisplayString as f, Fragment as m, renderList as b, withDirectives as E, vShow as V } from "vue";
|
|
2
|
-
import { _ as D, I as u, B as F, a as N, b as S } from "./index-
|
|
2
|
+
import { _ as D, I as u, B as F, a as N, b as S } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const j = { class: "card-btns" }, H = { class: "card-sub-header" }, L = /* @__PURE__ */ B({
|
|
5
5
|
__name: "Card",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, mergeModels as g, useModel as C, inject as r, resolveComponent as h, openBlock as v, createBlock as y, mergeProps as M, unref as d } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as b } from "./useSelect-
|
|
3
|
+
import { u as b } from "./useSelect-CaTbd2nX.js";
|
|
4
4
|
const k = /* @__PURE__ */ f({
|
|
5
5
|
__name: "Cascader",
|
|
6
6
|
props: /* @__PURE__ */ g({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as F, mergeModels as D, useModel as I, watch as O, resolveComponent as u, resolveDirective as P, unref as a, openBlock as l, createElementBlock as p, toDisplayString as S, withDirectives as $, createBlock as s, mergeProps as j, withCtx as f, Fragment as h, renderList as v, createCommentVNode as g } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as E, c as L } from "./index-
|
|
4
|
-
import { u as N } from "./useSelect-
|
|
3
|
+
import { u as E, c as L } from "./index-C-0KoMei.js";
|
|
4
|
+
import { u as N } from "./useSelect-CaTbd2nX.js";
|
|
5
5
|
const R = { key: 0 }, H = /* @__PURE__ */ F({
|
|
6
6
|
__name: "Checkbox",
|
|
7
7
|
props: /* @__PURE__ */ D({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
|
|
2
|
-
import { a as y } from "./index-
|
|
2
|
+
import { a as y } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
|
|
5
5
|
const x = /* @__PURE__ */ u({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
|
|
2
|
-
import { u as V } from "./index-
|
|
2
|
+
import { u as V } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, inject as h, ref as N, watch as w, resolveComponent as k, openBlock as d, createBlock as m, mergeProps as A, withCtx as y, createElementVNode as l, toDisplayString as B, createElementBlock as _, createCommentVNode as f, Fragment as v, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
|
|
2
|
-
import { h as F, I as j, b as D } from "./index-
|
|
2
|
+
import { h as F, I as j, b as D } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = { class: "tree-node-label" }, z = {
|
|
5
5
|
key: 0,
|
|
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
|
|
5
|
-
import { u as b, b as x } from "./index-
|
|
5
|
+
import { u as b, b as x } from "./index-C-0KoMei.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
function S() {
|
|
8
8
|
return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
|
|
2
|
-
import { b as H, u as K, d as Q } from "./index-
|
|
2
|
+
import { b as H, u as K, d as Q } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Z = $({
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, mergeModels as d, useModel as i, computed as c, resolveComponent as f, openBlock as t, createElementBlock as y, toDisplayString as v, createBlock as k, mergeProps as V } from "vue";
|
|
2
|
-
import { u as _ } from "./index-
|
|
2
|
+
import { u as _ } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = { key: 0 }, g = /* @__PURE__ */ p({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
|
|
2
2
|
import { ElMessage as M, ElMessageBox as N } from "element-plus";
|
|
3
|
-
import { _ as f } from "./index-
|
|
3
|
+
import { _ as f } from "./index-C-0KoMei.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as U, inject as M, ref as k, resolveComponent as C, openBlock as o, createElementBlock as s, normalizeClass as m, normalizeStyle as A, createElementVNode as c, createBlock as p, createCommentVNode as u, toDisplayString as z, withCtx as v, Fragment as B, renderList as R, createTextVNode as O, createVNode as r, withKeys as q, unref as I, withDirectives as G, vShow as H } from "vue";
|
|
2
|
-
import { u as J, I as h, a as V, B as Q, i as W, b as X } from "./index-
|
|
2
|
+
import { u as J, I as h, a as V, B as Q, i as W, b as X } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Y = ["id"], Z = { class: "left-part" }, x = { class: "title" }, ee = { class: "right-part" }, le = { key: 0 }, ae = {
|
|
5
5
|
key: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
|
|
2
|
-
import { b as i } from "./index-
|
|
2
|
+
import { b as i } from "./index-C-0KoMei.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, mergeModels as f, useModel as v, useAttrs as k, computed as r, resolveComponent as y, openBlock as l, createElementBlock as _, toDisplayString as V, createBlock as B, mergeProps as M } from "vue";
|
|
2
2
|
import { dayjs as g } from "element-plus";
|
|
3
|
-
import { u as h } from "./index-
|
|
3
|
+
import { u as h } from "./index-C-0KoMei.js";
|
|
4
4
|
const D = { key: 0 }, I = /* @__PURE__ */ i({
|
|
5
5
|
__name: "DatePicker",
|
|
6
6
|
props: /* @__PURE__ */ f({
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { defineComponent as J, reactive as F, ref as T, onBeforeMount as le, onMounted as ie, nextTick as h, onBeforeUnmount as re, watch as c, provide as j, toRefs as q, openBlock as R, createElementBlock as A, normalizeStyle as ne, renderSlot as O, Fragment as se, renderList as ue, createBlock as K, mergeProps as de, withCtx as Q, withDirectives as ce, createVNode as Z, vShow as me, mergeModels as ge, useModel as pe, onUnmounted as ye, unref as X, readonly as Y } from "vue";
|
|
2
|
+
import { w as ve, m as fe, n as he, o as k, T as we, v as xe, p as C, A as be, q as G, x as Be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as P, V as Se, c as ze, j as Re, a as Ie, b as Ne } from "./index-C-0KoMei.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const $e = /* @__PURE__ */ J({
|
|
5
|
+
__name: "grid-layout",
|
|
6
|
+
props: {
|
|
7
|
+
autoSize: { type: Boolean, default: !0 },
|
|
8
|
+
colNum: { default: 12 },
|
|
9
|
+
rowHeight: { default: 150 },
|
|
10
|
+
maxRows: { default: 1 / 0 },
|
|
11
|
+
margin: { default: () => [10, 10] },
|
|
12
|
+
isDraggable: { type: Boolean, default: !0 },
|
|
13
|
+
isResizable: { type: Boolean, default: !0 },
|
|
14
|
+
isMirrored: { type: Boolean, default: !1 },
|
|
15
|
+
isBounded: { type: Boolean, default: !1 },
|
|
16
|
+
useCssTransforms: { type: Boolean, default: !0 },
|
|
17
|
+
verticalCompact: { type: Boolean, default: !0 },
|
|
18
|
+
restoreOnDrag: { type: Boolean, default: !1 },
|
|
19
|
+
layout: {},
|
|
20
|
+
responsive: { type: Boolean, default: !1 },
|
|
21
|
+
responsiveLayouts: { default: () => ({}) },
|
|
22
|
+
transformScale: { default: 1 },
|
|
23
|
+
breakpoints: { default: () => ({ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }) },
|
|
24
|
+
cols: { default: () => ({ lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }) },
|
|
25
|
+
preventCollision: { type: Boolean, default: !1 },
|
|
26
|
+
useStyleCursor: { type: Boolean, default: !0 }
|
|
27
|
+
},
|
|
28
|
+
emits: [
|
|
29
|
+
"layout-before-mount",
|
|
30
|
+
"layout-mounted",
|
|
31
|
+
"layout-updated",
|
|
32
|
+
"breakpoint-changed",
|
|
33
|
+
"update:layout",
|
|
34
|
+
"layout-ready"
|
|
35
|
+
],
|
|
36
|
+
setup(D, { expose: I, emit: w }) {
|
|
37
|
+
const a = D, d = w, t = F({
|
|
38
|
+
width: -1,
|
|
39
|
+
mergedStyle: {},
|
|
40
|
+
lastLayoutLength: 0,
|
|
41
|
+
isDragging: !1,
|
|
42
|
+
placeholder: {
|
|
43
|
+
x: 0,
|
|
44
|
+
y: 0,
|
|
45
|
+
w: 0,
|
|
46
|
+
h: 0,
|
|
47
|
+
i: ""
|
|
48
|
+
},
|
|
49
|
+
layouts: {},
|
|
50
|
+
// array to store all layouts from different breakpoints
|
|
51
|
+
lastBreakpoint: null,
|
|
52
|
+
// store last active breakpoint
|
|
53
|
+
originalLayout: null
|
|
54
|
+
// store original Layout
|
|
55
|
+
}), L = /* @__PURE__ */ new Map(), o = T(a.layout), m = T(), { observeResize: M, unobserveResize: N } = ve(), i = Se();
|
|
56
|
+
i.on("resizeEvent", s), i.on("dragEvent", u), le(() => {
|
|
57
|
+
d("layout-before-mount", o.value);
|
|
58
|
+
}), ie(() => {
|
|
59
|
+
d("layout-mounted", o.value), h(() => {
|
|
60
|
+
fe(o.value), t.originalLayout = o.value, h(() => {
|
|
61
|
+
W(), m.value && M(m.value, he(E, 16)), k(o.value, a.verticalCompact), d("layout-updated", o.value), x(), E();
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
}), re(() => {
|
|
65
|
+
i.clearAll(), m.value && N(m.value);
|
|
66
|
+
});
|
|
67
|
+
function s(e, n, r, v, g, p) {
|
|
68
|
+
V(e, n, r, v, g, p);
|
|
69
|
+
}
|
|
70
|
+
function u(e, n, r, v, g, p) {
|
|
71
|
+
U(e, n, r, v, g, p);
|
|
72
|
+
}
|
|
73
|
+
c(
|
|
74
|
+
() => t.width,
|
|
75
|
+
(e, n) => {
|
|
76
|
+
h(() => {
|
|
77
|
+
i.emit("updateWidth", e), n === -1 && h(() => {
|
|
78
|
+
d("layout-ready", o.value);
|
|
79
|
+
}), x();
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
), c(
|
|
83
|
+
() => [a.layout, a.layout.length],
|
|
84
|
+
() => {
|
|
85
|
+
o.value = a.layout, _();
|
|
86
|
+
}
|
|
87
|
+
), c(
|
|
88
|
+
() => a.colNum,
|
|
89
|
+
(e) => {
|
|
90
|
+
i.emit("setColNum", e);
|
|
91
|
+
}
|
|
92
|
+
), c(
|
|
93
|
+
() => a.rowHeight,
|
|
94
|
+
(e) => {
|
|
95
|
+
i.emit("setRowHeight", e);
|
|
96
|
+
}
|
|
97
|
+
), c(
|
|
98
|
+
() => a.isDraggable,
|
|
99
|
+
(e) => {
|
|
100
|
+
i.emit("setDraggable", e);
|
|
101
|
+
}
|
|
102
|
+
), c(
|
|
103
|
+
() => a.isResizable,
|
|
104
|
+
(e) => {
|
|
105
|
+
i.emit("setResizable", e);
|
|
106
|
+
}
|
|
107
|
+
), c(
|
|
108
|
+
() => a.isBounded,
|
|
109
|
+
(e) => {
|
|
110
|
+
i.emit("setBounded", e);
|
|
111
|
+
}
|
|
112
|
+
), c(
|
|
113
|
+
() => a.transformScale,
|
|
114
|
+
(e) => {
|
|
115
|
+
i.emit("setTransformScale", e);
|
|
116
|
+
}
|
|
117
|
+
), c(
|
|
118
|
+
() => a.responsive,
|
|
119
|
+
(e) => {
|
|
120
|
+
e || (d("update:layout", t.originalLayout), i.emit("setColNum", a.colNum)), E();
|
|
121
|
+
}
|
|
122
|
+
), c(
|
|
123
|
+
() => a.maxRows,
|
|
124
|
+
(e) => {
|
|
125
|
+
i.emit("setMaxRows", e);
|
|
126
|
+
}
|
|
127
|
+
), c([() => a.margin, () => a.margin[1]], x), j(
|
|
128
|
+
we,
|
|
129
|
+
F({
|
|
130
|
+
...q(a),
|
|
131
|
+
...q(t),
|
|
132
|
+
increaseItem: y,
|
|
133
|
+
decreaseItem: $
|
|
134
|
+
})
|
|
135
|
+
), j(xe, i), I({ state: t, getItem: ee, resizeEvent: V, dragEvent: U, layoutUpdate: _ });
|
|
136
|
+
function y(e) {
|
|
137
|
+
L.set(e.i, e);
|
|
138
|
+
}
|
|
139
|
+
function $(e) {
|
|
140
|
+
L.delete(e.i);
|
|
141
|
+
}
|
|
142
|
+
function ee(e) {
|
|
143
|
+
return L.get(e);
|
|
144
|
+
}
|
|
145
|
+
function _() {
|
|
146
|
+
if (!C(o.value) && !C(t.originalLayout)) {
|
|
147
|
+
if (o.value.length !== t.originalLayout.length) {
|
|
148
|
+
const e = oe(o.value, t.originalLayout);
|
|
149
|
+
if (e.length > 0)
|
|
150
|
+
if (o.value.length > t.originalLayout.length)
|
|
151
|
+
t.originalLayout = t.originalLayout.concat(e);
|
|
152
|
+
else {
|
|
153
|
+
const n = new Set(e.map((r) => r.i));
|
|
154
|
+
t.originalLayout = t.originalLayout.filter((r) => !n.has(r.i));
|
|
155
|
+
}
|
|
156
|
+
t.lastLayoutLength = o.value.length, W();
|
|
157
|
+
}
|
|
158
|
+
k(o.value, a.verticalCompact), i.emit("updateWidth", t.width), x(), d("layout-updated", o.value);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function x() {
|
|
162
|
+
t.mergedStyle = {
|
|
163
|
+
height: te()
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
function E() {
|
|
167
|
+
m.value && (t.width = m.value.offsetWidth), i.emit("resizeEvent");
|
|
168
|
+
}
|
|
169
|
+
function te() {
|
|
170
|
+
if (!a.autoSize) return;
|
|
171
|
+
const e = parseFloat(a.margin[1]);
|
|
172
|
+
return be(o.value) * (a.rowHeight + e) + e + "px";
|
|
173
|
+
}
|
|
174
|
+
let H;
|
|
175
|
+
function U(e, n, r, v, g, p) {
|
|
176
|
+
let l = G(o.value, n);
|
|
177
|
+
C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (H = o.value.reduce(
|
|
178
|
+
(B, { i: S, x: f, y: b }) => ({
|
|
179
|
+
...B,
|
|
180
|
+
[S]: { x: f, y: b }
|
|
181
|
+
}),
|
|
182
|
+
{}
|
|
183
|
+
)), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = l.x, t.placeholder.y = l.y, t.placeholder.w = p, t.placeholder.h = g, h(() => {
|
|
184
|
+
t.isDragging = !0;
|
|
185
|
+
}), i.emit("updateWidth", t.width)) : h(() => {
|
|
186
|
+
t.isDragging = !1;
|
|
187
|
+
}), o.value = Be(o.value, l, r, v, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0, k(o.value, a.verticalCompact, H), l.static = !1) : k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "dragend" && (H = void 0, d("layout-updated", o.value));
|
|
188
|
+
}
|
|
189
|
+
function V(e, n, r, v, g, p) {
|
|
190
|
+
let l = G(o.value, n);
|
|
191
|
+
C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" });
|
|
192
|
+
let B;
|
|
193
|
+
if (a.preventCollision) {
|
|
194
|
+
const S = ke(o.value, { ...l, w: p, h: g }).filter(
|
|
195
|
+
(f) => f.i !== l.i
|
|
196
|
+
);
|
|
197
|
+
if (B = S.length > 0, B) {
|
|
198
|
+
let f = 1 / 0, b = 1 / 0;
|
|
199
|
+
S.forEach((z) => {
|
|
200
|
+
z.x > l.x && (f = Math.min(f, z.x)), z.y > l.y && (b = Math.min(b, z.y));
|
|
201
|
+
}), Number.isFinite(f) && (l.w = f - l.x), Number.isFinite(b) && (l.h = b - l.y);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
B || (l.w = p, l.h = g), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = r, t.placeholder.y = v, t.placeholder.w = l.w, t.placeholder.h = l.h, h(() => {
|
|
205
|
+
t.isDragging = !0;
|
|
206
|
+
}), i.emit("updateWidth", t.width)) : e && h(() => {
|
|
207
|
+
t.isDragging = !1;
|
|
208
|
+
}), a.responsive && ae(), k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "resizeend" && d("layout-updated", o.value);
|
|
209
|
+
}
|
|
210
|
+
function ae() {
|
|
211
|
+
const e = Ce(a.breakpoints, t.width);
|
|
212
|
+
if (e === t.lastBreakpoint)
|
|
213
|
+
return;
|
|
214
|
+
const n = De(e, a.cols);
|
|
215
|
+
!C(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = Le(o.value));
|
|
216
|
+
const r = Me(
|
|
217
|
+
t.originalLayout,
|
|
218
|
+
t.layouts,
|
|
219
|
+
a.breakpoints,
|
|
220
|
+
e,
|
|
221
|
+
t.lastBreakpoint,
|
|
222
|
+
n,
|
|
223
|
+
a.verticalCompact
|
|
224
|
+
);
|
|
225
|
+
t.layouts[e] = r, t.lastBreakpoint !== e && d("breakpoint-changed", e, r), o.value = r, d("update:layout", r), t.lastBreakpoint = e, i.emit("setColNum", n);
|
|
226
|
+
}
|
|
227
|
+
function W() {
|
|
228
|
+
t.layouts = Object.assign({}, a.responsiveLayouts);
|
|
229
|
+
}
|
|
230
|
+
function oe(e, n) {
|
|
231
|
+
const r = new Set(n.map((l) => l.i)), v = new Set(e.map((l) => l.i)), g = e.filter((l) => !r.has(l.i)), p = n.filter((l) => !v.has(l.i));
|
|
232
|
+
return g.concat(p);
|
|
233
|
+
}
|
|
234
|
+
return (e, n) => (R(), A("div", {
|
|
235
|
+
ref_key: "wrapper",
|
|
236
|
+
ref: m,
|
|
237
|
+
class: "vgl-layout",
|
|
238
|
+
style: ne(t.mergedStyle)
|
|
239
|
+
}, [
|
|
240
|
+
e.$slots.default ? O(e.$slots, "default", { key: 0 }) : (R(!0), A(se, { key: 1 }, ue(o.value, (r) => (R(), K(P, de({
|
|
241
|
+
key: r.i,
|
|
242
|
+
ref_for: !0
|
|
243
|
+
}, r), {
|
|
244
|
+
default: Q(() => [
|
|
245
|
+
O(e.$slots, "item", { item: r })
|
|
246
|
+
]),
|
|
247
|
+
_: 2
|
|
248
|
+
}, 1040))), 128)),
|
|
249
|
+
ce(Z(P, {
|
|
250
|
+
class: "vgl-item--placeholder",
|
|
251
|
+
x: t.placeholder.x,
|
|
252
|
+
y: t.placeholder.y,
|
|
253
|
+
w: t.placeholder.w,
|
|
254
|
+
h: t.placeholder.h,
|
|
255
|
+
i: t.placeholder.i
|
|
256
|
+
}, null, 8, ["x", "y", "w", "h", "i"]), [
|
|
257
|
+
[me, t.isDragging]
|
|
258
|
+
])
|
|
259
|
+
], 4));
|
|
260
|
+
}
|
|
261
|
+
}), Ee = /* @__PURE__ */ J({
|
|
262
|
+
__name: "DragList",
|
|
263
|
+
props: /* @__PURE__ */ ge({
|
|
264
|
+
children: {},
|
|
265
|
+
rowHeight: {},
|
|
266
|
+
colNum: {},
|
|
267
|
+
maxRows: {},
|
|
268
|
+
isDraggable: { type: Boolean },
|
|
269
|
+
name: {},
|
|
270
|
+
onMoved: {}
|
|
271
|
+
}, {
|
|
272
|
+
gridlayout: { required: !0 },
|
|
273
|
+
gridlayoutModifiers: {}
|
|
274
|
+
}),
|
|
275
|
+
emits: ["update:gridlayout"],
|
|
276
|
+
setup(D, { expose: I }) {
|
|
277
|
+
const w = D, a = pe(D, "gridlayout"), m = {
|
|
278
|
+
getLayout: () => Y(a),
|
|
279
|
+
setItemX: (s, u) => {
|
|
280
|
+
a.value[s].x = u;
|
|
281
|
+
},
|
|
282
|
+
setItemY: (s, u) => {
|
|
283
|
+
a.value[s].y = u;
|
|
284
|
+
},
|
|
285
|
+
setItemVisible: (s, u) => {
|
|
286
|
+
const y = a.value.find(($) => $.i === s);
|
|
287
|
+
y && (y.h = u ? y.contentHeight || 1 : 0);
|
|
288
|
+
},
|
|
289
|
+
type: "draglist"
|
|
290
|
+
}, { ruleModule: M, pageMethodMap: N } = ze(), i = () => {
|
|
291
|
+
if (w.onMoved && M)
|
|
292
|
+
try {
|
|
293
|
+
M[w.onMoved](N, Y(a.value));
|
|
294
|
+
} catch (s) {
|
|
295
|
+
console.error(s + `
|
|
296
|
+
onMoved: ${w.onMoved}`);
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
if (I(m), w.name) {
|
|
300
|
+
const s = Re(w.name, m);
|
|
301
|
+
ye(() => {
|
|
302
|
+
s();
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
return (s, u) => (R(), K(X($e), {
|
|
306
|
+
layout: a.value,
|
|
307
|
+
"onUpdate:layout": u[1] || (u[1] = (y) => a.value = y),
|
|
308
|
+
"col-num": s.colNum || 12,
|
|
309
|
+
"row-height": s.rowHeight || 30,
|
|
310
|
+
"max-rows": s.maxRows,
|
|
311
|
+
margin: [8, 8],
|
|
312
|
+
"is-draggable": s.isDraggable,
|
|
313
|
+
"is-bounded": "",
|
|
314
|
+
"is-resizable": !1,
|
|
315
|
+
"vertical-compact": "",
|
|
316
|
+
"use-css-transforms": ""
|
|
317
|
+
}, {
|
|
318
|
+
default: Q(() => [
|
|
319
|
+
Z(X(Ie), {
|
|
320
|
+
list: s.children,
|
|
321
|
+
gridData: a.value,
|
|
322
|
+
"onUpdate:gridData": u[0] || (u[0] = (y) => a.value = y),
|
|
323
|
+
onGridItemMoved: i
|
|
324
|
+
}, null, 8, ["list", "gridData"])
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
|
|
328
|
+
}
|
|
329
|
+
}), Ve = /* @__PURE__ */ Ne(Ee, [["__scopeId", "data-v-f58dab66"]]);
|
|
330
|
+
export {
|
|
331
|
+
Ve as default
|
|
332
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as D, ref as v, readonly as E, onUnmounted as K, resolveComponent as m, openBlock as p, createElementBlock as f, createElementVNode as l, createVNode as s, withKeys as R, withCtx as c, createBlock as U, createTextVNode as C, toDisplayString as S, createCommentVNode as $, Fragment as L, renderList as q, normalizeClass as T, withDirectives as A, unref as G, vShow as H } from "vue";
|
|
2
|
-
import { c as J, j as O, I as k, a as P, b as Q } from "./index-
|
|
2
|
+
import { c as J, j as O, I as k, a as P, b as Q } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const W = { class: "filter-search-header" }, X = { class: "input-tag-wrapper" }, Y = { class: "input-action" }, Z = { class: "input-action-tag-wrapper" }, ee = /* @__PURE__ */ D({
|
|
5
5
|
__name: "FilterSearch",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
|
|
2
|
-
import { u as U, l as w, e as W, f as V, _ as L, h as X } from "./index-
|
|
2
|
+
import { u as U, l as w, e as W, f as V, _ as L, h as X } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
|
|
5
5
|
__name: "FormList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, computed as o, openBlock as a, createElementBlock as d, normalizeStyle as r, createVNode as l, unref as m } from "vue";
|
|
2
|
-
import { a as g } from "./index-
|
|
2
|
+
import { a as g } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const x = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Grid",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as s, resolveDirective as c, withDirectives as a, openBlock as d, createElementBlock as f, normalizeStyle as p, createVNode as _, unref as m } from "vue";
|
|
2
|
+
import { c as u, a as y, b as h } from "./index-C-0KoMei.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const b = ["infinite-scroll-disabled"], v = /* @__PURE__ */ s({
|
|
5
|
+
__name: "InfiniteScroll",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
load: {},
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
style: { type: [Boolean, null, String, Object, Array] }
|
|
11
|
+
},
|
|
12
|
+
setup(i) {
|
|
13
|
+
const { ruleModule: l, pageMethodMap: t } = u(), o = i, n = async () => {
|
|
14
|
+
try {
|
|
15
|
+
await l[o.load](t);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
console.error(e);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
return (e, B) => {
|
|
21
|
+
const r = c("infinite-scroll");
|
|
22
|
+
return a((d(), f("div", {
|
|
23
|
+
"infinite-scroll-disabled": e.disabled,
|
|
24
|
+
"infinite-scroll-immediate": !1,
|
|
25
|
+
"infinite-scroll-distance": 20,
|
|
26
|
+
class: "infinite-scroll-wrapper",
|
|
27
|
+
style: p(e.style)
|
|
28
|
+
}, [
|
|
29
|
+
_(m(y), { list: e.children }, null, 8, ["list"])
|
|
30
|
+
], 12, b)), [
|
|
31
|
+
[r, n]
|
|
32
|
+
]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}), M = /* @__PURE__ */ h(v, [["__scopeId", "data-v-6746ff5d"]]);
|
|
36
|
+
export {
|
|
37
|
+
M as default
|
|
38
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as o, openBlock as r, createElementBlock as i, normalizeStyle as p, createVNode as s, unref as c } from "vue";
|
|
2
|
-
import { a as m, b as u } from "./index-
|
|
2
|
+
import { a as m, b as u } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const f = /* @__PURE__ */ l({
|
|
5
5
|
__name: "Inline",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
|
|
2
|
-
import { b as xt, g as Nt } from "./index-
|
|
2
|
+
import { b as xt, g as Nt } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Mt = /* @__PURE__ */ At({
|
|
5
5
|
__name: "Disabled",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as d, createElementVNode as s, normalizeStyle as i, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
|
|
2
|
-
import { b as y } from "./index-
|
|
2
|
+
import { b as y } from "./index-C-0KoMei.js";
|
|
3
3
|
const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "title" }, m = { class: "sub-title" }, k = { class: "content" }, C = { key: 0 }, L = /* @__PURE__ */ p({
|
|
4
4
|
__name: "LogList",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, inject as i, provide as f, ref as d, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
|
|
2
|
-
import { u as j, e as h, f as k } from "./index-
|
|
2
|
+
import { u as j, e as h, f as k } from "./index-C-0KoMei.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
5
|
key: 1,
|