@tylertech/forge 3.1.0 → 3.1.1
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/dist/lib.js +1 -1
- package/dist/lib.js.map +2 -2
- package/esm/checkbox/checkbox-core.js +3 -1
- package/esm/date-picker/date-picker-adapter.js +2 -0
- package/esm/date-range-picker/date-range-picker-adapter.js +2 -0
- package/esm/radio/radio/radio-core.js +3 -1
- package/esm/switch/switch-core.js +3 -1
- package/package.json +1 -1
|
@@ -99,7 +99,9 @@ export class CheckboxCore {
|
|
|
99
99
|
if (this._value !== value) {
|
|
100
100
|
this._value = value;
|
|
101
101
|
this._adapter.syncValue(this._submittedValue, this._formState);
|
|
102
|
-
this.
|
|
102
|
+
if (typeof this._value === 'string' || this._value == null) {
|
|
103
|
+
this._adapter.setHostAttribute(CHECKBOX_CONSTANTS.attributes.VALUE, this._value);
|
|
104
|
+
}
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
get dense() {
|
|
@@ -100,6 +100,8 @@ export class DatePickerAdapter extends BaseDatePickerAdapter {
|
|
|
100
100
|
this._toggleElement.setAttribute('aria-disabled', value.toString());
|
|
101
101
|
if (this._toggleElement.hasOwnProperty('disabled')) {
|
|
102
102
|
this._toggleElement.disabled = value;
|
|
103
|
+
// The toggle element should never be in the tab order
|
|
104
|
+
this._toggleElement.tabIndex = -1;
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
}
|
|
@@ -162,6 +162,8 @@ export class DateRangePickerAdapter extends BaseDatePickerAdapter {
|
|
|
162
162
|
this._toggleElement.setAttribute('aria-disabled', isDisabled.toString());
|
|
163
163
|
if (this._toggleElement.hasOwnProperty('disabled')) {
|
|
164
164
|
this._toggleElement.disabled = isDisabled;
|
|
165
|
+
// The toggle element should never be in the tab order
|
|
166
|
+
this._toggleElement.tabIndex = -1;
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
169
|
}
|
|
@@ -138,7 +138,9 @@ export class RadioCore {
|
|
|
138
138
|
set value(value) {
|
|
139
139
|
if (this._value !== value) {
|
|
140
140
|
this._value = value;
|
|
141
|
-
this.
|
|
141
|
+
if (typeof this._value === 'string' || this._value == null) {
|
|
142
|
+
this._adapter.setHostAttribute(RADIO_CONSTANTS.attributes.VALUE, this._value);
|
|
143
|
+
}
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
get disabled() {
|
|
@@ -95,7 +95,9 @@ export class SwitchCore {
|
|
|
95
95
|
if (this._value !== value) {
|
|
96
96
|
this._value = value;
|
|
97
97
|
this._adapter.syncValue(this._submittedValue);
|
|
98
|
-
this.
|
|
98
|
+
if (typeof this._value === 'string' || this._value == null) {
|
|
99
|
+
this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.VALUE, true, this._value);
|
|
100
|
+
}
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
get dense() {
|