@avenirs-esr/avenirs-dsav 0.1.101 → 0.1.102
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/test-utils.cjs.js +4 -4
- package/dist/test-utils.es.js +11 -11
- package/package.json +1 -1
package/dist/test-utils.cjs.js
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<fieldset class="av-checkboxes-group-stub">
|
|
59
59
|
<slot />
|
|
60
60
|
</fieldset>
|
|
61
|
-
`}),f=e.defineComponent({name:"AvInput",props:{modelValue:String,label:String,labelClass:String,placeholder:String,isValid:Boolean,isTextarea:Boolean,labelVisible:Boolean,disabled:Boolean,required:Boolean,maxlength:Number,minlength:Number,errorMessage:String,validMessage:String,prefixIcon:String,id:String,descriptionId:String,hint:String,type:String,minDate:String,maxDate:String,width:String,noRadius:Boolean,modelModifiers:Object,textareaMinHeight:String},emits:["update:modelValue"],template:'
|
|
61
|
+
`}),f=e.defineComponent({name:"AvInput",props:{modelValue:String,label:String,labelClass:String,placeholder:String,isValid:Boolean,isTextarea:Boolean,labelVisible:Boolean,disabled:Boolean,required:Boolean,maxlength:Number,minlength:Number,errorMessage:String,validMessage:String,prefixIcon:String,id:String,descriptionId:String,hint:String,type:String,minDate:String,maxDate:String,width:String,noRadius:Boolean,modelModifiers:Object,textareaMinHeight:String},emits:["update:modelValue"],template:`<input @input="$emit('update:modelValue', $event.target.value)" data-testid="av-input-stub" :value="modelValue" :placeholder="placeholder" :disabled="disabled" :required="required" :maxlength="maxlength" /><slot name="customCaptions" :current-value="modelValue" />`}),A=e.defineComponent({name:"AvList",props:["size"],template:`
|
|
62
62
|
<div class="av-list-stub">
|
|
63
63
|
<slot />
|
|
64
64
|
</div>`}),C=e.defineComponent({name:"AvListItem",props:["clickable","hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<slot />
|
|
154
154
|
<slot name="footer" />
|
|
155
155
|
</div>
|
|
156
|
-
`})
|
|
156
|
+
`}),$=e.defineComponent({name:"AvDropdown",props:["items","triggerAriaLabel","triggerIcon","triggerLabel","triggerVariant","triggerSmall","padding"],emits:["itemSelected"],template:`
|
|
157
157
|
<div class="av-dropdown-stub">
|
|
158
158
|
<button
|
|
159
159
|
v-for="item in items"
|
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
{{ item.label }}
|
|
165
165
|
</button>
|
|
166
166
|
</div>
|
|
167
|
-
`}),
|
|
167
|
+
`}),q=e.defineComponent({name:"AvModal",props:["opened","closeButtonLabel","confirmButtonLabel","confirmButtonIcon"],emits:["close","confirm"],template:`
|
|
168
168
|
<div class="av-modal">
|
|
169
169
|
<slot name="header"></slot>
|
|
170
170
|
<slot />
|
|
171
171
|
<slot name="footer"></slot>
|
|
172
172
|
</div>
|
|
173
|
-
`});function
|
|
173
|
+
`});function N(){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=$;exports.AvFieldsetStub=r;exports.AvIconStub=c;exports.AvIconTextStub=u;exports.AvInputStub=f;exports.AvListItemStub=C;exports.AvListStub=A;exports.AvModalStub=q;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=N;
|
package/dist/test-utils.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, inject as s, ref as r, toRef as
|
|
1
|
+
import { defineComponent as e, inject as s, ref as r, toRef as d, computed as n, h as c } from "vue";
|
|
2
2
|
import { r as p } from "./injection-key.es.js";
|
|
3
3
|
import "@vue/test-utils";
|
|
4
4
|
const g = e({
|
|
@@ -82,13 +82,13 @@ const g = e({
|
|
|
82
82
|
setup(a) {
|
|
83
83
|
const t = s(p);
|
|
84
84
|
if (!t) {
|
|
85
|
-
const
|
|
86
|
-
return { isActive:
|
|
87
|
-
|
|
85
|
+
const l = r(!1);
|
|
86
|
+
return { isActive: l, expand: () => {
|
|
87
|
+
l.value = !l.value;
|
|
88
88
|
} };
|
|
89
89
|
}
|
|
90
|
-
const { isActive:
|
|
91
|
-
return { isActive:
|
|
90
|
+
const { isActive: o, expand: i } = t(d(a, "title"));
|
|
91
|
+
return { isActive: o, expand: i };
|
|
92
92
|
}
|
|
93
93
|
}), x = e({
|
|
94
94
|
name: "AvButton",
|
|
@@ -209,7 +209,7 @@ const g = e({
|
|
|
209
209
|
textareaMinHeight: String
|
|
210
210
|
},
|
|
211
211
|
emits: ["update:modelValue"],
|
|
212
|
-
template:
|
|
212
|
+
template: `<input @input="$emit('update:modelValue', $event.target.value)" 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"],
|
|
@@ -340,11 +340,11 @@ const g = e({
|
|
|
340
340
|
},
|
|
341
341
|
emits: ["update:modelValue"],
|
|
342
342
|
setup(a, { slots: t }) {
|
|
343
|
-
const
|
|
344
|
-
var
|
|
345
|
-
return ((
|
|
343
|
+
const o = n(() => {
|
|
344
|
+
var l;
|
|
345
|
+
return ((l = t.default) == null ? void 0 : l.call(t)) ?? [];
|
|
346
346
|
}), i = n(() => a.modelValue ?? 0);
|
|
347
|
-
return () =>
|
|
347
|
+
return () => c("div", { class: "av-tabs" }, o.value[i.value] ?? null);
|
|
348
348
|
}
|
|
349
349
|
}), D = e({
|
|
350
350
|
name: "AvToggle",
|