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.umd.js
CHANGED
@@ -2532,11 +2532,7 @@
|
|
2532
2532
|
var locale = window.navigator.userLanguage || window.navigator.language;
|
2533
2533
|
switch (format) {
|
2534
2534
|
case FORMATS$1.TOKENS:
|
2535
|
-
text = value && Array.isArray(value) ? value.
|
2536
|
-
return /*#__PURE__*/React__default["default"].createElement("span", {
|
2537
|
-
className: "token"
|
2538
|
-
}, token);
|
2539
|
-
}).join(", ") : value;
|
2535
|
+
text = value && Array.isArray(value) ? value.join(", ") : value;
|
2540
2536
|
break;
|
2541
2537
|
case FORMATS$1.COLOR:
|
2542
2538
|
text = /*#__PURE__*/React__default["default"].createElement("input", {
|
@@ -2678,6 +2674,9 @@
|
|
2678
2674
|
}
|
2679
2675
|
}
|
2680
2676
|
var tks = Array.isArray(tokens) ? tokens : [];
|
2677
|
+
var sortedOptions = options ? options.sort(function (a, b) {
|
2678
|
+
return a.label.localeCompare(b.label);
|
2679
|
+
}) : null;
|
2681
2680
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2682
2681
|
className: "tokenField"
|
2683
2682
|
}, /*#__PURE__*/React__default["default"].createElement("label", null, label), tks.map(function (text, index) {
|
@@ -2696,7 +2695,7 @@
|
|
2696
2695
|
});
|
2697
2696
|
}), options ? /*#__PURE__*/React__default["default"].createElement(DropDown, {
|
2698
2697
|
onChange: changeDropDown,
|
2699
|
-
options:
|
2698
|
+
options: sortedOptions,
|
2700
2699
|
predictive: true,
|
2701
2700
|
verbose: false
|
2702
2701
|
}) : /*#__PURE__*/React__default["default"].createElement("input", {
|