sit-onyx 1.0.0-beta.73 → 1.0.0-beta.75
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/OnyxButton/OnyxButton.vue.d.ts +2 -2
- package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +17 -0
- package/dist/components/OnyxDatePicker/types.d.ts +13 -0
- package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +1 -1
- package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +1 -1
- package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +1 -1
- package/dist/components/OnyxInput/OnyxInput.vue.d.ts +5 -5
- package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +3 -3
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +2 -2
- package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +2 -2
- package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +3 -3
- package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +2 -2
- package/dist/components/OnyxTab/OnyxTab.vue.d.ts +1 -1
- package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +3 -3
- package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +1 -1
- package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +1 -1
- package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +2 -2
- package/dist/composables/useCustomValidity.d.ts +2 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1307 -1213
- package/dist/style.css +1 -1
- package/dist/utils/attrs.d.ts +2 -2
- package/dist/utils/date.d.ts +7 -0
- package/dist/utils/validity.d.ts +1 -1
- package/package.json +7 -7
|
@@ -2,9 +2,9 @@ import type { OnyxButtonProps } from "./types";
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<OnyxButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxButtonProps> & Readonly<{}>, {
|
|
3
3
|
type: import("./types").ButtonType;
|
|
4
4
|
color: import("./types").ButtonColor;
|
|
5
|
-
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
6
|
-
disabled: import("../OnyxForm/OnyxForm.core").FormInjected<boolean>;
|
|
7
5
|
loading: boolean;
|
|
6
|
+
disabled: import("../OnyxForm/OnyxForm.core").FormInjected<boolean>;
|
|
8
7
|
mode: import("./types").ButtonMode;
|
|
8
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OnyxDatePickerProps } from "./types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<OnyxDatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
validityChange: (validity: ValidityState) => any;
|
|
4
|
+
"update:modelValue": (value?: string | undefined) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<OnyxDatePickerProps> & Readonly<{
|
|
6
|
+
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
required: boolean;
|
|
10
|
+
type: "date" | "datetime-local";
|
|
11
|
+
loading: boolean;
|
|
12
|
+
disabled: boolean | symbol;
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
15
|
+
showError: boolean | symbol | "touched";
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OnyxInputProps } from "../OnyxInput/types";
|
|
2
|
+
export type OnyxDatePickerProps = Omit<OnyxInputProps, "type" | "modelValue" | "autocapitalize" | "maxlength" | "minlength" | "pattern" | "withCounter" | "placeholder" | "autocomplete"> & {
|
|
3
|
+
/**
|
|
4
|
+
* Current date value. Supports all data types that are parsable by `new Date()`.
|
|
5
|
+
*/
|
|
6
|
+
modelValue?: DateValue;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the user should be able to select only date or date + time.
|
|
9
|
+
*/
|
|
10
|
+
type?: "date" | "datetime-local";
|
|
11
|
+
};
|
|
12
|
+
/** Data types that are parsable as date via `new Date()`. */
|
|
13
|
+
export type DateValue = ConstructorParameters<typeof Date>[0];
|
|
@@ -28,8 +28,8 @@ declare const __VLS_component: import("vue").DefineComponent<OnyxDialogProps, {}
|
|
|
28
28
|
onClose?: (() => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
open: boolean;
|
|
31
|
-
modal: boolean;
|
|
32
31
|
alert: boolean;
|
|
32
|
+
modal: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
35
|
export default _default;
|
|
@@ -15,8 +15,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
15
15
|
declare const __VLS_component: import("vue").DefineComponent<OnyxIconButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxIconButtonProps> & Readonly<{}>, {
|
|
16
16
|
type: import("../OnyxButton/types.ts").ButtonType;
|
|
17
17
|
color: import("../OnyxButton/types.ts").ButtonColor;
|
|
18
|
-
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
19
18
|
disabled: import("../OnyxForm/OnyxForm.core").FormInjected<boolean>;
|
|
19
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
22
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OnyxInfoTooltipProps } from "./types";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<OnyxInfoTooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxInfoTooltipProps> & Readonly<{}>, {
|
|
3
|
-
color: Extract<import("../../index.ts").OnyxColor, "neutral" | "danger" | "success">;
|
|
4
3
|
open: import("../OnyxTooltip/types.ts").TooltipOpen;
|
|
4
|
+
color: Extract<import("../../index.ts").OnyxColor, "neutral" | "danger" | "success">;
|
|
5
5
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
6
6
|
export default _default;
|
|
@@ -6,14 +6,14 @@ declare const _default: import("vue").DefineComponent<OnyxInputProps, {}, {}, {}
|
|
|
6
6
|
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
-
type: import("./types").InputType;
|
|
10
9
|
required: boolean;
|
|
11
|
-
|
|
10
|
+
type: import("./types").InputType;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
autocapitalize: import("./types").Autocapitalize;
|
|
12
13
|
disabled: boolean | symbol;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
13
16
|
showError: boolean | symbol | "touched";
|
|
14
|
-
autocapitalize: import("./types").Autocapitalize;
|
|
15
|
-
loading: boolean;
|
|
16
17
|
modelValue: string;
|
|
17
|
-
readonly: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
export default _default;
|
|
@@ -17,10 +17,10 @@ declare function __VLS_template(): {
|
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
19
|
declare const __VLS_component: import("vue").DefineComponent<OnyxListItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxListItemProps> & Readonly<{}>, {
|
|
20
|
+
active: boolean;
|
|
20
21
|
disabled: boolean;
|
|
21
22
|
checked: boolean;
|
|
22
23
|
selected: boolean;
|
|
23
|
-
active: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
25
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
26
|
export default _default;
|
|
@@ -103,14 +103,14 @@ declare function __VLS_template(): {
|
|
|
103
103
|
};
|
|
104
104
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
105
105
|
declare const __VLS_component: import("vue").DefineComponent<OnyxNavButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
106
|
-
"update:mobileChildrenOpen": (isOpen: boolean) => any;
|
|
107
106
|
navigate: (href: string, event: MouseEvent) => any;
|
|
107
|
+
"update:mobileChildrenOpen": (isOpen: boolean) => any;
|
|
108
108
|
}, string, import("vue").PublicProps, Readonly<OnyxNavButtonProps> & Readonly<{
|
|
109
|
-
"onUpdate:mobileChildrenOpen"?: ((isOpen: boolean) => any) | undefined;
|
|
110
109
|
onNavigate?: ((href: string, event: MouseEvent) => any) | undefined;
|
|
110
|
+
"onUpdate:mobileChildrenOpen"?: ((isOpen: boolean) => any) | undefined;
|
|
111
111
|
}>, {
|
|
112
|
-
withExternalIcon: boolean | "auto";
|
|
113
112
|
active: boolean;
|
|
113
|
+
withExternalIcon: boolean | "auto";
|
|
114
114
|
mobileChildrenOpen: import("../../../../composables/useManagedState").ManagedProp<boolean>;
|
|
115
115
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
116
116
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -16,9 +16,9 @@ declare function __VLS_template(): {
|
|
|
16
16
|
};
|
|
17
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
18
|
declare const __VLS_component: import("vue").DefineComponent<import("../index.ts").OnyxNavButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
-
navigate: (href: string) => any;
|
|
19
|
+
navigate: (href: string, event: MouseEvent) => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<import("../index.ts").OnyxNavButtonProps> & Readonly<{
|
|
21
|
-
onNavigate?: ((href: string) => any) | undefined;
|
|
21
|
+
onNavigate?: ((href: string, event: MouseEvent) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
withExternalIcon: boolean | "auto";
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
@@ -17,9 +17,9 @@ declare function __VLS_template(): {
|
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
19
|
declare const __VLS_component: import("vue").DefineComponent<OnyxSelectOptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxSelectOptionProps> & Readonly<{}>, {
|
|
20
|
-
truncation: import("../../index.ts").TruncationType;
|
|
21
|
-
multiple: boolean;
|
|
22
20
|
active: boolean;
|
|
21
|
+
multiple: boolean;
|
|
22
|
+
truncation: import("../../index.ts").TruncationType;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
24
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
25
|
export default _default;
|
|
@@ -10,11 +10,11 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
10
10
|
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
11
11
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
14
|
-
disabled: boolean | symbol;
|
|
15
|
-
showError: boolean | symbol | "touched";
|
|
16
13
|
loading: boolean;
|
|
14
|
+
disabled: boolean | symbol;
|
|
17
15
|
readonly: boolean;
|
|
16
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
17
|
+
showError: boolean | symbol | "touched";
|
|
18
18
|
precision: number;
|
|
19
19
|
stripStep: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -6,9 +6,9 @@ declare const _default: import("vue").DefineComponent<OnyxSwitchProps, {}, {}, {
|
|
|
6
6
|
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
7
7
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
-
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
10
|
-
disabled: boolean | symbol;
|
|
11
9
|
loading: boolean;
|
|
10
|
+
disabled: boolean | symbol;
|
|
11
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
12
12
|
modelValue: boolean;
|
|
13
13
|
truncation: import("../../index.ts").TruncationType;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -25,8 +25,8 @@ declare function __VLS_template(): {
|
|
|
25
25
|
};
|
|
26
26
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
27
|
declare const __VLS_component: import("vue").DefineComponent<OnyxTabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxTabProps> & Readonly<{}>, {
|
|
28
|
-
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
29
28
|
disabled: boolean;
|
|
29
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
32
|
export default _default;
|
|
@@ -7,11 +7,11 @@ declare const _default: import("vue").DefineComponent<OnyxTextareaProps, {}, {},
|
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
required: boolean;
|
|
10
|
-
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
11
|
-
disabled: boolean | symbol;
|
|
12
10
|
autocapitalize: import("../OnyxInput/types.ts").Autocapitalize;
|
|
13
|
-
|
|
11
|
+
disabled: boolean | symbol;
|
|
14
12
|
readonly: boolean;
|
|
13
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
14
|
+
modelValue: string;
|
|
15
15
|
disableManualResize: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -4,8 +4,8 @@ declare const _default: import("vue").DefineComponent<OnyxToastMessageProps, {},
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<OnyxToastMessageProps> & Readonly<{
|
|
5
5
|
onClose?: (() => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
icon: string | false;
|
|
8
7
|
color: Extract<import("../../index.ts").OnyxColor, "neutral" | "danger" | "warning" | "success">;
|
|
8
|
+
icon: string | false;
|
|
9
9
|
duration: number;
|
|
10
10
|
clickable: boolean;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -41,11 +41,11 @@ declare function __VLS_template(): {
|
|
|
41
41
|
};
|
|
42
42
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
43
43
|
declare const __VLS_component: import("vue").DefineComponent<OnyxTooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxTooltipProps> & Readonly<{}>, {
|
|
44
|
+
open: import("./types").TooltipOpen;
|
|
44
45
|
color: Extract<import("../../index.ts").OnyxColor, "neutral" | "danger" | "success">;
|
|
45
46
|
position: import("./types").TooltipPosition;
|
|
46
47
|
alignment: import("../../composables/useWedgePosition").WedgePosition | "auto";
|
|
47
48
|
fitParent: boolean;
|
|
48
|
-
open: import("./types").TooltipOpen;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
50
50
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
51
|
export default _default;
|
package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts
CHANGED
|
@@ -15,12 +15,12 @@ type __VLS_Props = {
|
|
|
15
15
|
initialValue?: GridElementConfig;
|
|
16
16
|
};
|
|
17
17
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
close: () => any;
|
|
18
19
|
delete: () => any;
|
|
19
20
|
apply: (element: GridElementConfig) => any;
|
|
20
|
-
close: () => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onClose?: (() => any) | undefined;
|
|
22
23
|
onDelete?: (() => any) | undefined;
|
|
23
24
|
onApply?: ((element: GridElementConfig) => any) | undefined;
|
|
24
|
-
onClose?: (() => any) | undefined;
|
|
25
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OnyxDatePickerProps } from "../components/OnyxDatePicker/types";
|
|
1
2
|
import type { InputType } from "../components/OnyxInput/types";
|
|
2
3
|
import enUS from "../i18n/locales/en-US.json";
|
|
3
4
|
import type { BaseSelectOption } from "../types";
|
|
@@ -14,7 +15,7 @@ export type UseCustomValidityOptions = {
|
|
|
14
15
|
*/
|
|
15
16
|
props: CustomValidityProp & {
|
|
16
17
|
modelValue?: unknown;
|
|
17
|
-
type?: InputType;
|
|
18
|
+
type?: InputType | OnyxDatePickerProps["type"];
|
|
18
19
|
maxlength?: number;
|
|
19
20
|
minlength?: number;
|
|
20
21
|
min?: number;
|