@synergy-design-system/vue 2.11.6 → 2.11.7
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/README.md +1 -0
- package/dist/components/SynVueAccordion.vue.d.ts +31 -21
- package/dist/components/SynVueAccordion.vue.js +33 -0
- package/dist/components/SynVueAccordion.vue2.js +4 -0
- package/dist/components/SynVueAlert.vue.d.ts +10 -15
- package/dist/components/SynVueAlert.vue.js +40 -0
- package/dist/components/SynVueAlert.vue2.js +4 -0
- package/dist/components/SynVueBadge.vue.d.ts +15 -13
- package/dist/components/SynVueBadge.vue.js +31 -0
- package/dist/components/SynVueBadge.vue2.js +4 -0
- package/dist/components/SynVueBreadcrumb.vue.d.ts +19 -15
- package/dist/components/SynVueBreadcrumb.vue.js +31 -0
- package/dist/components/SynVueBreadcrumb.vue2.js +4 -0
- package/dist/components/SynVueBreadcrumbItem.vue.d.ts +36 -21
- package/dist/components/SynVueBreadcrumbItem.vue.js +33 -0
- package/dist/components/SynVueBreadcrumbItem.vue2.js +4 -0
- package/dist/components/SynVueButton.vue.d.ts +6 -10
- package/dist/components/SynVueButton.vue.js +54 -0
- package/dist/components/SynVueButton.vue2.js +4 -0
- package/dist/components/SynVueButtonGroup.vue.d.ts +19 -15
- package/dist/components/SynVueButtonGroup.vue.js +31 -0
- package/dist/components/SynVueButtonGroup.vue2.js +4 -0
- package/dist/components/SynVueCard.vue.d.ts +19 -15
- package/dist/components/SynVueCard.vue.js +31 -0
- package/dist/components/SynVueCard.vue2.js +4 -0
- package/dist/components/SynVueCheckbox.vue.d.ts +10 -16
- package/dist/components/SynVueCheckbox.vue.js +53 -0
- package/dist/components/SynVueCheckbox.vue2.js +4 -0
- package/dist/components/SynVueCombobox.vue.d.ts +20 -32
- package/dist/components/SynVueCombobox.vue.js +64 -0
- package/dist/components/SynVueCombobox.vue2.js +4 -0
- package/dist/components/SynVueDetails.vue.d.ts +10 -15
- package/dist/components/SynVueDetails.vue.js +41 -0
- package/dist/components/SynVueDetails.vue2.js +4 -0
- package/dist/components/SynVueDialog.vue.d.ts +10 -17
- package/dist/components/SynVueDialog.vue.js +41 -0
- package/dist/components/SynVueDialog.vue2.js +4 -0
- package/dist/components/SynVueDivider.vue.d.ts +11 -8
- package/dist/components/SynVueDivider.vue.js +29 -0
- package/dist/components/SynVueDivider.vue2.js +4 -0
- package/dist/components/SynVueDrawer.vue.d.ts +10 -17
- package/dist/components/SynVueDrawer.vue.js +43 -0
- package/dist/components/SynVueDrawer.vue2.js +4 -0
- package/dist/components/SynVueDropdown.vue.d.ts +10 -15
- package/dist/components/SynVueDropdown.vue.js +45 -0
- package/dist/components/SynVueDropdown.vue2.js +4 -0
- package/dist/components/SynVueFile.vue.d.ts +10 -16
- package/dist/components/SynVueFile.vue.js +58 -0
- package/dist/components/SynVueFile.vue2.js +4 -0
- package/dist/components/SynVueHeader.vue.d.ts +6 -10
- package/dist/components/SynVueHeader.vue.js +37 -0
- package/dist/components/SynVueHeader.vue2.js +4 -0
- package/dist/components/SynVueIcon.vue.d.ts +6 -9
- package/dist/components/SynVueIcon.vue.js +36 -0
- package/dist/components/SynVueIcon.vue2.js +4 -0
- package/dist/components/SynVueIconButton.vue.d.ts +6 -9
- package/dist/components/SynVueIconButton.vue.js +42 -0
- package/dist/components/SynVueIconButton.vue2.js +4 -0
- package/dist/components/SynVueInput.vue.d.ts +12 -19
- package/dist/components/SynVueInput.vue.js +73 -0
- package/dist/components/SynVueInput.vue2.js +4 -0
- package/dist/components/SynVueMenu.vue.d.ts +6 -8
- package/dist/components/SynVueMenu.vue.js +24 -0
- package/dist/components/SynVueMenu.vue2.js +4 -0
- package/dist/components/SynVueMenuItem.vue.d.ts +43 -23
- package/dist/components/SynVueMenuItem.vue.js +35 -0
- package/dist/components/SynVueMenuItem.vue2.js +4 -0
- package/dist/components/SynVueMenuLabel.vue.d.ts +5 -7
- package/dist/components/SynVueMenuLabel.vue.js +22 -0
- package/dist/components/SynVueMenuLabel.vue2.js +4 -0
- package/dist/components/SynVueNavItem.vue.d.ts +10 -15
- package/dist/components/SynVueNavItem.vue.js +43 -0
- package/dist/components/SynVueNavItem.vue2.js +4 -0
- package/dist/components/SynVueOptgroup.vue.d.ts +25 -18
- package/dist/components/SynVueOptgroup.vue.js +32 -0
- package/dist/components/SynVueOptgroup.vue2.js +4 -0
- package/dist/components/SynVueOption.vue.d.ts +31 -20
- package/dist/components/SynVueOption.vue.js +32 -0
- package/dist/components/SynVueOption.vue2.js +4 -0
- package/dist/components/SynVuePopup.vue.d.ts +6 -8
- package/dist/components/SynVuePopup.vue.js +55 -0
- package/dist/components/SynVuePopup.vue2.js +4 -0
- package/dist/components/SynVuePrioNav.vue.d.ts +5 -7
- package/dist/components/SynVuePrioNav.vue.js +22 -0
- package/dist/components/SynVuePrioNav.vue2.js +4 -0
- package/dist/components/SynVueProgressBar.vue.d.ts +31 -21
- package/dist/components/SynVueProgressBar.vue.js +33 -0
- package/dist/components/SynVueProgressBar.vue2.js +4 -0
- package/dist/components/SynVueProgressRing.vue.d.ts +23 -17
- package/dist/components/SynVueProgressRing.vue.js +32 -0
- package/dist/components/SynVueProgressRing.vue2.js +4 -0
- package/dist/components/SynVueRadio.vue.d.ts +6 -9
- package/dist/components/SynVueRadio.vue.js +37 -0
- package/dist/components/SynVueRadio.vue2.js +4 -0
- package/dist/components/SynVueRadioButton.vue.d.ts +6 -9
- package/dist/components/SynVueRadioButton.vue.js +38 -0
- package/dist/components/SynVueRadioButton.vue2.js +4 -0
- package/dist/components/SynVueRadioGroup.vue.d.ts +8 -12
- package/dist/components/SynVueRadioGroup.vue.js +48 -0
- package/dist/components/SynVueRadioGroup.vue2.js +4 -0
- package/dist/components/SynVueRange.vue.d.ts +12 -19
- package/dist/components/SynVueRange.vue.js +56 -0
- package/dist/components/SynVueRange.vue2.js +4 -0
- package/dist/components/SynVueRangeTick.vue.d.ts +15 -13
- package/dist/components/SynVueRangeTick.vue.js +31 -0
- package/dist/components/SynVueRangeTick.vue2.js +4 -0
- package/dist/components/SynVueSelect.vue.d.ts +18 -29
- package/dist/components/SynVueSelect.vue.js +64 -0
- package/dist/components/SynVueSelect.vue2.js +4 -0
- package/dist/components/SynVueSideNav.vue.d.ts +10 -15
- package/dist/components/SynVueSideNav.vue.js +39 -0
- package/dist/components/SynVueSideNav.vue2.js +4 -0
- package/dist/components/SynVueSpinner.vue.d.ts +4 -5
- package/dist/components/SynVueSpinner.vue.js +20 -0
- package/dist/components/SynVueSpinner.vue2.js +4 -0
- package/dist/components/SynVueSwitch.vue.d.ts +10 -16
- package/dist/components/SynVueSwitch.vue.js +52 -0
- package/dist/components/SynVueSwitch.vue2.js +4 -0
- package/dist/components/SynVueTab.vue.d.ts +6 -8
- package/dist/components/SynVueTab.vue.js +37 -0
- package/dist/components/SynVueTab.vue2.js +4 -0
- package/dist/components/SynVueTabGroup.vue.d.ts +8 -11
- package/dist/components/SynVueTabGroup.vue.js +40 -0
- package/dist/components/SynVueTabGroup.vue2.js +4 -0
- package/dist/components/SynVueTabPanel.vue.d.ts +23 -17
- package/dist/components/SynVueTabPanel.vue.js +32 -0
- package/dist/components/SynVueTabPanel.vue2.js +4 -0
- package/dist/components/SynVueTag.vue.d.ts +6 -8
- package/dist/components/SynVueTag.vue.js +35 -0
- package/dist/components/SynVueTag.vue2.js +4 -0
- package/dist/components/SynVueTextarea.vue.d.ts +10 -16
- package/dist/components/SynVueTextarea.vue.js +65 -0
- package/dist/components/SynVueTextarea.vue2.js +4 -0
- package/dist/components/SynVueTooltip.vue.d.ts +10 -15
- package/dist/components/SynVueTooltip.vue.js +44 -0
- package/dist/components/SynVueTooltip.vue2.js +4 -0
- package/dist/index.d.ts +45 -45
- package/dist/index.js +92 -0
- package/package.json +11 -4
- /package/src/{index.js → index.ts} +0 -0
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import '@synergy-design-system/components
|
|
2
|
-
import type { SynBlurEvent } from '@synergy-design-system/components';
|
|
3
|
-
import type { SynChangeEvent } from '@synergy-design-system/components';
|
|
4
|
-
import type { SynClearEvent } from '@synergy-design-system/components';
|
|
5
|
-
import type { SynFocusEvent } from '@synergy-design-system/components';
|
|
6
|
-
import type { SynInputEvent } from '@synergy-design-system/components';
|
|
7
|
-
import type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
8
|
-
import type { SynInput } from '@synergy-design-system/components';
|
|
1
|
+
import { SynBlurEvent, SynChangeEvent, SynClearEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent, SynInput } from '@synergy-design-system/components';
|
|
9
2
|
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
10
3
|
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
11
4
|
export type { SynClearEvent } from '@synergy-design-system/components';
|
|
12
5
|
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
13
6
|
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
14
7
|
export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
16
9
|
title?: SynInput["title"];
|
|
17
10
|
/**
|
|
18
11
|
* The type of input.
|
|
@@ -149,16 +142,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
149
142
|
*/
|
|
150
143
|
modelValue?: SynInput["value"];
|
|
151
144
|
}, {
|
|
152
|
-
nativeElement: import(
|
|
153
|
-
}, {}, {}, {}, import(
|
|
145
|
+
nativeElement: import('vue').Ref<SynInput | undefined, SynInput | undefined>;
|
|
146
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
154
147
|
"syn-blur": (e: SynBlurEvent) => any;
|
|
155
|
-
"syn-change": (e: SynChangeEvent) => any;
|
|
156
|
-
"syn-clear": (e: SynClearEvent) => any;
|
|
157
148
|
"syn-focus": (e: SynFocusEvent) => any;
|
|
158
|
-
"syn-input": (e: SynInputEvent) => any;
|
|
159
149
|
"syn-invalid": (e: SynInvalidEvent) => any;
|
|
150
|
+
"syn-change": (e: SynChangeEvent) => any;
|
|
151
|
+
"syn-input": (e: SynInputEvent) => any;
|
|
160
152
|
"update:modelValue": (newValue: string) => any;
|
|
161
|
-
|
|
153
|
+
"syn-clear": (e: SynClearEvent) => any;
|
|
154
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
162
155
|
title?: SynInput["title"];
|
|
163
156
|
/**
|
|
164
157
|
* The type of input.
|
|
@@ -296,13 +289,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
296
289
|
modelValue?: SynInput["value"];
|
|
297
290
|
}> & Readonly<{
|
|
298
291
|
"onSyn-blur"?: ((e: SynBlurEvent) => any) | undefined;
|
|
299
|
-
"onSyn-change"?: ((e: SynChangeEvent) => any) | undefined;
|
|
300
|
-
"onSyn-clear"?: ((e: SynClearEvent) => any) | undefined;
|
|
301
292
|
"onSyn-focus"?: ((e: SynFocusEvent) => any) | undefined;
|
|
302
|
-
"onSyn-input"?: ((e: SynInputEvent) => any) | undefined;
|
|
303
293
|
"onSyn-invalid"?: ((e: SynInvalidEvent) => any) | undefined;
|
|
294
|
+
"onSyn-change"?: ((e: SynChangeEvent) => any) | undefined;
|
|
295
|
+
"onSyn-input"?: ((e: SynInputEvent) => any) | undefined;
|
|
304
296
|
"onUpdate:modelValue"?: ((newValue: string) => any) | undefined;
|
|
305
|
-
|
|
297
|
+
"onSyn-clear"?: ((e: SynClearEvent) => any) | undefined;
|
|
298
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
306
299
|
default?(_: {}): any;
|
|
307
300
|
}>;
|
|
308
301
|
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, mergeProps, renderSlot } from "vue";
|
|
2
|
+
import "@synergy-design-system/components/components/input/input.js";
|
|
3
|
+
const _hoisted_1 = ["value"];
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "SynVueInput",
|
|
6
|
+
props: {
|
|
7
|
+
title: {},
|
|
8
|
+
type: {},
|
|
9
|
+
name: {},
|
|
10
|
+
value: {},
|
|
11
|
+
size: {},
|
|
12
|
+
label: {},
|
|
13
|
+
helpText: {},
|
|
14
|
+
clearable: {},
|
|
15
|
+
disabled: {},
|
|
16
|
+
placeholder: {},
|
|
17
|
+
readonly: {},
|
|
18
|
+
passwordToggle: {},
|
|
19
|
+
passwordVisible: {},
|
|
20
|
+
noSpinButtons: {},
|
|
21
|
+
form: {},
|
|
22
|
+
required: {},
|
|
23
|
+
pattern: {},
|
|
24
|
+
minlength: {},
|
|
25
|
+
maxlength: {},
|
|
26
|
+
min: {},
|
|
27
|
+
max: {},
|
|
28
|
+
step: {},
|
|
29
|
+
autocapitalize: {},
|
|
30
|
+
autocorrect: {},
|
|
31
|
+
autocomplete: {},
|
|
32
|
+
autofocus: {},
|
|
33
|
+
enterkeyhint: {},
|
|
34
|
+
spellcheck: {},
|
|
35
|
+
inputmode: {},
|
|
36
|
+
modelValue: {}
|
|
37
|
+
},
|
|
38
|
+
emits: ["syn-blur", "syn-change", "syn-clear", "syn-focus", "syn-input", "syn-invalid", "update:modelValue"],
|
|
39
|
+
setup(__props, { expose: __expose }) {
|
|
40
|
+
const nativeElement = ref();
|
|
41
|
+
__expose({
|
|
42
|
+
nativeElement
|
|
43
|
+
});
|
|
44
|
+
const props = __props;
|
|
45
|
+
const visibleProps = computed(
|
|
46
|
+
() => Object.fromEntries(
|
|
47
|
+
Object.entries(props).filter(([, value]) => typeof value !== "undefined")
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return openBlock(), createElementBlock("syn-input", mergeProps({
|
|
52
|
+
onSynBlur: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("syn-blur", $event)),
|
|
53
|
+
onSynChange: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("syn-change", $event)),
|
|
54
|
+
onSynClear: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("syn-clear", $event)),
|
|
55
|
+
onSynFocus: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("syn-focus", $event)),
|
|
56
|
+
onSynInput: _cache[4] || (_cache[4] = ($event) => {
|
|
57
|
+
_ctx.$emit("update:modelValue", $event.target.value);
|
|
58
|
+
_ctx.$emit("syn-input", $event);
|
|
59
|
+
}),
|
|
60
|
+
onSynInvalid: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("syn-invalid", $event)),
|
|
61
|
+
value: typeof props.modelValue !== "undefined" ? props.modelValue : typeof props.value !== "undefined" ? props.value : void 0
|
|
62
|
+
}, visibleProps.value, {
|
|
63
|
+
ref_key: "nativeElement",
|
|
64
|
+
ref: nativeElement
|
|
65
|
+
}), [
|
|
66
|
+
renderSlot(_ctx.$slots, "default")
|
|
67
|
+
], 16, _hoisted_1);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
_sfc_main as default
|
|
73
|
+
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import '@synergy-design-system/components
|
|
2
|
-
import type { SynSelectEvent } from '@synergy-design-system/components';
|
|
3
|
-
import type { SynMenu } from '@synergy-design-system/components';
|
|
1
|
+
import { SynSelectEvent, SynMenu } from '@synergy-design-system/components';
|
|
4
2
|
export type { SynSelectEvent } from '@synergy-design-system/components';
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
6
|
-
nativeElement: import(
|
|
7
|
-
}, {}, {}, {}, import(
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {
|
|
4
|
+
nativeElement: import('vue').Ref<SynMenu | undefined, SynMenu | undefined>;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
6
|
"syn-select": (e: SynSelectEvent) => any;
|
|
9
|
-
}, string, import(
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
10
8
|
"onSyn-select"?: ((e: SynSelectEvent) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import(
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
12
10
|
default?(_: {}): any;
|
|
13
11
|
}>;
|
|
14
12
|
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
|
+
import "@synergy-design-system/components/components/menu/menu.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "SynVueMenu",
|
|
5
|
+
emits: ["syn-select"],
|
|
6
|
+
setup(__props, { expose: __expose }) {
|
|
7
|
+
const nativeElement = ref();
|
|
8
|
+
__expose({
|
|
9
|
+
nativeElement
|
|
10
|
+
});
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("syn-menu", {
|
|
13
|
+
onSynSelect: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("syn-select", $event)),
|
|
14
|
+
ref_key: "nativeElement",
|
|
15
|
+
ref: nativeElement
|
|
16
|
+
}, [
|
|
17
|
+
renderSlot(_ctx.$slots, "default")
|
|
18
|
+
], 544);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
_sfc_main as default
|
|
24
|
+
};
|
|
@@ -1,43 +1,63 @@
|
|
|
1
|
-
import '@synergy-design-system/components
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SynMenuItem } from '@synergy-design-system/components';
|
|
2
|
+
declare function __VLS_template(): {
|
|
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<{
|
|
4
13
|
/**
|
|
5
14
|
* The type of menu item to render.
|
|
6
15
|
* To use `checked`, this value must be set to `checkbox`.
|
|
7
16
|
*/
|
|
8
|
-
type?: SynMenuItem[
|
|
17
|
+
type?: SynMenuItem["type"];
|
|
9
18
|
/**
|
|
10
19
|
* Draws the item in a checked state.
|
|
11
20
|
*/
|
|
12
|
-
checked?: SynMenuItem[
|
|
21
|
+
checked?: SynMenuItem["checked"];
|
|
13
22
|
/**
|
|
14
23
|
* A unique value to store in the menu item.
|
|
15
24
|
* This can be used as a way to identify menu items when selected.
|
|
16
25
|
*/
|
|
17
|
-
value?: SynMenuItem[
|
|
26
|
+
value?: SynMenuItem["value"];
|
|
18
27
|
/**
|
|
19
28
|
* Draws the menu item in a loading state.
|
|
20
29
|
*/
|
|
21
|
-
loading?: SynMenuItem[
|
|
30
|
+
loading?: SynMenuItem["loading"];
|
|
22
31
|
/**
|
|
23
32
|
* Draws the menu item in a disabled state, preventing selection.
|
|
24
33
|
*/
|
|
25
|
-
disabled?: SynMenuItem[
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
disabled?: SynMenuItem["disabled"];
|
|
35
|
+
}, {
|
|
36
|
+
nativeElement: import('vue').Ref<SynMenuItem | undefined, SynMenuItem | undefined>;
|
|
37
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
38
|
+
/**
|
|
39
|
+
* The type of menu item to render.
|
|
40
|
+
* To use `checked`, this value must be set to `checkbox`.
|
|
41
|
+
*/
|
|
42
|
+
type?: SynMenuItem["type"];
|
|
43
|
+
/**
|
|
44
|
+
* Draws the item in a checked state.
|
|
45
|
+
*/
|
|
46
|
+
checked?: SynMenuItem["checked"];
|
|
47
|
+
/**
|
|
48
|
+
* A unique value to store in the menu item.
|
|
49
|
+
* This can be used as a way to identify menu items when selected.
|
|
50
|
+
*/
|
|
51
|
+
value?: SynMenuItem["value"];
|
|
52
|
+
/**
|
|
53
|
+
* Draws the menu item in a loading state.
|
|
54
|
+
*/
|
|
55
|
+
loading?: SynMenuItem["loading"];
|
|
56
|
+
/**
|
|
57
|
+
* Draws the menu item in a disabled state, preventing selection.
|
|
58
|
+
*/
|
|
59
|
+
disabled?: SynMenuItem["disabled"];
|
|
60
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
61
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
62
|
export default _default;
|
|
43
63
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, mergeProps, renderSlot } from "vue";
|
|
2
|
+
import "@synergy-design-system/components/components/menu-item/menu-item.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "SynVueMenuItem",
|
|
5
|
+
props: {
|
|
6
|
+
type: {},
|
|
7
|
+
checked: {},
|
|
8
|
+
value: {},
|
|
9
|
+
loading: {},
|
|
10
|
+
disabled: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props, { expose: __expose }) {
|
|
13
|
+
const nativeElement = ref();
|
|
14
|
+
__expose({
|
|
15
|
+
nativeElement
|
|
16
|
+
});
|
|
17
|
+
const props = __props;
|
|
18
|
+
const visibleProps = computed(
|
|
19
|
+
() => Object.fromEntries(
|
|
20
|
+
Object.entries(props).filter(([, value]) => typeof value !== "undefined")
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createElementBlock("syn-menu-item", mergeProps(visibleProps.value, {
|
|
25
|
+
ref_key: "nativeElement",
|
|
26
|
+
ref: nativeElement
|
|
27
|
+
}), [
|
|
28
|
+
renderSlot(_ctx.$slots, "default")
|
|
29
|
+
], 16);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
_sfc_main as default
|
|
35
|
+
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import '@synergy-design-system/components
|
|
2
|
-
import type { SynMenuLabel } from '@synergy-design-system/components';
|
|
1
|
+
import { SynMenuLabel } from '@synergy-design-system/components';
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
attrs: Partial<{}>;
|
|
5
3
|
slots: {
|
|
6
4
|
default?(_: {}): any;
|
|
7
5
|
};
|
|
8
6
|
refs: {
|
|
9
7
|
nativeElement: unknown;
|
|
10
8
|
};
|
|
11
|
-
|
|
9
|
+
attrs: Partial<{}>;
|
|
12
10
|
};
|
|
13
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: import(
|
|
15
|
-
nativeElement: import(
|
|
16
|
-
}, {}, {}, {}, import(
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
13
|
+
nativeElement: import('vue').Ref<SynMenuLabel | undefined, SynMenuLabel | undefined>;
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
15
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
16
|
export default _default;
|
|
19
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
|
+
import "@synergy-design-system/components/components/menu-label/menu-label.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "SynVueMenuLabel",
|
|
5
|
+
setup(__props, { expose: __expose }) {
|
|
6
|
+
const nativeElement = ref();
|
|
7
|
+
__expose({
|
|
8
|
+
nativeElement
|
|
9
|
+
});
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createElementBlock("syn-menu-label", {
|
|
12
|
+
ref_key: "nativeElement",
|
|
13
|
+
ref: nativeElement
|
|
14
|
+
}, [
|
|
15
|
+
renderSlot(_ctx.$slots, "default")
|
|
16
|
+
], 512);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_sfc_main as default
|
|
22
|
+
};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import '@synergy-design-system/components
|
|
2
|
-
import type { SynShowEvent } from '@synergy-design-system/components';
|
|
3
|
-
import type { SynHideEvent } from '@synergy-design-system/components';
|
|
4
|
-
import type { SynBlurEvent } from '@synergy-design-system/components';
|
|
5
|
-
import type { SynFocusEvent } from '@synergy-design-system/components';
|
|
6
|
-
import type { SynNavItem } from '@synergy-design-system/components';
|
|
1
|
+
import { SynShowEvent, SynHideEvent, SynBlurEvent, SynFocusEvent, SynNavItem } from '@synergy-design-system/components';
|
|
7
2
|
export type { SynShowEvent } from '@synergy-design-system/components';
|
|
8
3
|
export type { SynHideEvent } from '@synergy-design-system/components';
|
|
9
4
|
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
10
5
|
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
12
7
|
/**
|
|
13
8
|
* The navigation item's href target.
|
|
14
9
|
If provided, the navigation item will use an anchor tag otherwise it will use a button tag.
|
|
@@ -42,13 +37,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
37
|
*/
|
|
43
38
|
divider?: SynNavItem["divider"];
|
|
44
39
|
}, {
|
|
45
|
-
nativeElement: import(
|
|
46
|
-
}, {}, {}, {}, import(
|
|
40
|
+
nativeElement: import('vue').Ref<SynNavItem | undefined, SynNavItem | undefined>;
|
|
41
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
"syn-show": (e: SynShowEvent) => any;
|
|
43
|
+
"syn-hide": (e: SynHideEvent) => any;
|
|
47
44
|
"syn-blur": (e: SynBlurEvent) => any;
|
|
48
45
|
"syn-focus": (e: SynFocusEvent) => any;
|
|
49
|
-
|
|
50
|
-
"syn-show": (e: SynShowEvent) => any;
|
|
51
|
-
}, string, import("vue").PublicProps, Readonly<{
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
52
47
|
/**
|
|
53
48
|
* The navigation item's href target.
|
|
54
49
|
If provided, the navigation item will use an anchor tag otherwise it will use a button tag.
|
|
@@ -82,11 +77,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
82
77
|
*/
|
|
83
78
|
divider?: SynNavItem["divider"];
|
|
84
79
|
}> & Readonly<{
|
|
80
|
+
"onSyn-show"?: ((e: SynShowEvent) => any) | undefined;
|
|
81
|
+
"onSyn-hide"?: ((e: SynHideEvent) => any) | undefined;
|
|
85
82
|
"onSyn-blur"?: ((e: SynBlurEvent) => any) | undefined;
|
|
86
83
|
"onSyn-focus"?: ((e: SynFocusEvent) => any) | undefined;
|
|
87
|
-
|
|
88
|
-
"onSyn-show"?: ((e: SynShowEvent) => any) | undefined;
|
|
89
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
84
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
90
85
|
default?(_: {}): any;
|
|
91
86
|
}>;
|
|
92
87
|
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, mergeProps, renderSlot } from "vue";
|
|
2
|
+
import "@synergy-design-system/components/components/nav-item/nav-item.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "SynVueNavItem",
|
|
5
|
+
props: {
|
|
6
|
+
href: {},
|
|
7
|
+
current: {},
|
|
8
|
+
disabled: {},
|
|
9
|
+
horizontal: {},
|
|
10
|
+
chevron: {},
|
|
11
|
+
open: {},
|
|
12
|
+
divider: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["syn-show", "syn-hide", "syn-blur", "syn-focus"],
|
|
15
|
+
setup(__props, { expose: __expose }) {
|
|
16
|
+
const nativeElement = ref();
|
|
17
|
+
__expose({
|
|
18
|
+
nativeElement
|
|
19
|
+
});
|
|
20
|
+
const props = __props;
|
|
21
|
+
const visibleProps = computed(
|
|
22
|
+
() => Object.fromEntries(
|
|
23
|
+
Object.entries(props).filter(([, value]) => typeof value !== "undefined")
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createElementBlock("syn-nav-item", mergeProps({
|
|
28
|
+
onSynShow: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("syn-show", $event)),
|
|
29
|
+
onSynHide: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("syn-hide", $event)),
|
|
30
|
+
onSynBlur: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("syn-blur", $event)),
|
|
31
|
+
onSynFocus: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("syn-focus", $event))
|
|
32
|
+
}, visibleProps.value, {
|
|
33
|
+
ref_key: "nativeElement",
|
|
34
|
+
ref: nativeElement
|
|
35
|
+
}), [
|
|
36
|
+
renderSlot(_ctx.$slots, "default")
|
|
37
|
+
], 16);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
_sfc_main as default
|
|
43
|
+
};
|
|
@@ -1,30 +1,37 @@
|
|
|
1
|
-
import '@synergy-design-system/components
|
|
2
|
-
import type { SynOptgroup } from '@synergy-design-system/components';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
/**
|
|
5
|
-
* Disables all options in the optgroup.
|
|
6
|
-
*/
|
|
7
|
-
disabled?: SynOptgroup['disabled'];
|
|
8
|
-
/**
|
|
9
|
-
* The optgroups label.
|
|
10
|
-
* If you need to display HTML, use the `label` slot instead.
|
|
11
|
-
*/
|
|
12
|
-
label?: SynOptgroup['label'];
|
|
13
|
-
};
|
|
1
|
+
import { SynOptgroup } from '@synergy-design-system/components';
|
|
14
2
|
declare function __VLS_template(): {
|
|
15
|
-
attrs: Partial<{}>;
|
|
16
3
|
slots: {
|
|
17
4
|
default?(_: {}): any;
|
|
18
5
|
};
|
|
19
6
|
refs: {
|
|
20
7
|
nativeElement: unknown;
|
|
21
8
|
};
|
|
22
|
-
|
|
9
|
+
attrs: Partial<{}>;
|
|
23
10
|
};
|
|
24
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
-
declare const __VLS_component: import(
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* Disables all options in the optgroup.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: SynOptgroup["disabled"];
|
|
17
|
+
/**
|
|
18
|
+
* The optgroups label.
|
|
19
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
20
|
+
*/
|
|
21
|
+
label?: SynOptgroup["label"];
|
|
22
|
+
}, {
|
|
23
|
+
nativeElement: import('vue').Ref<SynOptgroup | undefined, SynOptgroup | undefined>;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
25
|
+
/**
|
|
26
|
+
* Disables all options in the optgroup.
|
|
27
|
+
*/
|
|
28
|
+
disabled?: SynOptgroup["disabled"];
|
|
29
|
+
/**
|
|
30
|
+
* The optgroups label.
|
|
31
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
32
|
+
*/
|
|
33
|
+
label?: SynOptgroup["label"];
|
|
34
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
36
|
export default _default;
|
|
30
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, mergeProps, renderSlot } from "vue";
|
|
2
|
+
import "@synergy-design-system/components/components/optgroup/optgroup.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "SynVueOptgroup",
|
|
5
|
+
props: {
|
|
6
|
+
disabled: {},
|
|
7
|
+
label: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props, { expose: __expose }) {
|
|
10
|
+
const nativeElement = ref();
|
|
11
|
+
__expose({
|
|
12
|
+
nativeElement
|
|
13
|
+
});
|
|
14
|
+
const props = __props;
|
|
15
|
+
const visibleProps = computed(
|
|
16
|
+
() => Object.fromEntries(
|
|
17
|
+
Object.entries(props).filter(([, value]) => typeof value !== "undefined")
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("syn-optgroup", mergeProps(visibleProps.value, {
|
|
22
|
+
ref_key: "nativeElement",
|
|
23
|
+
ref: nativeElement
|
|
24
|
+
}), [
|
|
25
|
+
renderSlot(_ctx.$slots, "default")
|
|
26
|
+
], 16);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
_sfc_main as default
|
|
32
|
+
};
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import '@synergy-design-system/components
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SynOption } from '@synergy-design-system/components';
|
|
2
|
+
declare function __VLS_template(): {
|
|
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<{
|
|
4
13
|
/**
|
|
5
14
|
* The option's value.
|
|
6
15
|
* When selected, the containing form control will receive this value.
|
|
@@ -9,26 +18,28 @@ type __VLS_Props = {
|
|
|
9
18
|
* Values may not contain spaces, as spaces are used as delimiters when listing
|
|
10
19
|
multiple values.
|
|
11
20
|
*/
|
|
12
|
-
value?: SynOption[
|
|
21
|
+
value?: SynOption["value"];
|
|
13
22
|
/**
|
|
14
23
|
* Draws the option in a disabled state, preventing selection.
|
|
15
24
|
*/
|
|
16
|
-
disabled?: SynOption[
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
disabled?: SynOption["disabled"];
|
|
26
|
+
}, {
|
|
27
|
+
nativeElement: import('vue').Ref<SynOption | undefined, SynOption | undefined>;
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
29
|
+
/**
|
|
30
|
+
* The option's value.
|
|
31
|
+
* When selected, the containing form control will receive this value.
|
|
32
|
+
* The value must be unique
|
|
33
|
+
from other options in the same group.
|
|
34
|
+
* Values may not contain spaces, as spaces are used as delimiters when listing
|
|
35
|
+
multiple values.
|
|
36
|
+
*/
|
|
37
|
+
value?: SynOption["value"];
|
|
38
|
+
/**
|
|
39
|
+
* Draws the option in a disabled state, preventing selection.
|
|
40
|
+
*/
|
|
41
|
+
disabled?: SynOption["disabled"];
|
|
42
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
43
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
44
|
export default _default;
|
|
34
45
|
type __VLS_WithTemplateSlots<T, S> = T & {
|