jupiter-dynamic-forms 1.14.5 → 1.14.6

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.mjs CHANGED
@@ -587,10 +587,7 @@ class XBRLFormBuilder {
587
587
  const hypercubeData = (_a = xbrlInput.hypercubes) == null ? void 0 : _a[0];
588
588
  const datatypes = Array.isArray(xbrlInput.datatypes) ? xbrlInput.datatypes : ((_b = xbrlInput.datatypes) == null ? void 0 : _b.concepts) || [];
589
589
  const sections = [];
590
- const sortedRoles = [...presentationData.roles].sort((a2, b2) => {
591
- return a2.role.localeCompare(b2.role);
592
- });
593
- sortedRoles.forEach((role) => {
590
+ presentationData.roles.forEach((role) => {
594
591
  const section2 = this.buildSectionFromRole(role, periodStartDate, periodEndDate, hypercubeData, language, periodPreferences);
595
592
  if (datatypes && datatypes.length > 0) {
596
593
  section2.datatypes = datatypes;
@@ -5152,9 +5149,7 @@ let JupiterFilterRolesDialog = class extends LitElement {
5152
5149
  }
5153
5150
  _updateFilteredRoles() {
5154
5151
  if (!this._searchQuery.trim()) {
5155
- this._filteredRoles = [...this.availableRoles].sort((a2, b2) => {
5156
- return a2.title.localeCompare(b2.title);
5157
- });
5152
+ this._filteredRoles = [...this.availableRoles];
5158
5153
  return;
5159
5154
  }
5160
5155
  const query = this._searchQuery.toLowerCase().trim();
@@ -5166,9 +5161,7 @@ let JupiterFilterRolesDialog = class extends LitElement {
5166
5161
  const uriMatch = this._searchInRoleURI(role, query);
5167
5162
  return titleMatch || idMatch || descriptionMatch || uriMatch;
5168
5163
  });
5169
- this._filteredRoles = filtered.sort((a2, b2) => {
5170
- return a2.title.localeCompare(b2.title);
5171
- });
5164
+ this._filteredRoles = filtered;
5172
5165
  }
5173
5166
  _searchInRoleURI(role, query) {
5174
5167
  var _a;