@webitel/ui-datalist 1.1.45 → 1.1.47
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/_shared/createDatalistStore.ts +5 -1
- package/src/modules/card/composables/useCardComponent.ts +0 -1
- package/src/modules/card/composables/useCardValidation.ts +1 -1
- package/src/modules/card/stores/createCardStore.ts +7 -1
- package/src/modules/filter-presets/api/PresetQuery.ts +1 -1
- package/src/modules/filter-presets/components/_shared/input-fields/preset-name-field.vue +1 -2
- package/src/modules/filter-presets/components/apply-preset/apply-preset-action.vue +7 -6
- package/src/modules/filter-presets/components/save-preset/save-preset-action.vue +5 -4
- package/src/modules/filter-presets/components/save-preset/save-preset-popup.vue +0 -4
- package/src/modules/filter-presets/stores/createFilterPresetsStore.ts +7 -1
- package/src/modules/filter-presets/stores/headers/headers.ts +2 -2
- package/src/modules/filters/classes/FiltersManager.ts +5 -2
- package/src/modules/filters/components/config/dynamic-view/dynamic-filter-config-form.vue +21 -2
- package/src/modules/filters/components/config/dynamic-view/dynamic-filter-config-view.vue +1 -1
- package/src/modules/filters/components/dynamic-filter-add-action.vue +4 -2
- package/src/modules/filters/components/preview/dynamic-filter-preview.vue +11 -8
- package/src/modules/filters/components/search-bar/dynamic-filter-search.vue +3 -1
- package/src/modules/filters/components/table-filters-panel.vue +2 -2
- package/src/modules/filters/composables/useFilterConfigsToolkit.ts +7 -2
- package/src/modules/filters/createTableFiltersStore.ts +3 -2
- package/src/modules/filters/modules/filterConfig/classes/FilterConfig.ts +39 -8
- package/src/modules/filters/modules/filterConfig/classes/createFilterConfig.ts +1 -1
- package/src/modules/filters/modules/filterConfig/components/_custom/filterConfig.ts +7 -8
- package/src/modules/filters/modules/filterConfig/components/_custom/type-extension-filter-value-field.vue +27 -10
- package/src/modules/filters/modules/filterConfig/components/_custom/type-extension-filter-value-preview.vue +21 -5
- package/src/modules/filters/modules/filterConfig/components/_shared/date-time-filter/date-time-options/date-time-options-filter-value-field.vue +59 -3
- package/src/modules/filters/modules/filterConfig/components/_shared/date-time-filter/date-time-options/date-time-options-filter-value-preview.vue +13 -7
- package/src/modules/filters/modules/filterConfig/components/_shared/durations/duration-filter-value-field.vue +16 -3
- package/src/modules/filters/modules/filterConfig/components/_shared/lookup-filter-preview/lookup-filter-value-preview.vue +14 -6
- package/src/modules/filters/modules/filterConfig/components/case-actual-reaction-time/case-actual-reaction-time-filter-value-preview.vue +4 -1
- package/src/modules/filters/modules/filterConfig/components/case-actual-resolution-time/case-actual-resolution-time-filter-value-preview.vue +4 -1
- package/src/modules/filters/modules/filterConfig/components/case-assignee/case-assignee-filter-value-field.vue +16 -3
- package/src/modules/filters/modules/filterConfig/components/case-assignee/case-assignee-filter-value-preview.vue +7 -3
- package/src/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.ts +9 -5
- package/src/modules/filters/modules/filterConfig/components/case-close-reason-groups/case-close-reason-groups-filter-value-field.vue +16 -3
- package/src/modules/filters/modules/filterConfig/components/case-close-reason-groups/case-close-reason-groups-filter-value-preview.vue +2 -2
- package/src/modules/filters/modules/filterConfig/components/case-priority/case-priority-filter-value-preview.vue +2 -2
- package/src/modules/filters/modules/filterConfig/components/case-reaction-time/case-reaction-time-filter-value-preview.vue +4 -1
- package/src/modules/filters/modules/filterConfig/components/case-resolution-time/case-resolution-time-filter-value-preview.vue +4 -1
- package/src/modules/filters/modules/filterConfig/components/case-service/case-service-filter-value-field.vue +1 -1
- package/src/modules/filters/modules/filterConfig/components/case-service/case-service-filter-value-preview.vue +2 -2
- package/src/modules/filters/modules/filterConfig/components/case-sla/case-sla-filter-value-preview.vue +2 -2
- package/src/modules/filters/modules/filterConfig/components/case-sla-condition/case-sla-condition-filter-value-field.vue +16 -3
- package/src/modules/filters/modules/filterConfig/components/case-sla-condition/case-sla-condition-filter-value-preview.vue +2 -2
- package/src/modules/filters/modules/filterConfig/components/case-source/case-source-filter-value-preview.vue +2 -2
- package/src/modules/filters/modules/filterConfig/components/case-status/case-status-filter-value-field.vue +16 -3
- package/src/modules/filters/modules/filterConfig/components/case-status/case-status-filter-value-preview.vue +2 -2
- package/src/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-field.vue +19 -6
- package/src/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-preview.vue +7 -3
- package/src/modules/filters/modules/filterConfig/components/contact-group/index.ts +6 -3
- package/src/modules/filters/modules/filterConfig/components/contact-label/index.ts +14 -5
- package/src/modules/filters/modules/filterConfig/components/has-attachment/has-attachment-filter-value-field.vue +1 -1
- package/src/modules/filters/modules/filterConfig/components/index.ts +58 -57
- package/src/modules/filters/modules/filterConfig/components/rating/rating-from-to-filter-value-field.vue +16 -3
- package/src/modules/filters/modules/filterConfig/components/rating/rating-from-to-filter-value-preview.vue +4 -1
- package/src/modules/filters/modules/filterConfig/components/score/score-from-to-filter-value-field.vue +16 -3
- package/src/modules/filters/modules/filterConfig/components/score/score-from-to-filter-value-preview.vue +4 -1
- package/src/modules/filters/modules/filterConfig/components/tag/tag-filter-value-preview.vue +1 -1
- package/src/modules/filters/modules/filterConfig/components/utilization-progress/utilization-progress-filter-value-preview.vue +3 -1
- package/src/modules/filters/modules/filterConfig/composables/useQueueTypeOptions.ts +2 -2
- package/src/modules/filters/modules/filterConfig/types/DynamicFilterPreviewComponent.ts +2 -2
- package/src/modules/headers/createTableHeadersStore.ts +9 -6
- package/src/modules/pagination/createTablePaginationStore.ts +2 -1
- package/src/modules/table/createTableStore.store.ts +3 -12
- package/src/modules/types/createDatalistStore.types.ts +1 -1
- package/src/modules/types/tableStore.types.ts +12 -2
- package/types/modules/card/composables/useCardComponent.d.ts +3 -3
- package/types/modules/card/composables/useCardValidation.d.ts +1 -1
- package/types/modules/card/composables/useNestedCardComponent.d.ts +3 -3
- package/types/modules/card/stores/createCardStore.d.ts +5 -1
- package/types/modules/filter-presets/api/PresetQuery.d.ts +2 -2
- package/types/modules/filter-presets/components/_shared/input-fields/preset-name-field.vue.d.ts +1 -2
- package/types/modules/filter-presets/components/apply-preset/apply-preset-action.vue.d.ts +2 -2
- package/types/modules/filter-presets/stores/createFilterPresetsStore.d.ts +90 -16
- package/types/modules/filter-presets/stores/headers/headers.d.ts +2 -2
- package/types/modules/filters/classes/FiltersManager.d.ts +7 -2
- package/types/modules/filters/components/preview/dynamic-filter-preview.vue.d.ts +2 -3
- package/types/modules/filters/components/table-filters-panel.vue.d.ts +2 -2
- package/types/modules/filters/composables/useFilterConfigsToolkit.d.ts +6 -2
- package/types/modules/filters/createTableFiltersStore.d.ts +17 -6
- package/types/modules/filters/modules/filterConfig/classes/FilterConfig.d.ts +33 -8
- package/types/modules/filters/modules/filterConfig/classes/createFilterConfig.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/components/_custom/filterConfig.d.ts +3 -3
- package/types/modules/filters/modules/filterConfig/components/_shared/date-time-filter/date-time-options/date-time-options-filter-value-field.vue.d.ts +2 -0
- package/types/modules/filters/modules/filterConfig/components/_shared/lookup-filter-preview/lookup-filter-value-preview.vue.d.ts +1 -4
- package/types/modules/filters/modules/filterConfig/components/case-actual-reaction-time/case-actual-reaction-time-filter-value-preview.vue.d.ts +4 -1
- package/types/modules/filters/modules/filterConfig/components/case-actual-resolution-time/case-actual-resolution-time-filter-value-preview.vue.d.ts +4 -1
- package/types/modules/filters/modules/filterConfig/components/case-assignee/case-assignee-filter-value-preview.vue.d.ts +4 -2
- package/types/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.d.ts +10 -5
- package/types/modules/filters/modules/filterConfig/components/case-close-reason-groups/case-close-reason-groups-filter-value-preview.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/case-priority/case-priority-filter-value-preview.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/case-reaction-time/case-reaction-time-filter-value-preview.vue.d.ts +4 -1
- package/types/modules/filters/modules/filterConfig/components/case-resolution-time/case-resolution-time-filter-value-preview.vue.d.ts +4 -1
- package/types/modules/filters/modules/filterConfig/components/case-service/case-service-filter-value-preview.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/case-sla/case-sla-filter-value-preview.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/case-sla-condition/case-sla-condition-filter-value-preview.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/case-source/case-source-filter-value-preview.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/case-status/case-status-filter-value-preview.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-field.vue.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-preview.vue.d.ts +4 -2
- package/types/modules/filters/modules/filterConfig/components/contact-group/index.d.ts +19 -14
- package/types/modules/filters/modules/filterConfig/components/contact-label/index.d.ts +4 -2
- package/types/modules/filters/modules/filterConfig/components/has-attachment/has-attachment-filter-value-field.vue.d.ts +3 -3
- package/types/modules/filters/modules/filterConfig/components/index.d.ts +50 -39
- package/types/modules/filters/modules/filterConfig/components/rating/rating-from-to-filter-value-preview.vue.d.ts +4 -1
- package/types/modules/filters/modules/filterConfig/components/score/score-from-to-filter-value-preview.vue.d.ts +4 -1
- package/types/modules/filters/modules/filterConfig/components/utilization-progress/utilization-progress-filter-value-preview.vue.d.ts +3 -1
- package/types/modules/filters/modules/filterConfig/types/DynamicFilterPreviewComponent.d.ts +2 -2
- package/types/modules/headers/createTableHeadersStore.d.ts +66 -12
- package/types/modules/pagination/createTablePaginationStore.d.ts +2 -1
- package/types/modules/table/createTableStore.store.d.ts +93 -24
- package/types/modules/types/createDatalistStore.types.d.ts +1 -1
- package/types/modules/types/tableStore.types.d.ts +11 -2
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import type { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule
|
|
1
|
+
import type { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
3
|
|
|
4
4
|
import type { WtTableHeader } from '../../../../../src/components/wt-table/types/WtTable';
|
|
5
5
|
import type { IFiltersManager } from '../filters';
|
|
6
6
|
import type { DatalistStoreProviderType } from './StoreProvider';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Table header shape used inside the datalist stores. In addition to the
|
|
10
|
+
* base {@link WtTableHeader} shape, datalist stores key columns by `field`
|
|
11
|
+
* and may flag dynamically-appended headers for lazy initialization.
|
|
12
|
+
*/
|
|
13
|
+
export type DatalistTableHeader = WtTableHeader & {
|
|
14
|
+
field: string;
|
|
15
|
+
shouldBeInitialized?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
8
18
|
export type TrackSelectedRowBy<T> = (row: T) => T;
|
|
9
19
|
|
|
10
20
|
export interface useTableStoreConfig<Entity> {
|
|
11
21
|
apiModule: ApiModule<Entity>;
|
|
12
|
-
headers:
|
|
22
|
+
headers: DatalistTableHeader[];
|
|
13
23
|
disablePersistence?: boolean | [];
|
|
14
24
|
storeType?: DatalistStoreProviderType;
|
|
15
25
|
isAppendDataList?: boolean;
|
|
@@ -12,14 +12,14 @@ export declare const useCardComponent: <CardEntity>({ useCardStore, onLoadErrorH
|
|
|
12
12
|
*/
|
|
13
13
|
manualSetup?: boolean;
|
|
14
14
|
}) => {
|
|
15
|
-
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<CardEntity>> | import("@regle/schemas").RegleSchemaStatus<CardEntity,
|
|
15
|
+
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<CardEntity>> | import("@regle/schemas").RegleSchemaStatus<CardEntity, {}, true>["$value"]>;
|
|
16
16
|
debouncedIsLoading: Readonly<Ref<any, any>>;
|
|
17
17
|
originalItemInstance: Ref<any, any> & import("vue").ComputedRef<any>;
|
|
18
18
|
error: Ref<any, any> & import("vue").ComputedRef<any>;
|
|
19
19
|
isNew: import("vue").ComputedRef<boolean>;
|
|
20
20
|
saveText: import("vue").ComputedRef<any>;
|
|
21
|
-
hasValidationErrors: import("vue").ComputedRef<boolean | import("@regle/schemas").RegleSchemaStatus<CardEntity,
|
|
21
|
+
hasValidationErrors: import("vue").ComputedRef<boolean | import("@regle/schemas").RegleSchemaStatus<CardEntity, {}, true>["$error"]>;
|
|
22
22
|
isAnyFieldEdited: Ref<boolean, boolean>;
|
|
23
|
-
validationFields: import("vue").ComputedRef<(import("@regle/core").HasNamedKeys<CardEntity> extends true ? { readonly [TKey in keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity>]: TKey extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey]>,
|
|
23
|
+
validationFields: import("vue").ComputedRef<(import("@regle/core").HasNamedKeys<CardEntity> extends true ? { readonly [TKey in keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity>]: TKey extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey]>, {}> : never; } & { readonly [TKey_1 in keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> as TKey_1 extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey_1] extends NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey_1]> ? TKey_1 : never : never]-?: TKey_1 extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey_1]>, {}> : never; } : {}) | { [TIndex in keyof import("@regle/core").TupleToPlainObj<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>>]: TIndex extends `${infer TIndexInt extends number}` ? { [TKey_2 in keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt] as NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_2] extends import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt][TKey_2] ? TKey_2 : never]-?: import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_2], {}>; } & { [TKey_3 in keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt] as NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_3] extends import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt][TKey_3] ? never : TKey_3]?: import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_3], {}>; } : {}; }[keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never> & `${number}`]>;
|
|
24
24
|
save: () => Promise<unknown>;
|
|
25
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RegleSchema } from '@regle/schemas';
|
|
2
2
|
import { type Ref } from 'vue';
|
|
3
|
-
export declare const useCardValidation: <TState, TSchema>({ validationSchema, }: {
|
|
3
|
+
export declare const useCardValidation: <TState, TSchema = {}>({ validationSchema, }: {
|
|
4
4
|
validationSchema: Ref<RegleSchema<TState, TSchema>>;
|
|
5
5
|
}) => {
|
|
6
6
|
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<TState>> | import("@regle/schemas").RegleSchemaStatus<TState, TSchema, true>["$value"]>;
|
|
@@ -23,14 +23,14 @@ export declare const useNestedCardComponent: <CardEntity>({ useCardStore, onLoad
|
|
|
23
23
|
routeParamName: string;
|
|
24
24
|
parentId?: string;
|
|
25
25
|
}) => {
|
|
26
|
-
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<CardEntity>> | import("@regle/schemas").RegleSchemaStatus<CardEntity,
|
|
26
|
+
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<CardEntity>> | import("@regle/schemas").RegleSchemaStatus<CardEntity, {}, true>["$value"]>;
|
|
27
27
|
debouncedIsLoading: Readonly<import("vue").Ref<any, any>>;
|
|
28
28
|
originalItemInstance: import("vue").Ref<any, any> & import("vue").ComputedRef<any>;
|
|
29
29
|
error: import("vue").Ref<any, any> & import("vue").ComputedRef<any>;
|
|
30
30
|
isNew: import("vue").ComputedRef<boolean>;
|
|
31
31
|
saveText: import("vue").ComputedRef<any>;
|
|
32
|
-
hasValidationErrors: import("vue").ComputedRef<boolean | import("@regle/schemas").RegleSchemaStatus<CardEntity,
|
|
32
|
+
hasValidationErrors: import("vue").ComputedRef<boolean | import("@regle/schemas").RegleSchemaStatus<CardEntity, {}, true>["$error"]>;
|
|
33
33
|
isAnyFieldEdited: import("vue").Ref<boolean, boolean>;
|
|
34
|
-
validationFields: import("vue").ComputedRef<(import("@regle/core").HasNamedKeys<CardEntity> extends true ? { readonly [TKey in keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity>]: TKey extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey]>,
|
|
34
|
+
validationFields: import("vue").ComputedRef<(import("@regle/core").HasNamedKeys<CardEntity> extends true ? { readonly [TKey in keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity>]: TKey extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey]>, {}> : never; } & { readonly [TKey_1 in keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> as TKey_1 extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey_1] extends NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey_1]> ? TKey_1 : never : never]-?: TKey_1 extends keyof import("@regle/core").JoinDiscriminatedUnions<CardEntity> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<CardEntity>[TKey_1]>, {}> : never; } : {}) | { [TIndex in keyof import("@regle/core").TupleToPlainObj<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>>]: TIndex extends `${infer TIndexInt extends number}` ? { [TKey_2 in keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt] as NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_2] extends import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt][TKey_2] ? TKey_2 : never]-?: import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_2], {}>; } & { [TKey_3 in keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt] as NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_3] extends import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt][TKey_3] ? never : TKey_3]?: import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never>[TIndexInt]>[TKey_3], {}>; } : {}; }[keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never> & `${number}`]>;
|
|
35
35
|
save: () => Promise<unknown>;
|
|
36
36
|
};
|
|
@@ -2,7 +2,11 @@ import { type RegleSchemaBehaviourOptions } from '@regle/schemas';
|
|
|
2
2
|
import type { ApiModule } from '@webitel/ui-sdk/src/api/types/ApiModule';
|
|
3
3
|
import type { z } from 'zod/v4';
|
|
4
4
|
import type { CardItemId } from '../types/CardStore.types';
|
|
5
|
-
export declare const createCardStore: <Entity
|
|
5
|
+
export declare const createCardStore: <Entity extends {
|
|
6
|
+
id?: string | number;
|
|
7
|
+
} = {
|
|
8
|
+
id?: string | number;
|
|
9
|
+
}>({ namespace, apiModule, standardValidationSchema, validationSchemaOptions, }: {
|
|
6
10
|
namespace: string;
|
|
7
11
|
standardValidationSchema: z.ZodType;
|
|
8
12
|
apiModule: ApiModule<Entity>;
|
|
@@ -4,7 +4,7 @@ type GetPresetListRequestConfig = {
|
|
|
4
4
|
useStarToSearch?: boolean;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
|
-
declare const getPresetList: (params: any, config
|
|
7
|
+
declare const getPresetList: (params: any, config?: GetPresetListRequestConfig) => Promise<{
|
|
8
8
|
items: any;
|
|
9
9
|
next: any;
|
|
10
10
|
}>;
|
|
@@ -21,7 +21,7 @@ declare const deletePreset: ({ id }: {
|
|
|
21
21
|
id: any;
|
|
22
22
|
}) => Promise<any>;
|
|
23
23
|
declare const PresetQueryAPI: {
|
|
24
|
-
getList: (params: any, config
|
|
24
|
+
getList: (params: any, config?: GetPresetListRequestConfig) => Promise<{
|
|
25
25
|
items: any;
|
|
26
26
|
next: any;
|
|
27
27
|
}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StoreGeneric } from 'pinia';
|
|
2
2
|
import { AnyFilterConfig } from '../../../filters/modules/filterConfig/classes/FilterConfig';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/**
|
|
5
5
|
* presets "section" namespace
|
|
6
6
|
*/
|
|
7
7
|
namespace: string;
|
|
8
|
-
presetsStore:
|
|
8
|
+
presetsStore: StoreGeneric;
|
|
9
9
|
filterConfigs: AnyFilterConfig[];
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -11,11 +11,38 @@ export declare const filterPresetsStoreBody: (namespace?: string) => {
|
|
|
11
11
|
page: import("vue").Ref<number, number>;
|
|
12
12
|
size: import("vue").Ref<number, number>;
|
|
13
13
|
next: import("vue").Ref<boolean, boolean>;
|
|
14
|
-
headers: import("vue").Ref<
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
headers: import("vue").Ref<{
|
|
15
|
+
value: string;
|
|
16
|
+
locale?: string | [string];
|
|
17
|
+
text?: string;
|
|
18
|
+
width?: string;
|
|
19
|
+
sort?: boolean;
|
|
20
|
+
show?: boolean;
|
|
21
|
+
field: string;
|
|
22
|
+
shouldBeInitialized?: boolean;
|
|
23
|
+
}[], import("../../types/tableStore.types").DatalistTableHeader[] | {
|
|
24
|
+
value: string;
|
|
25
|
+
locale?: string | [string];
|
|
26
|
+
text?: string;
|
|
27
|
+
width?: string;
|
|
28
|
+
sort?: boolean;
|
|
29
|
+
show?: boolean;
|
|
30
|
+
field: string;
|
|
31
|
+
shouldBeInitialized?: boolean;
|
|
32
|
+
}[]>;
|
|
33
|
+
shownHeaders: import("vue").ComputedRef<{
|
|
34
|
+
value: string;
|
|
35
|
+
locale?: string | [string];
|
|
36
|
+
text?: string;
|
|
37
|
+
width?: string;
|
|
38
|
+
sort?: boolean;
|
|
39
|
+
show?: boolean;
|
|
40
|
+
field: string;
|
|
41
|
+
shouldBeInitialized?: boolean;
|
|
42
|
+
}[]>;
|
|
43
|
+
fields: import("vue").ComputedRef<string[]>;
|
|
17
44
|
sort: import("vue").ComputedRef<string>;
|
|
18
|
-
columnWidths: import("vue").ComputedRef<
|
|
45
|
+
columnWidths: import("vue").ComputedRef<{}>;
|
|
19
46
|
searchMode: import("vue").Ref<string, string>;
|
|
20
47
|
filtersManager: import("vue").Ref<{
|
|
21
48
|
filters: Map<string, {
|
|
@@ -32,8 +59,13 @@ export declare const filterPresetsStoreBody: (namespace?: string) => {
|
|
|
32
59
|
value?: import("../../filters").FilterValue;
|
|
33
60
|
label?: import("../../filters").FilterLabel;
|
|
34
61
|
}) => import("../../filters").IFilter;
|
|
35
|
-
deleteFilter: (name:
|
|
36
|
-
|
|
62
|
+
deleteFilter: ({ name }: {
|
|
63
|
+
name: import("../../filters").FilterName;
|
|
64
|
+
}) => import("../../filters").IFilter;
|
|
65
|
+
toString: (options?: {
|
|
66
|
+
include?: import("../../filters").FilterName[];
|
|
67
|
+
exclude?: import("../../filters").FilterName[];
|
|
68
|
+
}) => string;
|
|
37
69
|
fromString: (snapshotStr: string) => void;
|
|
38
70
|
reset: ({ include, exclude, }?: {
|
|
39
71
|
include?: import("../../filters").FilterName[];
|
|
@@ -65,8 +97,13 @@ export declare const filterPresetsStoreBody: (namespace?: string) => {
|
|
|
65
97
|
value?: import("../../filters").FilterValue;
|
|
66
98
|
label?: import("../../filters").FilterLabel;
|
|
67
99
|
}) => import("../../filters").IFilter;
|
|
68
|
-
deleteFilter: (name:
|
|
69
|
-
|
|
100
|
+
deleteFilter: ({ name }: {
|
|
101
|
+
name: import("../../filters").FilterName;
|
|
102
|
+
}) => import("../../filters").IFilter;
|
|
103
|
+
toString: (options?: {
|
|
104
|
+
include?: import("../../filters").FilterName[];
|
|
105
|
+
exclude?: import("../../filters").FilterName[];
|
|
106
|
+
}) => string;
|
|
70
107
|
fromString: (snapshotStr: string) => void;
|
|
71
108
|
reset: ({ include, exclude, }?: {
|
|
72
109
|
include?: import("../../filters").FilterName[];
|
|
@@ -124,11 +161,38 @@ export declare const createFilterPresetsStore: (namespace: string) => () => {
|
|
|
124
161
|
page: import("vue").Ref<number, number>;
|
|
125
162
|
size: import("vue").Ref<number, number>;
|
|
126
163
|
next: import("vue").Ref<boolean, boolean>;
|
|
127
|
-
headers: import("vue").Ref<
|
|
128
|
-
|
|
129
|
-
|
|
164
|
+
headers: import("vue").Ref<{
|
|
165
|
+
value: string;
|
|
166
|
+
locale?: string | [string];
|
|
167
|
+
text?: string;
|
|
168
|
+
width?: string;
|
|
169
|
+
sort?: boolean;
|
|
170
|
+
show?: boolean;
|
|
171
|
+
field: string;
|
|
172
|
+
shouldBeInitialized?: boolean;
|
|
173
|
+
}[], import("../../types/tableStore.types").DatalistTableHeader[] | {
|
|
174
|
+
value: string;
|
|
175
|
+
locale?: string | [string];
|
|
176
|
+
text?: string;
|
|
177
|
+
width?: string;
|
|
178
|
+
sort?: boolean;
|
|
179
|
+
show?: boolean;
|
|
180
|
+
field: string;
|
|
181
|
+
shouldBeInitialized?: boolean;
|
|
182
|
+
}[]>;
|
|
183
|
+
shownHeaders: import("vue").ComputedRef<{
|
|
184
|
+
value: string;
|
|
185
|
+
locale?: string | [string];
|
|
186
|
+
text?: string;
|
|
187
|
+
width?: string;
|
|
188
|
+
sort?: boolean;
|
|
189
|
+
show?: boolean;
|
|
190
|
+
field: string;
|
|
191
|
+
shouldBeInitialized?: boolean;
|
|
192
|
+
}[]>;
|
|
193
|
+
fields: import("vue").ComputedRef<string[]>;
|
|
130
194
|
sort: import("vue").ComputedRef<string>;
|
|
131
|
-
columnWidths: import("vue").ComputedRef<
|
|
195
|
+
columnWidths: import("vue").ComputedRef<{}>;
|
|
132
196
|
searchMode: import("vue").Ref<string, string>;
|
|
133
197
|
filtersManager: import("vue").Ref<{
|
|
134
198
|
filters: Map<string, {
|
|
@@ -145,8 +209,13 @@ export declare const createFilterPresetsStore: (namespace: string) => () => {
|
|
|
145
209
|
value?: import("../../filters").FilterValue;
|
|
146
210
|
label?: import("../../filters").FilterLabel;
|
|
147
211
|
}) => import("../../filters").IFilter;
|
|
148
|
-
deleteFilter: (name:
|
|
149
|
-
|
|
212
|
+
deleteFilter: ({ name }: {
|
|
213
|
+
name: import("../../filters").FilterName;
|
|
214
|
+
}) => import("../../filters").IFilter;
|
|
215
|
+
toString: (options?: {
|
|
216
|
+
include?: import("../../filters").FilterName[];
|
|
217
|
+
exclude?: import("../../filters").FilterName[];
|
|
218
|
+
}) => string;
|
|
150
219
|
fromString: (snapshotStr: string) => void;
|
|
151
220
|
reset: ({ include, exclude, }?: {
|
|
152
221
|
include?: import("../../filters").FilterName[];
|
|
@@ -178,8 +247,13 @@ export declare const createFilterPresetsStore: (namespace: string) => () => {
|
|
|
178
247
|
value?: import("../../filters").FilterValue;
|
|
179
248
|
label?: import("../../filters").FilterLabel;
|
|
180
249
|
}) => import("../../filters").IFilter;
|
|
181
|
-
deleteFilter: (name:
|
|
182
|
-
|
|
250
|
+
deleteFilter: ({ name }: {
|
|
251
|
+
name: import("../../filters").FilterName;
|
|
252
|
+
}) => import("../../filters").IFilter;
|
|
253
|
+
toString: (options?: {
|
|
254
|
+
include?: import("../../filters").FilterName[];
|
|
255
|
+
exclude?: import("../../filters").FilterName[];
|
|
256
|
+
}) => string;
|
|
183
257
|
fromString: (snapshotStr: string) => void;
|
|
184
258
|
reset: ({ include, exclude, }?: {
|
|
185
259
|
include?: import("../../filters").FilterName[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const headers:
|
|
1
|
+
import type { DatalistTableHeader } from '../../../types/tableStore.types';
|
|
2
|
+
export declare const headers: DatalistTableHeader[];
|
|
@@ -9,11 +9,16 @@ export interface IFiltersManager {
|
|
|
9
9
|
value?: FilterValue;
|
|
10
10
|
label?: FilterLabel;
|
|
11
11
|
}) => IFilter;
|
|
12
|
-
deleteFilter: (name:
|
|
12
|
+
deleteFilter: ({ name }: {
|
|
13
|
+
name: FilterName;
|
|
14
|
+
}) => IFilter;
|
|
13
15
|
/**
|
|
14
16
|
* Converts filters data to String, that can be stored
|
|
15
17
|
*/
|
|
16
|
-
toString: (
|
|
18
|
+
toString: (options?: {
|
|
19
|
+
include?: FilterName[];
|
|
20
|
+
exclude?: FilterName[];
|
|
21
|
+
}) => string;
|
|
17
22
|
/**
|
|
18
23
|
* Restores filters from string
|
|
19
24
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IFilter } from '../../classes/Filter';
|
|
2
1
|
import { DynamicFilterProps } from '../types/Filter.types';
|
|
3
2
|
declare var __VLS_38: {}, __VLS_51: {
|
|
4
3
|
hide: any;
|
|
@@ -10,10 +9,10 @@ type __VLS_Slots = {} & {
|
|
|
10
9
|
};
|
|
11
10
|
declare const __VLS_base: import("vue").DefineComponent<DynamicFilterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
11
|
"update:filter": (args_0: import("../../classes/Filter").FilterData) => any;
|
|
13
|
-
"delete:filter": (args_0: IFilter) => any;
|
|
12
|
+
"delete:filter": (args_0: import("../..").IFilter) => any;
|
|
14
13
|
}, string, import("vue").PublicProps, Readonly<DynamicFilterProps> & Readonly<{
|
|
15
14
|
"onUpdate:filter"?: (args_0: import("../../classes/Filter").FilterData) => any;
|
|
16
|
-
"onDelete:filter"?: (args_0: IFilter) => any;
|
|
15
|
+
"onDelete:filter"?: (args_0: import("../..").IFilter) => any;
|
|
17
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoreGeneric } from 'pinia';
|
|
2
2
|
import { WebitelProtoDataField } from 'webitel-sdk';
|
|
3
3
|
import { FilterData, IFilter } from '../classes/Filter';
|
|
4
4
|
import { IFiltersManager } from '../classes/FiltersManager';
|
|
@@ -45,7 +45,7 @@ type Props = {
|
|
|
45
45
|
*
|
|
46
46
|
* TODO: https://github.com/webitel/webitel-ui-sdk/pull/551
|
|
47
47
|
*/
|
|
48
|
-
usePresetsStore?:
|
|
48
|
+
usePresetsStore?: () => StoreGeneric;
|
|
49
49
|
/**
|
|
50
50
|
* @author @Lera24
|
|
51
51
|
* @description
|
|
@@ -22,11 +22,15 @@ export type FilterConfigToolkit = {
|
|
|
22
22
|
filterConfig: BaseFilterConfig;
|
|
23
23
|
filter: IFilter;
|
|
24
24
|
}>>;
|
|
25
|
+
staticViewFilterToFilterConfigMappings: ComputedRef<Array<{
|
|
26
|
+
filterConfig: BaseFilterConfig;
|
|
27
|
+
filter: IFilter;
|
|
28
|
+
}>>;
|
|
25
29
|
};
|
|
26
30
|
export type FilterConfigToolkitParams = {
|
|
27
31
|
filterOptions: (FilterOption | BaseFilterConfig)[];
|
|
28
32
|
filtersManager: IFiltersManager;
|
|
29
|
-
filterableExtensionFields
|
|
33
|
+
filterableExtensionFields?: WebitelProtoDataField[];
|
|
30
34
|
staticMode?: boolean;
|
|
31
35
|
};
|
|
32
|
-
export declare const useFilterConfigsToolkit: ({ filterOptions, filtersManager, filterableExtensionFields,
|
|
36
|
+
export declare const useFilterConfigsToolkit: ({ filterOptions, filtersManager, filterableExtensionFields, }: FilterConfigToolkitParams) => FilterConfigToolkit;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Identifiable } from '../types/createDatalistStore.types';
|
|
1
2
|
import type { useTableStoreConfig } from '../types/tableStore.types';
|
|
2
3
|
import { type FiltersManagerConfig } from './classes/FiltersManager';
|
|
3
4
|
export declare const tableFiltersStoreBody: (namespace: any, config?: {
|
|
4
|
-
filtersManagerConfig
|
|
5
|
+
filtersManagerConfig?: FiltersManagerConfig;
|
|
5
6
|
}) => {
|
|
6
7
|
filtersManager: {
|
|
7
8
|
filters: Map<string, {
|
|
@@ -18,8 +19,13 @@ export declare const tableFiltersStoreBody: (namespace: any, config?: {
|
|
|
18
19
|
value?: import(".").FilterValue;
|
|
19
20
|
label?: import(".").FilterLabel;
|
|
20
21
|
}) => import(".").IFilter;
|
|
21
|
-
deleteFilter: (name:
|
|
22
|
-
|
|
22
|
+
deleteFilter: ({ name }: {
|
|
23
|
+
name: import(".").FilterName;
|
|
24
|
+
}) => import(".").IFilter;
|
|
25
|
+
toString: (options?: {
|
|
26
|
+
include?: import(".").FilterName[];
|
|
27
|
+
exclude?: import(".").FilterName[];
|
|
28
|
+
}) => string;
|
|
23
29
|
fromString: (snapshotStr: string) => void;
|
|
24
30
|
reset: ({ include, exclude, }?: {
|
|
25
31
|
include?: import(".").FilterName[];
|
|
@@ -47,7 +53,7 @@ export declare const tableFiltersStoreBody: (namespace: any, config?: {
|
|
|
47
53
|
updateSearchMode: (newSearch: string) => void;
|
|
48
54
|
setupPersistence: () => Promise<[void, void]>;
|
|
49
55
|
};
|
|
50
|
-
export declare const createTableFiltersStore: <Entity>(namespace: string, config: useTableStoreConfig<Entity> & {
|
|
56
|
+
export declare const createTableFiltersStore: <Entity extends Identifiable>(namespace: string, config: useTableStoreConfig<Entity> & {
|
|
51
57
|
filtersManagerConfig?: FiltersManagerConfig;
|
|
52
58
|
}) => import("../types/createDatalistStore.types").PatchableStoreFactory<{
|
|
53
59
|
filtersManager: {
|
|
@@ -65,8 +71,13 @@ export declare const createTableFiltersStore: <Entity>(namespace: string, config
|
|
|
65
71
|
value?: import(".").FilterValue;
|
|
66
72
|
label?: import(".").FilterLabel;
|
|
67
73
|
}) => import(".").IFilter;
|
|
68
|
-
deleteFilter: (name:
|
|
69
|
-
|
|
74
|
+
deleteFilter: ({ name }: {
|
|
75
|
+
name: import(".").FilterName;
|
|
76
|
+
}) => import(".").IFilter;
|
|
77
|
+
toString: (options?: {
|
|
78
|
+
include?: import(".").FilterName[];
|
|
79
|
+
exclude?: import(".").FilterName[];
|
|
80
|
+
}) => string;
|
|
70
81
|
fromString: (snapshotStr: string) => void;
|
|
71
82
|
reset: ({ include, exclude, }?: {
|
|
72
83
|
include?: import(".").FilterName[];
|
|
@@ -13,10 +13,11 @@ export type FilterConfigBaseParams = {
|
|
|
13
13
|
valueInputComponent?: Component;
|
|
14
14
|
valuePreviewComponent?: Component;
|
|
15
15
|
notDeletable?: boolean;
|
|
16
|
-
showFilterName
|
|
16
|
+
showFilterName?: boolean;
|
|
17
|
+
staticView?: boolean;
|
|
17
18
|
};
|
|
18
19
|
export interface IWtSysTypeFilterConfig extends BaseFilterConfig {
|
|
19
|
-
searchRecords: (params: FilterConfigSearchMethodParams) => Promise<{
|
|
20
|
+
searchRecords: (...params: FilterConfigSearchMethodParams) => Promise<{
|
|
20
21
|
items: unknown[];
|
|
21
22
|
next?: boolean;
|
|
22
23
|
}>;
|
|
@@ -32,12 +33,33 @@ export type FilterConfigSearchMethodParams = [
|
|
|
32
33
|
* filter-related data
|
|
33
34
|
*/
|
|
34
35
|
{
|
|
35
|
-
filterName
|
|
36
|
-
filterValue
|
|
37
|
-
filterConfig
|
|
38
|
-
}
|
|
36
|
+
filterName?: FilterName;
|
|
37
|
+
filterValue?: FilterValue;
|
|
38
|
+
filterConfig?: BaseFilterConfig;
|
|
39
|
+
}?
|
|
39
40
|
];
|
|
40
41
|
export type AnyFilterConfig = IWtSysTypeFilterConfig | BaseFilterConfig;
|
|
42
|
+
/**
|
|
43
|
+
* Loose shapes forwarded into filter-config lookup calls by
|
|
44
|
+
* dynamic-filter-preview.vue and wt-select options loading. The callers pass
|
|
45
|
+
* heterogeneous request params, so these stay permissive on purpose.
|
|
46
|
+
*/
|
|
47
|
+
export type FilterConfigSearchRequestParams = {
|
|
48
|
+
/** arrives as a scalar id, a list of ids, or a `{ list }` wrapper */
|
|
49
|
+
id?: any;
|
|
50
|
+
size?: number;
|
|
51
|
+
} & Record<string, any>;
|
|
52
|
+
export type FilterConfigListFilterValue = {
|
|
53
|
+
list?: Array<{
|
|
54
|
+
id?: string | number;
|
|
55
|
+
} & Record<string, any>>;
|
|
56
|
+
unassigned?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type FilterConfigSearchFilterContext = {
|
|
59
|
+
filterName?: FilterName;
|
|
60
|
+
filterValue?: FilterConfigListFilterValue;
|
|
61
|
+
filterConfig?: BaseFilterConfig;
|
|
62
|
+
};
|
|
41
63
|
export declare class FilterConfig implements BaseFilterConfig {
|
|
42
64
|
name: FilterName;
|
|
43
65
|
valueInputComponent: Component;
|
|
@@ -56,6 +78,9 @@ export declare class FilterConfig implements BaseFilterConfig {
|
|
|
56
78
|
* classes in future
|
|
57
79
|
*/
|
|
58
80
|
export declare abstract class WtSysTypeFilterConfig extends FilterConfig implements IWtSysTypeFilterConfig {
|
|
59
|
-
abstract name:
|
|
60
|
-
abstract searchRecords:
|
|
81
|
+
abstract name: FilterName;
|
|
82
|
+
abstract searchRecords(...args: unknown[]): Promise<{
|
|
83
|
+
items: unknown[];
|
|
84
|
+
next?: boolean;
|
|
85
|
+
}>;
|
|
61
86
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type BaseFilterConfig, type FilterConfigBaseParams } from './FilterConfig';
|
|
2
|
-
export declare const createFilterConfig: (params: FilterConfigBaseParams & Required<BaseFilterConfig, "name"
|
|
2
|
+
export declare const createFilterConfig: (params: FilterConfigBaseParams & Required<Pick<BaseFilterConfig, "name">> & Record<string, unknown>) => BaseFilterConfig;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { WebitelProtoDataField } from 'webitel-sdk';
|
|
2
|
+
import type { BaseFilterConfig, FilterConfigBaseParams, IWtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
2
3
|
import { FilterConfig } from '../../classes/FilterConfig';
|
|
3
|
-
import type { CustomFilterOption } from '../../enums/FilterOption';
|
|
4
|
-
import type { BaseFilterConfig, FilterConfigBaseParams, IWtSysTypeFilterConfig } from '../../types/FilterConfig';
|
|
5
4
|
export interface ITypeExtensionFilterConfig extends BaseFilterConfig {
|
|
6
5
|
readonly field: WebitelProtoDataField;
|
|
6
|
+
searchRecords?: IWtSysTypeFilterConfig['searchRecords'];
|
|
7
7
|
}
|
|
8
8
|
declare class TypeExtensionFilterConfig extends FilterConfig implements ITypeExtensionFilterConfig {
|
|
9
9
|
readonly field: WebitelProtoDataField;
|
|
@@ -21,6 +21,6 @@ declare class TypeExtensionWtSysTypeFieldFilterConfig extends TypeExtensionFilte
|
|
|
21
21
|
}>;
|
|
22
22
|
}
|
|
23
23
|
export type { TypeExtensionFilterConfig, TypeExtensionWtSysTypeFieldFilterConfig, };
|
|
24
|
-
export declare const createTypeExtensionFilterConfig: (
|
|
24
|
+
export declare const createTypeExtensionFilterConfig: (params: FilterConfigBaseParams, { field, }: {
|
|
25
25
|
field: WebitelProtoDataField;
|
|
26
26
|
}) => TypeExtensionFilterConfig;
|
|
@@ -10,11 +10,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
10
10
|
from: number;
|
|
11
11
|
to: number;
|
|
12
12
|
}) => any;
|
|
13
|
+
"update:invalid": (args_0: boolean) => any;
|
|
13
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
14
15
|
"onUpdate:modelValue"?: (value: RelativeDatetimeValue | {
|
|
15
16
|
from: number;
|
|
16
17
|
to: number;
|
|
17
18
|
}) => any;
|
|
19
|
+
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
18
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
21
|
declare const _default: typeof __VLS_export;
|
|
20
22
|
export default _default;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
* would be great to use a type for this
|
|
4
|
-
* */
|
|
5
|
-
value: Record<string, unknown>[];
|
|
2
|
+
value: unknown;
|
|
6
3
|
};
|
|
7
4
|
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>;
|
|
8
5
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
value:
|
|
2
|
+
value: {
|
|
3
|
+
from: number | null;
|
|
4
|
+
to: number | null;
|
|
5
|
+
};
|
|
3
6
|
};
|
|
4
7
|
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>;
|
|
5
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
value:
|
|
2
|
+
value: {
|
|
3
|
+
from: number | null;
|
|
4
|
+
to: number | null;
|
|
5
|
+
};
|
|
3
6
|
};
|
|
4
7
|
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>;
|
|
5
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { WebitelContactsContact } from 'webitel-sdk';
|
|
2
1
|
import { IFilter } from '../../../../classes/Filter';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
value:
|
|
3
|
+
value: Array<{
|
|
4
|
+
id?: string | number;
|
|
5
|
+
name?: string;
|
|
6
|
+
}>;
|
|
5
7
|
filter: IFilter;
|
|
6
8
|
};
|
|
7
9
|
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>;
|
package/types/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
1
|
+
import { type FilterConfigSearchFilterContext, type FilterConfigSearchRequestParams, WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
3
2
|
declare class CaseAssigneeFilterConfig extends WtSysTypeFilterConfig {
|
|
4
3
|
readonly name: "assignee";
|
|
5
4
|
valueInputComponent: import("vue").DefineComponent<{
|
|
@@ -30,13 +29,19 @@ declare class CaseAssigneeFilterConfig extends WtSysTypeFilterConfig {
|
|
|
30
29
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
31
30
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
31
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
33
|
-
value:
|
|
32
|
+
value: Array<{
|
|
33
|
+
id?: string | number;
|
|
34
|
+
name?: string;
|
|
35
|
+
}>;
|
|
34
36
|
filter: import("../../../..").IFilter;
|
|
35
37
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
36
|
-
value:
|
|
38
|
+
value: Array<{
|
|
39
|
+
id?: string | number;
|
|
40
|
+
name?: string;
|
|
41
|
+
}>;
|
|
37
42
|
filter: import("../../../..").IFilter;
|
|
38
43
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
-
searchRecords(params:
|
|
44
|
+
searchRecords(params: FilterConfigSearchRequestParams, { filterValue }?: FilterConfigSearchFilterContext): Promise<{
|
|
40
45
|
items: unknown[];
|
|
41
46
|
next?: boolean;
|
|
42
47
|
}>;
|