@avenirs-esr/avenirs-dsav 0.1.121 → 0.1.123
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/avenirs-dsav.css +1 -1
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +2 -2
- package/dist/components/interaction/inputs/AvPeriodInput/AvPeriodInput.stub.d.ts +40 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +6 -6
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +822 -825
- package/dist/test-utils.cjs.js +9 -9
- package/dist/test-utils.es.js +49 -27
- package/dist/tests/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/test-utils.cjs.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<slot />
|
|
18
18
|
</button>
|
|
19
19
|
</div>
|
|
20
|
-
`,setup(
|
|
20
|
+
`,setup(a){const t=e.inject(r.registerAccordionKey);if(!t){const l=e.ref(!1);return{isActive:l,expand:()=>{l.value=!l.value},onKeydown:()=>{},setTriggerRef:()=>{}}}const{isActive:o,expand:i,onKeydown:n,setTriggerRef:s}=t(e.toRef(a,"title"));return{isActive:o,expand:i,onKeydown:n,setTriggerRef:s}}}),g=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:`
|
|
21
21
|
<button
|
|
22
22
|
class="av-button-stub"
|
|
23
23
|
:disabled="disabled"
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
<fieldset class="av-checkboxes-group-stub">
|
|
61
61
|
<slot />
|
|
62
62
|
</fieldset>
|
|
63
|
-
`}),C=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,formatDateStr: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="
|
|
63
|
+
`}),C=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,formatDateStr: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="maxLengthCaption" :current-value="modelValue" />`}),h=e.defineComponent({name:"AvPeriodInput",props:{id:String,label:String,labelClass:String,startModelValue:String,endModelValue:String,startLabel:String,endLabel:String,disabled:Boolean,width:String,startMinDate:Date,startMaxDate:Date,endMinDate:Date,endMaxDate:Date,stacked:Boolean,separatorSpacing:String},emits:["update:startModelValue","update:endModelValue","change"],template:'<div class="av-period-input-stub" data-testid="av-period-input-stub" />'}),y=e.defineComponent({name:"AvList",props:["size"],template:`
|
|
64
64
|
<div class="av-list-stub">
|
|
65
65
|
<slot />
|
|
66
|
-
</div>`}),
|
|
66
|
+
</div>`}),k=e.defineComponent({name:"AvListItem",props:["hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
|
|
67
67
|
<div
|
|
68
68
|
class="av-list-item-stub"
|
|
69
69
|
@click="$emit('click')"
|
|
70
70
|
>
|
|
71
71
|
<slot />
|
|
72
|
-
</div>`}),
|
|
72
|
+
</div>`}),x=e.defineComponent({name:"AvTagPicker",props:["label","options","selected","handleSelectChange"],template:`
|
|
73
73
|
<div class="av-tag-picker-stub">
|
|
74
74
|
<button
|
|
75
75
|
v-for="option in options"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
{{ option.label }}
|
|
81
81
|
</button>
|
|
82
82
|
</div>
|
|
83
|
-
`}),
|
|
83
|
+
`}),B=e.defineComponent({name:"AvAutocomplete",props:["modelValue","options","loading","inputOptions","getOptionLabel","getOptionKey","multiSelect","serverSideFiltering","enableLoadMore","maxDropdownHeight"],emits:["update:modelValue","search","clear","loadMore"],template:`
|
|
84
84
|
<div class="av-autocomplete-stub">
|
|
85
85
|
<slot
|
|
86
86
|
name="item"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
:toggle="() => {}"
|
|
92
92
|
/>
|
|
93
93
|
</div>
|
|
94
|
-
`}),
|
|
94
|
+
`}),V=e.defineComponent({name:"AvSelect",props:{modelValue:[String,Number],options:Array,placeholder:String,dense:Boolean,required:Boolean,disabled:Boolean,hint:String,errorMessage:String,successMessage:String},emits:["update:modelValue"],template:`
|
|
95
95
|
<select
|
|
96
96
|
class="av-select-stub"
|
|
97
97
|
:value="modelValue"
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<span v-if="errorMessage">{{ errorMessage }}</span>
|
|
117
117
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
118
118
|
</select>
|
|
119
|
-
`}),T=e.defineComponent({name:"AvTab",props:{title:{type:String,required:!0},icon:{type:String,required:!1}},template:'<div class="av-tab"><slot /></div>'}),
|
|
119
|
+
`}),T=e.defineComponent({name:"AvTab",props:{title:{type:String,required:!0},icon:{type:String,required:!1}},template:'<div class="av-tab"><slot /></div>'}),M=e.defineComponent({name:"AvTabs",props:{modelValue:{type:Number,default:0},ariaLabel:String,compact:Boolean},emits:["update:modelValue"],setup(a,{slots:t}){const o=e.computed(()=>{var n;return((n=t.default)==null?void 0:n.call(t))??[]}),i=e.computed(()=>a.modelValue??0);return()=>e.h("div",{class:"av-tabs"},o.value[i.value]??null)}}),I=e.defineComponent({name:"AvToggle",props:["id","name","modelValue","description","activeText","inactiveText","disabled"],emits:["update:modelValue"],template:`
|
|
120
120
|
<div class="av-toggle">
|
|
121
121
|
<input
|
|
122
122
|
type="checkbox"
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
<span class="inactive-text">
|
|
135
135
|
{{ inactiveText }}
|
|
136
136
|
</span>
|
|
137
|
-
</div>`}),L=e.defineComponent({name:"AvBreadcrumb",template:'<div class="av-breadcrumb-stub" />',props:["links","navigationLabel","showBreadcrumbLabel"]}),
|
|
137
|
+
</div>`}),L=e.defineComponent({name:"AvBreadcrumb",template:'<div class="av-breadcrumb-stub" />',props:["links","navigationLabel","showBreadcrumbLabel"]}),D=e.defineComponent({name:"AvSideNavigation",props:{items:Array,selectedItem:String,isSideMenuCollapsed:Boolean,collapsedWidth:String},emits:["update:selectedItem","update:isSideMenuCollapsed"],template:`
|
|
138
138
|
<div
|
|
139
139
|
class="av-side-navigation-stub"
|
|
140
140
|
@click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)"
|
|
@@ -172,4 +172,4 @@
|
|
|
172
172
|
<slot />
|
|
173
173
|
<slot name="footer"></slot>
|
|
174
174
|
</div>
|
|
175
|
-
`});function
|
|
175
|
+
`});function O(){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=b;exports.AvAutocompleteStub=B;exports.AvBadgeStub=d;exports.AvBreadcrumbStub=L;exports.AvButtonStub=g;exports.AvCancelConfirmButtonsStub=S;exports.AvCardStub=v;exports.AvCheckboxStub=f;exports.AvCheckboxesGroupStub=A;exports.AvDrawerStub=$;exports.AvDropdownStub=q;exports.AvFieldsetStub=u;exports.AvIconStub=p;exports.AvIconTextStub=m;exports.AvInputStub=C;exports.AvListItemStub=k;exports.AvListStub=y;exports.AvModalStub=N;exports.AvPeriodInputStub=h;exports.AvSelectStub=V;exports.AvSideNavigationStub=D;exports.AvStepperStub=w;exports.AvTabStub=T;exports.AvTabsStub=M;exports.AvTagPickerStub=x;exports.AvTagStub=c;exports.AvToggleStub=I;exports.BddTest=O;
|
package/dist/test-utils.es.js
CHANGED
|
@@ -48,11 +48,11 @@ const f = e({
|
|
|
48
48
|
name: "AvIcon",
|
|
49
49
|
props: ["name", "color", "size", "title", "animation"],
|
|
50
50
|
template: '<div class="av-vicon-stub" />'
|
|
51
|
-
}),
|
|
51
|
+
}), x = e({
|
|
52
52
|
name: "AvIconText",
|
|
53
53
|
template: '<div class="av-icon-text" />',
|
|
54
54
|
props: ["icon", "text", "icon-color", "text-color"]
|
|
55
|
-
}),
|
|
55
|
+
}), k = e({
|
|
56
56
|
name: "AvCard",
|
|
57
57
|
props: {
|
|
58
58
|
titleOnly: { type: Boolean, default: !1 },
|
|
@@ -148,7 +148,7 @@ const f = e({
|
|
|
148
148
|
</button>
|
|
149
149
|
</div>
|
|
150
150
|
`
|
|
151
|
-
}),
|
|
151
|
+
}), M = e({
|
|
152
152
|
name: "AvCheckbox",
|
|
153
153
|
props: {
|
|
154
154
|
id: { type: String, default: "" },
|
|
@@ -175,7 +175,7 @@ const f = e({
|
|
|
175
175
|
<label :for="id"><slot name="label">{{ label }}</slot></label>
|
|
176
176
|
</div>
|
|
177
177
|
`
|
|
178
|
-
}),
|
|
178
|
+
}), L = e({
|
|
179
179
|
name: "AvCheckboxesGroup",
|
|
180
180
|
props: ["modelValue", "options"],
|
|
181
181
|
emits: ["update:modelValue"],
|
|
@@ -184,7 +184,7 @@ const f = e({
|
|
|
184
184
|
<slot />
|
|
185
185
|
</fieldset>
|
|
186
186
|
`
|
|
187
|
-
}),
|
|
187
|
+
}), I = e({
|
|
188
188
|
name: "AvInput",
|
|
189
189
|
props: {
|
|
190
190
|
modelValue: String,
|
|
@@ -214,15 +214,36 @@ const f = e({
|
|
|
214
214
|
formatDateStr: String
|
|
215
215
|
},
|
|
216
216
|
emits: ["update:modelValue"],
|
|
217
|
-
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="
|
|
218
|
-
}),
|
|
217
|
+
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="maxLengthCaption" :current-value="modelValue" />`
|
|
218
|
+
}), T = e({
|
|
219
|
+
name: "AvPeriodInput",
|
|
220
|
+
props: {
|
|
221
|
+
id: String,
|
|
222
|
+
label: String,
|
|
223
|
+
labelClass: String,
|
|
224
|
+
startModelValue: String,
|
|
225
|
+
endModelValue: String,
|
|
226
|
+
startLabel: String,
|
|
227
|
+
endLabel: String,
|
|
228
|
+
disabled: Boolean,
|
|
229
|
+
width: String,
|
|
230
|
+
startMinDate: Date,
|
|
231
|
+
startMaxDate: Date,
|
|
232
|
+
endMinDate: Date,
|
|
233
|
+
endMaxDate: Date,
|
|
234
|
+
stacked: Boolean,
|
|
235
|
+
separatorSpacing: String
|
|
236
|
+
},
|
|
237
|
+
emits: ["update:startModelValue", "update:endModelValue", "change"],
|
|
238
|
+
template: '<div class="av-period-input-stub" data-testid="av-period-input-stub" />'
|
|
239
|
+
}), D = e({
|
|
219
240
|
name: "AvList",
|
|
220
241
|
props: ["size"],
|
|
221
242
|
template: `
|
|
222
243
|
<div class="av-list-stub">
|
|
223
244
|
<slot />
|
|
224
245
|
</div>`
|
|
225
|
-
}),
|
|
246
|
+
}), w = e({
|
|
226
247
|
name: "AvListItem",
|
|
227
248
|
props: ["hoverBackgroundColor", "selected", "icon", "iconSize", "iconColor", "colorOnHover"],
|
|
228
249
|
emits: ["click"],
|
|
@@ -233,7 +254,7 @@ const f = e({
|
|
|
233
254
|
>
|
|
234
255
|
<slot />
|
|
235
256
|
</div>`
|
|
236
|
-
}),
|
|
257
|
+
}), $ = e({
|
|
237
258
|
name: "AvTagPicker",
|
|
238
259
|
props: [
|
|
239
260
|
"label",
|
|
@@ -320,7 +341,7 @@ const f = e({
|
|
|
320
341
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
321
342
|
</select>
|
|
322
343
|
`
|
|
323
|
-
}),
|
|
344
|
+
}), O = e({
|
|
324
345
|
name: "AvTab",
|
|
325
346
|
props: {
|
|
326
347
|
title: {
|
|
@@ -333,7 +354,7 @@ const f = e({
|
|
|
333
354
|
}
|
|
334
355
|
},
|
|
335
356
|
template: '<div class="av-tab"><slot /></div>'
|
|
336
|
-
}),
|
|
357
|
+
}), R = e({
|
|
337
358
|
name: "AvTabs",
|
|
338
359
|
props: {
|
|
339
360
|
modelValue: {
|
|
@@ -351,7 +372,7 @@ const f = e({
|
|
|
351
372
|
}), i = s(() => a.modelValue ?? 0);
|
|
352
373
|
return () => u("div", { class: "av-tabs" }, l.value[i.value] ?? null);
|
|
353
374
|
}
|
|
354
|
-
}),
|
|
375
|
+
}), H = e({
|
|
355
376
|
name: "AvToggle",
|
|
356
377
|
props: ["id", "name", "modelValue", "description", "activeText", "inactiveText", "disabled"],
|
|
357
378
|
emits: ["update:modelValue"],
|
|
@@ -374,11 +395,11 @@ const f = e({
|
|
|
374
395
|
{{ inactiveText }}
|
|
375
396
|
</span>
|
|
376
397
|
</div>`
|
|
377
|
-
}),
|
|
398
|
+
}), K = e({
|
|
378
399
|
name: "AvBreadcrumb",
|
|
379
400
|
template: '<div class="av-breadcrumb-stub" />',
|
|
380
401
|
props: ["links", "navigationLabel", "showBreadcrumbLabel"]
|
|
381
|
-
}),
|
|
402
|
+
}), P = e({
|
|
382
403
|
name: "AvSideNavigation",
|
|
383
404
|
props: {
|
|
384
405
|
items: Array,
|
|
@@ -475,28 +496,29 @@ export {
|
|
|
475
496
|
B as AvAccordionStub,
|
|
476
497
|
N as AvAutocompleteStub,
|
|
477
498
|
f as AvBadgeStub,
|
|
478
|
-
|
|
499
|
+
K as AvBreadcrumbStub,
|
|
479
500
|
V as AvButtonStub,
|
|
480
501
|
C as AvCancelConfirmButtonsStub,
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
502
|
+
k as AvCardStub,
|
|
503
|
+
M as AvCheckboxStub,
|
|
504
|
+
L as AvCheckboxesGroupStub,
|
|
484
505
|
F as AvDrawerStub,
|
|
485
506
|
j as AvDropdownStub,
|
|
486
507
|
h as AvFieldsetStub,
|
|
487
508
|
y as AvIconStub,
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
509
|
+
x as AvIconTextStub,
|
|
510
|
+
I as AvInputStub,
|
|
511
|
+
w as AvListItemStub,
|
|
512
|
+
D as AvListStub,
|
|
492
513
|
z as AvModalStub,
|
|
514
|
+
T as AvPeriodInputStub,
|
|
493
515
|
q as AvSelectStub,
|
|
494
|
-
|
|
516
|
+
P as AvSideNavigationStub,
|
|
495
517
|
E as AvStepperStub,
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
518
|
+
O as AvTabStub,
|
|
519
|
+
R as AvTabsStub,
|
|
520
|
+
$ as AvTagPickerStub,
|
|
499
521
|
A as AvTagStub,
|
|
500
|
-
|
|
522
|
+
H as AvToggleStub,
|
|
501
523
|
G as BddTest
|
|
502
524
|
};
|
package/dist/tests/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { AvCancelConfirmButtonsStub } from '@/components/interaction/buttons/AvC
|
|
|
10
10
|
import { AvCheckboxStub } from '@/components/interaction/checkboxes/AvCheckbox/AvCheckbox.stub';
|
|
11
11
|
import { AvCheckboxesGroupStub } from '@/components/interaction/checkboxes/AvCheckboxesGroup/AvCheckboxesGroup.stub';
|
|
12
12
|
import { AvInputStub } from '@/components/interaction/inputs/AvInput/AvInput.stub';
|
|
13
|
+
import { AvPeriodInputStub } from '@/components/interaction/inputs/AvPeriodInput/AvPeriodInput.stub';
|
|
13
14
|
import { AvListStub } from '@/components/interaction/lists/AvList/AvList.stub';
|
|
14
15
|
import { AvListItemStub } from '@/components/interaction/lists/AvListItem/AvListItem.stub';
|
|
15
16
|
import { AvTagPickerStub } from '@/components/interaction/pickers/AvTagPicker/AvTagPicker.stub';
|
|
@@ -25,4 +26,4 @@ import { AvDrawerStub } from '@/components/overlay/drawers/AvDrawer/AvDrawer.stu
|
|
|
25
26
|
import { AvDropdownStub } from '@/components/overlay/dropdowns/AvDropdown/AvDropdown.stub';
|
|
26
27
|
import { AvModalStub } from '@/components/overlay/modals/AvModal/AvModal.stub';
|
|
27
28
|
import { BddTest } from '@/tests/utils';
|
|
28
|
-
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCardStub, AvCheckboxesGroupStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvIconTextStub, AvInputStub, AvListItemStub, AvListStub, AvModalStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTabsStub, AvTabStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|
|
29
|
+
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCardStub, AvCheckboxesGroupStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvIconTextStub, AvInputStub, AvListItemStub, AvListStub, AvModalStub, AvPeriodInputStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTabsStub, AvTabStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|