@avenirs-esr/avenirs-dsav 0.1.120 → 0.1.122

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.
@@ -17,7 +17,7 @@
17
17
  <slot />
18
18
  </button>
19
19
  </div>
20
- `,setup(o){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:n,expand:i,onKeydown:a,setTriggerRef:s}=t(e.toRef(o,"title"));return{isActive:n,expand:i,onKeydown:a,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:`
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="customCaptions" :current-value="modelValue" />`}),y=e.defineComponent({name:"AvList",props:["size"],template:`
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="customCaptions" :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>`}),h=e.defineComponent({name:"AvListItem",props:["hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
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>`}),k=e.defineComponent({name:"AvTagPicker",props:["label","options","selected","handleSelectChange"],template:`
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
- `}),x=e.defineComponent({name:"AvAutocomplete",props:["modelValue","options","loading","inputOptions","getOptionLabel","getOptionKey","multiSelect","serverSideFiltering","enableLoadMore","maxDropdownHeight"],emits:["update:modelValue","search","clear","loadMore"],template:`
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
- `}),B=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:`
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>'}),V=e.defineComponent({name:"AvTabs",props:{modelValue:{type:Number,default:0},ariaLabel:String,compact:Boolean},emits:["update:modelValue"],setup(o,{slots:t}){const n=e.computed(()=>{var a;return((a=t.default)==null?void 0:a.call(t))??[]}),i=e.computed(()=>o.modelValue??0);return()=>e.h("div",{class:"av-tabs"},n.value[i.value]??null)}}),I=e.defineComponent({name:"AvToggle",props:["id","name","modelValue","description","activeText","inactiveText","disabled"],emits:["update:modelValue"],template:`
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"]}),M=e.defineComponent({name:"AvSideNavigation",props:{items:Array,selectedItem:String,isSideMenuCollapsed:Boolean,collapsedWidth:String},emits:["update:selectedItem","update:isSideMenuCollapsed"],template:`
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 D(){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=b;exports.AvAutocompleteStub=x;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=h;exports.AvListStub=y;exports.AvModalStub=N;exports.AvSelectStub=B;exports.AvSideNavigationStub=M;exports.AvStepperStub=w;exports.AvTabStub=T;exports.AvTabsStub=V;exports.AvTagPickerStub=k;exports.AvTagStub=c;exports.AvToggleStub=I;exports.BddTest=D;
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;
@@ -148,7 +148,7 @@ const f = e({
148
148
  </button>
149
149
  </div>
150
150
  `
151
- }), T = e({
151
+ }), M = e({
152
152
  name: "AvCheckbox",
153
153
  props: {
154
154
  id: { type: String, default: "" },
@@ -215,14 +215,35 @@ const f = e({
215
215
  },
216
216
  emits: ["update:modelValue"],
217
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="customCaptions" :current-value="modelValue" />`
218
- }), M = e({
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
- }), $ = e({
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
- }), w = e({
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
- }), D = e({
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
- }), O = e({
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
- }), R = e({
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
- }), H = e({
398
+ }), K = e({
378
399
  name: "AvBreadcrumb",
379
400
  template: '<div class="av-breadcrumb-stub" />',
380
401
  props: ["links", "navigationLabel", "showBreadcrumbLabel"]
381
- }), K = e({
402
+ }), P = e({
382
403
  name: "AvSideNavigation",
383
404
  props: {
384
405
  items: Array,
@@ -475,11 +496,11 @@ export {
475
496
  B as AvAccordionStub,
476
497
  N as AvAutocompleteStub,
477
498
  f as AvBadgeStub,
478
- H as AvBreadcrumbStub,
499
+ K as AvBreadcrumbStub,
479
500
  V as AvButtonStub,
480
501
  C as AvCancelConfirmButtonsStub,
481
502
  x as AvCardStub,
482
- T as AvCheckboxStub,
503
+ M as AvCheckboxStub,
483
504
  I as AvCheckboxesGroupStub,
484
505
  F as AvDrawerStub,
485
506
  j as AvDropdownStub,
@@ -487,16 +508,17 @@ export {
487
508
  y as AvIconStub,
488
509
  k as AvIconTextStub,
489
510
  L as AvInputStub,
490
- $ as AvListItemStub,
491
- M as AvListStub,
511
+ w as AvListItemStub,
512
+ D as AvListStub,
492
513
  z as AvModalStub,
514
+ T as AvPeriodInputStub,
493
515
  q as AvSelectStub,
494
- K as AvSideNavigationStub,
516
+ P as AvSideNavigationStub,
495
517
  E as AvStepperStub,
496
- D as AvTabStub,
497
- O as AvTabsStub,
498
- w as AvTagPickerStub,
518
+ O as AvTabStub,
519
+ R as AvTabsStub,
520
+ $ as AvTagPickerStub,
499
521
  A as AvTagStub,
500
- R as AvToggleStub,
522
+ H as AvToggleStub,
501
523
  G as BddTest
502
524
  };
@@ -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, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@avenirs-esr/avenirs-dsav",
3
3
  "type": "module",
4
- "version": "0.1.120",
4
+ "version": "0.1.122",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/avenirs-esr/avenirs-dsav"