@acorex/components 6.6.15 → 6.6.17
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.
@@ -13920,52 +13920,52 @@ class AXTimePickerComponent extends AXBaseTextComponent {
|
|
13920
13920
|
switch (this.timeType) {
|
13921
13921
|
case 'HHmmss':
|
13922
13922
|
this.type = 'HHmmss';
|
13923
|
-
this.timeType =
|
13923
|
+
this.timeType = 'Hh:m0:s0';
|
13924
13924
|
this.textValue = this.value ? this.value : '--:--:--';
|
13925
13925
|
break;
|
13926
13926
|
case 'HHmm':
|
13927
13927
|
this.type = 'HHmm';
|
13928
|
-
this.timeType =
|
13928
|
+
this.timeType = 'Hh:m0';
|
13929
13929
|
this.textValue = this.value ? this.value : '--:--';
|
13930
13930
|
break;
|
13931
13931
|
case 'HH':
|
13932
13932
|
this.type = 'HH';
|
13933
|
-
this.timeType =
|
13933
|
+
this.timeType = 'Hh';
|
13934
13934
|
this.textValue = this.value ? this.value : '--';
|
13935
13935
|
break;
|
13936
13936
|
case 'hhmmss':
|
13937
13937
|
this.type = 'hhmmss';
|
13938
|
-
this.timeType =
|
13938
|
+
this.timeType = 'hh:m0:s0';
|
13939
13939
|
this.textValue = this.value ? this.value : '--:--:--';
|
13940
13940
|
break;
|
13941
13941
|
case 'hhmm':
|
13942
13942
|
this.type = 'hhmm';
|
13943
|
-
this.timeType =
|
13943
|
+
this.timeType = 'hh:m0:s0';
|
13944
13944
|
this.textValue = this.value ? this.value : '--:--';
|
13945
13945
|
break;
|
13946
13946
|
case 'hh':
|
13947
13947
|
this.type = 'hh';
|
13948
|
-
this.timeType =
|
13948
|
+
this.timeType = 'hh';
|
13949
13949
|
this.textValue = this.value ? this.value : '--';
|
13950
13950
|
break;
|
13951
13951
|
case 'hhmmssam':
|
13952
13952
|
this.type = 'hhmmssam';
|
13953
|
-
this.timeType =
|
13953
|
+
this.timeType = 'H0h0:m0s0AA';
|
13954
13954
|
this.textValue = this.value ? this.value : this.valueSam;
|
13955
13955
|
break;
|
13956
13956
|
case 'hhmmam':
|
13957
13957
|
this.type = 'hhmmam';
|
13958
|
-
this.timeType =
|
13958
|
+
this.timeType = 'H0h0:m0AA';
|
13959
13959
|
this.textValue = this.value ? this.value : this.valueMam;
|
13960
13960
|
break;
|
13961
13961
|
case 'hham':
|
13962
13962
|
this.type = 'hham';
|
13963
|
-
this.timeType =
|
13963
|
+
this.timeType = 'h0h0am';
|
13964
13964
|
this.textValue = this.value ? this.value : this.valueHam;
|
13965
13965
|
break;
|
13966
13966
|
default:
|
13967
13967
|
this.type = 'HHmm';
|
13968
|
-
this.timeType =
|
13968
|
+
this.timeType = 'H0h0:m0';
|
13969
13969
|
this.textValue = this.value ? this.value : '--:--';
|
13970
13970
|
break;
|
13971
13971
|
}
|
@@ -14613,13 +14613,13 @@ class AXTimePickerComponent extends AXBaseTextComponent {
|
|
14613
14613
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXTimePickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
14614
14614
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AXTimePickerComponent, selector: "ax-time-picker", inputs: { timeType: "timeType", showMask: "showMask", showCurentTime: "showCurentTime" }, outputs: { onValueChanged: "onValueChanged" }, host: { styleAttribute: "width: 100%" }, providers: [
|
14615
14615
|
{ provide: AXValidatableComponent, useExisting: AXTimePickerComponent },
|
14616
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\"> </ng-content>\n <i class=\"form-item-icon {{ icon }}\" *ngIf=\"icon\"></i>\n </div>\n <div class=\"content\" #content>\n <div
|
14616
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\"> </ng-content>\n <i class=\"form-item-icon {{ icon }}\" *ngIf=\"icon\"></i>\n </div>\n <div class=\"content\" #content>\n <div\n class=\"ax form-control input {{ size }}\"\n [class.disabled]=\"disabled\"\n [class.readonly]=\"readonly\"\n [class.icon]=\"icon\"\n >\n <input\n #input\n type=\"text\"\n class=\"ax {{ size }}\"\n [mask]=\"timeType\"\n [showMaskTyped]=\"showMask\"\n [(ngModel)]=\"textValue\"\n placeholder=\"{{ placeholder }}\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [ngClass]=\"setTextAlign()\"\n [class.clear]=\"value && allowClear\"\n (focus)=\"handleInputFocus()\"\n (blur)=\"handleInputBlur($event)\"\n (keyup)=\"handleKeyUp($event)\"\n (keydown)=\"handleKeyDown($event)\"\n (click)=\"handleClick($event)\"\n />\n </div>\n </div>\n <div class=\"ax items-wrapper\">\n <ax-button\n *ngIf=\"value && allowClear\"\n icon=\"far fa-times\"\n type=\"danger blank\"\n (click)=\"clear()\"\n [disabled]=\"disabled\"\n [tabIndex]=\"-1\"\n ></ax-button>\n <ng-content select=\"[end]\"> </ng-content>\n </div>\n</div>\n<!-- [textMask]=\"{mask: mask , showMask:showMask , guid: maskGuid , keepCharPositions: maskKeepCharPositions}\" -->\n<!-- <input #input id=\"timePickerValue\" [textMask]=\"timeType\" type=\"text\" [(ngModel)]=\"value\" (keypress)='handleKeyPress($event)'\n (keyup)=\"handleKeyUp($event)\" (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick($event)\"> -->\n", dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { kind: "directive", type: i3.NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions"], outputs: ["maskFilled"], exportAs: ["mask", "ngxMask"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
14617
14617
|
}
|
14618
14618
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXTimePickerComponent, decorators: [{
|
14619
14619
|
type: Component,
|
14620
14620
|
args: [{ selector: 'ax-time-picker', changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%' }, providers: [
|
14621
14621
|
{ provide: AXValidatableComponent, useExisting: AXTimePickerComponent },
|
14622
|
-
], template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\"> </ng-content>\n <i class=\"form-item-icon {{ icon }}\" *ngIf=\"icon\"></i>\n </div>\n <div class=\"content\" #content>\n <div
|
14622
|
+
], template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\"> </ng-content>\n <i class=\"form-item-icon {{ icon }}\" *ngIf=\"icon\"></i>\n </div>\n <div class=\"content\" #content>\n <div\n class=\"ax form-control input {{ size }}\"\n [class.disabled]=\"disabled\"\n [class.readonly]=\"readonly\"\n [class.icon]=\"icon\"\n >\n <input\n #input\n type=\"text\"\n class=\"ax {{ size }}\"\n [mask]=\"timeType\"\n [showMaskTyped]=\"showMask\"\n [(ngModel)]=\"textValue\"\n placeholder=\"{{ placeholder }}\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [ngClass]=\"setTextAlign()\"\n [class.clear]=\"value && allowClear\"\n (focus)=\"handleInputFocus()\"\n (blur)=\"handleInputBlur($event)\"\n (keyup)=\"handleKeyUp($event)\"\n (keydown)=\"handleKeyDown($event)\"\n (click)=\"handleClick($event)\"\n />\n </div>\n </div>\n <div class=\"ax items-wrapper\">\n <ax-button\n *ngIf=\"value && allowClear\"\n icon=\"far fa-times\"\n type=\"danger blank\"\n (click)=\"clear()\"\n [disabled]=\"disabled\"\n [tabIndex]=\"-1\"\n ></ax-button>\n <ng-content select=\"[end]\"> </ng-content>\n </div>\n</div>\n<!-- [textMask]=\"{mask: mask , showMask:showMask , guid: maskGuid , keepCharPositions: maskKeepCharPositions}\" -->\n<!-- <input #input id=\"timePickerValue\" [textMask]=\"timeType\" type=\"text\" [(ngModel)]=\"value\" (keypress)='handleKeyPress($event)'\n (keyup)=\"handleKeyUp($event)\" (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick($event)\"> -->\n" }]
|
14623
14623
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { onValueChanged: [{
|
14624
14624
|
type: Output
|
14625
14625
|
}], timeType: [{
|