@datarailsshared/datarailsshared 1.4.84 → 1.4.86

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.
@@ -1467,7 +1467,7 @@
1467
1467
  CheckboxComponent.decorators = [
1468
1468
  { type: i0.Component, args: [{
1469
1469
  selector: 'dr-checkbox',
1470
- template: "<label>\n <input type=\"checkbox\"\n [checked]=\"checkedStatus\"\n [disabled]=\"disabled\"\n (change)=\"setValue($event)\"\n (click)=\"$event.stopPropagation()\">\n <span [class]=\"icon\" [class.indeterminate]=\"indeterminate\">\n <ng-content></ng-content>\n </span>\n</label>\n",
1470
+ template: "<label>\n <input type=\"checkbox\"\n [attr.data-test]=\"checkedStatus ? 'checked' : 'unchecked'\"\n [checked]=\"checkedStatus\"\n [disabled]=\"disabled\"\n (change)=\"setValue($event)\"\n (click)=\"$event.stopPropagation()\">\n <span [class]=\"icon\" [class.indeterminate]=\"indeterminate\">\n <ng-content></ng-content>\n </span>\n</label>\n",
1471
1471
  providers: [
1472
1472
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }
1473
1473
  ],
@@ -2199,7 +2199,7 @@
2199
2199
  DrToggleComponent.decorators = [
2200
2200
  { type: i0.Component, args: [{
2201
2201
  selector: 'dr-toggle',
2202
- template: "<span class=\"toggle-title mr-3\" *ngIf=\"toggleTitle && !toggleTitleRight\">{{toggleTitle}}</span>\n<label class=\"toggle-container\" [class.success]=\"successType\" [class.disabled]=\"_disabled\">\n <input type=\"checkbox\"\n [checked]=\"checkedStatus\"\n [disabled]=\"_disabled\"\n (click)=\"setValue()\">\n <span class=\"toggle-body\">\n <i></i>\n </span>\n <ng-content></ng-content>\n</label>\n<span class=\"toggle-title ml-3\" *ngIf=\"toggleTitle && toggleTitleRight\">{{toggleTitle}}</span>\n",
2202
+ template: "<span class=\"toggle-title mr-3\" *ngIf=\"toggleTitle && !toggleTitleRight\">{{toggleTitle}}</span>\n<label class=\"toggle-container\" [class.success]=\"successType\" [class.disabled]=\"_disabled\">\n <input type=\"checkbox\"\n [attr.data-test]=\"checkedStatus ? 'toggle-on' : 'toggle-off'\"\n [checked]=\"checkedStatus\"\n [disabled]=\"_disabled\"\n (click)=\"setValue()\">\n <span class=\"toggle-body\">\n <i></i>\n </span>\n <ng-content></ng-content>\n</label>\n<span class=\"toggle-title ml-3\" *ngIf=\"toggleTitle && toggleTitleRight\">{{toggleTitle}}</span>\n",
2203
2203
  providers: [
2204
2204
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }
2205
2205
  ],