@acorex/modules 19.4.1 → 19.4.3
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/document-management/lib/document-management.module.d.ts +11 -10
- package/document-management/lib/entities/folder/folder.types.d.ts +2 -0
- package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +2 -1
- package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +0 -1
- package/document-management/lib/features/drive-choose/drive-choose.module.d.ts +7 -0
- package/document-management/lib/features/drive-choose/slots/file-uploader-widget-extension/file-uploader-widget-extension.component.d.ts +15 -0
- package/document-management/lib/features/shared/components/index.d.ts +0 -1
- package/document-management/lib/features/shared/document-manager.service.d.ts +0 -2
- package/document-management/lib/features/shared/document-manager.types.d.ts +1 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-cD24pUfN.mjs → acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs} +2 -2
- package/fesm2022/{acorex-modules-application-management-module-designer.component-cD24pUfN.mjs.map → acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BhTLWa3y.mjs → acorex-modules-auth-acorex-modules-auth-B-OllEdK.mjs} +13 -13
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BhTLWa3y.mjs.map → acorex-modules-auth-acorex-modules-auth-B-OllEdK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-app-chooser.component-J5vGfv56.mjs → acorex-modules-auth-app-chooser.component-DNr963RR.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-J5vGfv56.mjs.map → acorex-modules-auth-app-chooser.component-DNr963RR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-DUlctvyx.mjs → acorex-modules-auth-login.module-HfQItJY6.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-DUlctvyx.mjs.map → acorex-modules-auth-login.module-HfQItJY6.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-BFCxBj8H.mjs → acorex-modules-auth-master.layout-DgN0Dh-I.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-master.layout-BFCxBj8H.mjs.map → acorex-modules-auth-master.layout-DgN0Dh-I.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CSE7_3Ey.mjs → acorex-modules-auth-password.component-B-L3ksjM.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CSE7_3Ey.mjs.map → acorex-modules-auth-password.component-B-L3ksjM.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CPpJug_X.mjs → acorex-modules-auth-password.component-CVgNTaKI.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CPpJug_X.mjs.map → acorex-modules-auth-password.component-CVgNTaKI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-BSk5njsU.mjs → acorex-modules-auth-routes-CtoZQEq9.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-BSk5njsU.mjs.map → acorex-modules-auth-routes-CtoZQEq9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-D3mhXLXx.mjs → acorex-modules-auth-two-factor.module-CCP_Oovk.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-D3mhXLXx.mjs.map → acorex-modules-auth-two-factor.module-CCP_Oovk.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-COeH4jjg.mjs → acorex-modules-auth-user-sessions.component-6jRmJGeS.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-user-sessions.component-COeH4jjg.mjs.map → acorex-modules-auth-user-sessions.component-6jRmJGeS.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +2 -2
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-BcgxVPuR.mjs → acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs} +148 -142
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cwa7HuUo.mjs → acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cwa7HuUo.mjs.map → acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs +141 -0
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-details-view.component-DXn54h2g.mjs → acorex-modules-document-management-details-view.component-D0RIYrHB.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-DXn54h2g.mjs.map → acorex-modules-document-management-details-view.component-D0RIYrHB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CTrPj9t3.mjs → acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CTrPj9t3.mjs.map → acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DwAyEZUU.mjs → acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DwAyEZUU.mjs.map → acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-B0n1rs-g.mjs → acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-B0n1rs-g.mjs.map → acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-CIAQBAcy.mjs → acorex-modules-document-management-list-view.component-C1inszTC.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-CIAQBAcy.mjs.map → acorex-modules-document-management-list-view.component-C1inszTC.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BBXmMuIh.mjs → acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BBXmMuIh.mjs.map → acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-D28zKZqZ.mjs → acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs} +6 -6
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Dg5nb2yW.mjs → acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Dg5nb2yW.mjs.map → acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BCaQYHQF.mjs → acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BCaQYHQF.mjs.map → acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +2 -2
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-CO8rzxOh.mjs → acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs} +173 -13
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-list-version.component-gWnz7cp6.mjs → acorex-modules-platform-management-list-version.component-D50Xundj.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-list-version.component-gWnz7cp6.mjs.map → acorex-modules-platform-management-list-version.component-D50Xundj.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-settings.provider-JEwENvqy.mjs → acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-settings.provider-JEwENvqy.mjs.map → acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-training-management.mjs +1 -0
- package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
- package/package.json +9 -9
- package/platform-management/lib/features/app-terms/settings.keys.d.ts +3 -0
- package/document-management/lib/features/shared/components/choose-document-type/choose-document-type.component.d.ts +0 -21
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BcgxVPuR.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BN0pWX7a.mjs +0 -135
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BN0pWX7a.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-D28zKZqZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-CO8rzxOh.mjs.map +0 -1
@@ -13,7 +13,7 @@ import * as i1$1 from '@angular/common';
|
|
13
13
|
import { CommonModule } from '@angular/common';
|
14
14
|
import * as i7 from '@acorex/components/collapse';
|
15
15
|
import { AXCollapseModule } from '@acorex/components/collapse';
|
16
|
-
import * as
|
16
|
+
import * as i3$1 from '@acorex/components/decorators';
|
17
17
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
18
18
|
import * as i3 from '@acorex/components/form';
|
19
19
|
import { AXFormModule } from '@acorex/components/form';
|
@@ -26,14 +26,14 @@ import { FormsModule } from '@angular/forms';
|
|
26
26
|
import get from 'lodash-es/get';
|
27
27
|
import set from 'lodash-es/set';
|
28
28
|
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY } from '@acorex/platform/widgets';
|
29
|
-
import * as i3$
|
29
|
+
import * as i3$3 from '@acorex/components/media-viewer';
|
30
30
|
import { AXMediaViewerContainerComponent, AXMediaViewerModule } from '@acorex/components/media-viewer';
|
31
|
-
import * as i3$
|
31
|
+
import * as i3$5 from '@acorex/platform/workflow';
|
32
32
|
import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
33
|
-
import * as i2$
|
33
|
+
import * as i2$1 from '@acorex/components/button';
|
34
34
|
import { AXButtonModule, AXButtonComponent } from '@acorex/components/button';
|
35
35
|
import { AXButtonGroupModule } from '@acorex/components/button-group';
|
36
|
-
import * as i3$
|
36
|
+
import * as i3$4 from '@acorex/components/dropdown';
|
37
37
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
38
38
|
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
39
39
|
import { AXFileService, AXFileModule } from '@acorex/core/file';
|
@@ -41,10 +41,10 @@ import * as i4$1 from '@acorex/core/translation';
|
|
41
41
|
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
42
42
|
import { AXPPlatformScope, resolvePlatformScopeKey, resolvePlatformScopeName, AXPDataGenerator } from '@acorex/platform/core';
|
43
43
|
import { AXLoadingModule } from '@acorex/components/loading';
|
44
|
-
import * as i3$
|
44
|
+
import * as i3$2 from '@acorex/components/menu';
|
45
45
|
import { AXMenuModule } from '@acorex/components/menu';
|
46
46
|
import { AXDateTimeModule } from '@acorex/core/date-time';
|
47
|
-
import * as i2$
|
47
|
+
import * as i2$2 from '@acorex/core/format';
|
48
48
|
import { AXFormatModule } from '@acorex/core/format';
|
49
49
|
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
50
50
|
import { castArray, get as get$1, set as set$1 } from 'lodash-es';
|
@@ -56,9 +56,12 @@ import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
56
56
|
import * as i6$1 from '@acorex/components/search-box';
|
57
57
|
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
58
58
|
import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
|
59
|
-
import
|
59
|
+
import * as i1$2 from '@acorex/platform/layout/components';
|
60
|
+
import { AXPThemeLayoutBlockComponent, AXPComponentSlotModule, AXP_TASK_BADGE_PROVIDERS } from '@acorex/platform/layout/components';
|
60
61
|
import { AXBasePageComponent } from '@acorex/components/page';
|
61
62
|
import { AXUploaderService } from '@acorex/components/uploader';
|
63
|
+
import { AXTextBoxModule } from '@acorex/components/text-box';
|
64
|
+
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
62
65
|
|
63
66
|
const config = {
|
64
67
|
i18n: 'document-management',
|
@@ -2785,7 +2788,7 @@ class AXMFileTypeExtensionWidgetEditComponent extends AXPValueWidgetComponent {
|
|
2785
2788
|
</ax-collapse-group>
|
2786
2789
|
}
|
2787
2790
|
</axp-widgets-container>
|
2788
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type:
|
2791
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i6.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXCollapseModule }, { kind: "component", type: i7.AXCollapseComponent, selector: "ax-collapse", inputs: ["disabled", "look", "isCollapsed", "showHeader", "caption", "icon", "isLoading", "headerTemplate"], outputs: ["onClick", "isCollapsedChange"] }, { kind: "component", type: i7.AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: ["look", "accordion", "activeIndex"], outputs: ["accordionChange", "activeIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
2789
2792
|
}
|
2790
2793
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMFileTypeExtensionWidgetEditComponent, decorators: [{
|
2791
2794
|
type: Component,
|
@@ -3214,7 +3217,7 @@ class AXMDocumentManagerService {
|
|
3214
3217
|
}
|
3215
3218
|
}
|
3216
3219
|
async showFolderEditDialog(node) {
|
3217
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
3220
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs'))
|
3218
3221
|
.AXMCreateFolderDialog;
|
3219
3222
|
const popup = await this.popupService.open(comp, {
|
3220
3223
|
title: 't("actions.update-folder")',
|
@@ -3363,7 +3366,7 @@ class AXMDocumentManagerService {
|
|
3363
3366
|
}
|
3364
3367
|
}
|
3365
3368
|
async showCreateFolderDialog(parentId) {
|
3366
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
3369
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs'))
|
3367
3370
|
.AXMCreateFolderDialog;
|
3368
3371
|
const popup = await this.popupService.open(comp, {
|
3369
3372
|
title: 't("actions.create-folder")',
|
@@ -3374,7 +3377,7 @@ class AXMDocumentManagerService {
|
|
3374
3377
|
return popup.data?.folder;
|
3375
3378
|
}
|
3376
3379
|
async moveTo(options) {
|
3377
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3380
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs')).AXMDocumentDriveChooseComponent;
|
3378
3381
|
//
|
3379
3382
|
const popup = await this.popupService.open(comp, {
|
3380
3383
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
@@ -3405,7 +3408,7 @@ class AXMDocumentManagerService {
|
|
3405
3408
|
}
|
3406
3409
|
}
|
3407
3410
|
async copyTo(options) {
|
3408
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3411
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs')).AXMDocumentDriveChooseComponent;
|
3409
3412
|
//
|
3410
3413
|
const popup = await this.popupService.open(comp, {
|
3411
3414
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
@@ -3425,6 +3428,7 @@ class AXMDocumentManagerService {
|
|
3425
3428
|
parentId: selectedFolder.id,
|
3426
3429
|
color: '#ffffff',
|
3427
3430
|
size: options.node.size,
|
3431
|
+
inherit: options.node.inherit ?? false,
|
3428
3432
|
});
|
3429
3433
|
}
|
3430
3434
|
else {
|
@@ -3498,7 +3502,7 @@ class AXMDocumentManagerService {
|
|
3498
3502
|
const file = await this.documentService.getOne(node.id);
|
3499
3503
|
}
|
3500
3504
|
async showRenamePopup(node) {
|
3501
|
-
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-
|
3505
|
+
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs'))
|
3502
3506
|
.AXMRenameNodeDialog;
|
3503
3507
|
const popup = await this.popupService.open(comp, {
|
3504
3508
|
title: 't("actions.rename")',
|
@@ -3546,7 +3550,7 @@ class AXMDocumentManagerService {
|
|
3546
3550
|
return [...(await this.getAllFolders()), ...(await this.getAllFiles())];
|
3547
3551
|
}
|
3548
3552
|
async showChooseFileDialog(scope) {
|
3549
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3553
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs')).AXMDocumentDriveChooseComponent;
|
3550
3554
|
const result = await this.popupService.open(comp, {
|
3551
3555
|
title: `t("actions.choose-from-drive" , scope: {"${RootConfig.config.i18n}"})`,
|
3552
3556
|
data: {
|
@@ -3645,32 +3649,6 @@ class AXMDocumentManagerService {
|
|
3645
3649
|
const extension = originalName.substring(lastDotIndex);
|
3646
3650
|
return `${nameWithoutExt} copy${extension}`;
|
3647
3651
|
}
|
3648
|
-
async uploadFile(folderId) {
|
3649
|
-
const folder = await this.folderService.getOne(folderId);
|
3650
|
-
var docTypes = folder.documentTypes;
|
3651
|
-
if (folder && docTypes == null) {
|
3652
|
-
const comp = (await Promise.resolve().then(function () { return index; })).AXMChooseDocumentTypeComponent;
|
3653
|
-
const result = await this.popupService.open(comp);
|
3654
|
-
if (result.data != null && result.data.documentType != null) {
|
3655
|
-
const { upload, ...metaContext } = result.data.context;
|
3656
|
-
//Todo
|
3657
|
-
const fileInfo = await this.fileService.getInfo(upload[0]);
|
3658
|
-
const file = await this.documentService.insertOne({
|
3659
|
-
fileId: upload[0],
|
3660
|
-
meta: metaContext,
|
3661
|
-
parentId: folderId,
|
3662
|
-
size: fileInfo.size,
|
3663
|
-
name: `test.${fileInfo.mimeType.split('/')[1]}`,
|
3664
|
-
title: 'Test',
|
3665
|
-
});
|
3666
|
-
return true;
|
3667
|
-
}
|
3668
|
-
else {
|
3669
|
-
return false;
|
3670
|
-
}
|
3671
|
-
}
|
3672
|
-
return false;
|
3673
|
-
}
|
3674
3652
|
async uploadFileByType(folderId, docTypeId) {
|
3675
3653
|
const folder = await this.folderService.getOne(folderId);
|
3676
3654
|
var docType = folder.documentTypes?.find((dt) => dt.id === docTypeId);
|
@@ -3686,9 +3664,16 @@ class AXMDocumentManagerService {
|
|
3686
3664
|
const { uploads, ...metaContext } = result.data.context;
|
3687
3665
|
for (const u of uploads) {
|
3688
3666
|
const fileInfo = u;
|
3689
|
-
await this.fileService.
|
3667
|
+
const f = await this.fileService.save({
|
3668
|
+
category: 'document',
|
3669
|
+
file: fileInfo,
|
3670
|
+
refId: folderId,
|
3671
|
+
refType: `${RootConfig.module.name}.${RootConfig.entities.folder.name}`,
|
3672
|
+
name: fileInfo.name ?? '',
|
3673
|
+
});
|
3674
|
+
await this.fileService.commit(f.fileId);
|
3690
3675
|
const file = await this.documentService.insertOne({
|
3691
|
-
fileId:
|
3676
|
+
fileId: f.fileId,
|
3692
3677
|
meta: metaContext,
|
3693
3678
|
parentId: folderId,
|
3694
3679
|
size: fileInfo.size,
|
@@ -4296,13 +4281,13 @@ class AXMDocumentExplorerComponent {
|
|
4296
4281
|
this.showContextMenu = input(true);
|
4297
4282
|
this.view = signal(null);
|
4298
4283
|
this.viewMap = {
|
4299
|
-
list: async () => (await import('./acorex-modules-document-management-list-view.component-
|
4300
|
-
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-
|
4301
|
-
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-
|
4302
|
-
details: async () => (await import('./acorex-modules-document-management-details-view.component-
|
4303
|
-
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-
|
4304
|
-
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-
|
4305
|
-
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-
|
4284
|
+
list: async () => (await import('./acorex-modules-document-management-list-view.component-C1inszTC.mjs')).AXMDocumentExplorerListViewComponent,
|
4285
|
+
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
|
4286
|
+
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
|
4287
|
+
details: async () => (await import('./acorex-modules-document-management-details-view.component-D0RIYrHB.mjs')).AXMDocumentExplorerDetailsViewComponent,
|
4288
|
+
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
|
4289
|
+
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
|
4290
|
+
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs')).AXMDocumentExplorerAttachmentComponent,
|
4306
4291
|
};
|
4307
4292
|
this.#effect = effect(() => {
|
4308
4293
|
if (this.vm.loadingFolderId() == null) {
|
@@ -4638,15 +4623,6 @@ class AXMDocumentExplorerComponent {
|
|
4638
4623
|
}
|
4639
4624
|
return;
|
4640
4625
|
}
|
4641
|
-
async uploadFile(node) {
|
4642
|
-
const folderId = node?.id ?? this.vm.currentFolder()?.id;
|
4643
|
-
if (folderId) {
|
4644
|
-
const res = await this.driveService.uploadFile(folderId);
|
4645
|
-
if (res) {
|
4646
|
-
await this.vm.refresh();
|
4647
|
-
}
|
4648
|
-
}
|
4649
|
-
}
|
4650
4626
|
async chooseFile(scope = this.vm.scope()) {
|
4651
4627
|
return await this.driveService.showChooseFileDialog(scope);
|
4652
4628
|
//await this.vm.refresh();
|
@@ -4679,7 +4655,7 @@ class AXMDocumentExplorerComponent {
|
|
4679
4655
|
}
|
4680
4656
|
}
|
4681
4657
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentExplorerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
4682
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentExplorerComponent, isStandalone: true, selector: "axm-document-explorer", inputs: { browseMode: { classPropertyName: "browseMode", publicName: "browseMode", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, showContextMenu: { classPropertyName: "showContextMenu", publicName: "showContextMenu", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contextMenu", first: true, predicate: ["itemsContextMenu"], descendants: true, isSignal: true }, { propertyName: "rootContextMenu", first: true, predicate: ["rootContextMenu"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Empty State -->\n<div class=\"view-container\">\n @if (vm.folders().length === 0 && vm.files().length === 0) {\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-py-16 ax-h-full\">\n <ax-icon icon=\"fa-light fa-folder-open\" class=\"ax-text-6xl ax-mb-4\"></ax-icon>\n <h3 class=\"ax-text-xl ax-font-medium ax-mb-2\">No Items Found</h3>\n <p class=\"\">This folder is empty. Add some files or folders to get started.</p>\n </div>\n } @else {\n <ng-container [ngComponentOutlet]=\"view()\"></ng-container>\n }\n</div>\n\n<!-- Context Menu -->\n@if (showContextMenu()) {\n<!-- Item Context Menu-->\n<ax-context-menu\n #itemsContextMenu\n [target]=\"'.__explorer-item'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n (onOpening)=\"handleContextMenuOnOpening($event)\"\n>\n</ax-context-menu>\n<!-- Root Context Menu-->\n<ax-context-menu\n #rootContextMenu\n [target]=\"'.view-container'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n (onOpening)=\"handleContextMenuRootOnOpening($event)\"\n>\n</ax-context-menu>\n}\n", styles: ["axm-document-explorer{display:flex;height:max-content;min-height:100%;width:100%;flex-direction:row;gap:1rem}axm-document-explorer>.view-container{display:flex;flex:1 1 0%;-webkit-user-select:none;-moz-user-select:-moz-none;user-select:none;flex-direction:column;gap:1rem}axm-document-explorer .animation-duration-2s{--fa-animation-duration: 2s}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type:
|
4658
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentExplorerComponent, isStandalone: true, selector: "axm-document-explorer", inputs: { browseMode: { classPropertyName: "browseMode", publicName: "browseMode", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, showContextMenu: { classPropertyName: "showContextMenu", publicName: "showContextMenu", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contextMenu", first: true, predicate: ["itemsContextMenu"], descendants: true, isSignal: true }, { propertyName: "rootContextMenu", first: true, predicate: ["rootContextMenu"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Empty State -->\n<div class=\"view-container\">\n @if (vm.folders().length === 0 && vm.files().length === 0) {\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-py-16 ax-h-full\">\n <ax-icon icon=\"fa-light fa-folder-open\" class=\"ax-text-6xl ax-mb-4\"></ax-icon>\n <h3 class=\"ax-text-xl ax-font-medium ax-mb-2\">No Items Found</h3>\n <p class=\"\">This folder is empty. Add some files or folders to get started.</p>\n </div>\n } @else {\n <ng-container [ngComponentOutlet]=\"view()\"></ng-container>\n }\n</div>\n\n<!-- Context Menu -->\n@if (showContextMenu()) {\n<!-- Item Context Menu-->\n<ax-context-menu\n #itemsContextMenu\n [target]=\"'.__explorer-item'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n (onOpening)=\"handleContextMenuOnOpening($event)\"\n>\n</ax-context-menu>\n<!-- Root Context Menu-->\n<ax-context-menu\n #rootContextMenu\n [target]=\"'.view-container'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n (onOpening)=\"handleContextMenuRootOnOpening($event)\"\n>\n</ax-context-menu>\n}\n", styles: ["axm-document-explorer{display:flex;height:max-content;min-height:100%;width:100%;flex-direction:row;gap:1rem}axm-document-explorer>.view-container{display:flex;flex:1 1 0%;-webkit-user-select:none;-moz-user-select:-moz-none;user-select:none;flex-direction:column;gap:1rem}axm-document-explorer .animation-duration-2s{--fa-animation-duration: 2s}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXDateTimeModule }, { kind: "ngmodule", type: AXMenuModule }, { kind: "component", type: i3$2.AXContextMenuComponent, selector: "ax-context-menu", inputs: ["orientation", "openOn", "closeOn", "items", "target"], outputs: ["onItemClick", "onOpening"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
4683
4659
|
}
|
4684
4660
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentExplorerComponent, decorators: [{
|
4685
4661
|
type: Component,
|
@@ -4694,73 +4670,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
4694
4670
|
], template: "<!-- Empty State -->\n<div class=\"view-container\">\n @if (vm.folders().length === 0 && vm.files().length === 0) {\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-py-16 ax-h-full\">\n <ax-icon icon=\"fa-light fa-folder-open\" class=\"ax-text-6xl ax-mb-4\"></ax-icon>\n <h3 class=\"ax-text-xl ax-font-medium ax-mb-2\">No Items Found</h3>\n <p class=\"\">This folder is empty. Add some files or folders to get started.</p>\n </div>\n } @else {\n <ng-container [ngComponentOutlet]=\"view()\"></ng-container>\n }\n</div>\n\n<!-- Context Menu -->\n@if (showContextMenu()) {\n<!-- Item Context Menu-->\n<ax-context-menu\n #itemsContextMenu\n [target]=\"'.__explorer-item'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n (onOpening)=\"handleContextMenuOnOpening($event)\"\n>\n</ax-context-menu>\n<!-- Root Context Menu-->\n<ax-context-menu\n #rootContextMenu\n [target]=\"'.view-container'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n (onOpening)=\"handleContextMenuRootOnOpening($event)\"\n>\n</ax-context-menu>\n}\n", styles: ["axm-document-explorer{display:flex;height:max-content;min-height:100%;width:100%;flex-direction:row;gap:1rem}axm-document-explorer>.view-container{display:flex;flex:1 1 0%;-webkit-user-select:none;-moz-user-select:-moz-none;user-select:none;flex-direction:column;gap:1rem}axm-document-explorer .animation-duration-2s{--fa-animation-duration: 2s}\n"] }]
|
4695
4671
|
}] });
|
4696
4672
|
|
4697
|
-
class AXMChooseDocumentTypeComponent extends AXBasePageComponent {
|
4698
|
-
constructor() {
|
4699
|
-
super(...arguments);
|
4700
|
-
this.documentTypeService = inject(AXMDocumentTypeService);
|
4701
|
-
this.fileTypeService = inject(AXPFileTypeProviderService);
|
4702
|
-
this.documentTypeSelected = signal([]);
|
4703
|
-
this.context = signal({});
|
4704
|
-
this.documentTypesSource = new AXDataSource({
|
4705
|
-
load: async (_) => {
|
4706
|
-
return await this.documentTypeService.query();
|
4707
|
-
},
|
4708
|
-
pageSize: 10,
|
4709
|
-
key: 'id',
|
4710
|
-
});
|
4711
|
-
this.uploadNode = signal({
|
4712
|
-
name: 'upload',
|
4713
|
-
path: 'upload',
|
4714
|
-
type: 'file',
|
4715
|
-
options: {
|
4716
|
-
accept: '.pdf',
|
4717
|
-
multiple: false,
|
4718
|
-
},
|
4719
|
-
});
|
4720
|
-
}
|
4721
|
-
async handleChangeDocumentType(event) {
|
4722
|
-
const item = event.component.selectedItems[0];
|
4723
|
-
this.uploadNode.update((old) => {
|
4724
|
-
return {
|
4725
|
-
...old,
|
4726
|
-
options: {
|
4727
|
-
multiple: item.isMultiple,
|
4728
|
-
accept: item.name == 'any' ? '' : item.type.selectedItems.map((i) => `.${i.name.split('.')[1]}`).join(','),
|
4729
|
-
},
|
4730
|
-
};
|
4731
|
-
});
|
4732
|
-
for (const i of item.meta) {
|
4733
|
-
if (!get(i, '__node__')) {
|
4734
|
-
set$1(i, '__node__', typeof i.interface == 'function'
|
4735
|
-
? await i.interface()
|
4736
|
-
: JSON.parse(i.interface)['children'][0]['children'][0]);
|
4737
|
-
}
|
4738
|
-
}
|
4739
|
-
this.documentTypeSelected.set([item]);
|
4740
|
-
}
|
4741
|
-
handleContextChanged(e) {
|
4742
|
-
this.context.set(e.data);
|
4743
|
-
}
|
4744
|
-
handleCancel() {
|
4745
|
-
this.close();
|
4746
|
-
}
|
4747
|
-
handlesubmit() {
|
4748
|
-
this.close({
|
4749
|
-
documentType: this.documentTypeSelected(),
|
4750
|
-
context: this.context(),
|
4751
|
-
});
|
4752
|
-
}
|
4753
|
-
getNode(meta) {
|
4754
|
-
return get(meta, '__node__');
|
4755
|
-
}
|
4756
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMChooseDocumentTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
4757
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMChooseDocumentTypeComponent, isStandalone: true, selector: "axm-choose-document-type", usesInheritance: true, ngImport: i0, template: "<ax-header> </ax-header>\n<ax-content>\n <div class=\"ax-flex ax-flex-col ax-py-4 ax-px-6\">\n <ax-label> Select Document Type </ax-label>\n <ax-select-box\n [dataSource]=\"documentTypesSource\"\n textField=\"title\"\n valueField=\"id\"\n (onValueChanged)=\"handleChangeDocumentType($event)\"\n >\n </ax-select-box>\n @if (documentTypeSelected().length > 0) {\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"handleContextChanged($event)\">\n <ax-form>\n @for(doc of documentTypeSelected()[0].meta; track doc.name) {\n <ax-form-field>\n <ax-label>{{ doc.title }}</ax-label>\n <ng-container axp-widget-renderer [node]=\"getNode(doc)\" [mode]=\"'edit'\"></ng-container>\n </ax-form-field>\n }\n <ng-container axp-widget-renderer [node]=\"uploadNode()\" mode=\"edit\"></ng-container>\n </ax-form>\n </axp-widgets-container>\n }\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button text=\"Cancel\" (onClick)=\"handleCancel()\"> </ax-button>\n <ax-button text=\"Next\" look=\"solid\" color=\"primary\" (onClick)=\"handlesubmit()\"> </ax-button>\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$2.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: AXDecoratorModule }, { kind: "component", type: i2$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: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i3.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i6.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
4758
|
-
}
|
4759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMChooseDocumentTypeComponent, decorators: [{
|
4760
|
-
type: Component,
|
4761
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'axm-choose-document-type', imports: [AXButtonModule, AXDecoratorModule, AXFormModule, AXLabelModule, AXSelectBoxModule, AXPLayoutBuilderModule], template: "<ax-header> </ax-header>\n<ax-content>\n <div class=\"ax-flex ax-flex-col ax-py-4 ax-px-6\">\n <ax-label> Select Document Type </ax-label>\n <ax-select-box\n [dataSource]=\"documentTypesSource\"\n textField=\"title\"\n valueField=\"id\"\n (onValueChanged)=\"handleChangeDocumentType($event)\"\n >\n </ax-select-box>\n @if (documentTypeSelected().length > 0) {\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"handleContextChanged($event)\">\n <ax-form>\n @for(doc of documentTypeSelected()[0].meta; track doc.name) {\n <ax-form-field>\n <ax-label>{{ doc.title }}</ax-label>\n <ng-container axp-widget-renderer [node]=\"getNode(doc)\" [mode]=\"'edit'\"></ng-container>\n </ax-form-field>\n }\n <ng-container axp-widget-renderer [node]=\"uploadNode()\" mode=\"edit\"></ng-container>\n </ax-form>\n </axp-widgets-container>\n }\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button text=\"Cancel\" (onClick)=\"handleCancel()\"> </ax-button>\n <ax-button text=\"Next\" look=\"solid\" color=\"primary\" (onClick)=\"handlesubmit()\"> </ax-button>\n </ax-suffix>\n</ax-footer>\n" }]
|
4762
|
-
}] });
|
4763
|
-
|
4764
4673
|
class AXMDocumentTypeChooseFileComponent extends AXBasePageComponent {
|
4765
4674
|
constructor() {
|
4766
4675
|
super(...arguments);
|
@@ -4768,7 +4677,7 @@ class AXMDocumentTypeChooseFileComponent extends AXBasePageComponent {
|
|
4768
4677
|
this.uploadNode = signal({
|
4769
4678
|
name: 'uploads',
|
4770
4679
|
path: 'uploads',
|
4771
|
-
type: 'file',
|
4680
|
+
type: 'file-uploader',
|
4772
4681
|
options: {
|
4773
4682
|
accept: '.pdf',
|
4774
4683
|
multiple: false,
|
@@ -4811,7 +4720,7 @@ class AXMDocumentTypeChooseFileComponent extends AXBasePageComponent {
|
|
4811
4720
|
return get(meta, '__node__');
|
4812
4721
|
}
|
4813
4722
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentTypeChooseFileComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
4814
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentTypeChooseFileComponent, isStandalone: true, selector: "axm-choose-document-type", usesInheritance: true, ngImport: i0, template: "<ax-content>\n <div class=\"ax-flex ax-flex-col ax-py-4 ax-px-6\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"handleContextChanged($event)\">\n <ax-form>\n @for(doc of documentType.meta; track doc.name) {\n <ax-form-field>\n <ax-label>{{ doc.title }}</ax-label>\n <ng-container axp-widget-renderer [node]=\"getNode(doc)\" [mode]=\"'edit'\"></ng-container>\n </ax-form-field>\n }\n <ng-container axp-widget-renderer [node]=\"uploadNode()\" mode=\"edit\"></ng-container>\n </ax-form>\n </axp-widgets-container>\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button text=\"Cancel\" (onClick)=\"handleCancel()\"> </ax-button>\n <ax-button text=\"Submit\" look=\"solid\" color=\"primary\" (onClick)=\"handlesubmit()\"> </ax-button>\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$
|
4723
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentTypeChooseFileComponent, isStandalone: true, selector: "axm-choose-document-type", usesInheritance: true, ngImport: i0, template: "<ax-content>\n <div class=\"ax-flex ax-flex-col ax-py-4 ax-px-6\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"handleContextChanged($event)\">\n <ax-form>\n @for(doc of documentType.meta; track doc.name) {\n <ax-form-field>\n <ax-label>{{ doc.title }}</ax-label>\n <ng-container axp-widget-renderer [node]=\"getNode(doc)\" [mode]=\"'edit'\"></ng-container>\n </ax-form-field>\n }\n <ng-container axp-widget-renderer [node]=\"uploadNode()\" mode=\"edit\"></ng-container>\n </ax-form>\n </axp-widgets-container>\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button text=\"Cancel\" (onClick)=\"handleCancel()\"> </ax-button>\n <ax-button text=\"Submit\" look=\"solid\" color=\"primary\" (onClick)=\"handlesubmit()\"> </ax-button>\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i3.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i6.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
4815
4724
|
}
|
4816
4725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentTypeChooseFileComponent, decorators: [{
|
4817
4726
|
type: Component,
|
@@ -4839,7 +4748,7 @@ class AXMFileViewerPopupComponent extends AXBasePageComponent {
|
|
4839
4748
|
this.close();
|
4840
4749
|
}
|
4841
4750
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMFileViewerPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
4842
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.10", type: AXMFileViewerPopupComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "mediaViewer", first: true, predicate: AXMediaViewerContainerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ax-content>\n <ax-media-viewer-container [thumbnail]=\"true\" #c [dataArray]=\"nodes\">\n <ax-header>\n <ax-prefix>\n <ax-file-info></ax-file-info>\n </ax-prefix>\n <ax-suffix>\n <ax-fullscreen-button></ax-fullscreen-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"c.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"c.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button [text]=\"'close'\" (click)=\"onClose()\" />\n </ax-suffix>\n</ax-footer>\n", styles: ["ax-media-viewer-container{--ax-sys-border-radius:0 }\n"], dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type:
|
4751
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.10", type: AXMFileViewerPopupComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "mediaViewer", first: true, predicate: AXMediaViewerContainerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ax-content>\n <ax-media-viewer-container [thumbnail]=\"true\" #c [dataArray]=\"nodes\">\n <ax-header>\n <ax-prefix>\n <ax-file-info></ax-file-info>\n </ax-prefix>\n <ax-suffix>\n <ax-fullscreen-button></ax-fullscreen-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"c.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"c.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button [text]=\"'close'\" (click)=\"onClose()\" />\n </ax-suffix>\n</ax-footer>\n", styles: ["ax-media-viewer-container{--ax-sys-border-radius:0 }\n"], dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", 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: "component", type: i3$1.AXDecoratorFullScreenButtonComponent, selector: "ax-fullscreen-button" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXMediaViewerModule }, { kind: "component", type: i3$3.AXMediaViewerContainerComponent, selector: "ax-media-viewer-container", inputs: ["dataArray", "thumbnail"] }, { kind: "component", type: i3$3.AXFileInfoComponent, selector: "ax-file-info" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
4843
4752
|
}
|
4844
4753
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMFileViewerPopupComponent, decorators: [{
|
4845
4754
|
type: Component,
|
@@ -4857,7 +4766,7 @@ class AXMFolderPathBreadcrumbsComponent {
|
|
4857
4766
|
this.layout = inject(AXPLayoutThemeService);
|
4858
4767
|
}
|
4859
4768
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMFolderPathBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
4860
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMFolderPathBreadcrumbsComponent, isStandalone: true, selector: "axm-folder-path-breadcrumbs", ngImport: i0, template: "<!-- Breadcrumbs Section -->\n<div class=\"__breadcrumb ax-xs\">\n <!-- Desktop Breadcrumb -->\n @for (item of vm.currentPath(); track item.id; let i = $index;let last = $last) {\n <!-- Navigation Button -->\n <ax-button look=\"blank\" (onClick)=\"vm.navigateToFolder(item.id)\" [text]=\"item.name\" [disabled]=\"last\">\n @if(i === 0) {\n <ax-icon icon=\"fa-light fa-cloud\"></ax-icon>\n }@else {\n <ax-icon icon=\"fa-light fa-folder-closed\"></ax-icon>\n }\n </ax-button>\n <!-- Separator -->\n @if(!last) {\n <i class=\"far fa-chevron-right rtl:ax-rotate-180 fa-fw fa-xs ax-me-2\"></i>\n }\n <!-- End Navigation Button -->\n }\n</div>\n", styles: [":host{display:flex;width:100%;align-items:center}:host .__nav{display:flex;flex-direction:row;align-items:center;gap:.25rem;border-inline-end-width:1px;padding-inline-start:.25rem;padding-inline-end:.5rem}:host .__breadcrumb{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding-inline-start:.5rem;padding-inline-end:.25rem}:host .__breadcrumb .ax-state-disabled button,:host .__breadcrumb .ax-state-loading button{cursor:default!important}\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$
|
4769
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMFolderPathBreadcrumbsComponent, isStandalone: true, selector: "axm-folder-path-breadcrumbs", ngImport: i0, template: "<!-- Breadcrumbs Section -->\n<div class=\"__breadcrumb ax-xs\">\n <!-- Desktop Breadcrumb -->\n @for (item of vm.currentPath(); track item.id; let i = $index;let last = $last) {\n <!-- Navigation Button -->\n <ax-button look=\"blank\" (onClick)=\"vm.navigateToFolder(item.id)\" [text]=\"item.name\" [disabled]=\"last\">\n @if(i === 0) {\n <ax-icon icon=\"fa-light fa-cloud\"></ax-icon>\n }@else {\n <ax-icon icon=\"fa-light fa-folder-closed\"></ax-icon>\n }\n </ax-button>\n <!-- Separator -->\n @if(!last) {\n <i class=\"far fa-chevron-right rtl:ax-rotate-180 fa-fw fa-xs ax-me-2\"></i>\n }\n <!-- End Navigation Button -->\n }\n</div>\n", styles: [":host{display:flex;width:100%;align-items:center}:host .__nav{display:flex;flex-direction:row;align-items:center;gap:.25rem;border-inline-end-width:1px;padding-inline-start:.25rem;padding-inline-end:.5rem}:host .__breadcrumb{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding-inline-start:.5rem;padding-inline-end:.25rem}:host .__breadcrumb .ax-state-disabled button,:host .__breadcrumb .ax-state-loading button{cursor:default!important}\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }] }); }
|
4861
4770
|
}
|
4862
4771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMFolderPathBreadcrumbsComponent, decorators: [{
|
4863
4772
|
type: Component,
|
@@ -4869,7 +4778,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
4869
4778
|
|
4870
4779
|
var index = /*#__PURE__*/Object.freeze({
|
4871
4780
|
__proto__: null,
|
4872
|
-
AXMChooseDocumentTypeComponent: AXMChooseDocumentTypeComponent,
|
4873
4781
|
AXMDocumentTypeChooseFileComponent: AXMDocumentTypeChooseFileComponent,
|
4874
4782
|
AXMFileViewerPopupComponent: AXMFileViewerPopupComponent,
|
4875
4783
|
AXMFolderPathBreadcrumbsComponent: AXMFolderPathBreadcrumbsComponent
|
@@ -4880,7 +4788,7 @@ class AXMDocumentExplorerDetailPanelComponent {
|
|
4880
4788
|
this.vm = inject(AXPDocumentExplorerViewModel);
|
4881
4789
|
}
|
4882
4790
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentExplorerDetailPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
4883
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentExplorerDetailPanelComponent, isStandalone: true, selector: "axm-document-explorer-detail-panel", ngImport: i0, template: "<!-- Multiple Selected -->\n@if(vm.hasMultipleSelectedItems()) {\n<div class=\"__header\" *translate=\"let t\">\n <div class=\"__title\">\n <i class=\"fa-fw fa-lg fa-solid\"></i>\n <span> {{ vm.selectedCount() }} {{ t('itemsSelected', { scope: 'common' }) | async }}</span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n</div>\n<div class=\"__content\"></div>\n}\n<!-- Single Selected -->\n@else {\n<!-- Info -->\n@let nodeInfo = vm.getNodeInfo((vm.selectedNode() ?? vm.currentFolder())!);\n<div class=\"__header\">\n <div class=\"__title\">\n <i class=\"fa-fw fa-lg {{ nodeInfo.icon }} fa-solid\"></i>\n <span>{{ nodeInfo.name }}</span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n</div>\n<div class=\"__content\">\n @for(section of nodeInfo.sections; track section.title) {\n <div class=\"__section\">\n <div class=\"__title\">\n <span>{{ section.title }}</span>\n </div>\n <div class=\"__content\">\n @for(detail of section.details; track detail.title) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ detail.title }}</span>\n </div>\n <div class=\"__content\">\n @if(detail.format) {\n <span>{{ detail.content | format : detail.format | async }}</span>\n } @else {\n <span>{{ detail.content ?? '---' }}</span>\n }\n </div>\n </div>\n }\n </div>\n </div>\n }\n</div>\n}\n", styles: ["axm-document-explorer-detail-panel{display:flex;flex-direction:column;border-radius:.5rem;border-width:1px;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}@media (min-width: 1024px){axm-document-explorer-detail-panel{min-width:20rem}}axm-document-explorer-detail-panel>.__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom-width:1px;padding:1rem}axm-document-explorer-detail-panel>.__header>.__title{display:flex;width:90%;flex-direction:row;align-items:center;gap:.5rem}axm-document-explorer-detail-panel>.__header>.__title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;font-weight:600;line-height:1.625}axm-document-explorer-detail-panel>.__content{display:flex;flex-direction:column}axm-document-explorer-detail-panel>.__content>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}axm-document-explorer-detail-panel>.__content>.__section{display:flex;flex-direction:column;padding:1rem}axm-document-explorer-detail-panel>.__content>.__section>.__title{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;font-weight:700}axm-document-explorer-detail-panel>.__content>.__section>.__content{display:flex;flex-direction:column;gap:1rem}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row{display:flex;flex-direction:column;gap:.25rem}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row>.__title{display:flex;font-size:.875rem;line-height:1.25rem;font-weight:600;opacity:.9}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row>.__content{display:flex;flex-direction:row;align-items:center;gap:.5rem}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row>.__content span{opacity:.7}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type:
|
4791
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentExplorerDetailPanelComponent, isStandalone: true, selector: "axm-document-explorer-detail-panel", ngImport: i0, template: "<!-- Multiple Selected -->\n@if(vm.hasMultipleSelectedItems()) {\n<div class=\"__header\" *translate=\"let t\">\n <div class=\"__title\">\n <i class=\"fa-fw fa-lg fa-solid\"></i>\n <span> {{ vm.selectedCount() }} {{ t('itemsSelected', { scope: 'common' }) | async }}</span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n</div>\n<div class=\"__content\"></div>\n}\n<!-- Single Selected -->\n@else {\n<!-- Info -->\n@let nodeInfo = vm.getNodeInfo((vm.selectedNode() ?? vm.currentFolder())!);\n<div class=\"__header\">\n <div class=\"__title\">\n <i class=\"fa-fw fa-lg {{ nodeInfo.icon }} fa-solid\"></i>\n <span>{{ nodeInfo.name }}</span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n</div>\n<div class=\"__content\">\n @for(section of nodeInfo.sections; track section.title) {\n <div class=\"__section\">\n <div class=\"__title\">\n <span>{{ section.title }}</span>\n </div>\n <div class=\"__content\">\n @for(detail of section.details; track detail.title) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ detail.title }}</span>\n </div>\n <div class=\"__content\">\n @if(detail.format) {\n <span>{{ detail.content | format : detail.format | async }}</span>\n } @else {\n <span>{{ detail.content ?? '---' }}</span>\n }\n </div>\n </div>\n }\n </div>\n </div>\n }\n</div>\n}\n", styles: ["axm-document-explorer-detail-panel{display:flex;flex-direction:column;border-radius:.5rem;border-width:1px;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}@media (min-width: 1024px){axm-document-explorer-detail-panel{min-width:20rem}}axm-document-explorer-detail-panel>.__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom-width:1px;padding:1rem}axm-document-explorer-detail-panel>.__header>.__title{display:flex;width:90%;flex-direction:row;align-items:center;gap:.5rem}axm-document-explorer-detail-panel>.__header>.__title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;font-weight:600;line-height:1.625}axm-document-explorer-detail-panel>.__content{display:flex;flex-direction:column}axm-document-explorer-detail-panel>.__content>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}axm-document-explorer-detail-panel>.__content>.__section{display:flex;flex-direction:column;padding:1rem}axm-document-explorer-detail-panel>.__content>.__section>.__title{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;font-weight:700}axm-document-explorer-detail-panel>.__content>.__section>.__content{display:flex;flex-direction:column;gap:1rem}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row{display:flex;flex-direction:column;gap:.25rem}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row>.__title{display:flex;font-size:.875rem;line-height:1.25rem;font-weight:600;opacity:.9}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row>.__content{display:flex;flex-direction:row;align-items:center;gap:.5rem}axm-document-explorer-detail-panel>.__content>.__section>.__content>.__row>.__content span{opacity:.7}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "pipe", type: i2$2.AXFormatPipe, name: "format" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i4$1.AXTranslatorDirective, selector: "[translate]" }], encapsulation: i0.ViewEncapsulation.None }); }
|
4884
4792
|
}
|
4885
4793
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentExplorerDetailPanelComponent, decorators: [{
|
4886
4794
|
type: Component,
|
@@ -5137,7 +5045,7 @@ class AXMDocumentDriveComponent extends AXPPageLayoutBaseComponent {
|
|
5137
5045
|
},
|
5138
5046
|
], viewQueries: [{ propertyName: "documentExplorer", first: true, predicate: AXMDocumentExplorerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- Main Layout -->\n<axp-page-layout *translate=\"let t\">\n <axp-page-toolbar>\n <!-- Left Side Toolbar -->\n <axp-layout-prefix>\n @if(vm.hasMultipleSelectedItems() ) {\n <div class=\"ax-flex ax-gap-3 ax-items-center ax-h-10\">\n <span class=\"ax-text-xl ax-font-bold\">\n {{ vm.selectedCount() }} {{ t('itemsSelected', { scope: 'common' }) | async }}\n </span>\n <span (click)=\"vm.deselectAll()\" class=\"ax-text-sm ax-text-secondary ax-underline ax-cursor-pointer\">{{\n t('unselect', { scope: 'common' }) | async\n }}</span>\n </div>\n }\n <!---------->\n @else {\n <!-- Filter Dropdown -->\n <ax-button [text]=\"t(getFilterText(), { scope: rootConfig.config.i18n }) | async\">\n <ax-prefix>\n <ax-icon [icon]=\"getFilterIcon()\"></ax-icon>\n </ax-prefix>\n\n <ax-dropdown-panel>\n <ax-button-item-list class=\"ax-p-2\">\n @for(item of filterItems(); track item.key) {\n <ax-button-item\n (onClick)=\"setFilter(item.key)\"\n [text]=\"(t(item.textKey, { scope: rootConfig.config.i18n }) | async)!\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"item.icon\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n <!-- Search Box -->\n <ax-search-box\n (onValueChanged)=\"handleSearchChange($event)\"\n class=\"ax-w-72 ax-hidden md:ax-flex\"\n [placeholder]=\"t('actions.search', { scope: rootConfig.config.i18n }) | async\"\n ><ax-clear-button></ax-clear-button\n ></ax-search-box>\n }\n </axp-layout-prefix>\n\n <!-- Right Side Toolbar -->\n <axp-layout-suffix>\n <!-- Sort Dropdown -->\n <ax-button>\n <ax-icon\n [icon]=\"'fa-light fa-arrow-' + (vm.sortDirection() === 'asc' ? 'up' : 'down') + '-wide-short'\"\n ></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n <!-- Sort By Options -->\n @for(item of sortItems(); track item.key) {\n <ax-button-item\n [text]=\"(t(item.textKey, { scope: rootConfig.config.i18n }) | async)!\"\n (onClick)=\"vm.setSortField(item.key)\"\n [selected]=\"vm.sortField() === item.key\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"item.icon\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n <ax-divider></ax-divider>\n <!-- Sort Direction Options -->\n <ax-button-item\n [text]=\"(t('actions.sort-ascending', { scope: rootConfig.config.i18n }) | async)!\"\n [selected]=\"vm.sortDirection() === 'asc'\"\n (onClick)=\"vm.setSortDirection('asc')\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-arrow-up-wide-short\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n <ax-button-item\n [text]=\"(t('actions.sort-descending', { scope: rootConfig.config.i18n }) | async)!\"\n [selected]=\"vm.sortDirection() === 'desc'\"\n (onClick)=\"vm.setSortDirection('desc')\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-arrow-down-wide-short\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n\n <!-- View Mode Toggle -->\n <ax-button>\n <ax-icon icon=\"fa-light {{ selectedViewMode().icon }}\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(item of viewsItems(); track item.key) {\n <!-- view mode items -->\n <ax-button-item\n [text]=\"(t('view-modes.' + item.key, { scope: rootConfig.config.i18n }) | async)!\"\n [selected]=\"vm.isViewMode(item.key)\"\n (onClick)=\"vm.setViewMode(item.key)\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light {{ item.icon }}\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n @if(item.break) {\n <ax-divider></ax-divider>\n }\n <!-- end of view mode items -->\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n\n @if(layoutService.isLarge()) {\n <!-- Detail Panel Toggle -->\n <ax-button (onClick)=\"vm.toggleDetailPanel()\">\n <ax-icon icon=\"{{ vm.isDetailPanelOpen() ? 'fa-solid fa-square-info' : 'fa-light fa-square-info' }}\"></ax-icon>\n </ax-button>\n }\n </axp-layout-suffix>\n </axp-page-toolbar>\n\n <!-- Content Section -->\n <axp-page-content class=\"ax-overflow-auto ax-flex ax-flex-row ax-gap-4\">\n <axm-document-explorer [selectionMode]=\"selectionMode()\"></axm-document-explorer>\n @if (vm.isDetailPanelOpen() && layoutService.isLarge()) {\n <axm-document-explorer-detail-panel class=\"ax-sticky ax-top-0 ax-z-50\"></axm-document-explorer-detail-panel>\n }\n </axp-page-content>\n\n <!-- Footer Section -->\n @if(!layoutService.isSmall()) {\n <axp-page-footer>\n <axp-layout-prefix>\n <axm-folder-path-breadcrumbs></axm-folder-path-breadcrumbs>\n </axp-layout-prefix>\n </axp-page-footer>\n }\n</axp-page-layout>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
|
5139
5047
|
//
|
5140
|
-
AXMenuModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$
|
5048
|
+
AXMenuModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i2$1.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2$1.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXButtonGroupModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i3$4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i4$1.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: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i6$1.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXFileModule }, { kind: "ngmodule", type: AXDateTimeModule }, { kind: "component", type:
|
5141
5049
|
//
|
5142
5050
|
AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type:
|
5143
5051
|
//
|
@@ -5386,7 +5294,7 @@ class AXMDocumentAttachmentWidgetEditComponent extends AXPValueWidgetComponent {
|
|
5386
5294
|
}
|
5387
5295
|
}
|
5388
5296
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentAttachmentWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
5389
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentAttachmentWidgetEditComponent, isStandalone: true, selector: "axm-document-attachment-edit-widget", providers: [AXPDocumentExplorerViewModel], viewQueries: [{ propertyName: "documentExplorer", first: true, predicate: AXMDocumentExplorerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-flex-col ax-gap-3 ax-rounded-md ax-border\" *translate=\"let t\">\n <!-- Header Section -->\n <div class=\"ax-flex ax-flex-row ax-justify-between ax-items-center ax-border-b ax-px-4 ax-py-2\">\n <!-- Selection Info (side left) -->\n <div>\n @if(vm.hasMultipleSelectedItems()) {\n <div class=\"ax-flex ax-gap-3 ax-items-center\">\n <span class=\"ax-text-sm ax-font-bold\">\n {{ vm.selectedCount() }} {{ t('itemsSelected', { scope: 'common' }) | async }}\n </span>\n <span (click)=\"vm.deselectAll()\" class=\"ax-text-xs ax-text-secondary ax-underline ax-cursor-pointer\">\n {{ t('unselect', { scope: 'common' }) | async }}\n </span>\n </div>\n }\n </div>\n <!-- Actions (side right) -->\n <div class=\"ax-flex ax-justify-end\">\n @if(!vm.hasMultipleSelectedItems()) {\n <!-- Add Item Button -->\n <ax-button class=\"ax-sm\" [text]=\"t('actions.add-item', { scope: rootConfig.config.i18n }) | async\" [color]=\"'primary'\">\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-plus\"></ax-icon>\n </ax-prefix>\n <ax-dropdown-panel>\n <!-- Upload Dropdown -->\n <ax-button-item-list>\n @if (documentTypes().length === 0) {\n <ax-button-item\n (onClick)=\"uploadFromComputer()\"\n [text]=\"(t('actions.upload-from-device', { scope: rootConfig.config.i18n }) | async)!\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-file-arrow-up\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n } @else {\n @for (docType of documentTypes(); track docType.id) {\n <ax-button-item\n (onClick)=\"uploadFromComputer(docType)\"\n [text]=\"docType.title\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-file-arrow-up\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n }\n\n <ax-divider></ax-divider>\n\n <ax-button-item\n (onClick)=\"chooseFromDrive(scopes.User)\"\n [text]=\"(t('actions.choose-from-drive', { scope: rootConfig.config.i18n }) | async)!\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-folder-open\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n <ax-button-item\n (onClick)=\"chooseFromDrive(scopes.Tenant)\"\n [text]=\"(t('actions.choose-from-organization', { scope: rootConfig.config.i18n }) | async)!\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-building\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n\n @for (action of actions(); track action.name) {\n <ax-button-item (onClick)=\"handleActionCallback(action)\" [text]=\"action.title\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n } @else {\n <!-- Delete Button -->\n <ax-button class=\"ax-sm\" (onClick)=\"vm.deleteNodes(vm.selectedNodes())\" [text]=\"'delete'\" [color]=\"'danger'\"></ax-button>\n }\n </div>\n </div>\n \n <axm-document-explorer\n [showContextMenu]=\"false\"\n [viewMode]=\"'attachment'\"\n [selectionMode]=\"'multiple'\"\n ></axm-document-explorer>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "component", type: AXMDocumentExplorerComponent, selector: "axm-document-explorer", inputs: ["browseMode", "viewMode", "selectionMode", "showContextMenu"] }, { kind: "component", type: 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: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i3$
|
5297
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMDocumentAttachmentWidgetEditComponent, isStandalone: true, selector: "axm-document-attachment-edit-widget", providers: [AXPDocumentExplorerViewModel], viewQueries: [{ propertyName: "documentExplorer", first: true, predicate: AXMDocumentExplorerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-flex-col ax-gap-3 ax-rounded-md ax-border\" *translate=\"let t\">\n <!-- Header Section -->\n <div class=\"ax-flex ax-flex-row ax-justify-between ax-items-center ax-border-b ax-px-4 ax-py-2\">\n <!-- Selection Info (side left) -->\n <div>\n @if(vm.hasMultipleSelectedItems()) {\n <div class=\"ax-flex ax-gap-3 ax-items-center\">\n <span class=\"ax-text-sm ax-font-bold\">\n {{ vm.selectedCount() }} {{ t('itemsSelected', { scope: 'common' }) | async }}\n </span>\n <span (click)=\"vm.deselectAll()\" class=\"ax-text-xs ax-text-secondary ax-underline ax-cursor-pointer\">\n {{ t('unselect', { scope: 'common' }) | async }}\n </span>\n </div>\n }\n </div>\n <!-- Actions (side right) -->\n <div class=\"ax-flex ax-justify-end\">\n @if(!vm.hasMultipleSelectedItems()) {\n <!-- Add Item Button -->\n <ax-button class=\"ax-sm\" [text]=\"t('actions.add-item', { scope: rootConfig.config.i18n }) | async\" [color]=\"'primary'\">\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-plus\"></ax-icon>\n </ax-prefix>\n <ax-dropdown-panel>\n <!-- Upload Dropdown -->\n <ax-button-item-list>\n @if (documentTypes().length === 0) {\n <ax-button-item\n (onClick)=\"uploadFromComputer()\"\n [text]=\"(t('actions.upload-from-device', { scope: rootConfig.config.i18n }) | async)!\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-file-arrow-up\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n } @else {\n @for (docType of documentTypes(); track docType.id) {\n <ax-button-item\n (onClick)=\"uploadFromComputer(docType)\"\n [text]=\"docType.title\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-file-arrow-up\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n }\n\n <ax-divider></ax-divider>\n\n <ax-button-item\n (onClick)=\"chooseFromDrive(scopes.User)\"\n [text]=\"(t('actions.choose-from-drive', { scope: rootConfig.config.i18n }) | async)!\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-folder-open\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n <ax-button-item\n (onClick)=\"chooseFromDrive(scopes.Tenant)\"\n [text]=\"(t('actions.choose-from-organization', { scope: rootConfig.config.i18n }) | async)!\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-building\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n\n @for (action of actions(); track action.name) {\n <ax-button-item (onClick)=\"handleActionCallback(action)\" [text]=\"action.title\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n } @else {\n <!-- Delete Button -->\n <ax-button class=\"ax-sm\" (onClick)=\"vm.deleteNodes(vm.selectedNodes())\" [text]=\"'delete'\" [color]=\"'danger'\"></ax-button>\n }\n </div>\n </div>\n \n <axm-document-explorer\n [showContextMenu]=\"false\"\n [viewMode]=\"'attachment'\"\n [selectionMode]=\"'multiple'\"\n ></axm-document-explorer>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "component", type: AXMDocumentExplorerComponent, selector: "axm-document-explorer", inputs: ["browseMode", "viewMode", "selectionMode", "showContextMenu"] }, { kind: "component", type: 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: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i3$4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", 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: AXTranslationModule }, { kind: "directive", type: i4$1.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2$1.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXButtonGroupModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
5390
5298
|
}
|
5391
5299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentAttachmentWidgetEditComponent, decorators: [{
|
5392
5300
|
type: Component,
|
@@ -5487,7 +5395,7 @@ class AXMChooseDocumentTypeWorkflowAction extends AXPWorkflowAction {
|
|
5487
5395
|
this.popupService = inject(AXPopupService);
|
5488
5396
|
}
|
5489
5397
|
async execute(context) {
|
5490
|
-
const comp = (await Promise.resolve().then(function () { return index; })).
|
5398
|
+
const comp = (await Promise.resolve().then(function () { return index; })).AXMDocumentTypeChooseFileComponent;
|
5491
5399
|
const result = await this.popupService.open(comp);
|
5492
5400
|
if (result.data != null && result.data.documentTypeId != null) {
|
5493
5401
|
context.setVariable('documentTypeId', result.data.documentTypeId);
|
@@ -5566,6 +5474,98 @@ class AXMTaskBadgeProviderSample2 {
|
|
5566
5474
|
}
|
5567
5475
|
}
|
5568
5476
|
|
5477
|
+
class AXPFileUploaderWidgetExtensionComponent {
|
5478
|
+
constructor() {
|
5479
|
+
this.driveService = inject(AXMDocumentManagerService);
|
5480
|
+
this.fileStorageService = inject(AXPFileStorageService);
|
5481
|
+
this.scopes = AXPPlatformScope;
|
5482
|
+
}
|
5483
|
+
ngOnDestroy() {
|
5484
|
+
}
|
5485
|
+
async chooseFromDrive(scope) {
|
5486
|
+
const result = await this.driveService.showChooseFileDialog(scope);
|
5487
|
+
const files = await Promise.all(result.map(async (item) => (await this.fileStorageService.getInfo(item.fileId)).binary));
|
5488
|
+
console.log(files);
|
5489
|
+
this.host.setValue([...this.host.getValue(), ...files]);
|
5490
|
+
}
|
5491
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPFileUploaderWidgetExtensionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
5492
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: AXPFileUploaderWidgetExtensionComponent, isStandalone: true, selector: "axp-file-uploader-widget-extension", providers: [], ngImport: i0, template: `
|
5493
|
+
<ax-divider></ax-divider>
|
5494
|
+
<ax-button-item
|
5495
|
+
[text]="('@document-management:actions.choose-from-drive' | translate | async)!"
|
5496
|
+
(onClick)="chooseFromDrive(scopes.Tenant)"
|
5497
|
+
>
|
5498
|
+
<ax-prefix>
|
5499
|
+
<ax-icon icon="fa-light fa-file-arrow-up"></ax-icon>
|
5500
|
+
</ax-prefix>
|
5501
|
+
</ax-button-item>
|
5502
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type:
|
5503
|
+
// Angular
|
5504
|
+
CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type:
|
5505
|
+
// ACoreX
|
5506
|
+
AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", 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: AXCheckBoxModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i4$1.AXTranslatorPipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
5507
|
+
}
|
5508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPFileUploaderWidgetExtensionComponent, decorators: [{
|
5509
|
+
type: Component,
|
5510
|
+
args: [{
|
5511
|
+
selector: 'axp-file-uploader-widget-extension',
|
5512
|
+
template: `
|
5513
|
+
<ax-divider></ax-divider>
|
5514
|
+
<ax-button-item
|
5515
|
+
[text]="('@document-management:actions.choose-from-drive' | translate | async)!"
|
5516
|
+
(onClick)="chooseFromDrive(scopes.Tenant)"
|
5517
|
+
>
|
5518
|
+
<ax-prefix>
|
5519
|
+
<ax-icon icon="fa-light fa-file-arrow-up"></ax-icon>
|
5520
|
+
</ax-prefix>
|
5521
|
+
</ax-button-item>
|
5522
|
+
`,
|
5523
|
+
imports: [
|
5524
|
+
// Angular
|
5525
|
+
CommonModule,
|
5526
|
+
// ACoreX
|
5527
|
+
AXFormModule,
|
5528
|
+
AXTextBoxModule,
|
5529
|
+
AXButtonModule,
|
5530
|
+
AXLabelModule,
|
5531
|
+
AXDecoratorModule,
|
5532
|
+
AXCheckBoxModule,
|
5533
|
+
AXTranslationModule,
|
5534
|
+
// Platform
|
5535
|
+
],
|
5536
|
+
encapsulation: ViewEncapsulation.None,
|
5537
|
+
providers: [],
|
5538
|
+
}]
|
5539
|
+
}] });
|
5540
|
+
|
5541
|
+
class AXMDriveChooseModule {
|
5542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDriveChooseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
5543
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: AXMDriveChooseModule, imports: [i1$2.AXPComponentSlotModule] }); }
|
5544
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDriveChooseModule, imports: [AXPComponentSlotModule.forChild({
|
5545
|
+
'file-uploader-widget-actions': [
|
5546
|
+
{
|
5547
|
+
name: 'primary-actions',
|
5548
|
+
component: AXPFileUploaderWidgetExtensionComponent,
|
5549
|
+
},
|
5550
|
+
]
|
5551
|
+
})] }); }
|
5552
|
+
}
|
5553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDriveChooseModule, decorators: [{
|
5554
|
+
type: NgModule,
|
5555
|
+
args: [{
|
5556
|
+
imports: [
|
5557
|
+
AXPComponentSlotModule.forChild({
|
5558
|
+
'file-uploader-widget-actions': [
|
5559
|
+
{
|
5560
|
+
name: 'primary-actions',
|
5561
|
+
component: AXPFileUploaderWidgetExtensionComponent,
|
5562
|
+
},
|
5563
|
+
]
|
5564
|
+
})
|
5565
|
+
]
|
5566
|
+
}]
|
5567
|
+
}] });
|
5568
|
+
|
5569
5569
|
function routesFacory() {
|
5570
5570
|
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
5571
5571
|
const routes = [
|
@@ -5592,11 +5592,13 @@ function routesFacory() {
|
|
5592
5592
|
}
|
5593
5593
|
class AXMDocumentManagementModule {
|
5594
5594
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
5595
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentManagementModule, imports: [
|
5595
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentManagementModule, imports: [AXMDriveChooseModule,
|
5596
|
+
//
|
5597
|
+
AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
|
5596
5598
|
AXMDocumentManagementDocumentTypeMetaValueEntityModule,
|
5597
5599
|
AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
|
5598
5600
|
AXMDocumentManagementDocumentTypeEntityModule,
|
5599
|
-
AXMDocumentManagementDocumentEntityModule, i6.AXPLayoutBuilderModule, AXMFileTypeModule, i3$
|
5601
|
+
AXMDocumentManagementDocumentEntityModule, i6.AXPLayoutBuilderModule, AXMFileTypeModule, i3$3.AXMediaViewerModule, i3$5.AXPWorkflowModule] }); }
|
5600
5602
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMDocumentManagementModule, providers: [
|
5601
5603
|
{
|
5602
5604
|
provide: AXMFolderService,
|
@@ -5626,7 +5628,7 @@ class AXMDocumentManagementModule {
|
|
5626
5628
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
5627
5629
|
useFactory: async () => {
|
5628
5630
|
const injector = inject(Injector);
|
5629
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
5631
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs')).AXMPermissionDefinitionProvider;
|
5630
5632
|
return new provider(injector);
|
5631
5633
|
},
|
5632
5634
|
multi: true,
|
@@ -5646,7 +5648,9 @@ class AXMDocumentManagementModule {
|
|
5646
5648
|
multi: true,
|
5647
5649
|
useFactory: routesFacory,
|
5648
5650
|
},
|
5649
|
-
], imports: [
|
5651
|
+
], imports: [AXMDriveChooseModule,
|
5652
|
+
//
|
5653
|
+
AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
|
5650
5654
|
AXMDocumentManagementDocumentTypeMetaValueEntityModule,
|
5651
5655
|
AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
|
5652
5656
|
AXMDocumentManagementDocumentTypeEntityModule,
|
@@ -5671,6 +5675,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5671
5675
|
type: NgModule,
|
5672
5676
|
args: [{
|
5673
5677
|
imports: [
|
5678
|
+
AXMDriveChooseModule,
|
5679
|
+
//
|
5674
5680
|
AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
|
5675
5681
|
AXMDocumentManagementDocumentTypeMetaValueEntityModule,
|
5676
5682
|
AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
|
@@ -5722,7 +5728,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5722
5728
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
5723
5729
|
useFactory: async () => {
|
5724
5730
|
const injector = inject(Injector);
|
5725
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
5731
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs')).AXMPermissionDefinitionProvider;
|
5726
5732
|
return new provider(injector);
|
5727
5733
|
},
|
5728
5734
|
multi: true,
|
@@ -5751,4 +5757,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5751
5757
|
*/
|
5752
5758
|
|
5753
5759
|
export { AXMPermissionsKeys as A, AXMFolderService as B, AXMFolderServiceImpl as C, AXMEntityProvider as D, AXMMenuProvider as E, AXMSearchCommandProvider as F, AXMSettingProvider as G, RootConfig as R, AXMDocumentManagerService as a, AXMDocumentTypeService as b, AXPDocumentExplorerViewModel as c, AXMDocumentExplorerComponent as d, AXMFolderPathBreadcrumbsComponent as e, AXMDocumentManagementModule as f, documentFactory as g, AXMDocumentManagementDocumentEntityModule as h, AXMDocumentService as i, AXMDocumentServiceImpl as j, documentTypeFactory as k, AXMDocumentManagementDocumentTypeEntityModule as l, AXMDocumentTypeServiceImpl as m, documentTypeMetaDefinitionfactory as n, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule as o, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService as p, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl as q, documentTypeMetaValueFactory as r, AXMDocumentManagementDocumentTypeMetaValueEntityModule as s, AXMDocumentManagementDocumentTypeMetaValueEntityService as t, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl as u, documentTypeStatusDefinitionFactory as v, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule as w, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService as x, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl as y, folderFactory as z };
|
5754
|
-
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-
|
5760
|
+
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs.map
|