@webitel/ui-datalist 1.0.50 → 1.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/Readme.md +70 -2
  2. package/package.json +1 -1
  3. package/src/modules/card/index.ts +0 -2
  4. package/src/modules/filter-presets/index.ts +1 -1
  5. package/src/modules/persist/usePersistedStorage.ts +3 -3
  6. package/types/modules/card/composables/useCardComponent.d.ts +1 -1
  7. package/types/modules/card/composables/useCardRouting.d.ts +1 -1
  8. package/types/modules/card/composables/useItemCardSaveText.d.ts +1 -1
  9. package/types/modules/card/index.d.ts +0 -2
  10. package/types/modules/filter-presets/components/save-preset/overwrite-preset-popup.vue.d.ts +2 -2
  11. package/types/modules/filter-presets/components/save-preset/save-preset-popup.vue.d.ts +2 -3
  12. package/types/modules/filter-presets/index.d.ts +1 -1
  13. package/types/modules/filter-presets/stores/createFilterPresetsStore.d.ts +0 -1
  14. package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-form.vue.d.ts +3 -7
  15. package/types/modules/filters/components/config/dynamic-view/dynamic-filter-config-view.vue.d.ts +2 -6
  16. package/types/modules/filters/components/dynamic-filter-add-action.vue.d.ts +2 -8
  17. package/types/modules/filters/components/preview/dynamic-filter-preview.vue.d.ts +1 -3
  18. package/types/modules/filters/modules/filterConfig/components/case-assignee/filterConfig.d.ts +3 -2
  19. package/types/modules/filters/modules/filterConfig/components/contact-group/index.d.ts +3 -2
  20. package/types/modules/filters/modules/filterConfig/components/index.d.ts +5 -5
  21. package/types/modules/persist/usePersistedStorage.d.ts +1 -1
  22. package/types/modules/filters/components/config/dynamic-filter-config-form-label.vue.d.ts +0 -11
  23. package/types/modules/filters/components/config/dynamic-filter-config-form-value-input.vue.d.ts +0 -16
  24. package/types/modules/filters/components/config/dynamic-filter-config-form.vue.d.ts +0 -93
  25. package/types/modules/filters/components/config/dynamic-filter-config-view.vue.d.ts +0 -27
  26. package/types/modules/form/composables/useFormComponent.d.ts +0 -9
  27. package/types/modules/form/composables/useItemCardSaveText.d.ts +0 -7
  28. package/types/modules/form/composables/useValidation.d.ts +0 -10
  29. package/types/modules/form/index.d.ts +0 -4
  30. package/types/modules/form/stores/createFormStore.d.ts +0 -135
package/Readme.md CHANGED
@@ -1,14 +1,82 @@
1
- # @webitel/ui-datalist
1
+ # `@webitel/ui-datalist`
2
2
 
3
- This package contains necessary tools for building datalists in Webitel frontend projects.
3
+ High level package. Contains neccessary tools for building datalists in Webitel frontend projects.
4
+
5
+ ## Deps:
6
+
7
+ * `@webitel/ui-sdk`
8
+ * `@webitel/api-serivices`
9
+
10
+ ## Contents
4
11
 
5
12
  This package contains:
6
13
 
7
14
  * table tools (store, components, etc)
15
+ * card page tools (store, components, etc)
8
16
  * table filters (store, components, etc)
17
+ * table filter presets (store, components, etc)
18
+
19
+ ## Exports
20
+
21
+ ### Table tools
22
+
23
+ ...Store Factory.
24
+
25
+ #### Import
26
+
27
+ ```ts
28
+ import {
29
+ createTableStore, // pinia store factory
30
+ } from '@webitel/ui-datalist';
31
+ ```
32
+
33
+ ### Filters tools
34
+
35
+ #### Import
36
+
37
+ ```ts
38
+ import {
39
+ createFiltersManager, // FiltersManager - filters container. basically, a Map with methods. not! a store
40
+ DynamicFilterSearchComponent, // Searchbar Component
41
+ Filter, // Filter - filter component, used in filtersManager
42
+ FilterOption, // enum of avaliable filters
43
+ TableFiltersPanelComponent, // all-in-one filters panel component (between page header and table)
44
+ } from '@webitel/ui-datalist/filters';
45
+ ```
46
+
47
+ ### Filter Presets tools
48
+
49
+ #### Import
50
+
51
+ ```ts
52
+ import {
53
+ ApplyPresetAction, // Icon Action Component
54
+ SavePresetAction, // Icon Action Component
55
+
56
+ createFilterPresetsStore, // pinia store factory
57
+ } from '@webitel/ui-datalist/presets';
58
+ ```
59
+
60
+ ### Card tools
61
+
62
+ >[!NOTE]
63
+ > Form validation included.
64
+
65
+ aka "page"/"entity page"/"item card"/"item form" - form card of a single item from datalist.
66
+
67
+ #### Import
68
+
69
+ ```ts
70
+ import {
71
+ createCardStore, // pinia store factory
72
+ useCardComponent, // all-in-one composable for card component wrapper (opened-*entity*.vue)
73
+ } from '@webitel/ui-datalist/card';
74
+ ```
9
75
 
10
76
  ## Versions
11
77
 
78
+ // TODO: describe new major/minor versions, if will be needed
79
+
12
80
  ### 1.0.x
13
81
 
14
82
  #### Contents:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-datalist",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
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",
@@ -1,4 +1,2 @@
1
1
  export * from './composables/useCardComponent';
2
- export * from './composables/useCardValidation';
3
- export * from './composables/useItemCardSaveText';
4
2
  export * from './stores/createCardStore';
@@ -1,5 +1,5 @@
1
1
  import ApplyPresetAction from './components/apply-preset/apply-preset-action.vue';
2
2
  import SavePresetAction from './components/save-preset/save-preset-action.vue';
3
- import { createFilterPresetsStore } from './stores/createFilterPresetsStore.ts';
3
+ import { createFilterPresetsStore } from './stores/createFilterPresetsStore';
4
4
 
5
5
  export { ApplyPresetAction, createFilterPresetsStore, SavePresetAction };
@@ -5,9 +5,9 @@ import {
5
5
  PersistedPropertyConfig,
6
6
  PersistedStorageController,
7
7
  PersistedStorageType,
8
- } from './PersistedStorage.types.ts';
9
- import { useLocalStoragePersistedStorage } from './useLocalStoragePersistedStorage.ts';
10
- import { useRoutePersistedStorage } from './useRoutePersistedStorage.ts';
8
+ } from './PersistedStorage.types';
9
+ import { useLocalStoragePersistedStorage } from './useLocalStoragePersistedStorage';
10
+ import { useRoutePersistedStorage } from './useRoutePersistedStorage';
11
11
 
12
12
  export const usePersistedStorage = ({
13
13
  name,
@@ -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<string>;
9
+ saveText: import("vue").ComputedRef<any>;
10
10
  hasValidationErrors: import("vue").ComputedRef<boolean>;
11
11
  isAnyFieldEdited: import("vue").Ref<boolean, boolean>;
12
12
  validationFields: import("vue").ComputedRef<{} & {}>;
@@ -3,5 +3,5 @@ import { CardItemId } from "../types/CardStore.types";
3
3
  export declare const useCardRouting: ({ itemId }: {
4
4
  itemId: Ref<CardItemId>;
5
5
  }) => {
6
- routeId: import("vue").ComputedRef<string | string[]>;
6
+ routeId: import("vue").ComputedRef<any>;
7
7
  };
@@ -3,5 +3,5 @@ export declare const useItemCardSaveText: ({ isNew, isAnyFieldEdited, }: {
3
3
  isNew: Ref<boolean>;
4
4
  isAnyFieldEdited: Ref<boolean>;
5
5
  }) => {
6
- saveText: import("vue").ComputedRef<string>;
6
+ saveText: import("vue").ComputedRef<any>;
7
7
  };
@@ -1,4 +1,2 @@
1
1
  export * from './composables/useCardComponent';
2
- export * from './composables/useCardValidation';
3
- export * from './composables/useItemCardSaveText';
4
2
  export * from './stores/createCardStore';
@@ -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
- close: () => any;
4
3
  cancel: () => any;
4
+ close: () => any;
5
5
  confirm: (args_0: SubmitConfig) => any;
6
6
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
7
- onClose?: () => any;
8
7
  onCancel?: () => any;
8
+ onClose?: () => any;
9
9
  onConfirm?: (args_0: SubmitConfig) => any;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
11
  export default _default;
@@ -1,4 +1,3 @@
1
- import { EnginePresetQuery } from 'webitel-sdk';
2
1
  import type { IFiltersManager } from '../../../filters';
3
2
  import { AnyFilterConfig } from "../../../filters/modules/filterConfig/classes/FilterConfig";
4
3
  export type SubmitConfig = {
@@ -15,10 +14,10 @@ type __VLS_Props = {
15
14
  filterConfigs: AnyFilterConfig[];
16
15
  };
17
16
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
- close: () => any;
19
17
  submit: (args_0: EnginePresetQuery, args_1?: SubmitConfig) => any;
18
+ close: () => any;
20
19
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
- onClose?: () => any;
22
20
  onSubmit?: (args_0: EnginePresetQuery, args_1?: SubmitConfig) => any;
21
+ onClose?: () => any;
23
22
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
23
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import ApplyPresetAction from './components/apply-preset/apply-preset-action.vue';
2
2
  import SavePresetAction from './components/save-preset/save-preset-action.vue';
3
- import { createFilterPresetsStore } from './stores/createFilterPresetsStore.ts';
3
+ import { createFilterPresetsStore } from './stores/createFilterPresetsStore';
4
4
  export { ApplyPresetAction, createFilterPresetsStore, SavePresetAction };
@@ -1,4 +1,3 @@
1
- import { EnginePresetQuery } from 'webitel-sdk';
2
1
  export declare const createFilterPresetsStore: (namespace?: string) => import("../../types/createDatalistStore.types.js").PatchableStoreFactory<{
3
2
  dataList: import("vue").Ref<EnginePresetQuery[], EnginePresetQuery[]>;
4
3
  selected: import("vue").Ref<EnginePresetQuery[], EnginePresetQuery[]>;
@@ -21,11 +21,7 @@ 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: 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>;
24
+ declare const t: any;
29
25
  declare const filterName: import("vue").Ref<any, any>;
30
26
  declare const filterLabel: import("vue").Ref<string, string>;
31
27
  declare const filterValue: import("vue").Ref<any, any>;
@@ -35,7 +31,7 @@ declare const filterConfigOptions: import("vue").ComputedRef<BaseFilterConfig[]>
35
31
  declare const selectedFilterConfig: import("vue").ComputedRef<BaseFilterConfig>;
36
32
  declare const onValueChange: (v: any) => void;
37
33
  declare const onValueInvalidChange: (v: any) => void;
38
- declare const valueInputLabelText: import("vue").ComputedRef<string>;
34
+ declare const valueInputLabelText: import("vue").ComputedRef<any>;
39
35
  declare const onLabelValueUpdate: (val: string) => void;
40
36
  declare const onFilterNameUpdate: (val: string) => void;
41
37
  declare const submit: () => void;
@@ -43,7 +39,7 @@ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new ()
43
39
  declare var __VLS_9: {
44
40
  filterName: any;
45
41
  filterValue: any;
46
- inputLabel: string;
42
+ inputLabel: any;
47
43
  onValueChange: (v: any) => void;
48
44
  onValueInvalidChange: (v: any) => void;
49
45
  };
@@ -9,13 +9,9 @@ interface Props {
9
9
  }
10
10
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
11
11
  declare var __VLS_5: {
12
- tooltipSlotScope: {
13
- visible: boolean;
14
- };
12
+ tooltipSlotScope: any;
15
13
  }, __VLS_7: {
16
- tooltipSlotScope: {
17
- hide: (event?: {}) => void;
18
- };
14
+ tooltipSlotScope: any;
19
15
  };
20
16
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
21
17
  activator?: (props: typeof __VLS_5) => any;
@@ -7,19 +7,13 @@ interface Props {
7
7
  filterConfigs: BaseFilterConfig[];
8
8
  showLabel?: boolean;
9
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>;
10
+ declare const t: any;
15
11
  declare const submit: (payload: FilterInitParams, { hide }: {
16
12
  hide: any;
17
13
  }) => void;
18
14
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
19
15
  declare var __VLS_9: {
20
- tooltipSlotScope: {
21
- hide: (event?: {}) => void;
22
- };
16
+ tooltipSlotScope: any;
23
17
  };
24
18
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
25
19
  form?: (props: typeof __VLS_9) => any;
@@ -20,9 +20,7 @@ declare const submit: (filter: IFilter, { hide }: {
20
20
  declare const deleteFilter: () => void;
21
21
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
22
22
  declare var __VLS_28: {}, __VLS_38: {
23
- tooltipSlotScope: {
24
- hide: (event?: {}) => void;
25
- };
23
+ tooltipSlotScope: any;
26
24
  };
27
25
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
28
26
  info?: (props: typeof __VLS_28) => any;
@@ -1,3 +1,4 @@
1
+ import { contacts as ContactsAPI } from '@webitel/ui-sdk/api/clients/index';
1
2
  import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
2
3
  declare class CaseAssigneeFilterConfig extends WtSysTypeFilterConfig {
3
4
  readonly name: "assignee";
@@ -29,10 +30,10 @@ declare class CaseAssigneeFilterConfig extends WtSysTypeFilterConfig {
29
30
  }) => any;
30
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
32
  valuePreviewComponent: import("vue").DefineComponent<{
32
- value: import("webitel-sdk").WebitelContactsContact[];
33
+ value: ContactsAPI[];
33
34
  filter: import("../../../..").IFilter;
34
35
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
35
- value: import("webitel-sdk").WebitelContactsContact[];
36
+ value: ContactsAPI[];
36
37
  filter: import("../../../..").IFilter;
37
38
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
39
  searchRecords(params: object, { filterValue }?: {}): Promise<{
@@ -1,3 +1,4 @@
1
+ import { contactGroups } from '@webitel/ui-sdk/api/clients/index';
1
2
  import { IWtSysTypeFilterConfig, WtSysTypeFilterConfig } from '../../classes/FilterConfig';
2
3
  declare class ContactGroupFilterConfig extends WtSysTypeFilterConfig {
3
4
  readonly name: "contactGroup";
@@ -33,10 +34,10 @@ declare class ContactGroupFilterConfig extends WtSysTypeFilterConfig {
33
34
  }) => any;
34
35
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
36
  valuePreviewComponent: import("vue").DefineComponent<{
36
- value: import("webitel-sdk").WebitelContactsContact[];
37
+ value: contactGroups[];
37
38
  filter: import("../../../..").IFilter;
38
39
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
39
- value: import("webitel-sdk").WebitelContactsContact[];
40
+ value: contactGroups[];
40
41
  filter: import("../../../..").IFilter;
41
42
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
43
  hideUnassigned?: boolean;
@@ -117,7 +117,7 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
117
117
  items: unknown[];
118
118
  next?: boolean;
119
119
  }>;
120
- label?: ReturnType<import("vue-i18n").MessageResolver> | string;
120
+ label?: ReturnType<FilterOptionName> | 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<import("vue-i18n").MessageResolver> | string;
150
+ label?: ReturnType<FilterOptionName> | 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: import("webitel-sdk").WebitelContactsContact[];
188
+ value: FilterOptionName[];
189
189
  filter: import("../../..").IFilter;
190
190
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
191
- value: import("webitel-sdk").WebitelContactsContact[];
191
+ value: FilterOptionName[];
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<import("vue-i18n").MessageResolver> | string;
199
+ label?: ReturnType<FilterOptionName> | string;
200
200
  staticView?: boolean;
201
201
  notDeletable: boolean;
202
202
  };
@@ -1,2 +1,2 @@
1
- import { PersistedPropertyConfig, PersistedStorageController } from './PersistedStorage.types.ts';
1
+ import { PersistedPropertyConfig, PersistedStorageController } from './PersistedStorage.types';
2
2
  export declare const usePersistedStorage: ({ name, value, storages: configStorages, storagePath, startWatchManually, onStore, onRestore, }: PersistedPropertyConfig) => PersistedStorageController;
@@ -1,11 +0,0 @@
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;
@@ -1,16 +0,0 @@
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;
@@ -1,93 +0,0 @@
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
- };
@@ -1,27 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
1
- import { Ref } from 'vue';
2
- export declare const useItemCardSaveText: ({ isNew, isEdited, }: {
3
- isNew: Ref<boolean>;
4
- isEdited: Ref<boolean>;
5
- }) => {
6
- saveText: import("vue").ComputedRef<string>;
7
- };
@@ -1,10 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export * from './composables/useFormComponent';
2
- export * from './composables/useItemCardSaveText';
3
- export * from './composables/useValidation';
4
- export * from './stores/createFormStore';
@@ -1,135 +0,0 @@
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)>>;