sit-onyx 1.1.0-dev-20250924080933 → 2.0.0-dev-20250922064701
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.
|
@@ -8,9 +8,8 @@ export type NotificationsProvider = {
|
|
|
8
8
|
notifications: ComputedRef<ProvidedNotification[]>;
|
|
9
9
|
/**
|
|
10
10
|
* Shows a single notification.
|
|
11
|
-
* @returns the id of the newly created notification.
|
|
12
11
|
*/
|
|
13
|
-
show: (notification: ShowNotificationOptions) =>
|
|
12
|
+
show: (notification: ShowNotificationOptions) => void;
|
|
14
13
|
/**
|
|
15
14
|
* Removes the notification with the given `id`.
|
|
16
15
|
*/
|
|
@@ -2961,7 +2961,6 @@ const createNotificationsProvider = () => {
|
|
|
2961
2961
|
id,
|
|
2962
2962
|
onClose: () => remove(id)
|
|
2963
2963
|
});
|
|
2964
|
-
return id;
|
|
2965
2964
|
};
|
|
2966
2965
|
const remove = (id) => {
|
|
2967
2966
|
notifications.value = notifications.value.filter((notification) => notification.id !== id);
|
|
@@ -2983,10 +2982,7 @@ const useNotification = () => {
|
|
|
2983
2982
|
() => {
|
|
2984
2983
|
return {
|
|
2985
2984
|
notifications: computed(() => []),
|
|
2986
|
-
show:
|
|
2987
|
-
logWarning();
|
|
2988
|
-
return -1;
|
|
2989
|
-
},
|
|
2985
|
+
show: logWarning,
|
|
2990
2986
|
remove: logWarning
|
|
2991
2987
|
};
|
|
2992
2988
|
},
|
|
@@ -3885,9 +3881,9 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3885
3881
|
16
|
|
3886
3882
|
/* FULL_PROPS */
|
|
3887
3883
|
)) : createCommentVNode("v-if", true),
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3884
|
+
(openBlock(), createBlock(Teleport, {
|
|
3885
|
+
to: $setup.moreListTargetRef,
|
|
3886
|
+
disabled: !$setup.moreListTargetRef
|
|
3891
3887
|
}, [
|
|
3892
3888
|
!$setup.isVisible ? (openBlock(), createBlock($setup["OnyxMenuItem"], mergeProps({
|
|
3893
3889
|
key: 0,
|
|
@@ -3900,7 +3896,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3900
3896
|
_: 3
|
|
3901
3897
|
/* FORWARDED */
|
|
3902
3898
|
}, 16, ["link", "active"])) : createCommentVNode("v-if", true)
|
|
3903
|
-
], 8, ["to"
|
|
3899
|
+
], 8, ["to", "disabled"]))
|
|
3904
3900
|
],
|
|
3905
3901
|
64
|
|
3906
3902
|
/* STABLE_FRAGMENT */
|
|
@@ -9639,6 +9635,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9639
9635
|
]), 1040, ["active"])) : createCommentVNode("v-if", true),
|
|
9640
9636
|
$setup.isTopLevel && !$setup.isMobile && $setup.moreListTargetRef ? (openBlock(), createBlock(Teleport, {
|
|
9641
9637
|
key: 5,
|
|
9638
|
+
disabled: !$setup.moreListTargetRef,
|
|
9642
9639
|
to: $setup.moreListTargetRef
|
|
9643
9640
|
}, [
|
|
9644
9641
|
!$setup.isVisible ? (openBlock(), createBlock($setup["OnyxNavItemFacade"], mergeProps({ key: 0 }, $setup.mergeVueProps($setup.props, _ctx.$attrs), {
|
|
@@ -9659,7 +9656,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9659
9656
|
key: "0"
|
|
9660
9657
|
} : void 0
|
|
9661
9658
|
]), 1040, ["active"])) : createCommentVNode("v-if", true)
|
|
9662
|
-
], 8, ["to"])) : createCommentVNode("v-if", true)
|
|
9659
|
+
], 8, ["disabled", "to"])) : createCommentVNode("v-if", true)
|
|
9663
9660
|
],
|
|
9664
9661
|
64
|
|
9665
9662
|
/* STABLE_FRAGMENT */
|