@point-hub/papp 0.1.21 → 0.2.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/dist/components/base-choosen.vue.d.ts +15 -22
- package/dist/components/base-input-number.vue.d.ts +2 -0
- package/dist/components/base-select.vue.d.ts +16 -58
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2376 -2431
- package/dist/index.umd.cjs +5 -5
- package/package.json +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { BaseFormLayoutType } from './base-form.vue';
|
|
2
|
-
interface
|
|
3
|
-
[key: string]: unknown;
|
|
2
|
+
export interface BaseChoosenOptionInterface {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
6
|
}
|
|
7
7
|
export type BaseChoosenBorderType = 'none' | 'simple' | 'full';
|
|
8
8
|
export interface Props {
|
|
9
9
|
id?: string;
|
|
10
|
-
mode?: 'input' | 'text';
|
|
11
10
|
title?: string;
|
|
12
11
|
label?: string;
|
|
13
12
|
description?: string;
|
|
@@ -21,22 +20,23 @@ export interface Props {
|
|
|
21
20
|
helpers?: string[];
|
|
22
21
|
paddingless?: boolean;
|
|
23
22
|
dataTestid?: string;
|
|
23
|
+
/** options may be partial (pagination) */
|
|
24
|
+
options?: BaseChoosenOptionInterface[];
|
|
25
|
+
/** fallback when option not loaded yet */
|
|
26
|
+
resolveOption?: (value: string) => BaseChoosenOptionInterface | undefined;
|
|
27
|
+
isLoading?: boolean;
|
|
24
28
|
}
|
|
25
29
|
type __VLS_Props = Props;
|
|
26
30
|
type __VLS_PublicProps = {
|
|
27
|
-
modelValue?:
|
|
28
|
-
'isLoading'?: boolean;
|
|
31
|
+
modelValue?: string | null;
|
|
29
32
|
'search'?: string;
|
|
30
|
-
'options'?: IOption[];
|
|
31
33
|
'errors'?: string[];
|
|
32
|
-
'selected-label'?: string;
|
|
33
|
-
'selected-value'?: any;
|
|
34
34
|
} & __VLS_Props;
|
|
35
35
|
declare function __VLS_template(): {
|
|
36
36
|
attrs: Partial<{}>;
|
|
37
37
|
slots: {
|
|
38
38
|
default?(_: {
|
|
39
|
-
option:
|
|
39
|
+
option: BaseChoosenOptionInterface;
|
|
40
40
|
}): any;
|
|
41
41
|
};
|
|
42
42
|
refs: {
|
|
@@ -47,33 +47,26 @@ declare function __VLS_template(): {
|
|
|
47
47
|
};
|
|
48
48
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
49
49
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
-
"update:modelValue": (value:
|
|
50
|
+
"update:modelValue": (value: string | null) => any;
|
|
51
51
|
"update:errors": (value: string[]) => any;
|
|
52
|
-
"update:isLoading": (value: boolean) => any;
|
|
53
52
|
"update:search": (value: string) => any;
|
|
54
|
-
"update:options": (value: IOption[]) => any;
|
|
55
|
-
"update:selected-label": (value: string) => any;
|
|
56
|
-
"update:selected-value": (value: any) => any;
|
|
57
53
|
} & {
|
|
58
|
-
|
|
54
|
+
select: (option: BaseChoosenOptionInterface | undefined) => any;
|
|
59
55
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
onSelect?: ((option: BaseChoosenOptionInterface | undefined) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
62
58
|
"onUpdate:errors"?: ((value: string[]) => any) | undefined;
|
|
63
|
-
"onUpdate:isLoading"?: ((value: boolean) => any) | undefined;
|
|
64
59
|
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
65
|
-
"onUpdate:options"?: ((value: IOption[]) => any) | undefined;
|
|
66
|
-
"onUpdate:selected-label"?: ((value: string) => any) | undefined;
|
|
67
|
-
"onUpdate:selected-value"?: ((value: any) => any) | undefined;
|
|
68
60
|
}>, {
|
|
69
61
|
required: boolean;
|
|
62
|
+
isLoading: boolean;
|
|
70
63
|
disabled: boolean;
|
|
71
|
-
mode: "input" | "text";
|
|
72
64
|
layout: BaseFormLayoutType;
|
|
73
65
|
readonly: boolean;
|
|
74
66
|
border: BaseChoosenBorderType;
|
|
75
67
|
autofocus: boolean;
|
|
76
68
|
paddingless: boolean;
|
|
69
|
+
options: BaseChoosenOptionInterface[];
|
|
77
70
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
78
71
|
modalRef: unknown;
|
|
79
72
|
inputRef: unknown;
|
|
@@ -20,6 +20,7 @@ export interface Props {
|
|
|
20
20
|
rounded?: boolean;
|
|
21
21
|
paddingless?: boolean;
|
|
22
22
|
resetErrorsOnUpdate?: boolean;
|
|
23
|
+
allowNegative?: boolean;
|
|
23
24
|
helpers?: string[];
|
|
24
25
|
dataTestid?: string;
|
|
25
26
|
}
|
|
@@ -64,6 +65,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
64
65
|
paddingless: boolean;
|
|
65
66
|
resetErrorsOnUpdate: boolean;
|
|
66
67
|
decimalLength: number;
|
|
68
|
+
allowNegative: boolean;
|
|
67
69
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
68
70
|
inputRef: HTMLInputElement;
|
|
69
71
|
suffixRef: HTMLDivElement;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { BaseFormLayoutType } from './base-form.vue';
|
|
2
2
|
export type BaseSelectBorderType = 'none' | 'simple' | 'full';
|
|
3
3
|
export interface BaseSelectOptionInterface {
|
|
4
|
-
label
|
|
5
|
-
value
|
|
6
|
-
[key: string]:
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
7
|
}
|
|
8
8
|
export interface Props {
|
|
9
|
-
id?: string;
|
|
10
9
|
options: BaseSelectOptionInterface[];
|
|
11
10
|
label?: string;
|
|
12
11
|
description?: string;
|
|
@@ -20,34 +19,33 @@ export interface Props {
|
|
|
20
19
|
paddingless?: boolean;
|
|
21
20
|
helpers?: string[];
|
|
22
21
|
dataTestid?: string;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
/** fallback when option not loaded (pagination / cached value) */
|
|
24
|
+
resolveOption?: (value: string) => BaseSelectOptionInterface | undefined;
|
|
23
25
|
}
|
|
24
26
|
type __VLS_Props = Props;
|
|
27
|
+
declare function focus(): void;
|
|
25
28
|
type __VLS_PublicProps = {
|
|
26
|
-
modelValue?:
|
|
27
|
-
'selected-value'?: string | undefined;
|
|
28
|
-
'selected-label'?: string | undefined;
|
|
29
|
-
'isLoading'?: boolean;
|
|
29
|
+
modelValue?: string | null;
|
|
30
30
|
'search'?: string;
|
|
31
31
|
'errors'?: string[];
|
|
32
32
|
} & __VLS_Props;
|
|
33
33
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
34
|
-
|
|
34
|
+
focus: typeof focus;
|
|
35
35
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
-
"update:modelValue": (value:
|
|
36
|
+
"update:modelValue": (value: string | null) => any;
|
|
37
37
|
"update:errors": (value: string[]) => any;
|
|
38
|
-
"update:isLoading": (value: boolean) => any;
|
|
39
38
|
"update:search": (value: string) => any;
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
} & {
|
|
40
|
+
select: (option: BaseSelectOptionInterface | undefined) => any;
|
|
42
41
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
43
|
-
|
|
42
|
+
onSelect?: ((option: BaseSelectOptionInterface | undefined) => any) | undefined;
|
|
43
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
44
44
|
"onUpdate:errors"?: ((value: string[]) => any) | undefined;
|
|
45
|
-
"onUpdate:isLoading"?: ((value: boolean) => any) | undefined;
|
|
46
45
|
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
47
|
-
"onUpdate:selected-label"?: ((value: string | undefined) => any) | undefined;
|
|
48
|
-
"onUpdate:selected-value"?: ((value: string | undefined) => any) | undefined;
|
|
49
46
|
}>, {
|
|
50
47
|
required: boolean;
|
|
48
|
+
isLoading: boolean;
|
|
51
49
|
disabled: boolean;
|
|
52
50
|
layout: BaseFormLayoutType;
|
|
53
51
|
readonly: boolean;
|
|
@@ -55,7 +53,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
55
53
|
autofocus: boolean;
|
|
56
54
|
paddingless: boolean;
|
|
57
55
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
58
|
-
|
|
56
|
+
inputEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
59
57
|
as: {
|
|
60
58
|
type: (ObjectConstructor | StringConstructor)[];
|
|
61
59
|
default: string;
|
|
@@ -143,45 +141,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
143
141
|
static: boolean;
|
|
144
142
|
defaultValue: string;
|
|
145
143
|
}> | null;
|
|
146
|
-
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
147
|
-
as: {
|
|
148
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
149
|
-
default: string;
|
|
150
|
-
};
|
|
151
|
-
id: {
|
|
152
|
-
type: StringConstructor;
|
|
153
|
-
default: null;
|
|
154
|
-
};
|
|
155
|
-
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
156
|
-
[key: string]: any;
|
|
157
|
-
}> | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
158
|
-
[key: string]: any;
|
|
159
|
-
}>[] | null, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {
|
|
160
|
-
id: string;
|
|
161
|
-
as: string | Record<string, any>;
|
|
162
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
163
|
-
P: {};
|
|
164
|
-
B: {};
|
|
165
|
-
D: {};
|
|
166
|
-
C: {};
|
|
167
|
-
M: {};
|
|
168
|
-
Defaults: {};
|
|
169
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
170
|
-
as: {
|
|
171
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
172
|
-
default: string;
|
|
173
|
-
};
|
|
174
|
-
id: {
|
|
175
|
-
type: StringConstructor;
|
|
176
|
-
default: null;
|
|
177
|
-
};
|
|
178
|
-
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
179
|
-
[key: string]: any;
|
|
180
|
-
}> | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
181
|
-
[key: string]: any;
|
|
182
|
-
}>[] | null, {}, {}, {}, {
|
|
183
|
-
id: string;
|
|
184
|
-
as: string | Record<string, any>;
|
|
185
|
-
}> | null;
|
|
186
144
|
}, any>;
|
|
187
145
|
export default _default;
|