@webitel/ui-datalist 1.0.98 → 1.1.0-1
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 +22 -23
- package/src/modules/filter-presets/components/_shared/input-fields/preset-description-field.vue +1 -1
- package/types/modules/card/composables/useCardComponent.d.ts +3 -3
- package/types/modules/card/composables/useCardRouting.d.ts +1 -1
- package/types/modules/card/composables/useCardValidation.d.ts +4 -4
- package/types/modules/card/composables/useItemCardSaveText.d.ts +1 -1
- package/types/modules/filter-presets/components/save-preset/overwrite-preset-popup.vue.d.ts +2 -2
- package/types/modules/filter-presets/components/save-preset/save-preset-popup.vue.d.ts +3 -2
- package/types/modules/filter-presets/stores/createFilterPresetsStore.d.ts +1 -0
- package/types/modules/filters/components/config/dynamic-filter-config-form-label.vue.d.ts +11 -0
- package/types/modules/filters/components/config/dynamic-filter-config-form-value-input.vue.d.ts +16 -0
- package/types/modules/filters/components/config/dynamic-filter-config-form.vue.d.ts +93 -0
- package/types/modules/filters/components/config/dynamic-filter-config-view.vue.d.ts +27 -0
- package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-form.vue.d.ts +53 -3
- package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-view.vue.d.ts +13 -4
- package/types/modules/filters/components/dynamic-filter-add-action.vue.d.ts +25 -2
- package/types/modules/filters/components/dynamic-filter-panel-wrapper.vue.d.ts +6 -2
- package/types/modules/filters/components/preview/dynamic-filter-preview-info.vue.d.ts +4 -2
- package/types/modules/filters/components/preview/dynamic-filter-preview.vue.d.ts +35 -3
- package/types/modules/filters/modules/filterConfig/components/auditor/index.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.d.ts +2 -3
- package/types/modules/filters/modules/filterConfig/components/contact-group/index.d.ts +2 -3
- package/types/modules/filters/modules/filterConfig/components/created-at/created-at-filter-value-field.vue.d.ts +19 -0
- package/types/modules/filters/modules/filterConfig/components/created-at/created-at-filter-value-preview.vue.d.ts +9 -0
- package/types/modules/filters/modules/filterConfig/components/index.d.ts +23 -23
- package/types/modules/filters/modules/filterConfig/components/queue/index.d.ts +2 -3
- package/types/modules/filters/modules/filterConfig/components/region/index.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/skill/index.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/supervisor/index.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/components/team/index.d.ts +2 -3
- package/types/modules/filters/modules/filterConfig/composables/useAgentStatusOptions.d.ts +2 -2
- package/types/modules/filters/modules/filterConfig/composables/useQueuePeriodOptions.d.ts +1 -1
- package/types/modules/filters/modules/filterConfig/composables/useQueueTypeOptions.d.ts +1 -1
- package/types/modules/form/composables/useFormComponent.d.ts +9 -0
- package/types/modules/form/composables/useItemCardSaveText.d.ts +7 -0
- package/types/modules/form/composables/useValidation.d.ts +10 -0
- package/types/modules/form/index.d.ts +4 -0
- package/types/modules/form/stores/createFormStore.d.ts +135 -0
- package/types/modules/types/tableStore.types.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-datalist",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-1",
|
|
4
4
|
"description": "Toolkit for building data lists in webitel ui system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && ( npm run lint:fix || true) && (npm run build:types || true) && npm run utils:publish",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"types": "./types/index.d.ts",
|
|
18
18
|
"workspaces": [
|
|
19
19
|
"../../",
|
|
20
|
+
"../styleguide",
|
|
20
21
|
"../api-services"
|
|
21
22
|
],
|
|
22
23
|
"files": [
|
|
@@ -29,43 +30,41 @@
|
|
|
29
30
|
"axios": "^1",
|
|
30
31
|
"date-fns": "^4",
|
|
31
32
|
"pinia": "^3.x",
|
|
32
|
-
"vue": "^3.5"
|
|
33
|
-
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@regle/schemas": "^1.2.3",
|
|
33
|
+
"vue": "^3.5",
|
|
34
|
+
"@regle/schemas": "^1.x",
|
|
36
35
|
"@vuelidate/core": "^2.0.3",
|
|
37
36
|
"@vuelidate/validators": "^2.0.4",
|
|
38
|
-
"@vueuse/core": "^
|
|
39
|
-
"@webitel/api-services": "^0.0
|
|
40
|
-
"@webitel/styleguide": "
|
|
41
|
-
"@webitel/ui-sdk": "^
|
|
42
|
-
"zod": "^
|
|
37
|
+
"@vueuse/core": "^14.0",
|
|
38
|
+
"@webitel/api-services": "^0.1.0",
|
|
39
|
+
"@webitel/styleguide": "~26.2",
|
|
40
|
+
"@webitel/ui-sdk": "^26.2.0-2",
|
|
41
|
+
"zod": "^4.x"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@eslint/js": "^9.22.0",
|
|
46
|
-
"@standard-schema/spec": "^1.
|
|
45
|
+
"@standard-schema/spec": "^1.x",
|
|
47
46
|
"@tsconfig/node22": "^22.0.0",
|
|
48
|
-
"@types/node": "^
|
|
49
|
-
"@vitejs/plugin-vue": "^
|
|
50
|
-
"@vue/tsconfig": "^0.
|
|
47
|
+
"@types/node": "^24.x",
|
|
48
|
+
"@vitejs/plugin-vue": "^6.x",
|
|
49
|
+
"@vue/tsconfig": "^0.8.x",
|
|
51
50
|
"eslint": "^9.22.0",
|
|
52
51
|
"eslint-config-prettier": "^10.1.1",
|
|
53
52
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
54
53
|
"eslint-plugin-vue": "^10.0.0",
|
|
55
|
-
"globals": "^
|
|
56
|
-
"globby": "^
|
|
57
|
-
"lint-staged": "^
|
|
54
|
+
"globals": "^17.x",
|
|
55
|
+
"globby": "^16.x",
|
|
56
|
+
"lint-staged": "^16.x",
|
|
58
57
|
"prettier": "^3.5.3",
|
|
59
58
|
"prettier-plugin-css-order": "^2.1.2",
|
|
60
59
|
"publint": "^0.3.9",
|
|
61
60
|
"sass": "^1.85.1",
|
|
62
|
-
"typescript": "5.
|
|
61
|
+
"typescript": "5.9.x",
|
|
63
62
|
"typescript-eslint": "^8.26.1",
|
|
64
|
-
"typescript-plugin-css-modules": "^5.
|
|
65
|
-
"unplugin-auto-import": "^19.
|
|
66
|
-
"vite": "
|
|
67
|
-
"vite-plugin-checker": "^0.
|
|
68
|
-
"vue-tsc": "^
|
|
63
|
+
"typescript-plugin-css-modules": "^5.x",
|
|
64
|
+
"unplugin-auto-import": "^19.x",
|
|
65
|
+
"vite": "npm:rolldown-vite@^7.3.x",
|
|
66
|
+
"vite-plugin-checker": "^0.12.x",
|
|
67
|
+
"vue-tsc": "^3.x"
|
|
69
68
|
},
|
|
70
69
|
"engines": {
|
|
71
70
|
"npm": "11",
|
|
@@ -2,13 +2,13 @@ import { StoreDefinition } from 'pinia';
|
|
|
2
2
|
export declare const useCardComponent: <CardEntity>({ useCardStore, }: {
|
|
3
3
|
useCardStore: StoreDefinition;
|
|
4
4
|
}) => {
|
|
5
|
-
modelValue: import("vue").ComputedRef<
|
|
5
|
+
modelValue: import("vue").ComputedRef<{}>;
|
|
6
6
|
debouncedIsLoading: Readonly<import("vue").Ref<any, any>>;
|
|
7
7
|
originalItemInstance: import("vue").Ref<any, any> & import("vue").ComputedRef<any>;
|
|
8
8
|
isNew: import("vue").ComputedRef<boolean>;
|
|
9
|
-
saveText: import("vue").ComputedRef<
|
|
9
|
+
saveText: import("vue").ComputedRef<string>;
|
|
10
10
|
hasValidationErrors: import("vue").ComputedRef<boolean>;
|
|
11
11
|
isAnyFieldEdited: import("vue").Ref<boolean, boolean>;
|
|
12
|
-
validationFields: import("vue").ComputedRef<{}
|
|
12
|
+
validationFields: import("vue").ComputedRef<{} & {}>;
|
|
13
13
|
save: () => Promise<unknown>;
|
|
14
14
|
};
|
|
@@ -3,8 +3,8 @@ import { Ref } from 'vue';
|
|
|
3
3
|
export declare const useCardValidation: <TState, TSchema>({ validationSchema, }: {
|
|
4
4
|
validationSchema: Ref<RegleSchema<TState, TSchema>>;
|
|
5
5
|
}) => {
|
|
6
|
-
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<TState
|
|
7
|
-
validationFields: import("vue").ComputedRef<
|
|
8
|
-
hasValidationErrors: import("vue").ComputedRef<boolean
|
|
9
|
-
validate: () => Promise<import("@regle/schemas").RegleSchemaResult<
|
|
6
|
+
modelValue: import("vue").ComputedRef<import("@regle/core").JoinDiscriminatedUnions<import("vue").UnwrapNestedRefs<TState>>>;
|
|
7
|
+
validationFields: import("vue").ComputedRef<{ readonly [TKey in keyof import("@regle/core").JoinDiscriminatedUnions<TState>]: TKey extends keyof import("@regle/core").JoinDiscriminatedUnions<TSchema> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<TSchema>[TKey]>, import("@regle/core").JoinDiscriminatedUnions<TState>[TKey], {}> : never; } & { readonly [TKey_1 in keyof import("@regle/core").JoinDiscriminatedUnions<TState> as TKey_1 extends keyof import("@regle/core").JoinDiscriminatedUnions<TSchema> ? import("@regle/core").JoinDiscriminatedUnions<TSchema>[TKey_1] extends NonNullable<import("@regle/core").JoinDiscriminatedUnions<TSchema>[TKey_1]> ? TKey_1 : never : never]-?: TKey_1 extends keyof import("@regle/core").JoinDiscriminatedUnions<TSchema> ? import("@regle/schemas").InferRegleSchemaStatusType<NonNullable<import("@regle/core").JoinDiscriminatedUnions<TSchema>[TKey_1]>, import("@regle/core").JoinDiscriminatedUnions<TState>[TKey_1], {}> : never; }>;
|
|
8
|
+
hasValidationErrors: import("vue").ComputedRef<boolean>;
|
|
9
|
+
validate: () => Promise<import("@regle/schemas").RegleSchemaResult<TSchema>>;
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SubmitConfig } from './save-preset-popup.vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
-
cancel: () => any;
|
|
4
3
|
close: () => any;
|
|
4
|
+
cancel: () => any;
|
|
5
5
|
confirm: (args_0: SubmitConfig) => any;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
-
onCancel?: () => any;
|
|
8
7
|
onClose?: () => any;
|
|
8
|
+
onCancel?: () => any;
|
|
9
9
|
onConfirm?: (args_0: SubmitConfig) => any;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EnginePresetQuery } from 'webitel-sdk';
|
|
1
2
|
import type { IFiltersManager } from '../../../filters';
|
|
2
3
|
import { AnyFilterConfig } from "../../../filters/modules/filterConfig/classes/FilterConfig";
|
|
3
4
|
export type SubmitConfig = {
|
|
@@ -14,10 +15,10 @@ type __VLS_Props = {
|
|
|
14
15
|
filterConfigs: AnyFilterConfig[];
|
|
15
16
|
};
|
|
16
17
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
submit: (args_0: EnginePresetQuery, args_1?: SubmitConfig) => any;
|
|
18
18
|
close: () => any;
|
|
19
|
+
submit: (args_0: EnginePresetQuery, args_1?: SubmitConfig) => any;
|
|
19
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
-
onSubmit?: (args_0: EnginePresetQuery, args_1?: SubmitConfig) => any;
|
|
21
21
|
onClose?: () => any;
|
|
22
|
+
onSubmit?: (args_0: EnginePresetQuery, args_1?: SubmitConfig) => any;
|
|
22
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
24
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
"update:invalid": (args_0: boolean) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
9
|
+
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
package/types/modules/filters/components/config/dynamic-filter-config-form-value-input.vue.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AnyFilterConfig } from "../../modules/filterConfig/classes/FilterConfig";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
filterConfig: AnyFilterConfig;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
+
modelValue?: unknown;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: unknown) => any;
|
|
11
|
+
"update:invalid": (args_0: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: (value: unknown) => any;
|
|
14
|
+
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { WtButton, WtSelect } from '@webitel/ui-sdk/components';
|
|
2
|
+
import { FilterInitParams, IFilter } from "../../classes/Filter";
|
|
3
|
+
import { BaseFilterConfig } from "../../modules/filterConfig/classes/FilterConfig";
|
|
4
|
+
import DynamicFilterConfigFormLabel from './dynamic-filter-config-form-label.vue';
|
|
5
|
+
import DynamicFilterConfigFormValueInput from "./dynamic-filter-config-form-value-input.vue";
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* "Add" mode
|
|
10
|
+
*/
|
|
11
|
+
filterConfigs?: BaseFilterConfig[];
|
|
12
|
+
/**
|
|
13
|
+
* @description
|
|
14
|
+
* "Edit" mode
|
|
15
|
+
*/
|
|
16
|
+
filterConfig?: BaseFilterConfig;
|
|
17
|
+
/**
|
|
18
|
+
* @description
|
|
19
|
+
* Edited filter instance
|
|
20
|
+
*/
|
|
21
|
+
filter?: IFilter;
|
|
22
|
+
};
|
|
23
|
+
declare const emit: ((evt: "submit", args_0: FilterInitParams) => void) & ((evt: "cancel") => void);
|
|
24
|
+
declare const t: import("vue-i18n").ComposerTranslation<{
|
|
25
|
+
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
26
|
+
}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
27
|
+
[x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
|
|
28
|
+
}>, never, never, never>;
|
|
29
|
+
declare const filterName: import("vue").Ref<any, any>;
|
|
30
|
+
declare const filterLabel: import("vue").Ref<string, string>;
|
|
31
|
+
declare const filterValue: import("vue").Ref<any, any>;
|
|
32
|
+
declare const editMode: boolean;
|
|
33
|
+
declare const invalid: import("vue").Ref<boolean, boolean>;
|
|
34
|
+
declare const filterConfigOptions: import("vue").ComputedRef<BaseFilterConfig[]>;
|
|
35
|
+
declare const selectedFilterConfig: import("vue").ComputedRef<BaseFilterConfig>;
|
|
36
|
+
declare const onValueChange: (v: any) => void;
|
|
37
|
+
declare const onValueInvalidChange: (v: any) => void;
|
|
38
|
+
declare const valueInputLabelText: import("vue").ComputedRef<string>;
|
|
39
|
+
declare const onLabelValueUpdate: (val: string) => void;
|
|
40
|
+
declare const onFilterNameUpdate: (val: string) => void;
|
|
41
|
+
declare const submit: () => void;
|
|
42
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
43
|
+
declare var __VLS_9: {
|
|
44
|
+
filterName: any;
|
|
45
|
+
filterValue: any;
|
|
46
|
+
inputLabel: string;
|
|
47
|
+
onValueChange: (v: any) => void;
|
|
48
|
+
onValueInvalidChange: (v: any) => void;
|
|
49
|
+
};
|
|
50
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
51
|
+
'value-input'?: (props: typeof __VLS_9) => any;
|
|
52
|
+
}>;
|
|
53
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
54
|
+
WtButton: typeof WtButton;
|
|
55
|
+
WtSelect: typeof WtSelect;
|
|
56
|
+
DynamicFilterConfigFormLabel: typeof DynamicFilterConfigFormLabel;
|
|
57
|
+
DynamicFilterConfigFormValueInput: typeof DynamicFilterConfigFormValueInput;
|
|
58
|
+
emit: typeof emit;
|
|
59
|
+
t: typeof t;
|
|
60
|
+
filterName: typeof filterName;
|
|
61
|
+
filterLabel: typeof filterLabel;
|
|
62
|
+
filterValue: typeof filterValue;
|
|
63
|
+
editMode: typeof editMode;
|
|
64
|
+
invalid: typeof invalid;
|
|
65
|
+
filterConfigOptions: typeof filterConfigOptions;
|
|
66
|
+
selectedFilterConfig: typeof selectedFilterConfig;
|
|
67
|
+
onValueChange: typeof onValueChange;
|
|
68
|
+
onValueInvalidChange: typeof onValueInvalidChange;
|
|
69
|
+
valueInputLabelText: typeof valueInputLabelText;
|
|
70
|
+
onLabelValueUpdate: typeof onLabelValueUpdate;
|
|
71
|
+
onFilterNameUpdate: typeof onFilterNameUpdate;
|
|
72
|
+
submit: typeof submit;
|
|
73
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
submit: (args_0: FilterInitParams) => any;
|
|
75
|
+
cancel: () => any;
|
|
76
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
77
|
+
onSubmit?: (args_0: FilterInitParams) => any;
|
|
78
|
+
onCancel?: () => any;
|
|
79
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
80
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
|
+
submit: (args_0: FilterInitParams) => any;
|
|
82
|
+
cancel: () => any;
|
|
83
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
84
|
+
onSubmit?: (args_0: FilterInitParams) => any;
|
|
85
|
+
onCancel?: () => any;
|
|
86
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
88
|
+
export default _default;
|
|
89
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
90
|
+
new (): {
|
|
91
|
+
$slots: S;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { WtTooltip } from '@webitel/ui-sdk/components';
|
|
2
|
+
interface Props {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
disableClickAway?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
|
+
declare var __VLS_5: {
|
|
8
|
+
tooltipSlotScope: any;
|
|
9
|
+
}, __VLS_7: {
|
|
10
|
+
tooltipSlotScope: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
13
|
+
activator?: (props: typeof __VLS_5) => any;
|
|
14
|
+
} & {
|
|
15
|
+
content?: (props: typeof __VLS_7) => any;
|
|
16
|
+
}>;
|
|
17
|
+
declare const __VLS_self: import("vue").DefineComponent<Props, {
|
|
18
|
+
WtTooltip: typeof WtTooltip;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-form.vue.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { WtButton, WtSelect } from '@webitel/ui-sdk/components';
|
|
1
2
|
import { FilterInitParams, IFilter } from "../../../classes/Filter";
|
|
2
3
|
import { BaseFilterConfig } from "../../../modules/filterConfig/classes/FilterConfig";
|
|
4
|
+
import DynamicFilterConfigFormLabel from './dynamic-filter-config-form-label.vue';
|
|
5
|
+
import DynamicFilterConfigFormValueInput from "./dynamic-filter-config-form-value-input.vue";
|
|
3
6
|
type __VLS_Props = {
|
|
4
7
|
/**
|
|
5
8
|
* @description
|
|
@@ -17,16 +20,63 @@ type __VLS_Props = {
|
|
|
17
20
|
*/
|
|
18
21
|
filter?: IFilter;
|
|
19
22
|
};
|
|
23
|
+
declare const emit: ((evt: "submit", args_0: FilterInitParams) => void) & ((evt: "cancel") => void);
|
|
24
|
+
declare const t: import("vue-i18n").ComposerTranslation<{
|
|
25
|
+
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
26
|
+
}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
27
|
+
[x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
|
|
28
|
+
}>, never, never, never>;
|
|
29
|
+
declare const filterName: import("vue").Ref<any, any>;
|
|
30
|
+
declare const filterLabel: import("vue").Ref<string, string>;
|
|
31
|
+
declare const filterValue: import("vue").Ref<any, any>;
|
|
32
|
+
declare const editMode: boolean;
|
|
33
|
+
declare const invalid: import("vue").Ref<boolean, boolean>;
|
|
34
|
+
declare const filterConfigOptions: import("vue").ComputedRef<BaseFilterConfig[]>;
|
|
35
|
+
declare const selectedFilterConfig: import("vue").ComputedRef<BaseFilterConfig>;
|
|
36
|
+
declare const onValueChange: (v: any) => void;
|
|
37
|
+
declare const onValueInvalidChange: (v: any) => void;
|
|
38
|
+
declare const valueInputLabelText: import("vue").ComputedRef<string>;
|
|
39
|
+
declare const onLabelValueUpdate: (val: string) => void;
|
|
40
|
+
declare const onFilterNameUpdate: (val: string) => void;
|
|
41
|
+
declare const submit: () => void;
|
|
42
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
20
43
|
declare var __VLS_9: {
|
|
21
44
|
filterName: any;
|
|
22
45
|
filterValue: any;
|
|
23
|
-
inputLabel:
|
|
46
|
+
inputLabel: string;
|
|
24
47
|
onValueChange: (v: any) => void;
|
|
25
48
|
onValueInvalidChange: (v: any) => void;
|
|
26
49
|
};
|
|
27
|
-
type __VLS_Slots =
|
|
50
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
28
51
|
'value-input'?: (props: typeof __VLS_9) => any;
|
|
29
|
-
}
|
|
52
|
+
}>;
|
|
53
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
54
|
+
WtButton: typeof WtButton;
|
|
55
|
+
WtSelect: typeof WtSelect;
|
|
56
|
+
DynamicFilterConfigFormLabel: typeof DynamicFilterConfigFormLabel;
|
|
57
|
+
DynamicFilterConfigFormValueInput: typeof DynamicFilterConfigFormValueInput;
|
|
58
|
+
emit: typeof emit;
|
|
59
|
+
t: typeof t;
|
|
60
|
+
filterName: typeof filterName;
|
|
61
|
+
filterLabel: typeof filterLabel;
|
|
62
|
+
filterValue: typeof filterValue;
|
|
63
|
+
editMode: typeof editMode;
|
|
64
|
+
invalid: typeof invalid;
|
|
65
|
+
filterConfigOptions: typeof filterConfigOptions;
|
|
66
|
+
selectedFilterConfig: typeof selectedFilterConfig;
|
|
67
|
+
onValueChange: typeof onValueChange;
|
|
68
|
+
onValueInvalidChange: typeof onValueInvalidChange;
|
|
69
|
+
valueInputLabelText: typeof valueInputLabelText;
|
|
70
|
+
onLabelValueUpdate: typeof onLabelValueUpdate;
|
|
71
|
+
onFilterNameUpdate: typeof onFilterNameUpdate;
|
|
72
|
+
submit: typeof submit;
|
|
73
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
submit: (args_0: FilterInitParams) => any;
|
|
75
|
+
cancel: () => any;
|
|
76
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
77
|
+
onSubmit?: (args_0: FilterInitParams) => any;
|
|
78
|
+
onCancel?: () => any;
|
|
79
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
80
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
81
|
submit: (args_0: FilterInitParams) => any;
|
|
32
82
|
cancel: () => any;
|
package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-view.vue.d.ts
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* this component should only be used for config view representation: tooltip/popup/etc,
|
|
3
|
+
* and their styling
|
|
4
|
+
*/
|
|
5
|
+
import { WtPopover } from '@webitel/ui-sdk/components';
|
|
1
6
|
interface Props {
|
|
2
7
|
disabled?: boolean;
|
|
3
8
|
disableClickAway?: boolean;
|
|
4
9
|
}
|
|
10
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
11
|
declare var __VLS_5: {
|
|
6
|
-
toggle:
|
|
12
|
+
toggle: (event?: Event, target?: HTMLElement | null | undefined) => void;
|
|
7
13
|
disabled: boolean;
|
|
8
14
|
}, __VLS_7: {
|
|
9
|
-
hide:
|
|
15
|
+
hide: (event?: Event) => void;
|
|
10
16
|
};
|
|
11
|
-
type __VLS_Slots =
|
|
17
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
12
18
|
activator?: (props: typeof __VLS_5) => any;
|
|
13
19
|
} & {
|
|
14
20
|
content?: (props: typeof __VLS_7) => any;
|
|
15
|
-
}
|
|
21
|
+
}>;
|
|
22
|
+
declare const __VLS_self: import("vue").DefineComponent<Props, {
|
|
23
|
+
WtPopover: typeof WtPopover;
|
|
24
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
25
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
26
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
27
|
export default _default;
|
|
@@ -1,13 +1,36 @@
|
|
|
1
|
+
import { WtIconAction } from '@webitel/ui-sdk/components';
|
|
1
2
|
import { FilterInitParams } from "../classes/Filter";
|
|
2
3
|
import { BaseFilterConfig } from "../modules/filterConfig/classes/FilterConfig";
|
|
4
|
+
import DynamicFilterConfigForm from './config/dynamic-view/dynamic-filter-config-form.vue';
|
|
5
|
+
import DynamicFilterConfigView from './config/dynamic-view/dynamic-filter-config-view.vue';
|
|
3
6
|
interface Props {
|
|
4
7
|
filterConfigs: BaseFilterConfig[];
|
|
5
8
|
showLabel?: boolean;
|
|
6
9
|
}
|
|
10
|
+
declare const t: import("vue-i18n").ComposerTranslation<{
|
|
11
|
+
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
12
|
+
}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
13
|
+
[x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
|
|
14
|
+
}>, never, never, never>;
|
|
15
|
+
declare const submit: (payload: FilterInitParams, { hide }: {
|
|
16
|
+
hide: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
19
|
declare var __VLS_9: {};
|
|
8
|
-
type __VLS_Slots =
|
|
20
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
9
21
|
form?: (props: typeof __VLS_9) => any;
|
|
10
|
-
}
|
|
22
|
+
}>;
|
|
23
|
+
declare const __VLS_self: import("vue").DefineComponent<Props, {
|
|
24
|
+
WtIconAction: typeof WtIconAction;
|
|
25
|
+
DynamicFilterConfigForm: typeof DynamicFilterConfigForm;
|
|
26
|
+
DynamicFilterConfigView: typeof DynamicFilterConfigView;
|
|
27
|
+
t: typeof t;
|
|
28
|
+
submit: typeof submit;
|
|
29
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
"add:filter": (args_0: FilterInitParams) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
+
"onAdd:filter"?: (args_0: FilterInitParams) => any;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
34
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
35
|
"add:filter": (args_0: FilterInitParams) => any;
|
|
13
36
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
@@ -2,12 +2,16 @@ import { ComponentSize } from '@webitel/ui-sdk/enums';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
size?: ComponentSize;
|
|
4
4
|
};
|
|
5
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
6
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
6
|
-
type __VLS_Slots =
|
|
7
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
8
|
filters?: (props: typeof __VLS_1) => any;
|
|
8
9
|
} & {
|
|
9
10
|
actions?: (props: typeof __VLS_3) => any;
|
|
10
|
-
}
|
|
11
|
+
}>;
|
|
12
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
size: ComponentSize;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
15
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
16
|
size: ComponentSize;
|
|
13
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
1
2
|
declare var __VLS_1: {}, __VLS_7: {};
|
|
2
|
-
type __VLS_Slots =
|
|
3
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
3
4
|
header?: (props: typeof __VLS_1) => any;
|
|
4
5
|
} & {
|
|
5
6
|
default?: (props: typeof __VLS_7) => any;
|
|
6
|
-
}
|
|
7
|
+
}>;
|
|
8
|
+
declare const __VLS_self: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
9
|
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
9
11
|
export default _default;
|
|
@@ -1,13 +1,45 @@
|
|
|
1
|
+
import { WtChip, WtIconBtn, WtLoader, WtPopover } from '@webitel/ui-sdk/components';
|
|
1
2
|
import { IFilter } from '../../classes/Filter';
|
|
3
|
+
import DynamicFilterConfigForm from '../config/dynamic-view/dynamic-filter-config-form.vue';
|
|
4
|
+
import DynamicFilterConfigView from '../config/dynamic-view/dynamic-filter-config-view.vue';
|
|
2
5
|
import { DynamicFilterProps } from '../types/Filter.types';
|
|
3
|
-
|
|
6
|
+
import DynamicFilterPreviewInfo from './dynamic-filter-preview-info.vue';
|
|
7
|
+
declare const localValue: import("vue").Ref<any, any>;
|
|
8
|
+
declare const showChipPopover: (event: any, showPopoverCb: (event: any) => void) => void;
|
|
9
|
+
declare const isRenderPreview: import("vue").ComputedRef<any>;
|
|
10
|
+
declare const submit: (filter: IFilter, { hide }: {
|
|
4
11
|
hide: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
declare const deleteFilter: () => void;
|
|
14
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
15
|
+
declare var __VLS_24: {}, __VLS_34: {
|
|
16
|
+
hide: (event?: Event) => void;
|
|
5
17
|
};
|
|
6
|
-
type __VLS_Slots =
|
|
18
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
19
|
info?: (props: typeof __VLS_24) => any;
|
|
8
20
|
} & {
|
|
9
21
|
form?: (props: typeof __VLS_34) => any;
|
|
10
|
-
}
|
|
22
|
+
}>;
|
|
23
|
+
declare const __VLS_self: import("vue").DefineComponent<DynamicFilterProps, {
|
|
24
|
+
WtChip: typeof WtChip;
|
|
25
|
+
WtIconBtn: typeof WtIconBtn;
|
|
26
|
+
WtLoader: typeof WtLoader;
|
|
27
|
+
WtPopover: typeof WtPopover;
|
|
28
|
+
DynamicFilterConfigForm: typeof DynamicFilterConfigForm;
|
|
29
|
+
DynamicFilterConfigView: typeof DynamicFilterConfigView;
|
|
30
|
+
DynamicFilterPreviewInfo: typeof DynamicFilterPreviewInfo;
|
|
31
|
+
localValue: typeof localValue;
|
|
32
|
+
showChipPopover: typeof showChipPopover;
|
|
33
|
+
isRenderPreview: typeof isRenderPreview;
|
|
34
|
+
submit: typeof submit;
|
|
35
|
+
deleteFilter: typeof deleteFilter;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
"update:filter": (args_0: import("../../classes/Filter").FilterData) => any;
|
|
38
|
+
"delete:filter": (args_0: IFilter) => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<DynamicFilterProps> & Readonly<{
|
|
40
|
+
"onUpdate:filter"?: (args_0: import("../../classes/Filter").FilterData) => any;
|
|
41
|
+
"onDelete:filter"?: (args_0: IFilter) => any;
|
|
42
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
43
|
declare const __VLS_component: import("vue").DefineComponent<DynamicFilterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
44
|
"update:filter": (args_0: import("../../classes/Filter").FilterData) => any;
|
|
13
45
|
"delete:filter": (args_0: IFilter) => any;
|
|
@@ -19,9 +19,9 @@ declare class AuditorFilterConfig extends WtSysTypeFilterConfig {
|
|
|
19
19
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
22
|
-
value: EngineQueue[];
|
|
22
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
23
23
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
24
|
-
value: EngineQueue[];
|
|
24
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
25
25
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
searchRecords(params: object): Promise<{
|
|
27
27
|
items: unknown[];
|
package/types/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { contacts as ContactsAPI } from '@webitel/ui-sdk/api/clients/index';
|
|
2
1
|
import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
3
2
|
declare class CaseAssigneeFilterConfig extends WtSysTypeFilterConfig {
|
|
4
3
|
readonly name: "assignee";
|
|
@@ -30,10 +29,10 @@ 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: import("webitel-sdk").WebitelContactsContact[];
|
|
34
33
|
filter: import("../../../..").IFilter;
|
|
35
34
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
36
|
-
value:
|
|
35
|
+
value: import("webitel-sdk").WebitelContactsContact[];
|
|
37
36
|
filter: import("../../../..").IFilter;
|
|
38
37
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
38
|
searchRecords(params: object, { filterValue }?: {}): Promise<{
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { contactGroups } from '@webitel/ui-sdk/api/clients/index';
|
|
2
1
|
import { IWtSysTypeFilterConfig, WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
3
2
|
declare class ContactGroupFilterConfig extends WtSysTypeFilterConfig {
|
|
4
3
|
readonly name: "contactGroup";
|
|
@@ -34,10 +33,10 @@ declare class ContactGroupFilterConfig extends WtSysTypeFilterConfig {
|
|
|
34
33
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
35
34
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
35
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
37
|
-
value:
|
|
36
|
+
value: import("webitel-sdk").WebitelContactsContact[];
|
|
38
37
|
filter: import("../../../..").IFilter;
|
|
39
38
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
40
|
-
value:
|
|
39
|
+
value: import("webitel-sdk").WebitelContactsContact[];
|
|
41
40
|
filter: import("../../../..").IFilter;
|
|
42
41
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
42
|
hideUnassigned?: boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RelativeDatetimeValue } from '@webitel/ui-sdk/enums';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
modelValue?: RelativeDatetimeValue | {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: RelativeDatetimeValue | {
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
}) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: (value: RelativeDatetimeValue | {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
}) => any;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RelativeDatetimeValue } from '@webitel/ui-sdk/enums';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
} | RelativeDatetimeValue;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: 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>;
|
|
9
|
+
export default _default;
|
|
@@ -133,7 +133,7 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
133
133
|
items: unknown[];
|
|
134
134
|
next?: boolean;
|
|
135
135
|
}>;
|
|
136
|
-
label?: ReturnType<
|
|
136
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
137
137
|
staticView?: boolean;
|
|
138
138
|
notDeletable: boolean;
|
|
139
139
|
showFilterName: boolean;
|
|
@@ -164,7 +164,7 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
164
164
|
items: unknown[];
|
|
165
165
|
next?: boolean;
|
|
166
166
|
}>;
|
|
167
|
-
label?: ReturnType<
|
|
167
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
168
168
|
staticView?: boolean;
|
|
169
169
|
notDeletable: boolean;
|
|
170
170
|
showFilterName: boolean;
|
|
@@ -203,10 +203,10 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
203
203
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
204
204
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
205
205
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
206
|
-
value:
|
|
206
|
+
value: import("webitel-sdk").WebitelContactsContact[];
|
|
207
207
|
filter: import("../../..").IFilter;
|
|
208
208
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
209
|
-
value:
|
|
209
|
+
value: import("webitel-sdk").WebitelContactsContact[];
|
|
210
210
|
filter: import("../../..").IFilter;
|
|
211
211
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
212
212
|
hideUnassigned?: boolean;
|
|
@@ -214,7 +214,7 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
214
214
|
items: unknown[];
|
|
215
215
|
next?: boolean;
|
|
216
216
|
}>;
|
|
217
|
-
label?: ReturnType<
|
|
217
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
218
218
|
staticView?: boolean;
|
|
219
219
|
notDeletable: boolean;
|
|
220
220
|
showFilterName: boolean;
|
|
@@ -239,15 +239,15 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
239
239
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
240
240
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
241
241
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
242
|
-
value:
|
|
242
|
+
value: import("webitel-sdk").EngineAgentTeam[];
|
|
243
243
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
244
|
-
value:
|
|
244
|
+
value: import("webitel-sdk").EngineAgentTeam[];
|
|
245
245
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
246
246
|
searchRecords(params: object): Promise<{
|
|
247
247
|
items: unknown[];
|
|
248
248
|
next?: boolean;
|
|
249
249
|
}>;
|
|
250
|
-
label?: ReturnType<
|
|
250
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
251
251
|
staticView?: boolean;
|
|
252
252
|
notDeletable: boolean;
|
|
253
253
|
showFilterName: boolean;
|
|
@@ -272,15 +272,15 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
272
272
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
273
273
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
274
274
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
275
|
-
value:
|
|
275
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
276
276
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
277
|
-
value:
|
|
277
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
278
278
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
279
279
|
searchRecords(params: object): Promise<{
|
|
280
280
|
items: unknown[];
|
|
281
281
|
next?: boolean;
|
|
282
282
|
}>;
|
|
283
|
-
label?: ReturnType<
|
|
283
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
284
284
|
staticView?: boolean;
|
|
285
285
|
notDeletable: boolean;
|
|
286
286
|
showFilterName: boolean;
|
|
@@ -305,15 +305,15 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
305
305
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
306
306
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
307
307
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
308
|
-
value:
|
|
308
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
309
309
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
310
|
-
value:
|
|
310
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
311
311
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
312
312
|
searchRecords(params: object): Promise<{
|
|
313
313
|
items: unknown[];
|
|
314
314
|
next?: boolean;
|
|
315
315
|
}>;
|
|
316
|
-
label?: ReturnType<
|
|
316
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
317
317
|
staticView?: boolean;
|
|
318
318
|
notDeletable: boolean;
|
|
319
319
|
showFilterName: boolean;
|
|
@@ -338,15 +338,15 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
338
338
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
339
339
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
340
340
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
341
|
-
value:
|
|
341
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
342
342
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
343
|
-
value:
|
|
343
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
344
344
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
345
345
|
searchRecords(params: object): Promise<{
|
|
346
346
|
items: unknown[];
|
|
347
347
|
next?: boolean;
|
|
348
348
|
}>;
|
|
349
|
-
label?: ReturnType<
|
|
349
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
350
350
|
staticView?: boolean;
|
|
351
351
|
notDeletable: boolean;
|
|
352
352
|
showFilterName: boolean;
|
|
@@ -371,15 +371,15 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
371
371
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
372
372
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
373
373
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
374
|
-
value:
|
|
374
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
375
375
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
376
|
-
value:
|
|
376
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
377
377
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
378
378
|
searchRecords(params: object): Promise<{
|
|
379
379
|
items: unknown[];
|
|
380
380
|
next?: boolean;
|
|
381
381
|
}>;
|
|
382
|
-
label?: ReturnType<
|
|
382
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
383
383
|
staticView?: boolean;
|
|
384
384
|
notDeletable: boolean;
|
|
385
385
|
showFilterName: boolean;
|
|
@@ -404,15 +404,15 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
404
404
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
405
405
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
406
406
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
407
|
-
value:
|
|
407
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
408
408
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
409
|
-
value:
|
|
409
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
410
410
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
411
411
|
searchRecords(params: object): Promise<{
|
|
412
412
|
items: unknown[];
|
|
413
413
|
next?: boolean;
|
|
414
414
|
}>;
|
|
415
|
-
label?: ReturnType<
|
|
415
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
416
416
|
staticView?: boolean;
|
|
417
417
|
notDeletable: boolean;
|
|
418
418
|
showFilterName: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { queues as QueuesAPI } from '@webitel/ui-sdk/api/clients/index';
|
|
2
1
|
import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
3
2
|
declare class QueueFilterConfig extends WtSysTypeFilterConfig {
|
|
4
3
|
readonly name: "queue";
|
|
@@ -20,9 +19,9 @@ declare class QueueFilterConfig extends WtSysTypeFilterConfig {
|
|
|
20
19
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
21
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
21
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
23
|
-
value:
|
|
22
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
24
23
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
25
|
-
value:
|
|
24
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
26
25
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
26
|
searchRecords(params: object): Promise<{
|
|
28
27
|
items: unknown[];
|
|
@@ -19,9 +19,9 @@ declare class RegionFilterConfig extends WtSysTypeFilterConfig {
|
|
|
19
19
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
22
|
-
value: EngineQueue[];
|
|
22
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
23
23
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
24
|
-
value: EngineQueue[];
|
|
24
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
25
25
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
searchRecords(params: object): Promise<{
|
|
27
27
|
items: unknown[];
|
|
@@ -19,9 +19,9 @@ declare class SkillFilterConfig extends WtSysTypeFilterConfig {
|
|
|
19
19
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
22
|
-
value: EngineQueue[];
|
|
22
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
23
23
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
24
|
-
value: EngineQueue[];
|
|
24
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
25
25
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
searchRecords(params: object): Promise<{
|
|
27
27
|
items: unknown[];
|
|
@@ -19,9 +19,9 @@ declare class SupervisorFilterConfig extends WtSysTypeFilterConfig {
|
|
|
19
19
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
22
|
-
value: EngineQueue[];
|
|
22
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
23
23
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
24
|
-
value: EngineQueue[];
|
|
24
|
+
value: import("webitel-sdk").EngineQueue[];
|
|
25
25
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
searchRecords(params: object): Promise<{
|
|
27
27
|
items: unknown[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { teams as TeamsAPI } from '@webitel/ui-sdk/api/clients/index';
|
|
2
1
|
import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
|
|
3
2
|
declare class TeamFilterConfig extends WtSysTypeFilterConfig {
|
|
4
3
|
readonly name: "team";
|
|
@@ -20,9 +19,9 @@ declare class TeamFilterConfig extends WtSysTypeFilterConfig {
|
|
|
20
19
|
"onUpdate:invalid"?: (args_0: boolean) => any;
|
|
21
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
21
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
23
|
-
value:
|
|
22
|
+
value: import("webitel-sdk").EngineAgentTeam[];
|
|
24
23
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
25
|
-
value:
|
|
24
|
+
value: import("webitel-sdk").EngineAgentTeam[];
|
|
26
25
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
26
|
searchRecords(params: object): Promise<{
|
|
28
27
|
items: unknown[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare const useFormComponent: ({ checkIfInvalid, isLoading, saveItem, }: {
|
|
3
|
+
checkIfInvalid?: () => boolean;
|
|
4
|
+
isLoading?: Ref<boolean>;
|
|
5
|
+
saveItem: () => Promise<unknown>;
|
|
6
|
+
}) => {
|
|
7
|
+
debouncedIsLoading: Readonly<Ref<boolean, boolean>>;
|
|
8
|
+
save: () => Promise<unknown>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RegleSchema } from '@regle/schemas';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export declare const useValidation: <TState, TSchema>({ validationSchema, }: {
|
|
4
|
+
validationSchema: Ref<RegleSchema<TState, TSchema>>;
|
|
5
|
+
}) => {
|
|
6
|
+
disabledSave: import("vue").ComputedRef<boolean>;
|
|
7
|
+
isEdited: import("vue").ComputedRef<boolean>;
|
|
8
|
+
touch: () => void;
|
|
9
|
+
checkIfInvalid: () => boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { RegleSchemaBehaviourOptions } from '@regle/schemas';
|
|
2
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
+
import { ApiModule } from '@webitel/ui-sdk/api/types/ApiModule.type';
|
|
4
|
+
export declare const createFormStore: <Entity = object>({ namespace, apiModule, standardValidationSchema, validationSchemaOptions, }: {
|
|
5
|
+
namespace: string;
|
|
6
|
+
apiModule: ApiModule<Entity>;
|
|
7
|
+
standardValidationSchema?: StandardSchemaV1 | null;
|
|
8
|
+
validationSchemaOptions?: RegleSchemaBehaviourOptions;
|
|
9
|
+
}) => import("pinia").StoreDefinition<string, Pick<{
|
|
10
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
11
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
12
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
13
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
14
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
15
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
16
|
+
error: import("vue").Ref<any, any>;
|
|
17
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
18
|
+
itemInstance?: Entity;
|
|
19
|
+
itemId?: string | number;
|
|
20
|
+
parentId?: string | number;
|
|
21
|
+
}) => Promise<void>;
|
|
22
|
+
saveItem: () => Promise<void>;
|
|
23
|
+
}, keyof ({
|
|
24
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
25
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
26
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
27
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
28
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
29
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
30
|
+
error: import("vue").Ref<any, any>;
|
|
31
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
32
|
+
itemInstance?: Entity;
|
|
33
|
+
itemId?: string | number;
|
|
34
|
+
parentId?: string | number;
|
|
35
|
+
}) => Promise<void>;
|
|
36
|
+
saveItem: () => Promise<void>;
|
|
37
|
+
} extends infer T ? { [K in keyof T as {
|
|
38
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
39
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
40
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
41
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
42
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
43
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
44
|
+
error: import("vue").Ref<any, any>;
|
|
45
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
46
|
+
itemInstance?: Entity;
|
|
47
|
+
itemId?: string | number;
|
|
48
|
+
parentId?: string | number;
|
|
49
|
+
}) => Promise<void>;
|
|
50
|
+
saveItem: () => Promise<void>;
|
|
51
|
+
}[K] extends import("vue").ComputedRef<any> | import("pinia")._Method ? never : K]: any; } : never)>, Pick<{
|
|
52
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
53
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
54
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
55
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
56
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
57
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
58
|
+
error: import("vue").Ref<any, any>;
|
|
59
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
60
|
+
itemInstance?: Entity;
|
|
61
|
+
itemId?: string | number;
|
|
62
|
+
parentId?: string | number;
|
|
63
|
+
}) => Promise<void>;
|
|
64
|
+
saveItem: () => Promise<void>;
|
|
65
|
+
}, keyof ({
|
|
66
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
67
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
68
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
69
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
70
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
71
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
72
|
+
error: import("vue").Ref<any, any>;
|
|
73
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
74
|
+
itemInstance?: Entity;
|
|
75
|
+
itemId?: string | number;
|
|
76
|
+
parentId?: string | number;
|
|
77
|
+
}) => Promise<void>;
|
|
78
|
+
saveItem: () => Promise<void>;
|
|
79
|
+
} extends infer T_1 ? { [K_1 in keyof T_1 as {
|
|
80
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
81
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
82
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
83
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
84
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
85
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
86
|
+
error: import("vue").Ref<any, any>;
|
|
87
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
88
|
+
itemInstance?: Entity;
|
|
89
|
+
itemId?: string | number;
|
|
90
|
+
parentId?: string | number;
|
|
91
|
+
}) => Promise<void>;
|
|
92
|
+
saveItem: () => Promise<void>;
|
|
93
|
+
}[K_1] extends import("vue").ComputedRef<any> ? K_1 : never]: any; } : never)>, Pick<{
|
|
94
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
95
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
96
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
97
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
98
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
99
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
100
|
+
error: import("vue").Ref<any, any>;
|
|
101
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
102
|
+
itemInstance?: Entity;
|
|
103
|
+
itemId?: string | number;
|
|
104
|
+
parentId?: string | number;
|
|
105
|
+
}) => Promise<void>;
|
|
106
|
+
saveItem: () => Promise<void>;
|
|
107
|
+
}, keyof ({
|
|
108
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
109
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
110
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
111
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
112
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
113
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
114
|
+
error: import("vue").Ref<any, any>;
|
|
115
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
116
|
+
itemInstance?: Entity;
|
|
117
|
+
itemId?: string | number;
|
|
118
|
+
parentId?: string | number;
|
|
119
|
+
}) => Promise<void>;
|
|
120
|
+
saveItem: () => Promise<void>;
|
|
121
|
+
} extends infer T_2 ? { [K_2 in keyof T_2 as {
|
|
122
|
+
parentId: import("vue").Ref<string | number, string | number>;
|
|
123
|
+
itemId: import("vue").Ref<string | number, string | number>;
|
|
124
|
+
itemInstance: [Entity] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<Entity, import("vue").Ref<Entity, Entity>, Entity> : import("vue").Ref<import("vue").UnwrapRef<Entity>, Entity | import("vue").UnwrapRef<Entity>>;
|
|
125
|
+
validationSchema: import("vue").Ref<any, any>;
|
|
126
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
127
|
+
isSaving: import("vue").Ref<boolean, boolean>;
|
|
128
|
+
error: import("vue").Ref<any, any>;
|
|
129
|
+
initialize: ({ itemInstance: initialItemInstance, itemId: initialItemId, parentId: initialParentId, }?: {
|
|
130
|
+
itemInstance?: Entity;
|
|
131
|
+
itemId?: string | number;
|
|
132
|
+
parentId?: string | number;
|
|
133
|
+
}) => Promise<void>;
|
|
134
|
+
saveItem: () => Promise<void>;
|
|
135
|
+
}[K_2] extends import("pinia")._Method ? K_2 : never]: any; } : never)>>;
|
|
@@ -3,7 +3,6 @@ import type { Ref } from 'vue';
|
|
|
3
3
|
import { WtTableHeader } from '../../../../../src/components/wt-table/types/WtTable';
|
|
4
4
|
import { IFiltersManager } from '../filters';
|
|
5
5
|
import { DatalistStoreProviderType } from './StoreProvider';
|
|
6
|
-
export type TrackSelectedRowBy<T> = (row: T) => T;
|
|
7
6
|
export interface useTableStoreConfig<Entity> {
|
|
8
7
|
apiModule: ApiModule<Entity>;
|
|
9
8
|
headers: WtTableHeader[];
|