@skf-design-system/ui-components 1.0.1-beta.0 → 1.0.2-beta.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.
Files changed (206) hide show
  1. package/README.md +1 -18
  2. package/dist/components/accordion/accordion.component.d.ts +4 -4
  3. package/dist/components/accordion/accordion.component.js +8 -8
  4. package/dist/components/alert/alert.component.d.ts +8 -9
  5. package/dist/components/alert/alert.component.js +14 -14
  6. package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
  7. package/dist/components/button/button.component.d.ts +3 -3
  8. package/dist/components/button/button.component.js +59 -55
  9. package/dist/components/card/card.component.js +18 -30
  10. package/dist/components/card/card.styles.js +25 -28
  11. package/dist/components/checkbox/checkbox.component.d.ts +9 -7
  12. package/dist/components/checkbox/checkbox.component.js +71 -58
  13. package/dist/components/collapse/collapse.component.js +1 -1
  14. package/dist/components/date-picker/datepicker.calendar.component.d.ts +77 -0
  15. package/dist/components/date-picker/datepicker.calendar.component.js +415 -0
  16. package/dist/components/date-picker/datepicker.calendar.styles.d.ts +1 -0
  17. package/dist/components/date-picker/datepicker.calendar.styles.js +202 -0
  18. package/dist/components/date-picker/datepicker.component.d.ts +79 -0
  19. package/dist/components/date-picker/datepicker.component.js +261 -0
  20. package/dist/components/date-picker/datepicker.d.ts +10 -0
  21. package/dist/components/date-picker/datepicker.helpers.d.ts +41 -0
  22. package/dist/components/date-picker/datepicker.helpers.js +76 -0
  23. package/dist/components/date-picker/datepicker.js +8 -0
  24. package/dist/components/date-picker/datepicker.styles.d.ts +1 -0
  25. package/dist/components/date-picker/datepicker.styles.js +87 -0
  26. package/dist/components/date-picker-input/datepicker-input.component.d.ts +115 -0
  27. package/dist/components/date-picker-input/datepicker-input.component.js +441 -0
  28. package/dist/components/date-picker-input/datepicker-input.d.ts +8 -0
  29. package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +38 -0
  30. package/dist/components/date-picker-input/datepicker-input.helpers.js +31 -0
  31. package/dist/components/date-picker-input/datepicker-input.js +6 -0
  32. package/dist/components/date-picker-input/datepicker-input.styles.d.ts +1 -0
  33. package/dist/components/date-picker-input/datepicker-input.styles.js +18 -0
  34. package/dist/components/dialog/dialog.component.d.ts +18 -28
  35. package/dist/components/dialog/dialog.component.js +94 -84
  36. package/dist/components/divider/divider.component.d.ts +4 -8
  37. package/dist/components/divider/divider.component.js +24 -46
  38. package/dist/components/divider/divider.styles.js +34 -30
  39. package/dist/components/drawer/drawer.component.d.ts +57 -0
  40. package/dist/components/drawer/drawer.component.js +124 -0
  41. package/dist/components/drawer/drawer.d.ts +8 -0
  42. package/dist/components/drawer/drawer.js +6 -0
  43. package/dist/components/drawer/drawer.styles.d.ts +1 -0
  44. package/dist/components/drawer/drawer.styles.js +71 -0
  45. package/dist/components/header/header.component.d.ts +45 -0
  46. package/dist/components/header/header.component.js +110 -0
  47. package/dist/components/header/header.d.ts +8 -0
  48. package/dist/components/header/header.js +6 -0
  49. package/dist/components/header/header.styles.d.ts +1 -0
  50. package/dist/components/header/header.styles.js +68 -0
  51. package/dist/components/heading/heading.component.d.ts +6 -12
  52. package/dist/components/heading/heading.component.js +17 -17
  53. package/dist/components/heading/heading.styles.d.ts +1 -2
  54. package/dist/components/heading/heading.styles.js +1 -1
  55. package/dist/components/icon/icon.component.d.ts +1 -1
  56. package/dist/components/icon/icon.component.js +19 -19
  57. package/dist/components/input/input.component.d.ts +3 -2
  58. package/dist/components/input/input.component.js +89 -82
  59. package/dist/components/input/input.controllers.d.ts +20 -6
  60. package/dist/components/input/input.controllers.js +14 -10
  61. package/dist/components/link/link.component.js +29 -28
  62. package/dist/components/link/link.styles.js +24 -20
  63. package/dist/components/loader/loader.component.js +19 -19
  64. package/dist/components/logo/logo.component.js +6 -6
  65. package/dist/components/menu/menu.component.d.ts +4 -5
  66. package/dist/components/menu/menu.component.js +1 -1
  67. package/dist/components/nav/nav.component.d.ts +17 -0
  68. package/dist/components/nav/nav.component.js +34 -0
  69. package/dist/components/nav/nav.d.ts +8 -0
  70. package/dist/components/nav/nav.js +6 -0
  71. package/dist/components/nav/nav.styles.d.ts +1 -0
  72. package/dist/components/nav/nav.styles.js +17 -0
  73. package/dist/components/nav-item/nav-item.component.d.ts +20 -0
  74. package/dist/components/nav-item/nav-item.component.js +38 -0
  75. package/dist/components/nav-item/nav-item.d.ts +8 -0
  76. package/dist/components/nav-item/nav-item.js +6 -0
  77. package/dist/components/nav-item/nav-item.styles.d.ts +1 -0
  78. package/dist/components/nav-item/nav-item.styles.js +39 -0
  79. package/dist/components/popover/popover.component.d.ts +5 -6
  80. package/dist/components/popover/popover.component.js +24 -24
  81. package/dist/components/progress/progress.component.js +7 -7
  82. package/dist/components/radio/radio.component.d.ts +10 -6
  83. package/dist/components/radio/radio.component.js +14 -14
  84. package/dist/components/radio/radio.styles.d.ts +1 -2
  85. package/dist/components/radio/radio.styles.js +1 -1
  86. package/dist/components/segmented-button/segmented-button.component.d.ts +32 -0
  87. package/dist/components/segmented-button/segmented-button.d.ts +8 -0
  88. package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
  89. package/dist/components/segmented-button-item/segmented-button-item.component.d.ts +36 -0
  90. package/dist/components/segmented-button-item/segmented-button-item.d.ts +8 -0
  91. package/dist/components/segmented-button-item/segmented-button-item.styles.d.ts +1 -0
  92. package/dist/components/select/select.component.js +2 -2
  93. package/dist/components/select/select.controllers.d.ts +20 -9
  94. package/dist/components/select/select.controllers.js +27 -22
  95. package/dist/components/select-option/select-option.controllers.d.ts +11 -5
  96. package/dist/components/select-option-group/select-option-group.component.js +9 -9
  97. package/dist/components/stepper/stepper.component.d.ts +2 -1
  98. package/dist/components/stepper/stepper.component.js +9 -9
  99. package/dist/components/stepper/stepper.helpers.js +5 -5
  100. package/dist/components/stepper-item/stepper-item.component.js +25 -25
  101. package/dist/components/switch/switch.component.d.ts +7 -6
  102. package/dist/components/switch/switch.component.js +7 -7
  103. package/dist/components/tab/tab.component.js +4 -4
  104. package/dist/components/tab-panel/tab-panel.component.js +12 -12
  105. package/dist/components/tag/tag.component.d.ts +4 -2
  106. package/dist/components/tag/tag.component.js +14 -14
  107. package/dist/components/textarea/textarea.component.js +10 -10
  108. package/dist/components/toast/toast.component.d.ts +1 -1
  109. package/dist/components/toast/toast.component.js +13 -13
  110. package/dist/components/toast-wrapper/toast-wrapper.component.js +10 -10
  111. package/dist/components/tooltip/tooltip.component.d.ts +5 -6
  112. package/dist/components/tooltip/tooltip.component.js +11 -11
  113. package/dist/custom-elements.json +3702 -2190
  114. package/dist/index.d.ts +6 -0
  115. package/dist/index.js +84 -66
  116. package/dist/internal/base-classes/popover/popover.base.d.ts +17 -7
  117. package/dist/internal/base-classes/popover/popover.base.js +119 -75
  118. package/dist/internal/base-classes/popover/popover.styles.js +14 -1
  119. package/dist/internal/components/hint/hint.component.js +13 -13
  120. package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
  121. package/dist/internal/controllers/popover.controller.d.ts +12 -6
  122. package/dist/internal/controllers/popover.controller.js +9 -14
  123. package/dist/internal/helpers/dateFormatter.d.ts +2 -0
  124. package/dist/internal/helpers/utilityTypes.d.ts +22 -0
  125. package/dist/internal/helpers/uuid.d.ts +15 -0
  126. package/dist/internal/helpers/uuid.js +14 -0
  127. package/dist/internal/storybook/styles.d.ts +1 -0
  128. package/dist/styles/form-field.styles.js +11 -6
  129. package/dist/styles/global.css +1 -1
  130. package/dist/types/jsx/custom-element-jsx.d.ts +663 -1240
  131. package/dist/types/vue/index.d.ts +453 -255
  132. package/dist/vscode.html-custom-data.json +821 -503
  133. package/dist/web-types.json +1005 -633
  134. package/package.json +43 -52
  135. package/dist/react/index.d.ts +0 -35
  136. package/dist/react/index.js +0 -35
  137. package/dist/react/skf-accordion/index.d.ts +0 -3
  138. package/dist/react/skf-accordion/index.js +0 -13
  139. package/dist/react/skf-alert/index.d.ts +0 -9
  140. package/dist/react/skf-alert/index.js +0 -17
  141. package/dist/react/skf-breadcrumb/index.d.ts +0 -9
  142. package/dist/react/skf-breadcrumb/index.js +0 -17
  143. package/dist/react/skf-breadcrumb-item/index.d.ts +0 -3
  144. package/dist/react/skf-breadcrumb-item/index.js +0 -13
  145. package/dist/react/skf-button/index.d.ts +0 -9
  146. package/dist/react/skf-button/index.js +0 -17
  147. package/dist/react/skf-card/index.d.ts +0 -3
  148. package/dist/react/skf-card/index.js +0 -13
  149. package/dist/react/skf-checkbox/index.d.ts +0 -9
  150. package/dist/react/skf-checkbox/index.js +0 -17
  151. package/dist/react/skf-collapse/index.d.ts +0 -9
  152. package/dist/react/skf-collapse/index.js +0 -17
  153. package/dist/react/skf-dialog/index.d.ts +0 -15
  154. package/dist/react/skf-dialog/index.js +0 -19
  155. package/dist/react/skf-divider/index.d.ts +0 -3
  156. package/dist/react/skf-divider/index.js +0 -13
  157. package/dist/react/skf-heading/index.d.ts +0 -3
  158. package/dist/react/skf-heading/index.js +0 -13
  159. package/dist/react/skf-icon/index.d.ts +0 -3
  160. package/dist/react/skf-icon/index.js +0 -13
  161. package/dist/react/skf-input/index.d.ts +0 -12
  162. package/dist/react/skf-input/index.js +0 -18
  163. package/dist/react/skf-link/index.d.ts +0 -3
  164. package/dist/react/skf-link/index.js +0 -13
  165. package/dist/react/skf-loader/index.d.ts +0 -3
  166. package/dist/react/skf-loader/index.js +0 -13
  167. package/dist/react/skf-logo/index.d.ts +0 -3
  168. package/dist/react/skf-logo/index.js +0 -13
  169. package/dist/react/skf-menu/index.d.ts +0 -12
  170. package/dist/react/skf-menu/index.js +0 -18
  171. package/dist/react/skf-menu-item/index.d.ts +0 -27
  172. package/dist/react/skf-menu-item/index.js +0 -23
  173. package/dist/react/skf-popover/index.d.ts +0 -12
  174. package/dist/react/skf-popover/index.js +0 -18
  175. package/dist/react/skf-progress/index.d.ts +0 -3
  176. package/dist/react/skf-progress/index.js +0 -13
  177. package/dist/react/skf-radio/index.d.ts +0 -9
  178. package/dist/react/skf-radio/index.js +0 -17
  179. package/dist/react/skf-select/index.d.ts +0 -21
  180. package/dist/react/skf-select/index.js +0 -21
  181. package/dist/react/skf-select-option/index.d.ts +0 -9
  182. package/dist/react/skf-select-option/index.js +0 -17
  183. package/dist/react/skf-select-option-group/index.d.ts +0 -3
  184. package/dist/react/skf-select-option-group/index.js +0 -13
  185. package/dist/react/skf-stepper/index.d.ts +0 -9
  186. package/dist/react/skf-stepper/index.js +0 -17
  187. package/dist/react/skf-stepper-item/index.d.ts +0 -9
  188. package/dist/react/skf-stepper-item/index.js +0 -17
  189. package/dist/react/skf-switch/index.d.ts +0 -3
  190. package/dist/react/skf-switch/index.js +0 -13
  191. package/dist/react/skf-tab/index.d.ts +0 -12
  192. package/dist/react/skf-tab/index.js +0 -18
  193. package/dist/react/skf-tab-group/index.d.ts +0 -3
  194. package/dist/react/skf-tab-group/index.js +0 -13
  195. package/dist/react/skf-tab-panel/index.d.ts +0 -3
  196. package/dist/react/skf-tab-panel/index.js +0 -13
  197. package/dist/react/skf-tag/index.d.ts +0 -3
  198. package/dist/react/skf-tag/index.js +0 -13
  199. package/dist/react/skf-textarea/index.d.ts +0 -12
  200. package/dist/react/skf-textarea/index.js +0 -18
  201. package/dist/react/skf-toast/index.d.ts +0 -3
  202. package/dist/react/skf-toast/index.js +0 -13
  203. package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
  204. package/dist/react/skf-toast-wrapper/index.js +0 -13
  205. package/dist/react/skf-tooltip/index.d.ts +0 -12
  206. package/dist/react/skf-tooltip/index.js +0 -18
@@ -1,25 +1,35 @@
1
1
  import "../icon/icon.js";
2
- import { FormBase as c } from "../../internal/components/formBase.js";
2
+ import { FormBase as p } from "../../internal/components/formBase.js";
3
3
  import { watch as h } from "../../internal/helpers/watch.js";
4
4
  import { Asterisk as v } from "../../internal/templates/asterisk.js";
5
5
  import m from "../../styles/component.styles.js";
6
- import { html as p, nothing as f } from "lit";
7
- import { property as r, state as y, query as _ } from "lit/decorators.js";
8
- import { ifDefined as b } from "lit/directives/if-defined.js";
9
- import g from "./checkbox.styles.js";
10
- var $ = Object.defineProperty, I = Object.getOwnPropertyDescriptor, e = (u, i, s, a) => {
11
- for (var l = a > 1 ? void 0 : a ? I(i, s) : i, o = u.length - 1, n; o >= 0; o--)
12
- (n = u[o]) && (l = (a ? n(i, s, l) : n(l)) || l);
13
- return a && l && $(i, s, l), l;
6
+ import { html as c, nothing as f } from "lit";
7
+ import { property as r, state as y, query as g } from "lit/decorators.js";
8
+ import { ifDefined as _ } from "lit/directives/if-defined.js";
9
+ import b from "./checkbox.styles.js";
10
+ var k = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (u, t, s, a) => {
11
+ for (var l = a > 1 ? void 0 : a ? $(t, s) : t, n = u.length - 1, o; n >= 0; n--)
12
+ (o = u[n]) && (l = (a ? o(t, s, l) : o(l)) || l);
13
+ return a && l && k(t, s, l), l;
14
14
  };
15
- const d = class d extends c {
15
+ const d = class d extends p {
16
16
  constructor() {
17
- super(...arguments), this._initiallyChecked = !1, this.size = "md", this.value = "", this._invalid = !1, this._resetValue = (i) => {
18
- i.stopPropagation(), this.checked = this._initiallyChecked, this.$input && (this.$input.checked = !!this._initiallyChecked), this.setFormValue(this.checked ? this.value : null);
19
- }, this._renderIcon = (i) => p`
20
- <skf-icon color="inverse" name=${i} size=${this.size === "sm" ? "sm" : "md"}></skf-icon>
17
+ super(...arguments), this._initiallyChecked = !1, this.debug = !1, this.customInvalid = !1, this.indeterminate = !1, this.showValid = !1, this.size = "md", this.value = "", this._invalid = !1, this._resetValue = (t) => {
18
+ t.stopPropagation(), this.checked = this._initiallyChecked, this.$input && (this.$input.checked = !!this._initiallyChecked), this.setFormValue(this.checked ? this.value : null);
19
+ }, this._renderIcon = (t) => c`
20
+ <skf-icon color="inverse" name=${t} size=${this.size === "sm" ? "sm" : "md"}></skf-icon>
21
21
  `;
22
22
  }
23
+ get checked() {
24
+ var t;
25
+ return ((t = this.$input) == null ? void 0 : t.checked) ?? !1;
26
+ }
27
+ set checked(t) {
28
+ this.setAttribute("checked", String(!!t)), this.$input && (this.$input.checked = !!t);
29
+ }
30
+ handleCheckedChange() {
31
+ this.setFormValue(this.checked ? this.value : null), this._validateInput();
32
+ }
23
33
  handleInvalidChange() {
24
34
  this._invalid ? (this.setAttribute("invalid", ""), this.showValid && this.removeAttribute("valid"), this.checkValidity()) : (this.removeAttribute("invalid"), !this.pristine && this.showValid && this.setAttribute("valid", "true"));
25
35
  }
@@ -37,39 +47,39 @@ const d = class d extends c {
37
47
  this.setValidity({}), this._validateInput();
38
48
  }
39
49
  firstUpdated() {
40
- var i;
41
- (i = this.$input) == null || i.addEventListener("change", (s) => {
50
+ var t;
51
+ (t = this.$input) == null || t.addEventListener("change", (s) => {
42
52
  var a;
43
- s.stopPropagation(), this.pristine = !1, this.checked = (a = this.$input) == null ? void 0 : a.checked, this._validateInput(), this.checked ? (this.indeterminate = !1, this.setFormValue(this.value)) : this.setFormValue(null), this.emitEvent("change");
53
+ s.stopPropagation(), this.pristine = !1, this.checked = ((a = this.$input) == null ? void 0 : a.checked) ?? !1, this._validateInput(), this.checked ? (this.indeterminate = !1, this.setFormValue(this.value)) : this.setFormValue(null), this.emitEvent("change");
44
54
  }), this.addEventListener("invalid", (s) => {
45
55
  this.pristine = !1, this._invalid = !0, this.customErrorDisplay && s.preventDefault();
46
56
  }), this._initiallyChecked = this.checked, this.addEventListener("reset", this._resetValue), this._validateInput();
47
57
  }
48
58
  /** @internal */
49
59
  _validateInput() {
50
- var i;
60
+ var t;
51
61
  if (this._invalid = !1, this.customInvalid)
52
62
  this.setValidity({ customError: !0 }, "Custom error"), this._invalid = !0;
53
63
  else if (this.required && !this.checked) {
54
64
  this.pristine || (this._invalid = !0);
55
65
  const s = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : (
56
66
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
57
- ((i = this.$input) == null ? void 0 : i.validationMessage) || "Please check this box if you want to proceed"
67
+ ((t = this.$input) == null ? void 0 : t.validationMessage) || "Please check this box if you want to proceed"
58
68
  );
59
69
  this.setValidity({ valueMissing: !0 }, String(s));
60
70
  } else
61
71
  this.setValidity({});
62
72
  }
63
73
  render() {
64
- return p`
74
+ return c`
65
75
  <label id="root">
66
76
  <input
67
77
  ?checked=${this.checked}
68
78
  ?disabled=${this.disabled}
69
79
  ?required=${this.required}
70
- .indeterminate=${this.indeterminate ?? !1}
80
+ .indeterminate=${this.indeterminate}
71
81
  aria-invalid=${!!this._invalid}
72
- name=${b(this.name)}
82
+ name=${_(this.name)}
73
83
  type="checkbox"
74
84
  value=${this.value}
75
85
  />
@@ -82,56 +92,59 @@ const d = class d extends c {
82
92
  `;
83
93
  }
84
94
  };
85
- d.styles = [m, g];
86
- let t = d;
87
- e([
95
+ d.styles = [m, b];
96
+ let e = d;
97
+ i([
88
98
  r({ type: Boolean })
89
- ], t.prototype, "debug", 2);
90
- e([
99
+ ], e.prototype, "debug", 2);
100
+ i([
91
101
  r({ type: Boolean, reflect: !0 })
92
- ], t.prototype, "checked", 2);
93
- e([
102
+ ], e.prototype, "checked", 1);
103
+ i([
94
104
  r({ type: Boolean, attribute: "custom-invalid", reflect: !0 })
95
- ], t.prototype, "customInvalid", 2);
96
- e([
105
+ ], e.prototype, "customInvalid", 2);
106
+ i([
97
107
  r({ type: Boolean, reflect: !0 })
98
- ], t.prototype, "indeterminate", 2);
99
- e([
108
+ ], e.prototype, "indeterminate", 2);
109
+ i([
100
110
  r()
101
- ], t.prototype, "label", 2);
102
- e([
111
+ ], e.prototype, "label", 2);
112
+ i([
103
113
  r()
104
- ], t.prototype, "name", 2);
105
- e([
114
+ ], e.prototype, "name", 2);
115
+ i([
106
116
  r({ attribute: "required-label" })
107
- ], t.prototype, "requiredLabel", 2);
108
- e([
117
+ ], e.prototype, "requiredLabel", 2);
118
+ i([
109
119
  r({ reflect: !0 })
110
- ], t.prototype, "severity", 2);
111
- e([
120
+ ], e.prototype, "severity", 2);
121
+ i([
112
122
  r({ type: Boolean, attribute: "show-valid" })
113
- ], t.prototype, "showValid", 2);
114
- e([
123
+ ], e.prototype, "showValid", 2);
124
+ i([
115
125
  r({ reflect: !0 })
116
- ], t.prototype, "size", 2);
117
- e([
126
+ ], e.prototype, "size", 2);
127
+ i([
118
128
  r()
119
- ], t.prototype, "value", 2);
120
- e([
129
+ ], e.prototype, "value", 2);
130
+ i([
121
131
  y()
122
- ], t.prototype, "_invalid", 2);
123
- e([
124
- _("input")
125
- ], t.prototype, "$input", 2);
126
- e([
132
+ ], e.prototype, "_invalid", 2);
133
+ i([
134
+ g("input")
135
+ ], e.prototype, "$input", 2);
136
+ i([
137
+ h("checked", { afterUpdate: !0 })
138
+ ], e.prototype, "handleCheckedChange", 1);
139
+ i([
127
140
  h("_invalid")
128
- ], t.prototype, "handleInvalidChange", 1);
129
- e([
141
+ ], e.prototype, "handleInvalidChange", 1);
142
+ i([
130
143
  h("_invalid", { afterUpdate: !0 })
131
- ], t.prototype, "handleDebugInvalid", 1);
132
- e([
144
+ ], e.prototype, "handleDebugInvalid", 1);
145
+ i([
133
146
  h("customInvalid")
134
- ], t.prototype, "handleCustomInvalidChange", 1);
147
+ ], e.prototype, "handleCustomInvalidChange", 1);
135
148
  export {
136
- t as SkfCheckbox
149
+ e as SkfCheckbox
137
150
  };
@@ -4,7 +4,7 @@ import h from "../../styles/component.styles.js";
4
4
  import { property as s } from "lit/decorators.js";
5
5
  import { classMap as m } from "lit/directives/class-map.js";
6
6
  import { ifDefined as f } from "lit/directives/if-defined.js";
7
- import { html as u, unsafeStatic as d } from "lit/static-html.js";
7
+ import { unsafeStatic as d, html as u } from "lit/static-html.js";
8
8
  import _ from "./collapse.styles.js";
9
9
  var y = Object.defineProperty, a = (i, n, r, g) => {
10
10
  for (var t = void 0, l = i.length - 1, p; l >= 0; l--)
@@ -0,0 +1,77 @@
1
+ import { SkfElement } from '../../internal/components/skf-element.js';
2
+ import { Temporal } from '@js-temporal/polyfill';
3
+ import { type CSSResultGroup } from 'lit';
4
+ interface DateParts {
5
+ year?: number;
6
+ month?: number;
7
+ day?: number;
8
+ }
9
+ export declare class SkfDatePickerCalendar extends SkfElement {
10
+ static styles: CSSResultGroup;
11
+ /** @internal */
12
+ _secondCalendarOffset: number;
13
+ /** @internal calendar month to display */
14
+ date: Date;
15
+ eventid: string;
16
+ firstDayOfWeek: number;
17
+ /**
18
+ * A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.
19
+ */
20
+ invalidDates?: string;
21
+ locale: string;
22
+ range: boolean;
23
+ /**
24
+ * Earliest selectable date. (yyyy-mm-dd format)
25
+ */
26
+ selectableFrom?: string;
27
+ /**
28
+ * Latest selectable date. (yyyy-mm-dd format)
29
+ */
30
+ selectableTo?: string;
31
+ selectedDate?: Date;
32
+ selectedDateRange: {
33
+ start: Date | null;
34
+ end: Date | null;
35
+ };
36
+ /** @internal */
37
+ _numberOfDays: number;
38
+ /** @internal */
39
+ _numberOfDaysLastMonth: number;
40
+ firstUpdated(): void;
41
+ _listenToKeyboard: () => {
42
+ start: () => void;
43
+ stop: () => void;
44
+ };
45
+ _handleKeyDown: (e: KeyboardEvent) => void;
46
+ /** For single select, the selected date */
47
+ attributeChangedCallback(name: string, oldVal: unknown, newVal: unknown): void;
48
+ /** @internal */
49
+ handleDateChange(): void;
50
+ /** @internal */
51
+ _createDate({ year, month, day }: DateParts, useTemporalApi: true): Temporal.PlainDate;
52
+ _createDate({ year, month, day }: DateParts, useTemporalApi?: false): Date;
53
+ /** @internal Converts a new Date object to PlainDate type. If no argument sent, uses 'this.date' */
54
+ _plainDate(date?: Date | null): Temporal.PlainDate | null;
55
+ /** @internal Check if a day is between two dates */
56
+ _isDateBetween(dateToCheck: Temporal.PlainDate, startDate?: Temporal.PlainDate, endDate?: Temporal.PlainDate): boolean;
57
+ render(): import("lit").TemplateResult<1>;
58
+ /** @internal */
59
+ private returnDayClasses;
60
+ /** @internal */
61
+ private handleSelectDay;
62
+ /** @internal */
63
+ private getCalendarPreMonthDays;
64
+ /** @internal */
65
+ private getCalendarRemaningDays;
66
+ /** @internal */
67
+ private calendarMonthStartsOn;
68
+ /** @internal */
69
+ private getCalendarStartDay;
70
+ dateSelectable: (dateString: string) => {
71
+ matchesInvalidDates: boolean | undefined;
72
+ dateWithinRange: boolean;
73
+ };
74
+ /** @internal */
75
+ private getCalendarHead;
76
+ }
77
+ export {};