@acorex/platform 21.0.0-next.51 → 21.0.0-next.53

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.
@@ -244,13 +244,14 @@ class AXPSettingDefinitionProviderContext {
244
244
  this.rootGroups = [];
245
245
  this.groupMap = new Map();
246
246
  }
247
- addGroup(name, title, description, icon, pageTitle) {
247
+ addGroup(name, title, description, icon, pageTitle, priority) {
248
248
  const newGroup = {
249
249
  name,
250
250
  title,
251
251
  pageTitle,
252
252
  description,
253
253
  icon,
254
+ priority,
254
255
  groups: [],
255
256
  sections: [],
256
257
  };
@@ -299,13 +300,14 @@ class AXPSettingDefinitionGroupBuilder {
299
300
  }
300
301
  return new AXPSettingDefinitionSectionBuilder(this, foundSection);
301
302
  }
302
- addGroup(name, title, description, icon, pageTitle) {
303
+ addGroup(name, title, description, icon, pageTitle, priority) {
303
304
  const newGroup = {
304
305
  name,
305
306
  title,
306
307
  pageTitle,
307
308
  description: description,
308
309
  icon,
310
+ priority,
309
311
  groups: [],
310
312
  sections: [],
311
313
  };
@@ -428,7 +430,7 @@ class AXPSettingDefinitionProviderService {
428
430
  }))
429
431
  .filter((group) => group.sections.length > 0 || group.groups.length > 0); // Keep groups with valid sections or nested groups
430
432
  };
431
- return sortBy(filterByScope(this.cache, scope), 'title');
433
+ return sortBy(filterByScope(this.cache, scope), [(group) => group.priority ?? 1000, 'title']);
432
434
  }
433
435
  async defaultValues() {
434
436
  const defaults = {};
@@ -1275,7 +1277,7 @@ class AXPHomePageSettingProvider {
1275
1277
  }
1276
1278
  // Define the 'General Settings' group
1277
1279
  context
1278
- .addGroup('general', `${I18N}.general.nav-title`, `${I18N}.general.description`, 'fa-light fa-palette', `${I18N}.general.title`)
1280
+ .addGroup('general', `${I18N}.general.nav-title`, `${I18N}.general.description`, 'fa-light fa-palette', `${I18N}.general.title`, 1)
1279
1281
  // Add the 'Startup' section
1280
1282
  .addSection('startup', `${I18N}.general.startup.title`, `${I18N}.general.startup.description`)
1281
1283
  // Add the 'Home Page' setting