@acorex/platform 19.2.8 → 19.2.9
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/common/lib/app/application.types.d.ts +7 -0
- package/common/lib/utils/index.d.ts +2 -0
- package/common/lib/utils/regional-util.service.d.ts +15 -0
- package/common/lib/utils/regional.types.d.ts +55 -0
- package/fesm2022/acorex-platform-common.mjs +4 -2
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +35 -16
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +74 -23
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +27 -26
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +97 -51
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs → acorex-platform-themes-default-entity-master-create-view.component-BK8BItxL.mjs} +2 -2
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BK8BItxL.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs → acorex-platform-themes-default-entity-master-single-view.component-BGUrwL2P.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BGUrwL2P.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-CN2NCgUv.mjs +74 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-CN2NCgUv.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CsCug3Vu.mjs +71 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CsCug3Vu.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +22 -12
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +10 -1
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-B90if8wb.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-BiCinIok.mjs} +13 -11
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-BiCinIok.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +356 -384
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/datasource-provider.service.d.ts +3 -1
- package/layout/builder/lib/builder/widget.types.d.ts +2 -0
- package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +2 -0
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +3 -0
- package/layout/entity/lib/entity-master-create.viewmodel.d.ts +3 -1
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +1 -1
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +0 -2
- package/layout/entity/lib/widgets/widget-selector/widget-selector-widget-edit.component.d.ts +0 -2
- package/layout/setting/lib/setting.viewmodel.d.ts +3 -0
- package/package.json +5 -5
- package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +3 -0
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +3 -0
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +6 -0
- package/themes/default/lib/layouts/root-layout/root-layout.module.d.ts +2 -1
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +3 -0
- package/themes/default/lib/pages/theme-palette-preview/theme-palette-preview.page.d.ts +3 -0
- package/themes/shared/lib/components/slots/theme-slot.component.d.ts +3 -0
- package/themes/shared/lib/setting.keys.d.ts +2 -1
- package/themes/shared/lib/theme.service.d.ts +3 -0
- package/widgets/lib/properties/data-source.props.d.ts +3 -0
- package/widgets/lib/properties/editors.props.d.ts +0 -1
- package/widgets/lib/properties/index.d.ts +1 -0
- package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget-edit.component.d.ts +0 -5
- package/widgets/lib/widgets/charts/bar-chart/bar-chart.type.d.ts +1 -1
- package/widgets/lib/widgets/editors/checkbox/checkbox-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/color/color-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/email/email-box-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/link/link-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/phone/phone-box-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-edit-popup.component.d.ts +0 -1
- package/widgets/lib/widgets/editors/text/text-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/validations/base-validation/base-validation.d.ts +3 -2
- package/widgets/lib/widgets/validations/between-validation/between-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/callback-validation/callback-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/equal-validation/equal-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/greater-than-validation/greater-than-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/less-than-validation/less-than-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/max-length-validation/max-length-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/min-length-validation/min-length-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/regular-expression-validation/regular-expression-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/required-validation/required-validation-widget-edit.component.d.ts +1 -7
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BERYnJnp.mjs +0 -74
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BERYnJnp.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BagAWM4W.mjs +0 -71
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BagAWM4W.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-B90if8wb.mjs.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AXValueChangedEvent } from '@acorex/components/common';
|
|
2
|
-
import { AXPValidationRules } from '@acorex/platform/core';
|
|
3
2
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
4
3
|
import { Signal } from '@angular/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -12,7 +11,6 @@ export declare class AXPNumberBoxWidgetEditComponent extends AXPWidgetComponent<
|
|
|
12
11
|
protected maxValue: Signal<number>;
|
|
13
12
|
protected seprator: Signal<string>;
|
|
14
13
|
protected placeholder: Signal<string>;
|
|
15
|
-
protected validationRules: Signal<AXPValidationRules>;
|
|
16
14
|
protected internalValue: Signal<number[]>;
|
|
17
15
|
protected handleValueChange(e: AXValueChangedEvent, i: number): void;
|
|
18
16
|
protected addItem(): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AXValueChangedEvent } from '@acorex/components/common';
|
|
2
2
|
import { AXValidationService } from '@acorex/core/validation';
|
|
3
|
-
import { AXPValidationRules } from '@acorex/platform/core';
|
|
4
3
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
5
4
|
import { Signal } from '@angular/core';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
@@ -16,9 +15,6 @@ export declare class AXPPhoneBoxWidgetEditComponent extends AXPWidgetComponent<a
|
|
|
16
15
|
label?: string;
|
|
17
16
|
id: string;
|
|
18
17
|
}[]>;
|
|
19
|
-
private _validationRules;
|
|
20
|
-
get validationRules(): AXPValidationRules;
|
|
21
|
-
set validationRules(v: AXPValidationRules);
|
|
22
18
|
private getValueAsArrayOfObjects;
|
|
23
19
|
protected handleValueChange(e: AXValueChangedEvent, selectedIndex: number): void;
|
|
24
20
|
protected handleLabelChange(e: AXValueChangedEvent, selectedIndex: number): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AXValueChangedEvent } from '@acorex/components/common';
|
|
2
|
-
import { AXPValidationRules } from '@acorex/platform/core';
|
|
3
2
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class AXPRichTextWidgetEditComponent extends AXPWidgetComponent<any> {
|
|
@@ -8,7 +7,6 @@ export declare class AXPRichTextWidgetEditComponent extends AXPWidgetComponent<a
|
|
|
8
7
|
protected minLineCount: import("@angular/core").Signal<number>;
|
|
9
8
|
protected maxLineCount: import("@angular/core").Signal<number>;
|
|
10
9
|
protected isFitLine: import("@angular/core").Signal<boolean>;
|
|
11
|
-
protected validationRules: import("@angular/core").Signal<AXPValidationRules>;
|
|
12
10
|
protected setWysiwyg(e: AXValueChangedEvent): void;
|
|
13
11
|
protected getLinePx(count: number): string;
|
|
14
12
|
private get __class();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AXDataSourceFilterOption, AXValueChangedEvent } from '@acorex/components/common';
|
|
2
|
-
import { AXPValidationRules } from '@acorex/platform/core';
|
|
3
2
|
import { AXPDataListWidgetComponent } from '@acorex/platform/layout/builder';
|
|
4
3
|
import { StrategyConfig } from '../../../widgets.config';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -7,7 +6,6 @@ export declare class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetCo
|
|
|
7
6
|
#private;
|
|
8
7
|
private selectbox;
|
|
9
8
|
protected widgetsConfigs: StrategyConfig;
|
|
10
|
-
protected validationRules: import("@angular/core").Signal<AXPValidationRules>;
|
|
11
9
|
protected multiple: import("@angular/core").Signal<boolean>;
|
|
12
10
|
protected disabled: import("@angular/core").Signal<boolean>;
|
|
13
11
|
protected placeholder: import("@angular/core").Signal<string>;
|
package/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AXDirection, AXValueChangedEvent } from '@acorex/components/common';
|
|
2
|
-
import { AXPValidationRules } from '@acorex/platform/core';
|
|
3
2
|
import { AXPDataListWidgetComponent } from '@acorex/platform/layout/builder';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class AXPSelectionListWidgetEditComponent extends AXPDataListWidgetComponent {
|
|
@@ -9,7 +8,6 @@ export declare class AXPSelectionListWidgetEditComponent extends AXPDataListWidg
|
|
|
9
8
|
protected readonly: import("@angular/core").Signal<boolean>;
|
|
10
9
|
protected displayItems: import("@angular/core").WritableSignal<any[]>;
|
|
11
10
|
private ef;
|
|
12
|
-
protected validationRules: import("@angular/core").Signal<AXPValidationRules>;
|
|
13
11
|
protected handleValueChange(e: AXValueChangedEvent): void;
|
|
14
12
|
private get __class();
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSelectionListWidgetEditComponent, never>;
|
|
@@ -16,7 +16,6 @@ export declare class AXPTabularDataPopupComponent extends AXBasePageComponent {
|
|
|
16
16
|
protected dataSource: AXDataSource<unknown>;
|
|
17
17
|
protected grid: import("@angular/core").Signal<AXDataTableComponent | undefined>;
|
|
18
18
|
handleContextChange(e: AXPLayoutContextChangeEvent): void;
|
|
19
|
-
onClose(): void;
|
|
20
19
|
onCloseDiscard(): void;
|
|
21
20
|
addRecord(): void;
|
|
22
21
|
handleSelectionChange(e: any): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AXValueChangedEvent } from '@acorex/components/common';
|
|
2
|
-
import { AXPValidationRules } from '@acorex/platform/core';
|
|
3
2
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
4
3
|
import { Signal } from '@angular/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -8,7 +7,6 @@ export declare class AXPTextBoxWidgetEditComponent extends AXPWidgetComponent<an
|
|
|
8
7
|
protected hasClearButton: Signal<boolean>;
|
|
9
8
|
protected disabled: Signal<boolean>;
|
|
10
9
|
protected placeholder: Signal<string>;
|
|
11
|
-
protected validationRules: Signal<AXPValidationRules>;
|
|
12
10
|
protected internalValue: Signal<string[]>;
|
|
13
11
|
protected handleValueChange(e: AXValueChangedEvent, i: number): void;
|
|
14
12
|
protected addItem(): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export type AXPValidationWidgetTypes = 'requiredValidation' | 'regularExpressionValidation' | 'minLengthValidation' | 'maxLengthValidation' | 'lessThanValidation' | 'greaterThanValidation' | 'betweenValidation' | 'equalValidation' | 'callbackValidation';
|
|
2
|
-
export
|
|
2
|
+
export interface AXPWidgetValidation {
|
|
3
3
|
rule: string;
|
|
4
4
|
message: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
options?: any;
|
|
7
7
|
placeholder: string;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
|
+
export declare const AXP_BASE_VALIDATION_INFORMATION: Record<AXPValidationWidgetTypes, AXPWidgetValidation>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPBetweenValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationLowerValue: import("@angular/core").WritableSignal<any>;
|
|
17
11
|
protected validationUpperValue: import("@angular/core").WritableSignal<any>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPCallbackValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationValue: import("@angular/core").WritableSignal<string>;
|
|
17
11
|
protected validationText: import("@angular/core").WritableSignal<string>;
|
package/widgets/lib/widgets/validations/equal-validation/equal-validation-widget-edit.component.d.ts
CHANGED
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPEqualValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationValue: import("@angular/core").WritableSignal<any>;
|
|
17
11
|
protected validationText: import("@angular/core").WritableSignal<string>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPGreaterThanValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationValue: import("@angular/core").WritableSignal<any>;
|
|
17
11
|
protected validationInclusive: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPLessThanValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationValue: import("@angular/core").WritableSignal<any>;
|
|
17
11
|
protected validationInclusive: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPMaxLengthValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationValue: import("@angular/core").WritableSignal<any>;
|
|
17
11
|
protected validationText: import("@angular/core").WritableSignal<string>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPMinLengthValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationValue: import("@angular/core").WritableSignal<any>;
|
|
17
11
|
protected validationText: import("@angular/core").WritableSignal<string>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPRegularExpressionValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationValue: import("@angular/core").WritableSignal<any>;
|
|
17
11
|
protected validationText: import("@angular/core").WritableSignal<string>;
|
|
@@ -5,13 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class AXPRequiredValidationWidgetEditComponent extends AXPWidgetComponent<AXPValidationRule | undefined> {
|
|
6
6
|
#private;
|
|
7
7
|
protected validationName: AXPValidationWidgetTypes;
|
|
8
|
-
protected validationInformation:
|
|
9
|
-
rule: string;
|
|
10
|
-
message: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
options?: any;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
};
|
|
8
|
+
protected validationInformation: import("../base-validation/base-validation").AXPWidgetValidation;
|
|
15
9
|
protected validationStatus: import("@angular/core").WritableSignal<boolean>;
|
|
16
10
|
protected validationText: import("@angular/core").WritableSignal<string>;
|
|
17
11
|
protected validationPlaceholder: string;
|
package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { AXValidationModule } from '@acorex/core/validation';\n\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPGridLayoutDirective } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule, AXPLayoutContextChangeEvent } from '@acorex/platform/layout/builder';\nimport { AXPEntityMasterCreateViewModel } from '@acorex/platform/layout/entity';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { AXPWorkflowService } from '@acorex/platform/workflow';\n\n@Component({\n templateUrl: './entity-master-create-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n CommonModule,\n AXButtonModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXTooltipModule,\n AXValidationModule,\n AXLabelModule,\n AXDropdownModule,\n AXDropdownButtonModule,\n AXTranslationModule,\n //\n AXPLayoutBuilderModule,\n AXPWidgetsModule,\n AXPGridLayoutDirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityMasterCreateViewComponent extends AXBasePageComponent {\n protected vm!: AXPEntityMasterCreateViewModel;\n\n protected workflow = inject(AXPWorkflowService);\n\n protected handleCloseClick() {\n this.close();\n }\n\n protected async handleBackClick() {\n //await this.vm.executeCommand('back');\n }\n\n protected async handleNextClick(form: AXFormComponent) {\n // const formResult = await form.validate();\n // if (formResult.result) {\n // await this.vm.executeCommand('next');\n // }\n }\n\n protected async handleSaveClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n try {\n const record = await this.vm.save();\n this.close({ save: true, recordId: record?.id, item: record, redirect: this.vm.redirect() });\n } catch (error) {\n console.log(error);\n }\n }\n }\n\n protected async handleSaveAndNewClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n try {\n const record = await this.vm.save();\n this.close({ save: true, recordId: record.id, redirect: false });\n await this.vm.createNewOne();\n } catch (error) {\n console.log(error);\n }\n }\n }\n\n protected async handleContextChange(e: AXPLayoutContextChangeEvent) {\n this.vm.context.set(e.data);\n }\n}\n","<div>\n <axp-widgets-container [context]=\"vm.context()\" (onContextChanged)=\"handleContextChange($event)\">\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4 ax-pb-8\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n <!-- Begin Sections -->\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-col-span-12\">\n <ax-form #form>\n @if(vm.sections().length>1 && !section.description()) {\n <div class=\"ax-pb-4\">\n <span class=\"ax-font-bold ax-text-xl\">{{ section.title() | translate | async }}</span>\n @if(section.description()) {\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description() }}</p>\n }\n </div>\n }\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.elements(); track $index) {\n <ax-form-field class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\">\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{\n attr.title() | translate | async\n }}</ax-label>\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"\n #widget=\"widgetRenderer\"></ng-container>\n </ax-form-field>\n }\n </div>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n </ax-form>\n </axp-widgets-container>\n <ax-footer>\n <ax-suffix>\n <ax-button look=\"solid\" [color]=\"'default'\" [text]=\"'cancel' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if(vm.canCreateNewOne()) {\n <ax-dropdown-button [disabled]=\"vm.isInProgress()\" color=\"primary\" [text]=\"'save' | translate | async\"\n look=\"solid\" (onClick)=\"handleSaveClick(form)\">\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\n <ax-button-item-list>\n <ax-button-item [text]=\"('save' | translate | async) + ' ' + ('create-new' | translate | async)\"\n (onClick)=\"handleSaveAndNewClick(form)\">\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n }@else {\n <ax-button look=\"solid\" color=\"primary\" [text]=\"'save' | translate | async\" (onClick)=\"handleSaveClick(form)\">\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\n </ax-button>\n }\n </ax-suffix>\n </ax-footer>\n</div>"],"names":["i3","i5","i8","i9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDM,MAAO,kCAAmC,SAAQ,mBAAmB,CAAA;AAzB3E,IAAA,WAAA,GAAA;;AA4BY,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC;AA6ChD;IA3CW,gBAAgB,GAAA;QACxB,IAAI,CAAC,KAAK,EAAE;;AAGJ,IAAA,MAAM,eAAe,GAAA;;;IAIrB,MAAM,eAAe,CAAC,IAAqB,EAAA;;;;;;IAO3C,MAAM,eAAe,CAAC,IAAqB,EAAA;AACnD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE;AACxC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;AACrB,YAAA,IAAI;gBACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE;AACnC,gBAAA,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,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f,kBAAkB;wBAClB,aAAa;wBACb,gBAAgB;wBAChB,sBAAsB;wBACtB,mBAAmB;;wBAEnB,sBAAsB;wBACtB,gBAAgB;wBAChB,sBAAsB;qBACvB,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mrFAAA,EAAA;;;;;"}
|
package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.html","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.html"],"sourcesContent":["import { AXActionSheetModule } from '@acorex/components/action-sheet';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDrawerModule } from '@acorex/components/drawer';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPGridLayoutDirective } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\nimport { AXPEntityMasterSingleViewModel } from '@acorex/platform/layout/entity';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { AXPEntityDetailListViewComponent } from '../../entity-detail-list-view/entity-detail-list-view.component';\n\n@Component({\n templateUrl: './entity-single-overview.component.html',\n selector: 'axp-entity-single-overview',\n imports: [\n CommonModule,\n RouterModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXPopoverModule,\n AXFormModule,\n AXActionSheetModule,\n AXDrawerModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXButtonModule,\n AXBreadcrumbsModule,\n //\n AXPLayoutBuilderModule,\n AXPWidgetsModule,\n AXPGridLayoutDirective,\n AXPEntityDetailListViewComponent,\n //\n AXTranslationModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntitySingleOverviewComponent {\n private activeRoute = inject(ActivatedRoute);\n protected readonly vm = this.activeRoute.snapshot.data['vm'] as AXPEntityMasterSingleViewModel;\n\n protected selectedRelatedIEntityTabIndex = signal(0);\n\n handleActiveRelatedEntityChanged(e: AXTabStripChangedEvent) {\n this.selectedRelatedIEntityTabIndex.set(e.index);\n }\n}\n","<div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-2\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() | translate | async }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button class=\"ax-xs\" [color]=\"'default'\" [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\">\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\">\n <div>\n <div>\n @if(attr.showLabel()) {\n <span class=\"ax-font-semibold\">{{ attr.title() | translate | async }}</span>\n }\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"\n #widget=\"widgetRenderer\"></ng-container>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n</div>\n\n@if(vm.relatedEntities().length) {\n<ax-tabs [look]=\"'classic'\" class=\"ax-mt-4 ax-font-semibold\" #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\">\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"(e.title() | translate | async)!\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n</ax-tabs>\n@for(e of vm.relatedEntities();track $index;let index= $index){\n<div [class.ax-hidden]=\"$index != selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n</div>\n} }","import { AXActionSheetModule } from '@acorex/components/action-sheet';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDrawerModule } from '@acorex/components/drawer';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPAuthModule } from '@acorex/platform/auth';\nimport { AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\nimport { AXPEntityMasterSingleViewModel } from '@acorex/platform/layout/entity';\nimport { AXPLayoutThemeService } from '@acorex/platform/themes/shared';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { AXPEntitySingleOverviewComponent } from './overview/entity-single-overview.component';\n\n@Component({\n templateUrl: './entity-master-single-view.component.html',\n imports: [\n CommonModule,\n RouterModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXPopoverModule,\n AXFormModule,\n AXActionSheetModule,\n AXDrawerModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXButtonModule,\n AXBreadcrumbsModule,\n //\n AXPLayoutBuilderModule,\n AXPWidgetsModule,\n AXPStickyDirective,\n AXPEntitySingleOverviewComponent,\n // AXMCommentModule,\n AXPAuthModule,\n //\n AXTranslationModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityMasterSingleViewComponent {\n private activeRoute = inject(ActivatedRoute);\n protected readonly vm = this.activeRoute.snapshot.data['vm'] as AXPEntityMasterSingleViewModel;\n //\n protected store = inject(AXPLayoutThemeService);\n\n protected selectedDetailTabIndex = signal('Overview');\n\n handleActiveDetailTabChanged(e: AXTabStripChangedEvent) {\n this.selectedDetailTabIndex.set(e.tab.key);\n }\n\n ngOnDestroy(): void {\n this.vm.destroy();\n }\n}\n","<ax-drawer-container>\n <!-- <ax-drawer #drawer location=\"start\" [collapsed]=\"!(isOpen | async)\" [mode]=\" (isSM | async) ? 'overlay' : 'push'\"\n *ngIf=\"loader.hasSections$ | async\" (collapsedChange)=\"handleCollapsedChange($event)\">\n <ax-content class=\"ax-border-e ax-p-6 ax-w-64\">\n <p class=\"ax-text-xl ax-font-bold ax-mb-6\">{{loader.sectionTitle}}</p>\n <ax-tabs look=\"with-line\" location=\"start\">\n @for(tab of (loader.sections$ | async); track tab.name)\n {\n <ax-tab-item [text]=\"tab.title\" [active]=\"isActive(tab)\" (onClick)=\"handleMenuClick($event,tab)\"\n [disabled]=\"editForm.context\">\n </ax-tab-item>\n }\n </ax-tabs>\n </ax-content>\n </ax-drawer> -->\n <ax-content #content class=\"ax-overflow-x-hidden\">\n <div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-lightest ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-lightest ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\" [stickyOffset]=\"30\"\n [stickyParent]=\"content.getHostElement()\">\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\"\n [class.ax-hidden]=\"store.isSmall()\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item [active]=\"last\" [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\" [routerLink]=\"b.url\">\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(action of vm.primaryActions();track $index) {\n <ax-button [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"store.isSmall() ? null : 'Actions'\" [color]=\"'default'\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(action of vm.secondaryActions();track $index) {\n <ng-container>\n @if(action.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item [text]=\"(action.title | translate | async)!\" [color]=\"action.color\"\n (onClick)=\"vm.executeCommand(action.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!----- Finish Toolbar ----->\n <!--------------------------------------------------------------->\n <!-- Begin Sections -->\n <ax-tabs (onActiveTabChanged)=\"handleActiveDetailTabChanged($event)\" [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\" [class.ax-hidden]=\"sticky.isSticky\">\n <ax-tab-item [key]=\"'overview'\" [text]=\"('overview' | translate | async) ?? 'Overview'\"> </ax-tab-item>\n <ax-tab-item *feature=\"'entity-history'\" [key]=\"'history'\"\n [text]=\"('history' | translate | async) ?? 'History'\">\n </ax-tab-item>\n <ax-tab-item *feature=\"'entity-comment'\" [key]=\"'comments'\"\n [text]=\"('comments' | translate | async) ?? 'Comments'\">\n </ax-tab-item>\n </ax-tabs>\n </div>\n\n @switch (selectedDetailTabIndex()) { @case('history'){\n <div></div>\n } @case('comments'){\n <div></div>\n <!-- <axm-comment-list-view vm=\"vm\"></axm-comment-list-view> -->\n } @default {\n <axp-entity-single-overview></axp-entity-single-overview>\n } }\n <!-- Finish Sections -->\n </div>\n </ax-content>\n</ax-drawer-container>"],"names":["i2","i3","i4","i5","i7","i6","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgDa,gCAAgC,CAAA;AA3B7C,IAAA,WAAA,GAAA;AA4BU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC;QACzB,IAAE,CAAA,EAAA,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAmC;AAEpF,QAAA,IAAA,CAAA,8BAA8B,GAAG,MAAM,CAAC,CAAC,CAAC;AAKrD;AAHC,IAAA,gCAAgC,CAAC,CAAyB,EAAA;QACxD,IAAI,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;;8GAPvC,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAhC,gCAAgC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChD7C,23EAuDG,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED9BC,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EA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AA,EAAA,4BAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA;;gBAEhC,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA;;gBAEb,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIV,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBA5B9C,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,cAAc;wBACd,mBAAmB;;wBAEnB,sBAAsB;wBACtB,gBAAgB;wBAChB,kBAAkB;wBAClB,gCAAgC;;wBAEhC,aAAa;;wBAEb,mBAAmB;qBACpB,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,miLAAA,EAAA;;;;;"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
5
|
-
import { AXPSimplePageLayout } from './acorex-platform-themes-default.mjs';
|
|
6
|
-
import { AXPThemeLayoutBlockComponent, AXPThemeLayoutHeaderTemplateComponent, AXPThemeLayoutSideTemplateComponent, AXPThemeLayoutActionsComponent, AXPThemeLayoutPageSecondaryActionsComponent, AXPThemeLayoutListComponent, AXPThemeLayoutListItemComponent, AXPThemeLayoutFooterComponent } from '@acorex/platform/themes/shared';
|
|
7
|
-
import * as i7 from '@acorex/components/search-box';
|
|
8
|
-
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
9
|
-
import * as i5 from '@acorex/components/decorators';
|
|
10
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
11
|
-
import { AXPSettingsViewModel } from '@acorex/platform/layout/setting';
|
|
12
|
-
import * as i2 from '@angular/forms';
|
|
13
|
-
import { FormsModule } from '@angular/forms';
|
|
14
|
-
import { AXTreeViewModule } from '@acorex/components/tree-view';
|
|
15
|
-
import * as i3 from '@angular/router';
|
|
16
|
-
import { RouterModule } from '@angular/router';
|
|
17
|
-
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
18
|
-
import * as i6 from '@acorex/core/translation';
|
|
19
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
20
|
-
import * as i4 from '@acorex/components/button';
|
|
21
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
22
|
-
import * as i8 from '@acorex/components/tabs';
|
|
23
|
-
import { AXTabsModule } from '@acorex/components/tabs';
|
|
24
|
-
import { AXBadgeModule } from '@acorex/components/badge';
|
|
25
|
-
import * as i5$1 from '@acorex/components/loading';
|
|
26
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
27
|
-
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
28
|
-
|
|
29
|
-
class AXPSettingPageComponent {
|
|
30
|
-
constructor() {
|
|
31
|
-
this.vm = inject(AXPSettingsViewModel);
|
|
32
|
-
}
|
|
33
|
-
handleSerach(e) {
|
|
34
|
-
this.vm.search(e.value);
|
|
35
|
-
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSettingPageComponent, isStandalone: true, selector: "ng-component", providers: [AXPSettingsViewModel], ngImport: i0, template: "<axp-layout-simple-page *translate=\"let t\">\n @if(vm.showSide())\n {\n <axp-layout-side>\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\"\n (onValueChanged)=\"handleSerach($event)\"\n [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n <axp-layout-content>\n <ax-tabs [look]=\"'with-line-color'\" [location]=\"'end'\" [fitParent]=\"true\">\n @for (item of vm.loadedItems(); track $index) {\n <ax-tab-item [text]=\"item.title\" (onClick)=\"vm.handleSelectGroup(item)\"\n [active]=\"vm.activateGroup()==item.name && !vm.isSearching()\">\n <ax-prefix>\n <ax-icon icon=\"far ${{item.icon}}\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n }\n </ax-tabs>\n </axp-layout-content>\n </axp-layout-side>\n }\n\n @if(vm.hasGroup())\n {\n <axp-layout-header>\n @let group=vm.groups()?.breadcrumb?.[(vm.groups()?.breadcrumb?.length??1)- 1];\n\n @if(!vm.showSide())\n {\n <axp-layout-nav-button>\n <ax-button class=\"ax-xs\" [look]=\"'blank'\" [color]=\"'default'\" (onClick)=\"vm.navigateUpLevel()\">\n <ax-icon icon=\"fa-solid fa-arrow-left\"></ax-icon>\n </ax-button>\n </axp-layout-nav-button>\n }\n\n <axp-layout-title>\n @if(!vm.isSearching())\n {\n {{ (group?.title ?? '') | translate | async }}\n }\n @else {\n {{ t('settings.search',{scope:'platform-management'}) | async }}\n }\n </axp-layout-title>\n\n @if(group?.description && !vm.isSearching() && vm.layout.isLarge())\n {\n <axp-layout-description>\n {{ group?.description }}\n </axp-layout-description>\n }\n <axp-layout-actions>\n @if((!vm.isSearching() || vm.searchResult().length >0))\n {\n <axp-layout-actions-secondary>\n <ax-button-item [text]=\"(t('settings.restore-defaults',{scope:'platform-management'}) | async)!\"\n (onClick)=\"vm.resetToDefault();\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-rotate'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n <ax-divider></ax-divider>\n <ax-button-item [text]=\"(t('export') | async)!\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-file-export'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </axp-layout-actions-secondary>\n }\n\n </axp-layout-actions>\n </axp-layout-header>\n }\n @else\n {\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\" (onValueChanged)=\"handleSerach($event)\"\n class=\"ax-w-full\" [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n }\n\n <axp-layout-content id=\"ax-settings\">\n @if(vm.hasGroup() || vm.isSearching())\n {\n <router-outlet></router-outlet>\n }\n @else {\n <axp-layout-list>\n @for (item of vm.loadedItems(); track $index) {\n <axp-layout-list-item (click)=\"vm.handleSelectGroup(item)\">\n <axp-layout-prefix>\n <ax-icon icon=\"far ${{item.icon}}\" class=\"ax-text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <a>{{item.title | translate | async}}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\" far fa-chevron-right\" class=\"ax-text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n </axp-layout-content>\n\n @if(vm.isDirty() )\n {\n <axp-layout-footer>\n <axp-layout-suffix>\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\" [text]=\"t('discard') | async\"\n (onClick)=\"vm.discard()\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\"\n [text]=\"((t(vm.layout.isSmall() ? 'Apply': 'Apply Changes')) | async)!\" (onClick)=\"vm.apply()\"\n [color]=\"'primary'\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer>\n }\n</axp-layout-simple-page>", styles: [":host ax-tabs{--ax-comp-tabs-default-border-radius: 0}:host ax-tabs ax-tab-item{margin-top:0!important;margin-bottom:0!important;padding-top:.75rem!important;padding-bottom:.75rem!important;font-weight:600!important}:host #ax-settings{padding:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { 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: RouterModule }, { kind: "directive", type: i3.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type:
|
|
38
|
-
//
|
|
39
|
-
AXSearchBoxModule }, { kind: "component", type: i7.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i5.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: AXTreeViewModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i8.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i8.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i5$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type:
|
|
40
|
-
//
|
|
41
|
-
AXPSimplePageLayout, selector: "axp-layout-simple-page" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPThemeLayoutHeaderTemplateComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutSideTemplateComponent, selector: "axp-layout-side" }, { kind: "component", type: AXPThemeLayoutActionsComponent, selector: "axp-layout-actions" }, { kind: "component", type: AXPThemeLayoutPageSecondaryActionsComponent, selector: "axp-layout-actions-secondary" }, { kind: "component", type: AXPThemeLayoutListComponent, selector: "axp-layout-list" }, { kind: "component", type: AXPThemeLayoutListItemComponent, selector: "axp-layout-list-item" }, { kind: "component", type: AXPThemeLayoutFooterComponent, selector: "axp-layout-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingPageComponent, decorators: [{
|
|
44
|
-
type: Component,
|
|
45
|
-
args: [{ standalone: true, imports: [
|
|
46
|
-
CommonModule,
|
|
47
|
-
FormsModule,
|
|
48
|
-
RouterModule,
|
|
49
|
-
//
|
|
50
|
-
AXSearchBoxModule,
|
|
51
|
-
AXDecoratorModule,
|
|
52
|
-
AXTreeViewModule,
|
|
53
|
-
AXBreadcrumbsModule,
|
|
54
|
-
AXTranslationModule,
|
|
55
|
-
AXButtonModule,
|
|
56
|
-
AXTabsModule,
|
|
57
|
-
AXBadgeModule,
|
|
58
|
-
AXLoadingModule,
|
|
59
|
-
AXDropdownButtonModule,
|
|
60
|
-
//
|
|
61
|
-
AXPSimplePageLayout,
|
|
62
|
-
AXPThemeLayoutBlockComponent,
|
|
63
|
-
AXPThemeLayoutHeaderTemplateComponent,
|
|
64
|
-
AXPThemeLayoutSideTemplateComponent,
|
|
65
|
-
AXPThemeLayoutActionsComponent,
|
|
66
|
-
AXPThemeLayoutPageSecondaryActionsComponent,
|
|
67
|
-
AXPThemeLayoutListComponent,
|
|
68
|
-
AXPThemeLayoutListItemComponent,
|
|
69
|
-
AXPThemeLayoutFooterComponent
|
|
70
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [AXPSettingsViewModel], template: "<axp-layout-simple-page *translate=\"let t\">\n @if(vm.showSide())\n {\n <axp-layout-side>\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\"\n (onValueChanged)=\"handleSerach($event)\"\n [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n <axp-layout-content>\n <ax-tabs [look]=\"'with-line-color'\" [location]=\"'end'\" [fitParent]=\"true\">\n @for (item of vm.loadedItems(); track $index) {\n <ax-tab-item [text]=\"item.title\" (onClick)=\"vm.handleSelectGroup(item)\"\n [active]=\"vm.activateGroup()==item.name && !vm.isSearching()\">\n <ax-prefix>\n <ax-icon icon=\"far ${{item.icon}}\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n }\n </ax-tabs>\n </axp-layout-content>\n </axp-layout-side>\n }\n\n @if(vm.hasGroup())\n {\n <axp-layout-header>\n @let group=vm.groups()?.breadcrumb?.[(vm.groups()?.breadcrumb?.length??1)- 1];\n\n @if(!vm.showSide())\n {\n <axp-layout-nav-button>\n <ax-button class=\"ax-xs\" [look]=\"'blank'\" [color]=\"'default'\" (onClick)=\"vm.navigateUpLevel()\">\n <ax-icon icon=\"fa-solid fa-arrow-left\"></ax-icon>\n </ax-button>\n </axp-layout-nav-button>\n }\n\n <axp-layout-title>\n @if(!vm.isSearching())\n {\n {{ (group?.title ?? '') | translate | async }}\n }\n @else {\n {{ t('settings.search',{scope:'platform-management'}) | async }}\n }\n </axp-layout-title>\n\n @if(group?.description && !vm.isSearching() && vm.layout.isLarge())\n {\n <axp-layout-description>\n {{ group?.description }}\n </axp-layout-description>\n }\n <axp-layout-actions>\n @if((!vm.isSearching() || vm.searchResult().length >0))\n {\n <axp-layout-actions-secondary>\n <ax-button-item [text]=\"(t('settings.restore-defaults',{scope:'platform-management'}) | async)!\"\n (onClick)=\"vm.resetToDefault();\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-rotate'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n <ax-divider></ax-divider>\n <ax-button-item [text]=\"(t('export') | async)!\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-file-export'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </axp-layout-actions-secondary>\n }\n\n </axp-layout-actions>\n </axp-layout-header>\n }\n @else\n {\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\" (onValueChanged)=\"handleSerach($event)\"\n class=\"ax-w-full\" [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n }\n\n <axp-layout-content id=\"ax-settings\">\n @if(vm.hasGroup() || vm.isSearching())\n {\n <router-outlet></router-outlet>\n }\n @else {\n <axp-layout-list>\n @for (item of vm.loadedItems(); track $index) {\n <axp-layout-list-item (click)=\"vm.handleSelectGroup(item)\">\n <axp-layout-prefix>\n <ax-icon icon=\"far ${{item.icon}}\" class=\"ax-text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <a>{{item.title | translate | async}}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\" far fa-chevron-right\" class=\"ax-text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n </axp-layout-content>\n\n @if(vm.isDirty() )\n {\n <axp-layout-footer>\n <axp-layout-suffix>\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\" [text]=\"t('discard') | async\"\n (onClick)=\"vm.discard()\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\"\n [text]=\"((t(vm.layout.isSmall() ? 'Apply': 'Apply Changes')) | async)!\" (onClick)=\"vm.apply()\"\n [color]=\"'primary'\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer>\n }\n</axp-layout-simple-page>", styles: [":host ax-tabs{--ax-comp-tabs-default-border-radius: 0}:host ax-tabs ax-tab-item{margin-top:0!important;margin-bottom:0!important;padding-top:.75rem!important;padding-bottom:.75rem!important;font-weight:600!important}:host #ax-settings{padding:1rem}\n"] }]
|
|
71
|
-
}] });
|
|
72
|
-
|
|
73
|
-
export { AXPSettingPageComponent };
|
|
74
|
-
//# sourceMappingURL=acorex-platform-themes-default-setting-page.component-BERYnJnp.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-themes-default-setting-page.component-BERYnJnp.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-page/setting-page.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-page/setting-page.component.html"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { AXPSimplePageLayout } from '../../base';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutPageSecondaryActionsComponent,\n AXPThemeLayoutSideTemplateComponent,\n AXPThemeLayoutPagePrimaryActionsComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutFooterComponent\n} from '@acorex/platform/themes/shared';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPSettingsViewModel } from '@acorex/platform/layout/setting';\nimport { FormsModule } from '@angular/forms';\nimport { AXTreeViewModule } from '@acorex/components/tree-view';\nimport { RouterModule } from '@angular/router';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXBadgeModule } from '@acorex/components/badge';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\n@Component({\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n RouterModule,\n //\n AXSearchBoxModule,\n AXDecoratorModule,\n AXTreeViewModule,\n AXBreadcrumbsModule,\n AXTranslationModule,\n AXButtonModule,\n AXTabsModule,\n AXBadgeModule,\n AXLoadingModule,\n AXDropdownButtonModule,\n //\n AXPSimplePageLayout,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutSideTemplateComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutPageSecondaryActionsComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutFooterComponent\n ],\n templateUrl: './setting-page.component.html',\n styleUrl: './setting-page.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPSettingsViewModel]\n})\n\nexport class AXPSettingPageComponent {\n\n protected vm = inject(AXPSettingsViewModel);\n\n protected handleSerach(e: AXValueChangedEvent<any>) {\n this.vm.search(e.value);\n }\n\n}","<axp-layout-simple-page *translate=\"let t\">\n @if(vm.showSide())\n {\n <axp-layout-side>\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\"\n (onValueChanged)=\"handleSerach($event)\"\n [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n <axp-layout-content>\n <ax-tabs [look]=\"'with-line-color'\" [location]=\"'end'\" [fitParent]=\"true\">\n @for (item of vm.loadedItems(); track $index) {\n <ax-tab-item [text]=\"item.title\" (onClick)=\"vm.handleSelectGroup(item)\"\n [active]=\"vm.activateGroup()==item.name && !vm.isSearching()\">\n <ax-prefix>\n <ax-icon icon=\"far ${{item.icon}}\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n }\n </ax-tabs>\n </axp-layout-content>\n </axp-layout-side>\n }\n\n @if(vm.hasGroup())\n {\n <axp-layout-header>\n @let group=vm.groups()?.breadcrumb?.[(vm.groups()?.breadcrumb?.length??1)- 1];\n\n @if(!vm.showSide())\n {\n <axp-layout-nav-button>\n <ax-button class=\"ax-xs\" [look]=\"'blank'\" [color]=\"'default'\" (onClick)=\"vm.navigateUpLevel()\">\n <ax-icon icon=\"fa-solid fa-arrow-left\"></ax-icon>\n </ax-button>\n </axp-layout-nav-button>\n }\n\n <axp-layout-title>\n @if(!vm.isSearching())\n {\n {{ (group?.title ?? '') | translate | async }}\n }\n @else {\n {{ t('settings.search',{scope:'platform-management'}) | async }}\n }\n </axp-layout-title>\n\n @if(group?.description && !vm.isSearching() && vm.layout.isLarge())\n {\n <axp-layout-description>\n {{ group?.description }}\n </axp-layout-description>\n }\n <axp-layout-actions>\n @if((!vm.isSearching() || vm.searchResult().length >0))\n {\n <axp-layout-actions-secondary>\n <ax-button-item [text]=\"(t('settings.restore-defaults',{scope:'platform-management'}) | async)!\"\n (onClick)=\"vm.resetToDefault();\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-rotate'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n <ax-divider></ax-divider>\n <ax-button-item [text]=\"(t('export') | async)!\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-file-export'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </axp-layout-actions-secondary>\n }\n\n </axp-layout-actions>\n </axp-layout-header>\n }\n @else\n {\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\" (onValueChanged)=\"handleSerach($event)\"\n class=\"ax-w-full\" [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n }\n\n <axp-layout-content id=\"ax-settings\">\n @if(vm.hasGroup() || vm.isSearching())\n {\n <router-outlet></router-outlet>\n }\n @else {\n <axp-layout-list>\n @for (item of vm.loadedItems(); track $index) {\n <axp-layout-list-item (click)=\"vm.handleSelectGroup(item)\">\n <axp-layout-prefix>\n <ax-icon icon=\"far ${{item.icon}}\" class=\"ax-text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <a>{{item.title | translate | async}}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\" far fa-chevron-right\" class=\"ax-text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n </axp-layout-content>\n\n @if(vm.isDirty() )\n {\n <axp-layout-footer>\n <axp-layout-suffix>\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\" [text]=\"t('discard') | async\"\n (onClick)=\"vm.discard()\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\"\n [text]=\"((t(vm.layout.isSmall() ? 'Apply': 'Apply Changes')) | async)!\" (onClick)=\"vm.apply()\"\n [color]=\"'primary'\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer>\n }\n</axp-layout-simple-page>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8Da,uBAAuB,CAAA;AAlCpC,IAAA,WAAA,GAAA;AAoCc,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAM9C;AAJa,IAAA,YAAY,CAAC,CAA2B,EAAA;QAC9C,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;;8GALlB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,SAAA,EAHrB,CAAC,oBAAoB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3DrC,++KA6IyB,EAAA,MAAA,EAAA,CAAA,4PAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED9GjB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAA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A,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAC9B,2CAA2C,EAC3C,QAAA,EAAA,8BAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,2BAA2B,EAC3B,QAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,+BAA+B,iEAC/B,6BAA6B,EAAA,QAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAQxB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAlCnC,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACP,OAAA,EAAA;wBACL,YAAY;wBACZ,WAAW;wBACX,YAAY;;wBAEZ,iBAAiB;wBACjB,iBAAiB;wBACjB,gBAAgB;wBAChB,mBAAmB;wBACnB,mBAAmB;wBACnB,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,sBAAsB;;wBAEtB,mBAAmB;wBACnB,4BAA4B;wBAC5B,qCAAqC;wBACrC,mCAAmC;wBACnC,8BAA8B;wBAC9B,2CAA2C;wBAC3C,2BAA2B;wBAC3B,+BAA+B;wBAC/B;AACH,qBAAA,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA,CAAC,oBAAoB,CAAC,EAAA,QAAA,EAAA,++KAAA,EAAA,MAAA,EAAA,CAAA,4PAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { AXBadgeModule } from '@acorex/components/badge';
|
|
2
|
-
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
3
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
6
|
-
import * as i2 from '@acorex/components/form';
|
|
7
|
-
import { AXFormComponent, AXFormModule } from '@acorex/components/form';
|
|
8
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
9
|
-
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
10
|
-
import * as i6 from '@acorex/core/translation';
|
|
11
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
12
|
-
import { AXValidationModule } from '@acorex/core/validation';
|
|
13
|
-
import * as i6$1 from '@acorex/platform/layout/builder';
|
|
14
|
-
import { AXPWidgetContainerComponent, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
15
|
-
import { AXPSettingsViewModel } from '@acorex/platform/layout/setting';
|
|
16
|
-
import { AXPLayoutThemeService, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';
|
|
17
|
-
import * as i1 from '@angular/common';
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
19
|
-
import * as i0 from '@angular/core';
|
|
20
|
-
import { inject, Injector, viewChild, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
21
|
-
import { FormsModule } from '@angular/forms';
|
|
22
|
-
|
|
23
|
-
class AXPSettingsViewComponent {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.vm = inject(AXPSettingsViewModel);
|
|
26
|
-
this.injector = inject(Injector);
|
|
27
|
-
this.layoutService = inject(AXPLayoutThemeService);
|
|
28
|
-
this.from = viewChild(AXFormComponent);
|
|
29
|
-
this.container = viewChild(AXPWidgetContainerComponent);
|
|
30
|
-
this.#effect1 = effect(() => {
|
|
31
|
-
this.vm.isBusy.set(this.container()?.isBusy() ?? false);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
#effect1;
|
|
35
|
-
ngAfterViewInit() {
|
|
36
|
-
this.vm.form = this.from();
|
|
37
|
-
this.vm.builder = this.container().builderService;
|
|
38
|
-
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSettingsViewComponent, isStandalone: true, selector: "ng-component", host: { classAttribute: "ax-w-full" }, viewQueries: [{ propertyName: "from", first: true, predicate: AXFormComponent, descendants: true, isSignal: true }, { propertyName: "container", first: true, predicate: AXPWidgetContainerComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type:
|
|
41
|
-
//
|
|
42
|
-
AXDecoratorModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type:
|
|
43
|
-
//
|
|
44
|
-
AXPLayoutBuilderModule }, { kind: "component", type: i6$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], exportAs: ["widgetRenderer"] }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingsViewComponent, decorators: [{
|
|
47
|
-
type: Component,
|
|
48
|
-
args: [{ imports: [
|
|
49
|
-
CommonModule,
|
|
50
|
-
FormsModule,
|
|
51
|
-
//
|
|
52
|
-
AXDecoratorModule,
|
|
53
|
-
AXBreadcrumbsModule,
|
|
54
|
-
AXButtonModule,
|
|
55
|
-
AXBadgeModule,
|
|
56
|
-
AXTranslationModule,
|
|
57
|
-
AXSearchBoxModule,
|
|
58
|
-
AXDropdownButtonModule,
|
|
59
|
-
AXLoadingModule,
|
|
60
|
-
AXFormModule,
|
|
61
|
-
AXValidationModule,
|
|
62
|
-
//
|
|
63
|
-
AXPLayoutBuilderModule,
|
|
64
|
-
AXPThemeLayoutBlockComponent
|
|
65
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
66
|
-
class: 'ax-w-full',
|
|
67
|
-
}, template: "<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n" }]
|
|
68
|
-
}] });
|
|
69
|
-
|
|
70
|
-
export { AXPSettingsViewComponent };
|
|
71
|
-
//# sourceMappingURL=acorex-platform-themes-default-setting-view.component-BagAWM4W.mjs.map
|