ll-plus 2.7.15 → 2.7.16
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/components/advanced-filtering/index.d.ts +4 -4
- package/es/components/advanced-filtering/src/advanced-filtering.d.ts +1 -2
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +2 -2
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +3 -3
- package/es/components/key-value/index.d.ts +45 -19
- package/es/components/key-value/src/components/key-value-item.vue.d.ts +15 -5
- package/es/components/key-value/src/config/key-value-item.d.ts +5 -1
- package/es/components/key-value/src/config/key-value.d.ts +2 -2
- package/es/components/key-value/src/key-value.vue.d.ts +45 -19
- package/es/index.mjs +3 -2
- package/es/index.mjs.map +1 -1
- package/es/packages/components/advanced-filtering/index.mjs +1 -1
- package/es/packages/components/advanced-filtering/src/advanced-filtering.mjs +3 -5
- package/es/packages/components/advanced-filtering/src/advanced-filtering.mjs.map +1 -1
- package/es/packages/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs +2 -1
- package/es/packages/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs.map +1 -1
- package/es/packages/components/form/src/form.vue2.mjs +4 -2
- package/es/packages/components/form/src/form.vue2.mjs.map +1 -1
- package/es/packages/components/index.mjs +1 -1
- package/es/packages/components/key-value/src/components/key-value-item.vue2.mjs +51 -59
- package/es/packages/components/key-value/src/components/key-value-item.vue2.mjs.map +1 -1
- package/es/packages/components/key-value/src/config/key-value-item.mjs +11 -2
- package/es/packages/components/key-value/src/config/key-value-item.mjs.map +1 -1
- package/es/packages/components/key-value/src/config/key-value.mjs +1 -1
- package/es/packages/components/key-value/src/config/key-value.mjs.map +1 -1
- package/es/packages/components/key-value/src/key-value.vue2.mjs +42 -18
- package/es/packages/components/key-value/src/key-value.vue2.mjs.map +1 -1
- package/es/packages/components/select-group/src/select-group.vue2.mjs +1 -2
- package/es/packages/components/select-group/src/select-group.vue2.mjs.map +1 -1
- package/es/packages/utils/data.mjs +35 -0
- package/es/packages/utils/data.mjs.map +1 -0
- package/es/packages/utils/{deepUnref.mjs → deep-unref.mjs} +1 -1
- package/es/packages/utils/deep-unref.mjs.map +1 -0
- package/es/packages/utils/index.mjs +2 -1
- package/es/packages/utils/index.mjs.map +1 -1
- package/es/utils/data.d.ts +2 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +137 -83
- package/index.full.min.js +20 -20
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +20 -20
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +137 -84
- package/lib/components/advanced-filtering/index.d.ts +4 -4
- package/lib/components/advanced-filtering/src/advanced-filtering.d.ts +1 -2
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +2 -2
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +3 -3
- package/lib/components/key-value/index.d.ts +45 -19
- package/lib/components/key-value/src/components/key-value-item.vue.d.ts +15 -5
- package/lib/components/key-value/src/config/key-value-item.d.ts +5 -1
- package/lib/components/key-value/src/config/key-value.d.ts +2 -2
- package/lib/components/key-value/src/key-value.vue.d.ts +45 -19
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/packages/components/advanced-filtering/index.js +0 -1
- package/lib/packages/components/advanced-filtering/index.js.map +1 -1
- package/lib/packages/components/advanced-filtering/src/advanced-filtering.js +5 -8
- package/lib/packages/components/advanced-filtering/src/advanced-filtering.js.map +1 -1
- package/lib/packages/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js +2 -1
- package/lib/packages/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js.map +1 -1
- package/lib/packages/components/form/src/form.vue2.js +4 -2
- package/lib/packages/components/form/src/form.vue2.js.map +1 -1
- package/lib/packages/components/index.js +0 -1
- package/lib/packages/components/index.js.map +1 -1
- package/lib/packages/components/key-value/src/components/key-value-item.vue2.js +50 -58
- package/lib/packages/components/key-value/src/components/key-value-item.vue2.js.map +1 -1
- package/lib/packages/components/key-value/src/config/key-value-item.js +11 -2
- package/lib/packages/components/key-value/src/config/key-value-item.js.map +1 -1
- package/lib/packages/components/key-value/src/config/key-value.js +1 -1
- package/lib/packages/components/key-value/src/config/key-value.js.map +1 -1
- package/lib/packages/components/key-value/src/key-value.vue2.js +42 -18
- package/lib/packages/components/key-value/src/key-value.vue2.js.map +1 -1
- package/lib/packages/components/select-group/src/select-group.vue2.js +2 -3
- package/lib/packages/components/select-group/src/select-group.vue2.js.map +1 -1
- package/lib/packages/utils/data.js +38 -0
- package/lib/packages/utils/data.js.map +1 -0
- package/lib/packages/utils/{deepUnref.js → deep-unref.js} +1 -1
- package/lib/packages/utils/deep-unref.js.map +1 -0
- package/lib/packages/utils/index.js +4 -1
- package/lib/packages/utils/index.js.map +1 -1
- package/lib/utils/data.d.ts +2 -0
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/table.css +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +4 -4
- package/types/packages/components/advanced-filtering/src/advanced-filtering.d.ts +1 -2
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +2 -2
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +3 -3
- package/types/packages/components/key-value/index.d.ts +45 -19
- package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +15 -5
- package/types/packages/components/key-value/src/config/key-value-item.d.ts +5 -1
- package/types/packages/components/key-value/src/config/key-value.d.ts +2 -2
- package/types/packages/components/key-value/src/key-value.vue.d.ts +45 -19
- package/types/packages/utils/data.d.ts +2 -0
- package/types/packages/utils/index.d.ts +2 -1
- package/types/packages/utils/props/runtime.d.ts +2 -2
- package/es/packages/utils/deepUnref.mjs.map +0 -1
- package/lib/packages/utils/deepUnref.js.map +0 -1
- /package/es/utils/{deepUnref.d.ts → deep-unref.d.ts} +0 -0
- /package/lib/utils/{deepUnref.d.ts → deep-unref.d.ts} +0 -0
- /package/types/packages/utils/{deepUnref.d.ts → deep-unref.d.ts} +0 -0
package/index.full.mjs
CHANGED
|
@@ -1959,6 +1959,36 @@ const deepUnref = (obj) => {
|
|
|
1959
1959
|
return currentObj;
|
|
1960
1960
|
};
|
|
1961
1961
|
|
|
1962
|
+
function deepCompare(obj1, obj2) {
|
|
1963
|
+
const stack = [[obj1, obj2]];
|
|
1964
|
+
while (stack.length) {
|
|
1965
|
+
const [a, b] = stack.pop();
|
|
1966
|
+
if (a === b)
|
|
1967
|
+
continue;
|
|
1968
|
+
if (typeof a !== "object" || a === null || typeof b !== "object" || b === null) {
|
|
1969
|
+
return false;
|
|
1970
|
+
}
|
|
1971
|
+
const keysA = Object.keys(a);
|
|
1972
|
+
const keysB = Object.keys(b);
|
|
1973
|
+
if (keysA.length !== keysB.length) {
|
|
1974
|
+
return false;
|
|
1975
|
+
}
|
|
1976
|
+
if (keysA.length === 0 && keysB.length === 0) {
|
|
1977
|
+
continue;
|
|
1978
|
+
}
|
|
1979
|
+
for (const key of keysA) {
|
|
1980
|
+
if (!keysB.includes(key)) {
|
|
1981
|
+
return false;
|
|
1982
|
+
}
|
|
1983
|
+
stack.push([a[key], b[key]]);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
return true;
|
|
1987
|
+
}
|
|
1988
|
+
const hasValue = (value) => {
|
|
1989
|
+
return Array.isArray(value) ? value.length > 0 : !isNull(value) && !isUndefined$3(value) && value !== "";
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1962
1992
|
const ALL_VALUE = "_ALL";
|
|
1963
1993
|
const initValue = (columns, values) => {
|
|
1964
1994
|
const copyValues = {};
|
|
@@ -2024,9 +2054,6 @@ const findLabelByValue = (tree, value) => {
|
|
|
2024
2054
|
}
|
|
2025
2055
|
return _findLabel(tree).join(",");
|
|
2026
2056
|
};
|
|
2027
|
-
const hasValue = (value) => {
|
|
2028
|
-
return Array.isArray(value) ? value.length > 0 : !isNull(value) && !isUndefined$3(value) && value !== "";
|
|
2029
|
-
};
|
|
2030
2057
|
const advancedFilteringProps = buildProps({
|
|
2031
2058
|
filterColumns: {
|
|
2032
2059
|
type: definePropType(Array),
|
|
@@ -63353,7 +63380,9 @@ var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
63353
63380
|
const bem = createNamespace("form");
|
|
63354
63381
|
const formData = reactive(props.formData);
|
|
63355
63382
|
const formRef = ref();
|
|
63356
|
-
const formComponents = ref(
|
|
63383
|
+
const formComponents = ref(
|
|
63384
|
+
[]
|
|
63385
|
+
);
|
|
63357
63386
|
const computedFormColumns = computed(() => {
|
|
63358
63387
|
const formColumns = deepUnref(props.formColumns);
|
|
63359
63388
|
return formColumns.map((e) => {
|
|
@@ -70310,7 +70339,7 @@ const getKeyValueItem = () => ({
|
|
|
70310
70339
|
const keyValueProps = buildProps({
|
|
70311
70340
|
value: {
|
|
70312
70341
|
type: definePropType(Array),
|
|
70313
|
-
default: () => [{ key:
|
|
70342
|
+
default: () => [{ key: null, value: null }]
|
|
70314
70343
|
},
|
|
70315
70344
|
loading: {
|
|
70316
70345
|
type: Boolean,
|
|
@@ -70415,6 +70444,15 @@ const keyValueItemProps = buildProps({
|
|
|
70415
70444
|
disabled: {
|
|
70416
70445
|
type: Boolean
|
|
70417
70446
|
},
|
|
70447
|
+
values: {
|
|
70448
|
+
type: definePropType(Array),
|
|
70449
|
+
default: () => [
|
|
70450
|
+
{
|
|
70451
|
+
key: null,
|
|
70452
|
+
value: null
|
|
70453
|
+
}
|
|
70454
|
+
]
|
|
70455
|
+
},
|
|
70418
70456
|
disabledValue: {
|
|
70419
70457
|
type: definePropType(Array)
|
|
70420
70458
|
},
|
|
@@ -70451,9 +70489,9 @@ const keyValueItemProps = buildProps({
|
|
|
70451
70489
|
type: Object,
|
|
70452
70490
|
default: () => ({})
|
|
70453
70491
|
},
|
|
70454
|
-
|
|
70492
|
+
keepLast: {
|
|
70455
70493
|
type: Boolean,
|
|
70456
|
-
default:
|
|
70494
|
+
default: false
|
|
70457
70495
|
}
|
|
70458
70496
|
});
|
|
70459
70497
|
const keyValueItemEmits = {
|
|
@@ -70493,12 +70531,12 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
70493
70531
|
const getValueDisabled = computed(() => {
|
|
70494
70532
|
return props.disabledValue?.includes(props.idx) || props.disabled || getValueType.value?.disabled;
|
|
70495
70533
|
});
|
|
70496
|
-
const getDeleteDisabled = computed(() => {
|
|
70497
|
-
return props.disabledDelete?.includes(props.idx) || props.disabled;
|
|
70498
|
-
});
|
|
70499
70534
|
const hasValue = computed(() => {
|
|
70500
70535
|
return innerValue.value["key"] || innerValue.value["key"] === 0 || innerValue.value["value"];
|
|
70501
70536
|
});
|
|
70537
|
+
const getDeleteDisabled = computed(() => {
|
|
70538
|
+
return props.disabledDelete?.includes(props.idx) || props.disabled || props.values.length === 1 && !hasValue.value;
|
|
70539
|
+
});
|
|
70502
70540
|
const handleDelete = () => {
|
|
70503
70541
|
emits("delete");
|
|
70504
70542
|
};
|
|
@@ -70674,57 +70712,21 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
70674
70712
|
2
|
|
70675
70713
|
/* CLASS */
|
|
70676
70714
|
),
|
|
70677
|
-
|
|
70678
|
-
|
|
70679
|
-
|
|
70680
|
-
|
|
70681
|
-
|
|
70682
|
-
|
|
70683
|
-
|
|
70684
|
-
|
|
70685
|
-
|
|
70686
|
-
|
|
70687
|
-
|
|
70688
|
-
|
|
70689
|
-
|
|
70690
|
-
onConfirm: handleDelete
|
|
70691
|
-
}, {
|
|
70692
|
-
default: withCtx(() => [
|
|
70693
|
-
createElementVNode(
|
|
70694
|
-
"div",
|
|
70695
|
-
{
|
|
70696
|
-
class: normalizeClass(unref(bem).m("delete")),
|
|
70697
|
-
style: normalizeStyle({
|
|
70698
|
-
"margin-top": !!unref(attrs)["key-label"] || !!unref(attrs)["value-label"] ? "26px" : "0px"
|
|
70699
|
-
})
|
|
70700
|
-
},
|
|
70701
|
-
[
|
|
70702
|
-
createVNode(_component_ll_button, {
|
|
70703
|
-
type: "link",
|
|
70704
|
-
disabled: getDeleteDisabled.value
|
|
70705
|
-
}, {
|
|
70706
|
-
default: withCtx(() => [
|
|
70707
|
-
renderSlot(_ctx.$slots, "delete-icon", {}, () => [
|
|
70708
|
-
createVNode(_component_ll_icon, {
|
|
70709
|
-
"icon-name": "icon-remove",
|
|
70710
|
-
class: "delete"
|
|
70711
|
-
})
|
|
70712
|
-
])
|
|
70713
|
-
]),
|
|
70714
|
-
_: 3
|
|
70715
|
-
/* FORWARDED */
|
|
70716
|
-
}, 8, ["disabled"])
|
|
70717
|
-
],
|
|
70718
|
-
6
|
|
70719
|
-
/* CLASS, STYLE */
|
|
70720
|
-
)
|
|
70721
|
-
]),
|
|
70722
|
-
_: 3
|
|
70723
|
-
/* FORWARDED */
|
|
70724
|
-
}, 8, ["overlay-class-name", "get-popup-container"])) : (openBlock(), createElementBlock(
|
|
70715
|
+
hasValue.value ? (openBlock(), createBlock(_component_a_popconfirm, {
|
|
70716
|
+
key: 2,
|
|
70717
|
+
title: "\u786E\u5B9A\u8981\u79FB\u9664\u5417?",
|
|
70718
|
+
"ok-text": "\u786E\u8BA4",
|
|
70719
|
+
"cancel-text": "\u53D6\u6D88",
|
|
70720
|
+
placement: "topRight",
|
|
70721
|
+
"overlay-class-name": unref(bem).m("popconfirm"),
|
|
70722
|
+
"get-popup-container": (trigger) => trigger.parentNode,
|
|
70723
|
+
"destroy-tooltip-on-hide": "",
|
|
70724
|
+
onConfirm: handleDelete
|
|
70725
|
+
}, {
|
|
70726
|
+
default: withCtx(() => [
|
|
70727
|
+
createElementVNode(
|
|
70725
70728
|
"div",
|
|
70726
70729
|
{
|
|
70727
|
-
key: 1,
|
|
70728
70730
|
class: normalizeClass(unref(bem).m("delete")),
|
|
70729
70731
|
style: normalizeStyle({
|
|
70730
70732
|
"margin-top": !!unref(attrs)["key-label"] || !!unref(attrs)["value-label"] ? "26px" : "0px"
|
|
@@ -70733,8 +70735,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
70733
70735
|
[
|
|
70734
70736
|
createVNode(_component_ll_button, {
|
|
70735
70737
|
type: "link",
|
|
70736
|
-
disabled: getDeleteDisabled.value
|
|
70737
|
-
onClick: handleDelete
|
|
70738
|
+
disabled: getDeleteDisabled.value
|
|
70738
70739
|
}, {
|
|
70739
70740
|
default: withCtx(() => [
|
|
70740
70741
|
renderSlot(_ctx.$slots, "delete-icon", {}, () => [
|
|
@@ -70750,11 +70751,40 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
70750
70751
|
],
|
|
70751
70752
|
6
|
|
70752
70753
|
/* CLASS, STYLE */
|
|
70753
|
-
)
|
|
70754
|
+
)
|
|
70755
|
+
]),
|
|
70756
|
+
_: 3
|
|
70757
|
+
/* FORWARDED */
|
|
70758
|
+
}, 8, ["overlay-class-name", "get-popup-container"])) : (openBlock(), createElementBlock(
|
|
70759
|
+
"div",
|
|
70760
|
+
{
|
|
70761
|
+
key: 3,
|
|
70762
|
+
class: normalizeClass(unref(bem).m("delete")),
|
|
70763
|
+
style: normalizeStyle({
|
|
70764
|
+
"margin-top": !!unref(attrs)["key-label"] || !!unref(attrs)["value-label"] ? "26px" : "0px"
|
|
70765
|
+
})
|
|
70766
|
+
},
|
|
70767
|
+
[
|
|
70768
|
+
createVNode(_component_ll_button, {
|
|
70769
|
+
type: "link",
|
|
70770
|
+
disabled: getDeleteDisabled.value,
|
|
70771
|
+
onClick: handleDelete
|
|
70772
|
+
}, {
|
|
70773
|
+
default: withCtx(() => [
|
|
70774
|
+
renderSlot(_ctx.$slots, "delete-icon", {}, () => [
|
|
70775
|
+
createVNode(_component_ll_icon, {
|
|
70776
|
+
"icon-name": "icon-remove",
|
|
70777
|
+
class: "delete"
|
|
70778
|
+
})
|
|
70779
|
+
])
|
|
70780
|
+
]),
|
|
70781
|
+
_: 3
|
|
70782
|
+
/* FORWARDED */
|
|
70783
|
+
}, 8, ["disabled"])
|
|
70754
70784
|
],
|
|
70755
|
-
|
|
70756
|
-
/*
|
|
70757
|
-
))
|
|
70785
|
+
6
|
|
70786
|
+
/* CLASS, STYLE */
|
|
70787
|
+
))
|
|
70758
70788
|
],
|
|
70759
70789
|
2
|
|
70760
70790
|
/* CLASS */
|
|
@@ -70779,7 +70809,9 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
70779
70809
|
const emits = __emit;
|
|
70780
70810
|
const bem = createNamespace("key-value");
|
|
70781
70811
|
const formItemContext = Form$1.useInjectFormItemContext();
|
|
70782
|
-
const innerValue = ref(
|
|
70812
|
+
const innerValue = ref(
|
|
70813
|
+
props.value.length ? props.value : [{ key: null, value: null }]
|
|
70814
|
+
);
|
|
70783
70815
|
const keyValueItems = ref([]);
|
|
70784
70816
|
const keyValueTypeDict = computed(() => {
|
|
70785
70817
|
const obj = {};
|
|
@@ -70816,32 +70848,53 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
70816
70848
|
item: innerValue.value[innerValue.value.length - 1],
|
|
70817
70849
|
value: innerValue.value
|
|
70818
70850
|
});
|
|
70819
|
-
handleChange();
|
|
70820
70851
|
};
|
|
70821
70852
|
const handleDelete = (idx) => {
|
|
70822
|
-
innerValue.value.
|
|
70823
|
-
|
|
70824
|
-
|
|
70825
|
-
|
|
70826
|
-
|
|
70827
|
-
try {
|
|
70828
|
-
formItemContext.onFieldChange();
|
|
70829
|
-
emits("change", innerValue.value);
|
|
70830
|
-
emits("update:value", innerValue.value);
|
|
70831
|
-
} catch (error) {
|
|
70832
|
-
console.error(error);
|
|
70853
|
+
if (innerValue.value.length === 1) {
|
|
70854
|
+
innerValue.value = [{ key: null, value: null }];
|
|
70855
|
+
} else {
|
|
70856
|
+
innerValue.value.splice(idx, 1);
|
|
70857
|
+
emits("delete", idx);
|
|
70833
70858
|
}
|
|
70834
70859
|
};
|
|
70860
|
+
const getValue = (val) => {
|
|
70861
|
+
return val.filter((e) => hasValue(e.key) || hasValue(e.value));
|
|
70862
|
+
};
|
|
70835
70863
|
watch(
|
|
70836
70864
|
() => props.value,
|
|
70837
70865
|
(n) => {
|
|
70838
|
-
|
|
70866
|
+
const copyInnerValue = getValue(innerValue.value);
|
|
70867
|
+
const copyPropsValue = getValue(n);
|
|
70868
|
+
if (deepCompare(copyInnerValue, copyPropsValue))
|
|
70869
|
+
return;
|
|
70870
|
+
innerValue.value = [
|
|
70871
|
+
...n && n.length > 0 ? n : props.keepLast ? [{ key: null, value: null }] : n
|
|
70872
|
+
];
|
|
70839
70873
|
},
|
|
70840
70874
|
{
|
|
70841
70875
|
immediate: true,
|
|
70842
70876
|
deep: true
|
|
70843
70877
|
}
|
|
70844
70878
|
);
|
|
70879
|
+
watch(
|
|
70880
|
+
() => innerValue.value,
|
|
70881
|
+
(val) => {
|
|
70882
|
+
const copyInnerValue = getValue(val);
|
|
70883
|
+
const copyPropsValue = getValue(props.value);
|
|
70884
|
+
if (deepCompare(copyInnerValue, copyPropsValue))
|
|
70885
|
+
return;
|
|
70886
|
+
try {
|
|
70887
|
+
formItemContext.onFieldChange();
|
|
70888
|
+
emits("change", copyInnerValue);
|
|
70889
|
+
emits("update:value", copyInnerValue);
|
|
70890
|
+
} catch (error) {
|
|
70891
|
+
console.error(error);
|
|
70892
|
+
}
|
|
70893
|
+
},
|
|
70894
|
+
{
|
|
70895
|
+
deep: true
|
|
70896
|
+
}
|
|
70897
|
+
);
|
|
70845
70898
|
__expose({
|
|
70846
70899
|
validate,
|
|
70847
70900
|
resetFields,
|
|
@@ -70886,13 +70939,13 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
70886
70939
|
"key-type": props.keyType,
|
|
70887
70940
|
"key-types": props.keyTypes,
|
|
70888
70941
|
"value-type": props.valueType,
|
|
70942
|
+
values: innerValue.value,
|
|
70889
70943
|
disabled: props.disabled,
|
|
70890
70944
|
"disabled-value": props.disabledValue,
|
|
70891
70945
|
"disabled-key": props.disabledKey,
|
|
70892
70946
|
"disabled-delete": props.disabledDelete,
|
|
70893
|
-
"
|
|
70894
|
-
onDelete: ($event) => handleDelete(idx)
|
|
70895
|
-
onChange: handleChange
|
|
70947
|
+
"keep-last": props.keepLast,
|
|
70948
|
+
onDelete: ($event) => handleDelete(idx)
|
|
70896
70949
|
}, createSlots({
|
|
70897
70950
|
_: 2
|
|
70898
70951
|
/* DYNAMIC */
|
|
@@ -70905,7 +70958,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
70905
70958
|
])
|
|
70906
70959
|
};
|
|
70907
70960
|
})
|
|
70908
|
-
]), 1032, ["value", "onUpdate:value", "idx", "key-label", "value-label", "key-value-type-dict", "key-value-type", "key-type", "key-types", "value-type", "disabled", "disabled-value", "disabled-key", "disabled-delete", "
|
|
70961
|
+
]), 1032, ["value", "onUpdate:value", "idx", "key-label", "value-label", "key-value-type-dict", "key-value-type", "key-type", "key-types", "value-type", "values", "disabled", "disabled-value", "disabled-key", "disabled-delete", "keep-last", "onDelete"]);
|
|
70909
70962
|
}),
|
|
70910
70963
|
128
|
|
70911
70964
|
/* KEYED_FRAGMENT */
|
|
@@ -85587,4 +85640,4 @@ var installer = makeInstaller([...Components]);
|
|
|
85587
85640
|
|
|
85588
85641
|
const install = installer.install;
|
|
85589
85642
|
|
|
85590
|
-
export { ALL_VALUE, AVATAR_IMG, Color, DEFAULT_METHOD, DEFAULT_TYPE, FALLBACK_IMAGE, FALL_BACK_IMG, HEADER_SRARCH_HEIGHT, ILlUploadDragProps, ImenuSwitchType, LEFT_SELECT_MIN_WIDTH, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlApiComponent, LlAvatar, LlBreadcrumbCard, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlColorPicker, LlConfigProvider, LlCropperImage, LlCropperModal, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlDropdownButtonSimple, LlEasyCron, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlImage, LlImagePreviewGroup, LlInput, LlInputNumber, LlKeyValue, LlMarkdownEditor, LlMarkdownViewer, LlModal, LlNewDrawer, LlNewModal, LlNumberRange, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlRichTextEditor, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, LlUploadImage, LlUriInput, LlWatermark, OPTIONS_KEY, OperateTreeEmits, PAGINATION_HEIGHT, THROTTLE_TIME, TypeEnum, addUnit, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, alphaSliderProps, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyEmits, bodyList, bodyProps, breadcrumbCardEmits, breadcrumbCardProps, buildProp, buildProps, buttonProps, calcRPN, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, colorFormatOptions, colorPickerEmits, colorPickerProps, contentTypeOptions, createNamespace, cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, customOverlay, dataURLtoBlob, dateUtil, deepUnref, installer as default, defaultButtonProps, defaultCropperOptions, defaultEditorConfig, defaultOptions, defaultToolbarConfig, definePropType, descriptionsItemProps, descriptionsProps, displayedRgb, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownButtonSimpleEmits, dropdownButtonSimpleProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, epPropKey, fileToBase64, filterAllValue, findLabelByValue, footerShadowPlacement, formColumns, formComponentEmits, formComponentProps, formEmits, formOptions, formProps, formatFileSize, formatToDate, formatToDateTime, formdataTableColumns, getAmountChinese, getDateTimeUnit, getHttpMethodUri, getKeyValueItem, getType, hasValue, headersTableColumns, httpUriOptions, hueSliderProps, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, imageProps, initValue, inputNumberEmits, inputNumberProps, inputProps, install, isArray, isBoolean, isDate$1 as isDate, isElement, isEmpty, isEpProp, isFunction$1 as isFunction, isNumber$2 as isNumber, isObject$1 as isObject, isPromise, isPropAbsent, isString$1 as isString, isStringNumber, isSymbol, isUndefined$2 as isUndefined, isValidComponentSize, isWindow, jsonTableColumns, jsonXmlEmits, jsonXmlOptions, jsonXmlProps, jsonXmlTableEmits, jsonXmlTableProps, jsonXmlTableRowEmits, jsonXmlTableRowProps, jsonXmlTypeOptions, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, llMarkdownEditorEmits, llMarkdownEditorProps, llMarkdownViewerProps, mainTableEmits, mainTableProps, menuSwitchRadioList, mergeNumberOfExps, methods$1 as methods, modalEmits, modalProps, modalType, mutable, newDrawerEmits, newDrawerProps, newModalEmits, newModalProps, numberRangeEmits, numberRangeProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, paramsOptions, paramsTableColumns, paramsTableEmits, paramsTableProps, paramsTableRowProps, parseColors, placement, preDefineProps, removeQueryString, requestList, richTextEditorEmits, richTextEditorProps, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, selectProps, svPanelProps, tableContentType, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, thousandsFormat, toRPN, tooltipProps, treeDataFormat, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useOptions, useScroll, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup, withInstall };
|
|
85643
|
+
export { ALL_VALUE, AVATAR_IMG, Color, DEFAULT_METHOD, DEFAULT_TYPE, FALLBACK_IMAGE, FALL_BACK_IMG, HEADER_SRARCH_HEIGHT, ILlUploadDragProps, ImenuSwitchType, LEFT_SELECT_MIN_WIDTH, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlApiComponent, LlAvatar, LlBreadcrumbCard, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlColorPicker, LlConfigProvider, LlCropperImage, LlCropperModal, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlDropdownButtonSimple, LlEasyCron, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlImage, LlImagePreviewGroup, LlInput, LlInputNumber, LlKeyValue, LlMarkdownEditor, LlMarkdownViewer, LlModal, LlNewDrawer, LlNewModal, LlNumberRange, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlRichTextEditor, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, LlUploadImage, LlUriInput, LlWatermark, OPTIONS_KEY, OperateTreeEmits, PAGINATION_HEIGHT, THROTTLE_TIME, TypeEnum, addUnit, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, alphaSliderProps, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyEmits, bodyList, bodyProps, breadcrumbCardEmits, breadcrumbCardProps, buildProp, buildProps, buttonProps, calcRPN, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, colorFormatOptions, colorPickerEmits, colorPickerProps, contentTypeOptions, createNamespace, cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, customOverlay, dataURLtoBlob, dateUtil, deepCompare, deepUnref, installer as default, defaultButtonProps, defaultCropperOptions, defaultEditorConfig, defaultOptions, defaultToolbarConfig, definePropType, descriptionsItemProps, descriptionsProps, displayedRgb, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownButtonSimpleEmits, dropdownButtonSimpleProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, epPropKey, fileToBase64, filterAllValue, findLabelByValue, footerShadowPlacement, formColumns, formComponentEmits, formComponentProps, formEmits, formOptions, formProps, formatFileSize, formatToDate, formatToDateTime, formdataTableColumns, getAmountChinese, getDateTimeUnit, getHttpMethodUri, getKeyValueItem, getType, hasValue, headersTableColumns, httpUriOptions, hueSliderProps, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, imageProps, initValue, inputNumberEmits, inputNumberProps, inputProps, install, isArray, isBoolean, isDate$1 as isDate, isElement, isEmpty, isEpProp, isFunction$1 as isFunction, isNumber$2 as isNumber, isObject$1 as isObject, isPromise, isPropAbsent, isString$1 as isString, isStringNumber, isSymbol, isUndefined$2 as isUndefined, isValidComponentSize, isWindow, jsonTableColumns, jsonXmlEmits, jsonXmlOptions, jsonXmlProps, jsonXmlTableEmits, jsonXmlTableProps, jsonXmlTableRowEmits, jsonXmlTableRowProps, jsonXmlTypeOptions, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, llMarkdownEditorEmits, llMarkdownEditorProps, llMarkdownViewerProps, mainTableEmits, mainTableProps, menuSwitchRadioList, mergeNumberOfExps, methods$1 as methods, modalEmits, modalProps, modalType, mutable, newDrawerEmits, newDrawerProps, newModalEmits, newModalProps, numberRangeEmits, numberRangeProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, paramsOptions, paramsTableColumns, paramsTableEmits, paramsTableProps, paramsTableRowProps, parseColors, placement, preDefineProps, removeQueryString, requestList, richTextEditorEmits, richTextEditorProps, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, selectProps, svPanelProps, tableContentType, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, thousandsFormat, toRPN, tooltipProps, treeDataFormat, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useOptions, useScroll, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup, withInstall };
|
|
@@ -8024,9 +8024,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
8024
8024
|
value: string | string[];
|
|
8025
8025
|
showValue: string | string[];
|
|
8026
8026
|
}[]>;
|
|
8027
|
-
handleClean: (tag?: import("./src/advanced-filtering").
|
|
8027
|
+
handleClean: (tag?: import("./src/advanced-filtering").IAdvancedFilteringTag | null) => void;
|
|
8028
8028
|
setData: (obj: Record<string, any>) => void;
|
|
8029
|
-
getTags: (filterColumns: any[], values: Record<string, any>) => import("./src/advanced-filtering").
|
|
8029
|
+
getTags: (filterColumns: any[], values: Record<string, any>) => import("./src/advanced-filtering").IAdvancedFilteringTag[];
|
|
8030
8030
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8031
8031
|
change: (value: Record<string, any>) => boolean;
|
|
8032
8032
|
'update:value': (value: Record<string, any>) => boolean;
|
|
@@ -16734,9 +16734,9 @@ export declare const LlAdvancedFilteringTags: import("ll-plus/es/utils").SFCWith
|
|
|
16734
16734
|
value: string | string[];
|
|
16735
16735
|
showValue: string | string[];
|
|
16736
16736
|
}[]>;
|
|
16737
|
-
handleClean: (tag?: import("./src/advanced-filtering").
|
|
16737
|
+
handleClean: (tag?: import("./src/advanced-filtering").IAdvancedFilteringTag | null) => void;
|
|
16738
16738
|
setData: (obj: Record<string, any>) => void;
|
|
16739
|
-
getTags: (filterColumns: any[], values: Record<string, any>) => import("./src/advanced-filtering").
|
|
16739
|
+
getTags: (filterColumns: any[], values: Record<string, any>) => import("./src/advanced-filtering").IAdvancedFilteringTag[];
|
|
16740
16740
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16741
16741
|
change: (value: Record<string, any>) => boolean;
|
|
16742
16742
|
'update:value': (value: Record<string, any>) => boolean;
|
|
@@ -3,7 +3,7 @@ import type { FormColumn } from 'll-plus/es/components';
|
|
|
3
3
|
import type advancedFiltering from './advanced-filtering.vue';
|
|
4
4
|
import type advancedFilteringParams from './components/advanced-filtering-params.vue';
|
|
5
5
|
import type advancedFilteringTags from './components/advanced-filtering-tags.vue';
|
|
6
|
-
export interface
|
|
6
|
+
export interface IAdvancedFilteringTag {
|
|
7
7
|
label: string;
|
|
8
8
|
key: string;
|
|
9
9
|
value: string | string[];
|
|
@@ -20,7 +20,6 @@ export declare const treeDataFormat: (arr: any[] | undefined, fieldNames: {
|
|
|
20
20
|
[key: string]: string;
|
|
21
21
|
}) => any[];
|
|
22
22
|
export declare const findLabelByValue: (tree: FilterColumn['options'], value: any) => string;
|
|
23
|
-
export declare const hasValue: (value: any) => boolean;
|
|
24
23
|
export declare const advancedFilteringProps: {
|
|
25
24
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => FilterColumn[]) | (() => FilterColumn[]) | ((new (...args: any[]) => FilterColumn[]) | (() => FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
26
25
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
@@ -8021,9 +8021,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8021
8021
|
value: string | string[];
|
|
8022
8022
|
showValue: string | string[];
|
|
8023
8023
|
}[]>;
|
|
8024
|
-
handleClean: (tag?: import("ll-plus/es/components").
|
|
8024
|
+
handleClean: (tag?: import("ll-plus/es/components").IAdvancedFilteringTag | null) => void;
|
|
8025
8025
|
setData: (obj: Record<string, any>) => void;
|
|
8026
|
-
getTags: (filterColumns: any[], values: Record<string, any>) => import("ll-plus/es/components").
|
|
8026
|
+
getTags: (filterColumns: any[], values: Record<string, any>) => import("ll-plus/es/components").IAdvancedFilteringTag[];
|
|
8027
8027
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8028
8028
|
change: (value: Record<string, any>) => boolean;
|
|
8029
8029
|
'update:value': (value: Record<string, any>) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IAdvancedFilteringTag } from '../advanced-filtering';
|
|
2
2
|
import type { FormColumn } from 'll-plus/es/components';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").FilterColumn[]) | (() => import("ll-plus/es/components").FilterColumn[]) | ((new (...args: any[]) => import("ll-plus/es/components").FilterColumn[]) | (() => import("ll-plus/es/components").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -1150,9 +1150,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1150
1150
|
value: string | string[];
|
|
1151
1151
|
showValue: string | string[];
|
|
1152
1152
|
}[]>;
|
|
1153
|
-
handleClean: (tag?:
|
|
1153
|
+
handleClean: (tag?: IAdvancedFilteringTag | null) => void;
|
|
1154
1154
|
setData: (obj: Record<string, any>) => void;
|
|
1155
|
-
getTags: (filterColumns: FormColumn[], values: Record<string, any>) =>
|
|
1155
|
+
getTags: (filterColumns: FormColumn[], values: Record<string, any>) => IAdvancedFilteringTag[];
|
|
1156
1156
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1157
1157
|
change: (value: Record<string, any>) => boolean;
|
|
1158
1158
|
'update:value': (value: Record<string, any>) => boolean;
|