origam 2.37.34 → 2.37.36
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/CHANGELOG.md +28 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +4 -0
- package/dist/src/assets/css/tokens/light.css +2 -0
- package/dist/src/assets/scss/tokens/_dark.scss +4 -0
- package/dist/src/assets/scss/tokens/_light.scss +2 -0
- package/dist/src/components/Alert/OrigamAlert.vue +4 -4
- package/dist/src/components/Badge/OrigamBadge.vue +4 -4
- package/dist/src/components/Btn/OrigamBtn.vue +2 -2
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +2 -1
- package/dist/src/components/Chart/OrigamChartBullet.vue +2 -1
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +2 -1
- package/dist/src/components/Chart/OrigamChartCartesian.vue +2 -2
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +2 -1
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +2 -1
- package/dist/src/components/Chart/OrigamChartMap.vue +2 -1
- package/dist/src/components/Chart/OrigamChartPareto.vue +2 -1
- package/dist/src/components/Chart/OrigamChartPictorial.vue +2 -1
- package/dist/src/components/Chart/OrigamChartPolar.vue +2 -1
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +2 -1
- package/dist/src/components/Chart/OrigamChartPyramid.vue +2 -1
- package/dist/src/components/Chart/OrigamChartRadar.vue +2 -1
- package/dist/src/components/Chart/OrigamChartSankey.vue +2 -1
- package/dist/src/components/Chart/OrigamChartSparkline.vue +2 -1
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +2 -1
- package/dist/src/components/Chart/OrigamChartSunburst.vue +2 -1
- package/dist/src/components/Chart/OrigamChartTreemap.vue +2 -1
- package/dist/src/components/Chart/OrigamChartVariwide.vue +2 -1
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +2 -1
- package/dist/src/consts/Chart/chart.const.cjs +3 -2
- package/dist/src/consts/Chart/chart.const.d.ts +13 -0
- package/dist/src/consts/Chart/chart.const.js +1 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -306,6 +306,8 @@
|
|
|
306
306
|
--origam-btn---density: 0px;
|
|
307
307
|
--origam-btn---width: auto;
|
|
308
308
|
--origam-btn---min-width: 64px;
|
|
309
|
+
--origam-btn__content---justify-content: center;
|
|
310
|
+
--origam-btn__content---text-align: center;
|
|
309
311
|
--origam-btn---max-width: 100%;
|
|
310
312
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
311
313
|
--origam-btn---max-height: 100%;
|
|
@@ -3352,6 +3354,8 @@
|
|
|
3352
3354
|
--origam-btn---density: 0px;
|
|
3353
3355
|
--origam-btn---width: auto;
|
|
3354
3356
|
--origam-btn---min-width: 64px;
|
|
3357
|
+
--origam-btn__content---justify-content: center;
|
|
3358
|
+
--origam-btn__content---text-align: center;
|
|
3355
3359
|
--origam-btn---max-width: 100%;
|
|
3356
3360
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
3357
3361
|
--origam-btn---max-height: 100%;
|
|
@@ -206,6 +206,8 @@
|
|
|
206
206
|
--origam-btn---density: 0px;
|
|
207
207
|
--origam-btn---width: auto;
|
|
208
208
|
--origam-btn---min-width: 64px;
|
|
209
|
+
--origam-btn__content---justify-content: center;
|
|
210
|
+
--origam-btn__content---text-align: center;
|
|
209
211
|
--origam-btn---max-width: 100%;
|
|
210
212
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
211
213
|
--origam-btn---max-height: 100%;
|
|
@@ -306,6 +306,8 @@
|
|
|
306
306
|
--origam-btn---density: 0px;
|
|
307
307
|
--origam-btn---width: auto;
|
|
308
308
|
--origam-btn---min-width: 64px;
|
|
309
|
+
--origam-btn__content---justify-content: center;
|
|
310
|
+
--origam-btn__content---text-align: center;
|
|
309
311
|
--origam-btn---max-width: 100%;
|
|
310
312
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
311
313
|
--origam-btn---max-height: 100%;
|
|
@@ -3352,6 +3354,8 @@
|
|
|
3352
3354
|
--origam-btn---density: 0px;
|
|
3353
3355
|
--origam-btn---width: auto;
|
|
3354
3356
|
--origam-btn---min-width: 64px;
|
|
3357
|
+
--origam-btn__content---justify-content: center;
|
|
3358
|
+
--origam-btn__content---text-align: center;
|
|
3355
3359
|
--origam-btn---max-width: 100%;
|
|
3356
3360
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
3357
3361
|
--origam-btn---max-height: 100%;
|
|
@@ -206,6 +206,8 @@
|
|
|
206
206
|
--origam-btn---density: 0px;
|
|
207
207
|
--origam-btn---width: auto;
|
|
208
208
|
--origam-btn---min-width: 64px;
|
|
209
|
+
--origam-btn__content---justify-content: center;
|
|
210
|
+
--origam-btn__content---text-align: center;
|
|
209
211
|
--origam-btn---max-width: 100%;
|
|
210
212
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
211
213
|
--origam-btn---max-height: 100%;
|
|
@@ -214,7 +214,7 @@ const props = defineProps({
|
|
|
214
214
|
status: { type: null, required: false },
|
|
215
215
|
statusIconPosition: { type: null, required: false },
|
|
216
216
|
icon: { type: null, required: false },
|
|
217
|
-
hover: { type: [Boolean, Object], required: false, default:
|
|
217
|
+
hover: { type: [Boolean, Object], required: false, default: false },
|
|
218
218
|
hoverClass: { type: String, required: false },
|
|
219
219
|
appendAvatar: { type: String, required: false },
|
|
220
220
|
appendIcon: { type: null, required: false },
|
|
@@ -233,7 +233,8 @@ const slots = useSlots();
|
|
|
233
233
|
const { filterProps } = useProps(props);
|
|
234
234
|
const { t } = useLocale();
|
|
235
235
|
const { typographyStyles } = useTypography(props, "alert__title");
|
|
236
|
-
const {
|
|
236
|
+
const { isOn: isActive, toggle: onActive } = useStateFlag(props, { state: "active", source: "modelValue" });
|
|
237
|
+
const isPressed = computed(() => false);
|
|
237
238
|
const {
|
|
238
239
|
isOn: isHover,
|
|
239
240
|
config: hoverState,
|
|
@@ -254,7 +255,7 @@ const {
|
|
|
254
255
|
paddingStyles,
|
|
255
256
|
marginClasses,
|
|
256
257
|
marginStyles
|
|
257
|
-
} = useStateEffect(props, isHover,
|
|
258
|
+
} = useStateEffect(props, isHover, isPressed, hoverState, void 0);
|
|
258
259
|
const { icon, prependIcon, appendIcon, statusClasses } = useStatus(props);
|
|
259
260
|
const {
|
|
260
261
|
onClickPrepend: handleClickPrepend,
|
|
@@ -307,7 +308,6 @@ const alertClasses = computed(() => {
|
|
|
307
308
|
return [
|
|
308
309
|
"origam-alert",
|
|
309
310
|
hoverClasses.value,
|
|
310
|
-
activeClasses.value,
|
|
311
311
|
statusClasses.value,
|
|
312
312
|
colorClasses.value,
|
|
313
313
|
densityClasses.value,
|
|
@@ -104,7 +104,7 @@ import { useStyle } from "../../composables/Commons/style.composable";
|
|
|
104
104
|
import { useTypography } from "../../composables/Commons/typography.composable";
|
|
105
105
|
import vContrast from "../../directives/Contrast/contrast.directive";
|
|
106
106
|
import { omit, pick } from "../../utils/Commons/commons.util";
|
|
107
|
-
import { computed,
|
|
107
|
+
import { computed, ref, StyleValue, useAttrs } from "vue";
|
|
108
108
|
const props = defineProps({
|
|
109
109
|
content: { type: [Number, String], required: false },
|
|
110
110
|
dot: { type: Boolean, required: false },
|
|
@@ -174,8 +174,8 @@ const { filterProps } = useProps(props);
|
|
|
174
174
|
const { t } = useLocale();
|
|
175
175
|
const attrs = useAttrs();
|
|
176
176
|
const { classes: hoverClasses, isOn: isHover, config: hoverState, unset: handleMouseleave, set: handleMouseenter } = useStateFlag(props, { state: "hover" });
|
|
177
|
-
const { classes: activeClasses
|
|
178
|
-
const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses, roundedStyles, elevationClasses, elevationStyles } = useStateEffect(props, isHover,
|
|
177
|
+
const { classes: activeClasses } = useStateFlag(props, { state: "active", source: "modelValue" });
|
|
178
|
+
const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses, roundedStyles, elevationClasses, elevationStyles } = useStateEffect(props, isHover, ref(false), hoverState, void 0);
|
|
179
179
|
const { typographyStyles } = useTypography(props, "badge__badge");
|
|
180
180
|
const { icon, prependIcon, appendIcon, statusClasses } = useStatus(props);
|
|
181
181
|
const {
|
|
@@ -239,8 +239,8 @@ const badgeClasses = computed(() => {
|
|
|
239
239
|
"origam-badge--floating": props.floating,
|
|
240
240
|
"origam-badge--inline": props.inline
|
|
241
241
|
},
|
|
242
|
-
activeClasses.value,
|
|
243
242
|
hoverClasses.value,
|
|
243
|
+
activeClasses.value,
|
|
244
244
|
statusClasses.value,
|
|
245
245
|
props.class
|
|
246
246
|
];
|
|
@@ -1118,7 +1118,7 @@ defineExpose({
|
|
|
1118
1118
|
&--wrap {
|
|
1119
1119
|
#{$this}__content {
|
|
1120
1120
|
white-space: normal;
|
|
1121
|
-
text-align: center;
|
|
1121
|
+
text-align: var(--origam-btn__content---text-align, center);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
@@ -1193,7 +1193,7 @@ defineExpose({
|
|
|
1193
1193
|
|
|
1194
1194
|
&__content {
|
|
1195
1195
|
grid-area: content;
|
|
1196
|
-
justify-content: center;
|
|
1196
|
+
justify-content: var(--origam-btn__content---justify-content, center);
|
|
1197
1197
|
white-space: nowrap;
|
|
1198
1198
|
|
|
1199
1199
|
margin-inline-start: var(--origam-btn__content---margin-inline-start);
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-box-plot__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-box-plot-svg"
|
|
@@ -250,6 +250,7 @@
|
|
|
250
250
|
</template>
|
|
251
251
|
|
|
252
252
|
<script lang="ts" setup>
|
|
253
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
253
254
|
import {
|
|
254
255
|
computed,
|
|
255
256
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-bullet__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-bullet-svg"
|
|
@@ -214,6 +214,7 @@
|
|
|
214
214
|
</template>
|
|
215
215
|
|
|
216
216
|
<script lang="ts" setup>
|
|
217
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
217
218
|
import {
|
|
218
219
|
computed,
|
|
219
220
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-candlestick__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-candlestick-svg"
|
|
@@ -189,6 +189,7 @@
|
|
|
189
189
|
</template>
|
|
190
190
|
|
|
191
191
|
<script lang="ts" setup>
|
|
192
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
192
193
|
import {
|
|
193
194
|
computed,
|
|
194
195
|
ref
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
class="origam-chart-cartesian__svg origam-chart__svg"
|
|
85
85
|
:class="svgClasses"
|
|
86
86
|
:viewBox="viewBox"
|
|
87
|
-
role="
|
|
87
|
+
:role="CHART_SVG_ROLE"
|
|
88
88
|
:aria-label="svgAriaLabel"
|
|
89
89
|
preserveAspectRatio="xMidYMid meet"
|
|
90
90
|
data-cy="origam-chart-cartesian-svg"
|
|
@@ -507,7 +507,7 @@ import {
|
|
|
507
507
|
computePlotBandGeometry,
|
|
508
508
|
computePlotLineGeometry
|
|
509
509
|
} from "../../composables/Chart/chart.composable";
|
|
510
|
-
import { CHART_RANGE_SELECTOR_DEFAULT_BUTTONS } from "../../consts/Chart/chart.const";
|
|
510
|
+
import { CHART_RANGE_SELECTOR_DEFAULT_BUTTONS, CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
511
511
|
import {
|
|
512
512
|
CHART_ZOOM_RESET_GAP,
|
|
513
513
|
CHART_ZOOM_RESET_MIN_WIDTH,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
class="origam-chart-heatmap__svg origam-chart__svg"
|
|
40
40
|
:class="svgClasses"
|
|
41
41
|
:viewBox="`0 0 ${ svgWidth } ${ svgHeight }`"
|
|
42
|
-
role="
|
|
42
|
+
:role="CHART_SVG_ROLE"
|
|
43
43
|
:aria-label="svgAriaLabel"
|
|
44
44
|
preserveAspectRatio="xMidYMid meet"
|
|
45
45
|
data-cy="origam-chart-heatmap-svg"
|
|
@@ -219,6 +219,7 @@
|
|
|
219
219
|
</template>
|
|
220
220
|
|
|
221
221
|
<script lang="ts" setup>
|
|
222
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
222
223
|
import {
|
|
223
224
|
computed,
|
|
224
225
|
ref
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
class="origam-chart-honeycomb__svg origam-chart__svg"
|
|
40
40
|
:class="svgClasses"
|
|
41
41
|
:viewBox="`0 0 ${ svgWidth } ${ svgHeight }`"
|
|
42
|
-
role="
|
|
42
|
+
:role="CHART_SVG_ROLE"
|
|
43
43
|
:aria-label="svgAriaLabel"
|
|
44
44
|
preserveAspectRatio="xMidYMid meet"
|
|
45
45
|
data-cy="origam-chart-honeycomb-svg"
|
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
</template>
|
|
145
145
|
|
|
146
146
|
<script lang="ts" setup>
|
|
147
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
147
148
|
import {
|
|
148
149
|
computed,
|
|
149
150
|
ref
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
class="origam-chart-map__svg origam-chart__svg"
|
|
38
38
|
:class="svgClasses"
|
|
39
39
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
40
|
-
role="
|
|
40
|
+
:role="CHART_SVG_ROLE"
|
|
41
41
|
:aria-label="svgAriaLabel"
|
|
42
42
|
preserveAspectRatio="xMidYMid meet"
|
|
43
43
|
data-cy="origam-chart-map-svg"
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
</template>
|
|
199
199
|
|
|
200
200
|
<script lang="ts" setup>
|
|
201
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
201
202
|
import {
|
|
202
203
|
computed,
|
|
203
204
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-pareto__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-pareto-svg"
|
|
@@ -293,6 +293,7 @@
|
|
|
293
293
|
</template>
|
|
294
294
|
|
|
295
295
|
<script lang="ts" setup>
|
|
296
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
296
297
|
import {
|
|
297
298
|
computed,
|
|
298
299
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-pictorial__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-pictorial-svg"
|
|
@@ -289,6 +289,7 @@
|
|
|
289
289
|
</template>
|
|
290
290
|
|
|
291
291
|
<script lang="ts" setup>
|
|
292
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
292
293
|
import {
|
|
293
294
|
computed,
|
|
294
295
|
ref
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
class="origam-chart-polar__svg origam-chart__svg"
|
|
76
76
|
:class="svgClasses"
|
|
77
77
|
:viewBox="viewBox"
|
|
78
|
-
role="
|
|
78
|
+
:role="CHART_SVG_ROLE"
|
|
79
79
|
:aria-label="svgAriaLabel"
|
|
80
80
|
preserveAspectRatio="xMidYMid meet"
|
|
81
81
|
data-cy="origam-chart-polar-svg"
|
|
@@ -161,6 +161,7 @@
|
|
|
161
161
|
</template>
|
|
162
162
|
|
|
163
163
|
<script lang="ts" setup>
|
|
164
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
164
165
|
import {
|
|
165
166
|
computed,
|
|
166
167
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-polar-bar__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_SIZE } ${ SVG_SIZE }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-polar-bar-svg"
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
</template>
|
|
155
155
|
|
|
156
156
|
<script lang="ts" setup>
|
|
157
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
157
158
|
import {
|
|
158
159
|
computed,
|
|
159
160
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-pyramid__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-pyramid-svg"
|
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
</template>
|
|
154
154
|
|
|
155
155
|
<script lang="ts" setup>
|
|
156
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
156
157
|
import {
|
|
157
158
|
computed,
|
|
158
159
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-radar__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="viewBox"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-radar-svg"
|
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
</template>
|
|
143
143
|
|
|
144
144
|
<script lang="ts" setup>
|
|
145
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
145
146
|
import {
|
|
146
147
|
computed,
|
|
147
148
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-sankey__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-sankey-svg"
|
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
</template>
|
|
167
167
|
|
|
168
168
|
<script lang="ts" setup>
|
|
169
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
169
170
|
import {
|
|
170
171
|
computed,
|
|
171
172
|
ref
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
ref="svgRef"
|
|
12
12
|
class="origam-chart-sparkline__svg"
|
|
13
13
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
14
|
-
role="
|
|
14
|
+
:role="CHART_SVG_ROLE"
|
|
15
15
|
:aria-label="svgAriaLabel"
|
|
16
16
|
preserveAspectRatio="none"
|
|
17
17
|
data-cy="origam-chart-sparkline-svg"
|
|
@@ -158,6 +158,7 @@
|
|
|
158
158
|
</template>
|
|
159
159
|
|
|
160
160
|
<script lang="ts" setup>
|
|
161
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
161
162
|
import {
|
|
162
163
|
computed,
|
|
163
164
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-streamgraph__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-streamgraph-svg"
|
|
@@ -177,6 +177,7 @@
|
|
|
177
177
|
</template>
|
|
178
178
|
|
|
179
179
|
<script lang="ts" setup>
|
|
180
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
180
181
|
import {
|
|
181
182
|
computed,
|
|
182
183
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-sunburst__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_SIZE } ${ SVG_SIZE }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-sunburst-svg"
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
</template>
|
|
163
163
|
|
|
164
164
|
<script lang="ts" setup>
|
|
165
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
165
166
|
import {
|
|
166
167
|
computed,
|
|
167
168
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-treemap__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-treemap-svg"
|
|
@@ -158,6 +158,7 @@
|
|
|
158
158
|
</template>
|
|
159
159
|
|
|
160
160
|
<script lang="ts" setup>
|
|
161
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
161
162
|
import {
|
|
162
163
|
computed,
|
|
163
164
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-variwide__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-variwide-svg"
|
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
</template>
|
|
234
234
|
|
|
235
235
|
<script lang="ts" setup>
|
|
236
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
236
237
|
import {
|
|
237
238
|
computed,
|
|
238
239
|
ref
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
class="origam-chart-word-cloud__svg origam-chart__svg"
|
|
39
39
|
:class="svgClasses"
|
|
40
40
|
:viewBox="`0 0 ${ SVG_WIDTH } ${ SVG_HEIGHT }`"
|
|
41
|
-
role="
|
|
41
|
+
:role="CHART_SVG_ROLE"
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-word-cloud-svg"
|
|
@@ -131,6 +131,7 @@
|
|
|
131
131
|
</template>
|
|
132
132
|
|
|
133
133
|
<script lang="ts" setup>
|
|
134
|
+
import { CHART_SVG_ROLE } from "../../consts/Chart/chart.const";
|
|
134
135
|
import {
|
|
135
136
|
computed,
|
|
136
137
|
ref
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.CHART_Y_TICK_COUNT = exports.CHART_TICK_LABEL_PRECISION_FACTOR = exports.CHART_SLICE_LABEL_PREFIX = exports.CHART_SCATTER_MIN_RADIUS = exports.CHART_SCATTER_MAX_RADIUS = exports.CHART_SCATTER_DEFAULT_RADIUS = exports.CHART_RANGE_SELECTOR_DEFAULT_BUTTONS = exports.CHART_RADAR_RADIUS_INSET = exports.CHART_RADAR_MIN_RADIUS = exports.CHART_RADAR_MARKER_RADIUS = exports.CHART_POINT_MARKER_RADIUS = exports.CHART_PLOT_LINE_LABEL_TOP_OFFSET = exports.CHART_PLOT_LINE_LABEL_OFFSET = exports.CHART_PLOT_LINE_DEFAULT_WIDTH = exports.CHART_PLOT_BAND_DEFAULT_OPACITY = exports.CHART_PIE_RADIUS_INSET = exports.CHART_PIE_MIN_RADIUS = exports.CHART_PERCENT_TICK_STEP = exports.CHART_PERCENT_MIN = exports.CHART_PERCENT_MAX = exports.CHART_NICE_STEP_LADDER = exports.CHART_EPSILON = exports.CHART_DEFAULT_PALETTE = exports.CHART_DASH_ARRAY_SOLID = exports.CHART_DASH_ARRAY_DOTTED = exports.CHART_DASH_ARRAY_DASHED = exports.CHART_COLOR_FALLBACK = exports.CHART_BAR_SLOT_FILL_RATIO = exports.CHART_ANNOTATION_LABEL_PADDING = exports.CHART_ANNOTATION_LABEL_MIN_WIDTH = exports.CHART_ANNOTATION_LABEL_HEIGHT = exports.CHART_ANNOTATION_LABEL_CHAR_WIDTH = exports.CHART_ANNOTATION_DEFAULT_WIDTH = exports.CHART_ANNOTATION_DEFAULT_RADIUS = exports.CHART_ANNOTATION_DEFAULT_DY = exports.CHART_ANNOTATION_ARROWHEAD_WIDTH_FACTOR = exports.CHART_ANNOTATION_ARROWHEAD_SPREAD = exports.CHART_ANNOTATION_ARROWHEAD_PRECISION = exports.CHART_ANNOTATION_ARROWHEAD_MIN_SIZE = exports.CHART_ANIMATION_DURATION_DEFAULT = void 0;
|
|
6
|
+
exports.CHART_Y_TICK_COUNT = exports.CHART_TICK_LABEL_PRECISION_FACTOR = exports.CHART_SVG_ROLE = exports.CHART_SLICE_LABEL_PREFIX = exports.CHART_SCATTER_MIN_RADIUS = exports.CHART_SCATTER_MAX_RADIUS = exports.CHART_SCATTER_DEFAULT_RADIUS = exports.CHART_RANGE_SELECTOR_DEFAULT_BUTTONS = exports.CHART_RADAR_RADIUS_INSET = exports.CHART_RADAR_MIN_RADIUS = exports.CHART_RADAR_MARKER_RADIUS = exports.CHART_POINT_MARKER_RADIUS = exports.CHART_PLOT_LINE_LABEL_TOP_OFFSET = exports.CHART_PLOT_LINE_LABEL_OFFSET = exports.CHART_PLOT_LINE_DEFAULT_WIDTH = exports.CHART_PLOT_BAND_DEFAULT_OPACITY = exports.CHART_PIE_RADIUS_INSET = exports.CHART_PIE_MIN_RADIUS = exports.CHART_PERCENT_TICK_STEP = exports.CHART_PERCENT_MIN = exports.CHART_PERCENT_MAX = exports.CHART_NICE_STEP_LADDER = exports.CHART_EPSILON = exports.CHART_DEFAULT_PALETTE = exports.CHART_DASH_ARRAY_SOLID = exports.CHART_DASH_ARRAY_DOTTED = exports.CHART_DASH_ARRAY_DASHED = exports.CHART_COLOR_FALLBACK = exports.CHART_BAR_SLOT_FILL_RATIO = exports.CHART_ANNOTATION_LABEL_PADDING = exports.CHART_ANNOTATION_LABEL_MIN_WIDTH = exports.CHART_ANNOTATION_LABEL_HEIGHT = exports.CHART_ANNOTATION_LABEL_CHAR_WIDTH = exports.CHART_ANNOTATION_DEFAULT_WIDTH = exports.CHART_ANNOTATION_DEFAULT_RADIUS = exports.CHART_ANNOTATION_DEFAULT_DY = exports.CHART_ANNOTATION_ARROWHEAD_WIDTH_FACTOR = exports.CHART_ANNOTATION_ARROWHEAD_SPREAD = exports.CHART_ANNOTATION_ARROWHEAD_PRECISION = exports.CHART_ANNOTATION_ARROWHEAD_MIN_SIZE = exports.CHART_ANIMATION_DURATION_DEFAULT = void 0;
|
|
7
7
|
var _intent = require("../../enums/Commons/intent.enum.cjs");
|
|
8
8
|
const CHART_Y_TICK_COUNT = exports.CHART_Y_TICK_COUNT = 5;
|
|
9
9
|
const CHART_ANIMATION_DURATION_DEFAULT = exports.CHART_ANIMATION_DURATION_DEFAULT = 600;
|
|
@@ -74,4 +74,5 @@ const CHART_RADAR_RADIUS_INSET = exports.CHART_RADAR_RADIUS_INSET = 8;
|
|
|
74
74
|
const CHART_SCATTER_DEFAULT_RADIUS = exports.CHART_SCATTER_DEFAULT_RADIUS = 5;
|
|
75
75
|
const CHART_SCATTER_MIN_RADIUS = exports.CHART_SCATTER_MIN_RADIUS = 5;
|
|
76
76
|
const CHART_SCATTER_MAX_RADIUS = exports.CHART_SCATTER_MAX_RADIUS = 36;
|
|
77
|
-
const CHART_SLICE_LABEL_PREFIX = exports.CHART_SLICE_LABEL_PREFIX = "Slice";
|
|
77
|
+
const CHART_SLICE_LABEL_PREFIX = exports.CHART_SLICE_LABEL_PREFIX = "Slice";
|
|
78
|
+
const CHART_SVG_ROLE = exports.CHART_SVG_ROLE = "group";
|
|
@@ -255,3 +255,16 @@ export declare const CHART_SCATTER_MAX_RADIUS = 36;
|
|
|
255
255
|
* base 1.
|
|
256
256
|
********************************************************/
|
|
257
257
|
export declare const CHART_SLICE_LABEL_PREFIX = "Slice";
|
|
258
|
+
/*********************************************************
|
|
259
|
+
* CHART_SVG_ROLE
|
|
260
|
+
*
|
|
261
|
+
* @description
|
|
262
|
+
* Role of the root `<svg>` of every chart whose data points are focusable
|
|
263
|
+
* (`role="button"` + `tabindex="0"`). It is `group`, never `img`: an `img`
|
|
264
|
+
* renders its subtree presentational, so a screen reader announces only the
|
|
265
|
+
* picture while the keyboard stops on each point (axe `nested-interactive`,
|
|
266
|
+
* WCAG 4.1.2, #1318 and #1153).
|
|
267
|
+
* A named `group` keeps the accessible name (`aria-label`) and lets the
|
|
268
|
+
* focusable points be announced.
|
|
269
|
+
********************************************************/
|
|
270
|
+
export declare const CHART_SVG_ROLE = "group";
|