@avenirs-esr/avenirs-dsav 0.1.100 → 0.1.101
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.
|
@@ -1,31 +1,22 @@
|
|
|
1
1
|
export declare const AvTabsStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
modelValue: {
|
|
3
3
|
type: NumberConstructor;
|
|
4
|
-
|
|
4
|
+
default: number;
|
|
5
5
|
};
|
|
6
|
-
ariaLabel:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
required: false;
|
|
13
|
-
};
|
|
14
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
ariaLabel: StringConstructor;
|
|
7
|
+
compact: BooleanConstructor;
|
|
8
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
11
|
modelValue: {
|
|
16
12
|
type: NumberConstructor;
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
ariaLabel: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
required: false;
|
|
22
|
-
};
|
|
23
|
-
compact: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
required: false;
|
|
13
|
+
default: number;
|
|
26
14
|
};
|
|
15
|
+
ariaLabel: StringConstructor;
|
|
16
|
+
compact: BooleanConstructor;
|
|
27
17
|
}>> & Readonly<{
|
|
28
18
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
19
|
}>, {
|
|
20
|
+
modelValue: number;
|
|
30
21
|
compact: boolean;
|
|
31
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/test-utils.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:style="{ backgroundColor, borderColor, color }"
|
|
5
5
|
>
|
|
6
6
|
{{ label }}
|
|
7
|
-
</div>`,props:{label:String,small:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!1},color:String,backgroundColor:String,borderColor:String,icon:String}}),
|
|
7
|
+
</div>`,props:{label:String,small:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!1},color:String,backgroundColor:String,borderColor:String,icon:String}}),d=e.defineComponent({name:"AvTag",template:'<div class="av-tag-stub" />',props:["label","link","tagName","icon","disabled","small","iconOnly","selectable","selected","value"]}),r=e.defineComponent({name:"AvFieldset",props:["id","legend","legendId","class","ariaLive"],template:"<fieldset><slot /></fieldset>"}),c=e.defineComponent({name:"AvIcon",props:["name","color","size","title","animation"],template:'<div class="av-vicon-stub" />'}),u=e.defineComponent({name:"AvIconText",template:'<div class="av-icon-text" />',props:["icon","text","icon-color","text-color"]}),p=e.defineComponent({name:"AvCard",props:{titleOnly:{type:Boolean,default:!1},baclgroundColor:{type:String,default:"var(--card)"},borderColor:{type:String,default:"var(--stroke)"},titleBackground:{type:String,default:"var(--surface-background)"},titleHeight:{type:String},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},template:'<div class="av-card"><slot name="title" /><slot /></div>'}),m=e.defineComponent({name:"AvAccordion",props:["title","icon"],template:`
|
|
8
8
|
<div class="av-accordion">
|
|
9
9
|
<button
|
|
10
10
|
class="av-accordion__btn"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<slot />
|
|
16
16
|
</button>
|
|
17
17
|
</div>
|
|
18
|
-
`,setup(
|
|
18
|
+
`,setup(a){const t=e.inject(l.registerAccordionKey);if(!t){const o=e.ref(!1);return{isActive:o,expand:()=>{o.value=!o.value}}}const{isActive:n,expand:i}=t(e.toRef(a,"title"));return{isActive:n,expand:i}}}),v=e.defineComponent({name:"AvButton",props:{variant:{type:String,default:"DEFAULT"},theme:{type:String,default:"PRIMARY"},isLoading:{type:Boolean,default:!1},iconScale:{type:Number},noRadius:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,required:!0},iconOnly:{type:Boolean,default:!1},small:{type:Boolean,default:!1},icon:{type:[String,Object]},noSentenceCase:{type:Boolean,default:!1}},emits:["click"],template:`
|
|
19
19
|
<button
|
|
20
20
|
class="av-button-stub"
|
|
21
21
|
:disabled="disabled"
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
<span v-if="errorMessage">{{ errorMessage }}</span>
|
|
115
115
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
116
116
|
</select>
|
|
117
|
-
`}),x=e.defineComponent({name:"AvTab",props:{title:{type:String,required:!0},icon:{type:String,required:!1}},template:'<div class="av-tab"><slot /></div>'}),B=e.defineComponent({name:"AvTabs",props:{modelValue:{type:Number,
|
|
117
|
+
`}),x=e.defineComponent({name:"AvTab",props:{title:{type:String,required:!0},icon:{type:String,required:!1}},template:'<div class="av-tab"><slot /></div>'}),B=e.defineComponent({name:"AvTabs",props:{modelValue:{type:Number,default:0},ariaLabel:String,compact:Boolean},emits:["update:modelValue"],setup(a,{slots:t}){const n=e.computed(()=>{var o;return((o=t.default)==null?void 0:o.call(t))??[]}),i=e.computed(()=>a.modelValue??0);return()=>e.h("div",{class:"av-tabs"},n.value[i.value]??null)}}),V=e.defineComponent({name:"AvToggle",props:["id","name","modelValue","description","activeText","inactiveText","disabled"],emits:["update:modelValue"],template:`
|
|
118
118
|
<div class="av-toggle">
|
|
119
119
|
<input
|
|
120
120
|
type="checkbox"
|
|
@@ -170,4 +170,4 @@
|
|
|
170
170
|
<slot />
|
|
171
171
|
<slot name="footer"></slot>
|
|
172
172
|
</div>
|
|
173
|
-
`});function $(){return{given(
|
|
173
|
+
`});function $(){return{given(a,t){return describe(`🔵 GIVEN ${a}`,t),this},when(a,t){return describe(`🔶 WHEN ${a}`,t),this},and(a,t){return describe(`➕ AND ${a}`,t),this},then(a,t){return it(`🟩 THEN ${a}`,t),this}}}exports.AvAccordionStub=m;exports.AvAutocompleteStub=y;exports.AvBadgeStub=s;exports.AvBreadcrumbStub=T;exports.AvButtonStub=v;exports.AvCancelConfirmButtonsStub=b;exports.AvCardStub=p;exports.AvCheckboxStub=g;exports.AvCheckboxesGroupStub=S;exports.AvDrawerStub=M;exports.AvDropdownStub=q;exports.AvFieldsetStub=r;exports.AvIconStub=c;exports.AvIconTextStub=u;exports.AvInputStub=f;exports.AvListItemStub=C;exports.AvListStub=A;exports.AvModalStub=N;exports.AvSelectStub=k;exports.AvSideNavigationStub=I;exports.AvStepperStub=L;exports.AvTabStub=x;exports.AvTabsStub=B;exports.AvTagPickerStub=h;exports.AvTagStub=d;exports.AvToggleStub=V;exports.BddTest=$;
|
package/dist/test-utils.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, inject as
|
|
2
|
-
import { r as
|
|
1
|
+
import { defineComponent as e, inject as s, ref as r, toRef as c, computed as n, h as d } from "vue";
|
|
2
|
+
import { r as p } from "./injection-key.es.js";
|
|
3
3
|
import "@vue/test-utils";
|
|
4
|
-
const
|
|
4
|
+
const g = e({
|
|
5
5
|
name: "AvBadge",
|
|
6
6
|
template: `
|
|
7
7
|
<div
|
|
@@ -25,7 +25,7 @@ const v = e({
|
|
|
25
25
|
borderColor: String,
|
|
26
26
|
icon: String
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), S = e({
|
|
29
29
|
name: "AvTag",
|
|
30
30
|
template: '<div class="av-tag-stub" />',
|
|
31
31
|
props: [
|
|
@@ -40,19 +40,19 @@ const v = e({
|
|
|
40
40
|
"selected",
|
|
41
41
|
"value"
|
|
42
42
|
]
|
|
43
|
-
}),
|
|
43
|
+
}), f = e({
|
|
44
44
|
name: "AvFieldset",
|
|
45
45
|
props: ["id", "legend", "legendId", "class", "ariaLive"],
|
|
46
46
|
template: "<fieldset><slot /></fieldset>"
|
|
47
|
-
}),
|
|
47
|
+
}), A = e({
|
|
48
48
|
name: "AvIcon",
|
|
49
49
|
props: ["name", "color", "size", "title", "animation"],
|
|
50
50
|
template: '<div class="av-vicon-stub" />'
|
|
51
|
-
}),
|
|
51
|
+
}), h = e({
|
|
52
52
|
name: "AvIconText",
|
|
53
53
|
template: '<div class="av-icon-text" />',
|
|
54
54
|
props: ["icon", "text", "icon-color", "text-color"]
|
|
55
|
-
}),
|
|
55
|
+
}), y = e({
|
|
56
56
|
name: "AvCard",
|
|
57
57
|
props: {
|
|
58
58
|
titleOnly: { type: Boolean, default: !1 },
|
|
@@ -64,7 +64,7 @@ const v = e({
|
|
|
64
64
|
collapsed: { type: Boolean, default: !1 }
|
|
65
65
|
},
|
|
66
66
|
template: '<div class="av-card"><slot name="title" /><slot /></div>'
|
|
67
|
-
}),
|
|
67
|
+
}), k = e({
|
|
68
68
|
name: "AvAccordion",
|
|
69
69
|
props: ["title", "icon"],
|
|
70
70
|
template: `
|
|
@@ -80,17 +80,17 @@ const v = e({
|
|
|
80
80
|
</div>
|
|
81
81
|
`,
|
|
82
82
|
setup(a) {
|
|
83
|
-
const t =
|
|
83
|
+
const t = s(p);
|
|
84
84
|
if (!t) {
|
|
85
|
-
const o =
|
|
85
|
+
const o = r(!1);
|
|
86
86
|
return { isActive: o, expand: () => {
|
|
87
87
|
o.value = !o.value;
|
|
88
88
|
} };
|
|
89
89
|
}
|
|
90
|
-
const { isActive: l, expand: i } = t(
|
|
90
|
+
const { isActive: l, expand: i } = t(c(a, "title"));
|
|
91
91
|
return { isActive: l, expand: i };
|
|
92
92
|
}
|
|
93
|
-
}),
|
|
93
|
+
}), x = e({
|
|
94
94
|
name: "AvButton",
|
|
95
95
|
props: {
|
|
96
96
|
variant: { type: String, default: "DEFAULT" },
|
|
@@ -115,7 +115,7 @@ const v = e({
|
|
|
115
115
|
{{ label }}
|
|
116
116
|
</button>
|
|
117
117
|
`
|
|
118
|
-
}),
|
|
118
|
+
}), B = e({
|
|
119
119
|
name: "AvCancelConfirmButtons",
|
|
120
120
|
props: [
|
|
121
121
|
"cancelLabel",
|
|
@@ -144,7 +144,7 @@ const v = e({
|
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
146
|
`
|
|
147
|
-
}),
|
|
147
|
+
}), V = e({
|
|
148
148
|
name: "AvCheckbox",
|
|
149
149
|
props: {
|
|
150
150
|
id: { type: String, default: "" },
|
|
@@ -171,7 +171,7 @@ const v = e({
|
|
|
171
171
|
<label :for="id"><slot name="label">{{ label }}</slot></label>
|
|
172
172
|
</div>
|
|
173
173
|
`
|
|
174
|
-
}),
|
|
174
|
+
}), C = e({
|
|
175
175
|
name: "AvCheckboxesGroup",
|
|
176
176
|
props: ["modelValue", "options"],
|
|
177
177
|
emits: ["update:modelValue"],
|
|
@@ -180,7 +180,7 @@ const v = e({
|
|
|
180
180
|
<slot />
|
|
181
181
|
</fieldset>
|
|
182
182
|
`
|
|
183
|
-
}),
|
|
183
|
+
}), I = e({
|
|
184
184
|
name: "AvInput",
|
|
185
185
|
props: {
|
|
186
186
|
modelValue: String,
|
|
@@ -210,14 +210,14 @@ const v = e({
|
|
|
210
210
|
},
|
|
211
211
|
emits: ["update:modelValue"],
|
|
212
212
|
template: '<input data-testid="av-input-stub" :value="modelValue" :placeholder="placeholder" :disabled="disabled" :required="required" :maxlength="maxlength" /><slot name="customCaptions" :current-value="modelValue" />'
|
|
213
|
-
}),
|
|
213
|
+
}), L = e({
|
|
214
214
|
name: "AvList",
|
|
215
215
|
props: ["size"],
|
|
216
216
|
template: `
|
|
217
217
|
<div class="av-list-stub">
|
|
218
218
|
<slot />
|
|
219
219
|
</div>`
|
|
220
|
-
}),
|
|
220
|
+
}), T = e({
|
|
221
221
|
name: "AvListItem",
|
|
222
222
|
props: ["clickable", "hoverBackgroundColor", "selected", "icon", "iconSize", "iconColor", "colorOnHover"],
|
|
223
223
|
emits: ["click"],
|
|
@@ -228,7 +228,7 @@ const v = e({
|
|
|
228
228
|
>
|
|
229
229
|
<slot />
|
|
230
230
|
</div>`
|
|
231
|
-
}),
|
|
231
|
+
}), M = e({
|
|
232
232
|
name: "AvTagPicker",
|
|
233
233
|
props: [
|
|
234
234
|
"label",
|
|
@@ -248,7 +248,7 @@ const v = e({
|
|
|
248
248
|
</button>
|
|
249
249
|
</div>
|
|
250
250
|
`
|
|
251
|
-
}),
|
|
251
|
+
}), $ = e({
|
|
252
252
|
name: "AvAutocomplete",
|
|
253
253
|
props: [
|
|
254
254
|
"modelValue",
|
|
@@ -275,7 +275,7 @@ const v = e({
|
|
|
275
275
|
/>
|
|
276
276
|
</div>
|
|
277
277
|
`
|
|
278
|
-
}),
|
|
278
|
+
}), N = e({
|
|
279
279
|
name: "AvSelect",
|
|
280
280
|
props: {
|
|
281
281
|
modelValue: [String, Number],
|
|
@@ -328,25 +328,25 @@ const v = e({
|
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
template: '<div class="av-tab"><slot /></div>'
|
|
331
|
-
}),
|
|
331
|
+
}), w = e({
|
|
332
332
|
name: "AvTabs",
|
|
333
333
|
props: {
|
|
334
334
|
modelValue: {
|
|
335
335
|
type: Number,
|
|
336
|
-
|
|
336
|
+
default: 0
|
|
337
337
|
},
|
|
338
|
-
ariaLabel:
|
|
339
|
-
|
|
340
|
-
required: !1
|
|
341
|
-
},
|
|
342
|
-
compact: {
|
|
343
|
-
type: Boolean,
|
|
344
|
-
required: !1
|
|
345
|
-
}
|
|
338
|
+
ariaLabel: String,
|
|
339
|
+
compact: Boolean
|
|
346
340
|
},
|
|
347
341
|
emits: ["update:modelValue"],
|
|
348
|
-
|
|
349
|
-
|
|
342
|
+
setup(a, { slots: t }) {
|
|
343
|
+
const l = n(() => {
|
|
344
|
+
var o;
|
|
345
|
+
return ((o = t.default) == null ? void 0 : o.call(t)) ?? [];
|
|
346
|
+
}), i = n(() => a.modelValue ?? 0);
|
|
347
|
+
return () => d("div", { class: "av-tabs" }, l.value[i.value] ?? null);
|
|
348
|
+
}
|
|
349
|
+
}), D = e({
|
|
350
350
|
name: "AvToggle",
|
|
351
351
|
props: ["id", "name", "modelValue", "description", "activeText", "inactiveText", "disabled"],
|
|
352
352
|
emits: ["update:modelValue"],
|
|
@@ -369,11 +369,11 @@ const v = e({
|
|
|
369
369
|
{{ inactiveText }}
|
|
370
370
|
</span>
|
|
371
371
|
</div>`
|
|
372
|
-
}),
|
|
372
|
+
}), O = e({
|
|
373
373
|
name: "AvBreadcrumb",
|
|
374
374
|
template: '<div class="av-breadcrumb-stub" />',
|
|
375
375
|
props: ["links", "navigationLabel", "showBreadcrumbLabel"]
|
|
376
|
-
}),
|
|
376
|
+
}), H = e({
|
|
377
377
|
name: "AvSideNavigation",
|
|
378
378
|
props: {
|
|
379
379
|
items: Array,
|
|
@@ -388,7 +388,7 @@ const v = e({
|
|
|
388
388
|
@click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)"
|
|
389
389
|
/>
|
|
390
390
|
`
|
|
391
|
-
}),
|
|
391
|
+
}), R = e({
|
|
392
392
|
name: "AvStepper",
|
|
393
393
|
props: {
|
|
394
394
|
steps: {
|
|
@@ -412,7 +412,7 @@ const v = e({
|
|
|
412
412
|
</div>
|
|
413
413
|
</div>
|
|
414
414
|
`
|
|
415
|
-
}),
|
|
415
|
+
}), E = e({
|
|
416
416
|
name: "AvDrawer",
|
|
417
417
|
props: ["show", "position", "width"],
|
|
418
418
|
emits: ["escape-pressed"],
|
|
@@ -422,7 +422,7 @@ const v = e({
|
|
|
422
422
|
<slot name="footer" />
|
|
423
423
|
</div>
|
|
424
424
|
`
|
|
425
|
-
}),
|
|
425
|
+
}), F = e({
|
|
426
426
|
name: "AvDropdown",
|
|
427
427
|
props: ["items", "triggerAriaLabel", "triggerIcon", "triggerLabel", "triggerVariant", "triggerSmall", "padding"],
|
|
428
428
|
emits: ["itemSelected"],
|
|
@@ -438,7 +438,7 @@ const v = e({
|
|
|
438
438
|
</button>
|
|
439
439
|
</div>
|
|
440
440
|
`
|
|
441
|
-
}),
|
|
441
|
+
}), j = e({
|
|
442
442
|
name: "AvModal",
|
|
443
443
|
props: ["opened", "closeButtonLabel", "confirmButtonLabel", "confirmButtonIcon"],
|
|
444
444
|
emits: ["close", "confirm"],
|
|
@@ -450,7 +450,7 @@ const v = e({
|
|
|
450
450
|
</div>
|
|
451
451
|
`
|
|
452
452
|
});
|
|
453
|
-
function
|
|
453
|
+
function z() {
|
|
454
454
|
return {
|
|
455
455
|
given(a, t) {
|
|
456
456
|
return describe(`🔵 GIVEN ${a}`, t), this;
|
|
@@ -467,31 +467,31 @@ function F() {
|
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
export {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
470
|
+
k as AvAccordionStub,
|
|
471
|
+
$ as AvAutocompleteStub,
|
|
472
|
+
g as AvBadgeStub,
|
|
473
|
+
O as AvBreadcrumbStub,
|
|
474
|
+
x as AvButtonStub,
|
|
475
|
+
B as AvCancelConfirmButtonsStub,
|
|
476
|
+
y as AvCardStub,
|
|
477
|
+
V as AvCheckboxStub,
|
|
478
|
+
C as AvCheckboxesGroupStub,
|
|
479
|
+
E as AvDrawerStub,
|
|
480
|
+
F as AvDropdownStub,
|
|
481
|
+
f as AvFieldsetStub,
|
|
482
|
+
A as AvIconStub,
|
|
483
|
+
h as AvIconTextStub,
|
|
484
|
+
I as AvInputStub,
|
|
485
|
+
T as AvListItemStub,
|
|
486
|
+
L as AvListStub,
|
|
487
|
+
j as AvModalStub,
|
|
488
|
+
N as AvSelectStub,
|
|
489
|
+
H as AvSideNavigationStub,
|
|
490
|
+
R as AvStepperStub,
|
|
491
491
|
q as AvTabStub,
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
492
|
+
w as AvTabsStub,
|
|
493
|
+
M as AvTagPickerStub,
|
|
494
|
+
S as AvTagStub,
|
|
495
|
+
D as AvToggleStub,
|
|
496
|
+
z as BddTest
|
|
497
497
|
};
|