wini-web-components 1.9.5 → 1.9.7
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.
|
@@ -225,7 +225,7 @@ var SelectMultiple = /** @class */ (function (_super) {
|
|
|
225
225
|
this.setState(__assign(__assign({}, this.state), { value: (_a = this.props.value) !== null && _a !== void 0 ? _a : [] }));
|
|
226
226
|
//
|
|
227
227
|
if (this.state.isOpen && (prevState.isOpen !== this.state.isOpen || prevState.value.length !== this.state.value.length)) {
|
|
228
|
-
var thisPopupRect = (_b = document.body.querySelector(".
|
|
228
|
+
var thisPopupRect = (_b = document.body.querySelector(":scope > .select-multi-popup")) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
229
229
|
if (thisPopupRect) {
|
|
230
230
|
var style = void 0;
|
|
231
231
|
if (prevState.isOpen !== this.state.isOpen && thisPopupRect.right > document.body.offsetWidth) {
|
|
@@ -282,7 +282,7 @@ var SelectMultiple = /** @class */ (function (_super) {
|
|
|
282
282
|
react_1.default.createElement(winicon_1.Winicon, { src: "outline/user interface/c-remove", size: '1.6rem' })) : react_1.default.createElement("div", { className: 'row', style: { display: (this.containerRef.current && this.containerRef.current.getBoundingClientRect().width >= 120) ? "flex" : "none" } },
|
|
283
283
|
react_1.default.createElement(winicon_1.Winicon, { src: this.state.isOpen ? "fill/arrows/up-arrow" : "fill/arrows/down-arrow", size: '1.2rem' })),
|
|
284
284
|
this.state.isOpen &&
|
|
285
|
-
react_dom_1.default.createPortal(react_1.default.createElement("div", { className: "".concat(input_multi_select_module_css_1.default['select-multi-popup'], " col ").concat((_e = this.props.popupClassName) !== null && _e !== void 0 ? _e : ""), style: (_f = this.state.style) !== null && _f !== void 0 ? _f : {
|
|
285
|
+
react_dom_1.default.createPortal(react_1.default.createElement("div", { className: "".concat(input_multi_select_module_css_1.default['select-multi-popup'], " select-multi-popup col ").concat((_e = this.props.popupClassName) !== null && _e !== void 0 ? _e : ""), style: (_f = this.state.style) !== null && _f !== void 0 ? _f : {
|
|
286
286
|
top: this.state.offset.y + this.state.offset.height + 2 + 'px',
|
|
287
287
|
left: this.state.offset.x + 'px',
|
|
288
288
|
width: this.state.offset.width,
|
|
@@ -244,7 +244,7 @@ var Select1 = /** @class */ (function (_super) {
|
|
|
244
244
|
this.inputRef.current.value = "".concat((_d = (_c = this.state.options.find(function (e) { return e.id === _this.state.value; })) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : "");
|
|
245
245
|
//
|
|
246
246
|
if (this.state.isOpen && prevState.isOpen !== this.state.isOpen) {
|
|
247
|
-
var thisPopupRect = (_e = document.body.querySelector(":scope > .
|
|
247
|
+
var thisPopupRect = (_e = document.body.querySelector(":scope > .select1-popup")) === null || _e === void 0 ? void 0 : _e.getBoundingClientRect();
|
|
248
248
|
if (thisPopupRect) {
|
|
249
249
|
var style = void 0;
|
|
250
250
|
if (thisPopupRect.right > document.body.offsetWidth) {
|
|
@@ -298,7 +298,7 @@ var Select1 = /** @class */ (function (_super) {
|
|
|
298
298
|
}, className: 'row' },
|
|
299
299
|
react_1.default.createElement(winicon_1.Winicon, { src: this.state.isOpen ? "fill/arrows/up-arrow" : "fill/arrows/down-arrow", size: "1.2rem" })),
|
|
300
300
|
this.state.isOpen &&
|
|
301
|
-
react_dom_1.default.createPortal(react_1.default.createElement("div", { className: "".concat(select1_module_css_1.default['select1-popup'], " col ").concat((_e = this.props.popupClassName) !== null && _e !== void 0 ? _e : ""), style: (_f = this.state.style) !== null && _f !== void 0 ? _f : {
|
|
301
|
+
react_dom_1.default.createPortal(react_1.default.createElement("div", { className: "".concat(select1_module_css_1.default['select1-popup'], " select1-popup col ").concat((_e = this.props.popupClassName) !== null && _e !== void 0 ? _e : ""), style: (_f = this.state.style) !== null && _f !== void 0 ? _f : {
|
|
302
302
|
top: this.state.offset.y + this.state.offset.height + 2 + 'px',
|
|
303
303
|
left: this.state.offset.x + 'px',
|
|
304
304
|
width: this.state.offset.width,
|