@acorex/platform 19.1.3 → 19.1.4
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/index.d.ts +1 -0
- package/common/lib/app/application.types.d.ts +2 -2
- package/common/lib/file-storage/file-storage.service.d.ts +13 -0
- package/common/lib/file-storage/file-storage.types.d.ts +143 -0
- package/common/lib/file-storage/index.d.ts +2 -0
- package/common/lib/filters/filters.types.d.ts +2 -1
- package/common/lib/settings/setting-definition.provider.d.ts +12 -5
- package/common/lib/settings/setting.builder.d.ts +4 -3
- package/common/lib/settings/settings.provider.d.ts +2 -7
- package/common/lib/settings/settings.service.d.ts +19 -7
- package/common/lib/settings/settings.types.d.ts +15 -2
- package/core/utils/highlighter.d.ts +1 -1
- package/fesm2022/acorex-platform-common.mjs +194 -74
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +2 -2
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +245 -444
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +13 -13
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +59 -54
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-filters.mjs +82 -5
- package/fesm2022/acorex-platform-layout-filters.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-setting.mjs +73 -91
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts.mjs +3 -4
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs +108 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DAmHq1bt.mjs +369 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DAmHq1bt.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs +87 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs +130 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs +74 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs +73 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +20 -20
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +288 -81
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs → acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs} +18 -14
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-B_Gec5Qf.mjs → acorex-platform-widgets-checkbox-widget-designer.component-RCi5IJOR.mjs} +4 -4
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-B_Gec5Qf.mjs.map → acorex-platform-widgets-checkbox-widget-designer.component-RCi5IJOR.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs +64 -0
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-B2g0ct24.mjs → acorex-platform-widgets-color-box-widget-designer.component-CWhbgmDV.mjs} +4 -4
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-CWhbgmDV.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +1309 -334
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +9 -3
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/lib/builder/builder.module.d.ts +6 -7
- package/layout/builder/lib/builder/builder.service.d.ts +9 -10
- package/layout/builder/lib/builder/context-store.service.d.ts +33 -0
- package/layout/builder/lib/builder/index.d.ts +4 -2
- package/layout/builder/lib/builder/widget-catalog.d.ts +1 -1
- package/layout/builder/lib/builder/widget-container.component.d.ts +34 -9
- package/layout/builder/lib/builder/widget-groups.d.ts +1 -0
- package/layout/builder/lib/builder/widget-map.d.ts +43 -0
- package/layout/builder/lib/builder/{widget-renderer.component.directive.d.ts → widget-renderer.directive.d.ts} +26 -0
- package/layout/builder/lib/builder/widget-status.types.d.ts +14 -0
- package/layout/builder/lib/builder/widget.types.d.ts +41 -55
- package/layout/designer/lib/preview/preview-viewer.component.d.ts +2 -2
- package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +2 -2
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +7 -2
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +0 -1
- package/layout/filters/lib/filters.viewmodel.d.ts +13 -3
- package/layout/setting/lib/convert-setting-data.d.ts +0 -20
- package/layout/setting/lib/setting.viewmodel.d.ts +65 -4
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +15 -5
- package/package.json +15 -15
- package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +15 -5
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +15 -5
- package/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.d.ts +2 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +17 -6
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-filters/list-view-option-filters.component.d.ts +6 -3
- package/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.d.ts +2 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +15 -5
- package/themes/default/lib/layouts/filters-layout/simple-filter-builder/filters-view.component.d.ts +6 -5
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +15 -5
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +15 -5
- package/themes/default/lib/layouts/setting-layout/setting-page/setting-page.component.d.ts +0 -47
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +19 -5
- package/themes/shared/index.d.ts +3 -1
- package/themes/shared/lib/components/theme-slot.component.d.ts +23 -13
- package/themes/shared/lib/palette.provider.d.ts +9 -0
- package/themes/shared/lib/setting.keys.d.ts +7 -2
- package/themes/shared/lib/setting.provider.d.ts +1 -0
- package/themes/shared/lib/shared.module.d.ts +2 -1
- package/themes/shared/lib/{services/theme.service.d.ts → theme.service.d.ts} +16 -24
- package/themes/shared/lib/theme.types.d.ts +25 -0
- package/themes/shared/lib/widgets/theme-color-selection/index.d.ts +2 -0
- package/themes/shared/lib/widgets/theme-color-selection/theme-color-selection-widget-edit.component.d.ts +6 -0
- package/themes/shared/lib/widgets/theme-color-selection/theme-color-selection-widget.config.d.ts +7 -0
- package/widgets/lib/properties/layout.props.d.ts +1 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-column.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-designer.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-edit.component.d.ts +18 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-print.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-view.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/advance/avatar/index.d.ts +6 -0
- package/widgets/lib/widgets/advance/map/map-box-widget-edit.component.d.ts +9 -5
- package/widgets/lib/widgets/advance/map/map-box-widget-view.component.d.ts +6 -4
- package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/editors/toggle/toggle-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/filters/operations/operations.component.d.ts +9 -0
- package/widgets/lib/widgets/filters/string-filter/index.d.ts +2 -0
- package/widgets/lib/widgets/filters/string-filter/string-filter-widget-edit.component.d.ts +11 -0
- package/widgets/lib/widgets/filters/string-filter/string-filter-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/index.d.ts +5 -1
- package/widgets/lib/widgets/property-editors/border/border-widget-editor.component.d.ts +29 -7
- package/widgets/lib/widgets/property-editors/border/index.d.ts +0 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +31 -0
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget.type.d.ts +15 -0
- package/widgets/lib/widgets/property-editors/flex-options/index.d.ts +3 -0
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +72 -0
- package/widgets/lib/widgets/property-editors/property-editor.type.d.ts +35 -0
- package/widgets/lib/widgets/property-editors/spacing/index.d.ts +0 -1
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-editor.component.d.ts +11 -9
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs +0 -108
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs +0 -368
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs +0 -87
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs +0 -130
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs +0 -78
- package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs +0 -58
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs +0 -72
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-B2g0ct24.mjs.map +0 -1
- package/layout/builder/lib/builder/widget-renderer.component.d.ts +0 -48
- package/widgets/lib/widgets/property-editors/border/border-widget-type.d.ts +0 -18
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-type.d.ts +0 -16
|
@@ -13,6 +13,7 @@ export * from './editors/select';
|
|
|
13
13
|
export * from './editors/selection-list';
|
|
14
14
|
export * from './editors/text';
|
|
15
15
|
export * from './editors/toggle';
|
|
16
|
+
export * from './advance/avatar';
|
|
16
17
|
export * from './advance/file';
|
|
17
18
|
export * from './advance/gallery';
|
|
18
19
|
export * from './advance/map';
|
|
@@ -20,5 +21,8 @@ export * from './advance/signature';
|
|
|
20
21
|
export * from './layout/block';
|
|
21
22
|
export * from './layout/page';
|
|
22
23
|
export * from './layout/repeater';
|
|
23
|
-
export * from './property-editors/spacing';
|
|
24
24
|
export * from './property-editors/border';
|
|
25
|
+
export * from './property-editors/flex-options';
|
|
26
|
+
export * from './property-editors/property-editor-helper';
|
|
27
|
+
export * from './property-editors/property-editor.type';
|
|
28
|
+
export * from './property-editors/spacing';
|
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
import { AXValueChangedEvent } from '@acorex/components/common';
|
|
2
1
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
3
|
-
import {
|
|
2
|
+
import { AXPBorderBox, AXPBorderBoxString, AXPPropertyEditorCornerValues, AXPPropertyEditorSideValues } from '../property-editor.type';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AXPBorderWidgetEditComponent extends AXPWidgetComponent<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private
|
|
4
|
+
export declare class AXPBorderWidgetEditComponent extends AXPWidgetComponent<AXPBorderBoxString> {
|
|
5
|
+
private el;
|
|
6
|
+
private allwidth;
|
|
7
|
+
private allcolor;
|
|
8
|
+
private allstyle;
|
|
9
|
+
protected allRadius: import("@angular/core").WritableSignal<number>;
|
|
10
|
+
private units;
|
|
11
|
+
private lastRadius;
|
|
12
|
+
protected rendered: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
protected currentActiveSide: import("@angular/core").WritableSignal<AXPPropertyEditorSideValues | "all">;
|
|
14
|
+
protected currentActiveRadiusSide: import("@angular/core").WritableSignal<AXPPropertyEditorCornerValues | "all" | "sides">;
|
|
15
|
+
private allBorderEl;
|
|
16
|
+
private allRadiusEl;
|
|
17
|
+
private currentActiveBorderEl?;
|
|
18
|
+
private currentActiveRadiusEl?;
|
|
19
|
+
protected calculatedValues: import("@angular/core").WritableSignal<AXPBorderBox<string | number>>;
|
|
20
|
+
protected setBorder(value: number | [number, number] | string, type: keyof AXPBorderBox, side: AXPPropertyEditorCornerValues | AXPPropertyEditorSideValues | 'all'): void;
|
|
21
|
+
private updateAllValues;
|
|
22
|
+
private getUpdatedAllValues;
|
|
23
|
+
protected shownWidth: import("@angular/core").Signal<number>;
|
|
24
|
+
protected shownColor: import("@angular/core").Signal<string>;
|
|
25
|
+
protected shownStyle: import("@angular/core").Signal<string>;
|
|
26
|
+
protected handleActiveBorderSide(event: PointerEvent): void;
|
|
27
|
+
protected handleActiveRadiusSide(event: PointerEvent): void;
|
|
28
|
+
private afterRender;
|
|
29
|
+
private initializeBorder;
|
|
30
|
+
private initializeRadius;
|
|
31
|
+
private createUniformValues;
|
|
10
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPBorderWidgetEditComponent, never>;
|
|
11
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPBorderWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
12
34
|
}
|
package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';
|
|
2
|
+
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
3
|
+
import { AXPFlexDataSource, AXPFlexDirection, AXPFlexSidesData } from './flex-options-widget.type';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AXPFlexOptionsWidgetEditComponent extends AXPWidgetComponent {
|
|
6
|
+
protected flexSides: AXPFlexSidesData[];
|
|
7
|
+
protected flexDirection: import("@angular/core").WritableSignal<AXPFlexDirection>;
|
|
8
|
+
protected flexDirectionIsColumn: import("@angular/core").Signal<boolean>;
|
|
9
|
+
protected gapMode: import("@angular/core").WritableSignal<"single" | "dual">;
|
|
10
|
+
protected gap: import("@angular/core").WritableSignal<Record<"both" | "x" | "y", number>>;
|
|
11
|
+
protected selectedJustify: import("@angular/core").WritableSignal<AXPFlexDataSource>;
|
|
12
|
+
protected selectedAlign: import("@angular/core").WritableSignal<AXPFlexDataSource>;
|
|
13
|
+
protected hoveredAlign: import("@angular/core").WritableSignal<string | null>;
|
|
14
|
+
protected hoveredJustify: import("@angular/core").WritableSignal<string | null>;
|
|
15
|
+
protected clickedAlign: import("@angular/core").WritableSignal<string>;
|
|
16
|
+
protected clickedJustify: import("@angular/core").WritableSignal<string>;
|
|
17
|
+
protected setFlexMode(): void;
|
|
18
|
+
protected setFlexDirection(type: AXPFlexDirection): void;
|
|
19
|
+
protected setGap(size: number, side: 'both' | 'x' | 'y'): void;
|
|
20
|
+
protected onClick(data: AXPFlexSidesData): void;
|
|
21
|
+
protected onHover(data: AXPFlexSidesData): void;
|
|
22
|
+
protected onHoverLeave(): void;
|
|
23
|
+
protected onJustifyChange(event: AXValueChangedEvent<any>): void;
|
|
24
|
+
protected onAlignChange(event: AXValueChangedEvent<any>): void;
|
|
25
|
+
protected justifyDataSource: AXDataSource<AXPFlexDataSource>;
|
|
26
|
+
protected alignDataSource: AXDataSource<AXPFlexDataSource>;
|
|
27
|
+
findAlignNameById: (id: string) => string | undefined;
|
|
28
|
+
findJustifyNameById: (id: string) => string | undefined;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPFlexOptionsWidgetEditComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPFlexOptionsWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type AXPFlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
2
|
+
export type AXPFlexSides = 'top-left' | 'top-center' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
3
|
+
export interface AXPFlexSidesData {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
align: string;
|
|
7
|
+
justify: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AXPFlexDataSource {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const AXP_Flex_Sides: AXPFlexSidesData[];
|
|
14
|
+
export declare const AXP_Flex_Justify: AXPFlexDataSource[];
|
|
15
|
+
export declare const AXP_Flex_Align: AXPFlexDataSource[];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { AXPBorderBox, AXPBorderBoxString, AXPSpacingBox, AXPSpacingBoxString } from './property-editor.type';
|
|
2
|
+
/**
|
|
3
|
+
* Utility class for parsing and handling property editor values like borders, spacing, and units.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AXPPropertyEditorHelper {
|
|
6
|
+
/**
|
|
7
|
+
* Expands shorthand input values into full sets for sides or corners.
|
|
8
|
+
* @param values - Array of input values.
|
|
9
|
+
* @returns Expanded array of values.
|
|
10
|
+
*/
|
|
11
|
+
private static expandShorthand;
|
|
12
|
+
/**
|
|
13
|
+
* @param values An array of four values to condense.
|
|
14
|
+
* @returns A condensed string representation of the values.
|
|
15
|
+
*/
|
|
16
|
+
private static condenseShorthand;
|
|
17
|
+
/**
|
|
18
|
+
* Parses sides (top, left, bottom, right) from a string.
|
|
19
|
+
* @param input - Input string.
|
|
20
|
+
* @returns Parsed sides object.
|
|
21
|
+
*/
|
|
22
|
+
private static parseSides;
|
|
23
|
+
private static parseSidesWithUnits;
|
|
24
|
+
/**
|
|
25
|
+
* Parses corners (top-left, top-right, bottom-left, bottom-right) from a string.
|
|
26
|
+
* @param input - Input string.
|
|
27
|
+
* @returns Parsed corners object.
|
|
28
|
+
*/
|
|
29
|
+
private static parseCorners;
|
|
30
|
+
/**
|
|
31
|
+
* Parses a spacing box from strings for margin and padding.
|
|
32
|
+
* @param input - Spacing box string input.
|
|
33
|
+
* @returns Parsed spacing box.
|
|
34
|
+
*/
|
|
35
|
+
static parseSpacingBox(input: AXPSpacingBoxString): AXPSpacingBox<number>;
|
|
36
|
+
/**
|
|
37
|
+
* Parses a border box from strings for width, radius, color, and style.
|
|
38
|
+
* @param input - Border box string input.
|
|
39
|
+
* @returns Parsed border box.
|
|
40
|
+
*/
|
|
41
|
+
static parseBorderBox(input: AXPBorderBoxString): AXPBorderBox<number | string>;
|
|
42
|
+
/**
|
|
43
|
+
* Reverses a spacing box object into a string representation.
|
|
44
|
+
* @param input - Spacing box object.
|
|
45
|
+
* @param units - Units for margin and padding.
|
|
46
|
+
* @returns String representation of the spacing box.
|
|
47
|
+
*/
|
|
48
|
+
static parseSpacingBoxReverse(input: AXPSpacingBox<number>, units: AXPSpacingBox<string>): AXPSpacingBoxString;
|
|
49
|
+
/**
|
|
50
|
+
* Reverses a border box object into a string representation.
|
|
51
|
+
* @param input - Border box object.
|
|
52
|
+
* @param units - Units for width, radius, color, and style.
|
|
53
|
+
* @returns String representation of the border box.
|
|
54
|
+
*/
|
|
55
|
+
static parseBorderBoxReverse(input: AXPBorderBox<number | string>, units: AXPBorderBox<string>): AXPBorderBoxString;
|
|
56
|
+
/**
|
|
57
|
+
* Parses a value with a unit (e.g., "20px") and returns its numeric value and unit.
|
|
58
|
+
* @param input - Input string or number.
|
|
59
|
+
* @returns Object with value and unit.
|
|
60
|
+
*/
|
|
61
|
+
static getValueWithUnit(input: string | number): {
|
|
62
|
+
value: number;
|
|
63
|
+
unit: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Reverses a numeric value and unit into a single string.
|
|
67
|
+
* @param value - Numeric value.
|
|
68
|
+
* @param unit - Unit string.
|
|
69
|
+
* @returns Combined string.
|
|
70
|
+
*/
|
|
71
|
+
static getValueFromUnit(value: number, unit: string): string;
|
|
72
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type AXPPropertyEditorSideValues = 'top' | 'left' | 'bottom' | 'right';
|
|
2
|
+
export type AXPPropertyEditorCornerValues = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3
|
+
export type AXPPropertyEditorSideGeneric<T extends string, U extends string | number = string> = Record<T, U>;
|
|
4
|
+
export type AXPPropertySides<T extends string | number = string> = AXPPropertyEditorSideGeneric<AXPPropertyEditorSideValues, T>;
|
|
5
|
+
export type AXPPropertyCorners<T extends string | number = string> = AXPPropertyEditorSideGeneric<AXPPropertyEditorCornerValues, T>;
|
|
6
|
+
export interface AXPSpacingBox<T extends string | number = string> {
|
|
7
|
+
margin: AXPPropertySides<T>;
|
|
8
|
+
padding: AXPPropertySides<T>;
|
|
9
|
+
}
|
|
10
|
+
export interface AXPBorderBox<T extends string | number = string> {
|
|
11
|
+
width: AXPPropertySides<T>;
|
|
12
|
+
radius: AXPPropertyCorners<T>;
|
|
13
|
+
color: AXPPropertySides<T>;
|
|
14
|
+
style: AXPPropertySides<T>;
|
|
15
|
+
}
|
|
16
|
+
export interface AXPSpacingBoxString {
|
|
17
|
+
margin: string;
|
|
18
|
+
padding: string;
|
|
19
|
+
}
|
|
20
|
+
export interface AXPBorderBoxString {
|
|
21
|
+
width: string;
|
|
22
|
+
radius: string;
|
|
23
|
+
color: string;
|
|
24
|
+
style: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AXPSpacingBoxDefaultValues {
|
|
27
|
+
label: string;
|
|
28
|
+
value: number;
|
|
29
|
+
colspan?: number;
|
|
30
|
+
rowspan?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const AXP_default_Border_Box_Value: AXPBorderBox<string | number>;
|
|
33
|
+
export declare const AXP_default_Border_Box_Units: AXPBorderBox<string>;
|
|
34
|
+
export declare const AXP_default_Spacing_Box_Value: AXPSpacingBox<number>;
|
|
35
|
+
export declare const AXP_default_Spacing_Box_Units: AXPSpacingBox<string>;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { AXPopoverComponent } from '@acorex/components/popover';
|
|
2
2
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
3
|
-
import { AXPSpacingBox, AXPSpacingBoxDefaultValues,
|
|
3
|
+
import { AXPPropertyEditorSideValues, AXPSpacingBox, AXPSpacingBoxDefaultValues, AXPSpacingBoxString } from '../property-editor.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AXPSpacingWidgetEditComponent extends AXPWidgetComponent<
|
|
5
|
+
export declare class AXPSpacingWidgetEditComponent extends AXPWidgetComponent<AXPSpacingBoxString> {
|
|
6
6
|
private ngZone;
|
|
7
|
-
|
|
8
|
-
protected
|
|
7
|
+
private rendered;
|
|
8
|
+
protected calculatedValues: import("@angular/core").WritableSignal<AXPSpacingBox<number>>;
|
|
9
|
+
protected originalValues: import("@angular/core").WritableSignal<AXPSpacingBox<number>>;
|
|
10
|
+
protected units: import("@angular/core").WritableSignal<AXPSpacingBox<string>>;
|
|
9
11
|
protected current: import("@angular/core").WritableSignal<{
|
|
10
12
|
type: keyof AXPSpacingBox;
|
|
11
|
-
side:
|
|
13
|
+
side: AXPPropertyEditorSideValues;
|
|
12
14
|
el?: HTMLElement | null;
|
|
13
15
|
}>;
|
|
14
16
|
protected FixedValues: AXPSpacingBoxDefaultValues[];
|
|
15
17
|
protected popover: import("@angular/core").Signal<AXPopoverComponent>;
|
|
16
|
-
protected setSpacing(input: number | Event, type: keyof AXPSpacingBox, side:
|
|
17
|
-
|
|
18
|
-
protected
|
|
19
|
-
protected listenToMove(event: Event, type: keyof AXPSpacingBox, side: keyof AXPSpacingBoxDimention): void;
|
|
18
|
+
protected setSpacing(input: number | Event, type: keyof AXPSpacingBox, side: AXPPropertyEditorSideValues): void;
|
|
19
|
+
protected openPopUp(event: Event, type: keyof AXPSpacingBox, side: AXPPropertyEditorSideValues): void;
|
|
20
|
+
protected listenToMove(event: Event, type: keyof AXPSpacingBox, side: AXPPropertyEditorSideValues): void;
|
|
20
21
|
private getClientCoordinates;
|
|
22
|
+
private afterRender;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSpacingWidgetEditComponent, never>;
|
|
22
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPSpacingWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
23
25
|
}
|
package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as i4 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import * as i5 from '@acorex/components/decorators';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import { AXDialogModule } from '@acorex/components/dialog';
|
|
6
|
-
import * as i7 from '@acorex/components/dropdown-button';
|
|
7
|
-
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
8
|
-
import * as i2 from '@acorex/components/form';
|
|
9
|
-
import { AXFormModule } from '@acorex/components/form';
|
|
10
|
-
import * as i6 from '@acorex/components/label';
|
|
11
|
-
import { AXLabelModule } from '@acorex/components/label';
|
|
12
|
-
import * as i4$1 from '@acorex/components/loading';
|
|
13
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
14
|
-
import { AXBasePageComponent } from '@acorex/components/page';
|
|
15
|
-
import { AXTabsModule } from '@acorex/components/tabs';
|
|
16
|
-
import { AXTooltipModule } from '@acorex/components/tooltip';
|
|
17
|
-
import * as i1 from '@angular/common';
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
19
|
-
import * as i0 from '@angular/core';
|
|
20
|
-
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
21
|
-
import { FormsModule } from '@angular/forms';
|
|
22
|
-
import { AXValidationModule } from '@acorex/core/validation';
|
|
23
|
-
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
24
|
-
import * as i10 from '@acorex/core/translation';
|
|
25
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
26
|
-
import { AXPGridLayoutDirective } from '@acorex/platform/common';
|
|
27
|
-
import * as i9 from '@acorex/platform/layout/builder';
|
|
28
|
-
import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
29
|
-
import { AXPWidgetsModule } from '@acorex/platform/widgets';
|
|
30
|
-
import { AXPWorkflowService } from '@acorex/platform/workflow';
|
|
31
|
-
|
|
32
|
-
class AXPEntityMasterCreateViewComponent extends AXBasePageComponent {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
this.workflow = inject(AXPWorkflowService);
|
|
36
|
-
}
|
|
37
|
-
handleCloseClick() {
|
|
38
|
-
this.close();
|
|
39
|
-
}
|
|
40
|
-
async handleBackClick() {
|
|
41
|
-
//await this.vm.executeCommand('back');
|
|
42
|
-
}
|
|
43
|
-
async handleNextClick(form) {
|
|
44
|
-
// const formResult = await form.validate();
|
|
45
|
-
// if (formResult.result) {
|
|
46
|
-
// await this.vm.executeCommand('next');
|
|
47
|
-
// }
|
|
48
|
-
}
|
|
49
|
-
async handleSaveClick(form) {
|
|
50
|
-
const formResult = await form.validate();
|
|
51
|
-
if (formResult.result) {
|
|
52
|
-
try {
|
|
53
|
-
const record = await this.vm.save();
|
|
54
|
-
this.close({ save: true, recordId: record?.id, item: record, redirect: this.vm.redirect() });
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
console.log(error);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async handleSaveAndNewClick(form) {
|
|
62
|
-
const formResult = await form.validate();
|
|
63
|
-
if (formResult.result) {
|
|
64
|
-
try {
|
|
65
|
-
const record = await this.vm.save();
|
|
66
|
-
this.close({ save: true, recordId: record.id, redirect: false });
|
|
67
|
-
await this.vm.createNewOne();
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
console.log(error);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
async handleContextChange(data) {
|
|
75
|
-
this.vm.context.set(data);
|
|
76
|
-
}
|
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMasterCreateViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
78
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPEntityMasterCreateViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div>\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"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 {\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 <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{\n attr.title() | translate | async\n }}</ax-label>\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"> </axp-widget-renderer>\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=\"ghost\" [text]=\"'cancel' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if(vm.canCreateNewOne())\n {\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>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { 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: AXDecoratorModule }, { 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-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i6.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i7.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i10.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type:
|
|
79
|
-
//
|
|
80
|
-
AXPLayoutBuilderModule }, { kind: "component", type: i9.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["onChanged", "contextChange"] }, { kind: "component", type: i9.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[gridLayout]", inputs: ["gridLayout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
81
|
-
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMasterCreateViewComponent, decorators: [{
|
|
83
|
-
type: Component,
|
|
84
|
-
args: [{ imports: [
|
|
85
|
-
CommonModule,
|
|
86
|
-
FormsModule,
|
|
87
|
-
AXFormModule,
|
|
88
|
-
AXDecoratorModule,
|
|
89
|
-
CommonModule,
|
|
90
|
-
AXButtonModule,
|
|
91
|
-
AXDialogModule,
|
|
92
|
-
AXLoadingModule,
|
|
93
|
-
AXTabsModule,
|
|
94
|
-
AXTooltipModule,
|
|
95
|
-
AXValidationModule,
|
|
96
|
-
AXLabelModule,
|
|
97
|
-
AXDropdownModule,
|
|
98
|
-
AXDropdownButtonModule,
|
|
99
|
-
AXTranslationModule,
|
|
100
|
-
//
|
|
101
|
-
AXPLayoutBuilderModule,
|
|
102
|
-
AXPWidgetsModule,
|
|
103
|
-
AXPGridLayoutDirective,
|
|
104
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"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 {\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 <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{\n attr.title() | translate | async\n }}</ax-label>\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"> </axp-widget-renderer>\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=\"ghost\" [text]=\"'cancel' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if(vm.canCreateNewOne())\n {\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>" }]
|
|
105
|
-
}] });
|
|
106
|
-
|
|
107
|
-
export { AXPEntityMasterCreateViewComponent };
|
|
108
|
-
//# sourceMappingURL=acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs.map
|
package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.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 } 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(data: any) {\n this.vm.context.set(data);\n }\n}\n","<div>\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"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 {\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 <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{\n attr.title() | translate | async\n }}</ax-label>\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"> </axp-widget-renderer>\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=\"ghost\" [text]=\"'cancel' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if(vm.canCreateNewOne())\n {\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"],"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,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;;YAC5F,OAAO,KAAK,EAAE;AACd,gBAAA,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;;;;IAKd,MAAM,qBAAqB,CAAC,IAAqB,EAAA;AACzD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE;AACxC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;AACrB,YAAA,IAAI;gBACF,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