@webitel/ui-datalist 1.1.46 → 1.1.48

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.
Files changed (117) hide show
  1. package/package.json +2 -1
  2. package/src/modules/_shared/createDatalistStore.ts +5 -1
  3. package/src/modules/card/composables/useCardComponent.ts +0 -1
  4. package/src/modules/card/composables/useCardValidation.ts +1 -1
  5. package/src/modules/card/stores/createCardStore.ts +7 -1
  6. package/src/modules/filter-presets/api/PresetQuery.ts +1 -1
  7. package/src/modules/filter-presets/components/_shared/input-fields/preset-name-field.vue +1 -2
  8. package/src/modules/filter-presets/components/apply-preset/apply-preset-action.vue +7 -6
  9. package/src/modules/filter-presets/components/save-preset/save-preset-action.vue +5 -4
  10. package/src/modules/filter-presets/components/save-preset/save-preset-popup.vue +0 -4
  11. package/src/modules/filter-presets/stores/createFilterPresetsStore.ts +7 -1
  12. package/src/modules/filter-presets/stores/headers/headers.ts +2 -2
  13. package/src/modules/filters/classes/FiltersManager.ts +5 -2
  14. package/src/modules/filters/components/config/dynamic-view/dynamic-filter-config-form.vue +20 -1
  15. package/src/modules/filters/components/config/dynamic-view/dynamic-filter-config-view.vue +1 -1
  16. package/src/modules/filters/components/dynamic-filter-add-action.vue +4 -2
  17. package/src/modules/filters/components/preview/dynamic-filter-preview.vue +11 -8
  18. package/src/modules/filters/components/search-bar/dynamic-filter-search.vue +3 -1
  19. package/src/modules/filters/components/table-filters-panel.vue +2 -2
  20. package/src/modules/filters/composables/useFilterConfigsToolkit.ts +7 -2
  21. package/src/modules/filters/createTableFiltersStore.ts +3 -2
  22. package/src/modules/filters/modules/filterConfig/classes/FilterConfig.ts +39 -8
  23. package/src/modules/filters/modules/filterConfig/classes/createFilterConfig.ts +1 -1
  24. package/src/modules/filters/modules/filterConfig/components/_custom/filterConfig.ts +7 -8
  25. package/src/modules/filters/modules/filterConfig/components/_custom/type-extension-filter-value-field.vue +27 -10
  26. package/src/modules/filters/modules/filterConfig/components/_custom/type-extension-filter-value-preview.vue +21 -5
  27. package/src/modules/filters/modules/filterConfig/components/_shared/date-time-filter/date-time-filter-value-field.vue +46 -1
  28. package/src/modules/filters/modules/filterConfig/components/_shared/date-time-filter/date-time-options/date-time-options-filter-value-field.vue +59 -3
  29. package/src/modules/filters/modules/filterConfig/components/_shared/date-time-filter/date-time-options/date-time-options-filter-value-preview.vue +13 -7
  30. package/src/modules/filters/modules/filterConfig/components/_shared/durations/duration-filter-value-field.vue +16 -3
  31. package/src/modules/filters/modules/filterConfig/components/_shared/lookup-filter-preview/lookup-filter-value-preview.vue +14 -6
  32. package/src/modules/filters/modules/filterConfig/components/case-actual-reaction-time/case-actual-reaction-time-filter-value-preview.vue +4 -1
  33. package/src/modules/filters/modules/filterConfig/components/case-actual-resolution-time/case-actual-resolution-time-filter-value-preview.vue +4 -1
  34. package/src/modules/filters/modules/filterConfig/components/case-assignee/case-assignee-filter-value-field.vue +16 -3
  35. package/src/modules/filters/modules/filterConfig/components/case-assignee/case-assignee-filter-value-preview.vue +7 -3
  36. package/src/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.ts +9 -5
  37. package/src/modules/filters/modules/filterConfig/components/case-close-reason-groups/case-close-reason-groups-filter-value-field.vue +16 -3
  38. package/src/modules/filters/modules/filterConfig/components/case-close-reason-groups/case-close-reason-groups-filter-value-preview.vue +2 -2
  39. package/src/modules/filters/modules/filterConfig/components/case-priority/case-priority-filter-value-preview.vue +2 -2
  40. package/src/modules/filters/modules/filterConfig/components/case-reaction-time/case-reaction-time-filter-value-preview.vue +4 -1
  41. package/src/modules/filters/modules/filterConfig/components/case-resolution-time/case-resolution-time-filter-value-preview.vue +4 -1
  42. package/src/modules/filters/modules/filterConfig/components/case-service/case-service-filter-value-field.vue +1 -1
  43. package/src/modules/filters/modules/filterConfig/components/case-service/case-service-filter-value-preview.vue +2 -2
  44. package/src/modules/filters/modules/filterConfig/components/case-sla/case-sla-filter-value-preview.vue +2 -2
  45. package/src/modules/filters/modules/filterConfig/components/case-sla-condition/case-sla-condition-filter-value-field.vue +16 -3
  46. package/src/modules/filters/modules/filterConfig/components/case-sla-condition/case-sla-condition-filter-value-preview.vue +2 -2
  47. package/src/modules/filters/modules/filterConfig/components/case-source/case-source-filter-value-preview.vue +2 -2
  48. package/src/modules/filters/modules/filterConfig/components/case-status/case-status-filter-value-field.vue +16 -3
  49. package/src/modules/filters/modules/filterConfig/components/case-status/case-status-filter-value-preview.vue +2 -2
  50. package/src/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-field.vue +19 -6
  51. package/src/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-preview.vue +7 -3
  52. package/src/modules/filters/modules/filterConfig/components/contact-group/index.ts +6 -3
  53. package/src/modules/filters/modules/filterConfig/components/contact-label/index.ts +14 -5
  54. package/src/modules/filters/modules/filterConfig/components/has-attachment/has-attachment-filter-value-field.vue +1 -1
  55. package/src/modules/filters/modules/filterConfig/components/index.ts +58 -57
  56. package/src/modules/filters/modules/filterConfig/components/rating/rating-from-to-filter-value-field.vue +16 -3
  57. package/src/modules/filters/modules/filterConfig/components/rating/rating-from-to-filter-value-preview.vue +4 -1
  58. package/src/modules/filters/modules/filterConfig/components/score/score-from-to-filter-value-field.vue +16 -3
  59. package/src/modules/filters/modules/filterConfig/components/score/score-from-to-filter-value-preview.vue +4 -1
  60. package/src/modules/filters/modules/filterConfig/components/tag/tag-filter-value-preview.vue +1 -1
  61. package/src/modules/filters/modules/filterConfig/components/utilization-progress/utilization-progress-filter-value-preview.vue +3 -1
  62. package/src/modules/filters/modules/filterConfig/components/variable/variable-filter-value-field.vue +2 -2
  63. package/src/modules/filters/modules/filterConfig/composables/useQueueTypeOptions.ts +2 -2
  64. package/src/modules/filters/modules/filterConfig/types/DynamicFilterPreviewComponent.ts +2 -2
  65. package/src/modules/headers/createTableHeadersStore.ts +9 -6
  66. package/src/modules/pagination/createTablePaginationStore.ts +2 -1
  67. package/src/modules/table/createTableStore.store.ts +3 -12
  68. package/src/modules/types/createDatalistStore.types.ts +1 -1
  69. package/src/modules/types/tableStore.types.ts +12 -2
  70. package/types/modules/card/composables/useCardComponent.d.ts +3 -3
  71. package/types/modules/card/composables/useCardValidation.d.ts +1 -1
  72. package/types/modules/card/composables/useNestedCardComponent.d.ts +3 -3
  73. package/types/modules/card/stores/createCardStore.d.ts +5 -1
  74. package/types/modules/filter-presets/api/PresetQuery.d.ts +2 -2
  75. package/types/modules/filter-presets/components/_shared/input-fields/preset-name-field.vue.d.ts +1 -2
  76. package/types/modules/filter-presets/components/apply-preset/apply-preset-action.vue.d.ts +2 -2
  77. package/types/modules/filter-presets/stores/createFilterPresetsStore.d.ts +90 -16
  78. package/types/modules/filter-presets/stores/headers/headers.d.ts +2 -2
  79. package/types/modules/filters/classes/FiltersManager.d.ts +7 -2
  80. package/types/modules/filters/components/preview/dynamic-filter-preview.vue.d.ts +2 -3
  81. package/types/modules/filters/components/table-filters-panel.vue.d.ts +2 -2
  82. package/types/modules/filters/composables/useFilterConfigsToolkit.d.ts +6 -2
  83. package/types/modules/filters/createTableFiltersStore.d.ts +17 -6
  84. package/types/modules/filters/modules/filterConfig/classes/FilterConfig.d.ts +33 -8
  85. package/types/modules/filters/modules/filterConfig/classes/createFilterConfig.d.ts +1 -1
  86. package/types/modules/filters/modules/filterConfig/components/_custom/filterConfig.d.ts +3 -3
  87. package/types/modules/filters/modules/filterConfig/components/_shared/date-time-filter/date-time-filter-value-field.vue.d.ts +2 -0
  88. 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
  89. package/types/modules/filters/modules/filterConfig/components/_shared/lookup-filter-preview/lookup-filter-value-preview.vue.d.ts +1 -4
  90. package/types/modules/filters/modules/filterConfig/components/case-actual-reaction-time/case-actual-reaction-time-filter-value-preview.vue.d.ts +4 -1
  91. package/types/modules/filters/modules/filterConfig/components/case-actual-resolution-time/case-actual-resolution-time-filter-value-preview.vue.d.ts +4 -1
  92. package/types/modules/filters/modules/filterConfig/components/case-assignee/case-assignee-filter-value-preview.vue.d.ts +4 -2
  93. package/types/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.d.ts +10 -5
  94. package/types/modules/filters/modules/filterConfig/components/case-close-reason-groups/case-close-reason-groups-filter-value-preview.vue.d.ts +2 -2
  95. package/types/modules/filters/modules/filterConfig/components/case-priority/case-priority-filter-value-preview.vue.d.ts +2 -2
  96. package/types/modules/filters/modules/filterConfig/components/case-reaction-time/case-reaction-time-filter-value-preview.vue.d.ts +4 -1
  97. package/types/modules/filters/modules/filterConfig/components/case-resolution-time/case-resolution-time-filter-value-preview.vue.d.ts +4 -1
  98. package/types/modules/filters/modules/filterConfig/components/case-service/case-service-filter-value-preview.vue.d.ts +2 -2
  99. package/types/modules/filters/modules/filterConfig/components/case-sla/case-sla-filter-value-preview.vue.d.ts +2 -2
  100. package/types/modules/filters/modules/filterConfig/components/case-sla-condition/case-sla-condition-filter-value-preview.vue.d.ts +2 -2
  101. package/types/modules/filters/modules/filterConfig/components/case-source/case-source-filter-value-preview.vue.d.ts +2 -2
  102. package/types/modules/filters/modules/filterConfig/components/case-status/case-status-filter-value-preview.vue.d.ts +2 -2
  103. package/types/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-field.vue.d.ts +2 -2
  104. package/types/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-preview.vue.d.ts +4 -2
  105. package/types/modules/filters/modules/filterConfig/components/contact-group/index.d.ts +19 -14
  106. package/types/modules/filters/modules/filterConfig/components/contact-label/index.d.ts +4 -2
  107. package/types/modules/filters/modules/filterConfig/components/has-attachment/has-attachment-filter-value-field.vue.d.ts +3 -3
  108. package/types/modules/filters/modules/filterConfig/components/index.d.ts +50 -39
  109. package/types/modules/filters/modules/filterConfig/components/rating/rating-from-to-filter-value-preview.vue.d.ts +4 -1
  110. package/types/modules/filters/modules/filterConfig/components/score/score-from-to-filter-value-preview.vue.d.ts +4 -1
  111. package/types/modules/filters/modules/filterConfig/components/utilization-progress/utilization-progress-filter-value-preview.vue.d.ts +3 -1
  112. package/types/modules/filters/modules/filterConfig/types/DynamicFilterPreviewComponent.d.ts +2 -2
  113. package/types/modules/headers/createTableHeadersStore.d.ts +66 -12
  114. package/types/modules/pagination/createTablePaginationStore.d.ts +2 -1
  115. package/types/modules/table/createTableStore.store.d.ts +93 -24
  116. package/types/modules/types/createDatalistStore.types.d.ts +1 -1
  117. package/types/modules/types/tableStore.types.d.ts +11 -2
@@ -9,18 +9,14 @@ import {
9
9
  import { createTableFiltersStore } from '../filters/createTableFiltersStore';
10
10
  import { createTableHeadersStore } from '../headers/createTableHeadersStore';
11
11
  import { createTablePaginationStore } from '../pagination/createTablePaginationStore';
12
+ import type { Identifiable } from '../types/createDatalistStore.types';
12
13
  import type {
13
14
  LoadDataListOptions,
14
15
  PatchItemPropertyParams,
15
16
  useTableStoreConfig,
16
17
  } from '../types/tableStore.types';
17
18
 
18
- export const tableStoreBody = <
19
- Entity extends {
20
- id: string;
21
- etag?: string;
22
- },
23
- >(
19
+ export const tableStoreBody = <Entity extends Identifiable>(
24
20
  namespace: string,
25
21
  config: useTableStoreConfig<Entity>,
26
22
  ) => {
@@ -360,12 +356,7 @@ export const tableStoreBody = <
360
356
  };
361
357
  };
362
358
 
363
- export const createTableStore = <
364
- Entity extends {
365
- id: string;
366
- etag?: string;
367
- },
368
- >(
359
+ export const createTableStore = <Entity extends Identifiable>(
369
360
  namespace: string,
370
361
  config: useTableStoreConfig<Entity>,
371
362
  ) => {
@@ -9,7 +9,7 @@ import type { useTableStoreConfig } from './tableStore.types';
9
9
  export type Patch = Record<string, unknown> | Ref<unknown>;
10
10
 
11
11
  export type Identifiable = {
12
- id: string;
12
+ id?: string | number;
13
13
  etag?: string;
14
14
  };
15
15
 
@@ -1,15 +1,25 @@
1
- import type { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule.type';
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: WtTableHeader[];
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, unknown, true>["$value"]>;
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, unknown, true>["$error"]>;
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]>, unknown> : 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]>, unknown> : 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], unknown>; } & { [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], unknown>; } : {}; }[keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never> & `${number}`]>;
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, unknown, true>["$value"]>;
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, unknown, true>["$error"]>;
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]>, unknown> : 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]>, unknown> : 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], unknown>; } & { [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], unknown>; } : {}; }[keyof import("type-fest").UnionToTuple<CardEntity, import("type-fest").UnionToIntersection<CardEntity extends any ? () => CardEntity : never> extends () => (infer R) ? R : never> & `${number}`]>;
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 = object>({ namespace, apiModule, standardValidationSchema, validationSchemaOptions, }: {
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: GetPresetListRequestConfig) => Promise<{
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: GetPresetListRequestConfig) => Promise<{
24
+ getList: (params: any, config?: GetPresetListRequestConfig) => Promise<{
25
25
  items: any;
26
26
  next: any;
27
27
  }>;
@@ -1,7 +1,6 @@
1
- import { Validation } from '@vuelidate/core';
2
1
  type ModelValue = string;
3
2
  type Props = {
4
- v: Validation;
3
+ v: Record<string, unknown>;
5
4
  };
6
5
  type __VLS_Props = Props;
7
6
  type __VLS_ModelProps = {
@@ -1,11 +1,11 @@
1
- import { type Store } from 'pinia';
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: () => Store;
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<any, any>;
15
- shownHeaders: import("vue").ComputedRef<any>;
16
- fields: import("vue").ComputedRef<any>;
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<any>;
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: import("../../filters").FilterName) => import("../../filters").IFilter;
36
- toString: () => string;
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: import("../../filters").FilterName) => import("../../filters").IFilter;
69
- toString: () => string;
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<any, any>;
128
- shownHeaders: import("vue").ComputedRef<any>;
129
- fields: import("vue").ComputedRef<any>;
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<any>;
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: import("../../filters").FilterName) => import("../../filters").IFilter;
149
- toString: () => string;
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: import("../../filters").FilterName) => import("../../filters").IFilter;
182
- toString: () => string;
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 { WtTableHeader } from 'src/components/wt-table/types/WtTable.d.ts';
2
- export declare const headers: WtTableHeader[];
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: FilterName) => IFilter;
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: () => string;
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 { Store } from 'pinia';
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?: Store;
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: WebitelProtoDataField[];
33
+ filterableExtensionFields?: WebitelProtoDataField[];
30
34
  staticMode?: boolean;
31
35
  };
32
- export declare const useFilterConfigsToolkit: ({ filterOptions, filtersManager, filterableExtensionFields, staticMode, }: FilterConfigToolkitParams) => FilterConfigToolkit;
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: 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: import(".").FilterName) => import(".").IFilter;
22
- toString: () => string;
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: import(".").FilterName) => import(".").IFilter;
69
- toString: () => string;
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: boolean;
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: FilterName;
36
- filterValue: FilterValue;
37
- filterConfig: BaseFilterConfig;
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: any;
60
- abstract searchRecords: any;
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"> & Record<string, unknown>) => BaseFilterConfig;
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: (name: CustomFilterOption, { field, }: {
24
+ export declare const createTypeExtensionFilterConfig: (params: FilterConfigBaseParams, { field, }: {
25
25
  field: WebitelProtoDataField;
26
26
  }) => TypeExtensionFilterConfig;
@@ -7,8 +7,10 @@ type __VLS_ModelProps = {
7
7
  };
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: ModelValue) => any;
10
+ "update:invalid": (args_0: boolean) => any;
10
11
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
11
12
  "onUpdate:modelValue"?: (value: ModelValue) => any;
13
+ "onUpdate:invalid"?: (args_0: boolean) => any;
12
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
15
  declare const _default: typeof __VLS_export;
14
16
  export default _default;
@@ -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: number[];
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;