@acorex/platform 20.2.4-next.6 → 20.2.4-next.8
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/core/index.d.ts +1 -8
- package/fesm2022/acorex-platform-layout-builder.mjs +1097 -630
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +79 -17
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +16 -16
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-lNF95FJv.mjs → acorex-platform-widgets-button-widget-designer.component-BJtkWusr.mjs} +3 -3
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-BJtkWusr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-DRsLkulH.mjs → acorex-platform-widgets-page-widget-designer.component-Cw9WcZze.mjs} +74 -64
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-Cw9WcZze.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-text-block-widget-designer.component-CCMQtH3e.mjs → acorex-platform-widgets-text-block-widget-designer.component-DaR4Nkv4.mjs} +8 -12
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-DaR4Nkv4.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +3405 -3540
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/index.d.ts +346 -178
- package/layout/designer/index.d.ts +15 -3
- package/package.json +12 -12
- package/widgets/index.d.ts +152 -220
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-lNF95FJv.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DRsLkulH.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-CCMQtH3e.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import { AXButtonModule } from '@acorex/components/button';
|
|
|
3
3
|
import * as i1 from '@acorex/components/decorators';
|
|
4
4
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
5
|
import * as i1$2 from '@acorex/platform/layout/builder';
|
|
6
|
-
import { AXPWidgetRegistryService, AXPWidgetGroupEnum, AXPWidgetsCatalog,
|
|
6
|
+
import { AXPWidgetRegistryService, AXPWidgetGroupEnum, AXPWidgetsCatalog, AXPLayoutBaseWidgetComponent, AXP_WIDGET_TOKEN, AXPWidgetStatus, AXPValueWidgetComponent, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { signal, computed, Injectable, inject, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, input, output, EventEmitter, HostBinding, Output, model, HostListener, Injector, NgZone, ViewContainerRef, Directive, ElementRef, ViewChild } from '@angular/core';
|
|
9
9
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
@@ -1011,7 +1011,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
1011
1011
|
class AXPDesignerAddWidgetButtonComponent {
|
|
1012
1012
|
constructor() {
|
|
1013
1013
|
this.designerService = inject(AXPDesignerService);
|
|
1014
|
-
this.parent = inject(
|
|
1014
|
+
this.parent = inject(AXPLayoutBaseWidgetComponent);
|
|
1015
1015
|
}
|
|
1016
1016
|
async handleClick(e) {
|
|
1017
1017
|
e.nativeEvent.stopPropagation();
|
|
@@ -1082,7 +1082,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
1082
1082
|
class AXPDesignerAddWidgetMiniButtonComponent {
|
|
1083
1083
|
constructor() {
|
|
1084
1084
|
this.designerService = inject(AXPDesignerService);
|
|
1085
|
-
this.parent = inject(
|
|
1085
|
+
this.parent = inject(AXPLayoutBaseWidgetComponent);
|
|
1086
1086
|
this.onClick = new EventEmitter();
|
|
1087
1087
|
}
|
|
1088
1088
|
async handleClick(e) {
|
|
@@ -1100,16 +1100,19 @@ class AXPDesignerAddWidgetMiniButtonComponent {
|
|
|
1100
1100
|
//
|
|
1101
1101
|
cls[`ax-flex`] = true;
|
|
1102
1102
|
cls[`ax-w-full`] = true;
|
|
1103
|
+
cls[`ax-h-full`] = true;
|
|
1103
1104
|
return cls;
|
|
1104
1105
|
}
|
|
1105
1106
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPDesignerAddWidgetMiniButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1106
1107
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: AXPDesignerAddWidgetMiniButtonComponent, isStandalone: true, selector: "axp-designer-add-widget-mini-button", outputs: { onClick: "onClick" }, host: { properties: { "class": "this.__class" } }, ngImport: i0, template: `
|
|
1107
1108
|
<div class="axp-empty-space">
|
|
1108
|
-
<div
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1109
|
+
<div class="ax-m-auto ax-py-4 ax-px-8">
|
|
1110
|
+
<div
|
|
1111
|
+
class="ax-flex ax-items-center ax-justify-center ax-size-4 hover:ax-scale-125 ax-cursor-pointer"
|
|
1112
|
+
(click)="handleClick($event)"
|
|
1113
|
+
>
|
|
1114
|
+
<i class="fa-solid fa-plus"></i>
|
|
1115
|
+
</div>
|
|
1113
1116
|
</div>
|
|
1114
1117
|
</div>
|
|
1115
1118
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXDecoratorModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
@@ -1120,17 +1123,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
1120
1123
|
selector: 'axp-designer-add-widget-mini-button',
|
|
1121
1124
|
template: `
|
|
1122
1125
|
<div class="axp-empty-space">
|
|
1123
|
-
<div
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1126
|
+
<div class="ax-m-auto ax-py-4 ax-px-8">
|
|
1127
|
+
<div
|
|
1128
|
+
class="ax-flex ax-items-center ax-justify-center ax-size-4 hover:ax-scale-125 ax-cursor-pointer"
|
|
1129
|
+
(click)="handleClick($event)"
|
|
1130
|
+
>
|
|
1131
|
+
<i class="fa-solid fa-plus"></i>
|
|
1132
|
+
</div>
|
|
1128
1133
|
</div>
|
|
1129
1134
|
</div>
|
|
1130
1135
|
`,
|
|
1131
1136
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1132
1137
|
imports: [AXButtonModule, AXDecoratorModule],
|
|
1133
|
-
encapsulation: ViewEncapsulation.None
|
|
1138
|
+
encapsulation: ViewEncapsulation.None,
|
|
1134
1139
|
}]
|
|
1135
1140
|
}], propDecorators: { onClick: [{
|
|
1136
1141
|
type: Output
|
|
@@ -1139,6 +1144,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
1139
1144
|
args: ['class']
|
|
1140
1145
|
}] } });
|
|
1141
1146
|
|
|
1147
|
+
class AXPDesignerFlexDrawerComponent {
|
|
1148
|
+
constructor() {
|
|
1149
|
+
this.itemsCount = model(12, ...(ngDevMode ? [{ debugName: "itemsCount", alias: 'items' }] : [{ alias: 'items' }]));
|
|
1150
|
+
this.onSelect = output();
|
|
1151
|
+
this.items = computed(() => Array.from({ length: this.itemsCount() }).map((v, index) => index + 1), ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
1152
|
+
this.range = signal(0, ...(ngDevMode ? [{ debugName: "range" }] : []));
|
|
1153
|
+
}
|
|
1154
|
+
handleMouseHover(c) {
|
|
1155
|
+
this.range.set(c);
|
|
1156
|
+
}
|
|
1157
|
+
handleClick(c) {
|
|
1158
|
+
this.onSelect.emit(c);
|
|
1159
|
+
}
|
|
1160
|
+
handleMouseLeave(event) {
|
|
1161
|
+
this.range.set(0);
|
|
1162
|
+
}
|
|
1163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPDesignerFlexDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1164
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: AXPDesignerFlexDrawerComponent, isStandalone: true, selector: "axp-designer-flex-drawer", inputs: { itemsCount: { classPropertyName: "itemsCount", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemsCount: "itemsChange", onSelect: "onSelect" }, host: { listeners: { "mouseleave": "handleMouseLeave($event)" } }, ngImport: i0, template: `
|
|
1165
|
+
<table class="table-picker">
|
|
1166
|
+
<tbody>
|
|
1167
|
+
<tr>
|
|
1168
|
+
@for (c of items(); track $index) {
|
|
1169
|
+
<td (mouseenter)="handleMouseHover(c)" [class.picked]="c <= range()" (click)="handleClick(c)"></td>
|
|
1170
|
+
}
|
|
1171
|
+
</tr>
|
|
1172
|
+
<tr>
|
|
1173
|
+
<td [attr.colspan]="items().length" class="ax-text-center">
|
|
1174
|
+
<small>{{ range() }}</small>
|
|
1175
|
+
</td>
|
|
1176
|
+
</tr>
|
|
1177
|
+
</tbody>
|
|
1178
|
+
</table>
|
|
1179
|
+
`, isInline: true, styles: [":host{width:100%}:host table{width:100%;border-collapse:collapse;--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}:host table td{height:2.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1))}:host table td:after{content:\"\";display:block}:host table td.picked{border-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-primary-100),var(--tw-bg-opacity, 1))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1180
|
+
}
|
|
1181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPDesignerFlexDrawerComponent, decorators: [{
|
|
1182
|
+
type: Component,
|
|
1183
|
+
args: [{ selector: 'axp-designer-flex-drawer', template: `
|
|
1184
|
+
<table class="table-picker">
|
|
1185
|
+
<tbody>
|
|
1186
|
+
<tr>
|
|
1187
|
+
@for (c of items(); track $index) {
|
|
1188
|
+
<td (mouseenter)="handleMouseHover(c)" [class.picked]="c <= range()" (click)="handleClick(c)"></td>
|
|
1189
|
+
}
|
|
1190
|
+
</tr>
|
|
1191
|
+
<tr>
|
|
1192
|
+
<td [attr.colspan]="items().length" class="ax-text-center">
|
|
1193
|
+
<small>{{ range() }}</small>
|
|
1194
|
+
</td>
|
|
1195
|
+
</tr>
|
|
1196
|
+
</tbody>
|
|
1197
|
+
</table>
|
|
1198
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [], styles: [":host{width:100%}:host table{width:100%;border-collapse:collapse;--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}:host table td{height:2.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1))}:host table td:after{content:\"\";display:block}:host table td.picked{border-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-primary-100),var(--tw-bg-opacity, 1))}\n"] }]
|
|
1199
|
+
}], propDecorators: { handleMouseLeave: [{
|
|
1200
|
+
type: HostListener,
|
|
1201
|
+
args: ['mouseleave', ['$event']]
|
|
1202
|
+
}] } });
|
|
1203
|
+
|
|
1142
1204
|
class AXPDesignerGridDrawerComponent {
|
|
1143
1205
|
constructor() {
|
|
1144
1206
|
this.rowsCount = model(5, ...(ngDevMode ? [{ debugName: "rowsCount", alias: 'rows' }] : [{ alias: 'rows' }]));
|
|
@@ -1182,7 +1244,7 @@ class AXPDesignerGridDrawerComponent {
|
|
|
1182
1244
|
}
|
|
1183
1245
|
<tr>
|
|
1184
1246
|
<td [attr.colspan]="columns().length" class="ax-text-center">
|
|
1185
|
-
<small>{{ rangeC() }}
|
|
1247
|
+
<small>{{ rangeC() }}×{{ rangeR() }}</small>
|
|
1186
1248
|
</td>
|
|
1187
1249
|
</tr>
|
|
1188
1250
|
</tbody>
|
|
@@ -1207,7 +1269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
1207
1269
|
}
|
|
1208
1270
|
<tr>
|
|
1209
1271
|
<td [attr.colspan]="columns().length" class="ax-text-center">
|
|
1210
|
-
<small>{{ rangeC() }}
|
|
1272
|
+
<small>{{ rangeC() }}×{{ rangeR() }}</small>
|
|
1211
1273
|
</td>
|
|
1212
1274
|
</tr>
|
|
1213
1275
|
</tbody>
|
|
@@ -2399,5 +2461,5 @@ var preview_component = /*#__PURE__*/Object.freeze({
|
|
|
2399
2461
|
* Generated bundle index. Do not edit.
|
|
2400
2462
|
*/
|
|
2401
2463
|
|
|
2402
|
-
export { AXPDesignerAddWidgetButtonComponent, AXPDesignerAddWidgetLineButtonComponent, AXPDesignerAddWidgetMiniButtonComponent, AXPDesignerConnector, AXPDesignerGridDrawerComponent, AXPDesignerMessageKeys, AXPDesignerModes, AXPDesignerService, AXPDesignerWidgetPickerComponent, AXPLayoutDesignerComponent, AXPLayoutDesignerPreviewComponent, AXPLayoutDesignerPreviewViewerComponent, AXPTemplateLoadingStrategy, AXPWidgetDesignerRendererDirective, AXPWidgetPickerService, AXP_DESIGNER_ADD_WIDGET_MENU, AXP_DESIGNER_CLONE_MENU, AXP_DESIGNER_COPY_MENU, AXP_DESIGNER_CUT_MENU, AXP_DESIGNER_DELETE_WIDGET_MENU, AXP_DESIGNER_PASTE_MENU, AXP_DESIGNER_SAVE_AS_WIDGET_MENU, AXP_DESIGNER_SELECT_WIDGET_MENU, cloneWidgetMenu };
|
|
2464
|
+
export { AXPDesignerAddWidgetButtonComponent, AXPDesignerAddWidgetLineButtonComponent, AXPDesignerAddWidgetMiniButtonComponent, AXPDesignerConnector, AXPDesignerFlexDrawerComponent, AXPDesignerGridDrawerComponent, AXPDesignerMessageKeys, AXPDesignerModes, AXPDesignerService, AXPDesignerWidgetPickerComponent, AXPLayoutDesignerComponent, AXPLayoutDesignerPreviewComponent, AXPLayoutDesignerPreviewViewerComponent, AXPTemplateLoadingStrategy, AXPWidgetDesignerRendererDirective, AXPWidgetPickerService, AXP_DESIGNER_ADD_WIDGET_MENU, AXP_DESIGNER_CLONE_MENU, AXP_DESIGNER_COPY_MENU, AXP_DESIGNER_CUT_MENU, AXP_DESIGNER_DELETE_WIDGET_MENU, AXP_DESIGNER_PASTE_MENU, AXP_DESIGNER_SAVE_AS_WIDGET_MENU, AXP_DESIGNER_SELECT_WIDGET_MENU, cloneWidgetMenu };
|
|
2403
2465
|
//# sourceMappingURL=acorex-platform-layout-designer.mjs.map
|