bigbluebutton-html-plugin-sdk 0.0.10 → 0.0.12
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 +4 -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 +19 -1
- 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
|
@@ -16,6 +16,10 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
|
|
|
16
16
|
|
|
17
17
|
- Audio settings dropdown items (option, separator)
|
|
18
18
|
|
|
19
|
+
- Presentation dropdown items (option, separator)
|
|
20
|
+
|
|
21
|
+
- Nav bar (button, info)
|
|
22
|
+
|
|
19
23
|
### Realtime data consumption
|
|
20
24
|
- `useCurrentPresentation` hook: provides information regarding the current presentation.
|
|
21
25
|
|
|
@@ -12,6 +12,8 @@ var getPluginApi = function (uuid) {
|
|
|
12
12
|
setActionButtonDropdownItems: function () { },
|
|
13
13
|
setActionsBarItems: function () { },
|
|
14
14
|
setAudioSettingsDropdownItems: function () { },
|
|
15
|
+
setPresentationDropdownItems: function () { },
|
|
16
|
+
setNavBarItems: function () { },
|
|
15
17
|
};
|
|
16
18
|
return window.bbb_plugins[uuid];
|
|
17
19
|
}
|
|
@@ -22,6 +24,8 @@ var getPluginApi = function (uuid) {
|
|
|
22
24
|
setActionButtonDropdownItems: function () { },
|
|
23
25
|
setActionsBarItems: function () { },
|
|
24
26
|
setAudioSettingsDropdownItems: function () { },
|
|
27
|
+
setPresentationDropdownItems: function () { },
|
|
28
|
+
setNavBarItems: function () { },
|
|
25
29
|
};
|
|
26
30
|
return window.bbb_plugins[uuid];
|
|
27
31
|
};
|
|
@@ -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;
|
|
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;SACzB,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;KACzB,CAAC;IACF,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC,CAAC;AAGA,oCAAY"}
|
package/dist/cjs/enums.d.ts
CHANGED
|
@@ -37,4 +37,17 @@ export declare enum AudioSettingsDropdownItemType {
|
|
|
37
37
|
OPTION = "AUDIO_SETTINGS_DROPDOWN_OPTION",
|
|
38
38
|
SEPARATOR = "AUDIO_SETTINGS_DROPDOWN_SEPARATOR"
|
|
39
39
|
}
|
|
40
|
+
export declare enum PresentationDropdownItemType {
|
|
41
|
+
OPTION = "PRESENTATION_DROPDOWN_OPTION",
|
|
42
|
+
SEPARATOR = "PRESENTATION_DROPDOWN_SEPARATOR"
|
|
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
|
+
}
|
|
40
53
|
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.AudioSettingsDropdownItemType = exports.ActionsBarPosition = exports.ActionsBarItemType = exports.ActionButtonDropdownItemType = exports.UserListDropdownItemType = exports.PresentationToolbarItemType = exports.Internal = void 0;
|
|
3
|
+
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";
|
|
@@ -53,4 +53,22 @@ var AudioSettingsDropdownItemType;
|
|
|
53
53
|
AudioSettingsDropdownItemType["OPTION"] = "AUDIO_SETTINGS_DROPDOWN_OPTION";
|
|
54
54
|
AudioSettingsDropdownItemType["SEPARATOR"] = "AUDIO_SETTINGS_DROPDOWN_SEPARATOR";
|
|
55
55
|
})(AudioSettingsDropdownItemType || (exports.AudioSettingsDropdownItemType = AudioSettingsDropdownItemType = {}));
|
|
56
|
+
// Presentation dropdown items types:
|
|
57
|
+
var PresentationDropdownItemType;
|
|
58
|
+
(function (PresentationDropdownItemType) {
|
|
59
|
+
PresentationDropdownItemType["OPTION"] = "PRESENTATION_DROPDOWN_OPTION";
|
|
60
|
+
PresentationDropdownItemType["SEPARATOR"] = "PRESENTATION_DROPDOWN_SEPARATOR";
|
|
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 = {}));
|
|
56
74
|
//# 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,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAEY,QAAA,QAAQ,GAAG;IACtB,aAAa,eAAA;IACb,QAAQ,UAAA;CACT,CAAC;AAEF,oCAAoC;AACpC,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACrC,qEAAsC,CAAA;IACtC,uEAAwC,CAAA;IACxC,2EAA4C,CAAA;AAC9C,CAAC,EAJW,2BAA2B,2CAA3B,2BAA2B,QAItC;AAED,oCAAoC;AACpC,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,gEAAoC,CAAA;IACpC,sEAA0C,CAAA;AAC5C,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,oCAAoC;AACpC,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,wEAAwC,CAAA;IACxC,8EAA8C,CAAA;AAChD,CAAC,EAHW,4BAA4B,4CAA5B,4BAA4B,QAGvC;AAED,0BAA0B;AAC1B,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,yDAAmC,CAAA;AACrC,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,kBAGX;AAHD,WAAY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A;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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PresentationToolbarItemType, UserListDropdownItemType, ActionButtonDropdownItemType, ActionsBarItemType, ActionsBarPosition, AudioSettingsDropdownItemType } from '../index';
|
|
2
|
-
type PluginProvidedUiItemType = UserListDropdownItemType | PresentationToolbarItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType;
|
|
1
|
+
import { PresentationToolbarItemType, UserListDropdownItemType, ActionButtonDropdownItemType, ActionsBarItemType, ActionsBarPosition, AudioSettingsDropdownItemType, PresentationDropdownItemType, NavBarItemType, NavBarItemPosition } from '../index';
|
|
2
|
+
type PluginProvidedUiItemType = UserListDropdownItemType | PresentationToolbarItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType;
|
|
3
3
|
export interface PluginProvidedUiItemDescriptor {
|
|
4
4
|
/** Defined by BigBlueButton Plugin Engine. */
|
|
5
5
|
id: string;
|
|
@@ -169,17 +169,87 @@ export declare class AudioSettingsDropdownSeparator implements AudioSettingsDrop
|
|
|
169
169
|
constructor();
|
|
170
170
|
setItemId: (id: string) => void;
|
|
171
171
|
}
|
|
172
|
+
export interface PresentationDropdownItem extends PluginProvidedUiItemDescriptor {
|
|
173
|
+
}
|
|
174
|
+
interface PresentationDropdownOptionProps {
|
|
175
|
+
label: string;
|
|
176
|
+
icon: string;
|
|
177
|
+
onClick: () => void;
|
|
178
|
+
}
|
|
179
|
+
export declare class PresentationDropdownOption implements PresentationDropdownItem {
|
|
180
|
+
id: string;
|
|
181
|
+
type: PresentationDropdownItemType;
|
|
182
|
+
label: string;
|
|
183
|
+
icon: string;
|
|
184
|
+
onClick: () => void;
|
|
185
|
+
constructor({ label, icon, onClick, }: PresentationDropdownOptionProps);
|
|
186
|
+
setItemId: (id: string) => void;
|
|
187
|
+
}
|
|
188
|
+
export declare class PresentationDropdownSeparator implements PresentationDropdownItem {
|
|
189
|
+
id: string;
|
|
190
|
+
type: PresentationDropdownItemType;
|
|
191
|
+
constructor();
|
|
192
|
+
setItemId: (id: string) => void;
|
|
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
|
+
}
|
|
172
238
|
export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarItem[]) => void;
|
|
173
239
|
export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownItem[]) => void;
|
|
174
240
|
export type SetActionButtonDropdownItems = (actionButtonDropdownItem: ActionButtonDropdownItem[]) => void;
|
|
175
241
|
export type SetActionsBarItems = (actionsBarItems: ActionsBarItem[]) => void;
|
|
176
242
|
export type SetAudioSettingsDropdownItems = (audioSettingsDropdownItem: AudioSettingsDropdownItem[]) => void;
|
|
243
|
+
export type SetPresentationDropdownItems = (userListDropdownItem: PresentationDropdownItem[]) => void;
|
|
244
|
+
export type SetNavBarItems = (userListDropdownItem: NavBarItem[]) => void;
|
|
177
245
|
export interface PluginApi {
|
|
178
246
|
setPresentationToolbarItems: SetPresentationToolbarItems;
|
|
179
247
|
setUserListDropdownItems: SetUserListDropdownItems;
|
|
180
248
|
setActionButtonDropdownItems: SetActionButtonDropdownItems;
|
|
181
249
|
setActionsBarItems: SetActionsBarItems;
|
|
182
250
|
setAudioSettingsDropdownItems: SetAudioSettingsDropdownItems;
|
|
251
|
+
setPresentationDropdownItems: SetPresentationDropdownItems;
|
|
252
|
+
setNavBarItems: SetNavBarItems;
|
|
183
253
|
}
|
|
184
254
|
export interface PluginBrowserWindow extends Window {
|
|
185
255
|
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.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.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) {
|
|
@@ -169,4 +169,70 @@ var AudioSettingsDropdownSeparator = /** @class */ (function () {
|
|
|
169
169
|
return AudioSettingsDropdownSeparator;
|
|
170
170
|
}());
|
|
171
171
|
exports.AudioSettingsDropdownSeparator = AudioSettingsDropdownSeparator;
|
|
172
|
+
var PresentationDropdownOption = /** @class */ (function () {
|
|
173
|
+
function PresentationDropdownOption(_a) {
|
|
174
|
+
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;
|
|
175
|
+
var _this = this;
|
|
176
|
+
this.id = '';
|
|
177
|
+
this.setItemId = function (id) {
|
|
178
|
+
_this.id = "PresentationDropdownOption_".concat(id);
|
|
179
|
+
};
|
|
180
|
+
this.label = label;
|
|
181
|
+
this.icon = icon;
|
|
182
|
+
this.onClick = onClick;
|
|
183
|
+
this.type = index_1.PresentationDropdownItemType.OPTION;
|
|
184
|
+
}
|
|
185
|
+
return PresentationDropdownOption;
|
|
186
|
+
}());
|
|
187
|
+
exports.PresentationDropdownOption = PresentationDropdownOption;
|
|
188
|
+
var PresentationDropdownSeparator = /** @class */ (function () {
|
|
189
|
+
function PresentationDropdownSeparator() {
|
|
190
|
+
var _this = this;
|
|
191
|
+
this.id = '';
|
|
192
|
+
this.setItemId = function (id) {
|
|
193
|
+
_this.id = "PresentationDropdownSeparator_".concat(id);
|
|
194
|
+
};
|
|
195
|
+
this.type = index_1.PresentationDropdownItemType.SEPARATOR;
|
|
196
|
+
}
|
|
197
|
+
return PresentationDropdownSeparator;
|
|
198
|
+
}());
|
|
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;
|
|
172
238
|
//# 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,kCAUk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