@interopio/groups-ui-react 2.2.2 → 2.2.4
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/index.js +22 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/api.d.ts +2 -0
- package/dist/cjs/types/internal.d.ts +2 -0
- package/dist/cjs/webGroupsManager.d.ts +2 -0
- package/dist/esm/index.js +22 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/api.d.ts +2 -0
- package/dist/esm/types/internal.d.ts +2 -0
- package/dist/esm/webGroupsManager.d.ts +2 -0
- package/dist/styles/groups.css +125 -110
- package/dist/styles/vars.css +55 -40
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -329,6 +329,20 @@
|
|
|
329
329
|
WebGroupsManagerDecorator.prototype.selectTab = function (windowId) {
|
|
330
330
|
window.webGroupsManager.externalLibraryFactory.selectTab(windowId);
|
|
331
331
|
};
|
|
332
|
+
WebGroupsManagerDecorator.prototype.addTabContainerClass = function (windowId, className) {
|
|
333
|
+
if (typeof window.webGroupsManager.externalLibraryFactory.addTabContainerClass !== "function") {
|
|
334
|
+
console.warn("The method addTabContainerClass is not supported by the current version of the library");
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
window.webGroupsManager.externalLibraryFactory.addTabContainerClass(windowId, className);
|
|
338
|
+
};
|
|
339
|
+
WebGroupsManagerDecorator.prototype.removeTabContainerClass = function (windowId, className) {
|
|
340
|
+
if (typeof window.webGroupsManager.externalLibraryFactory.removeTabContainerClass !== "function") {
|
|
341
|
+
console.warn("The method removeTabContainerClass is not supported by the current version of the library");
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
window.webGroupsManager.externalLibraryFactory.removeTabContainerClass(windowId, className);
|
|
345
|
+
};
|
|
332
346
|
return WebGroupsManagerDecorator;
|
|
333
347
|
}());
|
|
334
348
|
var webGroupsManager = new WebGroupsManagerDecorator();
|
|
@@ -3118,8 +3132,14 @@
|
|
|
3118
3132
|
webGroupsManager.onCaptionEditorVisibleChanged(TargetType.Tab, options.targetId, visible);
|
|
3119
3133
|
} });
|
|
3120
3134
|
var notifyCaptionBoundsChanged = function (bounds) { return webGroupsManager.onCaptionTextBoundsChanged(TargetType.Tab, options.targetId, bounds); };
|
|
3135
|
+
var addContainerClass = function (className) {
|
|
3136
|
+
webGroupsManager.addTabContainerClass(options.targetId, className);
|
|
3137
|
+
};
|
|
3138
|
+
var removeContainerClass = function (className) {
|
|
3139
|
+
webGroupsManager.removeTabContainerClass(options.targetId, className);
|
|
3140
|
+
};
|
|
3121
3141
|
return React__default["default"].createElement(Portal, { key: options.targetId, parentElement: parentElement },
|
|
3122
|
-
React__default["default"].createElement(TabCustomElement, __assign({}, options, { close: onCloseClick, channels: channels, windowId: options.targetId, captionEditor: captionEditor, notifyCaptionBoundsChanged: notifyCaptionBoundsChanged })));
|
|
3142
|
+
React__default["default"].createElement(TabCustomElement, __assign({}, options, { close: onCloseClick, channels: channels, windowId: options.targetId, captionEditor: captionEditor, notifyCaptionBoundsChanged: notifyCaptionBoundsChanged, addContainerClass: addContainerClass, removeContainerClass: removeContainerClass })));
|
|
3123
3143
|
});
|
|
3124
3144
|
};
|
|
3125
3145
|
var renderAfterTabsZones = function () {
|
|
@@ -3205,7 +3225,7 @@
|
|
|
3205
3225
|
webGroupsManager.selectTab(windowId);
|
|
3206
3226
|
};
|
|
3207
3227
|
var close = function (windowId) {
|
|
3208
|
-
webGroupsManager.
|
|
3228
|
+
webGroupsManager.closeTab(windowId);
|
|
3209
3229
|
};
|
|
3210
3230
|
return React__default["default"].createElement(Portal, { key: options.targetId, parentElement: parentElement },
|
|
3211
3231
|
React__default["default"].createElement(TabOverflowCustomElement, __assign({}, options, { select: select, close: close, frameId: options.targetId })));
|