@synergy-design-system/vue 2.19.3 → 2.20.0
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/SynVueAccordion.vue.d.ts +20 -29
- package/dist/components/SynVueAccordion.vue.js +1 -1
- package/dist/components/SynVueAlert.vue.d.ts +3 -1
- package/dist/components/SynVueAlert.vue.js +1 -1
- package/dist/components/SynVueBadge.vue.d.ts +12 -13
- package/dist/components/SynVueBadge.vue.js +1 -1
- package/dist/components/SynVueBreadcrumb.vue.d.ts +14 -17
- package/dist/components/SynVueBreadcrumb.vue.js +1 -1
- package/dist/components/SynVueBreadcrumbItem.vue.d.ts +20 -34
- package/dist/components/SynVueBreadcrumbItem.vue.js +1 -1
- package/dist/components/SynVueButton.vue.d.ts +3 -1
- package/dist/components/SynVueButton.vue.js +1 -1
- package/dist/components/SynVueButtonGroup.vue.d.ts +14 -17
- package/dist/components/SynVueButtonGroup.vue.js +1 -1
- package/dist/components/SynVueCard.vue.d.ts +14 -17
- package/dist/components/SynVueCard.vue.js +1 -1
- package/dist/components/SynVueCheckbox.vue.d.ts +3 -1
- package/dist/components/SynVueCheckbox.vue.js +1 -1
- package/dist/components/SynVueCombobox.vue.d.ts +3 -1
- package/dist/components/SynVueCombobox.vue.js +1 -1
- package/dist/components/SynVueDetails.vue.d.ts +3 -1
- package/dist/components/SynVueDetails.vue.js +1 -1
- package/dist/components/SynVueDialog.vue.d.ts +3 -1
- package/dist/components/SynVueDialog.vue.js +1 -1
- package/dist/components/SynVueDivider.vue.d.ts +7 -9
- package/dist/components/SynVueDivider.vue.js +1 -1
- package/dist/components/SynVueDrawer.vue.d.ts +3 -1
- package/dist/components/SynVueDrawer.vue.js +1 -1
- package/dist/components/SynVueDropdown.vue.d.ts +3 -1
- package/dist/components/SynVueDropdown.vue.js +1 -1
- package/dist/components/SynVueFile.vue.d.ts +3 -1
- package/dist/components/SynVueFile.vue.js +1 -1
- package/dist/components/SynVueHeader.vue.d.ts +3 -1
- package/dist/components/SynVueHeader.vue.js +1 -1
- package/dist/components/SynVueIcon.vue.d.ts +3 -1
- package/dist/components/SynVueIcon.vue.js +1 -1
- package/dist/components/SynVueIconButton.vue.d.ts +3 -1
- package/dist/components/SynVueIconButton.vue.js +1 -1
- package/dist/components/SynVueInput.vue.d.ts +3 -1
- package/dist/components/SynVueInput.vue.js +1 -1
- package/dist/components/SynVueMenu.vue.d.ts +3 -1
- package/dist/components/SynVueMenu.vue.js +1 -1
- package/dist/components/SynVueMenuItem.vue.d.ts +22 -41
- package/dist/components/SynVueMenuItem.vue.js +1 -1
- package/dist/components/SynVueMenuLabel.vue.d.ts +5 -2
- package/dist/components/SynVueMenuLabel.vue.js +1 -1
- package/dist/components/SynVueNavItem.vue.d.ts +3 -1
- package/dist/components/SynVueNavItem.vue.js +1 -1
- package/dist/components/SynVueOptgroup.vue.d.ts +17 -23
- package/dist/components/SynVueOptgroup.vue.js +1 -1
- package/dist/components/SynVueOption.vue.d.ts +19 -29
- package/dist/components/SynVueOption.vue.js +1 -1
- package/dist/components/SynVuePopup.vue.d.ts +3 -1
- package/dist/components/SynVuePopup.vue.js +1 -1
- package/dist/components/SynVuePrioNav.vue.d.ts +5 -2
- package/dist/components/SynVuePrioNav.vue.js +1 -1
- package/dist/components/SynVueProgressBar.vue.d.ts +20 -29
- package/dist/components/SynVueProgressBar.vue.js +1 -1
- package/dist/components/SynVueProgressRing.vue.d.ts +16 -21
- package/dist/components/SynVueProgressRing.vue.js +1 -1
- package/dist/components/SynVueRadio.vue.d.ts +3 -1
- package/dist/components/SynVueRadio.vue.js +1 -1
- package/dist/components/SynVueRadioButton.vue.d.ts +3 -1
- package/dist/components/SynVueRadioButton.vue.js +1 -1
- package/dist/components/SynVueRadioGroup.vue.d.ts +3 -1
- package/dist/components/SynVueRadioGroup.vue.js +1 -1
- package/dist/components/SynVueRange.vue.d.ts +3 -1
- package/dist/components/SynVueRange.vue.js +1 -1
- package/dist/components/SynVueRangeTick.vue.d.ts +12 -13
- package/dist/components/SynVueRangeTick.vue.js +1 -1
- package/dist/components/SynVueSelect.vue.d.ts +3 -1
- package/dist/components/SynVueSelect.vue.js +1 -1
- package/dist/components/SynVueSideNav.vue.d.ts +3 -1
- package/dist/components/SynVueSideNav.vue.js +1 -1
- package/dist/components/SynVueSpinner.vue.d.ts +3 -1
- package/dist/components/SynVueSpinner.vue.js +1 -1
- package/dist/components/SynVueSwitch.vue.d.ts +3 -1
- package/dist/components/SynVueSwitch.vue.js +1 -1
- package/dist/components/SynVueTab.vue.d.ts +3 -1
- package/dist/components/SynVueTab.vue.js +1 -1
- package/dist/components/SynVueTabGroup.vue.d.ts +3 -1
- package/dist/components/SynVueTabGroup.vue.js +1 -1
- package/dist/components/SynVueTabPanel.vue.d.ts +16 -21
- package/dist/components/SynVueTabPanel.vue.js +1 -1
- package/dist/components/SynVueTag.vue.d.ts +3 -1
- package/dist/components/SynVueTag.vue.js +1 -1
- package/dist/components/SynVueTextarea.vue.d.ts +3 -1
- package/dist/components/SynVueTextarea.vue.js +1 -1
- package/dist/components/SynVueTooltip.vue.d.ts +3 -1
- package/dist/components/SynVueTooltip.vue.js +1 -1
- package/dist/components/SynVueValidate.vue.d.ts +22 -57
- package/dist/components/SynVueValidate.vue.js +1 -1
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/select/select.js";
|
|
3
3
|
const _hoisted_1 = ["value"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -79,7 +79,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
79
79
|
"onSyn-after-show"?: ((e: SynAfterShowEvent) => any) | undefined;
|
|
80
80
|
"onSyn-hide"?: ((e: SynHideEvent) => any) | undefined;
|
|
81
81
|
"onSyn-after-hide"?: ((e: SynAfterHideEvent) => any) | undefined;
|
|
82
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
82
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
83
|
+
nativeElement: unknown;
|
|
84
|
+
}, any>, {
|
|
83
85
|
default?(_: {}): any;
|
|
84
86
|
}>;
|
|
85
87
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/side-nav/side-nav.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueSideNav",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SynSpinner } from '@synergy-design-system/components';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
3
|
nativeElement: import('vue').Ref<SynSpinner | undefined, SynSpinner | undefined>;
|
|
4
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
5
|
+
nativeElement: unknown;
|
|
6
|
+
}, any>;
|
|
5
7
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/spinner/spinner.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueSpinner",
|
|
@@ -106,7 +106,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
106
106
|
"onSyn-change"?: ((e: SynChangeEvent) => any) | undefined;
|
|
107
107
|
"onSyn-input"?: ((e: SynInputEvent) => any) | undefined;
|
|
108
108
|
"onUpdate:modelValue"?: ((newValue: boolean) => any) | undefined;
|
|
109
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
109
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
110
|
+
nativeElement: unknown;
|
|
111
|
+
}, any>, {
|
|
110
112
|
default?(_: {}): any;
|
|
111
113
|
}>;
|
|
112
114
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/switch/switch.js";
|
|
3
3
|
const _hoisted_1 = ["checked"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -42,7 +42,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
42
42
|
disabled?: SynTab["disabled"];
|
|
43
43
|
}> & Readonly<{
|
|
44
44
|
"onSyn-close"?: ((e: SynCloseEvent) => any) | undefined;
|
|
45
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
45
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
46
|
+
nativeElement: unknown;
|
|
47
|
+
}, any>, {
|
|
46
48
|
default?(_: {}): any;
|
|
47
49
|
}>;
|
|
48
50
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/tab/tab.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueTab",
|
|
@@ -65,7 +65,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
65
65
|
}> & Readonly<{
|
|
66
66
|
"onSyn-tab-show"?: ((e: SynTabShowEvent) => any) | undefined;
|
|
67
67
|
"onSyn-tab-hide"?: ((e: SynTabHideEvent) => any) | undefined;
|
|
68
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
68
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
69
|
+
nativeElement: unknown;
|
|
70
|
+
}, any>, {
|
|
69
71
|
default?(_: {}): any;
|
|
70
72
|
}>;
|
|
71
73
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/tab-group/tab-group.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueTabGroup",
|
|
@@ -1,35 +1,30 @@
|
|
|
1
1
|
import { SynTabPanel } from '@synergy-design-system/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/**
|
|
4
|
+
* The tab panel's name.
|
|
5
|
+
*/
|
|
6
|
+
name?: SynTabPanel['name'];
|
|
7
|
+
/**
|
|
8
|
+
* When true, the tab panel will be shown.
|
|
9
|
+
*/
|
|
10
|
+
active?: SynTabPanel['active'];
|
|
11
|
+
};
|
|
2
12
|
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
3
14
|
slots: {
|
|
4
15
|
default?(_: {}): any;
|
|
5
16
|
};
|
|
6
17
|
refs: {
|
|
7
18
|
nativeElement: unknown;
|
|
8
19
|
};
|
|
9
|
-
|
|
20
|
+
rootEl: any;
|
|
10
21
|
};
|
|
11
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
-
/**
|
|
14
|
-
* The tab panel's name.
|
|
15
|
-
*/
|
|
16
|
-
name?: SynTabPanel["name"];
|
|
17
|
-
/**
|
|
18
|
-
* When true, the tab panel will be shown.
|
|
19
|
-
*/
|
|
20
|
-
active?: SynTabPanel["active"];
|
|
21
|
-
}, {
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
22
24
|
nativeElement: import('vue').Ref<SynTabPanel | undefined, SynTabPanel | undefined>;
|
|
23
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
name?: SynTabPanel["name"];
|
|
28
|
-
/**
|
|
29
|
-
* When true, the tab panel will be shown.
|
|
30
|
-
*/
|
|
31
|
-
active?: SynTabPanel["active"];
|
|
32
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
nativeElement: unknown;
|
|
27
|
+
}, any>;
|
|
33
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
29
|
export default _default;
|
|
35
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/tab-panel/tab-panel.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueTabPanel",
|
|
@@ -24,7 +24,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
24
24
|
removable?: SynTag["removable"];
|
|
25
25
|
}> & Readonly<{
|
|
26
26
|
"onSyn-remove"?: ((e: SynRemoveEvent) => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
nativeElement: unknown;
|
|
29
|
+
}, any>, {
|
|
28
30
|
default?(_: {}): any;
|
|
29
31
|
}>;
|
|
30
32
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/tag/tag.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueTag",
|
|
@@ -218,7 +218,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
218
218
|
"onSyn-change"?: ((e: SynChangeEvent) => any) | undefined;
|
|
219
219
|
"onSyn-input"?: ((e: SynInputEvent) => any) | undefined;
|
|
220
220
|
"onUpdate:modelValue"?: ((newValue: string) => any) | undefined;
|
|
221
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
221
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
222
|
+
nativeElement: unknown;
|
|
223
|
+
}, any>, {
|
|
222
224
|
default?(_: {}): any;
|
|
223
225
|
}>;
|
|
224
226
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/textarea/textarea.js";
|
|
3
3
|
const _hoisted_1 = ["value"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -105,7 +105,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
105
105
|
"onSyn-after-show"?: ((e: SynAfterShowEvent) => any) | undefined;
|
|
106
106
|
"onSyn-hide"?: ((e: SynHideEvent) => any) | undefined;
|
|
107
107
|
"onSyn-after-hide"?: ((e: SynAfterHideEvent) => any) | undefined;
|
|
108
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
108
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
109
|
+
nativeElement: unknown;
|
|
110
|
+
}, any>, {
|
|
109
111
|
default?(_: {}): any;
|
|
110
112
|
}>;
|
|
111
113
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/tooltip/tooltip.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueTooltip",
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { SynValidate } from '@synergy-design-system/components';
|
|
2
|
-
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {
|
|
7
|
-
nativeElement: unknown;
|
|
8
|
-
};
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
2
|
+
type __VLS_Props = {
|
|
13
3
|
/**
|
|
14
4
|
* The variant that should be used to show validation alerts.
|
|
15
5
|
|
|
@@ -17,11 +7,11 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
17
7
|
- **native** (default): Uses the native browser validation, usually a browser tooltip.
|
|
18
8
|
- **inline**: Show the validation message underneath the element, using a `<syn-alert>`
|
|
19
9
|
*/
|
|
20
|
-
variant?: SynValidate[
|
|
10
|
+
variant?: SynValidate['variant'];
|
|
21
11
|
/**
|
|
22
12
|
* Do not show the error icon when using the inline variant validation
|
|
23
13
|
*/
|
|
24
|
-
hideIcon?: SynValidate[
|
|
14
|
+
hideIcon?: SynValidate['hideIcon'];
|
|
25
15
|
/**
|
|
26
16
|
* Defines the events that trigger the validation.
|
|
27
17
|
`invalid` will always automatically be included.
|
|
@@ -31,13 +21,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
31
21
|
Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
|
|
32
22
|
and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.
|
|
33
23
|
*/
|
|
34
|
-
on?: SynValidate[
|
|
24
|
+
on?: SynValidate['on'];
|
|
35
25
|
/**
|
|
36
26
|
* Custom validation message to be displayed when the input is invalid.
|
|
37
27
|
Will override the default browser validation message.
|
|
38
28
|
Set to an empty string to reset the validation message.
|
|
39
29
|
*/
|
|
40
|
-
customValidationMessage?: SynValidate[
|
|
30
|
+
customValidationMessage?: SynValidate['customValidationMessage'];
|
|
41
31
|
/**
|
|
42
32
|
* Set this to true to validate the input immediately when it is rendered.
|
|
43
33
|
Best used with a `variant` of `inline`.
|
|
@@ -47,49 +37,24 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
47
37
|
the last eager field as it is using a tooltip.
|
|
48
38
|
In this case it is better to just provide one eager field.
|
|
49
39
|
*/
|
|
50
|
-
eager?: SynValidate[
|
|
51
|
-
}
|
|
40
|
+
eager?: SynValidate['eager'];
|
|
41
|
+
};
|
|
42
|
+
declare function __VLS_template(): {
|
|
43
|
+
attrs: Partial<{}>;
|
|
44
|
+
slots: {
|
|
45
|
+
default?(_: {}): any;
|
|
46
|
+
};
|
|
47
|
+
refs: {
|
|
48
|
+
nativeElement: unknown;
|
|
49
|
+
};
|
|
50
|
+
rootEl: any;
|
|
51
|
+
};
|
|
52
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
53
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
52
54
|
nativeElement: import('vue').Ref<SynValidate | undefined, SynValidate | undefined>;
|
|
53
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
The following variants are supported:
|
|
58
|
-
- **native** (default): Uses the native browser validation, usually a browser tooltip.
|
|
59
|
-
- **inline**: Show the validation message underneath the element, using a `<syn-alert>`
|
|
60
|
-
*/
|
|
61
|
-
variant?: SynValidate["variant"];
|
|
62
|
-
/**
|
|
63
|
-
* Do not show the error icon when using the inline variant validation
|
|
64
|
-
*/
|
|
65
|
-
hideIcon?: SynValidate["hideIcon"];
|
|
66
|
-
/**
|
|
67
|
-
* Defines the events that trigger the validation.
|
|
68
|
-
`invalid` will always automatically be included.
|
|
69
|
-
You may also use the `live` keyword to validate on every input change.
|
|
70
|
-
`live` will make sure to listen to the `invalid`, `input` and `blur` events.
|
|
71
|
-
|
|
72
|
-
Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
|
|
73
|
-
and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.
|
|
74
|
-
*/
|
|
75
|
-
on?: SynValidate["on"];
|
|
76
|
-
/**
|
|
77
|
-
* Custom validation message to be displayed when the input is invalid.
|
|
78
|
-
Will override the default browser validation message.
|
|
79
|
-
Set to an empty string to reset the validation message.
|
|
80
|
-
*/
|
|
81
|
-
customValidationMessage?: SynValidate["customValidationMessage"];
|
|
82
|
-
/**
|
|
83
|
-
* Set this to true to validate the input immediately when it is rendered.
|
|
84
|
-
Best used with a `variant` of `inline`.
|
|
85
|
-
When setting eager, the input will not be focused automatically.
|
|
86
|
-
|
|
87
|
-
When using a `variant` of `native` the browser will focus
|
|
88
|
-
the last eager field as it is using a tooltip.
|
|
89
|
-
In this case it is better to just provide one eager field.
|
|
90
|
-
*/
|
|
91
|
-
eager?: SynValidate["eager"];
|
|
92
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
55
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
56
|
+
nativeElement: unknown;
|
|
57
|
+
}, any>;
|
|
93
58
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
94
59
|
export default _default;
|
|
95
60
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import "@synergy-design-system/components/components/validate/validate.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SynVueValidate",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@synergy-design-system/components": "^2.
|
|
7
|
+
"@synergy-design-system/components": "^2.20.0"
|
|
8
8
|
},
|
|
9
9
|
"description": "Vue3 wrappers for the Synergy Design System",
|
|
10
10
|
"exports": {
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"directory": "packages/vue"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
|
-
"version": "2.
|
|
43
|
+
"version": "2.20.0",
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
46
|
-
"@vue/tsconfig": "^0.
|
|
47
|
-
"rollup-plugin-node-externals": "^
|
|
48
|
-
"vite": "^
|
|
49
|
-
"vite-plugin-dts": "^4.
|
|
45
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
46
|
+
"@vue/tsconfig": "^0.7.0",
|
|
47
|
+
"rollup-plugin-node-externals": "^8.0.0",
|
|
48
|
+
"vite": "^6.1.0",
|
|
49
|
+
"vite-plugin-dts": "^4.5.0",
|
|
50
50
|
"vue": "^3.5.13"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@synergy-design-system/tokens": "^2.
|
|
53
|
+
"@synergy-design-system/tokens": "^2.18.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"_build": "vite build"
|