@stonecrop/beam 0.2.51 → 0.2.52
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/assets/index.css +1 -1
- package/dist/beam.d.ts +12 -0
- package/dist/beam.js +1775 -1659
- package/dist/beam.js.map +1 -1
- package/dist/beam.umd.cjs +7 -7
- package/dist/beam.umd.cjs.map +1 -1
- package/dist/index.js +9 -1
- package/dist/src/index.d.ts +5 -1
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/BeamArrow.vue +4 -3
- package/src/components/BeamBtn.vue +0 -1
- package/src/components/BeamFilter.vue +74 -0
- package/src/components/BeamFilterOption.vue +139 -0
- package/src/components/BeamProgress.vue +12 -18
- package/src/components/FixedTop.vue +13 -0
- package/src/components/SplitColumn.vue +7 -3
- package/src/components/ToggleArrow.vue +35 -0
- package/src/index.ts +12 -0
package/dist/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import ActionFooter from '@/components/ActionFooter.vue';
|
|
2
2
|
import BeamArrow from '@/components/BeamArrow.vue';
|
|
3
3
|
import BeamBtn from '@/components/BeamBtn.vue';
|
|
4
|
+
import BeamFilter from '@/components/BeamFilter.vue';
|
|
5
|
+
import BeamFilterOption from '@/components/BeamFilterOption.vue';
|
|
4
6
|
import BeamHeading from '@/components/BeamHeading.vue';
|
|
5
7
|
import BeamMetadata from '@/components/BeamMetadata.vue';
|
|
6
8
|
import BeamModal from '@/components/BeamModal.vue';
|
|
7
9
|
import BeamModalOutlet from '@/components/BeamModalOutlet.vue';
|
|
8
10
|
import BeamProgress from '@/components/BeamProgress.vue';
|
|
9
11
|
import Confirm from '@/components/Confirm.vue';
|
|
12
|
+
import FixedTop from '@/components/FixedTop.vue';
|
|
10
13
|
import ItemCheck from '@/components/ItemCheck.vue';
|
|
11
14
|
import ItemCount from '@/components/ItemCount.vue';
|
|
12
15
|
import ListAnchor from '@/components/ListAnchor.vue';
|
|
@@ -15,6 +18,7 @@ import ListView from '@/components/ListView.vue';
|
|
|
15
18
|
import Navbar from '@/components/Navbar.vue';
|
|
16
19
|
import ScanInput from '@/components/ScanInput.vue';
|
|
17
20
|
import SplitColumn from '@/components/SplitColumn.vue';
|
|
21
|
+
import ToggleArrow from '@/components/ToggleArrow.vue';
|
|
18
22
|
import { useMqttStream } from '@/composables/mqtt';
|
|
19
23
|
import 'themes/beam.css';
|
|
20
24
|
/**
|
|
@@ -26,12 +30,15 @@ function install(app /* options */) {
|
|
|
26
30
|
app.component('ActionFooter', ActionFooter);
|
|
27
31
|
app.component('BeamArrow', BeamArrow);
|
|
28
32
|
app.component('BeamBtn', BeamBtn);
|
|
33
|
+
app.component('BeamFilter', BeamFilter);
|
|
34
|
+
app.component('BeamFilterOption', BeamFilterOption);
|
|
29
35
|
app.component('BeamHeading', BeamHeading);
|
|
30
36
|
app.component('BeamMetadata', BeamMetadata);
|
|
31
37
|
app.component('BeamModal', BeamModal);
|
|
32
38
|
app.component('BeamModalOutlet', BeamModalOutlet);
|
|
33
39
|
app.component('BeamProgress', BeamProgress);
|
|
34
40
|
app.component('Confirm', Confirm);
|
|
41
|
+
app.component('FixedTop', FixedTop);
|
|
35
42
|
app.component('ItemCheck', ItemCheck);
|
|
36
43
|
app.component('ItemCount', ItemCount);
|
|
37
44
|
app.component('ListAnchor', ListAnchor);
|
|
@@ -40,5 +47,6 @@ function install(app /* options */) {
|
|
|
40
47
|
app.component('Navbar', Navbar);
|
|
41
48
|
app.component('ScanInput', ScanInput);
|
|
42
49
|
app.component('SplitColumn', SplitColumn);
|
|
50
|
+
app.component('ToggleArrow', ToggleArrow);
|
|
43
51
|
}
|
|
44
|
-
export { ActionFooter, BeamArrow, BeamBtn, BeamHeading, BeamMetadata, BeamModal, BeamModalOutlet, BeamProgress, Confirm, ItemCheck, ItemCount, ListAnchor, ListItem, ListView, Navbar, ScanInput, SplitColumn, install, useMqttStream, };
|
|
52
|
+
export { ActionFooter, BeamArrow, BeamBtn, BeamFilter, BeamFilterOption, BeamHeading, BeamMetadata, BeamModal, BeamModalOutlet, BeamProgress, Confirm, FixedTop, ItemCheck, ItemCount, ListAnchor, ListItem, ListView, Navbar, ScanInput, SplitColumn, ToggleArrow, install, useMqttStream, };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,12 +2,15 @@ import { App } from 'vue';
|
|
|
2
2
|
import ActionFooter from '@/components/ActionFooter.vue';
|
|
3
3
|
import BeamArrow from '@/components/BeamArrow.vue';
|
|
4
4
|
import BeamBtn from '@/components/BeamBtn.vue';
|
|
5
|
+
import BeamFilter from '@/components/BeamFilter.vue';
|
|
6
|
+
import BeamFilterOption from '@/components/BeamFilterOption.vue';
|
|
5
7
|
import BeamHeading from '@/components/BeamHeading.vue';
|
|
6
8
|
import BeamMetadata from '@/components/BeamMetadata.vue';
|
|
7
9
|
import BeamModal from '@/components/BeamModal.vue';
|
|
8
10
|
import BeamModalOutlet from '@/components/BeamModalOutlet.vue';
|
|
9
11
|
import BeamProgress from '@/components/BeamProgress.vue';
|
|
10
12
|
import Confirm from '@/components/Confirm.vue';
|
|
13
|
+
import FixedTop from '@/components/FixedTop.vue';
|
|
11
14
|
import ItemCheck from '@/components/ItemCheck.vue';
|
|
12
15
|
import ItemCount from '@/components/ItemCount.vue';
|
|
13
16
|
import ListAnchor from '@/components/ListAnchor.vue';
|
|
@@ -16,6 +19,7 @@ import ListView from '@/components/ListView.vue';
|
|
|
16
19
|
import Navbar from '@/components/Navbar.vue';
|
|
17
20
|
import ScanInput from '@/components/ScanInput.vue';
|
|
18
21
|
import SplitColumn from '@/components/SplitColumn.vue';
|
|
22
|
+
import ToggleArrow from '@/components/ToggleArrow.vue';
|
|
19
23
|
import { useMqttStream } from '@/composables/mqtt';
|
|
20
24
|
import 'themes/beam.css';
|
|
21
25
|
/**
|
|
@@ -24,5 +28,5 @@ import 'themes/beam.css';
|
|
|
24
28
|
* @public
|
|
25
29
|
*/
|
|
26
30
|
declare function install(app: App): void;
|
|
27
|
-
export { ActionFooter, BeamArrow, BeamBtn, BeamHeading, BeamMetadata, BeamModal, BeamModalOutlet, BeamProgress, Confirm, ItemCheck, ItemCount, ListAnchor, ListItem, ListView, Navbar, ScanInput, SplitColumn, install, useMqttStream, };
|
|
31
|
+
export { ActionFooter, BeamArrow, BeamBtn, BeamFilter, BeamFilterOption, BeamHeading, BeamMetadata, BeamModal, BeamModalOutlet, BeamProgress, Confirm, FixedTop, ItemCheck, ItemCount, ListAnchor, ListItem, ListView, Navbar, ScanInput, SplitColumn, ToggleArrow, install, useMqttStream, };
|
|
28
32
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,OAAO,YAAY,MAAM,+BAA+B,CAAA;AACxD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAC9C,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,YAAY,MAAM,+BAA+B,CAAA;AACxD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,eAAe,MAAM,kCAAkC,CAAA;AAC9D,OAAO,YAAY,MAAM,+BAA+B,CAAA;AACxD,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAC9C,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAChD,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAChD,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAC5C,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,iBAAiB,CAAA;AAExB;;;;GAIG;AACH,iBAAS,OAAO,CAAC,GAAG,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,OAAO,YAAY,MAAM,+BAA+B,CAAA;AACxD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAC9C,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,gBAAgB,MAAM,mCAAmC,CAAA;AAChE,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,YAAY,MAAM,+BAA+B,CAAA;AACxD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,eAAe,MAAM,kCAAkC,CAAA;AAC9D,OAAO,YAAY,MAAM,+BAA+B,CAAA;AACxD,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAC9C,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAChD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAChD,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAChD,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAC5C,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,iBAAiB,CAAA;AAExB;;;;GAIG;AACH,iBAAS,OAAO,CAAC,GAAG,EAAE,GAAG,QAsBxB;AAED,OAAO,EACN,YAAY,EACZ,SAAS,EACT,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,eAAe,EACf,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,SAAS,EACT,WAAW,EACX,WAAW,EACX,OAAO,EACP,aAAa,GACb,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
|
-
defineProps(
|
|
14
|
-
color: String,
|
|
15
|
-
})
|
|
13
|
+
const { color } = defineProps<{ color?: string }>()
|
|
16
14
|
</script>
|
|
15
|
+
|
|
17
16
|
<style scoped>
|
|
18
17
|
.beam_metadata_arrow {
|
|
19
18
|
align-self: center;
|
|
@@ -22,11 +21,13 @@ defineProps({
|
|
|
22
21
|
display: flex;
|
|
23
22
|
align-items: center;
|
|
24
23
|
}
|
|
24
|
+
|
|
25
25
|
.beam_metadata_arrow-body {
|
|
26
26
|
width: 100%;
|
|
27
27
|
height: 10px;
|
|
28
28
|
background: #c4c4c4;
|
|
29
29
|
}
|
|
30
|
+
|
|
30
31
|
.beam_metadata_arrow-head {
|
|
31
32
|
& svg {
|
|
32
33
|
width: 20px;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="beam-filters" class="beam_filters" :style="{ height: isOpen ? '100%' : headerHeight }">
|
|
3
|
+
<div ref="beam-filters-header" @click="toggle" class="beam_filters-heading">
|
|
4
|
+
<ToggleArrow :open="isOpen" />
|
|
5
|
+
<BeamHeading> Filter </BeamHeading>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="beam_filters-options">
|
|
8
|
+
<slot>
|
|
9
|
+
<p>OPTIONS GO HERE</p>
|
|
10
|
+
</slot>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import { ref, onMounted, useTemplateRef } from 'vue'
|
|
17
|
+
|
|
18
|
+
const header = useTemplateRef('beam-filters-header')
|
|
19
|
+
const beamFilters = useTemplateRef('beam-filters')
|
|
20
|
+
|
|
21
|
+
const isOpen = ref(false)
|
|
22
|
+
const headerHeight = ref<string>()
|
|
23
|
+
const totalHeight = ref<string>()
|
|
24
|
+
|
|
25
|
+
const toggle = () => {
|
|
26
|
+
isOpen.value = !isOpen.value
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
onMounted(() => {
|
|
30
|
+
headerHeight.value = getTotalHeight(header.value)
|
|
31
|
+
totalHeight.value = getTotalHeight(beamFilters.value)
|
|
32
|
+
beamFilters.value.style.height = headerHeight.value
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const getTotalHeight = (el: HTMLDivElement) => {
|
|
36
|
+
const height = el.getBoundingClientRect().height
|
|
37
|
+
const marginTop = parseInt(getComputedStyle(el).marginTop)
|
|
38
|
+
const marginBottom = parseInt(getComputedStyle(el).marginBottom)
|
|
39
|
+
return height + marginTop + marginBottom + 'px'
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style scoped>
|
|
44
|
+
.beam_filters {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
transition: all 0.2s ease-in-out;
|
|
48
|
+
border-bottom: 1px solid var(--row-border-color);
|
|
49
|
+
background: white;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.beam_filters-heading {
|
|
53
|
+
background: var(--primary-color);
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
padding-left: 1rem;
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
padding: 0 2rem;
|
|
61
|
+
|
|
62
|
+
& > h1 {
|
|
63
|
+
font-size: 1rem;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.beam_filters-options {
|
|
68
|
+
background: white;
|
|
69
|
+
margin: 1rem;
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
padding: 0 2rem;
|
|
72
|
+
margin-bottom: 2rem;
|
|
73
|
+
}
|
|
74
|
+
</style>
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BeamHeading class="beam_filter-option-heading">{{ title }}</BeamHeading>
|
|
3
|
+
<div @click="toggle" class="beam_filter-option">
|
|
4
|
+
<div ref="select" class="beam_filter-option-select">
|
|
5
|
+
<div class="beam_filter-arrow">
|
|
6
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.36 70.71">
|
|
7
|
+
<polygon points="0 70.71 0 0 35.36 35.36 0 70.71" />
|
|
8
|
+
</svg>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="beam_filter-label">
|
|
11
|
+
<label>{{ choice }}</label>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<ul ref="menu" v-if="open" class="beam_filter-select-menu">
|
|
15
|
+
<li
|
|
16
|
+
v-for="(opt, index) in choices"
|
|
17
|
+
:class="{ selected: choice == opt.choice }"
|
|
18
|
+
:data-value="opt.value"
|
|
19
|
+
:key="index"
|
|
20
|
+
class="beam_filter-select-option"
|
|
21
|
+
@click="updateValue(opt)">
|
|
22
|
+
{{ opt.choice }}
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script setup lang="ts">
|
|
29
|
+
import { ref } from 'vue'
|
|
30
|
+
|
|
31
|
+
type Choice = {
|
|
32
|
+
choice: string
|
|
33
|
+
value: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const { title = 'title', choices = [] } = defineProps<{
|
|
37
|
+
choices: Choice[]
|
|
38
|
+
title?: string
|
|
39
|
+
}>()
|
|
40
|
+
|
|
41
|
+
const open = ref(false)
|
|
42
|
+
const value = ref(choices[0].value)
|
|
43
|
+
const choice = ref(choices[0].choice)
|
|
44
|
+
|
|
45
|
+
const updateValue = (data: Choice) => {
|
|
46
|
+
choice.value = data.choice
|
|
47
|
+
value.value = data.value
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const toggle = () => {
|
|
51
|
+
open.value = !open.value
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style scoped>
|
|
56
|
+
.beam_filter-option {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
position: relative;
|
|
59
|
+
margin-bottom: 1rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.beam_filter-option-heading {
|
|
63
|
+
font-size: 1rem;
|
|
64
|
+
padding-bottom: 0.25rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.beam_filter-option-select {
|
|
68
|
+
position: relative;
|
|
69
|
+
appearance: none;
|
|
70
|
+
border: 1px solid var(--row-border-color);
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
color: var(--primary-text-color);
|
|
73
|
+
font-size: 0.8rem;
|
|
74
|
+
font-family: var(--font-family);
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: stretch;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
label {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
padding: 0.5rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.beam_filter-arrow {
|
|
85
|
+
background: var(--primary-color);
|
|
86
|
+
color: var(--primary-text-color);
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
width: 5px;
|
|
91
|
+
padding: 0.5rem 0.7rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.beam_filter-label {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
svg {
|
|
100
|
+
fill: var(--primary-text-color);
|
|
101
|
+
width: 5px;
|
|
102
|
+
transform: rotate(90deg);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.beam_filter-select-menu {
|
|
106
|
+
/* position: absolute; */
|
|
107
|
+
z-index: 100;
|
|
108
|
+
border-top: none;
|
|
109
|
+
left: 0;
|
|
110
|
+
border: 1px solid var(--row-border-color);
|
|
111
|
+
padding: 0rem;
|
|
112
|
+
list-style: none;
|
|
113
|
+
width: 100%;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
max-height: 200px;
|
|
116
|
+
overflow-y: scroll;
|
|
117
|
+
margin: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.beam_filter-select-option {
|
|
121
|
+
font-size: 0.8rem;
|
|
122
|
+
font-family: var(--font-family);
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
color: var(--primary-text-color);
|
|
125
|
+
border-bottom: 1px solid var(--row-border-color);
|
|
126
|
+
padding: 0.5rem;
|
|
127
|
+
&:hover {
|
|
128
|
+
background: var(--primary-color);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.selected {
|
|
133
|
+
background: var(--row-border-color);
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
background: var(--row-border-color);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
</style>
|
|
@@ -7,23 +7,17 @@
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import { computed } from 'vue'
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
label
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
default: 'Complete',
|
|
22
|
-
},
|
|
23
|
-
complete: Boolean,
|
|
24
|
-
})
|
|
10
|
+
const {
|
|
11
|
+
label = 'Status',
|
|
12
|
+
progressMessage = 'In Progress',
|
|
13
|
+
completeMessage = 'Complete',
|
|
14
|
+
complete = false,
|
|
15
|
+
} = defineProps<{
|
|
16
|
+
label?: string
|
|
17
|
+
progressMessage?: string
|
|
18
|
+
completeMessage?: string
|
|
19
|
+
complete?: boolean
|
|
20
|
+
}>()
|
|
25
21
|
|
|
26
|
-
const statusMessage = computed(() =>
|
|
27
|
-
return props.complete ? props.completeMessage : props.progressMessage
|
|
28
|
-
})
|
|
22
|
+
const statusMessage = computed(() => (complete ? completeMessage : progressMessage))
|
|
29
23
|
</script>
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
12
|
</template>
|
|
13
|
+
|
|
13
14
|
<script setup lang="ts">
|
|
14
|
-
const
|
|
15
|
-
justifyContent?:
|
|
16
|
-
alignItems?:
|
|
15
|
+
const { justifyContent, alignItems } = defineProps<{
|
|
16
|
+
justifyContent?: string
|
|
17
|
+
alignItems?: string
|
|
17
18
|
}>()
|
|
18
19
|
</script>
|
|
20
|
+
|
|
19
21
|
<style scoped>
|
|
20
22
|
.two-column {
|
|
21
23
|
display: flex;
|
|
@@ -29,6 +31,7 @@ const props = defineProps<{
|
|
|
29
31
|
gap: 0;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
34
|
+
|
|
32
35
|
.column {
|
|
33
36
|
flex-grow: 1;
|
|
34
37
|
width: 50%;
|
|
@@ -36,6 +39,7 @@ const props = defineProps<{
|
|
|
36
39
|
width: 100%;
|
|
37
40
|
}
|
|
38
41
|
}
|
|
42
|
+
|
|
39
43
|
.column-right {
|
|
40
44
|
text-align: right;
|
|
41
45
|
@media screen and (max-width: 400px) {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="arrow-icon" :class="{ open }">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.36 70.71">
|
|
4
|
+
<polygon points="0 70.71 0 0 35.36 35.36 0 70.71" />
|
|
5
|
+
</svg>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts">
|
|
10
|
+
const { open } = defineProps<{ open: boolean }>()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<style scoped>
|
|
14
|
+
svg {
|
|
15
|
+
width: 100%;
|
|
16
|
+
overflow: visible;
|
|
17
|
+
fill: var(--primary-text-color);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.arrow-icon {
|
|
21
|
+
width: 0.4rem;
|
|
22
|
+
transform: rotate(0);
|
|
23
|
+
transform-origin: center;
|
|
24
|
+
position: relative;
|
|
25
|
+
transition: all 0.1s ease-in-out;
|
|
26
|
+
margin: 0.5rem;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.open {
|
|
33
|
+
transform: rotate(90deg);
|
|
34
|
+
}
|
|
35
|
+
</style>
|
package/src/index.ts
CHANGED
|
@@ -3,12 +3,15 @@ import { App } from 'vue'
|
|
|
3
3
|
import ActionFooter from '@/components/ActionFooter.vue'
|
|
4
4
|
import BeamArrow from '@/components/BeamArrow.vue'
|
|
5
5
|
import BeamBtn from '@/components/BeamBtn.vue'
|
|
6
|
+
import BeamFilter from '@/components/BeamFilter.vue'
|
|
7
|
+
import BeamFilterOption from '@/components/BeamFilterOption.vue'
|
|
6
8
|
import BeamHeading from '@/components/BeamHeading.vue'
|
|
7
9
|
import BeamMetadata from '@/components/BeamMetadata.vue'
|
|
8
10
|
import BeamModal from '@/components/BeamModal.vue'
|
|
9
11
|
import BeamModalOutlet from '@/components/BeamModalOutlet.vue'
|
|
10
12
|
import BeamProgress from '@/components/BeamProgress.vue'
|
|
11
13
|
import Confirm from '@/components/Confirm.vue'
|
|
14
|
+
import FixedTop from '@/components/FixedTop.vue'
|
|
12
15
|
import ItemCheck from '@/components/ItemCheck.vue'
|
|
13
16
|
import ItemCount from '@/components/ItemCount.vue'
|
|
14
17
|
import ListAnchor from '@/components/ListAnchor.vue'
|
|
@@ -17,6 +20,7 @@ import ListView from '@/components/ListView.vue'
|
|
|
17
20
|
import Navbar from '@/components/Navbar.vue'
|
|
18
21
|
import ScanInput from '@/components/ScanInput.vue'
|
|
19
22
|
import SplitColumn from '@/components/SplitColumn.vue'
|
|
23
|
+
import ToggleArrow from '@/components/ToggleArrow.vue'
|
|
20
24
|
import { useMqttStream } from '@/composables/mqtt'
|
|
21
25
|
import 'themes/beam.css'
|
|
22
26
|
|
|
@@ -29,12 +33,15 @@ function install(app: App /* options */) {
|
|
|
29
33
|
app.component('ActionFooter', ActionFooter)
|
|
30
34
|
app.component('BeamArrow', BeamArrow)
|
|
31
35
|
app.component('BeamBtn', BeamBtn)
|
|
36
|
+
app.component('BeamFilter', BeamFilter)
|
|
37
|
+
app.component('BeamFilterOption', BeamFilterOption)
|
|
32
38
|
app.component('BeamHeading', BeamHeading)
|
|
33
39
|
app.component('BeamMetadata', BeamMetadata)
|
|
34
40
|
app.component('BeamModal', BeamModal)
|
|
35
41
|
app.component('BeamModalOutlet', BeamModalOutlet)
|
|
36
42
|
app.component('BeamProgress', BeamProgress)
|
|
37
43
|
app.component('Confirm', Confirm)
|
|
44
|
+
app.component('FixedTop', FixedTop)
|
|
38
45
|
app.component('ItemCheck', ItemCheck)
|
|
39
46
|
app.component('ItemCount', ItemCount)
|
|
40
47
|
app.component('ListAnchor', ListAnchor)
|
|
@@ -43,18 +50,22 @@ function install(app: App /* options */) {
|
|
|
43
50
|
app.component('Navbar', Navbar)
|
|
44
51
|
app.component('ScanInput', ScanInput)
|
|
45
52
|
app.component('SplitColumn', SplitColumn)
|
|
53
|
+
app.component('ToggleArrow', ToggleArrow)
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
export {
|
|
49
57
|
ActionFooter,
|
|
50
58
|
BeamArrow,
|
|
51
59
|
BeamBtn,
|
|
60
|
+
BeamFilter,
|
|
61
|
+
BeamFilterOption,
|
|
52
62
|
BeamHeading,
|
|
53
63
|
BeamMetadata,
|
|
54
64
|
BeamModal,
|
|
55
65
|
BeamModalOutlet,
|
|
56
66
|
BeamProgress,
|
|
57
67
|
Confirm,
|
|
68
|
+
FixedTop,
|
|
58
69
|
ItemCheck,
|
|
59
70
|
ItemCount,
|
|
60
71
|
ListAnchor,
|
|
@@ -63,6 +74,7 @@ export {
|
|
|
63
74
|
Navbar,
|
|
64
75
|
ScanInput,
|
|
65
76
|
SplitColumn,
|
|
77
|
+
ToggleArrow,
|
|
66
78
|
install,
|
|
67
79
|
useMqttStream,
|
|
68
80
|
}
|