@daikin-oss/design-system-web-components 2.0.0 → 2.0.1-next.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 (697) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/custom-elements.json +1173 -1174
  3. package/dist/cjs/_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.cjs +9 -0
  4. package/dist/cjs/_virtual/_rolldown/runtime.cjs +23 -0
  5. package/dist/cjs/base/dds-element.cjs +100 -86
  6. package/dist/cjs/base/dds-form-element.cjs +123 -144
  7. package/dist/cjs/base/dds-property.cjs +46 -5
  8. package/dist/cjs/base/dds-property.d.cts +1 -1
  9. package/dist/cjs/base/decorators.cjs +8 -11
  10. package/dist/cjs/base/define.cjs +11 -17
  11. package/dist/cjs/base/index.cjs +12 -13
  12. package/dist/cjs/components/accordion/daikin-accordion.cjs +77 -91
  13. package/dist/cjs/components/accordion/index.cjs +5 -4
  14. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +148 -172
  15. package/dist/cjs/components/accordion-item/index.cjs +5 -4
  16. package/dist/cjs/components/avatar/daikin-avatar.cjs +149 -163
  17. package/dist/cjs/components/avatar/index.cjs +5 -4
  18. package/dist/cjs/components/badge/daikin-badge.cjs +179 -199
  19. package/dist/cjs/components/badge/index.cjs +5 -4
  20. package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +80 -88
  21. package/dist/cjs/components/breadcrumb/index.cjs +5 -4
  22. package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +120 -127
  23. package/dist/cjs/components/breadcrumb-item/index.cjs +5 -4
  24. package/dist/cjs/components/button/daikin-button.cjs +269 -294
  25. package/dist/cjs/components/button/index.cjs +5 -4
  26. package/dist/cjs/components/calendar/daikin-calendar.cjs +421 -528
  27. package/dist/cjs/components/calendar/index.cjs +5 -4
  28. package/dist/cjs/components/card/daikin-card.cjs +52 -61
  29. package/dist/cjs/components/card/index.cjs +5 -4
  30. package/dist/cjs/components/card-footer/daikin-card-footer.cjs +24 -27
  31. package/dist/cjs/components/card-footer/index.cjs +5 -4
  32. package/dist/cjs/components/card-header/daikin-card-header.cjs +46 -49
  33. package/dist/cjs/components/card-header/index.cjs +5 -4
  34. package/dist/cjs/components/carousel/daikin-carousel.cjs +131 -167
  35. package/dist/cjs/components/carousel/index.cjs +5 -4
  36. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +51 -59
  37. package/dist/cjs/components/carousel-item/index.cjs +5 -4
  38. package/dist/cjs/components/checkbox/daikin-checkbox.cjs +324 -336
  39. package/dist/cjs/components/checkbox/index.cjs +5 -4
  40. package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +93 -107
  41. package/dist/cjs/components/checkbox-group/index.cjs +5 -4
  42. package/dist/cjs/components/chip/daikin-chip.cjs +312 -334
  43. package/dist/cjs/components/chip/index.cjs +5 -4
  44. package/dist/cjs/components/combobox/daikin-combobox.cjs +469 -592
  45. package/dist/cjs/components/combobox/index.cjs +6 -5
  46. package/dist/cjs/components/date-picker/daikin-date-picker.cjs +809 -842
  47. package/dist/cjs/components/date-picker/index.cjs +5 -4
  48. package/dist/cjs/components/divider/daikin-divider.cjs +32 -36
  49. package/dist/cjs/components/divider/index.cjs +5 -4
  50. package/dist/cjs/components/drawer/daikin-drawer.cjs +200 -213
  51. package/dist/cjs/components/drawer/index.cjs +5 -4
  52. package/dist/cjs/components/drawer-footer/daikin-drawer-footer.cjs +26 -29
  53. package/dist/cjs/components/drawer-footer/index.cjs +5 -4
  54. package/dist/cjs/components/drawer-header/daikin-drawer-header.cjs +62 -67
  55. package/dist/cjs/components/drawer-header/index.cjs +5 -4
  56. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +479 -575
  57. package/dist/cjs/components/dropdown/index.cjs +5 -4
  58. package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +130 -151
  59. package/dist/cjs/components/dropdown-item/index.cjs +5 -4
  60. package/dist/cjs/components/empty-state/daikin-empty-state.cjs +28 -31
  61. package/dist/cjs/components/empty-state/index.cjs +5 -4
  62. package/dist/cjs/components/icon/daikin-icon.cjs +159 -179
  63. package/dist/cjs/components/icon/icons.json.cjs +97 -6
  64. package/dist/cjs/components/icon/index.cjs +6 -5
  65. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +255 -274
  66. package/dist/cjs/components/icon-button/index.cjs +5 -4
  67. package/dist/cjs/components/index.cjs +435 -226
  68. package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +138 -162
  69. package/dist/cjs/components/inline-notification/index.cjs +5 -4
  70. package/dist/cjs/components/input-group/daikin-input-group.cjs +191 -235
  71. package/dist/cjs/components/input-group/index.cjs +5 -4
  72. package/dist/cjs/components/link/daikin-link.cjs +122 -132
  73. package/dist/cjs/components/link/index.cjs +5 -4
  74. package/dist/cjs/components/list/daikin-list.cjs +84 -101
  75. package/dist/cjs/components/list/index.cjs +5 -4
  76. package/dist/cjs/components/list-item/daikin-list-item.cjs +179 -196
  77. package/dist/cjs/components/list-item/index.cjs +5 -4
  78. package/dist/cjs/components/loading/daikin-loading.cjs +70 -84
  79. package/dist/cjs/components/loading/index.cjs +5 -4
  80. package/dist/cjs/components/logo/daikin-logo.cjs +115 -128
  81. package/dist/cjs/components/logo/index.cjs +5 -4
  82. package/dist/cjs/components/menu/daikin-menu.cjs +258 -322
  83. package/dist/cjs/components/menu/index.cjs +5 -4
  84. package/dist/cjs/components/modal/daikin-modal.cjs +107 -130
  85. package/dist/cjs/components/modal/index.cjs +5 -4
  86. package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +26 -29
  87. package/dist/cjs/components/modal-footer/index.cjs +5 -4
  88. package/dist/cjs/components/modal-header/daikin-modal-header.cjs +70 -75
  89. package/dist/cjs/components/modal-header/index.cjs +5 -4
  90. package/dist/cjs/components/navigation/daikin-navigation.cjs +50 -54
  91. package/dist/cjs/components/navigation/index.cjs +5 -4
  92. package/dist/cjs/components/navigation-item/daikin-navigation-item.cjs +165 -188
  93. package/dist/cjs/components/navigation-item/index.cjs +5 -4
  94. package/dist/cjs/components/pagination/daikin-pagination.cjs +191 -221
  95. package/dist/cjs/components/pagination/index.cjs +5 -4
  96. package/dist/cjs/components/pagination/pagination-utils.cjs +76 -41
  97. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +136 -169
  98. package/dist/cjs/components/progress-bar/index.cjs +5 -4
  99. package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +55 -62
  100. package/dist/cjs/components/progress-indicator/index.cjs +5 -4
  101. package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +55 -70
  102. package/dist/cjs/components/progress-indicator-item/index.cjs +5 -4
  103. package/dist/cjs/components/radio/daikin-radio.cjs +273 -285
  104. package/dist/cjs/components/radio/index.cjs +5 -4
  105. package/dist/cjs/components/radio-group/daikin-radio-group.cjs +149 -171
  106. package/dist/cjs/components/radio-group/index.cjs +5 -4
  107. package/dist/cjs/components/select/daikin-select.cjs +231 -264
  108. package/dist/cjs/components/select/index.cjs +5 -4
  109. package/dist/cjs/components/slider/daikin-slider.cjs +250 -301
  110. package/dist/cjs/components/slider/index.cjs +5 -4
  111. package/dist/cjs/components/slider/slider-utils.cjs +61 -45
  112. package/dist/cjs/components/status-message/daikin-status-message.cjs +115 -113
  113. package/dist/cjs/components/status-message/index.cjs +5 -4
  114. package/dist/cjs/components/tab/daikin-tab.cjs +112 -132
  115. package/dist/cjs/components/tab/index.cjs +5 -4
  116. package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +43 -52
  117. package/dist/cjs/components/tab-panels/index.cjs +5 -4
  118. package/dist/cjs/components/table/daikin-table.cjs +265 -318
  119. package/dist/cjs/components/table/index.cjs +5 -4
  120. package/dist/cjs/components/table-cell/daikin-table-cell.cjs +55 -69
  121. package/dist/cjs/components/table-cell/index.cjs +5 -4
  122. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +129 -139
  123. package/dist/cjs/components/table-header-cell/index.cjs +5 -4
  124. package/dist/cjs/components/tabs/daikin-tabs.cjs +178 -219
  125. package/dist/cjs/components/tabs/index.cjs +5 -4
  126. package/dist/cjs/components/tag/daikin-tag.cjs +148 -152
  127. package/dist/cjs/components/tag/index.cjs +5 -4
  128. package/dist/cjs/components/text-area/daikin-text-area.cjs +161 -175
  129. package/dist/cjs/components/text-area/index.cjs +5 -4
  130. package/dist/cjs/components/text-field/daikin-text-field.cjs +378 -428
  131. package/dist/cjs/components/text-field/index.cjs +5 -4
  132. package/dist/cjs/components/text-field/number-utils.cjs +77 -90
  133. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +292 -308
  134. package/dist/cjs/components/text-masked-field/index.cjs +5 -4
  135. package/dist/cjs/components/time-picker/daikin-time-picker.cjs +689 -752
  136. package/dist/cjs/components/time-picker/index.cjs +15 -14
  137. package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +143 -170
  138. package/dist/cjs/components/toast-notification/index.cjs +5 -4
  139. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +173 -195
  140. package/dist/cjs/components/toast-notification-manager/index.cjs +5 -4
  141. package/dist/cjs/components/toggle/daikin-toggle.cjs +169 -178
  142. package/dist/cjs/components/toggle/index.cjs +5 -4
  143. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +165 -202
  144. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +2 -2
  145. package/dist/cjs/components/tooltip/index.cjs +5 -4
  146. package/dist/cjs/components/tree/common.cjs +74 -70
  147. package/dist/cjs/components/tree/daikin-tree.cjs +89 -103
  148. package/dist/cjs/components/tree/index.cjs +5 -4
  149. package/dist/cjs/components/tree-item/daikin-tree-item.cjs +178 -198
  150. package/dist/cjs/components/tree-item/index.cjs +6 -5
  151. package/dist/cjs/components/tree-section/daikin-tree-section.cjs +169 -215
  152. package/dist/cjs/components/tree-section/index.cjs +5 -4
  153. package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.cjs +84 -104
  154. package/dist/cjs/components/vertical-navigation/index.cjs +5 -4
  155. package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +463 -482
  156. package/dist/cjs/components/vertical-navigation-item/index.cjs +5 -4
  157. package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +196 -214
  158. package/dist/cjs/components/vertical-navigation-menu-item/index.cjs +5 -4
  159. package/dist/cjs/controllers/block-scroll.cjs +75 -41
  160. package/dist/cjs/controllers/click-outside.cjs +62 -30
  161. package/dist/cjs/controllers/custom-readonly.cjs +52 -58
  162. package/dist/cjs/controllers/floating-ui-auto-update.cjs +76 -98
  163. package/dist/cjs/controllers/focus-trap.cjs +39 -57
  164. package/dist/cjs/controllers/helpers/controller-directive.cjs +46 -45
  165. package/dist/cjs/icon-registry.cjs +147 -161
  166. package/dist/cjs/index.cjs +374 -234
  167. package/dist/cjs/is-client.cjs +3 -4
  168. package/dist/cjs/navigation.cjs +66 -47
  169. package/dist/cjs/tailwind.css.cjs +4 -6
  170. package/dist/cjs/utils/calendar-common.cjs +156 -117
  171. package/dist/cjs/utils/extract-half-width-digits.cjs +17 -8
  172. package/dist/cjs/utils/is-similar-to-click.cjs +3 -3
  173. package/dist/cjs/utils/is-simple-key.cjs +9 -3
  174. package/dist/cjs/utils/notification-common.cjs +14 -27
  175. package/dist/cjs/utils/re-dispatch.cjs +6 -8
  176. package/dist/cjs/utils/scroller.cjs +44 -57
  177. package/dist/cjs-dev/_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.cjs +9 -0
  178. package/dist/cjs-dev/_virtual/_rolldown/runtime.cjs +23 -0
  179. package/dist/cjs-dev/base/dds-element.cjs +101 -96
  180. package/dist/cjs-dev/base/dds-form-element.cjs +123 -144
  181. package/dist/cjs-dev/base/dds-property.cjs +46 -5
  182. package/dist/cjs-dev/base/dds-property.d.cts +1 -1
  183. package/dist/cjs-dev/base/decorators.cjs +8 -11
  184. package/dist/cjs-dev/base/define.cjs +11 -17
  185. package/dist/cjs-dev/base/index.cjs +12 -13
  186. package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +78 -98
  187. package/dist/cjs-dev/components/accordion/index.cjs +5 -4
  188. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +148 -172
  189. package/dist/cjs-dev/components/accordion-item/index.cjs +5 -4
  190. package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +149 -163
  191. package/dist/cjs-dev/components/avatar/index.cjs +5 -4
  192. package/dist/cjs-dev/components/badge/daikin-badge.cjs +179 -199
  193. package/dist/cjs-dev/components/badge/index.cjs +5 -4
  194. package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +80 -88
  195. package/dist/cjs-dev/components/breadcrumb/index.cjs +5 -4
  196. package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +120 -127
  197. package/dist/cjs-dev/components/breadcrumb-item/index.cjs +5 -4
  198. package/dist/cjs-dev/components/button/daikin-button.cjs +269 -294
  199. package/dist/cjs-dev/components/button/index.cjs +5 -4
  200. package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +429 -539
  201. package/dist/cjs-dev/components/calendar/index.cjs +5 -4
  202. package/dist/cjs-dev/components/card/daikin-card.cjs +52 -61
  203. package/dist/cjs-dev/components/card/index.cjs +5 -4
  204. package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +24 -27
  205. package/dist/cjs-dev/components/card-footer/index.cjs +5 -4
  206. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +46 -49
  207. package/dist/cjs-dev/components/card-header/index.cjs +5 -4
  208. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +137 -177
  209. package/dist/cjs-dev/components/carousel/index.cjs +5 -4
  210. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +51 -59
  211. package/dist/cjs-dev/components/carousel-item/index.cjs +5 -4
  212. package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +324 -336
  213. package/dist/cjs-dev/components/checkbox/index.cjs +5 -4
  214. package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +93 -107
  215. package/dist/cjs-dev/components/checkbox-group/index.cjs +5 -4
  216. package/dist/cjs-dev/components/chip/daikin-chip.cjs +312 -334
  217. package/dist/cjs-dev/components/chip/index.cjs +5 -4
  218. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +469 -592
  219. package/dist/cjs-dev/components/combobox/index.cjs +6 -5
  220. package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +817 -853
  221. package/dist/cjs-dev/components/date-picker/index.cjs +5 -4
  222. package/dist/cjs-dev/components/divider/daikin-divider.cjs +32 -36
  223. package/dist/cjs-dev/components/divider/index.cjs +5 -4
  224. package/dist/cjs-dev/components/drawer/daikin-drawer.cjs +200 -213
  225. package/dist/cjs-dev/components/drawer/index.cjs +5 -4
  226. package/dist/cjs-dev/components/drawer-footer/daikin-drawer-footer.cjs +26 -29
  227. package/dist/cjs-dev/components/drawer-footer/index.cjs +5 -4
  228. package/dist/cjs-dev/components/drawer-header/daikin-drawer-header.cjs +62 -67
  229. package/dist/cjs-dev/components/drawer-header/index.cjs +5 -4
  230. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +479 -575
  231. package/dist/cjs-dev/components/dropdown/index.cjs +5 -4
  232. package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +130 -151
  233. package/dist/cjs-dev/components/dropdown-item/index.cjs +5 -4
  234. package/dist/cjs-dev/components/empty-state/daikin-empty-state.cjs +28 -31
  235. package/dist/cjs-dev/components/empty-state/index.cjs +5 -4
  236. package/dist/cjs-dev/components/icon/daikin-icon.cjs +167 -208
  237. package/dist/cjs-dev/components/icon/icons.json.cjs +97 -6
  238. package/dist/cjs-dev/components/icon/index.cjs +6 -5
  239. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +255 -274
  240. package/dist/cjs-dev/components/icon-button/index.cjs +5 -4
  241. package/dist/cjs-dev/components/index.cjs +435 -226
  242. package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +138 -162
  243. package/dist/cjs-dev/components/inline-notification/index.cjs +5 -4
  244. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +191 -235
  245. package/dist/cjs-dev/components/input-group/index.cjs +5 -4
  246. package/dist/cjs-dev/components/link/daikin-link.cjs +122 -132
  247. package/dist/cjs-dev/components/link/index.cjs +5 -4
  248. package/dist/cjs-dev/components/list/daikin-list.cjs +84 -101
  249. package/dist/cjs-dev/components/list/index.cjs +5 -4
  250. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +179 -196
  251. package/dist/cjs-dev/components/list-item/index.cjs +5 -4
  252. package/dist/cjs-dev/components/loading/daikin-loading.cjs +70 -84
  253. package/dist/cjs-dev/components/loading/index.cjs +5 -4
  254. package/dist/cjs-dev/components/logo/daikin-logo.cjs +115 -128
  255. package/dist/cjs-dev/components/logo/index.cjs +5 -4
  256. package/dist/cjs-dev/components/menu/daikin-menu.cjs +258 -322
  257. package/dist/cjs-dev/components/menu/index.cjs +5 -4
  258. package/dist/cjs-dev/components/modal/daikin-modal.cjs +107 -130
  259. package/dist/cjs-dev/components/modal/index.cjs +5 -4
  260. package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +26 -29
  261. package/dist/cjs-dev/components/modal-footer/index.cjs +5 -4
  262. package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +70 -75
  263. package/dist/cjs-dev/components/modal-header/index.cjs +5 -4
  264. package/dist/cjs-dev/components/navigation/daikin-navigation.cjs +50 -54
  265. package/dist/cjs-dev/components/navigation/index.cjs +5 -4
  266. package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.cjs +165 -188
  267. package/dist/cjs-dev/components/navigation-item/index.cjs +5 -4
  268. package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +191 -221
  269. package/dist/cjs-dev/components/pagination/index.cjs +5 -4
  270. package/dist/cjs-dev/components/pagination/pagination-utils.cjs +76 -41
  271. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +145 -184
  272. package/dist/cjs-dev/components/progress-bar/index.cjs +5 -4
  273. package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +55 -62
  274. package/dist/cjs-dev/components/progress-indicator/index.cjs +5 -4
  275. package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +55 -70
  276. package/dist/cjs-dev/components/progress-indicator-item/index.cjs +5 -4
  277. package/dist/cjs-dev/components/radio/daikin-radio.cjs +273 -285
  278. package/dist/cjs-dev/components/radio/index.cjs +5 -4
  279. package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +149 -171
  280. package/dist/cjs-dev/components/radio-group/index.cjs +5 -4
  281. package/dist/cjs-dev/components/select/daikin-select.cjs +231 -264
  282. package/dist/cjs-dev/components/select/index.cjs +5 -4
  283. package/dist/cjs-dev/components/slider/daikin-slider.cjs +250 -301
  284. package/dist/cjs-dev/components/slider/index.cjs +5 -4
  285. package/dist/cjs-dev/components/slider/slider-utils.cjs +61 -45
  286. package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +115 -113
  287. package/dist/cjs-dev/components/status-message/index.cjs +5 -4
  288. package/dist/cjs-dev/components/tab/daikin-tab.cjs +112 -132
  289. package/dist/cjs-dev/components/tab/index.cjs +5 -4
  290. package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +44 -59
  291. package/dist/cjs-dev/components/tab-panels/index.cjs +5 -4
  292. package/dist/cjs-dev/components/table/daikin-table.cjs +271 -330
  293. package/dist/cjs-dev/components/table/index.cjs +5 -4
  294. package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +55 -69
  295. package/dist/cjs-dev/components/table-cell/index.cjs +5 -4
  296. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +129 -139
  297. package/dist/cjs-dev/components/table-header-cell/index.cjs +5 -4
  298. package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +184 -229
  299. package/dist/cjs-dev/components/tabs/index.cjs +5 -4
  300. package/dist/cjs-dev/components/tag/daikin-tag.cjs +148 -152
  301. package/dist/cjs-dev/components/tag/index.cjs +5 -4
  302. package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +161 -175
  303. package/dist/cjs-dev/components/text-area/index.cjs +5 -4
  304. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +378 -428
  305. package/dist/cjs-dev/components/text-field/index.cjs +5 -4
  306. package/dist/cjs-dev/components/text-field/number-utils.cjs +78 -93
  307. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +292 -308
  308. package/dist/cjs-dev/components/text-masked-field/index.cjs +5 -4
  309. package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +697 -764
  310. package/dist/cjs-dev/components/time-picker/index.cjs +15 -14
  311. package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +143 -170
  312. package/dist/cjs-dev/components/toast-notification/index.cjs +5 -4
  313. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +173 -195
  314. package/dist/cjs-dev/components/toast-notification-manager/index.cjs +5 -4
  315. package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +169 -178
  316. package/dist/cjs-dev/components/toggle/index.cjs +5 -4
  317. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +165 -202
  318. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +2 -2
  319. package/dist/cjs-dev/components/tooltip/index.cjs +5 -4
  320. package/dist/cjs-dev/components/tree/common.cjs +74 -70
  321. package/dist/cjs-dev/components/tree/daikin-tree.cjs +89 -103
  322. package/dist/cjs-dev/components/tree/index.cjs +5 -4
  323. package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +178 -198
  324. package/dist/cjs-dev/components/tree-item/index.cjs +6 -5
  325. package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +169 -215
  326. package/dist/cjs-dev/components/tree-section/index.cjs +5 -4
  327. package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.cjs +88 -116
  328. package/dist/cjs-dev/components/vertical-navigation/index.cjs +5 -4
  329. package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +463 -482
  330. package/dist/cjs-dev/components/vertical-navigation-item/index.cjs +5 -4
  331. package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +196 -214
  332. package/dist/cjs-dev/components/vertical-navigation-menu-item/index.cjs +5 -4
  333. package/dist/cjs-dev/controllers/block-scroll.cjs +75 -41
  334. package/dist/cjs-dev/controllers/click-outside.cjs +62 -30
  335. package/dist/cjs-dev/controllers/custom-readonly.cjs +52 -58
  336. package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +78 -105
  337. package/dist/cjs-dev/controllers/focus-trap.cjs +39 -57
  338. package/dist/cjs-dev/controllers/helpers/controller-directive.cjs +46 -45
  339. package/dist/cjs-dev/icon-registry.cjs +147 -161
  340. package/dist/cjs-dev/index.cjs +374 -234
  341. package/dist/cjs-dev/is-client.cjs +3 -4
  342. package/dist/cjs-dev/navigation.cjs +66 -47
  343. package/dist/cjs-dev/tailwind.css.cjs +4 -6
  344. package/dist/cjs-dev/utils/calendar-common.cjs +156 -117
  345. package/dist/cjs-dev/utils/extract-half-width-digits.cjs +17 -8
  346. package/dist/cjs-dev/utils/is-similar-to-click.cjs +3 -3
  347. package/dist/cjs-dev/utils/is-simple-key.cjs +9 -3
  348. package/dist/cjs-dev/utils/notification-common.cjs +17 -30
  349. package/dist/cjs-dev/utils/re-dispatch.cjs +6 -8
  350. package/dist/cjs-dev/utils/scroller.cjs +44 -57
  351. package/dist/es/_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.js +9 -0
  352. package/dist/es/base/dds-element.js +100 -86
  353. package/dist/es/base/dds-form-element.js +122 -144
  354. package/dist/es/base/dds-property.d.ts +1 -1
  355. package/dist/es/base/dds-property.js +48 -8
  356. package/dist/es/base/decorators.js +8 -11
  357. package/dist/es/base/define.js +12 -17
  358. package/dist/es/base/index.js +3 -11
  359. package/dist/es/components/accordion/daikin-accordion.js +69 -89
  360. package/dist/es/components/accordion/index.js +1 -3
  361. package/dist/es/components/accordion-item/daikin-accordion-item.js +138 -168
  362. package/dist/es/components/accordion-item/index.js +1 -3
  363. package/dist/es/components/avatar/daikin-avatar.js +136 -156
  364. package/dist/es/components/avatar/index.js +1 -3
  365. package/dist/es/components/badge/daikin-badge.js +173 -198
  366. package/dist/es/components/badge/index.js +1 -3
  367. package/dist/es/components/breadcrumb/daikin-breadcrumb.js +73 -87
  368. package/dist/es/components/breadcrumb/index.js +1 -3
  369. package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +106 -119
  370. package/dist/es/components/breadcrumb-item/index.js +1 -3
  371. package/dist/es/components/button/daikin-button.js +255 -286
  372. package/dist/es/components/button/index.js +1 -3
  373. package/dist/es/components/calendar/daikin-calendar.js +407 -520
  374. package/dist/es/components/calendar/index.js +1 -3
  375. package/dist/es/components/card/daikin-card.js +44 -58
  376. package/dist/es/components/card/index.js +1 -3
  377. package/dist/es/components/card-footer/daikin-card-footer.js +16 -25
  378. package/dist/es/components/card-footer/index.js +1 -3
  379. package/dist/es/components/card-header/daikin-card-header.js +39 -48
  380. package/dist/es/components/card-header/index.js +1 -3
  381. package/dist/es/components/carousel/daikin-carousel.js +121 -163
  382. package/dist/es/components/carousel/index.js +1 -3
  383. package/dist/es/components/carousel-item/daikin-carousel-item.js +44 -58
  384. package/dist/es/components/carousel-item/index.js +1 -3
  385. package/dist/es/components/checkbox/daikin-checkbox.js +315 -333
  386. package/dist/es/components/checkbox/index.js +1 -3
  387. package/dist/es/components/checkbox-group/daikin-checkbox-group.js +86 -106
  388. package/dist/es/components/checkbox-group/index.js +1 -3
  389. package/dist/es/components/chip/daikin-chip.js +304 -332
  390. package/dist/es/components/chip/index.js +1 -3
  391. package/dist/es/components/combobox/daikin-combobox.js +454 -584
  392. package/dist/es/components/combobox/index.js +1 -4
  393. package/dist/es/components/date-picker/daikin-date-picker.js +787 -826
  394. package/dist/es/components/date-picker/index.js +1 -3
  395. package/dist/es/components/divider/daikin-divider.js +25 -34
  396. package/dist/es/components/divider/index.js +1 -3
  397. package/dist/es/components/drawer/daikin-drawer.js +189 -208
  398. package/dist/es/components/drawer/index.js +1 -3
  399. package/dist/es/components/drawer-footer/daikin-drawer-footer.js +18 -27
  400. package/dist/es/components/drawer-footer/index.js +1 -3
  401. package/dist/es/components/drawer-header/daikin-drawer-header.js +53 -64
  402. package/dist/es/components/drawer-header/index.js +1 -3
  403. package/dist/es/components/dropdown/daikin-dropdown.js +468 -570
  404. package/dist/es/components/dropdown/index.js +1 -3
  405. package/dist/es/components/dropdown-item/daikin-dropdown-item.js +124 -150
  406. package/dist/es/components/dropdown-item/index.js +1 -3
  407. package/dist/es/components/empty-state/daikin-empty-state.js +21 -30
  408. package/dist/es/components/empty-state/index.js +1 -3
  409. package/dist/es/components/icon/daikin-icon.js +150 -177
  410. package/dist/es/components/icon/icons.json.js +97 -7
  411. package/dist/es/components/icon/index.js +1 -4
  412. package/dist/es/components/icon-button/daikin-icon-button.js +242 -267
  413. package/dist/es/components/icon-button/index.js +1 -3
  414. package/dist/es/components/index.js +85 -99
  415. package/dist/es/components/inline-notification/daikin-inline-notification.js +130 -160
  416. package/dist/es/components/inline-notification/index.js +1 -3
  417. package/dist/es/components/input-group/daikin-input-group.js +184 -234
  418. package/dist/es/components/input-group/index.js +1 -3
  419. package/dist/es/components/link/daikin-link.js +111 -127
  420. package/dist/es/components/link/index.js +1 -3
  421. package/dist/es/components/list/daikin-list.js +77 -100
  422. package/dist/es/components/list/index.js +1 -3
  423. package/dist/es/components/list-item/daikin-list-item.js +168 -192
  424. package/dist/es/components/list-item/index.js +1 -3
  425. package/dist/es/components/loading/daikin-loading.js +62 -82
  426. package/dist/es/components/loading/index.js +1 -3
  427. package/dist/es/components/logo/daikin-logo.js +106 -125
  428. package/dist/es/components/logo/index.js +1 -3
  429. package/dist/es/components/menu/daikin-menu.js +246 -316
  430. package/dist/es/components/menu/index.js +1 -3
  431. package/dist/es/components/modal/daikin-modal.js +97 -126
  432. package/dist/es/components/modal/index.js +1 -3
  433. package/dist/es/components/modal-footer/daikin-modal-footer.js +18 -27
  434. package/dist/es/components/modal-footer/index.js +1 -3
  435. package/dist/es/components/modal-header/daikin-modal-header.js +61 -72
  436. package/dist/es/components/modal-header/index.js +1 -3
  437. package/dist/es/components/navigation/daikin-navigation.js +42 -52
  438. package/dist/es/components/navigation/index.js +1 -3
  439. package/dist/es/components/navigation-item/daikin-navigation-item.js +152 -181
  440. package/dist/es/components/navigation-item/index.js +1 -3
  441. package/dist/es/components/pagination/daikin-pagination.js +183 -219
  442. package/dist/es/components/pagination/index.js +1 -3
  443. package/dist/es/components/pagination/pagination-utils.js +77 -44
  444. package/dist/es/components/progress-bar/daikin-progress-bar.js +129 -168
  445. package/dist/es/components/progress-bar/index.js +1 -3
  446. package/dist/es/components/progress-indicator/daikin-progress-indicator.js +47 -60
  447. package/dist/es/components/progress-indicator/index.js +1 -3
  448. package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +48 -69
  449. package/dist/es/components/progress-indicator-item/index.js +1 -3
  450. package/dist/es/components/radio/daikin-radio.js +264 -282
  451. package/dist/es/components/radio/index.js +1 -3
  452. package/dist/es/components/radio-group/daikin-radio-group.js +142 -170
  453. package/dist/es/components/radio-group/index.js +1 -3
  454. package/dist/es/components/select/daikin-select.js +222 -261
  455. package/dist/es/components/select/index.js +1 -3
  456. package/dist/es/components/slider/daikin-slider.js +241 -298
  457. package/dist/es/components/slider/index.js +1 -3
  458. package/dist/es/components/slider/slider-utils.js +62 -49
  459. package/dist/es/components/status-message/daikin-status-message.js +107 -111
  460. package/dist/es/components/status-message/index.js +1 -3
  461. package/dist/es/components/tab/daikin-tab.js +105 -130
  462. package/dist/es/components/tab/index.js +1 -3
  463. package/dist/es/components/tab-panels/daikin-tab-panels.js +35 -50
  464. package/dist/es/components/tab-panels/index.js +1 -3
  465. package/dist/es/components/table/daikin-table.js +255 -314
  466. package/dist/es/components/table/index.js +1 -3
  467. package/dist/es/components/table-cell/daikin-table-cell.js +49 -68
  468. package/dist/es/components/table-cell/index.js +1 -3
  469. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +121 -137
  470. package/dist/es/components/table-header-cell/index.js +1 -3
  471. package/dist/es/components/tabs/daikin-tabs.js +170 -217
  472. package/dist/es/components/tabs/index.js +1 -3
  473. package/dist/es/components/tag/daikin-tag.js +140 -150
  474. package/dist/es/components/tag/index.js +1 -3
  475. package/dist/es/components/text-area/daikin-text-area.js +153 -173
  476. package/dist/es/components/text-area/index.js +1 -3
  477. package/dist/es/components/text-field/daikin-text-field.js +361 -417
  478. package/dist/es/components/text-field/index.js +1 -3
  479. package/dist/es/components/text-field/number-utils.js +75 -90
  480. package/dist/es/components/text-masked-field/daikin-text-masked-field.js +279 -303
  481. package/dist/es/components/text-masked-field/index.js +1 -3
  482. package/dist/es/components/time-picker/daikin-time-picker.js +677 -756
  483. package/dist/es/components/time-picker/index.js +1 -13
  484. package/dist/es/components/toast-notification/daikin-toast-notification.js +134 -167
  485. package/dist/es/components/toast-notification/index.js +1 -3
  486. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +165 -193
  487. package/dist/es/components/toast-notification-manager/index.js +1 -3
  488. package/dist/es/components/toggle/daikin-toggle.js +160 -175
  489. package/dist/es/components/toggle/index.js +1 -3
  490. package/dist/es/components/tooltip/daikin-tooltip.d.ts +2 -2
  491. package/dist/es/components/tooltip/daikin-tooltip.js +156 -199
  492. package/dist/es/components/tooltip/index.js +1 -3
  493. package/dist/es/components/tree/common.js +75 -76
  494. package/dist/es/components/tree/daikin-tree.js +81 -101
  495. package/dist/es/components/tree/index.js +1 -3
  496. package/dist/es/components/tree-item/daikin-tree-item.js +166 -193
  497. package/dist/es/components/tree-item/index.js +1 -4
  498. package/dist/es/components/tree-section/daikin-tree-section.js +157 -209
  499. package/dist/es/components/tree-section/index.js +1 -3
  500. package/dist/es/components/vertical-navigation/daikin-vertical-navigation.js +76 -102
  501. package/dist/es/components/vertical-navigation/index.js +1 -3
  502. package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.js +443 -468
  503. package/dist/es/components/vertical-navigation-item/index.js +1 -3
  504. package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +185 -209
  505. package/dist/es/components/vertical-navigation-menu-item/index.js +1 -3
  506. package/dist/es/controllers/block-scroll.js +74 -41
  507. package/dist/es/controllers/click-outside.js +61 -29
  508. package/dist/es/controllers/custom-readonly.js +52 -58
  509. package/dist/es/controllers/floating-ui-auto-update.js +74 -96
  510. package/dist/es/controllers/focus-trap.js +37 -55
  511. package/dist/es/controllers/helpers/controller-directive.js +46 -45
  512. package/dist/es/icon-registry.js +148 -163
  513. package/dist/es/index.js +17 -106
  514. package/dist/es/is-client.js +4 -4
  515. package/dist/es/navigation.js +67 -51
  516. package/dist/es/tailwind.css.js +4 -6
  517. package/dist/es/utils/calendar-common.js +156 -134
  518. package/dist/es/utils/extract-half-width-digits.js +18 -9
  519. package/dist/es/utils/is-similar-to-click.js +4 -4
  520. package/dist/es/utils/is-simple-key.js +10 -4
  521. package/dist/es/utils/notification-common.js +14 -28
  522. package/dist/es/utils/re-dispatch.js +7 -9
  523. package/dist/es/utils/scroller.js +45 -61
  524. package/dist/es-dev/_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.js +9 -0
  525. package/dist/es-dev/base/dds-element.js +101 -96
  526. package/dist/es-dev/base/dds-form-element.js +122 -144
  527. package/dist/es-dev/base/dds-property.d.ts +1 -1
  528. package/dist/es-dev/base/dds-property.js +48 -8
  529. package/dist/es-dev/base/decorators.js +8 -11
  530. package/dist/es-dev/base/define.js +12 -17
  531. package/dist/es-dev/base/index.js +3 -11
  532. package/dist/es-dev/components/accordion/daikin-accordion.js +70 -96
  533. package/dist/es-dev/components/accordion/index.js +1 -3
  534. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +138 -168
  535. package/dist/es-dev/components/accordion-item/index.js +1 -3
  536. package/dist/es-dev/components/avatar/daikin-avatar.js +136 -156
  537. package/dist/es-dev/components/avatar/index.js +1 -3
  538. package/dist/es-dev/components/badge/daikin-badge.js +173 -198
  539. package/dist/es-dev/components/badge/index.js +1 -3
  540. package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +73 -87
  541. package/dist/es-dev/components/breadcrumb/index.js +1 -3
  542. package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +106 -119
  543. package/dist/es-dev/components/breadcrumb-item/index.js +1 -3
  544. package/dist/es-dev/components/button/daikin-button.js +255 -286
  545. package/dist/es-dev/components/button/index.js +1 -3
  546. package/dist/es-dev/components/calendar/daikin-calendar.js +415 -531
  547. package/dist/es-dev/components/calendar/index.js +1 -3
  548. package/dist/es-dev/components/card/daikin-card.js +44 -58
  549. package/dist/es-dev/components/card/index.js +1 -3
  550. package/dist/es-dev/components/card-footer/daikin-card-footer.js +16 -25
  551. package/dist/es-dev/components/card-footer/index.js +1 -3
  552. package/dist/es-dev/components/card-header/daikin-card-header.js +39 -48
  553. package/dist/es-dev/components/card-header/index.js +1 -3
  554. package/dist/es-dev/components/carousel/daikin-carousel.js +127 -173
  555. package/dist/es-dev/components/carousel/index.js +1 -3
  556. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +44 -58
  557. package/dist/es-dev/components/carousel-item/index.js +1 -3
  558. package/dist/es-dev/components/checkbox/daikin-checkbox.js +315 -333
  559. package/dist/es-dev/components/checkbox/index.js +1 -3
  560. package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +86 -106
  561. package/dist/es-dev/components/checkbox-group/index.js +1 -3
  562. package/dist/es-dev/components/chip/daikin-chip.js +304 -332
  563. package/dist/es-dev/components/chip/index.js +1 -3
  564. package/dist/es-dev/components/combobox/daikin-combobox.js +454 -584
  565. package/dist/es-dev/components/combobox/index.js +1 -4
  566. package/dist/es-dev/components/date-picker/daikin-date-picker.js +795 -837
  567. package/dist/es-dev/components/date-picker/index.js +1 -3
  568. package/dist/es-dev/components/divider/daikin-divider.js +25 -34
  569. package/dist/es-dev/components/divider/index.js +1 -3
  570. package/dist/es-dev/components/drawer/daikin-drawer.js +189 -208
  571. package/dist/es-dev/components/drawer/index.js +1 -3
  572. package/dist/es-dev/components/drawer-footer/daikin-drawer-footer.js +18 -27
  573. package/dist/es-dev/components/drawer-footer/index.js +1 -3
  574. package/dist/es-dev/components/drawer-header/daikin-drawer-header.js +53 -64
  575. package/dist/es-dev/components/drawer-header/index.js +1 -3
  576. package/dist/es-dev/components/dropdown/daikin-dropdown.js +468 -570
  577. package/dist/es-dev/components/dropdown/index.js +1 -3
  578. package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +124 -150
  579. package/dist/es-dev/components/dropdown-item/index.js +1 -3
  580. package/dist/es-dev/components/empty-state/daikin-empty-state.js +21 -30
  581. package/dist/es-dev/components/empty-state/index.js +1 -3
  582. package/dist/es-dev/components/icon/daikin-icon.js +158 -206
  583. package/dist/es-dev/components/icon/icons.json.js +97 -7
  584. package/dist/es-dev/components/icon/index.js +1 -4
  585. package/dist/es-dev/components/icon-button/daikin-icon-button.js +242 -267
  586. package/dist/es-dev/components/icon-button/index.js +1 -3
  587. package/dist/es-dev/components/index.js +85 -99
  588. package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +130 -160
  589. package/dist/es-dev/components/inline-notification/index.js +1 -3
  590. package/dist/es-dev/components/input-group/daikin-input-group.js +184 -234
  591. package/dist/es-dev/components/input-group/index.js +1 -3
  592. package/dist/es-dev/components/link/daikin-link.js +111 -127
  593. package/dist/es-dev/components/link/index.js +1 -3
  594. package/dist/es-dev/components/list/daikin-list.js +77 -100
  595. package/dist/es-dev/components/list/index.js +1 -3
  596. package/dist/es-dev/components/list-item/daikin-list-item.js +168 -192
  597. package/dist/es-dev/components/list-item/index.js +1 -3
  598. package/dist/es-dev/components/loading/daikin-loading.js +62 -82
  599. package/dist/es-dev/components/loading/index.js +1 -3
  600. package/dist/es-dev/components/logo/daikin-logo.js +106 -125
  601. package/dist/es-dev/components/logo/index.js +1 -3
  602. package/dist/es-dev/components/menu/daikin-menu.js +246 -316
  603. package/dist/es-dev/components/menu/index.js +1 -3
  604. package/dist/es-dev/components/modal/daikin-modal.js +97 -126
  605. package/dist/es-dev/components/modal/index.js +1 -3
  606. package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +18 -27
  607. package/dist/es-dev/components/modal-footer/index.js +1 -3
  608. package/dist/es-dev/components/modal-header/daikin-modal-header.js +61 -72
  609. package/dist/es-dev/components/modal-header/index.js +1 -3
  610. package/dist/es-dev/components/navigation/daikin-navigation.js +42 -52
  611. package/dist/es-dev/components/navigation/index.js +1 -3
  612. package/dist/es-dev/components/navigation-item/daikin-navigation-item.js +152 -181
  613. package/dist/es-dev/components/navigation-item/index.js +1 -3
  614. package/dist/es-dev/components/pagination/daikin-pagination.js +183 -219
  615. package/dist/es-dev/components/pagination/index.js +1 -3
  616. package/dist/es-dev/components/pagination/pagination-utils.js +77 -44
  617. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +138 -183
  618. package/dist/es-dev/components/progress-bar/index.js +1 -3
  619. package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +47 -60
  620. package/dist/es-dev/components/progress-indicator/index.js +1 -3
  621. package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +48 -69
  622. package/dist/es-dev/components/progress-indicator-item/index.js +1 -3
  623. package/dist/es-dev/components/radio/daikin-radio.js +264 -282
  624. package/dist/es-dev/components/radio/index.js +1 -3
  625. package/dist/es-dev/components/radio-group/daikin-radio-group.js +142 -170
  626. package/dist/es-dev/components/radio-group/index.js +1 -3
  627. package/dist/es-dev/components/select/daikin-select.js +222 -261
  628. package/dist/es-dev/components/select/index.js +1 -3
  629. package/dist/es-dev/components/slider/daikin-slider.js +241 -298
  630. package/dist/es-dev/components/slider/index.js +1 -3
  631. package/dist/es-dev/components/slider/slider-utils.js +62 -49
  632. package/dist/es-dev/components/status-message/daikin-status-message.js +107 -111
  633. package/dist/es-dev/components/status-message/index.js +1 -3
  634. package/dist/es-dev/components/tab/daikin-tab.js +105 -130
  635. package/dist/es-dev/components/tab/index.js +1 -3
  636. package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +36 -57
  637. package/dist/es-dev/components/tab-panels/index.js +1 -3
  638. package/dist/es-dev/components/table/daikin-table.js +261 -326
  639. package/dist/es-dev/components/table/index.js +1 -3
  640. package/dist/es-dev/components/table-cell/daikin-table-cell.js +49 -68
  641. package/dist/es-dev/components/table-cell/index.js +1 -3
  642. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +121 -137
  643. package/dist/es-dev/components/table-header-cell/index.js +1 -3
  644. package/dist/es-dev/components/tabs/daikin-tabs.js +176 -227
  645. package/dist/es-dev/components/tabs/index.js +1 -3
  646. package/dist/es-dev/components/tag/daikin-tag.js +140 -150
  647. package/dist/es-dev/components/tag/index.js +1 -3
  648. package/dist/es-dev/components/text-area/daikin-text-area.js +153 -173
  649. package/dist/es-dev/components/text-area/index.js +1 -3
  650. package/dist/es-dev/components/text-field/daikin-text-field.js +361 -417
  651. package/dist/es-dev/components/text-field/index.js +1 -3
  652. package/dist/es-dev/components/text-field/number-utils.js +76 -93
  653. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +279 -303
  654. package/dist/es-dev/components/text-masked-field/index.js +1 -3
  655. package/dist/es-dev/components/time-picker/daikin-time-picker.js +685 -768
  656. package/dist/es-dev/components/time-picker/index.js +1 -13
  657. package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +134 -167
  658. package/dist/es-dev/components/toast-notification/index.js +1 -3
  659. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +165 -193
  660. package/dist/es-dev/components/toast-notification-manager/index.js +1 -3
  661. package/dist/es-dev/components/toggle/daikin-toggle.js +160 -175
  662. package/dist/es-dev/components/toggle/index.js +1 -3
  663. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +2 -2
  664. package/dist/es-dev/components/tooltip/daikin-tooltip.js +156 -199
  665. package/dist/es-dev/components/tooltip/index.js +1 -3
  666. package/dist/es-dev/components/tree/common.js +75 -76
  667. package/dist/es-dev/components/tree/daikin-tree.js +81 -101
  668. package/dist/es-dev/components/tree/index.js +1 -3
  669. package/dist/es-dev/components/tree-item/daikin-tree-item.js +166 -193
  670. package/dist/es-dev/components/tree-item/index.js +1 -4
  671. package/dist/es-dev/components/tree-section/daikin-tree-section.js +157 -209
  672. package/dist/es-dev/components/tree-section/index.js +1 -3
  673. package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.js +80 -114
  674. package/dist/es-dev/components/vertical-navigation/index.js +1 -3
  675. package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.js +443 -468
  676. package/dist/es-dev/components/vertical-navigation-item/index.js +1 -3
  677. package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +185 -209
  678. package/dist/es-dev/components/vertical-navigation-menu-item/index.js +1 -3
  679. package/dist/es-dev/controllers/block-scroll.js +74 -41
  680. package/dist/es-dev/controllers/click-outside.js +61 -29
  681. package/dist/es-dev/controllers/custom-readonly.js +52 -58
  682. package/dist/es-dev/controllers/floating-ui-auto-update.js +76 -103
  683. package/dist/es-dev/controllers/focus-trap.js +37 -55
  684. package/dist/es-dev/controllers/helpers/controller-directive.js +46 -45
  685. package/dist/es-dev/icon-registry.js +148 -163
  686. package/dist/es-dev/index.js +17 -106
  687. package/dist/es-dev/is-client.js +4 -4
  688. package/dist/es-dev/navigation.js +67 -51
  689. package/dist/es-dev/tailwind.css.js +4 -6
  690. package/dist/es-dev/utils/calendar-common.js +156 -134
  691. package/dist/es-dev/utils/extract-half-width-digits.js +18 -9
  692. package/dist/es-dev/utils/is-similar-to-click.js +4 -4
  693. package/dist/es-dev/utils/is-simple-key.js +10 -4
  694. package/dist/es-dev/utils/notification-common.js +17 -31
  695. package/dist/es-dev/utils/re-dispatch.js +7 -9
  696. package/dist/es-dev/utils/scroller.js +45 -61
  697. package/package.json +80 -78
@@ -1,728 +1,742 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const dom = require("@floating-ui/dom");
4
- const classVarianceAuthority = require("class-variance-authority");
5
- const lit = require("lit");
6
- const decorators_js = require("lit/decorators.js");
7
- const guard_js = require("lit/directives/guard.js");
8
- const ifDefined_js = require("lit/directives/if-defined.js");
9
- const ref_js = require("lit/directives/ref.js");
10
- require("../../base/dds-element.cjs");
11
- const ddsFormElement = require("../../base/dds-form-element.cjs");
12
- const ddsProperty = require("../../base/dds-property.cjs");
13
- const decorators = require("../../base/decorators.cjs");
14
- require("../../base/define.cjs");
15
- const floatingUiAutoUpdate = require("../../controllers/floating-ui-auto-update.cjs");
16
- const focusTrap = require("../../controllers/focus-trap.cjs");
17
- const tailwind = require("../../tailwind.css.cjs");
18
- const calendarCommon = require("../../utils/calendar-common.cjs");
19
- const extractHalfWidthDigits = require("../../utils/extract-half-width-digits.cjs");
20
- const reDispatch = require("../../utils/re-dispatch.cjs");
21
- require("../calendar/daikin-calendar.cjs");
1
+ const require_dds_property = require("../../base/dds-property.cjs");
2
+ const require_decorate = require("../../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.cjs");
3
+ const require_dds_form_element = require("../../base/dds-form-element.cjs");
4
+ const require_decorators = require("../../base/decorators.cjs");
5
+ require("../../base/index.cjs");
6
+ const require_tailwind = require("../../tailwind.css.cjs");
7
+ const require_calendar_common = require("../../utils/calendar-common.cjs");
22
8
  require("../icon-button/daikin-icon-button.cjs");
23
- var __defProp = Object.defineProperty;
24
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
25
- var __decorateClass = (decorators2, target, key, kind) => {
26
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
27
- for (var i = decorators2.length - 1, decorator; i >= 0; i--)
28
- if (decorator = decorators2[i])
29
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
30
- if (kind && result) __defProp(target, key, result);
31
- return result;
32
- };
33
- const dateTimeFormatPartsCache = /* @__PURE__ */ new Map();
9
+ require("../calendar/daikin-calendar.cjs");
10
+ const require_floating_ui_auto_update = require("../../controllers/floating-ui-auto-update.cjs");
11
+ const require_focus_trap = require("../../controllers/focus-trap.cjs");
12
+ const require_extract_half_width_digits = require("../../utils/extract-half-width-digits.cjs");
13
+ const require_re_dispatch = require("../../utils/re-dispatch.cjs");
14
+ let lit = require("lit");
15
+ let lit_decorators_js = require("lit/decorators.js");
16
+ let class_variance_authority = require("class-variance-authority");
17
+ let lit_directives_ref_js = require("lit/directives/ref.js");
18
+ let lit_directives_if_defined_js = require("lit/directives/if-defined.js");
19
+ let _floating_ui_dom = require("@floating-ui/dom");
20
+ let lit_directives_guard_js = require("lit/directives/guard.js");
21
+ //#region src/components/date-picker/daikin-date-picker.ts
22
+ var dateTimeFormatPartsCache = /* @__PURE__ */ new Map();
23
+ /**
24
+ * Gets the date format parts for the given inputLocale, using cache to optimize performance. If the inputLocale is invalid, it falls back to the default locale and caches the result under the requested key to avoid throwing errors on subsequent calls with the same invalid inputLocale.
25
+ */
34
26
  function getSafeDateTimeFormatParts(inputLocale) {
35
- const options = {
36
- year: "numeric",
37
- month: "numeric",
38
- day: "numeric"
39
- };
40
- const key = inputLocale ?? "__DEFAULT__";
41
- const cached = dateTimeFormatPartsCache.get(key);
42
- if (cached) return cached;
43
- try {
44
- const parts = new Intl.DateTimeFormat(
45
- inputLocale ?? void 0,
46
- options
47
- ).formatToParts(0);
48
- dateTimeFormatPartsCache.set(key, parts);
49
- return parts;
50
- } catch {
51
- const parts = new Intl.DateTimeFormat(void 0, options).formatToParts(0);
52
- dateTimeFormatPartsCache.set(key, parts);
53
- return parts;
54
- }
27
+ const options = {
28
+ year: "numeric",
29
+ month: "numeric",
30
+ day: "numeric"
31
+ };
32
+ const key = inputLocale ?? "__DEFAULT__";
33
+ const cached = dateTimeFormatPartsCache.get(key);
34
+ if (cached) return cached;
35
+ try {
36
+ const parts = new Intl.DateTimeFormat(inputLocale ?? void 0, options).formatToParts(0);
37
+ dateTimeFormatPartsCache.set(key, parts);
38
+ return parts;
39
+ } catch {
40
+ const parts = new Intl.DateTimeFormat(void 0, options).formatToParts(0);
41
+ dateTimeFormatPartsCache.set(key, parts);
42
+ return parts;
43
+ }
55
44
  }
45
+ /**
46
+ * Build date item metadata (type + selection ranges) based on the current inputLocale's
47
+ * date order (e.g. MDY, DMY, YMD) and the separator used by Intl.
48
+ */
56
49
  function getDateOrderAndSeparator(inputLocale) {
57
- const parts = getSafeDateTimeFormatParts(inputLocale ?? void 0);
58
- const order = parts.filter(
59
- (p) => ["year", "month", "day"].includes(p.type)
60
- ).map((p) => p.type);
61
- const literals = parts.filter((p) => p.type === "literal");
62
- const sep = literals.length >= 2 && literals[0].value === literals[1].value ? literals[0].value : "/";
63
- const requiredParts = ["year", "month", "day"];
64
- const isValidOrder = order.length === 3 && requiredParts.every((part) => order.includes(part));
65
- const isValidSep = sep.length > 0 && /^\D+$/.test(sep);
66
- if (!isValidOrder || !isValidSep) {
67
- return {
68
- order: ["month", "day", "year"],
69
- sep: "/"
70
- };
71
- }
72
- return { order, sep };
50
+ const parts = getSafeDateTimeFormatParts(inputLocale ?? void 0);
51
+ const order = parts.filter((p) => [
52
+ "year",
53
+ "month",
54
+ "day"
55
+ ].includes(p.type)).map((p) => p.type);
56
+ const literals = parts.filter((p) => p.type === "literal");
57
+ const sep = literals.length >= 2 && literals[0].value === literals[1].value ? literals[0].value : "/";
58
+ const isValidOrder = order.length === 3 && [
59
+ "year",
60
+ "month",
61
+ "day"
62
+ ].every((part) => order.includes(part));
63
+ const isValidSep = sep.length > 0 && /^\D+$/.test(sep);
64
+ if (!isValidOrder || !isValidSep) return {
65
+ order: [
66
+ "month",
67
+ "day",
68
+ "year"
69
+ ],
70
+ sep: "/"
71
+ };
72
+ return {
73
+ order,
74
+ sep
75
+ };
73
76
  }
77
+ /**
78
+ * The year, month, and day that make up the date string in the input field, and the
79
+ * range (inclusive) that each item is included in, arranged in the order of the items.
80
+ *
81
+ * The order of the elements must be ascending in the range.
82
+ */
74
83
  function getDateItems(inputLocale) {
75
- const { order, sep } = getDateOrderAndSeparator(inputLocale);
76
- const lengths = { year: 4, month: 2, day: 2 };
77
- const items = order.map((key, i) => {
78
- const type = key;
79
- const len = lengths[type];
80
- const start = order.slice(0, i).reduce((sum, k) => sum + lengths[k], 0) + i * sep.length;
81
- const end = start + len;
82
- return { type, range: [start, end] };
83
- });
84
- return items;
84
+ const { order, sep } = getDateOrderAndSeparator(inputLocale);
85
+ const lengths = {
86
+ year: 4,
87
+ month: 2,
88
+ day: 2
89
+ };
90
+ return order.map((key, i) => {
91
+ const type = key;
92
+ const len = lengths[type];
93
+ const start = order.slice(0, i).reduce((sum, k) => sum + lengths[k], 0) + i * sep.length;
94
+ return {
95
+ type,
96
+ range: [start, start + len]
97
+ };
98
+ });
85
99
  }
86
- const PLACEHOLDER_YEAR = "YYYY";
87
- const PLACEHOLDER_MONTH = "MM";
88
- const PLACEHOLDER_DAY = "DD";
89
- const cvaField = classVarianceAuthority.cva(
90
- [
91
- "flex",
92
- "items-center",
93
- "size-full",
94
- "min-h-(--dds-input-height)",
95
- "bg-ddt-color-common-background-default",
96
- "pl-[calc(var(--dds-padding-30)+0.25rem)]",
97
- "pr-[calc((var(--dds-gap-10))+var(--dds-icon-button)+0.5rem)]",
98
- "rounded-sm",
99
- "truncate",
100
- "outline-solid",
101
- "outline-(--color-border)",
102
- "outline-0",
103
- "-outline-offset-2",
104
- "placeholder:text-ddt-color-common-text-secondary",
105
- // Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
106
- // `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
107
- "[--color-border:var(--color-state-focus,var(--color-base))]",
108
- "border",
109
- "border-(--color-border)",
110
- // Update `--color-base` depending on the state.
111
- // The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
112
- "enabled:text-ddt-color-common-text-primary",
113
- "enabled:hover:bg-ddt-color-common-surface-hover",
114
- "enabled:active:bg-ddt-color-common-surface-press",
115
- "focus-visible:outline-2",
116
- "disabled:[--color-base:var(--dds-color-common-disabled)]",
117
- "disabled:text-ddt-color-common-disabled",
118
- "disabled:bg-ddt-color-common-background-default",
119
- "disabled:placeholder:text-ddt-color-common-disabled"
120
- ],
121
- {
122
- variants: {
123
- error: {
124
- false: [
125
- "enabled:[--color-base:var(--dds-color-common-neutral-default)]",
126
- "focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
127
- ],
128
- true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
129
- }
130
- }
131
- }
132
- );
100
+ var PLACEHOLDER_YEAR = "YYYY";
101
+ var PLACEHOLDER_MONTH = "MM";
102
+ var PLACEHOLDER_DAY = "DD";
103
+ var cvaField = (0, class_variance_authority.cva)([
104
+ "flex",
105
+ "items-center",
106
+ "size-full",
107
+ "min-h-(--dds-input-height)",
108
+ "bg-ddt-color-common-background-default",
109
+ "pl-[calc(var(--dds-padding-30)+0.25rem)]",
110
+ "pr-[calc((var(--dds-gap-10))+var(--dds-icon-button)+0.5rem)]",
111
+ "rounded-sm",
112
+ "truncate",
113
+ "outline-solid",
114
+ "outline-(--color-border)",
115
+ "outline-0",
116
+ "-outline-offset-2",
117
+ "placeholder:text-ddt-color-common-text-secondary",
118
+ "[--color-border:var(--color-state-focus,var(--color-base))]",
119
+ "border",
120
+ "border-(--color-border)",
121
+ "enabled:text-ddt-color-common-text-primary",
122
+ "enabled:hover:bg-ddt-color-common-surface-hover",
123
+ "enabled:active:bg-ddt-color-common-surface-press",
124
+ "focus-visible:outline-2",
125
+ "disabled:[--color-base:var(--dds-color-common-disabled)]",
126
+ "disabled:text-ddt-color-common-disabled",
127
+ "disabled:bg-ddt-color-common-background-default",
128
+ "disabled:placeholder:text-ddt-color-common-disabled"
129
+ ], { variants: { error: {
130
+ false: ["enabled:[--color-base:var(--dds-color-common-neutral-default)]", "focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"],
131
+ true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
132
+ } } });
133
+ /**
134
+ * Decomposes the date string displayed on the UI and returns it as an object.
135
+ * The returned object may not necessarily be a valid date. It may contain strings such as YYYY or invalid dates such as 02/31.
136
+ */
133
137
  function parsePartsFromUIValue(value, inputLocale) {
134
- const { order, sep } = getDateOrderAndSeparator(inputLocale);
135
- const parts = value.split(sep);
136
- return Object.fromEntries(
137
- order.map((key, i) => [key, parts[i] ?? ""])
138
- );
138
+ const { order, sep } = getDateOrderAndSeparator(inputLocale);
139
+ const parts = value.split(sep);
140
+ return Object.fromEntries(order.map((key, i) => [key, parts[i] ?? ""]));
139
141
  }
142
+ /**
143
+ * Formats the date parts object into a string format for display in the UI.
144
+ * The object does not necessarily need to be a valid date. It can contain strings such as YYYY or invalid dates such as 02/31.
145
+ */
140
146
  function formatPartsForUI(parts, inputLocale) {
141
- const { order, sep } = getDateOrderAndSeparator(inputLocale);
142
- return order.map((k) => parts[k]).join(sep);
147
+ const { order, sep } = getDateOrderAndSeparator(inputLocale);
148
+ return order.map((k) => parts[k]).join(sep);
143
149
  }
144
150
  function getPlaceholderAll(inputLocale) {
145
- return formatPartsForUI(
146
- { year: PLACEHOLDER_YEAR, month: PLACEHOLDER_MONTH, day: PLACEHOLDER_DAY },
147
- inputLocale
148
- );
151
+ return formatPartsForUI({
152
+ year: PLACEHOLDER_YEAR,
153
+ month: PLACEHOLDER_MONTH,
154
+ day: PLACEHOLDER_DAY
155
+ }, inputLocale);
149
156
  }
157
+ /**
158
+ * Parses the date string on the UI and returns it as a `Date` (in UTC).
159
+ * If the date string on the UI is not a valid date (contains a string such as YYYY or an invalid date such as 02/31), returns null.
160
+ */
150
161
  function tryParseDateFromUIValue(value, inputLocale) {
151
- const { year, month, day } = parsePartsFromUIValue(value, inputLocale);
152
- if (
153
- // Prevent treating incomplete year entries (such as 0202) as valid.
154
- // This also means that dates less than 1000 years ago cannot be handled.
155
- !/^[1-9]\d\d\d$/.test(year) || !/^\d\d$/.test(month) || !/^\d\d$/.test(day)
156
- ) {
157
- return null;
158
- }
159
- const date = calendarCommon.parseDateFromProperty(`${year}-${month}-${day}`);
160
- if (date.getUTCFullYear() !== Number(year) || date.getUTCMonth() + 1 !== Number(month) || date.getUTCDate() !== Number(day)) {
161
- return null;
162
- }
163
- return date;
162
+ const { year, month, day } = parsePartsFromUIValue(value, inputLocale);
163
+ if (!/^[1-9]\d\d\d$/.test(year) || !/^\d\d$/.test(month) || !/^\d\d$/.test(day)) return null;
164
+ const date = require_calendar_common.parseDateFromProperty(`${year}-${month}-${day}`);
165
+ if (date.getUTCFullYear() !== Number(year) || date.getUTCMonth() + 1 !== Number(month) || date.getUTCDate() !== Number(day)) return null;
166
+ return date;
164
167
  }
168
+ /**
169
+ * Formats the UTC `Date` as a date string in the UI.
170
+ */
165
171
  function formatDateForUI(date, inputLocale) {
166
- return formatPartsForUI(
167
- {
168
- year: String(date.getUTCFullYear()).padStart(4, "0"),
169
- month: String(date.getUTCMonth() + 1).padStart(2, "0"),
170
- day: String(date.getUTCDate()).padStart(2, "0")
171
- },
172
- inputLocale
173
- );
172
+ return formatPartsForUI({
173
+ year: String(date.getUTCFullYear()).padStart(4, "0"),
174
+ month: String(date.getUTCMonth() + 1).padStart(2, "0"),
175
+ day: String(date.getUTCDate()).padStart(2, "0")
176
+ }, inputLocale);
174
177
  }
178
+ /**
179
+ * Gets the type of date item (year, month, or day) that matches the selected range.
180
+ * If there are no matching items, returns null.
181
+ */
175
182
  function getDateItemInSelection(selectionStart, selectionEnd, inputLocale) {
176
- for (const { type, range } of getDateItems(inputLocale)) {
177
- if (range[0] <= selectionStart && selectionStart <= range[1] && range[0] <= selectionEnd && selectionEnd <= range[1]) {
178
- return type;
179
- }
180
- }
181
- return null;
183
+ for (const { type, range } of getDateItems(inputLocale)) if (range[0] <= selectionStart && selectionStart <= range[1] && range[0] <= selectionEnd && selectionEnd <= range[1]) return type;
184
+ return null;
182
185
  }
186
+ /**
187
+ * Calculates state updates based on numeric key input.
188
+ * If the year, month, and day should be updated, an object containing `parts` and `done` is returned.
189
+ * `parts` stores the new year, month, and day objects.
190
+ * If the input in the input field is complete and the next item should be moved to, `done` is set to true.
191
+ * In the case of the last item (currently the year), even if done is true, there is no need to move to the next item.
192
+ * If there is no need to update the state, null is returned.
193
+ */
183
194
  function handleDigitInput(parts, item, digit) {
184
- switch (item) {
185
- case "year": {
186
- if (!parts.year.startsWith("0")) {
187
- return {
188
- parts: { ...parts, year: `000${digit}` },
189
- done: false
190
- };
191
- }
192
- const newYear = `${parts.year.slice(1)}${digit}`;
193
- return {
194
- parts: { ...parts, year: newYear },
195
- done: !newYear.startsWith("0")
196
- };
197
- }
198
- case "month":
199
- if (parts.month === "01" && ["0", "1", "2"].includes(digit)) {
200
- return {
201
- parts: { ...parts, month: `1${digit}` },
202
- done: true
203
- };
204
- }
205
- if (digit !== "0") {
206
- return {
207
- parts: { ...parts, month: `0${digit}` },
208
- done: digit !== "1"
209
- };
210
- }
211
- break;
212
- case "day":
213
- if (["01", "02"].includes(parts.day) || parts.day === "03" && ["0", "1"].includes(digit)) {
214
- return {
215
- parts: {
216
- ...parts,
217
- day: `${parts.day.slice(1)}${digit}`
218
- },
219
- done: true
220
- };
221
- }
222
- if (parts.day === "03" && digit === "3" || digit === "0") {
223
- break;
224
- }
225
- return {
226
- parts: { ...parts, day: `0${digit}` },
227
- done: !["1", "2", "3"].includes(digit)
228
- };
229
- }
230
- return null;
195
+ switch (item) {
196
+ case "year": {
197
+ if (!parts.year.startsWith("0")) return {
198
+ parts: {
199
+ ...parts,
200
+ year: `000${digit}`
201
+ },
202
+ done: false
203
+ };
204
+ const newYear = `${parts.year.slice(1)}${digit}`;
205
+ return {
206
+ parts: {
207
+ ...parts,
208
+ year: newYear
209
+ },
210
+ done: !newYear.startsWith("0")
211
+ };
212
+ }
213
+ case "month":
214
+ if (parts.month === "01" && [
215
+ "0",
216
+ "1",
217
+ "2"
218
+ ].includes(digit)) return {
219
+ parts: {
220
+ ...parts,
221
+ month: `1${digit}`
222
+ },
223
+ done: true
224
+ };
225
+ if (digit !== "0") return {
226
+ parts: {
227
+ ...parts,
228
+ month: `0${digit}`
229
+ },
230
+ done: digit !== "1"
231
+ };
232
+ break;
233
+ case "day":
234
+ if (["01", "02"].includes(parts.day) || parts.day === "03" && ["0", "1"].includes(digit)) return {
235
+ parts: {
236
+ ...parts,
237
+ day: `${parts.day.slice(1)}${digit}`
238
+ },
239
+ done: true
240
+ };
241
+ if (parts.day === "03" && digit === "3" || digit === "0") break;
242
+ return {
243
+ parts: {
244
+ ...parts,
245
+ day: `0${digit}`
246
+ },
247
+ done: ![
248
+ "1",
249
+ "2",
250
+ "3"
251
+ ].includes(digit)
252
+ };
253
+ }
254
+ return null;
231
255
  }
232
- function handleOffsetInput(parts, item, offset2, viewDate, minDate, maxDate) {
233
- if (offset2 === 0) {
234
- return null;
235
- }
236
- const year = Number(parts.year);
237
- const month = Number(parts.month);
238
- const maxDay = isFinite(month) ? calendarCommon.countDaysForYearMonth(
239
- isFinite(year) ? year : 2021,
240
- // Assume not leap year
241
- month - 1
242
- ) : 31;
243
- const { nanDefault, min, max, length } = {
244
- year: {
245
- nanDefault: viewDate == null ? void 0 : viewDate.getUTCFullYear(),
246
- min: minDate.getUTCFullYear(),
247
- max: maxDate.getUTCFullYear(),
248
- length: 4
249
- },
250
- month: {
251
- nanDefault: null,
252
- min: 1,
253
- max: 12,
254
- length: 2
255
- },
256
- day: {
257
- nanDefault: null,
258
- min: 1,
259
- max: maxDay,
260
- length: 2
261
- }
262
- }[item];
263
- const value = Number(parts[item]);
264
- let newValue;
265
- if (isFinite(value)) {
266
- const withOffset = value + offset2;
267
- newValue = min <= withOffset && withOffset <= max ? withOffset : (
268
- // Wrap around
269
- offset2 > 0 ? min : max
270
- );
271
- } else {
272
- newValue = nanDefault ?? (offset2 > 0 ? min : max);
273
- }
274
- return {
275
- ...parts,
276
- [item]: String(Math.max(Math.min(newValue, max), min)).padStart(
277
- length,
278
- "0"
279
- )
280
- };
256
+ /**
257
+ * Calculates state updates based on offset.
258
+ * If the year, month, and day should be updated, a new parts object is returned.
259
+ * If there is no need to update the state, null is returned.
260
+ */
261
+ function handleOffsetInput(parts, item, offset, viewDate, minDate, maxDate) {
262
+ if (offset === 0) return null;
263
+ const year = Number(parts.year);
264
+ const month = Number(parts.month);
265
+ const maxDay = isFinite(month) ? require_calendar_common.countDaysForYearMonth(isFinite(year) ? year : 2021, month - 1) : 31;
266
+ const { nanDefault, min, max, length } = {
267
+ year: {
268
+ nanDefault: viewDate?.getUTCFullYear(),
269
+ min: minDate.getUTCFullYear(),
270
+ max: maxDate.getUTCFullYear(),
271
+ length: 4
272
+ },
273
+ month: {
274
+ nanDefault: null,
275
+ min: 1,
276
+ max: 12,
277
+ length: 2
278
+ },
279
+ day: {
280
+ nanDefault: null,
281
+ min: 1,
282
+ max: maxDay,
283
+ length: 2
284
+ }
285
+ }[item];
286
+ const value = Number(parts[item]);
287
+ let newValue;
288
+ if (isFinite(value)) {
289
+ const withOffset = value + offset;
290
+ newValue = min <= withOffset && withOffset <= max ? withOffset : offset > 0 ? min : max;
291
+ } else newValue = nanDefault ?? (offset > 0 ? min : max);
292
+ return {
293
+ ...parts,
294
+ [item]: String(Math.max(Math.min(newValue, max), min)).padStart(length, "0")
295
+ };
281
296
  }
282
- exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSFormElement {
283
- constructor() {
284
- super(...arguments);
285
- this.readonly = false;
286
- this.disabled = false;
287
- this.required = false;
288
- this.error = false;
289
- this.open = false;
290
- this.defaultValue = null;
291
- this.locale = null;
292
- this.inputLocale = null;
293
- this._label = null;
294
- this._currentSelection = "month";
295
- this._preCompositionValue = "";
296
- this._inputValue = "";
297
- this._monthDigitIndex = 0;
298
- this._dayDigitIndex = 0;
299
- this._yearDigitIndex = 0;
300
- this._autoUpdateController = new floatingUiAutoUpdate.FloatingUIAutoUpdateController(this);
301
- this._dateInputElement = ref_js.createRef();
302
- this._calendarElement = ref_js.createRef();
303
- this._calendarButtonElement = ref_js.createRef();
304
- this._getLocale = () => this.inputLocale ?? null;
305
- this._getDateItems = () => getDateItems(this._getLocale());
306
- this._parsePartsFromUIValue = (v) => parsePartsFromUIValue(v, this._getLocale());
307
- this._formatPartsForUI = (p) => formatPartsForUI(p, this._getLocale());
308
- this._tryParseDateFromUIValue = (v) => tryParseDateFromUIValue(v, this._getLocale());
309
- this._formatDateForUI = (d) => formatDateForUI(d, this._getLocale());
310
- this._getPlaceholderAll = () => getPlaceholderAll(this._getLocale());
311
- this._getDateItemInSelection = (s, e) => getDateItemInSelection(s, e, this._getLocale());
312
- this._ignoreCloseByFocusTrap = false;
313
- this._handleCloseCalendar = () => {
314
- var _a;
315
- if (this._ignoreCloseByFocusTrap) return;
316
- this.open = false;
317
- (_a = this._calendarButtonElement.value) == null ? void 0 : _a.focus();
318
- };
319
- this._focusTrapController = new focusTrap.FocusTrapController(
320
- this,
321
- this._handleCloseCalendar
322
- );
323
- this.label = null;
324
- }
325
- static getDefaultPlaceholder(element) {
326
- return getPlaceholderAll(element._getLocale());
327
- }
328
- get _dateValue() {
329
- return calendarCommon.tryParseDateFromProperty(this.value);
330
- }
331
- /**
332
- * Returns the string to bind to the <input> element's .value property.
333
- *
334
- * - When this.value holds a valid date, show the locale-formatted date.
335
- * - When _inputValue contains partial or invalid content (placeholders / impossible
336
- * dates like 02/31), return it so the user's in-progress entry is preserved
337
- * across Lit re-renders.
338
- * - Otherwise (e.g. this.value was cleared externally while _inputValue still
339
- * holds a now-stale complete valid date string) return "" so the CSS placeholder
340
- * text is visible instead.
341
- */
342
- get _displayValue() {
343
- if (this._dateValue) {
344
- return this._formatDateForUI(this._dateValue);
345
- }
346
- if (this._inputValue && !this._tryParseDateFromUIValue(this._inputValue)) {
347
- return this._inputValue;
348
- }
349
- return "";
350
- }
351
- get _min() {
352
- return calendarCommon.tryParseDateFromProperty(this.min) ?? calendarCommon.parseDateFromProperty(calendarCommon.DEFAULT_MIN_DATE);
353
- }
354
- get _max() {
355
- return calendarCommon.tryParseDateFromProperty(this.max) ?? calendarCommon.parseDateFromProperty(calendarCommon.DEFAULT_MAX_DATE);
356
- }
357
- get _viewDate() {
358
- var _a;
359
- return ((_a = this._calendarElement.value) == null ? void 0 : _a.viewDate) ?? null;
360
- }
361
- get _open() {
362
- return this.open && !this.disabled && !this.readonly;
363
- }
364
- _emitSelect() {
365
- this.dispatchEvent(
366
- new Event("select", {
367
- bubbles: true,
368
- composed: true
369
- })
370
- );
371
- }
372
- _handleFocusIn(event) {
373
- const target = event.target;
374
- this._updateInputSelection(target);
375
- }
376
- _handleFocusOut(event) {
377
- const target = event.target;
378
- if (target.value === this._getPlaceholderAll()) {
379
- target.value = "";
380
- this._inputValue = "";
381
- }
382
- }
383
- _handleChange(event) {
384
- this._updateValue(event.target);
385
- }
386
- _handleMouseUp(event) {
387
- var _a, _b;
388
- event.preventDefault();
389
- const selectionStart = ((_a = this._dateInputElement.value) == null ? void 0 : _a.selectionStart) ?? 0;
390
- const selectionEnd = ((_b = this._dateInputElement.value) == null ? void 0 : _b.selectionEnd) ?? 0;
391
- const dateItemInSelection = this._getDateItemInSelection(
392
- selectionStart,
393
- selectionEnd
394
- );
395
- if (event.target.value === this._getPlaceholderAll() && !dateItemInSelection) {
396
- this._updateSelection("month");
397
- return;
398
- }
399
- if (dateItemInSelection) {
400
- this._updateSelection(dateItemInSelection);
401
- }
402
- }
403
- // Saves the input's display value when IME composition starts so that
404
- // `_handleCompositionEnd` can restore it if the browser inserted raw IME text.
405
- _handleCompositionStart(event) {
406
- this._preCompositionValue = event.target.value;
407
- }
408
- // Handle compositionend to support full-width and half-width digit input via IME.
409
- // Full-width digits are converted to half-width, then each digit is applied as if
410
- // the user had typed them one by one using the existing handleDigitInput logic.
411
- _handleCompositionEnd(event) {
412
- const target = event.target;
413
- const composedText = event.data;
414
- target.value = this._preCompositionValue || this._getPlaceholderAll();
415
- const digits = extractHalfWidthDigits.extractHalfWidthDigits(composedText);
416
- if (digits.length === 0) {
417
- this._updateInputSelection(target);
418
- this._updateValue(target);
419
- return;
420
- }
421
- this._applyDigits(target, digits);
422
- }
423
- // Applies a single digit to the given date part, incorporating fresh-entry
424
- // tracking for month and day. Extracted from _applyDigits to keep complexity low.
425
- _applyDigitToPart(parts, item, digit) {
426
- if (item === "month") {
427
- const monthDigitIndex = this._monthDigitIndex;
428
- if (monthDigitIndex === 0) {
429
- this._monthDigitIndex = 1;
430
- if (digit === "0") {
431
- return { parts: { ...parts, month: "00" }, done: false };
432
- }
433
- return {
434
- parts: { ...parts, month: `0${digit}` },
435
- done: digit !== "1"
436
- };
437
- }
438
- this._monthDigitIndex = 0;
439
- if (parts.month === "00") {
440
- if (digit === "0") return null;
441
- return { parts: { ...parts, month: `0${digit}` }, done: true };
442
- }
443
- } else if (item === "day") {
444
- const dayDigitIndex = this._dayDigitIndex;
445
- if (dayDigitIndex === 0) {
446
- this._dayDigitIndex = 1;
447
- if (digit === "0") {
448
- return { parts: { ...parts, day: "00" }, done: false };
449
- }
450
- return {
451
- parts: { ...parts, day: `0${digit}` },
452
- done: !["1", "2", "3"].includes(digit)
453
- };
454
- }
455
- this._dayDigitIndex = 0;
456
- if (parts.day === "00") {
457
- if (digit === "0") return null;
458
- return { parts: { ...parts, day: `0${digit}` }, done: true };
459
- }
460
- } else if (this._yearDigitIndex === 0) {
461
- this._yearDigitIndex = 1;
462
- return { parts: { ...parts, year: `000${digit}` }, done: false };
463
- }
464
- return handleDigitInput(parts, item, digit);
465
- }
466
- // Applies a sequence of digit characters to the input starting from the currently
467
- // selected date item, then commits the result to this.value.
468
- // Shared by _handleKeyDown (single digit) and _handleCompositionEnd (multiple digits).
469
- _applyDigits(target, digits) {
470
- const items = this._getDateItems();
471
- let parts = this._parsePartsFromUIValue(target.value);
472
- let currentItem = this._currentSelection;
473
- for (const digit of digits) {
474
- const currentIndex = items.findIndex(({ type }) => type === currentItem);
475
- if (currentIndex < 0) break;
476
- const newState = this._applyDigitToPart(parts, currentItem, digit);
477
- if (!newState) continue;
478
- parts = newState.parts;
479
- if (!newState.done) continue;
480
- const nextIndex = Math.min(currentIndex + 1, items.length - 1);
481
- currentItem = items[nextIndex].type;
482
- this._monthDigitIndex = 0;
483
- this._dayDigitIndex = 0;
484
- this._yearDigitIndex = 0;
485
- }
486
- target.value = this._formatPartsForUI(parts);
487
- this._updateSelection(currentItem);
488
- this._updateValue(target);
489
- }
490
- _handleKeyDown(event) {
491
- if (this.readonly) {
492
- return;
493
- }
494
- if (event.isComposing || event.key === "Process" || event.keyCode === 229) {
495
- return;
496
- }
497
- const target = event.target;
498
- const key = event.key;
499
- const parts = this._parsePartsFromUIValue(target.value);
500
- if (key === "Backspace" || key === "Delete") {
501
- event.preventDefault();
502
- const itemToRemove = this._currentSelection;
503
- const placeholder = {
504
- year: PLACEHOLDER_YEAR,
505
- month: PLACEHOLDER_MONTH,
506
- day: PLACEHOLDER_DAY
507
- }[itemToRemove];
508
- if (parts[itemToRemove] !== placeholder) {
509
- target.value = this._formatPartsForUI({
510
- ...parts,
511
- [itemToRemove]: placeholder
512
- });
513
- this._updateSelection(itemToRemove);
514
- }
515
- this._updateValue(target);
516
- return;
517
- }
518
- if (/^\d$/.test(key)) {
519
- event.preventDefault();
520
- this._applyDigits(target, [key]);
521
- return;
522
- }
523
- const moveOffset = {
524
- ArrowLeft: -1,
525
- ArrowRight: 1
526
- }[key];
527
- if (moveOffset) {
528
- event.preventDefault();
529
- const items = this._getDateItems();
530
- const currentIndex = items.findIndex(
531
- ({ type }) => type === this._currentSelection
532
- );
533
- const newIndex = currentIndex >= 0 ? Math.min(Math.max(currentIndex + moveOffset, 0), items.length - 1) : 0;
534
- this._updateSelection(items[newIndex].type);
535
- return;
536
- }
537
- const countOffset = {
538
- ArrowUp: 1,
539
- ArrowDown: -1
540
- }[key];
541
- if (countOffset) {
542
- event.preventDefault();
543
- const newParts = handleOffsetInput(
544
- parts,
545
- this._currentSelection,
546
- countOffset,
547
- this._viewDate,
548
- this._min,
549
- this._max
550
- );
551
- if (newParts) {
552
- target.value = this._formatPartsForUI(newParts);
553
- this._updateSelection(this._currentSelection);
554
- }
555
- this._updateValue(target);
556
- return;
557
- }
558
- if (key.length <= 1) {
559
- event.preventDefault();
560
- return;
561
- }
562
- }
563
- // Depending on the PC settings, a period may be entered when the space key is pressed repeatedly, so this is stopped.
564
- // When this happens, the selection range changes, so this is also reset to the current item.
565
- // Note: _updateInputSelection is intentionally NOT used here because it always moves focus to the
566
- // first item, which would break IME input on non-first fields (e.g. compositionend would always
567
- // edit the first date part instead of the one the user is on).
568
- _handleBeforeInput(event) {
569
- event.preventDefault();
570
- if (!event.isComposing) {
571
- this._updateSelection(this._currentSelection);
572
- }
573
- }
574
- _handleSelect(event) {
575
- event.stopPropagation();
576
- const calendar = event.target;
577
- if (!calendar.value) {
578
- return;
579
- }
580
- const target = this._dateInputElement.value;
581
- const value = calendarCommon.parseDateFromProperty(calendar.value);
582
- const formattedForUI = this._formatDateForUI(value);
583
- this.value = calendarCommon.formatDateForProperty(value);
584
- target.value = formattedForUI;
585
- this._inputValue = formattedForUI;
586
- this.error = false;
587
- if (event.type === "select") {
588
- this.open = false;
589
- }
590
- this._emitSelect();
591
- }
592
- _handlePointerDown() {
593
- this._ignoreCloseByFocusTrap = true;
594
- }
595
- _handlePointerUp() {
596
- this._ignoreCloseByFocusTrap = false;
597
- if (this.disabled || this.readonly) {
598
- return;
599
- }
600
- this.open = !this.open;
601
- }
602
- _handleCalendarKeyDown(event) {
603
- if (event.key === "Enter" || event.key === " ") {
604
- event.preventDefault();
605
- event.stopPropagation();
606
- if (this.disabled || this.readonly) {
607
- return;
608
- }
609
- this.open = !this.open;
610
- }
611
- }
612
- _handleToggle(event) {
613
- if (reDispatch.reDispatch(this, event, new ToggleEvent("toggle", event))) {
614
- this.open = event.newState === "open";
615
- const calendar = this._calendarElement.value;
616
- if (calendar) {
617
- calendar.view = "day";
618
- }
619
- }
620
- }
621
- /**
622
- * Returns true if all date parts (year/month/day) in the input are filled with
623
- * digits and no placeholder text (YYYY, MM, DD) remains.
624
- */
625
- _isInputComplete(value) {
626
- const parts = this._parsePartsFromUIValue(value);
627
- return /^\d{4}$/.test(parts.year) && /^\d{2}$/.test(parts.month) && /^\d{2}$/.test(parts.day);
628
- }
629
- _updateValue(target) {
630
- this._inputValue = target.value;
631
- if (target.value === this._getPlaceholderAll()) {
632
- this.error = false;
633
- this.value = "";
634
- return;
635
- }
636
- if (!this._isInputComplete(target.value)) {
637
- this.error = true;
638
- this.value = "";
639
- return;
640
- }
641
- const newDate = this._tryParseDateFromUIValue(target.value);
642
- if (!newDate) {
643
- this.error = true;
644
- this.value = "";
645
- return;
297
+ var DaikinDatePicker = class DaikinDatePicker extends require_dds_form_element.DDSFormElement {
298
+ constructor(..._args) {
299
+ super(..._args);
300
+ this.readonly = false;
301
+ this.disabled = false;
302
+ this.required = false;
303
+ this.error = false;
304
+ this.open = false;
305
+ this.defaultValue = null;
306
+ this.locale = null;
307
+ this.inputLocale = null;
308
+ this._label = null;
309
+ this._currentSelection = "month";
310
+ this._preCompositionValue = "";
311
+ this._inputValue = "";
312
+ this._monthDigitIndex = 0;
313
+ this._dayDigitIndex = 0;
314
+ this._yearDigitIndex = 0;
315
+ this._autoUpdateController = new require_floating_ui_auto_update.FloatingUIAutoUpdateController(this);
316
+ this._dateInputElement = (0, lit_directives_ref_js.createRef)();
317
+ this._calendarElement = (0, lit_directives_ref_js.createRef)();
318
+ this._calendarButtonElement = (0, lit_directives_ref_js.createRef)();
319
+ this._getLocale = () => this.inputLocale ?? null;
320
+ this._getDateItems = () => getDateItems(this._getLocale());
321
+ this._parsePartsFromUIValue = (v) => parsePartsFromUIValue(v, this._getLocale());
322
+ this._formatPartsForUI = (p) => formatPartsForUI(p, this._getLocale());
323
+ this._tryParseDateFromUIValue = (v) => tryParseDateFromUIValue(v, this._getLocale());
324
+ this._formatDateForUI = (d) => formatDateForUI(d, this._getLocale());
325
+ this._getPlaceholderAll = () => getPlaceholderAll(this._getLocale());
326
+ this._getDateItemInSelection = (s, e) => getDateItemInSelection(s, e, this._getLocale());
327
+ this._ignoreCloseByFocusTrap = false;
328
+ this._handleCloseCalendar = () => {
329
+ if (this._ignoreCloseByFocusTrap) return;
330
+ this.open = false;
331
+ this._calendarButtonElement.value?.focus();
332
+ };
333
+ this._focusTrapController = new require_focus_trap.FocusTrapController(this, this._handleCloseCalendar);
334
+ this.label = null;
335
+ }
336
+ static {
337
+ this.styles = lit.css`
338
+ ${(0, lit.unsafeCSS)(require_tailwind.default)}
339
+
340
+ :host {
341
+ display: flex;
342
+ align-items: center;
343
+ height: var(--dds-input-height, 3rem);
646
344
  }
647
- const newValue = calendarCommon.formatDateForProperty(newDate);
648
- if (calendarCommon.isDateOutOfRange(newDate, this._min, this._max)) {
649
- this.error = true;
650
- if (this.value !== newValue) {
651
- this.value = newValue;
652
- this._emitSelect();
653
- }
654
- return;
345
+
346
+ :host([readonly]:not([disabled])) input {
347
+ --color-base: var(--dds-color-common-surface-secondary);
348
+ background-color: var(--dds-color-common-surface-secondary);
655
349
  }
656
- if (!this.error && !this.open && this.value === newValue) {
657
- return;
350
+
351
+ :host([readonly]:not([disabled])) input:hover,
352
+ :host([readonly]:not([disabled])) input:active {
353
+ --color-base: var(--dds-color-common-surface-secondary);
354
+ background-color: var(--dds-color-common-surface-secondary);
658
355
  }
659
- this.error = false;
660
- this.value = newValue;
661
- this.open = false;
662
- this._emitSelect();
663
- }
664
- _updateInputSelection(target) {
665
- var _a;
666
- const selection = window.getSelection();
667
- if (!selection) {
668
- return;
356
+
357
+ :host([readonly]:not([disabled])) input:focus-visible {
358
+ --color-base: var(--dds-color-common-border-focus);
669
359
  }
670
- if (target.value === "") {
671
- target.value = this._getPlaceholderAll();
672
- this._inputValue = this._getPlaceholderAll();
360
+
361
+ :host([readonly][error]:not([disabled])) input,
362
+ :host([readonly][error]:not([disabled])) input:hover,
363
+ :host([readonly][error]:not([disabled])) input:active {
364
+ --color-base: var(--dds-color-common-danger-default);
673
365
  }
674
- const itemInfo = this._getDateItems()[0];
675
- (_a = this._dateInputElement.value) == null ? void 0 : _a.setSelectionRange(
676
- itemInfo.range[0],
677
- itemInfo.range[1]
678
- );
679
- this._monthDigitIndex = 0;
680
- this._dayDigitIndex = 0;
681
- this._yearDigitIndex = 0;
682
- this._currentSelection = itemInfo.type;
683
- }
684
- _updateSelection(dateItem) {
685
- var _a;
686
- const selection = window.getSelection();
687
- if (!selection) {
688
- return;
366
+
367
+ daikin-calendar[popover] {
368
+ display: none;
689
369
  }
690
- const itemInfo = this._getDateItems().find(({ type }) => type === dateItem);
691
- if (itemInfo) {
692
- if (dateItem !== this._currentSelection) {
693
- if (dateItem === "month") this._monthDigitIndex = 0;
694
- if (dateItem === "day") this._dayDigitIndex = 0;
695
- if (dateItem === "year") this._yearDigitIndex = 0;
696
- }
697
- (_a = this._dateInputElement.value) == null ? void 0 : _a.setSelectionRange(
698
- itemInfo.range[0],
699
- itemInfo.range[1]
700
- );
701
- this._currentSelection = itemInfo.type;
370
+
371
+ daikin-calendar[popover]:popover-open {
372
+ display: flex;
702
373
  }
703
- }
704
- /**
705
- * Focuses on the inner date input.
706
- * @param options focus options
707
- */
708
- focus(options) {
709
- var _a;
710
- (_a = this._dateInputElement.value) == null ? void 0 : _a.focus(options);
711
- }
712
- render() {
713
- const min = this._min;
714
- const max = this._max;
715
- return lit.html`<div
374
+ `;
375
+ }
376
+ static getDefaultPlaceholder(element) {
377
+ return getPlaceholderAll(element._getLocale());
378
+ }
379
+ get _dateValue() {
380
+ return require_calendar_common.tryParseDateFromProperty(this.value);
381
+ }
382
+ /**
383
+ * Returns the string to bind to the <input> element's .value property.
384
+ *
385
+ * - When this.value holds a valid date, show the locale-formatted date.
386
+ * - When _inputValue contains partial or invalid content (placeholders / impossible
387
+ * dates like 02/31), return it so the user's in-progress entry is preserved
388
+ * across Lit re-renders.
389
+ * - Otherwise (e.g. this.value was cleared externally while _inputValue still
390
+ * holds a now-stale complete valid date string) return "" so the CSS placeholder
391
+ * text is visible instead.
392
+ */
393
+ get _displayValue() {
394
+ if (this._dateValue) return this._formatDateForUI(this._dateValue);
395
+ if (this._inputValue && !this._tryParseDateFromUIValue(this._inputValue)) return this._inputValue;
396
+ return "";
397
+ }
398
+ get _min() {
399
+ return require_calendar_common.tryParseDateFromProperty(this.min) ?? require_calendar_common.parseDateFromProperty("1900-01-01");
400
+ }
401
+ get _max() {
402
+ return require_calendar_common.tryParseDateFromProperty(this.max) ?? require_calendar_common.parseDateFromProperty("2099-12-31");
403
+ }
404
+ get _viewDate() {
405
+ return this._calendarElement.value?.viewDate ?? null;
406
+ }
407
+ get _open() {
408
+ return this.open && !this.disabled && !this.readonly;
409
+ }
410
+ _emitSelect() {
411
+ this.dispatchEvent(new Event("select", {
412
+ bubbles: true,
413
+ composed: true
414
+ }));
415
+ }
416
+ _handleFocusIn(event) {
417
+ const target = event.target;
418
+ this._updateInputSelection(target);
419
+ }
420
+ _handleFocusOut(event) {
421
+ const target = event.target;
422
+ if (target.value === this._getPlaceholderAll()) {
423
+ target.value = "";
424
+ this._inputValue = "";
425
+ }
426
+ }
427
+ _handleChange(event) {
428
+ this._updateValue(event.target);
429
+ }
430
+ _handleMouseUp(event) {
431
+ event.preventDefault();
432
+ const selectionStart = this._dateInputElement.value?.selectionStart ?? 0;
433
+ const selectionEnd = this._dateInputElement.value?.selectionEnd ?? 0;
434
+ const dateItemInSelection = this._getDateItemInSelection(selectionStart, selectionEnd);
435
+ if (event.target.value === this._getPlaceholderAll() && !dateItemInSelection) {
436
+ this._updateSelection("month");
437
+ return;
438
+ }
439
+ if (dateItemInSelection) this._updateSelection(dateItemInSelection);
440
+ }
441
+ _handleCompositionStart(event) {
442
+ this._preCompositionValue = event.target.value;
443
+ }
444
+ _handleCompositionEnd(event) {
445
+ const target = event.target;
446
+ const composedText = event.data;
447
+ target.value = this._preCompositionValue || this._getPlaceholderAll();
448
+ const digits = require_extract_half_width_digits.extractHalfWidthDigits(composedText);
449
+ if (digits.length === 0) {
450
+ this._updateInputSelection(target);
451
+ this._updateValue(target);
452
+ return;
453
+ }
454
+ this._applyDigits(target, digits);
455
+ }
456
+ _applyDigitToPart(parts, item, digit) {
457
+ if (item === "month") {
458
+ if (this._monthDigitIndex === 0) {
459
+ this._monthDigitIndex = 1;
460
+ if (digit === "0") return {
461
+ parts: {
462
+ ...parts,
463
+ month: "00"
464
+ },
465
+ done: false
466
+ };
467
+ return {
468
+ parts: {
469
+ ...parts,
470
+ month: `0${digit}`
471
+ },
472
+ done: digit !== "1"
473
+ };
474
+ }
475
+ this._monthDigitIndex = 0;
476
+ if (parts.month === "00") {
477
+ if (digit === "0") return null;
478
+ return {
479
+ parts: {
480
+ ...parts,
481
+ month: `0${digit}`
482
+ },
483
+ done: true
484
+ };
485
+ }
486
+ } else if (item === "day") {
487
+ if (this._dayDigitIndex === 0) {
488
+ this._dayDigitIndex = 1;
489
+ if (digit === "0") return {
490
+ parts: {
491
+ ...parts,
492
+ day: "00"
493
+ },
494
+ done: false
495
+ };
496
+ return {
497
+ parts: {
498
+ ...parts,
499
+ day: `0${digit}`
500
+ },
501
+ done: ![
502
+ "1",
503
+ "2",
504
+ "3"
505
+ ].includes(digit)
506
+ };
507
+ }
508
+ this._dayDigitIndex = 0;
509
+ if (parts.day === "00") {
510
+ if (digit === "0") return null;
511
+ return {
512
+ parts: {
513
+ ...parts,
514
+ day: `0${digit}`
515
+ },
516
+ done: true
517
+ };
518
+ }
519
+ } else if (this._yearDigitIndex === 0) {
520
+ this._yearDigitIndex = 1;
521
+ return {
522
+ parts: {
523
+ ...parts,
524
+ year: `000${digit}`
525
+ },
526
+ done: false
527
+ };
528
+ }
529
+ return handleDigitInput(parts, item, digit);
530
+ }
531
+ _applyDigits(target, digits) {
532
+ const items = this._getDateItems();
533
+ let parts = this._parsePartsFromUIValue(target.value);
534
+ let currentItem = this._currentSelection;
535
+ for (const digit of digits) {
536
+ const currentIndex = items.findIndex(({ type }) => type === currentItem);
537
+ if (currentIndex < 0) break;
538
+ const newState = this._applyDigitToPart(parts, currentItem, digit);
539
+ if (!newState) continue;
540
+ parts = newState.parts;
541
+ if (!newState.done) continue;
542
+ currentItem = items[Math.min(currentIndex + 1, items.length - 1)].type;
543
+ this._monthDigitIndex = 0;
544
+ this._dayDigitIndex = 0;
545
+ this._yearDigitIndex = 0;
546
+ }
547
+ target.value = this._formatPartsForUI(parts);
548
+ this._updateSelection(currentItem);
549
+ this._updateValue(target);
550
+ }
551
+ _handleKeyDown(event) {
552
+ if (this.readonly) return;
553
+ if (event.isComposing || event.key === "Process" || event.keyCode === 229) return;
554
+ const target = event.target;
555
+ const key = event.key;
556
+ const parts = this._parsePartsFromUIValue(target.value);
557
+ if (key === "Backspace" || key === "Delete") {
558
+ event.preventDefault();
559
+ const itemToRemove = this._currentSelection;
560
+ const placeholder = {
561
+ year: PLACEHOLDER_YEAR,
562
+ month: PLACEHOLDER_MONTH,
563
+ day: PLACEHOLDER_DAY
564
+ }[itemToRemove];
565
+ if (parts[itemToRemove] !== placeholder) {
566
+ target.value = this._formatPartsForUI({
567
+ ...parts,
568
+ [itemToRemove]: placeholder
569
+ });
570
+ this._updateSelection(itemToRemove);
571
+ }
572
+ this._updateValue(target);
573
+ return;
574
+ }
575
+ if (/^\d$/.test(key)) {
576
+ event.preventDefault();
577
+ this._applyDigits(target, [key]);
578
+ return;
579
+ }
580
+ const moveOffset = {
581
+ ArrowLeft: -1,
582
+ ArrowRight: 1
583
+ }[key];
584
+ if (moveOffset) {
585
+ event.preventDefault();
586
+ const items = this._getDateItems();
587
+ const currentIndex = items.findIndex(({ type }) => type === this._currentSelection);
588
+ const newIndex = currentIndex >= 0 ? Math.min(Math.max(currentIndex + moveOffset, 0), items.length - 1) : 0;
589
+ this._updateSelection(items[newIndex].type);
590
+ return;
591
+ }
592
+ const countOffset = {
593
+ ArrowUp: 1,
594
+ ArrowDown: -1
595
+ }[key];
596
+ if (countOffset) {
597
+ event.preventDefault();
598
+ const newParts = handleOffsetInput(parts, this._currentSelection, countOffset, this._viewDate, this._min, this._max);
599
+ if (newParts) {
600
+ target.value = this._formatPartsForUI(newParts);
601
+ this._updateSelection(this._currentSelection);
602
+ }
603
+ this._updateValue(target);
604
+ return;
605
+ }
606
+ if (key.length <= 1) {
607
+ event.preventDefault();
608
+ return;
609
+ }
610
+ }
611
+ _handleBeforeInput(event) {
612
+ event.preventDefault();
613
+ if (!event.isComposing) this._updateSelection(this._currentSelection);
614
+ }
615
+ _handleSelect(event) {
616
+ event.stopPropagation();
617
+ const calendar = event.target;
618
+ if (!calendar.value) return;
619
+ const target = this._dateInputElement.value;
620
+ const value = require_calendar_common.parseDateFromProperty(calendar.value);
621
+ const formattedForUI = this._formatDateForUI(value);
622
+ this.value = require_calendar_common.formatDateForProperty(value);
623
+ target.value = formattedForUI;
624
+ this._inputValue = formattedForUI;
625
+ this.error = false;
626
+ if (event.type === "select") this.open = false;
627
+ this._emitSelect();
628
+ }
629
+ _handlePointerDown() {
630
+ this._ignoreCloseByFocusTrap = true;
631
+ }
632
+ _handlePointerUp() {
633
+ this._ignoreCloseByFocusTrap = false;
634
+ if (this.disabled || this.readonly) return;
635
+ this.open = !this.open;
636
+ }
637
+ _handleCalendarKeyDown(event) {
638
+ if (event.key === "Enter" || event.key === " ") {
639
+ event.preventDefault();
640
+ event.stopPropagation();
641
+ if (this.disabled || this.readonly) return;
642
+ this.open = !this.open;
643
+ }
644
+ }
645
+ _handleToggle(event) {
646
+ if (require_re_dispatch.reDispatch(this, event, new ToggleEvent("toggle", event))) {
647
+ this.open = event.newState === "open";
648
+ const calendar = this._calendarElement.value;
649
+ if (calendar) calendar.view = "day";
650
+ }
651
+ }
652
+ /**
653
+ * Returns true if all date parts (year/month/day) in the input are filled with
654
+ * digits and no placeholder text (YYYY, MM, DD) remains.
655
+ */
656
+ _isInputComplete(value) {
657
+ const parts = this._parsePartsFromUIValue(value);
658
+ return /^\d{4}$/.test(parts.year) && /^\d{2}$/.test(parts.month) && /^\d{2}$/.test(parts.day);
659
+ }
660
+ _updateValue(target) {
661
+ this._inputValue = target.value;
662
+ if (target.value === this._getPlaceholderAll()) {
663
+ this.error = false;
664
+ this.value = "";
665
+ return;
666
+ }
667
+ if (!this._isInputComplete(target.value)) {
668
+ this.error = true;
669
+ this.value = "";
670
+ return;
671
+ }
672
+ const newDate = this._tryParseDateFromUIValue(target.value);
673
+ if (!newDate) {
674
+ this.error = true;
675
+ this.value = "";
676
+ return;
677
+ }
678
+ const newValue = require_calendar_common.formatDateForProperty(newDate);
679
+ if (require_calendar_common.isDateOutOfRange(newDate, this._min, this._max)) {
680
+ this.error = true;
681
+ if (this.value !== newValue) {
682
+ this.value = newValue;
683
+ this._emitSelect();
684
+ }
685
+ return;
686
+ }
687
+ if (!this.error && !this.open && this.value === newValue) return;
688
+ this.error = false;
689
+ this.value = newValue;
690
+ this.open = false;
691
+ this._emitSelect();
692
+ }
693
+ _updateInputSelection(target) {
694
+ if (!window.getSelection()) return;
695
+ if (target.value === "") {
696
+ target.value = this._getPlaceholderAll();
697
+ this._inputValue = this._getPlaceholderAll();
698
+ }
699
+ const itemInfo = this._getDateItems()[0];
700
+ this._dateInputElement.value?.setSelectionRange(itemInfo.range[0], itemInfo.range[1]);
701
+ this._monthDigitIndex = 0;
702
+ this._dayDigitIndex = 0;
703
+ this._yearDigitIndex = 0;
704
+ this._currentSelection = itemInfo.type;
705
+ }
706
+ _updateSelection(dateItem) {
707
+ if (!window.getSelection()) return;
708
+ const itemInfo = this._getDateItems().find(({ type }) => type === dateItem);
709
+ if (itemInfo) {
710
+ if (dateItem !== this._currentSelection) {
711
+ if (dateItem === "month") this._monthDigitIndex = 0;
712
+ if (dateItem === "day") this._dayDigitIndex = 0;
713
+ if (dateItem === "year") this._yearDigitIndex = 0;
714
+ }
715
+ this._dateInputElement.value?.setSelectionRange(itemInfo.range[0], itemInfo.range[1]);
716
+ this._currentSelection = itemInfo.type;
717
+ }
718
+ }
719
+ /**
720
+ * Focuses on the inner date input.
721
+ * @param options focus options
722
+ */
723
+ focus(options) {
724
+ this._dateInputElement.value?.focus(options);
725
+ }
726
+ render() {
727
+ const min = this._min;
728
+ const max = this._max;
729
+ return lit.html`<div
716
730
  class="size-full relative"
717
731
  ${this._autoUpdateController.refReference()}
718
732
  >
719
733
  <input
720
- ${ref_js.ref(this._dateInputElement)}
734
+ ${(0, lit_directives_ref_js.ref)(this._dateInputElement)}
721
735
  class=${cvaField({ error: this.error })}
722
736
  type="text"
723
- name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
724
- placeholder=${ifDefined_js.ifDefined(this.placeholder)}
725
- aria-label=${ifDefined_js.ifDefined(this._label ?? this.label ?? "Date Picker")}
737
+ name=${(0, lit_directives_if_defined_js.ifDefined)(this.getBackingProperty("name"))}
738
+ placeholder=${(0, lit_directives_if_defined_js.ifDefined)(this.placeholder)}
739
+ aria-label=${(0, lit_directives_if_defined_js.ifDefined)(this._label ?? this.label ?? "Date Picker")}
726
740
  ?disabled=${this.disabled}
727
741
  ?readonly=${this.readonly}
728
742
  ?required=${this.required}
@@ -737,7 +751,7 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
737
751
  @mouseup=${this._handleMouseUp}
738
752
  />
739
753
  ${this.readonly && !this.disabled ? lit.nothing : lit.html`<daikin-icon-button
740
- ${ref_js.ref(this._calendarButtonElement)}
754
+ ${(0, lit_directives_ref_js.ref)(this._calendarButtonElement)}
741
755
  class="absolute size-(--dds-icon-button) top-0 bottom-0 right-2 m-auto"
742
756
  type="button"
743
757
  color="neutral"
@@ -748,21 +762,21 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
748
762
  @pointerup=${this._handlePointerUp}
749
763
  @keydown=${this._handleCalendarKeyDown}
750
764
  >
751
- <span class=${calendarCommon.cvaIconButton({ intent: "calender" })}></span>
765
+ <span class=${require_calendar_common.cvaIconButton({ intent: "calender" })}></span>
752
766
  </daikin-icon-button>`}
753
767
  <span class="sr-only" aria-live="polite"
754
768
  >${this.value ? `${this._label ?? ""} Selected: ${this.value}` : ""}
755
769
  </span>
756
770
  </div>
757
771
  <daikin-calendar
758
- ${ref_js.ref(this._calendarElement)}
772
+ ${(0, lit_directives_ref_js.ref)(this._calendarElement)}
759
773
  ${this._focusTrapController.refContainer()}
760
774
  id="calendar"
761
- value=${this._dateValue ? calendarCommon.formatDateForProperty(this._dateValue) : lit.nothing}
762
- min=${calendarCommon.formatDateForProperty(min)}
763
- max=${calendarCommon.formatDateForProperty(max)}
764
- default-value=${ifDefined_js.ifDefined(this.defaultValue)}
765
- locale=${ifDefined_js.ifDefined(this.locale)}
775
+ value=${this._dateValue ? require_calendar_common.formatDateForProperty(this._dateValue) : lit.nothing}
776
+ min=${require_calendar_common.formatDateForProperty(min)}
777
+ max=${require_calendar_common.formatDateForProperty(max)}
778
+ default-value=${(0, lit_directives_if_defined_js.ifDefined)(this.defaultValue)}
779
+ locale=${(0, lit_directives_if_defined_js.ifDefined)(this.locale)}
766
780
  .popover=${"manual"}
767
781
  class="absolute left-(--floating-x,0) top-(--floating-y,0)"
768
782
  @toggle=${this._handleToggle}
@@ -771,148 +785,101 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
771
785
  ${this._autoUpdateController.refFloating()}
772
786
  >
773
787
  </daikin-calendar>
774
- ${// Activate auto update only when the tooltip is open.
775
- // TODO(DDS-1226): refactor here with CSS Anchor Positioning instead of using floating-ui
776
- guard_js.guard(
777
- [this.open],
778
- () => this._autoUpdateController.directive(
779
- {
780
- placement: "bottom-start",
781
- middleware: [
782
- dom.offset({ mainAxis: 0 }),
783
- dom.flip(),
784
- dom.shift(),
785
- dom.size({
786
- apply({ availableHeight, elements }) {
787
- Object.assign(elements.floating.style, {
788
- maxHeight: `${availableHeight}px`
789
- });
790
- }
791
- })
792
- ]
793
- },
794
- this.open
795
- )
796
- )}
797
- ${guard_js.guard(
798
- [this.open],
799
- () => this._focusTrapController.directive(this.open)
800
- )}`;
801
- }
802
- willUpdate(changedProperties) {
803
- if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) {
804
- this.open = this._open;
805
- }
806
- if (changedProperties.has("value")) {
807
- if (calendarCommon.tryParseDateFromProperty(this.value)) {
808
- const newDate = calendarCommon.parseDateFromProperty(this.value);
809
- this.error = calendarCommon.isDateOutOfRange(newDate, this._min, this._max);
810
- }
811
- }
812
- }
813
- updated(changedProperties) {
814
- var _a;
815
- if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) {
816
- (_a = this._autoUpdateController.floatingElement) == null ? void 0 : _a.togglePopover(this._open);
817
- }
818
- if (changedProperties.has("value")) {
819
- this.setFormValue(this.value);
820
- }
821
- }
822
- /**
823
- * This method is used by `daikin-input-group` to reflect it's attributes to this component.
824
- * @private
825
- */
826
- reflectInputGroup(inputGroup) {
827
- const isError = !inputGroup.disabled && !!inputGroup.error;
828
- this.disabled = !!inputGroup.disabled;
829
- this.readonly = !!inputGroup.readonly;
830
- this.required = !!inputGroup.required;
831
- this.error = isError;
832
- this._label = inputGroup.label;
833
- }
788
+ ${(0, lit_directives_guard_js.guard)([this.open], () => this._autoUpdateController.directive({
789
+ placement: "bottom-start",
790
+ middleware: [
791
+ (0, _floating_ui_dom.offset)({ mainAxis: 0 }),
792
+ (0, _floating_ui_dom.flip)(),
793
+ (0, _floating_ui_dom.shift)(),
794
+ (0, _floating_ui_dom.size)({ apply({ availableHeight, elements }) {
795
+ Object.assign(elements.floating.style, { maxHeight: `${availableHeight}px` });
796
+ } })
797
+ ]
798
+ }, this.open))}
799
+ ${(0, lit_directives_guard_js.guard)([this.open], () => this._focusTrapController.directive(this.open))}`;
800
+ }
801
+ willUpdate(changedProperties) {
802
+ if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) this.open = this._open;
803
+ if (changedProperties.has("value")) {
804
+ if (require_calendar_common.tryParseDateFromProperty(this.value)) {
805
+ const newDate = require_calendar_common.parseDateFromProperty(this.value);
806
+ this.error = require_calendar_common.isDateOutOfRange(newDate, this._min, this._max);
807
+ }
808
+ }
809
+ }
810
+ updated(changedProperties) {
811
+ if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) this._autoUpdateController.floatingElement?.togglePopover(this._open);
812
+ if (changedProperties.has("value")) this.setFormValue(this.value);
813
+ }
814
+ /**
815
+ * This method is used by `daikin-input-group` to reflect it's attributes to this component.
816
+ * @private
817
+ */
818
+ reflectInputGroup(inputGroup) {
819
+ const isError = !inputGroup.disabled && !!inputGroup.error;
820
+ this.disabled = !!inputGroup.disabled;
821
+ this.readonly = !!inputGroup.readonly;
822
+ this.required = !!inputGroup.required;
823
+ this.error = isError;
824
+ this._label = inputGroup.label;
825
+ }
834
826
  };
835
- exports.DaikinDatePicker.styles = lit.css`
836
- ${lit.unsafeCSS(tailwind.default)}
837
-
838
- :host {
839
- display: flex;
840
- align-items: center;
841
- height: var(--dds-input-height, 3rem);
842
- }
843
-
844
- :host([readonly]:not([disabled])) input {
845
- --color-base: var(--dds-color-common-surface-secondary);
846
- background-color: var(--dds-color-common-surface-secondary);
847
- }
848
-
849
- :host([readonly]:not([disabled])) input:hover,
850
- :host([readonly]:not([disabled])) input:active {
851
- --color-base: var(--dds-color-common-surface-secondary);
852
- background-color: var(--dds-color-common-surface-secondary);
853
- }
854
-
855
- :host([readonly]:not([disabled])) input:focus-visible {
856
- --color-base: var(--dds-color-common-border-focus);
857
- }
858
-
859
- :host([readonly][error]:not([disabled])) input,
860
- :host([readonly][error]:not([disabled])) input:hover,
861
- :host([readonly][error]:not([disabled])) input:active {
862
- --color-base: var(--dds-color-common-danger-default);
863
- }
864
-
865
- daikin-calendar[popover] {
866
- display: none;
867
- }
868
-
869
- daikin-calendar[popover]:popover-open {
870
- display: flex;
871
- }
872
- `;
873
- __decorateClass([
874
- ddsProperty.property({
875
- type: String,
876
- reflect: true,
877
- fallbackValue: exports.DaikinDatePicker.getDefaultPlaceholder
878
- })
879
- ], exports.DaikinDatePicker.prototype, "placeholder", 2);
880
- __decorateClass([
881
- ddsProperty.property({ type: String, reflect: true, fallbackValue: "1900-01-01" })
882
- ], exports.DaikinDatePicker.prototype, "min", 2);
883
- __decorateClass([
884
- ddsProperty.property({ type: String, reflect: true, fallbackValue: "2099-12-31" })
885
- ], exports.DaikinDatePicker.prototype, "max", 2);
886
- __decorateClass([
887
- ddsProperty.property({ type: Boolean, reflect: true })
888
- ], exports.DaikinDatePicker.prototype, "readonly", 2);
889
- __decorateClass([
890
- ddsProperty.property({ type: Boolean, reflect: true })
891
- ], exports.DaikinDatePicker.prototype, "disabled", 2);
892
- __decorateClass([
893
- ddsProperty.property({ type: Boolean, reflect: true })
894
- ], exports.DaikinDatePicker.prototype, "required", 2);
895
- __decorateClass([
896
- ddsProperty.property({ type: Boolean, reflect: true })
897
- ], exports.DaikinDatePicker.prototype, "error", 2);
898
- __decorateClass([
899
- ddsProperty.property({ type: Boolean, reflect: true })
900
- ], exports.DaikinDatePicker.prototype, "open", 2);
901
- __decorateClass([
902
- ddsProperty.property({ type: String, reflect: true, attribute: "default-value" })
903
- ], exports.DaikinDatePicker.prototype, "defaultValue", 2);
904
- __decorateClass([
905
- ddsProperty.property({ type: String, reflect: true })
906
- ], exports.DaikinDatePicker.prototype, "locale", 2);
907
- __decorateClass([
908
- ddsProperty.property({ type: String, reflect: true, attribute: "input-locale" })
909
- ], exports.DaikinDatePicker.prototype, "inputLocale", 2);
910
- __decorateClass([
911
- decorators_js.state()
912
- ], exports.DaikinDatePicker.prototype, "_label", 2);
913
- __decorateClass([
914
- decorators_js.state()
915
- ], exports.DaikinDatePicker.prototype, "_currentSelection", 2);
916
- exports.DaikinDatePicker = __decorateClass([
917
- decorators.ddsElement("daikin-date-picker")
918
- ], exports.DaikinDatePicker);
827
+ require_decorate.default([require_dds_property.property({
828
+ type: String,
829
+ reflect: true,
830
+ fallbackValue: DaikinDatePicker.getDefaultPlaceholder
831
+ })], DaikinDatePicker.prototype, "placeholder", void 0);
832
+ require_decorate.default([require_dds_property.property({
833
+ type: String,
834
+ reflect: true,
835
+ fallbackValue: "1900-01-01"
836
+ })], DaikinDatePicker.prototype, "min", void 0);
837
+ require_decorate.default([require_dds_property.property({
838
+ type: String,
839
+ reflect: true,
840
+ fallbackValue: "2099-12-31"
841
+ })], DaikinDatePicker.prototype, "max", void 0);
842
+ require_decorate.default([require_dds_property.property({
843
+ type: Boolean,
844
+ reflect: true
845
+ })], DaikinDatePicker.prototype, "readonly", void 0);
846
+ require_decorate.default([require_dds_property.property({
847
+ type: Boolean,
848
+ reflect: true
849
+ })], DaikinDatePicker.prototype, "disabled", void 0);
850
+ require_decorate.default([require_dds_property.property({
851
+ type: Boolean,
852
+ reflect: true
853
+ })], DaikinDatePicker.prototype, "required", void 0);
854
+ require_decorate.default([require_dds_property.property({
855
+ type: Boolean,
856
+ reflect: true
857
+ })], DaikinDatePicker.prototype, "error", void 0);
858
+ require_decorate.default([require_dds_property.property({
859
+ type: Boolean,
860
+ reflect: true
861
+ })], DaikinDatePicker.prototype, "open", void 0);
862
+ require_decorate.default([require_dds_property.property({
863
+ type: String,
864
+ reflect: true,
865
+ attribute: "default-value"
866
+ })], DaikinDatePicker.prototype, "defaultValue", void 0);
867
+ require_decorate.default([require_dds_property.property({
868
+ type: String,
869
+ reflect: true
870
+ })], DaikinDatePicker.prototype, "locale", void 0);
871
+ require_decorate.default([require_dds_property.property({
872
+ type: String,
873
+ reflect: true,
874
+ attribute: "input-locale"
875
+ })], DaikinDatePicker.prototype, "inputLocale", void 0);
876
+ require_decorate.default([(0, lit_decorators_js.state)()], DaikinDatePicker.prototype, "_label", void 0);
877
+ require_decorate.default([(0, lit_decorators_js.state)()], DaikinDatePicker.prototype, "_currentSelection", void 0);
878
+ DaikinDatePicker = require_decorate.default([require_decorators.ddsElement("daikin-date-picker")], DaikinDatePicker);
879
+ //#endregion
880
+ Object.defineProperty(exports, "DaikinDatePicker", {
881
+ enumerable: true,
882
+ get: function() {
883
+ return DaikinDatePicker;
884
+ }
885
+ });