@acorex-platform/framework-client 0.0.32 → 0.0.33
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/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +40 -42
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-D1prdDvf.mjs} +150 -61
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-D1prdDvf.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-EU1dgVH_.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-CeVGNzup.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-EU1dgVH_.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-CeVGNzup.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-DNBhGkO8.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-CFScb-L4.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-DNBhGkO8.mjs.map → acorex-platform-framework-client-layout-entity-bulk-entity.command-CFScb-L4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-DtNSVjeF.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-B17l6mbm.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-DtNSVjeF.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-B17l6mbm.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-D3pnOGmB.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-CRST84ou.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-D3pnOGmB.mjs.map → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-CRST84ou.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +167 -223
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +2 -2
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +38 -27
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-framework-client-layout-components.d.ts +2 -2
- package/types/acorex-platform-framework-client-layout-entity.d.ts +21 -7
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +14 -13
- package/types/acorex-platform-framework-client-themes-default.d.ts +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs.map +0 -1
|
@@ -30,10 +30,9 @@ import { FormsModule } from '@angular/forms';
|
|
|
30
30
|
import * as i3$1 from '@acorex/components/text-box';
|
|
31
31
|
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
32
32
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
33
|
-
import * as
|
|
33
|
+
import * as i1$2 from '@acorex/components/form';
|
|
34
34
|
import { AXFormModule } from '@acorex/components/form';
|
|
35
|
-
import
|
|
36
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
35
|
+
import { AXLookupComponent } from '@acorex/components/lookup';
|
|
37
36
|
|
|
38
37
|
var AXPThemeLayoutSetting;
|
|
39
38
|
(function (AXPThemeLayoutSetting) {
|
|
@@ -2469,6 +2468,8 @@ class AXPColorChooserWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2469
2468
|
this.colorService = inject(AXPColorChooserService);
|
|
2470
2469
|
this.colors = signal([], /* @ts-ignore */
|
|
2471
2470
|
...(ngDevMode ? [{ debugName: "colors" }] : /* istanbul ignore next */ []));
|
|
2471
|
+
this.lastSelectedColor = signal(undefined, /* @ts-ignore */
|
|
2472
|
+
...(ngDevMode ? [{ debugName: "lastSelectedColor" }] : /* istanbul ignore next */ []));
|
|
2472
2473
|
this.placeholder = computed(() => this.options()['placeholder'] ?? '', /* @ts-ignore */
|
|
2473
2474
|
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
2474
2475
|
this.selectedColor = computed(() => {
|
|
@@ -2493,14 +2494,20 @@ class AXPColorChooserWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2493
2494
|
this.colors.set(allColors);
|
|
2494
2495
|
super.ngOnInit();
|
|
2495
2496
|
}
|
|
2497
|
+
handleSelectionChanged(event) {
|
|
2498
|
+
const item = (event.items ?? [])[0];
|
|
2499
|
+
this.lastSelectedColor.set(item);
|
|
2500
|
+
}
|
|
2496
2501
|
handleValueChange(event) {
|
|
2497
2502
|
if (event.isUserInteraction) {
|
|
2498
2503
|
if (!event.value) {
|
|
2499
2504
|
this.setValue(undefined);
|
|
2500
2505
|
return;
|
|
2501
2506
|
}
|
|
2502
|
-
const color = event.
|
|
2503
|
-
|
|
2507
|
+
const color = this.lastSelectedColor() ?? this.colors().find((entry) => entry.name === event.value);
|
|
2508
|
+
if (!color) {
|
|
2509
|
+
return;
|
|
2510
|
+
}
|
|
2504
2511
|
const stringValue = `${color.color} ${color.background} ${color.border}`;
|
|
2505
2512
|
this.setValue(stringValue);
|
|
2506
2513
|
}
|
|
@@ -2530,43 +2537,45 @@ class AXPColorChooserWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2530
2537
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPColorChooserWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2531
2538
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPColorChooserWidgetEditComponent, isStandalone: true, selector: "ax-color-chooser-widget", host: { classAttribute: "block flex-1 w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
2532
2539
|
<ax-form-field>
|
|
2533
|
-
<ax-
|
|
2540
|
+
<ax-lookup
|
|
2541
|
+
mode="drop-down-list"
|
|
2534
2542
|
[dataSource]="colors()"
|
|
2535
2543
|
textField="title"
|
|
2536
2544
|
valueField="name"
|
|
2545
|
+
[searchable]="true"
|
|
2537
2546
|
[placeholder]="placeholder()"
|
|
2538
2547
|
[itemTemplate]="customItemTemplate"
|
|
2539
2548
|
[ngModel]="selectedColor()"
|
|
2540
2549
|
(onValueChanged)="handleValueChange($event)"
|
|
2550
|
+
(onSelectionChanged)="handleSelectionChanged($event)"
|
|
2541
2551
|
[selectedTemplate]="customItemTemplate"
|
|
2542
2552
|
>
|
|
2543
2553
|
<ng-template #customItemTemplate let-item>
|
|
2544
2554
|
<div class="flex items-center gap-2 p-2">
|
|
2545
|
-
@if (isHexSwatch(item
|
|
2555
|
+
@if (isHexSwatch(item)) {
|
|
2546
2556
|
<div
|
|
2547
2557
|
class="w-6 h-6 rounded flex items-center justify-center border border-solid"
|
|
2548
|
-
[style.background-color]="item.
|
|
2549
|
-
[style.border-color]="item.
|
|
2550
|
-
[style.color]="item.
|
|
2558
|
+
[style.background-color]="item.background"
|
|
2559
|
+
[style.border-color]="item.border"
|
|
2560
|
+
[style.color]="item.color"
|
|
2551
2561
|
>
|
|
2552
2562
|
<span>Aa</span>
|
|
2553
2563
|
</div>
|
|
2554
2564
|
} @else {
|
|
2555
2565
|
<div
|
|
2556
2566
|
class="w-6 h-6 rounded flex items-center justify-center border border-dashed border-black dark:border-white"
|
|
2557
|
-
[class]="item.
|
|
2567
|
+
[class]="item.background"
|
|
2558
2568
|
>
|
|
2559
|
-
<span [class]="item.
|
|
2569
|
+
<span [class]="item.color">Aa</span>
|
|
2560
2570
|
</div>
|
|
2561
2571
|
}
|
|
2562
|
-
<span>{{ item.
|
|
2572
|
+
<span>{{ item.title }}</span>
|
|
2563
2573
|
</div>
|
|
2564
2574
|
</ng-template>
|
|
2565
|
-
<ax-search-box look="fill"></ax-search-box>
|
|
2566
2575
|
<ax-validation-rule message="field can't be empty" rule="required"></ax-validation-rule>
|
|
2567
|
-
</ax-
|
|
2576
|
+
</ax-lookup>
|
|
2568
2577
|
</ax-form-field>
|
|
2569
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
2578
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AXLookupComponent, selector: "ax-lookup", inputs: ["name", "mode", "dataSource", "treeDataSource", "valueField", "textField", "disabledField", "columns", "treeParentField", "hasChildrenField", "searchable", "adaptivityEnabled", "caption", "alternate", "searchPlaceholder", "placeholder", "disabled", "readonly", "look", "itemHeight", "maxVisibleItems", "treeSelectionBehavior", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "value", "valueItems"], outputs: ["lookChange", "valueChange", "onValueChanged", "onSelectionChanged", "onFocus", "onBlur", "onItemClick", "onItemSelected", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1$2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "directive", type: i1$2.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2570
2579
|
}
|
|
2571
2580
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPColorChooserWidgetEditComponent, decorators: [{
|
|
2572
2581
|
type: Component,
|
|
@@ -2574,47 +2583,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2574
2583
|
selector: 'ax-color-chooser-widget',
|
|
2575
2584
|
template: `
|
|
2576
2585
|
<ax-form-field>
|
|
2577
|
-
<ax-
|
|
2586
|
+
<ax-lookup
|
|
2587
|
+
mode="drop-down-list"
|
|
2578
2588
|
[dataSource]="colors()"
|
|
2579
2589
|
textField="title"
|
|
2580
2590
|
valueField="name"
|
|
2591
|
+
[searchable]="true"
|
|
2581
2592
|
[placeholder]="placeholder()"
|
|
2582
2593
|
[itemTemplate]="customItemTemplate"
|
|
2583
2594
|
[ngModel]="selectedColor()"
|
|
2584
2595
|
(onValueChanged)="handleValueChange($event)"
|
|
2596
|
+
(onSelectionChanged)="handleSelectionChanged($event)"
|
|
2585
2597
|
[selectedTemplate]="customItemTemplate"
|
|
2586
2598
|
>
|
|
2587
2599
|
<ng-template #customItemTemplate let-item>
|
|
2588
2600
|
<div class="flex items-center gap-2 p-2">
|
|
2589
|
-
@if (isHexSwatch(item
|
|
2601
|
+
@if (isHexSwatch(item)) {
|
|
2590
2602
|
<div
|
|
2591
2603
|
class="w-6 h-6 rounded flex items-center justify-center border border-solid"
|
|
2592
|
-
[style.background-color]="item.
|
|
2593
|
-
[style.border-color]="item.
|
|
2594
|
-
[style.color]="item.
|
|
2604
|
+
[style.background-color]="item.background"
|
|
2605
|
+
[style.border-color]="item.border"
|
|
2606
|
+
[style.color]="item.color"
|
|
2595
2607
|
>
|
|
2596
2608
|
<span>Aa</span>
|
|
2597
2609
|
</div>
|
|
2598
2610
|
} @else {
|
|
2599
2611
|
<div
|
|
2600
2612
|
class="w-6 h-6 rounded flex items-center justify-center border border-dashed border-black dark:border-white"
|
|
2601
|
-
[class]="item.
|
|
2613
|
+
[class]="item.background"
|
|
2602
2614
|
>
|
|
2603
|
-
<span [class]="item.
|
|
2615
|
+
<span [class]="item.color">Aa</span>
|
|
2604
2616
|
</div>
|
|
2605
2617
|
}
|
|
2606
|
-
<span>{{ item.
|
|
2618
|
+
<span>{{ item.title }}</span>
|
|
2607
2619
|
</div>
|
|
2608
2620
|
</ng-template>
|
|
2609
|
-
<ax-search-box look="fill"></ax-search-box>
|
|
2610
2621
|
<ax-validation-rule message="field can't be empty" rule="required"></ax-validation-rule>
|
|
2611
|
-
</ax-
|
|
2622
|
+
</ax-lookup>
|
|
2612
2623
|
</ax-form-field>
|
|
2613
2624
|
`,
|
|
2614
2625
|
host: {
|
|
2615
2626
|
class: 'block flex-1 w-full',
|
|
2616
2627
|
},
|
|
2617
|
-
imports: [
|
|
2628
|
+
imports: [AXLookupComponent, AXFormModule, CommonModule, FormsModule],
|
|
2618
2629
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2619
2630
|
}]
|
|
2620
2631
|
}] });
|