@webitel/ui-datalist 1.1.15 → 1.1.17
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 +11 -6
- package/src/modules/_shared/createDatalistStore.ts +4 -4
- package/src/modules/card/composables/useCardComponent.ts +2 -2
- package/src/modules/card/composables/useCardIsNew.ts +2 -2
- package/src/modules/card/composables/useCardRouting.ts +2 -2
- package/src/modules/card/composables/useCardSaveAction.ts +1 -1
- package/src/modules/card/composables/useCardValidation.ts +2 -2
- package/src/modules/card/composables/useItemCardSaveText.ts +1 -1
- package/src/modules/card/stores/createCardStore.ts +8 -5
- package/src/modules/filter-presets/api/PresetQuery.ts +2 -2
- package/src/modules/filter-presets/components/apply-preset/apply-preset-action.vue +4 -4
- package/src/modules/filter-presets/components/save-preset/overwrite-preset-popup.vue +3 -1
- package/src/modules/filter-presets/stores/createFilterPresetsStore.ts +1 -1
- package/src/modules/filter-presets/stores/headers/headers.ts +1 -1
- package/src/modules/filters/classes/Filter.ts +0 -2
- package/src/modules/filters/classes/FiltersManager.ts +7 -7
- package/src/modules/filters/classes/__tests__/FiltersManager.spec.ts +1 -1
- package/src/modules/filters/components/preview/dynamic-filter-preview.vue +6 -10
- package/src/modules/filters/components/search-bar/dynamic-filter-search.vue +2 -3
- package/src/modules/filters/components/types/Filter.types.ts +6 -2
- package/src/modules/filters/composables/useFilterConfigsToolkit.ts +9 -11
- package/src/modules/filters/createTableFiltersStore.ts +2 -2
- package/src/modules/filters/index.ts +15 -17
- package/src/modules/filters/modules/filterConfig/classes/FilterConfig.ts +3 -3
- package/src/modules/filters/modules/filterConfig/classes/createFilterConfig.ts +3 -3
- package/src/modules/filters/modules/filterConfig/components/_custom/filterConfig.ts +3 -3
- package/src/modules/filters/modules/filterConfig/components/_custom/index.ts +1 -2
- package/src/modules/filters/modules/filterConfig/components/case-assignee/index.ts +1 -2
- package/src/modules/filters/modules/filterConfig/components/contact-group/contact-group-filter-value-field.vue +6 -6
- package/src/modules/filters/modules/filterConfig/components/contact-group/index.ts +1 -1
- package/src/modules/filters/modules/filterConfig/components/index.ts +13 -17
- package/src/modules/filters/modules/filterConfig/components/tag/tag-filter-value-preview.vue +7 -6
- package/src/modules/filters/modules/filterConfig/composables/booleanFilterToolkit.ts +2 -2
- package/src/modules/filters/modules/filterConfig/enums/options/AMDResultOptions.ts +5 -1
- package/src/modules/filters/modules/filterConfig/enums/options/BooleanFilterOptions.ts +1 -1
- package/src/modules/filters/modules/filterConfig/enums/options/CallHistoryTagFilterOptions.ts +1 -1
- package/src/modules/filters/modules/filterConfig/enums/options/HangupCauseFilterOptions.ts +1 -1
- package/src/modules/filters/modules/filterConfig/types/DynamicFilterPreviewComponent.ts +2 -2
- package/src/modules/filters/modules/filterConfig/types/FilterConfigDefinition.ts +2 -2
- package/src/modules/filters/scripts/utils.ts +1 -1
- package/src/modules/headers/createTableHeadersStore.ts +9 -5
- package/src/modules/pagination/createTablePaginationStore.ts +1 -1
- package/src/modules/persist/PersistedStorage.types.ts +1 -1
- package/src/modules/persist/useLocalStoragePersistedStorage.ts +1 -1
- package/src/modules/persist/usePersistedStorage.ts +6 -9
- package/src/modules/persist/useRoutePersistedStorage.ts +1 -1
- package/src/modules/scripts/utils.ts +2 -2
- package/src/modules/table/createTableStore.store.ts +1 -1
- package/src/modules/types/createDatalistStore.types.ts +2 -2
- package/src/modules/types/tableStore.types.ts +4 -4
- package/types/modules/_shared/createDatalistStore.d.ts +3 -3
- package/types/modules/card/composables/useCardComponent.d.ts +2 -2
- package/types/modules/card/composables/useCardIsNew.d.ts +2 -2
- package/types/modules/card/composables/useCardRouting.d.ts +2 -2
- package/types/modules/card/composables/useCardSaveAction.d.ts +1 -1
- package/types/modules/card/composables/useCardValidation.d.ts +2 -2
- package/types/modules/card/composables/useItemCardSaveText.d.ts +1 -1
- package/types/modules/card/stores/createCardStore.d.ts +4 -4
- package/types/modules/filter-presets/api/PresetQuery.d.ts +1 -1
- package/types/modules/filter-presets/stores/createFilterPresetsStore.d.ts +1 -1
- package/types/modules/filter-presets/stores/headers/headers.d.ts +1 -1
- package/types/modules/filters/classes/FiltersManager.d.ts +1 -1
- package/types/modules/filters/components/search-bar/dynamic-filter-search.vue.d.ts +0 -1
- package/types/modules/filters/components/types/Filter.types.d.ts +2 -2
- package/types/modules/filters/composables/useFilterConfigsToolkit.d.ts +6 -6
- package/types/modules/filters/createTableFiltersStore.d.ts +2 -2
- package/types/modules/filters/index.d.ts +3 -3
- package/types/modules/filters/modules/filterConfig/classes/FilterConfig.d.ts +3 -3
- package/types/modules/filters/modules/filterConfig/classes/createFilterConfig.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/_custom/filterConfig.d.ts +3 -3
- package/types/modules/filters/modules/filterConfig/components/_custom/index.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/components/case-assignee/index.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/components/contact-group/index.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/components/index.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/composables/booleanFilterToolkit.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/enums/options/AMDResultOptions.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/enums/options/BooleanFilterOptions.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/enums/options/CallHistoryTagFilterOptions.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/enums/options/HangupCauseFilterOptions.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/types/DynamicFilterPreviewComponent.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/types/FilterConfigDefinition.d.ts +2 -2
- package/types/modules/filters/scripts/utils.d.ts +1 -1
- package/types/modules/headers/createTableHeadersStore.d.ts +2 -2
- package/types/modules/pagination/createTablePaginationStore.d.ts +1 -1
- package/types/modules/persist/PersistedStorage.types.d.ts +1 -1
- package/types/modules/persist/useLocalStoragePersistedStorage.d.ts +1 -1
- package/types/modules/persist/usePersistedStorage.d.ts +1 -1
- package/types/modules/persist/useRoutePersistedStorage.d.ts +1 -1
- package/types/modules/scripts/utils.d.ts +1 -1
- package/types/modules/table/createTableStore.store.d.ts +1 -1
- package/types/modules/types/createDatalistStore.types.d.ts +2 -2
- package/types/modules/types/tableStore.types.d.ts +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFilter } from '../../../classes/Filter';
|
|
2
|
-
import { TFilterConfig } from './FilterConfig';
|
|
1
|
+
import type { IFilter } from '../../../classes/Filter';
|
|
2
|
+
import type { TFilterConfig } from './FilterConfig';
|
|
3
3
|
|
|
4
4
|
export type DynamicFilterPreviewComponentProps = {
|
|
5
5
|
value: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyFilterConfig } from '../classes/FilterConfig';
|
|
2
|
-
import { FilterOption } from '../enums/FilterOption';
|
|
1
|
+
import type { AnyFilterConfig } from '../classes/FilterConfig';
|
|
2
|
+
import type { FilterOption } from '../enums/FilterOption';
|
|
3
3
|
|
|
4
4
|
export type FilterConfigDefinition = FilterOption | AnyFilterConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WtTableHeader } from '@webitel/ui-sdk/components/wt-table/types/WtTable';
|
|
1
|
+
import type { WtTableHeader } from '@webitel/ui-sdk/components/wt-table/types/WtTable';
|
|
2
2
|
import { sortToQueryAdapter } from '@webitel/ui-sdk/scripts';
|
|
3
3
|
import { SortSymbols } from '@webitel/ui-sdk/scripts/sortQueryAdapters';
|
|
4
4
|
import { computed, nextTick, ref } from 'vue';
|
|
@@ -6,7 +6,7 @@ import { computed, nextTick, ref } from 'vue';
|
|
|
6
6
|
import { createDatalistStore } from '../_shared/createDatalistStore';
|
|
7
7
|
import { PersistedStorageType } from '../persist/PersistedStorage.types';
|
|
8
8
|
import { usePersistedStorage } from '../persist/usePersistedStorage';
|
|
9
|
-
import { useTableStoreConfig } from '../types/tableStore.types';
|
|
9
|
+
import type { useTableStoreConfig } from '../types/tableStore.types';
|
|
10
10
|
|
|
11
11
|
interface TableHeadersStoreBodyParams {
|
|
12
12
|
rawHeaders: WtTableHeader[];
|
|
@@ -65,14 +65,18 @@ export const tableHeadersStoreBody = ({
|
|
|
65
65
|
if (!arrayFieldOrder.has(header.field)) {
|
|
66
66
|
arrayFieldOrder.set(header.field, []);
|
|
67
67
|
}
|
|
68
|
-
arrayFieldOrder.get(header.field)
|
|
68
|
+
const list = arrayFieldOrder.get(header.field);
|
|
69
|
+
if (list) {
|
|
70
|
+
list.push(idx);
|
|
71
|
+
}
|
|
69
72
|
});
|
|
70
73
|
|
|
71
74
|
const newOrder = [];
|
|
72
75
|
for (const field of orderedFields) {
|
|
73
76
|
const indices = arrayFieldOrder.get(field);
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
const next = indices?.shift();
|
|
78
|
+
if (next) {
|
|
79
|
+
newOrder.push(next);
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
|
|
@@ -2,7 +2,7 @@ import { ref } from 'vue';
|
|
|
2
2
|
|
|
3
3
|
import { createDatalistStore } from '../_shared/createDatalistStore';
|
|
4
4
|
import { usePersistedStorage } from '../persist/usePersistedStorage';
|
|
5
|
-
import { useTableStoreConfig } from '../types/tableStore.types';
|
|
5
|
+
import type { useTableStoreConfig } from '../types/tableStore.types';
|
|
6
6
|
|
|
7
7
|
export const tablePaginationStoreBody = () => {
|
|
8
8
|
const page = ref(1);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { watch } from 'vue';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
PersistableValue,
|
|
5
|
-
PersistedPropertyConfig,
|
|
6
|
-
PersistedStorageController,
|
|
4
|
+
type PersistableValue,
|
|
5
|
+
type PersistedPropertyConfig,
|
|
6
|
+
type PersistedStorageController,
|
|
7
7
|
PersistedStorageType,
|
|
8
8
|
} from './PersistedStorage.types';
|
|
9
9
|
import { useLocalStoragePersistedStorage } from './useLocalStoragePersistedStorage';
|
|
@@ -35,13 +35,10 @@ export const usePersistedStorage = ({
|
|
|
35
35
|
|
|
36
36
|
return settledResults.reduce((acc, result) => {
|
|
37
37
|
if (result.status === 'fulfilled') {
|
|
38
|
-
|
|
39
|
-
...acc,
|
|
40
|
-
result.value,
|
|
41
|
-
];
|
|
38
|
+
acc.push(result.value);
|
|
42
39
|
}
|
|
43
40
|
return acc;
|
|
44
|
-
}, []);
|
|
41
|
+
}, [] as PersistableValue[]);
|
|
45
42
|
};
|
|
46
43
|
|
|
47
44
|
const storages = Array.isArray(configStorages)
|
|
@@ -152,7 +149,7 @@ export const usePersistedStorage = ({
|
|
|
152
149
|
await Promise.all(removeItemFns.map((removeItem) => removeItem(name)));
|
|
153
150
|
};
|
|
154
151
|
|
|
155
|
-
const endWatch = () => unwatch
|
|
152
|
+
const endWatch = () => unwatch?.();
|
|
156
153
|
|
|
157
154
|
return {
|
|
158
155
|
watch: startWatch,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRoute, useRouter } from 'vue-router';
|
|
2
2
|
|
|
3
|
-
import { StorageLike } from './PersistedStorage.types.ts';
|
|
3
|
+
import type { StorageLike } from './PersistedStorage.types.ts';
|
|
4
4
|
|
|
5
5
|
export const useRoutePersistedStorage = (): StorageLike => {
|
|
6
6
|
const router = useRouter();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Store } from 'pinia';
|
|
2
|
-
import { isRef, Ref, ref, unref } from 'vue';
|
|
2
|
+
import { isRef, type Ref, ref, unref } from 'vue';
|
|
3
3
|
|
|
4
|
-
import { Patch, StoreInstance } from '../types/createDatalistStore.types';
|
|
4
|
+
import type { Patch, StoreInstance } from '../types/createDatalistStore.types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* the applyStorePatch method is used to repeat the logic of the $patch method from pinia for the composable stores
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { createTableFiltersStore } from '../filters/createTableFiltersStore';
|
|
10
10
|
import { createTableHeadersStore } from '../headers/createTableHeadersStore';
|
|
11
11
|
import { createTablePaginationStore } from '../pagination/createTablePaginationStore';
|
|
12
|
-
import {
|
|
12
|
+
import type {
|
|
13
13
|
PatchItemPropertyParams,
|
|
14
14
|
useTableStoreConfig,
|
|
15
15
|
} from '../types/tableStore.types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
2
|
|
|
3
|
-
import { useTableStoreConfig } from './tableStore.types';
|
|
3
|
+
import type { useTableStoreConfig } from './tableStore.types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* this type is used to define the value that is used in the applyStorePatch method,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule.type';
|
|
1
|
+
import type { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule.type';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
3
|
|
|
4
|
-
import { WtTableHeader } from '../../../../../src/components/wt-table/types/WtTable';
|
|
5
|
-
import { IFiltersManager } from '../filters';
|
|
6
|
-
import { DatalistStoreProviderType } from './StoreProvider';
|
|
4
|
+
import type { WtTableHeader } from '../../../../../src/components/wt-table/types/WtTable';
|
|
5
|
+
import type { IFiltersManager } from '../filters';
|
|
6
|
+
import type { DatalistStoreProviderType } from './StoreProvider';
|
|
7
7
|
|
|
8
8
|
export type TrackSelectedRowBy<T> = (row: T) => T;
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ToRefs } from 'vue';
|
|
2
|
-
import { CreateDatalistStoreParams, Identifiable, PatchableStoreFactory, StoreInstance } from '../types/createDatalistStore.types';
|
|
3
|
-
import { DatalistStoreProviderType } from '../types/StoreProvider';
|
|
1
|
+
import { type ToRefs } from 'vue';
|
|
2
|
+
import type { CreateDatalistStoreParams, Identifiable, PatchableStoreFactory, StoreInstance } from '../types/createDatalistStore.types';
|
|
3
|
+
import { type DatalistStoreProviderType } from '../types/StoreProvider';
|
|
4
4
|
/**
|
|
5
5
|
* makeThisToRefs converts a store object into a set of reactive references (toRefs),
|
|
6
6
|
* using Pinia's storeToRefs if it's a Pinia store, or Vue's toRefs for composable stores.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StoreDefinition } from 'pinia';
|
|
1
|
+
import { type StoreDefinition } from 'pinia';
|
|
2
2
|
export declare const useCardComponent: <CardEntity>({ useCardStore, onLoadErrorHandler, }: {
|
|
3
3
|
useCardStore: StoreDefinition;
|
|
4
|
-
onLoadErrorHandler?: (err:
|
|
4
|
+
onLoadErrorHandler?: (err: unknown) => void;
|
|
5
5
|
}) => {
|
|
6
6
|
modelValue: import("vue").ComputedRef<unknown>;
|
|
7
7
|
debouncedIsLoading: Readonly<import("vue").Ref<any, any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { CardItemId } from '../types/CardStore.types';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { CardItemId } from '../types/CardStore.types';
|
|
3
3
|
export declare const useCardIsNew: ({ itemId }: {
|
|
4
4
|
itemId: Ref<CardItemId>;
|
|
5
5
|
}) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { CardItemId } from '../types/CardStore.types';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { CardItemId } from '../types/CardStore.types';
|
|
3
3
|
export declare const useCardRouting: ({ itemId }: {
|
|
4
4
|
itemId: Ref<CardItemId>;
|
|
5
5
|
}) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RegleSchemaResult } from '@regle/schemas';
|
|
1
|
+
import type { RegleSchemaResult } from '@regle/schemas';
|
|
2
2
|
export declare const useCardSaveAction: <CardEntity>({ validate, saveItem, }: {
|
|
3
3
|
validate?: () => Promise<RegleSchemaResult<CardEntity>>;
|
|
4
4
|
saveItem: (data: CardEntity) => Promise<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RegleSchema } from '@regle/schemas';
|
|
2
|
-
import { Ref } from 'vue';
|
|
1
|
+
import type { RegleSchema } from '@regle/schemas';
|
|
2
|
+
import { type Ref } from 'vue';
|
|
3
3
|
export declare const useCardValidation: <TState, TSchema>({ validationSchema, }: {
|
|
4
4
|
validationSchema: Ref<RegleSchema<TState, TSchema>>;
|
|
5
5
|
}) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RegleSchemaBehaviourOptions } from '@regle/schemas';
|
|
2
|
-
import { ApiModule } from '@webitel/ui-sdk/src/api/types/ApiModule';
|
|
3
|
-
import { z } from 'zod/v4';
|
|
4
|
-
import { CardItemId } from '../types/CardStore.types';
|
|
1
|
+
import { type RegleSchemaBehaviourOptions } from '@regle/schemas';
|
|
2
|
+
import type { ApiModule } from '@webitel/ui-sdk/src/api/types/ApiModule';
|
|
3
|
+
import type { z } from 'zod/v4';
|
|
4
|
+
import type { CardItemId } from '../types/CardStore.types';
|
|
5
5
|
export declare const createCardStore: <Entity = object>({ namespace, apiModule, standardValidationSchema, validationSchemaOptions, }: {
|
|
6
6
|
namespace: string;
|
|
7
7
|
standardValidationSchema: z.ZodType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WtTableHeader } from 'src/components/wt-table/types/WtTable.d.ts';
|
|
1
|
+
import type { WtTableHeader } from 'src/components/wt-table/types/WtTable.d.ts';
|
|
2
2
|
export declare const headers: WtTableHeader[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterInitParams, FilterInstanceConfig, FilterLabel, FilterName, FilterValue, IFilter } from './Filter';
|
|
1
|
+
import { type FilterInitParams, type FilterInstanceConfig, type FilterLabel, type FilterName, type FilterValue, type IFilter } from './Filter';
|
|
2
2
|
export interface IFiltersManager {
|
|
3
3
|
filters: Map<FilterName, IFilter>;
|
|
4
4
|
hasFilter: (name: FilterName) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterData, FilterInitParams, IFilter } from '../../classes/Filter';
|
|
2
|
-
import { AnyFilterConfig } from '../../modules/filterConfig';
|
|
1
|
+
import type { FilterData, FilterInitParams, IFilter } from '../../classes/Filter';
|
|
2
|
+
import type { AnyFilterConfig } from '../../modules/filterConfig';
|
|
3
3
|
export interface FilterEmits {
|
|
4
4
|
'update:filter': [
|
|
5
5
|
FilterData
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
import { WebitelProtoDataField } from 'webitel-sdk';
|
|
3
|
-
import { FilterName, IFilter } from '../classes/Filter';
|
|
4
|
-
import { IFiltersManager } from '../classes/FiltersManager';
|
|
5
|
-
import { BaseFilterConfig } from '../modules/filterConfig/classes/FilterConfig';
|
|
6
|
-
import { FilterOption } from '../modules/filterConfig/enums/FilterOption';
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { WebitelProtoDataField } from 'webitel-sdk';
|
|
3
|
+
import type { FilterName, IFilter } from '../classes/Filter';
|
|
4
|
+
import type { IFiltersManager } from '../classes/FiltersManager';
|
|
5
|
+
import { type BaseFilterConfig } from '../modules/filterConfig/classes/FilterConfig';
|
|
6
|
+
import type { FilterOption } from '../modules/filterConfig/enums/FilterOption';
|
|
7
7
|
export type FilterConfigToolkit = {
|
|
8
8
|
filterConfigs: ComputedRef<BaseFilterConfig[]>;
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTableStoreConfig } from '../types/tableStore.types';
|
|
2
|
-
import { FiltersManagerConfig } from './classes/FiltersManager';
|
|
1
|
+
import type { useTableStoreConfig } from '../types/tableStore.types';
|
|
2
|
+
import { type FiltersManagerConfig } from './classes/FiltersManager';
|
|
3
3
|
export declare const tableFiltersStoreBody: (namespace: any, config?: {
|
|
4
4
|
filtersManagerConfig: FiltersManagerConfig;
|
|
5
5
|
}) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Filter, FilterInitParams, FilterInstanceConfig, FilterLabel, FilterName, FilterValue, IFilter } from './classes/Filter';
|
|
2
|
-
import { createFiltersManager, FiltersManagerConfig, IFiltersManager } from './classes/FiltersManager';
|
|
1
|
+
import { Filter, type FilterInitParams, type FilterInstanceConfig, type FilterLabel, type FilterName, type FilterValue, type IFilter } from './classes/Filter';
|
|
2
|
+
import { createFiltersManager, type FiltersManagerConfig, type IFiltersManager } from './classes/FiltersManager';
|
|
3
3
|
import DynamicFilterSearchComponent from './components/search-bar/dynamic-filter-search.vue';
|
|
4
4
|
import TableFiltersPanelComponent from './components/table-filters-panel.vue';
|
|
5
5
|
import { FilterOption } from './modules/filterConfig/enums/FilterOption';
|
|
6
6
|
export * from './modules/filterConfig';
|
|
7
|
-
export { createFiltersManager, DynamicFilterSearchComponent, Filter, FilterOption, TableFiltersPanelComponent, };
|
|
8
7
|
export type { FilterInitParams, FilterInstanceConfig, FilterLabel, FilterName, FiltersManagerConfig, FilterValue, IFilter, IFiltersManager, };
|
|
8
|
+
export { createFiltersManager, DynamicFilterSearchComponent, Filter, FilterOption, TableFiltersPanelComponent, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
2
|
-
import { MessageResolver } from 'vue-i18n';
|
|
3
|
-
import { FilterName, FilterValue } from '../../../classes/Filter';
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { MessageResolver } from 'vue-i18n';
|
|
3
|
+
import type { FilterName, FilterValue } from '../../../classes/Filter';
|
|
4
4
|
export interface BaseFilterConfig {
|
|
5
5
|
name: FilterName;
|
|
6
6
|
valueInputComponent: Component;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseFilterConfig } from './FilterConfig';
|
|
2
|
-
export declare const createFilterConfig: (params:
|
|
1
|
+
import { type BaseFilterConfig, type FilterConfigBaseParams } from './FilterConfig';
|
|
2
|
+
export declare const createFilterConfig: (params: FilterConfigBaseParams & Required<BaseFilterConfig, "name"> & Record<string, unknown>) => BaseFilterConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WebitelProtoDataField } from 'webitel-sdk';
|
|
1
|
+
import type { WebitelProtoDataField } from 'webitel-sdk';
|
|
2
2
|
import { FilterConfig } from '../../classes/FilterConfig';
|
|
3
|
-
import { CustomFilterOption } from '../../enums/FilterOption';
|
|
4
|
-
import { BaseFilterConfig, FilterConfigBaseParams, IWtSysTypeFilterConfig } from '../../types/FilterConfig';
|
|
3
|
+
import type { CustomFilterOption } from '../../enums/FilterOption';
|
|
4
|
+
import type { BaseFilterConfig, FilterConfigBaseParams, IWtSysTypeFilterConfig } from '../../types/FilterConfig';
|
|
5
5
|
export interface ITypeExtensionFilterConfig extends BaseFilterConfig {
|
|
6
6
|
readonly field: WebitelProtoDataField;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createTypeExtensionFilterConfig } from './filterConfig';
|
|
2
2
|
import TypeExtensionFilterValueField from './type-extension-filter-value-field.vue';
|
|
3
3
|
import TypeExtensionFilterValuePreview from './type-extension-filter-value-preview.vue';
|
|
4
|
-
export { createTypeExtensionFilterConfig, TypeExtensionFilterValueField, TypeExtensionFilterValuePreview, };
|
|
5
4
|
export type * from './filterConfig';
|
|
5
|
+
export { createTypeExtensionFilterConfig, TypeExtensionFilterValueField, TypeExtensionFilterValuePreview, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import CaseAssigneeFilterValueField from './case-assignee-filter-value-field.vue';
|
|
2
2
|
import CaseAssigneeFilterValuePreview from './case-assignee-filter-value-preview.vue';
|
|
3
3
|
import { createCaseAssigneeFilterConfig } from './filterConfig';
|
|
4
|
-
export { CaseAssigneeFilterValueField, CaseAssigneeFilterValuePreview, createCaseAssigneeFilterConfig, };
|
|
5
4
|
export type * from './filterConfig';
|
|
5
|
+
export { CaseAssigneeFilterValueField, CaseAssigneeFilterValuePreview, createCaseAssigneeFilterConfig, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { contactGroups } from '@webitel/ui-sdk/api/clients/index';
|
|
2
|
-
import { IWtSysTypeFilterConfig, WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
2
|
+
import { type IWtSysTypeFilterConfig, WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
3
3
|
declare class ContactGroupFilterConfig extends WtSysTypeFilterConfig {
|
|
4
4
|
readonly name: "contactGroup";
|
|
5
5
|
valueInputComponent: import("vue").DefineComponent<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
|
-
import { FilterOptionName } from '../enums/FilterOption';
|
|
2
|
+
import { type FilterOptionName } from '../enums/FilterOption';
|
|
3
3
|
import DateTimeOptionsFilterValueField from './_shared/date-time-filter/date-time-options/date-time-options-filter-value-field.vue';
|
|
4
4
|
import AgentFilter from './agent/agent-filter-value-field.vue';
|
|
5
5
|
import AgentFilterPreview from './agent/agent-filter-value-preview.vue';
|
|
@@ -95,7 +95,7 @@ import UtilizationProgressFilter from './utilization-progress/utilization-progre
|
|
|
95
95
|
import UtilizationProgressFilterPreview from './utilization-progress/utilization-progress-filter-value-preview.vue';
|
|
96
96
|
import VariableFilter from './variable/variable-filter-value-field.vue';
|
|
97
97
|
import VariableFilterPreview from './variable/variable-filter-value-preview.vue';
|
|
98
|
-
export { AgentFilter, AgentFilterPreview,
|
|
98
|
+
export { AgentFilter, AgentFilterPreview, AgentStatusFilter, AgentStatusFilterPreview, AmdResultFilter, AmdResultFilterPreview, AuditorFilter, AuditorFilterPreview, CallDirectionFilterValueField, CallDirectionFilterValuePreview, CaseActualReactionTimeFilterValueField, CaseActualReactionTimeFilterValuePreview, CaseActualResolutionTimeFilterValueField, CaseActualResolutionTimeFilterValuePreview, CaseAuthorFilterValueField, CaseAuthorFilterValuePreview, CaseCloseReasonGroupsFilterValueField, CaseCloseReasonGroupsFilterValuePreview, CaseImpactedFilterValueField, CaseImpactedFilterValuePreview, CasePriorityFilterValueField, CasePriorityFilterValuePreview, CaseReactionTimeFilterValueField, CaseReactionTimeFilterValuePreview, CaseReporterFilterValueField, CaseReporterFilterValuePreview, CaseResolutionTimeFilterValueField, CaseResolutionTimeFilterValuePreview, CaseServiceFilterValueField, CaseServiceFilterValuePreview, CaseSlaConditionFilterValueField, CaseSlaConditionFilterValuePreview, CaseSlaFilterValueField, CaseSlaFilterValuePreview, CaseSourceFilterValueField, CaseSourceFilterValuePreview, CaseStatusFilterValueField, CaseStatusFilterValuePreview, ContactFilter, ContactFilterPreview, ContactGroupFilter, ContactGroupFilterPreview, ContactLabelFilter, ContactLabelFilterPreview, ContactOwnerFilter, ContactOwnerFilterPreview, DateTimeOptionsFilterValueField, GatewayFilter, GatewayFilterPreview, GranteeFilter, GranteeFilterPreview, HangupCauseFilterValueField, HangupCauseFilterValuePreview, HasAttachmentFilter, HasAttachmentFilterPreview, HasFileFilter, HasFileFilterPreview, HasRatingFilterValueField, HasRatingFilterValuePreview, HasTranscriptionFilter, HasTranscriptionFilterPreview, HasUserFilter, HasUserFilterPreview, QueueFilter, QueueFilterPreview, QueuePeriodFilter, QueuePeriodFilterPreview, QueueTypeFilter, QueueTypeFilterPreview, RatedByFilter, RatedByFilterPreview, RatingFromToFilter, RatingFromToFilterPreview, RegionFilter, RegionFilterPreview, ScoreFilter, ScoreFilterPreview, SkillFilter, SkillFilterPreview, SupervisorFilter, SupervisorFilterPreview, TagFilter, TagFilterPreview, TalkDurationFilter, TalkDurationFilterPreview, TeamFilter, TeamFilterPreview, TotalDurationFilter, TotalDurationFilterPreview, UserFilter, UserFilterPreview, UtilizationProgressFilter, UtilizationProgressFilterPreview, VariableFilter, VariableFilterPreview, };
|
|
99
99
|
export declare const FilterOptionToValueComponentMap: Record<FilterOptionName, Component>;
|
|
100
100
|
export declare const FilterOptionToPreviewComponentMap: Record<FilterOptionName, Component>;
|
|
101
101
|
export declare const FilterOptionToPreviewApiSearchMethodMap: Record<FilterOptionName, (unknown: any) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModelRef, type Reactive, type Ref } from 'vue';
|
|
2
|
-
import { BooleanFilterModelValue } from '../enums/options/BooleanFilterOptions';
|
|
1
|
+
import { type ModelRef, type Reactive, type Ref } from 'vue';
|
|
2
|
+
import type { BooleanFilterModelValue } from '../enums/options/BooleanFilterOptions';
|
|
3
3
|
export declare const usePrettifyBooleanValuePreview: (value: Reactive<boolean>) => {
|
|
4
4
|
localeValue: Ref<string>;
|
|
5
5
|
};
|
package/types/modules/filters/modules/filterConfig/enums/options/CallHistoryTagFilterOptions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FilterEnumOption } from '../../../../classes/Filter';
|
|
1
|
+
import type { FilterEnumOption } from '../../../../classes/Filter';
|
|
2
2
|
export declare const CallHistoryTagFilterOptions: Array<FilterEnumOption>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFilter } from '../../../classes/Filter';
|
|
2
|
-
import { TFilterConfig } from './FilterConfig';
|
|
1
|
+
import type { IFilter } from '../../../classes/Filter';
|
|
2
|
+
import type { TFilterConfig } from './FilterConfig';
|
|
3
3
|
export type DynamicFilterPreviewComponentProps = {
|
|
4
4
|
value: unknown;
|
|
5
5
|
filterConfig: TFilterConfig;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AnyFilterConfig } from '../classes/FilterConfig';
|
|
2
|
-
import { FilterOption } from '../enums/FilterOption';
|
|
1
|
+
import type { AnyFilterConfig } from '../classes/FilterConfig';
|
|
2
|
+
import type { FilterOption } from '../enums/FilterOption';
|
|
3
3
|
export type FilterConfigDefinition = FilterOption | AnyFilterConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterName } from '../classes/Filter';
|
|
1
|
+
import type { FilterName } from '../classes/Filter';
|
|
2
2
|
export declare const filterLabelToSnapshotKey: (name: FilterName) => string;
|
|
3
3
|
export declare const filterValueToSnapshotKey: (name: FilterName) => string;
|
|
4
4
|
export declare const filterNameFromSnapshotKey: (snapshotKey: string) => FilterName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WtTableHeader } from '@webitel/ui-sdk/components/wt-table/types/WtTable';
|
|
1
|
+
import type { WtTableHeader } from '@webitel/ui-sdk/components/wt-table/types/WtTable';
|
|
2
2
|
import { SortSymbols } from '@webitel/ui-sdk/scripts/sortQueryAdapters';
|
|
3
|
-
import { useTableStoreConfig } from '../types/tableStore.types';
|
|
3
|
+
import type { useTableStoreConfig } from '../types/tableStore.types';
|
|
4
4
|
interface TableHeadersStoreBodyParams {
|
|
5
5
|
rawHeaders: WtTableHeader[];
|
|
6
6
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTableStoreConfig } from '../types/tableStore.types';
|
|
1
|
+
import type { useTableStoreConfig } from '../types/tableStore.types';
|
|
2
2
|
export declare const tablePaginationStoreBody: () => {
|
|
3
3
|
page: import("vue").Ref<number, number>;
|
|
4
4
|
size: import("vue").Ref<number, number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PersistedPropertyConfig, PersistedStorageController } from './PersistedStorage.types';
|
|
1
|
+
import { type PersistedPropertyConfig, type PersistedStorageController } from './PersistedStorage.types';
|
|
2
2
|
export declare const usePersistedStorage: ({ name, value, storages: configStorages, storagePath, startWatchManually, onStore, onRestore, }: PersistedPropertyConfig) => PersistedStorageController;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StorageLike } from './PersistedStorage.types.ts';
|
|
1
|
+
import type { StorageLike } from './PersistedStorage.types.ts';
|
|
2
2
|
export declare const useRoutePersistedStorage: () => StorageLike;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Store } from 'pinia';
|
|
2
|
-
import { Patch, StoreInstance } from '../types/createDatalistStore.types';
|
|
2
|
+
import type { Patch, StoreInstance } from '../types/createDatalistStore.types';
|
|
3
3
|
/**
|
|
4
4
|
* the applyStorePatch method is used to repeat the logic of the $patch method from pinia for the composable stores
|
|
5
5
|
* */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import deepEqual from 'deep-equal';
|
|
2
2
|
import { type Ref } from 'vue';
|
|
3
|
-
import { PatchItemPropertyParams, useTableStoreConfig } from '../types/tableStore.types';
|
|
3
|
+
import type { PatchItemPropertyParams, useTableStoreConfig } from '../types/tableStore.types';
|
|
4
4
|
export declare const tableStoreBody: <Entity extends {
|
|
5
5
|
id: string;
|
|
6
6
|
etag?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { useTableStoreConfig } from './tableStore.types';
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { useTableStoreConfig } from './tableStore.types';
|
|
3
3
|
/**
|
|
4
4
|
* this type is used to define the value that is used in the applyStorePatch method,
|
|
5
5
|
* which can be as primitive object or as reactive object.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule.type';
|
|
1
|
+
import type { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule.type';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
import { WtTableHeader } from '../../../../../src/components/wt-table/types/WtTable';
|
|
4
|
-
import { IFiltersManager } from '../filters';
|
|
5
|
-
import { DatalistStoreProviderType } from './StoreProvider';
|
|
3
|
+
import type { WtTableHeader } from '../../../../../src/components/wt-table/types/WtTable';
|
|
4
|
+
import type { IFiltersManager } from '../filters';
|
|
5
|
+
import type { DatalistStoreProviderType } from './StoreProvider';
|
|
6
6
|
export type TrackSelectedRowBy<T> = (row: T) => T;
|
|
7
7
|
export interface useTableStoreConfig<Entity> {
|
|
8
8
|
apiModule: ApiModule<Entity>;
|