@topvisor/ui 1.5.4-3 → 1.5.4-groupSelector.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.
@@ -1,8 +1,12 @@
1
1
  import { Props } from './types';
2
- import { Group } from './groups/types';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Group, Props } from './groups/types';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties } from 'vue';
4
4
  import { Folder } from './folders/types';
5
- import { ItemAll, ItemNew } from '../../formsExt/selector2/types';
5
+ import { ItemAll, ItemNew, Props, Item, Slots } from '../../formsExt/selector2/types';
6
+ import { Size } from '../../forms/helpers';
7
+ import { Props } from '../../forms/button/types';
8
+ import { TopLibPopup } from '../../popup/lib/popup';
9
+ import { OnCleanup } from '@vue/reactivity';
6
10
  type __VLS_Props = Props;
7
11
  type __VLS_PublicProps = {
8
12
  'folderId': Props['folderId'];
@@ -10,7 +14,12 @@ type __VLS_PublicProps = {
10
14
  'groupId': Props['groupId'];
11
15
  'group'?: Props['group'];
12
16
  } & __VLS_Props;
13
- declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
+ declare const _default: DefineComponent<__VLS_PublicProps, {
18
+ /**
19
+ * Обновить группы
20
+ */
21
+ reloadGroups: () => Promise<void>;
22
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
23
  "update:folderId": (value: number) => any;
15
24
  "update:folder": (value: Folder | undefined) => any;
16
25
  "update:groupId": (value: number | null) => any;
@@ -31,5 +40,166 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
31
40
  canSelectAllGroups: boolean;
32
41
  showFolders: boolean;
33
42
  showGroups: boolean;
34
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
43
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
44
+ componentGroupsRef: CreateComponentPublicInstanceWithMixins<Readonly<{
45
+ groupId: Props["groupId"];
46
+ group: Props["group"];
47
+ } & Props> & Readonly<{
48
+ onAddGroup?: ((group: Group) => any) | undefined;
49
+ onEditGroup?: ((group: Group) => any) | undefined;
50
+ onDelGroup?: ((group: Group) => any) | undefined;
51
+ "onUpdate:groupId"?: ((value: number | null) => any) | undefined;
52
+ "onUpdate:group"?: ((value: ItemAll | ItemNew | Group) => any) | undefined;
53
+ }>, {
54
+ reload: () => Promise<void>;
55
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
56
+ addGroup: (group: Group) => any;
57
+ editGroup: (group: Group) => any;
58
+ delGroup: (group: Group) => any;
59
+ "update:groupId": (value: number | null) => any;
60
+ "update:group": (value: ItemAll | ItemNew | Group) => any;
61
+ }, PublicProps, {
62
+ on: boolean;
63
+ addChanger: boolean;
64
+ autoselect: "first" | "placeholder";
65
+ addIcon: boolean;
66
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
67
+ refSelector: ({
68
+ $: ComponentInternalInstance;
69
+ $data: {};
70
+ $props: {
71
+ readonly modelValue: Props["modelValue"];
72
+ readonly items?: Item[] | undefined;
73
+ readonly title?: string | undefined;
74
+ readonly disabled?: boolean | undefined;
75
+ readonly icon?: string | undefined;
76
+ readonly modificator?: string | undefined;
77
+ readonly size?: Size | undefined;
78
+ readonly isError?: boolean | undefined;
79
+ readonly openByFocusInput?: boolean | undefined;
80
+ readonly searchType?: "none" | "inline" | "popup" | undefined;
81
+ readonly searchFields?: string[] | undefined;
82
+ readonly placeholder?: string | undefined;
83
+ readonly hasCloserBtn?: boolean | undefined;
84
+ readonly api?: (Api.ClientRequest<any> | Api.ClientRequestCustom<any, any, any>) | undefined;
85
+ readonly apiSetSearchParams?: ((api: NonNullable< Props["api"]>, search: string) => void) | undefined;
86
+ readonly minLength?: number | undefined;
87
+ readonly useCache?: boolean | undefined;
88
+ readonly appendSearchToResult?: boolean | undefined;
89
+ readonly appendSearchAllowDuplicate?: boolean | undefined;
90
+ readonly appendSearchToResultCond?: ((search: string) => boolean) | undefined;
91
+ readonly appendWithoutSelect?: boolean | undefined;
92
+ readonly multiselect?: boolean | undefined;
93
+ readonly useAllItem?: boolean | string | undefined;
94
+ readonly addChanger?: boolean | undefined;
95
+ readonly buttonProps?: Props | undefined;
96
+ readonly selectedAsPlaceholder?: boolean | undefined;
97
+ readonly openerShortcut?: string | undefined;
98
+ readonly onOpen?: (() => any) | undefined;
99
+ readonly "onUpdate:modelValue"?: ((value: Item | Item[]) => any) | undefined;
100
+ readonly onAppendItem?: ((item: Item) => any) | undefined;
101
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
102
+ $attrs: Attrs;
103
+ $refs: {
104
+ [x: string]: unknown;
105
+ } & {
106
+ popupRef: {
107
+ id: string;
108
+ popup: TopLibPopup<undefined> | undefined;
109
+ } | null;
110
+ };
111
+ $slots: Readonly<{
112
+ [name: string]: Slot<any> | undefined;
113
+ }>;
114
+ $root: ComponentPublicInstance | null;
115
+ $parent: ComponentPublicInstance | null;
116
+ $host: Element | null;
117
+ $emit: ((event: "open") => void) & ((event: "update:modelValue", value: Item | Item[]) => void) & ((event: "appendItem", item: Item) => void);
118
+ $el: any;
119
+ $options: ComponentOptionsBase<Readonly<{
120
+ modelValue: Props["modelValue"];
121
+ } & Props> & Readonly<{
122
+ onOpen?: (() => any) | undefined;
123
+ "onUpdate:modelValue"?: ((value: Item | Item[]) => any) | undefined;
124
+ onAppendItem?: ((item: Item) => any) | undefined;
125
+ }>, {
126
+ resetCache: (resetAPICache?: boolean) => void;
127
+ updateItemById: (id: Item["id"], patch: Partial< Item>) => void;
128
+ deleteItemById: (id: Item["id"]) => void;
129
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
130
+ open: () => any;
131
+ "update:modelValue": (value: Item | Item[]) => any;
132
+ appendItem: (item: Item) => any;
133
+ }, string, {
134
+ size: Size;
135
+ openByFocusInput: boolean;
136
+ items: Item[];
137
+ searchFields: string[];
138
+ searchType: "none" | "inline" | "popup";
139
+ minLength: number;
140
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
141
+ beforeCreate?: (() => void) | (() => void)[];
142
+ created?: (() => void) | (() => void)[];
143
+ beforeMount?: (() => void) | (() => void)[];
144
+ mounted?: (() => void) | (() => void)[];
145
+ beforeUpdate?: (() => void) | (() => void)[];
146
+ updated?: (() => void) | (() => void)[];
147
+ activated?: (() => void) | (() => void)[];
148
+ deactivated?: (() => void) | (() => void)[];
149
+ beforeDestroy?: (() => void) | (() => void)[];
150
+ beforeUnmount?: (() => void) | (() => void)[];
151
+ destroyed?: (() => void) | (() => void)[];
152
+ unmounted?: (() => void) | (() => void)[];
153
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
154
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
155
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
156
+ };
157
+ $forceUpdate: () => void;
158
+ $nextTick: nextTick;
159
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
160
+ } & Readonly<{
161
+ size: Size;
162
+ openByFocusInput: boolean;
163
+ items: Item[];
164
+ searchFields: string[];
165
+ searchType: "none" | "inline" | "popup";
166
+ minLength: number;
167
+ }> & Omit<Readonly<{
168
+ modelValue: Props["modelValue"];
169
+ } & Props> & Readonly<{
170
+ onOpen?: (() => any) | undefined;
171
+ "onUpdate:modelValue"?: ((value: Item | Item[]) => any) | undefined;
172
+ onAppendItem?: ((item: Item) => any) | undefined;
173
+ }>, "resetCache" | "updateItemById" | "deleteItemById" | ("size" | "openByFocusInput" | "items" | "searchFields" | "searchType" | "minLength")> & {
174
+ resetCache: (resetAPICache?: boolean) => void;
175
+ updateItemById: (id: Item["id"], patch: Partial< Item>) => void;
176
+ deleteItemById: (id: Item["id"]) => void;
177
+ } & {} & ComponentCustomProperties & {} & {
178
+ $slots: Readonly< Slots> & Slots;
179
+ }) | null;
180
+ }, any, ComponentProvideOptions, {
181
+ P: {};
182
+ B: {};
183
+ D: {};
184
+ C: {};
185
+ M: {};
186
+ Defaults: {};
187
+ }, Readonly<{
188
+ groupId: Props["groupId"];
189
+ group: Props["group"];
190
+ } & Props> & Readonly<{
191
+ onAddGroup?: ((group: Group) => any) | undefined;
192
+ onEditGroup?: ((group: Group) => any) | undefined;
193
+ onDelGroup?: ((group: Group) => any) | undefined;
194
+ "onUpdate:groupId"?: ((value: number | null) => any) | undefined;
195
+ "onUpdate:group"?: ((value: ItemAll | ItemNew | Group) => any) | undefined;
196
+ }>, {
197
+ reload: () => Promise<void>;
198
+ }, {}, {}, {}, {
199
+ on: boolean;
200
+ addChanger: boolean;
201
+ autoselect: "first" | "placeholder";
202
+ addIcon: boolean;
203
+ }> | null;
204
+ }, HTMLDivElement>;
35
205
  export default _default;
@@ -9,7 +9,9 @@ type __VLS_PublicProps = {
9
9
  'groupId': Props['groupId'];
10
10
  'group': Props['group'];
11
11
  } & __VLS_Props;
12
- declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ declare const _default: DefineComponent<__VLS_PublicProps, {
13
+ reload: () => Promise<void>;
14
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
15
  addGroup: (group: Group) => any;
14
16
  editGroup: (group: Group) => any;
15
17
  delGroup: (group: Group) => any;