@simple-reporting/base 1.0.36 → 1.0.37
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/dev/package.json
CHANGED
|
@@ -24,17 +24,14 @@
|
|
|
24
24
|
"postinstall": "srl prepare"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@simple-reporting/base": "^1.0.
|
|
28
|
-
"axios": "^1.12.2",
|
|
27
|
+
"@simple-reporting/base": "^1.0.37",
|
|
29
28
|
"chalk": "^5.6.2",
|
|
30
29
|
"exceljs": "^4.4.0",
|
|
31
30
|
"file-saver": "^2.0.5",
|
|
32
31
|
"highcharts": "^11.4.8",
|
|
33
32
|
"modern-css-reset": "^1.4.0",
|
|
34
33
|
"node-html-parser": "^7.0.1",
|
|
35
|
-
"pinia": "^2.3.1",
|
|
36
34
|
"scrollmonitor": "^1.2.11",
|
|
37
|
-
"vite-plugin-pwa": "^0.21.2",
|
|
38
35
|
"vue": "^3.5.13",
|
|
39
36
|
"vue-i18n": "^11.1.12",
|
|
40
37
|
"vue-router": "^4.5.1",
|
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
|
|
2
4
|
const props = defineProps<{
|
|
3
5
|
accordion: {
|
|
4
6
|
id: string;
|
|
@@ -10,15 +12,22 @@ const props = defineProps<{
|
|
|
10
12
|
level: number
|
|
11
13
|
}>()
|
|
12
14
|
|
|
15
|
+
const headingLevel = computed(() => Math.min(Math.max(props.level + 2, 2), 6))
|
|
16
|
+
const headingTag = computed(() => `h${headingLevel.value}`)
|
|
17
|
+
const headingClass = computed(() => `srl-title-h${headingLevel.value}`)
|
|
18
|
+
|
|
13
19
|
</script>
|
|
14
20
|
|
|
15
21
|
<template>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
<component :is="headingTag" :class="headingClass">
|
|
23
|
+
<button
|
|
24
|
+
type="button"
|
|
25
|
+
class="srl-category-accordion__head--btn"
|
|
26
|
+
:aria-expanded="props.accordion.state"
|
|
27
|
+
:aria-controls="props.accordion.id"
|
|
28
|
+
@click="props.accordion.toggle()"
|
|
29
|
+
>
|
|
30
|
+
<slot/>
|
|
31
|
+
</button>
|
|
32
|
+
</component>
|
|
24
33
|
</template>
|