@acorex-platform/module-help-desk-client 0.0.32 → 0.0.37
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.
- package/fesm2022/{acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-OtDtf3iY.mjs → acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-CZOUZYmS.mjs} +17 -15
- package/fesm2022/acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-CZOUZYmS.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-help-desk-client-capture-screen.component-AyM-9U5W.mjs → acorex-platform-module-help-desk-client-capture-screen.component-Bjyqd7A2.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-help-desk-client-capture-screen.component-AyM-9U5W.mjs.map → acorex-platform-module-help-desk-client-capture-screen.component-Bjyqd7A2.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entities-issue-type.mjs +258 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entities-issue-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entities-my-reported-issues.mjs +577 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entities-my-reported-issues.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entities-reported-issues.mjs +588 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entities-reported-issues.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-acorex-platform-module-help-desk-client-contracts-entity-catalog-otgMMFlK.mjs +63 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-acorex-platform-module-help-desk-client-contracts-entity-catalog-otgMMFlK.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-issue-type.entity-CAuZWL3c.mjs +216 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-issue-type.entity-CAuZWL3c.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-my-reported-issues.entity-Dpg2-NaY.mjs +535 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-my-reported-issues.entity-Dpg2-NaY.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-reported-issues.entity-Bb_nYMZe.mjs +546 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog-reported-issues.entity-Bb_nYMZe.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-contracts.mjs +1 -1283
- package/fesm2022/acorex-platform-module-help-desk-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-help-desk-client-download-log-file.command-eMaHHzLd.mjs → acorex-platform-module-help-desk-client-download-log-file.command-SCfaymb_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-help-desk-client-download-log-file.command-eMaHHzLd.mjs.map → acorex-platform-module-help-desk-client-download-log-file.command-SCfaymb_.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-help-desk-client-local-entities.mjs +31 -0
- package/fesm2022/acorex-platform-module-help-desk-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-Bz-m532G.mjs +258 -0
- package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-Bz-m532G.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-help-desk-client-show-report-issue.command-q2fqdnAS.mjs → acorex-platform-module-help-desk-client-show-report-issue.command-ClxoQy2o.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-help-desk-client-show-report-issue.command-q2fqdnAS.mjs.map → acorex-platform-module-help-desk-client-show-report-issue.command-ClxoQy2o.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-help-desk-client.mjs +1 -1
- package/package.json +21 -1
- package/types/acorex-platform-module-help-desk-client-contracts-entities-issue-type.d.ts +5 -0
- package/types/acorex-platform-module-help-desk-client-contracts-entities-my-reported-issues.d.ts +5 -0
- package/types/acorex-platform-module-help-desk-client-contracts-entities-reported-issues.d.ts +5 -0
- package/types/acorex-platform-module-help-desk-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-help-desk-client-contracts.d.ts +2 -8
- package/types/acorex-platform-module-help-desk-client-local-entities.d.ts +12 -0
- package/fesm2022/acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-OtDtf3iY.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs +0 -246
- package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-help-desk-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
@@ -23,6 +23,26 @@
|
|
|
23
23
|
"./contracts": {
|
|
24
24
|
"types": "./types/acorex-platform-module-help-desk-client-contracts.d.ts",
|
|
25
25
|
"default": "./fesm2022/acorex-platform-module-help-desk-client-contracts.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./contracts/entities/issue-type": {
|
|
28
|
+
"types": "./types/acorex-platform-module-help-desk-client-contracts-entities-issue-type.d.ts",
|
|
29
|
+
"default": "./fesm2022/acorex-platform-module-help-desk-client-contracts-entities-issue-type.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./contracts/entities/my-reported-issues": {
|
|
32
|
+
"types": "./types/acorex-platform-module-help-desk-client-contracts-entities-my-reported-issues.d.ts",
|
|
33
|
+
"default": "./fesm2022/acorex-platform-module-help-desk-client-contracts-entities-my-reported-issues.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./contracts/entities/reported-issues": {
|
|
36
|
+
"types": "./types/acorex-platform-module-help-desk-client-contracts-entities-reported-issues.d.ts",
|
|
37
|
+
"default": "./fesm2022/acorex-platform-module-help-desk-client-contracts-entities-reported-issues.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./contracts/entity-catalog": {
|
|
40
|
+
"types": "./types/acorex-platform-module-help-desk-client-contracts-entity-catalog.d.ts",
|
|
41
|
+
"default": "./fesm2022/acorex-platform-module-help-desk-client-contracts-entity-catalog.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./local-entities": {
|
|
44
|
+
"types": "./types/acorex-platform-module-help-desk-client-local-entities.d.ts",
|
|
45
|
+
"default": "./fesm2022/acorex-platform-module-help-desk-client-local-entities.mjs"
|
|
26
46
|
}
|
|
27
47
|
},
|
|
28
48
|
"type": "module"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
5
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
6
|
+
* consume this catalog explicitly.
|
|
7
|
+
*/
|
|
8
|
+
declare const helpDeskLocalEntityCatalog: AXPLocalEntityCatalog;
|
|
9
|
+
|
|
10
|
+
export { helpDeskLocalEntityCatalog };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
2
2
|
|
|
3
3
|
interface AXMLogMessage {
|
|
4
4
|
type: 'log' | 'error' | 'warning';
|
|
@@ -93,16 +93,12 @@ declare const RootConfig: {
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
declare function issueTypeEntityFactory(): Promise<AXPEntity | null>;
|
|
97
|
-
|
|
98
96
|
interface AXMHelpDeskIssueTypeEntityModel extends AXPEntityModel<string> {
|
|
99
97
|
name: string;
|
|
100
98
|
title: string;
|
|
101
99
|
description?: string;
|
|
102
100
|
}
|
|
103
101
|
|
|
104
|
-
declare function myReportedIssuesEntityFactory(): Promise<AXPEntity | null>;
|
|
105
|
-
|
|
106
102
|
interface AXMHelpDeskMyReportedIssuesEntityModel extends AXPEntityModel<string> {
|
|
107
103
|
id: string;
|
|
108
104
|
user: any;
|
|
@@ -123,8 +119,6 @@ interface AXMHelpDeskMyReportedIssuesEntityModel extends AXPEntityModel<string>
|
|
|
123
119
|
createdAt: Date;
|
|
124
120
|
}
|
|
125
121
|
|
|
126
|
-
declare function reportedIssuesEntityFactory(): Promise<AXPEntity | null>;
|
|
127
|
-
|
|
128
122
|
interface AXMHelpDeskReportedIssuesEntityModel extends AXPEntityModel<string> {
|
|
129
123
|
id: string;
|
|
130
124
|
user: any;
|
|
@@ -145,5 +139,5 @@ interface AXMHelpDeskReportedIssuesEntityModel extends AXPEntityModel<string> {
|
|
|
145
139
|
createdAt: Date;
|
|
146
140
|
}
|
|
147
141
|
|
|
148
|
-
export { AXMPermissionsKeys, AXPCollaborationPermissionKeys, AXPHelpDeskMenuKeys, RootConfig
|
|
142
|
+
export { AXMPermissionsKeys, AXPCollaborationPermissionKeys, AXPHelpDeskMenuKeys, RootConfig };
|
|
149
143
|
export type { AXMHelpDeskIssueTypeEntityModel, AXMHelpDeskMyReportedIssuesEntityModel, AXMHelpDeskReportedIssuesEntityModel, AXMLogCaptureState, AXMLogMessage };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
export { helpDeskLocalEntityCatalog } from '@acorex-platform/module-help-desk-client/contracts/entity-catalog';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Registers help-desk layouts on the client from packaged factories.
|
|
6
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
7
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
8
|
+
* `Domain:GetEntityLayout`.
|
|
9
|
+
*/
|
|
10
|
+
declare function provideHelpDeskLocalEntities(): _angular_core.EnvironmentProviders;
|
|
11
|
+
|
|
12
|
+
export { provideHelpDeskLocalEntities };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-OtDtf3iY.mjs","sources":["../../../../libs/modules/help-desk/client/src/lib/features/console-monitor/service/log-capture.service.ts","../../../../libs/modules/help-desk/client/src/lib/features/report-issue/reported-issues-status.provider.ts","../../../../libs/modules/help-desk/client/src/lib/manifest.ts","../../../../libs/modules/help-desk/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/help-desk/client/src/lib/menu.provider.ts","../../../../libs/modules/help-desk/client/src/lib/setting.provider.ts","../../../../libs/modules/help-desk/client/src/lib/components/capture-screen/services/capture-screen.service.ts","../../../../libs/modules/help-desk/client/src/lib/features/report-issue/services/report-new-issue.viewmodel.ts","../../../../libs/modules/help-desk/client/src/lib/features/report-issue/components/report-new-issue/slots/file-uploader-widget-extension/capture-screen.hook.ts","../../../../libs/modules/help-desk/client/src/lib/features/profile-page/help-desk-profile-sections.hook.ts","../../../../libs/modules/help-desk/client/src/lib/help-desk.module.ts","../../../../libs/modules/help-desk/client/src/acorex-platform-module-help-desk-client.ts"],"sourcesContent":["import { computed } from '@angular/core';\nimport { patchState, signalStore, withComputed, withMethods, withState } from '@ngrx/signals';\nimport { AXMLogCaptureState } from '../console-monitor.type';\n\nexport const AXMLogCaptureService = signalStore(\n { providedIn: 'root' },\n withState(() => {\n const state: AXMLogCaptureState = {\n logs: [],\n canCapture: false,\n };\n return state;\n }),\n withComputed((store) => ({\n canCaptureLog: computed(() => store.canCapture()),\n consoleLogs: computed(() => store.logs()),\n })),\n withMethods((store) => {\n const startCapturingLog = () => {\n patchState(store, { canCapture: true });\n };\n const finishCapturingLog = () => {\n patchState(store, { canCapture: false });\n };\n const addConsoleLog = (message: string) => {\n patchState(store, {\n logs: [...store.logs(), { type: 'log', message, timeStamp: new Date().toISOString() }],\n });\n };\n const addConsoleError = (message: string) => {\n patchState(store, {\n logs: [...store.logs(), { type: 'error', message, timeStamp: new Date().toISOString() }],\n });\n };\n const addConsoleWarning = (message: string) => {\n patchState(store, {\n logs: [...store.logs(), { type: 'warning', message, timeStamp: new Date().toISOString() }],\n });\n };\n return {\n startCapturingLog,\n finishCapturingLog,\n addConsoleLog,\n addConsoleError,\n addConsoleWarning,\n };\n }),\n);\n","//#region ---- Imports ----\n\nimport { AXPStatusDefinition, AXPStatusProvider, AXPStatusTransition } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '@acorex-platform/module-help-desk-client/contracts';\n\n//#endregion\n\n//#region ---- Reported Issues Status Provider ----\n\nconst status = (name: string, title: string, color: string, options: Partial<AXPStatusDefinition> = {}): AXPStatusDefinition => ({\n name,\n title,\n color,\n ...options,\n});\n\nconst workflowCommand = (action: string): string =>\n `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}:${action}`;\n\n/**\n * Provides lifecycle status definitions for reported issues.\n */\nexport class AXMReportedIssuesStatusProvider extends AXPStatusProvider {\n readonly key = 'help-desk.status.reported-issues';\n\n readonly statuses: AXPStatusDefinition[] = [\n status('new', '@help-desk:reported-issues.states.new', 'info', { isInitial: true, order: 1, generateView: true }),\n status('in-progress', '@help-desk:reported-issues.states.in-progress', 'primary', { order: 2, generateView: true }),\n status('pending', '@help-desk:reported-issues.states.pending', 'warning', { order: 3, generateView: true }),\n status('resolved', '@help-desk:reported-issues.states.resolved', 'success', { order: 4, generateView: true }),\n status('closed', '@help-desk:reported-issues.states.closed', 'neutral', { isFinal: true, order: 5, generateView: true }),\n ];\n\n readonly transitions: AXPStatusTransition[] = [\n { from: 'new', to: 'in-progress' },\n { from: 'in-progress', to: 'pending' },\n { from: 'in-progress', to: 'resolved' },\n { from: 'pending', to: 'in-progress' },\n { from: 'pending', to: 'resolved' },\n { from: 'resolved', to: 'closed' },\n ];\n\n readonly defaultStatus = 'new';\n}\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-help-desk-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Help Desk Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const HelpDeskManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n\n type: 'domain',\n domain: 'operations',\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ----- Imports -----\r\n\r\nimport {\r\n AXPPermissionDefinitionProvider,\r\n AXPPermissionDefinitionProviderContext,\r\n} from '@acorex-platform/framework-client/auth';\r\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPCollaborationPermissionKeys\n} from '@acorex-platform/module-help-desk-client/contracts';\n\r\nimport { Injectable } from '@angular/core';\r\n\r\n//#endregion\r\n\r\n//#region ----- Permission Provider -----\r\n\r\n/**\r\n * Registers help desk capabilities into the shared Collaboration group.\r\n */\r\n@Injectable()\r\nexport class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\r\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\r\n const keys = AXPCollaborationPermissionKeys;\r\n const groups = AXPCommonPermissionGroupKeys;\r\n const P = '@common:collaboration.permissions';\r\n const G = '@common:permission-groups';\r\n\r\n context.addGroup(groups.Collaboration.Root, `${G}.collaboration.title`, `${G}.collaboration.description`, { order: 80 });\n\n context\n .addGroup(\n groups.Collaboration.HelpDesk,\n `${G}.collaboration-help-desk.title`,\n `${G}.collaboration-help-desk.description`,\n { parent: groups.Collaboration.Root, order: 40 },\n )\n .addPermission(keys.MaintainHelpDesk, `${P}.maintain-help-desk.title`, `${P}.maintain-help-desk.description`)\r\n .endPermission()\r\r\n .endGroup();\r\n }\r\n}\r\n\r\n//#endregion\r\n","import {\n AXPCommonMenuKeys\n} 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 { inject } from '@angular/core';\nimport {\n RootConfig,\n AXPCollaborationPermissionKeys\n} from '@acorex-platform/module-help-desk-client/contracts';\nimport { AXPHelpDeskMenuKeys } from '@acorex-platform/module-help-desk-client/contracts';\n\nexport class AXMMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPCollaborationPermissionKeys;\n\n //#region ---- Configuration > Help Desk (Issue Types) ----\n\n const helpDeskConfigMenu = context.find(AXPCommonMenuKeys.HelpDeskConfig);\n if (!helpDeskConfigMenu.exists) {\n context.find(AXPCommonMenuKeys.Configuration).addItems([\n {\n name: AXPCommonMenuKeys.HelpDeskConfig,\n priority: 8940,\n text: '@general:menus.help-desk.title',\n icon: module.icon,\n type: 'menu',\n children: [],\n policy: {\n features: [module.name],\n permissions: [keys.MaintainHelpDesk],\n },\n },\n ]);\n }\n\n context.find(AXPCommonMenuKeys.HelpDeskConfig).addItems([\n {\n name: AXPHelpDeskMenuKeys.IssueTypes,\n text: '@help-desk:issue-types.menus.issue-types.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.issueType.name),\n icon: RootConfig.entities.issueType.icon,\n priority: 1,\n policy: {\n features: [module.name],\n permissions: [keys.MaintainHelpDesk],\n },\n },\n ]);\n\n //#endregion\n\n //#region ---- Administration > Reported Issues ----\n\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: `${AXPHelpDeskMenuKeys.ReportedIssues}:divider`,\n text: '',\n type: 'break',\n priority: 996,\n },\n {\n name: AXPHelpDeskMenuKeys.ReportedIssues,\n text: '@help-desk:reported-issues.menus.reported-issues.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.reportedIssues.name),\n icon: RootConfig.entities.reportedIssues.icon,\n priority: 997,\n policy: {\n features: [module.name],\n permissions: [keys.MaintainHelpDesk],\n },\n },\n ]);\n\n //#endregion\n\n //#region ---- Help Menu Extensions (Requests & Issues, Report Issue) ----\n\n context.find(AXPCommonMenuKeys.Help).addItems([\n {\n name: AXPHelpDeskMenuKeys.Divider1,\n text: '',\n type: 'break',\n priority: 900004,\n },\n {\n name: AXPHelpDeskMenuKeys.MyReportedIssues,\n text: '@help-desk:my-reported-issues.menus.my-reported-issues.title',\n icon: RootConfig.entities.reportedIssues.icon,\n path: this.entityService.createPath(module.name, RootConfig.entities.reportedIssues.name),\n priority: 900005,\n policy: {\n features: [module.name],\n permissions: [keys.MaintainHelpDesk],\n },\n },\n ]);\n\n //#endregion\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","import { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { ApplicationRef, ComponentRef, inject, ViewContainerRef } from '@angular/core';\nimport { patchState, signalStore, withMethods, withState } from '@ngrx/signals';\nimport html2canvas from 'html2canvas';\nimport { Subject, take } from 'rxjs';\nimport { AXMLogCaptureService } from '../../../features';\nimport { CaptureResult, CaptureScreenState } from '../capture-screen.types';\n\nexport const AXMCaptureScreenService = signalStore(\n { providedIn: 'root' },\n withState(() => {\n const state: CaptureScreenState = {\n loading: false,\n captureMode: 'screenshot',\n screenshotBlob: '',\n videoBlob: '',\n muted: false,\n isRecording: false,\n timer: {\n second: 0,\n minute: 0,\n },\n onFinish: undefined,\n };\n return state;\n }),\n withMethods((store) => {\n let interval: number;\n let videoStream: MediaStream;\n let audioStream: MediaStream | null;\n let mediaRecorder: MediaRecorder;\n let recordedChunks: Blob[] = [];\n let componentRef: ComponentRef<any>;\n const toastService = inject(AXToastService);\n const translationService = inject(AXTranslationService);\n const application = inject(ApplicationRef);\n const logCaptureService = inject(AXMLogCaptureService);\n const stopRecorderSubject = new Subject<void>();\n\n const recordStream = async () => {\n logCaptureService.startCapturingLog();\n mediaRecorder = await new MediaRecorder(videoStream, {\n mimeType: 'video/mp4;codecs=avc1,mp4a.40.2',\n });\n patchState(store, { isRecording: true });\n mediaRecorder.start();\n startTimer();\n mediaRecorder.ondataavailable = (e: any) => {\n recordedChunks.push(e.data);\n };\n mediaRecorder.onstop = () => {\n stopRecorder();\n };\n videoStream.getVideoTracks()[0].onended = () => {\n stopRecorder();\n };\n };\n\n const finishRecording = async (result: CaptureResult | null) => {\n // if (store.onFinish() && result) {\n // store.onFinish()?.(result);\n // }\n logCaptureService.finishCapturingLog();\n store.onFinish()?.(result ?? false);\n resetState();\n componentRef.destroy();\n };\n\n const stopRecorder = async () => {\n await stopRecorderSubject.pipe(take(1)).subscribe(async () => {\n try {\n if (mediaRecorder && videoStream?.active) {\n await mediaRecorder.stop();\n if (audioStream) {\n audioStream.getTracks().forEach((track) => track.stop());\n }\n videoStream.getVideoTracks().forEach((track) => track.stop());\n clearInterval(interval);\n patchState(store, { isRecording: false, timer: { second: 0, minute: 0 } });\n setTimeout(() => {\n createVideoBlob();\n });\n }\n } catch (error) {\n console.error('Error stopping recorder:', error);\n finishRecording(null);\n }\n });\n stopRecorderSubject.next();\n };\n\n const createVideoBlob = () => {\n try {\n if (recordedChunks.length > 0) {\n const blob = new Blob(recordedChunks, {\n type: recordedChunks[0].type,\n });\n finishRecording({ blob, type: 'video' });\n }\n } catch (error) {\n console.error('Error creating video blob:', error);\n finishRecording(null);\n }\n };\n\n const startTimer = () => {\n interval = setInterval(() => {\n if (store.timer().minute === 5) {\n stopRecorder();\n setTimeout(async () => {\n toastService.show({\n color: 'warning',\n content: await translationService.translateAsync('@help-desk:report-new-issue.components.report-new-issue-form.recording-time-limit'),\n timeOut: 5000,\n });\n }, 100);\n } else if (store.timer().second === 59) {\n patchState(store, { timer: { minute: ++store.timer().minute, second: 0 } });\n } else {\n patchState(store, { timer: { minute: store.timer().minute, second: ++store.timer().second } });\n }\n }, 1000);\n };\n\n const resetState = () => {\n patchState(store, {\n loading: false,\n captureMode: 'screenshot',\n screenshotBlob: '',\n videoBlob: '',\n muted: false,\n isRecording: false,\n timer: {\n second: 0,\n minute: 0,\n },\n onFinish: undefined,\n });\n };\n\n return {\n init: async (onFinish: (data: CaptureResult | boolean) => any) => {\n try {\n const { AXMCaptureScreenComponent } = await import(\n '../components/capture-screen-component/capture-screen.component'\n );\n const viewContainerRef = application.components[0].injector.get(ViewContainerRef);\n componentRef = viewContainerRef.createComponent(AXMCaptureScreenComponent);\n document.body.appendChild(componentRef.location.nativeElement);\n patchState(store, { onFinish });\n } catch (error) {\n console.error('Error initializing capture screen:', error);\n onFinish?.({ blob: new Blob(), type: 'image' });\n }\n },\n cancelClick() {\n if (store.isRecording()) {\n stopRecorder();\n return;\n }\n this.changeCaptureMode();\n finishRecording(null);\n },\n changeCaptureMode() {\n patchState(store, {\n captureMode: store.captureMode() === 'screenshot' ? 'video' : 'screenshot',\n });\n },\n async mutedClick() {\n const enabled = store.muted();\n if (audioStream) {\n audioStream.getTracks().forEach((track) => (track.enabled = enabled));\n }\n patchState(store, { muted: !enabled });\n },\n async screenshotClick() {\n await patchState(store, { loading: true });\n const captureElement = document.getElementsByTagName('body')[0];\n setTimeout(() => {\n html2canvas(captureElement)\n .then(async (canvas: HTMLCanvasElement) => {\n try {\n const blob = await new Promise<Blob>((resolve, reject) => {\n canvas.toBlob(\n (nextBlob: Blob | null) =>\n nextBlob ? resolve(nextBlob) : reject(new Error('Failed to create blob')),\n 'image/png',\n );\n });\n finishRecording({ blob, type: 'image' });\n } catch (error: unknown) {\n console.error('Error creating screenshot:', error);\n finishRecording(null);\n }\n })\n .catch((error: unknown) => {\n console.error('Error capturing screenshot:', error);\n finishRecording(null);\n })\n .finally(() => {\n patchState(store, { loading: false });\n });\n });\n },\n async recordScreenClick() {\n if (!store.isRecording() && !videoStream?.active) {\n try {\n videoStream = await navigator.mediaDevices.getDisplayMedia({\n video: { displaySurface: 'monitor' },\n audio: true,\n });\n await this.getMicrophonePermission();\n await recordStream();\n } catch (error) {\n console.error('Error starting screen recording:', error);\n toastService.show({\n color: 'warning',\n content: await translationService.translateAsync('@help-desk:report-new-issue.components.report-new-issue-form.capture-screen-error'),\n timeOut: 5000,\n });\n finishRecording(null);\n }\n } else if (mediaRecorder) {\n stopRecorder();\n }\n },\n async getMicrophonePermission() {\n try {\n audioStream = await navigator.mediaDevices.getUserMedia({\n audio: {\n echoCancellation: true,\n noiseSuppression: true,\n sampleRate: 44100,\n autoGainControl: true,\n },\n });\n if (audioStream && videoStream) {\n videoStream.addTrack(audioStream.getTracks()[0]);\n audioStream.getTracks()[0].enabled = !store.muted();\n }\n } catch (error) {\n console.error('Error getting microphone permission:', error);\n toastService.show({\n color: 'warning',\n content: await translationService.translateAsync('@help-desk:report-new-issue.components.report-new-issue-form.get-microphone-error'),\n timeOut: 5000,\n });\n audioStream = null;\n }\n },\n };\n }),\n);\n","import { AXMediaViewerData } from '@acorex/components/media-viewer';\nimport { AXPopupConfig, AXPopupService } from '@acorex/components/popup';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPEntityBroadcastService, AXPDataGenerator} from '@acorex-platform/framework-client/core';\nimport { computed, inject } from '@angular/core';\nimport { patchState, signalStore, withComputed, withMethods, withState } from '@ngrx/signals';\nimport { AXMCaptureScreenService } from '../../../components/capture-screen';\nimport { RootConfig } from '@acorex-platform/module-help-desk-client/contracts';\nimport { AXMLogCaptureService } from '../../console-monitor';\nimport { ReportIssueState } from '../report-issue.types';\n\nexport const AXMReportNewIssueViewModel = signalStore(\n { providedIn: 'root' },\n withState(() => {\n const state: ReportIssueState = {\n id: AXPDataGenerator.uuid(),\n data: {\n title: '',\n description: '',\n issueType: {} as { title: string; id: string },\n priority: {} as { title: string; id: string },\n },\n status: 'new',\n media: [],\n };\n return state;\n }),\n withComputed(({ status }) => ({\n isRecording: computed(() => status() === 'recording'),\n })),\n withMethods(\n (\n store,\n popupService = inject(AXPopupService),\n captureScreenService = inject(AXMCaptureScreenService),\n logCaptureService = inject(AXMLogCaptureService),\n entityEvents = inject(AXPEntityBroadcastService),\n translateService = inject(AXTranslationService),\n ) => {\n const createMediaItem = (\n name: string,\n mediaUrl: string,\n type: 'image' | 'video' | 'text',\n ): AXMediaViewerData => ({\n id: (store.media().length + 1).toString(),\n name: name,\n type: type as any,\n thumbnailUrl: mediaUrl,\n url: mediaUrl,\n });\n return {\n async startCapturing() {\n patchState(store, { status: 'recording' });\n captureScreenService.init(async (data: boolean | { blob: Blob; type: string }) => {\n try {\n if (typeof data === 'object' && 'blob' in data) {\n const newMedia: AXMediaViewerData[] = [];\n const mediaUrl = await URL.createObjectURL(data.blob);\n const fileName = `${new Date().toISOString()}.${data.type === 'image' ? 'png' : 'mp4'}`;\n newMedia.push(createMediaItem(fileName, mediaUrl, data.type as 'image' | 'video'));\n if (data.type === 'video') {\n const data = JSON.stringify(await logCaptureService.logs());\n const logFileName = `logs-${new Date().toLocaleDateString(translateService.getActiveLang())}.txt`;\n const blobLogFile = await new Blob([data], { type: 'text/txt;charset=utf-8' });\n const logFileMediaUrl = await URL.createObjectURL(blobLogFile);\n newMedia.push(createMediaItem(logFileName, logFileMediaUrl, 'text'));\n }\n patchState(store, {\n media: [...store.media(), ...newMedia],\n status: 'recorded',\n });\n }\n this.showPopup();\n } catch (error) {\n console.error('Error capturing media:', error);\n return undefined;\n }\n });\n },\n async showPopup() {\n try {\n const { AXMReportNewIssueComponent } = await import(\n '../components/report-new-issue/report-new-issue.component'\n );\n const config: AXPopupConfig = {\n title: await translateService.translateAsync('@help-desk:report-new-issue.entities.report-new-issue.title'),\n };\n const result = await popupService.open(AXMReportNewIssueComponent, config);\n if (result.data?.insertResult) {\n entityEvents.publishLayoutRefresh('reported-issues');\n patchState(store, { status: 'new' });\n }\n } catch (error) {\n console.error('Error showing popup:', error);\n patchState(store, { status: 'new' });\n }\n },\n deleteCapturedItem(index: number) {\n patchState(store, { media: store.media().filter((_, i) => i !== index) });\n },\n resetState() {\n patchState(store, {\n id: AXPDataGenerator.uuid(),\n data: {\n title: '',\n description: '',\n issueType: {} as { title: string; id: string },\n priority: {} as { title: string; id: string },\n },\n status: 'new',\n media: [],\n });\n },\n };\n },\n ),\n);\n","import { inject } from '@angular/core';\nimport { AXPDistributedEventListenerProvider } from '@acorex-platform/framework-client/core';\nimport { AXMReportNewIssueViewModel } from '../../../../services/report-new-issue.viewmodel';\n\nexport const CaptureScreenHookProvider: AXPDistributedEventListenerProvider<any, any> = {\n key: 'file-uploader.actions',\n priority: 0,\n execute: (payload: { host: any; plugins: { name: string; options?: unknown }[]; excludePlugins: string[]; actions: any[] }) => {\n const vm = inject(AXMReportNewIssueViewModel);\n\n const isExcluded = Array.isArray(payload.excludePlugins) && payload.excludePlugins.includes('capture-screen');\n // show if plugin is explicitly enabled or it's global and not excluded\n const isEnabled = Array.isArray(payload.plugins) && payload.plugins.some(p => p.name === 'capture-screen');\n if (!isEnabled && isExcluded) {\n return payload;\n }\n\n payload.actions = [\n ...payload.actions,\n {\n plugin: 'capture-screen',\n global: false,\n textKey: '@help-desk:report-new-issue.components.report-new-issue-form.capture-screen',\n icon: 'fa-light fa-video',\n run: async () => {\n vm.startCapturing();\n },\n },\n ];\n\n return payload;\n },\n};\n\n\n","import { AXPExecuteCommand } from '@acorex-platform/framework-shared/core';\nimport { AXPDistributedEventListenerProvider } from '@acorex-platform/framework-client/core';\n\n//#region ---- Types ----\n\ntype ProfileSectionsPayload = {\n sections: Record<string, unknown>[];\n groupId?: string;\n};\n\n//#endregion\n\n//#region ---- Helpers ----\n\nconst comingSoon = (messageKey: string): AXPExecuteCommand => ({\n name: 'auth:profile-coming-soon',\n options: { messageKey },\n});\n\n//#endregion\n\n//#region ---- Help desk profile sections ----\n\n/** Contributes help desk sections to the user profile hub. */\nexport const HelpDeskProfileSectionsHookProvider: AXPDistributedEventListenerProvider<\n ProfileSectionsPayload,\n ProfileSectionsPayload\n> = {\n key: 'profile-page.sections',\n priority: 10,\n execute: (payload) => {\n if (payload.groupId && payload.groupId !== 'requests') {\n return payload;\n }\n\n return {\n ...payload,\n sections: [\n ...payload.sections,\n {\n id: 'my-tickets',\n groupId: 'requests',\n title: '@help-desk:profile-page.sections.my-tickets.title',\n description: '@help-desk:profile-page.sections.my-tickets.description',\n icon: 'far fa-ticket',\n priority: 10,\n layout: { colSpan: 6 },\n actions: [\n {\n name: 'view-my-tickets',\n title: '@help-desk:profile-page.sections.my-tickets.actions.manage',\n icon: 'far fa-arrow-right',\n command: comingSoon('@help-desk:profile-page.commands.view-my-tickets.coming-soon'),\n },\n ],\n },\n ],\n };\n },\n};\n\n//#endregion\n","import { AXPComponentSlotModule } from '@acorex-platform/framework-client/core';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\nimport { AXP_MODULE_MANIFEST_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { HelpDeskManifest } from './manifest';\nimport { AXP_STATUS_PROVIDERS, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXMPermissionDefinitionProvider } from './permission-definition.provider';\nimport { AXMMenuProvider } from './menu.provider';\n\nimport { AXMSettingProvider } from './setting.provider';\n\nimport { CaptureScreenHookProvider } from './features/report-issue/components/report-new-issue/slots/file-uploader-widget-extension';\nimport { HelpDeskProfileSectionsHookProvider } from './features/profile-page/help-desk-profile-sections.hook';\nimport { AXMReportedIssuesStatusProvider } from './features/report-issue/reported-issues-status.provider';\n\n@NgModule({\n imports: [\n AXPComponentSlotModule.forChild({\n // 'file-uploader-widget-actions': [\n // {\n // name: 'capture-screen-actions',\n // component: AXPCaptureScreenWidgetExtensionComponent,\n // },\n // ],\n }),\n ],\n exports: [],\n declarations: [],\n providers: [\n // Module-specific providers (not part of manifest system)\n {\n provide: AXP_STATUS_PROVIDERS,\n useClass: AXMReportedIssuesStatusProvider,\n multi: true,\n },\n {\n provide: AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER,\n useValue: CaptureScreenHookProvider,\n multi: true,\n },\n {\n provide: AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER,\n useValue: HelpDeskProfileSectionsHookProvider,\n multi: true,\n },\n // Module Manifest Provider\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: HelpDeskManifest,\n multi: true,\n },\n // Provider references (now using tokens)\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMPermissionDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMMenuProvider,\n multi: true,\n },\n \n {\n provide: AXP_SETTING_DEFINITION_PROVIDER,\n useClass: AXMSettingProvider,\n multi: true,\n },\n provideCommandSetups([\n {\n key: 'show-report-issue',\n command: () =>\n import('./features/report-issue/commands/show-report-issue.command').then((c) => c.AXMShowReportIssueCommand),\n },\n {\n key: 'download-log-file',\n command: () =>\n import('./features/report-issue/commands/download-log-file.command').then((c) => c.AXMDownloadLogFileCommand),\n },\n ]),\n ],\n})\nexport class AXMHelpDeskModule { }\n","/**\n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;AACZ,yBAAA;;AAED,wBAAA;AACE,4BAAA,OAAO,EAAE,4BAA4B;AACrC,4BAAA,QAAQ,EAAE,gBAAgB;AAC1B,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;;AAED,wBAAA;AACE,4BAAA,OAAO,EAAE,kCAAkC;AAC3C,4BAAA,QAAQ,EAAE,+BAA+B;AACzC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,eAAe;AACzB,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AAED,wBAAA;AACE,4BAAA,OAAO,EAAE,+BAA+B;AACxC,4BAAA,QAAQ,EAAE,kBAAkB;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA,oBAAoB,CAAC;AACnB,4BAAA;AACE,gCAAA,GAAG,EAAE,mBAAmB;AACxB,gCAAA,OAAO,EAAE,MACP,OAAO,kFAA4D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AAChH,6BAAA;AACD,4BAAA;AACE,gCAAA,GAAG,EAAE,mBAAmB;AACxB,gCAAA,OAAO,EAAE,MACP,OAAO,kFAA4D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AAChH,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AClFD;;AAEG;;;;"}
|
package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
|
|
3
|
-
import { AXDataSource } from '@acorex/cdk/common';
|
|
4
|
-
import * as i2$1 from '@acorex/components/button';
|
|
5
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
6
|
-
import * as i3$1 from '@acorex/components/decorators';
|
|
7
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
8
|
-
import * as i2 from '@acorex/components/form';
|
|
9
|
-
import { AXFormModule, AXFormComponent } from '@acorex/components/form';
|
|
10
|
-
import * as i3 from '@acorex/components/label';
|
|
11
|
-
import { AXLabelModule } from '@acorex/components/label';
|
|
12
|
-
import { AXMediaViewerModule } from '@acorex/components/media-viewer';
|
|
13
|
-
import { AXBasePageComponent } from '@acorex/components/page';
|
|
14
|
-
import * as i5 from '@acorex/components/select-box';
|
|
15
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
16
|
-
import * as i6 from '@acorex/components/text-area';
|
|
17
|
-
import { AXTextAreaModule } from '@acorex/components/text-area';
|
|
18
|
-
import * as i4 from '@acorex/components/text-box';
|
|
19
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
20
|
-
import * as i11 from '@acorex/core/translation';
|
|
21
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
22
|
-
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
23
|
-
import { AXPFileStorageService } from '@acorex-platform/framework-client/common';
|
|
24
|
-
import * as i9 from '@acorex-platform/framework-client/layout/widget-core';
|
|
25
|
-
import { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';
|
|
26
|
-
import * as i1$1 from '@angular/common';
|
|
27
|
-
import { CommonModule } from '@angular/common';
|
|
28
|
-
import * as i0 from '@angular/core';
|
|
29
|
-
import { inject, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
30
|
-
import * as i1 from '@angular/forms';
|
|
31
|
-
import { FormsModule } from '@angular/forms';
|
|
32
|
-
import { RootConfig } from '@acorex-platform/module-help-desk-client/contracts';
|
|
33
|
-
import { A as AXMReportNewIssueViewModel, a as AXMLogCaptureService } from './acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-OtDtf3iY.mjs';
|
|
34
|
-
|
|
35
|
-
class AXMReportNewIssueComponent extends AXBasePageComponent {
|
|
36
|
-
constructor() {
|
|
37
|
-
super();
|
|
38
|
-
this.entityService = inject(AXPEntityService);
|
|
39
|
-
this.vm = inject(AXMReportNewIssueViewModel);
|
|
40
|
-
this.logCaptureService = inject(AXMLogCaptureService);
|
|
41
|
-
this.sessionService = inject(AXPSessionService);
|
|
42
|
-
this.issueTypeService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.issueType.name).data();
|
|
43
|
-
this.reportedIssuesService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.reportedIssues.name).data();
|
|
44
|
-
this.fileStorageService = inject(AXPFileStorageService);
|
|
45
|
-
this.issueTypeDataSource = new AXDataSource({
|
|
46
|
-
load: async (_) => {
|
|
47
|
-
const issueTypeList = await this.issueTypeService.query();
|
|
48
|
-
return issueTypeList;
|
|
49
|
-
},
|
|
50
|
-
pageSize: 20,
|
|
51
|
-
});
|
|
52
|
-
this.priorityList = [
|
|
53
|
-
{
|
|
54
|
-
title: 'Low',
|
|
55
|
-
id: 1,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
title: 'Medium',
|
|
59
|
-
id: 2,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: 'High',
|
|
63
|
-
id: 3,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
title: 'Critical',
|
|
67
|
-
id: 4,
|
|
68
|
-
},
|
|
69
|
-
];
|
|
70
|
-
this.attachNode = {
|
|
71
|
-
type: AXPWidgetsCatalog.attachments,
|
|
72
|
-
name: 'attach',
|
|
73
|
-
path: 'attach',
|
|
74
|
-
defaultValue: this.vm.media().map((el) => {
|
|
75
|
-
// Handle url that can be string or () => Promise<string>
|
|
76
|
-
const urlValue = typeof el.url === 'string' ? el.url : undefined;
|
|
77
|
-
return {
|
|
78
|
-
name: el.name ?? '',
|
|
79
|
-
status: 'uploaded',
|
|
80
|
-
id: el.id,
|
|
81
|
-
size: parseInt(el.size ?? '0'),
|
|
82
|
-
source: {
|
|
83
|
-
kind: 'url',
|
|
84
|
-
value: urlValue,
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
}),
|
|
88
|
-
options: {
|
|
89
|
-
multiple: true,
|
|
90
|
-
entity: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
|
|
91
|
-
record: this.vm.id(),
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
this.context = {};
|
|
95
|
-
}
|
|
96
|
-
async handleSubmitClick() {
|
|
97
|
-
const formResult = await this.form.validate();
|
|
98
|
-
if (formResult.result) {
|
|
99
|
-
const params = {
|
|
100
|
-
id: this.vm.id(),
|
|
101
|
-
createdAt: new Date(),
|
|
102
|
-
description: this.vm.data().description,
|
|
103
|
-
errorLogs: this.logCaptureService.logs(),
|
|
104
|
-
issueType: this.vm.data().issueType,
|
|
105
|
-
priority: this.vm.data().priority,
|
|
106
|
-
status: 'new',
|
|
107
|
-
systemInfo: navigator.userAgent,
|
|
108
|
-
title: this.vm.data().title,
|
|
109
|
-
user: this.sessionService.user,
|
|
110
|
-
};
|
|
111
|
-
const reportedIssue = await this.reportedIssuesService.create(params);
|
|
112
|
-
if (reportedIssue && reportedIssue.length) {
|
|
113
|
-
const attachments = [];
|
|
114
|
-
for (const res of this.vm.media()) {
|
|
115
|
-
const file = await this.fileStorageSaver(reportedIssue, res);
|
|
116
|
-
console.log(file);
|
|
117
|
-
attachments.push(file);
|
|
118
|
-
// const fileStorageInfo: AXPFileStorageInfo = await this.fileStorageService.save({
|
|
119
|
-
// file: await this.convertURLToFile(res.url, res.name as string),
|
|
120
|
-
// refId: reportedIssue,
|
|
121
|
-
// refType: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
|
|
122
|
-
// category: '',
|
|
123
|
-
// name: res.name,
|
|
124
|
-
// });
|
|
125
|
-
// await this.fileStorageService.commit(fileStorageInfo.fileId);
|
|
126
|
-
// attachments.push({
|
|
127
|
-
// name: res.name ?? '',
|
|
128
|
-
// status: 'uploaded',
|
|
129
|
-
// id: fileStorageInfo.fileId,
|
|
130
|
-
// size: parseInt(res.size ?? '0'),
|
|
131
|
-
// source: {
|
|
132
|
-
// kind: 'fileId',
|
|
133
|
-
// value: fileStorageInfo.fileId,
|
|
134
|
-
// },
|
|
135
|
-
// });
|
|
136
|
-
}
|
|
137
|
-
await this.reportedIssuesService.update(reportedIssue, { attachments });
|
|
138
|
-
this.vm.resetState();
|
|
139
|
-
this.close({ insertResult: true });
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
async fileStorageSaver(reportedIssueId, file) {
|
|
144
|
-
// Resolve url whether it's a string or a function that returns Promise<string>
|
|
145
|
-
const resolvedUrl = typeof file.url === 'function' ? await file.url() : file.url;
|
|
146
|
-
const fileStorageInfo = await this.fileStorageService.save({
|
|
147
|
-
file: await this.convertURLToFile(resolvedUrl, file.name),
|
|
148
|
-
refId: reportedIssueId,
|
|
149
|
-
refType: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
|
|
150
|
-
category: '',
|
|
151
|
-
name: file.name,
|
|
152
|
-
});
|
|
153
|
-
await this.fileStorageService.commit(fileStorageInfo.fileId);
|
|
154
|
-
return {
|
|
155
|
-
name: file.name ?? '',
|
|
156
|
-
status: 'uploaded',
|
|
157
|
-
id: fileStorageInfo.fileId,
|
|
158
|
-
size: parseInt(file.size ?? '0'),
|
|
159
|
-
source: {
|
|
160
|
-
kind: 'fileId',
|
|
161
|
-
value: fileStorageInfo.fileId,
|
|
162
|
-
},
|
|
163
|
-
};
|
|
164
|
-
// attachments.push({
|
|
165
|
-
// name: res.name ?? '',
|
|
166
|
-
// status: 'uploaded',
|
|
167
|
-
// id: fileStorageInfo.fileId,
|
|
168
|
-
// size: parseInt(res.size ?? '0'),
|
|
169
|
-
// source: {
|
|
170
|
-
// kind: 'fileId',
|
|
171
|
-
// value: fileStorageInfo.fileId,
|
|
172
|
-
// },
|
|
173
|
-
// });
|
|
174
|
-
// await this.reportedIssuesService.updateOne(reportedIssueId, {
|
|
175
|
-
// attachments: [
|
|
176
|
-
// ...(this.vm.media() ?? []),
|
|
177
|
-
// {
|
|
178
|
-
// name: file.name ?? '',
|
|
179
|
-
// status: 'uploaded',
|
|
180
|
-
// id: fileStorageInfo.fileId,
|
|
181
|
-
// size: parseInt(file.size ?? '0'),
|
|
182
|
-
// source: {
|
|
183
|
-
// kind: 'fileId',
|
|
184
|
-
// value: fileStorageInfo.fileId,
|
|
185
|
-
// },
|
|
186
|
-
// },
|
|
187
|
-
// ],
|
|
188
|
-
// });
|
|
189
|
-
}
|
|
190
|
-
async convertURLToFile(url, fileName) {
|
|
191
|
-
const response = await fetch(url);
|
|
192
|
-
const blob = await response.blob();
|
|
193
|
-
const file = new File([blob], fileName);
|
|
194
|
-
return file;
|
|
195
|
-
}
|
|
196
|
-
async handleStartRecordingClick() {
|
|
197
|
-
await this.vm.startCapturing();
|
|
198
|
-
this.close();
|
|
199
|
-
}
|
|
200
|
-
async onDeleteMediaClick(index) {
|
|
201
|
-
this.vm.deleteCapturedItem(index);
|
|
202
|
-
}
|
|
203
|
-
async onCancelClick() {
|
|
204
|
-
this.vm.resetState();
|
|
205
|
-
this.close();
|
|
206
|
-
}
|
|
207
|
-
handleIssueTypeChange(event) {
|
|
208
|
-
this.vm.data().issueType = event.component.selectedItems[0];
|
|
209
|
-
}
|
|
210
|
-
handlePriorityChange(event) {
|
|
211
|
-
this.vm.data().priority = event.component.selectedItems[0];
|
|
212
|
-
}
|
|
213
|
-
ngOnDestroy() {
|
|
214
|
-
if (this.vm.status() !== 'recording') {
|
|
215
|
-
this.vm.resetState();
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMReportNewIssueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
219
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXMReportNewIssueComponent, isStandalone: true, selector: "axm-report-new-issue", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"p-6\">\n <ax-form #form>\n <div class=\"grid gap-2\">\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.title' | translate | async }}</ax-label>\n <ax-text-box [(ngModel)]=\"vm.data().title\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.issue-type' | translate | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"issueTypeDataSource\"\n [value]=\"vm.data().issueType\"\n (onValueChanged)=\"handleIssueTypeChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.priority' | translate | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"priorityList\"\n [value]=\"vm.data().priority\"\n (onValueChanged)=\"handlePriorityChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.description' | translate | async }}</ax-label>\n <ax-text-area [(ngModel)]=\"vm.data().description\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-area>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.attachments' | translate | async }}</ax-label>\n <axp-widgets-container class=\"flex flex-col gap-2 p-4\" [context]=\"context\">\n <ng-container axp-widget-renderer [node]=\"attachNode\" [mode]=\"'edit'\"> </ng-container>\n </axp-widgets-container>\n </ax-form-field>\n </div>\n </ax-form>\n <!-- @if(vm.media().length > 0){\n <div class=\"py-4\">\n <ax-content>\n <ax-media-viewer-container #mediaViewer [dataArray]=\"vm.media()\" class=\"block\">\n <ax-header>\n <ax-file-info></ax-file-info>\n <ax-suffix>\n <ax-button class=\"ax-sm\" color=\"danger\" (onClick)=\"onDeleteMediaClick(mediaViewer.getActiveIndex())\">\n <ax-icon class=\"icon icon-trash\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"mediaViewer.next()\">\n <ax-icon class=\"icon icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"mediaViewer.prev()\">\n <ax-icon class=\"icon icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n </ax-content>\n </div>\n } -->\n <!-- <div>\n <ax-label>{{ t('report-new-issue.attach', { scope: 'help-desk' }) | async }}</ax-label>\n <div\n class=\"flex flex-col items-center justify-center border border-dashed border-secondary-500 rounded-lg p-6\"\n >\n <div class=\"rounded-full bg-surface px-4 py-3\">\n <ax-icon class=\"fa-solid fa-paperclip text-on-surface text-xl\"></ax-icon>\n </div>\n <p class=\"text-lg text-on-surface\">\n {{ t('report-new-issue.attach-box-description', { scope: 'help-desk' }) | async }}\n </p>\n <ax-button\n class=\"w-fit mt-6\"\n [text]=\"t('report-new-issue.start-capture-screen', { scope: 'help-desk' }) | async\"\n color=\"secondary\"\n (onClick)=\"handleStartRecordingClick()\"\n ></ax-button>\n </div>\n </div> -->\n</div>\n<ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n color=\"default\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n (onClick)=\"onCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSubmitClick()\"\n ></ax-button>\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
|
|
220
|
-
//
|
|
221
|
-
AXTranslationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i2.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i3.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i4.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i5.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "itemHeight", "maxVisibleItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i6.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXMediaViewerModule }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i9.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i9.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i11.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
222
|
-
}
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMReportNewIssueComponent, decorators: [{
|
|
224
|
-
type: Component,
|
|
225
|
-
args: [{ selector: 'axm-report-new-issue', changeDetection: ChangeDetectionStrategy.Eager, imports: [
|
|
226
|
-
CommonModule,
|
|
227
|
-
FormsModule,
|
|
228
|
-
//
|
|
229
|
-
AXTranslationModule,
|
|
230
|
-
AXFormModule,
|
|
231
|
-
AXLabelModule,
|
|
232
|
-
AXTextBoxModule,
|
|
233
|
-
AXSelectBoxModule,
|
|
234
|
-
AXTextAreaModule,
|
|
235
|
-
AXDecoratorModule,
|
|
236
|
-
AXButtonModule,
|
|
237
|
-
AXMediaViewerModule,
|
|
238
|
-
AXPWidgetCoreModule,
|
|
239
|
-
], template: "<div class=\"p-6\">\n <ax-form #form>\n <div class=\"grid gap-2\">\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.title' | translate | async }}</ax-label>\n <ax-text-box [(ngModel)]=\"vm.data().title\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.issue-type' | translate | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"issueTypeDataSource\"\n [value]=\"vm.data().issueType\"\n (onValueChanged)=\"handleIssueTypeChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.priority' | translate | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"priorityList\"\n [value]=\"vm.data().priority\"\n (onValueChanged)=\"handlePriorityChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.description' | translate | async }}</ax-label>\n <ax-text-area [(ngModel)]=\"vm.data().description\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-area>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.attachments' | translate | async }}</ax-label>\n <axp-widgets-container class=\"flex flex-col gap-2 p-4\" [context]=\"context\">\n <ng-container axp-widget-renderer [node]=\"attachNode\" [mode]=\"'edit'\"> </ng-container>\n </axp-widgets-container>\n </ax-form-field>\n </div>\n </ax-form>\n <!-- @if(vm.media().length > 0){\n <div class=\"py-4\">\n <ax-content>\n <ax-media-viewer-container #mediaViewer [dataArray]=\"vm.media()\" class=\"block\">\n <ax-header>\n <ax-file-info></ax-file-info>\n <ax-suffix>\n <ax-button class=\"ax-sm\" color=\"danger\" (onClick)=\"onDeleteMediaClick(mediaViewer.getActiveIndex())\">\n <ax-icon class=\"icon icon-trash\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"mediaViewer.next()\">\n <ax-icon class=\"icon icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"mediaViewer.prev()\">\n <ax-icon class=\"icon icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n </ax-content>\n </div>\n } -->\n <!-- <div>\n <ax-label>{{ t('report-new-issue.attach', { scope: 'help-desk' }) | async }}</ax-label>\n <div\n class=\"flex flex-col items-center justify-center border border-dashed border-secondary-500 rounded-lg p-6\"\n >\n <div class=\"rounded-full bg-surface px-4 py-3\">\n <ax-icon class=\"fa-solid fa-paperclip text-on-surface text-xl\"></ax-icon>\n </div>\n <p class=\"text-lg text-on-surface\">\n {{ t('report-new-issue.attach-box-description', { scope: 'help-desk' }) | async }}\n </p>\n <ax-button\n class=\"w-fit mt-6\"\n [text]=\"t('report-new-issue.start-capture-screen', { scope: 'help-desk' }) | async\"\n color=\"secondary\"\n (onClick)=\"handleStartRecordingClick()\"\n ></ax-button>\n </div>\n </div> -->\n</div>\n<ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n color=\"default\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n (onClick)=\"onCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSubmitClick()\"\n ></ax-button>\n </ax-suffix>\n</ax-footer>\n" }]
|
|
240
|
-
}], ctorParameters: () => [], propDecorators: { form: [{
|
|
241
|
-
type: ViewChild,
|
|
242
|
-
args: [AXFormComponent]
|
|
243
|
-
}] } });
|
|
244
|
-
|
|
245
|
-
export { AXMReportNewIssueComponent };
|
|
246
|
-
//# sourceMappingURL=acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs.map
|
package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs","sources":["../../../../libs/modules/help-desk/client/src/lib/features/report-issue/components/report-new-issue/report-new-issue.component.ts","../../../../libs/modules/help-desk/client/src/lib/features/report-issue/components/report-new-issue/report-new-issue.component.html"],"sourcesContent":["import { AXPFileListItem, type AXPFileStorageInfo, type AXPWidgetNode, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { AXDataSource } from '@acorex/cdk/common';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXMediaViewerData, AXMediaViewerModule } from '@acorex/components/media-viewer';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\n// import { RootConfig } from '@acorex-platform/module-issue-management-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\n\nimport { AXPFileStorageService } from '@acorex-platform/framework-client/common';\n\nimport { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject, ViewChild, ChangeDetectionStrategy } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RootConfig } from '@acorex-platform/module-help-desk-client/contracts';\nimport { AXMHelpDeskReportedIssuesEntityModel } from '@acorex-platform/module-help-desk-client/contracts';\nimport { AXMLogCaptureService } from '../../../console-monitor';\nimport { AXMReportNewIssueViewModel } from '../../services/report-new-issue.viewmodel';\n@Component({\n selector: 'axm-report-new-issue',\n templateUrl: './report-new-issue.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n FormsModule,\n //\n AXTranslationModule,\n AXFormModule,\n AXLabelModule,\n AXTextBoxModule,\n AXSelectBoxModule,\n AXTextAreaModule,\n AXDecoratorModule,\n AXButtonModule,\n AXMediaViewerModule,\n AXPWidgetCoreModule,\n ],\n})\nexport class AXMReportNewIssueComponent extends AXBasePageComponent {\n private readonly entityService = inject(AXPEntityService);\n constructor() {\n super();\n }\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n protected vm = inject(AXMReportNewIssueViewModel);\n protected logCaptureService = inject(AXMLogCaptureService);\n protected sessionService = inject(AXPSessionService);\n protected issueTypeService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.issueType.name).data<any, any>();\n protected reportedIssuesService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.reportedIssues.name).data<any, any>();\n protected fileStorageService = inject(AXPFileStorageService);\n protected issueTypeDataSource = new AXDataSource({\n load: async (_) => {\n const issueTypeList = await this.issueTypeService.query();\n return issueTypeList;\n },\n pageSize: 20,\n });\n protected priorityList = [\n {\n title: 'Low',\n id: 1,\n },\n {\n title: 'Medium',\n id: 2,\n },\n {\n title: 'High',\n id: 3,\n },\n {\n title: 'Critical',\n id: 4,\n },\n ];\n attachNode: AXPWidgetNode = {\n type: AXPWidgetsCatalog.attachments,\n name: 'attach',\n path: 'attach',\n defaultValue: this.vm.media().map<AXPFileListItem>((el) => {\n // Handle url that can be string or () => Promise<string>\n const urlValue = typeof el.url === 'string' ? el.url : undefined;\n return {\n name: el.name ?? '',\n status: 'uploaded',\n id: el.id,\n size: parseInt(el.size ?? '0'),\n source: {\n kind: 'url',\n value: urlValue,\n },\n };\n }),\n options: {\n multiple: true,\n entity: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,\n record: this.vm.id(),\n },\n };\n context = {};\n\n protected async handleSubmitClick() {\n const formResult = await this.form.validate();\n if (formResult.result) {\n const params: AXMHelpDeskReportedIssuesEntityModel = {\n id: this.vm.id(),\n createdAt: new Date(),\n description: this.vm.data().description,\n errorLogs: this.logCaptureService.logs(),\n issueType: this.vm.data().issueType,\n priority: this.vm.data().priority,\n status: 'new',\n systemInfo: navigator.userAgent,\n title: this.vm.data().title,\n user: this.sessionService.user,\n };\n const reportedIssue = await this.reportedIssuesService.create(params);\n if (reportedIssue && reportedIssue.length) {\n const attachments: AXPFileListItem[] = [];\n for (const res of this.vm.media()) {\n const file = await this.fileStorageSaver(reportedIssue, res);\n console.log(file);\n attachments.push(file);\n\n // const fileStorageInfo: AXPFileStorageInfo = await this.fileStorageService.save({\n // file: await this.convertURLToFile(res.url, res.name as string),\n // refId: reportedIssue,\n // refType: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,\n // category: '',\n // name: res.name,\n // });\n // await this.fileStorageService.commit(fileStorageInfo.fileId);\n // attachments.push({\n // name: res.name ?? '',\n // status: 'uploaded',\n // id: fileStorageInfo.fileId,\n // size: parseInt(res.size ?? '0'),\n // source: {\n // kind: 'fileId',\n // value: fileStorageInfo.fileId,\n // },\n // });\n }\n await this.reportedIssuesService.update(reportedIssue, { attachments });\n this.vm.resetState();\n this.close({ insertResult: true });\n }\n }\n }\n\n private async fileStorageSaver(reportedIssueId: string, file: AXMediaViewerData): Promise<AXPFileListItem> {\n // Resolve url whether it's a string or a function that returns Promise<string>\n const resolvedUrl = typeof file.url === 'function' ? await file.url() : file.url;\n const fileStorageInfo: AXPFileStorageInfo = await this.fileStorageService.save({\n file: await this.convertURLToFile(resolvedUrl, file.name as string),\n refId: reportedIssueId,\n refType: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,\n category: '',\n name: file.name,\n });\n await this.fileStorageService.commit(fileStorageInfo.fileId);\n return {\n name: file.name ?? '',\n status: 'uploaded',\n id: fileStorageInfo.fileId,\n size: parseInt(file.size ?? '0'),\n source: {\n kind: 'fileId',\n value: fileStorageInfo.fileId,\n },\n };\n // attachments.push({\n // name: res.name ?? '',\n // status: 'uploaded',\n // id: fileStorageInfo.fileId,\n // size: parseInt(res.size ?? '0'),\n // source: {\n // kind: 'fileId',\n // value: fileStorageInfo.fileId,\n // },\n // });\n // await this.reportedIssuesService.updateOne(reportedIssueId, {\n // attachments: [\n // ...(this.vm.media() ?? []),\n // {\n // name: file.name ?? '',\n // status: 'uploaded',\n // id: fileStorageInfo.fileId,\n // size: parseInt(file.size ?? '0'),\n // source: {\n // kind: 'fileId',\n // value: fileStorageInfo.fileId,\n // },\n // },\n // ],\n // });\n }\n\n private async convertURLToFile(url: string, fileName: string): Promise<File> {\n const response = await fetch(url);\n const blob = await response.blob();\n const file = new File([blob], fileName);\n return file;\n }\n\n protected async handleStartRecordingClick() {\n await this.vm.startCapturing();\n this.close();\n }\n\n protected async onDeleteMediaClick(index: number) {\n this.vm.deleteCapturedItem(index);\n }\n\n protected async onCancelClick() {\n this.vm.resetState();\n this.close();\n }\n\n handleIssueTypeChange(event: any) {\n this.vm.data().issueType = event.component.selectedItems[0];\n }\n\n handlePriorityChange(event: any) {\n this.vm.data().priority = event.component.selectedItems[0];\n }\n\n override ngOnDestroy(): void {\n if (this.vm.status() !== 'recording') {\n this.vm.resetState();\n }\n }\n}\n","<div class=\"p-6\">\n <ax-form #form>\n <div class=\"grid gap-2\">\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.title' | translate | async }}</ax-label>\n <ax-text-box [(ngModel)]=\"vm.data().title\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.issue-type' | translate | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"issueTypeDataSource\"\n [value]=\"vm.data().issueType\"\n (onValueChanged)=\"handleIssueTypeChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.priority' | translate | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"priorityList\"\n [value]=\"vm.data().priority\"\n (onValueChanged)=\"handlePriorityChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.description' | translate | async }}</ax-label>\n <ax-text-area [(ngModel)]=\"vm.data().description\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-area>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@help-desk:report-new-issue.components.report-new-issue-form.fields.attachments' | translate | async }}</ax-label>\n <axp-widgets-container class=\"flex flex-col gap-2 p-4\" [context]=\"context\">\n <ng-container axp-widget-renderer [node]=\"attachNode\" [mode]=\"'edit'\"> </ng-container>\n </axp-widgets-container>\n </ax-form-field>\n </div>\n </ax-form>\n <!-- @if(vm.media().length > 0){\n <div class=\"py-4\">\n <ax-content>\n <ax-media-viewer-container #mediaViewer [dataArray]=\"vm.media()\" class=\"block\">\n <ax-header>\n <ax-file-info></ax-file-info>\n <ax-suffix>\n <ax-button class=\"ax-sm\" color=\"danger\" (onClick)=\"onDeleteMediaClick(mediaViewer.getActiveIndex())\">\n <ax-icon class=\"icon icon-trash\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"mediaViewer.next()\">\n <ax-icon class=\"icon icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"mediaViewer.prev()\">\n <ax-icon class=\"icon icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n </ax-content>\n </div>\n } -->\n <!-- <div>\n <ax-label>{{ t('report-new-issue.attach', { scope: 'help-desk' }) | async }}</ax-label>\n <div\n class=\"flex flex-col items-center justify-center border border-dashed border-secondary-500 rounded-lg p-6\"\n >\n <div class=\"rounded-full bg-surface px-4 py-3\">\n <ax-icon class=\"fa-solid fa-paperclip text-on-surface text-xl\"></ax-icon>\n </div>\n <p class=\"text-lg text-on-surface\">\n {{ t('report-new-issue.attach-box-description', { scope: 'help-desk' }) | async }}\n </p>\n <ax-button\n class=\"w-fit mt-6\"\n [text]=\"t('report-new-issue.start-capture-screen', { scope: 'help-desk' }) | async\"\n color=\"secondary\"\n (onClick)=\"handleStartRecordingClick()\"\n ></ax-button>\n </div>\n </div> -->\n</div>\n<ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n color=\"default\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n (onClick)=\"onCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSubmitClick()\"\n ></ax-button>\n </ax-suffix>\n</ax-footer>\n"],"names":["i7","i8","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CM,MAAO,0BAA2B,SAAQ,mBAAmB,CAAA;AAEjE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AAFQ,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBA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