@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
|
@@ -3447,7 +3447,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3447
3447
|
type: Input
|
|
3448
3448
|
}] } });
|
|
3449
3449
|
|
|
3450
|
-
class AXSelectionListComponent extends
|
|
3450
|
+
class AXSelectionListComponent extends AXValidatableComponent {
|
|
3451
3451
|
constructor(cdr) {
|
|
3452
3452
|
super();
|
|
3453
3453
|
this.cdr = cdr;
|
|
@@ -10159,6 +10159,7 @@ class AXPropertyEditorRendererDirective {
|
|
|
10159
10159
|
}
|
|
10160
10160
|
createComponent() {
|
|
10161
10161
|
this.renderService.findLoadedComponentByRoute(this.property.property.editorClass).then(c => {
|
|
10162
|
+
debugger;
|
|
10162
10163
|
if (c) {
|
|
10163
10164
|
const factory = this.componentFactoryResolver.resolveComponentFactory(c.component);
|
|
10164
10165
|
const cmpRef = this.target.createComponent(factory);
|
|
@@ -10293,6 +10294,7 @@ class AXSearchBarComponent {
|
|
|
10293
10294
|
this.disabled = false;
|
|
10294
10295
|
this.items = [];
|
|
10295
10296
|
this.rtl = AXConfig.get('layout.rtl');
|
|
10297
|
+
this.onValueChange = new EventEmitter();
|
|
10296
10298
|
this.onSearchValue = new EventEmitter();
|
|
10297
10299
|
this._items = [];
|
|
10298
10300
|
this._filterItems = [];
|
|
@@ -10313,6 +10315,7 @@ class AXSearchBarComponent {
|
|
|
10313
10315
|
value: e.value
|
|
10314
10316
|
});
|
|
10315
10317
|
}
|
|
10318
|
+
this.onValueChange.emit(e);
|
|
10316
10319
|
}
|
|
10317
10320
|
handleItemRemoveClick(item) {
|
|
10318
10321
|
this._editors.forEach(e => {
|
|
@@ -10371,25 +10374,15 @@ class AXSearchBarComponent {
|
|
|
10371
10374
|
});
|
|
10372
10375
|
}
|
|
10373
10376
|
});
|
|
10374
|
-
if (this.rtl == null) {
|
|
10375
|
-
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
|
10376
|
-
}
|
|
10377
|
-
setTimeout(() => {
|
|
10378
|
-
this.ref.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10379
|
-
this.el.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10380
|
-
}, 5);
|
|
10381
10377
|
this._items = _.chain(this.items).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
|
|
10382
10378
|
}
|
|
10383
10379
|
}
|
|
10384
10380
|
AXSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10385
|
-
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: {
|
|
10381
|
+
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 } });
|
|
10386
10382
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, decorators: [{
|
|
10387
10383
|
type: Component,
|
|
10388
|
-
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
|
|
10389
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: {
|
|
10390
|
-
type: ViewChild,
|
|
10391
|
-
args: ['dropdown', { static: true }]
|
|
10392
|
-
}], dropdown: [{
|
|
10384
|
+
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"] }]
|
|
10385
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { dropdown: [{
|
|
10393
10386
|
type: ViewChild,
|
|
10394
10387
|
args: ['dropdown', { static: true }]
|
|
10395
10388
|
}], _editors: [{
|
|
@@ -10403,6 +10396,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10403
10396
|
type: Input
|
|
10404
10397
|
}], rtl: [{
|
|
10405
10398
|
type: Input
|
|
10399
|
+
}], onValueChange: [{
|
|
10400
|
+
type: Output
|
|
10406
10401
|
}], onSearchValue: [{
|
|
10407
10402
|
type: Output
|
|
10408
10403
|
}] } });
|
|
@@ -10505,199 +10500,75 @@ function propertyEditor(options) {
|
|
|
10505
10500
|
};
|
|
10506
10501
|
}
|
|
10507
10502
|
|
|
10508
|
-
class
|
|
10509
|
-
constructor(cdr) {
|
|
10510
|
-
super(cdr);
|
|
10511
|
-
this.cdr = cdr;
|
|
10512
|
-
this.clearButton = false;
|
|
10513
|
-
}
|
|
10514
|
-
handleValueChange(e) {
|
|
10515
|
-
super.handleValueChange(e.value);
|
|
10516
|
-
}
|
|
10517
|
-
ngAfterViewInit() {
|
|
10518
|
-
this.registerForValidationForm(this.textBox);
|
|
10519
|
-
this.onRenderCompleted.emit();
|
|
10520
|
-
}
|
|
10521
|
-
}
|
|
10522
|
-
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10523
|
-
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"] }] });
|
|
10524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
10525
|
-
type: Component,
|
|
10526
|
-
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>" }]
|
|
10527
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
10528
|
-
type: ViewChild,
|
|
10529
|
-
args: [AXTextBoxComponent]
|
|
10530
|
-
}] } });
|
|
10531
|
-
|
|
10532
|
-
class AXTextPropertyEditorModule {
|
|
10533
|
-
constructor() {
|
|
10534
|
-
}
|
|
10535
|
-
}
|
|
10536
|
-
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10537
|
-
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] });
|
|
10538
|
-
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
10539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
10540
|
-
type: NgModule,
|
|
10541
|
-
args: [{
|
|
10542
|
-
declarations: [AXTextPropertyEditorComponent],
|
|
10543
|
-
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
10544
|
-
exports: [AXTextPropertyEditorComponent],
|
|
10545
|
-
providers: []
|
|
10546
|
-
}]
|
|
10547
|
-
}], ctorParameters: function () { return []; } });
|
|
10548
|
-
|
|
10549
|
-
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10503
|
+
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10550
10504
|
constructor(cdr) {
|
|
10551
10505
|
super(cdr);
|
|
10552
10506
|
this.cdr = cdr;
|
|
10553
|
-
this.
|
|
10554
|
-
this.
|
|
10555
|
-
this.
|
|
10556
|
-
this.
|
|
10557
|
-
this.clearButton = false;
|
|
10507
|
+
this.disabled = false;
|
|
10508
|
+
this.indeterminate = false;
|
|
10509
|
+
this.readonly = false;
|
|
10510
|
+
this.size = 'md';
|
|
10558
10511
|
}
|
|
10559
10512
|
handleValueChange(e) {
|
|
10560
10513
|
super.handleValueChange(e.value);
|
|
10561
10514
|
}
|
|
10562
10515
|
ngAfterViewInit() {
|
|
10563
|
-
this.registerForValidationForm(this.
|
|
10516
|
+
this.registerForValidationForm(this.checkBox);
|
|
10564
10517
|
this.onRenderCompleted.emit();
|
|
10565
10518
|
}
|
|
10566
10519
|
}
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
</ax-
|
|
10580
|
-
|
|
10581
|
-
|
|
10520
|
+
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10521
|
+
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: `
|
|
10522
|
+
<ax-check-box
|
|
10523
|
+
[disabled]="disabled"
|
|
10524
|
+
[label]="label"
|
|
10525
|
+
[size]="size"
|
|
10526
|
+
[indeterminate]="indeterminate"
|
|
10527
|
+
[readonly]="readonly"
|
|
10528
|
+
[value]="value"
|
|
10529
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10530
|
+
>
|
|
10531
|
+
<ax-validation [rules]="validation?.rules">
|
|
10532
|
+
</ax-validation>
|
|
10533
|
+
</ax-check-box>
|
|
10534
|
+
`, 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"] }] });
|
|
10535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
10582
10536
|
type: Component,
|
|
10583
10537
|
args: [{
|
|
10584
10538
|
template: `
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
</ax-
|
|
10539
|
+
<ax-check-box
|
|
10540
|
+
[disabled]="disabled"
|
|
10541
|
+
[label]="label"
|
|
10542
|
+
[size]="size"
|
|
10543
|
+
[indeterminate]="indeterminate"
|
|
10544
|
+
[readonly]="readonly"
|
|
10545
|
+
[value]="value"
|
|
10546
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10547
|
+
>
|
|
10548
|
+
<ax-validation [rules]="validation?.rules">
|
|
10549
|
+
</ax-validation>
|
|
10550
|
+
</ax-check-box>
|
|
10596
10551
|
`,
|
|
10597
10552
|
}]
|
|
10598
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
10599
|
-
type: ViewChild,
|
|
10600
|
-
args: [AXNumberBoxComponent]
|
|
10601
|
-
}] } });
|
|
10602
|
-
|
|
10603
|
-
class AXNumberBoxPropertyEditorModule {
|
|
10604
|
-
constructor() {
|
|
10605
|
-
}
|
|
10606
|
-
}
|
|
10607
|
-
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10608
|
-
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] });
|
|
10609
|
-
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
10610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
10611
|
-
type: NgModule,
|
|
10612
|
-
args: [{
|
|
10613
|
-
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
10614
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
10615
|
-
exports: [AXNumberBoxPropertyEditorComponent],
|
|
10616
|
-
providers: []
|
|
10617
|
-
}]
|
|
10618
|
-
}], ctorParameters: function () { return []; } });
|
|
10619
|
-
|
|
10620
|
-
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10621
|
-
constructor(cdr) {
|
|
10622
|
-
super(cdr);
|
|
10623
|
-
this.cdr = cdr;
|
|
10624
|
-
this.valueField = 'id';
|
|
10625
|
-
this.textField = 'text';
|
|
10626
|
-
this.selectionMode = 'single';
|
|
10627
|
-
this.selectionDataMode = 'value';
|
|
10628
|
-
this.allowSearch = true;
|
|
10629
|
-
this.allowNull = false;
|
|
10630
|
-
this.disabled = false;
|
|
10631
|
-
this.items = [];
|
|
10632
|
-
this.remoteOperation = false;
|
|
10633
|
-
this.provideData = (e) => {
|
|
10634
|
-
return new Promise((resolve) => {
|
|
10635
|
-
const func = () => {
|
|
10636
|
-
if (Array.isArray(this.items)) {
|
|
10637
|
-
resolve(this.items.slice());
|
|
10638
|
-
}
|
|
10639
|
-
else if (typeof this.items === 'function') {
|
|
10640
|
-
const a = Object.assign(e, { sender: this });
|
|
10641
|
-
resolve(this.items(a));
|
|
10642
|
-
}
|
|
10643
|
-
else {
|
|
10644
|
-
resolve([]);
|
|
10645
|
-
}
|
|
10646
|
-
};
|
|
10647
|
-
const intVal = setInterval(() => {
|
|
10648
|
-
if (this.initiated) {
|
|
10649
|
-
func();
|
|
10650
|
-
clearInterval(intVal);
|
|
10651
|
-
}
|
|
10652
|
-
}, 50);
|
|
10653
|
-
});
|
|
10654
|
-
};
|
|
10655
|
-
}
|
|
10656
|
-
get filter() {
|
|
10657
|
-
return this._filter;
|
|
10658
|
-
}
|
|
10659
|
-
set filter(v) {
|
|
10660
|
-
var _a;
|
|
10661
|
-
this._filter = v;
|
|
10662
|
-
if (this.value && this.initiated) {
|
|
10663
|
-
this.value = null;
|
|
10664
|
-
(_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
10665
|
-
}
|
|
10666
|
-
}
|
|
10667
|
-
handleValueChange(e) {
|
|
10668
|
-
super.handleValueChange(e.selectedValues);
|
|
10669
|
-
}
|
|
10670
|
-
ngAfterViewInit() {
|
|
10671
|
-
this.registerForValidationForm(this.selectBox);
|
|
10672
|
-
this.onRenderCompleted.emit();
|
|
10673
|
-
}
|
|
10674
|
-
}
|
|
10675
|
-
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10676
|
-
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"] }] });
|
|
10677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
10678
|
-
type: Component,
|
|
10679
|
-
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>" }]
|
|
10680
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
10553
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checkBox: [{
|
|
10681
10554
|
type: ViewChild,
|
|
10682
|
-
args: [
|
|
10555
|
+
args: [AXCheckBoxComponent, { static: true }]
|
|
10683
10556
|
}] } });
|
|
10684
10557
|
|
|
10685
|
-
class
|
|
10686
|
-
constructor() {
|
|
10687
|
-
}
|
|
10558
|
+
class AXCheckPropertyEditorModule {
|
|
10688
10559
|
}
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
10560
|
+
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10561
|
+
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] });
|
|
10562
|
+
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
10563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
10693
10564
|
type: NgModule,
|
|
10694
10565
|
args: [{
|
|
10695
|
-
declarations: [
|
|
10696
|
-
imports: [CommonModule,
|
|
10697
|
-
exports: [
|
|
10698
|
-
providers: []
|
|
10566
|
+
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
10567
|
+
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
10568
|
+
exports: [AXCheckBoxPropertyEditorComponent],
|
|
10569
|
+
providers: [],
|
|
10699
10570
|
}]
|
|
10700
|
-
}]
|
|
10571
|
+
}] });
|
|
10701
10572
|
|
|
10702
10573
|
class AXColorBoxComponent extends AXValidatableComponent {
|
|
10703
10574
|
constructor() {
|
|
@@ -11187,199 +11058,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11187
11058
|
type: Input
|
|
11188
11059
|
}] } });
|
|
11189
11060
|
|
|
11190
|
-
class
|
|
11191
|
-
constructor(cdr
|
|
11061
|
+
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11062
|
+
constructor(cdr) {
|
|
11192
11063
|
super(cdr);
|
|
11193
11064
|
this.cdr = cdr;
|
|
11194
|
-
this.popupService = popupService;
|
|
11195
|
-
this.ranges = [];
|
|
11196
|
-
this.showSeparator = true;
|
|
11197
|
-
this.decimalNumber = 2;
|
|
11198
|
-
}
|
|
11199
|
-
ngOnInit() {
|
|
11200
|
-
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11201
|
-
this.cdr.detectChanges();
|
|
11202
11065
|
}
|
|
11203
11066
|
ngAfterViewInit() {
|
|
11204
|
-
this.
|
|
11205
|
-
}
|
|
11206
|
-
// getRanges() {
|
|
11207
|
-
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11208
|
-
// }
|
|
11209
|
-
onFormInit(e) {
|
|
11210
|
-
this.form = e.component;
|
|
11211
|
-
}
|
|
11212
|
-
handleEditClick(item) {
|
|
11213
|
-
this.editRow = Object.assign({}, item);
|
|
11214
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
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
|
-
Object.assign(item, 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
|
-
title: AXTranslator.get('common.edit')
|
|
11249
|
-
});
|
|
11250
|
-
}
|
|
11251
|
-
handleAddClick() {
|
|
11252
|
-
var _a;
|
|
11253
|
-
const min = ((_a = this.ranges) === null || _a === void 0 ? void 0 : _a.length) ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11254
|
-
this.editRow = {
|
|
11255
|
-
title: '',
|
|
11256
|
-
minValue: min,
|
|
11257
|
-
maxValue: min + 1,
|
|
11258
|
-
color: null
|
|
11259
|
-
};
|
|
11260
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
11261
|
-
title: AXTranslator.get('common.add-item'),
|
|
11262
|
-
size: 'sm',
|
|
11263
|
-
footerButtons: [
|
|
11264
|
-
{
|
|
11265
|
-
name: 'confirm',
|
|
11266
|
-
text: AXTranslator.get('common.confirm'),
|
|
11267
|
-
style: 'success',
|
|
11268
|
-
submitBehavior: true,
|
|
11269
|
-
cancelBehavior: false,
|
|
11270
|
-
onClick: () => {
|
|
11271
|
-
this.form.validate().then(c => {
|
|
11272
|
-
if (c.result) {
|
|
11273
|
-
super.handleValueChange(this.ranges);
|
|
11274
|
-
this.ranges.push(this.editRow);
|
|
11275
|
-
popup.close();
|
|
11276
|
-
this.editRow = null;
|
|
11277
|
-
this.cdr.detectChanges();
|
|
11278
|
-
}
|
|
11279
|
-
});
|
|
11280
|
-
}
|
|
11281
|
-
},
|
|
11282
|
-
{
|
|
11283
|
-
name: 'cancel',
|
|
11284
|
-
text: AXTranslator.get('common.cancel'),
|
|
11285
|
-
style: 'danger blank',
|
|
11286
|
-
submitBehavior: false,
|
|
11287
|
-
cancelBehavior: true,
|
|
11288
|
-
onClick: () => {
|
|
11289
|
-
popup.close();
|
|
11290
|
-
this.editRow = null;
|
|
11291
|
-
this.cdr.detectChanges();
|
|
11292
|
-
}
|
|
11293
|
-
}
|
|
11294
|
-
],
|
|
11295
|
-
});
|
|
11296
|
-
this.cdr.detectChanges();
|
|
11297
|
-
}
|
|
11298
|
-
handleRemoveClick(item) {
|
|
11299
|
-
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11300
|
-
super.handleValueChange(this.ranges);
|
|
11301
|
-
}
|
|
11302
|
-
}
|
|
11303
|
-
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 });
|
|
11304
|
-
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 });
|
|
11305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11306
|
-
type: Component,
|
|
11307
|
-
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"] }]
|
|
11308
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11309
|
-
type: ViewChild,
|
|
11310
|
-
args: ['tplEdit']
|
|
11311
|
-
}] } });
|
|
11312
|
-
|
|
11313
|
-
class AXColorPickerModule {
|
|
11314
|
-
}
|
|
11315
|
-
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11316
|
-
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] });
|
|
11317
|
-
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11319
|
-
type: NgModule,
|
|
11320
|
-
args: [{
|
|
11321
|
-
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11322
|
-
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11323
|
-
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11324
|
-
providers: []
|
|
11325
|
-
}]
|
|
11326
|
-
}] });
|
|
11327
|
-
|
|
11328
|
-
class AXRangePropertyEditorModule {
|
|
11329
|
-
constructor() {
|
|
11330
|
-
}
|
|
11331
|
-
}
|
|
11332
|
-
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11333
|
-
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11334
|
-
FormsModule,
|
|
11335
|
-
AXTranslatorModule,
|
|
11336
|
-
AXTextBoxModule,
|
|
11337
|
-
AXNumberBoxModule,
|
|
11338
|
-
AXColorPickerModule,
|
|
11339
|
-
AXLabelModule,
|
|
11340
|
-
AXPageModule,
|
|
11341
|
-
AXValidationModule,
|
|
11342
|
-
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11343
|
-
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11344
|
-
CommonModule,
|
|
11345
|
-
FormsModule,
|
|
11346
|
-
AXTranslatorModule,
|
|
11347
|
-
AXTextBoxModule,
|
|
11348
|
-
AXNumberBoxModule,
|
|
11349
|
-
AXColorPickerModule,
|
|
11350
|
-
AXLabelModule,
|
|
11351
|
-
AXPageModule,
|
|
11352
|
-
AXValidationModule,
|
|
11353
|
-
AXButtonModule
|
|
11354
|
-
]] });
|
|
11355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11356
|
-
type: NgModule,
|
|
11357
|
-
args: [{
|
|
11358
|
-
declarations: [AXRangePropertyEditorComponent],
|
|
11359
|
-
imports: [
|
|
11360
|
-
CommonModule,
|
|
11361
|
-
FormsModule,
|
|
11362
|
-
AXTranslatorModule,
|
|
11363
|
-
AXTextBoxModule,
|
|
11364
|
-
AXNumberBoxModule,
|
|
11365
|
-
AXColorPickerModule,
|
|
11366
|
-
AXLabelModule,
|
|
11367
|
-
AXPageModule,
|
|
11368
|
-
AXValidationModule,
|
|
11369
|
-
AXButtonModule
|
|
11370
|
-
],
|
|
11371
|
-
exports: [AXRangePropertyEditorComponent],
|
|
11372
|
-
providers: []
|
|
11373
|
-
}]
|
|
11374
|
-
}], ctorParameters: function () { return []; } });
|
|
11375
|
-
|
|
11376
|
-
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11377
|
-
constructor(cdr) {
|
|
11378
|
-
super(cdr);
|
|
11379
|
-
this.cdr = cdr;
|
|
11380
|
-
}
|
|
11381
|
-
ngAfterViewInit() {
|
|
11382
|
-
this.registerForValidationForm(this.textBox);
|
|
11067
|
+
this.registerForValidationForm(this.textBox);
|
|
11383
11068
|
this.onRenderCompleted.emit();
|
|
11384
11069
|
}
|
|
11385
11070
|
}
|
|
@@ -11405,6 +11090,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11405
11090
|
args: [AXColorPickerComponent]
|
|
11406
11091
|
}] } });
|
|
11407
11092
|
|
|
11093
|
+
class AXColorPickerModule {
|
|
11094
|
+
}
|
|
11095
|
+
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11096
|
+
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] });
|
|
11097
|
+
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11099
|
+
type: NgModule,
|
|
11100
|
+
args: [{
|
|
11101
|
+
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11102
|
+
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11103
|
+
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11104
|
+
providers: []
|
|
11105
|
+
}]
|
|
11106
|
+
}] });
|
|
11107
|
+
|
|
11408
11108
|
class AXColorPropertyEditorModule {
|
|
11409
11109
|
constructor() {
|
|
11410
11110
|
}
|
|
@@ -11794,89 +11494,556 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11794
11494
|
}]
|
|
11795
11495
|
}], ctorParameters: function () { return []; } });
|
|
11796
11496
|
|
|
11797
|
-
class
|
|
11798
|
-
constructor(cdr) {
|
|
11799
|
-
super();
|
|
11800
|
-
this.cdr = cdr;
|
|
11801
|
-
this.onValueChanged = new EventEmitter();
|
|
11802
|
-
this.valueChange = new EventEmitter();
|
|
11803
|
-
this.tabIndex = 0;
|
|
11804
|
-
this.size = 'md';
|
|
11805
|
-
}
|
|
11806
|
-
get value() {
|
|
11807
|
-
return this._value;
|
|
11808
|
-
}
|
|
11809
|
-
set value(v) {
|
|
11810
|
-
if (this._value !== v) {
|
|
11811
|
-
const oldValue = this._value;
|
|
11812
|
-
this._value = v;
|
|
11813
|
-
this.valueChange.emit(v);
|
|
11814
|
-
this.onValueChanged.emit({
|
|
11815
|
-
component: this,
|
|
11816
|
-
oldValue,
|
|
11817
|
-
value: v
|
|
11818
|
-
});
|
|
11819
|
-
}
|
|
11820
|
-
}
|
|
11821
|
-
focus() { }
|
|
11822
|
-
}
|
|
11823
|
-
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11824
|
-
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 });
|
|
11825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11826
|
-
type: Component,
|
|
11827
|
-
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"] }]
|
|
11828
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
11829
|
-
type: Output
|
|
11830
|
-
}], valueChange: [{
|
|
11831
|
-
type: Output
|
|
11832
|
-
}], tabIndex: [{
|
|
11833
|
-
type: Input
|
|
11834
|
-
}], value: [{
|
|
11835
|
-
type: Input
|
|
11836
|
-
}], readonly: [{
|
|
11837
|
-
type: Input
|
|
11838
|
-
}], disabled: [{
|
|
11839
|
-
type: Input
|
|
11840
|
-
}], size: [{
|
|
11841
|
-
type: Input
|
|
11842
|
-
}] } });
|
|
11843
|
-
|
|
11844
|
-
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11497
|
+
class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11845
11498
|
constructor(cdr) {
|
|
11846
11499
|
super(cdr);
|
|
11847
11500
|
this.cdr = cdr;
|
|
11501
|
+
this.showTodayButton = true;
|
|
11502
|
+
this.selectableHoliday = true;
|
|
11503
|
+
this.type = 'gregorian';
|
|
11504
|
+
this.textAlign = null;
|
|
11505
|
+
this.placeholder = '';
|
|
11506
|
+
this.clearButton = false;
|
|
11507
|
+
this.showToday = false;
|
|
11508
|
+
this.size = 'md';
|
|
11848
11509
|
}
|
|
11849
11510
|
handleValueChange(e) {
|
|
11850
11511
|
super.handleValueChange(e.value);
|
|
11851
11512
|
}
|
|
11852
11513
|
ngAfterViewInit() {
|
|
11514
|
+
this.registerForValidationForm(this.date);
|
|
11853
11515
|
this.onRenderCompleted.emit();
|
|
11854
11516
|
}
|
|
11855
11517
|
}
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11518
|
+
AXDatePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11519
|
+
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: `
|
|
11520
|
+
<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)"
|
|
11521
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11522
|
+
<ax-validation [rules]="validation?.rules">
|
|
11523
|
+
</ax-validation>
|
|
11524
|
+
</ax-date-picker>
|
|
11525
|
+
`, 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"] }] });
|
|
11526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
11861
11527
|
type: Component,
|
|
11862
11528
|
args: [{
|
|
11863
11529
|
template: `
|
|
11864
|
-
|
|
11865
|
-
|
|
11530
|
+
<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)"
|
|
11531
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11532
|
+
<ax-validation [rules]="validation?.rules">
|
|
11533
|
+
</ax-validation>
|
|
11534
|
+
</ax-date-picker>
|
|
11535
|
+
`,
|
|
11866
11536
|
}]
|
|
11867
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }
|
|
11537
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
11538
|
+
type: ViewChild,
|
|
11539
|
+
args: [AXDatePickerComponent]
|
|
11540
|
+
}] } });
|
|
11868
11541
|
|
|
11869
|
-
class
|
|
11542
|
+
class AXDatePropertyEditorModule {
|
|
11543
|
+
constructor() {
|
|
11544
|
+
}
|
|
11870
11545
|
}
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
11546
|
+
AXDatePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11547
|
+
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] });
|
|
11548
|
+
AXDatePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXDatePickerModule, AXValidationModule]] });
|
|
11549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, decorators: [{
|
|
11875
11550
|
type: NgModule,
|
|
11876
11551
|
args: [{
|
|
11877
|
-
declarations: [
|
|
11878
|
-
imports: [CommonModule, FormsModule],
|
|
11879
|
-
exports: [
|
|
11552
|
+
declarations: [AXDatePropertyEditorComponent],
|
|
11553
|
+
imports: [CommonModule, FormsModule, AXDatePickerModule, AXValidationModule],
|
|
11554
|
+
exports: [AXDatePropertyEditorComponent],
|
|
11555
|
+
providers: []
|
|
11556
|
+
}]
|
|
11557
|
+
}], ctorParameters: function () { return []; } });
|
|
11558
|
+
|
|
11559
|
+
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11560
|
+
constructor(cdr) {
|
|
11561
|
+
super(cdr);
|
|
11562
|
+
this.cdr = cdr;
|
|
11563
|
+
this.showSeparator = true;
|
|
11564
|
+
this.decimalNumber = 2;
|
|
11565
|
+
this.minValue = null;
|
|
11566
|
+
this.maxValue = null;
|
|
11567
|
+
this.clearButton = false;
|
|
11568
|
+
}
|
|
11569
|
+
handleValueChange(e) {
|
|
11570
|
+
super.handleValueChange(e.value);
|
|
11571
|
+
}
|
|
11572
|
+
ngAfterViewInit() {
|
|
11573
|
+
this.registerForValidationForm(this.textBox);
|
|
11574
|
+
this.onRenderCompleted.emit();
|
|
11575
|
+
}
|
|
11576
|
+
}
|
|
11577
|
+
AXNumberBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11578
|
+
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: `
|
|
11579
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11580
|
+
[value]="value"
|
|
11581
|
+
[showSeparator]="showSeparator"
|
|
11582
|
+
[decimalNumber]="decimalNumber"
|
|
11583
|
+
[min]="minValue"
|
|
11584
|
+
[max]="maxValue"
|
|
11585
|
+
[allowClear]="clearButton"
|
|
11586
|
+
>
|
|
11587
|
+
<ax-validation [rules]="validation?.rules">
|
|
11588
|
+
</ax-validation>
|
|
11589
|
+
</ax-number-box>
|
|
11590
|
+
`, 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"] }] });
|
|
11591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, decorators: [{
|
|
11592
|
+
type: Component,
|
|
11593
|
+
args: [{
|
|
11594
|
+
template: `
|
|
11595
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11596
|
+
[value]="value"
|
|
11597
|
+
[showSeparator]="showSeparator"
|
|
11598
|
+
[decimalNumber]="decimalNumber"
|
|
11599
|
+
[min]="minValue"
|
|
11600
|
+
[max]="maxValue"
|
|
11601
|
+
[allowClear]="clearButton"
|
|
11602
|
+
>
|
|
11603
|
+
<ax-validation [rules]="validation?.rules">
|
|
11604
|
+
</ax-validation>
|
|
11605
|
+
</ax-number-box>
|
|
11606
|
+
`,
|
|
11607
|
+
}]
|
|
11608
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11609
|
+
type: ViewChild,
|
|
11610
|
+
args: [AXNumberBoxComponent]
|
|
11611
|
+
}] } });
|
|
11612
|
+
|
|
11613
|
+
class AXNumberBoxPropertyEditorModule {
|
|
11614
|
+
constructor() {
|
|
11615
|
+
}
|
|
11616
|
+
}
|
|
11617
|
+
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11618
|
+
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] });
|
|
11619
|
+
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
11620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
11621
|
+
type: NgModule,
|
|
11622
|
+
args: [{
|
|
11623
|
+
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
11624
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
11625
|
+
exports: [AXNumberBoxPropertyEditorComponent],
|
|
11626
|
+
providers: []
|
|
11627
|
+
}]
|
|
11628
|
+
}], ctorParameters: function () { return []; } });
|
|
11629
|
+
|
|
11630
|
+
class AXRangePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11631
|
+
constructor(cdr, popupService) {
|
|
11632
|
+
super(cdr);
|
|
11633
|
+
this.cdr = cdr;
|
|
11634
|
+
this.popupService = popupService;
|
|
11635
|
+
this.ranges = [];
|
|
11636
|
+
this.showSeparator = true;
|
|
11637
|
+
this.decimalNumber = 2;
|
|
11638
|
+
}
|
|
11639
|
+
ngOnInit() {
|
|
11640
|
+
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11641
|
+
this.cdr.detectChanges();
|
|
11642
|
+
}
|
|
11643
|
+
ngAfterViewInit() {
|
|
11644
|
+
this.onRenderCompleted.emit();
|
|
11645
|
+
}
|
|
11646
|
+
// getRanges() {
|
|
11647
|
+
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11648
|
+
// }
|
|
11649
|
+
onFormInit(e) {
|
|
11650
|
+
this.form = e.component;
|
|
11651
|
+
}
|
|
11652
|
+
handleEditClick(item) {
|
|
11653
|
+
this.editRow = Object.assign({}, item);
|
|
11654
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11655
|
+
size: 'sm',
|
|
11656
|
+
footerButtons: [
|
|
11657
|
+
{
|
|
11658
|
+
name: 'confirm',
|
|
11659
|
+
text: AXTranslator.get('common.confirm'),
|
|
11660
|
+
style: 'success',
|
|
11661
|
+
submitBehavior: true,
|
|
11662
|
+
cancelBehavior: false,
|
|
11663
|
+
onClick: () => {
|
|
11664
|
+
this.form.validate().then(c => {
|
|
11665
|
+
if (c.result) {
|
|
11666
|
+
super.handleValueChange(this.ranges);
|
|
11667
|
+
Object.assign(item, this.editRow);
|
|
11668
|
+
popup.close();
|
|
11669
|
+
this.editRow = null;
|
|
11670
|
+
this.cdr.detectChanges();
|
|
11671
|
+
}
|
|
11672
|
+
});
|
|
11673
|
+
}
|
|
11674
|
+
},
|
|
11675
|
+
{
|
|
11676
|
+
name: 'cancel',
|
|
11677
|
+
text: AXTranslator.get('common.cancel'),
|
|
11678
|
+
style: 'danger blank',
|
|
11679
|
+
submitBehavior: false,
|
|
11680
|
+
cancelBehavior: true,
|
|
11681
|
+
onClick: () => {
|
|
11682
|
+
popup.close();
|
|
11683
|
+
this.editRow = null;
|
|
11684
|
+
this.cdr.detectChanges();
|
|
11685
|
+
}
|
|
11686
|
+
}
|
|
11687
|
+
],
|
|
11688
|
+
title: AXTranslator.get('common.edit')
|
|
11689
|
+
});
|
|
11690
|
+
}
|
|
11691
|
+
handleAddClick() {
|
|
11692
|
+
var _a;
|
|
11693
|
+
const min = ((_a = this.ranges) === null || _a === void 0 ? void 0 : _a.length) ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11694
|
+
this.editRow = {
|
|
11695
|
+
title: '',
|
|
11696
|
+
minValue: min,
|
|
11697
|
+
maxValue: min + 1,
|
|
11698
|
+
color: null
|
|
11699
|
+
};
|
|
11700
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11701
|
+
title: AXTranslator.get('common.add-item'),
|
|
11702
|
+
size: 'sm',
|
|
11703
|
+
footerButtons: [
|
|
11704
|
+
{
|
|
11705
|
+
name: 'confirm',
|
|
11706
|
+
text: AXTranslator.get('common.confirm'),
|
|
11707
|
+
style: 'success',
|
|
11708
|
+
submitBehavior: true,
|
|
11709
|
+
cancelBehavior: false,
|
|
11710
|
+
onClick: () => {
|
|
11711
|
+
this.form.validate().then(c => {
|
|
11712
|
+
if (c.result) {
|
|
11713
|
+
super.handleValueChange(this.ranges);
|
|
11714
|
+
this.ranges.push(this.editRow);
|
|
11715
|
+
popup.close();
|
|
11716
|
+
this.editRow = null;
|
|
11717
|
+
this.cdr.detectChanges();
|
|
11718
|
+
}
|
|
11719
|
+
});
|
|
11720
|
+
}
|
|
11721
|
+
},
|
|
11722
|
+
{
|
|
11723
|
+
name: 'cancel',
|
|
11724
|
+
text: AXTranslator.get('common.cancel'),
|
|
11725
|
+
style: 'danger blank',
|
|
11726
|
+
submitBehavior: false,
|
|
11727
|
+
cancelBehavior: true,
|
|
11728
|
+
onClick: () => {
|
|
11729
|
+
popup.close();
|
|
11730
|
+
this.editRow = null;
|
|
11731
|
+
this.cdr.detectChanges();
|
|
11732
|
+
}
|
|
11733
|
+
}
|
|
11734
|
+
],
|
|
11735
|
+
});
|
|
11736
|
+
this.cdr.detectChanges();
|
|
11737
|
+
}
|
|
11738
|
+
handleRemoveClick(item) {
|
|
11739
|
+
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11740
|
+
super.handleValueChange(this.ranges);
|
|
11741
|
+
}
|
|
11742
|
+
}
|
|
11743
|
+
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 });
|
|
11744
|
+
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 });
|
|
11745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11746
|
+
type: Component,
|
|
11747
|
+
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"] }]
|
|
11748
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11749
|
+
type: ViewChild,
|
|
11750
|
+
args: ['tplEdit']
|
|
11751
|
+
}] } });
|
|
11752
|
+
|
|
11753
|
+
class AXRangePropertyEditorModule {
|
|
11754
|
+
constructor() {
|
|
11755
|
+
}
|
|
11756
|
+
}
|
|
11757
|
+
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11758
|
+
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11759
|
+
FormsModule,
|
|
11760
|
+
AXTranslatorModule,
|
|
11761
|
+
AXTextBoxModule,
|
|
11762
|
+
AXNumberBoxModule,
|
|
11763
|
+
AXColorPickerModule,
|
|
11764
|
+
AXLabelModule,
|
|
11765
|
+
AXPageModule,
|
|
11766
|
+
AXValidationModule,
|
|
11767
|
+
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11768
|
+
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11769
|
+
CommonModule,
|
|
11770
|
+
FormsModule,
|
|
11771
|
+
AXTranslatorModule,
|
|
11772
|
+
AXTextBoxModule,
|
|
11773
|
+
AXNumberBoxModule,
|
|
11774
|
+
AXColorPickerModule,
|
|
11775
|
+
AXLabelModule,
|
|
11776
|
+
AXPageModule,
|
|
11777
|
+
AXValidationModule,
|
|
11778
|
+
AXButtonModule
|
|
11779
|
+
]] });
|
|
11780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11781
|
+
type: NgModule,
|
|
11782
|
+
args: [{
|
|
11783
|
+
declarations: [AXRangePropertyEditorComponent],
|
|
11784
|
+
imports: [
|
|
11785
|
+
CommonModule,
|
|
11786
|
+
FormsModule,
|
|
11787
|
+
AXTranslatorModule,
|
|
11788
|
+
AXTextBoxModule,
|
|
11789
|
+
AXNumberBoxModule,
|
|
11790
|
+
AXColorPickerModule,
|
|
11791
|
+
AXLabelModule,
|
|
11792
|
+
AXPageModule,
|
|
11793
|
+
AXValidationModule,
|
|
11794
|
+
AXButtonModule
|
|
11795
|
+
],
|
|
11796
|
+
exports: [AXRangePropertyEditorComponent],
|
|
11797
|
+
providers: []
|
|
11798
|
+
}]
|
|
11799
|
+
}], ctorParameters: function () { return []; } });
|
|
11800
|
+
|
|
11801
|
+
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11802
|
+
constructor(cdr) {
|
|
11803
|
+
super(cdr);
|
|
11804
|
+
this.cdr = cdr;
|
|
11805
|
+
this.valueField = 'id';
|
|
11806
|
+
this.textField = 'text';
|
|
11807
|
+
this.selectionMode = 'single';
|
|
11808
|
+
this.selectionDataMode = 'value';
|
|
11809
|
+
this.allowSearch = true;
|
|
11810
|
+
this.allowNull = false;
|
|
11811
|
+
this.disabled = false;
|
|
11812
|
+
this.items = [];
|
|
11813
|
+
this.remoteOperation = false;
|
|
11814
|
+
this.provideData = (e) => {
|
|
11815
|
+
return new Promise((resolve) => {
|
|
11816
|
+
const func = () => {
|
|
11817
|
+
if (Array.isArray(this.items)) {
|
|
11818
|
+
resolve(this.items.slice());
|
|
11819
|
+
}
|
|
11820
|
+
else if (typeof this.items === 'function') {
|
|
11821
|
+
const a = Object.assign(e, { sender: this });
|
|
11822
|
+
resolve(this.items(a));
|
|
11823
|
+
}
|
|
11824
|
+
else {
|
|
11825
|
+
resolve([]);
|
|
11826
|
+
}
|
|
11827
|
+
};
|
|
11828
|
+
const intVal = setInterval(() => {
|
|
11829
|
+
if (this.initiated) {
|
|
11830
|
+
func();
|
|
11831
|
+
clearInterval(intVal);
|
|
11832
|
+
}
|
|
11833
|
+
}, 50);
|
|
11834
|
+
});
|
|
11835
|
+
};
|
|
11836
|
+
}
|
|
11837
|
+
get filter() {
|
|
11838
|
+
return this._filter;
|
|
11839
|
+
}
|
|
11840
|
+
set filter(v) {
|
|
11841
|
+
var _a;
|
|
11842
|
+
this._filter = v;
|
|
11843
|
+
if (this.value && this.initiated) {
|
|
11844
|
+
this.value = null;
|
|
11845
|
+
(_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
11846
|
+
}
|
|
11847
|
+
}
|
|
11848
|
+
handleValueChange(e) {
|
|
11849
|
+
super.handleValueChange(e.selectedValues);
|
|
11850
|
+
}
|
|
11851
|
+
ngAfterViewInit() {
|
|
11852
|
+
this.registerForValidationForm(this.selectBox);
|
|
11853
|
+
this.onRenderCompleted.emit();
|
|
11854
|
+
}
|
|
11855
|
+
}
|
|
11856
|
+
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11857
|
+
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"] }] });
|
|
11858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
11859
|
+
type: Component,
|
|
11860
|
+
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>" }]
|
|
11861
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
11862
|
+
type: ViewChild,
|
|
11863
|
+
args: [AXSelectBoxComponent, { static: true }]
|
|
11864
|
+
}] } });
|
|
11865
|
+
|
|
11866
|
+
class AXSelectBoxPropertyEditorModule {
|
|
11867
|
+
constructor() {
|
|
11868
|
+
}
|
|
11869
|
+
}
|
|
11870
|
+
AXSelectBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11871
|
+
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] });
|
|
11872
|
+
AXSelectBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule]] });
|
|
11873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, decorators: [{
|
|
11874
|
+
type: NgModule,
|
|
11875
|
+
args: [{
|
|
11876
|
+
declarations: [AXSelectBoxPropertyEditorComponent],
|
|
11877
|
+
imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule],
|
|
11878
|
+
exports: [AXSelectBoxPropertyEditorComponent],
|
|
11879
|
+
providers: []
|
|
11880
|
+
}]
|
|
11881
|
+
}], ctorParameters: function () { return []; } });
|
|
11882
|
+
|
|
11883
|
+
class AXSelectionListPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11884
|
+
constructor(cdr) {
|
|
11885
|
+
super(cdr);
|
|
11886
|
+
this.cdr = cdr;
|
|
11887
|
+
this.disabled = false;
|
|
11888
|
+
this.indeterminate = false;
|
|
11889
|
+
this.readonly = false;
|
|
11890
|
+
this.size = 'md';
|
|
11891
|
+
this.items = [];
|
|
11892
|
+
this.mode = 'single';
|
|
11893
|
+
this.direction = 'horizontal';
|
|
11894
|
+
this.textField = null;
|
|
11895
|
+
this.valueField = null;
|
|
11896
|
+
}
|
|
11897
|
+
handleValueChange(e) {
|
|
11898
|
+
super.handleValueChange(e);
|
|
11899
|
+
}
|
|
11900
|
+
ngAfterViewInit() {
|
|
11901
|
+
this.registerForValidationForm(this.selectionList);
|
|
11902
|
+
this.onRenderCompleted.emit();
|
|
11903
|
+
}
|
|
11904
|
+
}
|
|
11905
|
+
AXSelectionListPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11906
|
+
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: `
|
|
11907
|
+
<ax-selection-list
|
|
11908
|
+
[disabled]="disabled"
|
|
11909
|
+
[size]="size"
|
|
11910
|
+
[readonly]="readonly"
|
|
11911
|
+
[value]="value"
|
|
11912
|
+
[items]="items"
|
|
11913
|
+
[mode]="mode"
|
|
11914
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11915
|
+
[textField]="textField"
|
|
11916
|
+
[valueField]="valueField"
|
|
11917
|
+
[direction]="direction"
|
|
11918
|
+
>
|
|
11919
|
+
<ax-validation [rules]="validation?.rules">
|
|
11920
|
+
</ax-validation>
|
|
11921
|
+
</ax-selection-list>
|
|
11922
|
+
`, 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"] }] });
|
|
11923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, decorators: [{
|
|
11924
|
+
type: Component,
|
|
11925
|
+
args: [{
|
|
11926
|
+
template: `
|
|
11927
|
+
<ax-selection-list
|
|
11928
|
+
[disabled]="disabled"
|
|
11929
|
+
[size]="size"
|
|
11930
|
+
[readonly]="readonly"
|
|
11931
|
+
[value]="value"
|
|
11932
|
+
[items]="items"
|
|
11933
|
+
[mode]="mode"
|
|
11934
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11935
|
+
[textField]="textField"
|
|
11936
|
+
[valueField]="valueField"
|
|
11937
|
+
[direction]="direction"
|
|
11938
|
+
>
|
|
11939
|
+
<ax-validation [rules]="validation?.rules">
|
|
11940
|
+
</ax-validation>
|
|
11941
|
+
</ax-selection-list>
|
|
11942
|
+
`,
|
|
11943
|
+
}]
|
|
11944
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionList: [{
|
|
11945
|
+
type: ViewChild,
|
|
11946
|
+
args: [AXSelectionListComponent, { static: true }]
|
|
11947
|
+
}] } });
|
|
11948
|
+
|
|
11949
|
+
class AXSelectionPropertyEditorModule {
|
|
11950
|
+
}
|
|
11951
|
+
AXSelectionPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11952
|
+
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] });
|
|
11953
|
+
AXSelectionPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, providers: [], imports: [[CommonModule, AXSelectionListModule, FormsModule, AXValidationModule]] });
|
|
11954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, decorators: [{
|
|
11955
|
+
type: NgModule,
|
|
11956
|
+
args: [{
|
|
11957
|
+
declarations: [AXSelectionListPropertyEditorComponent],
|
|
11958
|
+
imports: [CommonModule, AXSelectionListModule, FormsModule, AXValidationModule],
|
|
11959
|
+
exports: [AXSelectionListPropertyEditorComponent],
|
|
11960
|
+
providers: [],
|
|
11961
|
+
}]
|
|
11962
|
+
}] });
|
|
11963
|
+
|
|
11964
|
+
class AXSwitchComponent extends AXBaseComponent {
|
|
11965
|
+
constructor(cdr) {
|
|
11966
|
+
super();
|
|
11967
|
+
this.cdr = cdr;
|
|
11968
|
+
this.onValueChanged = new EventEmitter();
|
|
11969
|
+
this.valueChange = new EventEmitter();
|
|
11970
|
+
this.tabIndex = 0;
|
|
11971
|
+
this.size = 'md';
|
|
11972
|
+
}
|
|
11973
|
+
get value() {
|
|
11974
|
+
return this._value;
|
|
11975
|
+
}
|
|
11976
|
+
set value(v) {
|
|
11977
|
+
if (this._value !== v) {
|
|
11978
|
+
const oldValue = this._value;
|
|
11979
|
+
this._value = v;
|
|
11980
|
+
this.valueChange.emit(v);
|
|
11981
|
+
this.onValueChanged.emit({
|
|
11982
|
+
component: this,
|
|
11983
|
+
oldValue,
|
|
11984
|
+
value: v
|
|
11985
|
+
});
|
|
11986
|
+
}
|
|
11987
|
+
}
|
|
11988
|
+
focus() { }
|
|
11989
|
+
}
|
|
11990
|
+
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11991
|
+
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 });
|
|
11992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11993
|
+
type: Component,
|
|
11994
|
+
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"] }]
|
|
11995
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
11996
|
+
type: Output
|
|
11997
|
+
}], valueChange: [{
|
|
11998
|
+
type: Output
|
|
11999
|
+
}], tabIndex: [{
|
|
12000
|
+
type: Input
|
|
12001
|
+
}], value: [{
|
|
12002
|
+
type: Input
|
|
12003
|
+
}], readonly: [{
|
|
12004
|
+
type: Input
|
|
12005
|
+
}], disabled: [{
|
|
12006
|
+
type: Input
|
|
12007
|
+
}], size: [{
|
|
12008
|
+
type: Input
|
|
12009
|
+
}] } });
|
|
12010
|
+
|
|
12011
|
+
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12012
|
+
constructor(cdr) {
|
|
12013
|
+
super(cdr);
|
|
12014
|
+
this.cdr = cdr;
|
|
12015
|
+
}
|
|
12016
|
+
handleValueChange(e) {
|
|
12017
|
+
super.handleValueChange(e.value);
|
|
12018
|
+
}
|
|
12019
|
+
ngAfterViewInit() {
|
|
12020
|
+
this.onRenderCompleted.emit();
|
|
12021
|
+
}
|
|
12022
|
+
}
|
|
12023
|
+
AXSwitchPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12024
|
+
AXSwitchPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchPropertyEditorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
12025
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
12026
|
+
`, isInline: true, components: [{ type: AXSwitchComponent, selector: "ax-switch", inputs: ["tabIndex", "value", "readonly", "disabled", "size"], outputs: ["onValueChanged", "valueChange"] }] });
|
|
12027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, decorators: [{
|
|
12028
|
+
type: Component,
|
|
12029
|
+
args: [{
|
|
12030
|
+
template: `
|
|
12031
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
12032
|
+
`,
|
|
12033
|
+
}]
|
|
12034
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
12035
|
+
|
|
12036
|
+
class AXSwitchModule {
|
|
12037
|
+
}
|
|
12038
|
+
AXSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12039
|
+
AXSwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, declarations: [AXSwitchComponent], imports: [CommonModule, FormsModule], exports: [AXSwitchComponent] });
|
|
12040
|
+
AXSwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, providers: [], imports: [[CommonModule, FormsModule]] });
|
|
12041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, decorators: [{
|
|
12042
|
+
type: NgModule,
|
|
12043
|
+
args: [{
|
|
12044
|
+
declarations: [AXSwitchComponent],
|
|
12045
|
+
imports: [CommonModule, FormsModule],
|
|
12046
|
+
exports: [AXSwitchComponent],
|
|
11880
12047
|
providers: []
|
|
11881
12048
|
}]
|
|
11882
12049
|
}] });
|
|
@@ -11891,71 +12058,132 @@ AXSwitchPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.
|
|
|
11891
12058
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorModule, decorators: [{
|
|
11892
12059
|
type: NgModule,
|
|
11893
12060
|
args: [{
|
|
11894
|
-
declarations: [AXSwitchPropertyEditorComponent],
|
|
11895
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
11896
|
-
exports: [AXSwitchPropertyEditorComponent],
|
|
12061
|
+
declarations: [AXSwitchPropertyEditorComponent],
|
|
12062
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
12063
|
+
exports: [AXSwitchPropertyEditorComponent],
|
|
12064
|
+
providers: []
|
|
12065
|
+
}]
|
|
12066
|
+
}], ctorParameters: function () { return []; } });
|
|
12067
|
+
|
|
12068
|
+
class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12069
|
+
constructor(cdr) {
|
|
12070
|
+
super(cdr);
|
|
12071
|
+
this.cdr = cdr;
|
|
12072
|
+
this.clearButton = false;
|
|
12073
|
+
}
|
|
12074
|
+
handleValueChange(e) {
|
|
12075
|
+
super.handleValueChange(e.value);
|
|
12076
|
+
}
|
|
12077
|
+
ngAfterViewInit() {
|
|
12078
|
+
this.registerForValidationForm(this.textBox);
|
|
12079
|
+
this.onRenderCompleted.emit();
|
|
12080
|
+
}
|
|
12081
|
+
}
|
|
12082
|
+
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12083
|
+
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"] }] });
|
|
12084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
12085
|
+
type: Component,
|
|
12086
|
+
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>" }]
|
|
12087
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
12088
|
+
type: ViewChild,
|
|
12089
|
+
args: [AXTextBoxComponent]
|
|
12090
|
+
}] } });
|
|
12091
|
+
|
|
12092
|
+
class AXTextPropertyEditorModule {
|
|
12093
|
+
constructor() {
|
|
12094
|
+
}
|
|
12095
|
+
}
|
|
12096
|
+
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12097
|
+
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] });
|
|
12098
|
+
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
12099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
12100
|
+
type: NgModule,
|
|
12101
|
+
args: [{
|
|
12102
|
+
declarations: [AXTextPropertyEditorComponent],
|
|
12103
|
+
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
12104
|
+
exports: [AXTextPropertyEditorComponent],
|
|
11897
12105
|
providers: []
|
|
11898
12106
|
}]
|
|
11899
12107
|
}], ctorParameters: function () { return []; } });
|
|
11900
12108
|
|
|
11901
|
-
class
|
|
12109
|
+
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12110
|
+
constructor(cdr, ref) {
|
|
12111
|
+
super(cdr, ref);
|
|
12112
|
+
this.cdr = cdr;
|
|
12113
|
+
this.rows = 0;
|
|
12114
|
+
this.cols = 0;
|
|
12115
|
+
this.maxLength = null;
|
|
12116
|
+
}
|
|
12117
|
+
}
|
|
12118
|
+
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 });
|
|
12119
|
+
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 });
|
|
12120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12121
|
+
type: Component,
|
|
12122
|
+
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>" }]
|
|
12123
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12124
|
+
type: Input
|
|
12125
|
+
}], cols: [{
|
|
12126
|
+
type: Input
|
|
12127
|
+
}], maxLength: [{
|
|
12128
|
+
type: Input
|
|
12129
|
+
}] } });
|
|
12130
|
+
|
|
12131
|
+
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11902
12132
|
constructor(cdr) {
|
|
11903
12133
|
super(cdr);
|
|
11904
12134
|
this.cdr = cdr;
|
|
11905
|
-
this.showTodayButton = true;
|
|
11906
|
-
this.selectableHoliday = true;
|
|
11907
|
-
this.type = 'gregorian';
|
|
11908
|
-
this.textAlign = null;
|
|
11909
|
-
this.placeholder = '';
|
|
11910
12135
|
this.clearButton = false;
|
|
11911
|
-
this.
|
|
11912
|
-
this.
|
|
12136
|
+
this.placeholder = null;
|
|
12137
|
+
this.rows = 3;
|
|
11913
12138
|
}
|
|
11914
12139
|
handleValueChange(e) {
|
|
11915
12140
|
super.handleValueChange(e.value);
|
|
11916
12141
|
}
|
|
11917
12142
|
ngAfterViewInit() {
|
|
11918
|
-
this.registerForValidationForm(this.
|
|
12143
|
+
this.registerForValidationForm(this.textBox);
|
|
11919
12144
|
this.onRenderCompleted.emit();
|
|
11920
12145
|
}
|
|
11921
12146
|
}
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11926
|
-
<ax-validation [rules]="validation?.rules">
|
|
11927
|
-
</ax-validation>
|
|
11928
|
-
</ax-date-picker>
|
|
11929
|
-
`, 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"] }] });
|
|
11930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
12147
|
+
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12148
|
+
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"] }] });
|
|
12149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
11931
12150
|
type: Component,
|
|
11932
|
-
args: [{
|
|
11933
|
-
|
|
11934
|
-
<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)"
|
|
11935
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11936
|
-
<ax-validation [rules]="validation?.rules">
|
|
11937
|
-
</ax-validation>
|
|
11938
|
-
</ax-date-picker>
|
|
11939
|
-
`,
|
|
11940
|
-
}]
|
|
11941
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
12151
|
+
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" }]
|
|
12152
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11942
12153
|
type: ViewChild,
|
|
11943
|
-
args: [
|
|
12154
|
+
args: [AXTextBoxComponent]
|
|
11944
12155
|
}] } });
|
|
11945
12156
|
|
|
11946
|
-
|
|
12157
|
+
const COMPONENT = [AXTextAreaComponent];
|
|
12158
|
+
const MODULES = [CommonModule];
|
|
12159
|
+
class AXTextAreaModule {
|
|
12160
|
+
}
|
|
12161
|
+
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12162
|
+
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
12163
|
+
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
12164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
12165
|
+
type: NgModule,
|
|
12166
|
+
args: [{
|
|
12167
|
+
declarations: [...COMPONENT],
|
|
12168
|
+
imports: [...MODULES],
|
|
12169
|
+
exports: [...COMPONENT],
|
|
12170
|
+
providers: [],
|
|
12171
|
+
}]
|
|
12172
|
+
}] });
|
|
12173
|
+
|
|
12174
|
+
class AXTextareaPropertyEditorModule {
|
|
11947
12175
|
constructor() {
|
|
11948
12176
|
}
|
|
11949
12177
|
}
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
12178
|
+
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12179
|
+
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] });
|
|
12180
|
+
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
12181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
11954
12182
|
type: NgModule,
|
|
11955
12183
|
args: [{
|
|
11956
|
-
declarations: [
|
|
11957
|
-
imports: [CommonModule, FormsModule,
|
|
11958
|
-
exports: [
|
|
12184
|
+
declarations: [AXTextareaPropertyEditorComponent],
|
|
12185
|
+
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12186
|
+
exports: [AXTextareaPropertyEditorComponent],
|
|
11959
12187
|
providers: []
|
|
11960
12188
|
}]
|
|
11961
12189
|
}], ctorParameters: function () { return []; } });
|
|
@@ -12894,21 +13122,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12894
13122
|
type: Input
|
|
12895
13123
|
}] } });
|
|
12896
13124
|
|
|
12897
|
-
class AXTimePickerModule {
|
|
12898
|
-
}
|
|
12899
|
-
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12900
|
-
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] });
|
|
12901
|
-
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
12902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
12903
|
-
type: NgModule,
|
|
12904
|
-
args: [{
|
|
12905
|
-
declarations: [AXTimePickerComponent],
|
|
12906
|
-
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
12907
|
-
exports: [AXTimePickerComponent],
|
|
12908
|
-
providers: [],
|
|
12909
|
-
}]
|
|
12910
|
-
}] });
|
|
12911
|
-
|
|
12912
13125
|
class AXTimePropertyEditorComponent extends AXProperyEditorComponent {
|
|
12913
13126
|
constructor(cdr) {
|
|
12914
13127
|
super(cdr);
|
|
@@ -12947,6 +13160,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12947
13160
|
args: [AXDatePickerComponent]
|
|
12948
13161
|
}] } });
|
|
12949
13162
|
|
|
13163
|
+
class AXTimePickerModule {
|
|
13164
|
+
}
|
|
13165
|
+
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13166
|
+
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] });
|
|
13167
|
+
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
13168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
13169
|
+
type: NgModule,
|
|
13170
|
+
args: [{
|
|
13171
|
+
declarations: [AXTimePickerComponent],
|
|
13172
|
+
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
13173
|
+
exports: [AXTimePickerComponent],
|
|
13174
|
+
providers: [],
|
|
13175
|
+
}]
|
|
13176
|
+
}] });
|
|
13177
|
+
|
|
12950
13178
|
class AXTimePropertyEditorModule {
|
|
12951
13179
|
constructor() {
|
|
12952
13180
|
}
|
|
@@ -12964,148 +13192,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12964
13192
|
}]
|
|
12965
13193
|
}], ctorParameters: function () { return []; } });
|
|
12966
13194
|
|
|
12967
|
-
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12968
|
-
constructor(cdr, ref) {
|
|
12969
|
-
super(cdr, ref);
|
|
12970
|
-
this.cdr = cdr;
|
|
12971
|
-
this.rows = 0;
|
|
12972
|
-
this.cols = 0;
|
|
12973
|
-
this.maxLength = null;
|
|
12974
|
-
}
|
|
12975
|
-
}
|
|
12976
|
-
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 });
|
|
12977
|
-
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 });
|
|
12978
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12979
|
-
type: Component,
|
|
12980
|
-
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>" }]
|
|
12981
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12982
|
-
type: Input
|
|
12983
|
-
}], cols: [{
|
|
12984
|
-
type: Input
|
|
12985
|
-
}], maxLength: [{
|
|
12986
|
-
type: Input
|
|
12987
|
-
}] } });
|
|
12988
|
-
|
|
12989
|
-
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12990
|
-
constructor(cdr) {
|
|
12991
|
-
super(cdr);
|
|
12992
|
-
this.cdr = cdr;
|
|
12993
|
-
this.clearButton = false;
|
|
12994
|
-
this.placeholder = null;
|
|
12995
|
-
this.rows = 3;
|
|
12996
|
-
}
|
|
12997
|
-
handleValueChange(e) {
|
|
12998
|
-
super.handleValueChange(e.value);
|
|
12999
|
-
}
|
|
13000
|
-
ngAfterViewInit() {
|
|
13001
|
-
this.registerForValidationForm(this.textBox);
|
|
13002
|
-
this.onRenderCompleted.emit();
|
|
13003
|
-
}
|
|
13004
|
-
}
|
|
13005
|
-
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13006
|
-
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"] }] });
|
|
13007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
13008
|
-
type: Component,
|
|
13009
|
-
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" }]
|
|
13010
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
13011
|
-
type: ViewChild,
|
|
13012
|
-
args: [AXTextBoxComponent]
|
|
13013
|
-
}] } });
|
|
13014
|
-
|
|
13015
|
-
const COMPONENT = [AXTextAreaComponent];
|
|
13016
|
-
const MODULES = [CommonModule];
|
|
13017
|
-
class AXTextAreaModule {
|
|
13018
|
-
}
|
|
13019
|
-
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13020
|
-
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
13021
|
-
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
13022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
13023
|
-
type: NgModule,
|
|
13024
|
-
args: [{
|
|
13025
|
-
declarations: [...COMPONENT],
|
|
13026
|
-
imports: [...MODULES],
|
|
13027
|
-
exports: [...COMPONENT],
|
|
13028
|
-
providers: [],
|
|
13029
|
-
}]
|
|
13030
|
-
}] });
|
|
13031
|
-
|
|
13032
|
-
class AXTextareaPropertyEditorModule {
|
|
13033
|
-
constructor() {
|
|
13034
|
-
}
|
|
13035
|
-
}
|
|
13036
|
-
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13037
|
-
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] });
|
|
13038
|
-
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
13039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
13040
|
-
type: NgModule,
|
|
13041
|
-
args: [{
|
|
13042
|
-
declarations: [AXTextareaPropertyEditorComponent],
|
|
13043
|
-
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
13044
|
-
exports: [AXTextareaPropertyEditorComponent],
|
|
13045
|
-
providers: []
|
|
13046
|
-
}]
|
|
13047
|
-
}], ctorParameters: function () { return []; } });
|
|
13048
|
-
|
|
13049
|
-
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
13050
|
-
constructor(cdr) {
|
|
13051
|
-
super(cdr);
|
|
13052
|
-
this.cdr = cdr;
|
|
13053
|
-
this.disabled = false;
|
|
13054
|
-
this.indeterminate = false;
|
|
13055
|
-
this.readonly = false;
|
|
13056
|
-
this.size = 'md';
|
|
13057
|
-
}
|
|
13058
|
-
ngAfterViewInit() {
|
|
13059
|
-
console.log('checkbox');
|
|
13060
|
-
this.registerForValidationForm(this.textBox);
|
|
13061
|
-
this.onRenderCompleted.emit();
|
|
13062
|
-
}
|
|
13063
|
-
}
|
|
13064
|
-
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13065
|
-
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
|
|
13066
|
-
[disabled]="disabled"
|
|
13067
|
-
[label]="label"
|
|
13068
|
-
[size]="size"
|
|
13069
|
-
[indeterminate]="indeterminate"
|
|
13070
|
-
[readonly]="readonly"
|
|
13071
|
-
[value]="value">
|
|
13072
|
-
<ax-validation [rules]="validation?.rules">
|
|
13073
|
-
</ax-validation>
|
|
13074
|
-
</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"] }] });
|
|
13075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
13076
|
-
type: Component,
|
|
13077
|
-
args: [{
|
|
13078
|
-
template: `<ax-check-box
|
|
13079
|
-
[disabled]="disabled"
|
|
13080
|
-
[label]="label"
|
|
13081
|
-
[size]="size"
|
|
13082
|
-
[indeterminate]="indeterminate"
|
|
13083
|
-
[readonly]="readonly"
|
|
13084
|
-
[value]="value">
|
|
13085
|
-
<ax-validation [rules]="validation?.rules">
|
|
13086
|
-
</ax-validation>
|
|
13087
|
-
</ax-check-box>`,
|
|
13088
|
-
}]
|
|
13089
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
13090
|
-
type: ViewChild,
|
|
13091
|
-
args: [AXCheckBoxComponent]
|
|
13092
|
-
}] } });
|
|
13093
|
-
|
|
13094
|
-
class AXCheckPropertyEditorModule {
|
|
13095
|
-
}
|
|
13096
|
-
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13097
|
-
AXCheckPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, declarations: [AXCheckBoxPropertyEditorComponent], imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule] });
|
|
13098
|
-
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
13099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
13100
|
-
type: NgModule,
|
|
13101
|
-
args: [{
|
|
13102
|
-
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
13103
|
-
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
13104
|
-
exports: [],
|
|
13105
|
-
providers: [],
|
|
13106
|
-
}]
|
|
13107
|
-
}] });
|
|
13108
|
-
|
|
13109
13195
|
const WDIGET_MODULES = [
|
|
13110
13196
|
AXNumberBoxPropertyEditorModule,
|
|
13111
13197
|
AXTextPropertyEditorModule,
|
|
@@ -13119,7 +13205,8 @@ const WDIGET_MODULES = [
|
|
|
13119
13205
|
AXTimePropertyEditorModule,
|
|
13120
13206
|
AXTimePropertyEditorModule,
|
|
13121
13207
|
AXTextareaPropertyEditorModule,
|
|
13122
|
-
AXCheckPropertyEditorModule
|
|
13208
|
+
AXCheckPropertyEditorModule,
|
|
13209
|
+
AXSelectionPropertyEditorModule
|
|
13123
13210
|
];
|
|
13124
13211
|
class AXProppertyEditorModule {
|
|
13125
13212
|
}
|
|
@@ -13136,12 +13223,17 @@ AXProppertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
13136
13223
|
AXTimePropertyEditorModule,
|
|
13137
13224
|
AXTimePropertyEditorModule,
|
|
13138
13225
|
AXTextareaPropertyEditorModule,
|
|
13139
|
-
AXCheckPropertyEditorModule,
|
|
13226
|
+
AXCheckPropertyEditorModule,
|
|
13227
|
+
AXSelectionPropertyEditorModule, i1$4.RouterModule], exports: [AXPropertyEditorRendererDirective] });
|
|
13140
13228
|
AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXProppertyEditorModule, providers: [], imports: [[
|
|
13141
13229
|
WDIGET_MODULES,
|
|
13142
13230
|
RouterModule.forChild([
|
|
13143
13231
|
{
|
|
13144
|
-
|
|
13232
|
+
path: 'ax/editors/selection',
|
|
13233
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13234
|
+
},
|
|
13235
|
+
{
|
|
13236
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13145
13237
|
path: 'ax/editors/check'
|
|
13146
13238
|
},
|
|
13147
13239
|
{
|
|
@@ -13196,7 +13288,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
13196
13288
|
WDIGET_MODULES,
|
|
13197
13289
|
RouterModule.forChild([
|
|
13198
13290
|
{
|
|
13199
|
-
|
|
13291
|
+
path: 'ax/editors/selection',
|
|
13292
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13293
|
+
},
|
|
13294
|
+
{
|
|
13295
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13200
13296
|
path: 'ax/editors/check'
|
|
13201
13297
|
},
|
|
13202
13298
|
{
|