@avenirs-esr/avenirs-dsav 0.1.129 → 0.1.131

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.
@@ -3,7 +3,7 @@ export declare const AvCardStub: import("vue").DefineComponent<import("vue").Ext
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
5
5
  };
6
- baclgroundColor: {
6
+ backgroundColor: {
7
7
  type: StringConstructor;
8
8
  default: string;
9
9
  };
@@ -31,7 +31,7 @@ export declare const AvCardStub: import("vue").DefineComponent<import("vue").Ext
31
31
  type: BooleanConstructor;
32
32
  default: boolean;
33
33
  };
34
- baclgroundColor: {
34
+ backgroundColor: {
35
35
  type: StringConstructor;
36
36
  default: string;
37
37
  };
@@ -55,10 +55,10 @@ export declare const AvCardStub: import("vue").DefineComponent<import("vue").Ext
55
55
  default: boolean;
56
56
  };
57
57
  }>> & Readonly<{}>, {
58
+ backgroundColor: string;
58
59
  borderColor: string;
59
60
  titleOnly: boolean;
60
61
  titleBackground: string;
61
62
  collapsible: boolean;
62
63
  collapsed: boolean;
63
- baclgroundColor: string;
64
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -17,6 +17,8 @@ export declare const AvPeriodInputStub: import("vue").DefineComponent<import("vu
17
17
  startDateDisabled: BooleanConstructor;
18
18
  type: StringConstructor;
19
19
  labelVisible: BooleanConstructor;
20
+ startErrorMessage: StringConstructor;
21
+ endErrorMessage: StringConstructor;
20
22
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:startModelValue" | "update:endModelValue")[], "change" | "update:startModelValue" | "update:endModelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
23
  id: StringConstructor;
22
24
  label: StringConstructor;
@@ -36,6 +38,8 @@ export declare const AvPeriodInputStub: import("vue").DefineComponent<import("vu
36
38
  startDateDisabled: BooleanConstructor;
37
39
  type: StringConstructor;
38
40
  labelVisible: BooleanConstructor;
41
+ startErrorMessage: StringConstructor;
42
+ endErrorMessage: StringConstructor;
39
43
  }>> & Readonly<{
40
44
  onChange?: ((...args: any[]) => any) | undefined;
41
45
  "onUpdate:startModelValue"?: ((...args: any[]) => any) | undefined;
@@ -4,7 +4,14 @@
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"]}),u=e.defineComponent({name:"AvFieldset",props:["id","legend","legendId","class","ariaLive"],template:"<fieldset><slot /></fieldset>"}),p=e.defineComponent({name:"AvIcon",props:["name","color","size","title","animation"],template:'<div class="av-vicon-stub" />'}),m=e.defineComponent({name:"AvIconText",template:'<div class="av-icon-text" />',props:["icon","text","icon-color","text-color"]}),v=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>'}),b=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"]}),u=e.defineComponent({name:"AvFieldset",props:["id","legend","legendId","class","ariaLive"],template:"<fieldset><slot /></fieldset>"}),p=e.defineComponent({name:"AvIcon",props:["name","color","size","title","animation"],template:'<div class="av-vicon-stub" />'}),m=e.defineComponent({name:"AvIconText",template:'<div class="av-icon-text" />',props:["icon","text","icon-color","text-color"]}),v=e.defineComponent({name:"AvCard",props:{titleOnly:{type:Boolean,default:!1},backgroundColor:{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:`
8
+ <div class="av-card">
9
+ <slot name="title" />
10
+ <slot />
11
+ <slot name="body" />
12
+ <slot name="footer" />
13
+ </div>
14
+ `}),b=e.defineComponent({name:"AvAccordion",props:["title","icon"],template:`
8
15
  <div class="av-accordion">
9
16
  <button
10
17
  :ref="setTriggerRef"
@@ -60,16 +67,16 @@
60
67
  <fieldset class="av-checkboxes-group-stub">
61
68
  <slot />
62
69
  </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="maxLengthCaption" :current-value="modelValue" />`}),h=e.defineComponent({name:"AvPeriodInput",props:{id:String,label:String,labelClass:String,startModelValue:String,endModelValue:String,startLabel:String,endLabel:String,width:String,startMinDate:Date,startMaxDate:Date,endMinDate:Date,endMaxDate:Date,stacked:Boolean,separatorSpacing:String,endDateDisabled:Boolean,startDateDisabled:Boolean,type:String,labelVisible:Boolean},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:`
70
+ `}),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,width:String,startMinDate:Date,startMaxDate:Date,endMinDate:Date,endMaxDate:Date,stacked:Boolean,separatorSpacing:String,endDateDisabled:Boolean,startDateDisabled:Boolean,type:String,labelVisible:Boolean,startErrorMessage:String,endErrorMessage: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
71
  <div class="av-list-stub">
65
72
  <slot />
66
- </div>`}),x=e.defineComponent({name:"AvListItem",props:["hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
73
+ </div>`}),k=e.defineComponent({name:"AvListItem",props:["hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
67
74
  <div
68
75
  class="av-list-item-stub"
69
76
  @click="$emit('click')"
70
77
  >
71
78
  <slot />
72
- </div>`}),B=e.defineComponent({name:"AvTagPicker",props:["label","options","selected","handleSelectChange"],template:`
79
+ </div>`}),x=e.defineComponent({name:"AvTagPicker",props:["label","options","selected","handleSelectChange"],template:`
73
80
  <div class="av-tag-picker-stub">
74
81
  <button
75
82
  v-for="option in options"
@@ -80,7 +87,7 @@
80
87
  {{ option.label }}
81
88
  </button>
82
89
  </div>
83
- `}),k=e.defineComponent({name:"AvAutocomplete",props:["modelValue","options","loading","inputOptions","getOptionLabel","getOptionKey","multiSelect","serverSideFiltering","enableLoadMore","maxDropdownHeight"],emits:["update:modelValue","search","clear","loadMore"],template:`
90
+ `}),B=e.defineComponent({name:"AvAutocomplete",props:["modelValue","options","loading","inputOptions","getOptionLabel","getOptionKey","multiSelect","serverSideFiltering","enableLoadMore","maxDropdownHeight"],emits:["update:modelValue","search","clear","loadMore"],template:`
84
91
  <div class="av-autocomplete-stub">
85
92
  <slot
86
93
  name="item"
@@ -116,7 +123,7 @@
116
123
  <span v-if="errorMessage">{{ errorMessage }}</span>
117
124
  <span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
118
125
  </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>'}),I=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)}}),M=e.defineComponent({name:"AvToggle",props:["id","name","modelValue","description","activeText","inactiveText","disabled"],emits:["update:modelValue"],template:`
126
+ `}),M=e.defineComponent({name:"AvTab",props:{title:{type:String,required:!0},icon:{type:String,required:!1}},template:'<div class="av-tab"><slot /></div>'}),T=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
127
  <div class="av-toggle">
121
128
  <input
122
129
  type="checkbox"
@@ -172,4 +179,4 @@
172
179
  <slot />
173
180
  <slot name="footer"></slot>
174
181
  </div>
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=k;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=x;exports.AvListStub=y;exports.AvModalStub=N;exports.AvPeriodInputStub=h;exports.AvSelectStub=V;exports.AvSideNavigationStub=D;exports.AvStepperStub=w;exports.AvTabStub=T;exports.AvTabsStub=I;exports.AvTagPickerStub=B;exports.AvTagStub=c;exports.AvToggleStub=M;exports.BddTest=O;
182
+ `});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=M;exports.AvTabsStub=T;exports.AvTagPickerStub=x;exports.AvTagStub=c;exports.AvToggleStub=I;exports.BddTest=O;
@@ -56,14 +56,21 @@ const f = e({
56
56
  name: "AvCard",
57
57
  props: {
58
58
  titleOnly: { type: Boolean, default: !1 },
59
- baclgroundColor: { type: String, default: "var(--card)" },
59
+ backgroundColor: { type: String, default: "var(--card)" },
60
60
  borderColor: { type: String, default: "var(--stroke)" },
61
61
  titleBackground: { type: String, default: "var(--surface-background)" },
62
62
  titleHeight: { type: String },
63
63
  collapsible: { type: Boolean, default: !1 },
64
64
  collapsed: { type: Boolean, default: !1 }
65
65
  },
66
- template: '<div class="av-card"><slot name="title" /><slot /></div>'
66
+ template: `
67
+ <div class="av-card">
68
+ <slot name="title" />
69
+ <slot />
70
+ <slot name="body" />
71
+ <slot name="footer" />
72
+ </div>
73
+ `
67
74
  }), B = e({
68
75
  name: "AvAccordion",
69
76
  props: ["title", "icon"],
@@ -119,7 +126,7 @@ const f = e({
119
126
  {{ label }}
120
127
  </button>
121
128
  `
122
- }), C = e({
129
+ }), M = e({
123
130
  name: "AvCancelConfirmButtons",
124
131
  props: [
125
132
  "cancelLabel",
@@ -148,7 +155,7 @@ const f = e({
148
155
  </button>
149
156
  </div>
150
157
  `
151
- }), M = e({
158
+ }), C = e({
152
159
  name: "AvCheckbox",
153
160
  props: {
154
161
  id: { type: String, default: "" },
@@ -235,7 +242,9 @@ const f = e({
235
242
  endDateDisabled: Boolean,
236
243
  startDateDisabled: Boolean,
237
244
  type: String,
238
- labelVisible: Boolean
245
+ labelVisible: Boolean,
246
+ startErrorMessage: String,
247
+ endErrorMessage: String
239
248
  },
240
249
  emits: ["update:startModelValue", "update:endModelValue", "change"],
241
250
  template: '<div class="av-period-input-stub" data-testid="av-period-input-stub" />'
@@ -377,7 +386,7 @@ const f = e({
377
386
  }), i = s(() => a.modelValue ?? 0);
378
387
  return () => u("div", { class: "av-tabs" }, l.value[i.value] ?? null);
379
388
  }
380
- }), H = e({
389
+ }), E = e({
381
390
  name: "AvToggle",
382
391
  props: ["id", "name", "modelValue", "description", "activeText", "inactiveText", "disabled"],
383
392
  emits: ["update:modelValue"],
@@ -400,11 +409,11 @@ const f = e({
400
409
  {{ inactiveText }}
401
410
  </span>
402
411
  </div>`
403
- }), K = e({
412
+ }), H = e({
404
413
  name: "AvBreadcrumb",
405
414
  template: '<div class="av-breadcrumb-stub" />',
406
415
  props: ["links", "navigationLabel", "showBreadcrumbLabel"]
407
- }), P = e({
416
+ }), K = e({
408
417
  name: "AvSideNavigation",
409
418
  props: {
410
419
  items: Array,
@@ -419,7 +428,7 @@ const f = e({
419
428
  @click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)"
420
429
  />
421
430
  `
422
- }), E = e({
431
+ }), P = e({
423
432
  name: "AvStepper",
424
433
  props: {
425
434
  steps: {
@@ -501,11 +510,11 @@ export {
501
510
  B as AvAccordionStub,
502
511
  N as AvAutocompleteStub,
503
512
  f as AvBadgeStub,
504
- K as AvBreadcrumbStub,
513
+ H as AvBreadcrumbStub,
505
514
  V as AvButtonStub,
506
- C as AvCancelConfirmButtonsStub,
515
+ M as AvCancelConfirmButtonsStub,
507
516
  k as AvCardStub,
508
- M as AvCheckboxStub,
517
+ C as AvCheckboxStub,
509
518
  I as AvCheckboxesGroupStub,
510
519
  F as AvDrawerStub,
511
520
  j as AvDropdownStub,
@@ -518,12 +527,12 @@ export {
518
527
  z as AvModalStub,
519
528
  D as AvPeriodInputStub,
520
529
  q as AvSelectStub,
521
- P as AvSideNavigationStub,
522
- E as AvStepperStub,
530
+ K as AvSideNavigationStub,
531
+ P as AvStepperStub,
523
532
  O as AvTabStub,
524
533
  R as AvTabsStub,
525
534
  $ as AvTagPickerStub,
526
535
  A as AvTagStub,
527
- H as AvToggleStub,
536
+ E as AvToggleStub,
528
537
  G as BddTest
529
538
  };
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.129",
4
+ "version": "0.1.131",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/avenirs-esr/avenirs-dsav"