@acorex-platform/module-document-management-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-document-management-client-acorex-platform-module-document-management-client-EXw7ezd3.mjs → acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-Of1L93HC.mjs} +68 -57
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-Of1L93HC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-BWlNCsBd.mjs → acorex-platform-module-document-management-client-attachment-view-skeleton.component-BnPCZNr3.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-BWlNCsBd.mjs.map → acorex-platform-module-document-management-client-attachment-view-skeleton.component-BnPCZNr3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-B6vM6wyL.mjs → acorex-platform-module-document-management-client-attachment-widget.component-B95uSss7.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-B6vM6wyL.mjs.map → acorex-platform-module-document-management-client-attachment-widget.component-B95uSss7.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs +154 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-type.mjs +321 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document.mjs +244 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-folder.mjs +236 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-folder.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs +86 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-BpGBX1CD.mjs +90 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-BpGBX1CD.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-D0-wHSOd.mjs +257 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-D0-wHSOd.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs +180 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs +172 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs → acorex-platform-module-document-management-client-drive-choose.component-Bivzrex0.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs.map → acorex-platform-module-document-management-client-drive-choose.component-Bivzrex0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-50qY585J.mjs → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-3C4LEllG.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-50qY585J.mjs.map → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-3C4LEllG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-Ca-TQvpA.mjs → acorex-platform-module-document-management-client-large-icons-view.component-BEZhcmxY.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-Ca-TQvpA.mjs.map → acorex-platform-module-document-management-client-large-icons-view.component-BEZhcmxY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-Cfb1yjRX.mjs → acorex-platform-module-document-management-client-large-tiles-view.component-TjkSRbCp.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-Cfb1yjRX.mjs.map → acorex-platform-module-document-management-client-large-tiles-view.component-TjkSRbCp.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-BsXNSpO7.mjs +77 -0
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-BsXNSpO7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-BLSnss8G.mjs → acorex-platform-module-document-management-client-list-view-skeleton.component-Bhispx1H.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-BLSnss8G.mjs.map → acorex-platform-module-document-management-client-list-view-skeleton.component-Bhispx1H.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-Dhb8hXxU.mjs → acorex-platform-module-document-management-client-list-view.component-BW9FdY7r.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-Dhb8hXxU.mjs.map → acorex-platform-module-document-management-client-list-view.component-BW9FdY7r.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-local-entities.mjs +32 -0
- package/fesm2022/acorex-platform-module-document-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs → acorex-platform-module-document-management-client-open-document.command-BdXRh2Td.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs.map → acorex-platform-module-document-management-client-open-document.command-BdXRh2Td.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-share-dialog.component-D0D75M7u.mjs → acorex-platform-module-document-management-client-share-dialog.component-C1x8iBn3.mjs} +33 -28
- package/fesm2022/acorex-platform-module-document-management-client-share-dialog.component-C1x8iBn3.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-BxCoVC5Z.mjs +58 -0
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-BxCoVC5Z.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-cQZCJ4u4.mjs → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-kf59BPe1.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-cQZCJ4u4.mjs.map → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-kf59BPe1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-lXNM0X4L.mjs → acorex-platform-module-document-management-client-small-icons-view.component-CyZZqSpn.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-lXNM0X4L.mjs.map → acorex-platform-module-document-management-client-small-icons-view.component-CyZZqSpn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-C6bUuOPN.mjs → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-nBejkXcV.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-C6bUuOPN.mjs.map → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-nBejkXcV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-CriaQUl9.mjs → acorex-platform-module-document-management-client-small-tiles-view.component-CKgUbiLE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-CriaQUl9.mjs.map → acorex-platform-module-document-management-client-small-tiles-view.component-CKgUbiLE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs → acorex-platform-module-document-management-client-upload-document.command-gJuSuiz_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs.map → acorex-platform-module-document-management-client-upload-document.command-gJuSuiz_.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client.mjs +1 -1
- package/package.json +26 -2
- package/types/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.d.ts +8 -0
- package/types/acorex-platform-module-document-management-client-contracts-entities-document-type.d.ts +5 -0
- package/types/acorex-platform-module-document-management-client-contracts-entities-document.d.ts +9 -0
- package/types/acorex-platform-module-document-management-client-contracts-entities-folder.d.ts +9 -0
- package/types/acorex-platform-module-document-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-document-management-client-local-entities.d.ts +12 -0
- package/types/acorex-platform-module-document-management-client.d.ts +4 -1
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-EXw7ezd3.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-DXwE55QU.mjs +0 -68
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-DXwE55QU.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-share-dialog.component-D0D75M7u.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-CTP-r-4w.mjs +0 -54
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-CTP-r-4w.mjs.map +0 -1
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Entity definition for Document so Postgres/JQL persist drive document fields.
|
|
6
|
+
* No list/form UI; documents are handled by document-explorer.
|
|
7
|
+
*/
|
|
8
|
+
async function documentEntityFactory() {
|
|
9
|
+
const i18n = RootConfig.config.i18n;
|
|
10
|
+
const entityDef = {
|
|
11
|
+
module: RootConfig.module.name,
|
|
12
|
+
name: RootConfig.entities.document.name,
|
|
13
|
+
title: RootConfig.entities.document.title,
|
|
14
|
+
parentKey: 'parentId',
|
|
15
|
+
plugins: [{ name: 'workflow-run' }, { name: 'cache', options: { ttlMs: 120_000 } }],
|
|
16
|
+
formats: {
|
|
17
|
+
individual: RootConfig.entities.document.title,
|
|
18
|
+
plural: RootConfig.entities.document.titlePlural,
|
|
19
|
+
searchResult: {
|
|
20
|
+
title: '{{ title }}',
|
|
21
|
+
description: RootConfig.module.title,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
relatedEntities: [],
|
|
25
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
26
|
+
properties: [
|
|
27
|
+
{
|
|
28
|
+
name: 'name',
|
|
29
|
+
title: '@general:terms.common.name',
|
|
30
|
+
groupId: 'basic-info',
|
|
31
|
+
options: {
|
|
32
|
+
sort: { enabled: true },
|
|
33
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
34
|
+
},
|
|
35
|
+
schema: {
|
|
36
|
+
dataType: 'string',
|
|
37
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
38
|
+
},
|
|
39
|
+
validations: [{ rule: 'required' }],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'title',
|
|
43
|
+
title: '@general:terms.common.title',
|
|
44
|
+
groupId: 'basic-info',
|
|
45
|
+
options: {
|
|
46
|
+
sort: { enabled: true },
|
|
47
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
48
|
+
},
|
|
49
|
+
schema: {
|
|
50
|
+
dataType: 'string',
|
|
51
|
+
interface: {
|
|
52
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
53
|
+
options: { multiLanguage: false },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
validations: [{ rule: 'required' }],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'parentId',
|
|
60
|
+
title: '@general:terms.classification.parent',
|
|
61
|
+
groupId: 'basic-info',
|
|
62
|
+
options: {
|
|
63
|
+
sort: { enabled: true },
|
|
64
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
65
|
+
},
|
|
66
|
+
schema: {
|
|
67
|
+
dataType: 'string',
|
|
68
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
69
|
+
},
|
|
70
|
+
validations: [{ rule: 'required' }],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'description',
|
|
74
|
+
title: '@general:terms.common.description',
|
|
75
|
+
groupId: 'basic-info',
|
|
76
|
+
schema: {
|
|
77
|
+
dataType: 'string',
|
|
78
|
+
interface: {
|
|
79
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
80
|
+
options: { multiLanguage: false },
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'documentType',
|
|
86
|
+
title: `@${i18n}:entities.document.fields.document-type.title`,
|
|
87
|
+
groupId: 'basic-info',
|
|
88
|
+
schema: {
|
|
89
|
+
dataType: 'object',
|
|
90
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer },
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'fileInfo',
|
|
95
|
+
title: `@${i18n}:entities.document.fields.file-info.title`,
|
|
96
|
+
groupId: 'basic-info',
|
|
97
|
+
schema: {
|
|
98
|
+
dataType: 'object',
|
|
99
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer },
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'expirationDate',
|
|
104
|
+
title: `@${i18n}:entities.document.fields.expiration-date.title`,
|
|
105
|
+
groupId: 'basic-info',
|
|
106
|
+
schema: {
|
|
107
|
+
dataType: 'date',
|
|
108
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox },
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'statusId',
|
|
113
|
+
title: `@${i18n}:entities.document.fields.status.title`,
|
|
114
|
+
groupId: 'basic-info',
|
|
115
|
+
options: {
|
|
116
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
117
|
+
},
|
|
118
|
+
schema: {
|
|
119
|
+
dataType: 'string',
|
|
120
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'status',
|
|
125
|
+
title: `@${i18n}:entities.document.fields.status.title`,
|
|
126
|
+
groupId: 'basic-info',
|
|
127
|
+
schema: {
|
|
128
|
+
dataType: 'object',
|
|
129
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer },
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'version',
|
|
134
|
+
title: `@${i18n}:entities.document.fields.version.title`,
|
|
135
|
+
groupId: 'basic-info',
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'number',
|
|
138
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'metaDataForm',
|
|
143
|
+
title: `@${i18n}:entities.document.fields.meta-data-form.title`,
|
|
144
|
+
groupId: 'basic-info',
|
|
145
|
+
schema: {
|
|
146
|
+
dataType: 'object',
|
|
147
|
+
interface: { type: AXPWidgetsList.Editors.MetaDataBox },
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'refType',
|
|
152
|
+
title: `@${i18n}:entities.document.fields.ref-type.title`,
|
|
153
|
+
groupId: 'basic-info',
|
|
154
|
+
options: {
|
|
155
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
156
|
+
},
|
|
157
|
+
schema: {
|
|
158
|
+
dataType: 'string',
|
|
159
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'refId',
|
|
164
|
+
title: `@${i18n}:entities.document.fields.ref-id.title`,
|
|
165
|
+
groupId: 'basic-info',
|
|
166
|
+
options: {
|
|
167
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
168
|
+
},
|
|
169
|
+
schema: {
|
|
170
|
+
dataType: 'string',
|
|
171
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
};
|
|
176
|
+
return entityDef;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export { documentEntityFactory };
|
|
180
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs","sources":["../../../../libs/modules/document-management/contracts/src/entities/document/document.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n/**\n * Entity definition for Document so Postgres/JQL persist drive document fields.\n * No list/form UI; documents are handled by document-explorer.\n */\nexport async function documentEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.document.name,\n title: RootConfig.entities.document.title,\n parentKey: 'parentId',\n plugins: [{ name: 'workflow-run' }, { name: 'cache', options: { ttlMs: 120_000 } }],\n formats: {\n individual: RootConfig.entities.document.title,\n plural: RootConfig.entities.document.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: { multiLanguage: false },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { multiLanguage: false },\n },\n },\n },\n {\n name: 'documentType',\n title: `@${i18n}:entities.document.fields.document-type.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'fileInfo',\n title: `@${i18n}:entities.document.fields.file-info.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'expirationDate',\n title: `@${i18n}:entities.document.fields.expiration-date.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n },\n {\n name: 'statusId',\n title: `@${i18n}:entities.document.fields.status.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'status',\n title: `@${i18n}:entities.document.fields.status.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'version',\n title: `@${i18n}:entities.document.fields.version.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'metaDataForm',\n title: `@${i18n}:entities.document.fields.meta-data-form.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Editors.MetaDataBox },\n },\n },\n {\n name: 'refType',\n title: `@${i18n}:entities.document.fields.ref-type.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'refId',\n title: `@${i18n}:entities.document.fields.ref-id.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n ],\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;AAIA;;;AAGG;AACI,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;A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,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,WAAW,EAAE;AACxD,iBAAA;AACF,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,wCAAA,CAA0C;AACzD,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,OAAO,EAAE;AACP,oBAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AAClE,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,QAAQ;oBAClB,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE;AACpD,iBAAA;AACF,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,sCAAA,CAAwC;AACvD,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,OAAO,EAAE;AACP,oBAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AAClE,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,QAAQ;oBAClB,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE;AACpD,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Entity definition for Folder so Postgres/JQL persist drive fields.
|
|
6
|
+
* No list/form UI; folder tree is handled by document-explorer.
|
|
7
|
+
*/
|
|
8
|
+
async function folderEntityFactory() {
|
|
9
|
+
const entityDef = {
|
|
10
|
+
module: RootConfig.module.name,
|
|
11
|
+
name: RootConfig.entities.folder.name,
|
|
12
|
+
title: RootConfig.entities.folder.title,
|
|
13
|
+
parentKey: 'parentId',
|
|
14
|
+
// Drive navigation is read-heavy; global cache with invalidation on mutations.
|
|
15
|
+
plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],
|
|
16
|
+
formats: {
|
|
17
|
+
individual: RootConfig.entities.folder.title,
|
|
18
|
+
plural: RootConfig.entities.folder.titlePlural,
|
|
19
|
+
searchResult: {
|
|
20
|
+
title: '{{ title }}',
|
|
21
|
+
description: RootConfig.module.title,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
relatedEntities: [],
|
|
25
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
26
|
+
properties: [
|
|
27
|
+
{
|
|
28
|
+
name: 'title',
|
|
29
|
+
title: '@general:terms.common.title',
|
|
30
|
+
groupId: 'basic-info',
|
|
31
|
+
options: {
|
|
32
|
+
sort: { enabled: true },
|
|
33
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
34
|
+
},
|
|
35
|
+
schema: {
|
|
36
|
+
dataType: 'string',
|
|
37
|
+
interface: {
|
|
38
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
39
|
+
// Drive titles are plain strings (not MLS objects).
|
|
40
|
+
options: { multiLanguage: false },
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
validations: [{ rule: 'required' }],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'parentId',
|
|
47
|
+
title: '@general:terms.classification.parent',
|
|
48
|
+
groupId: 'basic-info',
|
|
49
|
+
options: {
|
|
50
|
+
sort: { enabled: true },
|
|
51
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
52
|
+
},
|
|
53
|
+
schema: {
|
|
54
|
+
dataType: 'string',
|
|
55
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'description',
|
|
60
|
+
title: '@general:terms.common.description',
|
|
61
|
+
groupId: 'basic-info',
|
|
62
|
+
schema: {
|
|
63
|
+
dataType: 'string',
|
|
64
|
+
interface: {
|
|
65
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
66
|
+
options: { multiLanguage: false },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'color',
|
|
72
|
+
title: '@general:terms.common.color',
|
|
73
|
+
groupId: 'basic-info',
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
interface: { type: AXPWidgetsList.Editors.ColorPalette },
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'inherit',
|
|
81
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.inherit.title`,
|
|
82
|
+
groupId: 'basic-info',
|
|
83
|
+
schema: {
|
|
84
|
+
dataType: 'string',
|
|
85
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'size',
|
|
90
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.size.title`,
|
|
91
|
+
groupId: 'basic-info',
|
|
92
|
+
schema: {
|
|
93
|
+
dataType: 'number',
|
|
94
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'childrenCount',
|
|
99
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.children-count.title`,
|
|
100
|
+
groupId: 'basic-info',
|
|
101
|
+
schema: {
|
|
102
|
+
dataType: 'number',
|
|
103
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'itemsCount',
|
|
108
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.items-count.title`,
|
|
109
|
+
groupId: 'basic-info',
|
|
110
|
+
schema: {
|
|
111
|
+
dataType: 'number',
|
|
112
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'expiredItemsCount',
|
|
117
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.expired-items-count.title`,
|
|
118
|
+
groupId: 'basic-info',
|
|
119
|
+
schema: {
|
|
120
|
+
dataType: 'number',
|
|
121
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'nearExpiryItemsCount',
|
|
126
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.near-expiry-items-count.title`,
|
|
127
|
+
groupId: 'basic-info',
|
|
128
|
+
schema: {
|
|
129
|
+
dataType: 'number',
|
|
130
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'documentTypes',
|
|
135
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.document-types.title`,
|
|
136
|
+
groupId: 'basic-info',
|
|
137
|
+
schema: {
|
|
138
|
+
dataType: 'array',
|
|
139
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer },
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'refType',
|
|
144
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.ref-type.title`,
|
|
145
|
+
groupId: 'basic-info',
|
|
146
|
+
options: {
|
|
147
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
148
|
+
},
|
|
149
|
+
schema: {
|
|
150
|
+
dataType: 'string',
|
|
151
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'refId',
|
|
156
|
+
title: `@${RootConfig.config.i18n}:entities.folder.fields.ref-id.title`,
|
|
157
|
+
groupId: 'basic-info',
|
|
158
|
+
options: {
|
|
159
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
160
|
+
},
|
|
161
|
+
schema: {
|
|
162
|
+
dataType: 'string',
|
|
163
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
};
|
|
168
|
+
return entityDef;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export { folderEntityFactory };
|
|
172
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs","sources":["../../../../libs/modules/document-management/contracts/src/entities/folder/folder.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n/**\n * Entity definition for Folder so Postgres/JQL persist drive fields.\n * No list/form UI; folder tree is handled by document-explorer.\n */\nexport async function folderEntityFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.folder.name,\n title: RootConfig.entities.folder.title,\n parentKey: 'parentId',\n // Drive navigation is read-heavy; global cache with invalidation on mutations.\n plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],\n formats: {\n individual: RootConfig.entities.folder.title,\n plural: RootConfig.entities.folder.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n // Drive titles are plain strings (not MLS objects).\n options: { multiLanguage: false },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { multiLanguage: false },\n },\n },\n },\n {\n name: 'color',\n title: '@general:terms.common.color',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.ColorPalette },\n },\n },\n {\n name: 'inherit',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.inherit.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'size',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.size.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'childrenCount',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.children-count.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'itemsCount',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.items-count.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'expiredItemsCount',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.expired-items-count.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'nearExpiryItemsCount',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.near-expiry-items-count.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'documentTypes',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.document-types.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'array',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'refType',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.ref-type.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'refId',\n title: `@${RootConfig.config.i18n}:entities.folder.fields.ref-id.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n ],\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;AAIA;;;AAGG;AACI,eAAe,mBAAmB,GAAA;AACvC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI;AACrC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK;AACvC,QAAA,SAAS,EAAE,UAAU;;AAErB,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,E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AAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,KAAK,EAAE,CAAA,CAAA,EAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAA,CAAsC;AACvE,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,OAAO,EAAE;AACP,oBAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AAClE,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,QAAQ;oBAClB,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE;AACpD,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { d as documentManagementLocalEntityCatalog } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog.mjs.map
|
package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -11,7 +11,7 @@ import * as i4 from '@acorex/components/loading';
|
|
|
11
11
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
12
12
|
import { AXMenuModule } from '@acorex/components/menu';
|
|
13
13
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
14
|
-
import * as
|
|
14
|
+
import * as i5 from '@acorex/components/search-box';
|
|
15
15
|
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
16
16
|
import { AXDateTimeModule } from '@acorex/core/date-time';
|
|
17
17
|
import { AXFileModule } from '@acorex/core/file';
|
|
@@ -27,7 +27,7 @@ import * as i0 from '@angular/core';
|
|
|
27
27
|
import { inject, signal, viewChild, computed, effect, untracked, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
28
28
|
import { RouterModule } from '@angular/router';
|
|
29
29
|
import { RootConfig } from '@acorex-platform/module-document-management-client/contracts';
|
|
30
|
-
import { c as AXMDocumentManagerService, A as AXPDocumentExplorerViewModel, f as AXMDocumentExplorerComponent, g as AXMFolderPathBreadcrumbsComponent } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-
|
|
30
|
+
import { c as AXMDocumentManagerService, A as AXPDocumentExplorerViewModel, f as AXMDocumentExplorerComponent, g as AXMFolderPathBreadcrumbsComponent } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-Of1L93HC.mjs';
|
|
31
31
|
|
|
32
32
|
class AXMDocumentDriveChooseComponent extends AXBasePageComponent {
|
|
33
33
|
constructor() {
|
|
@@ -220,7 +220,7 @@ class AXMDocumentDriveChooseComponent extends AXBasePageComponent {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMDocumentDriveChooseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
223
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMDocumentDriveChooseComponent, isStandalone: true, selector: "ax-document-drive-choose", providers: [AXPDocumentExplorerViewModel], viewQueries: [{ propertyName: "documentExplorer", first: true, predicate: AXMDocumentExplorerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"axm-drive-choose\" [class.__compact-header]=\"hideHeader\" *translate=\"let t\">\n <header class=\"__header\">\n @if (!hideHeader) {\n <div class=\"__header-main\">\n <span class=\"__header-icon primary-surface\">\n <ax-icon icon=\"fa-light fa-hard-drive\"></ax-icon>\n </span>\n <div class=\"__header-text\">\n <h2 class=\"__header-title\">\n {{\n '@document-management:actions.choose-from-drive' | translate | async\n }}\n </h2>\n <p class=\"__header-subtitle\">\n {{\n t(subtitleKey(), { scope: rootConfig.config.i18n })\n | async\n }}\n </p>\n </div>\n </div>\n }\n\n <div class=\"__toolbar\">\n <axm-folder-path-breadcrumbs\n class=\"__breadcrumbs\"\n ></axm-folder-path-breadcrumbs>\n <ax-search-box\n [(value)]=\"searchQuery\"\n (onValueChanged)=\"handleSearchChange($event)\"\n class=\"__search\"\n [placeholder]=\"\n t('actions.search', { scope: rootConfig.config.i18n }) | async\n \"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n </header>\n\n <main class=\"__body\">\n @if (vm.isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n <span>{{\n t('drive-choose.loading', { scope: rootConfig.config.i18n }) | async\n }}</span>\n </div>\n } @else {\n <axm-document-explorer\n [browseMode]=\"browseModeState()\"\n [selectionMode]=\"selectionModeState()\"\n [viewMode]=\"'list'\"\n [showContextMenu]=\"false\"\n >\n </axm-document-explorer>\n }\n </main>\n\n <ax-footer class=\"__footer light-surface\">\n <ax-prefix>\n @if (selectionModeState() === 'multiple' && selectedFileCount() > 0) {\n <span class=\"__selection-badge primary-surface\">\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n {{\n t('drive-choose.selected-count', {\n scope: rootConfig.config.i18n,\n params: { count: selectedFileCount() },\n }) | async\n }}\n </span>\n }\n </ax-prefix>\n <ax-suffix>\n <ax-button\n (onClick)=\"handleCancelClick()\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [disabled]=\"!canSubmit()\"\n (onClick)=\"handleSubmitButton()\"\n [text]=\"t(selectText(), { scope: rootConfig.config.i18n }) | async\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>\n", styles: ["@layer properties;ax-document-drive-choose{display:block;width:100%;min-height:50vh}.axm-drive-choose{display:flex;width:100%;flex-direction:column;min-height:50vh;background:rgb(var(--ax-sys-color-lightest-surface))}.axm-drive-choose.__compact-header .__header{padding-top:calc(var(--spacing, .25rem) * 3)}.axm-drive-choose.__compact-header .__body{min-height:18rem}.axm-drive-choose .__header{display:flex;flex-direction:column;gap:var(--spacing, .25rem);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 2);border-bottom:1px solid rgb(var(--ax-sys-color-border-lighter-surface))}.axm-drive-choose .__header-main{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 3.5)}.axm-drive-choose .__header-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:.75rem;font-size:1.125rem;color:rgb(var(--ax-sys-color-on-primary-surface))}.axm-drive-choose .__header-text{display:flex;min-width:0px;flex-direction:column;gap:.125rem}.axm-drive-choose .__header-title{margin:0;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);font-size:1.0625rem;color:rgb(var(--ax-sys-color-on-surface))}.axm-drive-choose .__header-subtitle{margin:0;font-size:.8125rem;line-height:1.4;color:rgb(var(--ax-sys-color-on-light-surface))}.axm-drive-choose .__toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.axm-drive-choose .__breadcrumbs{min-width:0px;flex:1}.axm-drive-choose .__search{max-width:100%;width:16rem}.axm-drive-choose .__body{min-height:0px;flex:1;overflow:auto;padding:.75rem 1rem 1rem}.axm-drive-choose .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-xl, .75rem);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-drive-choose .__footer{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 4);padding:.875rem 1.5rem;border-top:1px solid rgb(var(--ax-sys-color-border-lighter-surface))}.axm-drive-choose .__selection-badge{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);border-radius:calc(infinity * 1px);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);padding:.375rem .75rem;font-size:.8125rem;color:rgb(var(--ax-sys-color-on-primary-surface))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXMenuModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.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: AXButtonGroupModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i3.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$1.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { 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: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type:
|
|
223
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMDocumentDriveChooseComponent, isStandalone: true, selector: "ax-document-drive-choose", providers: [AXPDocumentExplorerViewModel], viewQueries: [{ propertyName: "documentExplorer", first: true, predicate: AXMDocumentExplorerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"axm-drive-choose\" [class.__compact-header]=\"hideHeader\" *translate=\"let t\">\n <header class=\"__header\">\n @if (!hideHeader) {\n <div class=\"__header-main\">\n <span class=\"__header-icon primary-surface\">\n <ax-icon icon=\"fa-light fa-hard-drive\"></ax-icon>\n </span>\n <div class=\"__header-text\">\n <h2 class=\"__header-title\">\n {{\n '@document-management:actions.choose-from-drive' | translate | async\n }}\n </h2>\n <p class=\"__header-subtitle\">\n {{\n t(subtitleKey(), { scope: rootConfig.config.i18n })\n | async\n }}\n </p>\n </div>\n </div>\n }\n\n <div class=\"__toolbar\">\n <axm-folder-path-breadcrumbs\n class=\"__breadcrumbs\"\n ></axm-folder-path-breadcrumbs>\n <ax-search-box\n [(value)]=\"searchQuery\"\n (onValueChanged)=\"handleSearchChange($event)\"\n class=\"__search\"\n [placeholder]=\"\n t('actions.search', { scope: rootConfig.config.i18n }) | async\n \"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n </header>\n\n <main class=\"__body\">\n @if (vm.isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n <span>{{\n t('drive-choose.loading', { scope: rootConfig.config.i18n }) | async\n }}</span>\n </div>\n } @else {\n <axm-document-explorer\n [browseMode]=\"browseModeState()\"\n [selectionMode]=\"selectionModeState()\"\n [viewMode]=\"'list'\"\n [showContextMenu]=\"false\"\n >\n </axm-document-explorer>\n }\n </main>\n\n <ax-footer class=\"__footer light-surface\">\n <ax-prefix>\n @if (selectionModeState() === 'multiple' && selectedFileCount() > 0) {\n <span class=\"__selection-badge primary-surface\">\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n {{\n t('drive-choose.selected-count', {\n scope: rootConfig.config.i18n,\n params: { count: selectedFileCount() },\n }) | async\n }}\n </span>\n }\n </ax-prefix>\n <ax-suffix>\n <ax-button\n (onClick)=\"handleCancelClick()\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [disabled]=\"!canSubmit()\"\n (onClick)=\"handleSubmitButton()\"\n [text]=\"t(selectText(), { scope: rootConfig.config.i18n }) | async\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>\n", styles: ["@layer properties;ax-document-drive-choose{display:block;width:100%;min-height:50vh}.axm-drive-choose{display:flex;width:100%;flex-direction:column;min-height:50vh;background:rgb(var(--ax-sys-color-lightest-surface))}.axm-drive-choose.__compact-header .__header{padding-top:calc(var(--spacing, .25rem) * 3)}.axm-drive-choose.__compact-header .__body{min-height:18rem}.axm-drive-choose .__header{display:flex;flex-direction:column;gap:var(--spacing, .25rem);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 2);border-bottom:1px solid rgb(var(--ax-sys-color-border-lighter-surface))}.axm-drive-choose .__header-main{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 3.5)}.axm-drive-choose .__header-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:.75rem;font-size:1.125rem;color:rgb(var(--ax-sys-color-on-primary-surface))}.axm-drive-choose .__header-text{display:flex;min-width:0px;flex-direction:column;gap:.125rem}.axm-drive-choose .__header-title{margin:0;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);font-size:1.0625rem;color:rgb(var(--ax-sys-color-on-surface))}.axm-drive-choose .__header-subtitle{margin:0;font-size:.8125rem;line-height:1.4;color:rgb(var(--ax-sys-color-on-light-surface))}.axm-drive-choose .__toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.axm-drive-choose .__breadcrumbs{min-width:0px;flex:1}.axm-drive-choose .__search{max-width:100%;width:16rem}.axm-drive-choose .__body{min-height:0px;flex:1;overflow:auto;padding:.75rem 1rem 1rem}.axm-drive-choose .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-xl, .75rem);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-drive-choose .__footer{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 4);padding:.875rem 1.5rem;border-top:1px solid rgb(var(--ax-sys-color-border-lighter-surface))}.axm-drive-choose .__selection-badge{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);border-radius:calc(infinity * 1px);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);padding:.375rem .75rem;font-size:.8125rem;color:rgb(var(--ax-sys-color-on-primary-surface))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXMenuModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.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: AXButtonGroupModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i3.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$1.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { 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: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i5.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXFileModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXDateTimeModule }, { kind: "component", type: AXMDocumentExplorerComponent, selector: "axm-document-explorer", inputs: ["browseMode", "viewMode", "selectionMode", "showContextMenu"] }, { kind: "component", type: AXMFolderPathBreadcrumbsComponent, selector: "axm-folder-path-breadcrumbs" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
224
224
|
}
|
|
225
225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMDocumentDriveChooseComponent, decorators: [{
|
|
226
226
|
type: Component,
|
|
@@ -247,4 +247,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
247
247
|
}], propDecorators: { documentExplorer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXMDocumentExplorerComponent), { isSignal: true }] }] } });
|
|
248
248
|
|
|
249
249
|
export { AXMDocumentDriveChooseComponent };
|
|
250
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-drive-choose.component-
|
|
250
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-drive-choose.component-Bivzrex0.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs","sources":["../../../../libs/modules/document-management/client/src/lib/features/drive-choose/drive-choose.component.ts","../../../../libs/modules/document-management/client/src/lib/features/drive-choose/drive-choose.component.html"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXButtonGroupModule } from '@acorex/components/button-group';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXMenuModule } from '@acorex/components/menu';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFileModule } from '@acorex/core/file';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPFileTypeProviderService } from '@acorex-platform/framework-client/common';\nimport { AXPPlatformScope } from '@acorex-platform/framework-shared/core';\nimport { AXPLayoutThemeService } from '@acorex-platform/framework-client/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n OnInit,\n signal,\n untracked,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { RootConfig } from '@acorex-platform/module-document-management-client/contracts';\nimport { AXMDocumentExplorerComponent, AXPDocumentExplorerViewModel } from '../document-explorer';\nimport { AXMDocumentManagerService, AXMFolderPathBreadcrumbsComponent } from '../shared';\nimport { AXMDocumentExplorerBrowseMode, AXMDocumentSelectionMode } from '../shared/document-manager.types';\nimport { AXValueChangedEvent } from '@acorex/cdk/common';\n@Component({\n selector: 'ax-document-drive-choose',\n templateUrl: './drive-choose.component.html',\n styleUrls: ['./drive-choose.component.css'],\n standalone: true,\n imports: [\n CommonModule,\n RouterModule,\n AXMenuModule,\n AXButtonModule,\n AXButtonGroupModule,\n AXDropdownButtonModule,\n AXDropdownModule,\n AXTranslationModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXBadgeModule,\n AXSearchBoxModule,\n AXFormatModule,\n AXFileModule,\n AXBreadcrumbsModule,\n AXDateTimeModule,\n AXMDocumentExplorerComponent,\n AXMFolderPathBreadcrumbsComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [AXPDocumentExplorerViewModel],\n})\nexport class AXMDocumentDriveChooseComponent extends AXBasePageComponent implements OnInit {\n /** Assigned by popup `data` before `ngOnInit`. */\n public scope!: AXPPlatformScope;\n /** Assigned by popup `data` before `ngOnInit`. */\n public browseMode: AXMDocumentExplorerBrowseMode = 'file';\n /** Assigned by popup `data` before `ngOnInit`. */\n public selectionMode: AXMDocumentSelectionMode = 'single';\n /** When true, hides the in-dialog title row (popup chrome provides the title). */\n public hideHeader = false;\n\n protected readonly layout = inject(AXPLayoutThemeService);\n protected readonly rootConfig = RootConfig;\n private readonly fileTypeService = inject(AXPFileTypeProviderService);\n private readonly driveService = inject(AXMDocumentManagerService);\n protected readonly vm = inject(AXPDocumentExplorerViewModel);\n protected readonly sessionService = inject(AXPSessionService);\n\n protected readonly filterItems = signal<Array<{ key: string; textKey: string; icon: string }>>([]);\n public selectedFilter = signal<string>('all');\n\n protected readonly browseModeState = signal<AXMDocumentExplorerBrowseMode>('file');\n protected readonly selectionModeState = signal<AXMDocumentSelectionMode>('single');\n\n protected readonly sortItems = signal([\n { key: 'name', textKey: 'actions.sort-by-name', icon: 'fa-light fa-font' },\n { key: 'modified', textKey: 'actions.sort-by-date', icon: 'fa-light fa-calendar' },\n { key: 'size', textKey: 'actions.sort-by-size', icon: 'fa-light fa-weight-hanging' },\n ]);\n\n protected documentExplorer = viewChild(AXMDocumentExplorerComponent);\n\n protected readonly selectedSort = computed(() => {\n const items = this.sortItems();\n return items.find((item) => item.key === this.vm.sortField()) || items[0];\n });\n\n protected readonly selectText = computed(() => {\n if (this.vm.browseMode() !== 'file') {\n return 'actions.select-folder';\n }\n return this.selectionModeState() === 'multiple' ? 'actions.select-files' : 'actions.select-file';\n });\n\n protected readonly selectedFileCount = computed(() =>\n this.vm.selectedNodes().filter((node) => node.type === 'file').length,\n );\n\n protected readonly canSubmit = computed(() => {\n if (this.browseModeState() === 'folder') {\n return Boolean(this.vm.currentFolder()?.id);\n }\n\n const selectedFiles = this.vm.selectedNodes().filter((node) => node.type === 'file');\n if (this.selectionModeState() === 'multiple') {\n return selectedFiles.length > 0;\n }\n return selectedFiles.length === 1;\n });\n\n protected readonly subtitleKey = computed(() =>\n this.browseModeState() === 'folder' ? 'drive-choose.subtitle-folder' : 'drive-choose.subtitle',\n );\n\n protected searchQuery: string | null = '';\n\n #navigateEffect = effect(() => {\n const navigatingFolderId = this.vm.navigatingFolderId();\n if (navigatingFolderId) {\n this.loadDrive(navigatingFolderId);\n \n // Clear search when navigating to a folder\n setTimeout(() => {\n this.searchQuery = null;\n }, 200);\n }\n });\n\n #loadingEffect = effect(() => {\n const isLoading = this.vm.isLoading();\n untracked(() => {\n this.layout.setNavigationLoading(isLoading);\n });\n });\n\n #selectionSyncEffect = effect(() => {\n if (this.documentExplorer()) {\n this.vm.setSelectionMode(this.selectionModeState());\n }\n });\n\n async handleSearchChange(event: AXValueChangedEvent) {\n if (event.value == null) {\n return;\n }\n\n if (event.value?.length > 0) {\n this.vm.setLoading(true);\n try {\n const searchRootId =\n this.vm.currentNode()?.id === 'virtual'\n ? this.vm.currentNode()?.parentId ?? undefined\n : this.vm.currentNode()?.id;\n const result = await this.driveService.searchNodes(event.value, this.scope, {\n folderId: searchRootId !== 'virtual' ? searchRootId : undefined,\n });\n await this.vm.virtualFolder(result, {\n name: 'Search Result',\n parentId: searchRootId,\n });\n } finally {\n this.vm.setLoading(false);\n }\n return;\n }\n\n // Clearing search restores the folder that was searched — do not navigate to parent.\n const restoreFolderId =\n this.vm.currentNode()?.id === 'virtual'\n ? this.vm.currentNode()?.parentId ?? undefined\n : this.vm.currentNode()?.id;\n await this.loadDrive(restoreFolderId || undefined);\n }\n\n override async ngOnInit() {\n super.ngOnInit();\n this.applyPopupOptions();\n await this.loadFilterItems();\n\n await this.vm.initialize({\n browseMode: this.browseModeState(),\n scope: this.scope,\n });\n this.vm.setSelectionMode(this.selectionModeState());\n this.loadDrive();\n }\n\n private applyPopupOptions(): void {\n this.browseModeState.set(this.browseMode);\n this.selectionModeState.set(this.selectionMode);\n }\n\n private async loadDrive(folderId?: string) {\n if (folderId) {\n await this.vm.loadFolderContents(folderId);\n } else {\n // getRoot already returns the hydrated root (children + shortcuts + path):\n // apply it directly instead of fetching the same folder a second time.\n const root = await this.driveService.getRoot(this.scope);\n if (root.result) {\n await this.vm.applyLoadedFolder(root);\n }\n }\n }\n\n async loadFilterItems() {\n const types = await this.fileTypeService.items();\n const items = [\n { key: 'all', textKey: 'file-types.all', icon: 'fa-light fa-folder-closed' },\n ...types.map((type) => ({\n key: type.name,\n textKey: `file-types.${type.name}`,\n icon: type.icon || 'fa-light fa-file',\n })),\n ];\n this.filterItems.set(items);\n }\n\n protected setFilter(key: string): void {\n this.selectedFilter.set(key);\n }\n\n protected getFilterIcon(): string {\n if (this.selectedFilter() === 'all') {\n return 'fa-light fa-folder-closed';\n }\n const item = this.filterItems().find((item) => item.key === this.selectedFilter());\n return item?.icon || 'fa-light fa-file';\n }\n\n protected getFilterText(): string {\n if (this.selectedFilter() === 'all') {\n return 'file-types.all';\n }\n const item = this.filterItems().find((item) => item.key === this.selectedFilter());\n return item?.textKey || 'file-types.all';\n }\n\n protected handleNavigateToFolder(folderId: string) {\n this.vm.navigateToFolder(folderId);\n }\n\n protected async handleSubmitButton() {\n const items =\n this.vm.browseMode() === 'file'\n ? this.vm.selectedNodes().filter((node) => node.type === 'file')\n : [this.vm.currentFolder()].filter(Boolean);\n\n this.close({\n result: true,\n items,\n });\n }\n\n protected handleCancelClick() {\n this.close({\n result: false,\n });\n }\n}\n","<div class=\"axm-drive-choose\" [class.__compact-header]=\"hideHeader\" *translate=\"let t\">\n <header class=\"__header\">\n @if (!hideHeader) {\n <div class=\"__header-main\">\n <span class=\"__header-icon primary-surface\">\n <ax-icon icon=\"fa-light fa-hard-drive\"></ax-icon>\n </span>\n <div class=\"__header-text\">\n <h2 class=\"__header-title\">\n {{\n '@document-management:actions.choose-from-drive' | translate | async\n }}\n </h2>\n <p class=\"__header-subtitle\">\n {{\n t(subtitleKey(), { scope: rootConfig.config.i18n })\n | async\n }}\n </p>\n </div>\n </div>\n }\n\n <div class=\"__toolbar\">\n <axm-folder-path-breadcrumbs\n class=\"__breadcrumbs\"\n ></axm-folder-path-breadcrumbs>\n <ax-search-box\n [(value)]=\"searchQuery\"\n (onValueChanged)=\"handleSearchChange($event)\"\n class=\"__search\"\n [placeholder]=\"\n t('actions.search', { scope: rootConfig.config.i18n }) | async\n \"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n </header>\n\n <main class=\"__body\">\n @if (vm.isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n <span>{{\n t('drive-choose.loading', { scope: rootConfig.config.i18n }) | async\n }}</span>\n </div>\n } @else {\n <axm-document-explorer\n [browseMode]=\"browseModeState()\"\n [selectionMode]=\"selectionModeState()\"\n [viewMode]=\"'list'\"\n [showContextMenu]=\"false\"\n >\n </axm-document-explorer>\n }\n </main>\n\n <ax-footer class=\"__footer light-surface\">\n <ax-prefix>\n @if (selectionModeState() === 'multiple' && selectedFileCount() > 0) {\n <span class=\"__selection-badge primary-surface\">\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n {{\n t('drive-choose.selected-count', {\n scope: rootConfig.config.i18n,\n params: { count: selectedFileCount() },\n }) | async\n }}\n </span>\n }\n </ax-prefix>\n <ax-suffix>\n <ax-button\n (onClick)=\"handleCancelClick()\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [disabled]=\"!canSubmit()\"\n (onClick)=\"handleSubmitButton()\"\n [text]=\"t(selectText(), { scope: rootConfig.config.i18n }) | async\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>\n"],"names":["i3","i5","i6","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;AA7BxE,IAAA,W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AAA,IAAA,EACnB,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAChB,4BAA4B,0IAC5B,iCAAiC,EAAA,QAAA,EAAA,6BAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAMxB,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBA7B3C,SAAS;+BACE,0BAA0B,EAAA,UAAA,EAGxB,IAAI,EAAA,OAAA,EACP;wBACP,YAAY;wBACZ,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,mBAAmB;wBACnB,sBAAsB;wBACtB,gBAAgB;wBAChB,mBAAmB;wBACnB,iBAAiB;wBACjB,eAAe;wBACf,aAAa;wBACb,iBAAiB;wBACjB,cAAc;wBACd,YAAY;wBACZ,mBAAmB;wBACnB,gBAAgB;wBAChB,4BAA4B;wBAC5B,iCAAiC;qBAClC,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,SAAA,EAC1B,CAAC,4BAA4B,CAAC,EAAA,QAAA,EAAA,2yFAAA,EAAA,MAAA,EAAA,CAAA,k5FAAA,CAAA,EAAA;kGA+BF,4BAA4B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-drive-choose.component-Bivzrex0.mjs","sources":["../../../../libs/modules/document-management/client/src/lib/features/drive-choose/drive-choose.component.ts","../../../../libs/modules/document-management/client/src/lib/features/drive-choose/drive-choose.component.html"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXButtonGroupModule } from '@acorex/components/button-group';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXMenuModule } from '@acorex/components/menu';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFileModule } from '@acorex/core/file';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPFileTypeProviderService } from '@acorex-platform/framework-client/common';\nimport { AXPPlatformScope } from '@acorex-platform/framework-shared/core';\nimport { AXPLayoutThemeService } from '@acorex-platform/framework-client/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n OnInit,\n signal,\n untracked,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { RootConfig } from '@acorex-platform/module-document-management-client/contracts';\nimport { AXMDocumentExplorerComponent, AXPDocumentExplorerViewModel } from '../document-explorer';\nimport { AXMDocumentManagerService, AXMFolderPathBreadcrumbsComponent } from '../shared';\nimport { AXMDocumentExplorerBrowseMode, AXMDocumentSelectionMode } from '../shared/document-manager.types';\nimport { AXValueChangedEvent } from '@acorex/cdk/common';\n@Component({\n selector: 'ax-document-drive-choose',\n templateUrl: './drive-choose.component.html',\n styleUrls: ['./drive-choose.component.css'],\n standalone: true,\n imports: [\n CommonModule,\n RouterModule,\n AXMenuModule,\n AXButtonModule,\n AXButtonGroupModule,\n AXDropdownButtonModule,\n AXDropdownModule,\n AXTranslationModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXBadgeModule,\n AXSearchBoxModule,\n AXFormatModule,\n AXFileModule,\n AXBreadcrumbsModule,\n AXDateTimeModule,\n AXMDocumentExplorerComponent,\n AXMFolderPathBreadcrumbsComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [AXPDocumentExplorerViewModel],\n})\nexport class AXMDocumentDriveChooseComponent extends AXBasePageComponent implements OnInit {\n /** Assigned by popup `data` before `ngOnInit`. */\n public scope!: AXPPlatformScope;\n /** Assigned by popup `data` before `ngOnInit`. */\n public browseMode: AXMDocumentExplorerBrowseMode = 'file';\n /** Assigned by popup `data` before `ngOnInit`. */\n public selectionMode: AXMDocumentSelectionMode = 'single';\n /** When true, hides the in-dialog title row (popup chrome provides the title). */\n public hideHeader = false;\n\n protected readonly layout = inject(AXPLayoutThemeService);\n protected readonly rootConfig = RootConfig;\n private readonly fileTypeService = inject(AXPFileTypeProviderService);\n private readonly driveService = inject(AXMDocumentManagerService);\n protected readonly vm = inject(AXPDocumentExplorerViewModel);\n protected readonly sessionService = inject(AXPSessionService);\n\n protected readonly filterItems = signal<Array<{ key: string; textKey: string; icon: string }>>([]);\n public selectedFilter = signal<string>('all');\n\n protected readonly browseModeState = signal<AXMDocumentExplorerBrowseMode>('file');\n protected readonly selectionModeState = signal<AXMDocumentSelectionMode>('single');\n\n protected readonly sortItems = signal([\n { key: 'name', textKey: 'actions.sort-by-name', icon: 'fa-light fa-font' },\n { key: 'modified', textKey: 'actions.sort-by-date', icon: 'fa-light fa-calendar' },\n { key: 'size', textKey: 'actions.sort-by-size', icon: 'fa-light fa-weight-hanging' },\n ]);\n\n protected documentExplorer = viewChild(AXMDocumentExplorerComponent);\n\n protected readonly selectedSort = computed(() => {\n const items = this.sortItems();\n return items.find((item) => item.key === this.vm.sortField()) || items[0];\n });\n\n protected readonly selectText = computed(() => {\n if (this.vm.browseMode() !== 'file') {\n return 'actions.select-folder';\n }\n return this.selectionModeState() === 'multiple' ? 'actions.select-files' : 'actions.select-file';\n });\n\n protected readonly selectedFileCount = computed(() =>\n this.vm.selectedNodes().filter((node) => node.type === 'file').length,\n );\n\n protected readonly canSubmit = computed(() => {\n if (this.browseModeState() === 'folder') {\n return Boolean(this.vm.currentFolder()?.id);\n }\n\n const selectedFiles = this.vm.selectedNodes().filter((node) => node.type === 'file');\n if (this.selectionModeState() === 'multiple') {\n return selectedFiles.length > 0;\n }\n return selectedFiles.length === 1;\n });\n\n protected readonly subtitleKey = computed(() =>\n this.browseModeState() === 'folder' ? 'drive-choose.subtitle-folder' : 'drive-choose.subtitle',\n );\n\n protected searchQuery: string | null = '';\n\n #navigateEffect = effect(() => {\n const navigatingFolderId = this.vm.navigatingFolderId();\n if (navigatingFolderId) {\n this.loadDrive(navigatingFolderId);\n \n // Clear search when navigating to a folder\n setTimeout(() => {\n this.searchQuery = null;\n }, 200);\n }\n });\n\n #loadingEffect = effect(() => {\n const isLoading = this.vm.isLoading();\n untracked(() => {\n this.layout.setNavigationLoading(isLoading);\n });\n });\n\n #selectionSyncEffect = effect(() => {\n if (this.documentExplorer()) {\n this.vm.setSelectionMode(this.selectionModeState());\n }\n });\n\n async handleSearchChange(event: AXValueChangedEvent) {\n if (event.value == null) {\n return;\n }\n\n if (event.value?.length > 0) {\n this.vm.setLoading(true);\n try {\n const searchRootId =\n this.vm.currentNode()?.id === 'virtual'\n ? this.vm.currentNode()?.parentId ?? undefined\n : this.vm.currentNode()?.id;\n const result = await this.driveService.searchNodes(event.value, this.scope, {\n folderId: searchRootId !== 'virtual' ? searchRootId : undefined,\n });\n await this.vm.virtualFolder(result, {\n name: 'Search Result',\n parentId: searchRootId,\n });\n } finally {\n this.vm.setLoading(false);\n }\n return;\n }\n\n // Clearing search restores the folder that was searched — do not navigate to parent.\n const restoreFolderId =\n this.vm.currentNode()?.id === 'virtual'\n ? this.vm.currentNode()?.parentId ?? undefined\n : this.vm.currentNode()?.id;\n await this.loadDrive(restoreFolderId || undefined);\n }\n\n override async ngOnInit() {\n super.ngOnInit();\n this.applyPopupOptions();\n await this.loadFilterItems();\n\n await this.vm.initialize({\n browseMode: this.browseModeState(),\n scope: this.scope,\n });\n this.vm.setSelectionMode(this.selectionModeState());\n this.loadDrive();\n }\n\n private applyPopupOptions(): void {\n this.browseModeState.set(this.browseMode);\n this.selectionModeState.set(this.selectionMode);\n }\n\n private async loadDrive(folderId?: string) {\n if (folderId) {\n await this.vm.loadFolderContents(folderId);\n } else {\n // getRoot already returns the hydrated root (children + shortcuts + path):\n // apply it directly instead of fetching the same folder a second time.\n const root = await this.driveService.getRoot(this.scope);\n if (root.result) {\n await this.vm.applyLoadedFolder(root);\n }\n }\n }\n\n async loadFilterItems() {\n const types = await this.fileTypeService.items();\n const items = [\n { key: 'all', textKey: 'file-types.all', icon: 'fa-light fa-folder-closed' },\n ...types.map((type) => ({\n key: type.name,\n textKey: `file-types.${type.name}`,\n icon: type.icon || 'fa-light fa-file',\n })),\n ];\n this.filterItems.set(items);\n }\n\n protected setFilter(key: string): void {\n this.selectedFilter.set(key);\n }\n\n protected getFilterIcon(): string {\n if (this.selectedFilter() === 'all') {\n return 'fa-light fa-folder-closed';\n }\n const item = this.filterItems().find((item) => item.key === this.selectedFilter());\n return item?.icon || 'fa-light fa-file';\n }\n\n protected getFilterText(): string {\n if (this.selectedFilter() === 'all') {\n return 'file-types.all';\n }\n const item = this.filterItems().find((item) => item.key === this.selectedFilter());\n return item?.textKey || 'file-types.all';\n }\n\n protected handleNavigateToFolder(folderId: string) {\n this.vm.navigateToFolder(folderId);\n }\n\n protected async handleSubmitButton() {\n const items =\n this.vm.browseMode() === 'file'\n ? this.vm.selectedNodes().filter((node) => node.type === 'file')\n : [this.vm.currentFolder()].filter(Boolean);\n\n this.close({\n result: true,\n items,\n });\n }\n\n protected handleCancelClick() {\n this.close({\n result: false,\n });\n }\n}\n","<div class=\"axm-drive-choose\" [class.__compact-header]=\"hideHeader\" *translate=\"let t\">\n <header class=\"__header\">\n @if (!hideHeader) {\n <div class=\"__header-main\">\n <span class=\"__header-icon primary-surface\">\n <ax-icon icon=\"fa-light fa-hard-drive\"></ax-icon>\n </span>\n <div class=\"__header-text\">\n <h2 class=\"__header-title\">\n {{\n '@document-management:actions.choose-from-drive' | translate | async\n }}\n </h2>\n <p class=\"__header-subtitle\">\n {{\n t(subtitleKey(), { scope: rootConfig.config.i18n })\n | async\n }}\n </p>\n </div>\n </div>\n }\n\n <div class=\"__toolbar\">\n <axm-folder-path-breadcrumbs\n class=\"__breadcrumbs\"\n ></axm-folder-path-breadcrumbs>\n <ax-search-box\n [(value)]=\"searchQuery\"\n (onValueChanged)=\"handleSearchChange($event)\"\n class=\"__search\"\n [placeholder]=\"\n t('actions.search', { scope: rootConfig.config.i18n }) | async\n \"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n </header>\n\n <main class=\"__body\">\n @if (vm.isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n <span>{{\n t('drive-choose.loading', { scope: rootConfig.config.i18n }) | async\n }}</span>\n </div>\n } @else {\n <axm-document-explorer\n [browseMode]=\"browseModeState()\"\n [selectionMode]=\"selectionModeState()\"\n [viewMode]=\"'list'\"\n [showContextMenu]=\"false\"\n >\n </axm-document-explorer>\n }\n </main>\n\n <ax-footer class=\"__footer light-surface\">\n <ax-prefix>\n @if (selectionModeState() === 'multiple' && selectedFileCount() > 0) {\n <span class=\"__selection-badge primary-surface\">\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n {{\n t('drive-choose.selected-count', {\n scope: rootConfig.config.i18n,\n params: { count: selectedFileCount() },\n }) | async\n }}\n </span>\n }\n </ax-prefix>\n <ax-suffix>\n <ax-button\n (onClick)=\"handleCancelClick()\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [disabled]=\"!canSubmit()\"\n (onClick)=\"handleSubmitButton()\"\n [text]=\"t(selectText(), { scope: rootConfig.config.i18n }) | async\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-check\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>\n"],"names":["i3","i6","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;AA7BxE,IAAA,WAAA,GAAA;;;QAiCS,IAAA,CAAA,UAAU,GAAkC,MAAM;;QAElD,IAAA,CAAA,aAAa,GAA6B,QAAQ;;QAElD,IAAA,CAAA,UAAU,GAAG,KAAK;AAEN,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,qBAAqB,CAAC;QACtC,IAAA,CAAA,UAAU,GAAG,UAAU;AACzB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACpD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAC9C,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,4BAA4B,CAAC;AACzC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;QAE1C,IAAA,CAAA,WAAW,GAAG,MAAM,CAAwD,EAAE;wFAAC;QAC3F,IAAA,CAAA,cAAc,GAAG,MAAM,CAAS,KAAK;2FAAC;QAE1B,IAAA,CAAA,eAAe,GAAG,MAAM,CAAgC,MAAM;4FAAC;QAC/D,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAA2B,QAAQ;+FAAC;QAE/D,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC;YACpC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,kBAAkB,EAAE;YAC1E,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,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iB,CAAC,IAAI,EAAA,SAAA,EAC1B,CAAC,4BAA4B,CAAC,EAAA,QAAA,EAAA,2yFAAA,EAAA,MAAA,EAAA,CAAA,k5FAAA,CAAA,EAAA;kGA+BF,4BAA4B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
@@ -6,7 +6,7 @@ import * as i1$1 from '@angular/common';
|
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
9
|
-
import { A as AXPDocumentExplorerViewModel } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-
|
|
9
|
+
import { A as AXPDocumentExplorerViewModel } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-Of1L93HC.mjs';
|
|
10
10
|
|
|
11
11
|
class AXMDocumentExplorerLargeIconsViewSkeletonComponent {
|
|
12
12
|
constructor() {
|
|
@@ -24,4 +24,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
24
24
|
}] });
|
|
25
25
|
|
|
26
26
|
export { AXMDocumentExplorerLargeIconsViewSkeletonComponent };
|
|
27
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-large-icons-view-skeleton.component-
|
|
27
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-large-icons-view-skeleton.component-3C4LEllG.mjs.map
|