@trops/dash-core 0.1.129 → 0.1.131

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.js CHANGED
@@ -32763,6 +32763,8 @@ var DashboardDetail = function DashboardDetail(_ref2) {
32763
32763
  label: m.name,
32764
32764
  value: String(m.id)
32765
32765
  };
32766
+ }).sort(function (a, b) {
32767
+ return (a.label || "").localeCompare(b.label || "");
32766
32768
  });
32767
32769
  var themeOptions = _toConsumableArray(Object.entries(themes || {}).sort(function (_ref3, _ref4) {
32768
32770
  var _ref5 = _slicedToArray(_ref3, 2),
@@ -33367,7 +33369,9 @@ var FoldersSection = function FoldersSection(_ref) {
33367
33369
  });
33368
33370
  var deleteHasDashboards = deleteTarget && getDashboardCount(deleteTarget.id) > 0;
33369
33371
  var listContent = /*#__PURE__*/jsxRuntime.jsxs(DashReact.Sidebar.Content, {
33370
- children: [menuItems.map(function (item) {
33372
+ children: [_toConsumableArray(menuItems).sort(function (a, b) {
33373
+ return (a.name || "").localeCompare(b.name || "");
33374
+ }).map(function (item) {
33371
33375
  var isSelected = selectedId === item.id && !isCreating;
33372
33376
  var count = getDashboardCount(item.id);
33373
33377
  return /*#__PURE__*/jsxRuntime.jsx(DashReact.Sidebar.Item, {
@@ -42302,6 +42306,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
42302
42306
  value: m.id,
42303
42307
  icon: m.icon || m.folder || "folder"
42304
42308
  };
42309
+ }).sort(function (a, b) {
42310
+ return (a.label || "").localeCompare(b.label || "");
42305
42311
  }),
42306
42312
  onChange: onFolderChange,
42307
42313
  placeholder: "Folder",