@eturnity/eturnity_reusable_components 8.26.11-autiFill.4 → 8.26.11-autiFill.7
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/main.es12.js +2 -2
- package/dist/main.es13.js +5 -5
- package/dist/main.es14.js +2 -2
- package/dist/main.es15.js +1 -1
- package/dist/main.es16.js +62 -22
- package/dist/main.es17.js +174 -1031
- package/dist/main.es18.js +21 -224
- package/dist/main.es19.js +1046 -89
- package/dist/main.es20.js +195 -70
- package/dist/main.es21.js +77 -172
- package/dist/main.es22.js +100 -2
- package/dist/main.es23.js +158 -505
- package/dist/main.es24.js +2 -199
- package/dist/main.es25.js +536 -59
- package/dist/main.es26.js +2 -2
- package/dist/main.es5.js +3 -3
- package/dist/main.es6.js +4 -4
- package/package.json +1 -1
- package/src/components/accordion/index.vue +0 -2
- package/src/components/inputs/checkbox/index.vue +11 -0
- package/src/components/statusIndicator/index.vue +7 -7
package/dist/main.es22.js
CHANGED
@@ -1,4 +1,102 @@
|
|
1
|
-
|
1
|
+
import styled from "./main.es7.js";
|
2
|
+
import RCCaret from "./main.es377.js";
|
3
|
+
import "./main.es3.js";
|
4
|
+
import _export_sfc from "./main.es11.js";
|
5
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, renderSlot, createTextVNode, withDirectives } from "./main.es6.js";
|
6
|
+
import { vShow } from "./main.es5.js";
|
7
|
+
import { normalizeClass } from "./main.es17.js";
|
8
|
+
const wrapperAttrs = {
|
9
|
+
width: String
|
10
|
+
};
|
11
|
+
const Wrapper = styled("div", wrapperAttrs)`
|
12
|
+
display: flex;
|
13
|
+
flex-direction: column;
|
14
|
+
|
15
|
+
width: ${({
|
16
|
+
width
|
17
|
+
}) => width};
|
18
|
+
position: relative;
|
19
|
+
border-bottom: 1px solid ${(props) => props.theme.semanticColors.grey[400]};
|
20
|
+
`;
|
21
|
+
const WrapperContent = styled("div")`
|
22
|
+
diplay: flex;
|
23
|
+
width: 100%;
|
24
|
+
`;
|
25
|
+
const WrapperHead = styled("div", wrapperAttrs)`
|
26
|
+
display: flex;
|
27
|
+
width: 100%;
|
28
|
+
align-content: space-between;
|
29
|
+
justify-content: space-between;
|
30
|
+
align-items: center;
|
31
|
+
cursor: pointer;
|
32
|
+
`;
|
33
|
+
const _sfc_main = {
|
34
|
+
name: "DropdownComponent",
|
35
|
+
components: {
|
36
|
+
WrapperHead,
|
37
|
+
WrapperContent,
|
38
|
+
Wrapper,
|
39
|
+
RCCaret
|
40
|
+
},
|
41
|
+
props: {
|
42
|
+
width: {
|
43
|
+
type: String,
|
44
|
+
required: false,
|
45
|
+
default: "100%"
|
46
|
+
},
|
47
|
+
openingMode: {
|
48
|
+
type: String,
|
49
|
+
required: false,
|
50
|
+
default: "click"
|
51
|
+
}
|
52
|
+
},
|
53
|
+
emits: ["on-open", "on-close"],
|
54
|
+
data() {
|
55
|
+
return {
|
56
|
+
isOpenByClick: false
|
57
|
+
};
|
58
|
+
},
|
59
|
+
methods: {
|
60
|
+
toggleOpenByClick() {
|
61
|
+
this.$emit(this.isOpenByClick ? "on-close" : "on-open");
|
62
|
+
this.isOpenByClick = !this.isOpenByClick;
|
63
|
+
},
|
64
|
+
close() {
|
65
|
+
this.isOpenByClick = false;
|
66
|
+
},
|
67
|
+
open() {
|
68
|
+
this.isOpenByClick = true;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
};
|
72
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
73
|
+
const _component_RCCaret = resolveComponent("RCCaret");
|
74
|
+
const _component_WrapperHead = resolveComponent("WrapperHead");
|
75
|
+
const _component_WrapperContent = resolveComponent("WrapperContent");
|
76
|
+
const _component_Wrapper = resolveComponent("Wrapper");
|
77
|
+
return openBlock(), createBlock(_component_Wrapper, {
|
78
|
+
ref: "accordeon",
|
79
|
+
width: $props.width
|
80
|
+
}, {
|
81
|
+
default: withCtx(() => [createVNode(_component_WrapperHead, {
|
82
|
+
onClick: $options.toggleOpenByClick
|
83
|
+
}, {
|
84
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger"), createTextVNode(), createVNode(_component_RCCaret, {
|
85
|
+
"is-down": $data.isOpenByClick
|
86
|
+
}, null, 8, ["is-down"])]),
|
87
|
+
_: 3
|
88
|
+
}, 8, ["onClick"]), createTextVNode(), withDirectives(createVNode(_component_WrapperContent, {
|
89
|
+
class: normalizeClass(["accordion-content", {
|
90
|
+
openAccordion: $data.isOpenByClick && $props.openingMode == "click"
|
91
|
+
}])
|
92
|
+
}, {
|
93
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "content")]),
|
94
|
+
_: 3
|
95
|
+
}, 8, ["class"]), [[vShow, $data.isOpenByClick]])]),
|
96
|
+
_: 3
|
97
|
+
}, 8, ["width"]);
|
98
|
+
}
|
99
|
+
const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
2
100
|
export {
|
3
|
-
|
101
|
+
Accordion as default
|
4
102
|
};
|