@acorex-platform/framework-client 0.0.10 → 0.0.15

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 (119) hide show
  1. package/fesm2022/acorex-platform-framework-client-auth.mjs +285 -50
  2. package/fesm2022/acorex-platform-framework-client-auth.mjs.map +1 -1
  3. package/fesm2022/{acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs → acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs} +55 -36
  4. package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-framework-client-common-settings-dialog.helper-DQNOCRL6.mjs +29 -0
  6. package/fesm2022/acorex-platform-framework-client-common-settings-dialog.helper-DQNOCRL6.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-framework-client-common.mjs +1576 -408
  8. package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-framework-client-core.mjs +561 -25
  10. package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +154 -42
  12. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
  13. package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CjnQ9hAJ.mjs} +7 -7
  14. package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CjnQ9hAJ.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-fFen8w8M.mjs +77 -0
  16. package/fesm2022/acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-fFen8w8M.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-framework-client-layout-components.mjs +2378 -1274
  18. package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +92 -84
  20. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -1
  21. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-BzUM-JMC.mjs} +3 -3
  22. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-BzUM-JMC.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-Ci_CTFtq.mjs} +6 -6
  24. package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-Ci_CTFtq.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-framework-client-layout-entity-gallery-page.component-DmiB__JR.mjs +256 -0
  26. package/fesm2022/acorex-platform-framework-client-layout-entity-gallery-page.component-DmiB__JR.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +17599 -17114
  28. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs.map +1 -1
  29. package/fesm2022/acorex-platform-framework-client-layout-views.mjs +120 -70
  30. package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
  31. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +302 -263
  32. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
  33. package/fesm2022/{acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs → acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CIwpAXbL.mjs} +2 -2
  34. package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CIwpAXbL.mjs.map +1 -0
  35. package/fesm2022/{acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs → acorex-platform-framework-client-layout-widgets-image-preview.popup-CazpERbX.mjs} +3 -3
  36. package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-CazpERbX.mjs.map +1 -0
  37. package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-DKkJi40s.mjs} +5 -5
  38. package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs.map → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-DKkJi40s.mjs.map} +1 -1
  39. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DtYZfA79.mjs} +3 -3
  40. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DtYZfA79.mjs.map} +1 -1
  41. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-nMUtxAyy.mjs} +10 -10
  42. package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-nMUtxAyy.mjs.map +1 -0
  43. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DvUSZ4hJ.mjs} +5 -5
  44. package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DvUSZ4hJ.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BihIfkZW.mjs +61 -0
  46. package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BihIfkZW.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +2218 -1504
  48. package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -1
  49. package/fesm2022/acorex-platform-framework-client-realtime.mjs +227 -0
  50. package/fesm2022/acorex-platform-framework-client-realtime.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-framework-client-runtime.mjs +201 -13
  52. package/fesm2022/acorex-platform-framework-client-runtime.mjs.map +1 -1
  53. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-QIFX11dh.mjs +158 -0
  54. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-QIFX11dh.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BBdellyL.mjs +119 -0
  56. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BBdellyL.mjs.map +1 -0
  57. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs → acorex-platform-framework-client-themes-default-entity-master-single-view.component-CIf1VWNW.mjs} +5 -6
  58. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-CIf1VWNW.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-C_czT_JC.mjs +48 -0
  60. package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-C_czT_JC.mjs.map +1 -0
  61. package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-C2Wu0YtF.mjs +42 -0
  62. package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-C2Wu0YtF.mjs.map +1 -0
  63. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DRz-kVsT.mjs +19 -0
  64. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DRz-kVsT.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-framework-client-themes-default.mjs +123 -96
  66. package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
  67. package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs → acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs} +3 -3
  68. package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs.map +1 -0
  69. package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs → acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs} +3 -3
  70. package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs.map +1 -0
  71. package/fesm2022/{acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs → acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs} +11 -2
  72. package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs.map +1 -0
  73. package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs → acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs} +7 -7
  74. package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs.map +1 -0
  75. package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs → acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs} +7 -7
  76. package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs.map +1 -0
  77. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +124 -112
  78. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
  79. package/fesm2022/acorex-platform-framework-client-workflow.mjs +26 -483
  80. package/fesm2022/acorex-platform-framework-client-workflow.mjs.map +1 -1
  81. package/package.json +14 -9
  82. package/types/acorex-platform-framework-client-auth.d.ts +76 -5
  83. package/types/acorex-platform-framework-client-common.d.ts +499 -129
  84. package/types/acorex-platform-framework-client-core.d.ts +291 -10
  85. package/types/acorex-platform-framework-client-layout-builder.d.ts +81 -31
  86. package/types/acorex-platform-framework-client-layout-components.d.ts +295 -41
  87. package/types/acorex-platform-framework-client-layout-entity.d.ts +1895 -1743
  88. package/types/acorex-platform-framework-client-layout-views.d.ts +8 -18
  89. package/types/acorex-platform-framework-client-layout-widget-core.d.ts +20 -35
  90. package/types/acorex-platform-framework-client-layout-widgets.d.ts +167 -33
  91. package/types/acorex-platform-framework-client-realtime.d.ts +100 -0
  92. package/types/acorex-platform-framework-client-runtime.d.ts +60 -2
  93. package/types/acorex-platform-framework-client-themes-default.d.ts +4 -48
  94. package/types/acorex-platform-framework-client-workflow.d.ts +16 -127
  95. package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs.map +0 -1
  96. package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs.map +0 -1
  97. package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs.map +0 -1
  98. package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs.map +0 -1
  99. package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs.map +0 -1
  100. package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs.map +0 -1
  101. package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs.map +0 -1
  102. package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs +0 -34
  103. package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs.map +0 -1
  104. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs +0 -160
  105. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs.map +0 -1
  106. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs +0 -121
  107. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs.map +0 -1
  108. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs.map +0 -1
  109. package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs +0 -48
  110. package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs.map +0 -1
  111. package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs +0 -42
  112. package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs.map +0 -1
  113. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs +0 -19
  114. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs.map +0 -1
  115. package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs.map +0 -1
  116. package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs.map +0 -1
  117. package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs.map +0 -1
  118. package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs.map +0 -1
  119. package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { AXPWidgetsCatalog, AXPPlatformScope } from '@acorex-platform/framework-shared/core';
2
2
  import * as i0 from '@angular/core';
3
3
  import { Injectable } from '@angular/core';
4
- import { AXPCommonSettings } from './acorex-platform-framework-client-common.mjs';
4
+ import { AXP_EXPERIENCE_SETTINGS_GROUP, AXP_EXPERIENCE_SETTINGS_SECTIONS, AXPCommonSettings } from './acorex-platform-framework-client-common.mjs';
5
5
 
6
6
  const I18N = '@general:settings';
7
7
  class AXPCommonSettingProvider {
@@ -9,15 +9,14 @@ class AXPCommonSettingProvider {
9
9
  this._injector = _injector;
10
10
  }
11
11
  async provide(context) {
12
- // Define the 'General Settings' group
13
12
  context
14
- .group('general')
15
- ?.addSection('notifications', `${I18N}.general.notifications.title`, `${I18N}.general.notifications.description`)
16
- // Add the 'Enable Operation Toasts' setting
13
+ .group(AXP_EXPERIENCE_SETTINGS_GROUP)
14
+ ?.addSection(AXP_EXPERIENCE_SETTINGS_SECTIONS.Notifications, `${I18N}.experience.notifications.title`, `${I18N}.experience.notifications.description`)
17
15
  .addSetting({
18
16
  key: AXPCommonSettings.EnableOperationToasts,
19
- title: `${I18N}.general.notifications.enable-operation-toasts.title`,
17
+ title: `${I18N}.experience.notifications.enable-operation-toasts.title`,
20
18
  scope: AXPPlatformScope.User,
19
+ overridableAt: [],
21
20
  isInherited: true,
22
21
  defaultValue: true,
23
22
  widget: {
@@ -26,16 +25,15 @@ class AXPCommonSettingProvider {
26
25
  label: null,
27
26
  },
28
27
  },
29
- description: `${I18N}.general.notifications.enable-operation-toasts.description`,
28
+ description: `${I18N}.experience.notifications.enable-operation-toasts.description`,
30
29
  })
31
- // End the 'Notifications' section
32
30
  .endSection()
33
- .addSection('entity', `${I18N}.general.entity.title`, `${I18N}.general.entity.description`)
34
- // Add the 'Enable Operation Toasts' setting
31
+ .addSection(AXP_EXPERIENCE_SETTINGS_SECTIONS.Entity, `${I18N}.experience.entity.title`, `${I18N}.experience.entity.description`)
35
32
  .addSetting({
36
33
  key: AXPCommonSettings.EntityFilterApplyMode,
37
- title: `${I18N}.general.entity.filter-apply-mode.title`,
34
+ title: `${I18N}.experience.entity.filter-apply-mode.title`,
38
35
  scope: AXPPlatformScope.User,
36
+ overridableAt: [],
39
37
  isInherited: true,
40
38
  defaultValue: 'auto',
41
39
  widget: {
@@ -45,17 +43,18 @@ class AXPCommonSettingProvider {
45
43
  valueField: 'value',
46
44
  textField: 'text',
47
45
  dataSource: [
48
- { value: 'auto', text: `${I18N}.general.entity.filter-apply-mode.options.auto` },
49
- { value: 'manual', text: `${I18N}.general.entity.filter-apply-mode.options.manual` },
46
+ { value: 'auto', text: `${I18N}.experience.entity.filter-apply-mode.options.auto` },
47
+ { value: 'manual', text: `${I18N}.experience.entity.filter-apply-mode.options.manual` },
50
48
  ],
51
49
  },
52
50
  },
53
- description: `${I18N}.general.entity.filter-apply-mode.description`,
51
+ description: `${I18N}.experience.entity.filter-apply-mode.description`,
54
52
  })
55
53
  .addSetting({
56
54
  key: AXPCommonSettings.EntityListPersistenceMode,
57
- title: `${I18N}.general.entity.list-persistence-mode.title`,
55
+ title: `${I18N}.experience.entity.list-persistence-mode.title`,
58
56
  scope: AXPPlatformScope.User,
57
+ overridableAt: [],
59
58
  isInherited: true,
60
59
  defaultValue: 'persistent',
61
60
  widget: {
@@ -65,21 +64,22 @@ class AXPCommonSettingProvider {
65
64
  valueField: 'value',
66
65
  textField: 'text',
67
66
  dataSource: [
68
- { value: 'none', text: `${I18N}.general.entity.list-persistence-mode.options.none` },
67
+ { value: 'none', text: `${I18N}.experience.entity.list-persistence-mode.options.none` },
69
68
  {
70
69
  value: 'persistent',
71
- text: `${I18N}.general.entity.list-persistence-mode.options.persistent`,
70
+ text: `${I18N}.experience.entity.list-persistence-mode.options.persistent`,
72
71
  },
73
- { value: 'route', text: `${I18N}.general.entity.list-persistence-mode.options.route` },
72
+ { value: 'route', text: `${I18N}.experience.entity.list-persistence-mode.options.route` },
74
73
  ],
75
74
  },
76
75
  },
77
- description: `${I18N}.general.entity.list-persistence-mode.description`,
76
+ description: `${I18N}.experience.entity.list-persistence-mode.description`,
78
77
  })
79
78
  .addSetting({
80
79
  key: AXPCommonSettings.ShowCategoryColumnsByDefault,
81
- title: `${I18N}.general.entity.show-category-columns-by-default.title`,
80
+ title: `${I18N}.experience.entity.show-category-columns-by-default.title`,
82
81
  scope: AXPPlatformScope.User,
82
+ overridableAt: [],
83
83
  isInherited: true,
84
84
  defaultValue: false,
85
85
  widget: {
@@ -88,12 +88,13 @@ class AXPCommonSettingProvider {
88
88
  label: null,
89
89
  },
90
90
  },
91
- description: `${I18N}.general.entity.show-category-columns-by-default.description`,
91
+ description: `${I18N}.experience.entity.show-category-columns-by-default.description`,
92
92
  })
93
93
  .addSetting({
94
94
  key: AXPCommonSettings.ApplyLayoutOrdering,
95
- title: `${I18N}.general.entity.apply-layout-ordering.title`,
95
+ title: `${I18N}.experience.entity.apply-layout-ordering.title`,
96
96
  scope: AXPPlatformScope.User,
97
+ overridableAt: [],
97
98
  isInherited: true,
98
99
  defaultValue: true,
99
100
  widget: {
@@ -102,12 +103,13 @@ class AXPCommonSettingProvider {
102
103
  label: null,
103
104
  },
104
105
  },
105
- description: `${I18N}.general.entity.apply-layout-ordering.description`,
106
+ description: `${I18N}.experience.entity.apply-layout-ordering.description`,
106
107
  })
107
108
  .addSetting({
108
109
  key: AXPCommonSettings.RedirectToDetailsAfterCreate,
109
- title: `${I18N}.general.entity.redirect-to-details-after-create.title`,
110
+ title: `${I18N}.experience.entity.redirect-to-details-after-create.title`,
110
111
  scope: AXPPlatformScope.User,
112
+ overridableAt: [],
111
113
  isInherited: true,
112
114
  defaultValue: true,
113
115
  widget: {
@@ -116,12 +118,13 @@ class AXPCommonSettingProvider {
116
118
  label: null,
117
119
  },
118
120
  },
119
- description: `${I18N}.general.entity.redirect-to-details-after-create.description`,
121
+ description: `${I18N}.experience.entity.redirect-to-details-after-create.description`,
120
122
  })
121
123
  .addSetting({
122
124
  key: AXPCommonSettings.HighlightAfterCreateInList,
123
- title: `${I18N}.general.entity.highlight-after-create-in-list.title`,
125
+ title: `${I18N}.experience.entity.highlight-after-create-in-list.title`,
124
126
  scope: AXPPlatformScope.User,
127
+ overridableAt: [],
125
128
  isInherited: true,
126
129
  defaultValue: false,
127
130
  widget: {
@@ -130,12 +133,13 @@ class AXPCommonSettingProvider {
130
133
  label: null,
131
134
  },
132
135
  },
133
- description: `${I18N}.general.entity.highlight-after-create-in-list.description`,
136
+ description: `${I18N}.experience.entity.highlight-after-create-in-list.description`,
134
137
  })
135
138
  .addSetting({
136
139
  key: AXPCommonSettings.ShowPageBadge,
137
- title: `${I18N}.general.entity.show-page-badge.title`,
140
+ title: `${I18N}.experience.entity.show-page-badge.title`,
138
141
  scope: AXPPlatformScope.User,
142
+ overridableAt: [],
139
143
  isInherited: true,
140
144
  defaultValue: true,
141
145
  widget: {
@@ -144,12 +148,13 @@ class AXPCommonSettingProvider {
144
148
  label: null,
145
149
  },
146
150
  },
147
- description: `${I18N}.general.entity.show-page-badge.description`,
151
+ description: `${I18N}.experience.entity.show-page-badge.description`,
148
152
  })
149
153
  .addSetting({
150
154
  key: AXPCommonSettings.ConfirmUnsavedChanges,
151
- title: `${I18N}.general.entity.confirm-unsaved-changes.title`,
155
+ title: `${I18N}.experience.entity.confirm-unsaved-changes.title`,
152
156
  scope: AXPPlatformScope.User,
157
+ overridableAt: [],
153
158
  isInherited: true,
154
159
  defaultValue: true,
155
160
  widget: {
@@ -158,12 +163,13 @@ class AXPCommonSettingProvider {
158
163
  label: null,
159
164
  },
160
165
  },
161
- description: `${I18N}.general.entity.confirm-unsaved-changes.description`,
166
+ description: `${I18N}.experience.entity.confirm-unsaved-changes.description`,
162
167
  })
163
168
  .addSetting({
164
169
  key: AXPCommonSettings.ShowRowIndexColumn,
165
- title: `${I18N}.general.entity.show-row-index-column.title`,
170
+ title: `${I18N}.experience.entity.show-row-index-column.title`,
166
171
  scope: AXPPlatformScope.User,
172
+ overridableAt: [],
167
173
  isInherited: true,
168
174
  defaultValue: false,
169
175
  widget: {
@@ -172,11 +178,24 @@ class AXPCommonSettingProvider {
172
178
  label: null,
173
179
  },
174
180
  },
175
- description: `${I18N}.general.entity.show-row-index-column.description`,
181
+ description: `${I18N}.experience.entity.show-row-index-column.description`,
182
+ })
183
+ .addSetting({
184
+ key: AXPCommonSettings.QuickSearchEnabled,
185
+ title: `${I18N}.experience.entity.quick-search-enabled.title`,
186
+ scope: AXPPlatformScope.User,
187
+ overridableAt: [],
188
+ isInherited: true,
189
+ defaultValue: true,
190
+ widget: {
191
+ type: AXPWidgetsCatalog.toggle,
192
+ options: {
193
+ label: null,
194
+ },
195
+ },
196
+ description: `${I18N}.experience.entity.quick-search-enabled.description`,
176
197
  })
177
- // End the 'Entity Settings' section
178
198
  .endSection()
179
- // End the 'General Settings' group
180
199
  .endGroup();
181
200
  }
182
201
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommonSettingProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -187,4 +206,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
187
206
  }], ctorParameters: () => [{ type: i0.Injector }] });
188
207
 
189
208
  export { AXPCommonSettingProvider };
190
- //# sourceMappingURL=acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs.map
209
+ //# sourceMappingURL=acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs","sources":["../../../../../libs/framework/client/common/src/lib/configs/common-settings.provider.ts"],"sourcesContent":["\n\nimport { AXPPlatformScope, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { Injectable, Injector } from '@angular/core';\nimport {\n AXP_EXPERIENCE_SETTINGS_GROUP,\n AXP_EXPERIENCE_SETTINGS_SECTIONS,\n} from '../settings/experience-settings.constants';\nimport { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '../settings';\nimport { AXPCommonSettings } from './common-settings.key';\n\nconst I18N = '@general:settings';\n\n@Injectable()\nexport class AXPCommonSettingProvider implements AXPSettingDefinitionProvider {\n constructor(private _injector: Injector) {}\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n context\n .group(AXP_EXPERIENCE_SETTINGS_GROUP)\n ?.addSection(\n AXP_EXPERIENCE_SETTINGS_SECTIONS.Notifications,\n `${I18N}.experience.notifications.title`,\n `${I18N}.experience.notifications.description`,\n )\n .addSetting({\n key: AXPCommonSettings.EnableOperationToasts,\n title: `${I18N}.experience.notifications.enable-operation-toasts.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.notifications.enable-operation-toasts.description`,\n })\n .endSection()\n .addSection(\n AXP_EXPERIENCE_SETTINGS_SECTIONS.Entity,\n `${I18N}.experience.entity.title`,\n `${I18N}.experience.entity.description`,\n )\n .addSetting({\n key: AXPCommonSettings.EntityFilterApplyMode,\n title: `${I18N}.experience.entity.filter-apply-mode.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 'auto',\n widget: {\n type: AXPWidgetsCatalog.select,\n options: {\n label: null,\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'auto', text: `${I18N}.experience.entity.filter-apply-mode.options.auto` },\n { value: 'manual', text: `${I18N}.experience.entity.filter-apply-mode.options.manual` },\n ],\n },\n },\n description: `${I18N}.experience.entity.filter-apply-mode.description`,\n })\n .addSetting({\n key: AXPCommonSettings.EntityListPersistenceMode,\n title: `${I18N}.experience.entity.list-persistence-mode.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 'persistent',\n widget: {\n type: AXPWidgetsCatalog.select,\n options: {\n label: null,\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'none', text: `${I18N}.experience.entity.list-persistence-mode.options.none` },\n {\n value: 'persistent',\n text: `${I18N}.experience.entity.list-persistence-mode.options.persistent`,\n },\n { value: 'route', text: `${I18N}.experience.entity.list-persistence-mode.options.route` },\n ],\n },\n },\n description: `${I18N}.experience.entity.list-persistence-mode.description`,\n })\n .addSetting({\n key: AXPCommonSettings.ShowCategoryColumnsByDefault,\n title: `${I18N}.experience.entity.show-category-columns-by-default.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: false,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.show-category-columns-by-default.description`,\n })\n .addSetting({\n key: AXPCommonSettings.ApplyLayoutOrdering,\n title: `${I18N}.experience.entity.apply-layout-ordering.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.apply-layout-ordering.description`,\n })\n .addSetting({\n key: AXPCommonSettings.RedirectToDetailsAfterCreate,\n title: `${I18N}.experience.entity.redirect-to-details-after-create.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.redirect-to-details-after-create.description`,\n })\n .addSetting({\n key: AXPCommonSettings.HighlightAfterCreateInList,\n title: `${I18N}.experience.entity.highlight-after-create-in-list.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: false,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.highlight-after-create-in-list.description`,\n })\n .addSetting({\n key: AXPCommonSettings.ShowPageBadge,\n title: `${I18N}.experience.entity.show-page-badge.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.show-page-badge.description`,\n })\n .addSetting({\n key: AXPCommonSettings.ConfirmUnsavedChanges,\n title: `${I18N}.experience.entity.confirm-unsaved-changes.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.confirm-unsaved-changes.description`,\n })\n .addSetting({\n key: AXPCommonSettings.ShowRowIndexColumn,\n title: `${I18N}.experience.entity.show-row-index-column.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: false,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.show-row-index-column.description`,\n })\n .addSetting({\n key: AXPCommonSettings.QuickSearchEnabled,\n title: `${I18N}.experience.entity.quick-search-enabled.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n options: {\n label: null,\n },\n },\n description: `${I18N}.experience.entity.quick-search-enabled.description`,\n })\n .endSection()\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;;;;AAWA,MAAM,IAAI,GAAG,mBAAmB;MAGnB,wBAAwB,CAAA;AACnC,IAAA,WAAA,CAAoB,SAAmB,EAAA;QAAnB,IAAA,CAAA,SAAS,GAAT,SAAS;IAAa;IAE1C,MAAM,OAAO,CAAC,OAA4C,EAAA;QACxD;aACG,KAAK,CAAC,6BAA6B;AACpC,cAAE,UAAU,CACV,gCAAgC,CAAC,aAAa,EAC9C,CAAA,EAAG,IAAI,CAAA,+BAAA,CAAiC,EACxC,CAAA,EAAG,IAAI,uCAAuC;AAE/C,aAAA,UAAU,CAAC;YACV,GAAG,EAAE,iBAAiB,CAAC,qBAAqB;YAC5C,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,uDAAA,CAAyD;YACvE,KAAK,EAAE,gBAAgB,CAAC,IAAI;AAC5B,YAAA,aAAa,EAAE,EAAE;AACjB,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,MAAM,EAAE;gBACN,IAAI,EAAE,iBAAiB,CAAC,MAAM;AAC9B,gBAAA,OAAO,EAAE;AACP,oBAAA,KAAK,EAAE,IA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AAI;AACZ,iBAAA;AACF,aAAA;YACD,WAAW,EAAE,CAAA,EAAG,IAAI,CAAA,oDAAA,CAAsD;SAC3E;AACA,aAAA,UAAU,CAAC;YACV,GAAG,EAAE,iBAAiB,CAAC,kBAAkB;YACzC,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,6CAAA,CAA+C;YAC7D,KAAK,EAAE,gBAAgB,CAAC,IAAI;AAC5B,YAAA,aAAa,EAAE,EAAE;AACjB,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,MAAM,EAAE;gBACN,IAAI,EAAE,iBAAiB,CAAC,MAAM;AAC9B,gBAAA,OAAO,EAAE;AACP,oBAAA,KAAK,EAAE,IAAI;AACZ,iBAAA;AACF,aAAA;YACD,WAAW,EAAE,CAAA,EAAG,IAAI,CAAA,mDAAA,CAAqD;SAC1E;AACA,aAAA,UAAU;AACV,aAAA,QAAQ,EAAE;IACf;8GAxMW,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAxB,wBAAwB,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;;;;"}
@@ -0,0 +1,29 @@
1
+ async function openSettingsDefinitionDialog(settingsService, opener, config) {
2
+ const settings = config.sections.flatMap((section) => section.settings);
3
+ if (!settings.length) {
4
+ return false;
5
+ }
6
+ await settingsService.ensureLoaded();
7
+ const scoped = settingsService.scope(config.scope);
8
+ const scopeAdapter = {
9
+ all: () => scoped.all(),
10
+ defaultValues: () => scoped.defaultValues(),
11
+ get: (key) => scoped.get(key),
12
+ set: (values, options) => scoped.set(values, options),
13
+ };
14
+ const [currentContext, defaults] = await Promise.all([scoped.all(), scoped.defaultValues()]);
15
+ const context = { ...defaults, ...currentContext };
16
+ for (const setting of settings) {
17
+ context[setting.name] = await scoped.get(setting.name);
18
+ }
19
+ return opener.open({
20
+ config,
21
+ context,
22
+ scope: scopeAdapter,
23
+ settings,
24
+ });
25
+ }
26
+ //#endregion
27
+
28
+ export { openSettingsDefinitionDialog };
29
+ //# sourceMappingURL=acorex-platform-framework-client-common-settings-dialog.helper-DQNOCRL6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-framework-client-common-settings-dialog.helper-DQNOCRL6.mjs","sources":["../../../../../libs/framework/client/common/src/lib/settings/settings-dialog.helper.ts"],"sourcesContent":["import type {\n AXPOpenSettingsDefinitionDialogConfig,\n AXPSettingsDefinitionDialogOpener,\n AXPSettingsDefinitionDialogScope,\n} from '@acorex-platform/framework-client/core';\n\nimport type { AXPSettingsServiceInterface } from './settings.service';\n\n//#region ---- Settings dialog helper ----\n\nexport type OpenSettingsDefinitionDialogConfig = AXPOpenSettingsDefinitionDialogConfig;\n\nexport async function openSettingsDefinitionDialog(\n settingsService: AXPSettingsServiceInterface,\n opener: AXPSettingsDefinitionDialogOpener,\n config: OpenSettingsDefinitionDialogConfig,\n): Promise<boolean> {\n const settings = config.sections.flatMap((section) => section.settings);\n if (!settings.length) {\n return false;\n }\n\n await settingsService.ensureLoaded();\n const scoped = settingsService.scope(config.scope);\n\n const scopeAdapter: AXPSettingsDefinitionDialogScope = {\n all: () => scoped.all(),\n defaultValues: () => scoped.defaultValues(),\n get: (key) => scoped.get(key),\n set: (values, options) => scoped.set(values, options),\n };\n\n const [currentContext, defaults] = await Promise.all([scoped.all(), scoped.defaultValues()]);\n const context: Record<string, unknown> = { ...defaults, ...currentContext };\n\n for (const setting of settings) {\n context[setting.name] = await scoped.get(setting.name);\n }\n\n return opener.open({\n config,\n context,\n scope: scopeAdapter,\n settings,\n });\n}\n\n//#endregion\n"],"names":[],"mappings":"AAYO,eAAe,4BAA4B,CAChD,eAA4C,EAC5C,MAAyC,EACzC,MAA0C,EAAA;AAE1C,IAAA,MAAM,QAAQ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