@schukai/monster 3.114.2 → 3.114.4
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/CHANGELOG.md +19 -0
- package/package.json +1 -1
- package/source/components/form/login.mjs +1403 -1397
- package/source/components/form/password.mjs +2 -4
- package/source/components/form/toggle-switch.mjs +10 -10
@@ -90,9 +90,7 @@ class Password extends CustomControl {
|
|
90
90
|
* @return {string}
|
91
91
|
*/
|
92
92
|
get value() {
|
93
|
-
|
94
|
-
this.value = obj.value;
|
95
|
-
return obj.value;
|
93
|
+
return this[inputElementSymbol].value;
|
96
94
|
}
|
97
95
|
|
98
96
|
/**
|
@@ -101,6 +99,7 @@ class Password extends CustomControl {
|
|
101
99
|
*/
|
102
100
|
set value(value) {
|
103
101
|
this.setOption("value", value);
|
102
|
+
this[inputElementSymbol].value=value;
|
104
103
|
this.setFormValue(value);
|
105
104
|
}
|
106
105
|
|
@@ -262,7 +261,6 @@ function getTemplate() {
|
|
262
261
|
inputmode path:inputmode,
|
263
262
|
aria-required path:aria.required,
|
264
263
|
aria-placeholder path:aria.placeholder"
|
265
|
-
data-monster-bind="path:value"
|
266
264
|
>
|
267
265
|
|
268
266
|
<svg viewBox="0 0 16 16" data-monster-role="visible-icon" class="hidden">
|
@@ -74,18 +74,18 @@ class ToggleSwitch extends CustomControl {
|
|
74
74
|
* The individual configuration values can be found in the table.
|
75
75
|
*
|
76
76
|
* @property {string} value=current value of the element
|
77
|
-
* @property {Boolean} disabled
|
77
|
+
* @property {Boolean} disabled Disabled state
|
78
78
|
* @property {Object} classes
|
79
|
-
* @property {string} classes.on
|
80
|
-
* @property {string} classes.off
|
79
|
+
* @property {string} classes.on specifies the class for the on state.
|
80
|
+
* @property {string} classes.off specifies the class for the off state.
|
81
81
|
* @property {Object} values
|
82
|
-
* @property {string} values.off
|
82
|
+
* @property {string} values.off specifies the value of the element if it is not selected
|
83
83
|
* @property {Object} labels
|
84
|
-
* @property {string} labels.on
|
85
|
-
* @property {string} labels.off
|
84
|
+
* @property {string} labels.on specifies the label for the on state.
|
85
|
+
* @property {string} labels.off specifies the label for the off state.
|
86
86
|
* @property {string} actions
|
87
|
-
* @property {string} actions.on
|
88
|
-
* @property {string} actions.off
|
87
|
+
* @property {string} actions.on specifies the action for the on state.
|
88
|
+
* @property {string} actions.off specifies the action for the off state.
|
89
89
|
* @property {Object} templates
|
90
90
|
* @property {string} templates.main the main template used by the control.
|
91
91
|
*/
|
@@ -104,8 +104,8 @@ class ToggleSwitch extends CustomControl {
|
|
104
104
|
off: "off",
|
105
105
|
},
|
106
106
|
labels: {
|
107
|
-
toggleSwitchOn: "
|
108
|
-
toggleSwitchOff: "
|
107
|
+
toggleSwitchOn: "✔��",
|
108
|
+
toggleSwitchOff: "×",
|
109
109
|
},
|
110
110
|
templates: {
|
111
111
|
main: getTemplate(),
|