@avenirs-esr/avenirs-dsav 0.1.62 → 0.1.63
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.
|
@@ -11,7 +11,7 @@ export declare const AvBadgeStub: import("vue").DefineComponent<import("vue").Ex
|
|
|
11
11
|
color: StringConstructor;
|
|
12
12
|
backgroundColor: StringConstructor;
|
|
13
13
|
borderColor: StringConstructor;
|
|
14
|
-
|
|
14
|
+
iconDataUrl: StringConstructor;
|
|
15
15
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
label: StringConstructor;
|
|
17
17
|
small: {
|
|
@@ -25,7 +25,7 @@ export declare const AvBadgeStub: import("vue").DefineComponent<import("vue").Ex
|
|
|
25
25
|
color: StringConstructor;
|
|
26
26
|
backgroundColor: StringConstructor;
|
|
27
27
|
borderColor: StringConstructor;
|
|
28
|
-
|
|
28
|
+
iconDataUrl: StringConstructor;
|
|
29
29
|
}>> & Readonly<{}>, {
|
|
30
30
|
small: boolean;
|
|
31
31
|
ellipsis: boolean;
|
package/dist/test-utils.cjs.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./injection-key.cjs.js");require("@vue/test-utils");const s=e.defineComponent({name:"AvBadge",template
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./injection-key.cjs.js");require("@vue/test-utils");const s=e.defineComponent({name:"AvBadge",template:`
|
|
2
|
+
<div
|
|
3
|
+
class="av-badge-stub"
|
|
4
|
+
:style="{ backgroundColor, borderColor, color }
|
|
5
|
+
>
|
|
6
|
+
{{ label }}
|
|
7
|
+
</div>`,props:{label:String,small:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!1},color:String,backgroundColor:String,borderColor:String,iconDataUrl:String}}),c=e.defineComponent({name:"AvTag",template:'<div class="av-tag-stub" />',props:["label","link","tagName","icon","disabled","small","iconOnly","selectable","selected","value"]}),d=e.defineComponent({name:"AvFieldset",props:["id","legend","legendId","class","ariaLive"],template:"<fieldset><slot /></fieldset>"}),r=e.defineComponent({name:"AvIcon",props:["name","color","size","title","animation"],template:'<div class="av-vicon-stub" />'}),p=e.defineComponent({name:"AvAccordion",props:["title","icon"],template:`
|
|
2
8
|
<div class="av-accordion">
|
|
3
9
|
<button
|
|
4
10
|
class="fr-accordion__btn"
|
|
@@ -9,7 +15,7 @@
|
|
|
9
15
|
<slot />
|
|
10
16
|
</button>
|
|
11
17
|
</div>
|
|
12
|
-
`,setup(n){const t=e.inject(l.registerAccordionKey);if(!t){const
|
|
18
|
+
`,setup(n){const t=e.inject(l.registerAccordionKey);if(!t){const o=e.ref(!1);return{isActive:o,expand:()=>{o.value=!o.value}}}const{isActive:i,expand:a}=t(e.toRef(n,"title"));return{isActive:i,expand:a}}}),u=e.defineComponent({name:"AvButton",props:["label","variant","type","disabled","isLoading","size"],emits:["click"],template:`
|
|
13
19
|
<button
|
|
14
20
|
class="av-button-stub"
|
|
15
21
|
:disabled="disabled"
|
package/dist/test-utils.es.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { defineComponent as e, inject as
|
|
1
|
+
import { defineComponent as e, inject as n, ref as s, toRef as c } from "vue";
|
|
2
2
|
import { r as d } from "./injection-key.es.js";
|
|
3
3
|
import "@vue/test-utils";
|
|
4
4
|
const v = e({
|
|
5
5
|
name: "AvBadge",
|
|
6
|
-
template:
|
|
6
|
+
template: `
|
|
7
|
+
<div
|
|
8
|
+
class="av-badge-stub"
|
|
9
|
+
:style="{ backgroundColor, borderColor, color }
|
|
10
|
+
>
|
|
11
|
+
{{ label }}
|
|
12
|
+
</div>`,
|
|
7
13
|
props: {
|
|
8
14
|
label: String,
|
|
9
15
|
small: {
|
|
@@ -17,7 +23,7 @@ const v = e({
|
|
|
17
23
|
color: String,
|
|
18
24
|
backgroundColor: String,
|
|
19
25
|
borderColor: String,
|
|
20
|
-
|
|
26
|
+
iconDataUrl: String
|
|
21
27
|
}
|
|
22
28
|
}), b = e({
|
|
23
29
|
name: "AvTag",
|
|
@@ -58,15 +64,15 @@ const v = e({
|
|
|
58
64
|
</div>
|
|
59
65
|
`,
|
|
60
66
|
setup(a) {
|
|
61
|
-
const t =
|
|
67
|
+
const t = n(d);
|
|
62
68
|
if (!t) {
|
|
63
69
|
const i = s(!1);
|
|
64
70
|
return { isActive: i, expand: () => {
|
|
65
71
|
i.value = !i.value;
|
|
66
72
|
} };
|
|
67
73
|
}
|
|
68
|
-
const { isActive: o, expand:
|
|
69
|
-
return { isActive: o, expand:
|
|
74
|
+
const { isActive: o, expand: l } = t(c(a, "title"));
|
|
75
|
+
return { isActive: o, expand: l };
|
|
70
76
|
}
|
|
71
77
|
}), f = e({
|
|
72
78
|
name: "AvButton",
|
|
@@ -155,7 +161,7 @@ const v = e({
|
|
|
155
161
|
>
|
|
156
162
|
<slot />
|
|
157
163
|
</div>`
|
|
158
|
-
}),
|
|
164
|
+
}), C = e({
|
|
159
165
|
name: "AvTagPicker",
|
|
160
166
|
props: [
|
|
161
167
|
"label",
|
|
@@ -175,7 +181,7 @@ const v = e({
|
|
|
175
181
|
</button>
|
|
176
182
|
</div>
|
|
177
183
|
`
|
|
178
|
-
}),
|
|
184
|
+
}), V = e({
|
|
179
185
|
name: "AvAutocomplete",
|
|
180
186
|
props: [
|
|
181
187
|
"modelValue",
|
|
@@ -202,7 +208,7 @@ const v = e({
|
|
|
202
208
|
/>
|
|
203
209
|
</div>
|
|
204
210
|
`
|
|
205
|
-
}),
|
|
211
|
+
}), L = e({
|
|
206
212
|
name: "AvSelect",
|
|
207
213
|
props: {
|
|
208
214
|
modelValue: [String, Number],
|
|
@@ -343,7 +349,7 @@ function D() {
|
|
|
343
349
|
}
|
|
344
350
|
export {
|
|
345
351
|
S as AvAccordionStub,
|
|
346
|
-
|
|
352
|
+
V as AvAutocompleteStub,
|
|
347
353
|
v as AvBadgeStub,
|
|
348
354
|
T as AvBreadcrumbStub,
|
|
349
355
|
f as AvButtonStub,
|
|
@@ -355,10 +361,10 @@ export {
|
|
|
355
361
|
A as AvIconStub,
|
|
356
362
|
y as AvListItemStub,
|
|
357
363
|
x as AvListStub,
|
|
358
|
-
|
|
364
|
+
L as AvSelectStub,
|
|
359
365
|
$ as AvSideNavigationStub,
|
|
360
366
|
I as AvStepperStub,
|
|
361
|
-
|
|
367
|
+
C as AvTagPickerStub,
|
|
362
368
|
b as AvTagStub,
|
|
363
369
|
B as AvToggleStub,
|
|
364
370
|
D as BddTest
|