capibara 1.3.55 → 1.3.57
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/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/scss/components/_input_nav.scss +36 -0
- package/src/util/tableElements.js +16 -11
package/package.json
CHANGED
|
@@ -31,6 +31,42 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.time.time-sm {
|
|
35
|
+
.symbol {
|
|
36
|
+
width: 10px;
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
}
|
|
39
|
+
input {
|
|
40
|
+
width: 40px;
|
|
41
|
+
font-size: 1rem;
|
|
42
|
+
padding: 3px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.input-section.input-section.time-sm {
|
|
47
|
+
.text-subtitle {
|
|
48
|
+
font-size: 0.8em;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.time.time-sm {
|
|
53
|
+
.symbol {
|
|
54
|
+
width: 10px;
|
|
55
|
+
font-size: 1rem;
|
|
56
|
+
}
|
|
57
|
+
input {
|
|
58
|
+
width: 40px;
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
padding: 3px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.input-section.input-section.time-sm {
|
|
65
|
+
.text-subtitle {
|
|
66
|
+
font-size: 0.8em;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
34
70
|
//big input
|
|
35
71
|
.time {
|
|
36
72
|
border-radius: 6px;
|
|
@@ -1247,13 +1247,13 @@ export default {
|
|
|
1247
1247
|
if (v.round && !isNaN(value)) {
|
|
1248
1248
|
value = utils.round(value, v.round);
|
|
1249
1249
|
}
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1250
|
+
if (v.input) {
|
|
1251
|
+
switch (v.input) {
|
|
1252
|
+
case "hour":
|
|
1253
|
+
value = value.split(":");
|
|
1254
|
+
let hhValue = value[0];
|
|
1255
|
+
let mmValue = value[1];
|
|
1256
|
+
initialNavList += `
|
|
1257
1257
|
<div class="item-col has-input">
|
|
1258
1258
|
<div class="hour-input">
|
|
1259
1259
|
<input type="number"
|
|
@@ -1591,8 +1591,10 @@ export default {
|
|
|
1591
1591
|
i.addEventListener("mouseover", (e) => {
|
|
1592
1592
|
let pos = utils.eventToPositionNavLeft(config, e, $elem);
|
|
1593
1593
|
let itemId = i.getAttribute("item-id");
|
|
1594
|
-
let item = utils.getItemById(config, itemId);
|
|
1595
1594
|
let typeNode = i.getAttribute("type-node");
|
|
1595
|
+
let $container = i.closest(".nav-item-container");
|
|
1596
|
+
let isParent = $container && $container.classList.contains("parent");
|
|
1597
|
+
let item = utils.getItemById(config, itemId, isParent ? "parent" : "child");
|
|
1596
1598
|
i.dispatchEvent(
|
|
1597
1599
|
new CustomEvent("overNavItem", {
|
|
1598
1600
|
bubbles: true,
|
|
@@ -1696,7 +1698,9 @@ export default {
|
|
|
1696
1698
|
let key = i.getAttribute("input-key");
|
|
1697
1699
|
let itemId = i.getAttribute("item-id");
|
|
1698
1700
|
let typeNode = i.getAttribute("type-node");
|
|
1699
|
-
let
|
|
1701
|
+
let $container = i.closest(".nav-item-container");
|
|
1702
|
+
let isParent = $container && $container.classList.contains("parent");
|
|
1703
|
+
let item = utils.getItemById(config, itemId, isParent ? "parent" : "child");
|
|
1700
1704
|
let value = i.value;
|
|
1701
1705
|
if (inputType == "time") {
|
|
1702
1706
|
let hh_input = i.parentElement.querySelector("input.hh").value;
|
|
@@ -3245,6 +3249,7 @@ export default {
|
|
|
3245
3249
|
r = this.createInputButtonsGroup(props, dataDay);
|
|
3246
3250
|
break;
|
|
3247
3251
|
case "time":
|
|
3252
|
+
case "time-sm":
|
|
3248
3253
|
r = this.createInputTime(props, dataDay);
|
|
3249
3254
|
break;
|
|
3250
3255
|
case "input-text":
|
|
@@ -3283,12 +3288,12 @@ export default {
|
|
|
3283
3288
|
let $elem = dom.createElementFromHTML(`
|
|
3284
3289
|
<div class="input-section ${
|
|
3285
3290
|
props.isHidden ? "hide" : ""
|
|
3286
|
-
} " input-key="${props.key || ""}">
|
|
3291
|
+
} ${props.type === 'time-sm' ? 'time-sm' : ''}" input-key="${props.key || ""}">
|
|
3287
3292
|
<span class="text-subtitle d-block">
|
|
3288
3293
|
${props.label || ""}
|
|
3289
3294
|
</span>
|
|
3290
3295
|
<div class="d-flex">
|
|
3291
|
-
<div class="time">
|
|
3296
|
+
<div class="time ${props.type === 'time-sm' ? 'time-sm' : ''}">
|
|
3292
3297
|
<input type="number"
|
|
3293
3298
|
class="hour"
|
|
3294
3299
|
id="test"
|