@db-ux/v-core-components 4.9.0 → 4.10.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/CHANGELOG.md +17 -1
- package/README.md +101 -33
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -0
- package/dist/components/accordion-item/model.d.ts +5 -1
- package/dist/components/badge/model.d.ts +1 -1
- package/dist/components/brand/model.d.ts +1 -1
- package/dist/components/button/model.d.ts +1 -1
- package/dist/components/card/model.d.ts +1 -1
- package/dist/components/checkbox/model.d.ts +1 -1
- package/dist/components/custom-button/model.d.ts +2 -2
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +4 -4
- package/dist/components/custom-select-dropdown/model.d.ts +1 -1
- package/dist/components/custom-select-form-field/model.d.ts +1 -1
- package/dist/components/custom-select-list/model.d.ts +1 -1
- package/dist/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/components/divider/model.d.ts +1 -1
- package/dist/components/drawer/model.d.ts +1 -1
- package/dist/components/header/header.vue.d.ts +8 -8
- package/dist/components/header/model.d.ts +1 -1
- package/dist/components/icon/model.d.ts +1 -1
- package/dist/components/infotext/model.d.ts +1 -1
- package/dist/components/input/model.d.ts +1 -1
- package/dist/components/link/model.d.ts +1 -1
- package/dist/components/navigation/model.d.ts +1 -1
- package/dist/components/navigation-item/model.d.ts +6 -2
- package/dist/components/navigation-item/navigation-item.vue.d.ts +4 -3
- package/dist/components/notification/model.d.ts +1 -1
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/radio/model.d.ts +1 -1
- package/dist/components/section/model.d.ts +1 -1
- package/dist/components/select/model.d.ts +1 -1
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/switch/model.d.ts +1 -1
- package/dist/components/tab-item/model.d.ts +1 -1
- package/dist/components/tab-list/model.d.ts +1 -1
- package/dist/components/tab-panel/model.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +3 -3
- package/dist/components/tag/model.d.ts +1 -1
- package/dist/components/textarea/model.d.ts +1 -1
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/db-ux.es.js +36 -22
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/figma.d.ts +12 -6
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, InputEventProps, InputEventState } from '../../shared/model';
|
|
1
|
+
import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, InputEventProps, InputEventState } from '../../shared/model';
|
|
2
2
|
export declare const TextareaResizeList: readonly ["none", "both", "horizontal", "vertical"];
|
|
3
3
|
export type TextareaResizeType = (typeof TextareaResizeList)[number];
|
|
4
4
|
export declare const TextareaWrapList: readonly ["hard", "soft", "off"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEventState, DocumentScrollState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, ResetIdState, TextProps, WrapProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEventState, DocumentScrollState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, ResetIdState, TextProps, WrapProps } from '../../shared/model';
|
|
2
2
|
export declare const TooltipVariantList: readonly ["description", "label"];
|
|
3
3
|
export type TooltipVariantType = (typeof TooltipVariantList)[number];
|
|
4
4
|
export type DBTooltipDefaultProps = {
|
package/dist/db-ux.es.js
CHANGED
|
@@ -57,6 +57,10 @@ var b = () => {
|
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: void 0
|
|
59
59
|
},
|
|
60
|
+
open: {
|
|
61
|
+
type: [Boolean, String],
|
|
62
|
+
default: void 0
|
|
63
|
+
},
|
|
60
64
|
disabled: {
|
|
61
65
|
type: [Boolean, String],
|
|
62
66
|
default: void 0
|
|
@@ -91,11 +95,17 @@ var b = () => {
|
|
|
91
95
|
}, {
|
|
92
96
|
immediate: !0,
|
|
93
97
|
flush: "post"
|
|
98
|
+
}), v(() => [o.open], () => {
|
|
99
|
+
let e = k(o.open, "open");
|
|
100
|
+
e !== void 0 && (s.value = e);
|
|
101
|
+
}, {
|
|
102
|
+
immediate: !0,
|
|
103
|
+
flush: "post"
|
|
94
104
|
});
|
|
95
105
|
function y(e) {
|
|
96
106
|
e?.preventDefault();
|
|
97
107
|
let t = !s.value;
|
|
98
|
-
o.onToggle && o.onToggle(t), s.value = t;
|
|
108
|
+
o.onToggle && o.onToggle(t), o.open === void 0 && (s.value = t);
|
|
99
109
|
}
|
|
100
110
|
return (l, f) => (d(), r("li", {
|
|
101
111
|
id: t.id ?? t.propOverrides?.id,
|
|
@@ -134,7 +144,7 @@ var b = () => {
|
|
|
134
144
|
o.name,
|
|
135
145
|
o.behavior
|
|
136
146
|
], () => {
|
|
137
|
-
u.value && (o.behavior === "single" ? o.name ? s.value !== o.name && (s.value = o.name) : s.value = `accordion-${a}` : s.value = "");
|
|
147
|
+
u.value && y.value && (o.behavior === "single" ? o.name ? s.value !== o.name && (s.value = o.name) : s.value = `accordion-${a}` : s.value = "");
|
|
138
148
|
}, {
|
|
139
149
|
immediate: !0,
|
|
140
150
|
flush: "post"
|
|
@@ -2439,7 +2449,7 @@ var b = () => {
|
|
|
2439
2449
|
}
|
|
2440
2450
|
function _() {
|
|
2441
2451
|
if (s.value) {
|
|
2442
|
-
let e =
|
|
2452
|
+
let e = k(t.open, "open");
|
|
2443
2453
|
e && !s.value.open && (u.value && u.value.removeAttribute("data-transition"), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? s.value.show() : s.value.showModal(), D(() => {
|
|
2444
2454
|
u.value && (u.value.dataset.transition = "open");
|
|
2445
2455
|
}, 1)), !e && s.value.open && (u.value && (u.value.dataset.transition = "close"), D(() => {
|
|
@@ -2563,7 +2573,7 @@ var b = () => {
|
|
|
2563
2573
|
"id",
|
|
2564
2574
|
"data-width",
|
|
2565
2575
|
"data-on-forcing-mobile"
|
|
2566
|
-
], hn = { class: "db-header-
|
|
2576
|
+
], hn = { class: "db-header-meta-navigation" }, gn = { class: "db-header-navigation-bar" }, _n = { class: "db-header-brand-container" }, vn = { class: "db-header-navigation-container" }, yn = { class: "db-header-navigation" }, bn = { class: "db-header-primary-action" }, xn = { class: "db-header-action-container" }, Sn = { class: "db-header-burger-menu-container" }, Cn = { class: "db-header-secondary-action" }, wn = { class: "db-header-drawer-navigation" }, Tn = { class: "db-header-meta-navigation" }, En = { class: "db-header-secondary-action" }, Dn = /* @__PURE__ */ s({
|
|
2567
2577
|
name: "DBHeader",
|
|
2568
2578
|
__name: "header",
|
|
2569
2579
|
props: {
|
|
@@ -2624,6 +2634,20 @@ var b = () => {
|
|
|
2624
2634
|
"data-width": e.width,
|
|
2625
2635
|
"data-on-forcing-mobile": e.forceMobile && !s.value
|
|
2626
2636
|
}, [
|
|
2637
|
+
i("div", hn, [m(n.$slots, "meta-navigation")]),
|
|
2638
|
+
i("div", gn, [
|
|
2639
|
+
i("div", _n, [m(n.$slots, "brand")]),
|
|
2640
|
+
i("div", vn, [i("div", yn, [m(n.$slots, "default")]), i("div", bn, [m(n.$slots, "primary-action")])]),
|
|
2641
|
+
i("div", xn, [i("div", Sn, [o(Ie, {
|
|
2642
|
+
icon: "menu",
|
|
2643
|
+
variant: "ghost",
|
|
2644
|
+
noText: !0,
|
|
2645
|
+
onClick: (e) => p()
|
|
2646
|
+
}, {
|
|
2647
|
+
default: y(() => [a(h(e.burgerMenuLabel ?? g("BurgerMenu")), 1)]),
|
|
2648
|
+
_: 1
|
|
2649
|
+
}, 8, ["onClick"])]), i("div", Cn, [m(n.$slots, "secondary-action")])])
|
|
2650
|
+
]),
|
|
2627
2651
|
o(sn, {
|
|
2628
2652
|
class: "db-header-drawer",
|
|
2629
2653
|
spacing: "small",
|
|
@@ -2633,30 +2657,16 @@ var b = () => {
|
|
|
2633
2657
|
open: g(k)(e.drawerOpen),
|
|
2634
2658
|
onClose: (e) => p()
|
|
2635
2659
|
}, {
|
|
2636
|
-
default: y(() => [i("div",
|
|
2660
|
+
default: y(() => [i("div", wn, [i("div", {
|
|
2637
2661
|
class: "db-header-navigation",
|
|
2638
2662
|
onClick: l[0] ||= async (e) => _(e)
|
|
2639
|
-
}, [m(n.$slots, "default")]), i("div",
|
|
2663
|
+
}, [m(n.$slots, "default")]), i("div", Tn, [m(n.$slots, "meta-navigation")])]), i("div", En, [m(n.$slots, "secondary-action")])]),
|
|
2640
2664
|
_: 3
|
|
2641
2665
|
}, 8, [
|
|
2642
2666
|
"closeButtonId",
|
|
2643
2667
|
"closeButtonText",
|
|
2644
2668
|
"open",
|
|
2645
2669
|
"onClose"
|
|
2646
|
-
]),
|
|
2647
|
-
i("div", vn, [m(n.$slots, "meta-navigation")]),
|
|
2648
|
-
i("div", yn, [
|
|
2649
|
-
i("div", bn, [m(n.$slots, "brand")]),
|
|
2650
|
-
i("div", xn, [i("div", Sn, [m(n.$slots, "default")]), i("div", Cn, [m(n.$slots, "primary-action")])]),
|
|
2651
|
-
i("div", wn, [i("div", Tn, [o(Ie, {
|
|
2652
|
-
icon: "menu",
|
|
2653
|
-
variant: "ghost",
|
|
2654
|
-
noText: !0,
|
|
2655
|
-
onClick: (e) => p()
|
|
2656
|
-
}, {
|
|
2657
|
-
default: y(() => [a(h(e.burgerMenuLabel ?? g("BurgerMenu")), 1)]),
|
|
2658
|
-
_: 1
|
|
2659
|
-
}, 8, ["onClick"])]), i("div", En, [m(n.$slots, "secondary-action")])])
|
|
2660
2670
|
])
|
|
2661
2671
|
], 10, mn));
|
|
2662
2672
|
}
|
|
@@ -2859,6 +2869,10 @@ var b = () => {
|
|
|
2859
2869
|
type: [Boolean, String],
|
|
2860
2870
|
default: void 0
|
|
2861
2871
|
},
|
|
2872
|
+
hideSubNavigation: {
|
|
2873
|
+
type: [Boolean, String],
|
|
2874
|
+
default: void 0
|
|
2875
|
+
},
|
|
2862
2876
|
children: { default: void 0 },
|
|
2863
2877
|
className: { default: void 0 },
|
|
2864
2878
|
class: {},
|
|
@@ -2929,7 +2943,7 @@ var b = () => {
|
|
|
2929
2943
|
"data-active": t.active,
|
|
2930
2944
|
"data-wrap": g(O)(t.wrap),
|
|
2931
2945
|
"aria-disabled": g(O)(t.disabled)
|
|
2932
|
-
}, [
|
|
2946
|
+
}, [!g(k)(t.hideSubNavigation, "hideSubNavigation") && x.value ? (d(), r(e, { key: 0 }, [i("button", {
|
|
2933
2947
|
class: "db-navigation-item-expand-button",
|
|
2934
2948
|
id: A.value,
|
|
2935
2949
|
"aria-haspopup": b.value ? "true" : void 0,
|
|
@@ -2951,7 +2965,7 @@ var b = () => {
|
|
|
2951
2965
|
}, {
|
|
2952
2966
|
default: y(() => [a(h(t.backButtonText ?? g("Back")), 1)]),
|
|
2953
2967
|
_: 1
|
|
2954
|
-
}, 8, ["id", "onClick"])])) : n("", !0), m(s.$slots, "sub-navigation")], 8, Vn)], 64)) :
|
|
2968
|
+
}, 8, ["id", "onClick"])])) : n("", !0), m(s.$slots, "sub-navigation")], 8, Vn)], 64)) : (d(), r(e, { key: 1 }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(s.$slots, "default", { key: 1 })], 64))], 42, zn));
|
|
2955
2969
|
}
|
|
2956
2970
|
}), Wn = [
|
|
2957
2971
|
"id",
|