@webitel/ui-datalist 1.0.54 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/modules/card/stores/createCardStore.ts +1 -1
- package/types/modules/card/composables/useCardComponent.d.ts +1 -1
- package/types/modules/card/composables/useCardRouting.d.ts +1 -1
- 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 +7 -3
- package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-view.vue.d.ts +2 -2
- package/types/modules/filters/components/dynamic-filter-add-action.vue.d.ts +5 -1
- package/types/modules/filters/components/preview/dynamic-filter-preview.vue.d.ts +1 -1
- 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/index.d.ts +5 -5
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-datalist",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
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",
|
|
@@ -10,7 +10,7 @@ import { CardItemId, CardParentId } from '../types/CardStore.types';
|
|
|
10
10
|
|
|
11
11
|
const defaultRegleValidationOptions: RegleSchemaBehaviourOptions &
|
|
12
12
|
RegleBehaviourOptions = {
|
|
13
|
-
autoDirty:
|
|
13
|
+
autoDirty: true, // compute errors only on $validate() fn (btn click)
|
|
14
14
|
syncState: {
|
|
15
15
|
onValidate: true, // make zod defaults fill state
|
|
16
16
|
},
|
|
@@ -6,7 +6,7 @@ export declare const useCardComponent: <CardEntity>({ useCardStore, }: {
|
|
|
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
12
|
validationFields: import("vue").ComputedRef<{} & {}>;
|
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EnginePresetQuery } from 'webitel-sdk';
|
|
1
2
|
export declare const createFilterPresetsStore: (namespace?: string) => import("../../types/createDatalistStore.types.js").PatchableStoreFactory<{
|
|
2
3
|
dataList: import("vue").Ref<EnginePresetQuery[], EnginePresetQuery[]>;
|
|
3
4
|
selected: import("vue").Ref<EnginePresetQuery[], EnginePresetQuery[]>;
|
|
@@ -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
|
@@ -21,7 +21,11 @@ type __VLS_Props = {
|
|
|
21
21
|
filter?: IFilter;
|
|
22
22
|
};
|
|
23
23
|
declare const emit: ((evt: "submit", args_0: FilterInitParams) => void) & ((evt: "cancel") => void);
|
|
24
|
-
declare const t:
|
|
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>;
|
|
25
29
|
declare const filterName: import("vue").Ref<any, any>;
|
|
26
30
|
declare const filterLabel: import("vue").Ref<string, string>;
|
|
27
31
|
declare const filterValue: import("vue").Ref<any, any>;
|
|
@@ -31,7 +35,7 @@ declare const filterConfigOptions: import("vue").ComputedRef<BaseFilterConfig[]>
|
|
|
31
35
|
declare const selectedFilterConfig: import("vue").ComputedRef<BaseFilterConfig>;
|
|
32
36
|
declare const onValueChange: (v: any) => void;
|
|
33
37
|
declare const onValueInvalidChange: (v: any) => void;
|
|
34
|
-
declare const valueInputLabelText: import("vue").ComputedRef<
|
|
38
|
+
declare const valueInputLabelText: import("vue").ComputedRef<string>;
|
|
35
39
|
declare const onLabelValueUpdate: (val: string) => void;
|
|
36
40
|
declare const onFilterNameUpdate: (val: string) => void;
|
|
37
41
|
declare const submit: () => void;
|
|
@@ -39,7 +43,7 @@ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new ()
|
|
|
39
43
|
declare var __VLS_9: {
|
|
40
44
|
filterName: any;
|
|
41
45
|
filterValue: any;
|
|
42
|
-
inputLabel:
|
|
46
|
+
inputLabel: string;
|
|
43
47
|
onValueChange: (v: any) => void;
|
|
44
48
|
onValueInvalidChange: (v: any) => void;
|
|
45
49
|
};
|
package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-view.vue.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ interface Props {
|
|
|
9
9
|
}
|
|
10
10
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
11
11
|
declare var __VLS_5: {
|
|
12
|
-
toggle:
|
|
12
|
+
toggle: (event?: Event) => void;
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
}, __VLS_7: {
|
|
15
|
-
hide:
|
|
15
|
+
hide: (event?: Event) => void;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
18
18
|
activator?: (props: typeof __VLS_5) => any;
|
|
@@ -7,7 +7,11 @@ interface Props {
|
|
|
7
7
|
filterConfigs: BaseFilterConfig[];
|
|
8
8
|
showLabel?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const t:
|
|
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>;
|
|
11
15
|
declare const submit: (payload: FilterInitParams, { hide }: {
|
|
12
16
|
hide: any;
|
|
13
17
|
}) => void;
|
|
@@ -13,7 +13,7 @@ declare const submit: (filter: IFilter, { hide }: {
|
|
|
13
13
|
declare const deleteFilter: () => void;
|
|
14
14
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
15
15
|
declare var __VLS_24: {}, __VLS_34: {
|
|
16
|
-
hide:
|
|
16
|
+
hide: (event?: Event) => void;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
19
19
|
info?: (props: typeof __VLS_24) => any;
|
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
|
}) => 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
|
}) => 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;
|
|
@@ -117,7 +117,7 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
117
117
|
items: unknown[];
|
|
118
118
|
next?: boolean;
|
|
119
119
|
}>;
|
|
120
|
-
label?: ReturnType<
|
|
120
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
121
121
|
staticView?: boolean;
|
|
122
122
|
notDeletable: boolean;
|
|
123
123
|
};
|
|
@@ -147,7 +147,7 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
147
147
|
items: unknown[];
|
|
148
148
|
next?: boolean;
|
|
149
149
|
}>;
|
|
150
|
-
label?: ReturnType<
|
|
150
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
151
151
|
staticView?: boolean;
|
|
152
152
|
notDeletable: boolean;
|
|
153
153
|
};
|
|
@@ -185,10 +185,10 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
185
185
|
}) => any;
|
|
186
186
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
187
187
|
valuePreviewComponent: import("vue").DefineComponent<{
|
|
188
|
-
value:
|
|
188
|
+
value: import("webitel-sdk").WebitelContactsContact[];
|
|
189
189
|
filter: import("../../..").IFilter;
|
|
190
190
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
191
|
-
value:
|
|
191
|
+
value: import("webitel-sdk").WebitelContactsContact[];
|
|
192
192
|
filter: import("../../..").IFilter;
|
|
193
193
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
194
194
|
hideUnassigned?: boolean;
|
|
@@ -196,7 +196,7 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
|
|
|
196
196
|
items: unknown[];
|
|
197
197
|
next?: boolean;
|
|
198
198
|
}>;
|
|
199
|
-
label?: ReturnType<
|
|
199
|
+
label?: ReturnType<import("vue-i18n").MessageResolver> | string;
|
|
200
200
|
staticView?: boolean;
|
|
201
201
|
notDeletable: boolean;
|
|
202
202
|
};
|
|
@@ -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)>>;
|