ll-plus 2.3.19 → 2.3.20
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 +36 -34
- package/es/components/advanced-filtering/index.mjs +1 -1
- package/es/components/advanced-filtering/src/advanced-filtering.d.ts +15 -2
- package/es/components/advanced-filtering/src/advanced-filtering.mjs +60 -2
- package/es/components/advanced-filtering/src/advanced-filtering.mjs.map +1 -1
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +20 -19
- package/es/components/advanced-filtering/src/advanced-filtering.vue2.mjs +4 -3
- package/es/components/advanced-filtering/src/advanced-filtering.vue2.mjs.map +1 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +11 -6
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs +64 -11
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs.map +1 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +5 -9
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs +33 -61
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs.map +1 -1
- package/es/components/api-component/index.d.ts +8 -8
- package/es/components/api-component/src/api-component.vue.d.ts +8 -8
- package/es/components/api-component/src/components/body-component.vue.d.ts +4 -4
- package/es/components/api-component/src/components/params-table-row.vue.d.ts +2 -2
- package/es/components/api-component/src/components/params-table.vue.d.ts +4 -4
- package/es/components/code-editor/index.d.ts +2 -2
- package/es/components/code-editor/src/code-editor.vue.d.ts +2 -2
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/es/components/easy-cron/index.d.ts +5 -5
- package/es/components/easy-cron/src/easy-cron.vue.d.ts +5 -5
- package/es/components/form/src/form.vue2.mjs +12 -0
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input/index.d.ts +31 -31
- package/es/components/input/src/input.vue.d.ts +31 -31
- package/es/components/number-range/index.d.ts +13 -13
- package/es/components/number-range/src/number-range.d.ts +4 -4
- package/es/components/number-range/src/number-range.mjs +1 -1
- package/es/components/number-range/src/number-range.mjs.map +1 -1
- package/es/components/number-range/src/number-range.vue.d.ts +13 -14
- package/es/components/number-range/src/number-range.vue2.mjs +14 -7
- package/es/components/number-range/src/number-range.vue2.mjs.map +1 -1
- package/es/components/select-group/index.d.ts +1 -1
- package/es/components/select-group/src/select-group.vue.d.ts +1 -1
- package/es/components/textarea/index.d.ts +5 -5
- package/es/components/textarea/src/textarea.vue.d.ts +5 -5
- package/es/index.mjs +1 -1
- package/index.full.js +196 -83
- package/index.full.min.js +17 -17
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +17 -17
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +193 -85
- package/lib/components/advanced-filtering/index.d.ts +36 -34
- package/lib/components/advanced-filtering/index.js +5 -0
- package/lib/components/advanced-filtering/index.js.map +1 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.d.ts +15 -2
- package/lib/components/advanced-filtering/src/advanced-filtering.js +64 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.js.map +1 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +20 -19
- package/lib/components/advanced-filtering/src/advanced-filtering.vue2.js +3 -2
- package/lib/components/advanced-filtering/src/advanced-filtering.vue2.js.map +1 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +11 -6
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js +62 -9
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js.map +1 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +5 -9
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js +33 -61
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js.map +1 -1
- package/lib/components/api-component/index.d.ts +8 -8
- package/lib/components/api-component/src/api-component.vue.d.ts +8 -8
- package/lib/components/api-component/src/components/body-component.vue.d.ts +4 -4
- package/lib/components/api-component/src/components/params-table-row.vue.d.ts +2 -2
- package/lib/components/api-component/src/components/params-table.vue.d.ts +4 -4
- package/lib/components/code-editor/index.d.ts +2 -2
- package/lib/components/code-editor/src/code-editor.vue.d.ts +2 -2
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/lib/components/easy-cron/index.d.ts +5 -5
- package/lib/components/easy-cron/src/easy-cron.vue.d.ts +5 -5
- package/lib/components/form/src/form.vue2.js +12 -0
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +31 -31
- package/lib/components/input/src/input.vue.d.ts +31 -31
- package/lib/components/number-range/index.d.ts +13 -13
- package/lib/components/number-range/src/number-range.d.ts +4 -4
- package/lib/components/number-range/src/number-range.js +1 -1
- package/lib/components/number-range/src/number-range.js.map +1 -1
- package/lib/components/number-range/src/number-range.vue.d.ts +13 -14
- package/lib/components/number-range/src/number-range.vue2.js +14 -7
- package/lib/components/number-range/src/number-range.vue2.js.map +1 -1
- package/lib/components/select-group/index.d.ts +1 -1
- package/lib/components/select-group/src/select-group.vue.d.ts +1 -1
- package/lib/components/textarea/index.d.ts +5 -5
- package/lib/components/textarea/src/textarea.vue.d.ts +5 -5
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/operate-icon.css +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +36 -34
- package/types/packages/components/advanced-filtering/src/advanced-filtering.d.ts +15 -2
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +20 -19
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +11 -6
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +5 -9
- package/types/packages/components/api-component/index.d.ts +8 -8
- package/types/packages/components/api-component/src/api-component.vue.d.ts +8 -8
- package/types/packages/components/api-component/src/components/body-component.vue.d.ts +4 -4
- package/types/packages/components/api-component/src/components/params-table-row.vue.d.ts +2 -2
- package/types/packages/components/api-component/src/components/params-table.vue.d.ts +4 -4
- package/types/packages/components/code-editor/index.d.ts +2 -2
- package/types/packages/components/code-editor/src/code-editor.vue.d.ts +2 -2
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/types/packages/components/easy-cron/index.d.ts +5 -5
- package/types/packages/components/easy-cron/src/easy-cron.vue.d.ts +5 -5
- package/types/packages/components/input/index.d.ts +31 -31
- package/types/packages/components/input/src/input.vue.d.ts +31 -31
- package/types/packages/components/number-range/index.d.ts +13 -13
- package/types/packages/components/number-range/src/number-range.d.ts +4 -4
- package/types/packages/components/number-range/src/number-range.vue.d.ts +13 -14
- package/types/packages/components/select-group/index.d.ts +1 -1
- package/types/packages/components/select-group/src/select-group.vue.d.ts +1 -1
- package/types/packages/components/textarea/index.d.ts +5 -5
- package/types/packages/components/textarea/src/textarea.vue.d.ts +5 -5
|
@@ -2,7 +2,7 @@ import AdvancedFiltering from './src/advanced-filtering.vue';
|
|
|
2
2
|
import AdvancedFilteringParams from './src/components/advanced-filtering-params.vue';
|
|
3
3
|
import AdvancedFilteringTags from './src/components/advanced-filtering-tags.vue';
|
|
4
4
|
export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
5
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
5
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
6
6
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
7
7
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
8
8
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -904,7 +904,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
904
904
|
}, boolean>;
|
|
905
905
|
}, {
|
|
906
906
|
props: import("@vue/shared").LooseRequired<{
|
|
907
|
-
readonly filterColumns:
|
|
907
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
908
908
|
readonly value: Record<string, any>;
|
|
909
909
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
910
910
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -1590,7 +1590,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
1590
1590
|
};
|
|
1591
1591
|
}>>, {}, {}>>;
|
|
1592
1592
|
AdvancedFilteringParams: import("vue").DefineComponent<{
|
|
1593
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
1593
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
1594
1594
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
1595
1595
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
1596
1596
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2490,7 +2490,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
2490
2490
|
readonly showFooter: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
2491
2491
|
}, {
|
|
2492
2492
|
props: import("@vue/shared").LooseRequired<{
|
|
2493
|
-
readonly filterColumns:
|
|
2493
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
2494
2494
|
readonly value: Record<string, any>;
|
|
2495
2495
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
2496
2496
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2717,11 +2717,12 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
2717
2717
|
};
|
|
2718
2718
|
}>>;
|
|
2719
2719
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2720
|
+
readonly "onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
2720
2721
|
readonly onClose?: (() => any) | undefined;
|
|
2721
2722
|
readonly onConfirm?: (() => any) | undefined;
|
|
2722
2723
|
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
2723
2724
|
} & {}>;
|
|
2724
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
2725
|
+
emits: ((event: "update:value", value: Record<string, any>) => void) & ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
2725
2726
|
bem: {
|
|
2726
2727
|
b: (blockSuffix?: string) => string;
|
|
2727
2728
|
e: (element?: string) => string;
|
|
@@ -2732,10 +2733,12 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
2732
2733
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
2733
2734
|
is: (name?: string) => string;
|
|
2734
2735
|
};
|
|
2735
|
-
|
|
2736
|
+
innerValue: import("vue").Ref<{}>;
|
|
2737
|
+
computeFormColumns: import("vue").ComputedRef<import("./src/advanced-filtering").FilterColumn[]>;
|
|
2736
2738
|
handleClose: () => void;
|
|
2737
2739
|
handleAdvancedFilterConfirm: () => void;
|
|
2738
2740
|
handleChange: (val: Record<string, any>) => void;
|
|
2741
|
+
setData: (val: Record<string, any>) => void;
|
|
2739
2742
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2740
2743
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
2741
2744
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -5531,8 +5534,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
5531
5534
|
close: () => boolean;
|
|
5532
5535
|
confirm: () => boolean;
|
|
5533
5536
|
changeValue: (value: Record<string, any>) => boolean;
|
|
5537
|
+
'update:value': (value: Record<string, any>) => boolean;
|
|
5534
5538
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5535
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
5539
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
5536
5540
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
5537
5541
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
5538
5542
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -6431,11 +6435,12 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
6431
6435
|
}, boolean>;
|
|
6432
6436
|
readonly showFooter: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6433
6437
|
}>> & {
|
|
6438
|
+
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
6434
6439
|
onClose?: (() => any) | undefined;
|
|
6435
6440
|
onConfirm?: (() => any) | undefined;
|
|
6436
6441
|
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
6437
6442
|
}, {
|
|
6438
|
-
readonly filterColumns:
|
|
6443
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
6439
6444
|
readonly value: Record<string, any>;
|
|
6440
6445
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
6441
6446
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -6664,7 +6669,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
6664
6669
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6665
6670
|
}, {}>;
|
|
6666
6671
|
AdvancedFilteringTags: import("vue").DefineComponent<{
|
|
6667
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
6672
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
6668
6673
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
6669
6674
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
6670
6675
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -7566,7 +7571,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
7566
7571
|
}, boolean>;
|
|
7567
7572
|
}, {
|
|
7568
7573
|
props: import("@vue/shared").LooseRequired<{
|
|
7569
|
-
readonly filterColumns:
|
|
7574
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
7570
7575
|
readonly value: Record<string, any>;
|
|
7571
7576
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
7572
7577
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -7815,16 +7820,12 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
7815
7820
|
}[]>;
|
|
7816
7821
|
handleClean: (tag?: import("./src/advanced-filtering").IAvancedFilteringTag | null) => void;
|
|
7817
7822
|
setData: (obj: Record<string, any>) => void;
|
|
7818
|
-
|
|
7819
|
-
[key: string]: string;
|
|
7820
|
-
}) => any[];
|
|
7821
|
-
findLabelByValue: (tree: any, value: any) => string;
|
|
7822
|
-
getTags: (filterColumns: any[], value: Record<string, any>) => import("./src/advanced-filtering").IAvancedFilteringTag[];
|
|
7823
|
+
getTags: (filterColumns: any[], values: Record<string, any>) => import("./src/advanced-filtering").IAvancedFilteringTag[];
|
|
7823
7824
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7824
7825
|
change: (value: Record<string, any>) => boolean;
|
|
7825
7826
|
'update:value': (value: Record<string, any>) => boolean;
|
|
7826
7827
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7827
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
7828
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
7828
7829
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
7829
7830
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
7830
7831
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -8728,7 +8729,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
8728
8729
|
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
8729
8730
|
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
8730
8731
|
}, {
|
|
8731
|
-
readonly filterColumns:
|
|
8732
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
8732
8733
|
readonly value: Record<string, any>;
|
|
8733
8734
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
8734
8735
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -8960,7 +8961,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
8960
8961
|
change: (value: Record<string, any>) => boolean;
|
|
8961
8962
|
'update:value': (value: Record<string, any>) => boolean;
|
|
8962
8963
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8963
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
8964
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
8964
8965
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
8965
8966
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
8966
8967
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -9864,7 +9865,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
9864
9865
|
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
9865
9866
|
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
9866
9867
|
}, {
|
|
9867
|
-
readonly filterColumns:
|
|
9868
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
9868
9869
|
readonly value: Record<string, any>;
|
|
9869
9870
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
9870
9871
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -10093,7 +10094,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
10093
10094
|
readonly overlayStyle: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | undefined) | ((new (...args: any[]) => import("vue").CSSProperties) | (() => import("vue").CSSProperties | undefined))[], unknown, unknown>;
|
|
10094
10095
|
}, {}>>;
|
|
10095
10096
|
export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
10096
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
10097
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
10097
10098
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
10098
10099
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
10099
10100
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -10993,7 +10994,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
10993
10994
|
readonly showFooter: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
10994
10995
|
}, {
|
|
10995
10996
|
props: import("@vue/shared").LooseRequired<{
|
|
10996
|
-
readonly filterColumns:
|
|
10997
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
10997
10998
|
readonly value: Record<string, any>;
|
|
10998
10999
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
10999
11000
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -11220,11 +11221,12 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
11220
11221
|
};
|
|
11221
11222
|
}>>;
|
|
11222
11223
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
11224
|
+
readonly "onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
11223
11225
|
readonly onClose?: (() => any) | undefined;
|
|
11224
11226
|
readonly onConfirm?: (() => any) | undefined;
|
|
11225
11227
|
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
11226
11228
|
} & {}>;
|
|
11227
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
11229
|
+
emits: ((event: "update:value", value: Record<string, any>) => void) & ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
11228
11230
|
bem: {
|
|
11229
11231
|
b: (blockSuffix?: string) => string;
|
|
11230
11232
|
e: (element?: string) => string;
|
|
@@ -11235,10 +11237,12 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
11235
11237
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
11236
11238
|
is: (name?: string) => string;
|
|
11237
11239
|
};
|
|
11238
|
-
|
|
11240
|
+
innerValue: import("vue").Ref<{}>;
|
|
11241
|
+
computeFormColumns: import("vue").ComputedRef<import("./src/advanced-filtering").FilterColumn[]>;
|
|
11239
11242
|
handleClose: () => void;
|
|
11240
11243
|
handleAdvancedFilterConfirm: () => void;
|
|
11241
11244
|
handleChange: (val: Record<string, any>) => void;
|
|
11245
|
+
setData: (val: Record<string, any>) => void;
|
|
11242
11246
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
11243
11247
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
11244
11248
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -14034,8 +14038,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
14034
14038
|
close: () => boolean;
|
|
14035
14039
|
confirm: () => boolean;
|
|
14036
14040
|
changeValue: (value: Record<string, any>) => boolean;
|
|
14041
|
+
'update:value': (value: Record<string, any>) => boolean;
|
|
14037
14042
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14038
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
14043
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
14039
14044
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
14040
14045
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
14041
14046
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -14934,11 +14939,12 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
14934
14939
|
}, boolean>;
|
|
14935
14940
|
readonly showFooter: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14936
14941
|
}>> & {
|
|
14942
|
+
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
14937
14943
|
onClose?: (() => any) | undefined;
|
|
14938
14944
|
onConfirm?: (() => any) | undefined;
|
|
14939
14945
|
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
14940
14946
|
}, {
|
|
14941
|
-
readonly filterColumns:
|
|
14947
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
14942
14948
|
readonly value: Record<string, any>;
|
|
14943
14949
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
14944
14950
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -15167,7 +15173,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
15167
15173
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
15168
15174
|
}, {}>>;
|
|
15169
15175
|
export declare const LlAdvancedFilteringTags: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
15170
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
15176
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
15171
15177
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
15172
15178
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
15173
15179
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -16069,7 +16075,7 @@ export declare const LlAdvancedFilteringTags: import("ll-plus/es/utils").SFCWith
|
|
|
16069
16075
|
}, boolean>;
|
|
16070
16076
|
}, {
|
|
16071
16077
|
props: import("@vue/shared").LooseRequired<{
|
|
16072
|
-
readonly filterColumns:
|
|
16078
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
16073
16079
|
readonly value: Record<string, any>;
|
|
16074
16080
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
16075
16081
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -16318,16 +16324,12 @@ export declare const LlAdvancedFilteringTags: import("ll-plus/es/utils").SFCWith
|
|
|
16318
16324
|
}[]>;
|
|
16319
16325
|
handleClean: (tag?: import("./src/advanced-filtering").IAvancedFilteringTag | null) => void;
|
|
16320
16326
|
setData: (obj: Record<string, any>) => void;
|
|
16321
|
-
|
|
16322
|
-
[key: string]: string;
|
|
16323
|
-
}) => any[];
|
|
16324
|
-
findLabelByValue: (tree: any, value: any) => string;
|
|
16325
|
-
getTags: (filterColumns: any[], value: Record<string, any>) => import("./src/advanced-filtering").IAvancedFilteringTag[];
|
|
16327
|
+
getTags: (filterColumns: any[], values: Record<string, any>) => import("./src/advanced-filtering").IAvancedFilteringTag[];
|
|
16326
16328
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16327
16329
|
change: (value: Record<string, any>) => boolean;
|
|
16328
16330
|
'update:value': (value: Record<string, any>) => boolean;
|
|
16329
16331
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16330
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
16332
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]) | ((new (...args: any[]) => import("./src/advanced-filtering").FilterColumn[]) | (() => import("./src/advanced-filtering").FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
16331
16333
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
16332
16334
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
16333
16335
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -17231,7 +17233,7 @@ export declare const LlAdvancedFilteringTags: import("ll-plus/es/utils").SFCWith
|
|
|
17231
17233
|
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
17232
17234
|
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
17233
17235
|
}, {
|
|
17234
|
-
readonly filterColumns:
|
|
17236
|
+
readonly filterColumns: import("./src/advanced-filtering").FilterColumn[];
|
|
17235
17237
|
readonly value: Record<string, any>;
|
|
17236
17238
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
17237
17239
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2,7 +2,7 @@ import '../../utils/index.mjs';
|
|
|
2
2
|
import AdvancedFiltering from './src/advanced-filtering.vue.mjs';
|
|
3
3
|
import AdvancedFilteringParams from './src/components/advanced-filtering-params.vue.mjs';
|
|
4
4
|
import AdvancedFilteringTags from './src/components/advanced-filtering-tags.vue.mjs';
|
|
5
|
-
export { advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits } from './src/advanced-filtering.mjs';
|
|
5
|
+
export { ALL_VALUE, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, filterAllValue, findLabelByValue, initValue, treeDataFormat } from './src/advanced-filtering.mjs';
|
|
6
6
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { FormColumn } from 'll-plus/es/components';
|
|
2
3
|
import type advancedFiltering from './advanced-filtering.vue';
|
|
3
4
|
import type advancedFilteringParams from './components/advanced-filtering-params.vue';
|
|
4
5
|
import type advancedFilteringTags from './components/advanced-filtering-tags.vue';
|
|
@@ -8,8 +9,19 @@ export interface IAvancedFilteringTag {
|
|
|
8
9
|
value: string | string[];
|
|
9
10
|
showValue: string | string[];
|
|
10
11
|
}
|
|
12
|
+
export declare const ALL_VALUE: string;
|
|
13
|
+
export type FilterColumn = FormColumn<{
|
|
14
|
+
unUseDefaultOption?: boolean;
|
|
15
|
+
defaultOptionLabel?: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const initValue: (column: FilterColumn, values: any) => any;
|
|
18
|
+
export declare const filterAllValue: (values: string | string[]) => any;
|
|
19
|
+
export declare const treeDataFormat: (arr: any[] | undefined, fieldNames: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
}) => any[];
|
|
22
|
+
export declare const findLabelByValue: (tree: FilterColumn['options'], value: any) => string;
|
|
11
23
|
export declare const advancedFilteringProps: {
|
|
12
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
24
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => FilterColumn[]) | (() => FilterColumn[]) | ((new (...args: any[]) => FilterColumn[]) | (() => FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
13
25
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
14
26
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<ExtractPropTypes<{
|
|
15
27
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -911,7 +923,7 @@ export declare const advancedFilteringProps: {
|
|
|
911
923
|
}, boolean>;
|
|
912
924
|
};
|
|
913
925
|
export declare const advancedFilteringParamsProps: {
|
|
914
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
926
|
+
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => FilterColumn[]) | (() => FilterColumn[]) | ((new (...args: any[]) => FilterColumn[]) | (() => FilterColumn[]))[], unknown, unknown, () => never[], boolean>;
|
|
915
927
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
916
928
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<ExtractPropTypes<{
|
|
917
929
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -1818,6 +1830,7 @@ export declare const advancedFilteringParamsEmits: {
|
|
|
1818
1830
|
close: () => boolean;
|
|
1819
1831
|
confirm: () => boolean;
|
|
1820
1832
|
changeValue: (value: Record<string, any>) => boolean;
|
|
1833
|
+
'update:value': (value: Record<string, any>) => boolean;
|
|
1821
1834
|
};
|
|
1822
1835
|
export declare const advancedFilteringTagsEmits: {
|
|
1823
1836
|
change: (value: Record<string, any>) => boolean;
|
|
@@ -1,7 +1,64 @@
|
|
|
1
1
|
import '../../../utils/index.mjs';
|
|
2
|
+
import { has, isEmpty, isNil } from 'lodash-es';
|
|
2
3
|
import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';
|
|
3
4
|
|
|
4
5
|
"use strict";
|
|
6
|
+
const ALL_VALUE = "_ALL";
|
|
7
|
+
const initValue = (column, values) => {
|
|
8
|
+
let value = has(values, column.key) ? values[column.key] : null;
|
|
9
|
+
if (has(column, "options") && !column.unUseDefaultOption) {
|
|
10
|
+
if (column.type === "checkbox-group" || has(column, "mode")) {
|
|
11
|
+
value = isEmpty(value) || isNil(value) ? [ALL_VALUE] : value;
|
|
12
|
+
} else {
|
|
13
|
+
value = isNil(value) ? ALL_VALUE : value;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return value;
|
|
17
|
+
};
|
|
18
|
+
const filterAllValue = (values) => {
|
|
19
|
+
let value = null;
|
|
20
|
+
if (Array.isArray(values)) {
|
|
21
|
+
value = values.filter((item) => item !== ALL_VALUE);
|
|
22
|
+
} else {
|
|
23
|
+
value = values === ALL_VALUE ? null : values;
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
26
|
+
};
|
|
27
|
+
const treeDataFormat = (arr = [], fieldNames) => {
|
|
28
|
+
let options = [];
|
|
29
|
+
if (!arr)
|
|
30
|
+
return [];
|
|
31
|
+
options = arr.map((e) => {
|
|
32
|
+
const obj = {};
|
|
33
|
+
obj.label = e[fieldNames.label];
|
|
34
|
+
obj.value = e[fieldNames.value];
|
|
35
|
+
if (e[fieldNames.children] && e[fieldNames.children].length) {
|
|
36
|
+
obj.children = treeDataFormat(e[fieldNames.children], fieldNames);
|
|
37
|
+
}
|
|
38
|
+
return obj;
|
|
39
|
+
});
|
|
40
|
+
return options;
|
|
41
|
+
};
|
|
42
|
+
const findLabelByValue = (tree, value) => {
|
|
43
|
+
function _findLabel(nodes) {
|
|
44
|
+
const labels = [];
|
|
45
|
+
if (!nodes)
|
|
46
|
+
return [];
|
|
47
|
+
for (const node of nodes) {
|
|
48
|
+
if (node.value === value) {
|
|
49
|
+
labels.push(node.label);
|
|
50
|
+
}
|
|
51
|
+
if (node.children && node.children.length > 0) {
|
|
52
|
+
const childLabels = _findLabel(node.children);
|
|
53
|
+
if (childLabels) {
|
|
54
|
+
labels.push(...childLabels);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return labels.length > 0 ? labels : [];
|
|
59
|
+
}
|
|
60
|
+
return _findLabel(tree).join(",");
|
|
61
|
+
};
|
|
5
62
|
const advancedFilteringProps = buildProps({
|
|
6
63
|
filterColumns: {
|
|
7
64
|
type: definePropType(Array),
|
|
@@ -47,12 +104,13 @@ const advancedFilteringEmits = {
|
|
|
47
104
|
const advancedFilteringParamsEmits = {
|
|
48
105
|
close: () => true,
|
|
49
106
|
confirm: () => true,
|
|
50
|
-
changeValue: (value) => !!value
|
|
107
|
+
changeValue: (value) => !!value,
|
|
108
|
+
"update:value": (value) => !!value
|
|
51
109
|
};
|
|
52
110
|
const advancedFilteringTagsEmits = {
|
|
53
111
|
change: (value) => !!value,
|
|
54
112
|
"update:value": (value) => !!value
|
|
55
113
|
};
|
|
56
114
|
|
|
57
|
-
export { advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits };
|
|
115
|
+
export { ALL_VALUE, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, filterAllValue, findLabelByValue, initValue, treeDataFormat };
|
|
58
116
|
//# sourceMappingURL=advanced-filtering.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-filtering.mjs","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormProps as AntFormProps, TooltipProps } from 'ant-design-vue'\nimport type { FormColumn } from '@ll-plus/components'\nimport type advancedFiltering from './advanced-filtering.vue'\nimport type advancedFilteringParams from './components/advanced-filtering-params.vue'\nimport type advancedFilteringTags from './components/advanced-filtering-tags.vue'\nexport interface IAvancedFilteringTag {\n label: string\n key: string\n value: string | string[]\n showValue: string | string[]\n}\n\nexport const advancedFilteringProps = buildProps({\n filterColumns: {\n type: definePropType<
|
|
1
|
+
{"version":3,"file":"advanced-filtering.mjs","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\nimport { has, isEmpty, isNil } from 'lodash-es'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormProps as AntFormProps, TooltipProps } from 'ant-design-vue'\nimport type { FormColumn } from '@ll-plus/components'\nimport type advancedFiltering from './advanced-filtering.vue'\nimport type advancedFilteringParams from './components/advanced-filtering-params.vue'\nimport type advancedFilteringTags from './components/advanced-filtering-tags.vue'\n\nexport interface IAvancedFilteringTag {\n label: string\n key: string\n value: string | string[]\n showValue: string | string[]\n}\n\nexport const ALL_VALUE: string = '_ALL'\n\nexport type FilterColumn = FormColumn<{\n unUseDefaultOption?: boolean\n defaultOptionLabel?: string\n}>\n\nexport const initValue = (column: FilterColumn, values: any) => {\n let value: any = has(values, column.key) ? values[column.key] : null\n if (has(column, 'options') && !column.unUseDefaultOption) {\n if (column.type === 'checkbox-group' || has(column, 'mode')) {\n value = isEmpty(value) || isNil(value) ? [ALL_VALUE] : value\n } else {\n value = isNil(value) ? ALL_VALUE : value\n }\n }\n\n return value\n}\n\nexport const filterAllValue = (values: string | string[]) => {\n let value: any = null\n if (Array.isArray(values)) {\n value = values.filter(item => item !== ALL_VALUE)\n } else {\n value = values === ALL_VALUE ? null : values\n }\n\n return value\n}\n\nexport const treeDataFormat = (\n arr = [] as any[],\n fieldNames: { [key: string]: string }\n) => {\n let options = [] as any[]\n if (!arr) return []\n options = arr.map((e: any) => {\n const obj: any = {}\n obj.label = e[fieldNames.label]\n obj.value = e[fieldNames.value]\n if (e[fieldNames.children] && e[fieldNames.children].length) {\n obj.children = treeDataFormat(e[fieldNames.children], fieldNames)\n }\n\n return obj\n })\n return options\n}\n\nexport const findLabelByValue = (\n tree: FilterColumn['options'],\n value: any\n): string => {\n // 递归函数,用于遍历 Tree 数据\n function _findLabel(nodes: FilterColumn['options']): string[] {\n const labels: string[] = []\n if (!nodes) return []\n for (const node of nodes) {\n if (node.value === value) {\n labels.push(node.label)\n }\n if (node.children && node.children.length > 0) {\n const childLabels = _findLabel(node.children)\n if (childLabels) {\n labels.push(...childLabels)\n }\n }\n }\n return labels.length > 0 ? labels : []\n }\n // 开始递归查找\n return _findLabel(tree).join(',')\n}\n\nexport const advancedFilteringProps = buildProps({\n filterColumns: {\n type: definePropType<FilterColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n overlayStyle: {\n type: definePropType<TooltipProps['overlayStyle']>(Object),\n default: () => ({\n width: '500px'\n })\n }\n} as const)\n\nexport const advancedFilteringParamsProps = buildProps({\n filterColumns: {\n type: definePropType<FilterColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n showFooter: {\n type: Boolean,\n default: false\n }\n} as const)\n\nexport const advancedFilteringEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringParamsEmits = {\n close: () => true,\n confirm: () => true,\n changeValue: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringTagsEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\n// props\nexport type AdvancedFilteringProps = ExtractPropTypes<\n typeof advancedFilteringProps\n>\n\nexport type AdvancedFilteringParamsProps = ExtractPropTypes<\n typeof advancedFilteringParamsProps\n>\n\n// emits\nexport type AdvancedFilteringEmits = typeof advancedFilteringEmits\n\nexport type AdvancedFilteringParamsEmits = typeof advancedFilteringParamsEmits\n\nexport type AdvancedFilteringTagsEmits = typeof advancedFilteringTagsEmits\n\n// instance\nexport type AdvancedFilteringInstance = InstanceType<typeof advancedFiltering>\n\nexport type AdvancedFilteringParamsInstance = InstanceType<\n typeof advancedFilteringParams\n>\n\nexport type AdvancedFilteringTagsInstance = InstanceType<\n typeof advancedFilteringTags\n>\n"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
2
|
+
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>;
|
|
3
3
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
4
4
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
5
5
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -901,7 +901,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
901
901
|
}, boolean>;
|
|
902
902
|
}, {
|
|
903
903
|
props: import("@vue/shared").LooseRequired<{
|
|
904
|
-
readonly filterColumns:
|
|
904
|
+
readonly filterColumns: import("ll-plus/es/components").FilterColumn[];
|
|
905
905
|
readonly value: Record<string, any>;
|
|
906
906
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
907
907
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -1587,7 +1587,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1587
1587
|
};
|
|
1588
1588
|
}>>, {}, {}>>;
|
|
1589
1589
|
AdvancedFilteringParams: import("vue").DefineComponent<{
|
|
1590
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
1590
|
+
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>;
|
|
1591
1591
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
1592
1592
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
1593
1593
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2487,7 +2487,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2487
2487
|
readonly showFooter: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
2488
2488
|
}, {
|
|
2489
2489
|
props: import("@vue/shared").LooseRequired<{
|
|
2490
|
-
readonly filterColumns:
|
|
2490
|
+
readonly filterColumns: import("ll-plus/es/components").FilterColumn[];
|
|
2491
2491
|
readonly value: Record<string, any>;
|
|
2492
2492
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
2493
2493
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2714,11 +2714,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2714
2714
|
};
|
|
2715
2715
|
}>>;
|
|
2716
2716
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2717
|
+
readonly "onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
2717
2718
|
readonly onClose?: (() => any) | undefined;
|
|
2718
2719
|
readonly onConfirm?: (() => any) | undefined;
|
|
2719
2720
|
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
2720
2721
|
} & {}>;
|
|
2721
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
2722
|
+
emits: ((event: "update:value", value: Record<string, any>) => void) & ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
2722
2723
|
bem: {
|
|
2723
2724
|
b: (blockSuffix?: string) => string;
|
|
2724
2725
|
e: (element?: string) => string;
|
|
@@ -2729,10 +2730,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2729
2730
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
2730
2731
|
is: (name?: string) => string;
|
|
2731
2732
|
};
|
|
2732
|
-
|
|
2733
|
+
innerValue: import("vue").Ref<{}>;
|
|
2734
|
+
computeFormColumns: import("vue").ComputedRef<import("ll-plus/es/components").FilterColumn[]>;
|
|
2733
2735
|
handleClose: () => void;
|
|
2734
2736
|
handleAdvancedFilterConfirm: () => void;
|
|
2735
2737
|
handleChange: (val: Record<string, any>) => void;
|
|
2738
|
+
setData: (val: Record<string, any>) => void;
|
|
2736
2739
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2737
2740
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
2738
2741
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -5528,8 +5531,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5528
5531
|
close: () => boolean;
|
|
5529
5532
|
confirm: () => boolean;
|
|
5530
5533
|
changeValue: (value: Record<string, any>) => boolean;
|
|
5534
|
+
'update:value': (value: Record<string, any>) => boolean;
|
|
5531
5535
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5532
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
5536
|
+
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>;
|
|
5533
5537
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
5534
5538
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
5535
5539
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -6428,11 +6432,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6428
6432
|
}, boolean>;
|
|
6429
6433
|
readonly showFooter: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6430
6434
|
}>> & {
|
|
6435
|
+
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
6431
6436
|
onClose?: (() => any) | undefined;
|
|
6432
6437
|
onConfirm?: (() => any) | undefined;
|
|
6433
6438
|
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
6434
6439
|
}, {
|
|
6435
|
-
readonly filterColumns:
|
|
6440
|
+
readonly filterColumns: import("ll-plus/es/components").FilterColumn[];
|
|
6436
6441
|
readonly value: Record<string, any>;
|
|
6437
6442
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
6438
6443
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -6661,7 +6666,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6661
6666
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6662
6667
|
}, {}>;
|
|
6663
6668
|
AdvancedFilteringTags: import("vue").DefineComponent<{
|
|
6664
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
6669
|
+
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>;
|
|
6665
6670
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
6666
6671
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
6667
6672
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -7563,7 +7568,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7563
7568
|
}, boolean>;
|
|
7564
7569
|
}, {
|
|
7565
7570
|
props: import("@vue/shared").LooseRequired<{
|
|
7566
|
-
readonly filterColumns:
|
|
7571
|
+
readonly filterColumns: import("ll-plus/es/components").FilterColumn[];
|
|
7567
7572
|
readonly value: Record<string, any>;
|
|
7568
7573
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
7569
7574
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -7812,16 +7817,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7812
7817
|
}[]>;
|
|
7813
7818
|
handleClean: (tag?: import("ll-plus/es/components").IAvancedFilteringTag | null) => void;
|
|
7814
7819
|
setData: (obj: Record<string, any>) => void;
|
|
7815
|
-
|
|
7816
|
-
[key: string]: string;
|
|
7817
|
-
}) => any[];
|
|
7818
|
-
findLabelByValue: (tree: any, value: any) => string;
|
|
7819
|
-
getTags: (filterColumns: any[], value: Record<string, any>) => import("ll-plus/es/components").IAvancedFilteringTag[];
|
|
7820
|
+
getTags: (filterColumns: any[], values: Record<string, any>) => import("ll-plus/es/components").IAvancedFilteringTag[];
|
|
7820
7821
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7821
7822
|
change: (value: Record<string, any>) => boolean;
|
|
7822
7823
|
'update:value': (value: Record<string, any>) => boolean;
|
|
7823
7824
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7824
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
7825
|
+
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>;
|
|
7825
7826
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
7826
7827
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
7827
7828
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -8725,7 +8726,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8725
8726
|
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
8726
8727
|
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
8727
8728
|
}, {
|
|
8728
|
-
readonly filterColumns:
|
|
8729
|
+
readonly filterColumns: import("ll-plus/es/components").FilterColumn[];
|
|
8729
8730
|
readonly value: Record<string, any>;
|
|
8730
8731
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
8731
8732
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -8957,7 +8958,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8957
8958
|
change: (value: Record<string, any>) => boolean;
|
|
8958
8959
|
'update:value': (value: Record<string, any>) => boolean;
|
|
8959
8960
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8960
|
-
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
8961
|
+
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>;
|
|
8961
8962
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
8962
8963
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
8963
8964
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -9861,7 +9862,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9861
9862
|
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
9862
9863
|
"onUpdate:value"?: ((value: Record<string, any>) => any) | undefined;
|
|
9863
9864
|
}, {
|
|
9864
|
-
readonly filterColumns:
|
|
9865
|
+
readonly filterColumns: import("ll-plus/es/components").FilterColumn[];
|
|
9865
9866
|
readonly value: Record<string, any>;
|
|
9866
9867
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
9867
9868
|
layout: import("vue-types").VueTypeDef<string>;
|