bigbluebutton-html-plugin-sdk 0.0.58 → 0.0.60
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/cjs/extensible-areas/floating-window/component.d.ts +5 -3
- package/dist/cjs/extensible-areas/floating-window/component.js +3 -2
- package/dist/cjs/extensible-areas/floating-window/component.js.map +1 -1
- package/dist/cjs/extensible-areas/floating-window/types.d.ts +2 -1
- package/dist/cjs/extensible-areas/generic-content-item/component.d.ts +4 -3
- package/dist/cjs/extensible-areas/generic-content-item/component.js +1 -1
- package/dist/cjs/extensible-areas/generic-content-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/generic-content-item/types.d.ts +3 -2
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.d.ts +54 -5
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js +72 -8
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.d.ts +7 -1
- package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.js +9 -2
- package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.js.map +1 -1
- package/dist/cjs/extensible-areas/user-list-dropdown-item/index.d.ts +2 -1
- package/dist/cjs/extensible-areas/user-list-dropdown-item/index.js +6 -2
- package/dist/cjs/extensible-areas/user-list-dropdown-item/index.js.map +1 -1
- package/dist/cjs/extensible-areas/user-list-dropdown-item/types.d.ts +18 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as ReactDOM from 'react-dom/client';
|
|
1
2
|
import { FloatingWindowType } from './enums';
|
|
2
3
|
import { FloatingWindowInterface, FloatingWindowProps } from './types';
|
|
3
4
|
export declare class FloatingWindow implements FloatingWindowInterface {
|
|
@@ -8,19 +9,20 @@ export declare class FloatingWindow implements FloatingWindowInterface {
|
|
|
8
9
|
movable: boolean;
|
|
9
10
|
backgroundColor: string;
|
|
10
11
|
boxShadow: string;
|
|
11
|
-
contentFunction: (element: HTMLElement) =>
|
|
12
|
+
contentFunction: (element: HTMLElement) => ReactDOM.Root;
|
|
12
13
|
/**
|
|
13
14
|
* Returns object to be used in the setter for the Floating Window
|
|
14
15
|
*
|
|
15
16
|
* @param top - position in which the the top left corner of the floating window is relative
|
|
16
|
-
* to the top of the rendered window.
|
|
17
|
+
* to the top of the rendered window. It must return the root element where the floating window
|
|
18
|
+
* was rendered.
|
|
17
19
|
* @param left - position in which the the top left corner of the floating window is relative
|
|
18
20
|
* to the left of the rendered window.
|
|
19
21
|
* @param movable - tells whether the floating window is movable or static.
|
|
20
22
|
* @param backgroundColor - background color of the floating window.
|
|
21
23
|
* @param boxShadow - box shadow to apply to the floating window
|
|
22
24
|
* @param contentFunction - function that gives the html element to render the content of
|
|
23
|
-
* the floating window
|
|
25
|
+
* the floating window. It must return the root element where the floating window was rendered.
|
|
24
26
|
*
|
|
25
27
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
26
28
|
*/
|
|
@@ -8,14 +8,15 @@ var FloatingWindow = /** @class */ (function () {
|
|
|
8
8
|
* Returns object to be used in the setter for the Floating Window
|
|
9
9
|
*
|
|
10
10
|
* @param top - position in which the the top left corner of the floating window is relative
|
|
11
|
-
* to the top of the rendered window.
|
|
11
|
+
* to the top of the rendered window. It must return the root element where the floating window
|
|
12
|
+
* was rendered.
|
|
12
13
|
* @param left - position in which the the top left corner of the floating window is relative
|
|
13
14
|
* to the left of the rendered window.
|
|
14
15
|
* @param movable - tells whether the floating window is movable or static.
|
|
15
16
|
* @param backgroundColor - background color of the floating window.
|
|
16
17
|
* @param boxShadow - box shadow to apply to the floating window
|
|
17
18
|
* @param contentFunction - function that gives the html element to render the content of
|
|
18
|
-
* the floating window
|
|
19
|
+
* the floating window. It must return the root element where the floating window was rendered.
|
|
19
20
|
*
|
|
20
21
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/component.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/component.ts"],"names":[],"mappings":";;;AACA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAiBE;;;;;;;;;;;;;;;OAeG;IACH,wBAAY,EAOU;YANpB,GAAG,SAAA,EACH,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,eAAe,qBAAA,EACf,SAAS,eAAA,EACT,eAAe,qBAAA;QANjB,iBAgBC;QAhDD,OAAE,GAAW,EAAE,CAAC;QAkDhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,yBAAkB,EAAE,CAAE,CAAC;QACnC,CAAC,CAAC;QAZA,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,qBAAC;AAAD,CAAC,AAtDD,IAsDC;AAtDY,wCAAc"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as ReactDOM from 'react-dom/client';
|
|
1
2
|
import { PluginProvidedUiItemDescriptor } from '../base';
|
|
2
3
|
export interface FloatingWindowInterface extends PluginProvidedUiItemDescriptor {
|
|
3
4
|
}
|
|
@@ -7,6 +8,6 @@ export interface FloatingWindowProps {
|
|
|
7
8
|
movable: boolean;
|
|
8
9
|
backgroundColor: string;
|
|
9
10
|
boxShadow: string;
|
|
10
|
-
contentFunction: (element: HTMLElement) =>
|
|
11
|
+
contentFunction: (element: HTMLElement) => ReactDOM.Root;
|
|
11
12
|
}
|
|
12
13
|
export type SetFloatingWindows = (FloatingWindows: FloatingWindowInterface[]) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as ReactDOM from 'react-dom/client';
|
|
1
2
|
import { GenericContentType } from './enums';
|
|
2
3
|
import { GenericContentInterface, GenericContentMainAreaProps, GenericContentSidekickAreaProps } from './types';
|
|
3
4
|
export declare class GenericContentMainArea implements GenericContentInterface {
|
|
4
5
|
id: string;
|
|
5
6
|
type: GenericContentType;
|
|
6
|
-
contentFunction: (element: HTMLElement) =>
|
|
7
|
+
contentFunction: (element: HTMLElement) => ReactDOM.Root;
|
|
7
8
|
/**
|
|
8
9
|
* Returns an object that when used in the setter as a generic content will be rendered
|
|
9
10
|
* over the meeting main presentation.
|
|
@@ -23,7 +24,7 @@ export declare class GenericContentSidekickArea implements GenericContentInterfa
|
|
|
23
24
|
section: string;
|
|
24
25
|
buttonIcon: string;
|
|
25
26
|
open: boolean;
|
|
26
|
-
contentFunction: (element: HTMLElement) =>
|
|
27
|
+
contentFunction: (element: HTMLElement) => ReactDOM.Root;
|
|
27
28
|
/**
|
|
28
29
|
* Returns an object that when used in the setter as a generic content will be rendered
|
|
29
30
|
* in the sidekick panel. Every generic sidekick content has an intrinsic button associated,
|
|
@@ -31,7 +32,7 @@ export declare class GenericContentSidekickArea implements GenericContentInterfa
|
|
|
31
32
|
* given generic sidekick content.
|
|
32
33
|
*
|
|
33
34
|
* @param contentFunction - function that gives the html element to render the content of
|
|
34
|
-
* the generic
|
|
35
|
+
* the generic content. It must return the root element where the generic content was rendered.
|
|
35
36
|
* @param name - the label of the associated sidebar navigation button
|
|
36
37
|
* @param section - section name under which the associated sidebar navigation button will be
|
|
37
38
|
* displayed
|
|
@@ -34,7 +34,7 @@ var GenericContentSidekickArea = /** @class */ (function () {
|
|
|
34
34
|
* given generic sidekick content.
|
|
35
35
|
*
|
|
36
36
|
* @param contentFunction - function that gives the html element to render the content of
|
|
37
|
-
* the generic
|
|
37
|
+
* the generic content. It must return the root element where the generic content was rendered.
|
|
38
38
|
* @param name - the label of the associated sidebar navigation button
|
|
39
39
|
* @param section - section name under which the associated sidebar navigation button will be
|
|
40
40
|
* displayed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/component.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/component.ts"],"names":[],"mappings":";;;AACA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAOE;;;;;;;;OAQG;IACH,gCAAY,EAEkB;YAD5B,eAAe,qBAAA;QADjB,iBAKC;QApBD,OAAE,GAAW,EAAE,CAAC;QAsBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QANA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,6BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,wDAAsB;AA4BnC;IAeE;;;;;;;;;;;;;;;OAeG;IACH,oCAAY,EAEsB;YADhC,eAAe,qBAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,IAAI,UAAA;QADlD,iBASC;QAvCD,OAAE,GAAW,EAAE,CAAC;QAIhB,SAAI,GAAW,EAAE,CAAC;QAElB,YAAO,GAAW,EAAE,CAAC;QAErB,eAAU,GAAW,EAAE,CAAC;QAExB,SAAI,GAAY,KAAK,CAAC;QA+BtB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QAVA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAKH,iCAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,gEAA0B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import * as ReactDOM from 'react-dom/client';
|
|
1
2
|
import { PluginProvidedUiItemDescriptor } from '../base';
|
|
2
3
|
export interface GenericContentInterface extends PluginProvidedUiItemDescriptor {
|
|
3
4
|
}
|
|
4
5
|
export interface GenericContentMainAreaProps {
|
|
5
|
-
contentFunction: (element: HTMLElement) =>
|
|
6
|
+
contentFunction: (element: HTMLElement) => ReactDOM.Root;
|
|
6
7
|
}
|
|
7
8
|
export interface GenericContentSidekickAreaProps {
|
|
8
|
-
contentFunction: (element: HTMLElement) =>
|
|
9
|
+
contentFunction: (element: HTMLElement) => ReactDOM.Root;
|
|
9
10
|
name: string;
|
|
10
11
|
section: string;
|
|
11
12
|
buttonIcon: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserListDropdownInterface, UserListDropdownOptionProps, UserListDropdownSeparatorProps,
|
|
2
|
-
import { UserListDropdownItemType } from './enums';
|
|
1
|
+
import { UserListDropdownInterface, UserListDropdownOptionProps, UserListDropdownSeparatorProps, UserListDropdownTitleActionProps, UserListDropdownTitleActionOnClickArguments, UserListDropdownFixedContentInformationProps, UserListDropdownGenericContentInformationProps } from './types';
|
|
2
|
+
import { UserListDropdownItemType, UserListDropdownSeparatorPosition } from './enums';
|
|
3
3
|
export declare class UserListDropdownOption implements UserListDropdownInterface {
|
|
4
4
|
id: string;
|
|
5
5
|
userId: string;
|
|
@@ -29,6 +29,7 @@ export declare class UserListDropdownOption implements UserListDropdownInterface
|
|
|
29
29
|
export declare class UserListDropdownSeparator implements UserListDropdownInterface {
|
|
30
30
|
id: string;
|
|
31
31
|
userId: string;
|
|
32
|
+
position: UserListDropdownSeparatorPosition;
|
|
32
33
|
type: UserListDropdownItemType;
|
|
33
34
|
/**
|
|
34
35
|
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
@@ -39,10 +40,10 @@ export declare class UserListDropdownSeparator implements UserListDropdownInterf
|
|
|
39
40
|
*
|
|
40
41
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
41
42
|
*/
|
|
42
|
-
constructor({ userId }: UserListDropdownSeparatorProps);
|
|
43
|
+
constructor({ userId, position }: UserListDropdownSeparatorProps);
|
|
43
44
|
setItemId: (id: string) => void;
|
|
44
45
|
}
|
|
45
|
-
export declare class
|
|
46
|
+
export declare class UserListDropdownFixedContentInformation implements UserListDropdownInterface {
|
|
46
47
|
id: string;
|
|
47
48
|
userId: string;
|
|
48
49
|
type: UserListDropdownItemType;
|
|
@@ -67,6 +68,54 @@ export declare class UserListDropdownInformation implements UserListDropdownInte
|
|
|
67
68
|
*
|
|
68
69
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
69
70
|
*/
|
|
70
|
-
constructor({ label, icon, iconRight, allowed, userId, textColor, }:
|
|
71
|
+
constructor({ label, icon, iconRight, allowed, userId, textColor, }: UserListDropdownFixedContentInformationProps);
|
|
72
|
+
setItemId: (id: string) => void;
|
|
73
|
+
}
|
|
74
|
+
export declare class UserListDropdownGenericContentInformation implements UserListDropdownInterface {
|
|
75
|
+
id: string;
|
|
76
|
+
userId: string;
|
|
77
|
+
allowed: boolean;
|
|
78
|
+
type: UserListDropdownItemType;
|
|
79
|
+
contentFunction: (element: HTMLElement) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
82
|
+
* a button.
|
|
83
|
+
*
|
|
84
|
+
* @param label - label to be displayed in user list dropdown information.
|
|
85
|
+
* @param icon - icon to be used in the user list dropdown information.
|
|
86
|
+
* It goes on the left side of it.
|
|
87
|
+
* @param iconRight - icon to be used in the user list dropdown information.
|
|
88
|
+
* It goes on the right side of it.
|
|
89
|
+
* @param allowed - if false, the use list dropdown will not appear in the dropdown.
|
|
90
|
+
* @param textColor - Color that the text will have.
|
|
91
|
+
* @param userId - the userId in which this dropdown information will appear when the user
|
|
92
|
+
* list item is clicked.
|
|
93
|
+
*
|
|
94
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
95
|
+
*/
|
|
96
|
+
constructor({ contentFunction, allowed, userId, }: UserListDropdownGenericContentInformationProps);
|
|
97
|
+
setItemId: (id: string) => void;
|
|
98
|
+
}
|
|
99
|
+
export declare class UserListDropdownTitleAction implements UserListDropdownInterface {
|
|
100
|
+
id: string;
|
|
101
|
+
userId: string;
|
|
102
|
+
type: UserListDropdownItemType;
|
|
103
|
+
icon: string;
|
|
104
|
+
tooltip: string;
|
|
105
|
+
onClick: (args: UserListDropdownTitleActionOnClickArguments) => void;
|
|
106
|
+
/**
|
|
107
|
+
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
108
|
+
* a button (action) for the title.
|
|
109
|
+
*
|
|
110
|
+
* @param onClick - onClick function.
|
|
111
|
+
* @param tooltip - quick explanatory message that will appear when user hover the action.
|
|
112
|
+
* @param icon - icon to be used in the user list dropdown title action.
|
|
113
|
+
* It goes on the left side of it.
|
|
114
|
+
* @param userId - the userId in which this dropdown title action will appear when the user
|
|
115
|
+
* list item is clicked.
|
|
116
|
+
*
|
|
117
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
118
|
+
*/
|
|
119
|
+
constructor({ icon, userId, onClick, tooltip, }: UserListDropdownTitleActionProps);
|
|
71
120
|
setItemId: (id: string) => void;
|
|
72
121
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UserListDropdownTitleAction = exports.UserListDropdownGenericContentInformation = exports.UserListDropdownFixedContentInformation = exports.UserListDropdownSeparator = exports.UserListDropdownOption = void 0;
|
|
4
4
|
var enums_1 = require("./enums");
|
|
5
5
|
// UserListDropdown Extensible Area
|
|
6
6
|
var UserListDropdownOption = /** @class */ (function () {
|
|
@@ -47,19 +47,21 @@ var UserListDropdownSeparator = /** @class */ (function () {
|
|
|
47
47
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
48
48
|
*/
|
|
49
49
|
function UserListDropdownSeparator(_a) {
|
|
50
|
-
var _b = _a.userId, userId = _b === void 0 ? '' : _b;
|
|
50
|
+
var _b = _a.userId, userId = _b === void 0 ? '' : _b, _c = _a.position, position = _c === void 0 ? enums_1.UserListDropdownSeparatorPosition.AFTER : _c;
|
|
51
51
|
var _this = this;
|
|
52
52
|
this.id = '';
|
|
53
|
+
this.position = enums_1.UserListDropdownSeparatorPosition.AFTER;
|
|
53
54
|
this.setItemId = function (id) {
|
|
54
55
|
_this.id = "UserListDropdownSeparator_".concat(id);
|
|
55
56
|
};
|
|
56
57
|
this.userId = userId;
|
|
58
|
+
this.position = position;
|
|
57
59
|
this.type = enums_1.UserListDropdownItemType.SEPARATOR;
|
|
58
60
|
}
|
|
59
61
|
return UserListDropdownSeparator;
|
|
60
62
|
}());
|
|
61
63
|
exports.UserListDropdownSeparator = UserListDropdownSeparator;
|
|
62
|
-
var
|
|
64
|
+
var UserListDropdownFixedContentInformation = /** @class */ (function () {
|
|
63
65
|
/**
|
|
64
66
|
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
65
67
|
* a button.
|
|
@@ -76,12 +78,12 @@ var UserListDropdownInformation = /** @class */ (function () {
|
|
|
76
78
|
*
|
|
77
79
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
78
80
|
*/
|
|
79
|
-
function
|
|
81
|
+
function UserListDropdownFixedContentInformation(_a) {
|
|
80
82
|
var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.iconRight, iconRight = _d === void 0 ? '' : _d, _e = _a.allowed, allowed = _e === void 0 ? true : _e, _f = _a.userId, userId = _f === void 0 ? '' : _f, _g = _a.textColor, textColor = _g === void 0 ? '' : _g;
|
|
81
83
|
var _this = this;
|
|
82
84
|
this.id = '';
|
|
83
85
|
this.setItemId = function (id) {
|
|
84
|
-
_this.id = "
|
|
86
|
+
_this.id = "UserListDropdownFixedContentInformation_".concat(id);
|
|
85
87
|
};
|
|
86
88
|
this.userId = userId;
|
|
87
89
|
this.label = label;
|
|
@@ -89,9 +91,71 @@ var UserListDropdownInformation = /** @class */ (function () {
|
|
|
89
91
|
this.iconRight = iconRight;
|
|
90
92
|
this.textColor = textColor;
|
|
91
93
|
this.allowed = allowed;
|
|
92
|
-
this.type = enums_1.UserListDropdownItemType.
|
|
94
|
+
this.type = enums_1.UserListDropdownItemType.FIXED_CONTENT_INFORMATION;
|
|
93
95
|
}
|
|
94
|
-
return
|
|
96
|
+
return UserListDropdownFixedContentInformation;
|
|
95
97
|
}());
|
|
96
|
-
exports.
|
|
98
|
+
exports.UserListDropdownFixedContentInformation = UserListDropdownFixedContentInformation;
|
|
99
|
+
var UserListDropdownGenericContentInformation = /** @class */ (function () {
|
|
100
|
+
/**
|
|
101
|
+
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
102
|
+
* a button.
|
|
103
|
+
*
|
|
104
|
+
* @param label - label to be displayed in user list dropdown information.
|
|
105
|
+
* @param icon - icon to be used in the user list dropdown information.
|
|
106
|
+
* It goes on the left side of it.
|
|
107
|
+
* @param iconRight - icon to be used in the user list dropdown information.
|
|
108
|
+
* It goes on the right side of it.
|
|
109
|
+
* @param allowed - if false, the use list dropdown will not appear in the dropdown.
|
|
110
|
+
* @param textColor - Color that the text will have.
|
|
111
|
+
* @param userId - the userId in which this dropdown information will appear when the user
|
|
112
|
+
* list item is clicked.
|
|
113
|
+
*
|
|
114
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
115
|
+
*/
|
|
116
|
+
function UserListDropdownGenericContentInformation(_a) {
|
|
117
|
+
var contentFunction = _a.contentFunction, _b = _a.allowed, allowed = _b === void 0 ? true : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c;
|
|
118
|
+
var _this = this;
|
|
119
|
+
this.id = '';
|
|
120
|
+
this.setItemId = function (id) {
|
|
121
|
+
_this.id = "UserListDropdownGenericContentInformation_".concat(id);
|
|
122
|
+
};
|
|
123
|
+
this.userId = userId;
|
|
124
|
+
this.allowed = allowed;
|
|
125
|
+
this.contentFunction = contentFunction;
|
|
126
|
+
this.type = enums_1.UserListDropdownItemType.GENERIC_CONTENT_INFORMATION;
|
|
127
|
+
}
|
|
128
|
+
return UserListDropdownGenericContentInformation;
|
|
129
|
+
}());
|
|
130
|
+
exports.UserListDropdownGenericContentInformation = UserListDropdownGenericContentInformation;
|
|
131
|
+
var UserListDropdownTitleAction = /** @class */ (function () {
|
|
132
|
+
/**
|
|
133
|
+
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
134
|
+
* a button (action) for the title.
|
|
135
|
+
*
|
|
136
|
+
* @param onClick - onClick function.
|
|
137
|
+
* @param tooltip - quick explanatory message that will appear when user hover the action.
|
|
138
|
+
* @param icon - icon to be used in the user list dropdown title action.
|
|
139
|
+
* It goes on the left side of it.
|
|
140
|
+
* @param userId - the userId in which this dropdown title action will appear when the user
|
|
141
|
+
* list item is clicked.
|
|
142
|
+
*
|
|
143
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
144
|
+
*/
|
|
145
|
+
function UserListDropdownTitleAction(_a) {
|
|
146
|
+
var _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, onClick = _a.onClick, tooltip = _a.tooltip;
|
|
147
|
+
var _this = this;
|
|
148
|
+
this.id = '';
|
|
149
|
+
this.setItemId = function (id) {
|
|
150
|
+
_this.id = "UserListDropdownTitleAction_".concat(id);
|
|
151
|
+
};
|
|
152
|
+
this.userId = userId;
|
|
153
|
+
this.icon = icon;
|
|
154
|
+
this.tooltip = tooltip;
|
|
155
|
+
this.onClick = onClick;
|
|
156
|
+
this.type = enums_1.UserListDropdownItemType.TITLE_ACTION;
|
|
157
|
+
}
|
|
158
|
+
return UserListDropdownTitleAction;
|
|
159
|
+
}());
|
|
160
|
+
exports.UserListDropdownTitleAction = UserListDropdownTitleAction;
|
|
97
161
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/component.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/component.ts"],"names":[],"mappings":";;;AAQA,iCAAsF;AAEtF,mCAAmC;AAEnC;IAiBE;;;;;;;;;;;;;OAaG;IACH,gCAAY,EAGkB;YAF5B,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EACvE,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA;QAFb,iBAWC;QAzCD,OAAE,GAAW,EAAE,CAAC;QA2ChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,iCAA0B,EAAE,CAAE,CAAC;QAC3C,CAAC,CAAC;QAXA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAA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AAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,sCAA+B,EAAE,CAAE,CAAC;QAChD,CAAC,CAAC;QATA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,gCAAwB,CAAC,YAAY,CAAC;IACpD,CAAC;IAKH,kCAAC;AAAD,CAAC,AAvCD,IAuCC;AAvCY,kEAA2B"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export declare enum UserListDropdownItemType {
|
|
2
2
|
OPTION = "USER_LIST_DROPDOWN_OPTION",
|
|
3
3
|
SEPARATOR = "USER_LIST_DROPDOWN_SEPARATOR",
|
|
4
|
-
|
|
4
|
+
FIXED_CONTENT_INFORMATION = "USER_LIST_DROPDOWN_FIXED_CONTENT_INFORMATION",
|
|
5
|
+
GENERIC_CONTENT_INFORMATION = "USER_LIST_DROPDOWN_GENERIC_CONTENT_INFORMATION",
|
|
6
|
+
TITLE_ACTION = "USER_LIST_DROPDOWN_TITLE_ACTION"
|
|
7
|
+
}
|
|
8
|
+
export declare enum UserListDropdownSeparatorPosition {
|
|
9
|
+
BEFORE = "BEFORE_DEFAULT_ITEMS",
|
|
10
|
+
AFTER = "AFTER_DEFAULT_ITEMS"
|
|
5
11
|
}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserListDropdownItemType = void 0;
|
|
3
|
+
exports.UserListDropdownSeparatorPosition = exports.UserListDropdownItemType = void 0;
|
|
4
4
|
// User list dropdown items types:
|
|
5
5
|
var UserListDropdownItemType;
|
|
6
6
|
(function (UserListDropdownItemType) {
|
|
7
7
|
UserListDropdownItemType["OPTION"] = "USER_LIST_DROPDOWN_OPTION";
|
|
8
8
|
UserListDropdownItemType["SEPARATOR"] = "USER_LIST_DROPDOWN_SEPARATOR";
|
|
9
|
-
UserListDropdownItemType["
|
|
9
|
+
UserListDropdownItemType["FIXED_CONTENT_INFORMATION"] = "USER_LIST_DROPDOWN_FIXED_CONTENT_INFORMATION";
|
|
10
|
+
UserListDropdownItemType["GENERIC_CONTENT_INFORMATION"] = "USER_LIST_DROPDOWN_GENERIC_CONTENT_INFORMATION";
|
|
11
|
+
UserListDropdownItemType["TITLE_ACTION"] = "USER_LIST_DROPDOWN_TITLE_ACTION";
|
|
10
12
|
})(UserListDropdownItemType || (exports.UserListDropdownItemType = UserListDropdownItemType = {}));
|
|
13
|
+
var UserListDropdownSeparatorPosition;
|
|
14
|
+
(function (UserListDropdownSeparatorPosition) {
|
|
15
|
+
UserListDropdownSeparatorPosition["BEFORE"] = "BEFORE_DEFAULT_ITEMS";
|
|
16
|
+
UserListDropdownSeparatorPosition["AFTER"] = "AFTER_DEFAULT_ITEMS";
|
|
17
|
+
})(UserListDropdownSeparatorPosition || (exports.UserListDropdownSeparatorPosition = UserListDropdownSeparatorPosition = {}));
|
|
11
18
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/enums.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/enums.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAClC,gEAAoC,CAAA;IACpC,sEAA0C,CAAA;IAC1C,sGAA0E,CAAA;IAC1E,0GAA8E,CAAA;IAC9E,4EAAgD,CAAA;AAClD,CAAC,EANW,wBAAwB,wCAAxB,wBAAwB,QAMnC;AAED,IAAY,iCAGX;AAHD,WAAY,iCAAiC;IAC3C,oEAA+B,CAAA;IAC/B,kEAA6B,CAAA;AAC/B,CAAC,EAHW,iCAAiC,iDAAjC,iCAAiC,QAG5C"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { UserListDropdownOption, UserListDropdownSeparator,
|
|
1
|
+
export { UserListDropdownOption, UserListDropdownSeparator, UserListDropdownGenericContentInformation, UserListDropdownFixedContentInformation, UserListDropdownTitleAction, } from './component';
|
|
2
2
|
export { UserListDropdownInterface, } from './types';
|
|
3
|
+
export { UserListDropdownSeparatorPosition, } from './enums';
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UserListDropdownSeparatorPosition = exports.UserListDropdownTitleAction = exports.UserListDropdownFixedContentInformation = exports.UserListDropdownGenericContentInformation = exports.UserListDropdownSeparator = exports.UserListDropdownOption = void 0;
|
|
4
4
|
var component_1 = require("./component");
|
|
5
5
|
Object.defineProperty(exports, "UserListDropdownOption", { enumerable: true, get: function () { return component_1.UserListDropdownOption; } });
|
|
6
6
|
Object.defineProperty(exports, "UserListDropdownSeparator", { enumerable: true, get: function () { return component_1.UserListDropdownSeparator; } });
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "UserListDropdownGenericContentInformation", { enumerable: true, get: function () { return component_1.UserListDropdownGenericContentInformation; } });
|
|
8
|
+
Object.defineProperty(exports, "UserListDropdownFixedContentInformation", { enumerable: true, get: function () { return component_1.UserListDropdownFixedContentInformation; } });
|
|
9
|
+
Object.defineProperty(exports, "UserListDropdownTitleAction", { enumerable: true, get: function () { return component_1.UserListDropdownTitleAction; } });
|
|
10
|
+
var enums_1 = require("./enums");
|
|
11
|
+
Object.defineProperty(exports, "UserListDropdownSeparatorPosition", { enumerable: true, get: function () { return enums_1.UserListDropdownSeparatorPosition; } });
|
|
8
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/index.ts"],"names":[],"mappings":";;;AAAA,yCAMqB;AALnB,mHAAA,sBAAsB,OAAA;AACtB,sHAAA,yBAAyB,OAAA;AACzB,sIAAA,yCAAyC,OAAA;AACzC,oIAAA,uCAAuC,OAAA;AACvC,wHAAA,2BAA2B,OAAA;AAK7B,iCAEiB;AADf,0HAAA,iCAAiC,OAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PluginProvidedUiItemDescriptor } from '../base';
|
|
3
|
+
import { UserListDropdownSeparatorPosition } from './enums';
|
|
2
4
|
/**
|
|
3
5
|
* User List Dropdown Item - The general user list dropdown extensible area item
|
|
4
6
|
*
|
|
@@ -19,8 +21,14 @@ export interface UserListDropdownOptionProps {
|
|
|
19
21
|
}
|
|
20
22
|
export interface UserListDropdownSeparatorProps {
|
|
21
23
|
userId: string;
|
|
24
|
+
position?: UserListDropdownSeparatorPosition;
|
|
22
25
|
}
|
|
23
|
-
export interface
|
|
26
|
+
export interface UserListDropdownGenericContentInformationProps {
|
|
27
|
+
contentFunction: (element: HTMLElement) => void;
|
|
28
|
+
allowed: boolean;
|
|
29
|
+
userId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface UserListDropdownFixedContentInformationProps {
|
|
24
32
|
label: string;
|
|
25
33
|
icon?: string;
|
|
26
34
|
iconRight?: string;
|
|
@@ -28,3 +36,12 @@ export interface UserListDropdownInformationProps {
|
|
|
28
36
|
userId: string;
|
|
29
37
|
textColor: string;
|
|
30
38
|
}
|
|
39
|
+
export interface UserListDropdownTitleActionOnClickArguments {
|
|
40
|
+
browserEvent: React.MouseEvent<HTMLElement>;
|
|
41
|
+
}
|
|
42
|
+
export interface UserListDropdownTitleActionProps {
|
|
43
|
+
tooltip: string;
|
|
44
|
+
icon: string;
|
|
45
|
+
userId: string;
|
|
46
|
+
onClick: (args: UserListDropdownTitleActionOnClickArguments) => void;
|
|
47
|
+
}
|