dap-design-system 0.55.0 → 0.55.2

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.
@@ -2,6 +2,80 @@ import { Dayjs } from 'dayjs';
2
2
  import { PropertyValueMap } from 'lit';
3
3
  import { FloatingStrategy, PopupPlacement } from '../../common/types';
4
4
  import { GenericFormElement } from '../../internal/mixin/genericFormElement';
5
+ /**
6
+ * `dap-ds-datepicker`
7
+ * @summary A datepicker is a graphical user interface widget that allows the user to select a date from a calendar and/or time from a time range.
8
+ * @element dap-ds-datepicker
9
+ * @title - Datepicker
10
+ *
11
+ * @property {Dayjs} value - The value of the datepicker.
12
+ * @property {string} label - The label of the datepicker.
13
+ * @property {string} description - The description of the datepicker.
14
+ * @property {'xs' | 'sm' | 'sm'} size - The size of the datepicker.
15
+ * @property {boolean} disabled - The disabled state of the datepicker.
16
+ * @property {boolean} required - The required state of the datepicker.
17
+ * @property {boolean} readonly - The readonly state of the datepicker.
18
+ * @property {boolean} autofocus - The autofocus state of the datepicker.
19
+ * @property {string} tooltip - The tooltip of the datepicker.
20
+ * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the datepicker.
21
+ * @property {string} feedback - The feedback of the datepicker.
22
+ * @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the datepicker.
23
+ * @property {boolean} optional - The optional state of the datepicker.
24
+ * @property {string} optionalLabel - The optional label of the datepicker.
25
+ * @property {boolean} subtle - The weight of the label. Default is `false`
26
+ * @property {string} autocomplete - The autocomplete of the datepicker.
27
+ * @property {boolean} autofocus - The autofocus of the datepicker.
28
+ *
29
+ * @event {{ value: string }} dds-change - Fired when the datepicker value changes.
30
+ * @event {{ value: string }} dds-input - Fired when the datepicker input value changes.
31
+ * @event {{ value: string }} dds-valid-date - Fired when the datepicker input value is valid. Happens on manual input typing.
32
+ * @event {{ value: string, type: 'invalid' | 'out-of-range' }} dds-invalid-date - Fired when the datepicker input value is invalid. Happens on manual input typing.
33
+ * @event {{ void }} dds-clear - Fired when the datepicker is cleared.
34
+ * @event {{ void }} dds-focus - Emitted when the datepicker gains focus.
35
+ * @event {{ void }} dds-blur - Emitted when the datepicker loses focus.
36
+ *
37
+ * @csspart base - The main datepicker container.
38
+ * @csspart calendar - The calendar of the datepicker.
39
+ * @csspart trigger - The trigger button of the datepicker.
40
+ * @csspart label - The label of the datepicker.
41
+ * @csspart description - The description of the datepicker.
42
+ * @csspart feedback - The feedback of the datepicker.
43
+ * @csspart tooltip - The tooltip of the datepicker.
44
+ * @csspart input - The input of the datepicker.
45
+ * @csspart clear-button - The clear button of the datepicker.
46
+ * @csspart calendar-grid-cell-base - The base of the calendar grid cell.
47
+ * @csspart calendar-grid-cell - The cell of the calendar grid.
48
+ * @csspart calendar-grid-header-cell-base - The base of the calendar grid header cell.
49
+ * @csspart calendar-grid-header-cell - The header cell of the calendar grid.
50
+ * @csspart calendar-grid-cell-today-mark - The today mark of the calendar grid cell.
51
+ *
52
+ * @cssproperty --dds-combobox-background - The background color of the combobox. (default: var(--dds-fields-background-default))
53
+ * @cssproperty --dds-combobox-border-color - The border color of the combobox. (default: var(--dds-border-neutral-base))
54
+ * @cssproperty --dds-combobox-border-width - The border width of the combobox. (default: var(--dds-border-width-base, 1px))
55
+ * @cssproperty --dds-combobox-border-radius - The border radius of the combobox. (default: var(--dds-radius-base))
56
+ * @cssproperty --dds-combobox-text-color - The text color of the combobox. (default: var(--dds-text-neutral-base))
57
+ * @cssproperty --dds-combobox-placeholder-color - The placeholder text color. (default: var(--dds-text-neutral-subtle))
58
+ * @cssproperty --dds-combobox-disabled-background - The background color when disabled. (default: var(--dds-background-neutral-stronger))
59
+ * @cssproperty --dds-combobox-disabled-text - The text color when disabled. (default: var(--dds-text-neutral-disabled))
60
+ * @cssproperty --dds-combobox-error-border - The border color for error state. (default: var(--dds-border-negative-base))
61
+ * @cssproperty --dds-combobox-success-border - The border color for success state. (default: var(--dds-border-positive-base))
62
+ * @cssproperty --dds-combobox-icon-color - The color of the icons. (default: var(--dds-text-icon-neutral-subtle))
63
+ * @cssproperty --dds-combobox-clear-icon-color - The color of the clear icon. (default: var(--dds-button-subtle-icon-neutral-enabled))
64
+ * @cssproperty --dds-combobox-popup-background - The background color of the popup. (default: var(--dds-background-neutral-subtle))
65
+ * @cssproperty --dds-combobox-popup-shadow - The box shadow of the popup. (default: 0 4px 6px -1px rgb(0 0 0 / 8%), 0 2px 4px -1px rgb(0 0 0 / 6%))
66
+ * @cssproperty --dds-combobox-padding-xs - The padding for extra small size. (default: var(--dds-spacing-200))
67
+ * @cssproperty --dds-combobox-padding-sm - The padding for small size. (default: var(--dds-spacing-200))
68
+ * @cssproperty --dds-combobox-padding-lg - The padding for large size. (default: var(--dds-spacing-300))
69
+ * @cssproperty --dds-combobox-padding-horizontal - The horizontal padding. (default: var(--dds-spacing-300))
70
+ * @cssproperty --dds-combobox-padding-vertical - The vertical padding. (default: var(--dds-spacing-200))
71
+ * @cssproperty --dds-combobox-gap - The gap between elements. (default: var(--dds-spacing-100))
72
+ * @cssproperty --dds-combobox-icon-gap - The gap between icons. (default: var(--dds-spacing-200))
73
+ * @cssproperty --dds-combobox-action-gap - The gap between action elements. (default: var(--dds-spacing-200))
74
+ * @cssproperty --dds-combobox-action-padding - The padding for action elements. (default: var(--dds-spacing-300))
75
+ * @cssproperty --dds-combobox-clear-icon-width - The width of the clear icon. (default: var(--dds-spacing-800))
76
+ * @cssproperty --dds-combobox-dropdown-icon-right - The right position of the dropdown icon. (default: var(--dds-spacing-600))
77
+ * @cssproperty --dds-combobox-min-width - The minimum width of the combobox. (default: 7.5rem)
78
+ */
5
79
  export default class DapDSDatePicker extends GenericFormElement {
6
80
  private static nextId;
7
81
  /**
@@ -4551,12 +4551,7 @@ let Ot = class extends pe {
4551
4551
  @click=${this.handleClick}
4552
4552
  @keydown=${this.handleKeyDown}>
4553
4553
  <div part="high-contrast" class="button__highcontrast"></div>
4554
- ${this.loading ? this._getLoadingSpinner() : b` <span
4555
- part="content"
4556
- class="button__text"
4557
- part="content"
4558
- class="button__text"
4559
- aria-hidden="true">
4554
+ ${this.loading ? this._getLoadingSpinner() : b` <span part="content" class="button__text">
4560
4555
  <slot></slot>
4561
4556
  </span>`}
4562
4557
  ${this.target === "_blank" ? b`<span class="sr-only">
@@ -21504,7 +21499,7 @@ export {
21504
21499
  Ei as A,
21505
21500
  To as B,
21506
21501
  Ea as C,
21507
- Us as D,
21502
+ Po as D,
21508
21503
  Ir as E,
21509
21504
  W as F,
21510
21505
  tt as G,
@@ -21528,7 +21523,7 @@ export {
21528
21523
  ja as Y,
21529
21524
  Ro as Z,
21530
21525
  ie as _,
21531
- Po as a,
21526
+ Us as a,
21532
21527
  Ar as a0,
21533
21528
  zt as a1,
21534
21529
  Lr as a2,
@@ -21575,16 +21570,16 @@ export {
21575
21570
  me as ay,
21576
21571
  Er as az,
21577
21572
  Ut as b,
21578
- Qi as c,
21579
- Be as d,
21573
+ Be as c,
21574
+ fi as d,
21580
21575
  to as e,
21581
21576
  He as f,
21582
- fi as g,
21583
- ii as h,
21584
- Ot as i,
21585
- qt as j,
21586
- Et as k,
21587
- Xt as l,
21577
+ Qi as g,
21578
+ Ot as h,
21579
+ ii as i,
21580
+ Xt as j,
21581
+ qt as k,
21582
+ Et as l,
21588
21583
  Ia as m,
21589
21584
  $r as n,
21590
21585
  Ai as o,
@@ -21600,4 +21595,4 @@ export {
21600
21595
  Qt as y,
21601
21596
  xi as z
21602
21597
  };
21603
- //# sourceMappingURL=components-CSqPA5oW.js.map
21598
+ //# sourceMappingURL=components-ChK1mSip.js.map