@esportsplus/ui 0.21.8 → 0.21.10
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.
|
@@ -16,18 +16,18 @@ const OMIT_MASK = [
|
|
|
16
16
|
'tooltip-content',
|
|
17
17
|
];
|
|
18
18
|
const OMIT_OPTION = ['content'];
|
|
19
|
-
let
|
|
19
|
+
let field = null;
|
|
20
20
|
function set(state, value) {
|
|
21
21
|
state.active = value;
|
|
22
22
|
if (state.active) {
|
|
23
23
|
root.onclick.push(() => state.active = false);
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
active = null;
|
|
24
|
+
if (field) {
|
|
25
|
+
field.active = false;
|
|
27
26
|
}
|
|
27
|
+
field = state;
|
|
28
28
|
}
|
|
29
|
-
else if (
|
|
30
|
-
|
|
29
|
+
else if (field === state) {
|
|
30
|
+
field = null;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
const select = function (attributes, content) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"glob": "^11.0.3",
|
|
16
16
|
"lightningcss": "^1.30.1",
|
|
17
17
|
"npm-run-all": "^4.1.5",
|
|
18
|
-
"sass": "^1.
|
|
18
|
+
"sass": "^1.91.0",
|
|
19
19
|
"vite": "^7.1.3"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"private": false,
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"type": "module",
|
|
51
|
-
"version": "0.21.
|
|
51
|
+
"version": "0.21.10",
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "run-s build:vite build:ts",
|
|
54
54
|
"build:ts": "tsc && tsc-alias",
|
|
@@ -17,6 +17,10 @@ const OMIT_TAG = ['field-mask-tag'];
|
|
|
17
17
|
function mask(attributes: A, modifier: string, state: { active: boolean }) {
|
|
18
18
|
let a = attributes['field-mask-tag'] || {};
|
|
19
19
|
|
|
20
|
+
if (a.checked) {
|
|
21
|
+
state.active = true;
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
return html`
|
|
21
25
|
<div
|
|
22
26
|
class='field-mask'
|
|
@@ -22,7 +22,7 @@ const OMIT_MASK = [
|
|
|
22
22
|
const OMIT_OPTION = ['content'];
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
let
|
|
25
|
+
let field: { active: boolean } | null = null;
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
function set(state: { active: boolean }, value: boolean) {
|
|
@@ -31,13 +31,14 @@ function set(state: { active: boolean }, value: boolean) {
|
|
|
31
31
|
if (state.active) {
|
|
32
32
|
root.onclick.push(() => state.active = false);
|
|
33
33
|
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
active = null;
|
|
34
|
+
if (field) {
|
|
35
|
+
field.active = false;
|
|
37
36
|
}
|
|
37
|
+
|
|
38
|
+
field = state;
|
|
38
39
|
}
|
|
39
|
-
else if (
|
|
40
|
-
|
|
40
|
+
else if (field === state) {
|
|
41
|
+
field = null;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|