@acorex/components 4.2.21 → 4.2.22
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/esm2020/lib/property-editor/editors/check-editor/check-editor.mjs +31 -21
- package/esm2020/lib/property-editor/editors/check-editor/check.module.mjs +3 -3
- package/esm2020/lib/property-editor/editors/selection-editor/selection-editor.mjs +72 -0
- package/esm2020/lib/property-editor/editors/selection-editor/selection.module.mjs +22 -0
- package/esm2020/lib/property-editor/property-editor-renderer.directive.mjs +2 -1
- package/esm2020/lib/property-editor/property-editor.module.mjs +33 -20
- package/esm2020/lib/search-bar/search-bar.component.mjs +13 -20
- package/esm2020/lib/selection-list/selection-list.component.mjs +3 -3
- package/fesm2015/acorex-components.mjs +734 -638
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +733 -637
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/property-editor/editors/check-editor/check-editor.d.ts +3 -2
- package/lib/property-editor/editors/check-editor/check.module.d.ts +1 -1
- package/lib/property-editor/editors/selection-editor/selection-editor.d.ts +24 -0
- package/lib/property-editor/editors/selection-editor/selection.module.d.ts +11 -0
- package/lib/property-editor/property-editor.module.d.ts +3 -2
- package/lib/search-bar/search-bar.component.d.ts +2 -2
- package/lib/selection-list/selection-list.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3432,7 +3432,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3432
3432
|
type: Input
|
|
3433
3433
|
}] } });
|
|
3434
3434
|
|
|
3435
|
-
class AXSelectionListComponent extends
|
|
3435
|
+
class AXSelectionListComponent extends AXValidatableComponent {
|
|
3436
3436
|
constructor(cdr) {
|
|
3437
3437
|
super();
|
|
3438
3438
|
this.cdr = cdr;
|
|
@@ -10117,6 +10117,7 @@ class AXPropertyEditorRendererDirective {
|
|
|
10117
10117
|
}
|
|
10118
10118
|
createComponent() {
|
|
10119
10119
|
this.renderService.findLoadedComponentByRoute(this.property.property.editorClass).then(c => {
|
|
10120
|
+
debugger;
|
|
10120
10121
|
if (c) {
|
|
10121
10122
|
const factory = this.componentFactoryResolver.resolveComponentFactory(c.component);
|
|
10122
10123
|
const cmpRef = this.target.createComponent(factory);
|
|
@@ -10248,6 +10249,7 @@ class AXSearchBarComponent {
|
|
|
10248
10249
|
this.disabled = false;
|
|
10249
10250
|
this.items = [];
|
|
10250
10251
|
this.rtl = AXConfig.get('layout.rtl');
|
|
10252
|
+
this.onValueChange = new EventEmitter();
|
|
10251
10253
|
this.onSearchValue = new EventEmitter();
|
|
10252
10254
|
this._items = [];
|
|
10253
10255
|
this._filterItems = [];
|
|
@@ -10268,6 +10270,7 @@ class AXSearchBarComponent {
|
|
|
10268
10270
|
value: e.value
|
|
10269
10271
|
});
|
|
10270
10272
|
}
|
|
10273
|
+
this.onValueChange.emit(e);
|
|
10271
10274
|
}
|
|
10272
10275
|
handleItemRemoveClick(item) {
|
|
10273
10276
|
this._editors.forEach(e => {
|
|
@@ -10326,25 +10329,15 @@ class AXSearchBarComponent {
|
|
|
10326
10329
|
});
|
|
10327
10330
|
}
|
|
10328
10331
|
});
|
|
10329
|
-
if (this.rtl == null) {
|
|
10330
|
-
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
|
10331
|
-
}
|
|
10332
|
-
setTimeout(() => {
|
|
10333
|
-
this.ref.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10334
|
-
this.el.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10335
|
-
}, 5);
|
|
10336
10332
|
this._items = _.chain(this.items).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
|
|
10337
10333
|
}
|
|
10338
10334
|
}
|
|
10339
10335
|
AXSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10340
|
-
AXSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarComponent, selector: "ax-search-bar", inputs: { size: "size", disabled: "disabled", items: "items", rtl: "rtl" }, outputs: {
|
|
10336
|
+
AXSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarComponent, selector: "ax-search-bar", inputs: { size: "size", disabled: "disabled", items: "items", rtl: "rtl" }, outputs: { onValueChange: "onValueChange", onSearchValue: "onSearchValue" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "_editors", predicate: AXPropertyEditorRendererDirective, descendants: true }], ngImport: i0, template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [property]=\"prop\" [context]=\"_context\"\r\n (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>\r\n", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"], components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["rtl", "readonly", "loading"], outputs: ["dropdownToggle", "onButtonClick"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: AXPropertyEditorRendererDirective, selector: "[ax-property-editor-renderer]", inputs: ["property", "validationForm", "context", "host", "groupId"], outputs: ["onValueChange"] }], pipes: { "trans": i1$2.AXTranslatorPipe } });
|
|
10341
10337
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, decorators: [{
|
|
10342
10338
|
type: Component,
|
|
10343
|
-
args: [{ selector: 'ax-search-bar', template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <ax-form-group
|
|
10344
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: {
|
|
10345
|
-
type: ViewChild,
|
|
10346
|
-
args: ['dropdown', { static: true }]
|
|
10347
|
-
}], dropdown: [{
|
|
10339
|
+
args: [{ selector: 'ax-search-bar', template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [property]=\"prop\" [context]=\"_context\"\r\n (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>\r\n", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"] }]
|
|
10340
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { dropdown: [{
|
|
10348
10341
|
type: ViewChild,
|
|
10349
10342
|
args: ['dropdown', { static: true }]
|
|
10350
10343
|
}], _editors: [{
|
|
@@ -10358,6 +10351,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10358
10351
|
type: Input
|
|
10359
10352
|
}], rtl: [{
|
|
10360
10353
|
type: Input
|
|
10354
|
+
}], onValueChange: [{
|
|
10355
|
+
type: Output
|
|
10361
10356
|
}], onSearchValue: [{
|
|
10362
10357
|
type: Output
|
|
10363
10358
|
}] } });
|
|
@@ -10460,198 +10455,75 @@ function propertyEditor(options) {
|
|
|
10460
10455
|
};
|
|
10461
10456
|
}
|
|
10462
10457
|
|
|
10463
|
-
class
|
|
10464
|
-
constructor(cdr) {
|
|
10465
|
-
super(cdr);
|
|
10466
|
-
this.cdr = cdr;
|
|
10467
|
-
this.clearButton = false;
|
|
10468
|
-
}
|
|
10469
|
-
handleValueChange(e) {
|
|
10470
|
-
super.handleValueChange(e.value);
|
|
10471
|
-
}
|
|
10472
|
-
ngAfterViewInit() {
|
|
10473
|
-
this.registerForValidationForm(this.textBox);
|
|
10474
|
-
this.onRenderCompleted.emit();
|
|
10475
|
-
}
|
|
10476
|
-
}
|
|
10477
|
-
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10478
|
-
AXTextPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
10479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
10480
|
-
type: Component,
|
|
10481
|
-
args: [{ template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>" }]
|
|
10482
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
10483
|
-
type: ViewChild,
|
|
10484
|
-
args: [AXTextBoxComponent]
|
|
10485
|
-
}] } });
|
|
10486
|
-
|
|
10487
|
-
class AXTextPropertyEditorModule {
|
|
10488
|
-
constructor() {
|
|
10489
|
-
}
|
|
10490
|
-
}
|
|
10491
|
-
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10492
|
-
AXTextPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, declarations: [AXTextPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule], exports: [AXTextPropertyEditorComponent] });
|
|
10493
|
-
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
10494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
10495
|
-
type: NgModule,
|
|
10496
|
-
args: [{
|
|
10497
|
-
declarations: [AXTextPropertyEditorComponent],
|
|
10498
|
-
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
10499
|
-
exports: [AXTextPropertyEditorComponent],
|
|
10500
|
-
providers: []
|
|
10501
|
-
}]
|
|
10502
|
-
}], ctorParameters: function () { return []; } });
|
|
10503
|
-
|
|
10504
|
-
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10458
|
+
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10505
10459
|
constructor(cdr) {
|
|
10506
10460
|
super(cdr);
|
|
10507
10461
|
this.cdr = cdr;
|
|
10508
|
-
this.
|
|
10509
|
-
this.
|
|
10510
|
-
this.
|
|
10511
|
-
this.
|
|
10512
|
-
this.clearButton = false;
|
|
10462
|
+
this.disabled = false;
|
|
10463
|
+
this.indeterminate = false;
|
|
10464
|
+
this.readonly = false;
|
|
10465
|
+
this.size = 'md';
|
|
10513
10466
|
}
|
|
10514
10467
|
handleValueChange(e) {
|
|
10515
10468
|
super.handleValueChange(e.value);
|
|
10516
10469
|
}
|
|
10517
10470
|
ngAfterViewInit() {
|
|
10518
|
-
this.registerForValidationForm(this.
|
|
10471
|
+
this.registerForValidationForm(this.checkBox);
|
|
10519
10472
|
this.onRenderCompleted.emit();
|
|
10520
10473
|
}
|
|
10521
10474
|
}
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
</ax-
|
|
10535
|
-
|
|
10536
|
-
|
|
10475
|
+
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10476
|
+
AXCheckBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "checkBox", first: true, predicate: AXCheckBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
10477
|
+
<ax-check-box
|
|
10478
|
+
[disabled]="disabled"
|
|
10479
|
+
[label]="label"
|
|
10480
|
+
[size]="size"
|
|
10481
|
+
[indeterminate]="indeterminate"
|
|
10482
|
+
[readonly]="readonly"
|
|
10483
|
+
[value]="value"
|
|
10484
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10485
|
+
>
|
|
10486
|
+
<ax-validation [rules]="validation?.rules">
|
|
10487
|
+
</ax-validation>
|
|
10488
|
+
</ax-check-box>
|
|
10489
|
+
`, isInline: true, components: [{ type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["readonly", "disabled", "size", "label", "tabIndex", "indeterminate", "value"], outputs: ["onValueChanged", "valueChange", "onClick"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
10490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
10537
10491
|
type: Component,
|
|
10538
10492
|
args: [{
|
|
10539
10493
|
template: `
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
</ax-
|
|
10494
|
+
<ax-check-box
|
|
10495
|
+
[disabled]="disabled"
|
|
10496
|
+
[label]="label"
|
|
10497
|
+
[size]="size"
|
|
10498
|
+
[indeterminate]="indeterminate"
|
|
10499
|
+
[readonly]="readonly"
|
|
10500
|
+
[value]="value"
|
|
10501
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10502
|
+
>
|
|
10503
|
+
<ax-validation [rules]="validation?.rules">
|
|
10504
|
+
</ax-validation>
|
|
10505
|
+
</ax-check-box>
|
|
10551
10506
|
`,
|
|
10552
10507
|
}]
|
|
10553
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
10554
|
-
type: ViewChild,
|
|
10555
|
-
args: [AXNumberBoxComponent]
|
|
10556
|
-
}] } });
|
|
10557
|
-
|
|
10558
|
-
class AXNumberBoxPropertyEditorModule {
|
|
10559
|
-
constructor() {
|
|
10560
|
-
}
|
|
10561
|
-
}
|
|
10562
|
-
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10563
|
-
AXNumberBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, declarations: [AXNumberBoxPropertyEditorComponent], imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule], exports: [AXNumberBoxPropertyEditorComponent] });
|
|
10564
|
-
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
10565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
10566
|
-
type: NgModule,
|
|
10567
|
-
args: [{
|
|
10568
|
-
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
10569
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
10570
|
-
exports: [AXNumberBoxPropertyEditorComponent],
|
|
10571
|
-
providers: []
|
|
10572
|
-
}]
|
|
10573
|
-
}], ctorParameters: function () { return []; } });
|
|
10574
|
-
|
|
10575
|
-
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10576
|
-
constructor(cdr) {
|
|
10577
|
-
super(cdr);
|
|
10578
|
-
this.cdr = cdr;
|
|
10579
|
-
this.valueField = 'id';
|
|
10580
|
-
this.textField = 'text';
|
|
10581
|
-
this.selectionMode = 'single';
|
|
10582
|
-
this.selectionDataMode = 'value';
|
|
10583
|
-
this.allowSearch = true;
|
|
10584
|
-
this.allowNull = false;
|
|
10585
|
-
this.disabled = false;
|
|
10586
|
-
this.items = [];
|
|
10587
|
-
this.remoteOperation = false;
|
|
10588
|
-
this.provideData = (e) => {
|
|
10589
|
-
return new Promise((resolve) => {
|
|
10590
|
-
const func = () => {
|
|
10591
|
-
if (Array.isArray(this.items)) {
|
|
10592
|
-
resolve(this.items.slice());
|
|
10593
|
-
}
|
|
10594
|
-
else if (typeof this.items === 'function') {
|
|
10595
|
-
const a = Object.assign(e, { sender: this });
|
|
10596
|
-
resolve(this.items(a));
|
|
10597
|
-
}
|
|
10598
|
-
else {
|
|
10599
|
-
resolve([]);
|
|
10600
|
-
}
|
|
10601
|
-
};
|
|
10602
|
-
const intVal = setInterval(() => {
|
|
10603
|
-
if (this.initiated) {
|
|
10604
|
-
func();
|
|
10605
|
-
clearInterval(intVal);
|
|
10606
|
-
}
|
|
10607
|
-
}, 50);
|
|
10608
|
-
});
|
|
10609
|
-
};
|
|
10610
|
-
}
|
|
10611
|
-
get filter() {
|
|
10612
|
-
return this._filter;
|
|
10613
|
-
}
|
|
10614
|
-
set filter(v) {
|
|
10615
|
-
this._filter = v;
|
|
10616
|
-
if (this.value && this.initiated) {
|
|
10617
|
-
this.value = null;
|
|
10618
|
-
this.selectBox?.refresh();
|
|
10619
|
-
}
|
|
10620
|
-
}
|
|
10621
|
-
handleValueChange(e) {
|
|
10622
|
-
super.handleValueChange(e.selectedValues);
|
|
10623
|
-
}
|
|
10624
|
-
ngAfterViewInit() {
|
|
10625
|
-
this.registerForValidationForm(this.selectBox);
|
|
10626
|
-
this.onRenderCompleted.emit();
|
|
10627
|
-
}
|
|
10628
|
-
}
|
|
10629
|
-
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10630
|
-
AXSelectBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "selectBox", first: true, predicate: AXSelectBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-select-box [mode]=\"selectionMode\"\r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [selectedValues]=\"value\" \r\n [remoteOperation]=\"remoteOperation\"\r\n [allowSearch]=\"allowSearch\" \r\n [allowNull]=\"allowNull\"\r\n [readonly]=\"readonly\"\r\n [disabled]=\"disabled\"\r\n (selectionChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box>", components: [{ type: AXSelectBoxComponent, selector: "ax-select-box", inputs: ["showDropDownButton", "rowInputTemplate", "showCheckBox", "readonly", "rtl", "disabled", "placeholder", "size", "allowNull", "textAlign", "bufferSize", "remoteOperation", "dataSource", "validation", "disabledCallback", "allowSearch", "textField", "valueField", "disabledField", "mode", "items", "selectedItems", "selectedValues"], outputs: ["dropdownToggle", "itemsChange", "onBlur", "onFocus", "selectionChanged", "selectedItemsChange", "selectedValuesChange"] }, { type: AXDataSourceComponent, selector: "ax-data-source", inputs: ["provideData", "params"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
10631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
10632
|
-
type: Component,
|
|
10633
|
-
args: [{ template: "<ax-select-box [mode]=\"selectionMode\"\r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [selectedValues]=\"value\" \r\n [remoteOperation]=\"remoteOperation\"\r\n [allowSearch]=\"allowSearch\" \r\n [allowNull]=\"allowNull\"\r\n [readonly]=\"readonly\"\r\n [disabled]=\"disabled\"\r\n (selectionChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box>" }]
|
|
10634
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
10508
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checkBox: [{
|
|
10635
10509
|
type: ViewChild,
|
|
10636
|
-
args: [
|
|
10510
|
+
args: [AXCheckBoxComponent, { static: true }]
|
|
10637
10511
|
}] } });
|
|
10638
10512
|
|
|
10639
|
-
class
|
|
10640
|
-
constructor() {
|
|
10641
|
-
}
|
|
10513
|
+
class AXCheckPropertyEditorModule {
|
|
10642
10514
|
}
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
10515
|
+
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10516
|
+
AXCheckPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, declarations: [AXCheckBoxPropertyEditorComponent], imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule], exports: [AXCheckBoxPropertyEditorComponent] });
|
|
10517
|
+
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
10518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
10647
10519
|
type: NgModule,
|
|
10648
10520
|
args: [{
|
|
10649
|
-
declarations: [
|
|
10650
|
-
imports: [CommonModule,
|
|
10651
|
-
exports: [
|
|
10652
|
-
providers: []
|
|
10521
|
+
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
10522
|
+
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
10523
|
+
exports: [AXCheckBoxPropertyEditorComponent],
|
|
10524
|
+
providers: [],
|
|
10653
10525
|
}]
|
|
10654
|
-
}]
|
|
10526
|
+
}] });
|
|
10655
10527
|
|
|
10656
10528
|
class AXColorBoxComponent extends AXValidatableComponent {
|
|
10657
10529
|
constructor() {
|
|
@@ -11141,198 +11013,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11141
11013
|
type: Input
|
|
11142
11014
|
}] } });
|
|
11143
11015
|
|
|
11144
|
-
class
|
|
11145
|
-
constructor(cdr
|
|
11016
|
+
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11017
|
+
constructor(cdr) {
|
|
11146
11018
|
super(cdr);
|
|
11147
11019
|
this.cdr = cdr;
|
|
11148
|
-
this.popupService = popupService;
|
|
11149
|
-
this.ranges = [];
|
|
11150
|
-
this.showSeparator = true;
|
|
11151
|
-
this.decimalNumber = 2;
|
|
11152
|
-
}
|
|
11153
|
-
ngOnInit() {
|
|
11154
|
-
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11155
|
-
this.cdr.detectChanges();
|
|
11156
11020
|
}
|
|
11157
11021
|
ngAfterViewInit() {
|
|
11158
|
-
this.
|
|
11159
|
-
}
|
|
11160
|
-
// getRanges() {
|
|
11161
|
-
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11162
|
-
// }
|
|
11163
|
-
onFormInit(e) {
|
|
11164
|
-
this.form = e.component;
|
|
11165
|
-
}
|
|
11166
|
-
handleEditClick(item) {
|
|
11167
|
-
this.editRow = Object.assign({}, item);
|
|
11168
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
11169
|
-
size: 'sm',
|
|
11170
|
-
footerButtons: [
|
|
11171
|
-
{
|
|
11172
|
-
name: 'confirm',
|
|
11173
|
-
text: AXTranslator.get('common.confirm'),
|
|
11174
|
-
style: 'success',
|
|
11175
|
-
submitBehavior: true,
|
|
11176
|
-
cancelBehavior: false,
|
|
11177
|
-
onClick: () => {
|
|
11178
|
-
this.form.validate().then(c => {
|
|
11179
|
-
if (c.result) {
|
|
11180
|
-
super.handleValueChange(this.ranges);
|
|
11181
|
-
Object.assign(item, this.editRow);
|
|
11182
|
-
popup.close();
|
|
11183
|
-
this.editRow = null;
|
|
11184
|
-
this.cdr.detectChanges();
|
|
11185
|
-
}
|
|
11186
|
-
});
|
|
11187
|
-
}
|
|
11188
|
-
},
|
|
11189
|
-
{
|
|
11190
|
-
name: 'cancel',
|
|
11191
|
-
text: AXTranslator.get('common.cancel'),
|
|
11192
|
-
style: 'danger blank',
|
|
11193
|
-
submitBehavior: false,
|
|
11194
|
-
cancelBehavior: true,
|
|
11195
|
-
onClick: () => {
|
|
11196
|
-
popup.close();
|
|
11197
|
-
this.editRow = null;
|
|
11198
|
-
this.cdr.detectChanges();
|
|
11199
|
-
}
|
|
11200
|
-
}
|
|
11201
|
-
],
|
|
11202
|
-
title: AXTranslator.get('common.edit')
|
|
11203
|
-
});
|
|
11204
|
-
}
|
|
11205
|
-
handleAddClick() {
|
|
11206
|
-
const min = this.ranges?.length ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11207
|
-
this.editRow = {
|
|
11208
|
-
title: '',
|
|
11209
|
-
minValue: min,
|
|
11210
|
-
maxValue: min + 1,
|
|
11211
|
-
color: null
|
|
11212
|
-
};
|
|
11213
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
11214
|
-
title: AXTranslator.get('common.add-item'),
|
|
11215
|
-
size: 'sm',
|
|
11216
|
-
footerButtons: [
|
|
11217
|
-
{
|
|
11218
|
-
name: 'confirm',
|
|
11219
|
-
text: AXTranslator.get('common.confirm'),
|
|
11220
|
-
style: 'success',
|
|
11221
|
-
submitBehavior: true,
|
|
11222
|
-
cancelBehavior: false,
|
|
11223
|
-
onClick: () => {
|
|
11224
|
-
this.form.validate().then(c => {
|
|
11225
|
-
if (c.result) {
|
|
11226
|
-
super.handleValueChange(this.ranges);
|
|
11227
|
-
this.ranges.push(this.editRow);
|
|
11228
|
-
popup.close();
|
|
11229
|
-
this.editRow = null;
|
|
11230
|
-
this.cdr.detectChanges();
|
|
11231
|
-
}
|
|
11232
|
-
});
|
|
11233
|
-
}
|
|
11234
|
-
},
|
|
11235
|
-
{
|
|
11236
|
-
name: 'cancel',
|
|
11237
|
-
text: AXTranslator.get('common.cancel'),
|
|
11238
|
-
style: 'danger blank',
|
|
11239
|
-
submitBehavior: false,
|
|
11240
|
-
cancelBehavior: true,
|
|
11241
|
-
onClick: () => {
|
|
11242
|
-
popup.close();
|
|
11243
|
-
this.editRow = null;
|
|
11244
|
-
this.cdr.detectChanges();
|
|
11245
|
-
}
|
|
11246
|
-
}
|
|
11247
|
-
],
|
|
11248
|
-
});
|
|
11249
|
-
this.cdr.detectChanges();
|
|
11250
|
-
}
|
|
11251
|
-
handleRemoveClick(item) {
|
|
11252
|
-
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11253
|
-
super.handleValueChange(this.ranges);
|
|
11254
|
-
}
|
|
11255
|
-
}
|
|
11256
|
-
AXRangePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: AXPopupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11257
|
-
AXRangePropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXRangePropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "tplEdit", first: true, predicate: ["tplEdit"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"], components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { type: AXPageComponent, selector: "ax-page" }, { type: AXPageContentComponent, selector: "ax-page-content" }, { type: AXValidationFormComponent, selector: "ax-validation-form", inputs: ["validateOn"], outputs: ["onInit"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }, { type: AXValidationRuleComponent, selector: "ax-validation-rule", inputs: ["type", "message", "value", "enabled"] }, { type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["min", "max", "showSeparator", "showCurrency", "showCounter", "scrollWeel", "showDoubleCounter", "maxLength", "intStep", "decimalNumber", "customStep"] }, { type: AXColorPickerComponent, selector: "ax-color-picker", inputs: ["placeholder", "showClear", "label", "readonly", "disabled", "size", "rtl", "validation"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "trans": i1$2.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11259
|
-
type: Component,
|
|
11260
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"] }]
|
|
11261
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11262
|
-
type: ViewChild,
|
|
11263
|
-
args: ['tplEdit']
|
|
11264
|
-
}] } });
|
|
11265
|
-
|
|
11266
|
-
class AXColorPickerModule {
|
|
11267
|
-
}
|
|
11268
|
-
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11269
|
-
AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, declarations: [AXColorPickerComponent, AXColorBoxComponent], imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule], exports: [AXColorPickerComponent, AXColorBoxComponent] });
|
|
11270
|
-
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11272
|
-
type: NgModule,
|
|
11273
|
-
args: [{
|
|
11274
|
-
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11275
|
-
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11276
|
-
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11277
|
-
providers: []
|
|
11278
|
-
}]
|
|
11279
|
-
}] });
|
|
11280
|
-
|
|
11281
|
-
class AXRangePropertyEditorModule {
|
|
11282
|
-
constructor() {
|
|
11283
|
-
}
|
|
11284
|
-
}
|
|
11285
|
-
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11286
|
-
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11287
|
-
FormsModule,
|
|
11288
|
-
AXTranslatorModule,
|
|
11289
|
-
AXTextBoxModule,
|
|
11290
|
-
AXNumberBoxModule,
|
|
11291
|
-
AXColorPickerModule,
|
|
11292
|
-
AXLabelModule,
|
|
11293
|
-
AXPageModule,
|
|
11294
|
-
AXValidationModule,
|
|
11295
|
-
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11296
|
-
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11297
|
-
CommonModule,
|
|
11298
|
-
FormsModule,
|
|
11299
|
-
AXTranslatorModule,
|
|
11300
|
-
AXTextBoxModule,
|
|
11301
|
-
AXNumberBoxModule,
|
|
11302
|
-
AXColorPickerModule,
|
|
11303
|
-
AXLabelModule,
|
|
11304
|
-
AXPageModule,
|
|
11305
|
-
AXValidationModule,
|
|
11306
|
-
AXButtonModule
|
|
11307
|
-
]] });
|
|
11308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11309
|
-
type: NgModule,
|
|
11310
|
-
args: [{
|
|
11311
|
-
declarations: [AXRangePropertyEditorComponent],
|
|
11312
|
-
imports: [
|
|
11313
|
-
CommonModule,
|
|
11314
|
-
FormsModule,
|
|
11315
|
-
AXTranslatorModule,
|
|
11316
|
-
AXTextBoxModule,
|
|
11317
|
-
AXNumberBoxModule,
|
|
11318
|
-
AXColorPickerModule,
|
|
11319
|
-
AXLabelModule,
|
|
11320
|
-
AXPageModule,
|
|
11321
|
-
AXValidationModule,
|
|
11322
|
-
AXButtonModule
|
|
11323
|
-
],
|
|
11324
|
-
exports: [AXRangePropertyEditorComponent],
|
|
11325
|
-
providers: []
|
|
11326
|
-
}]
|
|
11327
|
-
}], ctorParameters: function () { return []; } });
|
|
11328
|
-
|
|
11329
|
-
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11330
|
-
constructor(cdr) {
|
|
11331
|
-
super(cdr);
|
|
11332
|
-
this.cdr = cdr;
|
|
11333
|
-
}
|
|
11334
|
-
ngAfterViewInit() {
|
|
11335
|
-
this.registerForValidationForm(this.textBox);
|
|
11022
|
+
this.registerForValidationForm(this.textBox);
|
|
11336
11023
|
this.onRenderCompleted.emit();
|
|
11337
11024
|
}
|
|
11338
11025
|
}
|
|
@@ -11358,6 +11045,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11358
11045
|
args: [AXColorPickerComponent]
|
|
11359
11046
|
}] } });
|
|
11360
11047
|
|
|
11048
|
+
class AXColorPickerModule {
|
|
11049
|
+
}
|
|
11050
|
+
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11051
|
+
AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, declarations: [AXColorPickerComponent, AXColorBoxComponent], imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule], exports: [AXColorPickerComponent, AXColorBoxComponent] });
|
|
11052
|
+
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11054
|
+
type: NgModule,
|
|
11055
|
+
args: [{
|
|
11056
|
+
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11057
|
+
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11058
|
+
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11059
|
+
providers: []
|
|
11060
|
+
}]
|
|
11061
|
+
}] });
|
|
11062
|
+
|
|
11361
11063
|
class AXColorPropertyEditorModule {
|
|
11362
11064
|
constructor() {
|
|
11363
11065
|
}
|
|
@@ -11747,92 +11449,557 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11747
11449
|
}]
|
|
11748
11450
|
}], ctorParameters: function () { return []; } });
|
|
11749
11451
|
|
|
11750
|
-
class
|
|
11751
|
-
constructor(cdr) {
|
|
11752
|
-
super();
|
|
11753
|
-
this.cdr = cdr;
|
|
11754
|
-
this.onValueChanged = new EventEmitter();
|
|
11755
|
-
this.valueChange = new EventEmitter();
|
|
11756
|
-
this.tabIndex = 0;
|
|
11757
|
-
this.size = 'md';
|
|
11758
|
-
}
|
|
11759
|
-
get value() {
|
|
11760
|
-
return this._value;
|
|
11761
|
-
}
|
|
11762
|
-
set value(v) {
|
|
11763
|
-
if (this._value !== v) {
|
|
11764
|
-
const oldValue = this._value;
|
|
11765
|
-
this._value = v;
|
|
11766
|
-
this.valueChange.emit(v);
|
|
11767
|
-
this.onValueChanged.emit({
|
|
11768
|
-
component: this,
|
|
11769
|
-
oldValue,
|
|
11770
|
-
value: v
|
|
11771
|
-
});
|
|
11772
|
-
}
|
|
11773
|
-
}
|
|
11774
|
-
focus() { }
|
|
11775
|
-
}
|
|
11776
|
-
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11777
|
-
AXSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchComponent, selector: "ax-switch", inputs: { tabIndex: "tabIndex", value: "value", readonly: "readonly", disabled: "disabled", size: "size" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"], directives: [{ type: i2$2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11779
|
-
type: Component,
|
|
11780
|
-
args: [{ selector: 'ax-switch', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"] }]
|
|
11781
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
11782
|
-
type: Output
|
|
11783
|
-
}], valueChange: [{
|
|
11784
|
-
type: Output
|
|
11785
|
-
}], tabIndex: [{
|
|
11786
|
-
type: Input
|
|
11787
|
-
}], value: [{
|
|
11788
|
-
type: Input
|
|
11789
|
-
}], readonly: [{
|
|
11790
|
-
type: Input
|
|
11791
|
-
}], disabled: [{
|
|
11792
|
-
type: Input
|
|
11793
|
-
}], size: [{
|
|
11794
|
-
type: Input
|
|
11795
|
-
}] } });
|
|
11796
|
-
|
|
11797
|
-
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11452
|
+
class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11798
11453
|
constructor(cdr) {
|
|
11799
11454
|
super(cdr);
|
|
11800
11455
|
this.cdr = cdr;
|
|
11456
|
+
this.showTodayButton = true;
|
|
11457
|
+
this.selectableHoliday = true;
|
|
11458
|
+
this.type = 'gregorian';
|
|
11459
|
+
this.textAlign = null;
|
|
11460
|
+
this.placeholder = '';
|
|
11461
|
+
this.clearButton = false;
|
|
11462
|
+
this.showToday = false;
|
|
11463
|
+
this.size = 'md';
|
|
11801
11464
|
}
|
|
11802
11465
|
handleValueChange(e) {
|
|
11803
11466
|
super.handleValueChange(e.value);
|
|
11804
11467
|
}
|
|
11805
11468
|
ngAfterViewInit() {
|
|
11469
|
+
this.registerForValidationForm(this.date);
|
|
11806
11470
|
this.onRenderCompleted.emit();
|
|
11807
11471
|
}
|
|
11808
11472
|
}
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11473
|
+
AXDatePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11474
|
+
AXDatePropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDatePropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "date", first: true, predicate: AXDatePickerComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11475
|
+
<ax-date-picker [size]="size" [dateType]="dateType" [showToday]="showToday" [disabled]="disabled" [allowClear]="clearButton" [readonly]="readonly" [max]="max" [min]="min" [placeholder]="placeholder" [showTodayButton]="showTodayButton" [selectableHoliday]="selectableHoliday" (onValueChanged)="handleValueChange($event)"
|
|
11476
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11477
|
+
<ax-validation [rules]="validation?.rules">
|
|
11478
|
+
</ax-validation>
|
|
11479
|
+
</ax-date-picker>
|
|
11480
|
+
`, isInline: true, components: [{ type: AXDatePickerComponent, selector: "ax-date-picker", inputs: ["dayStyle", "dayMinMaxResoan", "validation", "placeholder", "min", "max", "readonly", "disabled", "allowClear", "textAlign", "showToday", "selectableHoliday", "dateType", "showTodayButton", "openByClick", "size", "type", "value"], outputs: ["typeChange", "onValueChanged", "valueChange"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
11814
11482
|
type: Component,
|
|
11815
11483
|
args: [{
|
|
11816
11484
|
template: `
|
|
11817
|
-
|
|
11818
|
-
|
|
11485
|
+
<ax-date-picker [size]="size" [dateType]="dateType" [showToday]="showToday" [disabled]="disabled" [allowClear]="clearButton" [readonly]="readonly" [max]="max" [min]="min" [placeholder]="placeholder" [showTodayButton]="showTodayButton" [selectableHoliday]="selectableHoliday" (onValueChanged)="handleValueChange($event)"
|
|
11486
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11487
|
+
<ax-validation [rules]="validation?.rules">
|
|
11488
|
+
</ax-validation>
|
|
11489
|
+
</ax-date-picker>
|
|
11490
|
+
`,
|
|
11819
11491
|
}]
|
|
11820
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }
|
|
11492
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
11493
|
+
type: ViewChild,
|
|
11494
|
+
args: [AXDatePickerComponent]
|
|
11495
|
+
}] } });
|
|
11821
11496
|
|
|
11822
|
-
class
|
|
11497
|
+
class AXDatePropertyEditorModule {
|
|
11498
|
+
constructor() {
|
|
11499
|
+
}
|
|
11823
11500
|
}
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
11501
|
+
AXDatePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11502
|
+
AXDatePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, declarations: [AXDatePropertyEditorComponent], imports: [CommonModule, FormsModule, AXDatePickerModule, AXValidationModule], exports: [AXDatePropertyEditorComponent] });
|
|
11503
|
+
AXDatePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXDatePickerModule, AXValidationModule]] });
|
|
11504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, decorators: [{
|
|
11828
11505
|
type: NgModule,
|
|
11829
11506
|
args: [{
|
|
11830
|
-
declarations: [
|
|
11831
|
-
imports: [CommonModule, FormsModule],
|
|
11832
|
-
exports: [
|
|
11507
|
+
declarations: [AXDatePropertyEditorComponent],
|
|
11508
|
+
imports: [CommonModule, FormsModule, AXDatePickerModule, AXValidationModule],
|
|
11509
|
+
exports: [AXDatePropertyEditorComponent],
|
|
11833
11510
|
providers: []
|
|
11834
11511
|
}]
|
|
11835
|
-
}] });
|
|
11512
|
+
}], ctorParameters: function () { return []; } });
|
|
11513
|
+
|
|
11514
|
+
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11515
|
+
constructor(cdr) {
|
|
11516
|
+
super(cdr);
|
|
11517
|
+
this.cdr = cdr;
|
|
11518
|
+
this.showSeparator = true;
|
|
11519
|
+
this.decimalNumber = 2;
|
|
11520
|
+
this.minValue = null;
|
|
11521
|
+
this.maxValue = null;
|
|
11522
|
+
this.clearButton = false;
|
|
11523
|
+
}
|
|
11524
|
+
handleValueChange(e) {
|
|
11525
|
+
super.handleValueChange(e.value);
|
|
11526
|
+
}
|
|
11527
|
+
ngAfterViewInit() {
|
|
11528
|
+
this.registerForValidationForm(this.textBox);
|
|
11529
|
+
this.onRenderCompleted.emit();
|
|
11530
|
+
}
|
|
11531
|
+
}
|
|
11532
|
+
AXNumberBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11533
|
+
AXNumberBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXNumberBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXNumberBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11534
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11535
|
+
[value]="value"
|
|
11536
|
+
[showSeparator]="showSeparator"
|
|
11537
|
+
[decimalNumber]="decimalNumber"
|
|
11538
|
+
[min]="minValue"
|
|
11539
|
+
[max]="maxValue"
|
|
11540
|
+
[allowClear]="clearButton"
|
|
11541
|
+
>
|
|
11542
|
+
<ax-validation [rules]="validation?.rules">
|
|
11543
|
+
</ax-validation>
|
|
11544
|
+
</ax-number-box>
|
|
11545
|
+
`, isInline: true, components: [{ type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["min", "max", "showSeparator", "showCurrency", "showCounter", "scrollWeel", "showDoubleCounter", "maxLength", "intStep", "decimalNumber", "customStep"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, decorators: [{
|
|
11547
|
+
type: Component,
|
|
11548
|
+
args: [{
|
|
11549
|
+
template: `
|
|
11550
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11551
|
+
[value]="value"
|
|
11552
|
+
[showSeparator]="showSeparator"
|
|
11553
|
+
[decimalNumber]="decimalNumber"
|
|
11554
|
+
[min]="minValue"
|
|
11555
|
+
[max]="maxValue"
|
|
11556
|
+
[allowClear]="clearButton"
|
|
11557
|
+
>
|
|
11558
|
+
<ax-validation [rules]="validation?.rules">
|
|
11559
|
+
</ax-validation>
|
|
11560
|
+
</ax-number-box>
|
|
11561
|
+
`,
|
|
11562
|
+
}]
|
|
11563
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11564
|
+
type: ViewChild,
|
|
11565
|
+
args: [AXNumberBoxComponent]
|
|
11566
|
+
}] } });
|
|
11567
|
+
|
|
11568
|
+
class AXNumberBoxPropertyEditorModule {
|
|
11569
|
+
constructor() {
|
|
11570
|
+
}
|
|
11571
|
+
}
|
|
11572
|
+
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11573
|
+
AXNumberBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, declarations: [AXNumberBoxPropertyEditorComponent], imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule], exports: [AXNumberBoxPropertyEditorComponent] });
|
|
11574
|
+
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
11575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
11576
|
+
type: NgModule,
|
|
11577
|
+
args: [{
|
|
11578
|
+
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
11579
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
11580
|
+
exports: [AXNumberBoxPropertyEditorComponent],
|
|
11581
|
+
providers: []
|
|
11582
|
+
}]
|
|
11583
|
+
}], ctorParameters: function () { return []; } });
|
|
11584
|
+
|
|
11585
|
+
class AXRangePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11586
|
+
constructor(cdr, popupService) {
|
|
11587
|
+
super(cdr);
|
|
11588
|
+
this.cdr = cdr;
|
|
11589
|
+
this.popupService = popupService;
|
|
11590
|
+
this.ranges = [];
|
|
11591
|
+
this.showSeparator = true;
|
|
11592
|
+
this.decimalNumber = 2;
|
|
11593
|
+
}
|
|
11594
|
+
ngOnInit() {
|
|
11595
|
+
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11596
|
+
this.cdr.detectChanges();
|
|
11597
|
+
}
|
|
11598
|
+
ngAfterViewInit() {
|
|
11599
|
+
this.onRenderCompleted.emit();
|
|
11600
|
+
}
|
|
11601
|
+
// getRanges() {
|
|
11602
|
+
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11603
|
+
// }
|
|
11604
|
+
onFormInit(e) {
|
|
11605
|
+
this.form = e.component;
|
|
11606
|
+
}
|
|
11607
|
+
handleEditClick(item) {
|
|
11608
|
+
this.editRow = Object.assign({}, item);
|
|
11609
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11610
|
+
size: 'sm',
|
|
11611
|
+
footerButtons: [
|
|
11612
|
+
{
|
|
11613
|
+
name: 'confirm',
|
|
11614
|
+
text: AXTranslator.get('common.confirm'),
|
|
11615
|
+
style: 'success',
|
|
11616
|
+
submitBehavior: true,
|
|
11617
|
+
cancelBehavior: false,
|
|
11618
|
+
onClick: () => {
|
|
11619
|
+
this.form.validate().then(c => {
|
|
11620
|
+
if (c.result) {
|
|
11621
|
+
super.handleValueChange(this.ranges);
|
|
11622
|
+
Object.assign(item, this.editRow);
|
|
11623
|
+
popup.close();
|
|
11624
|
+
this.editRow = null;
|
|
11625
|
+
this.cdr.detectChanges();
|
|
11626
|
+
}
|
|
11627
|
+
});
|
|
11628
|
+
}
|
|
11629
|
+
},
|
|
11630
|
+
{
|
|
11631
|
+
name: 'cancel',
|
|
11632
|
+
text: AXTranslator.get('common.cancel'),
|
|
11633
|
+
style: 'danger blank',
|
|
11634
|
+
submitBehavior: false,
|
|
11635
|
+
cancelBehavior: true,
|
|
11636
|
+
onClick: () => {
|
|
11637
|
+
popup.close();
|
|
11638
|
+
this.editRow = null;
|
|
11639
|
+
this.cdr.detectChanges();
|
|
11640
|
+
}
|
|
11641
|
+
}
|
|
11642
|
+
],
|
|
11643
|
+
title: AXTranslator.get('common.edit')
|
|
11644
|
+
});
|
|
11645
|
+
}
|
|
11646
|
+
handleAddClick() {
|
|
11647
|
+
const min = this.ranges?.length ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11648
|
+
this.editRow = {
|
|
11649
|
+
title: '',
|
|
11650
|
+
minValue: min,
|
|
11651
|
+
maxValue: min + 1,
|
|
11652
|
+
color: null
|
|
11653
|
+
};
|
|
11654
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11655
|
+
title: AXTranslator.get('common.add-item'),
|
|
11656
|
+
size: 'sm',
|
|
11657
|
+
footerButtons: [
|
|
11658
|
+
{
|
|
11659
|
+
name: 'confirm',
|
|
11660
|
+
text: AXTranslator.get('common.confirm'),
|
|
11661
|
+
style: 'success',
|
|
11662
|
+
submitBehavior: true,
|
|
11663
|
+
cancelBehavior: false,
|
|
11664
|
+
onClick: () => {
|
|
11665
|
+
this.form.validate().then(c => {
|
|
11666
|
+
if (c.result) {
|
|
11667
|
+
super.handleValueChange(this.ranges);
|
|
11668
|
+
this.ranges.push(this.editRow);
|
|
11669
|
+
popup.close();
|
|
11670
|
+
this.editRow = null;
|
|
11671
|
+
this.cdr.detectChanges();
|
|
11672
|
+
}
|
|
11673
|
+
});
|
|
11674
|
+
}
|
|
11675
|
+
},
|
|
11676
|
+
{
|
|
11677
|
+
name: 'cancel',
|
|
11678
|
+
text: AXTranslator.get('common.cancel'),
|
|
11679
|
+
style: 'danger blank',
|
|
11680
|
+
submitBehavior: false,
|
|
11681
|
+
cancelBehavior: true,
|
|
11682
|
+
onClick: () => {
|
|
11683
|
+
popup.close();
|
|
11684
|
+
this.editRow = null;
|
|
11685
|
+
this.cdr.detectChanges();
|
|
11686
|
+
}
|
|
11687
|
+
}
|
|
11688
|
+
],
|
|
11689
|
+
});
|
|
11690
|
+
this.cdr.detectChanges();
|
|
11691
|
+
}
|
|
11692
|
+
handleRemoveClick(item) {
|
|
11693
|
+
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11694
|
+
super.handleValueChange(this.ranges);
|
|
11695
|
+
}
|
|
11696
|
+
}
|
|
11697
|
+
AXRangePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: AXPopupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11698
|
+
AXRangePropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXRangePropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "tplEdit", first: true, predicate: ["tplEdit"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"], components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { type: AXPageComponent, selector: "ax-page" }, { type: AXPageContentComponent, selector: "ax-page-content" }, { type: AXValidationFormComponent, selector: "ax-validation-form", inputs: ["validateOn"], outputs: ["onInit"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }, { type: AXValidationRuleComponent, selector: "ax-validation-rule", inputs: ["type", "message", "value", "enabled"] }, { type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["min", "max", "showSeparator", "showCurrency", "showCounter", "scrollWeel", "showDoubleCounter", "maxLength", "intStep", "decimalNumber", "customStep"] }, { type: AXColorPickerComponent, selector: "ax-color-picker", inputs: ["placeholder", "showClear", "label", "readonly", "disabled", "size", "rtl", "validation"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "trans": i1$2.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11700
|
+
type: Component,
|
|
11701
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"] }]
|
|
11702
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11703
|
+
type: ViewChild,
|
|
11704
|
+
args: ['tplEdit']
|
|
11705
|
+
}] } });
|
|
11706
|
+
|
|
11707
|
+
class AXRangePropertyEditorModule {
|
|
11708
|
+
constructor() {
|
|
11709
|
+
}
|
|
11710
|
+
}
|
|
11711
|
+
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11712
|
+
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11713
|
+
FormsModule,
|
|
11714
|
+
AXTranslatorModule,
|
|
11715
|
+
AXTextBoxModule,
|
|
11716
|
+
AXNumberBoxModule,
|
|
11717
|
+
AXColorPickerModule,
|
|
11718
|
+
AXLabelModule,
|
|
11719
|
+
AXPageModule,
|
|
11720
|
+
AXValidationModule,
|
|
11721
|
+
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11722
|
+
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11723
|
+
CommonModule,
|
|
11724
|
+
FormsModule,
|
|
11725
|
+
AXTranslatorModule,
|
|
11726
|
+
AXTextBoxModule,
|
|
11727
|
+
AXNumberBoxModule,
|
|
11728
|
+
AXColorPickerModule,
|
|
11729
|
+
AXLabelModule,
|
|
11730
|
+
AXPageModule,
|
|
11731
|
+
AXValidationModule,
|
|
11732
|
+
AXButtonModule
|
|
11733
|
+
]] });
|
|
11734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11735
|
+
type: NgModule,
|
|
11736
|
+
args: [{
|
|
11737
|
+
declarations: [AXRangePropertyEditorComponent],
|
|
11738
|
+
imports: [
|
|
11739
|
+
CommonModule,
|
|
11740
|
+
FormsModule,
|
|
11741
|
+
AXTranslatorModule,
|
|
11742
|
+
AXTextBoxModule,
|
|
11743
|
+
AXNumberBoxModule,
|
|
11744
|
+
AXColorPickerModule,
|
|
11745
|
+
AXLabelModule,
|
|
11746
|
+
AXPageModule,
|
|
11747
|
+
AXValidationModule,
|
|
11748
|
+
AXButtonModule
|
|
11749
|
+
],
|
|
11750
|
+
exports: [AXRangePropertyEditorComponent],
|
|
11751
|
+
providers: []
|
|
11752
|
+
}]
|
|
11753
|
+
}], ctorParameters: function () { return []; } });
|
|
11754
|
+
|
|
11755
|
+
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11756
|
+
constructor(cdr) {
|
|
11757
|
+
super(cdr);
|
|
11758
|
+
this.cdr = cdr;
|
|
11759
|
+
this.valueField = 'id';
|
|
11760
|
+
this.textField = 'text';
|
|
11761
|
+
this.selectionMode = 'single';
|
|
11762
|
+
this.selectionDataMode = 'value';
|
|
11763
|
+
this.allowSearch = true;
|
|
11764
|
+
this.allowNull = false;
|
|
11765
|
+
this.disabled = false;
|
|
11766
|
+
this.items = [];
|
|
11767
|
+
this.remoteOperation = false;
|
|
11768
|
+
this.provideData = (e) => {
|
|
11769
|
+
return new Promise((resolve) => {
|
|
11770
|
+
const func = () => {
|
|
11771
|
+
if (Array.isArray(this.items)) {
|
|
11772
|
+
resolve(this.items.slice());
|
|
11773
|
+
}
|
|
11774
|
+
else if (typeof this.items === 'function') {
|
|
11775
|
+
const a = Object.assign(e, { sender: this });
|
|
11776
|
+
resolve(this.items(a));
|
|
11777
|
+
}
|
|
11778
|
+
else {
|
|
11779
|
+
resolve([]);
|
|
11780
|
+
}
|
|
11781
|
+
};
|
|
11782
|
+
const intVal = setInterval(() => {
|
|
11783
|
+
if (this.initiated) {
|
|
11784
|
+
func();
|
|
11785
|
+
clearInterval(intVal);
|
|
11786
|
+
}
|
|
11787
|
+
}, 50);
|
|
11788
|
+
});
|
|
11789
|
+
};
|
|
11790
|
+
}
|
|
11791
|
+
get filter() {
|
|
11792
|
+
return this._filter;
|
|
11793
|
+
}
|
|
11794
|
+
set filter(v) {
|
|
11795
|
+
this._filter = v;
|
|
11796
|
+
if (this.value && this.initiated) {
|
|
11797
|
+
this.value = null;
|
|
11798
|
+
this.selectBox?.refresh();
|
|
11799
|
+
}
|
|
11800
|
+
}
|
|
11801
|
+
handleValueChange(e) {
|
|
11802
|
+
super.handleValueChange(e.selectedValues);
|
|
11803
|
+
}
|
|
11804
|
+
ngAfterViewInit() {
|
|
11805
|
+
this.registerForValidationForm(this.selectBox);
|
|
11806
|
+
this.onRenderCompleted.emit();
|
|
11807
|
+
}
|
|
11808
|
+
}
|
|
11809
|
+
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11810
|
+
AXSelectBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "selectBox", first: true, predicate: AXSelectBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-select-box [mode]=\"selectionMode\"\r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [selectedValues]=\"value\" \r\n [remoteOperation]=\"remoteOperation\"\r\n [allowSearch]=\"allowSearch\" \r\n [allowNull]=\"allowNull\"\r\n [readonly]=\"readonly\"\r\n [disabled]=\"disabled\"\r\n (selectionChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box>", components: [{ type: AXSelectBoxComponent, selector: "ax-select-box", inputs: ["showDropDownButton", "rowInputTemplate", "showCheckBox", "readonly", "rtl", "disabled", "placeholder", "size", "allowNull", "textAlign", "bufferSize", "remoteOperation", "dataSource", "validation", "disabledCallback", "allowSearch", "textField", "valueField", "disabledField", "mode", "items", "selectedItems", "selectedValues"], outputs: ["dropdownToggle", "itemsChange", "onBlur", "onFocus", "selectionChanged", "selectedItemsChange", "selectedValuesChange"] }, { type: AXDataSourceComponent, selector: "ax-data-source", inputs: ["provideData", "params"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
11812
|
+
type: Component,
|
|
11813
|
+
args: [{ template: "<ax-select-box [mode]=\"selectionMode\"\r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [selectedValues]=\"value\" \r\n [remoteOperation]=\"remoteOperation\"\r\n [allowSearch]=\"allowSearch\" \r\n [allowNull]=\"allowNull\"\r\n [readonly]=\"readonly\"\r\n [disabled]=\"disabled\"\r\n (selectionChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box>" }]
|
|
11814
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
11815
|
+
type: ViewChild,
|
|
11816
|
+
args: [AXSelectBoxComponent, { static: true }]
|
|
11817
|
+
}] } });
|
|
11818
|
+
|
|
11819
|
+
class AXSelectBoxPropertyEditorModule {
|
|
11820
|
+
constructor() {
|
|
11821
|
+
}
|
|
11822
|
+
}
|
|
11823
|
+
AXSelectBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11824
|
+
AXSelectBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, declarations: [AXSelectBoxPropertyEditorComponent], imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule], exports: [AXSelectBoxPropertyEditorComponent] });
|
|
11825
|
+
AXSelectBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule]] });
|
|
11826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, decorators: [{
|
|
11827
|
+
type: NgModule,
|
|
11828
|
+
args: [{
|
|
11829
|
+
declarations: [AXSelectBoxPropertyEditorComponent],
|
|
11830
|
+
imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule],
|
|
11831
|
+
exports: [AXSelectBoxPropertyEditorComponent],
|
|
11832
|
+
providers: []
|
|
11833
|
+
}]
|
|
11834
|
+
}], ctorParameters: function () { return []; } });
|
|
11835
|
+
|
|
11836
|
+
class AXSelectionListPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11837
|
+
constructor(cdr) {
|
|
11838
|
+
super(cdr);
|
|
11839
|
+
this.cdr = cdr;
|
|
11840
|
+
this.disabled = false;
|
|
11841
|
+
this.indeterminate = false;
|
|
11842
|
+
this.readonly = false;
|
|
11843
|
+
this.size = 'md';
|
|
11844
|
+
this.items = [];
|
|
11845
|
+
this.mode = 'single';
|
|
11846
|
+
this.direction = 'horizontal';
|
|
11847
|
+
this.textField = null;
|
|
11848
|
+
this.valueField = null;
|
|
11849
|
+
}
|
|
11850
|
+
handleValueChange(e) {
|
|
11851
|
+
super.handleValueChange(e);
|
|
11852
|
+
}
|
|
11853
|
+
ngAfterViewInit() {
|
|
11854
|
+
this.registerForValidationForm(this.selectionList);
|
|
11855
|
+
this.onRenderCompleted.emit();
|
|
11856
|
+
}
|
|
11857
|
+
}
|
|
11858
|
+
AXSelectionListPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11859
|
+
AXSelectionListPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectionListPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "selectionList", first: true, predicate: AXSelectionListComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11860
|
+
<ax-selection-list
|
|
11861
|
+
[disabled]="disabled"
|
|
11862
|
+
[size]="size"
|
|
11863
|
+
[readonly]="readonly"
|
|
11864
|
+
[value]="value"
|
|
11865
|
+
[items]="items"
|
|
11866
|
+
[mode]="mode"
|
|
11867
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11868
|
+
[textField]="textField"
|
|
11869
|
+
[valueField]="valueField"
|
|
11870
|
+
[direction]="direction"
|
|
11871
|
+
>
|
|
11872
|
+
<ax-validation [rules]="validation?.rules">
|
|
11873
|
+
</ax-validation>
|
|
11874
|
+
</ax-selection-list>
|
|
11875
|
+
`, isInline: true, components: [{ type: AXSelectionListComponent, selector: "ax-selection-list", inputs: ["readonly", "value", "disabled", "size", "direction", "items", "mode", "textField", "valueField", "selectedItems", "selectedValues"], outputs: ["selectedItemsChange", "selectedValuesChange"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, decorators: [{
|
|
11877
|
+
type: Component,
|
|
11878
|
+
args: [{
|
|
11879
|
+
template: `
|
|
11880
|
+
<ax-selection-list
|
|
11881
|
+
[disabled]="disabled"
|
|
11882
|
+
[size]="size"
|
|
11883
|
+
[readonly]="readonly"
|
|
11884
|
+
[value]="value"
|
|
11885
|
+
[items]="items"
|
|
11886
|
+
[mode]="mode"
|
|
11887
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11888
|
+
[textField]="textField"
|
|
11889
|
+
[valueField]="valueField"
|
|
11890
|
+
[direction]="direction"
|
|
11891
|
+
>
|
|
11892
|
+
<ax-validation [rules]="validation?.rules">
|
|
11893
|
+
</ax-validation>
|
|
11894
|
+
</ax-selection-list>
|
|
11895
|
+
`,
|
|
11896
|
+
}]
|
|
11897
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionList: [{
|
|
11898
|
+
type: ViewChild,
|
|
11899
|
+
args: [AXSelectionListComponent, { static: true }]
|
|
11900
|
+
}] } });
|
|
11901
|
+
|
|
11902
|
+
class AXSelectionPropertyEditorModule {
|
|
11903
|
+
}
|
|
11904
|
+
AXSelectionPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11905
|
+
AXSelectionPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, declarations: [AXSelectionListPropertyEditorComponent], imports: [CommonModule, AXSelectionListModule, FormsModule, AXValidationModule], exports: [AXSelectionListPropertyEditorComponent] });
|
|
11906
|
+
AXSelectionPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, providers: [], imports: [[CommonModule, AXSelectionListModule, FormsModule, AXValidationModule]] });
|
|
11907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, decorators: [{
|
|
11908
|
+
type: NgModule,
|
|
11909
|
+
args: [{
|
|
11910
|
+
declarations: [AXSelectionListPropertyEditorComponent],
|
|
11911
|
+
imports: [CommonModule, AXSelectionListModule, FormsModule, AXValidationModule],
|
|
11912
|
+
exports: [AXSelectionListPropertyEditorComponent],
|
|
11913
|
+
providers: [],
|
|
11914
|
+
}]
|
|
11915
|
+
}] });
|
|
11916
|
+
|
|
11917
|
+
class AXSwitchComponent extends AXBaseComponent {
|
|
11918
|
+
constructor(cdr) {
|
|
11919
|
+
super();
|
|
11920
|
+
this.cdr = cdr;
|
|
11921
|
+
this.onValueChanged = new EventEmitter();
|
|
11922
|
+
this.valueChange = new EventEmitter();
|
|
11923
|
+
this.tabIndex = 0;
|
|
11924
|
+
this.size = 'md';
|
|
11925
|
+
}
|
|
11926
|
+
get value() {
|
|
11927
|
+
return this._value;
|
|
11928
|
+
}
|
|
11929
|
+
set value(v) {
|
|
11930
|
+
if (this._value !== v) {
|
|
11931
|
+
const oldValue = this._value;
|
|
11932
|
+
this._value = v;
|
|
11933
|
+
this.valueChange.emit(v);
|
|
11934
|
+
this.onValueChanged.emit({
|
|
11935
|
+
component: this,
|
|
11936
|
+
oldValue,
|
|
11937
|
+
value: v
|
|
11938
|
+
});
|
|
11939
|
+
}
|
|
11940
|
+
}
|
|
11941
|
+
focus() { }
|
|
11942
|
+
}
|
|
11943
|
+
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11944
|
+
AXSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchComponent, selector: "ax-switch", inputs: { tabIndex: "tabIndex", value: "value", readonly: "readonly", disabled: "disabled", size: "size" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"], directives: [{ type: i2$2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11946
|
+
type: Component,
|
|
11947
|
+
args: [{ selector: 'ax-switch', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"] }]
|
|
11948
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
11949
|
+
type: Output
|
|
11950
|
+
}], valueChange: [{
|
|
11951
|
+
type: Output
|
|
11952
|
+
}], tabIndex: [{
|
|
11953
|
+
type: Input
|
|
11954
|
+
}], value: [{
|
|
11955
|
+
type: Input
|
|
11956
|
+
}], readonly: [{
|
|
11957
|
+
type: Input
|
|
11958
|
+
}], disabled: [{
|
|
11959
|
+
type: Input
|
|
11960
|
+
}], size: [{
|
|
11961
|
+
type: Input
|
|
11962
|
+
}] } });
|
|
11963
|
+
|
|
11964
|
+
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11965
|
+
constructor(cdr) {
|
|
11966
|
+
super(cdr);
|
|
11967
|
+
this.cdr = cdr;
|
|
11968
|
+
}
|
|
11969
|
+
handleValueChange(e) {
|
|
11970
|
+
super.handleValueChange(e.value);
|
|
11971
|
+
}
|
|
11972
|
+
ngAfterViewInit() {
|
|
11973
|
+
this.onRenderCompleted.emit();
|
|
11974
|
+
}
|
|
11975
|
+
}
|
|
11976
|
+
AXSwitchPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11977
|
+
AXSwitchPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchPropertyEditorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
11978
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
11979
|
+
`, isInline: true, components: [{ type: AXSwitchComponent, selector: "ax-switch", inputs: ["tabIndex", "value", "readonly", "disabled", "size"], outputs: ["onValueChanged", "valueChange"] }] });
|
|
11980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, decorators: [{
|
|
11981
|
+
type: Component,
|
|
11982
|
+
args: [{
|
|
11983
|
+
template: `
|
|
11984
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
11985
|
+
`,
|
|
11986
|
+
}]
|
|
11987
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
11988
|
+
|
|
11989
|
+
class AXSwitchModule {
|
|
11990
|
+
}
|
|
11991
|
+
AXSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11992
|
+
AXSwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, declarations: [AXSwitchComponent], imports: [CommonModule, FormsModule], exports: [AXSwitchComponent] });
|
|
11993
|
+
AXSwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, providers: [], imports: [[CommonModule, FormsModule]] });
|
|
11994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, decorators: [{
|
|
11995
|
+
type: NgModule,
|
|
11996
|
+
args: [{
|
|
11997
|
+
declarations: [AXSwitchComponent],
|
|
11998
|
+
imports: [CommonModule, FormsModule],
|
|
11999
|
+
exports: [AXSwitchComponent],
|
|
12000
|
+
providers: []
|
|
12001
|
+
}]
|
|
12002
|
+
}] });
|
|
11836
12003
|
|
|
11837
12004
|
class AXSwitchPropertyEditorModule {
|
|
11838
12005
|
constructor() {
|
|
@@ -11844,71 +12011,132 @@ AXSwitchPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.
|
|
|
11844
12011
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorModule, decorators: [{
|
|
11845
12012
|
type: NgModule,
|
|
11846
12013
|
args: [{
|
|
11847
|
-
declarations: [AXSwitchPropertyEditorComponent],
|
|
11848
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
11849
|
-
exports: [AXSwitchPropertyEditorComponent],
|
|
12014
|
+
declarations: [AXSwitchPropertyEditorComponent],
|
|
12015
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
12016
|
+
exports: [AXSwitchPropertyEditorComponent],
|
|
12017
|
+
providers: []
|
|
12018
|
+
}]
|
|
12019
|
+
}], ctorParameters: function () { return []; } });
|
|
12020
|
+
|
|
12021
|
+
class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12022
|
+
constructor(cdr) {
|
|
12023
|
+
super(cdr);
|
|
12024
|
+
this.cdr = cdr;
|
|
12025
|
+
this.clearButton = false;
|
|
12026
|
+
}
|
|
12027
|
+
handleValueChange(e) {
|
|
12028
|
+
super.handleValueChange(e.value);
|
|
12029
|
+
}
|
|
12030
|
+
ngAfterViewInit() {
|
|
12031
|
+
this.registerForValidationForm(this.textBox);
|
|
12032
|
+
this.onRenderCompleted.emit();
|
|
12033
|
+
}
|
|
12034
|
+
}
|
|
12035
|
+
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12036
|
+
AXTextPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
12037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
12038
|
+
type: Component,
|
|
12039
|
+
args: [{ template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>" }]
|
|
12040
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
12041
|
+
type: ViewChild,
|
|
12042
|
+
args: [AXTextBoxComponent]
|
|
12043
|
+
}] } });
|
|
12044
|
+
|
|
12045
|
+
class AXTextPropertyEditorModule {
|
|
12046
|
+
constructor() {
|
|
12047
|
+
}
|
|
12048
|
+
}
|
|
12049
|
+
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12050
|
+
AXTextPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, declarations: [AXTextPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule], exports: [AXTextPropertyEditorComponent] });
|
|
12051
|
+
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
12052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
12053
|
+
type: NgModule,
|
|
12054
|
+
args: [{
|
|
12055
|
+
declarations: [AXTextPropertyEditorComponent],
|
|
12056
|
+
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
12057
|
+
exports: [AXTextPropertyEditorComponent],
|
|
11850
12058
|
providers: []
|
|
11851
12059
|
}]
|
|
11852
12060
|
}], ctorParameters: function () { return []; } });
|
|
11853
12061
|
|
|
11854
|
-
class
|
|
12062
|
+
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12063
|
+
constructor(cdr, ref) {
|
|
12064
|
+
super(cdr, ref);
|
|
12065
|
+
this.cdr = cdr;
|
|
12066
|
+
this.rows = 0;
|
|
12067
|
+
this.cols = 0;
|
|
12068
|
+
this.maxLength = null;
|
|
12069
|
+
}
|
|
12070
|
+
}
|
|
12071
|
+
AXTextAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12072
|
+
AXTextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextAreaComponent, selector: "ax-text-area", inputs: { rows: "rows", cols: "cols", maxLength: "maxLength" }, host: { styleAttribute: "width: 100%" }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-item {{size}}\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"content\">\r\n <div class=\"ax input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\">\r\n <textarea [name]=\"name\" [attr.maxlength]=\"maxLength\" rows=\"{{rows}}\" cols=\"{{cols}}\" #input type=\"text\"\r\n class=\"ax icon {{size}}\" [ngClass]=\"setTextAlign()\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" value=\"{{value}}\"></textarea>\r\n </div>\r\n </div>\r\n <div class=\"ax buttons\">\r\n <ng-content select=\"ax-button\">\r\n </ng-content>\r\n </div>\r\n</div>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
12073
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12074
|
+
type: Component,
|
|
12075
|
+
args: [{ selector: 'ax-text-area', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%' }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], template: "<div class=\"ax form-item {{size}}\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"content\">\r\n <div class=\"ax input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\">\r\n <textarea [name]=\"name\" [attr.maxlength]=\"maxLength\" rows=\"{{rows}}\" cols=\"{{cols}}\" #input type=\"text\"\r\n class=\"ax icon {{size}}\" [ngClass]=\"setTextAlign()\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" value=\"{{value}}\"></textarea>\r\n </div>\r\n </div>\r\n <div class=\"ax buttons\">\r\n <ng-content select=\"ax-button\">\r\n </ng-content>\r\n </div>\r\n</div>" }]
|
|
12076
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12077
|
+
type: Input
|
|
12078
|
+
}], cols: [{
|
|
12079
|
+
type: Input
|
|
12080
|
+
}], maxLength: [{
|
|
12081
|
+
type: Input
|
|
12082
|
+
}] } });
|
|
12083
|
+
|
|
12084
|
+
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11855
12085
|
constructor(cdr) {
|
|
11856
12086
|
super(cdr);
|
|
11857
12087
|
this.cdr = cdr;
|
|
11858
|
-
this.showTodayButton = true;
|
|
11859
|
-
this.selectableHoliday = true;
|
|
11860
|
-
this.type = 'gregorian';
|
|
11861
|
-
this.textAlign = null;
|
|
11862
|
-
this.placeholder = '';
|
|
11863
12088
|
this.clearButton = false;
|
|
11864
|
-
this.
|
|
11865
|
-
this.
|
|
12089
|
+
this.placeholder = null;
|
|
12090
|
+
this.rows = 3;
|
|
11866
12091
|
}
|
|
11867
12092
|
handleValueChange(e) {
|
|
11868
12093
|
super.handleValueChange(e.value);
|
|
11869
12094
|
}
|
|
11870
12095
|
ngAfterViewInit() {
|
|
11871
|
-
this.registerForValidationForm(this.
|
|
12096
|
+
this.registerForValidationForm(this.textBox);
|
|
11872
12097
|
this.onRenderCompleted.emit();
|
|
11873
12098
|
}
|
|
11874
12099
|
}
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11879
|
-
<ax-validation [rules]="validation?.rules">
|
|
11880
|
-
</ax-validation>
|
|
11881
|
-
</ax-date-picker>
|
|
11882
|
-
`, isInline: true, components: [{ type: AXDatePickerComponent, selector: "ax-date-picker", inputs: ["dayStyle", "dayMinMaxResoan", "validation", "placeholder", "min", "max", "readonly", "disabled", "allowClear", "textAlign", "showToday", "selectableHoliday", "dateType", "showTodayButton", "openByClick", "size", "type", "value"], outputs: ["typeChange", "onValueChanged", "valueChange"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
12100
|
+
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12101
|
+
AXTextareaPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextareaPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n", components: [{ type: AXTextAreaComponent, selector: "ax-text-area", inputs: ["rows", "cols", "maxLength"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
12102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
11884
12103
|
type: Component,
|
|
11885
|
-
args: [{
|
|
11886
|
-
|
|
11887
|
-
<ax-date-picker [size]="size" [dateType]="dateType" [showToday]="showToday" [disabled]="disabled" [allowClear]="clearButton" [readonly]="readonly" [max]="max" [min]="min" [placeholder]="placeholder" [showTodayButton]="showTodayButton" [selectableHoliday]="selectableHoliday" (onValueChanged)="handleValueChange($event)"
|
|
11888
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11889
|
-
<ax-validation [rules]="validation?.rules">
|
|
11890
|
-
</ax-validation>
|
|
11891
|
-
</ax-date-picker>
|
|
11892
|
-
`,
|
|
11893
|
-
}]
|
|
11894
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
12104
|
+
args: [{ template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n" }]
|
|
12105
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11895
12106
|
type: ViewChild,
|
|
11896
|
-
args: [
|
|
12107
|
+
args: [AXTextBoxComponent]
|
|
11897
12108
|
}] } });
|
|
11898
12109
|
|
|
11899
|
-
|
|
12110
|
+
const COMPONENT = [AXTextAreaComponent];
|
|
12111
|
+
const MODULES = [CommonModule];
|
|
12112
|
+
class AXTextAreaModule {
|
|
12113
|
+
}
|
|
12114
|
+
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12115
|
+
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
12116
|
+
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
12117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
12118
|
+
type: NgModule,
|
|
12119
|
+
args: [{
|
|
12120
|
+
declarations: [...COMPONENT],
|
|
12121
|
+
imports: [...MODULES],
|
|
12122
|
+
exports: [...COMPONENT],
|
|
12123
|
+
providers: [],
|
|
12124
|
+
}]
|
|
12125
|
+
}] });
|
|
12126
|
+
|
|
12127
|
+
class AXTextareaPropertyEditorModule {
|
|
11900
12128
|
constructor() {
|
|
11901
12129
|
}
|
|
11902
12130
|
}
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
12131
|
+
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12132
|
+
AXTextareaPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, declarations: [AXTextareaPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule], exports: [AXTextareaPropertyEditorComponent] });
|
|
12133
|
+
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
12134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
11907
12135
|
type: NgModule,
|
|
11908
12136
|
args: [{
|
|
11909
|
-
declarations: [
|
|
11910
|
-
imports: [CommonModule, FormsModule,
|
|
11911
|
-
exports: [
|
|
12137
|
+
declarations: [AXTextareaPropertyEditorComponent],
|
|
12138
|
+
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12139
|
+
exports: [AXTextareaPropertyEditorComponent],
|
|
11912
12140
|
providers: []
|
|
11913
12141
|
}]
|
|
11914
12142
|
}], ctorParameters: function () { return []; } });
|
|
@@ -12847,21 +13075,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12847
13075
|
type: Input
|
|
12848
13076
|
}] } });
|
|
12849
13077
|
|
|
12850
|
-
class AXTimePickerModule {
|
|
12851
|
-
}
|
|
12852
|
-
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12853
|
-
AXTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, declarations: [AXTimePickerComponent], imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule], exports: [AXTimePickerComponent] });
|
|
12854
|
-
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
12855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
12856
|
-
type: NgModule,
|
|
12857
|
-
args: [{
|
|
12858
|
-
declarations: [AXTimePickerComponent],
|
|
12859
|
-
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
12860
|
-
exports: [AXTimePickerComponent],
|
|
12861
|
-
providers: [],
|
|
12862
|
-
}]
|
|
12863
|
-
}] });
|
|
12864
|
-
|
|
12865
13078
|
class AXTimePropertyEditorComponent extends AXProperyEditorComponent {
|
|
12866
13079
|
constructor(cdr) {
|
|
12867
13080
|
super(cdr);
|
|
@@ -12899,6 +13112,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12899
13112
|
args: [AXDatePickerComponent]
|
|
12900
13113
|
}] } });
|
|
12901
13114
|
|
|
13115
|
+
class AXTimePickerModule {
|
|
13116
|
+
}
|
|
13117
|
+
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13118
|
+
AXTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, declarations: [AXTimePickerComponent], imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule], exports: [AXTimePickerComponent] });
|
|
13119
|
+
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
13120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
13121
|
+
type: NgModule,
|
|
13122
|
+
args: [{
|
|
13123
|
+
declarations: [AXTimePickerComponent],
|
|
13124
|
+
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
13125
|
+
exports: [AXTimePickerComponent],
|
|
13126
|
+
providers: [],
|
|
13127
|
+
}]
|
|
13128
|
+
}] });
|
|
13129
|
+
|
|
12902
13130
|
class AXTimePropertyEditorModule {
|
|
12903
13131
|
constructor() {
|
|
12904
13132
|
}
|
|
@@ -12916,148 +13144,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12916
13144
|
}]
|
|
12917
13145
|
}], ctorParameters: function () { return []; } });
|
|
12918
13146
|
|
|
12919
|
-
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12920
|
-
constructor(cdr, ref) {
|
|
12921
|
-
super(cdr, ref);
|
|
12922
|
-
this.cdr = cdr;
|
|
12923
|
-
this.rows = 0;
|
|
12924
|
-
this.cols = 0;
|
|
12925
|
-
this.maxLength = null;
|
|
12926
|
-
}
|
|
12927
|
-
}
|
|
12928
|
-
AXTextAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12929
|
-
AXTextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextAreaComponent, selector: "ax-text-area", inputs: { rows: "rows", cols: "cols", maxLength: "maxLength" }, host: { styleAttribute: "width: 100%" }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-item {{size}}\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"content\">\r\n <div class=\"ax input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\">\r\n <textarea [name]=\"name\" [attr.maxlength]=\"maxLength\" rows=\"{{rows}}\" cols=\"{{cols}}\" #input type=\"text\"\r\n class=\"ax icon {{size}}\" [ngClass]=\"setTextAlign()\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" value=\"{{value}}\"></textarea>\r\n </div>\r\n </div>\r\n <div class=\"ax buttons\">\r\n <ng-content select=\"ax-button\">\r\n </ng-content>\r\n </div>\r\n</div>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
12930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12931
|
-
type: Component,
|
|
12932
|
-
args: [{ selector: 'ax-text-area', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%' }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], template: "<div class=\"ax form-item {{size}}\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"content\">\r\n <div class=\"ax input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\">\r\n <textarea [name]=\"name\" [attr.maxlength]=\"maxLength\" rows=\"{{rows}}\" cols=\"{{cols}}\" #input type=\"text\"\r\n class=\"ax icon {{size}}\" [ngClass]=\"setTextAlign()\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" value=\"{{value}}\"></textarea>\r\n </div>\r\n </div>\r\n <div class=\"ax buttons\">\r\n <ng-content select=\"ax-button\">\r\n </ng-content>\r\n </div>\r\n</div>" }]
|
|
12933
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12934
|
-
type: Input
|
|
12935
|
-
}], cols: [{
|
|
12936
|
-
type: Input
|
|
12937
|
-
}], maxLength: [{
|
|
12938
|
-
type: Input
|
|
12939
|
-
}] } });
|
|
12940
|
-
|
|
12941
|
-
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12942
|
-
constructor(cdr) {
|
|
12943
|
-
super(cdr);
|
|
12944
|
-
this.cdr = cdr;
|
|
12945
|
-
this.clearButton = false;
|
|
12946
|
-
this.placeholder = null;
|
|
12947
|
-
this.rows = 3;
|
|
12948
|
-
}
|
|
12949
|
-
handleValueChange(e) {
|
|
12950
|
-
super.handleValueChange(e.value);
|
|
12951
|
-
}
|
|
12952
|
-
ngAfterViewInit() {
|
|
12953
|
-
this.registerForValidationForm(this.textBox);
|
|
12954
|
-
this.onRenderCompleted.emit();
|
|
12955
|
-
}
|
|
12956
|
-
}
|
|
12957
|
-
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12958
|
-
AXTextareaPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextareaPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n", components: [{ type: AXTextAreaComponent, selector: "ax-text-area", inputs: ["rows", "cols", "maxLength"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
12959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
12960
|
-
type: Component,
|
|
12961
|
-
args: [{ template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n" }]
|
|
12962
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
12963
|
-
type: ViewChild,
|
|
12964
|
-
args: [AXTextBoxComponent]
|
|
12965
|
-
}] } });
|
|
12966
|
-
|
|
12967
|
-
const COMPONENT = [AXTextAreaComponent];
|
|
12968
|
-
const MODULES = [CommonModule];
|
|
12969
|
-
class AXTextAreaModule {
|
|
12970
|
-
}
|
|
12971
|
-
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12972
|
-
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
12973
|
-
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
12974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
12975
|
-
type: NgModule,
|
|
12976
|
-
args: [{
|
|
12977
|
-
declarations: [...COMPONENT],
|
|
12978
|
-
imports: [...MODULES],
|
|
12979
|
-
exports: [...COMPONENT],
|
|
12980
|
-
providers: [],
|
|
12981
|
-
}]
|
|
12982
|
-
}] });
|
|
12983
|
-
|
|
12984
|
-
class AXTextareaPropertyEditorModule {
|
|
12985
|
-
constructor() {
|
|
12986
|
-
}
|
|
12987
|
-
}
|
|
12988
|
-
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12989
|
-
AXTextareaPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, declarations: [AXTextareaPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule], exports: [AXTextareaPropertyEditorComponent] });
|
|
12990
|
-
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
12991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
12992
|
-
type: NgModule,
|
|
12993
|
-
args: [{
|
|
12994
|
-
declarations: [AXTextareaPropertyEditorComponent],
|
|
12995
|
-
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12996
|
-
exports: [AXTextareaPropertyEditorComponent],
|
|
12997
|
-
providers: []
|
|
12998
|
-
}]
|
|
12999
|
-
}], ctorParameters: function () { return []; } });
|
|
13000
|
-
|
|
13001
|
-
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
13002
|
-
constructor(cdr) {
|
|
13003
|
-
super(cdr);
|
|
13004
|
-
this.cdr = cdr;
|
|
13005
|
-
this.disabled = false;
|
|
13006
|
-
this.indeterminate = false;
|
|
13007
|
-
this.readonly = false;
|
|
13008
|
-
this.size = 'md';
|
|
13009
|
-
}
|
|
13010
|
-
ngAfterViewInit() {
|
|
13011
|
-
console.log('checkbox');
|
|
13012
|
-
this.registerForValidationForm(this.textBox);
|
|
13013
|
-
this.onRenderCompleted.emit();
|
|
13014
|
-
}
|
|
13015
|
-
}
|
|
13016
|
-
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13017
|
-
AXCheckBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXCheckBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `<ax-check-box
|
|
13018
|
-
[disabled]="disabled"
|
|
13019
|
-
[label]="label"
|
|
13020
|
-
[size]="size"
|
|
13021
|
-
[indeterminate]="indeterminate"
|
|
13022
|
-
[readonly]="readonly"
|
|
13023
|
-
[value]="value">
|
|
13024
|
-
<ax-validation [rules]="validation?.rules">
|
|
13025
|
-
</ax-validation>
|
|
13026
|
-
</ax-check-box>`, isInline: true, components: [{ type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["readonly", "disabled", "size", "label", "tabIndex", "indeterminate", "value"], outputs: ["onValueChanged", "valueChange", "onClick"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
13027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
13028
|
-
type: Component,
|
|
13029
|
-
args: [{
|
|
13030
|
-
template: `<ax-check-box
|
|
13031
|
-
[disabled]="disabled"
|
|
13032
|
-
[label]="label"
|
|
13033
|
-
[size]="size"
|
|
13034
|
-
[indeterminate]="indeterminate"
|
|
13035
|
-
[readonly]="readonly"
|
|
13036
|
-
[value]="value">
|
|
13037
|
-
<ax-validation [rules]="validation?.rules">
|
|
13038
|
-
</ax-validation>
|
|
13039
|
-
</ax-check-box>`,
|
|
13040
|
-
}]
|
|
13041
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
13042
|
-
type: ViewChild,
|
|
13043
|
-
args: [AXCheckBoxComponent]
|
|
13044
|
-
}] } });
|
|
13045
|
-
|
|
13046
|
-
class AXCheckPropertyEditorModule {
|
|
13047
|
-
}
|
|
13048
|
-
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13049
|
-
AXCheckPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, declarations: [AXCheckBoxPropertyEditorComponent], imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule] });
|
|
13050
|
-
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
13051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
13052
|
-
type: NgModule,
|
|
13053
|
-
args: [{
|
|
13054
|
-
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
13055
|
-
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
13056
|
-
exports: [],
|
|
13057
|
-
providers: [],
|
|
13058
|
-
}]
|
|
13059
|
-
}] });
|
|
13060
|
-
|
|
13061
13147
|
const WDIGET_MODULES = [
|
|
13062
13148
|
AXNumberBoxPropertyEditorModule,
|
|
13063
13149
|
AXTextPropertyEditorModule,
|
|
@@ -13071,7 +13157,8 @@ const WDIGET_MODULES = [
|
|
|
13071
13157
|
AXTimePropertyEditorModule,
|
|
13072
13158
|
AXTimePropertyEditorModule,
|
|
13073
13159
|
AXTextareaPropertyEditorModule,
|
|
13074
|
-
AXCheckPropertyEditorModule
|
|
13160
|
+
AXCheckPropertyEditorModule,
|
|
13161
|
+
AXSelectionPropertyEditorModule
|
|
13075
13162
|
];
|
|
13076
13163
|
class AXProppertyEditorModule {
|
|
13077
13164
|
}
|
|
@@ -13088,12 +13175,17 @@ AXProppertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
13088
13175
|
AXTimePropertyEditorModule,
|
|
13089
13176
|
AXTimePropertyEditorModule,
|
|
13090
13177
|
AXTextareaPropertyEditorModule,
|
|
13091
|
-
AXCheckPropertyEditorModule,
|
|
13178
|
+
AXCheckPropertyEditorModule,
|
|
13179
|
+
AXSelectionPropertyEditorModule, i1$4.RouterModule], exports: [AXPropertyEditorRendererDirective] });
|
|
13092
13180
|
AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXProppertyEditorModule, providers: [], imports: [[
|
|
13093
13181
|
WDIGET_MODULES,
|
|
13094
13182
|
RouterModule.forChild([
|
|
13095
13183
|
{
|
|
13096
|
-
|
|
13184
|
+
path: 'ax/editors/selection',
|
|
13185
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13186
|
+
},
|
|
13187
|
+
{
|
|
13188
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13097
13189
|
path: 'ax/editors/check'
|
|
13098
13190
|
},
|
|
13099
13191
|
{
|
|
@@ -13148,7 +13240,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
13148
13240
|
WDIGET_MODULES,
|
|
13149
13241
|
RouterModule.forChild([
|
|
13150
13242
|
{
|
|
13151
|
-
|
|
13243
|
+
path: 'ax/editors/selection',
|
|
13244
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13245
|
+
},
|
|
13246
|
+
{
|
|
13247
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13152
13248
|
path: 'ax/editors/check'
|
|
13153
13249
|
},
|
|
13154
13250
|
{
|