@acorex/modules 21.0.0-next.33 → 21.0.0-next.34
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.
|
@@ -7302,7 +7302,6 @@ class AXMDashboardHomeComponent extends AXPPageLayoutBaseComponent {
|
|
|
7302
7302
|
this.router = inject(Router);
|
|
7303
7303
|
this.store = inject(AXMDashboardStore);
|
|
7304
7304
|
this.themeService = inject(AXPLayoutThemeService);
|
|
7305
|
-
this.deviceService = inject(AXPDeviceService);
|
|
7306
7305
|
// Component State
|
|
7307
7306
|
this.context = signal({}, ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
7308
7307
|
this.dashboardsLoaded = signal(false, ...(ngDevMode ? [{ debugName: "dashboardsLoaded" }] : /* istanbul ignore next */ []));
|
|
@@ -7385,21 +7384,10 @@ class AXMDashboardHomeComponent extends AXPPageLayoutBaseComponent {
|
|
|
7385
7384
|
title: await this.translateService.translateAsync('@general:actions.edit.title'),
|
|
7386
7385
|
icon: 'fa-light fa-pen',
|
|
7387
7386
|
color: 'primary',
|
|
7388
|
-
disabled: this.store.dashboards().length < 1,
|
|
7387
|
+
disabled: this.store.isUserAdmin() && this.store.dashboards().length < 1,
|
|
7389
7388
|
command: { name: 'edit' },
|
|
7390
7389
|
},
|
|
7391
7390
|
];
|
|
7392
|
-
if (!this.store.isUserAdmin() && this.deviceService.isDesktopDevice()) {
|
|
7393
|
-
items.push({
|
|
7394
|
-
title: await this.translateService.translateAsync(this.store.isDashboardLocked() ? '@general:actions.unlock.title' : '@general:actions.lock.title', {
|
|
7395
|
-
scope: 'dashboard',
|
|
7396
|
-
}),
|
|
7397
|
-
icon: this.store.isDashboardLocked() ? 'fa-light fa-lock-open' : 'fa-light fa-lock',
|
|
7398
|
-
color: 'secondary',
|
|
7399
|
-
disabled: this.store.dashboards().length < 1,
|
|
7400
|
-
command: { name: 'toggle-lock' },
|
|
7401
|
-
});
|
|
7402
|
-
}
|
|
7403
7391
|
items.push({
|
|
7404
7392
|
title: await this.translateService.translateAsync('@general:actions.delete.title'),
|
|
7405
7393
|
icon: 'fa-light fa-trash-can',
|
|
@@ -7447,7 +7435,7 @@ class AXMDashboardHomeComponent extends AXPPageLayoutBaseComponent {
|
|
|
7447
7435
|
provide: AXPPageLayoutBase,
|
|
7448
7436
|
useExisting: AXMDashboardHomeComponent,
|
|
7449
7437
|
},
|
|
7450
|
-
], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content class=\"ax-relative\">\n <!-- Loading State -->\n @if (store.isLoading()) {\n <div\n class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-w-full ax-absolute ax-z-10 ax-bg-white/80\">\n <ax-loading></ax-loading>\n <p class=\"ax-mt-3 ax-text-gray-600\">{{ '@dashboard:loading' | translate | async }}</p>\n </div>\n }\n <!-- No Dashboards State -->\n @else if (!store.dashboards().length) {\n <axp-state-message
|
|
7438
|
+
], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content class=\"ax-relative\">\n <!-- Loading State -->\n @if (store.isLoading()) {\n <div\n class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-w-full ax-absolute ax-z-10 ax-bg-white/80\"\n >\n <ax-loading></ax-loading>\n <p class=\"ax-mt-3 ax-text-gray-600\">{{ '@dashboard:loading' | translate | async }}</p>\n </div>\n }\n <!-- No Dashboards State -->\n @else if (!store.dashboards().length) {\n <axp-state-message\n icon=\"fa-light fa-shapes\"\n [title]=\"'@dashboard:empty-state.title'\"\n [description]=\"'@dashboard:empty-state.description'\"\n >\n <div slot=\"actions\">\n <button (click)=\"execute({ name: 'new-dashboard' })\" class=\"ax-underline\">\n {{ '@dashboard:add-first-dashboard' | translate | async }}\n </button>\n </div>\n </axp-state-message>\n }\n <!-- No Widgets State -->\n @else if (!store.selectedDashboard()?.widgets?.length) {\n <axp-state-message\n icon=\"fa-light fa-shapes\"\n [title]=\"'@dashboard:no-widgets.title'\"\n [description]=\"'@dashboard:no-widgets.description'\"\n >\n <div slot=\"actions\">\n <button (click)=\"execute({ name: 'new-widget' })\" class=\"ax-underline\">\n {{ '@dashboard:add-widget' | translate | async }}\n </button>\n </div>\n </axp-state-message>\n }\n <!-- Dashboard Grid -->\n @else {\n <axp-widgets-container [context]=\"context()\">\n <ax-grid-layout-container\n class=\"dark:[--ax-comp-grid-layout-stack-item-content-bg-color:var(--ax-sys-color-lighter-surface)] [--ax-comp-grid-layout-stack-item-content-bg-color:var(--ax-sys-color-lightest-surface)]\"\n [options]=\"store.currentLayoutOptions()\"\n (onChange)=\"store.onGridChange($event)\"\n >\n @for (widget of store.currentWidgets(); track widget.config.id) {\n <ax-grid-layout-widget [options]=\"widget.resolvedOptions\">\n @let title = (widget.node?.options?.['title'] ?? widget.config.title) | axpResolveMultiLanguageString |\n translate | async;\n <axm-dashboard-widget-wrapper\n [title]=\"title!\"\n [hasConfiguration]=\"store.canConfigureWidget()(widget)\"\n [isLocked]=\"store.isWidgetLocked()(widget)\"\n (onDelete)=\"confirmWidgetDelete(store.selectedDashboard()?.id!, widget.config.id!)\"\n (onConfiguration)=\"store.handlePopupConfiguration(widget.node!)\"\n (onValueChanged)=\"store.handleValueChanged(widget?.node!, $event)\"\n (onOptionsChanged)=\"store.handleOptionsChanged(widget?.node!, $event)\"\n >\n @if (widget.node) {\n <ng-container axp-widget-renderer [node]=\"widget.node\" [mode]=\"'view'\"></ng-container>\n }\n </axm-dashboard-widget-wrapper>\n </ax-grid-layout-widget>\n }\n </ax-grid-layout-container>\n </axp-widgets-container>\n }\n </axp-page-content>\n</axp-page-layout>\n", styles: ["axm-dashboard-home{background-color:rgb(var(--ax-sys-color-lighter-surface));color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}axm-dashboard-home .placeholder-content{border-radius:.5rem!important;border-width:1px!important;border-style:dashed!important;--tw-border-opacity: 1 !important;border-color:rgba(var(--ax-sys-color-primary-500),var(--tw-border-opacity, 1))!important;background-color:rgba(var(--ax-sys-color-primary-lightest-surface),.5)!important}axm-dashboard-home ax-grid-layout-widget .grid-stack-item-content{border-radius:.375rem!important;border-width:1px!important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1$4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i2$3.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i2$3.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXButtonGroupModule }, { kind: "ngmodule", type: AXGridLayoutBuilderModule }, { kind: "component", type: i3$2.AXGridLayoutContainerComponent, selector: "ax-grid-layout-container", inputs: ["options", "isEmpty"], outputs: ["onAdded", "onRemoved", "onWidgetChange", "onChange", "onRender", "isEmptyChange"] }, { kind: "component", type: i3$2.AXGridLayoutWidgetComponent, selector: "ax-grid-layout-widget", inputs: ["options"] }, { kind: "component", type: 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: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i4.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "component", type: AXMDashboardWidgetWrapperComponent, selector: "axm-dashboard-widget-wrapper", inputs: ["title", "hasConfiguration", "isLocked"], outputs: ["onDelete", "onConfiguration", "onValueChanged", "onOptionsChanged"] }, { kind: "component", type: AXPStateMessageComponent, selector: "axp-state-message", inputs: ["mode", "icon", "title", "description", "variant"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AXPResolveMultiLanguageStringPipe, name: "axpResolveMultiLanguageString" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
7451
7439
|
}
|
|
7452
7440
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMDashboardHomeComponent, decorators: [{
|
|
7453
7441
|
type: Component,
|
|
@@ -7475,7 +7463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
7475
7463
|
provide: AXPPageLayoutBase,
|
|
7476
7464
|
useExisting: AXMDashboardHomeComponent,
|
|
7477
7465
|
},
|
|
7478
|
-
], template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content class=\"ax-relative\">\n <!-- Loading State -->\n @if (store.isLoading()) {\n <div\n class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-w-full ax-absolute ax-z-10 ax-bg-white/80\">\n <ax-loading></ax-loading>\n <p class=\"ax-mt-3 ax-text-gray-600\">{{ '@dashboard:loading' | translate | async }}</p>\n </div>\n }\n <!-- No Dashboards State -->\n @else if (!store.dashboards().length) {\n <axp-state-message
|
|
7466
|
+
], template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content class=\"ax-relative\">\n <!-- Loading State -->\n @if (store.isLoading()) {\n <div\n class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-w-full ax-absolute ax-z-10 ax-bg-white/80\"\n >\n <ax-loading></ax-loading>\n <p class=\"ax-mt-3 ax-text-gray-600\">{{ '@dashboard:loading' | translate | async }}</p>\n </div>\n }\n <!-- No Dashboards State -->\n @else if (!store.dashboards().length) {\n <axp-state-message\n icon=\"fa-light fa-shapes\"\n [title]=\"'@dashboard:empty-state.title'\"\n [description]=\"'@dashboard:empty-state.description'\"\n >\n <div slot=\"actions\">\n <button (click)=\"execute({ name: 'new-dashboard' })\" class=\"ax-underline\">\n {{ '@dashboard:add-first-dashboard' | translate | async }}\n </button>\n </div>\n </axp-state-message>\n }\n <!-- No Widgets State -->\n @else if (!store.selectedDashboard()?.widgets?.length) {\n <axp-state-message\n icon=\"fa-light fa-shapes\"\n [title]=\"'@dashboard:no-widgets.title'\"\n [description]=\"'@dashboard:no-widgets.description'\"\n >\n <div slot=\"actions\">\n <button (click)=\"execute({ name: 'new-widget' })\" class=\"ax-underline\">\n {{ '@dashboard:add-widget' | translate | async }}\n </button>\n </div>\n </axp-state-message>\n }\n <!-- Dashboard Grid -->\n @else {\n <axp-widgets-container [context]=\"context()\">\n <ax-grid-layout-container\n class=\"dark:[--ax-comp-grid-layout-stack-item-content-bg-color:var(--ax-sys-color-lighter-surface)] [--ax-comp-grid-layout-stack-item-content-bg-color:var(--ax-sys-color-lightest-surface)]\"\n [options]=\"store.currentLayoutOptions()\"\n (onChange)=\"store.onGridChange($event)\"\n >\n @for (widget of store.currentWidgets(); track widget.config.id) {\n <ax-grid-layout-widget [options]=\"widget.resolvedOptions\">\n @let title = (widget.node?.options?.['title'] ?? widget.config.title) | axpResolveMultiLanguageString |\n translate | async;\n <axm-dashboard-widget-wrapper\n [title]=\"title!\"\n [hasConfiguration]=\"store.canConfigureWidget()(widget)\"\n [isLocked]=\"store.isWidgetLocked()(widget)\"\n (onDelete)=\"confirmWidgetDelete(store.selectedDashboard()?.id!, widget.config.id!)\"\n (onConfiguration)=\"store.handlePopupConfiguration(widget.node!)\"\n (onValueChanged)=\"store.handleValueChanged(widget?.node!, $event)\"\n (onOptionsChanged)=\"store.handleOptionsChanged(widget?.node!, $event)\"\n >\n @if (widget.node) {\n <ng-container axp-widget-renderer [node]=\"widget.node\" [mode]=\"'view'\"></ng-container>\n }\n </axm-dashboard-widget-wrapper>\n </ax-grid-layout-widget>\n }\n </ax-grid-layout-container>\n </axp-widgets-container>\n }\n </axp-page-content>\n</axp-page-layout>\n", styles: ["axm-dashboard-home{background-color:rgb(var(--ax-sys-color-lighter-surface));color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}axm-dashboard-home .placeholder-content{border-radius:.5rem!important;border-width:1px!important;border-style:dashed!important;--tw-border-opacity: 1 !important;border-color:rgba(var(--ax-sys-color-primary-500),var(--tw-border-opacity, 1))!important;background-color:rgba(var(--ax-sys-color-primary-lightest-surface),.5)!important}axm-dashboard-home ax-grid-layout-widget .grid-stack-item-content{border-radius:.375rem!important;border-width:1px!important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}\n"] }]
|
|
7479
7467
|
}] });
|
|
7480
7468
|
|
|
7481
7469
|
var homeDashboard = /*#__PURE__*/Object.freeze({
|
|
@@ -7498,6 +7486,7 @@ class AXMAddDashboardPopup extends AXBasePageComponent {
|
|
|
7498
7486
|
this.isDisabled = model(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
7499
7487
|
this.isLocked = model(false, ...(ngDevMode ? [{ debugName: "isLocked" }] : /* istanbul ignore next */ []));
|
|
7500
7488
|
this.isAdmin = model(false, ...(ngDevMode ? [{ debugName: "isAdmin" }] : /* istanbul ignore next */ []));
|
|
7489
|
+
this.showAdminFields = model(false, ...(ngDevMode ? [{ debugName: "showAdminFields" }] : /* istanbul ignore next */ []));
|
|
7501
7490
|
this.roles = [];
|
|
7502
7491
|
}
|
|
7503
7492
|
get isValid() {
|
|
@@ -7510,8 +7499,9 @@ class AXMAddDashboardPopup extends AXBasePageComponent {
|
|
|
7510
7499
|
this.isDisabled.set(this.data?.isDeleted || false);
|
|
7511
7500
|
this.isLocked.set(this.data?.locked || false);
|
|
7512
7501
|
this.isAdmin.set(this.data?.isAdmin || false);
|
|
7502
|
+
this.showAdminFields.set(this.isAdmin() && this.data?.scope !== 'U');
|
|
7513
7503
|
// Load roles if admin
|
|
7514
|
-
if (this.
|
|
7504
|
+
if (this.showAdminFields()) {
|
|
7515
7505
|
try {
|
|
7516
7506
|
const result = await this.jobDefinitionService.query({ skip: 0, take: 100 });
|
|
7517
7507
|
if (result.items && result.items.length > 0) {
|
|
@@ -7532,10 +7522,10 @@ class AXMAddDashboardPopup extends AXBasePageComponent {
|
|
|
7532
7522
|
this.close({
|
|
7533
7523
|
title: this.title()?.trim(),
|
|
7534
7524
|
description: this.description()?.trim(),
|
|
7535
|
-
roleIds: this.
|
|
7536
|
-
isDeleted: this.
|
|
7537
|
-
locked: this.
|
|
7538
|
-
scope: this.
|
|
7525
|
+
roleIds: this.showAdminFields() ? this.selectedRoleIds() : undefined,
|
|
7526
|
+
isDeleted: this.showAdminFields() ? this.isDisabled() : undefined,
|
|
7527
|
+
locked: this.showAdminFields() ? this.isLocked() : undefined,
|
|
7528
|
+
scope: this.showAdminFields() ? 'T' : 'U',
|
|
7539
7529
|
createdBy: this.sessionService.user?.id,
|
|
7540
7530
|
createdAt: new Date(),
|
|
7541
7531
|
updatedBy: this.sessionService.user?.id,
|
|
@@ -7544,19 +7534,28 @@ class AXMAddDashboardPopup extends AXBasePageComponent {
|
|
|
7544
7534
|
});
|
|
7545
7535
|
}
|
|
7546
7536
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAddDashboardPopup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7547
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMAddDashboardPopup, isStandalone: true, selector: "ng-component", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, selectedRoleIds: { classPropertyName: "selectedRoleIds", publicName: "selectedRoleIds", isSignal: true, isRequired: false, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: false, transformFunction: null }, isLocked: { classPropertyName: "isLocked", publicName: "isLocked", isSignal: true, isRequired: false, transformFunction: null }, isAdmin: { classPropertyName: "isAdmin", publicName: "isAdmin", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { title: "titleChange", description: "descriptionChange", selectedRoleIds: "selectedRoleIdsChange", isDisabled: "isDisabledChange", isLocked: "isLockedChange", isAdmin: "isAdminChange" }, usesInheritance: true, ngImport: i0, template: `
|
|
7537
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMAddDashboardPopup, isStandalone: true, selector: "ng-component", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, selectedRoleIds: { classPropertyName: "selectedRoleIds", publicName: "selectedRoleIds", isSignal: true, isRequired: false, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: false, transformFunction: null }, isLocked: { classPropertyName: "isLocked", publicName: "isLocked", isSignal: true, isRequired: false, transformFunction: null }, isAdmin: { classPropertyName: "isAdmin", publicName: "isAdmin", isSignal: true, isRequired: false, transformFunction: null }, showAdminFields: { classPropertyName: "showAdminFields", publicName: "showAdminFields", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { title: "titleChange", description: "descriptionChange", selectedRoleIds: "selectedRoleIdsChange", isDisabled: "isDisabledChange", isLocked: "isLockedChange", isAdmin: "isAdminChange", showAdminFields: "showAdminFieldsChange" }, usesInheritance: true, ngImport: i0, template: `
|
|
7548
7538
|
<div class="ax-card-body ax-p-4">
|
|
7549
7539
|
<div class="ax-flex ax-flex-col ax-gap-2 ax-pb-4">
|
|
7550
7540
|
<p class="ax-font-semibold">{{ '@general:terms.common.title' | translate | async }}</p>
|
|
7551
|
-
<ax-text-box
|
|
7541
|
+
<ax-text-box
|
|
7542
|
+
[(ngModel)]="title"
|
|
7543
|
+
name="title"
|
|
7544
|
+
placeholder="{{ '@general:terms.common.title' | translate | async }}"
|
|
7545
|
+
>
|
|
7546
|
+
</ax-text-box>
|
|
7552
7547
|
</div>
|
|
7553
7548
|
<div class="ax-flex ax-flex-col ax-gap-2">
|
|
7554
7549
|
<p class="ax-font-semibold">{{ '@general:terms.common.description' | translate | async }}</p>
|
|
7555
|
-
<ax-text-box
|
|
7550
|
+
<ax-text-box
|
|
7551
|
+
[(ngModel)]="description"
|
|
7552
|
+
name="description"
|
|
7553
|
+
placeholder="{{ '@general:terms.common.description' | translate | async }}"
|
|
7554
|
+
>
|
|
7556
7555
|
</ax-text-box>
|
|
7557
7556
|
</div>
|
|
7558
7557
|
|
|
7559
|
-
@if (
|
|
7558
|
+
@if (showAdminFields()) {
|
|
7560
7559
|
<div class="ax-flex ax-flex-col ax-gap-2 ax-mt-4">
|
|
7561
7560
|
<p class="ax-font-semibold">{{ 'roles' | translate: { scope } | async }}</p>
|
|
7562
7561
|
<ax-select-box
|
|
@@ -7588,7 +7587,12 @@ class AXMAddDashboardPopup extends AXBasePageComponent {
|
|
|
7588
7587
|
<ax-footer>
|
|
7589
7588
|
<ax-prefix></ax-prefix>
|
|
7590
7589
|
<ax-suffix>
|
|
7591
|
-
<ax-button
|
|
7590
|
+
<ax-button
|
|
7591
|
+
[text]="'@general:actions.cancel.title' | translate | async"
|
|
7592
|
+
look="solid"
|
|
7593
|
+
(onClick)="handleClose(true)"
|
|
7594
|
+
>
|
|
7595
|
+
</ax-button>
|
|
7592
7596
|
<ax-button
|
|
7593
7597
|
[text]="'@general:actions.save.title' | translate | async"
|
|
7594
7598
|
look="solid"
|
|
@@ -7609,15 +7613,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
7609
7613
|
<div class="ax-card-body ax-p-4">
|
|
7610
7614
|
<div class="ax-flex ax-flex-col ax-gap-2 ax-pb-4">
|
|
7611
7615
|
<p class="ax-font-semibold">{{ '@general:terms.common.title' | translate | async }}</p>
|
|
7612
|
-
<ax-text-box
|
|
7616
|
+
<ax-text-box
|
|
7617
|
+
[(ngModel)]="title"
|
|
7618
|
+
name="title"
|
|
7619
|
+
placeholder="{{ '@general:terms.common.title' | translate | async }}"
|
|
7620
|
+
>
|
|
7621
|
+
</ax-text-box>
|
|
7613
7622
|
</div>
|
|
7614
7623
|
<div class="ax-flex ax-flex-col ax-gap-2">
|
|
7615
7624
|
<p class="ax-font-semibold">{{ '@general:terms.common.description' | translate | async }}</p>
|
|
7616
|
-
<ax-text-box
|
|
7625
|
+
<ax-text-box
|
|
7626
|
+
[(ngModel)]="description"
|
|
7627
|
+
name="description"
|
|
7628
|
+
placeholder="{{ '@general:terms.common.description' | translate | async }}"
|
|
7629
|
+
>
|
|
7617
7630
|
</ax-text-box>
|
|
7618
7631
|
</div>
|
|
7619
7632
|
|
|
7620
|
-
@if (
|
|
7633
|
+
@if (showAdminFields()) {
|
|
7621
7634
|
<div class="ax-flex ax-flex-col ax-gap-2 ax-mt-4">
|
|
7622
7635
|
<p class="ax-font-semibold">{{ 'roles' | translate: { scope } | async }}</p>
|
|
7623
7636
|
<ax-select-box
|
|
@@ -7649,7 +7662,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
7649
7662
|
<ax-footer>
|
|
7650
7663
|
<ax-prefix></ax-prefix>
|
|
7651
7664
|
<ax-suffix>
|
|
7652
|
-
<ax-button
|
|
7665
|
+
<ax-button
|
|
7666
|
+
[text]="'@general:actions.cancel.title' | translate | async"
|
|
7667
|
+
look="solid"
|
|
7668
|
+
(onClick)="handleClose(true)"
|
|
7669
|
+
>
|
|
7670
|
+
</ax-button>
|
|
7653
7671
|
<ax-button
|
|
7654
7672
|
[text]="'@general:actions.save.title' | translate | async"
|
|
7655
7673
|
look="solid"
|
|
@@ -7675,7 +7693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
7675
7693
|
],
|
|
7676
7694
|
standalone: true,
|
|
7677
7695
|
}]
|
|
7678
|
-
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }, { type: i0.Output, args: ["titleChange"] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }, { type: i0.Output, args: ["descriptionChange"] }], selectedRoleIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedRoleIds", required: false }] }, { type: i0.Output, args: ["selectedRoleIdsChange"] }], isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDisabled", required: false }] }, { type: i0.Output, args: ["isDisabledChange"] }], isLocked: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLocked", required: false }] }, { type: i0.Output, args: ["isLockedChange"] }], isAdmin: [{ type: i0.Input, args: [{ isSignal: true, alias: "isAdmin", required: false }] }, { type: i0.Output, args: ["isAdminChange"] }] } });
|
|
7696
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }, { type: i0.Output, args: ["titleChange"] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }, { type: i0.Output, args: ["descriptionChange"] }], selectedRoleIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedRoleIds", required: false }] }, { type: i0.Output, args: ["selectedRoleIdsChange"] }], isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDisabled", required: false }] }, { type: i0.Output, args: ["isDisabledChange"] }], isLocked: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLocked", required: false }] }, { type: i0.Output, args: ["isLockedChange"] }], isAdmin: [{ type: i0.Input, args: [{ isSignal: true, alias: "isAdmin", required: false }] }, { type: i0.Output, args: ["isAdminChange"] }], showAdminFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAdminFields", required: false }] }, { type: i0.Output, args: ["showAdminFieldsChange"] }] } });
|
|
7679
7697
|
|
|
7680
7698
|
const path = 'home:dashboard:';
|
|
7681
7699
|
var AXPHomeDashboardSetting;
|