funda-ui 1.2.117 → 1.2.120
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/EventCalendarTimeline/index.css +4 -2
- package/EventCalendarTimeline/index.js +2 -0
- package/MultiFuncSelect/index.js +7 -1
- package/MultipleCheckboxes/index.js +22 -2
- package/MultipleSelect/index.css +2 -1
- package/MultipleSelect/index.js +2 -1
- package/Radio/index.js +32 -6
- package/Table/index.js +32 -6
- package/Textarea/index.js +9 -1
- package/Tooltip/index.js +1 -0
- package/Tree/index.css +2 -1
- package/lib/cjs/EventCalendarTimeline/index.js +2 -0
- package/lib/cjs/MultiFuncSelect/index.js +7 -1
- package/lib/cjs/MultipleCheckboxes/index.js +22 -2
- package/lib/cjs/MultipleSelect/index.js +2 -1
- package/lib/cjs/Radio/index.js +32 -6
- package/lib/cjs/Table/index.js +32 -6
- package/lib/cjs/Textarea/index.js +9 -1
- package/lib/cjs/Tooltip/index.js +1 -0
- package/lib/css/EventCalendarTimeline/index.css +4 -2
- package/lib/css/MultipleSelect/index.css +2 -1
- package/lib/css/Tree/index.css +2 -1
- package/lib/esm/EventCalendarTimeline/index.scss +4 -2
- package/lib/esm/EventCalendarTimeline/index.tsx +2 -0
- package/lib/esm/MultiFuncSelect/index.tsx +17 -3
- package/lib/esm/MultipleCheckboxes/index.tsx +15 -1
- package/lib/esm/MultipleSelect/index.scss +2 -1
- package/lib/esm/MultipleSelect/index.tsx +5 -1
- package/lib/esm/Radio/index.tsx +29 -2
- package/lib/esm/Textarea/index.tsx +12 -1
- package/lib/esm/Tooltip/index.tsx +3 -0
- package/lib/esm/Tree/index.scss +2 -1
- package/package.json +1 -1
|
@@ -303,7 +303,8 @@
|
|
|
303
303
|
}
|
|
304
304
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-title,
|
|
305
305
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-content {
|
|
306
|
-
word-
|
|
306
|
+
word-wrap: break-word;
|
|
307
|
+
word-break: break-word;
|
|
307
308
|
max-width: var(--e-cal-tl-table-cell-max-w);
|
|
308
309
|
/* If the maximum width is not increased and the screen becomes smaller,
|
|
309
310
|
the cell width of ".e-cal-tl-table__datagrid-header__content" may be
|
|
@@ -318,7 +319,8 @@
|
|
|
318
319
|
}
|
|
319
320
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-headertitle,
|
|
320
321
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-title {
|
|
321
|
-
word-
|
|
322
|
+
word-wrap: break-word;
|
|
323
|
+
word-break: break-word;
|
|
322
324
|
}
|
|
323
325
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-headertitle {
|
|
324
326
|
width: var(--e-cal-tl-table-header-w);
|
|
@@ -1720,6 +1720,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1720
1720
|
return d > 0 && d <= days[month] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1721
1721
|
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(eventSourcesData && _currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1722
1722
|
key: "col" + i,
|
|
1723
|
+
"data-overlay-id": "e-cal-tl-table__cell-tooltipwrapper-".concat(idRes),
|
|
1723
1724
|
"data-index": colIndex - 1,
|
|
1724
1725
|
colSpan: 1,
|
|
1725
1726
|
"data-date": getCalendarDate(_dateShow),
|
|
@@ -1903,6 +1904,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1903
1904
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1904
1905
|
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(_currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1905
1906
|
key: "col" + i,
|
|
1907
|
+
"data-overlay-id": "e-cal-tl-table__cell-tooltipwrapper-".concat(idRes),
|
|
1906
1908
|
"data-index": _colIndex - 1,
|
|
1907
1909
|
colSpan: 1,
|
|
1908
1910
|
"data-date": getCalendarDate(_dateShow),
|
package/MultiFuncSelect/index.js
CHANGED
|
@@ -1018,7 +1018,8 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
1018
1018
|
controlArr = _useState18[0],
|
|
1019
1019
|
setControlArr = _useState18[1];
|
|
1020
1020
|
var multiSelControlOptionExist = function multiSelControlOptionExist(arr, val) {
|
|
1021
|
-
|
|
1021
|
+
var _data = arr.filter(Boolean);
|
|
1022
|
+
return _data.map(function (v) {
|
|
1022
1023
|
return v.toString();
|
|
1023
1024
|
}).includes(val.toString());
|
|
1024
1025
|
};
|
|
@@ -1256,6 +1257,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
1256
1257
|
}];
|
|
1257
1258
|
}
|
|
1258
1259
|
} else {
|
|
1260
|
+
// If the default value is label, match value
|
|
1259
1261
|
filterResQueryValue = _ORGIN_DATA.filter(function (item) {
|
|
1260
1262
|
return item.value == defaultValue;
|
|
1261
1263
|
});
|
|
@@ -1364,6 +1366,8 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
1364
1366
|
|
|
1365
1367
|
// STEP 3: ===========
|
|
1366
1368
|
// value & label must be initialized
|
|
1369
|
+
|
|
1370
|
+
// If the default value is label, match value
|
|
1367
1371
|
_filterRes3 = [];
|
|
1368
1372
|
_filterResQueryValue = optionsDataInit.filter(function (item) {
|
|
1369
1373
|
return item.value == defaultValue;
|
|
@@ -2437,6 +2441,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2437
2441
|
__html: "".concat(label)
|
|
2438
2442
|
}
|
|
2439
2443
|
}))) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
2444
|
+
"data-overlay-id": "mf-select__options-wrapper-".concat(idRes),
|
|
2440
2445
|
id: "mf-select__wrapper-".concat(idRes),
|
|
2441
2446
|
className: "mf-select__wrapper ".concat(wrapperClassName || wrapperClassName === '' ? wrapperClassName : 'mb-3 position-relative', " ").concat(MULTI_SEL_VALID ? 'multiple-selection' : '', " ").concat(isOpen ? 'active focus' : ''),
|
|
2442
2447
|
ref: rootRef
|
|
@@ -2454,6 +2459,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2454
2459
|
},
|
|
2455
2460
|
tabIndex: tabIndex || 0,
|
|
2456
2461
|
type: "text",
|
|
2462
|
+
"data-overlay-id": "mf-select__options-wrapper-".concat(idRes),
|
|
2457
2463
|
id: "label-".concat(idRes)
|
|
2458
2464
|
|
|
2459
2465
|
// Don't use "name", it's just a container to display the label
|
|
@@ -739,9 +739,27 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
739
739
|
} else {
|
|
740
740
|
var _val = VALUE_BY_BRACKETS ? (0,_utils_extract__WEBPACK_IMPORTED_MODULE_2__.extractContentsOfBrackets)(defaultValue) : defaultValue.trim().replace(/^\,|\,$/g, '').split(',');
|
|
741
741
|
if (Array.isArray(_val)) {
|
|
742
|
-
|
|
742
|
+
// If the default value is label, match value
|
|
743
|
+
var _realValue = _val.filter(function (v) {
|
|
743
744
|
return v !== '';
|
|
744
|
-
})
|
|
745
|
+
});
|
|
746
|
+
var filterRes = [];
|
|
747
|
+
var filterResQueryValue = optionsRes.filter(function (item) {
|
|
748
|
+
return _val.includes(item.value);
|
|
749
|
+
});
|
|
750
|
+
var filterResQueryLabel = optionsRes.filter(function (item) {
|
|
751
|
+
return _val.includes(item.label);
|
|
752
|
+
});
|
|
753
|
+
filterRes = filterResQueryValue;
|
|
754
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
755
|
+
if (filterRes.length > 0) _realValue = filterRes.filter(function (v) {
|
|
756
|
+
return v.value !== '';
|
|
757
|
+
}).map(function (k) {
|
|
758
|
+
return k.value;
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
//
|
|
762
|
+
setValSelected(_realValue);
|
|
745
763
|
} else {
|
|
746
764
|
setValSelected([]);
|
|
747
765
|
}
|
|
@@ -786,6 +804,7 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
786
804
|
"data-disabled": disabled || (typeof opt.disabled !== 'undefined' ? "".concat(opt.disabled) : 'false')
|
|
787
805
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_checkbox__WEBPACK_IMPORTED_MODULE_1___default()), _extends({
|
|
788
806
|
wrapperClassName: "",
|
|
807
|
+
name: "".concat(name, "-checkbox-item"),
|
|
789
808
|
"data-index": "".concat(index, "-").concat(optIndex),
|
|
790
809
|
"data-label": opt.label,
|
|
791
810
|
"data-list-item-label": "".concat(typeof opt.listItemLabel === 'undefined' ? '' : opt.listItemLabel),
|
|
@@ -837,6 +856,7 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
837
856
|
"data-disabled": disabled || (typeof item.disabled !== 'undefined' ? "".concat(item.disabled) : 'false')
|
|
838
857
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_checkbox__WEBPACK_IMPORTED_MODULE_1___default()), _extends({
|
|
839
858
|
wrapperClassName: "",
|
|
859
|
+
name: "".concat(name, "-checkbox-item"),
|
|
840
860
|
"data-index": index,
|
|
841
861
|
"data-label": item.label,
|
|
842
862
|
"data-list-item-label": "".concat(typeof item.listItemLabel === 'undefined' ? '' : item.listItemLabel),
|
package/MultipleSelect/index.css
CHANGED
package/MultipleSelect/index.js
CHANGED
|
@@ -472,7 +472,8 @@ var MultipleSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardR
|
|
|
472
472
|
hasErr = _useState10[0],
|
|
473
473
|
setHasErr = _useState10[1];
|
|
474
474
|
var multiSelControlOptionExist = function multiSelControlOptionExist(arr, val) {
|
|
475
|
-
|
|
475
|
+
var _data = arr.filter(Boolean);
|
|
476
|
+
return _data.map(function (v) {
|
|
476
477
|
return v.toString();
|
|
477
478
|
}).includes(val.toString());
|
|
478
479
|
};
|
package/Radio/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var Radio = function Radio(props) {
|
|
|
166
166
|
} // Determine whether it is in JSON format
|
|
167
167
|
function _fetchData() {
|
|
168
168
|
_fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
169
|
-
var response, _ORGIN_DATA;
|
|
169
|
+
var response, _ORGIN_DATA, _realValue, filterRes, filterResQueryValue, filterResQueryLabel, _realValue2, _filterRes, _filterResQueryValue, _filterResQueryLabel;
|
|
170
170
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
171
171
|
while (1) switch (_context.prev = _context.next) {
|
|
172
172
|
case 0:
|
|
@@ -175,7 +175,7 @@ var Radio = function Radio(props) {
|
|
|
175
175
|
|
|
176
176
|
//
|
|
177
177
|
if (!(_typeof(fetchFuncAsync) === 'object')) {
|
|
178
|
-
_context.next =
|
|
178
|
+
_context.next = 21;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
_context.next = 4;
|
|
@@ -194,8 +194,21 @@ var Radio = function Radio(props) {
|
|
|
194
194
|
_ORGIN_DATA = [];
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// If the default value is label, match value
|
|
198
|
+
_realValue = value;
|
|
199
|
+
filterRes = [];
|
|
200
|
+
filterResQueryValue = _ORGIN_DATA.filter(function (item) {
|
|
201
|
+
return item.value == value;
|
|
202
|
+
});
|
|
203
|
+
filterResQueryLabel = _ORGIN_DATA.filter(function (item) {
|
|
204
|
+
return item.label == value;
|
|
205
|
+
});
|
|
206
|
+
filterRes = filterResQueryValue;
|
|
207
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
208
|
+
if (filterRes.length > 0) _realValue = filterRes[0].value;
|
|
209
|
+
|
|
197
210
|
//
|
|
198
|
-
setControlValue(
|
|
211
|
+
setControlValue(_realValue); // value must be initialized
|
|
199
212
|
|
|
200
213
|
//
|
|
201
214
|
setDataInit(_ORGIN_DATA); // data must be initialized
|
|
@@ -203,9 +216,22 @@ var Radio = function Radio(props) {
|
|
|
203
216
|
//
|
|
204
217
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(_ORGIN_DATA);
|
|
205
218
|
return _context.abrupt("return", _ORGIN_DATA);
|
|
206
|
-
case
|
|
219
|
+
case 21:
|
|
220
|
+
// If the default value is label, match value
|
|
221
|
+
_realValue2 = value;
|
|
222
|
+
_filterRes = [];
|
|
223
|
+
_filterResQueryValue = optionsDataInit.filter(function (item) {
|
|
224
|
+
return item.value == value;
|
|
225
|
+
});
|
|
226
|
+
_filterResQueryLabel = optionsDataInit.filter(function (item) {
|
|
227
|
+
return item.label == value;
|
|
228
|
+
});
|
|
229
|
+
_filterRes = _filterResQueryValue;
|
|
230
|
+
if (_filterResQueryValue.length === 0) _filterRes = _filterResQueryLabel;
|
|
231
|
+
if (_filterRes.length > 0) _realValue2 = _filterRes[0].value;
|
|
232
|
+
|
|
207
233
|
//
|
|
208
|
-
setControlValue(
|
|
234
|
+
setControlValue(_realValue2); // value must be initialized
|
|
209
235
|
|
|
210
236
|
//
|
|
211
237
|
setDataInit(optionsDataInit); // data must be initialized
|
|
@@ -213,7 +239,7 @@ var Radio = function Radio(props) {
|
|
|
213
239
|
//
|
|
214
240
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(optionsDataInit);
|
|
215
241
|
return _context.abrupt("return", optionsDataInit);
|
|
216
|
-
case
|
|
242
|
+
case 32:
|
|
217
243
|
case "end":
|
|
218
244
|
return _context.stop();
|
|
219
245
|
}
|
package/Table/index.js
CHANGED
|
@@ -1074,7 +1074,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1074
1074
|
} // Determine whether it is in JSON format
|
|
1075
1075
|
function _fetchData() {
|
|
1076
1076
|
_fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
1077
|
-
var response, _ORGIN_DATA;
|
|
1077
|
+
var response, _ORGIN_DATA, _realValue, filterRes, filterResQueryValue, filterResQueryLabel, _realValue2, _filterRes, _filterResQueryValue, _filterResQueryLabel;
|
|
1078
1078
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1079
1079
|
while (1) switch (_context.prev = _context.next) {
|
|
1080
1080
|
case 0:
|
|
@@ -1083,7 +1083,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1083
1083
|
|
|
1084
1084
|
//
|
|
1085
1085
|
if (!(_typeof(fetchFuncAsync) === 'object')) {
|
|
1086
|
-
_context.next =
|
|
1086
|
+
_context.next = 21;
|
|
1087
1087
|
break;
|
|
1088
1088
|
}
|
|
1089
1089
|
_context.next = 4;
|
|
@@ -1102,8 +1102,21 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1102
1102
|
_ORGIN_DATA = [];
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
|
+
// If the default value is label, match value
|
|
1106
|
+
_realValue = value;
|
|
1107
|
+
filterRes = [];
|
|
1108
|
+
filterResQueryValue = _ORGIN_DATA.filter(function (item) {
|
|
1109
|
+
return item.value == value;
|
|
1110
|
+
});
|
|
1111
|
+
filterResQueryLabel = _ORGIN_DATA.filter(function (item) {
|
|
1112
|
+
return item.label == value;
|
|
1113
|
+
});
|
|
1114
|
+
filterRes = filterResQueryValue;
|
|
1115
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
1116
|
+
if (filterRes.length > 0) _realValue = filterRes[0].value;
|
|
1117
|
+
|
|
1105
1118
|
//
|
|
1106
|
-
setControlValue(
|
|
1119
|
+
setControlValue(_realValue); // value must be initialized
|
|
1107
1120
|
|
|
1108
1121
|
//
|
|
1109
1122
|
setDataInit(_ORGIN_DATA); // data must be initialized
|
|
@@ -1111,9 +1124,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1111
1124
|
//
|
|
1112
1125
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(_ORGIN_DATA);
|
|
1113
1126
|
return _context.abrupt("return", _ORGIN_DATA);
|
|
1114
|
-
case
|
|
1127
|
+
case 21:
|
|
1128
|
+
// If the default value is label, match value
|
|
1129
|
+
_realValue2 = value;
|
|
1130
|
+
_filterRes = [];
|
|
1131
|
+
_filterResQueryValue = optionsDataInit.filter(function (item) {
|
|
1132
|
+
return item.value == value;
|
|
1133
|
+
});
|
|
1134
|
+
_filterResQueryLabel = optionsDataInit.filter(function (item) {
|
|
1135
|
+
return item.label == value;
|
|
1136
|
+
});
|
|
1137
|
+
_filterRes = _filterResQueryValue;
|
|
1138
|
+
if (_filterResQueryValue.length === 0) _filterRes = _filterResQueryLabel;
|
|
1139
|
+
if (_filterRes.length > 0) _realValue2 = _filterRes[0].value;
|
|
1140
|
+
|
|
1115
1141
|
//
|
|
1116
|
-
setControlValue(
|
|
1142
|
+
setControlValue(_realValue2); // value must be initialized
|
|
1117
1143
|
|
|
1118
1144
|
//
|
|
1119
1145
|
setDataInit(optionsDataInit); // data must be initialized
|
|
@@ -1121,7 +1147,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1121
1147
|
//
|
|
1122
1148
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(optionsDataInit);
|
|
1123
1149
|
return _context.abrupt("return", optionsDataInit);
|
|
1124
|
-
case
|
|
1150
|
+
case 32:
|
|
1125
1151
|
case "end":
|
|
1126
1152
|
return _context.stop();
|
|
1127
1153
|
}
|
package/Textarea/index.js
CHANGED
|
@@ -293,7 +293,15 @@ var Textarea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
293
293
|
// update default value
|
|
294
294
|
//--------------
|
|
295
295
|
if (typeof value !== 'undefined') {
|
|
296
|
-
|
|
296
|
+
if (value.length > 0 && autoSize) {
|
|
297
|
+
// Recalculate height if default value exceeds initial height
|
|
298
|
+
setChangedVal('');
|
|
299
|
+
setTimeout(function () {
|
|
300
|
+
setChangedVal("".concat(value));
|
|
301
|
+
}, 0);
|
|
302
|
+
} else {
|
|
303
|
+
setChangedVal("".concat(value)); // Avoid displaying the number 0
|
|
304
|
+
}
|
|
297
305
|
}
|
|
298
306
|
}, [value]);
|
|
299
307
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
package/Tooltip/index.js
CHANGED
|
@@ -397,6 +397,7 @@ var Tooltip = function Tooltip(props) {
|
|
|
397
397
|
className: "tooltip__content"
|
|
398
398
|
}, content))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
399
399
|
ref: rootRef,
|
|
400
|
+
"data-overlay-id": "tooltip__wrapper-".concat(idRes),
|
|
400
401
|
className: "tooltip__trigger d-inline-block",
|
|
401
402
|
onMouseEnter: handleMouseEnter,
|
|
402
403
|
onMouseLeave: handleMouseLeave
|
package/Tree/index.css
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
padding: 0.5rem 0;
|
|
23
23
|
outline: none; /* When using "tabindex" please set */
|
|
24
|
-
word-
|
|
24
|
+
word-wrap: break-word;
|
|
25
|
+
word-break: break-word;
|
|
25
26
|
/*------ line ------*/
|
|
26
27
|
/*------ has checkbox ------*/
|
|
27
28
|
/*------ hide arrow ------*/
|
|
@@ -1720,6 +1720,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1720
1720
|
return d > 0 && d <= days[month] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1721
1721
|
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(eventSourcesData && _currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1722
1722
|
key: "col" + i,
|
|
1723
|
+
"data-overlay-id": "e-cal-tl-table__cell-tooltipwrapper-".concat(idRes),
|
|
1723
1724
|
"data-index": colIndex - 1,
|
|
1724
1725
|
colSpan: 1,
|
|
1725
1726
|
"data-date": getCalendarDate(_dateShow),
|
|
@@ -1903,6 +1904,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1903
1904
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1904
1905
|
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(_currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1905
1906
|
key: "col" + i,
|
|
1907
|
+
"data-overlay-id": "e-cal-tl-table__cell-tooltipwrapper-".concat(idRes),
|
|
1906
1908
|
"data-index": _colIndex - 1,
|
|
1907
1909
|
colSpan: 1,
|
|
1908
1910
|
"data-date": getCalendarDate(_dateShow),
|
|
@@ -1018,7 +1018,8 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
1018
1018
|
controlArr = _useState18[0],
|
|
1019
1019
|
setControlArr = _useState18[1];
|
|
1020
1020
|
var multiSelControlOptionExist = function multiSelControlOptionExist(arr, val) {
|
|
1021
|
-
|
|
1021
|
+
var _data = arr.filter(Boolean);
|
|
1022
|
+
return _data.map(function (v) {
|
|
1022
1023
|
return v.toString();
|
|
1023
1024
|
}).includes(val.toString());
|
|
1024
1025
|
};
|
|
@@ -1256,6 +1257,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
1256
1257
|
}];
|
|
1257
1258
|
}
|
|
1258
1259
|
} else {
|
|
1260
|
+
// If the default value is label, match value
|
|
1259
1261
|
filterResQueryValue = _ORGIN_DATA.filter(function (item) {
|
|
1260
1262
|
return item.value == defaultValue;
|
|
1261
1263
|
});
|
|
@@ -1364,6 +1366,8 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
1364
1366
|
|
|
1365
1367
|
// STEP 3: ===========
|
|
1366
1368
|
// value & label must be initialized
|
|
1369
|
+
|
|
1370
|
+
// If the default value is label, match value
|
|
1367
1371
|
_filterRes3 = [];
|
|
1368
1372
|
_filterResQueryValue = optionsDataInit.filter(function (item) {
|
|
1369
1373
|
return item.value == defaultValue;
|
|
@@ -2437,6 +2441,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2437
2441
|
__html: "".concat(label)
|
|
2438
2442
|
}
|
|
2439
2443
|
}))) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
2444
|
+
"data-overlay-id": "mf-select__options-wrapper-".concat(idRes),
|
|
2440
2445
|
id: "mf-select__wrapper-".concat(idRes),
|
|
2441
2446
|
className: "mf-select__wrapper ".concat(wrapperClassName || wrapperClassName === '' ? wrapperClassName : 'mb-3 position-relative', " ").concat(MULTI_SEL_VALID ? 'multiple-selection' : '', " ").concat(isOpen ? 'active focus' : ''),
|
|
2442
2447
|
ref: rootRef
|
|
@@ -2454,6 +2459,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2454
2459
|
},
|
|
2455
2460
|
tabIndex: tabIndex || 0,
|
|
2456
2461
|
type: "text",
|
|
2462
|
+
"data-overlay-id": "mf-select__options-wrapper-".concat(idRes),
|
|
2457
2463
|
id: "label-".concat(idRes)
|
|
2458
2464
|
|
|
2459
2465
|
// Don't use "name", it's just a container to display the label
|
|
@@ -739,9 +739,27 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
739
739
|
} else {
|
|
740
740
|
var _val = VALUE_BY_BRACKETS ? (0,_utils_extract__WEBPACK_IMPORTED_MODULE_2__.extractContentsOfBrackets)(defaultValue) : defaultValue.trim().replace(/^\,|\,$/g, '').split(',');
|
|
741
741
|
if (Array.isArray(_val)) {
|
|
742
|
-
|
|
742
|
+
// If the default value is label, match value
|
|
743
|
+
var _realValue = _val.filter(function (v) {
|
|
743
744
|
return v !== '';
|
|
744
|
-
})
|
|
745
|
+
});
|
|
746
|
+
var filterRes = [];
|
|
747
|
+
var filterResQueryValue = optionsRes.filter(function (item) {
|
|
748
|
+
return _val.includes(item.value);
|
|
749
|
+
});
|
|
750
|
+
var filterResQueryLabel = optionsRes.filter(function (item) {
|
|
751
|
+
return _val.includes(item.label);
|
|
752
|
+
});
|
|
753
|
+
filterRes = filterResQueryValue;
|
|
754
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
755
|
+
if (filterRes.length > 0) _realValue = filterRes.filter(function (v) {
|
|
756
|
+
return v.value !== '';
|
|
757
|
+
}).map(function (k) {
|
|
758
|
+
return k.value;
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
//
|
|
762
|
+
setValSelected(_realValue);
|
|
745
763
|
} else {
|
|
746
764
|
setValSelected([]);
|
|
747
765
|
}
|
|
@@ -786,6 +804,7 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
786
804
|
"data-disabled": disabled || (typeof opt.disabled !== 'undefined' ? "".concat(opt.disabled) : 'false')
|
|
787
805
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_checkbox__WEBPACK_IMPORTED_MODULE_1___default()), _extends({
|
|
788
806
|
wrapperClassName: "",
|
|
807
|
+
name: "".concat(name, "-checkbox-item"),
|
|
789
808
|
"data-index": "".concat(index, "-").concat(optIndex),
|
|
790
809
|
"data-label": opt.label,
|
|
791
810
|
"data-list-item-label": "".concat(typeof opt.listItemLabel === 'undefined' ? '' : opt.listItemLabel),
|
|
@@ -837,6 +856,7 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
837
856
|
"data-disabled": disabled || (typeof item.disabled !== 'undefined' ? "".concat(item.disabled) : 'false')
|
|
838
857
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_checkbox__WEBPACK_IMPORTED_MODULE_1___default()), _extends({
|
|
839
858
|
wrapperClassName: "",
|
|
859
|
+
name: "".concat(name, "-checkbox-item"),
|
|
840
860
|
"data-index": index,
|
|
841
861
|
"data-label": item.label,
|
|
842
862
|
"data-list-item-label": "".concat(typeof item.listItemLabel === 'undefined' ? '' : item.listItemLabel),
|
|
@@ -472,7 +472,8 @@ var MultipleSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardR
|
|
|
472
472
|
hasErr = _useState10[0],
|
|
473
473
|
setHasErr = _useState10[1];
|
|
474
474
|
var multiSelControlOptionExist = function multiSelControlOptionExist(arr, val) {
|
|
475
|
-
|
|
475
|
+
var _data = arr.filter(Boolean);
|
|
476
|
+
return _data.map(function (v) {
|
|
476
477
|
return v.toString();
|
|
477
478
|
}).includes(val.toString());
|
|
478
479
|
};
|
package/lib/cjs/Radio/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var Radio = function Radio(props) {
|
|
|
166
166
|
} // Determine whether it is in JSON format
|
|
167
167
|
function _fetchData() {
|
|
168
168
|
_fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
169
|
-
var response, _ORGIN_DATA;
|
|
169
|
+
var response, _ORGIN_DATA, _realValue, filterRes, filterResQueryValue, filterResQueryLabel, _realValue2, _filterRes, _filterResQueryValue, _filterResQueryLabel;
|
|
170
170
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
171
171
|
while (1) switch (_context.prev = _context.next) {
|
|
172
172
|
case 0:
|
|
@@ -175,7 +175,7 @@ var Radio = function Radio(props) {
|
|
|
175
175
|
|
|
176
176
|
//
|
|
177
177
|
if (!(_typeof(fetchFuncAsync) === 'object')) {
|
|
178
|
-
_context.next =
|
|
178
|
+
_context.next = 21;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
_context.next = 4;
|
|
@@ -194,8 +194,21 @@ var Radio = function Radio(props) {
|
|
|
194
194
|
_ORGIN_DATA = [];
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// If the default value is label, match value
|
|
198
|
+
_realValue = value;
|
|
199
|
+
filterRes = [];
|
|
200
|
+
filterResQueryValue = _ORGIN_DATA.filter(function (item) {
|
|
201
|
+
return item.value == value;
|
|
202
|
+
});
|
|
203
|
+
filterResQueryLabel = _ORGIN_DATA.filter(function (item) {
|
|
204
|
+
return item.label == value;
|
|
205
|
+
});
|
|
206
|
+
filterRes = filterResQueryValue;
|
|
207
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
208
|
+
if (filterRes.length > 0) _realValue = filterRes[0].value;
|
|
209
|
+
|
|
197
210
|
//
|
|
198
|
-
setControlValue(
|
|
211
|
+
setControlValue(_realValue); // value must be initialized
|
|
199
212
|
|
|
200
213
|
//
|
|
201
214
|
setDataInit(_ORGIN_DATA); // data must be initialized
|
|
@@ -203,9 +216,22 @@ var Radio = function Radio(props) {
|
|
|
203
216
|
//
|
|
204
217
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(_ORGIN_DATA);
|
|
205
218
|
return _context.abrupt("return", _ORGIN_DATA);
|
|
206
|
-
case
|
|
219
|
+
case 21:
|
|
220
|
+
// If the default value is label, match value
|
|
221
|
+
_realValue2 = value;
|
|
222
|
+
_filterRes = [];
|
|
223
|
+
_filterResQueryValue = optionsDataInit.filter(function (item) {
|
|
224
|
+
return item.value == value;
|
|
225
|
+
});
|
|
226
|
+
_filterResQueryLabel = optionsDataInit.filter(function (item) {
|
|
227
|
+
return item.label == value;
|
|
228
|
+
});
|
|
229
|
+
_filterRes = _filterResQueryValue;
|
|
230
|
+
if (_filterResQueryValue.length === 0) _filterRes = _filterResQueryLabel;
|
|
231
|
+
if (_filterRes.length > 0) _realValue2 = _filterRes[0].value;
|
|
232
|
+
|
|
207
233
|
//
|
|
208
|
-
setControlValue(
|
|
234
|
+
setControlValue(_realValue2); // value must be initialized
|
|
209
235
|
|
|
210
236
|
//
|
|
211
237
|
setDataInit(optionsDataInit); // data must be initialized
|
|
@@ -213,7 +239,7 @@ var Radio = function Radio(props) {
|
|
|
213
239
|
//
|
|
214
240
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(optionsDataInit);
|
|
215
241
|
return _context.abrupt("return", optionsDataInit);
|
|
216
|
-
case
|
|
242
|
+
case 32:
|
|
217
243
|
case "end":
|
|
218
244
|
return _context.stop();
|
|
219
245
|
}
|
package/lib/cjs/Table/index.js
CHANGED
|
@@ -1074,7 +1074,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1074
1074
|
} // Determine whether it is in JSON format
|
|
1075
1075
|
function _fetchData() {
|
|
1076
1076
|
_fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
1077
|
-
var response, _ORGIN_DATA;
|
|
1077
|
+
var response, _ORGIN_DATA, _realValue, filterRes, filterResQueryValue, filterResQueryLabel, _realValue2, _filterRes, _filterResQueryValue, _filterResQueryLabel;
|
|
1078
1078
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1079
1079
|
while (1) switch (_context.prev = _context.next) {
|
|
1080
1080
|
case 0:
|
|
@@ -1083,7 +1083,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1083
1083
|
|
|
1084
1084
|
//
|
|
1085
1085
|
if (!(_typeof(fetchFuncAsync) === 'object')) {
|
|
1086
|
-
_context.next =
|
|
1086
|
+
_context.next = 21;
|
|
1087
1087
|
break;
|
|
1088
1088
|
}
|
|
1089
1089
|
_context.next = 4;
|
|
@@ -1102,8 +1102,21 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1102
1102
|
_ORGIN_DATA = [];
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
|
+
// If the default value is label, match value
|
|
1106
|
+
_realValue = value;
|
|
1107
|
+
filterRes = [];
|
|
1108
|
+
filterResQueryValue = _ORGIN_DATA.filter(function (item) {
|
|
1109
|
+
return item.value == value;
|
|
1110
|
+
});
|
|
1111
|
+
filterResQueryLabel = _ORGIN_DATA.filter(function (item) {
|
|
1112
|
+
return item.label == value;
|
|
1113
|
+
});
|
|
1114
|
+
filterRes = filterResQueryValue;
|
|
1115
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
1116
|
+
if (filterRes.length > 0) _realValue = filterRes[0].value;
|
|
1117
|
+
|
|
1105
1118
|
//
|
|
1106
|
-
setControlValue(
|
|
1119
|
+
setControlValue(_realValue); // value must be initialized
|
|
1107
1120
|
|
|
1108
1121
|
//
|
|
1109
1122
|
setDataInit(_ORGIN_DATA); // data must be initialized
|
|
@@ -1111,9 +1124,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1111
1124
|
//
|
|
1112
1125
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(_ORGIN_DATA);
|
|
1113
1126
|
return _context.abrupt("return", _ORGIN_DATA);
|
|
1114
|
-
case
|
|
1127
|
+
case 21:
|
|
1128
|
+
// If the default value is label, match value
|
|
1129
|
+
_realValue2 = value;
|
|
1130
|
+
_filterRes = [];
|
|
1131
|
+
_filterResQueryValue = optionsDataInit.filter(function (item) {
|
|
1132
|
+
return item.value == value;
|
|
1133
|
+
});
|
|
1134
|
+
_filterResQueryLabel = optionsDataInit.filter(function (item) {
|
|
1135
|
+
return item.label == value;
|
|
1136
|
+
});
|
|
1137
|
+
_filterRes = _filterResQueryValue;
|
|
1138
|
+
if (_filterResQueryValue.length === 0) _filterRes = _filterResQueryLabel;
|
|
1139
|
+
if (_filterRes.length > 0) _realValue2 = _filterRes[0].value;
|
|
1140
|
+
|
|
1115
1141
|
//
|
|
1116
|
-
setControlValue(
|
|
1142
|
+
setControlValue(_realValue2); // value must be initialized
|
|
1117
1143
|
|
|
1118
1144
|
//
|
|
1119
1145
|
setDataInit(optionsDataInit); // data must be initialized
|
|
@@ -1121,7 +1147,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1121
1147
|
//
|
|
1122
1148
|
onFetch === null || onFetch === void 0 ? void 0 : onFetch(optionsDataInit);
|
|
1123
1149
|
return _context.abrupt("return", optionsDataInit);
|
|
1124
|
-
case
|
|
1150
|
+
case 32:
|
|
1125
1151
|
case "end":
|
|
1126
1152
|
return _context.stop();
|
|
1127
1153
|
}
|
|
@@ -293,7 +293,15 @@ var Textarea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
293
293
|
// update default value
|
|
294
294
|
//--------------
|
|
295
295
|
if (typeof value !== 'undefined') {
|
|
296
|
-
|
|
296
|
+
if (value.length > 0 && autoSize) {
|
|
297
|
+
// Recalculate height if default value exceeds initial height
|
|
298
|
+
setChangedVal('');
|
|
299
|
+
setTimeout(function () {
|
|
300
|
+
setChangedVal("".concat(value));
|
|
301
|
+
}, 0);
|
|
302
|
+
} else {
|
|
303
|
+
setChangedVal("".concat(value)); // Avoid displaying the number 0
|
|
304
|
+
}
|
|
297
305
|
}
|
|
298
306
|
}, [value]);
|
|
299
307
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
package/lib/cjs/Tooltip/index.js
CHANGED
|
@@ -397,6 +397,7 @@ var Tooltip = function Tooltip(props) {
|
|
|
397
397
|
className: "tooltip__content"
|
|
398
398
|
}, content))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
399
399
|
ref: rootRef,
|
|
400
|
+
"data-overlay-id": "tooltip__wrapper-".concat(idRes),
|
|
400
401
|
className: "tooltip__trigger d-inline-block",
|
|
401
402
|
onMouseEnter: handleMouseEnter,
|
|
402
403
|
onMouseLeave: handleMouseLeave
|
|
@@ -303,7 +303,8 @@
|
|
|
303
303
|
}
|
|
304
304
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-title,
|
|
305
305
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-content {
|
|
306
|
-
word-
|
|
306
|
+
word-wrap: break-word;
|
|
307
|
+
word-break: break-word;
|
|
307
308
|
max-width: var(--e-cal-tl-table-cell-max-w);
|
|
308
309
|
/* If the maximum width is not increased and the screen becomes smaller,
|
|
309
310
|
the cell width of ".e-cal-tl-table__datagrid-header__content" may be
|
|
@@ -318,7 +319,8 @@
|
|
|
318
319
|
}
|
|
319
320
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-headertitle,
|
|
320
321
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-title {
|
|
321
|
-
word-
|
|
322
|
+
word-wrap: break-word;
|
|
323
|
+
word-break: break-word;
|
|
322
324
|
}
|
|
323
325
|
.e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-headertitle {
|
|
324
326
|
width: var(--e-cal-tl-table-header-w);
|
package/lib/css/Tree/index.css
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
padding: 0.5rem 0;
|
|
23
23
|
outline: none; /* When using "tabindex" please set */
|
|
24
|
-
word-
|
|
24
|
+
word-wrap: break-word;
|
|
25
|
+
word-break: break-word;
|
|
25
26
|
/*------ line ------*/
|
|
26
27
|
/*------ has checkbox ------*/
|
|
27
28
|
/*------ hide arrow ------*/
|
|
@@ -374,7 +374,8 @@
|
|
|
374
374
|
/* cell */
|
|
375
375
|
.e-cal-tl-table__cell-cushion-title,
|
|
376
376
|
.e-cal-tl-table__cell-cushion-content {
|
|
377
|
-
word-
|
|
377
|
+
word-wrap: break-word;
|
|
378
|
+
word-break: break-word;
|
|
378
379
|
max-width: var(--e-cal-tl-table-cell-max-w);
|
|
379
380
|
|
|
380
381
|
/* If the maximum width is not increased and the screen becomes smaller,
|
|
@@ -393,7 +394,8 @@
|
|
|
393
394
|
|
|
394
395
|
.e-cal-tl-table__cell-cushion-headertitle,
|
|
395
396
|
.e-cal-tl-table__cell-cushion-title {
|
|
396
|
-
word-
|
|
397
|
+
word-wrap: break-word;
|
|
398
|
+
word-break: break-word;
|
|
397
399
|
}
|
|
398
400
|
|
|
399
401
|
/* header */
|
|
@@ -737,6 +737,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
737
737
|
<td
|
|
738
738
|
className={`e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ${eventSourcesData && _currentData.length > 0 ? 'has-event' : ''} ${d > 0 ? '' : 'empty'} ${d === now.getDate() ? 'today' : ''} ${d === day && tableRowNum === rowIndex ? 'selected' : ''} ${isLastCol ? 'last-cell' : ''}`}
|
|
739
739
|
key={"col" + i}
|
|
740
|
+
data-overlay-id={`e-cal-tl-table__cell-tooltipwrapper-${idRes}`}
|
|
740
741
|
data-index={colIndex-1}
|
|
741
742
|
colSpan={1}
|
|
742
743
|
data-date={getCalendarDate(_dateShow)}
|
|
@@ -970,6 +971,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
970
971
|
<td
|
|
971
972
|
className={`e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ${_currentData.length > 0 ? 'has-event' : ''} ${d > 0 ? '' : 'empty'} ${d === now.getDate() ? 'today' : ''} ${d === day && tableRowNum === rowIndex ? 'selected' : ''} ${isLastCol ? 'last-cell' : ''}`}
|
|
972
973
|
key={"col" + i}
|
|
974
|
+
data-overlay-id={`e-cal-tl-table__cell-tooltipwrapper-${idRes}`}
|
|
973
975
|
data-index={colIndex-1}
|
|
974
976
|
colSpan={1}
|
|
975
977
|
data-date={getCalendarDate(_dateShow)}
|
|
@@ -194,8 +194,11 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
|
|
|
194
194
|
labels: [],
|
|
195
195
|
values: []
|
|
196
196
|
});
|
|
197
|
-
const multiSelControlOptionExist = (arr: any[], val: any) =>
|
|
198
|
-
|
|
197
|
+
const multiSelControlOptionExist = (arr: any[], val: any) => {
|
|
198
|
+
const _data = arr.filter(Boolean);
|
|
199
|
+
return _data.map((v: any) => v.toString()).includes(val.toString());
|
|
200
|
+
};
|
|
201
|
+
|
|
199
202
|
|
|
200
203
|
// clean trigger
|
|
201
204
|
const CLEAN_TRIGGER_VALID = typeof cleanTrigger === 'undefined' ? false : (cleanTrigger ? cleanTrigger.valid : false);
|
|
@@ -458,6 +461,8 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
|
|
|
458
461
|
}
|
|
459
462
|
|
|
460
463
|
} else {
|
|
464
|
+
|
|
465
|
+
// If the default value is label, match value
|
|
461
466
|
const filterResQueryValue = _ORGIN_DATA.filter((item: any) => item.value == defaultValue);
|
|
462
467
|
const filterResQueryLabel = _ORGIN_DATA.filter((item: any) => item.label == defaultValue);
|
|
463
468
|
|
|
@@ -589,6 +594,8 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
|
|
|
589
594
|
|
|
590
595
|
// STEP 3: ===========
|
|
591
596
|
// value & label must be initialized
|
|
597
|
+
|
|
598
|
+
// If the default value is label, match value
|
|
592
599
|
let filterRes: any = [];
|
|
593
600
|
const filterResQueryValue = optionsDataInit.filter((item: any) => item.value == defaultValue);
|
|
594
601
|
const filterResQueryLabel = optionsDataInit.filter((item: any) => item.label == defaultValue);
|
|
@@ -1840,7 +1847,13 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
|
|
|
1840
1847
|
|
|
1841
1848
|
{label ? <><div className="mf-select__label"><label htmlFor={`label-${idRes}`} className="form-label" dangerouslySetInnerHTML={{ __html: `${label}` }}></label></div></> : null}
|
|
1842
1849
|
|
|
1843
|
-
<div
|
|
1850
|
+
<div
|
|
1851
|
+
data-overlay-id={`mf-select__options-wrapper-${idRes}`}
|
|
1852
|
+
id={`mf-select__wrapper-${idRes}`}
|
|
1853
|
+
className={`mf-select__wrapper ${wrapperClassName || wrapperClassName === '' ? wrapperClassName : 'mb-3 position-relative'} ${MULTI_SEL_VALID ? 'multiple-selection' : ''} ${isOpen ? 'active focus' : ''}`}
|
|
1854
|
+
ref={rootRef}
|
|
1855
|
+
|
|
1856
|
+
>
|
|
1844
1857
|
|
|
1845
1858
|
|
|
1846
1859
|
{/* RESULT CONTAINER */}
|
|
@@ -1856,6 +1869,7 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
|
|
|
1856
1869
|
}}
|
|
1857
1870
|
tabIndex={tabIndex || 0}
|
|
1858
1871
|
type="text"
|
|
1872
|
+
data-overlay-id={`mf-select__options-wrapper-${idRes}`}
|
|
1859
1873
|
id={`label-${idRes}`}
|
|
1860
1874
|
|
|
1861
1875
|
// Don't use "name", it's just a container to display the label
|
|
@@ -112,7 +112,19 @@ const MultipleCheckboxes = forwardRef((props: MultipleCheckboxesProps, ref: any)
|
|
|
112
112
|
|
|
113
113
|
const _val = VALUE_BY_BRACKETS ? extractContentsOfBrackets(defaultValue) : defaultValue.trim().replace(/^\,|\,$/g, '').split(',');
|
|
114
114
|
if (Array.isArray(_val)) {
|
|
115
|
-
|
|
115
|
+
|
|
116
|
+
// If the default value is label, match value
|
|
117
|
+
let _realValue: any[] = _val.filter((v: any) => v !== '');
|
|
118
|
+
let filterRes: any = [];
|
|
119
|
+
const filterResQueryValue = optionsRes.filter((item: any) => _val.includes(item.value));
|
|
120
|
+
const filterResQueryLabel = optionsRes.filter((item: any) => _val.includes(item.label));
|
|
121
|
+
|
|
122
|
+
filterRes = filterResQueryValue;
|
|
123
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
124
|
+
if (filterRes.length > 0) _realValue = filterRes.filter((v: any) => v.value !== '').map((k: any) => k.value);
|
|
125
|
+
|
|
126
|
+
//
|
|
127
|
+
setValSelected(_realValue);
|
|
116
128
|
} else {
|
|
117
129
|
setValSelected([]);
|
|
118
130
|
}
|
|
@@ -169,6 +181,7 @@ const MultipleCheckboxes = forwardRef((props: MultipleCheckboxesProps, ref: any)
|
|
|
169
181
|
>
|
|
170
182
|
<Checkbox
|
|
171
183
|
wrapperClassName=""
|
|
184
|
+
name={`${name}-checkbox-item`}
|
|
172
185
|
data-index={`${index}-${optIndex}`}
|
|
173
186
|
data-label={opt.label}
|
|
174
187
|
data-list-item-label={`${typeof opt.listItemLabel === 'undefined' ? '' : opt.listItemLabel}`}
|
|
@@ -228,6 +241,7 @@ const MultipleCheckboxes = forwardRef((props: MultipleCheckboxesProps, ref: any)
|
|
|
228
241
|
>
|
|
229
242
|
<Checkbox
|
|
230
243
|
wrapperClassName=""
|
|
244
|
+
name={`${name}-checkbox-item`}
|
|
231
245
|
data-index={index}
|
|
232
246
|
data-label={item.label}
|
|
233
247
|
data-list-item-label={`${typeof item.listItemLabel === 'undefined' ? '' : item.listItemLabel}`}
|
|
@@ -113,7 +113,11 @@ const MultipleSelect = forwardRef((props: MultipleSelectProps, ref: any) => {
|
|
|
113
113
|
const [hasErr, setHasErr] = useState<boolean>(false);
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
const multiSelControlOptionExist = (arr: any[], val: any) =>
|
|
116
|
+
const multiSelControlOptionExist = (arr: any[], val: any) => {
|
|
117
|
+
const _data = arr.filter(Boolean);
|
|
118
|
+
return _data.map((v: any) => v.toString()).includes(val.toString());
|
|
119
|
+
};
|
|
120
|
+
|
|
117
121
|
|
|
118
122
|
async function fetchData(params: any) {
|
|
119
123
|
|
package/lib/esm/Radio/index.tsx
CHANGED
|
@@ -113,8 +113,21 @@ const Radio = (props: RadioProps) => {
|
|
|
113
113
|
_ORGIN_DATA = [];
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
// If the default value is label, match value
|
|
119
|
+
let _realValue = value;
|
|
120
|
+
let filterRes: any = [];
|
|
121
|
+
const filterResQueryValue = _ORGIN_DATA.filter((item: any) => item.value == value);
|
|
122
|
+
const filterResQueryLabel = _ORGIN_DATA.filter((item: any) => item.label == value);
|
|
123
|
+
|
|
124
|
+
filterRes = filterResQueryValue;
|
|
125
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
126
|
+
if (filterRes.length > 0) _realValue = filterRes[0].value;
|
|
127
|
+
|
|
128
|
+
|
|
116
129
|
//
|
|
117
|
-
setControlValue(
|
|
130
|
+
setControlValue(_realValue); // value must be initialized
|
|
118
131
|
|
|
119
132
|
|
|
120
133
|
//
|
|
@@ -126,8 +139,22 @@ const Radio = (props: RadioProps) => {
|
|
|
126
139
|
return _ORGIN_DATA;
|
|
127
140
|
} else {
|
|
128
141
|
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
// If the default value is label, match value
|
|
145
|
+
let _realValue = value;
|
|
146
|
+
let filterRes: any = [];
|
|
147
|
+
const filterResQueryValue = optionsDataInit.filter((item: any) => item.value == value);
|
|
148
|
+
const filterResQueryLabel = optionsDataInit.filter((item: any) => item.label == value);
|
|
149
|
+
|
|
150
|
+
filterRes = filterResQueryValue;
|
|
151
|
+
if (filterResQueryValue.length === 0) filterRes = filterResQueryLabel;
|
|
152
|
+
if (filterRes.length > 0) _realValue = filterRes[0].value;
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
129
156
|
//
|
|
130
|
-
setControlValue(
|
|
157
|
+
setControlValue(_realValue); // value must be initialized
|
|
131
158
|
|
|
132
159
|
//
|
|
133
160
|
setDataInit(optionsDataInit); // data must be initialized
|
|
@@ -140,7 +140,18 @@ const Textarea = forwardRef((props: TextareaProps, ref: any) => {
|
|
|
140
140
|
// update default value
|
|
141
141
|
//--------------
|
|
142
142
|
if (typeof value !== 'undefined') {
|
|
143
|
-
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
if (value.length > 0 && autoSize) {
|
|
146
|
+
// Recalculate height if default value exceeds initial height
|
|
147
|
+
setChangedVal('');
|
|
148
|
+
setTimeout(() => {
|
|
149
|
+
setChangedVal(`${value}`);
|
|
150
|
+
}, 0);
|
|
151
|
+
} else {
|
|
152
|
+
setChangedVal(`${value}`); // Avoid displaying the number 0
|
|
153
|
+
}
|
|
154
|
+
|
|
144
155
|
}
|
|
145
156
|
|
|
146
157
|
}, [value]);
|
|
@@ -157,6 +157,8 @@ const Tooltip = (props: TooltipProps) => {
|
|
|
157
157
|
stopTimerHover();
|
|
158
158
|
stopTimerMouseout();
|
|
159
159
|
startTimerMouseout();
|
|
160
|
+
|
|
161
|
+
|
|
160
162
|
}
|
|
161
163
|
|
|
162
164
|
|
|
@@ -216,6 +218,7 @@ const Tooltip = (props: TooltipProps) => {
|
|
|
216
218
|
|
|
217
219
|
<div
|
|
218
220
|
ref={rootRef}
|
|
221
|
+
data-overlay-id={`tooltip__wrapper-${idRes}`}
|
|
219
222
|
className="tooltip__trigger d-inline-block"
|
|
220
223
|
onMouseEnter={handleMouseEnter}
|
|
221
224
|
onMouseLeave={handleMouseLeave}
|
package/lib/esm/Tree/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.120",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|