@datarailsshared/datarailsshared 1.3.25 → 1.3.26
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/bundles/datarailsshared-datarailsshared.umd.js +16 -4
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.3.26.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-inputs/dr-date-picker/dr-date-picker.component.js +17 -5
- package/esm2015/lib/dr-inputs/dr-input/dr-input.component.js +2 -1
- package/esm2015/lib/models/datePicker.js +1 -1
- package/fesm2015/datarailsshared-datarailsshared.js +16 -4
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-inputs/dr-input/dr-input.component.d.ts +1 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.3.25.tgz +0 -0
|
@@ -1636,6 +1636,7 @@
|
|
|
1636
1636
|
readonly: [{ type: i0.Input }],
|
|
1637
1637
|
clearable: [{ type: i0.Input }],
|
|
1638
1638
|
min: [{ type: i0.Input }],
|
|
1639
|
+
max: [{ type: i0.Input }],
|
|
1639
1640
|
step: [{ type: i0.Input }],
|
|
1640
1641
|
blur: [{ type: i0.Output }],
|
|
1641
1642
|
elementClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
@@ -2356,6 +2357,12 @@
|
|
|
2356
2357
|
Object.defineProperty(DrDatePickerComponent.prototype, "format", {
|
|
2357
2358
|
set: function (value) {
|
|
2358
2359
|
if (value) {
|
|
2360
|
+
if (value.includes('d')) {
|
|
2361
|
+
value = value.replace(/d/g, 'D');
|
|
2362
|
+
}
|
|
2363
|
+
else if (value.includes('D')) {
|
|
2364
|
+
value = value.replace(/D/g, 'd');
|
|
2365
|
+
}
|
|
2359
2366
|
this._format = value;
|
|
2360
2367
|
this.cdr.markForCheck();
|
|
2361
2368
|
}
|
|
@@ -2404,7 +2411,12 @@
|
|
|
2404
2411
|
};
|
|
2405
2412
|
DrDatePickerComponent.prototype.writeValue = function (value) {
|
|
2406
2413
|
if (value !== this.innerValue) {
|
|
2407
|
-
|
|
2414
|
+
if (value && typeof value === 'number') {
|
|
2415
|
+
this.innerValue = momentImported__namespace.unix(value);
|
|
2416
|
+
}
|
|
2417
|
+
else {
|
|
2418
|
+
this.innerValue = value;
|
|
2419
|
+
}
|
|
2408
2420
|
this.cdr.markForCheck();
|
|
2409
2421
|
}
|
|
2410
2422
|
};
|
|
@@ -2426,13 +2438,13 @@
|
|
|
2426
2438
|
}());
|
|
2427
2439
|
DrDatePickerComponent.decorators = [
|
|
2428
2440
|
{ type: i0.Component, args: [{
|
|
2429
|
-
selector: '
|
|
2430
|
-
template: "
|
|
2441
|
+
selector: 'dr-date-picker',
|
|
2442
|
+
template: "<i class=\"dr-icon-schedule\"></i>\r\n<input [(ngModel)]=\"value\"\r\n (click)=\"datePicker.open()\"\r\n [matDatepicker]=\"datePicker\"\r\n [placeholder]=\"placeholder\"\r\n [drDatePickerFormat]=\"_format\"\r\n [readonly]=\"readonly\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n/>\r\n <mat-datepicker #datePicker\r\n startView=\"{{_lastView}}\"\r\n (yearSelected)=\"chosenYearHandler($event, datePicker)\"\r\n (monthSelected)=\"chosenMonthHandler($event, datePicker)\">\r\n </mat-datepicker>\r\n\r\n",
|
|
2431
2443
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2432
2444
|
providers: [
|
|
2433
2445
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerComponent, multi: true }
|
|
2434
2446
|
],
|
|
2435
|
-
styles: ["
|
|
2447
|
+
styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:\"Poppins\",sans-serif;background:#fff;border:1px solid #C3C4CE;border-radius:6px;color:#85889c;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#85889c}:host:focus-within{border-color:#21b8f1!important;color:#151b3f}:host.disabled{pointer-events:none;border:none;color:#85889c;background:#E5E6EA}:host.ng-valid.ng-dirty{border-color:#03a678}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#de2833!important}:host.ng-untouched.ng-valid{border-color:#c3c4ce}:host:after,:host:before{position:absolute;display:flex;border-color:#999 transparent transparent;color:#999}:host:after{content:\"\";height:0;width:0;border-style:solid;border-width:5px 5px 2.5px;right:11px;top:13px}:host i{position:absolute;color:#999;left:8px;top:3px}:host input{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important}:host input:disabled{border:none;color:#85889c;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}::ng-deep .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#F3F7FF}::ng-deep .mat-calendar-body-selected{background-color:#579bf2}::ng-deep .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-button-focus-overlay{background:#F3F7FF}::ng-deep .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#F3F7FF;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-controls .mat-calendar-period-button:hover{background:#F3F7FF;transition:background .2s cubic-bezier(.35,0,.25,1)}\n"]
|
|
2436
2448
|
},] }
|
|
2437
2449
|
];
|
|
2438
2450
|
DrDatePickerComponent.ctorParameters = function () { return [
|