@sbb-esta/lyne-elements 2.2.0 → 2.4.1

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 (392) hide show
  1. package/accordion.js +6 -6
  2. package/alert/alert-group.js +4 -4
  3. package/alert/alert.js +9 -9
  4. package/autocomplete/autocomplete-base-element.d.ts +1 -0
  5. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  6. package/autocomplete/autocomplete.d.ts.map +1 -1
  7. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  8. package/autocomplete-grid/autocomplete-grid-button.js +4 -4
  9. package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
  10. package/autocomplete-grid/autocomplete-grid-row.js +4 -4
  11. package/autocomplete-grid/autocomplete-grid.js +0 -1
  12. package/autocomplete.js +29 -29
  13. package/badge.css +31 -0
  14. package/breadcrumb/breadcrumb-group.js +4 -4
  15. package/breadcrumb/breadcrumb.js +19 -19
  16. package/button/accent-button-link.js +9 -9
  17. package/button/accent-button-static.js +6 -6
  18. package/button/accent-button.js +6 -6
  19. package/button/button-link.js +7 -7
  20. package/button/button-static.js +7 -7
  21. package/button/button.js +8 -8
  22. package/button/common/button-common.d.ts.map +1 -1
  23. package/button/common.js +1 -1
  24. package/button/mini-button-group.js +8 -8
  25. package/button/secondary-button-link.js +7 -7
  26. package/button/secondary-button-static.js +7 -7
  27. package/button/secondary-button.js +3 -3
  28. package/button/transparent-button-link.js +6 -6
  29. package/button/transparent-button-static.js +5 -5
  30. package/button/transparent-button.js +6 -6
  31. package/calendar/calendar.d.ts +55 -11
  32. package/calendar/calendar.d.ts.map +1 -1
  33. package/calendar.js +374 -224
  34. package/card/card-badge.js +9 -9
  35. package/card/card-button.js +5 -5
  36. package/card/card-link.js +7 -7
  37. package/card/card.js +1 -1
  38. package/card/common/card-action-common.d.ts.map +1 -1
  39. package/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  40. package/checkbox/checkbox-group.js +1 -1
  41. package/checkbox/checkbox-panel.js +16 -16
  42. package/checkbox/checkbox.js +15 -15
  43. package/checkbox/common/checkbox-common.d.ts.map +1 -1
  44. package/checkbox/common.js +3 -3
  45. package/clock.js +8 -8
  46. package/container/container.js +4 -4
  47. package/core/base-elements.js +10 -10
  48. package/core/controllers/escapable-overlay-controller.d.ts +11 -0
  49. package/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
  50. package/core/controllers.d.ts +1 -0
  51. package/core/controllers.d.ts.map +1 -1
  52. package/core/controllers.js +73 -47
  53. package/core/datetime/date-adapter.d.ts +4 -2
  54. package/core/datetime/date-adapter.d.ts.map +1 -1
  55. package/core/datetime/native-date-adapter.d.ts +1 -1
  56. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  57. package/core/datetime.js +51 -43
  58. package/core/decorators/date-converter.d.ts +8 -0
  59. package/core/decorators/date-converter.d.ts.map +1 -0
  60. package/core/decorators/date-only-type.d.ts +8 -0
  61. package/core/decorators/date-only-type.d.ts.map +1 -0
  62. package/core/decorators/get-override.d.ts.map +1 -1
  63. package/core/decorators/handle-distinct-change.d.ts.map +1 -1
  64. package/core/decorators/host-attributes.d.ts.map +1 -1
  65. package/core/decorators/slot-state.d.ts.map +1 -1
  66. package/core/decorators.d.ts +2 -0
  67. package/core/decorators.d.ts.map +1 -1
  68. package/core/decorators.js +52 -31
  69. package/core/dom/input-element.d.ts +1 -1
  70. package/core/dom/input-element.d.ts.map +1 -1
  71. package/core/dom.js +5 -5
  72. package/core/eventing/throttle.d.ts.map +1 -1
  73. package/core/eventing.js +4 -4
  74. package/core/i18n/i18n.d.ts +6 -0
  75. package/core/i18n/i18n.d.ts.map +1 -1
  76. package/core/i18n.js +106 -70
  77. package/core/mixins/disabled-mixin.d.ts.map +1 -1
  78. package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  79. package/core/mixins/form-associated-input-mixin.d.ts +25 -0
  80. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
  81. package/core/mixins/form-associated-mixin.d.ts +16 -0
  82. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  83. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  84. package/core/mixins/hydration-mixin.d.ts.map +1 -1
  85. package/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
  86. package/core/mixins/negative-mixin.d.ts.map +1 -1
  87. package/core/mixins/panel-mixin.d.ts.map +1 -1
  88. package/core/mixins/required-mixin.d.ts.map +1 -1
  89. package/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
  90. package/core/mixins.d.ts +1 -0
  91. package/core/mixins.d.ts.map +1 -1
  92. package/core/mixins.js +574 -295
  93. package/core/styles/badge.scss +3 -0
  94. package/core/styles/core.scss +3 -1
  95. package/core/styles/mixins/badge.scss +26 -1
  96. package/core/styles/mixins/font-face.scss +12 -12
  97. package/core/styles/mixins/link.scss +32 -8
  98. package/core/styles/standard-theme.scss +1 -0
  99. package/core/testing/mocha-extensions.d.ts.map +1 -1
  100. package/core/testing/wait-for-render.d.ts.map +1 -1
  101. package/core/testing.js +14 -14
  102. package/core.css +5 -5
  103. package/custom-elements.json +28284 -17221
  104. package/date-input/date-input.d.ts +67 -0
  105. package/date-input/date-input.d.ts.map +1 -0
  106. package/date-input.d.ts +2 -0
  107. package/date-input.d.ts.map +1 -0
  108. package/date-input.js +149 -0
  109. package/datepicker/common/datepicker-button.d.ts.map +1 -1
  110. package/datepicker/common.js +49 -45
  111. package/datepicker/datepicker/datepicker.d.ts +16 -6
  112. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  113. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  114. package/datepicker/datepicker-toggle.js +43 -40
  115. package/datepicker/datepicker.js +94 -76
  116. package/development/alert/alert-group.js +1 -1
  117. package/development/alert/alert.js +1 -1
  118. package/development/autocomplete/autocomplete-base-element.d.ts +1 -0
  119. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  120. package/development/autocomplete/autocomplete.d.ts.map +1 -1
  121. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  122. package/development/autocomplete-grid/autocomplete-grid.js +1 -2
  123. package/development/autocomplete.js +10 -5
  124. package/development/breadcrumb/breadcrumb.js +5 -2
  125. package/development/button/common/button-common.d.ts.map +1 -1
  126. package/development/button/common.js +18 -14
  127. package/development/calendar/calendar.d.ts +55 -11
  128. package/development/calendar/calendar.d.ts.map +1 -1
  129. package/development/calendar.js +302 -88
  130. package/development/card/card.js +1 -1
  131. package/development/card/common/card-action-common.d.ts.map +1 -1
  132. package/development/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  133. package/development/checkbox/checkbox-group.js +2 -2
  134. package/development/checkbox/checkbox-panel.js +1 -1
  135. package/development/checkbox/common/checkbox-common.d.ts.map +1 -1
  136. package/development/core/controllers/escapable-overlay-controller.d.ts +11 -0
  137. package/development/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
  138. package/development/core/controllers.d.ts +1 -0
  139. package/development/core/controllers.d.ts.map +1 -1
  140. package/development/core/controllers.js +36 -1
  141. package/development/core/datetime/date-adapter.d.ts +4 -2
  142. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  143. package/development/core/datetime/native-date-adapter.d.ts +1 -1
  144. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  145. package/development/core/datetime.js +14 -2
  146. package/development/core/decorators/date-converter.d.ts +8 -0
  147. package/development/core/decorators/date-converter.d.ts.map +1 -0
  148. package/development/core/decorators/date-only-type.d.ts +8 -0
  149. package/development/core/decorators/date-only-type.d.ts.map +1 -0
  150. package/development/core/decorators/get-override.d.ts.map +1 -1
  151. package/development/core/decorators/handle-distinct-change.d.ts.map +1 -1
  152. package/development/core/decorators/host-attributes.d.ts.map +1 -1
  153. package/development/core/decorators/slot-state.d.ts.map +1 -1
  154. package/development/core/decorators.d.ts +2 -0
  155. package/development/core/decorators.d.ts.map +1 -1
  156. package/development/core/decorators.js +23 -2
  157. package/development/core/dom/input-element.d.ts +1 -1
  158. package/development/core/dom/input-element.d.ts.map +1 -1
  159. package/development/core/dom.js +3 -3
  160. package/development/core/eventing/throttle.d.ts.map +1 -1
  161. package/development/core/i18n/i18n.d.ts +6 -0
  162. package/development/core/i18n/i18n.d.ts.map +1 -1
  163. package/development/core/i18n.js +43 -1
  164. package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
  165. package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  166. package/development/core/mixins/form-associated-input-mixin.d.ts +25 -0
  167. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
  168. package/development/core/mixins/form-associated-mixin.d.ts +16 -0
  169. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  170. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  171. package/development/core/mixins/hydration-mixin.d.ts.map +1 -1
  172. package/development/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
  173. package/development/core/mixins/negative-mixin.d.ts.map +1 -1
  174. package/development/core/mixins/panel-mixin.d.ts.map +1 -1
  175. package/development/core/mixins/required-mixin.d.ts.map +1 -1
  176. package/development/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
  177. package/development/core/mixins.d.ts +1 -0
  178. package/development/core/mixins.d.ts.map +1 -1
  179. package/development/core/mixins.js +460 -32
  180. package/development/core/testing/mocha-extensions.d.ts.map +1 -1
  181. package/development/core/testing/wait-for-render.d.ts.map +1 -1
  182. package/development/date-input/date-input.d.ts +67 -0
  183. package/development/date-input/date-input.d.ts.map +1 -0
  184. package/development/date-input.d.ts +2 -0
  185. package/development/date-input.d.ts.map +1 -0
  186. package/development/date-input.js +259 -0
  187. package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
  188. package/development/datepicker/common.js +11 -2
  189. package/development/datepicker/datepicker/datepicker.d.ts +16 -6
  190. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  191. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  192. package/development/datepicker/datepicker-toggle.js +13 -4
  193. package/development/datepicker/datepicker.js +65 -39
  194. package/development/dialog/dialog/dialog.d.ts.map +1 -1
  195. package/development/dialog/dialog-title.js +1 -1
  196. package/development/dialog/dialog.js +3 -1
  197. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  198. package/development/expansion-panel/expansion-panel-header.js +1 -1
  199. package/development/expansion-panel/expansion-panel.js +3 -3
  200. package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
  201. package/development/file-selector/common.js +1 -1
  202. package/development/footer.js +1 -1
  203. package/development/form-field/form-field/form-field.d.ts +1 -1
  204. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  205. package/development/form-field/form-field.js +23 -14
  206. package/development/header/common/header-action-common.d.ts.map +1 -1
  207. package/development/icon/icon-name-mixin.d.ts.map +1 -1
  208. package/development/icon/icon-request.d.ts.map +1 -1
  209. package/development/icon/icon-validate.d.ts.map +1 -1
  210. package/development/image.js +1 -1
  211. package/development/journey-header.js +1 -1
  212. package/development/link/common/block-link-common.d.ts.map +1 -1
  213. package/development/link/common/inline-link-common.d.ts.map +1 -1
  214. package/development/link/common/link-common.d.ts.map +1 -1
  215. package/development/link/common.js +19 -7
  216. package/development/link-list/common.js +1 -1
  217. package/development/map-container.js +1 -1
  218. package/development/menu/common/menu-action-common.d.ts +3 -0
  219. package/development/menu/common/menu-action-common.d.ts.map +1 -1
  220. package/development/menu/common.js +35 -12
  221. package/development/menu/menu/menu.d.ts +1 -1
  222. package/development/menu/menu/menu.d.ts.map +1 -1
  223. package/development/menu/menu.js +5 -15
  224. package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
  225. package/development/navigation/navigation/navigation.d.ts +1 -3
  226. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  227. package/development/navigation/navigation-section.js +1 -1
  228. package/development/navigation/navigation.js +8 -21
  229. package/development/notification.js +1 -1
  230. package/development/overlay/overlay-base-element.d.ts +2 -2
  231. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  232. package/development/overlay/overlay.d.ts.map +1 -1
  233. package/development/overlay.js +7 -14
  234. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  235. package/development/popover/popover/popover.d.ts +1 -1
  236. package/development/popover/popover/popover.d.ts.map +1 -1
  237. package/development/popover/popover.js +5 -15
  238. package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
  239. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  240. package/development/radio-button/radio-button-group.js +2 -2
  241. package/development/radio-button/radio-button-panel.js +1 -1
  242. package/development/select/select.d.ts +6 -1
  243. package/development/select/select.d.ts.map +1 -1
  244. package/development/select.js +28 -6
  245. package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  246. package/development/selection-expansion-panel.js +2 -2
  247. package/development/skiplink-list.js +1 -1
  248. package/development/slider.js +1 -1
  249. package/development/stepper/step/step.d.ts +0 -2
  250. package/development/stepper/step/step.d.ts.map +1 -1
  251. package/development/stepper/step.js +1 -16
  252. package/development/stepper/stepper/stepper.d.ts +11 -0
  253. package/development/stepper/stepper/stepper.d.ts.map +1 -1
  254. package/development/stepper/stepper.js +30 -3
  255. package/development/tabs/tab-label.js +1 -1
  256. package/development/tag/tag/tag.d.ts +11 -0
  257. package/development/tag/tag/tag.d.ts.map +1 -1
  258. package/development/tag/tag-group/tag-group.d.ts +1 -1
  259. package/development/tag/tag-group/tag-group.d.ts.map +1 -1
  260. package/development/tag/tag-group.js +9 -3
  261. package/development/tag/tag.js +37 -10
  262. package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  263. package/development/timetable-occupancy.js +1 -1
  264. package/development/toast.js +1 -1
  265. package/development/toggle/toggle/toggle.d.ts +25 -6
  266. package/development/toggle/toggle/toggle.d.ts.map +1 -1
  267. package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
  268. package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  269. package/development/toggle/toggle-option.js +21 -39
  270. package/development/toggle/toggle.js +57 -39
  271. package/development/train/train-formation.js +1 -1
  272. package/development/train/train.js +1 -1
  273. package/development/visual-checkbox.js +1 -1
  274. package/dialog/dialog/dialog.d.ts.map +1 -1
  275. package/dialog/dialog-content.js +3 -3
  276. package/dialog/dialog-title.js +8 -8
  277. package/dialog/dialog.js +2 -2
  278. package/divider.js +12 -12
  279. package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  280. package/expansion-panel/expansion-panel-header.js +1 -1
  281. package/expansion-panel/expansion-panel.js +2 -2
  282. package/file-selector/common/file-selector-common.d.ts.map +1 -1
  283. package/file-selector/common.js +9 -9
  284. package/file-selector/file-selector-dropzone.js +5 -5
  285. package/file-selector/file-selector.js +6 -6
  286. package/flip-card/flip-card-details.js +4 -4
  287. package/flip-card/flip-card-summary.js +9 -9
  288. package/font-characters-extension.css +3 -3
  289. package/footer.js +4 -4
  290. package/form-field/form-field/form-field.d.ts +1 -1
  291. package/form-field/form-field/form-field.d.ts.map +1 -1
  292. package/form-field/form-field.js +32 -24
  293. package/header/common/header-action-common.d.ts.map +1 -1
  294. package/header/header-button.js +5 -5
  295. package/header/header-link.js +5 -5
  296. package/icon/icon-name-mixin.d.ts.map +1 -1
  297. package/icon/icon-request.d.ts.map +1 -1
  298. package/icon/icon-validate.d.ts.map +1 -1
  299. package/icon.js +36 -36
  300. package/image.js +1 -1
  301. package/index.d.ts +2 -0
  302. package/index.js +2 -0
  303. package/journey-header.js +5 -5
  304. package/link/block-link-button.js +4 -4
  305. package/link/block-link-static.js +9 -9
  306. package/link/block-link.js +4 -4
  307. package/link/common/block-link-common.d.ts.map +1 -1
  308. package/link/common/inline-link-common.d.ts.map +1 -1
  309. package/link/common/link-common.d.ts.map +1 -1
  310. package/link/common.js +28 -28
  311. package/link/link-button.js +7 -7
  312. package/link/link-static.js +7 -7
  313. package/link/link.js +4 -4
  314. package/link-list/common.js +15 -15
  315. package/loading-indicator-circle.js +11 -11
  316. package/map-container.js +5 -5
  317. package/menu/common/menu-action-common.d.ts +3 -0
  318. package/menu/common/menu-action-common.d.ts.map +1 -1
  319. package/menu/common.js +34 -30
  320. package/menu/menu/menu.d.ts +1 -1
  321. package/menu/menu/menu.d.ts.map +1 -1
  322. package/menu/menu-button.js +8 -8
  323. package/menu/menu-link.js +6 -6
  324. package/menu/menu.js +29 -38
  325. package/navigation/common/navigation-action-common.d.ts.map +1 -1
  326. package/navigation/navigation/navigation.d.ts +1 -3
  327. package/navigation/navigation/navigation.d.ts.map +1 -1
  328. package/navigation/navigation-button.js +4 -4
  329. package/navigation/navigation-link.js +7 -7
  330. package/navigation/navigation-list.js +4 -4
  331. package/navigation/navigation-marker.js +3 -3
  332. package/navigation/navigation-section.js +1 -1
  333. package/navigation/navigation.js +45 -54
  334. package/notification.js +18 -18
  335. package/option/optgroup.js +11 -11
  336. package/overlay/overlay-base-element.d.ts +2 -2
  337. package/overlay/overlay-base-element.d.ts.map +1 -1
  338. package/overlay/overlay.d.ts.map +1 -1
  339. package/overlay.js +57 -63
  340. package/package.json +11 -2
  341. package/paginator/common/paginator-common.d.ts.map +1 -1
  342. package/paginator/common.js +6 -6
  343. package/popover/popover/popover.d.ts +1 -1
  344. package/popover/popover/popover.d.ts.map +1 -1
  345. package/popover/popover.js +105 -114
  346. package/radio-button/common/radio-button-common.d.ts.map +1 -1
  347. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  348. package/radio-button/radio-button-group.js +1 -1
  349. package/radio-button/radio-button-panel.js +6 -6
  350. package/screen-reader-only.js +5 -5
  351. package/select/select.d.ts +6 -1
  352. package/select/select.d.ts.map +1 -1
  353. package/select.js +52 -43
  354. package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  355. package/selection-expansion-panel.js +1 -1
  356. package/skiplink-list.js +3 -3
  357. package/slider.js +13 -13
  358. package/standard-theme.css +37 -5
  359. package/status.js +3 -3
  360. package/stepper/step/step.d.ts +0 -2
  361. package/stepper/step/step.d.ts.map +1 -1
  362. package/stepper/step-label.js +4 -4
  363. package/stepper/step.js +24 -36
  364. package/stepper/stepper/stepper.d.ts +11 -0
  365. package/stepper/stepper/stepper.d.ts.map +1 -1
  366. package/stepper/stepper.js +59 -41
  367. package/table/table-wrapper.js +4 -4
  368. package/tabs/tab-group.js +24 -24
  369. package/tabs/tab-label.js +1 -1
  370. package/tabs/tab.js +4 -4
  371. package/tag/tag/tag.d.ts +11 -0
  372. package/tag/tag/tag.d.ts.map +1 -1
  373. package/tag/tag-group/tag-group.d.ts +1 -1
  374. package/tag/tag-group/tag-group.d.ts.map +1 -1
  375. package/tag/tag-group.js +34 -31
  376. package/tag/tag.js +60 -41
  377. package/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  378. package/teaser-product/common.js +5 -5
  379. package/teaser-product/teaser-product-static.js +2 -2
  380. package/timetable-occupancy-icon.js +3 -3
  381. package/timetable-occupancy.js +6 -6
  382. package/toast.js +5 -5
  383. package/toggle/toggle/toggle.d.ts +25 -6
  384. package/toggle/toggle/toggle.d.ts.map +1 -1
  385. package/toggle/toggle-option/toggle-option.d.ts +2 -6
  386. package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  387. package/toggle/toggle-option.js +44 -52
  388. package/toggle/toggle.js +103 -83
  389. package/toggle-check.js +5 -5
  390. package/train/train-formation.js +1 -1
  391. package/train/train.js +29 -29
  392. package/visual-checkbox.js +1 -1
@@ -0,0 +1,67 @@
1
+ import { LitElement, CSSResultGroup, PropertyDeclaration } from 'lit';
2
+ import { FormRestoreReason, FormRestoreState } from '../core/mixins.js';
3
+ declare const SbbDateInputElement_base: import('../core/mixins.js').Constructor<import('../core/mixins.js').SbbFormAssociatedInputMixinType> & typeof LitElement;
4
+ /**
5
+ * Custom input for a date.
6
+ */
7
+ export declare class SbbDateInputElement<T = Date> extends SbbDateInputElement_base {
8
+ static styles: CSSResultGroup;
9
+ private _dateAdapter;
10
+ private _placeholderMutable;
11
+ /**
12
+ * The value of the date input. Reflects the current text value
13
+ * of this input.
14
+ * @attr Accepts ISO8601 formatted values, which will be
15
+ * formatted according to the current locale.
16
+ */
17
+ set value(value: string);
18
+ get value(): string;
19
+ set valueAsDate(value: T | null);
20
+ get valueAsDate(): T | null;
21
+ private _valueAsDate?;
22
+ accessor min: T | null;
23
+ accessor max: T | null;
24
+ /** A function used to filter out dates. */
25
+ accessor dateFilter: (date: T | null) => boolean;
26
+ /**
27
+ * How to format the displayed date.
28
+ * `short`: Two letter abbreviation of the week day (e.g. Fr).
29
+ * `none`: The weekday is not displayed.
30
+ */
31
+ accessor weekdayStyle: 'short' | 'none';
32
+ /**
33
+ * Stores the last string and parsed date object value to prevent repeated
34
+ * parsing of the string value.
35
+ */
36
+ private _valueCache?;
37
+ constructor();
38
+ connectedCallback(): void;
39
+ requestUpdate(name?: PropertyKey, oldValue?: unknown, options?: PropertyDeclaration): void;
40
+ /**
41
+ * Called when the browser is trying to restore element’s state to state in which case
42
+ * reason is "restore", or when the browser is trying to fulfill autofill on behalf of
43
+ * user in which case reason is "autocomplete".
44
+ * In the case of "restore", state is a string, File, or FormData object
45
+ * previously set as the second argument to setFormValue.
46
+ *
47
+ * @internal
48
+ */
49
+ formStateRestoreCallback(state: FormRestoreState | null, _reason: FormRestoreReason): void;
50
+ protected updateFormValue(): void;
51
+ private _tryParseValue;
52
+ private _updateValueDateFormat;
53
+ private _formatDate;
54
+ protected shouldValidate(name: PropertyKey | undefined): boolean;
55
+ protected validate(): void;
56
+ private _removeValidityErrors;
57
+ }
58
+ declare global {
59
+ interface HTMLElementTagNameMap {
60
+ 'sbb-date-input': SbbDateInputElement;
61
+ }
62
+ interface CustomValidityState {
63
+ sbbDateFilter: boolean;
64
+ }
65
+ }
66
+ export {};
67
+ //# sourceMappingURL=date-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-input.d.ts","sourceRoot":"","sources":["../../../src/elements/date-input/date-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,KAAK,cAAc,E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cAIA,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO;cAItD,QAAQ,IAAI,IAAI;IAiCnC,OAAO,CAAC,qBAAqB;CAK9B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gBAAgB,EAAE,mBAAmB,CAAC;KACvC;IAED,UAAU,mBAAmB;QAC3B,aAAa,EAAE,OAAO,CAAC;KACxB;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './date-input/date-input.js';
2
+ //# sourceMappingURL=date-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-input.d.ts","sourceRoot":"","sources":["../../src/elements/date-input.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
package/date-input.js ADDED
@@ -0,0 +1,149 @@
1
+ var P = (a) => {
2
+ throw TypeError(a);
3
+ };
4
+ var T = (a, s, i) => s.has(a) || P("Cannot " + i);
5
+ var p = (a, s, i) => (T(a, s, "read from private field"), i ? i.call(a) : s.get(a)), f = (a, s, i) => s.has(a) ? P("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, i), d = (a, s, i, o) => (T(a, s, "write to private field"), o ? o.call(a, i) : s.set(a, i), i);
6
+ import { __esDecorate as _, __runInitializers as n } from "tslib";
7
+ import { css as L, LitElement as G, isServer as R } from "lit";
8
+ import { customElement as B, property as y } from "lit/decorators.js";
9
+ import { readConfig as H } from "./core/config.js";
10
+ import { defaultDateAdapter as J } from "./core/datetime.js";
11
+ import { forceType as v, DateOnlyType as D, dateConverter as U } from "./core/decorators.js";
12
+ import { i18nDatePickerPlaceholder as j, i18nDateInvalid as q, i18nDateMin as K, i18nDateMax as N } from "./core/i18n.js";
13
+ import { SbbFormAssociatedInputMixin as Q } from "./core/mixins.js";
14
+ const W = L`:host{display:inline-block;min-width:9.375rem;max-width:100%;cursor:text}@media (forced-colors: active){:host{color:FieldText}}:host(:disabled){cursor:default}:host(:focus){text-overflow:initial!important}:host(:empty):after{content:attr(placeholder);color:var(--sbb-color-metal);-webkit-text-fill-color:var(--sbb-color-metal);opacity:1}@media (forced-colors: active){:host(:empty):after{color:GrayText}}`;
15
+ Object.assign(ValidityState.prototype, {
16
+ get sbbDateFilter() {
17
+ return !1;
18
+ }
19
+ });
20
+ let re = (() => {
21
+ var h, u, c, m, l;
22
+ let a = [B("sbb-date-input")], s, i = [], o, g = Q(G), b = [], A, x, k = [], F = [], w, S = [], V = [], I, z = [], C = [], E, M = [], O = [];
23
+ return l = class extends g {
24
+ constructor() {
25
+ var e, t;
26
+ super();
27
+ f(this, h);
28
+ f(this, u);
29
+ f(this, c);
30
+ f(this, m);
31
+ this._dateAdapter = (n(this, b), ((e = H().datetime) == null ? void 0 : e.dateAdapter) ?? J), this._placeholderMutable = !1, d(this, h, n(this, k, null)), d(this, u, (n(this, F), n(this, S, null))), d(this, c, (n(this, V), n(this, z, () => !0))), d(this, m, (n(this, C), n(this, M, "short"))), this._valueCache = n(this, O), (t = this.addEventListener) == null || t.call(this, "change", () => this._updateValueDateFormat(), { capture: !0 });
32
+ }
33
+ /**
34
+ * The value of the date input. Reflects the current text value
35
+ * of this input.
36
+ * @attr Accepts ISO8601 formatted values, which will be
37
+ * formatted according to the current locale.
38
+ */
39
+ set value(e) {
40
+ this._tryParseValue(e), !R && !this.matches(":focus") && this.valueAsDate !== null && (e = this._formatDate()), super.value = e;
41
+ }
42
+ get value() {
43
+ return super.value ?? "";
44
+ }
45
+ set valueAsDate(e) {
46
+ if (!e)
47
+ this._valueAsDate = null, this._valueCache = ["", null], this.value = "";
48
+ else if (!this._dateAdapter.isDateInstance(this._valueAsDate) || this._dateAdapter.compareDate(this._valueAsDate, e) !== 0) {
49
+ this._valueAsDate = e;
50
+ const t = this._formatDate();
51
+ this._valueCache = [t, this._valueAsDate], this.value = t;
52
+ }
53
+ }
54
+ get valueAsDate() {
55
+ return this._valueAsDate ?? null;
56
+ }
57
+ get min() {
58
+ return p(this, h);
59
+ }
60
+ set min(e) {
61
+ d(this, h, e);
62
+ }
63
+ get max() {
64
+ return p(this, u);
65
+ }
66
+ set max(e) {
67
+ d(this, u, e);
68
+ }
69
+ /** A function used to filter out dates. */
70
+ get dateFilter() {
71
+ return p(this, c);
72
+ }
73
+ set dateFilter(e) {
74
+ d(this, c, e);
75
+ }
76
+ /**
77
+ * How to format the displayed date.
78
+ * `short`: Two letter abbreviation of the week day (e.g. Fr).
79
+ * `none`: The weekday is not displayed.
80
+ */
81
+ get weekdayStyle() {
82
+ return p(this, m);
83
+ }
84
+ set weekdayStyle(e) {
85
+ d(this, m, e);
86
+ }
87
+ connectedCallback() {
88
+ super.connectedCallback(), this.placeholder || (this._placeholderMutable = !0, this.placeholder = j[this.language.current]);
89
+ }
90
+ requestUpdate(e, t, r) {
91
+ super.requestUpdate(e, t, r), this.hasUpdated && !e ? (this._updateValueDateFormat(), this._placeholderMutable && (this.placeholder = j[this.language.current])) : e === "weekdayStyle" && this._updateValueDateFormat();
92
+ }
93
+ /**
94
+ * Called when the browser is trying to restore element’s state to state in which case
95
+ * reason is "restore", or when the browser is trying to fulfill autofill on behalf of
96
+ * user in which case reason is "autocomplete".
97
+ * In the case of "restore", state is a string, File, or FormData object
98
+ * previously set as the second argument to setFormValue.
99
+ *
100
+ * @internal
101
+ */
102
+ formStateRestoreCallback(e, t) {
103
+ e && typeof e == "string" && (this.value = e);
104
+ }
105
+ updateFormValue() {
106
+ this._tryParseValue();
107
+ const e = this.valueAsDate !== null ? this._dateAdapter.toIso8601(this.valueAsDate) : null;
108
+ this.internals.setFormValue(e, this.value);
109
+ }
110
+ _tryParseValue(e = this.value) {
111
+ var t;
112
+ ((t = this._valueCache) == null ? void 0 : t[0]) !== e && (this._valueAsDate = this._dateAdapter.parse(e), this._valueCache = [e, this._valueAsDate]);
113
+ }
114
+ _updateValueDateFormat() {
115
+ if (this.valueAsDate) {
116
+ const e = this._formatDate();
117
+ this.value !== e && (super.value = e);
118
+ }
119
+ }
120
+ _formatDate() {
121
+ return this._dateAdapter.format(this.valueAsDate, { weekdayStyle: this.weekdayStyle });
122
+ }
123
+ shouldValidate(e) {
124
+ return super.shouldValidate(e) || ["valueAsDate", "min", "max"].includes(e);
125
+ }
126
+ validate() {
127
+ super.validate(), this.value ? this._dateAdapter.isValid(this.valueAsDate) ? this._dateAdapter.isValid(this.min) && this._dateAdapter.compareDate(this.min, this.valueAsDate) > 0 ? this.setValidityFlag("rangeUnderflow", K(this._dateAdapter.format(this.min, { weekdayStyle: "none" }))[this.language.current]) : this._dateAdapter.isValid(this.max) && this._dateAdapter.compareDate(this.valueAsDate, this.max) > 0 ? this.setValidityFlag("rangeOverflow", N(this._dateAdapter.format(this.max, { weekdayStyle: "none" }))[this.language.current]) : this.dateFilter && !this.dateFilter(this.valueAsDate) ? this.setValidityFlag("sbbDateFilter", q[this.language.current]) : this._removeValidityErrors() : this.setValidityFlag("badInput", q[this.language.current]) : this._removeValidityErrors();
128
+ }
129
+ _removeValidityErrors() {
130
+ ["badInput", "rangeUnderflow", "rangeOverflow", "sbbDateFilter"].forEach((e) => this.removeValidityFlag(e));
131
+ }
132
+ }, h = new WeakMap(), u = new WeakMap(), c = new WeakMap(), m = new WeakMap(), o = l, (() => {
133
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
134
+ A = [v(), y({ attribute: !1, type: D })], x = [v(), y({ converter: U, reflect: !0, type: D })], w = [v(), y({ converter: U, reflect: !0, type: D })], I = [y({ attribute: !1 })], E = [y({ attribute: "weekday-style" })], _(l, null, A, { kind: "setter", name: "valueAsDate", static: !1, private: !1, access: { has: (t) => "valueAsDate" in t, set: (t, r) => {
135
+ t.valueAsDate = r;
136
+ } }, metadata: e }, null, b), _(l, null, x, { kind: "accessor", name: "min", static: !1, private: !1, access: { has: (t) => "min" in t, get: (t) => t.min, set: (t, r) => {
137
+ t.min = r;
138
+ } }, metadata: e }, k, F), _(l, null, w, { kind: "accessor", name: "max", static: !1, private: !1, access: { has: (t) => "max" in t, get: (t) => t.max, set: (t, r) => {
139
+ t.max = r;
140
+ } }, metadata: e }, S, V), _(l, null, I, { kind: "accessor", name: "dateFilter", static: !1, private: !1, access: { has: (t) => "dateFilter" in t, get: (t) => t.dateFilter, set: (t, r) => {
141
+ t.dateFilter = r;
142
+ } }, metadata: e }, z, C), _(l, null, E, { kind: "accessor", name: "weekdayStyle", static: !1, private: !1, access: { has: (t) => "weekdayStyle" in t, get: (t) => t.weekdayStyle, set: (t, r) => {
143
+ t.weekdayStyle = r;
144
+ } }, metadata: e }, M, O), _(null, s = { value: o }, a, { kind: "class", name: o.name, metadata: e }, null, i), o = s.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
145
+ })(), l.styles = W, n(o, i), o;
146
+ })();
147
+ export {
148
+ re as SbbDateInputElement
149
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"datepicker-button.d.ts","sourceRoot":"","sources":["../../../../src/elements/datepicker/common/datepicker-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAMnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,yCAAyC,CAAC;AAEjD,OAAO,eAAe,CAAC;;AAEvB,8BAAsB,mBAAmB,CAAC,CAAC,GAAG,IAAI,CAChD,SAAQ,wBACR,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAElC;;;;OAIG;IACH,IACW,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,EAOnE;IACD,gBAAgB;IAChB,IAAW,UAAU,IAAI,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,CAE/D;IAED,4BAA4B;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CAAC,wBAAwB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;IAQ9F,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC;IAEjC,iBAAiB,IAAI,IAAI;cAQtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IA2B5E,OAAO,CAAC,YAAY;IAqBpB,OAAO,CAAC,4BAA4B;cAYjB,cAAc,IAAI,cAAc;CAGpD"}
@@ -5,12 +5,12 @@ var A = (a, t, e) => t.has(a) || g("Cannot " + e);
5
5
  var y = (a, t, e) => (A(a, t, "read from private field"), e ? e.call(a) : t.get(a)), D = (a, t, e) => t.has(a) ? g("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(a) : t.set(a, e), p = (a, t, e, o) => (A(a, t, "write to private field"), o ? o.call(a, e) : t.set(a, e), e);
6
6
  import { __esDecorate as b, __runInitializers as _ } from "tslib";
7
7
  import { html as x } from "lit";
8
- import { property as v, state as C } from "lit/decorators.js";
9
- import { SbbButtonBaseElement as w } from "../core/base-elements.js";
10
- import { readConfig as E } from "../core/config.js";
8
+ import { property as v, state as E } from "lit/decorators.js";
9
+ import { SbbButtonBaseElement as C } from "../core/base-elements.js";
10
+ import { readConfig as w } from "../core/config.js";
11
11
  import { SbbLanguageController as S } from "../core/controllers.js";
12
- import { defaultDateAdapter as P } from "../core/datetime.js";
13
- import { i18nToday as I } from "../core/i18n.js";
12
+ import { defaultDateAdapter as I } from "../core/datetime.js";
13
+ import { i18nToday as P } from "../core/i18n.js";
14
14
  import { SbbNegativeMixin as z } from "../core/mixins.js";
15
15
  import "../icon.js";
16
16
  const u = class u {
@@ -30,7 +30,7 @@ const u = class u {
30
30
  };
31
31
  u._registry = /* @__PURE__ */ new WeakMap();
32
32
  let h = u;
33
- class V {
33
+ class W {
34
34
  constructor(t) {
35
35
  this._host = t, this._host.addController(this);
36
36
  }
@@ -60,43 +60,44 @@ class R {
60
60
  const t = this._host.closest("sbb-form-field");
61
61
  let e = null;
62
62
  const o = this._host.getAttribute("datepicker") ?? this._host.getAttribute("date-picker");
63
- o ? e = Array.from(this._context.hosts).find((n) => n.id === o) ?? null : e = Array.from(this._context.hosts).find((n) => n.closest("sbb-form-field") === t) ?? null, e && (this._host.datepicker = e);
63
+ o ? e = Array.from(this._context.hosts).find((d) => d.id === o) ?? null : e = Array.from(this._context.hosts).find((d) => d.closest("sbb-form-field") === t) ?? null, e && (this._host.datepicker = e);
64
64
  }
65
65
  hostDisconnected() {
66
66
  var t, e;
67
67
  (t = this._context) == null || t.controls.delete(this._host), (e = this._context) == null || e.deleteIfEmpty();
68
68
  }
69
69
  }
70
- let W = (() => {
71
- var l, d;
72
- let a = z(w), t = [], e, o, n, f = [], m = [];
73
- return d = class extends a {
70
+ const O = (a) => (a == null ? void 0 : a.localName) === "sbb-date-input";
71
+ let G = (() => {
72
+ var l, n;
73
+ let a = z(C), t = [], e, o, d, f = [], m = [];
74
+ return n = class extends a {
74
75
  constructor() {
75
- var s, i;
76
+ var i, s;
76
77
  super();
77
78
  D(this, l);
78
- this._datepicker = _(this, t), p(this, l, _(this, f, null)), this._disabled = (_(this, m), !1), this._inputDisabled = !1, this.datePickerElement = null, this._dateAdapter = ((s = E().datetime) == null ? void 0 : s.dateAdapter) ?? P, this._language = new S(this), this.addController(new R(this)), (i = this.addEventListener) == null || i.call(this, "click", () => this._handleClick());
79
+ this._datepicker = _(this, t), p(this, l, _(this, f, null)), this._disabled = (_(this, m), !1), this._inputDisabled = !1, this.datePickerElement = null, this._dateAdapter = ((i = w().datetime) == null ? void 0 : i.dateAdapter) ?? I, this._language = new S(this), this.addController(new R(this)), (s = this.addEventListener) == null || s.call(this, "click", () => this._handleClick());
79
80
  }
80
81
  /**
81
82
  * Datepicker reference.
82
83
  * @internal
83
84
  * @deprecated Use property/attribute `datepicker` instead.
84
85
  */
85
- set datePicker(s) {
86
- this.datepicker = s;
86
+ set datePicker(i) {
87
+ this.datepicker = i;
87
88
  }
88
89
  /** @internal */
89
90
  get datePicker() {
90
91
  return this.datepicker;
91
92
  }
92
93
  /** Datepicker reference. */
93
- set datepicker(s) {
94
- var i, r, c;
95
- this._datepicker = typeof s == "string" ? (
94
+ set datepicker(i) {
95
+ var s, r, c;
96
+ this._datepicker = typeof i == "string" ? (
96
97
  // In case the value is a string, it should be treated as an id reference
97
98
  // and attempt to be resolved.
98
- ((c = (r = (i = this.getRootNode) == null ? void 0 : i.call(this)) == null ? void 0 : r.querySelector) == null ? void 0 : c.call(r, `#${s}`)) ?? null
99
- ) : s, this.datePickerElement = this._datepicker;
99
+ ((c = (r = (s = this.getRootNode) == null ? void 0 : s.call(this)) == null ? void 0 : r.querySelector) == null ? void 0 : c.call(r, `#${i}`)) ?? null
100
+ ) : i, this.datePickerElement = this._datepicker;
100
101
  }
101
102
  get datepicker() {
102
103
  return this._datepicker ?? null;
@@ -105,52 +106,55 @@ let W = (() => {
105
106
  get boundary() {
106
107
  return y(this, l);
107
108
  }
108
- set boundary(s) {
109
- p(this, l, s);
109
+ set boundary(i) {
110
+ p(this, l, i);
110
111
  }
111
112
  connectedCallback() {
112
- var i, r;
113
+ var s, r;
113
114
  super.connectedCallback();
114
- const s = ((i = this.closest) == null ? void 0 : i.call(this, "sbb-form-field")) ?? ((r = this.closest) == null ? void 0 : r.call(this, "[data-form-field]"));
115
- s && (this.negative = s.hasAttribute("negative"));
115
+ const i = ((s = this.closest) == null ? void 0 : s.call(this, "sbb-form-field")) ?? ((r = this.closest) == null ? void 0 : r.call(this, "[data-form-field]"));
116
+ i && (this.negative = i.hasAttribute("negative"));
116
117
  }
117
- willUpdate(s) {
118
+ willUpdate(i) {
118
119
  var c, k;
119
- if (super.willUpdate(s), !this.datepicker || !this._dateAdapter.isValid(this.datepicker.valueAsDate)) {
120
+ if (super.willUpdate(i), !this.datepicker || !this._dateAdapter.isValid(this.datepicker.valueAsDate)) {
120
121
  this._disabled = !0, this.setAttribute("aria-label", this.i18nOffBoundaryDay[this._language.current]), this._setDisabledRenderAttributes();
121
122
  return;
122
123
  }
123
- const i = this.findAvailableDate(this.datepicker.valueAsDate);
124
- this._disabled = this._dateAdapter.compareDate(i, this.datepicker.valueAsDate) === 0, this._inputDisabled = (((c = this.datepicker.inputElement) == null ? void 0 : c.disabled) || ((k = this.datepicker.inputElement) == null ? void 0 : k.readOnly)) ?? !0, this._setDisabledRenderAttributes();
125
- const r = this._dateAdapter.compareDate(this.datepicker.now, this.datepicker.valueAsDate) === 0 ? I[this._language.current].toLowerCase() : this._dateAdapter.getAccessibilityFormatDate(this.datepicker.valueAsDate);
124
+ const s = this.findAvailableDate(this.datepicker.valueAsDate);
125
+ this._disabled = this._dateAdapter.compareDate(s, this.datepicker.valueAsDate) === 0, this._inputDisabled = (((c = this.datepicker.inputElement) == null ? void 0 : c.disabled) || ((k = this.datepicker.inputElement) == null ? void 0 : k.readOnly)) ?? !0, this._setDisabledRenderAttributes();
126
+ const r = this._dateAdapter.compareDate(this.datepicker.now, this.datepicker.valueAsDate) === 0 ? P[this._language.current].toLowerCase() : this._dateAdapter.getAccessibilityFormatDate(this.datepicker.valueAsDate);
126
127
  this.setAttribute("aria-label", this.i18nSelectOffBoundaryDay(r)[this._language.current]);
127
128
  }
128
129
  _handleClick() {
129
130
  if (!this.datepicker || this.hasAttribute("data-disabled"))
130
131
  return;
131
- const s = this.datepicker.valueAsDate ?? this.datepicker.now, i = this.findAvailableDate(s);
132
- this._dateAdapter.compareDate(i, s) !== 0 && (this.datepicker.valueAsDate = i);
132
+ const i = this.datepicker.valueAsDate ?? this.datepicker.now, s = this.findAvailableDate(i);
133
+ if (this._dateAdapter.compareDate(s, i) !== 0) {
134
+ const r = this.datepicker.inputElement;
135
+ O(r) ? (r.valueAsDate = s, r.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), r.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })), r.dispatchEvent(new Event("blur", { composed: !0 }))) : this.datepicker.valueAsDate = s;
136
+ }
133
137
  }
134
138
  _setDisabledRenderAttributes() {
135
- const s = this._disabled || this._inputDisabled;
136
- this.toggleAttribute("data-disabled", s), s ? (this.setAttribute("aria-disabled", "true"), this.removeAttribute("tabindex")) : (this.removeAttribute("aria-disabled"), this.setAttribute("tabindex", "0"));
139
+ const i = this._disabled || this._inputDisabled;
140
+ this.toggleAttribute("data-disabled", i), i ? (this.setAttribute("aria-disabled", "true"), this.removeAttribute("tabindex")) : (this.removeAttribute("aria-disabled"), this.setAttribute("tabindex", "0"));
137
141
  }
138
142
  renderTemplate() {
139
143
  return x`<sbb-icon name=${this.iconName}></sbb-icon>`;
140
144
  }
141
145
  }, l = new WeakMap(), (() => {
142
- const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
143
- e = [v({ attribute: "date-picker" })], o = [v({ attribute: "datepicker" })], n = [C()], b(d, null, e, { kind: "setter", name: "datePicker", static: !1, private: !1, access: { has: (i) => "datePicker" in i, set: (i, r) => {
144
- i.datePicker = r;
145
- } }, metadata: s }, null, t), b(d, null, o, { kind: "setter", name: "datepicker", static: !1, private: !1, access: { has: (i) => "datepicker" in i, set: (i, r) => {
146
- i.datepicker = r;
147
- } }, metadata: s }, null, t), b(d, null, n, { kind: "accessor", name: "boundary", static: !1, private: !1, access: { has: (i) => "boundary" in i, get: (i) => i.boundary, set: (i, r) => {
148
- i.boundary = r;
149
- } }, metadata: s }, f, m), s && Object.defineProperty(d, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
150
- })(), d;
146
+ const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
147
+ e = [v({ attribute: "date-picker" })], o = [v({ attribute: "datepicker" })], d = [E()], b(n, null, e, { kind: "setter", name: "datePicker", static: !1, private: !1, access: { has: (s) => "datePicker" in s, set: (s, r) => {
148
+ s.datePicker = r;
149
+ } }, metadata: i }, null, t), b(n, null, o, { kind: "setter", name: "datepicker", static: !1, private: !1, access: { has: (s) => "datepicker" in s, set: (s, r) => {
150
+ s.datepicker = r;
151
+ } }, metadata: i }, null, t), b(n, null, d, { kind: "accessor", name: "boundary", static: !1, private: !1, access: { has: (s) => "boundary" in s, get: (s) => s.boundary, set: (s, r) => {
152
+ s.boundary = r;
153
+ } }, metadata: i }, f, m), i && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
154
+ })(), n;
151
155
  })();
152
156
  export {
153
157
  R as SbbDatepickerAssociationControlController,
154
- V as SbbDatepickerAssociationHostController,
155
- W as SbbDatepickerButton
158
+ W as SbbDatepickerAssociationHostController,
159
+ G as SbbDatepickerButton
156
160
  };
@@ -1,5 +1,6 @@
1
- import { CSSResultGroup, LitElement, PropertyValues, TemplateResult } from 'lit';
1
+ import { CSSResultGroup, LitElement, PropertyDeclaration, PropertyValues, TemplateResult } from 'lit';
2
2
  import { SbbDateLike } from '../../core/interfaces.js';
3
+ import { SbbDateInputElement } from '../../date-input.js';
3
4
  import { SbbDatepickerButton } from '../common.js';
4
5
  import { SbbDatepickerToggleElement } from '../datepicker-toggle.js';
5
6
  export interface SbbInputUpdateEvent {
@@ -39,10 +40,15 @@ export declare class SbbDatepickerElement<T = Date> extends LitElement {
39
40
  };
40
41
  /** If set to true, two months are displayed. */
41
42
  accessor wide: boolean;
42
- /** A function used to filter out dates. */
43
- accessor dateFilter: (date: T | null) => boolean;
44
43
  /**
45
- * Reference of the native input connected to the datepicker.
44
+ * A function used to filter out dates.
45
+ * @deprecated Use dateFilter from SbbDateInputElement.
46
+ */
47
+ set dateFilter(value: (date: T | null) => boolean);
48
+ get dateFilter(): (date: T | null) => boolean;
49
+ private _dateFilter?;
50
+ /**
51
+ * Reference of the sbb-date-input instance or the native input connected to the datepicker.
46
52
  * If given a string, it will be treated as an id reference and an attempt is
47
53
  * made to be resolved for the containing document fragment.
48
54
  * If given a HTMLElement instance, it will be used as is.
@@ -55,12 +61,15 @@ export declare class SbbDatepickerElement<T = Date> extends LitElement {
55
61
  set now(value: SbbDateLike<T> | null);
56
62
  get now(): T;
57
63
  private _now?;
58
- /** The currently selected date as a Date or custom date provider instance. */
64
+ /**
65
+ * The currently selected date as a Date or custom date provider instance.
66
+ * @deprecated Use valueAsDate from SbbDateInputElement.
67
+ */
59
68
  set valueAsDate(value: SbbDateLike<T> | null);
60
69
  get valueAsDate(): T | null;
61
70
  private _valueAsDate?;
62
71
  /** The resolved associated input element, as defined by `input`. */
63
- get inputElement(): HTMLInputElement | null;
72
+ get inputElement(): HTMLInputElement | SbbDateInputElement<T> | null;
64
73
  private accessor _inputElement;
65
74
  /** Notifies that the connected input has changes. */
66
75
  private _change;
@@ -78,6 +87,7 @@ export declare class SbbDatepickerElement<T = Date> extends LitElement {
78
87
  private _associationController;
79
88
  constructor();
80
89
  connectedCallback(): void;
90
+ requestUpdate(name?: PropertyKey, oldValue?: unknown, options?: PropertyDeclaration): void;
81
91
  protected willUpdate(changedProperties: PropertyValues<this>): void;
82
92
  disconnectedCallback(): void;
83
93
  protected firstUpdated(changedProperties: PropertyValues<this>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"datepicker.d.ts","sourceRoot":"","sources":["../../../../src/elements/datepicker/datepicker/datepicker.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAUb,OAAO,KAAK,EAAE,WAAW,EAA4B,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAA0C,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAI1E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,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iB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAkB5D,oBAAoB,IAAI,IAAI;cAMzB,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAK9E;;;OAGG;IACI,YAAY,IAAI,OAAO;IAI9B,OAAO,CAAC,YAAY;IAiDpB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IAoB9B,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,mBAAmB;cAcR,MAAM,IAAI,cAAc;IAI3C;;;;OAIG;IACI,yBAAyB,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC;IAc5C;;;;OAIG;IACI,qBAAqB,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC;IAaxC;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAY1B;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAmBzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gBAAgB,EAAE,oBAAoB,CAAC;KACxC;IAED,UAAU,2BAA2B;QACnC,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;KAChD;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"datepicker-toggle.d.ts","sourceRoot":"","sources":["../../../../src/elements/datepicker/datepicker-toggle/datepicker-toggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAkB,UAAU,EAAW,MAAM,KAAK,CAAC;AAK1D,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,mBAAmB,CAAC;AAM1E,OAAO,EAA6C,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,m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AAI;IAMzE,OAAO,CAAC,UAAU;cAIC,MAAM,IAAI,cAAc;CA2C5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
1
+ {"version":3,"file":"datepicker-toggle.d.ts","sourceRoot":"","sources":["../../../../src/elements/datepicker/datepicker-toggle/datepicker-toggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAkB,UAAU,EAAW,MAAM,KAAK,CAAC;AAK1D,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,mBAAmB,CAAC;AAO1E,OAAO,EAA6C,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,6BAA6B,CAAC;;AAMrC;;GAEG;AACH,qBAEM,0BAA0B,CAAC,CAAC,GAAG,IAAI,CACvC,SAAQ,+BACR,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAElC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;OAIG;IACH,IACW,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,EAOnE;IACD,gBAAgB;IAChB,IAAW,UAAU,IAAI,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,CAE/D;IAED,4BAA4B;IAC5B,IACW,UAAU,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,EAK1D;IACD,IAAW,UAAU,IAAI,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,CAEtD;IACD,OAAO,CAAC,WAAW,CAAC,CAAiC;IAErD,yEAAyE;IACzE,SAA4B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