@acorex/platform 19.3.4 → 19.3.5
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 +1 -1
- package/common/lib/data/filter-middleware.service.d.ts +1 -1
- package/common/lib/data/operators.service.d.ts +1 -1
- package/common/lib/utils/export-popup.d.ts +1 -1
- package/common/lib/utils/filter-cleaner.d.ts +1 -1
- package/common/lib/workflows/common.workflow.d.ts +1 -1
- package/core/lib/data/datasource-definition-provider.service.d.ts +1 -1
- package/core/lib/types/data.types.d.ts +1 -1
- package/core/lib/utils/data-conditioner.d.ts +1 -1
- package/fesm2022/acorex-platform-common.mjs +4 -6
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +1 -1
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +5 -13
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +15 -11
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +115 -103
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-filters.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cxi1w-iq.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +3 -3
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-CLna7DRq.mjs → acorex-platform-widgets-button-widget-designer.component-i8FcuktZ.mjs} +20 -18
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-i8FcuktZ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-16K2wwtu.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-DZD9AEmz.mjs} +68 -68
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-DZD9AEmz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-DJtxN1VV.mjs → acorex-platform-widgets-tabular-data-view-popup.component-CQT2kgt3.mjs} +4 -4
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-CQT2kgt3.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +1124 -1000
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/datasource-provider.service.d.ts +1 -1
- package/layout/builder/lib/builder/widget-base.component.d.ts +1 -1
- package/layout/components/lib/user-avatar/user-avatar.component.d.ts +1 -1
- package/layout/designer/lib/designer/components/add-widget-button/add-widget-button.component.d.ts +1 -1
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity.viewmodel.d.ts +1 -1
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +1 -1
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.d.ts +1 -1
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.d.ts +1 -1
- package/layout/entity/lib/widgets/tagable-box/tagable-box-widget-edit.component.d.ts +1 -1
- package/layout/filters/lib/filters.viewmodel.d.ts +1 -1
- package/package.json +1 -1
- package/themes/default/lib/layouts/base/page-layout/page-layout.component.d.ts +1 -1
- package/themes/default/lib/layouts/entity-layouts/entity-category/entity-category.component.d.ts +1 -1
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +1 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +1 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-toolbar-view/filters/entity-filter-toolbar.component.d.ts +1 -1
- package/themes/default/lib/layouts/root-layout/horizontal/horizontal-layout.component.d.ts +1 -1
- package/themes/default/lib/layouts/root-layout/vertical/vertical-layout.component.d.ts +1 -1
- package/widgets/lib/widgets/actions/button/button-widget-designer.component.d.ts +1 -1
- package/widgets/lib/widgets/actions/button/button-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/email/email-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/link/link-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/number-unit/number-unit-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/phone/phone-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/selection-list/selection-list-widget-designer.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-edit-popup.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-view-popup.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/text/text-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/time-duration/time-duration-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/toggle/toggle-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/toggle/toggle-widget.config.d.ts +1 -1
- package/widgets/lib/widgets/filters/boolean-filter/boolean-filter-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/filters/date-time-filter/date-time-filter-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/filters/number-filter/number-filter-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/filters/string-filter/string-filter-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/layout/panel/panel-widget-designer.component.d.ts +1 -1
- package/widgets/lib/widgets/layout/panel/panel-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/property-editors/advanced-grid-options/advanced-grid-options-widget-editor.component.d.ts +1 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +1 -1
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget-editor.component.d.ts +1 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-CLna7DRq.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-16K2wwtu.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-DJtxN1VV.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i1$3 from '@acorex/platform/layout/builder';
|
|
2
2
|
import { AXPWidgetsCatalog, createStringProperty, createBooleanProperty, createSelectProperty, cloneProperty, AXPLayoutWidgetComponent, AXPWidgetGroupEnum, AXP_WIDGETS_ACTION_CATEGORY, AXPValueWidgetComponent, AXP_WIDGETS_EDITOR_CATEGORY, AXPColumnWidgetComponent, AXPLayoutBuilderModule, createNumberProperty, AXPDataListWidgetComponent, AXPWidgetStatus, AXPPageStatus, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY } from '@acorex/platform/layout/builder';
|
|
3
|
-
import { AX_STYLE_COLOR_TYPES, AX_STYLE_LOOK_TYPES, AXDataSource } from '@acorex/
|
|
3
|
+
import { AX_STYLE_COLOR_TYPES, AX_STYLE_LOOK_TYPES, AXDataSource } from '@acorex/cdk/common';
|
|
4
4
|
import * as i1$2 from '@acorex/components/badge';
|
|
5
5
|
import { AXBadgeModule } from '@acorex/components/badge';
|
|
6
6
|
import * as i5 from '@acorex/components/button';
|
|
@@ -1012,14 +1012,15 @@ class AXPButtonWidgetViewComponent extends AXPLayoutWidgetComponent {
|
|
|
1012
1012
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPButtonWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1013
1013
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPButtonWidgetViewComponent, isStandalone: true, selector: "axp-button-widget", usesInheritance: true, ngImport: i0, template: `
|
|
1014
1014
|
<ax-button [disabled]="disabled()" [color]="color()" [look]="look()" [text]="text()">
|
|
1015
|
-
@if(icon() && text()){
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
} @else if(icon() && !text()) {
|
|
1020
|
-
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1015
|
+
@if (icon() && text()) {
|
|
1016
|
+
<ax-prefix
|
|
1017
|
+
><ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon
|
|
1018
|
+
></ax-prefix>
|
|
1019
|
+
} @else if (icon() && !text()) {
|
|
1020
|
+
<ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon>
|
|
1021
|
+
}
|
|
1022
|
+
@if (loading()) {
|
|
1023
|
+
<ax-loading> </ax-loading>
|
|
1023
1024
|
}
|
|
1024
1025
|
</ax-button>
|
|
1025
1026
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.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: AXBadgeModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -1030,19 +1031,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
1030
1031
|
selector: 'axp-button-widget',
|
|
1031
1032
|
template: `
|
|
1032
1033
|
<ax-button [disabled]="disabled()" [color]="color()" [look]="look()" [text]="text()">
|
|
1033
|
-
@if(icon() && text()){
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
} @else if(icon() && !text()) {
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1034
|
+
@if (icon() && text()) {
|
|
1035
|
+
<ax-prefix
|
|
1036
|
+
><ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon
|
|
1037
|
+
></ax-prefix>
|
|
1038
|
+
} @else if (icon() && !text()) {
|
|
1039
|
+
<ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon>
|
|
1040
|
+
}
|
|
1041
|
+
@if (loading()) {
|
|
1042
|
+
<ax-loading> </ax-loading>
|
|
1041
1043
|
}
|
|
1042
1044
|
</ax-button>
|
|
1043
1045
|
`,
|
|
1044
1046
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1045
|
-
imports: [CommonModule, AXButtonModule, AXLoadingModule, AXDecoratorModule, AXBadgeModule]
|
|
1047
|
+
imports: [CommonModule, AXButtonModule, AXLoadingModule, AXDecoratorModule, AXBadgeModule],
|
|
1046
1048
|
}]
|
|
1047
1049
|
}] });
|
|
1048
1050
|
|
|
@@ -1070,7 +1072,7 @@ const AXPButtonWidget = {
|
|
|
1070
1072
|
],
|
|
1071
1073
|
components: {
|
|
1072
1074
|
designer: {
|
|
1073
|
-
component: () => import('./acorex-platform-widgets-button-widget-designer.component-
|
|
1075
|
+
component: () => import('./acorex-platform-widgets-button-widget-designer.component-i8FcuktZ.mjs').then((c) => c.AXPButtonWidgetDesignerComponent),
|
|
1074
1076
|
},
|
|
1075
1077
|
view: {
|
|
1076
1078
|
component: () => Promise.resolve().then(function () { return buttonWidgetView_component; }).then((c) => c.AXPButtonWidgetViewComponent),
|
|
@@ -1445,61 +1447,64 @@ class AXPContactWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
1445
1447
|
}
|
|
1446
1448
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPContactWidgetEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1447
1449
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPContactWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `<div class="ax-grid ax-grid-cols-12 ax-gap-4 ax-auto-cols-max ">
|
|
1448
|
-
@for(item of internalValue();track $index) {
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1450
|
+
@for (item of internalValue(); track $index) {
|
|
1451
|
+
<ax-text-box
|
|
1452
|
+
[ngModel]="item.value"
|
|
1453
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
1454
|
+
type="text"
|
|
1455
|
+
name="value"
|
|
1456
|
+
[placeholder]="placeholder()"
|
|
1457
|
+
[ngClass]="generateClasses('value')"
|
|
1458
|
+
[disabled]="disabled()"
|
|
1459
|
+
>
|
|
1460
|
+
@for (validation of validationRules(); track $index) {
|
|
1461
|
+
<ax-validation-rule
|
|
1462
|
+
[rule]="validation.rule"
|
|
1463
|
+
[message]="validation.options?.message"
|
|
1464
|
+
[options]="validation.options"
|
|
1465
|
+
></ax-validation-rule>
|
|
1466
|
+
}
|
|
1467
|
+
@if (type() === 'email') {
|
|
1468
|
+
<ax-validation-rule rule="email"></ax-validation-rule>
|
|
1469
|
+
}
|
|
1470
|
+
<ax-validation-rule rule="required"></ax-validation-rule>
|
|
1471
|
+
</ax-text-box>
|
|
1472
|
+
@if (hasLabel()) {
|
|
1473
|
+
<ax-select-box
|
|
1474
|
+
[dataSource]="dataSource"
|
|
1475
|
+
[ngModel]="item.label"
|
|
1476
|
+
[disabled]="disabled()"
|
|
1477
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
1478
|
+
placeholder="{{ 'selectbox.popover.title' | translate | async }}"
|
|
1479
|
+
name="label"
|
|
1480
|
+
[ngClass]="generateClasses('label')"
|
|
1481
|
+
>
|
|
1482
|
+
</ax-select-box>
|
|
1466
1483
|
}
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
<ax-button
|
|
1493
|
-
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
1494
|
-
[disabled]="disabled()"
|
|
1495
|
-
look="twotone"
|
|
1496
|
-
(onClick)="addItem()"
|
|
1497
|
-
class="ax-col-start-8 ax-col-end-13 sm:ax-col-start-10 md:ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-10 "
|
|
1498
|
-
>
|
|
1499
|
-
<ax-prefix>
|
|
1500
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
1501
|
-
</ax-prefix>
|
|
1502
|
-
</ax-button>
|
|
1484
|
+
@if (multiple()) {
|
|
1485
|
+
<ax-button
|
|
1486
|
+
[disabled]="disabled()"
|
|
1487
|
+
look="twotone"
|
|
1488
|
+
color="danger"
|
|
1489
|
+
(onClick)="deleteItem($index)"
|
|
1490
|
+
class="ax-col-start-12 ax-col-end-13 ax-justify-self-end"
|
|
1491
|
+
>
|
|
1492
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
1493
|
+
</ax-button>
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
@if (multiple()) {
|
|
1497
|
+
<ax-button
|
|
1498
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
1499
|
+
[disabled]="disabled()"
|
|
1500
|
+
look="twotone"
|
|
1501
|
+
(onClick)="addItem()"
|
|
1502
|
+
class="ax-col-start-8 ax-col-end-13 sm:ax-col-start-10 md:ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-10 "
|
|
1503
|
+
>
|
|
1504
|
+
<ax-prefix>
|
|
1505
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
1506
|
+
</ax-prefix>
|
|
1507
|
+
</ax-button>
|
|
1503
1508
|
}
|
|
1504
1509
|
</div> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i3$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.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: AXTextBoxModule }, { kind: "component", type: i7.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1505
1510
|
}
|
|
@@ -1507,61 +1512,64 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
1507
1512
|
type: Component,
|
|
1508
1513
|
args: [{
|
|
1509
1514
|
template: `<div class="ax-grid ax-grid-cols-12 ax-gap-4 ax-auto-cols-max ">
|
|
1510
|
-
@for(item of internalValue();track $index) {
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1515
|
+
@for (item of internalValue(); track $index) {
|
|
1516
|
+
<ax-text-box
|
|
1517
|
+
[ngModel]="item.value"
|
|
1518
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
1519
|
+
type="text"
|
|
1520
|
+
name="value"
|
|
1521
|
+
[placeholder]="placeholder()"
|
|
1522
|
+
[ngClass]="generateClasses('value')"
|
|
1523
|
+
[disabled]="disabled()"
|
|
1524
|
+
>
|
|
1525
|
+
@for (validation of validationRules(); track $index) {
|
|
1526
|
+
<ax-validation-rule
|
|
1527
|
+
[rule]="validation.rule"
|
|
1528
|
+
[message]="validation.options?.message"
|
|
1529
|
+
[options]="validation.options"
|
|
1530
|
+
></ax-validation-rule>
|
|
1531
|
+
}
|
|
1532
|
+
@if (type() === 'email') {
|
|
1533
|
+
<ax-validation-rule rule="email"></ax-validation-rule>
|
|
1534
|
+
}
|
|
1535
|
+
<ax-validation-rule rule="required"></ax-validation-rule>
|
|
1536
|
+
</ax-text-box>
|
|
1537
|
+
@if (hasLabel()) {
|
|
1538
|
+
<ax-select-box
|
|
1539
|
+
[dataSource]="dataSource"
|
|
1540
|
+
[ngModel]="item.label"
|
|
1541
|
+
[disabled]="disabled()"
|
|
1542
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
1543
|
+
placeholder="{{ 'selectbox.popover.title' | translate | async }}"
|
|
1544
|
+
name="label"
|
|
1545
|
+
[ngClass]="generateClasses('label')"
|
|
1546
|
+
>
|
|
1547
|
+
</ax-select-box>
|
|
1528
1548
|
}
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
<ax-button
|
|
1555
|
-
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
1556
|
-
[disabled]="disabled()"
|
|
1557
|
-
look="twotone"
|
|
1558
|
-
(onClick)="addItem()"
|
|
1559
|
-
class="ax-col-start-8 ax-col-end-13 sm:ax-col-start-10 md:ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-10 "
|
|
1560
|
-
>
|
|
1561
|
-
<ax-prefix>
|
|
1562
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
1563
|
-
</ax-prefix>
|
|
1564
|
-
</ax-button>
|
|
1549
|
+
@if (multiple()) {
|
|
1550
|
+
<ax-button
|
|
1551
|
+
[disabled]="disabled()"
|
|
1552
|
+
look="twotone"
|
|
1553
|
+
color="danger"
|
|
1554
|
+
(onClick)="deleteItem($index)"
|
|
1555
|
+
class="ax-col-start-12 ax-col-end-13 ax-justify-self-end"
|
|
1556
|
+
>
|
|
1557
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
1558
|
+
</ax-button>
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
@if (multiple()) {
|
|
1562
|
+
<ax-button
|
|
1563
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
1564
|
+
[disabled]="disabled()"
|
|
1565
|
+
look="twotone"
|
|
1566
|
+
(onClick)="addItem()"
|
|
1567
|
+
class="ax-col-start-8 ax-col-end-13 sm:ax-col-start-10 md:ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-10 "
|
|
1568
|
+
>
|
|
1569
|
+
<ax-prefix>
|
|
1570
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
1571
|
+
</ax-prefix>
|
|
1572
|
+
</ax-button>
|
|
1565
1573
|
}
|
|
1566
1574
|
</div> `,
|
|
1567
1575
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1898,38 +1906,41 @@ class AXPDateTimeBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
1898
1906
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPDateTimeBoxWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
1899
1907
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
1900
1908
|
@for (datetime of internalValue(); track $index) {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
<ax-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1909
|
+
<ax-datetime-box
|
|
1910
|
+
class="ax-col-span-12"
|
|
1911
|
+
[ngModel]="datetime"
|
|
1912
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
1913
|
+
[disabled]="disabled()"
|
|
1914
|
+
[format]="calendarFormat()"
|
|
1915
|
+
[placeholder]="placeholder()"
|
|
1916
|
+
>
|
|
1917
|
+
@for (validation of validationRules(); track $index) {
|
|
1918
|
+
<ax-validation-rule
|
|
1919
|
+
[rule]="validation.rule"
|
|
1920
|
+
[message]="validation.options?.message"
|
|
1921
|
+
[options]="validation.options"
|
|
1922
|
+
></ax-validation-rule>
|
|
1923
|
+
}
|
|
1924
|
+
@if (clearButton()) {
|
|
1925
|
+
<ax-clear-button></ax-clear-button>
|
|
1926
|
+
}
|
|
1927
|
+
@if (multiple()) {
|
|
1928
|
+
<ax-suffix>
|
|
1929
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
1930
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
1931
|
+
</ax-button>
|
|
1932
|
+
</ax-suffix>
|
|
1933
|
+
}
|
|
1934
|
+
</ax-datetime-box>
|
|
1935
|
+
}
|
|
1936
|
+
@if (multiple()) {
|
|
1937
|
+
<ax-button
|
|
1938
|
+
class="ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-11 ax-col-end-13"
|
|
1939
|
+
[text]="!internalValue().length ? 'Add New' : 'Add Another'"
|
|
1940
|
+
look="twotone"
|
|
1941
|
+
(onClick)="addItem()"
|
|
1942
|
+
[disabled]="disabled()"
|
|
1943
|
+
></ax-button>
|
|
1933
1944
|
}
|
|
1934
1945
|
</div>
|
|
1935
1946
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXDateTimeBoxModule }, { kind: "component", type: i3$2.AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "depth", "id", "type", "look", "holidayDates", "allowTyping", "calendar", "picker", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onOpened", "onClosed", "readonlyChange", "disabledChange", "formatChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -1940,38 +1951,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
1940
1951
|
template: `
|
|
1941
1952
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
1942
1953
|
@for (datetime of internalValue(); track $index) {
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
<ax-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1954
|
+
<ax-datetime-box
|
|
1955
|
+
class="ax-col-span-12"
|
|
1956
|
+
[ngModel]="datetime"
|
|
1957
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
1958
|
+
[disabled]="disabled()"
|
|
1959
|
+
[format]="calendarFormat()"
|
|
1960
|
+
[placeholder]="placeholder()"
|
|
1961
|
+
>
|
|
1962
|
+
@for (validation of validationRules(); track $index) {
|
|
1963
|
+
<ax-validation-rule
|
|
1964
|
+
[rule]="validation.rule"
|
|
1965
|
+
[message]="validation.options?.message"
|
|
1966
|
+
[options]="validation.options"
|
|
1967
|
+
></ax-validation-rule>
|
|
1968
|
+
}
|
|
1969
|
+
@if (clearButton()) {
|
|
1970
|
+
<ax-clear-button></ax-clear-button>
|
|
1971
|
+
}
|
|
1972
|
+
@if (multiple()) {
|
|
1973
|
+
<ax-suffix>
|
|
1974
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
1975
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
1976
|
+
</ax-button>
|
|
1977
|
+
</ax-suffix>
|
|
1978
|
+
}
|
|
1979
|
+
</ax-datetime-box>
|
|
1980
|
+
}
|
|
1981
|
+
@if (multiple()) {
|
|
1982
|
+
<ax-button
|
|
1983
|
+
class="ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-11 ax-col-end-13"
|
|
1984
|
+
[text]="!internalValue().length ? 'Add New' : 'Add Another'"
|
|
1985
|
+
look="twotone"
|
|
1986
|
+
(onClick)="addItem()"
|
|
1987
|
+
[disabled]="disabled()"
|
|
1988
|
+
></ax-button>
|
|
1975
1989
|
}
|
|
1976
1990
|
</div>
|
|
1977
1991
|
`,
|
|
@@ -1986,7 +2000,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
1986
2000
|
AXDecoratorModule,
|
|
1987
2001
|
AXValidationModule,
|
|
1988
2002
|
],
|
|
1989
|
-
inputs: []
|
|
2003
|
+
inputs: [],
|
|
1990
2004
|
}]
|
|
1991
2005
|
}], propDecorators: { __class: [{
|
|
1992
2006
|
type: HostBinding,
|
|
@@ -2258,12 +2272,12 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2258
2272
|
constructor() {
|
|
2259
2273
|
super(...arguments);
|
|
2260
2274
|
this.validationService = inject(AXValidationService);
|
|
2261
|
-
this.multiple = computed(() => this.options()[
|
|
2262
|
-
this.disabled = computed(() => this.options()[
|
|
2263
|
-
this.clearButton = computed(() => this.options()[
|
|
2264
|
-
this.placeholder = computed(() => this.options()[
|
|
2265
|
-
this.hasLabel = computed(() => this.options()[
|
|
2266
|
-
this.lables = computed(() => this.options()[
|
|
2275
|
+
this.multiple = computed(() => this.options()['multiple']);
|
|
2276
|
+
this.disabled = computed(() => this.options()['disabled']);
|
|
2277
|
+
this.clearButton = computed(() => this.options()['clearButton'] ?? true);
|
|
2278
|
+
this.placeholder = computed(() => this.options()['placeholder']);
|
|
2279
|
+
this.hasLabel = computed(() => this.options()['hasLabel'] ?? true);
|
|
2280
|
+
this.lables = computed(() => this.options()['lables'] ?? ['Primary', 'Secondary']);
|
|
2267
2281
|
this.internalValue = computed(() => this.getValueAsArrayOfObjects());
|
|
2268
2282
|
this.convertItem = (item, e) => {
|
|
2269
2283
|
if (typeof item === 'object') {
|
|
@@ -2283,7 +2297,7 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2283
2297
|
}
|
|
2284
2298
|
handleValueChange(e, selectedIndex) {
|
|
2285
2299
|
if (e.isUserInteraction) {
|
|
2286
|
-
const newValues = this.internalValue().map((item, index) =>
|
|
2300
|
+
const newValues = this.internalValue().map((item, index) => selectedIndex === index ? this.convertItem(item, e) : item);
|
|
2287
2301
|
if (this.multiple()) {
|
|
2288
2302
|
this.setValue(newValues);
|
|
2289
2303
|
}
|
|
@@ -2294,7 +2308,7 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2294
2308
|
}
|
|
2295
2309
|
handleLabelChange(e, selectedIndex) {
|
|
2296
2310
|
if (e.isUserInteraction) {
|
|
2297
|
-
const newValues = this.internalValue().map((item, index) =>
|
|
2311
|
+
const newValues = this.internalValue().map((item, index) => selectedIndex === index ? { ...item, label: e.value } : item);
|
|
2298
2312
|
if (this.multiple()) {
|
|
2299
2313
|
this.setValue(newValues);
|
|
2300
2314
|
}
|
|
@@ -2320,10 +2334,8 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2320
2334
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPEmailBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2321
2335
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPEmailBoxWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
2322
2336
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
2323
|
-
@if(multiple())
|
|
2324
|
-
|
|
2325
|
-
@for(item of internalValue();track $index)
|
|
2326
|
-
{
|
|
2337
|
+
@if (multiple()) {
|
|
2338
|
+
@for (item of internalValue(); track $index) {
|
|
2327
2339
|
<ax-text-box
|
|
2328
2340
|
[ngModel]="item.value"
|
|
2329
2341
|
(onValueChanged)="handleValueChange($event, $index)"
|
|
@@ -2333,12 +2345,15 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2333
2345
|
[class.lg:!ax-col-end-12]="!hasLabel()"
|
|
2334
2346
|
>
|
|
2335
2347
|
@for (validation of validationRules(); track $index) {
|
|
2336
|
-
<ax-validation-rule
|
|
2348
|
+
<ax-validation-rule
|
|
2349
|
+
[rule]="validation.rule"
|
|
2350
|
+
[message]="validation.options?.message"
|
|
2351
|
+
[options]="validation.options"
|
|
2352
|
+
></ax-validation-rule>
|
|
2337
2353
|
}
|
|
2338
2354
|
<ax-validation-rule [rule]="'email'"></ax-validation-rule>
|
|
2339
2355
|
</ax-text-box>
|
|
2340
|
-
@if(hasLabel())
|
|
2341
|
-
{
|
|
2356
|
+
@if (hasLabel()) {
|
|
2342
2357
|
<ax-select-box
|
|
2343
2358
|
[dataSource]="lables()"
|
|
2344
2359
|
[ngModel]="item.label"
|
|
@@ -2353,7 +2368,8 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2353
2368
|
color="danger"
|
|
2354
2369
|
[disabled]="disabled()"
|
|
2355
2370
|
(onClick)="deleteItem($index)"
|
|
2356
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
2371
|
+
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
2372
|
+
>
|
|
2357
2373
|
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
2358
2374
|
</ax-button>
|
|
2359
2375
|
}
|
|
@@ -2362,14 +2378,13 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2362
2378
|
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
2363
2379
|
look="twotone"
|
|
2364
2380
|
(onClick)="addItem()"
|
|
2365
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
2381
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
2382
|
+
>
|
|
2366
2383
|
<ax-prefix>
|
|
2367
2384
|
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
2368
2385
|
</ax-prefix>
|
|
2369
2386
|
</ax-button>
|
|
2370
|
-
}
|
|
2371
|
-
@else
|
|
2372
|
-
{
|
|
2387
|
+
} @else {
|
|
2373
2388
|
<ax-text-box
|
|
2374
2389
|
[ngModel]="internalValue()[0].value"
|
|
2375
2390
|
(onValueChanged)="handleValueChange($event, 0)"
|
|
@@ -2377,12 +2392,17 @@ class AXPEmailBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2377
2392
|
[disabled]="disabled()"
|
|
2378
2393
|
type="text"
|
|
2379
2394
|
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
2380
|
-
[class.lg:!ax-col-end-13]="!hasLabel()"
|
|
2395
|
+
[class.lg:!ax-col-end-13]="!hasLabel()"
|
|
2396
|
+
>
|
|
2381
2397
|
@for (validation of validationRules(); track $index) {
|
|
2382
|
-
<ax-validation-rule
|
|
2398
|
+
<ax-validation-rule
|
|
2399
|
+
[rule]="validation.rule"
|
|
2400
|
+
[message]="validation.options?.message"
|
|
2401
|
+
[options]="validation.options"
|
|
2402
|
+
></ax-validation-rule>
|
|
2383
2403
|
}
|
|
2384
2404
|
</ax-text-box>
|
|
2385
|
-
@if(hasLabel()){
|
|
2405
|
+
@if (hasLabel()) {
|
|
2386
2406
|
<ax-select-box
|
|
2387
2407
|
[dataSource]="lables()"
|
|
2388
2408
|
[disabled]="disabled()"
|
|
@@ -2401,10 +2421,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2401
2421
|
args: [{
|
|
2402
2422
|
template: `
|
|
2403
2423
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
2404
|
-
@if(multiple())
|
|
2405
|
-
|
|
2406
|
-
@for(item of internalValue();track $index)
|
|
2407
|
-
{
|
|
2424
|
+
@if (multiple()) {
|
|
2425
|
+
@for (item of internalValue(); track $index) {
|
|
2408
2426
|
<ax-text-box
|
|
2409
2427
|
[ngModel]="item.value"
|
|
2410
2428
|
(onValueChanged)="handleValueChange($event, $index)"
|
|
@@ -2414,12 +2432,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2414
2432
|
[class.lg:!ax-col-end-12]="!hasLabel()"
|
|
2415
2433
|
>
|
|
2416
2434
|
@for (validation of validationRules(); track $index) {
|
|
2417
|
-
<ax-validation-rule
|
|
2435
|
+
<ax-validation-rule
|
|
2436
|
+
[rule]="validation.rule"
|
|
2437
|
+
[message]="validation.options?.message"
|
|
2438
|
+
[options]="validation.options"
|
|
2439
|
+
></ax-validation-rule>
|
|
2418
2440
|
}
|
|
2419
2441
|
<ax-validation-rule [rule]="'email'"></ax-validation-rule>
|
|
2420
2442
|
</ax-text-box>
|
|
2421
|
-
@if(hasLabel())
|
|
2422
|
-
{
|
|
2443
|
+
@if (hasLabel()) {
|
|
2423
2444
|
<ax-select-box
|
|
2424
2445
|
[dataSource]="lables()"
|
|
2425
2446
|
[ngModel]="item.label"
|
|
@@ -2434,7 +2455,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2434
2455
|
color="danger"
|
|
2435
2456
|
[disabled]="disabled()"
|
|
2436
2457
|
(onClick)="deleteItem($index)"
|
|
2437
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
2458
|
+
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
2459
|
+
>
|
|
2438
2460
|
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
2439
2461
|
</ax-button>
|
|
2440
2462
|
}
|
|
@@ -2443,14 +2465,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2443
2465
|
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
2444
2466
|
look="twotone"
|
|
2445
2467
|
(onClick)="addItem()"
|
|
2446
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
2468
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
2469
|
+
>
|
|
2447
2470
|
<ax-prefix>
|
|
2448
2471
|
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
2449
2472
|
</ax-prefix>
|
|
2450
2473
|
</ax-button>
|
|
2451
|
-
}
|
|
2452
|
-
@else
|
|
2453
|
-
{
|
|
2474
|
+
} @else {
|
|
2454
2475
|
<ax-text-box
|
|
2455
2476
|
[ngModel]="internalValue()[0].value"
|
|
2456
2477
|
(onValueChanged)="handleValueChange($event, 0)"
|
|
@@ -2458,12 +2479,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2458
2479
|
[disabled]="disabled()"
|
|
2459
2480
|
type="text"
|
|
2460
2481
|
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
2461
|
-
[class.lg:!ax-col-end-13]="!hasLabel()"
|
|
2482
|
+
[class.lg:!ax-col-end-13]="!hasLabel()"
|
|
2483
|
+
>
|
|
2462
2484
|
@for (validation of validationRules(); track $index) {
|
|
2463
|
-
<ax-validation-rule
|
|
2485
|
+
<ax-validation-rule
|
|
2486
|
+
[rule]="validation.rule"
|
|
2487
|
+
[message]="validation.options?.message"
|
|
2488
|
+
[options]="validation.options"
|
|
2489
|
+
></ax-validation-rule>
|
|
2464
2490
|
}
|
|
2465
2491
|
</ax-text-box>
|
|
2466
|
-
@if(hasLabel()){
|
|
2492
|
+
@if (hasLabel()) {
|
|
2467
2493
|
<ax-select-box
|
|
2468
2494
|
[dataSource]="lables()"
|
|
2469
2495
|
[disabled]="disabled()"
|
|
@@ -2477,8 +2503,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2477
2503
|
</div>
|
|
2478
2504
|
`,
|
|
2479
2505
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2480
|
-
imports: [
|
|
2481
|
-
|
|
2506
|
+
imports: [
|
|
2507
|
+
CommonModule,
|
|
2508
|
+
FormsModule,
|
|
2509
|
+
AXFormModule,
|
|
2510
|
+
AXButtonModule,
|
|
2511
|
+
AXDecoratorModule,
|
|
2512
|
+
AXSelectBoxModule,
|
|
2513
|
+
AXTextBoxModule,
|
|
2514
|
+
AXValidationModule,
|
|
2515
|
+
],
|
|
2516
|
+
inputs: [],
|
|
2482
2517
|
}]
|
|
2483
2518
|
}], propDecorators: { __class: [{
|
|
2484
2519
|
type: HostBinding,
|
|
@@ -2786,28 +2821,29 @@ class AXPLargeTextWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2786
2821
|
(onValueChanged)="handleValueChange($event)"
|
|
2787
2822
|
[placeholder]="placeholder()"
|
|
2788
2823
|
>
|
|
2789
|
-
@if(clearButton()){
|
|
2790
|
-
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2824
|
+
@if (clearButton()) {
|
|
2825
|
+
<ax-clear-button></ax-clear-button>
|
|
2826
|
+
}
|
|
2827
|
+
@for (validation of validationRules(); track $index) {
|
|
2828
|
+
<ax-validation-rule
|
|
2829
|
+
[rule]="validation.rule"
|
|
2830
|
+
[message]="validation.options?.message"
|
|
2831
|
+
[options]="validation.options"
|
|
2832
|
+
></ax-validation-rule>
|
|
2797
2833
|
}
|
|
2798
2834
|
</ax-text-area>
|
|
2799
|
-
@if(multiLanguage()){
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2835
|
+
@if (multiLanguage()) {
|
|
2836
|
+
<ax-button
|
|
2837
|
+
[text]="'multi-language' | translate | async"
|
|
2838
|
+
look="twotone"
|
|
2839
|
+
class="ax-col-start-8 md:ax-col-start-9 2xl:ax-col-start-10 ax-col-end-13"
|
|
2840
|
+
(onClick)="openMultiLanguagePopup()"
|
|
2841
|
+
[disabled]="disabled()"
|
|
2842
|
+
>
|
|
2843
|
+
<ax-suffix>
|
|
2844
|
+
<ax-icon class="fa-solid fa-earth-americas"></ax-icon>
|
|
2845
|
+
</ax-suffix>
|
|
2846
|
+
</ax-button>
|
|
2811
2847
|
}
|
|
2812
2848
|
</div>
|
|
2813
2849
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.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: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i5$2.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -2825,28 +2861,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2825
2861
|
(onValueChanged)="handleValueChange($event)"
|
|
2826
2862
|
[placeholder]="placeholder()"
|
|
2827
2863
|
>
|
|
2828
|
-
@if(clearButton()){
|
|
2829
|
-
|
|
2830
|
-
}
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2864
|
+
@if (clearButton()) {
|
|
2865
|
+
<ax-clear-button></ax-clear-button>
|
|
2866
|
+
}
|
|
2867
|
+
@for (validation of validationRules(); track $index) {
|
|
2868
|
+
<ax-validation-rule
|
|
2869
|
+
[rule]="validation.rule"
|
|
2870
|
+
[message]="validation.options?.message"
|
|
2871
|
+
[options]="validation.options"
|
|
2872
|
+
></ax-validation-rule>
|
|
2836
2873
|
}
|
|
2837
2874
|
</ax-text-area>
|
|
2838
|
-
@if(multiLanguage()){
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2875
|
+
@if (multiLanguage()) {
|
|
2876
|
+
<ax-button
|
|
2877
|
+
[text]="'multi-language' | translate | async"
|
|
2878
|
+
look="twotone"
|
|
2879
|
+
class="ax-col-start-8 md:ax-col-start-9 2xl:ax-col-start-10 ax-col-end-13"
|
|
2880
|
+
(onClick)="openMultiLanguagePopup()"
|
|
2881
|
+
[disabled]="disabled()"
|
|
2882
|
+
>
|
|
2883
|
+
<ax-suffix>
|
|
2884
|
+
<ax-icon class="fa-solid fa-earth-americas"></ax-icon>
|
|
2885
|
+
</ax-suffix>
|
|
2886
|
+
</ax-button>
|
|
2850
2887
|
}
|
|
2851
2888
|
</div>
|
|
2852
2889
|
`,
|
|
@@ -3157,7 +3194,11 @@ class AXPLinkWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3157
3194
|
handleValueChange(e, selectedIndex) {
|
|
3158
3195
|
const { name, value, isUserInteraction } = e;
|
|
3159
3196
|
if (isUserInteraction) {
|
|
3160
|
-
const newValues = this.internalValue().map((item, index) => selectedIndex === index
|
|
3197
|
+
const newValues = this.internalValue().map((item, index) => selectedIndex === index
|
|
3198
|
+
? name === 'value'
|
|
3199
|
+
? this.convertItem(item, e)
|
|
3200
|
+
: { ...item, [name]: value }
|
|
3201
|
+
: item);
|
|
3161
3202
|
console.log(newValues);
|
|
3162
3203
|
if (this.multiple())
|
|
3163
3204
|
this.setValue(newValues);
|
|
@@ -3257,188 +3298,216 @@ class AXPLinkWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3257
3298
|
}
|
|
3258
3299
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPLinkWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3259
3300
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPLinkWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
3260
|
-
@if(multiple())
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3301
|
+
@if (multiple()) {
|
|
3302
|
+
@for (item of internalValue(); track $index) {
|
|
3303
|
+
@if (item) {
|
|
3304
|
+
<!-- TODO need to fix multiple -->
|
|
3305
|
+
<ax-text-box
|
|
3306
|
+
[ngModel]="item.value"
|
|
3307
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3308
|
+
type="text"
|
|
3309
|
+
placeholder="Enter Link"
|
|
3310
|
+
class="ax-col-start-1 ax-col-end-13"
|
|
3311
|
+
[ngClass]="generateClasses('url', 'multiple')"
|
|
3312
|
+
>
|
|
3313
|
+
@for (validation of validationRules(); track $index) {
|
|
3314
|
+
<ax-validation-rule
|
|
3315
|
+
[rule]="validation.rule"
|
|
3316
|
+
[message]="validation.options?.message"
|
|
3317
|
+
[options]="validation.options"
|
|
3318
|
+
></ax-validation-rule>
|
|
3319
|
+
}
|
|
3320
|
+
</ax-text-box>
|
|
3321
|
+
@if (hasTitle()) {
|
|
3322
|
+
<ax-text-box
|
|
3323
|
+
[ngModel]="item.title"
|
|
3324
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3325
|
+
placeholder="Choose Title..."
|
|
3326
|
+
name="title"
|
|
3327
|
+
[ngClass]="generateClasses('title', 'multiple')"
|
|
3328
|
+
>
|
|
3329
|
+
</ax-text-box>
|
|
3330
|
+
}
|
|
3331
|
+
@if (hasLabel()) {
|
|
3332
|
+
<ax-select-box
|
|
3333
|
+
[dataSource]="labelTypes()"
|
|
3334
|
+
[ngModel]="item.label"
|
|
3335
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3336
|
+
placeholder="Choose Label..."
|
|
3337
|
+
name="label"
|
|
3338
|
+
[ngClass]="generateClasses('label', 'multiple')"
|
|
3339
|
+
>
|
|
3340
|
+
</ax-select-box>
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
<ax-button
|
|
3344
|
+
look="twotone"
|
|
3345
|
+
color="danger"
|
|
3346
|
+
(onClick)="deleteItem($index)"
|
|
3347
|
+
class="ax-col-start-12 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end !ax-h-full"
|
|
3348
|
+
>
|
|
3349
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
3350
|
+
</ax-button>
|
|
3272
3351
|
}
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
} @
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
</ax-prefix>
|
|
3312
|
-
</ax-button>
|
|
3313
|
-
} @else{
|
|
3314
|
-
<ax-text-box
|
|
3315
|
-
[ngClass]="generateClasses('url', 'single')"
|
|
3316
|
-
[ngModel]="internalValue()[0].value"
|
|
3317
|
-
(onValueChanged)="handleValueChange($event, 0)"
|
|
3318
|
-
type="text"
|
|
3319
|
-
name="value"
|
|
3320
|
-
placeholder="Link"
|
|
3321
|
-
class="ax-col-start-1 ax-col-end-13"
|
|
3322
|
-
>
|
|
3323
|
-
@for (validation of validationRules(); track $index) {
|
|
3324
|
-
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
3352
|
+
<ax-button
|
|
3353
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
3354
|
+
look="twotone"
|
|
3355
|
+
(onClick)="addItem()"
|
|
3356
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
3357
|
+
>
|
|
3358
|
+
<ax-prefix>
|
|
3359
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
3360
|
+
</ax-prefix>
|
|
3361
|
+
</ax-button>
|
|
3362
|
+
} @else {
|
|
3363
|
+
<ax-text-box
|
|
3364
|
+
[ngClass]="generateClasses('url', 'single')"
|
|
3365
|
+
[ngModel]="internalValue()[0].value"
|
|
3366
|
+
(onValueChanged)="handleValueChange($event, 0)"
|
|
3367
|
+
type="text"
|
|
3368
|
+
name="value"
|
|
3369
|
+
placeholder="Link"
|
|
3370
|
+
class="ax-col-start-1 ax-col-end-13"
|
|
3371
|
+
>
|
|
3372
|
+
@for (validation of validationRules(); track $index) {
|
|
3373
|
+
<ax-validation-rule
|
|
3374
|
+
[rule]="validation.rule"
|
|
3375
|
+
[message]="validation.options?.message"
|
|
3376
|
+
[options]="validation.options"
|
|
3377
|
+
></ax-validation-rule>
|
|
3378
|
+
}
|
|
3379
|
+
</ax-text-box>
|
|
3380
|
+
@if (hasTitle()) {
|
|
3381
|
+
<ax-text-box
|
|
3382
|
+
[ngClass]="generateClasses('title', 'single')"
|
|
3383
|
+
[ngModel]="internalValue()[0].title"
|
|
3384
|
+
(onValueChanged)="handleValueChange($event, 0)"
|
|
3385
|
+
type="text"
|
|
3386
|
+
name="title"
|
|
3387
|
+
placeholder="Title"
|
|
3388
|
+
>
|
|
3389
|
+
</ax-text-box>
|
|
3325
3390
|
}
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
}
|
|
3338
|
-
<ax-select-box
|
|
3339
|
-
[ngClass]="generateClasses('label', 'single')"
|
|
3340
|
-
[dataSource]="labelTypes()"
|
|
3341
|
-
[ngModel]="internalValue()[0].label"
|
|
3342
|
-
(onValueChanged)="handleValueChange($event, 0)"
|
|
3343
|
-
name="label"
|
|
3344
|
-
placeholder="Label"
|
|
3345
|
-
>
|
|
3346
|
-
</ax-select-box>
|
|
3347
|
-
} }
|
|
3391
|
+
@if (hasLabel()) {
|
|
3392
|
+
<ax-select-box
|
|
3393
|
+
[ngClass]="generateClasses('label', 'single')"
|
|
3394
|
+
[dataSource]="labelTypes()"
|
|
3395
|
+
[ngModel]="internalValue()[0].label"
|
|
3396
|
+
(onValueChanged)="handleValueChange($event, 0)"
|
|
3397
|
+
name="label"
|
|
3398
|
+
placeholder="Label"
|
|
3399
|
+
>
|
|
3400
|
+
</ax-select-box>
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3348
3403
|
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i3$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.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: AXTextBoxModule }, { kind: "component", type: i7.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXValidationModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3349
3404
|
}
|
|
3350
3405
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPLinkWidgetEditComponent, decorators: [{
|
|
3351
3406
|
type: Component,
|
|
3352
3407
|
args: [{
|
|
3353
3408
|
template: `<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
3354
|
-
@if(multiple())
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3409
|
+
@if (multiple()) {
|
|
3410
|
+
@for (item of internalValue(); track $index) {
|
|
3411
|
+
@if (item) {
|
|
3412
|
+
<!-- TODO need to fix multiple -->
|
|
3413
|
+
<ax-text-box
|
|
3414
|
+
[ngModel]="item.value"
|
|
3415
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3416
|
+
type="text"
|
|
3417
|
+
placeholder="Enter Link"
|
|
3418
|
+
class="ax-col-start-1 ax-col-end-13"
|
|
3419
|
+
[ngClass]="generateClasses('url', 'multiple')"
|
|
3420
|
+
>
|
|
3421
|
+
@for (validation of validationRules(); track $index) {
|
|
3422
|
+
<ax-validation-rule
|
|
3423
|
+
[rule]="validation.rule"
|
|
3424
|
+
[message]="validation.options?.message"
|
|
3425
|
+
[options]="validation.options"
|
|
3426
|
+
></ax-validation-rule>
|
|
3427
|
+
}
|
|
3428
|
+
</ax-text-box>
|
|
3429
|
+
@if (hasTitle()) {
|
|
3430
|
+
<ax-text-box
|
|
3431
|
+
[ngModel]="item.title"
|
|
3432
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3433
|
+
placeholder="Choose Title..."
|
|
3434
|
+
name="title"
|
|
3435
|
+
[ngClass]="generateClasses('title', 'multiple')"
|
|
3436
|
+
>
|
|
3437
|
+
</ax-text-box>
|
|
3438
|
+
}
|
|
3439
|
+
@if (hasLabel()) {
|
|
3440
|
+
<ax-select-box
|
|
3441
|
+
[dataSource]="labelTypes()"
|
|
3442
|
+
[ngModel]="item.label"
|
|
3443
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3444
|
+
placeholder="Choose Label..."
|
|
3445
|
+
name="label"
|
|
3446
|
+
[ngClass]="generateClasses('label', 'multiple')"
|
|
3447
|
+
>
|
|
3448
|
+
</ax-select-box>
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
<ax-button
|
|
3452
|
+
look="twotone"
|
|
3453
|
+
color="danger"
|
|
3454
|
+
(onClick)="deleteItem($index)"
|
|
3455
|
+
class="ax-col-start-12 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end !ax-h-full"
|
|
3456
|
+
>
|
|
3457
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
3458
|
+
</ax-button>
|
|
3366
3459
|
}
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
} @
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
</ax-prefix>
|
|
3406
|
-
</ax-button>
|
|
3407
|
-
} @else{
|
|
3408
|
-
<ax-text-box
|
|
3409
|
-
[ngClass]="generateClasses('url', 'single')"
|
|
3410
|
-
[ngModel]="internalValue()[0].value"
|
|
3411
|
-
(onValueChanged)="handleValueChange($event, 0)"
|
|
3412
|
-
type="text"
|
|
3413
|
-
name="value"
|
|
3414
|
-
placeholder="Link"
|
|
3415
|
-
class="ax-col-start-1 ax-col-end-13"
|
|
3416
|
-
>
|
|
3417
|
-
@for (validation of validationRules(); track $index) {
|
|
3418
|
-
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
3460
|
+
<ax-button
|
|
3461
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
3462
|
+
look="twotone"
|
|
3463
|
+
(onClick)="addItem()"
|
|
3464
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
3465
|
+
>
|
|
3466
|
+
<ax-prefix>
|
|
3467
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
3468
|
+
</ax-prefix>
|
|
3469
|
+
</ax-button>
|
|
3470
|
+
} @else {
|
|
3471
|
+
<ax-text-box
|
|
3472
|
+
[ngClass]="generateClasses('url', 'single')"
|
|
3473
|
+
[ngModel]="internalValue()[0].value"
|
|
3474
|
+
(onValueChanged)="handleValueChange($event, 0)"
|
|
3475
|
+
type="text"
|
|
3476
|
+
name="value"
|
|
3477
|
+
placeholder="Link"
|
|
3478
|
+
class="ax-col-start-1 ax-col-end-13"
|
|
3479
|
+
>
|
|
3480
|
+
@for (validation of validationRules(); track $index) {
|
|
3481
|
+
<ax-validation-rule
|
|
3482
|
+
[rule]="validation.rule"
|
|
3483
|
+
[message]="validation.options?.message"
|
|
3484
|
+
[options]="validation.options"
|
|
3485
|
+
></ax-validation-rule>
|
|
3486
|
+
}
|
|
3487
|
+
</ax-text-box>
|
|
3488
|
+
@if (hasTitle()) {
|
|
3489
|
+
<ax-text-box
|
|
3490
|
+
[ngClass]="generateClasses('title', 'single')"
|
|
3491
|
+
[ngModel]="internalValue()[0].title"
|
|
3492
|
+
(onValueChanged)="handleValueChange($event, 0)"
|
|
3493
|
+
type="text"
|
|
3494
|
+
name="title"
|
|
3495
|
+
placeholder="Title"
|
|
3496
|
+
>
|
|
3497
|
+
</ax-text-box>
|
|
3419
3498
|
}
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
}
|
|
3432
|
-
<ax-select-box
|
|
3433
|
-
[ngClass]="generateClasses('label', 'single')"
|
|
3434
|
-
[dataSource]="labelTypes()"
|
|
3435
|
-
[ngModel]="internalValue()[0].label"
|
|
3436
|
-
(onValueChanged)="handleValueChange($event, 0)"
|
|
3437
|
-
name="label"
|
|
3438
|
-
placeholder="Label"
|
|
3439
|
-
>
|
|
3440
|
-
</ax-select-box>
|
|
3441
|
-
} }
|
|
3499
|
+
@if (hasLabel()) {
|
|
3500
|
+
<ax-select-box
|
|
3501
|
+
[ngClass]="generateClasses('label', 'single')"
|
|
3502
|
+
[dataSource]="labelTypes()"
|
|
3503
|
+
[ngModel]="internalValue()[0].label"
|
|
3504
|
+
(onValueChanged)="handleValueChange($event, 0)"
|
|
3505
|
+
name="label"
|
|
3506
|
+
placeholder="Label"
|
|
3507
|
+
>
|
|
3508
|
+
</ax-select-box>
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3442
3511
|
</div>`,
|
|
3443
3512
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3444
3513
|
imports: [
|
|
@@ -3451,7 +3520,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
3451
3520
|
AXSelectBoxModule,
|
|
3452
3521
|
AXTextBoxModule,
|
|
3453
3522
|
AXValidationModule,
|
|
3454
|
-
]
|
|
3523
|
+
],
|
|
3455
3524
|
}]
|
|
3456
3525
|
}], propDecorators: { __class: [{
|
|
3457
3526
|
type: HostBinding,
|
|
@@ -3638,43 +3707,49 @@ class AXPNumberBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3638
3707
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPNumberBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3639
3708
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPNumberBoxWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
3640
3709
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
3641
|
-
@for(number of internalValue(); track $index){
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
<ax-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3710
|
+
@for (number of internalValue(); track $index) {
|
|
3711
|
+
<ax-number-box
|
|
3712
|
+
class="ax-col-span-12"
|
|
3713
|
+
[minValue]="minValue()"
|
|
3714
|
+
[maxValue]="maxValue()"
|
|
3715
|
+
[decimals]="decimals()"
|
|
3716
|
+
[thousandsSeparator]="seprator()"
|
|
3717
|
+
[placeholder]="placeholder()"
|
|
3718
|
+
[ngModel]="number"
|
|
3719
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3720
|
+
[disabled]="disabled()"
|
|
3721
|
+
>
|
|
3722
|
+
@for (validation of validationRules(); track $index) {
|
|
3723
|
+
<ax-validation-rule
|
|
3724
|
+
[rule]="validation.rule"
|
|
3725
|
+
[message]="validation.options?.message"
|
|
3726
|
+
[options]="validation.options"
|
|
3727
|
+
></ax-validation-rule>
|
|
3728
|
+
}
|
|
3729
|
+
@if (clearButton()) {
|
|
3730
|
+
<ax-clear-button></ax-clear-button>
|
|
3731
|
+
}
|
|
3732
|
+
@if (multiple()) {
|
|
3733
|
+
<ax-suffix>
|
|
3734
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
3735
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
3736
|
+
</ax-button>
|
|
3737
|
+
</ax-suffix>
|
|
3738
|
+
}
|
|
3739
|
+
</ax-number-box>
|
|
3740
|
+
}
|
|
3741
|
+
@if (multiple()) {
|
|
3742
|
+
<ax-button
|
|
3743
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
3744
|
+
[disabled]="disabled()"
|
|
3745
|
+
look="twotone"
|
|
3746
|
+
(onClick)="addItem()"
|
|
3747
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
3748
|
+
>
|
|
3749
|
+
<ax-prefix>
|
|
3750
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
3751
|
+
</ax-prefix>
|
|
3752
|
+
</ax-button>
|
|
3678
3753
|
}
|
|
3679
3754
|
</div>
|
|
3680
3755
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXNumberBoxModule }, { kind: "component", type: i1$4.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "type", "changeOnScroll", "thousandsSeparator", "padDecimalZeros", "step", "decimals", "decimalStep", "showSpinButtons", "minValue", "maxValue", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.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: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -3684,48 +3759,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
3684
3759
|
args: [{
|
|
3685
3760
|
template: `
|
|
3686
3761
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
3687
|
-
@for(number of internalValue(); track $index){
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
<ax-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3762
|
+
@for (number of internalValue(); track $index) {
|
|
3763
|
+
<ax-number-box
|
|
3764
|
+
class="ax-col-span-12"
|
|
3765
|
+
[minValue]="minValue()"
|
|
3766
|
+
[maxValue]="maxValue()"
|
|
3767
|
+
[decimals]="decimals()"
|
|
3768
|
+
[thousandsSeparator]="seprator()"
|
|
3769
|
+
[placeholder]="placeholder()"
|
|
3770
|
+
[ngModel]="number"
|
|
3771
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
3772
|
+
[disabled]="disabled()"
|
|
3773
|
+
>
|
|
3774
|
+
@for (validation of validationRules(); track $index) {
|
|
3775
|
+
<ax-validation-rule
|
|
3776
|
+
[rule]="validation.rule"
|
|
3777
|
+
[message]="validation.options?.message"
|
|
3778
|
+
[options]="validation.options"
|
|
3779
|
+
></ax-validation-rule>
|
|
3780
|
+
}
|
|
3781
|
+
@if (clearButton()) {
|
|
3782
|
+
<ax-clear-button></ax-clear-button>
|
|
3783
|
+
}
|
|
3784
|
+
@if (multiple()) {
|
|
3785
|
+
<ax-suffix>
|
|
3786
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
3787
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
3788
|
+
</ax-button>
|
|
3789
|
+
</ax-suffix>
|
|
3790
|
+
}
|
|
3791
|
+
</ax-number-box>
|
|
3792
|
+
}
|
|
3793
|
+
@if (multiple()) {
|
|
3794
|
+
<ax-button
|
|
3795
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
3796
|
+
[disabled]="disabled()"
|
|
3797
|
+
look="twotone"
|
|
3798
|
+
(onClick)="addItem()"
|
|
3799
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
3800
|
+
>
|
|
3801
|
+
<ax-prefix>
|
|
3802
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
3803
|
+
</ax-prefix>
|
|
3804
|
+
</ax-button>
|
|
3724
3805
|
}
|
|
3725
3806
|
</div>
|
|
3726
3807
|
`,
|
|
3727
3808
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3728
|
-
imports: [CommonModule, AXNumberBoxModule, FormsModule, AXDecoratorModule, AXFormModule, AXButtonModule]
|
|
3809
|
+
imports: [CommonModule, AXNumberBoxModule, FormsModule, AXDecoratorModule, AXFormModule, AXButtonModule],
|
|
3729
3810
|
}]
|
|
3730
3811
|
}], propDecorators: { __class: [{
|
|
3731
3812
|
type: HostBinding,
|
|
@@ -4267,7 +4348,7 @@ class AXPPhoneBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
4267
4348
|
}
|
|
4268
4349
|
handleValueChange(e, selectedIndex) {
|
|
4269
4350
|
if (e.isUserInteraction) {
|
|
4270
|
-
const newValues = this.internalValue().map((item, index) =>
|
|
4351
|
+
const newValues = this.internalValue().map((item, index) => selectedIndex === index ? { ...item, value: e.value } : item);
|
|
4271
4352
|
if (this.multiple())
|
|
4272
4353
|
this.setValue(newValues);
|
|
4273
4354
|
else if (this.hasLabel())
|
|
@@ -4278,7 +4359,7 @@ class AXPPhoneBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
4278
4359
|
}
|
|
4279
4360
|
handleLabelChange(e, selectedIndex) {
|
|
4280
4361
|
if (e.isUserInteraction) {
|
|
4281
|
-
const newValues = this.internalValue().map((item, index) =>
|
|
4362
|
+
const newValues = this.internalValue().map((item, index) => selectedIndex === index ? { ...item, label: e.value } : item);
|
|
4282
4363
|
if (this.multiple())
|
|
4283
4364
|
this.setValue(newValues);
|
|
4284
4365
|
else
|
|
@@ -4303,35 +4384,39 @@ class AXPPhoneBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
4303
4384
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPPhoneBoxWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
4304
4385
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
4305
4386
|
<ng-container *ngIf="multiple()">
|
|
4306
|
-
@for(item of internalValue();track $index) {
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4387
|
+
@for (item of internalValue(); track $index) {
|
|
4388
|
+
<ax-text-box
|
|
4389
|
+
[ngModel]="item.value"
|
|
4390
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
4391
|
+
type="text"
|
|
4392
|
+
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
4393
|
+
[class.lg:!ax-col-end-12]="!hasLabel()"
|
|
4394
|
+
>
|
|
4395
|
+
@for (validation of validationRules(); track $index) {
|
|
4396
|
+
<ax-validation-rule
|
|
4397
|
+
[rule]="validation.rule"
|
|
4398
|
+
[message]="validation.options?.message"
|
|
4399
|
+
[options]="validation.options"
|
|
4400
|
+
></ax-validation-rule>
|
|
4401
|
+
}
|
|
4402
|
+
</ax-text-box>
|
|
4403
|
+
@if (hasLabel()) {
|
|
4404
|
+
<ax-select-box
|
|
4405
|
+
[dataSource]="phoneLabels()"
|
|
4406
|
+
[ngModel]="item.label"
|
|
4407
|
+
(onValueChanged)="handleLabelChange($event, $index)"
|
|
4408
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
4409
|
+
>
|
|
4410
|
+
</ax-select-box>
|
|
4316
4411
|
}
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
</ax-select-box>
|
|
4326
|
-
}
|
|
4327
|
-
<ax-button
|
|
4328
|
-
look="twotone"
|
|
4329
|
-
color="danger"
|
|
4330
|
-
(onClick)="deleteItem($index)"
|
|
4331
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
4332
|
-
>
|
|
4333
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
4334
|
-
</ax-button>
|
|
4412
|
+
<ax-button
|
|
4413
|
+
look="twotone"
|
|
4414
|
+
color="danger"
|
|
4415
|
+
(onClick)="deleteItem($index)"
|
|
4416
|
+
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
4417
|
+
>
|
|
4418
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
4419
|
+
</ax-button>
|
|
4335
4420
|
}
|
|
4336
4421
|
</ng-container>
|
|
4337
4422
|
<ng-container *ngIf="!multiple()">
|
|
@@ -4343,17 +4428,21 @@ class AXPPhoneBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
4343
4428
|
[class.lg:!ax-col-end-13]="!hasLabel"
|
|
4344
4429
|
>
|
|
4345
4430
|
@for (validation of validationRules(); track $index) {
|
|
4346
|
-
|
|
4431
|
+
<ax-validation-rule
|
|
4432
|
+
[rule]="validation.rule"
|
|
4433
|
+
[message]="validation.options?.message"
|
|
4434
|
+
[options]="validation.options"
|
|
4435
|
+
></ax-validation-rule>
|
|
4347
4436
|
}
|
|
4348
4437
|
</ax-text-box>
|
|
4349
|
-
@if(hasLabel()){
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4438
|
+
@if (hasLabel()) {
|
|
4439
|
+
<ax-select-box
|
|
4440
|
+
[dataSource]="phoneLabels()"
|
|
4441
|
+
[ngModel]="internalValue()[0].label"
|
|
4442
|
+
(onValueChanged)="handleLabelChange($event, 0)"
|
|
4443
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
4444
|
+
>
|
|
4445
|
+
</ax-select-box>
|
|
4357
4446
|
}
|
|
4358
4447
|
</ng-container>
|
|
4359
4448
|
<ax-button
|
|
@@ -4376,35 +4465,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
4376
4465
|
template: `
|
|
4377
4466
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
4378
4467
|
<ng-container *ngIf="multiple()">
|
|
4379
|
-
@for(item of internalValue();track $index) {
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4468
|
+
@for (item of internalValue(); track $index) {
|
|
4469
|
+
<ax-text-box
|
|
4470
|
+
[ngModel]="item.value"
|
|
4471
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
4472
|
+
type="text"
|
|
4473
|
+
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
4474
|
+
[class.lg:!ax-col-end-12]="!hasLabel()"
|
|
4475
|
+
>
|
|
4476
|
+
@for (validation of validationRules(); track $index) {
|
|
4477
|
+
<ax-validation-rule
|
|
4478
|
+
[rule]="validation.rule"
|
|
4479
|
+
[message]="validation.options?.message"
|
|
4480
|
+
[options]="validation.options"
|
|
4481
|
+
></ax-validation-rule>
|
|
4482
|
+
}
|
|
4483
|
+
</ax-text-box>
|
|
4484
|
+
@if (hasLabel()) {
|
|
4485
|
+
<ax-select-box
|
|
4486
|
+
[dataSource]="phoneLabels()"
|
|
4487
|
+
[ngModel]="item.label"
|
|
4488
|
+
(onValueChanged)="handleLabelChange($event, $index)"
|
|
4489
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
4490
|
+
>
|
|
4491
|
+
</ax-select-box>
|
|
4389
4492
|
}
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
</ax-select-box>
|
|
4399
|
-
}
|
|
4400
|
-
<ax-button
|
|
4401
|
-
look="twotone"
|
|
4402
|
-
color="danger"
|
|
4403
|
-
(onClick)="deleteItem($index)"
|
|
4404
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
4405
|
-
>
|
|
4406
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
4407
|
-
</ax-button>
|
|
4493
|
+
<ax-button
|
|
4494
|
+
look="twotone"
|
|
4495
|
+
color="danger"
|
|
4496
|
+
(onClick)="deleteItem($index)"
|
|
4497
|
+
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
4498
|
+
>
|
|
4499
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
4500
|
+
</ax-button>
|
|
4408
4501
|
}
|
|
4409
4502
|
</ng-container>
|
|
4410
4503
|
<ng-container *ngIf="!multiple()">
|
|
@@ -4416,17 +4509,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
4416
4509
|
[class.lg:!ax-col-end-13]="!hasLabel"
|
|
4417
4510
|
>
|
|
4418
4511
|
@for (validation of validationRules(); track $index) {
|
|
4419
|
-
|
|
4512
|
+
<ax-validation-rule
|
|
4513
|
+
[rule]="validation.rule"
|
|
4514
|
+
[message]="validation.options?.message"
|
|
4515
|
+
[options]="validation.options"
|
|
4516
|
+
></ax-validation-rule>
|
|
4420
4517
|
}
|
|
4421
4518
|
</ax-text-box>
|
|
4422
|
-
@if(hasLabel()){
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4519
|
+
@if (hasLabel()) {
|
|
4520
|
+
<ax-select-box
|
|
4521
|
+
[dataSource]="phoneLabels()"
|
|
4522
|
+
[ngModel]="internalValue()[0].label"
|
|
4523
|
+
(onValueChanged)="handleLabelChange($event, 0)"
|
|
4524
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
4525
|
+
>
|
|
4526
|
+
</ax-select-box>
|
|
4430
4527
|
}
|
|
4431
4528
|
</ng-container>
|
|
4432
4529
|
<ax-button
|
|
@@ -4443,8 +4540,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
4443
4540
|
</div>
|
|
4444
4541
|
`,
|
|
4445
4542
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4446
|
-
imports: [
|
|
4447
|
-
|
|
4543
|
+
imports: [
|
|
4544
|
+
CommonModule,
|
|
4545
|
+
FormsModule,
|
|
4546
|
+
AXFormModule,
|
|
4547
|
+
AXButtonModule,
|
|
4548
|
+
AXDecoratorModule,
|
|
4549
|
+
AXSelectBoxModule,
|
|
4550
|
+
AXTextBoxModule,
|
|
4551
|
+
AXValidationModule,
|
|
4552
|
+
],
|
|
4553
|
+
inputs: [],
|
|
4448
4554
|
}]
|
|
4449
4555
|
}], propDecorators: { __class: [{
|
|
4450
4556
|
type: HostBinding,
|
|
@@ -4726,22 +4832,22 @@ class AXPRichTextWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
4726
4832
|
<ax-wysiwyg-list></ax-wysiwyg-list>
|
|
4727
4833
|
<ax-wysiwyg-alignment></ax-wysiwyg-alignment>
|
|
4728
4834
|
</ax-prefix>
|
|
4729
|
-
@if(multiLanguage()){
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4835
|
+
@if (multiLanguage()) {
|
|
4836
|
+
<ax-suffix>
|
|
4837
|
+
<ax-button (onClick)="openMultiLanguagePopup()" [disabled]="disabled()">
|
|
4838
|
+
<ax-prefix>
|
|
4839
|
+
<ax-icon class="fa-solid fa-earth-americas"></ax-icon>
|
|
4840
|
+
</ax-prefix>
|
|
4841
|
+
</ax-button>
|
|
4842
|
+
</ax-suffix>
|
|
4737
4843
|
}
|
|
4738
4844
|
</ax-toolbar>
|
|
4739
4845
|
@for (validation of validationRules(); track $index) {
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4846
|
+
<ax-validation-rule
|
|
4847
|
+
[rule]="validation.rule"
|
|
4848
|
+
[message]="validation.options?.message"
|
|
4849
|
+
[options]="validation.options"
|
|
4850
|
+
></ax-validation-rule>
|
|
4745
4851
|
}
|
|
4746
4852
|
</ax-wysiwyg-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.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: AXWysiwygModule }, { kind: "component", type: i2$3.AXWysiwygContainerComponent, selector: "ax-wysiwyg-container", inputs: ["look", "placeHolder"], outputs: ["onValueChanged"] }, { kind: "component", type: i2$3.AXWysiwygViewComponent, selector: "ax-wysiwyg-view", inputs: ["class"] }, { kind: "component", type: i2$3.AXWysiwygAlignmentComponent, selector: "ax-wysiwyg-alignment" }, { kind: "component", type: i2$3.AXWysiwygColorsComponent, selector: "ax-wysiwyg-colors" }, { kind: "component", type: i2$3.AXWysiwygFontStyleComponent, selector: "ax-wysiwyg-font-style" }, { kind: "component", type: i2$3.AXWysiwygHistoryComponent, selector: "ax-wysiwyg-history" }, { kind: "component", type: i2$3.AXWysiwygInsertComponent, selector: "ax-wysiwyg-insert" }, { kind: "component", type: i2$3.AXWysiwygListComponent, selector: "ax-wysiwyg-list" }, { kind: "ngmodule", type: AXToolBarModule }, { kind: "component", type: i3$4.AXToolBarComponent, selector: "ax-toolbar" }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
4747
4853
|
}
|
|
@@ -4770,22 +4876,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
4770
4876
|
<ax-wysiwyg-list></ax-wysiwyg-list>
|
|
4771
4877
|
<ax-wysiwyg-alignment></ax-wysiwyg-alignment>
|
|
4772
4878
|
</ax-prefix>
|
|
4773
|
-
@if(multiLanguage()){
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4879
|
+
@if (multiLanguage()) {
|
|
4880
|
+
<ax-suffix>
|
|
4881
|
+
<ax-button (onClick)="openMultiLanguagePopup()" [disabled]="disabled()">
|
|
4882
|
+
<ax-prefix>
|
|
4883
|
+
<ax-icon class="fa-solid fa-earth-americas"></ax-icon>
|
|
4884
|
+
</ax-prefix>
|
|
4885
|
+
</ax-button>
|
|
4886
|
+
</ax-suffix>
|
|
4781
4887
|
}
|
|
4782
4888
|
</ax-toolbar>
|
|
4783
4889
|
@for (validation of validationRules(); track $index) {
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4890
|
+
<ax-validation-rule
|
|
4891
|
+
[rule]="validation.rule"
|
|
4892
|
+
[message]="validation.options?.message"
|
|
4893
|
+
[options]="validation.options"
|
|
4894
|
+
></ax-validation-rule>
|
|
4789
4895
|
}
|
|
4790
4896
|
</ax-wysiwyg-container>`,
|
|
4791
4897
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -5062,17 +5168,19 @@ class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent {
|
|
|
5062
5168
|
[multiple]="multiple()"
|
|
5063
5169
|
(onValueChanged)="handleValueChange($event)"
|
|
5064
5170
|
>
|
|
5065
|
-
@if(allowSearch()) {
|
|
5066
|
-
|
|
5067
|
-
}
|
|
5068
|
-
|
|
5069
|
-
|
|
5171
|
+
@if (allowSearch()) {
|
|
5172
|
+
<ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
|
|
5173
|
+
}
|
|
5174
|
+
@if (hasClearButton()) {
|
|
5175
|
+
<ax-clear-button></ax-clear-button>
|
|
5176
|
+
}
|
|
5177
|
+
@for (validation of validationRules(); track $index) {
|
|
5070
5178
|
<ax-validation-rule
|
|
5071
5179
|
[rule]="validation.rule"
|
|
5072
5180
|
[message]="validation.options?.message"
|
|
5073
5181
|
[options]="validation.options"
|
|
5074
5182
|
></ax-validation-rule>
|
|
5075
|
-
}
|
|
5183
|
+
}
|
|
5076
5184
|
</ax-select-box>
|
|
5077
5185
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i3$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i5$3.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5078
5186
|
}
|
|
@@ -5092,17 +5200,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
5092
5200
|
[multiple]="multiple()"
|
|
5093
5201
|
(onValueChanged)="handleValueChange($event)"
|
|
5094
5202
|
>
|
|
5095
|
-
@if(allowSearch()) {
|
|
5096
|
-
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
|
-
|
|
5203
|
+
@if (allowSearch()) {
|
|
5204
|
+
<ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
|
|
5205
|
+
}
|
|
5206
|
+
@if (hasClearButton()) {
|
|
5207
|
+
<ax-clear-button></ax-clear-button>
|
|
5208
|
+
}
|
|
5209
|
+
@for (validation of validationRules(); track $index) {
|
|
5100
5210
|
<ax-validation-rule
|
|
5101
5211
|
[rule]="validation.rule"
|
|
5102
5212
|
[message]="validation.options?.message"
|
|
5103
5213
|
[options]="validation.options"
|
|
5104
5214
|
></ax-validation-rule>
|
|
5105
|
-
}
|
|
5215
|
+
}
|
|
5106
5216
|
</ax-select-box>
|
|
5107
5217
|
`,
|
|
5108
5218
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -5381,7 +5491,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
5381
5491
|
`,
|
|
5382
5492
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5383
5493
|
imports: [CommonModule, FormsModule, AXSelectionListModule, AXFormModule],
|
|
5384
|
-
inputs: []
|
|
5494
|
+
inputs: [],
|
|
5385
5495
|
}]
|
|
5386
5496
|
}], propDecorators: { __class: [{
|
|
5387
5497
|
type: HostBinding,
|
|
@@ -5436,11 +5546,11 @@ class AXPSelectionListWidgetEditComponent extends AXPDataListWidgetComponent {
|
|
|
5436
5546
|
[direction]="direction()"
|
|
5437
5547
|
>
|
|
5438
5548
|
@for (validation of validationRules(); track $index) {
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5549
|
+
<ax-validation-rule
|
|
5550
|
+
[rule]="validation.rule"
|
|
5551
|
+
[message]="validation.options?.message"
|
|
5552
|
+
[options]="validation.options"
|
|
5553
|
+
></ax-validation-rule>
|
|
5444
5554
|
}
|
|
5445
5555
|
</ax-selection-list>
|
|
5446
5556
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectionListModule }, { kind: "component", type: i2$4.AXSelectionListComponent, selector: "ax-selection-list", inputs: ["id", "name", "disabled", "readonly", "tabIndex", "size", "value", "valueField", "textField", "disabledField", "readonlyField", "multiple", "direction", "customTemplate", "showControl", "items", "look"], outputs: ["onValueChanged", "onBlur", "onFocus"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -5463,16 +5573,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
5463
5573
|
[direction]="direction()"
|
|
5464
5574
|
>
|
|
5465
5575
|
@for (validation of validationRules(); track $index) {
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5576
|
+
<ax-validation-rule
|
|
5577
|
+
[rule]="validation.rule"
|
|
5578
|
+
[message]="validation.options?.message"
|
|
5579
|
+
[options]="validation.options"
|
|
5580
|
+
></ax-validation-rule>
|
|
5471
5581
|
}
|
|
5472
5582
|
</ax-selection-list>
|
|
5473
5583
|
`,
|
|
5474
5584
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5475
|
-
imports: [CommonModule, FormsModule, AXSelectionListModule, AXFormModule]
|
|
5585
|
+
imports: [CommonModule, FormsModule, AXSelectionListModule, AXFormModule],
|
|
5476
5586
|
}]
|
|
5477
5587
|
}], propDecorators: { __class: [{
|
|
5478
5588
|
type: HostBinding,
|
|
@@ -6399,69 +6509,73 @@ class AXPTextBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6399
6509
|
})
|
|
6400
6510
|
.then((res) => {
|
|
6401
6511
|
if (res.data) {
|
|
6402
|
-
this.translatedValues = res.data;
|
|
6403
|
-
this.internalValue()[0] = this.translatedValues[this.currentLanguage];
|
|
6404
|
-
}
|
|
6405
|
-
console.log(res.data);
|
|
6406
|
-
});
|
|
6407
|
-
}
|
|
6408
|
-
getCurrentLanguage() {
|
|
6409
|
-
this.currentLanguage = this.translationService.getActiveLang();
|
|
6410
|
-
}
|
|
6411
|
-
get __class() {
|
|
6412
|
-
const cls = {};
|
|
6413
|
-
cls[`ax-block`] = true;
|
|
6414
|
-
cls[`ax-flex-1`] = true;
|
|
6415
|
-
return cls;
|
|
6416
|
-
}
|
|
6417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPTextBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6418
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPTextBoxWidgetEditComponent, isStandalone: true, selector: "axp-text-box-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
6419
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
6420
|
-
@for (text of internalValue(); track $index) {
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
<ax-
|
|
6441
|
-
<ax-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6512
|
+
this.translatedValues = res.data;
|
|
6513
|
+
this.internalValue()[0] = this.translatedValues[this.currentLanguage];
|
|
6514
|
+
}
|
|
6515
|
+
console.log(res.data);
|
|
6516
|
+
});
|
|
6517
|
+
}
|
|
6518
|
+
getCurrentLanguage() {
|
|
6519
|
+
this.currentLanguage = this.translationService.getActiveLang();
|
|
6520
|
+
}
|
|
6521
|
+
get __class() {
|
|
6522
|
+
const cls = {};
|
|
6523
|
+
cls[`ax-block`] = true;
|
|
6524
|
+
cls[`ax-flex-1`] = true;
|
|
6525
|
+
return cls;
|
|
6526
|
+
}
|
|
6527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPTextBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6528
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPTextBoxWidgetEditComponent, isStandalone: true, selector: "axp-text-box-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
6529
|
+
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
6530
|
+
@for (text of internalValue(); track $index) {
|
|
6531
|
+
<ax-text-box
|
|
6532
|
+
class="ax-col-span-12"
|
|
6533
|
+
[ngModel]="text"
|
|
6534
|
+
[type]="'text'"
|
|
6535
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
6536
|
+
[disabled]="disabled()"
|
|
6537
|
+
[placeholder]="placeholder()"
|
|
6538
|
+
>
|
|
6539
|
+
@for (validation of validationRules(); track $index) {
|
|
6540
|
+
<ax-validation-rule
|
|
6541
|
+
[rule]="validation.rule"
|
|
6542
|
+
[message]="validation.options?.message"
|
|
6543
|
+
[options]="validation.options"
|
|
6544
|
+
></ax-validation-rule>
|
|
6545
|
+
}
|
|
6546
|
+
@if (hasClearButton()) {
|
|
6547
|
+
<ax-clear-button></ax-clear-button>
|
|
6548
|
+
}
|
|
6549
|
+
@if (multiLanguage()) {
|
|
6550
|
+
<ax-suffix>
|
|
6551
|
+
<ax-button (onClick)="openMultiLanguagePopup()" [disabled]="disabled()">
|
|
6552
|
+
<ax-prefix>
|
|
6553
|
+
<ax-icon class="fa-solid fa-earth-americas"></ax-icon>
|
|
6554
|
+
</ax-prefix>
|
|
6555
|
+
</ax-button>
|
|
6556
|
+
</ax-suffix>
|
|
6557
|
+
}
|
|
6558
|
+
@if (multiple()) {
|
|
6559
|
+
<ax-suffix>
|
|
6560
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
6561
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
6562
|
+
</ax-button>
|
|
6563
|
+
</ax-suffix>
|
|
6564
|
+
}
|
|
6565
|
+
</ax-text-box>
|
|
6566
|
+
}
|
|
6567
|
+
@if (multiple()) {
|
|
6568
|
+
<ax-button
|
|
6569
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
6570
|
+
look="twotone"
|
|
6571
|
+
[disabled]="disabled()"
|
|
6572
|
+
(onClick)="addItem()"
|
|
6573
|
+
class="ax-col-start-8 md:ax-col-start-9 2xl:ax-col-start-10 ax-col-end-13"
|
|
6574
|
+
>
|
|
6575
|
+
<ax-prefix>
|
|
6576
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
6577
|
+
</ax-prefix>
|
|
6578
|
+
</ax-button>
|
|
6465
6579
|
}
|
|
6466
6580
|
</div>
|
|
6467
6581
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i7.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.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: AXValidationModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -6473,50 +6587,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
6473
6587
|
template: `
|
|
6474
6588
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
6475
6589
|
@for (text of internalValue(); track $index) {
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
<ax-
|
|
6496
|
-
<ax-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6590
|
+
<ax-text-box
|
|
6591
|
+
class="ax-col-span-12"
|
|
6592
|
+
[ngModel]="text"
|
|
6593
|
+
[type]="'text'"
|
|
6594
|
+
(onValueChanged)="handleValueChange($event, $index)"
|
|
6595
|
+
[disabled]="disabled()"
|
|
6596
|
+
[placeholder]="placeholder()"
|
|
6597
|
+
>
|
|
6598
|
+
@for (validation of validationRules(); track $index) {
|
|
6599
|
+
<ax-validation-rule
|
|
6600
|
+
[rule]="validation.rule"
|
|
6601
|
+
[message]="validation.options?.message"
|
|
6602
|
+
[options]="validation.options"
|
|
6603
|
+
></ax-validation-rule>
|
|
6604
|
+
}
|
|
6605
|
+
@if (hasClearButton()) {
|
|
6606
|
+
<ax-clear-button></ax-clear-button>
|
|
6607
|
+
}
|
|
6608
|
+
@if (multiLanguage()) {
|
|
6609
|
+
<ax-suffix>
|
|
6610
|
+
<ax-button (onClick)="openMultiLanguagePopup()" [disabled]="disabled()">
|
|
6611
|
+
<ax-prefix>
|
|
6612
|
+
<ax-icon class="fa-solid fa-earth-americas"></ax-icon>
|
|
6613
|
+
</ax-prefix>
|
|
6614
|
+
</ax-button>
|
|
6615
|
+
</ax-suffix>
|
|
6616
|
+
}
|
|
6617
|
+
@if (multiple()) {
|
|
6618
|
+
<ax-suffix>
|
|
6619
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
6620
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
6621
|
+
</ax-button>
|
|
6622
|
+
</ax-suffix>
|
|
6623
|
+
}
|
|
6624
|
+
</ax-text-box>
|
|
6625
|
+
}
|
|
6626
|
+
@if (multiple()) {
|
|
6627
|
+
<ax-button
|
|
6628
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
6629
|
+
look="twotone"
|
|
6630
|
+
[disabled]="disabled()"
|
|
6631
|
+
(onClick)="addItem()"
|
|
6632
|
+
class="ax-col-start-8 md:ax-col-start-9 2xl:ax-col-start-10 ax-col-end-13"
|
|
6633
|
+
>
|
|
6634
|
+
<ax-prefix>
|
|
6635
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
6636
|
+
</ax-prefix>
|
|
6637
|
+
</ax-button>
|
|
6520
6638
|
}
|
|
6521
6639
|
</div>
|
|
6522
6640
|
`,
|
|
@@ -6719,8 +6837,8 @@ class AXPToggleWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6719
6837
|
(onValueChanged)="handleValueChanged($event)"
|
|
6720
6838
|
>
|
|
6721
6839
|
</ax-switch>
|
|
6722
|
-
@if(label()) {
|
|
6723
|
-
|
|
6840
|
+
@if (label()) {
|
|
6841
|
+
<ax-label [textContent]="label()"></ax-label>
|
|
6724
6842
|
}
|
|
6725
6843
|
</div>
|
|
6726
6844
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXSwitchModule }, { kind: "component", type: i2$5.AXSwitchComponent, selector: "ax-switch", inputs: ["disabled", "readonly", "color", "tabIndex", "value", "name", "isLoading"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged", "readonlyChange", "disabledChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -6739,8 +6857,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
6739
6857
|
(onValueChanged)="handleValueChanged($event)"
|
|
6740
6858
|
>
|
|
6741
6859
|
</ax-switch>
|
|
6742
|
-
@if(label()) {
|
|
6743
|
-
|
|
6860
|
+
@if (label()) {
|
|
6861
|
+
<ax-label [textContent]="label()"></ax-label>
|
|
6744
6862
|
}
|
|
6745
6863
|
</div>
|
|
6746
6864
|
`,
|
|
@@ -13206,27 +13324,29 @@ class AXPNumberUnitBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
13206
13324
|
[disabled]="disabled()"
|
|
13207
13325
|
>
|
|
13208
13326
|
@for (validation of validationRules(); track $index) {
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
}
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
<ax-button-item
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13327
|
+
<ax-validation-rule
|
|
13328
|
+
[rule]="validation.rule"
|
|
13329
|
+
[message]="validation.options?.message"
|
|
13330
|
+
[options]="validation.options"
|
|
13331
|
+
></ax-validation-rule>
|
|
13332
|
+
}
|
|
13333
|
+
@if (clearButton()) {
|
|
13334
|
+
<ax-clear-button></ax-clear-button>
|
|
13335
|
+
}
|
|
13336
|
+
@if (selectedUnit()) {
|
|
13337
|
+
<ax-suffix>
|
|
13338
|
+
<ax-dropdown-button [text]="selectedUnit()?.title" [look]="'blank'" [mode]="'dropdown'">
|
|
13339
|
+
<ax-button-item-list>
|
|
13340
|
+
@for (item of unit().items; track $index) {
|
|
13341
|
+
<ax-button-item
|
|
13342
|
+
[text]="item.title"
|
|
13343
|
+
[selected]="item.name === selectedUnit()?.name"
|
|
13344
|
+
(onClick)="handleUnitClick(item)"
|
|
13345
|
+
></ax-button-item>
|
|
13346
|
+
}
|
|
13347
|
+
</ax-button-item-list>
|
|
13348
|
+
</ax-dropdown-button>
|
|
13349
|
+
</ax-suffix>
|
|
13230
13350
|
}
|
|
13231
13351
|
</ax-number-box>
|
|
13232
13352
|
</div>
|
|
@@ -13251,27 +13371,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
13251
13371
|
[disabled]="disabled()"
|
|
13252
13372
|
>
|
|
13253
13373
|
@for (validation of validationRules(); track $index) {
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
}
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13266
|
-
<ax-button-item
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13274
|
-
|
|
13374
|
+
<ax-validation-rule
|
|
13375
|
+
[rule]="validation.rule"
|
|
13376
|
+
[message]="validation.options?.message"
|
|
13377
|
+
[options]="validation.options"
|
|
13378
|
+
></ax-validation-rule>
|
|
13379
|
+
}
|
|
13380
|
+
@if (clearButton()) {
|
|
13381
|
+
<ax-clear-button></ax-clear-button>
|
|
13382
|
+
}
|
|
13383
|
+
@if (selectedUnit()) {
|
|
13384
|
+
<ax-suffix>
|
|
13385
|
+
<ax-dropdown-button [text]="selectedUnit()?.title" [look]="'blank'" [mode]="'dropdown'">
|
|
13386
|
+
<ax-button-item-list>
|
|
13387
|
+
@for (item of unit().items; track $index) {
|
|
13388
|
+
<ax-button-item
|
|
13389
|
+
[text]="item.title"
|
|
13390
|
+
[selected]="item.name === selectedUnit()?.name"
|
|
13391
|
+
(onClick)="handleUnitClick(item)"
|
|
13392
|
+
></ax-button-item>
|
|
13393
|
+
}
|
|
13394
|
+
</ax-button-item-list>
|
|
13395
|
+
</ax-dropdown-button>
|
|
13396
|
+
</ax-suffix>
|
|
13275
13397
|
}
|
|
13276
13398
|
</ax-number-box>
|
|
13277
13399
|
</div>
|
|
@@ -13467,7 +13589,7 @@ class AXPTabularDataWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
13467
13589
|
this.platform = inject(AXPlatform);
|
|
13468
13590
|
}
|
|
13469
13591
|
async openPopup() {
|
|
13470
|
-
const { AXPTabularDataPopupComponent } = await import('./acorex-platform-widgets-tabular-data-edit-popup.component-
|
|
13592
|
+
const { AXPTabularDataPopupComponent } = await import('./acorex-platform-widgets-tabular-data-edit-popup.component-DZD9AEmz.mjs');
|
|
13471
13593
|
const popupData = await this.popupService.open(AXPTabularDataPopupComponent, {
|
|
13472
13594
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : this.columns().length > 3 ? 'lg' : 'md',
|
|
13473
13595
|
header: true,
|
|
@@ -13558,7 +13680,7 @@ class AXPTabularDataEditorWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
13558
13680
|
this.columns = this.options()['columns'];
|
|
13559
13681
|
}
|
|
13560
13682
|
async openPopup() {
|
|
13561
|
-
const { AXPTabularDataPopupComponent } = await import('./acorex-platform-widgets-tabular-data-view-popup.component-
|
|
13683
|
+
const { AXPTabularDataPopupComponent } = await import('./acorex-platform-widgets-tabular-data-view-popup.component-CQT2kgt3.mjs');
|
|
13562
13684
|
this.popupService.open(AXPTabularDataPopupComponent, {
|
|
13563
13685
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
13564
13686
|
header: true,
|
|
@@ -14151,31 +14273,32 @@ class AXPDateTimeFilterWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
14151
14273
|
>
|
|
14152
14274
|
<ax-clear-button></ax-clear-button>
|
|
14153
14275
|
</ax-select-box>
|
|
14154
|
-
@if(filterTypeSelectedItem()==='Between'){
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
}
|
|
14174
|
-
|
|
14175
|
-
<ax-
|
|
14176
|
-
<ax-
|
|
14177
|
-
|
|
14178
|
-
|
|
14276
|
+
@if (filterTypeSelectedItem() === 'Between') {
|
|
14277
|
+
<div class="ax-flex ax-gap-2 ax-mt-2">
|
|
14278
|
+
<ax-datetime-box
|
|
14279
|
+
format="yyyy/MM/dd"
|
|
14280
|
+
[placeholder]="'from' | translate | async"
|
|
14281
|
+
[ngModel]="value()?.from"
|
|
14282
|
+
(onValueChanged)="handleValueChange($event, 'from')"
|
|
14283
|
+
>
|
|
14284
|
+
<ax-clear-button></ax-clear-button>
|
|
14285
|
+
</ax-datetime-box>
|
|
14286
|
+
<ax-datetime-box
|
|
14287
|
+
format="yyyy/MM/dd"
|
|
14288
|
+
[placeholder]="'to' | translate | async"
|
|
14289
|
+
[ngModel]="value()?.to"
|
|
14290
|
+
(onValueChanged)="handleValueChange($event, 'to')"
|
|
14291
|
+
>
|
|
14292
|
+
<ax-clear-button></ax-clear-button>
|
|
14293
|
+
</ax-datetime-box>
|
|
14294
|
+
</div>
|
|
14295
|
+
}
|
|
14296
|
+
@if (filterTypeSelectedItem() === 'Greater Than' || filterTypeSelectedItem() === 'Less Than') {
|
|
14297
|
+
<div class="ax-w-full ax-mt-2">
|
|
14298
|
+
<ax-datetime-box format="yyyy/MM/dd" [ngModel]="value()" (onValueChanged)="handleValueChange($event, 'self')">
|
|
14299
|
+
<ax-clear-button></ax-clear-button>
|
|
14300
|
+
</ax-datetime-box>
|
|
14301
|
+
</div>
|
|
14179
14302
|
}
|
|
14180
14303
|
</div>
|
|
14181
14304
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5$1.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i3$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDateTimeBoxModule }, { kind: "component", type: i3$2.AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "depth", "id", "type", "look", "holidayDates", "allowTyping", "calendar", "picker", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onOpened", "onClosed", "readonlyChange", "disabledChange", "formatChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -14193,31 +14316,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
14193
14316
|
>
|
|
14194
14317
|
<ax-clear-button></ax-clear-button>
|
|
14195
14318
|
</ax-select-box>
|
|
14196
|
-
@if(filterTypeSelectedItem()==='Between'){
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
}
|
|
14216
|
-
|
|
14217
|
-
<ax-
|
|
14218
|
-
<ax-
|
|
14219
|
-
|
|
14220
|
-
|
|
14319
|
+
@if (filterTypeSelectedItem() === 'Between') {
|
|
14320
|
+
<div class="ax-flex ax-gap-2 ax-mt-2">
|
|
14321
|
+
<ax-datetime-box
|
|
14322
|
+
format="yyyy/MM/dd"
|
|
14323
|
+
[placeholder]="'from' | translate | async"
|
|
14324
|
+
[ngModel]="value()?.from"
|
|
14325
|
+
(onValueChanged)="handleValueChange($event, 'from')"
|
|
14326
|
+
>
|
|
14327
|
+
<ax-clear-button></ax-clear-button>
|
|
14328
|
+
</ax-datetime-box>
|
|
14329
|
+
<ax-datetime-box
|
|
14330
|
+
format="yyyy/MM/dd"
|
|
14331
|
+
[placeholder]="'to' | translate | async"
|
|
14332
|
+
[ngModel]="value()?.to"
|
|
14333
|
+
(onValueChanged)="handleValueChange($event, 'to')"
|
|
14334
|
+
>
|
|
14335
|
+
<ax-clear-button></ax-clear-button>
|
|
14336
|
+
</ax-datetime-box>
|
|
14337
|
+
</div>
|
|
14338
|
+
}
|
|
14339
|
+
@if (filterTypeSelectedItem() === 'Greater Than' || filterTypeSelectedItem() === 'Less Than') {
|
|
14340
|
+
<div class="ax-w-full ax-mt-2">
|
|
14341
|
+
<ax-datetime-box format="yyyy/MM/dd" [ngModel]="value()" (onValueChanged)="handleValueChange($event, 'self')">
|
|
14342
|
+
<ax-clear-button></ax-clear-button>
|
|
14343
|
+
</ax-datetime-box>
|
|
14344
|
+
</div>
|
|
14221
14345
|
}
|
|
14222
14346
|
</div>
|
|
14223
14347
|
`,
|
|
@@ -14320,41 +14444,41 @@ class AXPNumberFilterWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
14320
14444
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPNumberFilterWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14321
14445
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPNumberFilterWidgetEditComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
14322
14446
|
<div class="ax-flex ax-items-center">
|
|
14323
|
-
@if(this.operation()=== 'between'){
|
|
14324
|
-
|
|
14325
|
-
|
|
14326
|
-
|
|
14327
|
-
|
|
14328
|
-
|
|
14329
|
-
|
|
14330
|
-
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
|
|
14334
|
-
|
|
14447
|
+
@if (this.operation() === 'between') {
|
|
14448
|
+
<div class="ax-flex-1 ax-flex ax-gap-4">
|
|
14449
|
+
<ax-number-box
|
|
14450
|
+
class="ax-w-full"
|
|
14451
|
+
[placeholder]="('from' | translate | async) ?? 'From'"
|
|
14452
|
+
[showSpinButtons]="false"
|
|
14453
|
+
[thousandsSeparator]="seprator()"
|
|
14454
|
+
[ngModel]="value()?.from"
|
|
14455
|
+
(onValueChanged)="handleValueChange($event, 'from')"
|
|
14456
|
+
>
|
|
14457
|
+
<ax-clear-button></ax-clear-button>
|
|
14458
|
+
</ax-number-box>
|
|
14459
|
+
<ax-number-box
|
|
14460
|
+
class="ax-w-full"
|
|
14461
|
+
[placeholder]="('to' | translate | async) ?? 'To'"
|
|
14462
|
+
[showSpinButtons]="false"
|
|
14463
|
+
[ngModel]="value()?.to"
|
|
14464
|
+
[thousandsSeparator]="seprator()"
|
|
14465
|
+
(onValueChanged)="handleValueChange($event, 'to')"
|
|
14466
|
+
>
|
|
14467
|
+
<ax-clear-button></ax-clear-button>
|
|
14468
|
+
</ax-number-box>
|
|
14469
|
+
</div>
|
|
14470
|
+
} @else {
|
|
14335
14471
|
<ax-number-box
|
|
14336
|
-
class="ax-
|
|
14337
|
-
[placeholder]="(
|
|
14472
|
+
class="ax-flex-1"
|
|
14473
|
+
[placeholder]="(placeholder() | translate | async) ?? ''"
|
|
14474
|
+
[disabled]="this.operation() === 'isEmpty' || this.operation() === 'isNotEmpty'"
|
|
14338
14475
|
[showSpinButtons]="false"
|
|
14339
|
-
[ngModel]="value()?.to"
|
|
14340
14476
|
[thousandsSeparator]="seprator()"
|
|
14341
|
-
|
|
14477
|
+
[ngModel]="value()"
|
|
14478
|
+
(onValueChanged)="handleValueChange($event, 'self')"
|
|
14342
14479
|
>
|
|
14343
14480
|
<ax-clear-button></ax-clear-button>
|
|
14344
14481
|
</ax-number-box>
|
|
14345
|
-
</div>
|
|
14346
|
-
}@else{
|
|
14347
|
-
<ax-number-box
|
|
14348
|
-
class="ax-flex-1"
|
|
14349
|
-
[placeholder]="(placeholder() | translate | async) ?? ''"
|
|
14350
|
-
[disabled]="this.operation() === 'isEmpty' || this.operation() === 'isNotEmpty'"
|
|
14351
|
-
[showSpinButtons]="false"
|
|
14352
|
-
[thousandsSeparator]="seprator()"
|
|
14353
|
-
[ngModel]="value()"
|
|
14354
|
-
(onValueChanged)="handleValueChange($event, 'self')"
|
|
14355
|
-
>
|
|
14356
|
-
<ax-clear-button></ax-clear-button>
|
|
14357
|
-
</ax-number-box>
|
|
14358
14482
|
}
|
|
14359
14483
|
<axp-filter-operations
|
|
14360
14484
|
type="number"
|
|
@@ -14369,41 +14493,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
14369
14493
|
args: [{
|
|
14370
14494
|
template: `
|
|
14371
14495
|
<div class="ax-flex ax-items-center">
|
|
14372
|
-
@if(this.operation()=== 'between'){
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14496
|
+
@if (this.operation() === 'between') {
|
|
14497
|
+
<div class="ax-flex-1 ax-flex ax-gap-4">
|
|
14498
|
+
<ax-number-box
|
|
14499
|
+
class="ax-w-full"
|
|
14500
|
+
[placeholder]="('from' | translate | async) ?? 'From'"
|
|
14501
|
+
[showSpinButtons]="false"
|
|
14502
|
+
[thousandsSeparator]="seprator()"
|
|
14503
|
+
[ngModel]="value()?.from"
|
|
14504
|
+
(onValueChanged)="handleValueChange($event, 'from')"
|
|
14505
|
+
>
|
|
14506
|
+
<ax-clear-button></ax-clear-button>
|
|
14507
|
+
</ax-number-box>
|
|
14508
|
+
<ax-number-box
|
|
14509
|
+
class="ax-w-full"
|
|
14510
|
+
[placeholder]="('to' | translate | async) ?? 'To'"
|
|
14511
|
+
[showSpinButtons]="false"
|
|
14512
|
+
[ngModel]="value()?.to"
|
|
14513
|
+
[thousandsSeparator]="seprator()"
|
|
14514
|
+
(onValueChanged)="handleValueChange($event, 'to')"
|
|
14515
|
+
>
|
|
14516
|
+
<ax-clear-button></ax-clear-button>
|
|
14517
|
+
</ax-number-box>
|
|
14518
|
+
</div>
|
|
14519
|
+
} @else {
|
|
14384
14520
|
<ax-number-box
|
|
14385
|
-
class="ax-
|
|
14386
|
-
[placeholder]="(
|
|
14521
|
+
class="ax-flex-1"
|
|
14522
|
+
[placeholder]="(placeholder() | translate | async) ?? ''"
|
|
14523
|
+
[disabled]="this.operation() === 'isEmpty' || this.operation() === 'isNotEmpty'"
|
|
14387
14524
|
[showSpinButtons]="false"
|
|
14388
|
-
[ngModel]="value()?.to"
|
|
14389
14525
|
[thousandsSeparator]="seprator()"
|
|
14390
|
-
|
|
14526
|
+
[ngModel]="value()"
|
|
14527
|
+
(onValueChanged)="handleValueChange($event, 'self')"
|
|
14391
14528
|
>
|
|
14392
14529
|
<ax-clear-button></ax-clear-button>
|
|
14393
14530
|
</ax-number-box>
|
|
14394
|
-
</div>
|
|
14395
|
-
}@else{
|
|
14396
|
-
<ax-number-box
|
|
14397
|
-
class="ax-flex-1"
|
|
14398
|
-
[placeholder]="(placeholder() | translate | async) ?? ''"
|
|
14399
|
-
[disabled]="this.operation() === 'isEmpty' || this.operation() === 'isNotEmpty'"
|
|
14400
|
-
[showSpinButtons]="false"
|
|
14401
|
-
[thousandsSeparator]="seprator()"
|
|
14402
|
-
[ngModel]="value()"
|
|
14403
|
-
(onValueChanged)="handleValueChange($event, 'self')"
|
|
14404
|
-
>
|
|
14405
|
-
<ax-clear-button></ax-clear-button>
|
|
14406
|
-
</ax-number-box>
|
|
14407
14531
|
}
|
|
14408
14532
|
<axp-filter-operations
|
|
14409
14533
|
type="number"
|
|
@@ -14481,8 +14605,8 @@ class AXPSelectFilterWidgetEditComponent extends AXPDataListWidgetComponent {
|
|
|
14481
14605
|
[ngModel]="value()"
|
|
14482
14606
|
(onValueChanged)="handleValueChange($event)"
|
|
14483
14607
|
>
|
|
14484
|
-
@if(allowSearch()){
|
|
14485
|
-
|
|
14608
|
+
@if (allowSearch()) {
|
|
14609
|
+
<ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
|
|
14486
14610
|
}
|
|
14487
14611
|
<ax-clear-button></ax-clear-button>
|
|
14488
14612
|
</ax-select-box>
|
|
@@ -14503,8 +14627,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
14503
14627
|
[ngModel]="value()"
|
|
14504
14628
|
(onValueChanged)="handleValueChange($event)"
|
|
14505
14629
|
>
|
|
14506
|
-
@if(allowSearch()){
|
|
14507
|
-
|
|
14630
|
+
@if (allowSearch()) {
|
|
14631
|
+
<ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
|
|
14508
14632
|
}
|
|
14509
14633
|
<ax-clear-button></ax-clear-button>
|
|
14510
14634
|
</ax-select-box>
|
|
@@ -14568,8 +14692,8 @@ class AXPStringWidgetFilterComponent extends AXPValueWidgetComponent {
|
|
|
14568
14692
|
[ngModel]="value()"
|
|
14569
14693
|
(onValueChanged)="handleValueChange($event)"
|
|
14570
14694
|
>
|
|
14571
|
-
@if(hasClearButton()){
|
|
14572
|
-
|
|
14695
|
+
@if (hasClearButton()) {
|
|
14696
|
+
<ax-clear-button></ax-clear-button>
|
|
14573
14697
|
}
|
|
14574
14698
|
</ax-text-box>
|
|
14575
14699
|
<axp-filter-operations
|
|
@@ -14593,8 +14717,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
14593
14717
|
[ngModel]="value()"
|
|
14594
14718
|
(onValueChanged)="handleValueChange($event)"
|
|
14595
14719
|
>
|
|
14596
|
-
@if(hasClearButton()){
|
|
14597
|
-
|
|
14720
|
+
@if (hasClearButton()) {
|
|
14721
|
+
<ax-clear-button></ax-clear-button>
|
|
14598
14722
|
}
|
|
14599
14723
|
</ax-text-box>
|
|
14600
14724
|
<axp-filter-operations
|
|
@@ -15453,28 +15577,28 @@ class AXPPanelWidgetDesignerComponent extends AXPLayoutWidgetComponent {
|
|
|
15453
15577
|
useExisting: AXPPanelWidgetDesignerComponent,
|
|
15454
15578
|
},
|
|
15455
15579
|
], usesInheritance: true, ngImport: i0, template: `
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15580
|
+
<ax-collapse-group [look]="look()">
|
|
15581
|
+
<ax-collapse
|
|
15582
|
+
[caption]="caption()"
|
|
15583
|
+
[icon]="icon()"
|
|
15584
|
+
[showHeader]="showHeader()"
|
|
15585
|
+
[isCollapsed]="collapsed()"
|
|
15586
|
+
(isCollapsedChange)="handleCollapsedChange($event)"
|
|
15587
|
+
>
|
|
15588
|
+
@for (node of children(); track $index) {
|
|
15589
|
+
<ng-container
|
|
15590
|
+
axp-widget-designer-renderer
|
|
15591
|
+
[node]="node"
|
|
15592
|
+
[parentNode]="this"
|
|
15593
|
+
[mode]="this.mode"
|
|
15594
|
+
[locked]="this.locked"
|
|
15595
|
+
></ng-container>
|
|
15472
15596
|
} @empty {
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15597
|
+
<axp-designer-add-widget-mini-button
|
|
15598
|
+
class="ax-flex-1 ax-self-center ax-place-self-end"
|
|
15599
|
+
></axp-designer-add-widget-mini-button>
|
|
15600
|
+
}
|
|
15601
|
+
</ax-collapse>
|
|
15478
15602
|
</ax-collapse-group>
|
|
15479
15603
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "ngmodule", type: AXCollapseModule }, { kind: "component", type: i1$b.AXCollapseComponent, selector: "ax-collapse", inputs: ["disabled", "look", "isCollapsed", "showHeader", "caption", "icon", "isLoading", "headerTemplate"], outputs: ["onClick", "isCollapsedChange"] }, { kind: "component", type: i1$b.AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: ["look", "accordion", "activeIndex"], outputs: ["accordionChange", "activeIndexChange"] }, { kind: "directive", type: AXPWidgetDesignerRendererDirective, selector: "[axp-widget-designer-renderer]", inputs: ["parentNode", "index", "locked", "mode", "node"] }, { kind: "component", type: AXPDesignerAddWidgetMiniButtonComponent, selector: "axp-designer-add-widget-mini-button", outputs: ["onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15480
15604
|
}
|
|
@@ -15483,28 +15607,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
15483
15607
|
args: [{
|
|
15484
15608
|
selector: 'axp-panel-widget',
|
|
15485
15609
|
template: `
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15610
|
+
<ax-collapse-group [look]="look()">
|
|
15611
|
+
<ax-collapse
|
|
15612
|
+
[caption]="caption()"
|
|
15613
|
+
[icon]="icon()"
|
|
15614
|
+
[showHeader]="showHeader()"
|
|
15615
|
+
[isCollapsed]="collapsed()"
|
|
15616
|
+
(isCollapsedChange)="handleCollapsedChange($event)"
|
|
15617
|
+
>
|
|
15618
|
+
@for (node of children(); track $index) {
|
|
15619
|
+
<ng-container
|
|
15620
|
+
axp-widget-designer-renderer
|
|
15621
|
+
[node]="node"
|
|
15622
|
+
[parentNode]="this"
|
|
15623
|
+
[mode]="this.mode"
|
|
15624
|
+
[locked]="this.locked"
|
|
15625
|
+
></ng-container>
|
|
15502
15626
|
} @empty {
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15627
|
+
<axp-designer-add-widget-mini-button
|
|
15628
|
+
class="ax-flex-1 ax-self-center ax-place-self-end"
|
|
15629
|
+
></axp-designer-add-widget-mini-button>
|
|
15630
|
+
}
|
|
15631
|
+
</ax-collapse>
|
|
15508
15632
|
</ax-collapse-group>
|
|
15509
15633
|
`,
|
|
15510
15634
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -15558,25 +15682,25 @@ class AXPPanelWidgetViewComponent extends AXPLayoutWidgetComponent {
|
|
|
15558
15682
|
}
|
|
15559
15683
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPPanelWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15560
15684
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPPanelWidgetViewComponent, isStandalone: true, selector: "axp-panel-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
15685
|
+
<ax-collapse-group [look]="look()">
|
|
15686
|
+
<ax-collapse
|
|
15687
|
+
[caption]="caption()"
|
|
15688
|
+
[icon]="icon()"
|
|
15689
|
+
[showHeader]="showHeader()"
|
|
15690
|
+
[isCollapsed]="collapsed()"
|
|
15691
|
+
(isCollapsedChange)="handleCollapsedChange($event)"
|
|
15692
|
+
>
|
|
15693
|
+
@for (node of children(); track $index) {
|
|
15694
|
+
<ng-container
|
|
15695
|
+
axp-widget-renderer
|
|
15696
|
+
[node]="node"
|
|
15697
|
+
[index]="index"
|
|
15698
|
+
[parentNode]="this"
|
|
15699
|
+
[mode]="this.mode"
|
|
15700
|
+
></ng-container>
|
|
15701
|
+
}
|
|
15702
|
+
</ax-collapse>
|
|
15703
|
+
</ax-collapse-group>
|
|
15580
15704
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i1$3.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXCollapseModule }, { kind: "component", type: i1$b.AXCollapseComponent, selector: "ax-collapse", inputs: ["disabled", "look", "isCollapsed", "showHeader", "caption", "icon", "isLoading", "headerTemplate"], outputs: ["onClick", "isCollapsedChange"] }, { kind: "component", type: i1$b.AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: ["look", "accordion", "activeIndex"], outputs: ["accordionChange", "activeIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15581
15705
|
}
|
|
15582
15706
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPPanelWidgetViewComponent, decorators: [{
|
|
@@ -15584,25 +15708,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
15584
15708
|
args: [{
|
|
15585
15709
|
selector: 'axp-panel-widget',
|
|
15586
15710
|
template: `
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15600
|
-
|
|
15601
|
-
|
|
15602
|
-
|
|
15603
|
-
|
|
15604
|
-
|
|
15605
|
-
|
|
15711
|
+
<ax-collapse-group [look]="look()">
|
|
15712
|
+
<ax-collapse
|
|
15713
|
+
[caption]="caption()"
|
|
15714
|
+
[icon]="icon()"
|
|
15715
|
+
[showHeader]="showHeader()"
|
|
15716
|
+
[isCollapsed]="collapsed()"
|
|
15717
|
+
(isCollapsedChange)="handleCollapsedChange($event)"
|
|
15718
|
+
>
|
|
15719
|
+
@for (node of children(); track $index) {
|
|
15720
|
+
<ng-container
|
|
15721
|
+
axp-widget-renderer
|
|
15722
|
+
[node]="node"
|
|
15723
|
+
[index]="index"
|
|
15724
|
+
[parentNode]="this"
|
|
15725
|
+
[mode]="this.mode"
|
|
15726
|
+
></ng-container>
|
|
15727
|
+
}
|
|
15728
|
+
</ax-collapse>
|
|
15729
|
+
</ax-collapse-group>
|
|
15606
15730
|
`,
|
|
15607
15731
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15608
15732
|
imports: [CommonModule, AXPLayoutBuilderModule, AXCollapseModule],
|