@acorex/platform 19.2.10 → 19.2.11

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.
Files changed (34) hide show
  1. package/common/lib/settings/settings.service.d.ts +1 -0
  2. package/fesm2022/acorex-platform-common.mjs +23 -3
  3. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  4. package/fesm2022/acorex-platform-layout-builder.mjs +5 -2
  5. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  6. package/fesm2022/acorex-platform-layout-entity.mjs +57 -22
  7. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  8. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BzLgFr7D.mjs → acorex-platform-themes-default-entity-master-list-view.component-7KY7G6qo.mjs} +6 -18
  9. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-7KY7G6qo.mjs.map +1 -0
  10. package/fesm2022/acorex-platform-themes-default.mjs +3 -3
  11. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-widgets.mjs +478 -364
  13. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  14. package/layout/builder/lib/builder/widget-column-renderer.d.ts +2 -1
  15. package/layout/builder/lib/builder/widget-map.d.ts +1 -0
  16. package/layout/entity/lib/entity-master-list.viewmodel.d.ts +2 -2
  17. package/layout/entity/lib/entity.viewmodel.d.ts +1 -0
  18. package/package.json +9 -9
  19. package/widgets/lib/widgets/advance/file/file-box-widget-view.component.d.ts +9 -7
  20. package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget-edit.component.d.ts +22 -15
  21. package/widgets/lib/widgets/charts/bar-chart/bar-chart.type.d.ts +4 -12
  22. package/widgets/lib/widgets/charts/gauge-chart/gauge-chart-widget-edit.component.d.ts +29 -1
  23. package/widgets/lib/widgets/charts/gauge-chart/gauge-chart.type.d.ts +7 -3
  24. package/widgets/lib/widgets/charts/sticky-note/index.d.ts +2 -0
  25. package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget-edit.component.d.ts +9 -0
  26. package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget.config.d.ts +7 -0
  27. package/widgets/lib/widgets/editors/tabular-data/index.d.ts +3 -3
  28. package/widgets/lib/widgets/editors/tabular-data/{table-widget-column.component.d.ts → tabular-data-column.component.d.ts} +3 -3
  29. package/widgets/lib/widgets/editors/tabular-data/tabular-data-filter.component.d.ts +6 -0
  30. package/widgets/lib/widgets/editors/tabular-data/tabular-data-widget-edit.component.d.ts +3 -3
  31. package/widgets/lib/widgets/editors/tabular-data/{table-widget-print.component.d.ts → tabular-data-widget-print.component.d.ts} +3 -3
  32. package/widgets/lib/widgets/index.d.ts +2 -0
  33. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BzLgFr7D.mjs.map +0 -1
  34. package/widgets/lib/widgets/editors/tabular-data/table-widget-filter.component.d.ts +0 -6
@@ -32,5 +32,6 @@ declare class ScopedSettingService {
32
32
  defaultValues(): Promise<Record<string, unknown>>;
33
33
  set<T = any>(key: string, value: T): Promise<void>;
34
34
  set<T = any>(values: Record<string, T>): Promise<void>;
35
+ update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
35
36
  }
36
37
  export {};
@@ -2287,7 +2287,12 @@ class AXPSettingService {
2287
2287
  this.onChanged = new Subject();
2288
2288
  this.broadcastChannel = new BroadcastChannel('AXPSettingChannel'); // BroadcastChannel for sync
2289
2289
  // Initialize scoped caches for dynamic scopes
2290
- const staticScopes = [AXPSettingScope.Environment, AXPSettingScope.Global, AXPSettingScope.Tenant, AXPSettingScope.User];
2290
+ const staticScopes = [
2291
+ AXPSettingScope.Environment,
2292
+ AXPSettingScope.Global,
2293
+ AXPSettingScope.Tenant,
2294
+ AXPSettingScope.User,
2295
+ ];
2291
2296
  staticScopes.forEach((scope) => {
2292
2297
  if (!this.scopedSettingsCache.has(scope)) {
2293
2298
  this.scopedSettingsCache.set(scope, new Map());
@@ -2324,7 +2329,12 @@ class AXPSettingService {
2324
2329
  if (this.scopedSettingsCache.size === 0) {
2325
2330
  await this.load();
2326
2331
  }
2327
- const scopeOrder = [AXPSettingScope.User, AXPSettingScope.Tenant, AXPSettingScope.Global, AXPSettingScope.Environment];
2332
+ const scopeOrder = [
2333
+ AXPSettingScope.User,
2334
+ AXPSettingScope.Tenant,
2335
+ AXPSettingScope.Global,
2336
+ AXPSettingScope.Environment,
2337
+ ];
2328
2338
  for (const scope of scopeOrder) {
2329
2339
  const scopeCache = this.scopedSettingsCache.get(scope);
2330
2340
  if (scopeCache && scopeCache.has(key)) {
@@ -2339,7 +2349,12 @@ class AXPSettingService {
2339
2349
  return get(defaults, key); // Fallback if no value is found
2340
2350
  }
2341
2351
  async defaultValues(scope) {
2342
- let scopeOrder = [AXPSettingScope.Environment, AXPSettingScope.Global, AXPSettingScope.Tenant, AXPSettingScope.User].reverse();
2352
+ let scopeOrder = [
2353
+ AXPSettingScope.Environment,
2354
+ AXPSettingScope.Global,
2355
+ AXPSettingScope.Tenant,
2356
+ AXPSettingScope.User,
2357
+ ].reverse();
2343
2358
  const scopeIndex = scopeOrder.indexOf(scope);
2344
2359
  if (scopeIndex === -1) {
2345
2360
  throw new Error(`Invalid scope: ${scope}`);
@@ -2426,6 +2441,11 @@ class ScopedSettingService {
2426
2441
  });
2427
2442
  }
2428
2443
  }
2444
+ async update(key, updateFn) {
2445
+ const currentValue = await this.get(key);
2446
+ const newValue = updateFn(currentValue);
2447
+ await this.set(key, newValue);
2448
+ }
2429
2449
  }
2430
2450
 
2431
2451
  //TODO Loading, Redirect, Drawer, Show toast