@acorex-platform/module-content-management-client 0.0.54 → 0.0.56

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.
@@ -46,9 +46,9 @@ const printTextTemplateChannelProvider = {
46
46
 
47
47
  const AXMTemplateContentEditorWidget = {
48
48
  name: 'template-content-editor',
49
- title: 'Template Content',
49
+ title: '@content-management:templates.widgets.template-content-editor.title',
50
50
  icon: 'fa-light fa-envelope',
51
- description: 'Multi-channel template editor with tabs (Email, SMS, WhatsApp, etc.)',
51
+ description: '@content-management:templates.widgets.template-content-editor.description',
52
52
  categories: AXP_WIDGETS_EDITOR_CATEGORY,
53
53
  type: 'editor',
54
54
  defaultFilterWidgetName: 'string-filter',
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-content-management-client.mjs","sources":["../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/channel-definition.provider.ts","../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/print-text-template-channel-definition.provider.ts","../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/template-content-editor-widget.config.ts","../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/text-template-placeholder.util.ts","../../../../libs/modules/content-management/client/src/lib/widget-definition.provider.ts","../../../../libs/modules/content-management/client/src/lib/text-template-engine.tokens.ts","../../../../libs/modules/content-management/client/src/lib/features/promotion/components/promotion-slot/promotion-slot.component.ts","../../../../libs/modules/content-management/client/src/lib/features/promotion/components/promotion-slot/promotion-slot.component.html","../../../../libs/modules/content-management/client/src/lib/content-management.module.ts","../../../../libs/modules/content-management/client/src/lib/text-template-render.command.key.ts","../../../../libs/modules/content-management/client/src/lib/features/text-template-render/text-template-render.types.ts","../../../../libs/modules/content-management/client/src/lib/menu.provider.ts","../../../../libs/modules/content-management/client/src/lib/search-command.provider.ts","../../../../libs/modules/content-management/client/src/lib/setting.provider.ts","../../../../libs/modules/content-management/client/src/acorex-platform-module-content-management-client.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { AXMTextTemplateChannelDefinitionProvider } from '@acorex-platform/module-content-management-client/contracts';\n\n//#region ---- Token ----\n\n/** Multi-provider token – all providers are merged for available channels */\nexport const AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER = new InjectionToken<\n AXMTextTemplateChannelDefinitionProvider\n>('AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER');\n\n//#endregion\n","import { Injectable } from '@angular/core';\nimport {\n AXM_TEXT_TEMPLATE_PRINT_CHANNEL,\n RootConfig,\n type AXMTextTemplateChannelDefinition,\n type AXMTextTemplateChannelDefinitionProvider,\n} from '@acorex-platform/module-content-management-client/contracts';\nimport { AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER } from './channel-definition.provider';\n\nconst I18N = `@${RootConfig.config.i18n}:templates.channels`;\n\n//#region ---- Print text template channel ----\n\n@Injectable()\nexport class AXMPrintTextTemplateChannelDefinitionProvider\n implements AXMTextTemplateChannelDefinitionProvider\n{\n getChannels(): AXMTextTemplateChannelDefinition[] {\n return [\n {\n name: AXM_TEXT_TEMPLATE_PRINT_CHANNEL,\n title: `${I18N}.print`,\n type: 'rich',\n hasSubject: false,\n },\n ];\n }\n}\n\n//#endregion\n\nexport const printTextTemplateChannelProvider = {\n provide: AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER,\n useClass: AXMPrintTextTemplateChannelDefinitionProvider,\n multi: true,\n};\n","import { AXPWidgetConfig } from '@acorex-platform/framework-shared/widget-core';\nimport { AXP_WIDGETS_EDITOR_CATEGORY } from '@acorex-platform/framework-client/layout/widget-core';\nimport {\n AXP_DATA_PATH_PROPERTY,\n AXP_DISABLED_PROPERTY,\n} from '@acorex-platform/framework-client/layout/widgets';\n\nexport const AXMTemplateContentEditorWidget: AXPWidgetConfig = {\n name: 'template-content-editor',\n title: 'Template Content',\n icon: 'fa-light fa-envelope',\n description: 'Multi-channel template editor with tabs (Email, SMS, WhatsApp, etc.)',\n categories: AXP_WIDGETS_EDITOR_CATEGORY,\n type: 'editor',\n defaultFilterWidgetName: 'string-filter',\n properties: [AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],\n components: {\n view: {\n component: () =>\n import('./template-content-editor-widget-view.component').then(\n (c) => c.AXMTemplateContentEditorWidgetViewComponent\n ),\n },\n edit: {\n component: () =>\n import('./template-content-editor-widget-edit.component').then(\n (c) => c.AXMTemplateContentEditorWidgetEditComponent\n ),\n },\n },\n};\n","/** Re-export shared text-template placeholder / compose helpers from contracts. */\nexport {\n AXM_TEXT_TEMPLATE_CONTENT_SLOT,\n AXM_TEXT_TEMPLATE_KIND,\n AXM_TEXT_TEMPLATE_MAX_PARENT_DEPTH,\n collectTextTemplatePlaceholderNames,\n composeTextTemplateBodyChain,\n renderTextTemplateSource,\n replaceTextTemplateContentSlot,\n replaceTextTemplatePlaceholders,\n resolveTextTemplateLocalizedString,\n textTemplateContainsContentSlot,\n validateTextTemplateContentSlots,\n validateTextTemplateParentChain,\n type AXMTextTemplateEntityModel,\n type AXMTextTemplateKind,\n type AXMTextTemplateParentChainNode,\n} from '@acorex-platform/module-content-management-client/contracts';\n","//#region ---- Imports ----\n\nimport { AXPWidgetDefinitionProvider } from '@acorex-platform/framework-client/layout/widget-core';\nimport { Injectable } from '@angular/core';\nimport { AXMTemplateContentEditorWidget } from './features/template-content-editor';\n\n//#endregion\n\n//#region ---- Content Management Widgets Provider ----\n\n@Injectable()\nexport class AXMContentManagementWidgetsProvider implements AXPWidgetDefinitionProvider {\n getWidgets() {\n return [AXMTemplateContentEditorWidget];\n }\n}\n\n//#endregion\n","import { InjectionToken, inject } from '@angular/core';\nimport {\n createBuiltinBlockRegistry,\n createBuiltinPipeRegistry,\n createTextTemplateEngine,\n type ContentBlockDefinition,\n type ContentPipe,\n type TextTemplateEngine,\n} from '@acorex-platform/framework-shared/text-template';\nimport type { AXPRegistry } from '@acorex-platform/framework-shared/core';\n\n//#region ----- Angular tokens -----\n\nexport const AXC_TEXT_TEMPLATE_BLOCK_REGISTRY = new InjectionToken<AXPRegistry<ContentBlockDefinition>>(\n 'AXC_TEXT_TEMPLATE_BLOCK_REGISTRY',\n { factory: createBuiltinBlockRegistry },\n);\n\nexport const AXC_TEXT_TEMPLATE_PIPE_REGISTRY = new InjectionToken<AXPRegistry<ContentPipe>>(\n 'AXC_TEXT_TEMPLATE_PIPE_REGISTRY',\n { factory: createBuiltinPipeRegistry },\n);\n\nexport const AXC_TEXT_TEMPLATE_ENGINE = new InjectionToken<TextTemplateEngine>(\n 'AXC_TEXT_TEMPLATE_ENGINE',\n {\n factory: () =>\n createTextTemplateEngine({\n blocks: inject(AXC_TEXT_TEMPLATE_BLOCK_REGISTRY),\n pipes: inject(AXC_TEXT_TEMPLATE_PIPE_REGISTRY),\n }),\n },\n);\n\nexport const textTemplateEngineProviders = [\n { provide: AXC_TEXT_TEMPLATE_BLOCK_REGISTRY, useFactory: createBuiltinBlockRegistry },\n { provide: AXC_TEXT_TEMPLATE_PIPE_REGISTRY, useFactory: createBuiltinPipeRegistry },\n {\n provide: AXC_TEXT_TEMPLATE_ENGINE,\n useFactory: (\n blocks: AXPRegistry<ContentBlockDefinition>,\n pipes: AXPRegistry<ContentPipe>,\n ) => createTextTemplateEngine({ blocks, pipes }),\n deps: [AXC_TEXT_TEMPLATE_BLOCK_REGISTRY, AXC_TEXT_TEMPLATE_PIPE_REGISTRY],\n },\n];\n\n//#endregion\n","import { RootConfig } from '@acorex-platform/module-content-management-client/contracts';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { AXSafePipe } from '@acorex/core/pipes';\nimport { AXPFileStorageService } from '@acorex-platform/framework-client/common';\nimport { Component, inject, OnInit, signal, WritableSignal, ChangeDetectionStrategy } from '@angular/core';\nimport { AXMPromotionEntityModel } from '@acorex-platform/module-content-management-client/contracts';\n@Component({\n selector: 'acorex-platform-promotion-slot',\n imports: [AXSafePipe],\n changeDetection: ChangeDetectionStrategy.Eager,\n templateUrl: './promotion-slot.component.html',\n})\nexport class AXMPromotionSlotComponent implements OnInit {\n private readonly entityService = inject(AXPEntityService);\n location: string;\n\n notificationChannelService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.promotion.name).data<any, any>();\n\n listData: WritableSignal<AXMPromotionEntityModel[]> = signal([]);\n\n private fileStorage = inject(AXPFileStorageService);\n\n async ngOnInit(): Promise<void> {\n const channels = await this.notificationChannelService.query({\n skip: 0,\n take: 10000,\n // filter: {\n // field: 'type',\n // operator: { type: 'equal' },\n // value: 'promotion',\n // },\n });\n\n const filteredItems = channels.items.filter((x) => x.placement?.name == this.location);\n\n const mappedItems = await Promise.all(\n filteredItems.map(async (item) => {\n if (item.imageId != null) {\n const image = await this.fileStorage.getInfo(item.imageId);\n\n return {\n ...item,\n image: image,\n };\n } else {\n return item;\n }\n })\n );\n\n this.listData.set(mappedItems);\n }\n} ","@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"w-full p-3 border {{\n item.shape?.name == 'circle' ? 'rounded-full' : 'rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"m-1 px-6 p-4 border bg-primary rounded-lg\">\n <h1 class=\"text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} } ","import { NgModule } from '@angular/core';\nimport { AXPComponentSlotModule } from '@acorex-platform/framework-client/core';\nimport { provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXP_WIDGET_DEFINITION_PROVIDER, AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXMContentManagementWidgetsProvider } from './widget-definition.provider';\nimport { printTextTemplateChannelProvider } from './features/template-content-editor/print-text-template-channel-definition.provider';\nimport { textTemplateEngineProviders } from './text-template-engine.tokens';\n\n// Import promotion-related components\nimport { AXMPromotionSlotComponent } from './features/promotion/components/promotion-slot/promotion-slot.component';\n\n@NgModule({\n imports: [\n AXPWidgetCoreModule,\n AXPComponentSlotModule.forChild({\n 'side-menu-footer': [\n {\n name: 'side-menu-footer-promotion',\n component: AXMPromotionSlotComponent,\n options: {\n location: 'side-menu-footer',\n },\n },\n ],\n 'side-menu-header': [\n {\n name: 'side-menu-header-promotion',\n component: AXMPromotionSlotComponent,\n priority: 2,\n options: {\n location: 'side-menu-header',\n },\n },\n ],\n }),\n ],\n exports: [],\n declarations: [],\n providers: [\n provideLazyProvider(\n AXP_PERMISSION_DEFINITION_PROVIDER,\n () => import('./permission-definition.provider').then((m) => m.AXMPermissionDefinitionProvider),\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () => import('./menu.provider').then((m) => m.AXMMenuProvider)),\n \n provideLazyProvider(\n AXP_SETTING_DEFINITION_PROVIDER,\n () => import('./setting.provider').then((m) => m.AXMSettingProvider),\n ),\n provideLazyProvider(\n AXP_SEARCH_PROVIDER,\n () => import('./search-command.provider').then((m) => m.AXMSearchCommandProvider),\n ),\n {\n provide: AXP_WIDGET_DEFINITION_PROVIDER,\n useClass: AXMContentManagementWidgetsProvider,\n multi: true,\n },\n printTextTemplateChannelProvider,\n ...textTemplateEngineProviders,\n ],\n})\nexport class AXMContentManagementModule {}\n","import { AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY } from '@acorex-platform/module-content-management-client/contracts';\n\n/** Registry / remote key for Nest `ContentManagement:TextTemplate:Render`. */\nexport const AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY = AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY;\n","import {\n AXM_TEXT_TEMPLATE_PREVIEW_COMMAND_KEY,\n AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY,\n type AXMTextTemplatePreviewRequest,\n type AXMTextTemplatePreviewResult,\n type AXMTextTemplateRenderRequest,\n type AXMTextTemplateRenderResult,\n} from '@acorex-platform/module-content-management-client/contracts';\n\n//#region ----- Types -----\n\n/** @deprecated Prefer {@link AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY}. */\nexport const AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY = AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY;\n\n/** @deprecated Prefer {@link AXMTextTemplateRenderRequest}. */\nexport type AXPTextTemplateRenderRequest = AXMTextTemplateRenderRequest;\n\n/** @deprecated Prefer {@link AXMTextTemplateRenderResult}. */\nexport type AXPTextTemplateRenderResult = AXMTextTemplateRenderResult;\n\nexport {\n AXM_TEXT_TEMPLATE_PREVIEW_COMMAND_KEY,\n AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY,\n type AXMTextTemplatePreviewRequest,\n type AXMTextTemplatePreviewResult,\n type AXMTextTemplateRenderRequest,\n type AXMTextTemplateRenderResult,\n};\n\n//#endregion\n","import { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from '@acorex-platform/module-content-management-client/contracts';\nimport { AXPContentDocumentsPermissionKeys } from '@acorex-platform/module-content-management-client/contracts';\nimport { AXPContentManagementMenuKeys } from '@acorex-platform/module-content-management-client/contracts';\n\n@Injectable()\nexport class AXMMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const scope = RootConfig.config.i18n;\n const module = RootConfig.module;\n\n //#region ---- Administration > Content (Promotions, Page Builder) ----\n\n const contentMenu = context.find(AXPCommonMenuKeys.Content);\n if (!contentMenu.exists) {\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: AXPCommonMenuKeys.Content,\n priority: 10,\n text: '@general:menus.content.title',\n icon: 'fa-light fa-paint-brush',\n type: 'menu',\n children: [],\n },\n ]);\n }\n\n context.find(AXPCommonMenuKeys.Content).addItems([\n {\n name: AXPContentManagementMenuKeys.Promotions,\n text: RootConfig.entities.promotion.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.promotion.name),\n icon: RootConfig.entities.promotion.icon,\n priority: 1,\n policy: {\n features: [module.name],\n permissions: [AXPContentDocumentsPermissionKeys.MaintainContent],\n },\n },\n ]);\n\n // Text Template under Configuration > Data and Content\n context.find(AXPCommonMenuKeys.DataAndContent).addItems([\n {\n name: AXPContentManagementMenuKeys.TextTemplates,\n text: RootConfig.entities.textTemplate.title,\n path: this.entityService.createPath(module.name, RootConfig.entities.textTemplate.name),\n icon: RootConfig.entities.textTemplate.icon,\n priority: 2,\n policy: {\n features: [module.name],\n permissions: [AXPContentDocumentsPermissionKeys.MaintainContent],\n },\n },\n ]);\n\n //#endregion\n\n //#region ---- Help Menu Extensions ----\n\n context.addItems([\n {\n name: AXPContentManagementMenuKeys.HelpRoot,\n priority: 900000,\n text: `@${scope}:help-center.menus.help.title`,\n icon: 'fa-light fa-circle-question',\n },\n ]);\n\n const helpMenu = context.find(AXPContentManagementMenuKeys.HelpRoot);\n\n if (helpMenu.exists) {\n helpMenu.addItems([\n {\n name: AXPContentManagementMenuKeys.HelpCenter,\n text: `@${scope}:help-center.menus.help-center.title`,\n icon: 'fa-light fa-book-open',\n priority: 900001,\n },\n {\n name: AXPContentManagementMenuKeys.Tutorials,\n text: `@${scope}:help-center.menus.tutorials.title`,\n icon: 'fa-light fa-clapperboard-play',\n priority: 900002,\n },\n {\n name: AXPContentManagementMenuKeys.About,\n text: `@${scope}:help-center.menus.about.title`,\n icon: 'fa-light fa-circle-info',\n priority: 900011,\n },\n ]);\n }\n\n //#endregion\n }\n}\n","import { AXPSearchCommandProvider, AXPSearchResult, createEntityCommandOptions } from '@acorex-platform/framework-client/common';\nimport { RootConfig } from '@acorex-platform/module-content-management-client/contracts';\n\nexport class AXMSearchCommandProvider extends AXPSearchCommandProvider {\n commands: AXPSearchResult[] = [\n {\n id: 'create-promotion',\n group: 'command',\n title: RootConfig.entities.promotion.title,\n icon: RootConfig.entities.promotion.icon,\n description: RootConfig.entities.promotion.titlePlural,\n command: {\n name: 'Entity:Create',\n options: createEntityCommandOptions(\n `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,\n {\n name: RootConfig.entities.promotion.name,\n module: RootConfig.module.name,\n title: RootConfig.entities.promotion.title,\n }\n ),\n },\n },\n {\n id: 'create-text-template',\n group: 'command',\n title: `@content-management:templates.search.create-text-template.title`,\n icon: RootConfig.entities.textTemplate.icon,\n description: `@content-management:templates.search.create-text-template.description`,\n command: {\n name: 'Entity:Create',\n options: createEntityCommandOptions(\n `${RootConfig.module.name}.${RootConfig.entities.textTemplate.name}`,\n {\n name: RootConfig.entities.textTemplate.name,\n module: RootConfig.module.name,\n title: RootConfig.entities.textTemplate.title,\n }\n ),\n },\n },\n ];\n}\n","import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';\n\nexport class AXMSettingProvider implements AXPSettingDefinitionProvider {\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n // context\n // // Add Form Template Group\n // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)\n // // Start Interface Section\n // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')\n // .addSetting({\n // key: 'history-panel',\n // title: 'Show History Panel',\n // scope: 'U',\n // isInherited: true,\n // defaultValue: false,\n // widget: {\n // type: AXPWidgetsCatalog.toggle,\n // },\n // description: 'Enable or disable the history panel for forms.',\n // validationRules: [\n // {\n // rule: 'required',\n // },\n // ],\n // })\n // .endSection()\n // .endGroup();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY"],"mappings":";;;;;;;;;;;;;;;AAGA;AAEA;MACa,6CAA6C,GAAG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version":3,"file":"acorex-platform-module-content-management-client.mjs","sources":["../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/channel-definition.provider.ts","../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/print-text-template-channel-definition.provider.ts","../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/template-content-editor-widget.config.ts","../../../../libs/modules/content-management/client/src/lib/features/template-content-editor/text-template-placeholder.util.ts","../../../../libs/modules/content-management/client/src/lib/widget-definition.provider.ts","../../../../libs/modules/content-management/client/src/lib/text-template-engine.tokens.ts","../../../../libs/modules/content-management/client/src/lib/features/promotion/components/promotion-slot/promotion-slot.component.ts","../../../../libs/modules/content-management/client/src/lib/features/promotion/components/promotion-slot/promotion-slot.component.html","../../../../libs/modules/content-management/client/src/lib/content-management.module.ts","../../../../libs/modules/content-management/client/src/lib/text-template-render.command.key.ts","../../../../libs/modules/content-management/client/src/lib/features/text-template-render/text-template-render.types.ts","../../../../libs/modules/content-management/client/src/lib/menu.provider.ts","../../../../libs/modules/content-management/client/src/lib/search-command.provider.ts","../../../../libs/modules/content-management/client/src/lib/setting.provider.ts","../../../../libs/modules/content-management/client/src/acorex-platform-module-content-management-client.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { AXMTextTemplateChannelDefinitionProvider } from '@acorex-platform/module-content-management-client/contracts';\n\n//#region ---- Token ----\n\n/** Multi-provider token – all providers are merged for available channels */\nexport const AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER = new InjectionToken<\n AXMTextTemplateChannelDefinitionProvider\n>('AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER');\n\n//#endregion\n","import { Injectable } from '@angular/core';\nimport {\n AXM_TEXT_TEMPLATE_PRINT_CHANNEL,\n RootConfig,\n type AXMTextTemplateChannelDefinition,\n type AXMTextTemplateChannelDefinitionProvider,\n} from '@acorex-platform/module-content-management-client/contracts';\nimport { AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER } from './channel-definition.provider';\n\nconst I18N = `@${RootConfig.config.i18n}:templates.channels`;\n\n//#region ---- Print text template channel ----\n\n@Injectable()\nexport class AXMPrintTextTemplateChannelDefinitionProvider\n implements AXMTextTemplateChannelDefinitionProvider\n{\n getChannels(): AXMTextTemplateChannelDefinition[] {\n return [\n {\n name: AXM_TEXT_TEMPLATE_PRINT_CHANNEL,\n title: `${I18N}.print`,\n type: 'rich',\n hasSubject: false,\n },\n ];\n }\n}\n\n//#endregion\n\nexport const printTextTemplateChannelProvider = {\n provide: AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER,\n useClass: AXMPrintTextTemplateChannelDefinitionProvider,\n multi: true,\n};\n","import { AXPWidgetConfig } from '@acorex-platform/framework-shared/widget-core';\nimport { AXP_WIDGETS_EDITOR_CATEGORY } from '@acorex-platform/framework-client/layout/widget-core';\nimport {\n AXP_DATA_PATH_PROPERTY,\n AXP_DISABLED_PROPERTY,\n} from '@acorex-platform/framework-client/layout/widgets';\n\nexport const AXMTemplateContentEditorWidget: AXPWidgetConfig = {\n name: 'template-content-editor',\n title: '@content-management:templates.widgets.template-content-editor.title',\n icon: 'fa-light fa-envelope',\n description: '@content-management:templates.widgets.template-content-editor.description',\n categories: AXP_WIDGETS_EDITOR_CATEGORY,\n type: 'editor',\n defaultFilterWidgetName: 'string-filter',\n properties: [AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],\n components: {\n view: {\n component: () =>\n import('./template-content-editor-widget-view.component').then(\n (c) => c.AXMTemplateContentEditorWidgetViewComponent\n ),\n },\n edit: {\n component: () =>\n import('./template-content-editor-widget-edit.component').then(\n (c) => c.AXMTemplateContentEditorWidgetEditComponent\n ),\n },\n },\n};\n","/** Re-export shared text-template placeholder / compose helpers from contracts. */\nexport {\n AXM_TEXT_TEMPLATE_CONTENT_SLOT,\n AXM_TEXT_TEMPLATE_KIND,\n AXM_TEXT_TEMPLATE_MAX_PARENT_DEPTH,\n collectTextTemplatePlaceholderNames,\n composeTextTemplateBodyChain,\n renderTextTemplateSource,\n replaceTextTemplateContentSlot,\n replaceTextTemplatePlaceholders,\n resolveTextTemplateLocalizedString,\n textTemplateContainsContentSlot,\n validateTextTemplateContentSlots,\n validateTextTemplateParentChain,\n type AXMTextTemplateEntityModel,\n type AXMTextTemplateKind,\n type AXMTextTemplateParentChainNode,\n} from '@acorex-platform/module-content-management-client/contracts';\n","//#region ---- Imports ----\n\nimport { AXPWidgetDefinitionProvider } from '@acorex-platform/framework-client/layout/widget-core';\nimport { Injectable } from '@angular/core';\nimport { AXMTemplateContentEditorWidget } from './features/template-content-editor';\n\n//#endregion\n\n//#region ---- Content Management Widgets Provider ----\n\n@Injectable()\nexport class AXMContentManagementWidgetsProvider implements AXPWidgetDefinitionProvider {\n getWidgets() {\n return [AXMTemplateContentEditorWidget];\n }\n}\n\n//#endregion\n","import { InjectionToken, inject } from '@angular/core';\nimport {\n createBuiltinBlockRegistry,\n createBuiltinPipeRegistry,\n createTextTemplateEngine,\n type ContentBlockDefinition,\n type ContentPipe,\n type TextTemplateEngine,\n} from '@acorex-platform/framework-shared/text-template';\nimport type { AXPRegistry } from '@acorex-platform/framework-shared/core';\n\n//#region ----- Angular tokens -----\n\nexport const AXC_TEXT_TEMPLATE_BLOCK_REGISTRY = new InjectionToken<AXPRegistry<ContentBlockDefinition>>(\n 'AXC_TEXT_TEMPLATE_BLOCK_REGISTRY',\n { factory: createBuiltinBlockRegistry },\n);\n\nexport const AXC_TEXT_TEMPLATE_PIPE_REGISTRY = new InjectionToken<AXPRegistry<ContentPipe>>(\n 'AXC_TEXT_TEMPLATE_PIPE_REGISTRY',\n { factory: createBuiltinPipeRegistry },\n);\n\nexport const AXC_TEXT_TEMPLATE_ENGINE = new InjectionToken<TextTemplateEngine>(\n 'AXC_TEXT_TEMPLATE_ENGINE',\n {\n factory: () =>\n createTextTemplateEngine({\n blocks: inject(AXC_TEXT_TEMPLATE_BLOCK_REGISTRY),\n pipes: inject(AXC_TEXT_TEMPLATE_PIPE_REGISTRY),\n }),\n },\n);\n\nexport const textTemplateEngineProviders = [\n { provide: AXC_TEXT_TEMPLATE_BLOCK_REGISTRY, useFactory: createBuiltinBlockRegistry },\n { provide: AXC_TEXT_TEMPLATE_PIPE_REGISTRY, useFactory: createBuiltinPipeRegistry },\n {\n provide: AXC_TEXT_TEMPLATE_ENGINE,\n useFactory: (\n blocks: AXPRegistry<ContentBlockDefinition>,\n pipes: AXPRegistry<ContentPipe>,\n ) => createTextTemplateEngine({ blocks, pipes }),\n deps: [AXC_TEXT_TEMPLATE_BLOCK_REGISTRY, AXC_TEXT_TEMPLATE_PIPE_REGISTRY],\n },\n];\n\n//#endregion\n","import { RootConfig } from '@acorex-platform/module-content-management-client/contracts';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { AXSafePipe } from '@acorex/core/pipes';\nimport { AXPFileStorageService } from '@acorex-platform/framework-client/common';\nimport { Component, inject, OnInit, signal, WritableSignal, ChangeDetectionStrategy } from '@angular/core';\nimport { AXMPromotionEntityModel } from '@acorex-platform/module-content-management-client/contracts';\n@Component({\n selector: 'acorex-platform-promotion-slot',\n imports: [AXSafePipe],\n changeDetection: ChangeDetectionStrategy.Eager,\n templateUrl: './promotion-slot.component.html',\n})\nexport class AXMPromotionSlotComponent implements OnInit {\n private readonly entityService = inject(AXPEntityService);\n location: string;\n\n notificationChannelService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.promotion.name).data<any, any>();\n\n listData: WritableSignal<AXMPromotionEntityModel[]> = signal([]);\n\n private fileStorage = inject(AXPFileStorageService);\n\n async ngOnInit(): Promise<void> {\n const channels = await this.notificationChannelService.query({\n skip: 0,\n take: 10000,\n // filter: {\n // field: 'type',\n // operator: { type: 'equal' },\n // value: 'promotion',\n // },\n });\n\n const filteredItems = channels.items.filter((x) => x.placement?.name == this.location);\n\n const mappedItems = await Promise.all(\n filteredItems.map(async (item) => {\n if (item.imageId != null) {\n const image = await this.fileStorage.getInfo(item.imageId);\n\n return {\n ...item,\n image: image,\n };\n } else {\n return item;\n }\n })\n );\n\n this.listData.set(mappedItems);\n }\n} ","@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"w-full p-3 border {{\n item.shape?.name == 'circle' ? 'rounded-full' : 'rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"m-1 px-6 p-4 border bg-primary rounded-lg\">\n <h1 class=\"text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} } ","import { NgModule } from '@angular/core';\nimport { AXPComponentSlotModule } from '@acorex-platform/framework-client/core';\nimport { provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXP_WIDGET_DEFINITION_PROVIDER, AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXMContentManagementWidgetsProvider } from './widget-definition.provider';\nimport { printTextTemplateChannelProvider } from './features/template-content-editor/print-text-template-channel-definition.provider';\nimport { textTemplateEngineProviders } from './text-template-engine.tokens';\n\n// Import promotion-related components\nimport { AXMPromotionSlotComponent } from './features/promotion/components/promotion-slot/promotion-slot.component';\n\n@NgModule({\n imports: [\n AXPWidgetCoreModule,\n AXPComponentSlotModule.forChild({\n 'side-menu-footer': [\n {\n name: 'side-menu-footer-promotion',\n component: AXMPromotionSlotComponent,\n options: {\n location: 'side-menu-footer',\n },\n },\n ],\n 'side-menu-header': [\n {\n name: 'side-menu-header-promotion',\n component: AXMPromotionSlotComponent,\n priority: 2,\n options: {\n location: 'side-menu-header',\n },\n },\n ],\n }),\n ],\n exports: [],\n declarations: [],\n providers: [\n provideLazyProvider(\n AXP_PERMISSION_DEFINITION_PROVIDER,\n () => import('./permission-definition.provider').then((m) => m.AXMPermissionDefinitionProvider),\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () => import('./menu.provider').then((m) => m.AXMMenuProvider)),\n \n provideLazyProvider(\n AXP_SETTING_DEFINITION_PROVIDER,\n () => import('./setting.provider').then((m) => m.AXMSettingProvider),\n ),\n provideLazyProvider(\n AXP_SEARCH_PROVIDER,\n () => import('./search-command.provider').then((m) => m.AXMSearchCommandProvider),\n ),\n {\n provide: AXP_WIDGET_DEFINITION_PROVIDER,\n useClass: AXMContentManagementWidgetsProvider,\n multi: true,\n },\n printTextTemplateChannelProvider,\n ...textTemplateEngineProviders,\n ],\n})\nexport class AXMContentManagementModule {}\n","import { AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY } from '@acorex-platform/module-content-management-client/contracts';\n\n/** Registry / remote key for Nest `ContentManagement:TextTemplate:Render`. */\nexport const AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY = AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY;\n","import {\n AXM_TEXT_TEMPLATE_PREVIEW_COMMAND_KEY,\n AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY,\n type AXMTextTemplatePreviewRequest,\n type AXMTextTemplatePreviewResult,\n type AXMTextTemplateRenderRequest,\n type AXMTextTemplateRenderResult,\n} from '@acorex-platform/module-content-management-client/contracts';\n\n//#region ----- Types -----\n\n/** @deprecated Prefer {@link AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY}. */\nexport const AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY = AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY;\n\n/** @deprecated Prefer {@link AXMTextTemplateRenderRequest}. */\nexport type AXPTextTemplateRenderRequest = AXMTextTemplateRenderRequest;\n\n/** @deprecated Prefer {@link AXMTextTemplateRenderResult}. */\nexport type AXPTextTemplateRenderResult = AXMTextTemplateRenderResult;\n\nexport {\n AXM_TEXT_TEMPLATE_PREVIEW_COMMAND_KEY,\n AXM_TEXT_TEMPLATE_RENDER_COMMAND_KEY,\n type AXMTextTemplatePreviewRequest,\n type AXMTextTemplatePreviewResult,\n type AXMTextTemplateRenderRequest,\n type AXMTextTemplateRenderResult,\n};\n\n//#endregion\n","import { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from '@acorex-platform/module-content-management-client/contracts';\nimport { AXPContentDocumentsPermissionKeys } from '@acorex-platform/module-content-management-client/contracts';\nimport { AXPContentManagementMenuKeys } from '@acorex-platform/module-content-management-client/contracts';\n\n@Injectable()\nexport class AXMMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const scope = RootConfig.config.i18n;\n const module = RootConfig.module;\n\n //#region ---- Administration > Content (Promotions, Page Builder) ----\n\n const contentMenu = context.find(AXPCommonMenuKeys.Content);\n if (!contentMenu.exists) {\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: AXPCommonMenuKeys.Content,\n priority: 10,\n text: '@general:menus.content.title',\n icon: 'fa-light fa-paint-brush',\n type: 'menu',\n children: [],\n },\n ]);\n }\n\n context.find(AXPCommonMenuKeys.Content).addItems([\n {\n name: AXPContentManagementMenuKeys.Promotions,\n text: RootConfig.entities.promotion.titlePlural,\n path: this.entityService.createPath(module.name, RootConfig.entities.promotion.name),\n icon: RootConfig.entities.promotion.icon,\n priority: 1,\n policy: {\n features: [module.name],\n permissions: [AXPContentDocumentsPermissionKeys.MaintainContent],\n },\n },\n ]);\n\n // Text Template under Configuration > Data and Content\n context.find(AXPCommonMenuKeys.DataAndContent).addItems([\n {\n name: AXPContentManagementMenuKeys.TextTemplates,\n text: RootConfig.entities.textTemplate.title,\n path: this.entityService.createPath(module.name, RootConfig.entities.textTemplate.name),\n icon: RootConfig.entities.textTemplate.icon,\n priority: 2,\n policy: {\n features: [module.name],\n permissions: [AXPContentDocumentsPermissionKeys.MaintainContent],\n },\n },\n ]);\n\n //#endregion\n\n //#region ---- Help Menu Extensions ----\n\n context.addItems([\n {\n name: AXPContentManagementMenuKeys.HelpRoot,\n priority: 900000,\n text: `@${scope}:help-center.menus.help.title`,\n icon: 'fa-light fa-circle-question',\n },\n ]);\n\n const helpMenu = context.find(AXPContentManagementMenuKeys.HelpRoot);\n\n if (helpMenu.exists) {\n helpMenu.addItems([\n {\n name: AXPContentManagementMenuKeys.HelpCenter,\n text: `@${scope}:help-center.menus.help-center.title`,\n icon: 'fa-light fa-book-open',\n priority: 900001,\n },\n {\n name: AXPContentManagementMenuKeys.Tutorials,\n text: `@${scope}:help-center.menus.tutorials.title`,\n icon: 'fa-light fa-clapperboard-play',\n priority: 900002,\n },\n {\n name: AXPContentManagementMenuKeys.About,\n text: `@${scope}:help-center.menus.about.title`,\n icon: 'fa-light fa-circle-info',\n priority: 900011,\n },\n ]);\n }\n\n //#endregion\n }\n}\n","import { AXPSearchCommandProvider, AXPSearchResult, createEntityCommandOptions } from '@acorex-platform/framework-client/common';\nimport { RootConfig } from '@acorex-platform/module-content-management-client/contracts';\n\nexport class AXMSearchCommandProvider extends AXPSearchCommandProvider {\n commands: AXPSearchResult[] = [\n {\n id: 'create-promotion',\n group: 'command',\n title: RootConfig.entities.promotion.title,\n icon: RootConfig.entities.promotion.icon,\n description: RootConfig.entities.promotion.titlePlural,\n command: {\n name: 'Entity:Create',\n options: createEntityCommandOptions(\n `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,\n {\n name: RootConfig.entities.promotion.name,\n module: RootConfig.module.name,\n title: RootConfig.entities.promotion.title,\n }\n ),\n },\n },\n {\n id: 'create-text-template',\n group: 'command',\n title: `@content-management:templates.search.create-text-template.title`,\n icon: RootConfig.entities.textTemplate.icon,\n description: `@content-management:templates.search.create-text-template.description`,\n command: {\n name: 'Entity:Create',\n options: createEntityCommandOptions(\n `${RootConfig.module.name}.${RootConfig.entities.textTemplate.name}`,\n {\n name: RootConfig.entities.textTemplate.name,\n module: RootConfig.module.name,\n title: RootConfig.entities.textTemplate.title,\n }\n ),\n },\n },\n ];\n}\n","import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';\n\nexport class AXMSettingProvider implements AXPSettingDefinitionProvider {\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n // context\n // // Add Form Template Group\n // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)\n // // Start Interface Section\n // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')\n // .addSetting({\n // key: 'history-panel',\n // title: 'Show History Panel',\n // scope: 'U',\n // isInherited: true,\n // defaultValue: false,\n // widget: {\n // type: AXPWidgetsCatalog.toggle,\n // },\n // description: 'Enable or disable the history panel for forms.',\n // validationRules: [\n // {\n // rule: 'required',\n // },\n // ],\n // })\n // .endSection()\n // .endGroup();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY"],"mappings":";;;;;;;;;;;;;;;AAGA;AAEA;MACa,6CAA6C,GAAG,IAAI,cAAc,CAE7E,+CAA+C;AAEjD;;ACDA,MAAM,IAAI,GAAG,CAAA,CAAA,EAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAA,CAAqB;AAE5D;MAGa,6CAA6C,CAAA;IAGxD,WAAW,GAAA;QACT,OAAO;AACL,YAAA;AACE,gBAAA,IAAI,EAAE,+BAA+B;gBACrC,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,MAAA,CAAQ;AACtB,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,UAAU,EAAE,KAAK;AAClB,aAAA;SACF;IACH;8GAZW,6CAA6C,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kH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AAChB,gBAAA,KAAK,EAAE,CAAA,+DAAA,CAAiE;AACxE,gBAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,gBAAA,WAAW,EAAE,CAAA,qEAAA,CAAuE;AACpF,gBAAA,OAAO,EAAE;AACP,oBAAA,IAAI,EAAE,eAAe;AACrB,oBAAA,OAAO,EAAE,0BAA0B,CACjC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,EACpE;AACE,wBAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,wBAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,wBAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;qBAC9C,CACF;AACF,iBAAA;AACF,aAAA;SACF;IACH;AAAC;;;;;;;MCxCY,kBAAkB,CAAA;IAC7B,MAAM,OAAO,CAAC,OAA4C,EAAA;;;;;;;;;;;;;;;;;;;;;;;;IAwB1D;AACD;;;;;;;AC5BD;;AAEG;;"}
@@ -0,0 +1,284 @@
1
+ {
2
+ "module": {
3
+ "title": "Content Management",
4
+ "description": "Manage content, promotions, terms & conditions, and glossaries",
5
+ "menus": {
6
+ "root": {
7
+ "title": "Content Management",
8
+ "description": "Manage all content-related information"
9
+ }
10
+ }
11
+ },
12
+ "help-center": {
13
+ "terms": {
14
+ "help": "Help",
15
+ "help-center": "Help Center",
16
+ "tutorials": "Tutorials",
17
+ "about": "About"
18
+ },
19
+ "menus": {
20
+ "help": {
21
+ "title": "Help",
22
+ "description": "Application help and support"
23
+ },
24
+ "help-center": {
25
+ "title": "Help Center",
26
+ "description": "Access help center resources"
27
+ },
28
+ "tutorials": {
29
+ "title": "Tutorials",
30
+ "description": "View application tutorials"
31
+ },
32
+ "about": {
33
+ "title": "About",
34
+ "description": "About the application"
35
+ }
36
+ }
37
+ },
38
+ "promotions": {
39
+ "terms": {
40
+ "promotion": "Promotion",
41
+ "promotions": "Promotions",
42
+ "media": "Media",
43
+ "text": "Text"
44
+ },
45
+ "entities": {
46
+ "promotion": {
47
+ "title": "Promotion",
48
+ "plural": "Promotions",
49
+ "fields": {
50
+ "body": {
51
+ "title": "Body",
52
+ "description": "Promotion content body",
53
+ "placeholder": "Enter promotion content"
54
+ },
55
+ "content-type": {
56
+ "title": "Content Type",
57
+ "description": "Type of content",
58
+ "placeholder": "Select content type"
59
+ },
60
+ "placement": {
61
+ "title": "Placement",
62
+ "description": "Where to display the promotion",
63
+ "placeholder": "Select placement location"
64
+ },
65
+ "shape": {
66
+ "title": "Shape",
67
+ "description": "Display shape for media promotions",
68
+ "placeholder": "Select shape"
69
+ }
70
+ }
71
+ }
72
+ }
73
+ },
74
+ "templates": {
75
+ "terms": {
76
+ "template": "Template",
77
+ "templates": "Templates",
78
+ "text-template": "Text Template"
79
+ },
80
+ "channels": {
81
+ "print": "Print"
82
+ },
83
+ "entities": {
84
+ "text-template": {
85
+ "title": "Text Template",
86
+ "plural": "Text Templates",
87
+ "groups": {
88
+ "template-content": "Template Content"
89
+ },
90
+ "fields": {
91
+ "name": {
92
+ "title": "Name",
93
+ "description": "Unique name for the template",
94
+ "placeholder": "Enter template name"
95
+ },
96
+ "title": {
97
+ "title": "Title",
98
+ "description": "Display name of the template",
99
+ "placeholder": "Enter template title"
100
+ },
101
+ "kind": {
102
+ "title": "Kind",
103
+ "description": "Content template or master layout template.",
104
+ "options": {
105
+ "content": "Content",
106
+ "master": "Master"
107
+ }
108
+ },
109
+ "parent-id": {
110
+ "title": "Parent Template",
111
+ "description": "Optional master template that wraps this template body."
112
+ },
113
+ "parent": {
114
+ "title": "Parent Template"
115
+ },
116
+ "channel": {
117
+ "title": "Channel",
118
+ "description": "Delivery channel for the template",
119
+ "placeholder": "Select channel",
120
+ "options": {
121
+ "email": "Email",
122
+ "sms": "SMS",
123
+ "whatsapp": "WhatsApp",
124
+ "push": "Push",
125
+ "print": "Print"
126
+ }
127
+ },
128
+ "channels": {
129
+ "title": "Channels",
130
+ "description": "Template content per channel (Email, SMS, etc.)",
131
+ "placeholder": "Select channels and enter content"
132
+ },
133
+ "channel-select": {
134
+ "title": "Channels",
135
+ "description": "Select at least one channel",
136
+ "placeholder": "Select channels"
137
+ },
138
+ "subject": {
139
+ "title": "Subject",
140
+ "description": "Email subject line",
141
+ "placeholder": "Enter subject"
142
+ },
143
+ "body": {
144
+ "title": "Body",
145
+ "description": "Template body content with placeholders",
146
+ "placeholder": "Enter template body"
147
+ },
148
+ "body-format": {
149
+ "title": "Content Format",
150
+ "description": "Plain text or rich text (HTML)",
151
+ "placeholder": "Select format",
152
+ "options": {
153
+ "plain": "Plain Text",
154
+ "rich": "Rich Text (HTML)"
155
+ }
156
+ },
157
+ "body-placeholder": {
158
+ "plain": "Enter plain text. Use {{variableName}} for variables. Master templates must include [content].",
159
+ "rich": "Enter rich text. Use {{variableName}} for variables. Master templates must include [content]."
160
+ },
161
+ "category": {
162
+ "title": "Category",
163
+ "description": "Template category for grouping",
164
+ "placeholder": "Enter category"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ "variables": {
170
+ "userName": "User Name",
171
+ "customerName": "Customer Name",
172
+ "orderId": "Order ID",
173
+ "totalAmount": "Total Amount",
174
+ "verificationCode": "Verification Code",
175
+ "resetLink": "Reset Link",
176
+ "expiryMinutes": "Expiry (minutes)"
177
+ },
178
+ "actions": {
179
+ "insert-variable": "Insert Variable",
180
+ "insert-content-slot": "Insert Content Slot",
181
+ "copy-from": "Copy from",
182
+ "configure-channel": "Configure Channel",
183
+ "edit": "Edit",
184
+ "preview": "Preview"
185
+ },
186
+ "messages": {
187
+ "preview-failed": {
188
+ "title": "Preview Unavailable",
189
+ "content": "Server preview failed. Showing a local preview instead."
190
+ }
191
+ },
192
+ "search": {
193
+ "create-text-template": {
194
+ "title": "Create Text Template",
195
+ "description": "Create a new email, SMS, or WhatsApp text template"
196
+ }
197
+ },
198
+ "widgets": {
199
+ "template-content-editor": {
200
+ "title": "Template Content",
201
+ "description": "Multi-channel template editor with tabs (Email, SMS, WhatsApp, etc.)"
202
+ }
203
+ }
204
+ },
205
+ "glossaries": {
206
+ "terms": {
207
+ "glossary": "Glossary",
208
+ "glossaries": "Glossaries"
209
+ },
210
+ "entities": {
211
+ "glossary": {
212
+ "title": "Glossary",
213
+ "plural": "Glossaries",
214
+ "fields": {
215
+ "title": {
216
+ "title": "Title",
217
+ "description": "Glossary term title",
218
+ "placeholder": "Enter title"
219
+ },
220
+ "parent-id": {
221
+ "title": "Parent ID",
222
+ "description": "Parent glossary item",
223
+ "placeholder": "Select parent"
224
+ },
225
+ "translation": {
226
+ "title": "Translation",
227
+ "description": "Term translation",
228
+ "placeholder": "Enter translation"
229
+ }
230
+ }
231
+ }
232
+ }
233
+ },
234
+ "permissions": {
235
+ "manage": {
236
+ "title": "Content Management",
237
+ "description": "Full access to content management"
238
+ },
239
+ "promotion": {
240
+ "manage": {
241
+ "title": "Manage Promotions",
242
+ "description": "Full access to promotions"
243
+ },
244
+ "view": {
245
+ "title": "View Promotions",
246
+ "description": "View promotion details"
247
+ },
248
+ "create": {
249
+ "title": "Create Promotion",
250
+ "description": "Create new promotions"
251
+ },
252
+ "edit": {
253
+ "title": "Edit Promotion",
254
+ "description": "Edit existing promotions"
255
+ },
256
+ "delete": {
257
+ "title": "Delete Promotions",
258
+ "description": "Delete promotions"
259
+ }
260
+ },
261
+ "text-template": {
262
+ "manage": {
263
+ "title": "Manage Text Templates",
264
+ "description": "Full access to text templates"
265
+ },
266
+ "view": {
267
+ "title": "View Text Templates",
268
+ "description": "View text template details"
269
+ },
270
+ "create": {
271
+ "title": "Create Text Template",
272
+ "description": "Create new text templates"
273
+ },
274
+ "edit": {
275
+ "title": "Edit Text Templates",
276
+ "description": "Edit existing text templates"
277
+ },
278
+ "delete": {
279
+ "title": "Delete Text Templates",
280
+ "description": "Delete text templates"
281
+ }
282
+ }
283
+ }
284
+ }
@@ -0,0 +1,284 @@
1
+ {
2
+ "module": {
3
+ "title": "Content Management",
4
+ "description": "Manage content, promotions, terms & conditions, and glossaries",
5
+ "menus": {
6
+ "root": {
7
+ "title": "Content Management",
8
+ "description": "Manage all content-related information"
9
+ }
10
+ }
11
+ },
12
+ "help-center": {
13
+ "terms": {
14
+ "help": "Help",
15
+ "help-center": "Help Center",
16
+ "tutorials": "Tutorials",
17
+ "about": "About"
18
+ },
19
+ "menus": {
20
+ "help": {
21
+ "title": "Help",
22
+ "description": "Application help and support"
23
+ },
24
+ "help-center": {
25
+ "title": "Help Center",
26
+ "description": "Access help center resources"
27
+ },
28
+ "tutorials": {
29
+ "title": "Tutorials",
30
+ "description": "View application tutorials"
31
+ },
32
+ "about": {
33
+ "title": "About",
34
+ "description": "About the application"
35
+ }
36
+ }
37
+ },
38
+ "promotions": {
39
+ "terms": {
40
+ "promotion": "Promotion",
41
+ "promotions": "Promotions",
42
+ "media": "Media",
43
+ "text": "Text"
44
+ },
45
+ "entities": {
46
+ "promotion": {
47
+ "title": "Promotion",
48
+ "plural": "Promotions",
49
+ "fields": {
50
+ "body": {
51
+ "title": "Body",
52
+ "description": "Promotion content body",
53
+ "placeholder": "Enter promotion content"
54
+ },
55
+ "content-type": {
56
+ "title": "Content Type",
57
+ "description": "Type of content",
58
+ "placeholder": "Select content type"
59
+ },
60
+ "placement": {
61
+ "title": "Placement",
62
+ "description": "Where to display the promotion",
63
+ "placeholder": "Select placement location"
64
+ },
65
+ "shape": {
66
+ "title": "Shape",
67
+ "description": "Display shape for media promotions",
68
+ "placeholder": "Select shape"
69
+ }
70
+ }
71
+ }
72
+ }
73
+ },
74
+ "templates": {
75
+ "terms": {
76
+ "template": "Template",
77
+ "templates": "Templates",
78
+ "text-template": "Text Template"
79
+ },
80
+ "channels": {
81
+ "print": "Print"
82
+ },
83
+ "entities": {
84
+ "text-template": {
85
+ "title": "Text Template",
86
+ "plural": "Text Templates",
87
+ "groups": {
88
+ "template-content": "Template Content"
89
+ },
90
+ "fields": {
91
+ "name": {
92
+ "title": "Name",
93
+ "description": "Unique name for the template",
94
+ "placeholder": "Enter template name"
95
+ },
96
+ "title": {
97
+ "title": "Title",
98
+ "description": "Display name of the template",
99
+ "placeholder": "Enter template title"
100
+ },
101
+ "kind": {
102
+ "title": "Kind",
103
+ "description": "Content template or master layout template.",
104
+ "options": {
105
+ "content": "Content",
106
+ "master": "Master"
107
+ }
108
+ },
109
+ "parent-id": {
110
+ "title": "Parent Template",
111
+ "description": "Optional master template that wraps this template body."
112
+ },
113
+ "parent": {
114
+ "title": "Parent Template"
115
+ },
116
+ "channel": {
117
+ "title": "Channel",
118
+ "description": "Delivery channel for the template",
119
+ "placeholder": "Select channel",
120
+ "options": {
121
+ "email": "Email",
122
+ "sms": "SMS",
123
+ "whatsapp": "WhatsApp",
124
+ "push": "Push",
125
+ "print": "Print"
126
+ }
127
+ },
128
+ "channels": {
129
+ "title": "Channels",
130
+ "description": "Template content per channel (Email, SMS, etc.)",
131
+ "placeholder": "Select channels and enter content"
132
+ },
133
+ "channel-select": {
134
+ "title": "Channels",
135
+ "description": "Select at least one channel",
136
+ "placeholder": "Select channels"
137
+ },
138
+ "subject": {
139
+ "title": "Subject",
140
+ "description": "Email subject line",
141
+ "placeholder": "Enter subject"
142
+ },
143
+ "body": {
144
+ "title": "Body",
145
+ "description": "Template body content with placeholders",
146
+ "placeholder": "Enter template body"
147
+ },
148
+ "body-format": {
149
+ "title": "Content Format",
150
+ "description": "Plain text or rich text (HTML)",
151
+ "placeholder": "Select format",
152
+ "options": {
153
+ "plain": "Plain Text",
154
+ "rich": "Rich Text (HTML)"
155
+ }
156
+ },
157
+ "body-placeholder": {
158
+ "plain": "Enter plain text. Use {{variableName}} for variables. Master templates must include [content].",
159
+ "rich": "Enter rich text. Use {{variableName}} for variables. Master templates must include [content]."
160
+ },
161
+ "category": {
162
+ "title": "Category",
163
+ "description": "Template category for grouping",
164
+ "placeholder": "Enter category"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ "variables": {
170
+ "userName": "User Name",
171
+ "customerName": "Customer Name",
172
+ "orderId": "Order ID",
173
+ "totalAmount": "Total Amount",
174
+ "verificationCode": "Verification Code",
175
+ "resetLink": "Reset Link",
176
+ "expiryMinutes": "Expiry (minutes)"
177
+ },
178
+ "actions": {
179
+ "insert-variable": "Insert Variable",
180
+ "insert-content-slot": "Insert Content Slot",
181
+ "copy-from": "Copy from",
182
+ "configure-channel": "Configure Channel",
183
+ "edit": "Edit",
184
+ "preview": "Preview"
185
+ },
186
+ "messages": {
187
+ "preview-failed": {
188
+ "title": "Preview Unavailable",
189
+ "content": "Server preview failed. Showing a local preview instead."
190
+ }
191
+ },
192
+ "search": {
193
+ "create-text-template": {
194
+ "title": "Create Text Template",
195
+ "description": "Create a new email, SMS, or WhatsApp text template"
196
+ }
197
+ },
198
+ "widgets": {
199
+ "template-content-editor": {
200
+ "title": "Template Content",
201
+ "description": "Multi-channel template editor with tabs (Email, SMS, WhatsApp, etc.)"
202
+ }
203
+ }
204
+ },
205
+ "glossaries": {
206
+ "terms": {
207
+ "glossary": "Glossary",
208
+ "glossaries": "Glossaries"
209
+ },
210
+ "entities": {
211
+ "glossary": {
212
+ "title": "Glossary",
213
+ "plural": "Glossaries",
214
+ "fields": {
215
+ "title": {
216
+ "title": "Title",
217
+ "description": "Glossary term title",
218
+ "placeholder": "Enter title"
219
+ },
220
+ "parent-id": {
221
+ "title": "Parent ID",
222
+ "description": "Parent glossary item",
223
+ "placeholder": "Select parent"
224
+ },
225
+ "translation": {
226
+ "title": "Translation",
227
+ "description": "Term translation",
228
+ "placeholder": "Enter translation"
229
+ }
230
+ }
231
+ }
232
+ }
233
+ },
234
+ "permissions": {
235
+ "manage": {
236
+ "title": "Content Management",
237
+ "description": "Full access to content management"
238
+ },
239
+ "promotion": {
240
+ "manage": {
241
+ "title": "Manage Promotions",
242
+ "description": "Full access to promotions"
243
+ },
244
+ "view": {
245
+ "title": "View Promotions",
246
+ "description": "View promotion details"
247
+ },
248
+ "create": {
249
+ "title": "Create Promotion",
250
+ "description": "Create new promotions"
251
+ },
252
+ "edit": {
253
+ "title": "Edit Promotion",
254
+ "description": "Edit existing promotions"
255
+ },
256
+ "delete": {
257
+ "title": "Delete Promotions",
258
+ "description": "Delete promotions"
259
+ }
260
+ },
261
+ "text-template": {
262
+ "manage": {
263
+ "title": "Manage Text Templates",
264
+ "description": "Full access to text templates"
265
+ },
266
+ "view": {
267
+ "title": "View Text Templates",
268
+ "description": "View text template details"
269
+ },
270
+ "create": {
271
+ "title": "Create Text Template",
272
+ "description": "Create new text templates"
273
+ },
274
+ "edit": {
275
+ "title": "Edit Text Templates",
276
+ "description": "Edit existing text templates"
277
+ },
278
+ "delete": {
279
+ "title": "Delete Text Templates",
280
+ "description": "Delete text templates"
281
+ }
282
+ }
283
+ }
284
+ }
@@ -0,0 +1,284 @@
1
+ {
2
+ "module": {
3
+ "title": "مدیریت محتوا",
4
+ "description": "مدیریت محتوا، پروموشن‌ها، شرایط و ضوابط و واژه‌نامه‌ها",
5
+ "menus": {
6
+ "root": {
7
+ "title": "مدیریت محتوا",
8
+ "description": "مدیریت تمام اطلاعات مربوط به محتوا"
9
+ }
10
+ }
11
+ },
12
+ "help-center": {
13
+ "terms": {
14
+ "help": "راهنما",
15
+ "help-center": "مرکز راهنما",
16
+ "tutorials": "آموزش‌ها",
17
+ "about": "درباره"
18
+ },
19
+ "menus": {
20
+ "help": {
21
+ "title": "راهنما",
22
+ "description": "راهنمای برنامه و پشتیبانی"
23
+ },
24
+ "help-center": {
25
+ "title": "مرکز راهنما",
26
+ "description": "دسترسی به منابع مرکز راهنما"
27
+ },
28
+ "tutorials": {
29
+ "title": "آموزش‌ها",
30
+ "description": "مشاهده آموزش‌های برنامه"
31
+ },
32
+ "about": {
33
+ "title": "درباره",
34
+ "description": "درباره برنامه"
35
+ }
36
+ }
37
+ },
38
+ "promotions": {
39
+ "terms": {
40
+ "promotion": "پروموشن",
41
+ "promotions": "پروموشن‌ها",
42
+ "media": "رسانه",
43
+ "text": "متن"
44
+ },
45
+ "entities": {
46
+ "promotion": {
47
+ "title": "پروموشن",
48
+ "plural": "پروموشن‌ها",
49
+ "fields": {
50
+ "body": {
51
+ "title": "متن",
52
+ "description": "متن محتوای پروموشن",
53
+ "placeholder": "محتوای پروموشن را وارد کنید"
54
+ },
55
+ "content-type": {
56
+ "title": "نوع محتوا",
57
+ "description": "نوع محتوا",
58
+ "placeholder": "نوع محتوا را انتخاب کنید"
59
+ },
60
+ "placement": {
61
+ "title": "محل نمایش",
62
+ "description": "محل نمایش پروموشن",
63
+ "placeholder": "محل نمایش را انتخاب کنید"
64
+ },
65
+ "shape": {
66
+ "title": "شکل",
67
+ "description": "شکل نمایش برای پروموشن رسانه‌ای",
68
+ "placeholder": "شکل را انتخاب کنید"
69
+ }
70
+ }
71
+ }
72
+ }
73
+ },
74
+ "templates": {
75
+ "terms": {
76
+ "template": "قالب",
77
+ "templates": "قالب‌ها",
78
+ "text-template": "قالب متنی"
79
+ },
80
+ "channels": {
81
+ "print": "چاپ"
82
+ },
83
+ "entities": {
84
+ "text-template": {
85
+ "title": "قالب متنی",
86
+ "plural": "قالب‌های متنی",
87
+ "groups": {
88
+ "template-content": "محتوای قالب"
89
+ },
90
+ "fields": {
91
+ "name": {
92
+ "title": "نام",
93
+ "description": "نام یکتای قالب",
94
+ "placeholder": "نام قالب را وارد کنید"
95
+ },
96
+ "title": {
97
+ "title": "عنوان",
98
+ "description": "نام نمایشی قالب",
99
+ "placeholder": "عنوان قالب را وارد کنید"
100
+ },
101
+ "kind": {
102
+ "title": "نوع",
103
+ "description": "قالب محتوا یا قالب اصلی چیدمان.",
104
+ "options": {
105
+ "content": "محتوا",
106
+ "master": "اصلی"
107
+ }
108
+ },
109
+ "parent-id": {
110
+ "title": "قالب والد",
111
+ "description": "قالب اصلی اختیاری که بدنه این قالب را دربرمی‌گیرد."
112
+ },
113
+ "parent": {
114
+ "title": "قالب والد"
115
+ },
116
+ "channel": {
117
+ "title": "کانال",
118
+ "description": "کانال ارسال قالب",
119
+ "placeholder": "کانال را انتخاب کنید",
120
+ "options": {
121
+ "email": "ایمیل",
122
+ "sms": "اس‌ام‌اس",
123
+ "whatsapp": "واتساپ",
124
+ "push": "اعلان فوری",
125
+ "print": "چاپ"
126
+ }
127
+ },
128
+ "channels": {
129
+ "title": "کانال‌ها",
130
+ "description": "محتوای قالب به ازای هر کانال (ایمیل، اس‌ام‌اس و غیره)",
131
+ "placeholder": "کانال‌ها را انتخاب کنید و محتوا وارد کنید"
132
+ },
133
+ "channel-select": {
134
+ "title": "کانال‌ها",
135
+ "description": "حداقل یک کانال انتخاب کنید",
136
+ "placeholder": "کانال‌ها را انتخاب کنید"
137
+ },
138
+ "subject": {
139
+ "title": "موضوع",
140
+ "description": "موضوع ایمیل",
141
+ "placeholder": "موضوع را وارد کنید"
142
+ },
143
+ "body": {
144
+ "title": "متن",
145
+ "description": "محتوای قالب با متغیرها",
146
+ "placeholder": "متن قالب را وارد کنید"
147
+ },
148
+ "body-format": {
149
+ "title": "فرمت محتوا",
150
+ "description": "متن ساده یا فرمت شده (HTML)",
151
+ "placeholder": "فرمت را انتخاب کنید",
152
+ "options": {
153
+ "plain": "متن ساده",
154
+ "rich": "متن غنی (HTML)"
155
+ }
156
+ },
157
+ "body-placeholder": {
158
+ "plain": "متن ساده وارد کنید. از {{variableName}} برای متغیرها استفاده کنید. قالب‌های اصلی باید شامل [content] باشند.",
159
+ "rich": "متن غنی وارد کنید. از {{variableName}} برای متغیرها استفاده کنید. قالب‌های اصلی باید شامل [content] باشند."
160
+ },
161
+ "category": {
162
+ "title": "دسته‌بندی",
163
+ "description": "دسته‌بندی قالب",
164
+ "placeholder": "دسته‌بندی را وارد کنید"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ "variables": {
170
+ "userName": "نام کاربر",
171
+ "customerName": "نام مشتری",
172
+ "orderId": "شناسه سفارش",
173
+ "totalAmount": "مبلغ کل",
174
+ "verificationCode": "کد تأیید",
175
+ "resetLink": "لینک بازنشانی",
176
+ "expiryMinutes": "مدت انقضا (دقیقه)"
177
+ },
178
+ "actions": {
179
+ "insert-variable": "درج متغیر",
180
+ "insert-content-slot": "درج جایگاه محتوا",
181
+ "copy-from": "کپی از",
182
+ "configure-channel": "پیکربندی کانال",
183
+ "edit": "ویرایش",
184
+ "preview": "پیش‌نمایش"
185
+ },
186
+ "messages": {
187
+ "preview-failed": {
188
+ "title": "پیش‌نمایش در دسترس نیست",
189
+ "content": "پیش‌نمایش سرور انجام نشد. به‌جای آن پیش‌نمایش محلی نمایش داده می‌شود."
190
+ }
191
+ },
192
+ "search": {
193
+ "create-text-template": {
194
+ "title": "ایجاد قالب متنی",
195
+ "description": "ایجاد قالب متنی جدید برای ایمیل، اس‌ام‌اس یا واتساپ"
196
+ }
197
+ },
198
+ "widgets": {
199
+ "template-content-editor": {
200
+ "title": "محتوای قالب",
201
+ "description": "ویرایشگر چندکاناله قالب با زبانه‌ها (ایمیل، پیامک، واتساپ و غیره)"
202
+ }
203
+ }
204
+ },
205
+ "glossaries": {
206
+ "terms": {
207
+ "glossary": "واژه‌نامه",
208
+ "glossaries": "واژه‌نامه‌ها"
209
+ },
210
+ "entities": {
211
+ "glossary": {
212
+ "title": "واژه‌نامه",
213
+ "plural": "واژه‌نامه‌ها",
214
+ "fields": {
215
+ "title": {
216
+ "title": "عنوان",
217
+ "description": "عنوان اصطلاح واژه‌نامه",
218
+ "placeholder": "عنوان را وارد کنید"
219
+ },
220
+ "parent-id": {
221
+ "title": "شناسه والد",
222
+ "description": "مورد والد واژه‌نامه",
223
+ "placeholder": "والد را انتخاب کنید"
224
+ },
225
+ "translation": {
226
+ "title": "ترجمه",
227
+ "description": "ترجمه اصطلاح",
228
+ "placeholder": "ترجمه را وارد کنید"
229
+ }
230
+ }
231
+ }
232
+ }
233
+ },
234
+ "permissions": {
235
+ "manage": {
236
+ "title": "مدیریت محتوا",
237
+ "description": "دسترسی کامل به مدیریت محتوا"
238
+ },
239
+ "promotion": {
240
+ "manage": {
241
+ "title": "مدیریت پروموشن‌ها",
242
+ "description": "دسترسی کامل به پروموشن‌ها"
243
+ },
244
+ "view": {
245
+ "title": "مشاهده پروموشن‌ها",
246
+ "description": "مشاهده جزئیات پروموشن"
247
+ },
248
+ "create": {
249
+ "title": "ایجاد پروموشن",
250
+ "description": "ایجاد پروموشن جدید"
251
+ },
252
+ "edit": {
253
+ "title": "ویرایش پروموشن‌ها",
254
+ "description": "ویرایش پروموشن‌های موجود"
255
+ },
256
+ "delete": {
257
+ "title": "حذف پروموشن‌ها",
258
+ "description": "حذف پروموشن‌ها"
259
+ }
260
+ },
261
+ "text-template": {
262
+ "manage": {
263
+ "title": "مدیریت قالب‌های متنی",
264
+ "description": "دسترسی کامل به قالب‌های متنی"
265
+ },
266
+ "view": {
267
+ "title": "مشاهده قالب‌های متنی",
268
+ "description": "مشاهده جزئیات قالب متنی"
269
+ },
270
+ "create": {
271
+ "title": "ایجاد قالب متنی",
272
+ "description": "ایجاد قالب متنی جدید"
273
+ },
274
+ "edit": {
275
+ "title": "ویرایش قالب‌های متنی",
276
+ "description": "ویرایش قالب‌های متنی موجود"
277
+ },
278
+ "delete": {
279
+ "title": "حذف قالب‌های متنی",
280
+ "description": "حذف قالب‌های متنی"
281
+ }
282
+ }
283
+ }
284
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-content-management-client",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",