@stonecrop/beam 0.4.17 → 0.4.19
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 +7213 -7624
- package/dist/beam.js.map +1 -1
- package/dist/beam.tsbuildinfo +1 -1
- package/dist/beam.umd.cjs +10 -7
- package/dist/beam.umd.cjs.map +1 -1
- package/dist/src/composables/mqtt.d.ts.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +22 -22
- package/src/components/ItemCount.vue +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/composables/mqtt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/composables/mqtt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAU,SAAS,WAAW;;cAwCvD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GAAU,MAAM,MAAM,EAAE,MAAM,MAAM,qBAuC5D,CAAA"}
|
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.19",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -29,31 +29,31 @@
|
|
|
29
29
|
"src/*"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@vueuse/components": "^
|
|
33
|
-
"@vueuse/core": "^
|
|
34
|
-
"mqtt": "^5.
|
|
32
|
+
"@vueuse/components": "^13.4.0",
|
|
33
|
+
"@vueuse/core": "^13.4.0",
|
|
34
|
+
"mqtt": "^5.13.1",
|
|
35
35
|
"onscan.js": "^1.5.2",
|
|
36
|
-
"vue": "^3.5.
|
|
36
|
+
"vue": "^3.5.17"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@microsoft/api-documenter": "^7.26.
|
|
40
|
-
"@rushstack/heft": "^0.
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
42
|
-
"@typescript-eslint/parser": "^7.
|
|
43
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
44
|
-
"@vitest/coverage-istanbul": "^3.
|
|
45
|
-
"@vitest/ui": "^3.
|
|
39
|
+
"@microsoft/api-documenter": "^7.26.29",
|
|
40
|
+
"@rushstack/heft": "^0.74.0",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
42
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
43
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
44
|
+
"@vitest/coverage-istanbul": "^3.2.4",
|
|
45
|
+
"@vitest/ui": "^3.2.4",
|
|
46
46
|
"@vue/test-utils": "^2.4.6",
|
|
47
|
-
"cypress": "^14.
|
|
48
|
-
"eslint": "^8.
|
|
49
|
-
"eslint-config-prettier": "^8.
|
|
50
|
-
"eslint-plugin-vue": "^9.
|
|
51
|
-
"sass": "^1.
|
|
52
|
-
"typescript": "
|
|
53
|
-
"vite-plugin-lib-inject-css": "^2.2.
|
|
54
|
-
"vite": "^6.
|
|
55
|
-
"vitest": "^3.
|
|
56
|
-
"vue-router": "^4.5.
|
|
47
|
+
"cypress": "^14.5.1",
|
|
48
|
+
"eslint": "^8.57.1",
|
|
49
|
+
"eslint-config-prettier": "^8.10.0",
|
|
50
|
+
"eslint-plugin-vue": "^9.33.0",
|
|
51
|
+
"sass": "^1.89.2",
|
|
52
|
+
"typescript": "^5.8.3",
|
|
53
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
54
|
+
"vite": "^6.3.5",
|
|
55
|
+
"vitest": "^3.2.4",
|
|
56
|
+
"vue-router": "^4.5.1",
|
|
57
57
|
"stonecrop-rig": "0.2.22"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
@@ -19,7 +19,7 @@ import { computed, type HTMLAttributes } from 'vue'
|
|
|
19
19
|
|
|
20
20
|
const count = defineModel<number>({ required: true })
|
|
21
21
|
const {
|
|
22
|
-
denominator,
|
|
22
|
+
denominator = 0,
|
|
23
23
|
debounce = 300,
|
|
24
24
|
editable = true,
|
|
25
25
|
uom = '',
|
|
@@ -30,11 +30,11 @@ const {
|
|
|
30
30
|
uom?: string
|
|
31
31
|
}>()
|
|
32
32
|
|
|
33
|
-
const isCountComplete = computed(() => count.value === denominator)
|
|
33
|
+
const isCountComplete = computed(() => denominator !== 0 && count.value === denominator)
|
|
34
34
|
|
|
35
35
|
const validate = (payload: ClipboardEvent | InputEvent | MouseEvent) => {
|
|
36
36
|
const newValue = Number((payload.target as HTMLElement).innerHTML) || 0
|
|
37
|
-
count.value = Math.min(newValue, denominator)
|
|
37
|
+
count.value = denominator ? Math.min(newValue, denominator) : newValue
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
const debouncedRequest = useDebounceFn((payload: InputEvent) => validate(payload), debounce)
|