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