portal-design-system 0.0.954 → 0.0.956

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,3 +1,141 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ import { nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import { SelectOptionType } from './types';
3
+ import { OnCleanup } from '@vue/reactivity';
4
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
5
+ lazySelectRef: ({
6
+ $: ComponentInternalInstance;
7
+ $data: {};
8
+ $props: {
9
+ readonly modelValue?: any;
10
+ readonly query?: string | undefined;
11
+ readonly id: string;
12
+ readonly label?: string | undefined;
13
+ readonly options?: SelectOptionType[] | undefined;
14
+ readonly placeholder?: string | undefined;
15
+ readonly multiple?: boolean | undefined;
16
+ readonly searchable?: boolean | undefined;
17
+ readonly showSelectedCount?: boolean | undefined;
18
+ readonly disabled?: boolean | undefined;
19
+ readonly classList?: string | undefined;
20
+ readonly labelClassList?: string | undefined;
21
+ readonly errors?: string[] | undefined;
22
+ readonly clearable?: boolean | undefined;
23
+ readonly loading?: boolean | undefined;
24
+ readonly onlyShowErrorIndicator?: boolean | undefined;
25
+ readonly required?: boolean | undefined;
26
+ readonly rounded?: "full" | "lg" | "xl" | undefined;
27
+ readonly lazy?: boolean | undefined;
28
+ readonly isOptionsReady?: boolean | undefined;
29
+ readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
+ readonly "onLoad-options"?: ((...args: any[]) => any) | undefined;
31
+ readonly "onUpdate:query"?: ((value: string) => any) | undefined;
32
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
33
+ $attrs: {
34
+ [x: string]: unknown;
35
+ };
36
+ $refs: {
37
+ [x: string]: unknown;
38
+ } & {
39
+ wrapperRef: HTMLDivElement;
40
+ dropdownRef: HTMLDivElement;
41
+ };
42
+ $slots: Readonly<{
43
+ [name: string]: Slot<any> | undefined;
44
+ }>;
45
+ $root: ComponentPublicInstance | null;
46
+ $parent: ComponentPublicInstance | null;
47
+ $host: Element | null;
48
+ $emit: ((event: "update:modelValue", value: any) => void) & ((event: "load-options", ...args: any[]) => void) & ((event: "update:query", value: string) => void);
49
+ $el: HTMLDivElement;
50
+ $options: ComponentOptionsBase<Readonly<{
51
+ modelValue?: any;
52
+ query?: string;
53
+ } & {
54
+ id: string;
55
+ label?: string;
56
+ options?: SelectOptionType[];
57
+ placeholder?: string;
58
+ multiple?: boolean;
59
+ searchable?: boolean;
60
+ showSelectedCount?: boolean;
61
+ disabled?: boolean;
62
+ classList?: string;
63
+ labelClassList?: string;
64
+ errors?: string[];
65
+ clearable?: boolean;
66
+ loading?: boolean;
67
+ onlyShowErrorIndicator?: boolean;
68
+ required?: boolean;
69
+ rounded?: "full" | "lg" | "xl";
70
+ lazy?: boolean;
71
+ isOptionsReady?: boolean;
72
+ }> & Readonly<{
73
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
74
+ "onLoad-options"?: ((...args: any[]) => any) | undefined;
75
+ "onUpdate:query"?: ((value: string) => any) | undefined;
76
+ }>, {
77
+ toggle: () => void;
78
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
79
+ "load-options": (...args: any[]) => void;
80
+ "update:modelValue": (value: any) => void;
81
+ "update:query": (value: string) => void;
82
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
83
+ beforeCreate?: (() => void) | (() => void)[];
84
+ created?: (() => void) | (() => void)[];
85
+ beforeMount?: (() => void) | (() => void)[];
86
+ mounted?: (() => void) | (() => void)[];
87
+ beforeUpdate?: (() => void) | (() => void)[];
88
+ updated?: (() => void) | (() => void)[];
89
+ activated?: (() => void) | (() => void)[];
90
+ deactivated?: (() => void) | (() => void)[];
91
+ beforeDestroy?: (() => void) | (() => void)[];
92
+ beforeUnmount?: (() => void) | (() => void)[];
93
+ destroyed?: (() => void) | (() => void)[];
94
+ unmounted?: (() => void) | (() => void)[];
95
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
96
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
97
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
98
+ };
99
+ $forceUpdate: () => void;
100
+ $nextTick: typeof nextTick;
101
+ $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;
102
+ } & Readonly<{}> & Omit<Readonly<{
103
+ modelValue?: any;
104
+ query?: string;
105
+ } & {
106
+ id: string;
107
+ label?: string;
108
+ options?: SelectOptionType[];
109
+ placeholder?: string;
110
+ multiple?: boolean;
111
+ searchable?: boolean;
112
+ showSelectedCount?: boolean;
113
+ disabled?: boolean;
114
+ classList?: string;
115
+ labelClassList?: string;
116
+ errors?: string[];
117
+ clearable?: boolean;
118
+ loading?: boolean;
119
+ onlyShowErrorIndicator?: boolean;
120
+ required?: boolean;
121
+ rounded?: "full" | "lg" | "xl";
122
+ lazy?: boolean;
123
+ isOptionsReady?: boolean;
124
+ }> & Readonly<{
125
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
126
+ "onLoad-options"?: ((...args: any[]) => any) | undefined;
127
+ "onUpdate:query"?: ((value: string) => any) | undefined;
128
+ }>, "toggle"> & ShallowUnwrapRef<{
129
+ toggle: () => void;
130
+ }> & {} & ComponentCustomProperties & {} & {
131
+ $slots: {
132
+ toggleButton?(_: {}): any;
133
+ option?(_: {
134
+ option: SelectOptionType;
135
+ isActive: any;
136
+ select: (option: SelectOptionType) => void;
137
+ }): any;
138
+ };
139
+ }) | null;
140
+ }, HTMLDivElement>;
3
141
  export default _default;
@@ -16,6 +16,7 @@ declare function __VLS_template(): {
16
16
  attrs: Partial<{}>;
17
17
  slots: {
18
18
  before?(_: {}): any;
19
+ default?(_: {}): any;
19
20
  after?(_: {}): any;
20
21
  };
21
22
  refs: {};
@@ -17,6 +17,8 @@ type __VLS_Props = {
17
17
  onlyShowErrorIndicator?: boolean;
18
18
  required?: boolean;
19
19
  rounded?: 'full' | 'lg' | 'xl';
20
+ lazy?: boolean;
21
+ isOptionsReady?: boolean;
20
22
  };
21
23
  type __VLS_PublicProps = {
22
24
  modelValue?: any;
@@ -39,11 +41,15 @@ declare function __VLS_template(): {
39
41
  rootEl: HTMLDivElement;
40
42
  };
41
43
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
- declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
43
- "update:modelValue": (value: any) => any;
44
- "update:query": (value: string) => any;
44
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
45
+ toggle: () => void;
46
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
47
+ "load-options": (...args: any[]) => void;
48
+ "update:modelValue": (value: any) => void;
49
+ "update:query": (value: string) => void;
45
50
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
46
51
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
52
+ "onLoad-options"?: ((...args: any[]) => any) | undefined;
47
53
  "onUpdate:query"?: ((value: string) => any) | undefined;
48
54
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
49
55
  wrapperRef: HTMLDivElement;