simp-select 1.0.17 → 1.0.19
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/README.md +13 -9
- package/dist/simpleSelect.js +1 -1
- package/dist/types/simpleSelect.types.d.ts +1 -1
- package/docs/index.html +1367 -0
- package/docs/style.css +29 -0
- package/package.json +1 -1
- package/src/const/simpleSelection.const.ts +1 -1
- package/src/simpleSelectItemDOM.ts +7 -1
- package/src/style.css +1 -0
- package/src/types/simpleSelect.types.ts +1 -1
package/docs/style.css
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
.container {
|
2
|
+
max-width: 800px;
|
3
|
+
margin: 50px auto;
|
4
|
+
}
|
5
|
+
.items {
|
6
|
+
display: flex;
|
7
|
+
flex-wrap: wrap;
|
8
|
+
justify-content: center;
|
9
|
+
gap: 10px;
|
10
|
+
margin: 20px auto;
|
11
|
+
}
|
12
|
+
.item {
|
13
|
+
display: block;
|
14
|
+
width: 350px;
|
15
|
+
}
|
16
|
+
.item_full {
|
17
|
+
display: block;
|
18
|
+
width: 700px;
|
19
|
+
}
|
20
|
+
|
21
|
+
.code {
|
22
|
+
padding: 10px;
|
23
|
+
background-color: #c7c7c7;
|
24
|
+
}
|
25
|
+
|
26
|
+
.description {
|
27
|
+
font-size: 18px;
|
28
|
+
font-weight: bold;
|
29
|
+
}
|
package/package.json
CHANGED
@@ -215,8 +215,14 @@ export class SimpleSelectItemDOM {
|
|
215
215
|
const cls = getClass('float', true);
|
216
216
|
if (val) {
|
217
217
|
this.elemWrap.classList.add(cls);
|
218
|
+
if (!document.body.classList.contains(this.bodyOpenClass) && this.state.getState('isOpen')) {
|
219
|
+
document.body.classList.add(this.bodyOpenClass);
|
220
|
+
}
|
218
221
|
} else {
|
219
222
|
this.elemWrap.classList.remove(cls);
|
223
|
+
if (document.body.classList.contains(this.bodyOpenClass)) {
|
224
|
+
document.body.classList.remove(this.bodyOpenClass);
|
225
|
+
}
|
220
226
|
}
|
221
227
|
});
|
222
228
|
}
|
@@ -391,7 +397,7 @@ export class SimpleSelectItemDOM {
|
|
391
397
|
this.confirmWrap.appendChild(this.confirmNo);
|
392
398
|
|
393
399
|
this.confirmOk.innerHTML = this.options.locale.ok;
|
394
|
-
this.confirmNo.innerHTML = this.options.locale.
|
400
|
+
this.confirmNo.innerHTML = this.options.locale.cancel;
|
395
401
|
|
396
402
|
this.confirmOk.className = `${classesItem} ${getClass('ok', true, classesItem)}`;
|
397
403
|
this.confirmNo.className = `${classesItem} ${getClass('no', true, classesItem)}`;
|
package/src/style.css
CHANGED