@acorex-platform/module-help-desk-client 0.0.32 → 0.0.33
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-8uBzGpHC.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-OtDtf3iY.mjs.map → acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-8uBzGpHC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-help-desk-client-capture-screen.component-AyM-9U5W.mjs → acorex-platform-module-help-desk-client-capture-screen.component-D8azYPyS.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-help-desk-client-capture-screen.component-AyM-9U5W.mjs.map → acorex-platform-module-help-desk-client-capture-screen.component-D8azYPyS.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-6OhUT3KQ.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-6OhUT3KQ.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-C-vY_x_C.mjs → acorex-platform-module-help-desk-client-report-new-issue.component-DYlXM6Zs.mjs} +40 -17
- package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-DYlXM6Zs.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-D5riRQv7.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-D5riRQv7.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-report-new-issue.component-C-vY_x_C.mjs.map +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
i18n: 'help-desk',
|
|
3
|
+
};
|
|
4
|
+
const RootConfig = {
|
|
5
|
+
config,
|
|
6
|
+
module: {
|
|
7
|
+
route: 'help-desk',
|
|
8
|
+
name: 'HelpDesk',
|
|
9
|
+
title: '@help-desk:module.title',
|
|
10
|
+
icon: 'fa-light fa-file-invoice',
|
|
11
|
+
},
|
|
12
|
+
entities: {
|
|
13
|
+
issueType: {
|
|
14
|
+
name: 'IssueType',
|
|
15
|
+
title: '@help-desk:issue-types.entities.issue-type.title',
|
|
16
|
+
titlePlural: '@help-desk:issue-types.entities.issue-type.plural',
|
|
17
|
+
icon: 'fa-light fa-list',
|
|
18
|
+
},
|
|
19
|
+
reportedIssues: {
|
|
20
|
+
name: 'ReportedIssues',
|
|
21
|
+
title: '@help-desk:reported-issues.entities.reported-issue.title',
|
|
22
|
+
titlePlural: '@help-desk:reported-issues.entities.reported-issue.plural',
|
|
23
|
+
icon: 'fa-light fa-bug',
|
|
24
|
+
},
|
|
25
|
+
myReportedIssues: {
|
|
26
|
+
name: 'MyReportedIssues',
|
|
27
|
+
title: '@help-desk:my-reported-issues.entities.my-reported-issue.title',
|
|
28
|
+
titlePlural: '@help-desk:my-reported-issues.entities.my-reported-issue.plural',
|
|
29
|
+
icon: 'fa-light fa-message-exclamation',
|
|
30
|
+
},
|
|
31
|
+
reportNewIssue: {
|
|
32
|
+
name: 'ReportNewIssue',
|
|
33
|
+
title: '@help-desk:report-new-issue.entities.report-new-issue.title',
|
|
34
|
+
titlePlural: '@help-desk:report-new-issue.entities.report-new-issue.plural',
|
|
35
|
+
icon: 'fa-light fa-clipboard-list-check',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#region ----- Imports -----
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ----- Local entity catalog -----
|
|
43
|
+
/**
|
|
44
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
45
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
46
|
+
* consume this catalog explicitly.
|
|
47
|
+
*/
|
|
48
|
+
const helpDeskLocalEntityCatalog = {
|
|
49
|
+
moduleName: RootConfig.module.name,
|
|
50
|
+
loaders: {
|
|
51
|
+
[RootConfig.entities.issueType.name]: () => import('./acorex-platform-module-help-desk-client-contracts-entity-catalog-issue-type.entity-CAuZWL3c.mjs').then((m) => m.issueTypeEntityFactory()),
|
|
52
|
+
[RootConfig.entities.myReportedIssues.name]: () => import('./acorex-platform-module-help-desk-client-contracts-entity-catalog-my-reported-issues.entity-Dpg2-NaY.mjs').then((m) => m.myReportedIssuesEntityFactory()),
|
|
53
|
+
[RootConfig.entities.reportedIssues.name]: () => import('./acorex-platform-module-help-desk-client-contracts-entity-catalog-reported-issues.entity-Bb_nYMZe.mjs').then((m) => m.reportedIssuesEntityFactory()),
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generated bundle index. Do not edit.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
export { RootConfig as R, helpDeskLocalEntityCatalog as h };
|
|
63
|
+
//# sourceMappingURL=acorex-platform-module-help-desk-client-contracts-entity-catalog-acorex-platform-module-help-desk-client-contracts-entity-catalog-otgMMFlK.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-help-desk-client-contracts-entity-catalog-acorex-platform-module-help-desk-client-contracts-entity-catalog-otgMMFlK.mjs","sources":["../../../../libs/modules/help-desk/contracts/src/root-config.ts","../../../../libs/modules/help-desk/contracts/src/entity-catalog.ts","../../../../libs/modules/help-desk/contracts/src/acorex-platform-module-help-desk-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'help-desk',\n};\nexport const RootConfig = {\n config,\n module: {\n route: 'help-desk',\n name: 'HelpDesk',\n title: '@help-desk:module.title',\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n issueType: {\n name: 'IssueType',\n title: '@help-desk:issue-types.entities.issue-type.title',\n titlePlural: '@help-desk:issue-types.entities.issue-type.plural',\n icon: 'fa-light fa-list',\n },\n reportedIssues: {\n name: 'ReportedIssues',\n title: '@help-desk:reported-issues.entities.reported-issue.title',\n titlePlural: '@help-desk:reported-issues.entities.reported-issue.plural',\n icon: 'fa-light fa-bug',\n },\n myReportedIssues: {\n name: 'MyReportedIssues',\n title: '@help-desk:my-reported-issues.entities.my-reported-issue.title',\n titlePlural: '@help-desk:my-reported-issues.entities.my-reported-issue.plural',\n icon: 'fa-light fa-message-exclamation',\n },\n reportNewIssue: {\n name: 'ReportNewIssue',\n title: '@help-desk:report-new-issue.entities.report-new-issue.title',\n titlePlural: '@help-desk:report-new-issue.entities.report-new-issue.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const helpDeskLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.issueType.name]: () =>\n import('./entities/issue-type/issue-type.entity.js').then((m) => m.issueTypeEntityFactory()),\n [RootConfig.entities.myReportedIssues.name]: () =>\n import('./entities/my-reported-issues/my-reported-issues.entity.js').then((m) => m.myReportedIssuesEntityFactory()),\n [RootConfig.entities.reportedIssues.name]: () =>\n import('./entities/reported-issues/reported-issues.entity.js').then((m) => m.reportedIssuesEntityFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,WAAW;CAClB;AACM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,WAAW;AAClB,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,KAAK,EAAE,yBAAyB;AAChC,QAAA,IAAI,EAAE,0BAA0B;AACjC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,kDAAkD;AACzD,YAAA,WAAW,EAAE,mDAAmD;AAChE,YAAA,IAAI,EAAE,kBAAkB;AACzB,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,0DAA0D;AACjE,YAAA,WAAW,EAAE,2DAA2D;AACxE,YAAA,IAAI,EAAE,iBAAiB;AACxB,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,kBAAkB;AACxB,YAAA,KAAK,EAAE,gEAAgE;AACvE,YAAA,WAAW,EAAE,iEAAiE;AAC9E,YAAA,IAAI,EAAE,iCAAiC;AACxC,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,6DAA6D;AACpE,YAAA,WAAW,EAAE,8DAA8D;AAC3E,YAAA,IAAI,EAAE,kCAAkC;AACzC,SAAA;AACF,KAAA;;;ACpCH;AAMA;AAEA;AAEA;;;;AAIG;AACI,MAAM,0BAA0B,GAA0B;AAC/D,IAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,IAAA,OAAO,EAAE;AACP,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,GAAG,MACpC,OAAO,mGAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,EAAE,CAAC;AAC9F,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,GAAG,MAC3C,OAAO,2GAA4D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,EAAE,CAAC;AACrH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,MACzC,OAAO,wGAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,2BAA2B,EAAE,CAAC;AAC9G,KAAA;;AAGH;;AC3BA;;AAEG;;;;"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-help-desk-client-contracts-entity-catalog-acorex-platform-module-help-desk-client-contracts-entity-catalog-otgMMFlK.mjs';
|
|
4
|
+
|
|
5
|
+
async function issueTypeEntityFactory() {
|
|
6
|
+
const entityDef = {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.issueType.name,
|
|
9
|
+
title: RootConfig.entities.issueType.title,
|
|
10
|
+
icon: RootConfig.entities.issueType.icon,
|
|
11
|
+
formats: {
|
|
12
|
+
individual: RootConfig.entities.issueType.title,
|
|
13
|
+
plural: RootConfig.entities.issueType.titlePlural,
|
|
14
|
+
searchResult: {
|
|
15
|
+
title: '{{ title }}',
|
|
16
|
+
description: '{{ description }}',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
relatedEntities: [],
|
|
20
|
+
groups: [
|
|
21
|
+
{
|
|
22
|
+
id: 'main',
|
|
23
|
+
title: '@help-desk:issue-types.entities.issue-type.groups.main',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
properties: [
|
|
27
|
+
{
|
|
28
|
+
name: 'id',
|
|
29
|
+
title: 'ID',
|
|
30
|
+
groupId: 'main',
|
|
31
|
+
schema: {
|
|
32
|
+
dataType: 'string',
|
|
33
|
+
visible: false,
|
|
34
|
+
nullable: false,
|
|
35
|
+
readonly: true,
|
|
36
|
+
unique: {
|
|
37
|
+
enabled: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'title',
|
|
43
|
+
title: '@help-desk:issue-types.entities.issue-type.fields.title',
|
|
44
|
+
groupId: 'main',
|
|
45
|
+
options: {
|
|
46
|
+
sort: {
|
|
47
|
+
enabled: true,
|
|
48
|
+
},
|
|
49
|
+
filter: {
|
|
50
|
+
advance: {
|
|
51
|
+
enabled: true,
|
|
52
|
+
},
|
|
53
|
+
inline: {
|
|
54
|
+
enabled: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
schema: {
|
|
59
|
+
dataType: 'string',
|
|
60
|
+
interface: {
|
|
61
|
+
type: AXPWidgetsCatalog.text,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
validations: [
|
|
65
|
+
{
|
|
66
|
+
rule: 'required',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'description',
|
|
72
|
+
title: '@help-desk:issue-types.entities.issue-type.fields.description',
|
|
73
|
+
groupId: 'main',
|
|
74
|
+
options: {
|
|
75
|
+
sort: {
|
|
76
|
+
enabled: false,
|
|
77
|
+
},
|
|
78
|
+
filter: {
|
|
79
|
+
advance: {
|
|
80
|
+
enabled: true,
|
|
81
|
+
},
|
|
82
|
+
inline: {
|
|
83
|
+
enabled: false,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
schema: {
|
|
88
|
+
dataType: 'string',
|
|
89
|
+
interface: {
|
|
90
|
+
type: AXPWidgetsCatalog.largeText,
|
|
91
|
+
options: {
|
|
92
|
+
rows: 3,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
validations: [
|
|
97
|
+
{
|
|
98
|
+
rule: 'required',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
104
|
+
interfaces: {
|
|
105
|
+
master: {
|
|
106
|
+
create: {
|
|
107
|
+
sections: [
|
|
108
|
+
{
|
|
109
|
+
id: 'main',
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
properties: [
|
|
113
|
+
{
|
|
114
|
+
name: 'title',
|
|
115
|
+
layout: {
|
|
116
|
+
positions: {
|
|
117
|
+
lg: {
|
|
118
|
+
colSpan: 12,
|
|
119
|
+
order: 1,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'description',
|
|
126
|
+
layout: {
|
|
127
|
+
positions: {
|
|
128
|
+
lg: {
|
|
129
|
+
colSpan: 12,
|
|
130
|
+
order: 2,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
update: {
|
|
138
|
+
sections: [
|
|
139
|
+
{
|
|
140
|
+
id: 'main',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
properties: [
|
|
144
|
+
{
|
|
145
|
+
name: 'title',
|
|
146
|
+
layout: {
|
|
147
|
+
positions: {
|
|
148
|
+
lg: {
|
|
149
|
+
colSpan: 12,
|
|
150
|
+
order: 1,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'description',
|
|
157
|
+
layout: {
|
|
158
|
+
positions: {
|
|
159
|
+
lg: {
|
|
160
|
+
colSpan: 12,
|
|
161
|
+
order: 2,
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
single: {
|
|
169
|
+
title: '{{title}}',
|
|
170
|
+
sections: [
|
|
171
|
+
{
|
|
172
|
+
id: 'main',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
properties: [
|
|
176
|
+
{
|
|
177
|
+
name: 'title',
|
|
178
|
+
layout: {
|
|
179
|
+
positions: {
|
|
180
|
+
lg: {
|
|
181
|
+
colSpan: 12,
|
|
182
|
+
order: 1,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'description',
|
|
189
|
+
layout: {
|
|
190
|
+
positions: {
|
|
191
|
+
lg: {
|
|
192
|
+
colSpan: 12,
|
|
193
|
+
order: 2,
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
actions: [...entityMasterRecordActions()],
|
|
200
|
+
},
|
|
201
|
+
list: {
|
|
202
|
+
actions: [...entityMasterCrudActions()],
|
|
203
|
+
views: [
|
|
204
|
+
createAllQueryView({
|
|
205
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
206
|
+
}),
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
return entityDef;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export { issueTypeEntityFactory };
|
|
216
|
+
//# sourceMappingURL=acorex-platform-module-help-desk-client-contracts-entity-catalog-issue-type.entity-CAuZWL3c.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-help-desk-client-contracts-entity-catalog-issue-type.entity-CAuZWL3c.mjs","sources":["../../../../libs/modules/help-desk/contracts/src/entities/issue-type/issue-type.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function issueTypeEntityFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.issueType.name,\n title: RootConfig.entities.issueType.title,\n icon: RootConfig.entities.issueType.icon,\n formats: {\n individual: RootConfig.entities.issueType.title,\n plural: RootConfig.entities.issueType.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'main',\n title: '@help-desk:issue-types.entities.issue-type.groups.main',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'main',\n schema: {\n dataType: 'string',\n visible: false,\n nullable: false,\n readonly: true,\n unique: {\n enabled: true,\n },\n },\n },\n {\n name: 'title',\n title: '@help-desk:issue-types.entities.issue-type.fields.title',\n groupId: 'main',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'description',\n title: '@help-desk:issue-types.entities.issue-type.fields.description',\n groupId: 'main',\n options: {\n sort: {\n enabled: false,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: false,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n rows: 3,\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'main',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 1,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 2,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'main',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 1,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 2,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'main',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 1,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 2,\n },\n },\n },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAIO,eAAe,sBAAsB,GAAA;AAE1C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,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