@avenirs-esr/avenirs-dsav 0.1.128 → 0.1.130

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/index.es.js CHANGED
@@ -4435,12 +4435,14 @@ const ro = { class: "av-input__wrapper av-col av-gap-xxs" }, oo = { class: "av-i
4435
4435
  endDateDisabled: { type: Boolean, default: !1 },
4436
4436
  startDateDisabled: { type: Boolean, default: !1 },
4437
4437
  type: { default: "date" },
4438
- labelVisible: { type: Boolean, default: !0 }
4438
+ labelVisible: { type: Boolean, default: !0 },
4439
+ startErrorMessage: {},
4440
+ endErrorMessage: {}
4439
4441
  },
4440
4442
  emits: ["update:startModelValue", "update:endModelValue", "change"],
4441
4443
  setup(e, { emit: t }) {
4442
4444
  oe((T) => ({
4443
- v6e28445e: T.separatorSpacing
4445
+ c7c0c816: T.separatorSpacing
4444
4446
  }));
4445
4447
  const a = t, n = g(() => e.id ?? `period-input-${crypto.randomUUID()}`), l = g(() => `${n.value}__start`), i = g(() => `${n.value}__end`);
4446
4448
  function o(T) {
@@ -4493,9 +4495,10 @@ const ro = { class: "av-input__wrapper av-col av-gap-xxs" }, oo = { class: "av-i
4493
4495
  width: e.width,
4494
4496
  "min-date": r(f),
4495
4497
  "max-date": r(I),
4498
+ "error-message": e.startErrorMessage,
4496
4499
  "data-testid": "start-date-input",
4497
4500
  "onUpdate:modelValue": M[0] || (M[0] = (L) => D(L))
4498
- }, null, 8, ["id", "type", "model-value", "label", "aria-label", "disabled", "width", "min-date", "max-date"]),
4501
+ }, null, 8, ["id", "type", "model-value", "label", "aria-label", "disabled", "width", "min-date", "max-date", "error-message"]),
4499
4502
  U(qe, {
4500
4503
  id: r(i),
4501
4504
  type: e.type,
@@ -4507,13 +4510,14 @@ const ro = { class: "av-input__wrapper av-col av-gap-xxs" }, oo = { class: "av-i
4507
4510
  width: e.width,
4508
4511
  "min-date": r(m),
4509
4512
  "max-date": r(v),
4513
+ "error-message": e.endErrorMessage,
4510
4514
  "data-testid": "end-date-input",
4511
4515
  "onUpdate:modelValue": M[1] || (M[1] = (L) => E(L))
4512
- }, null, 8, ["id", "type", "model-value", "label", "aria-label", "disabled", "width", "min-date", "max-date"])
4516
+ }, null, 8, ["id", "type", "model-value", "label", "aria-label", "disabled", "width", "min-date", "max-date", "error-message"])
4513
4517
  ], 2)
4514
4518
  ], 2));
4515
4519
  }
4516
- }), ru = /* @__PURE__ */ P(go, [["__scopeId", "data-v-da383c7b"]]), Io = {
4520
+ }), ru = /* @__PURE__ */ P(go, [["__scopeId", "data-v-658fa9fb"]]), Io = {
4517
4521
  class: "av-search-bar",
4518
4522
  role: "search"
4519
4523
  }, bo = /* @__PURE__ */ k({
@@ -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"
@@ -63,13 +70,13 @@
63
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},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"
@@ -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=T;exports.AvTabsStub=I;exports.AvTagPickerStub=x;exports.AvTagStub=c;exports.AvToggleStub=M;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"],
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.128",
4
+ "version": "0.1.130",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/avenirs-esr/avenirs-dsav"