@opengis/filter 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/filter/filter.vue.d.ts +50 -0
- package/dist/components/filter/filter.vue.d.ts.map +1 -0
- package/dist/components/filter/layouts/inline-filter-layout.vue.d.ts +37 -0
- package/dist/components/filter/layouts/inline-filter-layout.vue.d.ts.map +1 -0
- package/dist/components/filter/layouts/popover-filter-layout.vue.d.ts +37 -0
- package/dist/components/filter/layouts/popover-filter-layout.vue.d.ts.map +1 -0
- package/dist/components/filter/layouts/vertical-filter-layout.vue.d.ts +37 -0
- package/dist/components/filter/layouts/vertical-filter-layout.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/date-input-inline.vue.d.ts +23 -0
- package/dist/components/filter-field/fields/date-input-inline.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/date-input.vue.d.ts +23 -0
- package/dist/components/filter-field/fields/date-input.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/list/checkbox.vue.d.ts +25 -0
- package/dist/components/filter-field/fields/list/checkbox.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/list/list-item.vue.d.ts +19 -0
- package/dist/components/filter-field/fields/list/list-item.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/list/radio.vue.d.ts +26 -0
- package/dist/components/filter-field/fields/list/radio.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/list/select.vue.d.ts +28 -0
- package/dist/components/filter-field/fields/list/select.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/popover-field.vue.d.ts +33 -0
- package/dist/components/filter-field/fields/popover-field.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/range-input.vue.d.ts +25 -0
- package/dist/components/filter-field/fields/range-input.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/tag-field.vue.d.ts +24 -0
- package/dist/components/filter-field/fields/tag-field.vue.d.ts.map +1 -0
- package/dist/components/filter-field/fields/text-input.vue.d.ts +21 -0
- package/dist/components/filter-field/fields/text-input.vue.d.ts.map +1 -0
- package/dist/components/filter-field/filter-field.vue.d.ts +27 -0
- package/dist/components/filter-field/filter-field.vue.d.ts.map +1 -0
- package/dist/components/filter-field/layouts/inline-layout.vue.d.ts +20 -0
- package/dist/components/filter-field/layouts/inline-layout.vue.d.ts.map +1 -0
- package/dist/components/filter-field/layouts/popover-layout.vue.d.ts +20 -0
- package/dist/components/filter-field/layouts/popover-layout.vue.d.ts.map +1 -0
- package/dist/components/filter-field/layouts/vertical-layout.vue.d.ts +20 -0
- package/dist/components/filter-field/layouts/vertical-layout.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-arrow-down.vue.d.ts +3 -0
- package/dist/components/icons/icon-arrow-down.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-arrow-next.vue.d.ts +3 -0
- package/dist/components/icons/icon-arrow-next.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-arrow-prev.vue.d.ts +3 -0
- package/dist/components/icons/icon-arrow-prev.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-arrow-up.vue.d.ts +3 -0
- package/dist/components/icons/icon-arrow-up.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-check.vue.d.ts +3 -0
- package/dist/components/icons/icon-check.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-filter.vue.d.ts +3 -0
- package/dist/components/icons/icon-filter.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-magnifying-glass.vue.d.ts +3 -0
- package/dist/components/icons/icon-magnifying-glass.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-not-found.vue.d.ts +3 -0
- package/dist/components/icons/icon-not-found.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-reload.vue.d.ts +3 -0
- package/dist/components/icons/icon-reload.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-x.vue.d.ts +3 -0
- package/dist/components/icons/icon-x.vue.d.ts.map +1 -0
- package/dist/components/ui/popover.vue.d.ts +21 -0
- package/dist/components/ui/popover.vue.d.ts.map +1 -0
- package/dist/composable/i18n.d.ts +3 -0
- package/dist/composable/i18n.d.ts.map +1 -0
- package/dist/composable/useFilter.d.ts +20 -0
- package/dist/composable/useFilter.d.ts.map +1 -0
- package/dist/composable/useFilterCheckbox.d.ts +36 -0
- package/dist/composable/useFilterCheckbox.d.ts.map +1 -0
- package/dist/composable/useFilterDate.d.ts +21 -0
- package/dist/composable/useFilterDate.d.ts.map +1 -0
- package/dist/composable/useFilterRadio.d.ts +36 -0
- package/dist/composable/useFilterRadio.d.ts.map +1 -0
- package/dist/composable/useFilterSelect.d.ts +42 -0
- package/dist/composable/useFilterSelect.d.ts.map +1 -0
- package/dist/composable/useLocale.d.ts +2 -0
- package/dist/composable/useLocale.d.ts.map +1 -0
- package/dist/composable/useStyle.d.ts +12 -0
- package/dist/composable/useStyle.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2829 -0
- package/dist/index.umd.cjs +1 -0
- package/dist/types/filter.d.ts +79 -0
- package/dist/types/filter.d.ts.map +1 -0
- package/dist/utils/date-util.d.ts +11 -0
- package/dist/utils/date-util.d.ts.map +1 -0
- package/dist/utils/field-util.d.ts +4 -0
- package/dist/utils/field-util.d.ts.map +1 -0
- package/dist/utils/string.d.ts +4 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/package.json +6 -5
- package/dist/filter.js +0 -2807
- package/dist/filter.umd.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-check.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-check.vue"],"names":[],"mappings":";AAsDA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=icon-filter.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-filter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-filter.vue"],"names":[],"mappings":";AA+DA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=icon-magnifying-glass.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-magnifying-glass.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-magnifying-glass.vue"],"names":[],"mappings":";AA2EA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=icon-not-found.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-not-found.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-not-found.vue"],"names":[],"mappings":";AAoTA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=icon-reload.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-reload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-reload.vue"],"names":[],"mappings":";AA+EA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=icon-x.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-x.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-x.vue"],"names":[],"mappings":";AA4EA,wBAKG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_7: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_7) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
close: (...args: any[]) => void;
|
|
9
|
+
open: (...args: any[]) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
11
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=popover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.vue"],"names":[],"mappings":"AA0OA,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA0B/C,QAAA,MAAM,eAAe;;;;;;iFAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/composable/i18n.ts"],"names":[],"mappings":"wBAkBK,GAAG;AAlBR,wBAkBS"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IFilter, IFilterEmits } from '../types/filter.ts';
|
|
2
|
+
declare function useFilter(props: IFilter & {
|
|
3
|
+
slots?: any;
|
|
4
|
+
schema?: any;
|
|
5
|
+
}, emit: IFilterEmits): {
|
|
6
|
+
activeFilter: import("vue").Ref<any, any>;
|
|
7
|
+
activeFilterCount: import("vue").ComputedRef<number>;
|
|
8
|
+
onFilterChange: (key: string, value: string | string[] | undefined) => void;
|
|
9
|
+
clearFilter: (key: string) => void;
|
|
10
|
+
clearAllFilters: (silent?: boolean) => void;
|
|
11
|
+
limitedSchema: import("vue").ComputedRef<any>;
|
|
12
|
+
filtersSlot: import("vue").ComputedRef<any>;
|
|
13
|
+
limitedFiltersSlot: import("vue").ComputedRef<any>;
|
|
14
|
+
popoverFiltersSlot: import("vue").ComputedRef<any>;
|
|
15
|
+
vnodeMap: import("vue").ComputedRef<Map<unknown, unknown>>;
|
|
16
|
+
selectedFilter: import("vue").Ref<string, string>;
|
|
17
|
+
filterRef: import("vue").Ref<any, any>;
|
|
18
|
+
};
|
|
19
|
+
export default useFilter;
|
|
20
|
+
//# sourceMappingURL=useFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilter.d.ts","sourceRoot":"","sources":["../../src/composable/useFilter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,OAAO,EAAE,YAAY,EACtB,MAAM,oBAAoB,CAAC;AAE5B,iBAAS,SAAS,CAChB,KAAK,EAAE,OAAO,GAAG;IAAE,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,GAAG,CAAA;CAAE,EAC9C,IAAI,EAAE,YAAY;;;0BAsBW,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;uBAT/C,MAAM;;;;;;;;;EAqIjC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IFilterItem, IFilterItemEmits, IListItem } from '../types/filter.js';
|
|
2
|
+
declare function useFilterCheckbox<T>(props: IFilterItem, emit: IFilterItemEmits): {
|
|
3
|
+
innerValue: import("vue").Ref<any, any>;
|
|
4
|
+
searchTerm: import("vue").Ref<string, string>;
|
|
5
|
+
filteredOptions: import("vue").ComputedRef<{
|
|
6
|
+
text: string;
|
|
7
|
+
id: any;
|
|
8
|
+
count?: number | string | undefined;
|
|
9
|
+
color?: string | undefined;
|
|
10
|
+
icon?: string | undefined;
|
|
11
|
+
}[]>;
|
|
12
|
+
isSelected: (option: IListItem) => boolean;
|
|
13
|
+
selectItem: (option: IListItem) => void;
|
|
14
|
+
clear: () => void;
|
|
15
|
+
toggleShowAll: () => void;
|
|
16
|
+
isReqProc: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
showAll: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
isEnableShowAll: import("vue").Ref<boolean, boolean>;
|
|
19
|
+
labelKey: import("vue").Ref<keyof IListItem, keyof IListItem>;
|
|
20
|
+
valueKey: import("vue").Ref<keyof IListItem, keyof IListItem>;
|
|
21
|
+
allOptions: import("vue").Ref<{
|
|
22
|
+
text: string;
|
|
23
|
+
id: any;
|
|
24
|
+
count?: number | string | undefined;
|
|
25
|
+
color?: string | undefined;
|
|
26
|
+
icon?: string | undefined;
|
|
27
|
+
}[], IListItem[] | {
|
|
28
|
+
text: string;
|
|
29
|
+
id: any;
|
|
30
|
+
count?: number | string | undefined;
|
|
31
|
+
color?: string | undefined;
|
|
32
|
+
icon?: string | undefined;
|
|
33
|
+
}[]>;
|
|
34
|
+
};
|
|
35
|
+
export default useFilterCheckbox;
|
|
36
|
+
//# sourceMappingURL=useFilterCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterCheckbox.d.ts","sourceRoot":"","sources":["../../src/composable/useFilterCheckbox.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEnF,iBAAS,iBAAiB,CAAC,CAAC,EAC1B,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,gBAAgB;;;;;;;;;;yBA2DM,SAAS,KAAG,OAAO;yBAInB,SAAS;;;;;;;;;;;;;;;;;;;;;EAoCtC;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { IFilterItem, IFilterItemEmits } from "../types/filter.ts";
|
|
3
|
+
import PopoverField from "../components/filter-field/fields/popover-field.vue";
|
|
4
|
+
declare function useFilterDate(props: IFilterItem & {
|
|
5
|
+
popoverRef: Ref<InstanceType<typeof PopoverField>>;
|
|
6
|
+
}, emit: IFilterItemEmits): {
|
|
7
|
+
activeMode: Ref<string, string>;
|
|
8
|
+
innerValue: Ref<string | string[], string | string[]>;
|
|
9
|
+
daysBefore: Ref<number, number>;
|
|
10
|
+
onDaysBeforeChange: () => string[];
|
|
11
|
+
onSelectChange: (mode: string) => void;
|
|
12
|
+
nextClick: () => void;
|
|
13
|
+
prevClick: () => void;
|
|
14
|
+
ukMonths: string[];
|
|
15
|
+
formatDisplayDate: (date: string) => string;
|
|
16
|
+
getModeLabel: (mode: string) => string;
|
|
17
|
+
currentLabel: import("vue").ComputedRef<string>;
|
|
18
|
+
clear: () => void;
|
|
19
|
+
};
|
|
20
|
+
export default useFilterDate;
|
|
21
|
+
//# sourceMappingURL=useFilterDate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterDate.d.ts","sourceRoot":"","sources":["../../src/composable/useFilterDate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAO,MAAM,KAAK,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAG/E,iBAAS,aAAa,CACpB,KAAK,EAAE,WAAW,GAAE;IAAC,UAAU,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC,CAAA;CAAC,EACxE,IAAI,EAAE,gBAAgB;;;;;2BAwBQ,MAAM;;;;8BA8FH,MAAM,KAAG,MAAM;yBAKpB,MAAM,KAAG,MAAM;;;EAmE5C;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IFilterItem, IFilterItemEmits, IListItem } from '../types/filter.ts';
|
|
2
|
+
declare function useFilterRadio<T>(props: IFilterItem, emit: IFilterItemEmits): {
|
|
3
|
+
innerValue: [T] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<T, import("vue").Ref<T, T>, T> : import("vue").Ref<import("vue").UnwrapRef<T>, T | import("vue").UnwrapRef<T>>;
|
|
4
|
+
searchTerm: import("vue").Ref<string, string>;
|
|
5
|
+
filteredOptions: import("vue").ComputedRef<{
|
|
6
|
+
text: string;
|
|
7
|
+
id: any;
|
|
8
|
+
count?: number | string | undefined;
|
|
9
|
+
color?: string | undefined;
|
|
10
|
+
icon?: string | undefined;
|
|
11
|
+
}[]>;
|
|
12
|
+
isSelected: (option: IListItem) => boolean;
|
|
13
|
+
selectItem: (option: IListItem) => void;
|
|
14
|
+
clear: () => void;
|
|
15
|
+
toggleShowAll: () => void;
|
|
16
|
+
isReqProc: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
showAll: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
isEnableShowAll: import("vue").Ref<boolean, boolean>;
|
|
19
|
+
labelKey: import("vue").Ref<keyof IListItem, keyof IListItem>;
|
|
20
|
+
valueKey: import("vue").Ref<keyof IListItem, keyof IListItem>;
|
|
21
|
+
allOptions: import("vue").Ref<{
|
|
22
|
+
text: string;
|
|
23
|
+
id: any;
|
|
24
|
+
count?: number | string | undefined;
|
|
25
|
+
color?: string | undefined;
|
|
26
|
+
icon?: string | undefined;
|
|
27
|
+
}[], IListItem[] | {
|
|
28
|
+
text: string;
|
|
29
|
+
id: any;
|
|
30
|
+
count?: number | string | undefined;
|
|
31
|
+
color?: string | undefined;
|
|
32
|
+
icon?: string | undefined;
|
|
33
|
+
}[]>;
|
|
34
|
+
};
|
|
35
|
+
export default useFilterRadio;
|
|
36
|
+
//# sourceMappingURL=useFilterRadio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterRadio.d.ts","sourceRoot":"","sources":["../../src/composable/useFilterRadio.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAEjF,iBAAS,cAAc,CAAC,CAAC,EACvB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,gBAAgB;;;;;;;;;;yBA6DM,SAAS,KAAG,OAAO;yBAInB,SAAS;;;;;;;;;;;;;;;;;;;;;EA+BtC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { IFilterItem, IFilterItemEmits, IListItem } from '../types/filter.ts';
|
|
2
|
+
declare function useFilterSelect<T>(props: IFilterItem, emit: IFilterItemEmits): {
|
|
3
|
+
innerValue: [T] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<T, import("vue").Ref<T, T>, T> : import("vue").Ref<import("vue").UnwrapRef<T>, T | import("vue").UnwrapRef<T>>;
|
|
4
|
+
searchTerm: import("vue").Ref<string, string>;
|
|
5
|
+
filteredOptions: import("vue").ComputedRef<{
|
|
6
|
+
text: string;
|
|
7
|
+
id: any;
|
|
8
|
+
count?: number | string | undefined;
|
|
9
|
+
color?: string | undefined;
|
|
10
|
+
icon?: string | undefined;
|
|
11
|
+
}[]>;
|
|
12
|
+
isSelected: (option: IListItem) => boolean;
|
|
13
|
+
selectItem: (option: IListItem) => void;
|
|
14
|
+
clear: () => void;
|
|
15
|
+
resetSearch: () => void;
|
|
16
|
+
toggleShowAll: () => void;
|
|
17
|
+
isReqProc: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
showAll: import("vue").Ref<boolean, boolean>;
|
|
19
|
+
isEnableShowAll: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
labelKey: import("vue").Ref<keyof IListItem, keyof IListItem>;
|
|
21
|
+
valueKey: import("vue").Ref<keyof IListItem, keyof IListItem>;
|
|
22
|
+
allOptions: import("vue").Ref<{
|
|
23
|
+
text: string;
|
|
24
|
+
id: any;
|
|
25
|
+
count?: number | string | undefined;
|
|
26
|
+
color?: string | undefined;
|
|
27
|
+
icon?: string | undefined;
|
|
28
|
+
}[], IListItem[] | {
|
|
29
|
+
text: string;
|
|
30
|
+
id: any;
|
|
31
|
+
count?: number | string | undefined;
|
|
32
|
+
color?: string | undefined;
|
|
33
|
+
icon?: string | undefined;
|
|
34
|
+
}[]>;
|
|
35
|
+
highlightedIndex: import("vue").Ref<number, number>;
|
|
36
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
37
|
+
selectedLabels: import("vue").Ref<any[], any[]>;
|
|
38
|
+
totalCount: import("vue").Ref<number, number>;
|
|
39
|
+
loadData: () => void;
|
|
40
|
+
};
|
|
41
|
+
export default useFilterSelect;
|
|
42
|
+
//# sourceMappingURL=useFilterSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterSelect.d.ts","sourceRoot":"","sources":["../../src/composable/useFilterSelect.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAEjF,iBAAS,eAAe,CAAC,CAAC,EACxB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,gBAAgB;;;;;;;;;;yBAqHM,SAAS,KAAG,OAAO;yBAOnB,SAAS;;;;;;;;;;;;;;;;;;;;;;;mBAsDf,aAAa;;;;EAgDpC;AACD,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../src/composable/useLocale.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,SAAS,QAGhC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface StyleConfig {
|
|
2
|
+
color?: string;
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
rounded?: 'md' | 'xs' | 'lg';
|
|
5
|
+
}
|
|
6
|
+
declare const _default: null;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare function useStyleText(style?: StyleConfig): import("vue").ComputedRef<string>;
|
|
9
|
+
export declare function useStyleButton(): string;
|
|
10
|
+
export declare function useStyleQuick(): string;
|
|
11
|
+
export declare function useStyleInline(mode?: string): "inline-flex relative py-2 px-4 items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent text-gray-600 hover:bg-blue-100 hover:text-gray-800 focus:outline-hidden focus:bg-gray-100 focus:text-gray-800 disabled:opacity-50 disabled:pointer-events-none dark:text-gray-500 dark:hover:bg-blue-800/30 dark:hover:text-blue-400 dark:focus:bg-blue-800/30 dark:focus:text-blue-400" | "inline-flex relative py-2 px-4 items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 hover:bg-gray-200 focus:outline-hidden focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:text-blue-400 dark:hover:bg-blue-900 dark:focus:bg-blue-900" | "relative border-solid border-gray-200 focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-input hover:bg-gray-100 border px-4 py-2 gap-2 bg-transparent h-[38px]";
|
|
12
|
+
//# sourceMappingURL=useStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStyle.d.ts","sourceRoot":"","sources":["../../src/composable/useStyle.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,IAAI,GAAE,IAAI,GAAG,IAAI,CAAC;CAC/B;;AACD,wBAAoB;AAEpB,wBAAgB,YAAY,CAAC,KAAK,GAAE,WAA+B,qCASlE;AAED,wBAAgB,cAAc,WAE7B;AAED,wBAAgB,aAAa,WAE5B;AAED,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,wnCAgB3C"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Filter } from './components/filter/filter.vue';
|
|
2
|
+
export { default as FilterField } from './components/filter-field/filter-field.vue';
|
|
3
|
+
import VsFilter from './components/filter/filter.vue';
|
|
4
|
+
export default VsFilter;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAIpF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AAOtD,eAAe,QAAQ,CAAC"}
|