@avenirs-esr/avenirs-dsav 0.1.125 → 0.1.127

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.
@@ -60,7 +60,7 @@
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="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:`
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:`
64
64
  <div class="av-list-stub">
65
65
  <slot />
66
66
  </div>`}),x=e.defineComponent({name:"AvListItem",props:["hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
@@ -69,7 +69,7 @@
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>`}),B=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
- `}),B=e.defineComponent({name:"AvAutocomplete",props:["modelValue","options","loading","inputOptions","getOptionLabel","getOptionKey","multiSelect","serverSideFiltering","enableLoadMore","maxDropdownHeight"],emits:["update:modelValue","search","clear","loadMore"],template:`
83
+ `}),k=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"
@@ -172,4 +172,4 @@
172
172
  <slot />
173
173
  <slot name="footer"></slot>
174
174
  </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=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=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=k;exports.AvTagStub=c;exports.AvToggleStub=M;exports.BddTest=O;
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;
@@ -215,7 +215,7 @@ 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="maxLengthCaption" :current-value="modelValue" />`
218
- }), T = e({
218
+ }), D = e({
219
219
  name: "AvPeriodInput",
220
220
  props: {
221
221
  id: String,
@@ -225,18 +225,21 @@ const f = e({
225
225
  endModelValue: String,
226
226
  startLabel: String,
227
227
  endLabel: String,
228
- disabled: Boolean,
229
228
  width: String,
230
229
  startMinDate: Date,
231
230
  startMaxDate: Date,
232
231
  endMinDate: Date,
233
232
  endMaxDate: Date,
234
233
  stacked: Boolean,
235
- separatorSpacing: String
234
+ separatorSpacing: String,
235
+ endDateDisabled: Boolean,
236
+ startDateDisabled: Boolean,
237
+ type: String,
238
+ labelVisible: Boolean
236
239
  },
237
240
  emits: ["update:startModelValue", "update:endModelValue", "change"],
238
241
  template: '<div class="av-period-input-stub" data-testid="av-period-input-stub" />'
239
- }), D = e({
242
+ }), T = e({
240
243
  name: "AvList",
241
244
  props: ["size"],
242
245
  template: `
@@ -511,9 +514,9 @@ export {
511
514
  x as AvIconTextStub,
512
515
  L as AvInputStub,
513
516
  w as AvListItemStub,
514
- D as AvListStub,
517
+ T as AvListStub,
515
518
  z as AvModalStub,
516
- T as AvPeriodInputStub,
519
+ D as AvPeriodInputStub,
517
520
  q as AvSelectStub,
518
521
  P as AvSideNavigationStub,
519
522
  E as AvStepperStub,
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.125",
4
+ "version": "0.1.127",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/avenirs-esr/avenirs-dsav"
@@ -3,6 +3,7 @@
3
3
  @use '../mixins/responsive-utility' as *;
4
4
  @use '../settings/breakpoints' as bp;
5
5
  @use "sass:meta";
6
+ @use "sass:map";
6
7
 
7
8
  // === Properties and directions ===
8
9
  $properties: (
@@ -40,14 +41,18 @@ $directions: (
40
41
  @each $direction-key, $direction-value in $directions {
41
42
  @each $size, $value in sp.$spacing {
42
43
  @if meta.type-of($direction-value) == 'list' {
44
+ $props: ();
45
+ $negative-props: ();
43
46
  @each $d in $direction-value {
44
- @include utility-base("#{$type}#{$direction-key}-#{$size}", (
47
+ $props: map.merge($props, (
45
48
  #{$property-value}-#{$d}: var(--spacing-#{$size}) !important
46
49
  ));
47
- @include utility-base("-#{$type}#{$direction-key}-#{$size}", (
50
+ $negative-props: map.merge($negative-props, (
48
51
  #{$property-value}-#{$d}: calc(-1 * var(--spacing-#{$size})) !important
49
52
  ));
50
53
  }
54
+ @include utility-base("#{$type}#{$direction-key}-#{$size}", $props);
55
+ @include utility-base("-#{$type}#{$direction-key}-#{$size}", $negative-props);
51
56
  } @else {
52
57
  @include utility-base("#{$type}#{$direction-key}-#{$size}", (
53
58
  #{$property-value}-#{$direction-value}: var(--spacing-#{$size}) !important
@@ -81,14 +86,18 @@ $directions: (
81
86
  @each $direction-key, $direction-value in $directions {
82
87
  @each $size, $value in sp.$spacing {
83
88
  @if meta.type-of($direction-value) == 'list' {
89
+ $props: ();
90
+ $negative-props: ();
84
91
  @each $d in $direction-value {
85
- @include utility-responsive("#{$type}#{$direction-key}-#{$size}", (
92
+ $props: map.merge($props, (
86
93
  #{$property-value}-#{$d}: var(--spacing-#{$size}) !important
87
94
  ));
88
- @include utility-responsive("-#{$type}#{$direction-key}-#{$size}", (
95
+ $negative-props: map.merge($negative-props, (
89
96
  #{$property-value}-#{$d}: calc(-1 * var(--spacing-#{$size})) !important
90
97
  ));
91
98
  }
99
+ @include utility-responsive("#{$type}#{$direction-key}-#{$size}", $props);
100
+ @include utility-responsive("-#{$type}#{$direction-key}-#{$size}", $negative-props);
92
101
  } @else {
93
102
  @include utility-responsive("#{$type}#{$direction-key}-#{$size}", (
94
103
  #{$property-value}-#{$direction-value}: var(--spacing-#{$size}) !important
@@ -1,38 +0,0 @@
1
- /**
2
- * Return type of the {@link useContainedScroll} composable.
3
- *
4
- * A composable to contain scroll events within a specified scrollable element.
5
- * Prevents scroll "bleed" when reaching the top or bottom of the scrollable area.
6
- * Handles both wheel and touch events for comprehensive support.
7
- *
8
- * It exposes event handlers for wheel and touch events to be attached to
9
- * the relevant container element.
10
- */
11
- export interface UseContainedScrollReturn {
12
- /**
13
- * Handler for wheel events to contain scrolling within the specified scrollable element.
14
- * @param event - The wheel event object.
15
- */
16
- onWheel: (event: WheelEvent) => void;
17
- /**
18
- * Handler for touchstart events to initialize touch-based scrolling containment.
19
- * @param event - The touch event object.
20
- */
21
- onTouchStart: (event: TouchEvent) => void;
22
- /**
23
- * Handler for touchmove events to contain scrolling within the specified scrollable element.
24
- * @param event - The touch event object.
25
- */
26
- onTouchMove: (event: TouchEvent) => void;
27
- }
28
- interface UseContainedScrollOptions {
29
- scrollableSelector: string;
30
- }
31
- /**
32
- * A composable that helps contain scroll events within a specified scrollable element.
33
- * @param options - Configuration options for the contained scroll behavior:
34
- * @param options.scrollableSelector - A CSS selector string to identify the scrollable element within which scrolling should be contained.
35
- * @returns An object containing event handlers for wheel and touch events to manage contained scrolling.
36
- */
37
- export declare function useContainedScroll({ scrollableSelector }: UseContainedScrollOptions): UseContainedScrollReturn;
38
- export {};