@namelivia/vue-components 4.4.5 → 4.6.0
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.esm.js +1083 -939
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1111 -962
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Badge/Badge.vue +3 -7
- package/src/Buttons/DangerButton/DangerButton.vue +5 -13
- package/src/Buttons/RegularButton/RegularButton.vue +24 -28
- package/src/Buttons/ResetButton/ResetButton.vue +3 -7
- package/src/Buttons/SecondaryButton/SecondaryButton.vue +5 -13
- package/src/Buttons/SubmitButton/SubmitButton.vue +4 -12
- package/src/Card/Card.vue +13 -19
- package/src/Card/CardBody.vue +4 -9
- package/src/Card/CardImage.vue +17 -24
- package/src/CardGrid/CardGrid.vue +2 -5
- package/src/Container/Container.vue +2 -5
- package/src/Icons/CalendarIcon/CalendarIcon.cy.js +10 -0
- package/src/Icons/CalendarIcon/CalendarIcon.stories.js +24 -0
- package/src/Icons/CalendarIcon/CalendarIcon.vue +16 -0
- package/src/Icons/CreateIcon/CreateIcon.cy.js +10 -0
- package/src/Icons/CreateIcon/CreateIcon.stories.js +24 -0
- package/src/Icons/CreateIcon/CreateIcon.vue +16 -0
- package/src/Icons/DropIcon/DropIcon.cy.js +33 -0
- package/src/Icons/DropIcon/DropIcon.stories.js +24 -0
- package/src/Icons/DropIcon/DropIcon.vue +30 -0
- package/src/Icons/SaveIcon/SaveIcon.cy.js +10 -0
- package/src/Icons/SaveIcon/SaveIcon.stories.js +24 -0
- package/src/Icons/SaveIcon/SaveIcon.vue +16 -0
- package/src/Icons/SkullIcon/SkullIcon.cy.js +10 -0
- package/src/Icons/SkullIcon/SkullIcon.stories.js +24 -0
- package/src/Icons/SkullIcon/SkullIcon.vue +16 -0
- package/src/Inputs/CheckBoxInput/CheckBoxInput.vue +9 -27
- package/src/Inputs/ImageInput/ImageInput.vue +10 -30
- package/src/Inputs/NumberInput/NumberInput.vue +12 -37
- package/src/Inputs/ResizeImageUpload/ResizeImageUpload.vue +28 -50
- package/src/Inputs/Selector/Selector.vue +27 -52
- package/src/Inputs/TextInput/TextInput.vue +10 -31
- package/src/Loading/Loading.vue +3 -7
- package/src/Modal/Modal.vue +9 -16
- package/src/Navbar/MobileMenuButton.vue +5 -17
- package/src/Navbar/MobileNavigationLink.vue +9 -27
- package/src/Navbar/MobileNavigationLinks.vue +6 -19
- package/src/Navbar/Navbar.vue +22 -53
- package/src/Navbar/NavbarTitle.vue +7 -19
- package/src/Navbar/NavigationLink.vue +9 -27
- package/src/Navbar/NavigationLinks.vue +5 -15
- package/src/Navbar/RightContent.vue +9 -24
- package/src/Pagination/Pagination.vue +8 -14
- package/src/RangeView/RangeView.vue +3 -7
- package/src/SectionTitle/SectionTitle.vue +5 -9
- package/src/Spinner/Spinner.vue +2 -5
- package/src/StyledTable/StyledTable.vue +2 -5
- package/src/Temperature/Temperature.vue +11 -22
- package/src/index.js +5 -0
package/dist/index.esm.js
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock, openBlock, toDisplayString, createStaticVNode, ref, onMounted, createElementVNode, renderSlot, createCommentVNode, createVNode, withCtx, computed, normalizeClass, createBlock, Transition, Fragment, renderList, watch, withDirectives, vModelSelect } from 'vue';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const _hoisted_1$x = { class: "section-title" };
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var script$B = {
|
|
7
|
+
__name: 'SectionTitle',
|
|
5
8
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
9
|
+
text: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ''
|
|
10
12
|
}
|
|
11
|
-
}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
12
15
|
|
|
13
|
-
const _hoisted_1$s = { class: "section-title" };
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return (openBlock(), createElementBlock("h1", _hoisted_1$x, toDisplayString(__props.text), 1 /* TEXT */))
|
|
20
|
+
}
|
|
17
21
|
}
|
|
18
22
|
|
|
23
|
+
};
|
|
24
|
+
|
|
19
25
|
function styleInject(css, ref) {
|
|
20
26
|
if ( ref === void 0 ) ref = {};
|
|
21
27
|
var insertAt = ref.insertAt;
|
|
@@ -46,132 +52,140 @@ function styleInject(css, ref) {
|
|
|
46
52
|
var css_248z$w = "\n.section-title[data-v-0375af86] {\n text-align: center;\n font-size: var(--font-size-xlarge);\n line-height: 1.5;\n}\n";
|
|
47
53
|
styleInject(css_248z$w);
|
|
48
54
|
|
|
49
|
-
script$
|
|
50
|
-
script$
|
|
51
|
-
script$w.__file = "src/SectionTitle/SectionTitle.vue";
|
|
55
|
+
script$B.__scopeId = "data-v-0375af86";
|
|
56
|
+
script$B.__file = "src/SectionTitle/SectionTitle.vue";
|
|
52
57
|
|
|
53
|
-
var script$
|
|
54
|
-
|
|
58
|
+
var script$A = {
|
|
59
|
+
__name: 'Loading',
|
|
55
60
|
props: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
text: String,
|
|
62
|
+
},
|
|
63
|
+
setup(__props) {
|
|
64
|
+
|
|
65
|
+
|
|
59
66
|
|
|
60
|
-
|
|
67
|
+
return (_ctx, _cache) => {
|
|
61
68
|
return (openBlock(), createElementBlock("div", null, _cache[0] || (_cache[0] = [
|
|
62
69
|
createStaticVNode("<h1 class=\"loading-text\" data-v-7a9a3040>Loading...</h1><div class=\"loading-balls-container\" data-v-7a9a3040><div class=\"loading-ball blue\" data-v-7a9a3040></div><div class=\"loading-ball green\" data-v-7a9a3040></div><div class=\"loading-ball red\" data-v-7a9a3040></div></div>", 2)
|
|
63
70
|
])))
|
|
64
71
|
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
};
|
|
65
75
|
|
|
66
76
|
var css_248z$v = "\n.loading-text[data-v-7a9a3040] {\n text-align: center;\n font-size: var(--font-size-large);\n line-height: 1.75rem;\n}\n.loading-balls-container[data-v-7a9a3040] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n animation: bounce-7a9a3040 1.5s infinite ease-in-out;\n}\n.loading-ball[data-v-7a9a3040] {\n width: 2rem;\n height: 2rem;\n border-radius: var(--border-radius-round);\n}\n.loading-ball.blue[data-v-7a9a3040] {\n background-color: var(--color-loading-ball-blue);\n}\n.loading-ball.green[data-v-7a9a3040] {\n background-color: var(--color-loading-ball-green);\n}\n.loading-ball.red[data-v-7a9a3040] {\n background-color: var(--color-loading-ball-red);\n}\n@keyframes bounce-7a9a3040 {\n0%, 100% {\n transform: translateY(0);\n}\n50% {\n transform: translateY(-1rem);\n}\n}\n";
|
|
67
77
|
styleInject(css_248z$v);
|
|
68
78
|
|
|
69
|
-
script$
|
|
70
|
-
script$
|
|
71
|
-
script$v.__file = "src/Loading/Loading.vue";
|
|
79
|
+
script$A.__scopeId = "data-v-7a9a3040";
|
|
80
|
+
script$A.__file = "src/Loading/Loading.vue";
|
|
72
81
|
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
const _hoisted_1$w = ["src", "alt"];
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
var script$z = {
|
|
86
|
+
__name: 'CardImage',
|
|
75
87
|
props: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
data: function () {
|
|
80
|
-
return {
|
|
81
|
-
imageWidth: 0,
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
methods: {
|
|
85
|
-
calculateWidth() {
|
|
86
|
-
return this.$refs.image.clientWidth
|
|
87
|
-
},
|
|
88
|
-
},
|
|
88
|
+
src: String,
|
|
89
|
+
alt: String,
|
|
90
|
+
},
|
|
89
91
|
emits: ['width'],
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
setup(__props, { emit: __emit }) {
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
const emit = __emit;
|
|
97
|
+
const image = ref(null);
|
|
94
98
|
|
|
95
|
-
const
|
|
99
|
+
const calculateWidth = () => image.value.clientWidth;
|
|
96
100
|
|
|
97
|
-
|
|
101
|
+
onMounted(() => {
|
|
102
|
+
emit('width', calculateWidth());
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
return (_ctx, _cache) => {
|
|
98
106
|
return (openBlock(), createElementBlock("img", {
|
|
99
|
-
src:
|
|
100
|
-
alt:
|
|
101
|
-
|
|
102
|
-
|
|
107
|
+
src: __props.src,
|
|
108
|
+
alt: __props.alt,
|
|
109
|
+
ref_key: "image",
|
|
110
|
+
ref: image
|
|
111
|
+
}, null, 8 /* PROPS */, _hoisted_1$w))
|
|
112
|
+
}
|
|
103
113
|
}
|
|
104
114
|
|
|
115
|
+
};
|
|
116
|
+
|
|
105
117
|
var css_248z$u = "\nimg[data-v-5fa6a3f6] {\n width: 100%;\n}\n";
|
|
106
118
|
styleInject(css_248z$u);
|
|
107
119
|
|
|
108
|
-
script$
|
|
109
|
-
script$
|
|
110
|
-
script$u.__file = "src/Card/CardImage.vue";
|
|
111
|
-
|
|
112
|
-
var script$t = defineComponent({
|
|
113
|
-
name: "CardBody",
|
|
114
|
-
props: {
|
|
115
|
-
title: String,
|
|
116
|
-
},
|
|
117
|
-
});
|
|
120
|
+
script$z.__scopeId = "data-v-5fa6a3f6";
|
|
121
|
+
script$z.__file = "src/Card/CardImage.vue";
|
|
118
122
|
|
|
119
|
-
const _hoisted_1$
|
|
123
|
+
const _hoisted_1$v = { class: "card-body" };
|
|
120
124
|
const _hoisted_2$g = { class: "card-title" };
|
|
121
125
|
const _hoisted_3$a = { class: "card-text" };
|
|
122
126
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
|
|
128
|
+
var script$y = {
|
|
129
|
+
__name: 'CardBody',
|
|
130
|
+
props: {
|
|
131
|
+
title: String,
|
|
132
|
+
},
|
|
133
|
+
setup(__props) {
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
return (_ctx, _cache) => {
|
|
138
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
139
|
+
createElementVNode("div", _hoisted_2$g, toDisplayString(__props.title), 1 /* TEXT */),
|
|
126
140
|
createElementVNode("p", _hoisted_3$a, [
|
|
127
141
|
renderSlot(_ctx.$slots, "default")
|
|
128
142
|
])
|
|
129
143
|
]))
|
|
130
144
|
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
};
|
|
131
148
|
|
|
132
149
|
var css_248z$t = "\n.card-body[data-v-c140cd30] {\n padding: var(--card-body-padding);\n}\n.card-title[data-v-c140cd30] {\n font-weight: var(--font-weight-bold);\n font-size: var(--font-size-large);\n margin-bottom: var(--card-title-margin-bottom);\n}\n.card-text[data-v-c140cd30] {\n color: var(--color-card-text);\n font-size: var(--font-size-base);\n}\n";
|
|
133
150
|
styleInject(css_248z$t);
|
|
134
151
|
|
|
135
|
-
script$
|
|
136
|
-
script$
|
|
137
|
-
script$t.__file = "src/Card/CardBody.vue";
|
|
152
|
+
script$y.__scopeId = "data-v-c140cd30";
|
|
153
|
+
script$y.__file = "src/Card/CardBody.vue";
|
|
138
154
|
|
|
139
|
-
|
|
140
|
-
name: "Card",
|
|
141
|
-
props: {
|
|
142
|
-
image: String,
|
|
143
|
-
title: String,
|
|
144
|
-
dismissed: {
|
|
145
|
-
type: Boolean,
|
|
146
|
-
default: false,
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
components: {
|
|
150
|
-
CardImage: script$u,
|
|
151
|
-
CardBody: script$t,
|
|
152
|
-
},
|
|
153
|
-
emits: ['width']
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
const _hoisted_1$p = {
|
|
155
|
+
const _hoisted_1$u = {
|
|
157
156
|
key: 0,
|
|
158
157
|
class: "card-container"
|
|
159
158
|
};
|
|
160
159
|
const _hoisted_2$f = { class: "card" };
|
|
161
160
|
|
|
162
|
-
function render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
163
|
-
const _component_card_image = resolveComponent("card-image");
|
|
164
|
-
const _component_card_body = resolveComponent("card-body");
|
|
165
161
|
|
|
166
|
-
|
|
167
|
-
|
|
162
|
+
var script$x = {
|
|
163
|
+
__name: 'Card',
|
|
164
|
+
props: {
|
|
165
|
+
image: String,
|
|
166
|
+
title: String,
|
|
167
|
+
dismissed: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
default: false,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
emits: ['width'],
|
|
173
|
+
setup(__props) {
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
return (_ctx, _cache) => {
|
|
180
|
+
return (!__props.dismissed)
|
|
181
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
168
182
|
createElementVNode("div", _hoisted_2$f, [
|
|
169
|
-
createVNode(
|
|
170
|
-
src:
|
|
171
|
-
alt:
|
|
183
|
+
createVNode(script$z, {
|
|
184
|
+
src: __props.image,
|
|
185
|
+
alt: __props.title,
|
|
172
186
|
onWidth: _cache[0] || (_cache[0] = $event => (_ctx.$emit('width', $event)))
|
|
173
187
|
}, null, 8 /* PROPS */, ["src", "alt"]),
|
|
174
|
-
createVNode(
|
|
188
|
+
createVNode(script$y, { title: __props.title }, {
|
|
175
189
|
default: withCtx(() => [
|
|
176
190
|
renderSlot(_ctx.$slots, "default")
|
|
177
191
|
]),
|
|
@@ -181,120 +195,113 @@ function render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181
195
|
]))
|
|
182
196
|
: createCommentVNode("v-if", true)
|
|
183
197
|
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
};
|
|
184
201
|
|
|
185
202
|
var css_248z$s = "\n.card-container[data-v-da3858b4] {\n margin: var(--card-margin);\n}\n.card[data-v-da3858b4] {\n max-width: var(--card-max-width);\n border-radius: var(--border-radius-big);\n overflow: hidden;\n box-shadow: var(--card-shadow);\n}\n";
|
|
186
203
|
styleInject(css_248z$s);
|
|
187
204
|
|
|
188
|
-
script$
|
|
189
|
-
script$
|
|
190
|
-
script$s.__file = "src/Card/Card.vue";
|
|
205
|
+
script$x.__scopeId = "data-v-da3858b4";
|
|
206
|
+
script$x.__file = "src/Card/Card.vue";
|
|
191
207
|
|
|
192
|
-
|
|
193
|
-
name: "CardGrid"
|
|
194
|
-
});
|
|
208
|
+
const _hoisted_1$t = { class: "card-grid" };
|
|
195
209
|
|
|
196
|
-
const _hoisted_1$o = { class: "card-grid" };
|
|
197
210
|
|
|
198
|
-
|
|
199
|
-
|
|
211
|
+
var script$w = {
|
|
212
|
+
__name: 'CardGrid',
|
|
213
|
+
setup(__props) {
|
|
214
|
+
|
|
215
|
+
// No logic needed
|
|
216
|
+
|
|
217
|
+
return (_ctx, _cache) => {
|
|
218
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
200
219
|
renderSlot(_ctx.$slots, "default")
|
|
201
220
|
]))
|
|
202
221
|
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
};
|
|
203
225
|
|
|
204
226
|
var css_248z$r = "\n.card-grid[data-v-ad060034] {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-content: center;\n}\n@media (min-width: 1024px) {\n.card-grid[data-v-ad060034] {\n justify-content: space-between;\n}\n}\n";
|
|
205
227
|
styleInject(css_248z$r);
|
|
206
228
|
|
|
207
|
-
script$
|
|
208
|
-
script$
|
|
209
|
-
|
|
229
|
+
script$w.__scopeId = "data-v-ad060034";
|
|
230
|
+
script$w.__file = "src/CardGrid/CardGrid.vue";
|
|
231
|
+
|
|
232
|
+
const _hoisted_1$s = { class: "container" };
|
|
210
233
|
|
|
211
|
-
var script$q = defineComponent({
|
|
212
|
-
name: "Container"
|
|
213
|
-
});
|
|
214
234
|
|
|
215
|
-
|
|
235
|
+
var script$v = {
|
|
236
|
+
__name: 'Container',
|
|
237
|
+
setup(__props) {
|
|
216
238
|
|
|
217
|
-
|
|
218
|
-
|
|
239
|
+
// No logic needed
|
|
240
|
+
|
|
241
|
+
return (_ctx, _cache) => {
|
|
242
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
219
243
|
renderSlot(_ctx.$slots, "default")
|
|
220
244
|
]))
|
|
221
245
|
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
};
|
|
222
249
|
|
|
223
250
|
var css_248z$q = "\n.container[data-v-7cccf06a] {\n max-width: var(--container-max-width);\n margin: var(--container-margin);\n}\n";
|
|
224
251
|
styleInject(css_248z$q);
|
|
225
252
|
|
|
226
|
-
script$
|
|
227
|
-
script$
|
|
228
|
-
|
|
253
|
+
script$v.__scopeId = "data-v-7cccf06a";
|
|
254
|
+
script$v.__file = "src/Container/Container.vue";
|
|
255
|
+
|
|
256
|
+
const _hoisted_1$r = ["href"];
|
|
229
257
|
|
|
230
|
-
var script$
|
|
231
|
-
|
|
258
|
+
var script$u = {
|
|
259
|
+
__name: 'MobileNavigationLink',
|
|
232
260
|
props: {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
current: {
|
|
240
|
-
type: Boolean,
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
computed: {
|
|
244
|
-
linkClass: function () {
|
|
245
|
-
if (this.current) {
|
|
246
|
-
return 'current-link'
|
|
247
|
-
}
|
|
248
|
-
return 'regular-link'
|
|
249
|
-
},
|
|
250
|
-
linkDestination: function () {
|
|
251
|
-
return this.current ? '#' : this.href
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
});
|
|
261
|
+
text: String,
|
|
262
|
+
href: String,
|
|
263
|
+
current: Boolean,
|
|
264
|
+
},
|
|
265
|
+
setup(__props) {
|
|
255
266
|
|
|
256
|
-
const
|
|
267
|
+
const props = __props;
|
|
268
|
+
const linkClass = computed(() => props.current ? 'current-link' : 'regular-link');
|
|
269
|
+
const linkDestination = computed(() => props.current ? '#' : props.href);
|
|
257
270
|
|
|
258
|
-
|
|
271
|
+
return (_ctx, _cache) => {
|
|
259
272
|
return (openBlock(), createElementBlock("a", {
|
|
260
|
-
href:
|
|
261
|
-
class: normalizeClass(
|
|
273
|
+
href: linkDestination.value,
|
|
274
|
+
class: normalizeClass(linkClass.value),
|
|
262
275
|
"aria-current": "page"
|
|
263
|
-
}, toDisplayString(
|
|
276
|
+
}, toDisplayString(__props.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$r))
|
|
264
277
|
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
};
|
|
265
281
|
|
|
266
282
|
var css_248z$p = "\n.current-link[data-v-3e279546] {\n background-color: var(--color-navbar-current-background);\n color: var(--color-navbar-text);\n display: block;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n text-decoration: none;\n cursor: default;\n}\n.regular-link[data-v-3e279546] {\n color: var(--color-navbar-text);\n display: block;\n padding: 0.5rem 0.75rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n transition: background-color 0.2s ease, color 0.2s ease;\n text-decoration: none;\n}\n.regular-link[data-v-3e279546]:hover {\n background-color: var(--color-navbar-link-background);\n}\n";
|
|
267
283
|
styleInject(css_248z$p);
|
|
268
284
|
|
|
269
|
-
script$
|
|
270
|
-
script$
|
|
271
|
-
script$p.__file = "src/Navbar/MobileNavigationLink.vue";
|
|
285
|
+
script$u.__scopeId = "data-v-3e279546";
|
|
286
|
+
script$u.__file = "src/Navbar/MobileNavigationLink.vue";
|
|
272
287
|
|
|
273
|
-
|
|
274
|
-
name: "MobileNavigationLinks",
|
|
275
|
-
components: {
|
|
276
|
-
MobileNavigationLink: script$p,
|
|
277
|
-
},
|
|
278
|
-
props: {
|
|
279
|
-
links: {
|
|
280
|
-
type: Array,
|
|
281
|
-
},
|
|
282
|
-
open: {
|
|
283
|
-
type: Boolean,
|
|
284
|
-
default: false,
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
const _hoisted_1$l = {
|
|
288
|
+
const _hoisted_1$q = {
|
|
290
289
|
key: 0,
|
|
291
290
|
id: "mobile-menu"
|
|
292
291
|
};
|
|
293
292
|
const _hoisted_2$e = { class: "menu-panel" };
|
|
294
293
|
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
var script$t = {
|
|
295
|
+
__name: 'MobileNavigationLinks',
|
|
296
|
+
props: {
|
|
297
|
+
links: Array,
|
|
298
|
+
open: { type: Boolean, default: false },
|
|
299
|
+
},
|
|
300
|
+
setup(__props) {
|
|
301
|
+
|
|
297
302
|
|
|
303
|
+
|
|
304
|
+
return (_ctx, _cache) => {
|
|
298
305
|
return (openBlock(), createBlock(Transition, {
|
|
299
306
|
"enter-active-class": "fade-scale-enter-active",
|
|
300
307
|
"leave-active-class": "fade-scale-leave-active",
|
|
@@ -304,11 +311,11 @@ function render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
304
311
|
"leave-to-class": "fade-scale-leave-to"
|
|
305
312
|
}, {
|
|
306
313
|
default: withCtx(() => [
|
|
307
|
-
(
|
|
308
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
314
|
+
(__props.open)
|
|
315
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
309
316
|
createElementVNode("div", _hoisted_2$e, [
|
|
310
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
311
|
-
return (openBlock(), createBlock(
|
|
317
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.links, (link) => {
|
|
318
|
+
return (openBlock(), createBlock(script$u, {
|
|
312
319
|
key: link.id,
|
|
313
320
|
href: link.href,
|
|
314
321
|
text: link.text,
|
|
@@ -322,79 +329,65 @@ function render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
322
329
|
_: 1 /* STABLE */
|
|
323
330
|
}))
|
|
324
331
|
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
};
|
|
325
335
|
|
|
326
336
|
var css_248z$o = "\n.fade-scale-enter-active[data-v-eb1296c6],\n.fade-scale-leave-active[data-v-eb1296c6] {\n transition: all 200ms ease;\n}\n.fade-scale-enter-from[data-v-eb1296c6],\n.fade-scale-leave-to[data-v-eb1296c6] {\n transform: scaleY(0);\n transform-origin: top;\n}\n.fade-scale-enter-to[data-v-eb1296c6],\n.fade-scale-leave-from[data-v-eb1296c6] {\n transform: scaleY(1);\n transform-origin: top;\n}\n#mobile-menu[data-v-eb1296c6] {\n display: block;\n}\n.menu-panel[data-v-eb1296c6] {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n padding-top: 0.5rem;\n padding-bottom: 0.75rem;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n background-color: var(--color-navbar-background);\n}\n@media (min-width: 640px) {\n#mobile-menu[data-v-eb1296c6] {\n display: none;\n}\n}\n";
|
|
327
337
|
styleInject(css_248z$o);
|
|
328
338
|
|
|
329
|
-
script$
|
|
330
|
-
script$
|
|
331
|
-
script$o.__file = "src/Navbar/MobileNavigationLinks.vue";
|
|
339
|
+
script$t.__scopeId = "data-v-eb1296c6";
|
|
340
|
+
script$t.__file = "src/Navbar/MobileNavigationLinks.vue";
|
|
332
341
|
|
|
333
|
-
|
|
334
|
-
|
|
342
|
+
const _hoisted_1$p = ["href"];
|
|
343
|
+
|
|
344
|
+
var script$s = {
|
|
345
|
+
__name: 'NavigationLink',
|
|
335
346
|
props: {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
current: {
|
|
343
|
-
type: Boolean,
|
|
344
|
-
},
|
|
345
|
-
},
|
|
346
|
-
computed: {
|
|
347
|
-
linkClass: function () {
|
|
348
|
-
if (this.current) {
|
|
349
|
-
return 'current-link'
|
|
350
|
-
}
|
|
351
|
-
return 'regular-link'
|
|
352
|
-
},
|
|
353
|
-
linkDestination: function () {
|
|
354
|
-
return this.current ? '#' : this.href
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
});
|
|
347
|
+
text: String,
|
|
348
|
+
href: String,
|
|
349
|
+
current: Boolean,
|
|
350
|
+
},
|
|
351
|
+
setup(__props) {
|
|
358
352
|
|
|
359
|
-
const
|
|
353
|
+
const props = __props;
|
|
354
|
+
const linkClass = computed(() => props.current ? 'current-link' : 'regular-link');
|
|
355
|
+
const linkDestination = computed(() => props.current ? '#' : props.href);
|
|
360
356
|
|
|
361
|
-
|
|
357
|
+
return (_ctx, _cache) => {
|
|
362
358
|
return (openBlock(), createElementBlock("a", {
|
|
363
|
-
href:
|
|
364
|
-
class: normalizeClass(
|
|
359
|
+
href: linkDestination.value,
|
|
360
|
+
class: normalizeClass(linkClass.value),
|
|
365
361
|
"aria-current": "page"
|
|
366
|
-
}, toDisplayString(
|
|
362
|
+
}, toDisplayString(__props.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$p))
|
|
363
|
+
}
|
|
367
364
|
}
|
|
368
365
|
|
|
366
|
+
};
|
|
367
|
+
|
|
369
368
|
var css_248z$n = "\n.current-link[data-v-4989b384] {\n background-color: var(--color-navbar-current-background);\n color: var(--color-navbar-text);\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n text-decoration: none;\n cursor: default;\n}\n.regular-link[data-v-4989b384] {\n color: var(--color-navbar-text);\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n transition: background-color 0.2s ease, color 0.2s ease;\n text-decoration: none;\n}\n.regular-link[data-v-4989b384]:hover {\n background-color: var(--color-navbar-link-background);\n}\n";
|
|
370
369
|
styleInject(css_248z$n);
|
|
371
370
|
|
|
372
|
-
script$
|
|
373
|
-
script$
|
|
374
|
-
script$n.__file = "src/Navbar/NavigationLink.vue";
|
|
371
|
+
script$s.__scopeId = "data-v-4989b384";
|
|
372
|
+
script$s.__file = "src/Navbar/NavigationLink.vue";
|
|
375
373
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
374
|
+
const _hoisted_1$o = { class: "links-container" };
|
|
375
|
+
const _hoisted_2$d = { class: "links-wrapper" };
|
|
376
|
+
|
|
377
|
+
var script$r = {
|
|
378
|
+
__name: 'NavigationLinks',
|
|
381
379
|
props: {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
},
|
|
386
|
-
});
|
|
380
|
+
links: Array,
|
|
381
|
+
},
|
|
382
|
+
setup(__props) {
|
|
387
383
|
|
|
388
|
-
const _hoisted_1$j = { class: "links-container" };
|
|
389
|
-
const _hoisted_2$d = { class: "links-wrapper" };
|
|
390
384
|
|
|
391
|
-
function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
392
|
-
const _component_navigation_link = resolveComponent("navigation-link");
|
|
393
385
|
|
|
394
|
-
|
|
386
|
+
return (_ctx, _cache) => {
|
|
387
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
395
388
|
createElementVNode("div", _hoisted_2$d, [
|
|
396
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
397
|
-
return (openBlock(), createBlock(
|
|
389
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.links, (link) => {
|
|
390
|
+
return (openBlock(), createBlock(script$s, {
|
|
398
391
|
key: link.id,
|
|
399
392
|
href: link.href,
|
|
400
393
|
text: link.text,
|
|
@@ -404,126 +397,113 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
404
397
|
])
|
|
405
398
|
]))
|
|
406
399
|
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
};
|
|
407
403
|
|
|
408
404
|
var css_248z$m = "\n.links-container[data-v-294f43c2] {\n display: none;\n}\n.links-wrapper[data-v-294f43c2] {\n display: flex;\n gap: 1rem;\n}\n@media (min-width: 640px) {\n.links-container[data-v-294f43c2] {\n display: block;\n margin-left: 1.5rem;\n}\n}\n";
|
|
409
405
|
styleInject(css_248z$m);
|
|
410
406
|
|
|
411
|
-
script$
|
|
412
|
-
script$
|
|
413
|
-
script$m.__file = "src/Navbar/NavigationLinks.vue";
|
|
407
|
+
script$r.__scopeId = "data-v-294f43c2";
|
|
408
|
+
script$r.__file = "src/Navbar/NavigationLinks.vue";
|
|
414
409
|
|
|
415
|
-
|
|
416
|
-
name: "NavbarTitle",
|
|
417
|
-
props: {
|
|
418
|
-
href: {
|
|
419
|
-
type: String,
|
|
420
|
-
},
|
|
421
|
-
title: {
|
|
422
|
-
type: String,
|
|
423
|
-
},
|
|
424
|
-
imageBig: {
|
|
425
|
-
type: String,
|
|
426
|
-
},
|
|
427
|
-
imageSmall: {
|
|
428
|
-
type: String,
|
|
429
|
-
},
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
const _hoisted_1$i = ["href"];
|
|
410
|
+
const _hoisted_1$n = ["href"];
|
|
434
411
|
const _hoisted_2$c = ["src", "alt"];
|
|
435
412
|
const _hoisted_3$9 = ["src", "alt"];
|
|
436
413
|
|
|
437
|
-
|
|
414
|
+
|
|
415
|
+
var script$q = {
|
|
416
|
+
__name: 'NavbarTitle',
|
|
417
|
+
props: {
|
|
418
|
+
href: String,
|
|
419
|
+
title: String,
|
|
420
|
+
imageBig: String,
|
|
421
|
+
imageSmall: String,
|
|
422
|
+
},
|
|
423
|
+
setup(__props) {
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
return (_ctx, _cache) => {
|
|
438
428
|
return (openBlock(), createElementBlock("a", {
|
|
439
429
|
class: "title-container",
|
|
440
|
-
href:
|
|
430
|
+
href: __props.href
|
|
441
431
|
}, [
|
|
442
432
|
createElementVNode("img", {
|
|
443
433
|
class: "logo-small",
|
|
444
|
-
src:
|
|
445
|
-
alt:
|
|
434
|
+
src: __props.imageSmall,
|
|
435
|
+
alt: __props.title
|
|
446
436
|
}, null, 8 /* PROPS */, _hoisted_2$c),
|
|
447
437
|
createElementVNode("img", {
|
|
448
438
|
class: "logo-big",
|
|
449
|
-
src:
|
|
450
|
-
alt:
|
|
439
|
+
src: __props.imageBig,
|
|
440
|
+
alt: __props.title
|
|
451
441
|
}, null, 8 /* PROPS */, _hoisted_3$9)
|
|
452
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
442
|
+
], 8 /* PROPS */, _hoisted_1$n))
|
|
443
|
+
}
|
|
453
444
|
}
|
|
454
445
|
|
|
446
|
+
};
|
|
447
|
+
|
|
455
448
|
var css_248z$l = "\n.title-container[data-v-661ef87c] {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.logo-small[data-v-661ef87c] {\n display: block;\n height: 2rem;\n width: auto;\n}\n.logo-big[data-v-661ef87c] {\n display: none;\n height: 2rem;\n width: auto;\n}\n@media (min-width: 1024px) {\n.logo-small[data-v-661ef87c] {\n display: none;\n}\n.logo-big[data-v-661ef87c] {\n display: block;\n}\n}\n\n\n";
|
|
456
449
|
styleInject(css_248z$l);
|
|
457
450
|
|
|
458
|
-
script$
|
|
459
|
-
script$
|
|
460
|
-
script$l.__file = "src/Navbar/NavbarTitle.vue";
|
|
451
|
+
script$q.__scopeId = "data-v-661ef87c";
|
|
452
|
+
script$q.__file = "src/Navbar/NavbarTitle.vue";
|
|
461
453
|
|
|
462
|
-
|
|
463
|
-
name: "RightContent",
|
|
464
|
-
props: {
|
|
465
|
-
locale: {
|
|
466
|
-
type: String,
|
|
467
|
-
},
|
|
468
|
-
currentUserEmail: {
|
|
469
|
-
type: String,
|
|
470
|
-
},
|
|
471
|
-
currentUserName: {
|
|
472
|
-
type: String,
|
|
473
|
-
},
|
|
474
|
-
currentUserPicture: {
|
|
475
|
-
type: String,
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
computed: {
|
|
479
|
-
avatarAlt: function () {
|
|
480
|
-
return this.currentUserName + ` (${this.currentUserEmail})`
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
});
|
|
484
|
-
|
|
485
|
-
const _hoisted_1$h = { class: "action-container" };
|
|
454
|
+
const _hoisted_1$m = { class: "action-container" };
|
|
486
455
|
const _hoisted_2$b = ["src", "alt"];
|
|
487
456
|
|
|
488
|
-
|
|
489
|
-
|
|
457
|
+
var script$p = {
|
|
458
|
+
__name: 'RightContent',
|
|
459
|
+
props: {
|
|
460
|
+
locale: String,
|
|
461
|
+
currentUserEmail: String,
|
|
462
|
+
currentUserName: String,
|
|
463
|
+
currentUserPicture: String,
|
|
464
|
+
},
|
|
465
|
+
setup(__props) {
|
|
466
|
+
|
|
467
|
+
const props = __props;
|
|
468
|
+
const avatarAlt = computed(() => `${props.currentUserName} (${props.currentUserEmail})`);
|
|
469
|
+
|
|
470
|
+
return (_ctx, _cache) => {
|
|
471
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
490
472
|
createElementVNode("img", {
|
|
491
473
|
class: "circle-image",
|
|
492
|
-
src:
|
|
493
|
-
alt:
|
|
474
|
+
src: __props.currentUserPicture,
|
|
475
|
+
alt: avatarAlt.value
|
|
494
476
|
}, null, 8 /* PROPS */, _hoisted_2$b)
|
|
495
477
|
]))
|
|
496
478
|
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
};
|
|
497
482
|
|
|
498
483
|
var css_248z$k = "\n.action-container[data-v-07675a13] {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n display: flex;\n align-items: center;\n padding-right: 0.5rem;\n color: var(--color-navbar-text);\n font-size: var(--font-size-navbar);\n}\n.circle-image[data-v-07675a13] {\n border-radius: 9999px;\n padding: 0.25rem;\n height: 50px;\n width: 50px;\n}\n@media (min-width: 640px) {\n.action-container[data-v-07675a13] {\n position: static;\n top: auto;\n bottom: auto;\n right: auto;\n margin-left: 1.5rem;\n padding-right: 0;\n}\n}\n\n";
|
|
499
484
|
styleInject(css_248z$k);
|
|
500
485
|
|
|
501
|
-
script$
|
|
502
|
-
script$
|
|
503
|
-
script$k.__file = "src/Navbar/RightContent.vue";
|
|
486
|
+
script$p.__scopeId = "data-v-07675a13";
|
|
487
|
+
script$p.__file = "src/Navbar/RightContent.vue";
|
|
504
488
|
|
|
505
|
-
var script$
|
|
506
|
-
|
|
489
|
+
var script$o = {
|
|
490
|
+
__name: 'MobileMenuButton',
|
|
507
491
|
props: {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
default: false,
|
|
511
|
-
},
|
|
512
|
-
},
|
|
492
|
+
open: { type: Boolean, default: false },
|
|
493
|
+
},
|
|
513
494
|
emits: ['click'],
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
this.$emit('click', evt);
|
|
517
|
-
},
|
|
518
|
-
},
|
|
519
|
-
});
|
|
495
|
+
setup(__props, { emit: __emit }) {
|
|
496
|
+
|
|
520
497
|
|
|
521
|
-
|
|
498
|
+
const emit = __emit;
|
|
499
|
+
const onClick = (evt) => emit('click', evt);
|
|
500
|
+
|
|
501
|
+
return (_ctx, _cache) => {
|
|
522
502
|
return (openBlock(), createElementBlock("button", {
|
|
523
503
|
class: "menu-button",
|
|
524
504
|
type: "button",
|
|
525
|
-
onClick:
|
|
526
|
-
}, _cache[
|
|
505
|
+
onClick: onClick
|
|
506
|
+
}, _cache[0] || (_cache[0] = [
|
|
527
507
|
createElementVNode("svg", {
|
|
528
508
|
class: "menu-icon",
|
|
529
509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -540,383 +520,428 @@ function render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
540
520
|
], -1 /* HOISTED */)
|
|
541
521
|
])))
|
|
542
522
|
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
};
|
|
543
526
|
|
|
544
527
|
var css_248z$j = "\n.menu-button[data-v-397545ee] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0.5rem;\n border-radius: var(--border-radius-big);\n color: var(--color-navbar-text);\n background-color: transparent;\n transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;\n border: none;\n cursor: pointer;\n}\n.menu-icon[data-v-397545ee] {\n display: block;\n height: 1.5rem;\n width: 1.5rem;\n}\n";
|
|
545
528
|
styleInject(css_248z$j);
|
|
546
529
|
|
|
547
|
-
script$
|
|
548
|
-
script$
|
|
549
|
-
script$j.__file = "src/Navbar/MobileMenuButton.vue";
|
|
550
|
-
|
|
551
|
-
var script$i = defineComponent({
|
|
552
|
-
name: "Navbar",
|
|
553
|
-
components: {
|
|
554
|
-
NavbarTitle: script$l,
|
|
555
|
-
NavigationLinks: script$m,
|
|
556
|
-
MobileNavigationLinks: script$o,
|
|
557
|
-
RightContent: script$k,
|
|
558
|
-
MobileMenuButton: script$j,
|
|
559
|
-
},
|
|
560
|
-
data() {
|
|
561
|
-
return {
|
|
562
|
-
mobileMenuOpen: false,
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
props: {
|
|
566
|
-
links: {
|
|
567
|
-
type: Array,
|
|
568
|
-
},
|
|
569
|
-
locale: {
|
|
570
|
-
type: String,
|
|
571
|
-
},
|
|
572
|
-
currentUserEmail: {
|
|
573
|
-
type: String,
|
|
574
|
-
},
|
|
575
|
-
currentUserName: {
|
|
576
|
-
type: String,
|
|
577
|
-
},
|
|
578
|
-
currentUserPicture: {
|
|
579
|
-
type: String,
|
|
580
|
-
},
|
|
581
|
-
title: {
|
|
582
|
-
type: String,
|
|
583
|
-
},
|
|
584
|
-
imageBig: {
|
|
585
|
-
type: String,
|
|
586
|
-
},
|
|
587
|
-
imageSmall: {
|
|
588
|
-
type: String,
|
|
589
|
-
},
|
|
590
|
-
},
|
|
591
|
-
methods: {
|
|
592
|
-
onMobileMenuClick() {
|
|
593
|
-
this.mobileMenuOpen = !this.mobileMenuOpen;
|
|
594
|
-
},
|
|
595
|
-
}
|
|
596
|
-
});
|
|
530
|
+
script$o.__scopeId = "data-v-397545ee";
|
|
531
|
+
script$o.__file = "src/Navbar/MobileMenuButton.vue";
|
|
597
532
|
|
|
598
|
-
const _hoisted_1$
|
|
533
|
+
const _hoisted_1$l = { class: "navbar" };
|
|
599
534
|
const _hoisted_2$a = { class: "navbar-container" };
|
|
600
535
|
const _hoisted_3$8 = { class: "flex-header" };
|
|
601
536
|
const _hoisted_4$3 = { class: "menu-toggle" };
|
|
602
537
|
const _hoisted_5$2 = { class: "title-container" };
|
|
603
538
|
|
|
604
|
-
function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
605
|
-
const _component_mobile_menu_button = resolveComponent("mobile-menu-button");
|
|
606
|
-
const _component_navbar_title = resolveComponent("navbar-title");
|
|
607
|
-
const _component_navigation_links = resolveComponent("navigation-links");
|
|
608
|
-
const _component_right_content = resolveComponent("right-content");
|
|
609
|
-
const _component_mobile_navigation_links = resolveComponent("mobile-navigation-links");
|
|
610
539
|
|
|
611
|
-
|
|
540
|
+
var script$n = {
|
|
541
|
+
__name: 'Navbar',
|
|
542
|
+
props: {
|
|
543
|
+
links: Array,
|
|
544
|
+
locale: String,
|
|
545
|
+
currentUserEmail: String,
|
|
546
|
+
currentUserName: String,
|
|
547
|
+
currentUserPicture: String,
|
|
548
|
+
title: String,
|
|
549
|
+
imageBig: String,
|
|
550
|
+
imageSmall: String,
|
|
551
|
+
},
|
|
552
|
+
setup(__props) {
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
const mobileMenuOpen = ref(false);
|
|
557
|
+
const onMobileMenuClick = () => {
|
|
558
|
+
mobileMenuOpen.value = !mobileMenuOpen.value;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
return (_ctx, _cache) => {
|
|
562
|
+
return (openBlock(), createElementBlock("nav", _hoisted_1$l, [
|
|
612
563
|
createElementVNode("div", _hoisted_2$a, [
|
|
613
564
|
createElementVNode("div", _hoisted_3$8, [
|
|
614
565
|
createElementVNode("div", _hoisted_4$3, [
|
|
615
|
-
createVNode(
|
|
616
|
-
onClick:
|
|
617
|
-
open:
|
|
618
|
-
}, null, 8 /* PROPS */, ["
|
|
566
|
+
createVNode(script$o, {
|
|
567
|
+
onClick: onMobileMenuClick,
|
|
568
|
+
open: mobileMenuOpen.value
|
|
569
|
+
}, null, 8 /* PROPS */, ["open"])
|
|
619
570
|
]),
|
|
620
571
|
createElementVNode("div", _hoisted_5$2, [
|
|
621
|
-
createVNode(
|
|
572
|
+
createVNode(script$q, {
|
|
622
573
|
href: "/",
|
|
623
|
-
title:
|
|
624
|
-
imageBig:
|
|
625
|
-
imageSmall:
|
|
574
|
+
title: __props.title,
|
|
575
|
+
imageBig: __props.imageBig,
|
|
576
|
+
imageSmall: __props.imageSmall
|
|
626
577
|
}, null, 8 /* PROPS */, ["title", "imageBig", "imageSmall"]),
|
|
627
|
-
createVNode(
|
|
578
|
+
createVNode(script$r, { links: __props.links }, null, 8 /* PROPS */, ["links"])
|
|
628
579
|
]),
|
|
629
|
-
createVNode(
|
|
630
|
-
locale:
|
|
631
|
-
"current-user-email":
|
|
632
|
-
"current-user-name":
|
|
633
|
-
"current-user-picture":
|
|
580
|
+
createVNode(script$p, {
|
|
581
|
+
locale: __props.locale,
|
|
582
|
+
"current-user-email": __props.currentUserEmail,
|
|
583
|
+
"current-user-name": __props.currentUserName,
|
|
584
|
+
"current-user-picture": __props.currentUserPicture
|
|
634
585
|
}, null, 8 /* PROPS */, ["locale", "current-user-email", "current-user-name", "current-user-picture"])
|
|
635
586
|
])
|
|
636
587
|
]),
|
|
637
|
-
createVNode(
|
|
638
|
-
links:
|
|
639
|
-
open:
|
|
588
|
+
createVNode(script$t, {
|
|
589
|
+
links: __props.links,
|
|
590
|
+
open: mobileMenuOpen.value
|
|
640
591
|
}, null, 8 /* PROPS */, ["links", "open"])
|
|
641
592
|
]))
|
|
642
593
|
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
};
|
|
643
597
|
|
|
644
598
|
var css_248z$i = "\n.navbar[data-v-1b5caf34] {\n background-color: var(--color-navbar-background);\n}\n.navbar-container[data-v-1b5caf34] {\n max-width: 80rem;\n margin-left: auto;\n margin-right: auto;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.flex-header[data-v-1b5caf34] {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 4rem;\n}\n.menu-toggle[data-v-1b5caf34] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n}\n.title-container[data-v-1b5caf34] {\n flex: 1 1 0%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n@media (min-width: 640px) {\n.navbar-container[data-v-1b5caf34] {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.menu-toggle[data-v-1b5caf34] {\n display: none;\n}\n.title-container[data-v-1b5caf34] {\n align-items: stretch;\n justify-content: flex-start;\n}\n}\n@media (min-width: 1024px) {\n.navbar-container[data-v-1b5caf34] {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n}\n";
|
|
645
599
|
styleInject(css_248z$i);
|
|
646
600
|
|
|
647
|
-
script$
|
|
648
|
-
script$
|
|
649
|
-
|
|
601
|
+
script$n.__scopeId = "data-v-1b5caf34";
|
|
602
|
+
script$n.__file = "src/Navbar/Navbar.vue";
|
|
603
|
+
|
|
604
|
+
const _hoisted_1$k = { class: "styled-table" };
|
|
650
605
|
|
|
651
|
-
var script$h = defineComponent({
|
|
652
|
-
name: "StyledTable",
|
|
653
|
-
});
|
|
654
606
|
|
|
655
|
-
|
|
607
|
+
var script$m = {
|
|
608
|
+
__name: 'StyledTable',
|
|
609
|
+
setup(__props) {
|
|
656
610
|
|
|
657
|
-
|
|
658
|
-
|
|
611
|
+
// No logic needed
|
|
612
|
+
|
|
613
|
+
return (_ctx, _cache) => {
|
|
614
|
+
return (openBlock(), createElementBlock("table", _hoisted_1$k, [
|
|
659
615
|
renderSlot(_ctx.$slots, "default")
|
|
660
616
|
]))
|
|
661
617
|
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
};
|
|
662
621
|
|
|
663
622
|
var css_248z$h = "\n.styled-table[data-v-8e6b2044] {\n width: 100%;\n border-collapse: collapse;\n}\n";
|
|
664
623
|
styleInject(css_248z$h);
|
|
665
624
|
|
|
666
|
-
script$
|
|
667
|
-
script$
|
|
668
|
-
|
|
625
|
+
script$m.__scopeId = "data-v-8e6b2044";
|
|
626
|
+
script$m.__file = "src/StyledTable/StyledTable.vue";
|
|
627
|
+
|
|
628
|
+
const _hoisted_1$j = ["disabled"];
|
|
669
629
|
|
|
670
|
-
|
|
671
|
-
|
|
630
|
+
|
|
631
|
+
var script$l = {
|
|
632
|
+
__name: 'RegularButton',
|
|
672
633
|
props: {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
},
|
|
678
|
-
textWhileLoading: {
|
|
679
|
-
type: String,
|
|
680
|
-
default: '...',
|
|
681
|
-
},
|
|
682
|
-
},
|
|
683
|
-
emits: ['click'],
|
|
684
|
-
computed: {
|
|
685
|
-
cssClass: function () {
|
|
686
|
-
if (this.loading) {
|
|
687
|
-
return 'regular-button loading';
|
|
688
|
-
}
|
|
689
|
-
return 'regular-button'
|
|
690
|
-
},
|
|
634
|
+
text: String,
|
|
635
|
+
loading: {
|
|
636
|
+
type: Boolean,
|
|
637
|
+
default: false,
|
|
691
638
|
},
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
},
|
|
639
|
+
textWhileLoading: {
|
|
640
|
+
type: String,
|
|
641
|
+
default: '...',
|
|
696
642
|
},
|
|
643
|
+
},
|
|
644
|
+
emits: ['click'],
|
|
645
|
+
setup(__props, { emit: __emit }) {
|
|
646
|
+
|
|
647
|
+
const props = __props;
|
|
648
|
+
|
|
649
|
+
const emit = __emit;
|
|
650
|
+
|
|
651
|
+
const cssClass = computed(() => {
|
|
652
|
+
if (props.loading) {
|
|
653
|
+
return 'regular-button loading';
|
|
654
|
+
}
|
|
655
|
+
return 'regular-button';
|
|
697
656
|
});
|
|
698
657
|
|
|
699
|
-
const
|
|
658
|
+
const onClick = (evt) => {
|
|
659
|
+
emit('click', evt);
|
|
660
|
+
};
|
|
700
661
|
|
|
701
|
-
|
|
662
|
+
return (_ctx, _cache) => {
|
|
702
663
|
return (openBlock(), createElementBlock("button", {
|
|
703
|
-
onClick:
|
|
704
|
-
class: normalizeClass(
|
|
705
|
-
disabled:
|
|
706
|
-
}, toDisplayString(
|
|
664
|
+
onClick: onClick,
|
|
665
|
+
class: normalizeClass(cssClass.value),
|
|
666
|
+
disabled: __props.loading
|
|
667
|
+
}, toDisplayString(__props.loading ? __props.textWhileLoading : __props.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$j))
|
|
668
|
+
}
|
|
707
669
|
}
|
|
708
670
|
|
|
671
|
+
};
|
|
672
|
+
|
|
709
673
|
var css_248z$g = "\n.regular-button[data-v-7c962c54] {\n background-color: var(--color-regular);\n color: var(--color-regular-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.regular-button[data-v-7c962c54]:hover {\n background-color: var(--color-regular-hover);\n}\n\n/* Loading state */\n.loading[data-v-7c962c54] {\n background-color: var(--color-regular-disabled);\n cursor: wait;\n}\n.loading[data-v-7c962c54]:hover {\n background-color: var(--color-regular-disabled);\n}\n";
|
|
710
674
|
styleInject(css_248z$g);
|
|
711
675
|
|
|
712
|
-
script$
|
|
713
|
-
script$
|
|
714
|
-
script$g.__file = "src/Buttons/RegularButton/RegularButton.vue";
|
|
715
|
-
|
|
716
|
-
var script$f = defineComponent({
|
|
717
|
-
name: "Pagination",
|
|
718
|
-
props: {
|
|
719
|
-
previousLabel: String,
|
|
720
|
-
nextLabel: String,
|
|
721
|
-
showPrevious: Boolean,
|
|
722
|
-
previousLink: String,
|
|
723
|
-
nextLink: String,
|
|
724
|
-
},
|
|
725
|
-
components: {
|
|
726
|
-
RegularButton: script$g,
|
|
727
|
-
},
|
|
728
|
-
});
|
|
676
|
+
script$l.__scopeId = "data-v-7c962c54";
|
|
677
|
+
script$l.__file = "src/Buttons/RegularButton/RegularButton.vue";
|
|
729
678
|
|
|
730
|
-
const _hoisted_1$
|
|
679
|
+
const _hoisted_1$i = { class: "pagination-container" };
|
|
731
680
|
const _hoisted_2$9 = ["href"];
|
|
732
681
|
const _hoisted_3$7 = ["href"];
|
|
733
682
|
|
|
734
|
-
function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
735
|
-
const _component_regular_button = resolveComponent("regular-button");
|
|
736
683
|
|
|
737
|
-
|
|
738
|
-
|
|
684
|
+
var script$k = {
|
|
685
|
+
__name: 'Pagination',
|
|
686
|
+
props: {
|
|
687
|
+
previousLabel: String,
|
|
688
|
+
nextLabel: String,
|
|
689
|
+
showPrevious: Boolean,
|
|
690
|
+
previousLink: String,
|
|
691
|
+
nextLink: String,
|
|
692
|
+
},
|
|
693
|
+
setup(__props) {
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
return (_ctx, _cache) => {
|
|
698
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
699
|
+
(__props.showPrevious)
|
|
739
700
|
? (openBlock(), createElementBlock("a", {
|
|
740
701
|
key: 0,
|
|
741
|
-
href:
|
|
702
|
+
href: __props.previousLink
|
|
742
703
|
}, [
|
|
743
|
-
createVNode(
|
|
704
|
+
createVNode(script$l, { text: __props.previousLabel }, null, 8 /* PROPS */, ["text"])
|
|
744
705
|
], 8 /* PROPS */, _hoisted_2$9))
|
|
745
706
|
: createCommentVNode("v-if", true),
|
|
746
|
-
createElementVNode("a", { href:
|
|
747
|
-
createVNode(
|
|
707
|
+
createElementVNode("a", { href: __props.nextLink }, [
|
|
708
|
+
createVNode(script$l, { text: __props.nextLabel }, null, 8 /* PROPS */, ["text"])
|
|
748
709
|
], 8 /* PROPS */, _hoisted_3$7)
|
|
749
710
|
]))
|
|
750
711
|
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
};
|
|
751
715
|
|
|
752
716
|
var css_248z$f = "\n.pagination-container[data-v-265c87a6] {\n display: flex;\n justify-content: space-between;\n margin-top: 1rem;\n}\na[data-v-265c87a6] {\n text-decoration: none;\n}\n";
|
|
753
717
|
styleInject(css_248z$f);
|
|
754
718
|
|
|
755
|
-
script$
|
|
756
|
-
script$
|
|
757
|
-
script$f.__file = "src/Pagination/Pagination.vue";
|
|
719
|
+
script$k.__scopeId = "data-v-265c87a6";
|
|
720
|
+
script$k.__file = "src/Pagination/Pagination.vue";
|
|
758
721
|
|
|
759
|
-
|
|
760
|
-
|
|
722
|
+
const _hoisted_1$h = { class: "badge" };
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
var script$j = {
|
|
726
|
+
__name: 'Badge',
|
|
761
727
|
props: {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
728
|
+
text: String,
|
|
729
|
+
},
|
|
730
|
+
setup(__props) {
|
|
731
|
+
|
|
765
732
|
|
|
766
|
-
const _hoisted_1$c = { class: "badge" };
|
|
767
733
|
|
|
768
|
-
|
|
769
|
-
return (openBlock(), createElementBlock("span", _hoisted_1$
|
|
734
|
+
return (_ctx, _cache) => {
|
|
735
|
+
return (openBlock(), createElementBlock("span", _hoisted_1$h, toDisplayString(__props.text), 1 /* TEXT */))
|
|
736
|
+
}
|
|
770
737
|
}
|
|
771
738
|
|
|
739
|
+
};
|
|
740
|
+
|
|
772
741
|
var css_248z$e = "\n.badge[data-v-187659a4] {\n background-color: var(--color-badge);\n color: var(--color-badge-text);\n font-size: var(--font-size-small);\n font-weight: var(--font-weight-bold);\n margin-right: var(--badge-margin-right);\n padding: var(--badge-padding);\n border-radius: var(--badge-border-radius);\n display: inline-block;\n}\n.dark .badge[data-v-187659a4] {\n background-color: var(--color-badge-dark);\n color: var(--color-badge-dark-text);\n}\n";
|
|
773
742
|
styleInject(css_248z$e);
|
|
774
743
|
|
|
775
|
-
script$
|
|
776
|
-
script$
|
|
777
|
-
script$e.__file = "src/Badge/Badge.vue";
|
|
778
|
-
|
|
779
|
-
var script$d = defineComponent({
|
|
780
|
-
name: "Temperature",
|
|
781
|
-
props: {
|
|
782
|
-
title: String,
|
|
783
|
-
min: Number,
|
|
784
|
-
max: Number,
|
|
785
|
-
avg: Number
|
|
786
|
-
},
|
|
787
|
-
computed: {
|
|
788
|
-
minFormatted() {
|
|
789
|
-
return this.min.toFixed(2);
|
|
790
|
-
},
|
|
791
|
-
avgFormatted() {
|
|
792
|
-
return this.avg.toFixed(2);
|
|
793
|
-
},
|
|
794
|
-
maxFormatted() {
|
|
795
|
-
return this.max.toFixed(2);
|
|
796
|
-
},
|
|
797
|
-
},
|
|
798
|
-
});
|
|
744
|
+
script$j.__scopeId = "data-v-187659a4";
|
|
745
|
+
script$j.__file = "src/Badge/Badge.vue";
|
|
799
746
|
|
|
800
|
-
const _hoisted_1$
|
|
747
|
+
const _hoisted_1$g = { class: "wrapper" };
|
|
801
748
|
const _hoisted_2$8 = { class: "title" };
|
|
802
749
|
const _hoisted_3$6 = { class: "avg" };
|
|
803
750
|
const _hoisted_4$2 = { class: "minmax" };
|
|
804
751
|
const _hoisted_5$1 = { class: "min" };
|
|
805
752
|
const _hoisted_6 = { class: "max" };
|
|
806
753
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
754
|
+
var script$i = {
|
|
755
|
+
__name: 'Temperature',
|
|
756
|
+
props: {
|
|
757
|
+
title: String,
|
|
758
|
+
min: Number,
|
|
759
|
+
max: Number,
|
|
760
|
+
avg: Number
|
|
761
|
+
},
|
|
762
|
+
setup(__props) {
|
|
763
|
+
|
|
764
|
+
const props = __props;
|
|
765
|
+
const minFormatted = computed(() => props.min.toFixed(2));
|
|
766
|
+
const avgFormatted = computed(() => props.avg.toFixed(2));
|
|
767
|
+
const maxFormatted = computed(() => props.max.toFixed(2));
|
|
768
|
+
|
|
769
|
+
return (_ctx, _cache) => {
|
|
770
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
771
|
+
createElementVNode("div", _hoisted_2$8, toDisplayString(__props.title), 1 /* TEXT */),
|
|
772
|
+
createElementVNode("div", _hoisted_3$6, toDisplayString(avgFormatted.value) + " ℃", 1 /* TEXT */),
|
|
811
773
|
createElementVNode("div", _hoisted_4$2, [
|
|
812
|
-
createElementVNode("div", _hoisted_5$1, toDisplayString(
|
|
774
|
+
createElementVNode("div", _hoisted_5$1, toDisplayString(minFormatted.value) + " ℃", 1 /* TEXT */),
|
|
813
775
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "separator" }, "—", -1 /* HOISTED */)),
|
|
814
|
-
createElementVNode("div", _hoisted_6, toDisplayString(
|
|
776
|
+
createElementVNode("div", _hoisted_6, toDisplayString(maxFormatted.value) + " ℃", 1 /* TEXT */)
|
|
815
777
|
])
|
|
816
778
|
]))
|
|
817
779
|
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
};
|
|
818
783
|
|
|
819
784
|
var css_248z$d = "\n.wrapper[data-v-4250e6d0] {\n flex-direction: column;\n display: inline-flex;\n}\n.avg[data-v-4250e6d0] {\n display: flex;\n font-size: var(--font-size-xlarge);\n justify-content: center;\n}\n.title[data-v-4250e6d0] {\n display: flex;\n font-size: var(--font-size-base);\n justify-content: center;\n}\n.minmax[data-v-4250e6d0] {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n font-size: var(--font-size-base);\n}\n";
|
|
820
785
|
styleInject(css_248z$d);
|
|
821
786
|
|
|
822
|
-
script$
|
|
823
|
-
script$
|
|
824
|
-
script$d.__file = "src/Temperature/Temperature.vue";
|
|
787
|
+
script$i.__scopeId = "data-v-4250e6d0";
|
|
788
|
+
script$i.__file = "src/Temperature/Temperature.vue";
|
|
825
789
|
|
|
826
|
-
var script$
|
|
827
|
-
|
|
828
|
-
emits: ['cancel', 'confirm'],
|
|
790
|
+
var script$h = {
|
|
791
|
+
__name: 'SecondaryButton',
|
|
829
792
|
props: {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
793
|
+
text: String,
|
|
794
|
+
},
|
|
795
|
+
emits: ['click'],
|
|
796
|
+
setup(__props, { emit: __emit }) {
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
const emit = __emit;
|
|
800
|
+
const onClick = (evt) => emit('click', evt);
|
|
801
|
+
|
|
802
|
+
return (_ctx, _cache) => {
|
|
803
|
+
return (openBlock(), createElementBlock("button", {
|
|
804
|
+
class: "secondary-button",
|
|
805
|
+
onClick: onClick
|
|
806
|
+
}, toDisplayString(__props.text), 1 /* TEXT */))
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
var css_248z$c = "\n.secondary-button[data-v-5bb3ed46] {\n background-color: var(--color-secondary);\n color: var(--color-secondary-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.secondary-button[data-v-5bb3ed46]:hover {\n background-color: var(--color-secondary-hover);\n}\n";
|
|
813
|
+
styleInject(css_248z$c);
|
|
814
|
+
|
|
815
|
+
script$h.__scopeId = "data-v-5bb3ed46";
|
|
816
|
+
script$h.__file = "src/Buttons/SecondaryButton/SecondaryButton.vue";
|
|
817
|
+
|
|
818
|
+
var script$g = {
|
|
819
|
+
__name: 'DangerButton',
|
|
820
|
+
props: {
|
|
821
|
+
text: String,
|
|
822
|
+
},
|
|
823
|
+
emits: ['click'],
|
|
824
|
+
setup(__props, { emit: __emit }) {
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
const emit = __emit;
|
|
828
|
+
const onClick = (evt) => emit('click', evt);
|
|
829
|
+
|
|
830
|
+
return (_ctx, _cache) => {
|
|
831
|
+
return (openBlock(), createElementBlock("button", {
|
|
832
|
+
class: "danger-button",
|
|
833
|
+
onClick: onClick
|
|
834
|
+
}, toDisplayString(__props.text), 1 /* TEXT */))
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
var css_248z$b = "\n.danger-button[data-v-5e080598] {\n background-color: var(--color-danger);\n color: var(--color-danger-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.danger-button[data-v-5e080598]:hover {\n background-color: var(--color-danger-hover);\n}\n";
|
|
841
|
+
styleInject(css_248z$b);
|
|
842
|
+
|
|
843
|
+
script$g.__scopeId = "data-v-5e080598";
|
|
844
|
+
script$g.__file = "src/Buttons/DangerButton/DangerButton.vue";
|
|
841
845
|
|
|
842
|
-
const _hoisted_1$
|
|
846
|
+
const _hoisted_1$f = {
|
|
843
847
|
key: 0,
|
|
844
848
|
class: "modal-overlay"
|
|
845
849
|
};
|
|
846
850
|
const _hoisted_2$7 = { class: "modal-container" };
|
|
847
851
|
|
|
848
|
-
function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
849
|
-
const _component_secondary_button = resolveComponent("secondary-button");
|
|
850
|
-
const _component_danger_button = resolveComponent("danger-button");
|
|
851
852
|
|
|
852
|
-
|
|
853
|
-
|
|
853
|
+
var script$f = {
|
|
854
|
+
__name: 'Modal',
|
|
855
|
+
props: {
|
|
856
|
+
open: Boolean,
|
|
857
|
+
},
|
|
858
|
+
emits: ['cancel', 'confirm'],
|
|
859
|
+
setup(__props, { emit: __emit }) {
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
const emit = __emit;
|
|
863
|
+
const onCancel = (evt) => emit('cancel', evt);
|
|
864
|
+
const onConfirm = (evt) => emit('confirm', evt);
|
|
865
|
+
|
|
866
|
+
return (_ctx, _cache) => {
|
|
867
|
+
return (__props.open)
|
|
868
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
854
869
|
createElementVNode("div", _hoisted_2$7, [
|
|
855
870
|
_cache[0] || (_cache[0] = createElementVNode("h1", { class: "modal-title" }, "Are you sure?", -1 /* HOISTED */)),
|
|
856
|
-
createVNode(
|
|
857
|
-
onClick:
|
|
871
|
+
createVNode(script$h, {
|
|
872
|
+
onClick: onCancel,
|
|
858
873
|
text: "No"
|
|
859
|
-
}
|
|
860
|
-
createVNode(
|
|
874
|
+
}),
|
|
875
|
+
createVNode(script$g, {
|
|
861
876
|
class: "ml-2",
|
|
862
|
-
onClick:
|
|
877
|
+
onClick: onConfirm,
|
|
863
878
|
text: "Yes"
|
|
864
|
-
}
|
|
879
|
+
})
|
|
865
880
|
])
|
|
866
881
|
]))
|
|
867
882
|
: createCommentVNode("v-if", true)
|
|
868
883
|
}
|
|
884
|
+
}
|
|
869
885
|
|
|
870
|
-
|
|
871
|
-
styleInject(css_248z$c);
|
|
886
|
+
};
|
|
872
887
|
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
script$c.__file = "src/Modal/Modal.vue";
|
|
888
|
+
var css_248z$a = "\n.modal-overlay[data-v-11d137c2] {\n background-color: var(--color-modal-overlay);\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.modal-container[data-v-11d137c2] {\n background-color: var(--color-modal-background);\n padding: 3.5rem 4rem;\n border-radius: var(--border-radius-big);\n text-align: center;\n}\n.modal-title[data-v-11d137c2] {\n font-size: var(--font-size-large);\n margin-bottom: 1rem;\n font-weight: var(--font-weight-bold);\n color: var(--color-modal-title);\n}\n";
|
|
889
|
+
styleInject(css_248z$a);
|
|
876
890
|
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
});
|
|
891
|
+
script$f.__scopeId = "data-v-11d137c2";
|
|
892
|
+
script$f.__file = "src/Modal/Modal.vue";
|
|
880
893
|
|
|
881
|
-
const _hoisted_1$
|
|
894
|
+
const _hoisted_1$e = {
|
|
882
895
|
class: "spinner",
|
|
883
896
|
role: "status"
|
|
884
897
|
};
|
|
885
898
|
|
|
886
|
-
|
|
887
|
-
|
|
899
|
+
|
|
900
|
+
var script$e = {
|
|
901
|
+
__name: 'Spinner',
|
|
902
|
+
setup(__props) {
|
|
903
|
+
|
|
904
|
+
// No logic needed
|
|
905
|
+
|
|
906
|
+
return (_ctx, _cache) => {
|
|
907
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$e, _cache[0] || (_cache[0] = [
|
|
888
908
|
createElementVNode("span", { class: "sr-only-text" }, "Please wait...", -1 /* HOISTED */)
|
|
889
909
|
])))
|
|
890
910
|
}
|
|
911
|
+
}
|
|
891
912
|
|
|
892
|
-
|
|
893
|
-
styleInject(css_248z$b);
|
|
913
|
+
};
|
|
894
914
|
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
script$b.__file = "src/Spinner/Spinner.vue";
|
|
915
|
+
var css_248z$9 = "\n.spinner[data-v-3d456f9a] {\n display: inline-block;\n height: 2rem;\n width: 2rem;\n border: 4px solid currentColor;\n border-right-color: transparent;\n border-radius: var(--border-radius-round);\n animation: spin-3d456f9a 1.5s linear infinite;\n}\n.sr-only-text[data-v-3d456f9a] {\n position: absolute;\n margin: -1px;\n height: 1px;\n width: 1px;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n padding: 0;\n clip: rect(0, 0, 0, 0);\n}\n@keyframes spin-3d456f9a {\nfrom {\n transform: rotate(0deg);\n}\nto {\n transform: rotate(360deg);\n}\n}\n";
|
|
916
|
+
styleInject(css_248z$9);
|
|
898
917
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
props: {
|
|
902
|
-
ranges: Array,
|
|
903
|
-
},
|
|
904
|
-
});
|
|
918
|
+
script$e.__scopeId = "data-v-3d456f9a";
|
|
919
|
+
script$e.__file = "src/Spinner/Spinner.vue";
|
|
905
920
|
|
|
906
|
-
const _hoisted_1$
|
|
921
|
+
const _hoisted_1$d = { class: "ranges-editor" };
|
|
907
922
|
const _hoisted_2$6 = { class: "labels" };
|
|
908
923
|
const _hoisted_3$5 = { class: "label" };
|
|
909
924
|
const _hoisted_4$1 = { class: "label" };
|
|
910
925
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
926
|
+
|
|
927
|
+
var script$d = {
|
|
928
|
+
__name: 'RangeView',
|
|
929
|
+
props: {
|
|
930
|
+
ranges: Array,
|
|
931
|
+
},
|
|
932
|
+
setup(__props) {
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
return (_ctx, _cache) => {
|
|
937
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
938
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.ranges, (range, index) => {
|
|
914
939
|
return (openBlock(), createElementBlock("div", {
|
|
915
940
|
class: "range",
|
|
916
941
|
key: range.id
|
|
917
942
|
}, [
|
|
918
943
|
createElementVNode("div", _hoisted_2$6, [
|
|
919
|
-
createElementVNode("span", _hoisted_3$5, toDisplayString(index <
|
|
944
|
+
createElementVNode("span", _hoisted_3$5, toDisplayString(index < __props.ranges.length - 1 ? range.max : ' '), 1 /* TEXT */)
|
|
920
945
|
]),
|
|
921
946
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "gap" }, null, -1 /* HOISTED */)),
|
|
922
947
|
createElementVNode("span", _hoisted_4$1, toDisplayString(range.label), 1 /* TEXT */)
|
|
@@ -924,367 +949,279 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
924
949
|
}), 128 /* KEYED_FRAGMENT */))
|
|
925
950
|
]))
|
|
926
951
|
}
|
|
952
|
+
}
|
|
927
953
|
|
|
928
|
-
|
|
929
|
-
styleInject(css_248z$a);
|
|
954
|
+
};
|
|
930
955
|
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
script$a.__file = "src/RangeView/RangeView.vue";
|
|
956
|
+
var css_248z$8 = "\n.ranges-editor[data-v-3e589c2c] {\n display: flex;\n flex-direction: row;\n cursor: pointer;\n}\n.range[data-v-3e589c2c] {\n min-width: 50px;\n text-align: center;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n}\n.labels[data-v-3e589c2c] {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n}\n.gap[data-v-3e589c2c] {\n height: 10px;\n width: auto;\n background-color: red;\n border: 1px solid black;\n}\n.label[data-v-3e589c2c] {\n margin-top: 5px;\n}\n";
|
|
957
|
+
styleInject(css_248z$8);
|
|
934
958
|
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
props: {
|
|
938
|
-
text: String,
|
|
939
|
-
},
|
|
940
|
-
});
|
|
959
|
+
script$d.__scopeId = "data-v-3e589c2c";
|
|
960
|
+
script$d.__file = "src/RangeView/RangeView.vue";
|
|
941
961
|
|
|
942
|
-
const _hoisted_1$
|
|
962
|
+
const _hoisted_1$c = {
|
|
943
963
|
class: "reset-button",
|
|
944
964
|
type: "reset"
|
|
945
965
|
};
|
|
946
966
|
|
|
947
|
-
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
948
|
-
return (openBlock(), createElementBlock("button", _hoisted_1$7, toDisplayString(_ctx.text), 1 /* TEXT */))
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
var css_248z$9 = "\n.reset-button[data-v-70384d7c] {\n background-color: var(--color-reset);\n color: var(--color-reset-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.reset-button[data-v-70384d7c]:hover {\n background-color: var(--color-reset-hover);\n}\n";
|
|
952
|
-
styleInject(css_248z$9);
|
|
953
967
|
|
|
954
|
-
script$
|
|
955
|
-
|
|
956
|
-
script$9.__file = "src/Buttons/ResetButton/ResetButton.vue";
|
|
957
|
-
|
|
958
|
-
var script$8 = defineComponent({
|
|
959
|
-
name: "SubmitButton",
|
|
968
|
+
var script$c = {
|
|
969
|
+
__name: 'ResetButton',
|
|
960
970
|
props: {
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
disabled: {
|
|
965
|
-
type: Boolean,
|
|
966
|
-
},
|
|
967
|
-
},
|
|
968
|
-
});
|
|
971
|
+
text: String,
|
|
972
|
+
},
|
|
973
|
+
setup(__props) {
|
|
969
974
|
|
|
970
|
-
const _hoisted_1$6 = ["disabled"];
|
|
971
975
|
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
disabled: _ctx.disabled
|
|
977
|
-
}, toDisplayString(_ctx.text), 9 /* TEXT, PROPS */, _hoisted_1$6))
|
|
976
|
+
|
|
977
|
+
return (_ctx, _cache) => {
|
|
978
|
+
return (openBlock(), createElementBlock("button", _hoisted_1$c, toDisplayString(__props.text), 1 /* TEXT */))
|
|
979
|
+
}
|
|
978
980
|
}
|
|
979
981
|
|
|
980
|
-
|
|
981
|
-
styleInject(css_248z$8);
|
|
982
|
+
};
|
|
982
983
|
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
script$8.__file = "src/Buttons/SubmitButton/SubmitButton.vue";
|
|
984
|
+
var css_248z$7 = "\n.reset-button[data-v-70384d7c] {\n background-color: var(--color-reset);\n color: var(--color-reset-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.reset-button[data-v-70384d7c]:hover {\n background-color: var(--color-reset-hover);\n}\n";
|
|
985
|
+
styleInject(css_248z$7);
|
|
986
986
|
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
props: {
|
|
990
|
-
text: String,
|
|
991
|
-
},
|
|
992
|
-
emits: ['click'],
|
|
993
|
-
methods: {
|
|
994
|
-
onClick(evt) {
|
|
995
|
-
this.$emit('click', evt);
|
|
996
|
-
},
|
|
997
|
-
},
|
|
998
|
-
});
|
|
987
|
+
script$c.__scopeId = "data-v-70384d7c";
|
|
988
|
+
script$c.__file = "src/Buttons/ResetButton/ResetButton.vue";
|
|
999
989
|
|
|
1000
|
-
|
|
1001
|
-
return (openBlock(), createElementBlock("button", {
|
|
1002
|
-
class: "secondary-button",
|
|
1003
|
-
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args)))
|
|
1004
|
-
}, toDisplayString(_ctx.text), 1 /* TEXT */))
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
var css_248z$7 = "\n.secondary-button[data-v-5bb3ed46] {\n background-color: var(--color-secondary);\n color: var(--color-secondary-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.secondary-button[data-v-5bb3ed46]:hover {\n background-color: var(--color-secondary-hover);\n}\n";
|
|
1008
|
-
styleInject(css_248z$7);
|
|
990
|
+
const _hoisted_1$b = ["disabled"];
|
|
1009
991
|
|
|
1010
|
-
script$7.render = render$7;
|
|
1011
|
-
script$7.__scopeId = "data-v-5bb3ed46";
|
|
1012
|
-
script$7.__file = "src/Buttons/SecondaryButton/SecondaryButton.vue";
|
|
1013
992
|
|
|
1014
|
-
var script$
|
|
1015
|
-
|
|
993
|
+
var script$b = {
|
|
994
|
+
__name: 'SubmitButton',
|
|
1016
995
|
props: {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
onClick(evt) {
|
|
1022
|
-
this.$emit('click', evt);
|
|
1023
|
-
},
|
|
1024
|
-
},
|
|
1025
|
-
});
|
|
996
|
+
text: String,
|
|
997
|
+
disabled: Boolean,
|
|
998
|
+
},
|
|
999
|
+
setup(__props) {
|
|
1026
1000
|
|
|
1027
|
-
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
return (_ctx, _cache) => {
|
|
1028
1004
|
return (openBlock(), createElementBlock("button", {
|
|
1029
|
-
class: "
|
|
1030
|
-
|
|
1031
|
-
|
|
1005
|
+
class: "submit-button",
|
|
1006
|
+
type: "submit",
|
|
1007
|
+
disabled: __props.disabled
|
|
1008
|
+
}, toDisplayString(__props.text), 9 /* TEXT, PROPS */, _hoisted_1$b))
|
|
1009
|
+
}
|
|
1032
1010
|
}
|
|
1033
1011
|
|
|
1034
|
-
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
var css_248z$6 = "\n.submit-button[data-v-f7f11890] {\n background-color: var(--color-submit);\n color: var(--color-submit-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.submit-button[data-v-f7f11890]:hover {\n background-color: var(--color-submit-hover);\n}\n.submit-button[data-v-f7f11890]:disabled {\n background-color: var(--color-submit-disabled);\n cursor: not-allowed;\n}\n";
|
|
1035
1015
|
styleInject(css_248z$6);
|
|
1036
1016
|
|
|
1037
|
-
script$
|
|
1038
|
-
script$
|
|
1039
|
-
|
|
1017
|
+
script$b.__scopeId = "data-v-f7f11890";
|
|
1018
|
+
script$b.__file = "src/Buttons/SubmitButton/SubmitButton.vue";
|
|
1019
|
+
|
|
1020
|
+
const _hoisted_1$a = { class: "text-input-container" };
|
|
1021
|
+
const _hoisted_2$5 = ["for"];
|
|
1022
|
+
const _hoisted_3$4 = ["id", "name", "required", "disabled", "placeholder", "value"];
|
|
1040
1023
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1024
|
+
|
|
1025
|
+
var script$a = {
|
|
1026
|
+
__name: 'TextInput',
|
|
1043
1027
|
props: {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
type: Boolean,
|
|
1052
|
-
},
|
|
1053
|
-
placeholder: {
|
|
1054
|
-
type: String,
|
|
1055
|
-
},
|
|
1056
|
-
label: {
|
|
1057
|
-
type: String,
|
|
1058
|
-
},
|
|
1059
|
-
text: {
|
|
1060
|
-
type: String,
|
|
1061
|
-
},
|
|
1062
|
-
},
|
|
1028
|
+
id: String,
|
|
1029
|
+
required: Boolean,
|
|
1030
|
+
disabled: Boolean,
|
|
1031
|
+
placeholder: String,
|
|
1032
|
+
label: String,
|
|
1033
|
+
text: String,
|
|
1034
|
+
},
|
|
1063
1035
|
emits: ['update'],
|
|
1064
|
-
|
|
1065
|
-
onInput(event) {
|
|
1066
|
-
this.$emit('update', event.target.value);
|
|
1067
|
-
},
|
|
1068
|
-
},
|
|
1069
|
-
});
|
|
1036
|
+
setup(__props, { emit: __emit }) {
|
|
1070
1037
|
|
|
1071
|
-
const _hoisted_1$5 = { class: "text-input-container" };
|
|
1072
|
-
const _hoisted_2$5 = ["for"];
|
|
1073
|
-
const _hoisted_3$4 = ["id", "name", "required", "disabled", "placeholder", "value"];
|
|
1074
1038
|
|
|
1075
|
-
|
|
1076
|
-
|
|
1039
|
+
const emit = __emit;
|
|
1040
|
+
const onInput = (event) => emit('update', event.target.value);
|
|
1041
|
+
|
|
1042
|
+
return (_ctx, _cache) => {
|
|
1043
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
1077
1044
|
createElementVNode("label", {
|
|
1078
1045
|
class: "text-input-label",
|
|
1079
|
-
for:
|
|
1080
|
-
}, toDisplayString(
|
|
1046
|
+
for: __props.id
|
|
1047
|
+
}, toDisplayString(__props.label), 9 /* TEXT, PROPS */, _hoisted_2$5),
|
|
1081
1048
|
createElementVNode("input", {
|
|
1082
1049
|
class: "text-input-field",
|
|
1083
|
-
id:
|
|
1084
|
-
name:
|
|
1085
|
-
required:
|
|
1086
|
-
disabled:
|
|
1087
|
-
placeholder:
|
|
1088
|
-
value:
|
|
1089
|
-
onInput:
|
|
1050
|
+
id: __props.id,
|
|
1051
|
+
name: __props.id,
|
|
1052
|
+
required: __props.required,
|
|
1053
|
+
disabled: __props.disabled,
|
|
1054
|
+
placeholder: __props.placeholder,
|
|
1055
|
+
value: __props.text,
|
|
1056
|
+
onInput: onInput,
|
|
1090
1057
|
type: "text"
|
|
1091
1058
|
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_3$4)
|
|
1092
1059
|
]))
|
|
1093
1060
|
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
};
|
|
1094
1064
|
|
|
1095
1065
|
var css_248z$5 = "\n.text-input-container[data-v-6df3547e] {\n margin-bottom: 1rem;\n}\n.text-input-label[data-v-6df3547e] {\n display: block;\n color: var(--color-text-input-label);\n font-size: var(--font-size-small);\n font-weight: var(--font-weight-bold);\n margin-bottom: 0.5rem;\n}\n.text-input-field[data-v-6df3547e] {\n box-shadow: 0 1px 3px var(--color-text-input-shadow);\n appearance: none;\n border: 1px solid var(--color-text-input-border);\n border-radius: var(--border-radius--base);\n width: 100%;\n padding: 0.5rem 0.75rem;\n color: var(--color-text-input);\n line-height: 1.25;\n transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;\n}\n.text-input-field[data-v-6df3547e]:focus {\n outline: none;\n box-shadow: 0 0 0 3px var(--color-text-input-shadow);\n border-color: var(--color-text-input-border-focus);\n}\n.text-input-field[data-v-6df3547e]:disabled {\n background-color: var(--color-input-disabled);\n cursor: not-allowed;\n}\n";
|
|
1096
1066
|
styleInject(css_248z$5);
|
|
1097
1067
|
|
|
1098
|
-
script$
|
|
1099
|
-
script$
|
|
1100
|
-
|
|
1068
|
+
script$a.__scopeId = "data-v-6df3547e";
|
|
1069
|
+
script$a.__file = "src/Inputs/TextInput/TextInput.vue";
|
|
1070
|
+
|
|
1071
|
+
const _hoisted_1$9 = { class: "checkbox-container" };
|
|
1072
|
+
const _hoisted_2$4 = ["id", "name", "required", "value"];
|
|
1073
|
+
const _hoisted_3$3 = ["for"];
|
|
1101
1074
|
|
|
1102
|
-
|
|
1103
|
-
|
|
1075
|
+
|
|
1076
|
+
var script$9 = {
|
|
1077
|
+
__name: 'CheckBoxInput',
|
|
1104
1078
|
props: {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
placeholder: {
|
|
1112
|
-
type: String,
|
|
1113
|
-
},
|
|
1114
|
-
label: {
|
|
1115
|
-
type: String,
|
|
1116
|
-
},
|
|
1117
|
-
checked: {
|
|
1118
|
-
type: Boolean,
|
|
1119
|
-
},
|
|
1120
|
-
},
|
|
1079
|
+
id: String,
|
|
1080
|
+
required: Boolean,
|
|
1081
|
+
placeholder: String,
|
|
1082
|
+
label: String,
|
|
1083
|
+
checked: Boolean,
|
|
1084
|
+
},
|
|
1121
1085
|
emits: ['update'],
|
|
1122
|
-
|
|
1123
|
-
onInput(event) {
|
|
1124
|
-
this.$emit('update', event.target.value);
|
|
1125
|
-
},
|
|
1126
|
-
},
|
|
1127
|
-
});
|
|
1086
|
+
setup(__props, { emit: __emit }) {
|
|
1128
1087
|
|
|
1129
|
-
const _hoisted_1$4 = { class: "checkbox-container" };
|
|
1130
|
-
const _hoisted_2$4 = ["id", "name", "required", "value"];
|
|
1131
|
-
const _hoisted_3$3 = ["for"];
|
|
1132
1088
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1089
|
+
const emit = __emit;
|
|
1090
|
+
const onInput = (event) => emit('update', event.target.value);
|
|
1091
|
+
|
|
1092
|
+
return (_ctx, _cache) => {
|
|
1093
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
1135
1094
|
createElementVNode("input", {
|
|
1136
|
-
id:
|
|
1137
|
-
name:
|
|
1138
|
-
required:
|
|
1139
|
-
value:
|
|
1140
|
-
onInput:
|
|
1095
|
+
id: __props.id,
|
|
1096
|
+
name: __props.id,
|
|
1097
|
+
required: __props.required,
|
|
1098
|
+
value: __props.checked,
|
|
1099
|
+
onInput: onInput,
|
|
1141
1100
|
type: "checkbox",
|
|
1142
1101
|
"unchecked-value": "false"
|
|
1143
1102
|
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_2$4),
|
|
1144
1103
|
createElementVNode("label", {
|
|
1145
1104
|
class: "checkbox-label",
|
|
1146
|
-
for:
|
|
1147
|
-
}, toDisplayString(
|
|
1105
|
+
for: __props.id
|
|
1106
|
+
}, toDisplayString(__props.label), 9 /* TEXT, PROPS */, _hoisted_3$3)
|
|
1148
1107
|
]))
|
|
1149
1108
|
}
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
};
|
|
1150
1112
|
|
|
1151
1113
|
var css_248z$4 = "\n.checkbox-container[data-v-4612e592] {\n margin-bottom: 1rem;\n}\ninput[type=\"checkbox\"][data-v-4612e592] {\n margin-right: 0.5rem;\n}\n.checkbox-label[data-v-4612e592] {\n display: block;\n color: var(--color-checkbox-label);\n font-size: var(--font-size-small);\n font-weight: var(--font-weight-bold);\n}\n";
|
|
1152
1114
|
styleInject(css_248z$4);
|
|
1153
1115
|
|
|
1154
|
-
script$
|
|
1155
|
-
script$
|
|
1156
|
-
script$4.__file = "src/Inputs/CheckBoxInput/CheckBoxInput.vue";
|
|
1116
|
+
script$9.__scopeId = "data-v-4612e592";
|
|
1117
|
+
script$9.__file = "src/Inputs/CheckBoxInput/CheckBoxInput.vue";
|
|
1157
1118
|
|
|
1158
|
-
|
|
1159
|
-
|
|
1119
|
+
const _hoisted_1$8 = { class: "number-input-container" };
|
|
1120
|
+
const _hoisted_2$3 = ["for"];
|
|
1121
|
+
const _hoisted_3$2 = ["id", "name", "required", "placeholder", "disabled", "value", "min", "step"];
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
var script$8 = {
|
|
1125
|
+
__name: 'NumberInput',
|
|
1160
1126
|
props: {
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
placeholder: {
|
|
1171
|
-
type: String,
|
|
1172
|
-
},
|
|
1173
|
-
label: {
|
|
1174
|
-
type: String,
|
|
1175
|
-
},
|
|
1176
|
-
amount: {
|
|
1177
|
-
type: Number,
|
|
1178
|
-
},
|
|
1179
|
-
min: {
|
|
1180
|
-
type: String,
|
|
1181
|
-
},
|
|
1182
|
-
step: {
|
|
1183
|
-
type: String,
|
|
1184
|
-
},
|
|
1185
|
-
},
|
|
1127
|
+
id: String,
|
|
1128
|
+
required: Boolean,
|
|
1129
|
+
disabled: Boolean,
|
|
1130
|
+
placeholder: String,
|
|
1131
|
+
label: String,
|
|
1132
|
+
amount: Number,
|
|
1133
|
+
min: String,
|
|
1134
|
+
step: String,
|
|
1135
|
+
},
|
|
1186
1136
|
emits: ['update'],
|
|
1187
|
-
|
|
1188
|
-
onInput(event) {
|
|
1189
|
-
this.$emit('update', event.target.value);
|
|
1190
|
-
},
|
|
1191
|
-
},
|
|
1192
|
-
});
|
|
1137
|
+
setup(__props, { emit: __emit }) {
|
|
1193
1138
|
|
|
1194
|
-
const _hoisted_1$3 = { class: "number-input-container" };
|
|
1195
|
-
const _hoisted_2$3 = ["for"];
|
|
1196
|
-
const _hoisted_3$2 = ["id", "name", "required", "placeholder", "disabled", "value", "min", "step"];
|
|
1197
1139
|
|
|
1198
|
-
|
|
1199
|
-
|
|
1140
|
+
const emit = __emit;
|
|
1141
|
+
const onInput = (event) => emit('update', event.target.value);
|
|
1142
|
+
|
|
1143
|
+
return (_ctx, _cache) => {
|
|
1144
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
1200
1145
|
createElementVNode("label", {
|
|
1201
1146
|
class: "number-input-label",
|
|
1202
|
-
for:
|
|
1203
|
-
}, toDisplayString(
|
|
1147
|
+
for: __props.id
|
|
1148
|
+
}, toDisplayString(__props.label), 9 /* TEXT, PROPS */, _hoisted_2$3),
|
|
1204
1149
|
createElementVNode("input", {
|
|
1205
1150
|
class: "number-input-field",
|
|
1206
|
-
id:
|
|
1207
|
-
name:
|
|
1208
|
-
required:
|
|
1209
|
-
placeholder:
|
|
1210
|
-
disabled:
|
|
1211
|
-
value:
|
|
1212
|
-
min:
|
|
1213
|
-
step:
|
|
1214
|
-
onInput:
|
|
1151
|
+
id: __props.id,
|
|
1152
|
+
name: __props.id,
|
|
1153
|
+
required: __props.required,
|
|
1154
|
+
placeholder: __props.placeholder,
|
|
1155
|
+
disabled: __props.disabled,
|
|
1156
|
+
value: __props.amount,
|
|
1157
|
+
min: __props.min,
|
|
1158
|
+
step: __props.step,
|
|
1159
|
+
onInput: onInput,
|
|
1215
1160
|
type: "number"
|
|
1216
1161
|
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_3$2)
|
|
1217
1162
|
]))
|
|
1218
1163
|
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
};
|
|
1219
1167
|
|
|
1220
1168
|
var css_248z$3 = "\n.number-input-container[data-v-26abc846] {\n margin-bottom: 1rem;\n}\n.number-input-label[data-v-26abc846] {\n display: block;\n color: var(--color-number-input-label);\n font-size: var(--font-size-small);\n font-weight: var(--font-weight-bold);\n margin-bottom: 0.5rem;\n}\n.number-input-field[data-v-26abc846] {\n box-shadow: 0 1px 3px var(--color-input-shadow);\n appearance: none;\n border: 1px solid var(--color-number-input-border);\n border-radius: var(--border-radius--base);\n width: 100%;\n padding: 0.5rem 0.75rem;\n color: var(--color-number-input);\n line-height: 1.25;\n transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;\n}\n.number-input-field[data-v-26abc846]:focus {\n outline: none;\n box-shadow: 0 0 0 3px var(--color-input-shadow-focus);\n border-color: var(--color-number-input-border-focus);\n}\n.number-input-field[data-v-26abc846]:disabled {\n background-color: var(--color-input-disabled);\n cursor: not-allowed;\n}\n";
|
|
1221
1169
|
styleInject(css_248z$3);
|
|
1222
1170
|
|
|
1223
|
-
script$
|
|
1224
|
-
script$
|
|
1225
|
-
script$3.__file = "src/Inputs/NumberInput/NumberInput.vue";
|
|
1171
|
+
script$8.__scopeId = "data-v-26abc846";
|
|
1172
|
+
script$8.__file = "src/Inputs/NumberInput/NumberInput.vue";
|
|
1226
1173
|
|
|
1227
|
-
|
|
1228
|
-
|
|
1174
|
+
const _hoisted_1$7 = { class: "image-input-container" };
|
|
1175
|
+
const _hoisted_2$2 = ["for"];
|
|
1176
|
+
const _hoisted_3$1 = ["id", "name", "required", "placeholder", "value", "drop-placeholder"];
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
var script$7 = {
|
|
1180
|
+
__name: 'ImageInput',
|
|
1229
1181
|
props: {
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
type: String,
|
|
1238
|
-
},
|
|
1239
|
-
dropPlaceholder: {
|
|
1240
|
-
type: String,
|
|
1241
|
-
},
|
|
1242
|
-
label: {
|
|
1243
|
-
type: String,
|
|
1244
|
-
},
|
|
1245
|
-
file: {
|
|
1246
|
-
type: Object,
|
|
1247
|
-
},
|
|
1248
|
-
},
|
|
1182
|
+
id: String,
|
|
1183
|
+
required: Boolean,
|
|
1184
|
+
placeholder: String,
|
|
1185
|
+
dropPlaceholder: String,
|
|
1186
|
+
label: String,
|
|
1187
|
+
file: Object,
|
|
1188
|
+
},
|
|
1249
1189
|
emits: ['update'],
|
|
1250
|
-
|
|
1251
|
-
onInput(event) {
|
|
1252
|
-
this.$emit('update', event.target.files[0]);
|
|
1253
|
-
},
|
|
1254
|
-
},
|
|
1255
|
-
});
|
|
1190
|
+
setup(__props, { emit: __emit }) {
|
|
1256
1191
|
|
|
1257
|
-
const _hoisted_1$2 = { class: "image-input-container" };
|
|
1258
|
-
const _hoisted_2$2 = ["for"];
|
|
1259
|
-
const _hoisted_3$1 = ["id", "name", "required", "placeholder", "value", "drop-placeholder"];
|
|
1260
1192
|
|
|
1261
|
-
|
|
1262
|
-
|
|
1193
|
+
const emit = __emit;
|
|
1194
|
+
const onInput = (event) => emit('update', event.target.files[0]);
|
|
1195
|
+
|
|
1196
|
+
return (_ctx, _cache) => {
|
|
1197
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
1263
1198
|
createElementVNode("label", {
|
|
1264
1199
|
class: "image-input-label",
|
|
1265
|
-
for:
|
|
1266
|
-
}, toDisplayString(
|
|
1200
|
+
for: __props.id
|
|
1201
|
+
}, toDisplayString(__props.label), 9 /* TEXT, PROPS */, _hoisted_2$2),
|
|
1267
1202
|
createElementVNode("input", {
|
|
1268
1203
|
class: "image-input-field",
|
|
1269
|
-
id:
|
|
1270
|
-
name:
|
|
1271
|
-
required:
|
|
1272
|
-
placeholder:
|
|
1273
|
-
value:
|
|
1274
|
-
"drop-placeholder":
|
|
1275
|
-
onInput:
|
|
1204
|
+
id: __props.id,
|
|
1205
|
+
name: __props.id,
|
|
1206
|
+
required: __props.required,
|
|
1207
|
+
placeholder: __props.placeholder,
|
|
1208
|
+
value: __props.file,
|
|
1209
|
+
"drop-placeholder": __props.dropPlaceholder,
|
|
1210
|
+
onInput: onInput,
|
|
1276
1211
|
type: "file",
|
|
1277
1212
|
accept: "image/*"
|
|
1278
1213
|
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_3$1)
|
|
1279
1214
|
]))
|
|
1280
1215
|
}
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
};
|
|
1281
1219
|
|
|
1282
1220
|
var css_248z$2 = "\n.image-input-container[data-v-d90b5f3c] {\n margin-bottom: 1rem;\n}\n.image-input-label[data-v-d90b5f3c] {\n display: block;\n color: var(--color-image-input);\n font-size: var(--font-size-small);\n font-weight: var(--font-weight-bold);\n margin-bottom: 0.5rem;\n}\n.image-input-field[data-v-d90b5f3c] {\n box-shadow: 0 1px 3px var(--color-input-shadow);\n appearance: none;\n border: 1px solid var(--color-image-input-border);\n border-radius: var(--border-radius--base);\n width: 100%;\n padding: 0.5rem 0.75rem;\n color: var(--color-image-input);\n line-height: 1.25;\n transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;\n}\n.image-input-field[data-v-d90b5f3c]:focus {\n outline: none;\n box-shadow: 0 0 0 3px var(--color-image-input-shadow);\n border-color: var(--color-image-input-border-focus);\n}\n";
|
|
1283
1221
|
styleInject(css_248z$2);
|
|
1284
1222
|
|
|
1285
|
-
script$
|
|
1286
|
-
script$
|
|
1287
|
-
script$2.__file = "src/Inputs/ImageInput/ImageInput.vue";
|
|
1223
|
+
script$7.__scopeId = "data-v-d90b5f3c";
|
|
1224
|
+
script$7.__file = "src/Inputs/ImageInput/ImageInput.vue";
|
|
1288
1225
|
|
|
1289
1226
|
/*! image-blob-reduce 4.1.0 https://github.com/nodeca/image-blob-reduce @license MIT */
|
|
1290
1227
|
function commonjsRequire (path) {
|
|
@@ -4881,157 +4818,122 @@ ImageBlobReduce.pica = pica;
|
|
|
4881
4818
|
|
|
4882
4819
|
var imageBlobReduce = ImageBlobReduce;
|
|
4883
4820
|
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4821
|
+
const _hoisted_1$6 = { class: "image-input-container" };
|
|
4822
|
+
const _hoisted_2$1 = { key: 0 };
|
|
4823
|
+
|
|
4824
|
+
|
|
4825
|
+
var script$6 = {
|
|
4826
|
+
__name: 'ResizeImageUpload',
|
|
4889
4827
|
props: {
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
type: String,
|
|
4898
|
-
},
|
|
4899
|
-
dropPlaceholder: {
|
|
4900
|
-
type: String,
|
|
4901
|
-
},
|
|
4902
|
-
label: {
|
|
4903
|
-
type: String,
|
|
4904
|
-
},
|
|
4905
|
-
file: {
|
|
4906
|
-
type: Object,
|
|
4907
|
-
},
|
|
4908
|
-
},
|
|
4909
|
-
data() {
|
|
4910
|
-
return {
|
|
4911
|
-
rawImage: null,
|
|
4912
|
-
resizing: false,
|
|
4913
|
-
};
|
|
4914
|
-
},
|
|
4828
|
+
id: String,
|
|
4829
|
+
required: Boolean,
|
|
4830
|
+
placeholder: String,
|
|
4831
|
+
dropPlaceholder: String,
|
|
4832
|
+
label: String,
|
|
4833
|
+
file: Object,
|
|
4834
|
+
},
|
|
4915
4835
|
emits: ['loaded', 'error'],
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
try {
|
|
4919
|
-
this.resizing = true;
|
|
4920
|
-
const reduce = new imageBlobReduce();
|
|
4921
|
-
const blob = await reduce.toBlob(file, { max: 1024 });
|
|
4922
|
-
const newFile = new File([blob], file.name, { type: file.type });
|
|
4923
|
-
this.$emit('loaded', newFile);
|
|
4924
|
-
} catch (err) {
|
|
4925
|
-
this.$emit('error');
|
|
4926
|
-
} finally {
|
|
4927
|
-
this.resizing = false;
|
|
4928
|
-
}
|
|
4929
|
-
},
|
|
4930
|
-
},
|
|
4931
|
-
});
|
|
4836
|
+
setup(__props, { emit: __emit }) {
|
|
4837
|
+
|
|
4932
4838
|
|
|
4933
|
-
const _hoisted_1$1 = { class: "image-input-container" };
|
|
4934
|
-
const _hoisted_2$1 = { key: 0 };
|
|
4935
4839
|
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4840
|
+
const emit = __emit;
|
|
4841
|
+
const resizing = ref(false);
|
|
4842
|
+
|
|
4843
|
+
const onInput = async (file) => {
|
|
4844
|
+
try {
|
|
4845
|
+
resizing.value = true;
|
|
4846
|
+
const reduce = new imageBlobReduce();
|
|
4847
|
+
const blob = await reduce.toBlob(file, { max: 1024 });
|
|
4848
|
+
const newFile = new File([blob], file.name, { type: file.type });
|
|
4849
|
+
emit('loaded', newFile);
|
|
4850
|
+
} catch (err) {
|
|
4851
|
+
emit('error');
|
|
4852
|
+
} finally {
|
|
4853
|
+
resizing.value = false;
|
|
4854
|
+
}
|
|
4855
|
+
};
|
|
4856
|
+
|
|
4857
|
+
return (_ctx, _cache) => {
|
|
4858
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
4859
|
+
createVNode(script$7, {
|
|
4860
|
+
id: __props.id,
|
|
4861
|
+
name: __props.id,
|
|
4862
|
+
required: __props.required,
|
|
4863
|
+
placeholder: __props.placeholder,
|
|
4864
|
+
"drop-placeholder": __props.dropPlaceholder,
|
|
4865
|
+
label: __props.label,
|
|
4866
|
+
onUpdate: onInput
|
|
4867
|
+
}, null, 8 /* PROPS */, ["id", "name", "required", "placeholder", "drop-placeholder", "label"]),
|
|
4868
|
+
(resizing.value)
|
|
4950
4869
|
? (openBlock(), createElementBlock("p", _hoisted_2$1, "Resizing..."))
|
|
4951
4870
|
: createCommentVNode("v-if", true)
|
|
4952
4871
|
]))
|
|
4953
4872
|
}
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4875
|
+
};
|
|
4954
4876
|
|
|
4955
4877
|
var css_248z$1 = "\nimage-input[data-v-3fb95754] {\n display: block;\n margin-bottom: 1rem;\n}\nimage-input label[data-v-3fb95754] {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: var(--font-weight-bold);\n font-size: var(--font-size-small);\n color: var(--color-image-input);\n}\nimage-input input[type=\"file\"][data-v-3fb95754] {\n display: block;\n width: 100%;\n padding: 0.5rem;\n border: 1px solid var(--color-image-input-border);\n border-radius: var(--border-radius--base);\n color: var(--color-image-input);\n background-color: var(--color-image-input-background);\n cursor: pointer;\n}\nimage-input input[type=\"file\"][data-v-3fb95754]:focus {\n outline: none;\n border-color: var(--color-image-input-border-focus);\n box-shadow: 0 0 0 3px var(--color-image-input-shadow);\n}\nimage-input input[type=\"file\"][data-v-3fb95754]:disabled {\n background-color: var(--color-input-disabled);\n cursor: not-allowed;\n}\n";
|
|
4956
4878
|
styleInject(css_248z$1);
|
|
4957
4879
|
|
|
4958
|
-
script$
|
|
4959
|
-
script$
|
|
4960
|
-
script$1.__file = "src/Inputs/ResizeImageUpload/ResizeImageUpload.vue";
|
|
4961
|
-
|
|
4962
|
-
var script = defineComponent({
|
|
4963
|
-
name: "Selector",
|
|
4964
|
-
props: {
|
|
4965
|
-
id: {
|
|
4966
|
-
type: String,
|
|
4967
|
-
},
|
|
4968
|
-
disabled: {
|
|
4969
|
-
type: Boolean,
|
|
4970
|
-
},
|
|
4971
|
-
label: {
|
|
4972
|
-
type: String,
|
|
4973
|
-
},
|
|
4974
|
-
initialValue: {
|
|
4975
|
-
type: String,
|
|
4976
|
-
},
|
|
4977
|
-
options: {
|
|
4978
|
-
type: Array,
|
|
4979
|
-
},
|
|
4980
|
-
},
|
|
4981
|
-
data() {
|
|
4982
|
-
return {
|
|
4983
|
-
selected: '',
|
|
4984
|
-
};
|
|
4985
|
-
},
|
|
4986
|
-
watch: {
|
|
4987
|
-
initialValue: {
|
|
4988
|
-
immediate: true,
|
|
4989
|
-
handler: function (newSelectedValue) {
|
|
4990
|
-
if (newSelectedValue !== "" && newSelectedValue !== undefined) {
|
|
4991
|
-
this.selected = newSelectedValue;
|
|
4992
|
-
}
|
|
4993
|
-
},
|
|
4994
|
-
},
|
|
4995
|
-
options: {
|
|
4996
|
-
immediate: true,
|
|
4997
|
-
handler: function (newOptions) {
|
|
4998
|
-
const enabledOptions = newOptions.filter((option) => !option.disabled);
|
|
4999
|
-
if (enabledOptions.length === 1) {
|
|
5000
|
-
this.selected = enabledOptions[0].value;
|
|
5001
|
-
this.$emit('selected', this.selected);
|
|
5002
|
-
}
|
|
5003
|
-
},
|
|
5004
|
-
},
|
|
5005
|
-
},
|
|
5006
|
-
emits: ['selected'],
|
|
5007
|
-
methods: {
|
|
5008
|
-
onChange() {
|
|
5009
|
-
this.$emit('selected', this.selected);
|
|
5010
|
-
},
|
|
5011
|
-
},
|
|
5012
|
-
});
|
|
4880
|
+
script$6.__scopeId = "data-v-3fb95754";
|
|
4881
|
+
script$6.__file = "src/Inputs/ResizeImageUpload/ResizeImageUpload.vue";
|
|
5013
4882
|
|
|
5014
|
-
const _hoisted_1 = { class: "selector-container" };
|
|
4883
|
+
const _hoisted_1$5 = { class: "selector-container" };
|
|
5015
4884
|
const _hoisted_2 = ["for"];
|
|
5016
4885
|
const _hoisted_3 = { class: "selector-relative-container" };
|
|
5017
4886
|
const _hoisted_4 = ["id", "disabled"];
|
|
5018
4887
|
const _hoisted_5 = ["value", "disabled"];
|
|
5019
4888
|
|
|
5020
|
-
|
|
5021
|
-
|
|
4889
|
+
|
|
4890
|
+
var script$5 = {
|
|
4891
|
+
__name: 'Selector',
|
|
4892
|
+
props: {
|
|
4893
|
+
id: String,
|
|
4894
|
+
disabled: Boolean,
|
|
4895
|
+
label: String,
|
|
4896
|
+
initialValue: String,
|
|
4897
|
+
options: Array,
|
|
4898
|
+
},
|
|
4899
|
+
emits: ['selected'],
|
|
4900
|
+
setup(__props, { emit: __emit }) {
|
|
4901
|
+
|
|
4902
|
+
const props = __props;
|
|
4903
|
+
|
|
4904
|
+
const emit = __emit;
|
|
4905
|
+
const selected = ref('');
|
|
4906
|
+
|
|
4907
|
+
watch(() => props.initialValue, (newVal) => {
|
|
4908
|
+
if (newVal !== "" && newVal !== undefined) selected.value = newVal;
|
|
4909
|
+
}, { immediate: true });
|
|
4910
|
+
|
|
4911
|
+
watch(() => props.options, (newOptions) => {
|
|
4912
|
+
if (!newOptions) return;
|
|
4913
|
+
const enabledOptions = newOptions.filter((o) => !o.disabled);
|
|
4914
|
+
if (enabledOptions.length === 1) {
|
|
4915
|
+
selected.value = enabledOptions[0].value;
|
|
4916
|
+
emit('selected', selected.value);
|
|
4917
|
+
}
|
|
4918
|
+
}, { immediate: true });
|
|
4919
|
+
|
|
4920
|
+
const onChange = () => emit('selected', selected.value);
|
|
4921
|
+
|
|
4922
|
+
return (_ctx, _cache) => {
|
|
4923
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
5022
4924
|
createElementVNode("label", {
|
|
5023
4925
|
class: "selector-label",
|
|
5024
|
-
for:
|
|
5025
|
-
}, toDisplayString(
|
|
4926
|
+
for: __props.id
|
|
4927
|
+
}, toDisplayString(__props.label), 9 /* TEXT, PROPS */, _hoisted_2),
|
|
5026
4928
|
createElementVNode("div", _hoisted_3, [
|
|
5027
4929
|
withDirectives(createElementVNode("select", {
|
|
5028
4930
|
class: "selector-field",
|
|
5029
|
-
id:
|
|
5030
|
-
disabled:
|
|
5031
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((
|
|
5032
|
-
onChange:
|
|
4931
|
+
id: __props.id,
|
|
4932
|
+
disabled: __props.disabled,
|
|
4933
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((selected).value = $event)),
|
|
4934
|
+
onChange: onChange
|
|
5033
4935
|
}, [
|
|
5034
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
4936
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
5035
4937
|
return (openBlock(), createElementBlock("option", {
|
|
5036
4938
|
key: option.value,
|
|
5037
4939
|
value: option.value,
|
|
@@ -5039,9 +4941,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5039
4941
|
}, toDisplayString(option.text), 9 /* TEXT, PROPS */, _hoisted_5))
|
|
5040
4942
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5041
4943
|
], 40 /* PROPS, NEED_HYDRATION */, _hoisted_4), [
|
|
5042
|
-
[vModelSelect,
|
|
4944
|
+
[vModelSelect, selected.value]
|
|
5043
4945
|
]),
|
|
5044
|
-
_cache[
|
|
4946
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "selector-icon-container" }, [
|
|
5045
4947
|
createElementVNode("svg", {
|
|
5046
4948
|
class: "selector-icon",
|
|
5047
4949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5053,13 +4955,255 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5053
4955
|
])
|
|
5054
4956
|
]))
|
|
5055
4957
|
}
|
|
4958
|
+
}
|
|
4959
|
+
|
|
4960
|
+
};
|
|
5056
4961
|
|
|
5057
4962
|
var css_248z = "\n.selector-container[data-v-008e1be2] {\n margin-bottom: 1rem;\n}\n.selector-label[data-v-008e1be2] {\n display: block;\n color: var(--color-selector-label);\n font-size: var(--font-size-small);\n font-weight: var(--font-weight-bold);\n margin-bottom: 0.5rem;\n}\n.selector-relative-container[data-v-008e1be2] {\n position: relative;\n}\n.selector-field[data-v-008e1be2] {\n appearance: none;\n width: 100%;\n background-color: var(--color-selector-background);\n border: 1px solid var(--color-selector-border);\n color: var(--color-selector-text);\n padding: 0.75rem 1rem 0.75rem 0.75rem;\n padding-right: 2rem;\n border-radius: var(--border-radius--base);\n line-height: 1.25;\n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n}\n.selector-field[data-v-008e1be2]:focus {\n outline: none;\n background-color: var(--color-selector-background-focused);\n border-color: var(--color-selector-border-focused);\n}\n.selector-icon-container[data-v-008e1be2] {\n pointer-events: none;\n position: absolute;\n inset: 0 auto;\n right: 0;\n display: flex;\n align-items: center;\n padding: 0 0.5rem;\n color: var(--color-selector-icon-container);\n}\n.selector-icon[data-v-008e1be2] {\n fill: currentColor;\n height: 1rem;\n width: 1rem;\n}\n";
|
|
5058
4963
|
styleInject(css_248z);
|
|
5059
4964
|
|
|
5060
|
-
script.
|
|
5061
|
-
script.
|
|
5062
|
-
|
|
4965
|
+
script$5.__scopeId = "data-v-008e1be2";
|
|
4966
|
+
script$5.__file = "src/Inputs/Selector/Selector.vue";
|
|
4967
|
+
|
|
4968
|
+
const _hoisted_1$4 = ["width", "height", "stroke"];
|
|
4969
|
+
|
|
4970
|
+
|
|
4971
|
+
var script$4 = {
|
|
4972
|
+
__name: 'DropIcon',
|
|
4973
|
+
props: {
|
|
4974
|
+
size: {
|
|
4975
|
+
type: [Number, String],
|
|
4976
|
+
default: 24
|
|
4977
|
+
},
|
|
4978
|
+
color: {
|
|
4979
|
+
type: String,
|
|
4980
|
+
default: 'currentColor'
|
|
4981
|
+
}
|
|
4982
|
+
},
|
|
4983
|
+
setup(__props) {
|
|
4984
|
+
|
|
4985
|
+
|
|
4986
|
+
|
|
4987
|
+
return (_ctx, _cache) => {
|
|
4988
|
+
return (openBlock(), createElementBlock("svg", {
|
|
4989
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4990
|
+
width: __props.size,
|
|
4991
|
+
height: __props.size,
|
|
4992
|
+
viewBox: "0 0 24 24",
|
|
4993
|
+
fill: "none",
|
|
4994
|
+
stroke: __props.color,
|
|
4995
|
+
"stroke-width": "2",
|
|
4996
|
+
"stroke-linecap": "round",
|
|
4997
|
+
"stroke-linejoin": "round",
|
|
4998
|
+
class: "lucide lucide-droplets-icon lucide-droplets"
|
|
4999
|
+
}, _cache[0] || (_cache[0] = [
|
|
5000
|
+
createElementVNode("path", { d: "M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z" }, null, -1 /* HOISTED */),
|
|
5001
|
+
createElementVNode("path", { d: "M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97" }, null, -1 /* HOISTED */)
|
|
5002
|
+
]), 8 /* PROPS */, _hoisted_1$4))
|
|
5003
|
+
}
|
|
5004
|
+
}
|
|
5005
|
+
|
|
5006
|
+
};
|
|
5007
|
+
|
|
5008
|
+
script$4.__file = "src/Icons/DropIcon/DropIcon.vue";
|
|
5009
|
+
|
|
5010
|
+
const _hoisted_1$3 = ["width", "height", "stroke"];
|
|
5011
|
+
|
|
5012
|
+
|
|
5013
|
+
var script$3 = {
|
|
5014
|
+
__name: 'SkullIcon',
|
|
5015
|
+
props: {
|
|
5016
|
+
size: {
|
|
5017
|
+
type: [Number, String],
|
|
5018
|
+
default: 24
|
|
5019
|
+
},
|
|
5020
|
+
color: {
|
|
5021
|
+
type: String,
|
|
5022
|
+
default: 'currentColor'
|
|
5023
|
+
}
|
|
5024
|
+
},
|
|
5025
|
+
setup(__props) {
|
|
5026
|
+
|
|
5027
|
+
|
|
5028
|
+
|
|
5029
|
+
return (_ctx, _cache) => {
|
|
5030
|
+
return (openBlock(), createElementBlock("svg", {
|
|
5031
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5032
|
+
width: __props.size,
|
|
5033
|
+
height: __props.size,
|
|
5034
|
+
viewBox: "0 0 24 24",
|
|
5035
|
+
fill: "none",
|
|
5036
|
+
stroke: __props.color,
|
|
5037
|
+
"stroke-width": "2",
|
|
5038
|
+
"stroke-linecap": "round",
|
|
5039
|
+
"stroke-linejoin": "round",
|
|
5040
|
+
class: "lucide lucide-skull-icon lucide-skull"
|
|
5041
|
+
}, _cache[0] || (_cache[0] = [
|
|
5042
|
+
createElementVNode("path", { d: "m12.5 17-.5-1-.5 1h1z" }, null, -1 /* HOISTED */),
|
|
5043
|
+
createElementVNode("path", { d: "M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z" }, null, -1 /* HOISTED */),
|
|
5044
|
+
createElementVNode("circle", {
|
|
5045
|
+
cx: "15",
|
|
5046
|
+
cy: "12",
|
|
5047
|
+
r: "1"
|
|
5048
|
+
}, null, -1 /* HOISTED */),
|
|
5049
|
+
createElementVNode("circle", {
|
|
5050
|
+
cx: "9",
|
|
5051
|
+
cy: "12",
|
|
5052
|
+
r: "1"
|
|
5053
|
+
}, null, -1 /* HOISTED */)
|
|
5054
|
+
]), 8 /* PROPS */, _hoisted_1$3))
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
|
|
5058
|
+
};
|
|
5059
|
+
|
|
5060
|
+
script$3.__file = "src/Icons/SkullIcon/SkullIcon.vue";
|
|
5061
|
+
|
|
5062
|
+
const _hoisted_1$2 = ["width", "height", "stroke"];
|
|
5063
|
+
|
|
5064
|
+
|
|
5065
|
+
var script$2 = {
|
|
5066
|
+
__name: 'CalendarIcon',
|
|
5067
|
+
props: {
|
|
5068
|
+
size: {
|
|
5069
|
+
type: [Number, String],
|
|
5070
|
+
default: 24
|
|
5071
|
+
},
|
|
5072
|
+
color: {
|
|
5073
|
+
type: String,
|
|
5074
|
+
default: 'currentColor'
|
|
5075
|
+
}
|
|
5076
|
+
},
|
|
5077
|
+
setup(__props) {
|
|
5078
|
+
|
|
5079
|
+
|
|
5080
|
+
|
|
5081
|
+
return (_ctx, _cache) => {
|
|
5082
|
+
return (openBlock(), createElementBlock("svg", {
|
|
5083
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5084
|
+
width: __props.size,
|
|
5085
|
+
height: __props.size,
|
|
5086
|
+
viewBox: "0 0 24 24",
|
|
5087
|
+
fill: "none",
|
|
5088
|
+
stroke: __props.color,
|
|
5089
|
+
"stroke-width": "2",
|
|
5090
|
+
"stroke-linecap": "round",
|
|
5091
|
+
"stroke-linejoin": "round",
|
|
5092
|
+
class: "lucide lucide-calendar-icon lucide-calendar"
|
|
5093
|
+
}, _cache[0] || (_cache[0] = [
|
|
5094
|
+
createElementVNode("path", { d: "M8 2v4" }, null, -1 /* HOISTED */),
|
|
5095
|
+
createElementVNode("path", { d: "M16 2v4" }, null, -1 /* HOISTED */),
|
|
5096
|
+
createElementVNode("rect", {
|
|
5097
|
+
width: "18",
|
|
5098
|
+
height: "18",
|
|
5099
|
+
x: "3",
|
|
5100
|
+
y: "4",
|
|
5101
|
+
rx: "2"
|
|
5102
|
+
}, null, -1 /* HOISTED */),
|
|
5103
|
+
createElementVNode("path", { d: "M3 10h18" }, null, -1 /* HOISTED */)
|
|
5104
|
+
]), 8 /* PROPS */, _hoisted_1$2))
|
|
5105
|
+
}
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
};
|
|
5109
|
+
|
|
5110
|
+
script$2.__file = "src/Icons/CalendarIcon/CalendarIcon.vue";
|
|
5111
|
+
|
|
5112
|
+
const _hoisted_1$1 = ["width", "height", "stroke"];
|
|
5113
|
+
|
|
5114
|
+
|
|
5115
|
+
var script$1 = {
|
|
5116
|
+
__name: 'SaveIcon',
|
|
5117
|
+
props: {
|
|
5118
|
+
size: {
|
|
5119
|
+
type: [Number, String],
|
|
5120
|
+
default: 24
|
|
5121
|
+
},
|
|
5122
|
+
color: {
|
|
5123
|
+
type: String,
|
|
5124
|
+
default: 'currentColor'
|
|
5125
|
+
}
|
|
5126
|
+
},
|
|
5127
|
+
setup(__props) {
|
|
5128
|
+
|
|
5129
|
+
|
|
5130
|
+
|
|
5131
|
+
return (_ctx, _cache) => {
|
|
5132
|
+
return (openBlock(), createElementBlock("svg", {
|
|
5133
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5134
|
+
width: __props.size,
|
|
5135
|
+
height: __props.size,
|
|
5136
|
+
viewBox: "0 0 24 24",
|
|
5137
|
+
fill: "none",
|
|
5138
|
+
stroke: __props.color,
|
|
5139
|
+
"stroke-width": "2",
|
|
5140
|
+
"stroke-linecap": "round",
|
|
5141
|
+
"stroke-linejoin": "round",
|
|
5142
|
+
class: "lucide lucide-save-icon lucide-save"
|
|
5143
|
+
}, _cache[0] || (_cache[0] = [
|
|
5144
|
+
createElementVNode("path", { d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" }, null, -1 /* HOISTED */),
|
|
5145
|
+
createElementVNode("path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" }, null, -1 /* HOISTED */),
|
|
5146
|
+
createElementVNode("path", { d: "M7 3v4a1 1 0 0 0 1 1h7" }, null, -1 /* HOISTED */)
|
|
5147
|
+
]), 8 /* PROPS */, _hoisted_1$1))
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
|
|
5151
|
+
};
|
|
5152
|
+
|
|
5153
|
+
script$1.__file = "src/Icons/SaveIcon/SaveIcon.vue";
|
|
5154
|
+
|
|
5155
|
+
const _hoisted_1 = ["width", "height", "stroke"];
|
|
5156
|
+
|
|
5157
|
+
|
|
5158
|
+
var script = {
|
|
5159
|
+
__name: 'CreateIcon',
|
|
5160
|
+
props: {
|
|
5161
|
+
size: {
|
|
5162
|
+
type: [Number, String],
|
|
5163
|
+
default: 24
|
|
5164
|
+
},
|
|
5165
|
+
color: {
|
|
5166
|
+
type: String,
|
|
5167
|
+
default: 'currentColor'
|
|
5168
|
+
}
|
|
5169
|
+
},
|
|
5170
|
+
setup(__props) {
|
|
5171
|
+
|
|
5172
|
+
|
|
5173
|
+
|
|
5174
|
+
return (_ctx, _cache) => {
|
|
5175
|
+
return (openBlock(), createElementBlock("svg", {
|
|
5176
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5177
|
+
width: __props.size,
|
|
5178
|
+
height: __props.size,
|
|
5179
|
+
viewBox: "0 0 24 24",
|
|
5180
|
+
fill: "none",
|
|
5181
|
+
stroke: __props.color,
|
|
5182
|
+
"stroke-width": "2",
|
|
5183
|
+
"stroke-linecap": "round",
|
|
5184
|
+
"stroke-linejoin": "round",
|
|
5185
|
+
class: "lucide lucide-badge-plus-icon lucide-badge-plus"
|
|
5186
|
+
}, _cache[0] || (_cache[0] = [
|
|
5187
|
+
createElementVNode("path", { d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" }, null, -1 /* HOISTED */),
|
|
5188
|
+
createElementVNode("line", {
|
|
5189
|
+
x1: "12",
|
|
5190
|
+
x2: "12",
|
|
5191
|
+
y1: "8",
|
|
5192
|
+
y2: "16"
|
|
5193
|
+
}, null, -1 /* HOISTED */),
|
|
5194
|
+
createElementVNode("line", {
|
|
5195
|
+
x1: "8",
|
|
5196
|
+
x2: "16",
|
|
5197
|
+
y1: "12",
|
|
5198
|
+
y2: "12"
|
|
5199
|
+
}, null, -1 /* HOISTED */)
|
|
5200
|
+
]), 8 /* PROPS */, _hoisted_1))
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
|
|
5204
|
+
};
|
|
5205
|
+
|
|
5206
|
+
script.__file = "src/Icons/CreateIcon/CreateIcon.vue";
|
|
5063
5207
|
|
|
5064
|
-
export { script$
|
|
5208
|
+
export { script$j as Badge, script$2 as CalendarIcon, script$x as Card, script$w as CardGrid, script$9 as CheckBoxInput, script$v as Container, script as CreateIcon, script$g as DangerButton, script$4 as DropIcon, script$7 as ImageInput, script$A as Loading, script$f as Modal, script$n as Navbar, script$8 as NumberInput, script$k as Pagination, script$d as RangeView, script$l as RegularButton, script$c as ResetButton, script$6 as ResizeImageUpload, script$1 as SaveIcon, script$h as SecondaryButton, script$B as SectionTitle, script$5 as Selector, script$3 as SkullIcon, script$e as Spinner, script$m as StyledTable, script$b as SubmitButton, script$i as Temperature, script$a as TextInput };
|
|
5065
5209
|
//# sourceMappingURL=index.esm.js.map
|