@schukai/monster 3.114.3 → 3.114.5
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
CHANGED
@@ -2,6 +2,25 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## [3.114.5] - 2025-03-25
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- update password value to input event [#302](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/302)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [3.114.4] - 2025-03-25
|
14
|
+
|
15
|
+
### Bug Fixes
|
16
|
+
|
17
|
+
- update value direct from control [#302](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/302)
|
18
|
+
### Changes
|
19
|
+
|
20
|
+
- update doc
|
21
|
+
|
22
|
+
|
23
|
+
|
5
24
|
## [3.114.3] - 2025-03-25
|
6
25
|
|
7
26
|
### Bug Fixes
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.114.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.114.5"}
|
@@ -487,7 +487,7 @@ function getTranslations() {
|
|
487
487
|
|
488
488
|
case "hi":
|
489
489
|
return {
|
490
|
-
username: "
|
490
|
+
username: "उपयगकर नम य ई-मल",
|
491
491
|
password: "पसवर",
|
492
492
|
login: "लग इन कर",
|
493
493
|
forgotPasswordLink: "पसवर भल गए?",
|
@@ -1082,6 +1082,7 @@ function initEventHandler() {
|
|
1082
1082
|
const username = this.shadowRoot.querySelector(
|
1083
1083
|
"input[name='username']",
|
1084
1084
|
).value;
|
1085
|
+
|
1085
1086
|
const password = this.shadowRoot.querySelector("monster-password").value;
|
1086
1087
|
|
1087
1088
|
let missingBits = 0;
|
@@ -20,10 +20,6 @@ import {
|
|
20
20
|
import { PasswordStyleSheet } from "./stylesheet/password.mjs";
|
21
21
|
import { fireCustomEvent } from "../../dom/events.mjs";
|
22
22
|
import "./input-group.mjs";
|
23
|
-
import { addErrorAttribute } from "../../dom/error.mjs";
|
24
|
-
import { STATE_OFF, STATE_ON } from "./toggle-switch.mjs";
|
25
|
-
import { Observer } from "../../types/observer.mjs";
|
26
|
-
import { internalSymbol } from "../../constants.mjs";
|
27
23
|
|
28
24
|
export { Password };
|
29
25
|
|
@@ -90,9 +86,7 @@ class Password extends CustomControl {
|
|
90
86
|
* @return {string}
|
91
87
|
*/
|
92
88
|
get value() {
|
93
|
-
|
94
|
-
this.value = obj.value;
|
95
|
-
return obj.value;
|
89
|
+
return this.getOption("value");
|
96
90
|
}
|
97
91
|
|
98
92
|
/**
|
@@ -101,6 +95,7 @@ class Password extends CustomControl {
|
|
101
95
|
*/
|
102
96
|
set value(value) {
|
103
97
|
this.setOption("value", value);
|
98
|
+
this[inputElementSymbol].value=value;
|
104
99
|
this.setFormValue(value);
|
105
100
|
}
|
106
101
|
|
@@ -205,6 +200,11 @@ function initEventHandler() {
|
|
205
200
|
});
|
206
201
|
});
|
207
202
|
|
203
|
+
this[inputElementSymbol].addEventListener("input", function (event) {
|
204
|
+
self.setFormValue(self.value);
|
205
|
+
self.setOption("value", this.value);
|
206
|
+
})
|
207
|
+
|
208
208
|
return this;
|
209
209
|
}
|
210
210
|
|
@@ -262,7 +262,6 @@ function getTemplate() {
|
|
262
262
|
inputmode path:inputmode,
|
263
263
|
aria-required path:aria.required,
|
264
264
|
aria-placeholder path:aria.placeholder"
|
265
|
-
data-monster-bind="path:value"
|
266
265
|
>
|
267
266
|
|
268
267
|
<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(),
|