bigbluebutton-html-plugin-sdk 0.0.11 → 0.0.13
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 +2 -0
- package/dist/cjs/core/getPluginApi.js +4 -0
- package/dist/cjs/core/getPluginApi.js.map +1 -1
- package/dist/cjs/enums.d.ts +13 -0
- package/dist/cjs/enums.js +21 -3
- package/dist/cjs/enums.js.map +1 -1
- package/dist/cjs/types/common.d.ts +72 -2
- package/dist/cjs/types/common.js +67 -1
- package/dist/cjs/types/common.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,8 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
|
|
|
18
18
|
|
|
19
19
|
- Presentation dropdown items (option, separator)
|
|
20
20
|
|
|
21
|
+
- Nav bar (button, info)
|
|
22
|
+
|
|
21
23
|
### Realtime data consumption
|
|
22
24
|
- `useCurrentPresentation` hook: provides information regarding the current presentation.
|
|
23
25
|
|
|
@@ -13,6 +13,8 @@ var getPluginApi = function (uuid) {
|
|
|
13
13
|
setActionsBarItems: function () { },
|
|
14
14
|
setAudioSettingsDropdownItems: function () { },
|
|
15
15
|
setPresentationDropdownItems: function () { },
|
|
16
|
+
setNavBarItems: function () { },
|
|
17
|
+
setOptionsDropdownItems: function () { },
|
|
16
18
|
};
|
|
17
19
|
return window.bbb_plugins[uuid];
|
|
18
20
|
}
|
|
@@ -24,6 +26,8 @@ var getPluginApi = function (uuid) {
|
|
|
24
26
|
setActionsBarItems: function () { },
|
|
25
27
|
setAudioSettingsDropdownItems: function () { },
|
|
26
28
|
setPresentationDropdownItems: function () { },
|
|
29
|
+
setNavBarItems: function () { },
|
|
30
|
+
setOptionsDropdownItems: function () { },
|
|
27
31
|
};
|
|
28
32
|
return window.bbb_plugins[uuid];
|
|
29
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPluginApi.js","sourceRoot":"","sources":["../../../src/core/getPluginApi.ts"],"names":[],"mappings":";;;AAQA,IAAM,YAAY,GAAiB,UAAC,IAAY;IAC9C,IAAI,MAAM,CAAC,WAAW,EAAE;QACtB,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;YACxD,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACjC;QACD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;YACzB,wBAAwB,EAAE,cAAO,CAAC;YAClC,2BAA2B,EAAE,cAAO,CAAC;YACrC,4BAA4B,EAAE,cAAO,CAAC;YACtC,kBAAkB,EAAE,cAAO,CAAC;YAC5B,6BAA6B,EAAE,cAAO,CAAC;YACvC,4BAA4B,EAAE,cAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"getPluginApi.js","sourceRoot":"","sources":["../../../src/core/getPluginApi.ts"],"names":[],"mappings":";;;AAQA,IAAM,YAAY,GAAiB,UAAC,IAAY;IAC9C,IAAI,MAAM,CAAC,WAAW,EAAE;QACtB,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;YACxD,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACjC;QACD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;YACzB,wBAAwB,EAAE,cAAO,CAAC;YAClC,2BAA2B,EAAE,cAAO,CAAC;YACrC,4BAA4B,EAAE,cAAO,CAAC;YACtC,kBAAkB,EAAE,cAAO,CAAC;YAC5B,6BAA6B,EAAE,cAAO,CAAC;YACvC,4BAA4B,EAAE,cAAO,CAAC;YACtC,cAAc,EAAE,cAAO,CAAC;YACxB,uBAAuB,EAAE,cAAO,CAAC;SAClC,CAAC;QACF,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KACjC;IACD,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;QACzB,wBAAwB,EAAE,cAAO,CAAC;QAClC,2BAA2B,EAAE,cAAO,CAAC;QACrC,4BAA4B,EAAE,cAAO,CAAC;QACtC,kBAAkB,EAAE,cAAO,CAAC;QAC5B,6BAA6B,EAAE,cAAO,CAAC;QACvC,4BAA4B,EAAE,cAAO,CAAC;QACtC,cAAc,EAAE,cAAO,CAAC;QACxB,uBAAuB,EAAE,cAAO,CAAC;KAClC,CAAC;IACF,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC,CAAC;AAGA,oCAAY"}
|
package/dist/cjs/enums.d.ts
CHANGED
|
@@ -41,4 +41,17 @@ export declare enum PresentationDropdownItemType {
|
|
|
41
41
|
OPTION = "PRESENTATION_DROPDOWN_OPTION",
|
|
42
42
|
SEPARATOR = "PRESENTATION_DROPDOWN_SEPARATOR"
|
|
43
43
|
}
|
|
44
|
+
export declare enum NavBarItemType {
|
|
45
|
+
BUTTON = "NAV_BAR_BUTTON",
|
|
46
|
+
INFO = "NAV_BAR_INFO"
|
|
47
|
+
}
|
|
48
|
+
export declare enum NavBarItemPosition {
|
|
49
|
+
LEFT = "left",
|
|
50
|
+
CENTER = "center",
|
|
51
|
+
RIGHT = "right"
|
|
52
|
+
}
|
|
53
|
+
export declare enum OptionsDropdownItemType {
|
|
54
|
+
OPTION = "OPTIONS_DROPDOWN_OPTION",
|
|
55
|
+
SEPARATOR = "OPTIONS_DROPDOWN_SEPARATOR"
|
|
56
|
+
}
|
|
44
57
|
export {};
|
package/dist/cjs/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PresentationDropdownItemType = exports.AudioSettingsDropdownItemType = exports.ActionsBarPosition = exports.ActionsBarItemType = exports.ActionButtonDropdownItemType = exports.UserListDropdownItemType = exports.PresentationToolbarItemType = exports.Internal = void 0;
|
|
3
|
+
exports.OptionsDropdownItemType = exports.NavBarItemPosition = exports.NavBarItemType = exports.PresentationDropdownItemType = exports.AudioSettingsDropdownItemType = exports.ActionsBarPosition = exports.ActionsBarItemType = exports.ActionButtonDropdownItemType = exports.UserListDropdownItemType = exports.PresentationToolbarItemType = exports.Internal = void 0;
|
|
4
4
|
var BbbHookEvents;
|
|
5
5
|
(function (BbbHookEvents) {
|
|
6
6
|
BbbHookEvents["Update"] = "UPDATE_HOOK";
|
|
@@ -24,13 +24,13 @@ var PresentationToolbarItemType;
|
|
|
24
24
|
PresentationToolbarItemType["SPINNER"] = "PRESENTATION_TOOLBAR_SPINNER";
|
|
25
25
|
PresentationToolbarItemType["SEPARATOR"] = "PRESENTATION_TOOLBAR_SEPARATOR";
|
|
26
26
|
})(PresentationToolbarItemType || (exports.PresentationToolbarItemType = PresentationToolbarItemType = {}));
|
|
27
|
-
//
|
|
27
|
+
// User list dropdown items types:
|
|
28
28
|
var UserListDropdownItemType;
|
|
29
29
|
(function (UserListDropdownItemType) {
|
|
30
30
|
UserListDropdownItemType["OPTION"] = "USER_LIST_DROPDOWN_OPTION";
|
|
31
31
|
UserListDropdownItemType["SEPARATOR"] = "USER_LIST_DROPDOWN_SEPARATOR";
|
|
32
32
|
})(UserListDropdownItemType || (exports.UserListDropdownItemType = UserListDropdownItemType = {}));
|
|
33
|
-
//
|
|
33
|
+
// Action dropdown items types:
|
|
34
34
|
var ActionButtonDropdownItemType;
|
|
35
35
|
(function (ActionButtonDropdownItemType) {
|
|
36
36
|
ActionButtonDropdownItemType["OPTION"] = "ACTION_BUTTON_DROPDOWN_OPTION";
|
|
@@ -59,4 +59,22 @@ var PresentationDropdownItemType;
|
|
|
59
59
|
PresentationDropdownItemType["OPTION"] = "PRESENTATION_DROPDOWN_OPTION";
|
|
60
60
|
PresentationDropdownItemType["SEPARATOR"] = "PRESENTATION_DROPDOWN_SEPARATOR";
|
|
61
61
|
})(PresentationDropdownItemType || (exports.PresentationDropdownItemType = PresentationDropdownItemType = {}));
|
|
62
|
+
// Nav bar items types:
|
|
63
|
+
var NavBarItemType;
|
|
64
|
+
(function (NavBarItemType) {
|
|
65
|
+
NavBarItemType["BUTTON"] = "NAV_BAR_BUTTON";
|
|
66
|
+
NavBarItemType["INFO"] = "NAV_BAR_INFO";
|
|
67
|
+
})(NavBarItemType || (exports.NavBarItemType = NavBarItemType = {}));
|
|
68
|
+
var NavBarItemPosition;
|
|
69
|
+
(function (NavBarItemPosition) {
|
|
70
|
+
NavBarItemPosition["LEFT"] = "left";
|
|
71
|
+
NavBarItemPosition["CENTER"] = "center";
|
|
72
|
+
NavBarItemPosition["RIGHT"] = "right";
|
|
73
|
+
})(NavBarItemPosition || (exports.NavBarItemPosition = NavBarItemPosition = {}));
|
|
74
|
+
// Options dropdown items types:
|
|
75
|
+
var OptionsDropdownItemType;
|
|
76
|
+
(function (OptionsDropdownItemType) {
|
|
77
|
+
OptionsDropdownItemType["OPTION"] = "OPTIONS_DROPDOWN_OPTION";
|
|
78
|
+
OptionsDropdownItemType["SEPARATOR"] = "OPTIONS_DROPDOWN_SEPARATOR";
|
|
79
|
+
})(OptionsDropdownItemType || (exports.OptionsDropdownItemType = OptionsDropdownItemType = {}));
|
|
62
80
|
//# sourceMappingURL=enums.js.map
|
package/dist/cjs/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,aAIJ;AAJD,WAAK,aAAa;IAChB,uCAAsB,CAAA;IACtB,gDAA+B,CAAA;IAC/B,sDAAqC,CAAA;AACvC,CAAC,EAJI,aAAa,KAAb,aAAa,QAIjB;AAED,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACX,uEAA2D,CAAA;IAC3D,6DAAiD,CAAA;IACjD,uDAA2C,CAAA;AAC7C,CAAC,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mDAA6B,CAAA;IAC7B,yDAAmC,CAAA;AACrC,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,sCAAsC;AACtC,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,0EAAyC,CAAA;IACzC,gFAA+C,CAAA;AACjD,CAAC,EAHW,6BAA6B,6CAA7B,6BAA6B,QAGxC;AAED,qCAAqC;AACrC,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,uEAAuC,CAAA;IACvC,6EAA6C,CAAA;AAC/C,CAAC,EAHW,4BAA4B,4CAA5B,4BAA4B,QAGvC;AAED,uBAAuB;AACvB,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,qCAAe,CAAA;AACjB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,gCAAgC;AAChC,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,6DAAkC,CAAA;IAClC,mEAAwC,CAAA;AAC1C,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PresentationToolbarItemType, UserListDropdownItemType, ActionButtonDropdownItemType, ActionsBarItemType, ActionsBarPosition, AudioSettingsDropdownItemType, PresentationDropdownItemType } from '../index';
|
|
2
|
-
type PluginProvidedUiItemType = UserListDropdownItemType | PresentationToolbarItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType;
|
|
1
|
+
import { PresentationToolbarItemType, UserListDropdownItemType, ActionButtonDropdownItemType, ActionsBarItemType, ActionsBarPosition, AudioSettingsDropdownItemType, PresentationDropdownItemType, NavBarItemType, NavBarItemPosition, OptionsDropdownItemType } from '../index';
|
|
2
|
+
type PluginProvidedUiItemType = UserListDropdownItemType | PresentationToolbarItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType;
|
|
3
3
|
export interface PluginProvidedUiItemDescriptor {
|
|
4
4
|
/** Defined by BigBlueButton Plugin Engine. */
|
|
5
5
|
id: string;
|
|
@@ -191,12 +191,80 @@ export declare class PresentationDropdownSeparator implements PresentationDropdo
|
|
|
191
191
|
constructor();
|
|
192
192
|
setItemId: (id: string) => void;
|
|
193
193
|
}
|
|
194
|
+
export interface NavBarItem extends PluginProvidedUiItemDescriptor {
|
|
195
|
+
position: NavBarItemPosition;
|
|
196
|
+
hasSeparator: boolean;
|
|
197
|
+
}
|
|
198
|
+
interface NavBarButtonProps {
|
|
199
|
+
label: string;
|
|
200
|
+
icon: string;
|
|
201
|
+
tooltip: string;
|
|
202
|
+
disabled: boolean;
|
|
203
|
+
hasSeparator: boolean;
|
|
204
|
+
position: NavBarItemPosition;
|
|
205
|
+
onClick: () => void;
|
|
206
|
+
}
|
|
207
|
+
export declare class NavBarButton implements NavBarItem {
|
|
208
|
+
id: string;
|
|
209
|
+
type: NavBarItemType;
|
|
210
|
+
label: string;
|
|
211
|
+
icon: string;
|
|
212
|
+
tooltip: string;
|
|
213
|
+
disabled: boolean;
|
|
214
|
+
position: NavBarItemPosition;
|
|
215
|
+
hasSeparator: boolean;
|
|
216
|
+
onClick: () => void;
|
|
217
|
+
constructor({ label, icon, tooltip, disabled, onClick, position, hasSeparator, }: NavBarButtonProps);
|
|
218
|
+
setItemId: (id: string) => void;
|
|
219
|
+
}
|
|
220
|
+
interface NavBarInfoProps {
|
|
221
|
+
label: string;
|
|
222
|
+
hasSeparator: boolean;
|
|
223
|
+
icon: string;
|
|
224
|
+
disabled: boolean;
|
|
225
|
+
position: NavBarItemPosition;
|
|
226
|
+
}
|
|
227
|
+
export declare class NavBarInfo implements NavBarItem {
|
|
228
|
+
id: string;
|
|
229
|
+
type: NavBarItemType;
|
|
230
|
+
label: string;
|
|
231
|
+
hasSeparator: boolean;
|
|
232
|
+
icon: string;
|
|
233
|
+
disabled: boolean;
|
|
234
|
+
position: NavBarItemPosition;
|
|
235
|
+
constructor({ label, icon, disabled, position, hasSeparator, }: NavBarInfoProps);
|
|
236
|
+
setItemId: (id: string) => void;
|
|
237
|
+
}
|
|
238
|
+
export interface OptionsDropdownItem extends PluginProvidedUiItemDescriptor {
|
|
239
|
+
}
|
|
240
|
+
interface OptionsDropdownOptionProps {
|
|
241
|
+
label: string;
|
|
242
|
+
icon: string;
|
|
243
|
+
onClick: () => void;
|
|
244
|
+
}
|
|
245
|
+
export declare class OptionsDropdownOption implements OptionsDropdownItem {
|
|
246
|
+
id: string;
|
|
247
|
+
type: OptionsDropdownItemType;
|
|
248
|
+
label: string;
|
|
249
|
+
icon: string;
|
|
250
|
+
onClick: () => void;
|
|
251
|
+
constructor({ label, icon, onClick, }: OptionsDropdownOptionProps);
|
|
252
|
+
setItemId: (id: string) => void;
|
|
253
|
+
}
|
|
254
|
+
export declare class OptionsDropdownSeparator implements OptionsDropdownItem {
|
|
255
|
+
id: string;
|
|
256
|
+
type: OptionsDropdownItemType;
|
|
257
|
+
constructor();
|
|
258
|
+
setItemId: (id: string) => void;
|
|
259
|
+
}
|
|
194
260
|
export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarItem[]) => void;
|
|
195
261
|
export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownItem[]) => void;
|
|
196
262
|
export type SetActionButtonDropdownItems = (actionButtonDropdownItem: ActionButtonDropdownItem[]) => void;
|
|
197
263
|
export type SetActionsBarItems = (actionsBarItems: ActionsBarItem[]) => void;
|
|
198
264
|
export type SetAudioSettingsDropdownItems = (audioSettingsDropdownItem: AudioSettingsDropdownItem[]) => void;
|
|
199
265
|
export type SetPresentationDropdownItems = (userListDropdownItem: PresentationDropdownItem[]) => void;
|
|
266
|
+
export type SetNavBarItems = (userListDropdownItem: NavBarItem[]) => void;
|
|
267
|
+
export type SetOptionsDropdownItems = (optionsDropdownItem: OptionsDropdownItem[]) => void;
|
|
200
268
|
export interface PluginApi {
|
|
201
269
|
setPresentationToolbarItems: SetPresentationToolbarItems;
|
|
202
270
|
setUserListDropdownItems: SetUserListDropdownItems;
|
|
@@ -204,6 +272,8 @@ export interface PluginApi {
|
|
|
204
272
|
setActionsBarItems: SetActionsBarItems;
|
|
205
273
|
setAudioSettingsDropdownItems: SetAudioSettingsDropdownItems;
|
|
206
274
|
setPresentationDropdownItems: SetPresentationDropdownItems;
|
|
275
|
+
setNavBarItems: SetNavBarItems;
|
|
276
|
+
setOptionsDropdownItems: SetOptionsDropdownItems;
|
|
207
277
|
}
|
|
208
278
|
export interface PluginBrowserWindow extends Window {
|
|
209
279
|
bbb_plugins: {
|
package/dist/cjs/types/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PresentationDropdownSeparator = exports.PresentationDropdownOption = exports.AudioSettingsDropdownSeparator = exports.AudioSettingsDropdownOption = exports.ActionsBarSeparator = exports.ActionsBarButton = exports.ActionButtonDropdownSeparator = exports.ActionButtonDropdownOption = exports.UserListDropdownSeparator = exports.UserListDropdownOption = exports.PresentationToolbarSeparator = exports.PresentationToolbarSpinner = exports.PresentationToolbarButton = void 0;
|
|
3
|
+
exports.OptionsDropdownSeparator = exports.OptionsDropdownOption = exports.NavBarInfo = exports.NavBarButton = exports.PresentationDropdownSeparator = exports.PresentationDropdownOption = exports.AudioSettingsDropdownSeparator = exports.AudioSettingsDropdownOption = exports.ActionsBarSeparator = exports.ActionsBarButton = exports.ActionButtonDropdownSeparator = exports.ActionButtonDropdownOption = exports.UserListDropdownSeparator = exports.UserListDropdownOption = exports.PresentationToolbarSeparator = exports.PresentationToolbarSpinner = exports.PresentationToolbarButton = void 0;
|
|
4
4
|
var index_1 = require("../index");
|
|
5
5
|
var PresentationToolbarButton = /** @class */ (function () {
|
|
6
6
|
function PresentationToolbarButton(_a) {
|
|
@@ -197,4 +197,70 @@ var PresentationDropdownSeparator = /** @class */ (function () {
|
|
|
197
197
|
return PresentationDropdownSeparator;
|
|
198
198
|
}());
|
|
199
199
|
exports.PresentationDropdownSeparator = PresentationDropdownSeparator;
|
|
200
|
+
var NavBarButton = /** @class */ (function () {
|
|
201
|
+
function NavBarButton(_a) {
|
|
202
|
+
var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.tooltip, tooltip = _d === void 0 ? '' : _d, _e = _a.disabled, disabled = _e === void 0 ? true : _e, _f = _a.onClick, onClick = _f === void 0 ? function () { } : _f, _g = _a.position, position = _g === void 0 ? index_1.NavBarItemPosition.RIGHT : _g, _h = _a.hasSeparator, hasSeparator = _h === void 0 ? true : _h;
|
|
203
|
+
var _this = this;
|
|
204
|
+
this.id = '';
|
|
205
|
+
this.setItemId = function (id) {
|
|
206
|
+
_this.id = "NavBarButton_".concat(id);
|
|
207
|
+
};
|
|
208
|
+
this.label = label;
|
|
209
|
+
this.icon = icon;
|
|
210
|
+
this.tooltip = tooltip;
|
|
211
|
+
this.disabled = disabled;
|
|
212
|
+
this.onClick = onClick;
|
|
213
|
+
this.type = index_1.NavBarItemType.BUTTON;
|
|
214
|
+
this.hasSeparator = hasSeparator;
|
|
215
|
+
this.position = position;
|
|
216
|
+
}
|
|
217
|
+
return NavBarButton;
|
|
218
|
+
}());
|
|
219
|
+
exports.NavBarButton = NavBarButton;
|
|
220
|
+
var NavBarInfo = /** @class */ (function () {
|
|
221
|
+
function NavBarInfo(_a) {
|
|
222
|
+
var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.disabled, disabled = _d === void 0 ? true : _d, _e = _a.position, position = _e === void 0 ? index_1.NavBarItemPosition.RIGHT : _e, _f = _a.hasSeparator, hasSeparator = _f === void 0 ? true : _f;
|
|
223
|
+
var _this = this;
|
|
224
|
+
this.id = '';
|
|
225
|
+
this.setItemId = function (id) {
|
|
226
|
+
_this.id = "NavBarInfo_".concat(id);
|
|
227
|
+
};
|
|
228
|
+
this.label = label;
|
|
229
|
+
this.icon = icon;
|
|
230
|
+
this.disabled = disabled;
|
|
231
|
+
this.type = index_1.NavBarItemType.INFO;
|
|
232
|
+
this.position = position;
|
|
233
|
+
this.hasSeparator = hasSeparator;
|
|
234
|
+
}
|
|
235
|
+
return NavBarInfo;
|
|
236
|
+
}());
|
|
237
|
+
exports.NavBarInfo = NavBarInfo;
|
|
238
|
+
var OptionsDropdownOption = /** @class */ (function () {
|
|
239
|
+
function OptionsDropdownOption(_a) {
|
|
240
|
+
var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d;
|
|
241
|
+
var _this = this;
|
|
242
|
+
this.id = '';
|
|
243
|
+
this.setItemId = function (id) {
|
|
244
|
+
_this.id = "OptionsDropdownOption_".concat(id);
|
|
245
|
+
};
|
|
246
|
+
this.label = label;
|
|
247
|
+
this.icon = icon;
|
|
248
|
+
this.onClick = onClick;
|
|
249
|
+
this.type = index_1.OptionsDropdownItemType.OPTION;
|
|
250
|
+
}
|
|
251
|
+
return OptionsDropdownOption;
|
|
252
|
+
}());
|
|
253
|
+
exports.OptionsDropdownOption = OptionsDropdownOption;
|
|
254
|
+
var OptionsDropdownSeparator = /** @class */ (function () {
|
|
255
|
+
function OptionsDropdownSeparator() {
|
|
256
|
+
var _this = this;
|
|
257
|
+
this.id = '';
|
|
258
|
+
this.setItemId = function (id) {
|
|
259
|
+
_this.id = "OptionsDropdownSeparator_".concat(id);
|
|
260
|
+
};
|
|
261
|
+
this.type = index_1.OptionsDropdownItemType.SEPARATOR;
|
|
262
|
+
}
|
|
263
|
+
return OptionsDropdownSeparator;
|
|
264
|
+
}());
|
|
265
|
+
exports.OptionsDropdownSeparator = OptionsDropdownSeparator;
|
|
200
266
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":";;;AAAA,kCAWkB;AAoClB;IAWE,mCAAY,EAAgF;YAA9E,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA;QAA1D,iBAKC;QAfD,OAAE,GAAW,EAAE,CAAC;QAiBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,oCAA6B,EAAE,CAAE,CAAC;QAC9C,CAAC,CAAC;QARA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,mCAA2B,CAAC,MAAM,CAAC;IACjD,CAAC;IAKH,gCAAC;AAAD,CAAC,AArBD,IAqBC;AArBY,8DAAyB;AAuBtC;IAKE;QAAA,iBAEC;QAND,OAAE,GAAW,EAAE,CAAC;QAQhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,oCAA6B,EAAE,CAAE,CAAC;QAC9C,CAAC,CAAC;QALA,IAAI,CAAC,IAAI,GAAG,mCAA2B,CAAC,OAAO,CAAC;IAClD,CAAC;IAKH,iCAAC;AAAD,CAAC,AAZD,IAYC;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