@avenirs-esr/avenirs-dsav 0.1.88 → 0.1.90
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/base/AvIconText/AvIconText.stub.d.ts +4 -0
- package/dist/components/interaction/tabs/AvTabs/components/TabContent.vue.d.ts +0 -8
- package/dist/components/overlay/modals/AvModal/AvModal.stub.d.ts +14 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +1725 -1750
- package/dist/test-utils.cjs.js +11 -5
- package/dist/test-utils.es.js +34 -22
- package/dist/tests/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/styles/components/_grid.scss +1 -0
- package/dist/components/interaction/tabs/AvTabs/composables/use-tab-transition.d.ts +0 -23
- package/dist/components/interaction/tabs/AvTabs/composables/use-tab-transition.test.d.ts +0 -1
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}}),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:"AvIconText",template:'<div class="av-icon-text" />',props:["icon","text"]}),u=e.defineComponent({name:"AvAccordion",props:["title","icon"],template:`
|
|
7
|
+
</div>`,props:{label:String,small:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!1},color:String,backgroundColor:String,borderColor:String,icon: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:"AvIconText",template:'<div class="av-icon-text" />',props:["icon","text","icon-color","text-color"]}),u=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(o){const t=e.inject(l.registerAccordionKey);if(!t){const n=e.ref(!1);return{isActive:n,expand:()=>{n.value=!n.value}}}const{isActive:a,expand:i}=t(e.toRef(o,"title"));return{isActive:a,expand:i}}}),m=e.defineComponent({name:"AvButton",props:["label","icon","variant","type","disabled","isLoading","small"],emits:["click"],template:`
|
|
19
19
|
<button
|
|
20
20
|
class="av-button-stub"
|
|
21
21
|
:disabled="disabled"
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
<span class="inactive-text">
|
|
129
129
|
{{ inactiveText }}
|
|
130
130
|
</span>
|
|
131
|
-
</div>`}),x=e.defineComponent({name:"AvBreadcrumb",template:'<div class="av-breadcrumb-stub" />',props:["links","navigationLabel","showBreadcrumbLabel"]}),
|
|
131
|
+
</div>`}),x=e.defineComponent({name:"AvBreadcrumb",template:'<div class="av-breadcrumb-stub" />',props:["links","navigationLabel","showBreadcrumbLabel"]}),B=e.defineComponent({name:"AvSideNavigation",props:{items:Array,selectedItem:String,isSideMenuCollapsed:Boolean,collapsedWidth:String},emits:["update:selectedItem","update:isSideMenuCollapsed"],template:`
|
|
132
132
|
<div
|
|
133
133
|
class="av-side-navigation-stub"
|
|
134
134
|
@click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)"
|
|
135
135
|
/>
|
|
136
|
-
`}),
|
|
136
|
+
`}),y=e.defineComponent({name:"AvStepper",props:{steps:{type:Array,required:!0},currentStep:{type:Number,required:!0}},template:`
|
|
137
137
|
<div class="av-stepper-stub">
|
|
138
138
|
<div
|
|
139
139
|
v-for="(step, index) in steps"
|
|
@@ -160,4 +160,10 @@
|
|
|
160
160
|
{{ item.label }}
|
|
161
161
|
</button>
|
|
162
162
|
</div>
|
|
163
|
-
`})
|
|
163
|
+
`}),L=e.defineComponent({name:"AvModal",props:["opened","closeButtonLabel","confirmButtonLabel","confirmButtonIcon"],emits:["close","confirm"],template:`
|
|
164
|
+
<div class="av-modal">
|
|
165
|
+
<slot name="header"></slot>
|
|
166
|
+
<slot />
|
|
167
|
+
<slot name="footer"></slot>
|
|
168
|
+
</div>
|
|
169
|
+
`});function T(){return{given(o,t){return describe(`🔵 GIVEN ${o}`,t),this},when(o,t){return describe(`🔶 WHEN ${o}`,t),this},and(o,t){return describe(`➕ AND ${o}`,t),this},then(o,t){return it(`🟩 THEN ${o}`,t),this}}}exports.AvAccordionStub=u;exports.AvAutocompleteStub=h;exports.AvBadgeStub=s;exports.AvBreadcrumbStub=x;exports.AvButtonStub=m;exports.AvCancelConfirmButtonsStub=v;exports.AvCheckboxStub=b;exports.AvDrawerStub=V;exports.AvDropdownStub=I;exports.AvFieldsetStub=d;exports.AvIconStub=r;exports.AvIconTextStub=p;exports.AvInputStub=g;exports.AvListItemStub=A;exports.AvListStub=S;exports.AvModalStub=L;exports.AvSelectStub=C;exports.AvSideNavigationStub=B;exports.AvStepperStub=y;exports.AvTagPickerStub=f;exports.AvTagStub=c;exports.AvToggleStub=k;exports.BddTest=T;
|
package/dist/test-utils.es.js
CHANGED
|
@@ -51,7 +51,7 @@ const v = e({
|
|
|
51
51
|
}), A = e({
|
|
52
52
|
name: "AvIconText",
|
|
53
53
|
template: '<div class="av-icon-text" />',
|
|
54
|
-
props: ["icon", "text"]
|
|
54
|
+
props: ["icon", "text", "icon-color", "text-color"]
|
|
55
55
|
}), f = e({
|
|
56
56
|
name: "AvAccordion",
|
|
57
57
|
props: ["title", "icon"],
|
|
@@ -70,13 +70,13 @@ const v = e({
|
|
|
70
70
|
setup(a) {
|
|
71
71
|
const t = n(r);
|
|
72
72
|
if (!t) {
|
|
73
|
-
const
|
|
74
|
-
return { isActive:
|
|
75
|
-
|
|
73
|
+
const o = s(!1);
|
|
74
|
+
return { isActive: o, expand: () => {
|
|
75
|
+
o.value = !o.value;
|
|
76
76
|
} };
|
|
77
77
|
}
|
|
78
|
-
const { isActive:
|
|
79
|
-
return { isActive:
|
|
78
|
+
const { isActive: i, expand: l } = t(c(a, "title"));
|
|
79
|
+
return { isActive: i, expand: l };
|
|
80
80
|
}
|
|
81
81
|
}), h = e({
|
|
82
82
|
name: "AvButton",
|
|
@@ -164,14 +164,14 @@ const v = e({
|
|
|
164
164
|
},
|
|
165
165
|
emits: ["update:modelValue"],
|
|
166
166
|
template: '<input data-testid="av-input-stub" :value="modelValue" :placeholder="placeholder" :disabled="disabled" :required="required" :maxlength="maxlength" /><slot name="customCaptions" :current-value="modelValue" />'
|
|
167
|
-
}),
|
|
167
|
+
}), B = e({
|
|
168
168
|
name: "AvList",
|
|
169
169
|
props: ["size"],
|
|
170
170
|
template: `
|
|
171
171
|
<div class="av-list-stub">
|
|
172
172
|
<slot />
|
|
173
173
|
</div>`
|
|
174
|
-
}),
|
|
174
|
+
}), V = e({
|
|
175
175
|
name: "AvListItem",
|
|
176
176
|
props: ["clickable", "hoverBackgroundColor", "selected", "icon", "iconSize", "iconColor", "colorOnHover"],
|
|
177
177
|
emits: ["click"],
|
|
@@ -202,7 +202,7 @@ const v = e({
|
|
|
202
202
|
</button>
|
|
203
203
|
</div>
|
|
204
204
|
`
|
|
205
|
-
}),
|
|
205
|
+
}), L = e({
|
|
206
206
|
name: "AvAutocomplete",
|
|
207
207
|
props: [
|
|
208
208
|
"modelValue",
|
|
@@ -229,7 +229,7 @@ const v = e({
|
|
|
229
229
|
/>
|
|
230
230
|
</div>
|
|
231
231
|
`
|
|
232
|
-
}),
|
|
232
|
+
}), I = e({
|
|
233
233
|
name: "AvSelect",
|
|
234
234
|
props: {
|
|
235
235
|
modelValue: [String, Number],
|
|
@@ -269,7 +269,7 @@ const v = e({
|
|
|
269
269
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
270
270
|
</select>
|
|
271
271
|
`
|
|
272
|
-
}),
|
|
272
|
+
}), M = e({
|
|
273
273
|
name: "AvToggle",
|
|
274
274
|
props: ["id", "name", "modelValue", "description", "activeText", "inactiveText", "disabled"],
|
|
275
275
|
emits: ["update:modelValue"],
|
|
@@ -292,11 +292,11 @@ const v = e({
|
|
|
292
292
|
{{ inactiveText }}
|
|
293
293
|
</span>
|
|
294
294
|
</div>`
|
|
295
|
-
}),
|
|
295
|
+
}), T = e({
|
|
296
296
|
name: "AvBreadcrumb",
|
|
297
297
|
template: '<div class="av-breadcrumb-stub" />',
|
|
298
298
|
props: ["links", "navigationLabel", "showBreadcrumbLabel"]
|
|
299
|
-
}),
|
|
299
|
+
}), $ = e({
|
|
300
300
|
name: "AvSideNavigation",
|
|
301
301
|
props: {
|
|
302
302
|
items: Array,
|
|
@@ -361,8 +361,19 @@ const v = e({
|
|
|
361
361
|
</button>
|
|
362
362
|
</div>
|
|
363
363
|
`
|
|
364
|
+
}), D = e({
|
|
365
|
+
name: "AvModal",
|
|
366
|
+
props: ["opened", "closeButtonLabel", "confirmButtonLabel", "confirmButtonIcon"],
|
|
367
|
+
emits: ["close", "confirm"],
|
|
368
|
+
template: `
|
|
369
|
+
<div class="av-modal">
|
|
370
|
+
<slot name="header"></slot>
|
|
371
|
+
<slot />
|
|
372
|
+
<slot name="footer"></slot>
|
|
373
|
+
</div>
|
|
374
|
+
`
|
|
364
375
|
});
|
|
365
|
-
function
|
|
376
|
+
function O() {
|
|
366
377
|
return {
|
|
367
378
|
given(a, t) {
|
|
368
379
|
return describe(`🔵 GIVEN ${a}`, t), this;
|
|
@@ -380,9 +391,9 @@ function D() {
|
|
|
380
391
|
}
|
|
381
392
|
export {
|
|
382
393
|
f as AvAccordionStub,
|
|
383
|
-
|
|
394
|
+
L as AvAutocompleteStub,
|
|
384
395
|
v as AvBadgeStub,
|
|
385
|
-
|
|
396
|
+
T as AvBreadcrumbStub,
|
|
386
397
|
h as AvButtonStub,
|
|
387
398
|
k as AvCancelConfirmButtonsStub,
|
|
388
399
|
x as AvCheckboxStub,
|
|
@@ -392,13 +403,14 @@ export {
|
|
|
392
403
|
S as AvIconStub,
|
|
393
404
|
A as AvIconTextStub,
|
|
394
405
|
y as AvInputStub,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
406
|
+
V as AvListItemStub,
|
|
407
|
+
B as AvListStub,
|
|
408
|
+
D as AvModalStub,
|
|
409
|
+
I as AvSelectStub,
|
|
410
|
+
$ as AvSideNavigationStub,
|
|
399
411
|
w as AvStepperStub,
|
|
400
412
|
C as AvTagPickerStub,
|
|
401
413
|
b as AvTagStub,
|
|
402
|
-
|
|
403
|
-
|
|
414
|
+
M as AvToggleStub,
|
|
415
|
+
O as BddTest
|
|
404
416
|
};
|
package/dist/tests/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ import { AvSideNavigationStub } from '@/components/navigation/AvSideNavigation/A
|
|
|
19
19
|
import { AvStepperStub } from '@/components/navigation/AvStepper/AvStepper.stub';
|
|
20
20
|
import { AvDrawerStub } from '@/components/overlay/drawers/AvDrawer/AvDrawer.stub';
|
|
21
21
|
import { AvDropdownStub } from '@/components/overlay/dropdowns/AvDropdown/AvDropdown.stub';
|
|
22
|
+
import { AvModalStub } from '@/components/overlay/modals/AvModal/AvModal.stub';
|
|
22
23
|
import { BddTest } from '@/tests/utils';
|
|
23
|
-
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvIconTextStub, AvInputStub, AvListItemStub, AvListStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|
|
24
|
+
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvIconTextStub, AvInputStub, AvListItemStub, AvListStub, AvModalStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Return type of useTabTransition composable
|
|
4
|
-
*/
|
|
5
|
-
interface UseTabTransitionReturn {
|
|
6
|
-
/**
|
|
7
|
-
* Translate value for the "from" state of the transition.
|
|
8
|
-
* Used for the .slide-fade-enter-from class.
|
|
9
|
-
*/
|
|
10
|
-
translateValueFrom: ComputedRef<string>;
|
|
11
|
-
/**
|
|
12
|
-
* Translate value for the "to" state of the transition.
|
|
13
|
-
* Used for the .slide-fade-leave-to class.
|
|
14
|
-
*/
|
|
15
|
-
translateValueTo: ComputedRef<string>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Composable managing tab transition values based on the direction of the tab change.
|
|
19
|
-
* @param asc - Boolean indicating if the tab change is in ascending order.
|
|
20
|
-
* @returns An object containing computed properties for transition translate values.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useTabTransition(asc: Ref<boolean>): UseTabTransitionReturn;
|
|
23
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|