@stonecrop/beam 0.4.6 → 0.4.8
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.js +1055 -1049
- package/dist/beam.js.map +1 -1
- package/dist/beam.umd.cjs +7 -7
- package/dist/beam.umd.cjs.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +17 -15
- package/src/components/BeamFilter.vue +9 -3
- package/src/components/BeamFilterOption.vue +34 -22
package/dist/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/beam",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"src/*"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@vueuse/core": "^12.
|
|
33
|
-
"mqtt": "^5.10.
|
|
32
|
+
"@vueuse/core": "^12.7.0",
|
|
33
|
+
"mqtt": "^5.10.3",
|
|
34
34
|
"onscan.js": "^1.5.2",
|
|
35
|
-
"vue": "^3.5.
|
|
35
|
+
"vue": "^3.5.13"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@microsoft/api-documenter": "^7.26.
|
|
39
|
-
"@rushstack/heft": "^0.68.
|
|
38
|
+
"@microsoft/api-documenter": "^7.26.10",
|
|
39
|
+
"@rushstack/heft": "^0.68.18",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
41
41
|
"@typescript-eslint/parser": "^7.14.1",
|
|
42
|
-
"@vitejs/plugin-vue": "^5.1
|
|
43
|
-
"@vitest/coverage-istanbul": "^
|
|
44
|
-
"@vitest/ui": "^
|
|
42
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
43
|
+
"@vitest/coverage-istanbul": "^3.0.6",
|
|
44
|
+
"@vitest/ui": "^3.0.6",
|
|
45
45
|
"@vue/test-utils": "^2.4.6",
|
|
46
|
-
"cypress": "^
|
|
46
|
+
"cypress": "^14.0.3",
|
|
47
47
|
"eslint": "^8.40.0",
|
|
48
48
|
"eslint-config-prettier": "^8.8.0",
|
|
49
49
|
"eslint-plugin-vue": "^9.11.1",
|
|
50
50
|
"sass": "^1.75.0",
|
|
51
51
|
"typescript": "~5.6.3",
|
|
52
|
-
"vite-plugin-lib-inject-css": "^2.
|
|
53
|
-
"vite": "^
|
|
54
|
-
"vitest": "^
|
|
55
|
-
"vue-router": "^4.
|
|
52
|
+
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
53
|
+
"vite": "^6.1.1",
|
|
54
|
+
"vitest": "^3.0.6",
|
|
55
|
+
"vue-router": "^4.5.0",
|
|
56
56
|
"stonecrop-rig": "0.2.22"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
@@ -62,13 +62,15 @@
|
|
|
62
62
|
"node": ">=20.11.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
|
+
"_phase:build": "heft build && vite build && rushx docs",
|
|
65
66
|
"prepublish": "heft build && vite build && rushx docs",
|
|
66
67
|
"build": "heft build && vite build && rushx docs",
|
|
67
68
|
"dev": "vite",
|
|
68
69
|
"docs": "api-documenter markdown -i temp -o ../docs/beam",
|
|
69
70
|
"lint": "eslint . --ext .ts,.vue",
|
|
70
71
|
"preview": "vite preview",
|
|
71
|
-
"test": "vitest",
|
|
72
|
+
"test": "vitest run --coverage.enabled false",
|
|
73
|
+
"test:watch": "vitest watch",
|
|
72
74
|
"test:coverage": "vitest run --coverage",
|
|
73
75
|
"test:ui": "vitest --ui"
|
|
74
76
|
}
|
|
@@ -68,10 +68,16 @@ const getTotalHeight = (el: HTMLDivElement) => {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.beam_filters-options {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: row;
|
|
73
|
+
column-gap: 1rem;
|
|
71
74
|
background: white;
|
|
72
|
-
margin: 1rem;
|
|
73
75
|
box-sizing: border-box;
|
|
74
|
-
padding: 0
|
|
75
|
-
margin
|
|
76
|
+
padding: 0 1rem;
|
|
77
|
+
margin: 1rem 0;
|
|
78
|
+
|
|
79
|
+
@media (max-width: 479px) {
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
}
|
|
76
82
|
}
|
|
77
83
|
</style>
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<div class="beam_filter-option
|
|
5
|
-
<div class="beam_filter-
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
2
|
+
<div class="beam_filter-container">
|
|
3
|
+
<BeamHeading class="beam_filter-option-heading">{{ title }}</BeamHeading>
|
|
4
|
+
<div @click="open = !open" class="beam_filter-option">
|
|
5
|
+
<div class="beam_filter-option-select">
|
|
6
|
+
<div class="beam_filter-arrow">
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.36 70.71">
|
|
8
|
+
<polygon points="0 70.71 0 0 35.36 35.36 0 70.71" />
|
|
9
|
+
</svg>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="beam_filter-label">
|
|
12
|
+
<label>{{ label }}</label>
|
|
13
|
+
</div>
|
|
9
14
|
</div>
|
|
10
|
-
<div class="beam_filter-label">
|
|
11
|
-
<label>{{ label }}</label>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
<ul ref="menu" v-if="open" class="beam_filter-select-menu">
|
|
17
|
+
<li
|
|
18
|
+
v-for="choice in choices"
|
|
19
|
+
:class="{ selected: label == choice.label }"
|
|
20
|
+
:data-value="choice.value"
|
|
21
|
+
:key="choice.value"
|
|
22
|
+
class="beam_filter-select-option"
|
|
23
|
+
@click="selectChoice(choice)">
|
|
24
|
+
{{ choice.label }}
|
|
25
|
+
</li>
|
|
26
|
+
</ul>
|
|
27
|
+
</div>
|
|
26
28
|
</div>
|
|
27
29
|
</template>
|
|
28
30
|
|
|
@@ -135,4 +137,14 @@ svg {
|
|
|
135
137
|
background: var(--sc-row-border-color);
|
|
136
138
|
}
|
|
137
139
|
}
|
|
140
|
+
.beam_filter-container {
|
|
141
|
+
flex-grow: 1;
|
|
142
|
+
max-width: 300px;
|
|
143
|
+
width: 50%;
|
|
144
|
+
|
|
145
|
+
@media (max-width: 479px) {
|
|
146
|
+
width: 100%;
|
|
147
|
+
max-width: 100%;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
138
150
|
</style>
|