ywana-core8 0.0.972 → 0.0.974
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/index.cjs +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +1 -1
- package/src/html/tokenfield.js +4 -2
package/dist/index.cjs
CHANGED
@@ -2539,11 +2539,7 @@ var StringCellViewer = function StringCellViewer(_ref11) {
|
|
2539
2539
|
var locale = window.navigator.userLanguage || window.navigator.language;
|
2540
2540
|
switch (format) {
|
2541
2541
|
case FORMATS$1.TOKENS:
|
2542
|
-
text = value && Array.isArray(value) ? value.
|
2543
|
-
return /*#__PURE__*/React__default["default"].createElement("span", {
|
2544
|
-
className: "token"
|
2545
|
-
}, token);
|
2546
|
-
}).join(", ") : value;
|
2542
|
+
text = value && Array.isArray(value) ? value.join(", ") : value;
|
2547
2543
|
break;
|
2548
2544
|
case FORMATS$1.COLOR:
|
2549
2545
|
text = /*#__PURE__*/React__default["default"].createElement("input", {
|
@@ -2685,6 +2681,9 @@ var TokenField = function TokenField(_ref) {
|
|
2685
2681
|
}
|
2686
2682
|
}
|
2687
2683
|
var tks = Array.isArray(tokens) ? tokens : [];
|
2684
|
+
var sortedOptions = options ? options.sort(function (a, b) {
|
2685
|
+
return a.label.localeCompare(b.label);
|
2686
|
+
}) : null;
|
2688
2687
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2689
2688
|
className: "tokenField"
|
2690
2689
|
}, /*#__PURE__*/React__default["default"].createElement("label", null, label), tks.map(function (text, index) {
|
@@ -2703,7 +2702,7 @@ var TokenField = function TokenField(_ref) {
|
|
2703
2702
|
});
|
2704
2703
|
}), options ? /*#__PURE__*/React__default["default"].createElement(DropDown, {
|
2705
2704
|
onChange: changeDropDown,
|
2706
|
-
options:
|
2705
|
+
options: sortedOptions,
|
2707
2706
|
predictive: true,
|
2708
2707
|
verbose: false
|
2709
2708
|
}) : /*#__PURE__*/React__default["default"].createElement("input", {
|