@webitel/ui-datalist 26.8.25 → 26.8.27
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/package.json +1 -1
- package/src/modules/card/composables/__tests__/useCardValidation.spec.ts +43 -2
- package/src/modules/filters/composables/useVariableColumnFilters.ts +69 -37
- package/src/modules/filters/modules/filterConfig/components/variable/variable-filter-value-preview.vue +5 -1
- package/src/modules/filters/modules/filterConfig/components/variable/variable-key-filter-value-field.vue +99 -0
- package/src/modules/filters/modules/filterConfig/components/variable/variable-key-filter-value-preview.vue +24 -0
- package/src/modules/filters/modules/filterConfig/components/variable/variableKeyFilterConfig.ts +48 -0
- package/types/.tsbuildinfo +1 -1
- package/types/modules/filters/composables/useVariableColumnFilters.d.ts +3 -0
- package/types/modules/filters/modules/filterConfig/components/variable/variable-key-filter-value-field.vue.d.ts +24 -0
- package/types/modules/filters/modules/filterConfig/components/variable/variable-key-filter-value-preview.vue.d.ts +8 -0
- package/types/modules/filters/modules/filterConfig/components/variable/variableKeyFilterConfig.d.ts +21 -0
|
@@ -3,6 +3,7 @@ import type { WtTableHeader } from '@webitel/ui-sdk/components/wt-table/types/Wt
|
|
|
3
3
|
import { type MaybeRefOrGetter } from 'vue';
|
|
4
4
|
import type { FilterInitParams, FilterName, IFilter } from '../classes/Filter';
|
|
5
5
|
import type { IFiltersManager } from '../classes/FiltersManager';
|
|
6
|
+
import { VariableKeyFilterConfig } from '../modules/filterConfig/components/variable/variableKeyFilterConfig';
|
|
6
7
|
export declare const useVariableColumnFilters: ({ shownHeaders, filtersManager, addFilter, updateFilter, deleteFilter, }: {
|
|
7
8
|
shownHeaders: MaybeRefOrGetter<WtTableHeader[] | undefined>;
|
|
8
9
|
filtersManager: MaybeRefOrGetter<IFiltersManager>;
|
|
@@ -13,6 +14,8 @@ export declare const useVariableColumnFilters: ({ shownHeaders, filtersManager,
|
|
|
13
14
|
}) => IFilter | undefined;
|
|
14
15
|
}) => {
|
|
15
16
|
variableFilterFields: import("vue").ComputedRef<DataField[]>;
|
|
17
|
+
variableFilterConfigs: import("vue").ComputedRef<VariableKeyFilterConfig[]>;
|
|
16
18
|
handleAddFilter: (params: FilterInitParams) => void;
|
|
17
19
|
handleUpdateFilter: (params: FilterInitParams) => void;
|
|
20
|
+
handlePanelUpdateFilter: (params: FilterInitParams) => void;
|
|
18
21
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type IVariableKeyFilterConfig, type VariableKeyFilterValue } from './variableKeyFilterConfig';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
filterConfig: IVariableKeyFilterConfig;
|
|
4
|
+
disableValidation?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: string | VariableKeyFilterValue;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:invalid": (args_0: boolean) => any;
|
|
12
|
+
"update:modelValue": (value: string | {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string;
|
|
15
|
+
} | undefined) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:invalid"?: ((args_0: boolean) => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((value: string | {
|
|
19
|
+
key: string;
|
|
20
|
+
value: string;
|
|
21
|
+
} | undefined) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IVariableKeyFilterConfig } from './variableKeyFilterConfig';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
filterConfig: IVariableKeyFilterConfig;
|
|
4
|
+
value?: unknown;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
package/types/modules/filters/modules/filterConfig/components/variable/variableKeyFilterConfig.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import type { FilterName, FilterValue } from '../../../../classes/Filter';
|
|
3
|
+
import type { BaseFilterConfig } from '../../classes/FilterConfig';
|
|
4
|
+
import { FilterConfig } from '../../classes/FilterConfig';
|
|
5
|
+
export interface IVariableKeyFilterConfig extends BaseFilterConfig {
|
|
6
|
+
readonly variableKey: string;
|
|
7
|
+
}
|
|
8
|
+
declare const variableKeyValueSchema: z.ZodObject<{
|
|
9
|
+
key: z.ZodString;
|
|
10
|
+
value: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type VariableKeyFilterValue = z.infer<typeof variableKeyValueSchema>;
|
|
13
|
+
export declare const isVariableKeyFilterValue: (value: FilterValue) => value is VariableKeyFilterValue;
|
|
14
|
+
export declare class VariableKeyFilterConfig extends FilterConfig implements IVariableKeyFilterConfig {
|
|
15
|
+
readonly variableKey: string;
|
|
16
|
+
constructor({ name, label, }: {
|
|
17
|
+
name: FilterName;
|
|
18
|
+
label: string;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export {};
|