@acorex/modules 19.2.9 → 19.2.10

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 (23) hide show
  1. package/fesm2022/acorex-modules-application-management.mjs +0 -10
  2. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  3. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-gE7jDpjq.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs} +18 -10
  4. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs.map +1 -0
  5. package/fesm2022/{acorex-modules-form-template-management-category.entity-BaX5yaK9.mjs → acorex-modules-form-template-management-category.entity-D00XZd7o.mjs} +2 -2
  6. package/fesm2022/{acorex-modules-form-template-management-category.entity-BaX5yaK9.mjs.map → acorex-modules-form-template-management-category.entity-D00XZd7o.mjs.map} +1 -1
  7. package/fesm2022/{acorex-modules-form-template-management-setting.provider-h3v_4sR9.mjs → acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs} +2 -2
  8. package/fesm2022/{acorex-modules-form-template-management-setting.provider-h3v_4sR9.mjs.map → acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs.map} +1 -1
  9. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-GxCDqH9d.mjs → acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs} +2 -2
  10. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-GxCDqH9d.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-form-template-management-template.entity-CzmbpLj_.mjs → acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs} +8 -3
  12. package/fesm2022/acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs.map +1 -0
  13. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CJKcMi8Q.mjs → acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs} +4 -4
  14. package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs.map +1 -0
  15. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  16. package/fesm2022/acorex-modules-platform-management.mjs +98 -29
  17. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  18. package/form-template-management/lib/features/viewer/viewer-connector.service.d.ts +3 -2
  19. package/form-template-management/lib/features/viewer/viewer-popup.component.d.ts +2 -0
  20. package/package.json +1 -1
  21. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-gE7jDpjq.mjs.map +0 -1
  22. package/fesm2022/acorex-modules-form-template-management-template.entity-CzmbpLj_.mjs.map +0 -1
  23. package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-CJKcMi8Q.mjs.map +0 -1
@@ -403,7 +403,7 @@ const RootConfig = {
403
403
  icon: 'fa-light fa-globe',
404
404
  },
405
405
  globalVariable: {
406
- name: 'Global Variables',
406
+ name: 'GlobalVariables',
407
407
  title: `t("variables", {scope:"${config.i18n}"})`,
408
408
  icon: 'fa-light fa-object-exclude',
409
409
  },
@@ -426,7 +426,7 @@ const RootConfig = {
426
426
  icon: 'fa-light fa-billboard',
427
427
  },
428
428
  dataSource: {
429
- name: 'data-source',
429
+ name: 'DataSource',
430
430
  title: `t("dataSource", {scope:"${config.i18n}"})`,
431
431
  titlePlural: `t("dataSourcePlural", {scope:"${config.i18n}"})`,
432
432
  icon: 'fa-light fa-database',
@@ -1996,6 +1996,7 @@ async function dataSourceEntityFactory(injector) {
1996
1996
  commands: {
1997
1997
  create: {
1998
1998
  execute: async (data) => {
1999
+ debugger;
1999
2000
  if (data.sourceType.name == 'entity') {
2000
2001
  data.sourceEntity = data.sourceEntity?.name;
2001
2002
  }
@@ -2808,11 +2809,11 @@ class AXMPromotionSlotComponent {
2808
2809
  this.listData.set(mappedItems);
2809
2810
  }
2810
2811
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2811
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMPromotionSlotComponent, isStandalone: true, selector: "acorex-platform-promotion-slot", ngImport: i0, template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
2812
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMPromotionSlotComponent, isStandalone: true, selector: "acorex-platform-promotion-slot", ngImport: i0, template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
2812
2813
  }
2813
2814
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, decorators: [{
2814
2815
  type: Component,
2815
- args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }" }]
2816
+ args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n" }]
2816
2817
  }] });
2817
2818
 
2818
2819
  async function promotionEntityFactory(injector) {
@@ -2877,6 +2878,9 @@ async function promotionEntityFactory(injector) {
2877
2878
  type: AXPWidgetsCatalog.file,
2878
2879
  options: {
2879
2880
  multiple: false,
2881
+ accept: '.png,.jpg,.jpeg,.svg,.gif',
2882
+ refType: 'entity',
2883
+ refId: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
2880
2884
  },
2881
2885
  },
2882
2886
  },
@@ -2907,9 +2911,36 @@ async function promotionEntityFactory(injector) {
2907
2911
  },
2908
2912
  ],
2909
2913
  },
2914
+ // {
2915
+ // name: 'shape',
2916
+ // title: `t("shape", { scope: "${i18n}" })`,
2917
+ // groupId: 'promotion',
2918
+ // schema: {
2919
+ // dataType: 'string',
2920
+ // interface: {
2921
+ // type: AXPWidgetsCatalog.select,
2922
+ // options: {
2923
+ // valueField: 'name',
2924
+ // textField: 'title',
2925
+ // dataSource: [
2926
+ // { title: 'Circle', name: 'circle' },
2927
+ // { title: 'Square', name: 'square' },
2928
+ // ],
2929
+ // direction: 'horizontal',
2930
+ // multiple: false,
2931
+ // accept: '',
2932
+ // },
2933
+ // },
2934
+ // },
2935
+ // validations: [
2936
+ // {
2937
+ // rule: 'required',
2938
+ // },
2939
+ // ],
2940
+ // },
2910
2941
  {
2911
- name: 'shape',
2912
- title: `t("shape", { scope: "${i18n}" })`,
2942
+ name: 'placement',
2943
+ title: `t("placement", { scope: "${i18n}" })`,
2913
2944
  groupId: 'promotion',
2914
2945
  schema: {
2915
2946
  dataType: 'string',
@@ -2919,8 +2950,26 @@ async function promotionEntityFactory(injector) {
2919
2950
  valueField: 'name',
2920
2951
  textField: 'title',
2921
2952
  dataSource: [
2922
- { title: 'Circle', name: 'circle' },
2923
- { title: 'Square', name: 'square' },
2953
+ {
2954
+ title: 'Side Menu Footer',
2955
+ name: 'side-menu-footer',
2956
+ options: AXM_COLUMN_DEF_WIDGET
2957
+ },
2958
+ {
2959
+ title: 'Side Menu Header',
2960
+ name: 'side-menu-header',
2961
+ options: [
2962
+ {
2963
+ type: 'text-editor',
2964
+ mode: 'edit',
2965
+ path: 'name',
2966
+ options: {
2967
+ placeholder: 'Name',
2968
+ defaultValue: 'test',
2969
+ },
2970
+ },
2971
+ ]
2972
+ },
2924
2973
  ],
2925
2974
  direction: 'horizontal',
2926
2975
  multiple: false,
@@ -2933,34 +2982,32 @@ async function promotionEntityFactory(injector) {
2933
2982
  },
2934
2983
  ],
2935
2984
  },
2985
+ // {
2986
+ // name: "metadaata",
2987
+ // title: "Meta Data",
2988
+ // groupId: 'promotion',
2989
+ // schema: {
2990
+ // dataType: 'object',
2991
+ // interface: {
2992
+ // type: AXPWidgetsCatalog.text,
2993
+ // // children: "{{ context.eval('placement').options }}" as any,
2994
+ // },
2995
+ // }
2996
+ //},
2936
2997
  {
2937
- name: 'placement',
2938
- title: `t("placement", { scope: "${i18n}" })`,
2998
+ name: 'metadata',
2999
+ title: `Meta Data`,
2939
3000
  groupId: 'promotion',
2940
3001
  schema: {
2941
- dataType: 'string',
3002
+ dataType: 'object',
2942
3003
  interface: {
2943
- type: AXPWidgetsCatalog.select,
2944
- options: {
2945
- valueField: 'name',
2946
- textField: 'title',
2947
- dataSource: [
2948
- { title: 'Side Menu Footer', name: 'side-menu-footer' },
2949
- { title: 'Side Menu Header', name: 'side-menu-header' },
2950
- ],
2951
- direction: 'horizontal',
2952
- multiple: false,
2953
- },
3004
+ type: AXPWidgetsCatalog.blockLayout,
3005
+ children: "{{ context.eval('placement')?.options ?? [] }}",
2954
3006
  },
2955
- },
2956
- validations: [
2957
- {
2958
- rule: 'required',
2959
- },
2960
- ],
3007
+ }
2961
3008
  },
2962
3009
  ],
2963
- columns: [{ name: 'title' }, { name: 'body' }, { name: 'contentType' }, { name: 'shape' }, { name: 'placement' }],
3010
+ columns: [{ name: 'title' }, { name: 'placement' }],
2964
3011
  commands: {
2965
3012
  create: {
2966
3013
  execute: async (data) => {
@@ -3069,6 +3116,17 @@ async function promotionEntityFactory(injector) {
3069
3116
  },
3070
3117
  },
3071
3118
  },
3119
+ {
3120
+ name: 'metadata',
3121
+ layout: {
3122
+ positions: {
3123
+ lg: {
3124
+ colSpan: 12,
3125
+ order: 10,
3126
+ },
3127
+ },
3128
+ },
3129
+ },
3072
3130
  ],
3073
3131
  },
3074
3132
  update: {
@@ -3144,6 +3202,17 @@ async function promotionEntityFactory(injector) {
3144
3202
  },
3145
3203
  },
3146
3204
  },
3205
+ {
3206
+ name: 'metadata',
3207
+ layout: {
3208
+ positions: {
3209
+ lg: {
3210
+ colSpan: 12,
3211
+ order: 10,
3212
+ },
3213
+ },
3214
+ },
3215
+ },
3147
3216
  ],
3148
3217
  },
3149
3218
  single: {