@aleph-alpha/ui-library 1.14.0 → 1.15.0

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.
@@ -184,7 +184,7 @@
184
184
  <CalendarGrid v-for="month in grid" :key="month.value.toString()">
185
185
  <CalendarGridHead>
186
186
  <CalendarGridRow>
187
- <CalendarHeadCell v-for="day in weekDays" :key="day">
187
+ <CalendarHeadCell v-for="(day, i) in weekDays" :key="i">
188
188
  {{ day }}
189
189
  </CalendarHeadCell>
190
190
  </CalendarGridRow>
@@ -47,7 +47,7 @@
47
47
  <RangeCalendarGrid v-for="month in grid" :key="month.value.toString()">
48
48
  <RangeCalendarGridHead>
49
49
  <RangeCalendarGridRow>
50
- <RangeCalendarHeadCell v-for="day in weekDays" :key="day">
50
+ <RangeCalendarHeadCell v-for="(day, i) in weekDays" :key="i">
51
51
  {{ day }}
52
52
  </RangeCalendarHeadCell>
53
53
  </RangeCalendarGridRow>
@@ -39,7 +39,7 @@ const meta: Meta<typeof UiDatePicker> = {
39
39
  weekStartsOn: {
40
40
  control: 'select',
41
41
  options: [0, 1, 2, 3, 4, 5, 6],
42
- description: 'The day of the week to start on. 0 = Sunday, 1 = Monday, etc.',
42
+ description: 'The day of the week to start on. 0 is the locale default first day.',
43
43
  },
44
44
  numberOfMonths: {
45
45
  control: { type: 'number', min: 1, max: 3 },
@@ -369,7 +369,6 @@ const date = ref<DateValue>()
369
369
  <UiDatePicker
370
370
  v-model="date"
371
371
  locale="de"
372
- :week-starts-on="1"
373
372
  weekday-format="short"
374
373
  placeholder="Datum auswählen"
375
374
  />
@@ -382,7 +381,6 @@ const date = ref<DateValue>()
382
381
  export const GermanLocale: Story = {
383
382
  args: {
384
383
  locale: 'de',
385
- weekStartsOn: 1,
386
384
  weekdayFormat: 'short',
387
385
  placeholder: 'Datum auswählen',
388
386
  },
@@ -395,7 +393,6 @@ export const GermanLocale: Story = {
395
393
  template: `<UiDatePicker
396
394
  v-model="date"
397
395
  :locale="args.locale"
398
- :week-starts-on="args.weekStartsOn"
399
396
  :weekday-format="args.weekdayFormat"
400
397
  :placeholder="args.placeholder"
401
398
  :disabled="args.disabled"
@@ -125,7 +125,7 @@ export interface UiDatePickerProps {
125
125
 
126
126
  /**
127
127
  * The day of the week to start on.
128
- * @default 0 (Sunday)
128
+ * @default 0
129
129
  */
130
130
  weekStartsOn?: UiDatePickerWeekStartsOn;
131
131