@datarailsshared/datarailsshared 1.3.8 → 1.3.9

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.
@@ -1270,6 +1270,10 @@
1270
1270
  this.elementRef = elementRef;
1271
1271
  this.renderer = renderer;
1272
1272
  this.cdr = cdr;
1273
+ this.type = 'string';
1274
+ this.placeholder = '';
1275
+ this.readonly = false;
1276
+ this.clearable = false;
1273
1277
  this.value = null;
1274
1278
  this._disabled = null;
1275
1279
  this._elementClass = [];
@@ -1280,17 +1284,11 @@
1280
1284
  checkFocusOut: function (target, element) { return true; },
1281
1285
  text: 'Save'
1282
1286
  };
1283
- this.onChange = function () { };
1284
- this.onTouched = function () { };
1285
- this.type = 'string';
1286
- this.placeholder = '';
1287
- this.readonly = false;
1288
- this.clearable = false;
1289
- this.min = null;
1290
- this.max = null;
1291
1287
  this.searchHandler = new i0.EventEmitter();
1292
1288
  this.buttonHandler = new i0.EventEmitter();
1293
1289
  this.tabindex = -1;
1290
+ this.onChange = function () { };
1291
+ this.onTouched = function () { };
1294
1292
  }
1295
1293
  Object.defineProperty(DrInputComponent.prototype, "disabled", {
1296
1294
  set: function (value) {
@@ -1299,7 +1297,6 @@
1299
1297
  enumerable: false,
1300
1298
  configurable: true
1301
1299
  });
1302
- ;
1303
1300
  Object.defineProperty(DrInputComponent.prototype, "buttonOptions", {
1304
1301
  set: function (value) {
1305
1302
  var _this = this;
@@ -1328,7 +1325,6 @@
1328
1325
  enumerable: false,
1329
1326
  configurable: true
1330
1327
  });
1331
- ;
1332
1328
  Object.defineProperty(DrInputComponent.prototype, "elementClass", {
1333
1329
  get: function () {
1334
1330
  return this._elementClass.join(' ');
@@ -1396,7 +1392,7 @@
1396
1392
  DrInputComponent.decorators = [
1397
1393
  { type: i0.Component, args: [{
1398
1394
  selector: 'dr-input',
1399
- template: "<ng-content select=\"[prefixIcon]\"></ng-content>\r\n<input [(ngModel)]=\"value\"\r\n (ngModelChange)=\"updateChanges()\"\r\n (blur)=\"onTouched()\"\r\n [disabled]=\"_disabled\"\r\n [readonly]=\"readonly\"\r\n [type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n [matDatepicker]=\"matDatePicker\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n>\r\n<span class=\"clear-icon\" (click)=\"writeValue(null)\"></span>\r\n<span *ngIf=\"type === 'search'\" class=\"search-icon\" (click)=\"onSearchClicked($event)\"></span>\r\n<ng-content select=\"[suffixIcon]\"></ng-content>\r\n<button *ngIf=\"_buttonOptions.show || (_buttonOptions.showOnFocus && _buttonOptions.focusSet)\"\r\n (click)=\"onButtonClicked($event)\">\r\n {{_buttonOptions.text}}\r\n</button>\r\n",
1395
+ template: "<ng-content select=\"[prefixIcon]\"></ng-content>\r\n<input [(ngModel)]=\"value\"\r\n (ngModelChange)=\"updateChanges()\"\r\n (blur)=\"onTouched()\"\r\n [disabled]=\"_disabled\"\r\n [readonly]=\"readonly\"\r\n [type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n [name]=\"name\"\r\n>\r\n<span class=\"clear-icon\" (click)=\"writeValue(null)\"></span>\r\n<span *ngIf=\"type === 'search'\" class=\"search-icon\" (click)=\"onSearchClicked($event)\"></span>\r\n<ng-content select=\"[suffixIcon]\"></ng-content>\r\n<button *ngIf=\"_buttonOptions.show || (_buttonOptions.showOnFocus && _buttonOptions.focusSet)\"\r\n (click)=\"onButtonClicked($event)\">\r\n {{_buttonOptions.text}}\r\n</button>\r\n",
1400
1396
  providers: [{
1401
1397
  provide: forms.NG_VALUE_ACCESSOR,
1402
1398
  useExisting: i0.forwardRef(function () { return DrInputComponent; }),
@@ -1412,21 +1408,19 @@
1412
1408
  { type: i0.ChangeDetectorRef }
1413
1409
  ]; };
1414
1410
  DrInputComponent.propDecorators = {
1411
+ disabled: [{ type: i0.Input }],
1412
+ buttonOptions: [{ type: i0.Input }],
1415
1413
  type: [{ type: i0.Input }],
1414
+ name: [{ type: i0.Input }],
1416
1415
  placeholder: [{ type: i0.Input }],
1417
1416
  readonly: [{ type: i0.Input }],
1418
1417
  clearable: [{ type: i0.Input }],
1419
- min: [{ type: i0.Input }],
1420
- max: [{ type: i0.Input }],
1421
- matDatePicker: [{ type: i0.Input }],
1422
- disabled: [{ type: i0.Input }],
1423
- buttonOptions: [{ type: i0.Input }],
1418
+ elementClass: [{ type: i0.HostBinding, args: ['class',] }],
1424
1419
  searchHandler: [{ type: i0.Output }],
1425
1420
  buttonHandler: [{ type: i0.Output }],
1426
1421
  prefixIcon: [{ type: i0.ContentChild, args: ['prefix', { static: false },] }],
1427
1422
  suffixIcon: [{ type: i0.ContentChild, args: ['suffix', { static: false },] }],
1428
- tabindex: [{ type: i0.HostBinding, args: ['tabindex',] }],
1429
- elementClass: [{ type: i0.HostBinding, args: ['class',] }]
1423
+ tabindex: [{ type: i0.HostBinding, args: ['tabindex',] }]
1430
1424
  };
1431
1425
 
1432
1426
  var DrSelectComponent = /** @class */ (function () {
@@ -1807,7 +1801,7 @@
1807
1801
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }
1808
1802
  ],
1809
1803
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1810
- styles: [":host{display:flex;justify-content:space-between;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:rgba(143,155,179,.24)!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#579bf2}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#aeb5bb}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:1.8px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}\n"]
1804
+ styles: [":host{display:flex;justify-content:space-between;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:rgba(143,155,179,.24)!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#579bf2}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#aeb5bb;line-height:1}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}\n"]
1811
1805
  },] }
1812
1806
  ];
1813
1807
  DrToggleComponent.ctorParameters = function () { return [
@@ -2113,7 +2107,7 @@
2113
2107
  DrDatePickerComponent.decorators = [
2114
2108
  { type: i0.Component, args: [{
2115
2109
  selector: 'new-dr-date-picker',
2116
- template: " <dr-input\r\n (click)=\"datePicker.open()\"\r\n [(ngModel)]=\"value\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [placeholder]=\"placeholder\"\r\n [matDatePicker]=\"datePicker\"\r\n [drDatePickerFormat]=\"_format\"\r\n [readonly]=\"readonly\"\r\n ></dr-input>\r\n <mat-datepicker\r\n #datePicker startView=\"{{_lastView}}\"\r\n (yearSelected)=\"chosenYearHandler($event, datePicker)\"\r\n (monthSelected)=\"chosenMonthHandler($event, datePicker)\">\r\n </mat-datepicker>\r\n\r\n",
2110
+ template: " <dr-input\r\n (click)=\"datePicker.open()\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder\"\r\n [drDatePickerFormat]=\"_format\"\r\n [readonly]=\"readonly\"\r\n ></dr-input>\r\n <mat-datepicker\r\n #datePicker startView=\"{{_lastView}}\"\r\n (yearSelected)=\"chosenYearHandler($event, datePicker)\"\r\n (monthSelected)=\"chosenMonthHandler($event, datePicker)\">\r\n </mat-datepicker>\r\n\r\n",
2117
2111
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
2118
2112
  providers: [
2119
2113
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerComponent, multi: true }