@nubisco/ui 2.1.0 → 2.2.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/UserMenu.d.ts +22 -1
- package/dist/components/UserMenu.vue.d.ts +4 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/UserMenuMark.vue.d.ts +4 -0
- package/dist/components/UserMenuMark.vue.d.ts.map +1 -0
- package/dist/global.d.ts +2 -0
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +560 -239
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,15 @@ interface IUserMenuAccount {
|
|
|
16
16
|
|
|
17
17
|
type TUserMenuPlacement = 'right-end' | 'top-start'
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* How the menu signs itself as a Nubisco Platform product.
|
|
21
|
+
*
|
|
22
|
+
* A union rather than a boolean because a third mode, `'hub'` (the same
|
|
23
|
+
* lockup, but a real link to the Nubisco Platform product page), lands once
|
|
24
|
+
* that page exists.
|
|
25
|
+
*/
|
|
26
|
+
type TUserMenuBrand = 'footer' | 'none'
|
|
27
|
+
|
|
19
28
|
interface IUserMenuProps {
|
|
20
29
|
/** The identity the product is signed in as (header of the menu). */
|
|
21
30
|
user: IUserMenuUser
|
|
@@ -35,9 +44,21 @@ interface IUserMenuProps {
|
|
|
35
44
|
showAccountActions?: boolean
|
|
36
45
|
/** Hide the Profile entry when the product has no profile page. */
|
|
37
46
|
showProfile?: boolean
|
|
47
|
+
/**
|
|
48
|
+
* The Nubisco Platform lockup at the foot of the panel. `'footer'` renders a
|
|
49
|
+
* non-interactive signature; `'none'` renders nothing, for white-label
|
|
50
|
+
* deployments and for hosts that are not Nubisco products.
|
|
51
|
+
*/
|
|
52
|
+
brand?: TUserMenuBrand
|
|
38
53
|
/** Where the panel opens relative to the trigger. */
|
|
39
54
|
placement?: TUserMenuPlacement
|
|
40
55
|
disabled?: boolean
|
|
41
56
|
}
|
|
42
57
|
|
|
43
|
-
export {
|
|
58
|
+
export {
|
|
59
|
+
IUserMenuUser,
|
|
60
|
+
IUserMenuAccount,
|
|
61
|
+
TUserMenuPlacement,
|
|
62
|
+
TUserMenuBrand,
|
|
63
|
+
IUserMenuProps,
|
|
64
|
+
}
|
|
@@ -6,11 +6,13 @@ declare var __VLS_1: {
|
|
|
6
6
|
toggle: typeof toggle;
|
|
7
7
|
}, __VLS_37: {
|
|
8
8
|
close: typeof close;
|
|
9
|
-
};
|
|
9
|
+
}, __VLS_49: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
trigger?: (props: typeof __VLS_1) => any;
|
|
12
12
|
} & {
|
|
13
13
|
default?: (props: typeof __VLS_37) => any;
|
|
14
|
+
} & {
|
|
15
|
+
brand?: (props: typeof __VLS_49) => any;
|
|
14
16
|
};
|
|
15
17
|
declare const __VLS_base: import("vue").DefineComponent<IUserMenuProps, {
|
|
16
18
|
open: import("vue").Ref<boolean, boolean>;
|
|
@@ -41,6 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<IUserMenuProps, {
|
|
|
41
43
|
accountsUnknown: boolean;
|
|
42
44
|
showAccountActions: boolean;
|
|
43
45
|
showProfile: boolean;
|
|
46
|
+
brand: import("./UserMenu.d").TUserMenuBrand;
|
|
44
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
48
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
49
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/UserMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserMenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/UserMenu.vue"],"names":[],"mappings":"AAufA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAiHpE,iBAAS,MAAM,SASd;AAED,iBAAS,KAAK,SAIb;AAwYD,QAAA,IAAI,OAAO;;;CAAU,EAAE,QAAQ;;CAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=UserMenuMark.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserMenuMark.vue.d.ts","sourceRoot":"","sources":["../../src/components/UserMenuMark.vue"],"names":[],"mappings":"AA2jBA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/global.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ import Toast from './components/Toast.vue'
|
|
|
67
67
|
import Tree from './components/Tree.vue'
|
|
68
68
|
import TreeNode from './components/TreeNode.vue'
|
|
69
69
|
import UserMenu from './components/UserMenu.vue'
|
|
70
|
+
import UserMenuMark from './components/UserMenuMark.vue'
|
|
70
71
|
import Walkthrough from './components/Walkthrough.vue'
|
|
71
72
|
|
|
72
73
|
declare module 'vue' {
|
|
@@ -138,6 +139,7 @@ declare module 'vue' {
|
|
|
138
139
|
NbTree: typeof Tree
|
|
139
140
|
NbTreeNode: typeof TreeNode
|
|
140
141
|
NbUserMenu: typeof UserMenu
|
|
142
|
+
NbUserMenuMark: typeof UserMenuMark
|
|
141
143
|
NbWalkthrough: typeof Walkthrough
|
|
142
144
|
}
|
|
143
145
|
}
|