@synergy-design-system/vue 1.24.1 → 1.26.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.
@@ -0,0 +1,36 @@
1
+ import '@synergy-design-system/components/components/breadcrumb/breadcrumb.js';
2
+ import type { SynBreadcrumb } from '@synergy-design-system/components';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
+ /**
5
+ * The label to use for the breadcrumb control.
6
+ * This will not be shown on the screen, but it will be announced by
7
+ screen readers and other assistive devices to provide more context for users.
8
+ */
9
+ label?: string | undefined;
10
+ }>, {
11
+ nativeElement: import("vue").Ref<SynBreadcrumb | undefined>;
12
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
13
+ /**
14
+ * The label to use for the breadcrumb control.
15
+ * This will not be shown on the screen, but it will be announced by
16
+ screen readers and other assistive devices to provide more context for users.
17
+ */
18
+ label?: string | undefined;
19
+ }>>>, {}, {}>, {
20
+ default?(_: {}): any;
21
+ }>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToOption<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: import('vue').PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
@@ -0,0 +1,60 @@
1
+ import '@synergy-design-system/components/components/breadcrumb-item/breadcrumb-item.js';
2
+ import type { SynBreadcrumbItem } from '@synergy-design-system/components';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
+ /**
5
+ * Optional URL to direct the user to when the breadcrumb item is activated.
6
+ * When set, a link will be rendered
7
+ internally.
8
+ * When unset, a button will be rendered instead.
9
+ */
10
+ href?: string | undefined;
11
+ /**
12
+ * Tells the browser where to open the link.
13
+ * Only used when `href` is set.
14
+ */
15
+ target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
16
+ /**
17
+ * The `rel` attribute to use on the link.
18
+ * Only used when `href` is set.
19
+ */
20
+ rel?: string | undefined;
21
+ }>, {
22
+ callHrefChanged: () => void | undefined;
23
+ callHandleSlotChange: () => void | undefined;
24
+ nativeElement: import("vue").Ref<SynBreadcrumbItem | undefined>;
25
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
26
+ /**
27
+ * Optional URL to direct the user to when the breadcrumb item is activated.
28
+ * When set, a link will be rendered
29
+ internally.
30
+ * When unset, a button will be rendered instead.
31
+ */
32
+ href?: string | undefined;
33
+ /**
34
+ * Tells the browser where to open the link.
35
+ * Only used when `href` is set.
36
+ */
37
+ target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
38
+ /**
39
+ * The `rel` attribute to use on the link.
40
+ * Only used when `href` is set.
41
+ */
42
+ rel?: string | undefined;
43
+ }>>>, {}, {}>, {
44
+ default?(_: {}): any;
45
+ }>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
52
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
53
+ type __VLS_TypePropsToOption<T> = {
54
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
55
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
56
+ } : {
57
+ type: import('vue').PropType<T[K]>;
58
+ required: true;
59
+ };
60
+ };
@@ -0,0 +1,34 @@
1
+ import '@synergy-design-system/components/components/card/card.js';
2
+ import type { SynCard } from '@synergy-design-system/components';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
+ /**
5
+ * Draws the card as a nested item.
6
+ * Can be used when nesting multiple syn-cards to create hierarchy
7
+ */
8
+ nested?: boolean | undefined;
9
+ }>, {
10
+ nativeElement: import("vue").Ref<SynCard | undefined>;
11
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
12
+ /**
13
+ * Draws the card as a nested item.
14
+ * Can be used when nesting multiple syn-cards to create hierarchy
15
+ */
16
+ nested?: boolean | undefined;
17
+ }>>>, {}, {}>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToOption<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  export { default as SynVueAlert } from "./components/SynVueAlert.vue";
2
2
  export { default as SynVueBadge } from "./components/SynVueBadge.vue";
3
+ export { default as SynVueBreadcrumb } from "./components/SynVueBreadcrumb.vue";
4
+ export { default as SynVueBreadcrumbItem } from "./components/SynVueBreadcrumbItem.vue";
3
5
  export { default as SynVueButton } from "./components/SynVueButton.vue";
4
6
  export { default as SynVueButtonGroup } from "./components/SynVueButtonGroup.vue";
7
+ export { default as SynVueCard } from "./components/SynVueCard.vue";
5
8
  export { default as SynVueCheckbox } from "./components/SynVueCheckbox.vue";
6
9
  export { default as SynVueDialog } from "./components/SynVueDialog.vue";
7
10
  export { default as SynVueDivider } from "./components/SynVueDivider.vue";
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": "^1.24.1"
7
+ "@synergy-design-system/components": "^1.26.0"
8
8
  },
9
9
  "description": "Vue3 wrappers for the Synergy Design System",
10
10
  "exports": {
@@ -40,7 +40,7 @@
40
40
  "directory": "packages/vue"
41
41
  },
42
42
  "type": "module",
43
- "version": "1.24.1",
43
+ "version": "1.26.0",
44
44
  "devDependencies": {
45
45
  "@vue/tsconfig": "^0.5.1",
46
46
  "vue": "^3.4.24"
@@ -0,0 +1,70 @@
1
+ <script setup lang="ts">
2
+ // ---------------------------------------------------------------------
3
+ // 🔒 AUTOGENERATED @synergy-design-system/vue wrappers for @synergy-design-system/components
4
+ // Please do not edit this file directly!
5
+ // It will get recreated when running pnpm build.
6
+ // ---------------------------------------------------------------------
7
+
8
+ /**
9
+ * @summary Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.
10
+ * @documentation https://synergy.style/components/breadcrumb
11
+ * @status stable
12
+ * @since 2.0
13
+ *
14
+ * @slot - One or more breadcrumb items to display.
15
+ * @slot separator - The separator to use between breadcrumb items. Works best with `<syn-icon>`.
16
+ *
17
+ * @dependency syn-icon
18
+ *
19
+ * @csspart base - The component's base wrapper.
20
+ */
21
+ import { computed, ref } from 'vue';
22
+ import '@synergy-design-system/components/components/breadcrumb/breadcrumb.js';
23
+
24
+ import type { SynBreadcrumb } from '@synergy-design-system/components';
25
+
26
+ // DOM Reference to the element
27
+ const nativeElement = ref<SynBreadcrumb>();
28
+
29
+ // Map methods
30
+
31
+ defineExpose({
32
+
33
+ nativeElement,
34
+ });
35
+
36
+ // Map attributes
37
+ const props = defineProps<{
38
+ /**
39
+ * The label to use for the breadcrumb control.
40
+ * This will not be shown on the screen, but it will be announced by
41
+ screen readers and other assistive devices to provide more context for users.
42
+ */
43
+ 'label'?: SynBreadcrumb['label'];
44
+ }>();
45
+
46
+ // Make sure prop binding only forwards the props that are actually there.
47
+ // This is needed because :param="param" also adds an empty attribute
48
+ // when using web-components, which breaks optional arguments like size in SynInput
49
+ // @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
50
+ const visibleProps = computed(() => Object.fromEntries(
51
+ Object
52
+ .entries(props)
53
+ .filter(([, value]) => typeof value !== 'undefined'),
54
+ ));
55
+
56
+ // Map events
57
+ defineEmits<{
58
+
59
+ }>();
60
+ </script>
61
+
62
+ <template>
63
+ <syn-breadcrumb
64
+
65
+ v-bind="visibleProps"
66
+ ref="nativeElement"
67
+ >
68
+ <slot />
69
+ </syn-breadcrumb>
70
+ </template>
@@ -0,0 +1,91 @@
1
+ <script setup lang="ts">
2
+ // ---------------------------------------------------------------------
3
+ // 🔒 AUTOGENERATED @synergy-design-system/vue wrappers for @synergy-design-system/components
4
+ // Please do not edit this file directly!
5
+ // It will get recreated when running pnpm build.
6
+ // ---------------------------------------------------------------------
7
+
8
+ /**
9
+ * @summary Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.
10
+ * @documentation https://synergy.style/components/breadcrumb-item
11
+ * @status stable
12
+ * @since 2.0
13
+ *
14
+ * @slot - The breadcrumb item's label.
15
+ * @slot prefix - An optional prefix, usually an icon or icon button.
16
+ * @slot suffix - An optional suffix, usually an icon or icon button.
17
+ * @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If
18
+ * you want to change it for all items in the group, set the separator on `<syn-breadcrumb>` instead.
19
+ *
20
+ * @csspart base - The component's base wrapper.
21
+ * @csspart label - The breadcrumb item's label.
22
+ * @csspart prefix - The container that wraps the prefix.
23
+ * @csspart suffix - The container that wraps the suffix.
24
+ * @csspart separator - The container that wraps the separator.
25
+ */
26
+ import { computed, ref } from 'vue';
27
+ import '@synergy-design-system/components/components/breadcrumb-item/breadcrumb-item.js';
28
+
29
+ import type { SynBreadcrumbItem } from '@synergy-design-system/components';
30
+
31
+ // DOM Reference to the element
32
+ const nativeElement = ref<SynBreadcrumbItem>();
33
+
34
+ // Map methods
35
+ const callHrefChanged = (...args: Parameters<SynBreadcrumbItem['hrefChanged']>) => nativeElement.value?.hrefChanged(...args);
36
+ const callHandleSlotChange = (...args: Parameters<SynBreadcrumbItem['handleSlotChange']>) => nativeElement.value?.handleSlotChange(...args);
37
+
38
+ defineExpose({
39
+ callHrefChanged,
40
+ callHandleSlotChange,
41
+ nativeElement,
42
+ });
43
+
44
+ // Map attributes
45
+ const props = defineProps<{
46
+ /**
47
+ * Optional URL to direct the user to when the breadcrumb item is activated.
48
+ * When set, a link will be rendered
49
+ internally.
50
+ * When unset, a button will be rendered instead.
51
+ */
52
+ 'href'?: SynBreadcrumbItem['href'];
53
+
54
+ /**
55
+ * Tells the browser where to open the link.
56
+ * Only used when `href` is set.
57
+ */
58
+ 'target'?: SynBreadcrumbItem['target'];
59
+
60
+ /**
61
+ * The `rel` attribute to use on the link.
62
+ * Only used when `href` is set.
63
+ */
64
+ 'rel'?: SynBreadcrumbItem['rel'];
65
+ }>();
66
+
67
+ // Make sure prop binding only forwards the props that are actually there.
68
+ // This is needed because :param="param" also adds an empty attribute
69
+ // when using web-components, which breaks optional arguments like size in SynInput
70
+ // @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
71
+ const visibleProps = computed(() => Object.fromEntries(
72
+ Object
73
+ .entries(props)
74
+ .filter(([, value]) => typeof value !== 'undefined'),
75
+ ));
76
+
77
+ // Map events
78
+ defineEmits<{
79
+
80
+ }>();
81
+ </script>
82
+
83
+ <template>
84
+ <syn-breadcrumb-item
85
+
86
+ v-bind="visibleProps"
87
+ ref="nativeElement"
88
+ >
89
+ <slot />
90
+ </syn-breadcrumb-item>
91
+ </template>
@@ -0,0 +1,78 @@
1
+ <script setup lang="ts">
2
+ // ---------------------------------------------------------------------
3
+ // 🔒 AUTOGENERATED @synergy-design-system/vue wrappers for @synergy-design-system/components
4
+ // Please do not edit this file directly!
5
+ // It will get recreated when running pnpm build.
6
+ // ---------------------------------------------------------------------
7
+
8
+ /**
9
+ * @summary Cards can be used to group related subjects in a container.
10
+ * @documentation https://synergy.style/components/card
11
+ * @status stable
12
+ * @since 2.0
13
+ *
14
+ * @slot - The card's main content.
15
+ * @slot header - An optional header for the card.
16
+ * @slot footer - An optional footer for the card.
17
+ * @slot image - An optional image to render at the start of the card.
18
+ *
19
+ * @csspart base - The component's base wrapper.
20
+ * @csspart image - The container that wraps the card's image.
21
+ * @csspart header - The container that wraps the card's header.
22
+ * @csspart body - The container that wraps the card's main content.
23
+ * @csspart footer - The container that wraps the card's footer.
24
+ *
25
+ * @cssproperty --border-color - The card's border color, including borders that occur inside the card.
26
+ * @cssproperty --border-radius - The border radius for the card's edges.
27
+ * @cssproperty --border-width - The width of the card's borders.
28
+ * @cssproperty --padding - The padding to use for the card's sections.
29
+ */
30
+ import { computed, ref } from 'vue';
31
+ import '@synergy-design-system/components/components/card/card.js';
32
+
33
+ import type { SynCard } from '@synergy-design-system/components';
34
+
35
+ // DOM Reference to the element
36
+ const nativeElement = ref<SynCard>();
37
+
38
+ // Map methods
39
+
40
+ defineExpose({
41
+
42
+ nativeElement,
43
+ });
44
+
45
+ // Map attributes
46
+ const props = defineProps<{
47
+ /**
48
+ * Draws the card as a nested item.
49
+ * Can be used when nesting multiple syn-cards to create hierarchy
50
+ */
51
+ 'nested'?: SynCard['nested'];
52
+ }>();
53
+
54
+ // Make sure prop binding only forwards the props that are actually there.
55
+ // This is needed because :param="param" also adds an empty attribute
56
+ // when using web-components, which breaks optional arguments like size in SynInput
57
+ // @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
58
+ const visibleProps = computed(() => Object.fromEntries(
59
+ Object
60
+ .entries(props)
61
+ .filter(([, value]) => typeof value !== 'undefined'),
62
+ ));
63
+
64
+ // Map events
65
+ defineEmits<{
66
+
67
+ }>();
68
+ </script>
69
+
70
+ <template>
71
+ <syn-card
72
+
73
+ v-bind="visibleProps"
74
+ ref="nativeElement"
75
+ >
76
+ <slot />
77
+ </syn-card>
78
+ </template>
package/src/index.js CHANGED
@@ -5,8 +5,11 @@
5
5
  // ---------------------------------------------------------------------
6
6
  export { default as SynVueAlert } from './components/SynVueAlert.vue';
7
7
  export { default as SynVueBadge } from './components/SynVueBadge.vue';
8
+ export { default as SynVueBreadcrumb } from './components/SynVueBreadcrumb.vue';
9
+ export { default as SynVueBreadcrumbItem } from './components/SynVueBreadcrumbItem.vue';
8
10
  export { default as SynVueButton } from './components/SynVueButton.vue';
9
11
  export { default as SynVueButtonGroup } from './components/SynVueButtonGroup.vue';
12
+ export { default as SynVueCard } from './components/SynVueCard.vue';
10
13
  export { default as SynVueCheckbox } from './components/SynVueCheckbox.vue';
11
14
  export { default as SynVueDialog } from './components/SynVueDialog.vue';
12
15
  export { default as SynVueDivider } from './components/SynVueDivider.vue';