@speckle/ui-components 2.23.0 → 2.23.2
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/common/Alert.vue.d.ts +3 -14
- package/dist/components/form/TextInput.vue.d.ts +18 -0
- package/dist/components/form/select/Base.vue.d.ts +3 -0
- package/dist/composables/form/textInput.d.ts +1 -0
- package/dist/helpers/common/components.d.ts +8 -0
- package/dist/helpers/common/validation.d.ts +4 -0
- package/dist/helpers/layout/components.d.ts +1 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.d.ts +2 -2
- package/dist/lib.js +1413 -1411
- package/dist/lib.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import type { PropAnyComponent } from '../../helpers/common/components';
|
|
2
|
-
type AlertColor = 'success' | 'danger' | 'warning' | 'info';
|
|
1
|
+
import type { PropAnyComponent, AlertAction, AlertColor } from '../../helpers/common/components';
|
|
3
2
|
type Size = 'default' | 'xs';
|
|
4
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
4
|
color?: AlertColor | undefined;
|
|
6
5
|
withDismiss?: boolean | undefined;
|
|
7
|
-
actions?:
|
|
8
|
-
title: string;
|
|
9
|
-
url?: string | undefined;
|
|
10
|
-
onClick?: (() => void) | undefined;
|
|
11
|
-
externalUrl?: boolean | undefined;
|
|
12
|
-
}[] | undefined;
|
|
6
|
+
actions?: AlertAction[] | undefined;
|
|
13
7
|
customIcon?: PropAnyComponent | undefined;
|
|
14
8
|
hideIcon?: boolean | undefined;
|
|
15
9
|
size?: Size | undefined;
|
|
@@ -21,12 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
15
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
22
16
|
color?: AlertColor | undefined;
|
|
23
17
|
withDismiss?: boolean | undefined;
|
|
24
|
-
actions?:
|
|
25
|
-
title: string;
|
|
26
|
-
url?: string | undefined;
|
|
27
|
-
onClick?: (() => void) | undefined;
|
|
28
|
-
externalUrl?: boolean | undefined;
|
|
29
|
-
}[] | undefined;
|
|
18
|
+
actions?: AlertAction[] | undefined;
|
|
30
19
|
customIcon?: PropAnyComponent | undefined;
|
|
31
20
|
hideIcon?: boolean | undefined;
|
|
32
21
|
size?: Size | undefined;
|
|
@@ -170,6 +170,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
170
170
|
type: StringConstructor;
|
|
171
171
|
default: undefined;
|
|
172
172
|
};
|
|
173
|
+
tooltipText: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: undefined;
|
|
176
|
+
};
|
|
177
|
+
customHelpClass: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
default: undefined;
|
|
180
|
+
};
|
|
173
181
|
}, {
|
|
174
182
|
focus: () => void;
|
|
175
183
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -351,6 +359,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
351
359
|
type: StringConstructor;
|
|
352
360
|
default: undefined;
|
|
353
361
|
};
|
|
362
|
+
tooltipText: {
|
|
363
|
+
type: StringConstructor;
|
|
364
|
+
default: undefined;
|
|
365
|
+
};
|
|
366
|
+
customHelpClass: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
default: undefined;
|
|
369
|
+
};
|
|
354
370
|
}>> & {
|
|
355
371
|
onFocus?: (() => any) | undefined;
|
|
356
372
|
onBlur?: (() => any) | undefined;
|
|
@@ -384,6 +400,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
384
400
|
useLabelInErrors: boolean;
|
|
385
401
|
customErrorMessage: string;
|
|
386
402
|
hideErrorMessage: boolean;
|
|
403
|
+
customHelpClass: string;
|
|
387
404
|
placeholder: Optional<string>;
|
|
388
405
|
fullWidth: boolean;
|
|
389
406
|
showOptional: boolean;
|
|
@@ -394,6 +411,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
394
411
|
wrapperClasses: string;
|
|
395
412
|
rightIcon: Optional<PropAnyComponent>;
|
|
396
413
|
rightIconTitle: string;
|
|
414
|
+
tooltipText: string;
|
|
397
415
|
}, {}>, {
|
|
398
416
|
"input-right"?(_: {}): any;
|
|
399
417
|
}>;
|
|
@@ -26,6 +26,7 @@ declare const _default: <SingleItem extends string | number | Record<string, unk
|
|
|
26
26
|
useLabelInErrors?: boolean | undefined;
|
|
27
27
|
readonly placeholder?: string | undefined;
|
|
28
28
|
showOptional?: boolean | undefined;
|
|
29
|
+
tooltipText?: string | undefined;
|
|
29
30
|
multiple?: boolean | undefined;
|
|
30
31
|
items?: SingleItem[] | undefined;
|
|
31
32
|
filterPredicate?: Optional<(item: SingleItem, searchString: string) => boolean>;
|
|
@@ -87,6 +88,7 @@ declare const _default: <SingleItem extends string | number | Record<string, unk
|
|
|
87
88
|
useLabelInErrors?: boolean | undefined;
|
|
88
89
|
readonly placeholder?: string | undefined;
|
|
89
90
|
showOptional?: boolean | undefined;
|
|
91
|
+
tooltipText?: string | undefined;
|
|
90
92
|
multiple?: boolean | undefined;
|
|
91
93
|
items?: SingleItem[] | undefined;
|
|
92
94
|
filterPredicate?: Optional<(item: SingleItem, searchString: string) => boolean>;
|
|
@@ -152,6 +154,7 @@ declare const _default: <SingleItem extends string | number | Record<string, unk
|
|
|
152
154
|
useLabelInErrors?: boolean | undefined;
|
|
153
155
|
readonly placeholder?: string | undefined;
|
|
154
156
|
showOptional?: boolean | undefined;
|
|
157
|
+
tooltipText?: string | undefined;
|
|
155
158
|
multiple?: boolean | undefined;
|
|
156
159
|
items?: SingleItem[] | undefined;
|
|
157
160
|
filterPredicate?: Optional<(item: SingleItem, searchString: string) => boolean>;
|
|
@@ -11,3 +11,11 @@ export interface BulletStepType extends StepCoreType {
|
|
|
11
11
|
export interface NumberStepType extends BulletStepType {
|
|
12
12
|
description?: string;
|
|
13
13
|
}
|
|
14
|
+
export type AlertColor = 'success' | 'danger' | 'warning' | 'info' | 'neutral';
|
|
15
|
+
export type AlertAction = {
|
|
16
|
+
title: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
onClick?: () => void;
|
|
19
|
+
externalUrl?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
};
|
|
@@ -10,6 +10,10 @@ export declare const VALID_EMAIL: RegExp;
|
|
|
10
10
|
* E-mail validation rule (not perfect, but e-mails should be validated by sending out confirmation e-mails anyway)
|
|
11
11
|
*/
|
|
12
12
|
export declare const isEmail: GenericValidateFunction<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Used for placeholders inputs where the user can leave the field empty
|
|
15
|
+
*/
|
|
16
|
+
export declare const isEmailOrEmpty: GenericValidateFunction<string>;
|
|
13
17
|
export declare const isOneOrMultipleEmails: GenericValidateFunction<string>;
|
|
14
18
|
export declare const isRequired: GenericValidateFunction<unknown>;
|
|
15
19
|
export declare const isSameAs: (otherFieldName: string, otherFieldDisplayName?: string) => GenericValidateFunction<unknown>;
|
|
@@ -32,6 +32,7 @@ export type LayoutDialogButton = {
|
|
|
32
32
|
props?: Record<string, unknown> & FormButtonProps;
|
|
33
33
|
onClick?: (e: MouseEvent) => void;
|
|
34
34
|
disabled?: boolean;
|
|
35
|
+
disabledMessage?: string;
|
|
35
36
|
submit?: boolean;
|
|
36
37
|
/**
|
|
37
38
|
* This should uniquely identify the button within the form. Even if you have different sets
|