@blukavantui/community 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/README.md +11 -5
  2. package/dist/build-audit.json +234 -44
  3. package/dist/checkbox.css +1 -0
  4. package/dist/checkbox.d.ts +2 -0
  5. package/dist/checkbox.js +1 -0
  6. package/dist/chunk-2BSBXDOT.js +1 -0
  7. package/dist/chunk-4LHIQROI.js +0 -0
  8. package/dist/chunk-5ENZVZGF.js +0 -0
  9. package/dist/chunk-6T677NSC.js +1 -0
  10. package/dist/chunk-7CEOCZ5L.js +0 -0
  11. package/dist/chunk-7DXFNK7C.js +1 -0
  12. package/dist/chunk-AL2ETLJV.js +1 -0
  13. package/dist/chunk-BN3PDE5G.js +0 -0
  14. package/dist/chunk-CNIIMGT3.js +0 -0
  15. package/dist/chunk-CSTCEBEK.js +1 -0
  16. package/dist/chunk-DRZM2AL3.js +0 -0
  17. package/dist/chunk-EOKNLCNS.js +1 -0
  18. package/dist/chunk-EPPETNK6.js +1 -0
  19. package/dist/chunk-EPPSBHZR.js +1 -0
  20. package/dist/chunk-EPZGLHPD.js +0 -0
  21. package/dist/chunk-FNX33PDD.js +0 -0
  22. package/dist/{chunk-NTFHNL7T.js → chunk-G6OW4OZM.js} +1 -1
  23. package/dist/chunk-GS67ZBLI.js +1 -0
  24. package/dist/chunk-HO6CYWED.js +0 -0
  25. package/dist/{chunk-6EHKOVZK.js → chunk-HVR2UDFX.js} +1 -1
  26. package/dist/chunk-IJ62ILKE.js +0 -0
  27. package/dist/chunk-IKYBFMHI.js +1 -0
  28. package/dist/chunk-IO22GWON.js +0 -0
  29. package/dist/chunk-KVOA55NE.js +0 -0
  30. package/dist/{chunk-MZBB5ROJ.js → chunk-LF2HELEZ.js} +1 -1
  31. package/dist/chunk-MYVLBALF.js +1 -0
  32. package/dist/{chunk-UEOCR2C3.js → chunk-OLDA73XG.js} +2 -2
  33. package/dist/chunk-RWBLICYX.js +0 -0
  34. package/dist/chunk-RYD6RHRX.js +0 -0
  35. package/dist/chunk-T45FJNEQ.js +1 -0
  36. package/dist/chunk-TZSX4OTV.js +1 -0
  37. package/dist/chunk-UN2SLVFG.js +1 -0
  38. package/dist/{chunk-GK3INPAZ.js → chunk-V2YPIC6Z.js} +1 -1
  39. package/dist/chunk-V4ZQLQ7L.js +0 -0
  40. package/dist/chunk-VAM3FPCS.js +0 -0
  41. package/dist/chunk-VJVFHL6P.js +0 -0
  42. package/dist/chunk-VSTKXZYY.js +0 -0
  43. package/dist/chunk-W3H7XTA7.js +1 -0
  44. package/dist/chunk-WG4US4JH.js +1 -0
  45. package/dist/chunk-WGSTNXAQ.js +0 -0
  46. package/dist/chunk-WJHCVECU.js +1 -0
  47. package/dist/chunk-XVMJG26X.js +1 -0
  48. package/dist/chunk-Y4AXWTAD.js +0 -0
  49. package/dist/chunk-YCLR3IE3.js +0 -0
  50. package/dist/chunk-YLFXSHKZ.js +0 -0
  51. package/dist/chunk-ZDGZGAYG.js +0 -0
  52. package/dist/columns2.css +1 -0
  53. package/dist/columns2.d.ts +2 -0
  54. package/dist/columns2.js +1 -0
  55. package/dist/columns3.css +1 -0
  56. package/dist/columns3.d.ts +2 -0
  57. package/dist/columns3.js +1 -0
  58. package/dist/columns4.css +1 -0
  59. package/dist/columns4.d.ts +2 -0
  60. package/dist/columns4.js +1 -0
  61. package/dist/command-palette.js +1 -1
  62. package/dist/component-motion.css +39 -0
  63. package/dist/component-motion.d.ts +45 -0
  64. package/dist/component-motion.js +1 -0
  65. package/dist/content.js +1 -1
  66. package/dist/core.css +8 -0
  67. package/dist/core.js +1 -1
  68. package/dist/data-motion.css +4 -0
  69. package/dist/data-motion.d.ts +23 -0
  70. package/dist/data-motion.js +1 -0
  71. package/dist/data.css +63 -0
  72. package/dist/data.d.ts +1 -0
  73. package/dist/data.js +1 -1
  74. package/dist/date-picker.css +5 -5
  75. package/dist/date-picker.js +1 -1
  76. package/dist/date-range-picker.css +5 -5
  77. package/dist/date-range-picker.js +1 -1
  78. package/dist/date-time-picker.css +5 -5
  79. package/dist/date-time-picker.js +1 -1
  80. package/dist/draft-components.json +77 -0
  81. package/dist/drawer.js +1 -1
  82. package/dist/essentials.css +8 -0
  83. package/dist/feedback.js +1 -1
  84. package/dist/form-field.css +1 -0
  85. package/dist/form-field.d.ts +2 -0
  86. package/dist/form-field.js +1 -0
  87. package/dist/form-layout/choice.d.ts +15 -0
  88. package/dist/form-layout/layout.d.ts +12 -0
  89. package/dist/form-layout/select.d.ts +3 -0
  90. package/dist/form-layout/shared.d.ts +21 -0
  91. package/dist/form-layout/table.d.ts +20 -0
  92. package/dist/form-layout/text.d.ts +3 -0
  93. package/dist/form-layout/types.d.ts +151 -0
  94. package/dist/form-layout.css +62 -0
  95. package/dist/form-layout.d.ts +12 -0
  96. package/dist/form-layout.js +1 -0
  97. package/dist/index.d.ts +1 -0
  98. package/dist/index.js +1 -1
  99. package/dist/inputs.css +83 -20
  100. package/dist/inputs.d.ts +8 -0
  101. package/dist/inputs.js +1 -1
  102. package/dist/layout.css +63 -0
  103. package/dist/layout.d.ts +3 -0
  104. package/dist/layout.js +1 -1
  105. package/dist/modal.js +1 -1
  106. package/dist/motion/action-feedback.d.ts +14 -0
  107. package/dist/motion/border-glow.d.ts +12 -0
  108. package/dist/motion/button.d.ts +11 -0
  109. package/dist/motion/component-settings.d.ts +51 -0
  110. package/dist/motion/controller.d.ts +33 -0
  111. package/dist/motion/effects.d.ts +30 -0
  112. package/dist/motion/feedback.d.ts +6 -0
  113. package/dist/motion/loading.d.ts +9 -0
  114. package/dist/motion/optional.d.ts +35 -0
  115. package/dist/motion/photo.d.ts +7 -0
  116. package/dist/motion/presence.d.ts +12 -0
  117. package/dist/motion/scene.d.ts +10 -0
  118. package/dist/motion/screen.d.ts +6 -0
  119. package/dist/motion/scroll-reveal.d.ts +13 -0
  120. package/dist/motion/settings-group.d.ts +14 -0
  121. package/dist/motion/stagger.d.ts +12 -0
  122. package/dist/motion/structure.d.ts +18 -0
  123. package/dist/motion/tabs.d.ts +19 -0
  124. package/dist/motion/tokens.d.ts +11 -0
  125. package/dist/motion/value.d.ts +21 -0
  126. package/dist/motion/view-transition.d.ts +14 -0
  127. package/dist/motion-enhancers.d.ts +12 -0
  128. package/dist/motion-enhancers.js +1 -0
  129. package/dist/motion-settings.d.ts +3 -0
  130. package/dist/motion-settings.js +1 -0
  131. package/dist/motion.css +1076 -0
  132. package/dist/motion.d.ts +20 -0
  133. package/dist/motion.js +1 -0
  134. package/dist/native/date-picker.js +1 -1
  135. package/dist/native/date-range-picker.js +1 -1
  136. package/dist/native/date-time-picker.js +1 -1
  137. package/dist/native/form-layout.js +1 -0
  138. package/dist/native/time-picker.js +1 -1
  139. package/dist/native-components/form-layout.d.ts +1 -0
  140. package/dist/native-motion-components.d.ts +3 -0
  141. package/dist/native-motion-content.d.ts +1 -0
  142. package/dist/native-motion-foundations.d.ts +3 -0
  143. package/dist/native-motion-layout.d.ts +3 -0
  144. package/dist/native-motion-pilot.d.ts +34 -0
  145. package/dist/native-motion.d.ts +71 -0
  146. package/dist/notification.js +1 -1
  147. package/dist/pagination.js +1 -1
  148. package/dist/radio-button.css +1 -0
  149. package/dist/radio-button.d.ts +2 -0
  150. package/dist/radio-button.js +1 -0
  151. package/dist/radio-group.css +1 -0
  152. package/dist/radio-group.d.ts +2 -0
  153. package/dist/radio-group.js +1 -0
  154. package/dist/select.css +1 -0
  155. package/dist/select.d.ts +2 -0
  156. package/dist/select.js +1 -0
  157. package/dist/sidebar.js +1 -1
  158. package/dist/sizes.json +416 -112
  159. package/dist/skeleton.css +8 -0
  160. package/dist/styles.css +1213 -20
  161. package/dist/switch.css +1 -0
  162. package/dist/switch.d.ts +2 -0
  163. package/dist/switch.js +1 -0
  164. package/dist/table.css +1 -0
  165. package/dist/table.d.ts +2 -0
  166. package/dist/table.js +1 -0
  167. package/dist/text-area.css +1 -0
  168. package/dist/text-area.d.ts +2 -0
  169. package/dist/text-area.js +1 -0
  170. package/dist/text-input.css +1 -0
  171. package/dist/text-input.d.ts +2 -0
  172. package/dist/text-input.js +1 -0
  173. package/dist/time-picker.css +5 -5
  174. package/dist/time-picker.js +1 -1
  175. package/dist/tree-view.js +1 -1
  176. package/dist/web-motion/chip-ripple.d.ts +6 -0
  177. package/dist/web-motion/choice-ripple.d.ts +6 -0
  178. package/dist/web-motion/content.d.ts +9 -0
  179. package/dist/web-motion/data-rows.d.ts +12 -0
  180. package/dist/web-motion/fields.d.ts +6 -0
  181. package/dist/web-motion/navigation.d.ts +6 -0
  182. package/dist/web-motion/notifications.d.ts +6 -0
  183. package/dist/web-motion/select-ripple.d.ts +6 -0
  184. package/dist/web-motion/statistic.d.ts +13 -0
  185. package/dist/web-motion/surfaces.d.ts +10 -0
  186. package/dist/web-motion/tree.d.ts +6 -0
  187. package/docs/FORM-LAYOUT-ESSENTIALS.md +122 -0
  188. package/docs/PUBLISHING.md +129 -25
  189. package/draft-components.json +77 -0
  190. package/edition.json +44 -7
  191. package/npm-shrinkwrap.json +2 -2
  192. package/package.json +102 -10
  193. package/scripts/build-motion-css.mjs +36 -0
  194. package/scripts/build-motion-styles.mjs +29 -0
  195. package/scripts/build.mjs +20 -8
  196. package/scripts/motion-entries.mjs +2 -0
  197. package/src/checkbox.ts +2 -0
  198. package/src/columns2.ts +2 -0
  199. package/src/columns3.ts +2 -0
  200. package/src/columns4.ts +2 -0
  201. package/src/component-motion.ts +101 -0
  202. package/src/data-motion.ts +60 -0
  203. package/src/data.ts +1 -0
  204. package/src/form-field.ts +2 -0
  205. package/src/form-layout/choice.ts +82 -0
  206. package/src/form-layout/layout.ts +40 -0
  207. package/src/form-layout/select.ts +97 -0
  208. package/src/form-layout/shared.ts +57 -0
  209. package/src/form-layout/table.ts +86 -0
  210. package/src/form-layout/text.ts +73 -0
  211. package/src/form-layout/types.ts +59 -0
  212. package/src/form-layout.ts +12 -0
  213. package/src/index.ts +2 -0
  214. package/src/inputs.ts +8 -0
  215. package/src/layout.ts +3 -0
  216. package/src/motion/action-feedback.ts +38 -0
  217. package/src/motion/border-glow.ts +41 -0
  218. package/src/motion/button.ts +56 -0
  219. package/src/motion/component-settings.ts +147 -0
  220. package/src/motion/controller.ts +191 -0
  221. package/src/motion/effects.ts +75 -0
  222. package/src/motion/feedback.ts +41 -0
  223. package/src/motion/loading.ts +40 -0
  224. package/src/motion/optional.ts +123 -0
  225. package/src/motion/photo.ts +19 -0
  226. package/src/motion/presence.ts +44 -0
  227. package/src/motion/scene.ts +103 -0
  228. package/src/motion/screen.ts +15 -0
  229. package/src/motion/scroll-reveal.ts +49 -0
  230. package/src/motion/settings-group.ts +28 -0
  231. package/src/motion/stagger.ts +26 -0
  232. package/src/motion/structure.ts +75 -0
  233. package/src/motion/tabs.ts +105 -0
  234. package/src/motion/tokens.ts +2 -0
  235. package/src/motion/value.ts +61 -0
  236. package/src/motion/view-transition.ts +57 -0
  237. package/src/motion-enhancers.ts +12 -0
  238. package/src/motion-settings.ts +3 -0
  239. package/src/motion.ts +20 -0
  240. package/src/native-components/form-layout.ts +21 -0
  241. package/src/native-motion-components.ts +76 -0
  242. package/src/native-motion-content.ts +10 -0
  243. package/src/native-motion-foundations.ts +56 -0
  244. package/src/native-motion-layout.ts +35 -0
  245. package/src/native-motion-pilot.ts +151 -0
  246. package/src/native-motion.ts +188 -0
  247. package/src/radio-button.ts +2 -0
  248. package/src/radio-group.ts +2 -0
  249. package/src/runtime/date-picker.js +21 -12
  250. package/src/runtime/date-range-picker.js +21 -12
  251. package/src/runtime/date-time-picker.js +21 -12
  252. package/src/runtime/time-picker.js +21 -12
  253. package/src/select.ts +2 -0
  254. package/src/switch.ts +2 -0
  255. package/src/table.ts +2 -0
  256. package/src/text-area.ts +2 -0
  257. package/src/text-input.ts +2 -0
  258. package/src/types.ts +0 -12
  259. package/src/web-motion/chip-ripple.ts +31 -0
  260. package/src/web-motion/choice-ripple.ts +30 -0
  261. package/src/web-motion/content.ts +74 -0
  262. package/src/web-motion/data-rows.ts +106 -0
  263. package/src/web-motion/fields.ts +52 -0
  264. package/src/web-motion/navigation.ts +62 -0
  265. package/src/web-motion/notifications.ts +67 -0
  266. package/src/web-motion/select-ripple.ts +23 -0
  267. package/src/web-motion/statistic.ts +23 -0
  268. package/src/web-motion/surfaces.ts +137 -0
  269. package/src/web-motion/tree.ts +44 -0
  270. package/styles/checkbox.css +1 -0
  271. package/styles/columns2.css +1 -0
  272. package/styles/columns3.css +1 -0
  273. package/styles/columns4.css +1 -0
  274. package/styles/component-motion.css +39 -0
  275. package/styles/data-motion.css +4 -0
  276. package/styles/date-picker.css +5 -5
  277. package/styles/date-range-picker.css +5 -5
  278. package/styles/date-time-picker.css +5 -5
  279. package/styles/form-field.css +1 -0
  280. package/styles/form-layout.css +62 -0
  281. package/styles/motion-optional.css +15 -0
  282. package/styles/motion-presets.css +92 -0
  283. package/styles/motion-tokens.css +6 -0
  284. package/styles/motion.css +125 -0
  285. package/styles/radio-button.css +1 -0
  286. package/styles/radio-group.css +1 -0
  287. package/styles/select.css +1 -0
  288. package/styles/skeleton.css +8 -0
  289. package/styles/switch.css +1 -0
  290. package/styles/table.css +1 -0
  291. package/styles/text-area.css +1 -0
  292. package/styles/text-input.css +1 -0
  293. package/styles/time-picker.css +5 -5
  294. package/test/component-motion-settings.test.mjs +35 -0
  295. package/test/content-overlay-motion.test.mjs +36 -0
  296. package/test/form-layout.test.mjs +28 -0
  297. package/test/isolation.test.mjs +2 -2
  298. package/test/motion.test.mjs +215 -0
  299. package/dist/chunk-2TCNAQC6.js +0 -1
  300. package/dist/chunk-CTLZIWMX.js +0 -1
  301. package/dist/chunk-MHHJZYXW.js +0 -1
  302. package/dist/chunk-XDYBNO4P.js +0 -1
  303. /package/dist/{chunk-H7ETPJVW.js → chunk-3PODK22R.js} +0 -0
  304. /package/dist/{chunk-SIU7DSOA.js → chunk-KBWB4OIF.js} +0 -0
package/README.md CHANGED
@@ -12,12 +12,14 @@ the [Community license](./LICENSE.txt).
12
12
 
13
13
  ## Install
14
14
 
15
+ Download the Community package from the official website and install the archive:
16
+
15
17
  ```sh
16
- npm install @blukavantui/community@1.0.1
18
+ npm install ./blukavantui-community-1.0.0.tgz
17
19
  ```
18
20
 
19
- Official downloadable archives remain an alternative for offline installations.
20
- See the website for release availability.
21
+ Website downloads are the current distribution channel. An npm registry
22
+ publication is a separate step; do not assume the package is available there.
21
23
 
22
24
  The package contains compiled ES modules, TypeScript declarations, styles and
23
25
  font assets. A separate `@types` package is not required. Use a browser application
@@ -102,9 +104,9 @@ user's browser. Rows need unique, nonempty string or number keys. Dates use
102
104
 
103
105
  | Community | Pro add-on |
104
106
  | --- | --- |
105
- | 55 components, including Basic Grid | Ten additional advanced components |
107
+ | 67 components, including Basic Grid | Ten additional advanced components |
106
108
  | Read-only grid with local sorting, filters and pagination | Full Grid with editing, advanced filtering and data-loading features |
107
- | Layouts, inputs, chat, dashboards, media and notifications | FormBuilder, FormRenderer, ImageAnnotator, VideoAnnotator, DataImportWizard, MatrixEditor, FilterBuilder, ProjectTimeline and Kanban |
109
+ | Layouts, inputs, chat, dashboards, media and notifications | FormBuilder, FormRenderer, ImageAnnotator, DataImportWizard, MatrixEditor, FilterBuilder, ProjectTimeline and Kanban |
108
110
  | Free personal and commercial application use | Separate commercial license |
109
111
 
110
112
  Pro implementations are excluded from this package. The Pro add-on works alongside
@@ -170,3 +172,7 @@ release commands and the distinction between preparation and publication.
170
172
  ### Sparkline web package
171
173
 
172
174
  Sparkline now lives in `@blukavantui/charts-community/sparkline`, with `@blukavantui/charts-community/sparkline.css`. New web applications should use that entry. The existing UI export is retained for backward compatibility; native OutSystems packaging is unchanged. The Charts Sparkline uses SVG and does not load ECharts.
175
+
176
+ ## Community 1.1.0
177
+
178
+ Includes Checkbox, TextInput, TextArea, RadioButton, RadioGroup, Switch, Select, FormField, Columns2, Columns3, Columns4 and Table. The separate OutSystems package includes 18 native Blocks, including editable InputGroup image slots and fixed column presets. Native bindings and events were checked in a compiled development consumer on 2026-10-24. Native packages are distributed separately from npm.
@@ -157,7 +157,63 @@
157
157
  "node_modules/ag-grid-community/dist/package/main.esm.mjs",
158
158
  "src/grid-spec.ts",
159
159
  "src/grid-basic.ts",
160
+ "src/form-layout/shared.ts",
161
+ "src/form-layout/choice.ts",
162
+ "src/checkbox.ts",
163
+ "src/form-layout/text.ts",
164
+ "src/text-input.ts",
165
+ "src/text-area.ts",
166
+ "src/radio-button.ts",
167
+ "src/radio-group.ts",
168
+ "src/switch.ts",
169
+ "src/form-layout/select.ts",
170
+ "src/select.ts",
171
+ "src/form-layout/layout.ts",
172
+ "src/form-field.ts",
173
+ "src/columns2.ts",
174
+ "src/columns3.ts",
175
+ "src/columns4.ts",
176
+ "src/form-layout/table.ts",
177
+ "src/table.ts",
178
+ "src/form-layout.ts",
160
179
  "src/index.ts",
180
+ "src/motion/tokens.ts",
181
+ "src/motion/effects.ts",
182
+ "src/motion/controller.ts",
183
+ "src/motion/view-transition.ts",
184
+ "src/motion/button.ts",
185
+ "src/motion/loading.ts",
186
+ "src/motion/presence.ts",
187
+ "src/motion/stagger.ts",
188
+ "src/motion/scroll-reveal.ts",
189
+ "src/motion/structure.ts",
190
+ "src/motion/feedback.ts",
191
+ "src/motion/value.ts",
192
+ "src/motion/scene.ts",
193
+ "src/motion/photo.ts",
194
+ "src/motion/border-glow.ts",
195
+ "src/web-motion/navigation.ts",
196
+ "src/motion/tabs.ts",
197
+ "src/motion/action-feedback.ts",
198
+ "src/motion/screen.ts",
199
+ "src/motion/optional.ts",
200
+ "src/motion.ts",
201
+ "src/motion/component-settings.ts",
202
+ "src/motion/settings-group.ts",
203
+ "src/motion-settings.ts",
204
+ "src/web-motion/data-rows.ts",
205
+ "src/web-motion/surfaces.ts",
206
+ "src/web-motion/content.ts",
207
+ "src/web-motion/statistic.ts",
208
+ "src/web-motion/tree.ts",
209
+ "src/web-motion/notifications.ts",
210
+ "src/web-motion/fields.ts",
211
+ "src/web-motion/chip-ripple.ts",
212
+ "src/web-motion/choice-ripple.ts",
213
+ "src/web-motion/select-ripple.ts",
214
+ "src/motion-enhancers.ts",
215
+ "src/component-motion.ts",
216
+ "src/data-motion.ts",
161
217
  "src/core.ts",
162
218
  "src/layout.ts",
163
219
  "src/inputs.ts",
@@ -168,6 +224,7 @@
168
224
  "src/native-base.ts",
169
225
  "src/native.ts",
170
226
  "src/native-grid.ts",
227
+ "src/native-components/form-layout.ts",
171
228
  "src/native-components/font-provider.ts",
172
229
  "src/native-components/splitter.ts",
173
230
  "src/native-components/app-layout.ts",
@@ -213,133 +270,189 @@
213
270
  "src/native-components/logo-cloud.ts"
214
271
  ],
215
272
  "outputs": [
273
+ "dist/data.js",
274
+ "dist/content.js",
216
275
  "dist/grid.js",
276
+ "dist/collection-layout.js",
277
+ "dist/hero-section.js",
217
278
  "dist/split-section.js",
218
279
  "dist/logo-cloud.js",
219
280
  "dist/core.js",
220
281
  "dist/layout.js",
221
282
  "dist/inputs.js",
222
283
  "dist/feedback.js",
223
- "dist/data.js",
224
- "dist/content.js",
284
+ "dist/video-lightbox.js",
285
+ "dist/media-image.js",
225
286
  "dist/media-card.js",
226
287
  "dist/image-compare.js",
227
288
  "dist/text-highlight.js",
228
289
  "dist/content-carousel.js",
229
290
  "dist/profile-card.js",
230
291
  "dist/quote-card.js",
231
- "dist/collection-layout.js",
232
- "dist/hero-section.js",
292
+ "dist/pagination.js",
293
+ "dist/statistic.js",
233
294
  "dist/qr-code.js",
234
295
  "dist/descriptions.js",
235
296
  "dist/sparkline.js",
236
297
  "dist/dashboard-canvas.js",
237
298
  "dist/dashboard-panel.js",
238
299
  "dist/video-player.js",
239
- "dist/video-lightbox.js",
240
- "dist/media-image.js",
300
+ "dist/notification.js",
301
+ "dist/tour.js",
241
302
  "dist/notification-center.js",
242
303
  "dist/chat.js",
243
304
  "dist/chat-widget.js",
244
305
  "dist/float-button.js",
245
306
  "dist/tree-view.js",
246
307
  "dist/timeline.js",
247
- "dist/pagination.js",
248
- "dist/statistic.js",
308
+ "dist/cascader.js",
309
+ "dist/date-picker.js",
249
310
  "dist/time-picker.js",
250
311
  "dist/date-time-picker.js",
251
312
  "dist/date-range-picker.js",
252
313
  "dist/command-palette.js",
253
314
  "dist/modal.js",
254
315
  "dist/drawer.js",
255
- "dist/notification.js",
256
- "dist/tour.js",
316
+ "dist/sidebar.js",
317
+ "dist/splitter.js",
257
318
  "dist/app-layout.js",
258
319
  "dist/page-layout.js",
259
320
  "dist/shape-mask.js",
260
321
  "dist/tree-select.js",
261
322
  "dist/upload-manager.js",
262
323
  "dist/transfer-list.js",
263
- "dist/cascader.js",
264
- "dist/date-picker.js",
324
+ "dist/chip.js",
325
+ "dist/chip-group.js",
265
326
  "dist/card.js",
266
327
  "dist/skeleton.js",
267
328
  "dist/empty-state.js",
268
329
  "dist/font-provider.js",
269
330
  "dist/breadcrumbs.js",
270
331
  "dist/page-header.js",
271
- "dist/sidebar.js",
272
- "dist/splitter.js",
332
+ "dist/select.js",
333
+ "dist/form-field.js",
334
+ "dist/columns2.js",
335
+ "dist/columns3.js",
336
+ "dist/columns4.js",
337
+ "dist/table.js",
338
+ "dist/button.js",
339
+ "dist/badge.js",
340
+ "dist/component-motion.js",
341
+ "dist/data-motion.js",
342
+ "dist/checkbox.js",
343
+ "dist/text-input.js",
344
+ "dist/text-area.js",
345
+ "dist/radio-button.js",
346
+ "dist/radio-group.js",
347
+ "dist/switch.js",
273
348
  "dist/index.js",
349
+ "dist/chunk-75BQYII5.js",
350
+ "dist/chunk-CZXYS6CY.js",
274
351
  "dist/chunk-4RM3B4L7.js",
275
352
  "dist/chunk-NB5PGEDY.js",
353
+ "dist/chunk-W27NAI62.js",
354
+ "dist/chunk-IIKSMXQE.js",
276
355
  "dist/chunk-3ZS5YITP.js",
277
356
  "dist/chunk-SEJUHKS5.js",
278
357
  "dist/chunk-WHA6UO5X.js",
279
358
  "dist/chunk-KR3UUTB2.js",
280
359
  "dist/chunk-VBRSAI3K.js",
281
360
  "dist/chunk-IHKCC6WJ.js",
282
- "dist/chunk-75BQYII5.js",
283
- "dist/chunk-CZXYS6CY.js",
361
+ "dist/chunk-4LHIQROI.js",
362
+ "dist/chunk-AICXIQKD.js",
284
363
  "dist/chunk-RGTLYBOY.js",
285
364
  "dist/chunk-J7BV4KHG.js",
286
365
  "dist/chunk-W4SW4RWX.js",
287
366
  "dist/chunk-BLDXIO7P.js",
288
367
  "dist/chunk-KBOMPMSI.js",
289
368
  "dist/chunk-U4ZP73V4.js",
290
- "dist/chunk-W27NAI62.js",
291
- "dist/chunk-IIKSMXQE.js",
369
+ "dist/chunk-VAM3FPCS.js",
370
+ "dist/chunk-LGJVLEAH.js",
292
371
  "dist/chunk-MBC4UVTS.js",
293
372
  "dist/chunk-T45UAWNI.js",
294
373
  "dist/chunk-7HXX66DB.js",
295
374
  "dist/chunk-6EJIIQNF.js",
296
- "dist/chunk-H7ETPJVW.js",
375
+ "dist/chunk-ZDGZGAYG.js",
297
376
  "dist/chunk-MCVO25PZ.js",
298
- "dist/chunk-NTFHNL7T.js",
299
- "dist/chunk-AICXIQKD.js",
300
- "dist/chunk-XDYBNO4P.js",
301
- "dist/chunk-2TCNAQC6.js",
302
- "dist/chunk-CTLZIWMX.js",
303
- "dist/chunk-MZBB5ROJ.js",
304
- "dist/chunk-6EHKOVZK.js",
305
- "dist/chunk-GK3INPAZ.js",
306
- "dist/chunk-UEOCR2C3.js",
307
- "dist/chunk-LGJVLEAH.js",
377
+ "dist/chunk-2MQNFEGJ.js",
378
+ "dist/chunk-KVOA55NE.js",
379
+ "dist/chunk-V4ZQLQ7L.js",
380
+ "dist/chunk-Y4AXWTAD.js",
381
+ "dist/chunk-WGSTNXAQ.js",
382
+ "dist/chunk-CNIIMGT3.js",
383
+ "dist/chunk-DRZM2AL3.js",
384
+ "dist/chunk-VSTKXZYY.js",
385
+ "dist/chunk-7CEOCZ5L.js",
386
+ "dist/chunk-K2P2BHV5.js",
308
387
  "dist/chunk-XIOI5PKM.js",
309
388
  "dist/chunk-Y4TCT2K6.js",
310
389
  "dist/chunk-3LWXPCWY.js",
311
390
  "dist/chunk-C3CLLZH2.js",
312
391
  "dist/chunk-4USJBOSC.js",
313
392
  "dist/chunk-GEG3TNB4.js",
314
- "dist/chunk-2MQNFEGJ.js",
315
- "dist/chunk-MHHJZYXW.js",
393
+ "dist/chunk-TIXCZTJ7.js",
394
+ "dist/chunk-RZ5YSY7Y.js",
316
395
  "dist/chunk-MSMNEIWA.js",
317
396
  "dist/chunk-UUZ4HU7L.js",
318
397
  "dist/chunk-2HFI6CC6.js",
319
398
  "dist/chunk-6XOMFIPU.js",
320
399
  "dist/chunk-U73BNLZ3.js",
321
400
  "dist/chunk-LJ4O6YTN.js",
322
- "dist/chunk-SIU7DSOA.js",
323
- "dist/chunk-K2P2BHV5.js",
401
+ "dist/chunk-7KMRDQZG.js",
402
+ "dist/chunk-Y4WEMSE4.js",
403
+ "dist/chunk-G6OW4OZM.js",
404
+ "dist/chunk-OLDA73XG.js",
405
+ "dist/chunk-3PODK22R.js",
406
+ "dist/chunk-2BSBXDOT.js",
407
+ "dist/chunk-EPPETNK6.js",
408
+ "dist/chunk-W3H7XTA7.js",
409
+ "dist/chunk-XVMJG26X.js",
410
+ "dist/chunk-LF2HELEZ.js",
411
+ "dist/chunk-HVR2UDFX.js",
412
+ "dist/chunk-V2YPIC6Z.js",
413
+ "dist/chunk-KBWB4OIF.js",
324
414
  "dist/grid-basic.js",
325
415
  "dist/chunk-H5IEGCAK.js",
326
416
  "dist/essentials.js",
327
- "dist/theme.js",
328
- "dist/chunk-64LOE3FU.js",
329
- "dist/button.js",
330
- "dist/chunk-7KMRDQZG.js",
331
- "dist/badge.js",
332
- "dist/chunk-Y4WEMSE4.js",
333
- "dist/chip.js",
334
- "dist/chunk-TIXCZTJ7.js",
335
- "dist/chip-group.js",
336
- "dist/chunk-RZ5YSY7Y.js",
337
417
  "dist/chunk-O3MRWAI5.js",
338
418
  "dist/chunk-MEEQNPGM.js",
339
419
  "dist/chunk-5TEIXA4R.js",
420
+ "dist/theme.js",
421
+ "dist/chunk-64LOE3FU.js",
422
+ "dist/form-layout.js",
423
+ "dist/chunk-5ENZVZGF.js",
424
+ "dist/chunk-BN3PDE5G.js",
425
+ "dist/chunk-VJVFHL6P.js",
426
+ "dist/chunk-IJ62ILKE.js",
427
+ "dist/chunk-YLFXSHKZ.js",
428
+ "dist/chunk-MYVLBALF.js",
429
+ "dist/chunk-RYD6RHRX.js",
430
+ "dist/chunk-UN2SLVFG.js",
431
+ "dist/chunk-T45FJNEQ.js",
432
+ "dist/chunk-HO6CYWED.js",
433
+ "dist/chunk-RWBLICYX.js",
434
+ "dist/chunk-YCLR3IE3.js",
435
+ "dist/chunk-AL2ETLJV.js",
436
+ "dist/chunk-FNX33PDD.js",
437
+ "dist/chunk-IO22GWON.js",
438
+ "dist/chunk-EPZGLHPD.js",
439
+ "dist/chunk-TZSX4OTV.js",
440
+ "dist/chunk-EOKNLCNS.js",
441
+ "dist/motion.js",
442
+ "dist/chunk-7DXFNK7C.js",
340
443
  "dist/chunk-SDMH2EVD.js",
444
+ "dist/motion-settings.js",
445
+ "dist/chunk-GS67ZBLI.js",
446
+ "dist/chunk-EPPSBHZR.js",
447
+ "dist/chunk-CSTCEBEK.js",
448
+ "dist/motion-enhancers.js",
449
+ "dist/chunk-WJHCVECU.js",
450
+ "dist/chunk-WG4US4JH.js",
451
+ "dist/chunk-IKYBFMHI.js",
452
+ "dist/chunk-6T677NSC.js",
341
453
  "dist/bluui-community.js",
342
454
  "dist/bluui-community-grid.js",
455
+ "dist/native/form-layout.js",
343
456
  "dist/native/font-provider.js",
344
457
  "dist/native/splitter.js",
345
458
  "dist/native/app-layout.js",
@@ -384,5 +497,82 @@
384
497
  "dist/native/split-section.js",
385
498
  "dist/native/logo-cloud.js"
386
499
  ],
387
- "sourcePolicy": "Independent Community sources and selected MIT engine modules only. The ten Pro components are excluded."
500
+ "sourcePolicy": "Independent Community sources and selected MIT engine modules only. The ten Pro components are excluded.",
501
+ "draft": {
502
+ "status": "local draft — not published; native models validated, compiled consumer testing pending",
503
+ "components": [
504
+ {
505
+ "name": "Checkbox",
506
+ "slug": "checkbox",
507
+ "factory": "createCheckbox",
508
+ "group": "inputs"
509
+ },
510
+ {
511
+ "name": "TextInput",
512
+ "slug": "text-input",
513
+ "factory": "createTextInput",
514
+ "group": "inputs"
515
+ },
516
+ {
517
+ "name": "TextArea",
518
+ "slug": "text-area",
519
+ "factory": "createTextArea",
520
+ "group": "inputs"
521
+ },
522
+ {
523
+ "name": "RadioButton",
524
+ "slug": "radio-button",
525
+ "factory": "createRadioButton",
526
+ "group": "inputs"
527
+ },
528
+ {
529
+ "name": "RadioGroup",
530
+ "slug": "radio-group",
531
+ "factory": "createRadioGroup",
532
+ "group": "inputs"
533
+ },
534
+ {
535
+ "name": "Switch",
536
+ "slug": "switch",
537
+ "factory": "createSwitch",
538
+ "group": "inputs"
539
+ },
540
+ {
541
+ "name": "Select",
542
+ "slug": "select",
543
+ "factory": "createSelect",
544
+ "group": "inputs"
545
+ },
546
+ {
547
+ "name": "FormField",
548
+ "slug": "form-field",
549
+ "factory": "createFormField",
550
+ "group": "inputs"
551
+ },
552
+ {
553
+ "name": "Columns2",
554
+ "slug": "columns2",
555
+ "factory": "createColumns2",
556
+ "group": "layout"
557
+ },
558
+ {
559
+ "name": "Columns3",
560
+ "slug": "columns3",
561
+ "factory": "createColumns3",
562
+ "group": "layout"
563
+ },
564
+ {
565
+ "name": "Columns4",
566
+ "slug": "columns4",
567
+ "factory": "createColumns4",
568
+ "group": "layout"
569
+ },
570
+ {
571
+ "name": "Table",
572
+ "slug": "table",
573
+ "factory": "createTable",
574
+ "group": "data"
575
+ }
576
+ ]
577
+ }
388
578
  }
@@ -0,0 +1 @@
1
+ @import './form-layout.css';
@@ -0,0 +1,2 @@
1
+ export { createCheckbox } from './form-layout/choice.js';
2
+ export type * from './form-layout/types.js';
@@ -0,0 +1 @@
1
+ import"./chunk-HO6CYWED.js";import{a}from"./chunk-TZSX4OTV.js";import"./chunk-EOKNLCNS.js";export{a as createCheckbox};
@@ -0,0 +1 @@
1
+ import{a as X}from"./chunk-MEEQNPGM.js";import{c as G,d as Q}from"./chunk-5TEIXA4R.js";var C=G("advanced",()=>({instances:new Map,serial:0})),fe=()=>`blu-advanced-${++C.serial}`;function c(e,t,a){let r=document.createElement(e);return t&&(r.className=t),a!==void 0&&(r.textContent=String(a)),r}function u(e,t,a){return a==null?e.removeAttribute(t):e.setAttribute(t,String(a)),e}function x(e,t,a="blu-picker__button"){let r=c("button",a,e);return r.type="button",r.addEventListener("click",t),r}function I(e,t,...a){if(!e.dead)try{Promise.resolve(e.events[t]?.(...a)).catch(r=>K(e,r))}catch(r){K(e,r)}}function K(e,t){if(e.dead)return;let a=t?.message||String(t);e.notice.textContent=a,e.lastError!==a&&(e.lastError=a,I(e,"Error",a))}function Z(e,t){let a=typeof e=="string"?JSON.parse(e||"[]"):e||[];if(!Array.isArray(a))throw Error(t+" must be a list.");return a}function me(e,t,a){let r=o=>{let n=C.instances.get(o);!n||n.kind!==e||(n.dead=!0,n.dispose?.(),n.root.remove(),n.notice.remove(),n.host._bluAdvancedOwner===o&&delete n.host._bluAdvancedOwner,C.instances.delete(o))};return Q(e,()=>({sync(o,n={},m={},h){let l=document.getElementById(o);if(!l)return e+" host was not found.";let g=h||o,p=C.instances.get(g);p&&(p.host!==l||p.kind!==e)&&(p.destroy(p.key),p=null);let i=C.instances.get(l._bluAdvancedOwner);if(i&&i!==p&&i.destroy(i.key),!p){p={key:g,host:l,kind:e,uid:fe(),options:n,events:m,dead:!1,destroy:r},p.root=c("div"),p.notice=u(c("div","blu-advanced-sr"),"role","status"),u(p.notice,"aria-atomic","true"),l.append(p.root,p.notice),C.instances.set(g,p),l._bluAdvancedOwner=g;try{t(p)}catch(f){throw r(g),f}}p.options=n,p.events=m;try{return a(p),l.dataset.bluRuntimeReady="true",""}catch(f){return K(p,f),f.message||String(f)}},destroy:r}))}var v=e=>String(e).padStart(2,"0");function q(e){return String(e.getFullYear()).padStart(4,"0")+"-"+v(e.getMonth()+1)+"-"+v(e.getDate())}function b(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e));if(!t||+t[1]<1||+t[1]>9999)return null;let a=new Date(2e3,+t[2]-1,+t[3],12);return a.setFullYear(+t[1]),q(a)===e?a:null}function L(e){let t=/^(\d{2}):(\d{2})$/.exec(String(e));return t&&+t[1]<24&&+t[2]<60?t[1]+":"+t[2]:null}function ee(e,t="YYYY-MM-DD"){if(e=String(e).trim(),!e)return"";let a=e;if(t!=="YYYY-MM-DD"){let r=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/.exec(e);if(!r)return null;a=r[3]+"-"+v(+(t==="DD/MM/YYYY"?r[2]:r[1]))+"-"+v(+(t==="DD/MM/YYYY"?r[1]:r[2]))}return b(a)?a:null}function te(e,t="YYYY-MM-DD"){if(!e)return"";let a=e.split("-");return t==="MM/DD/YYYY"?a[1]+"/"+a[2]+"/"+a[0]:t==="DD/MM/YYYY"?a[2]+"/"+a[1]+"/"+a[0]:e}function he(e,t=24){if(e=String(e).trim(),!e)return"";let a=/^(\d{1,2}):(\d{2})(?:\s*(AM|PM))?$/i.exec(e);return!a||+a[2]>59||(t===12?!a[3]||+a[1]<1||+a[1]>12:a[3]||+a[1]>23)?null:v(a[3]?+a[1]%12+(a[3].toUpperCase()==="PM"?12:0):+a[1])+":"+a[2]}function O(e,t=24){if(!e)return"";let[a,r]=e.split(":").map(Number);return t===12?(a%12||12)+":"+v(r)+" "+(a<12?"AM":"PM"):v(a)+":"+v(r)}function ae(e,t){let a=b(e);return a.setDate(a.getDate()+t),q(a)}function ie(e,t){let a=b(e),r=a.getDate();return a.setDate(1),a.setMonth(a.getMonth()+t),a.setDate(Math.min(r,new Date(a.getFullYear(),a.getMonth()+1,0).getDate())),q(a)}function ge(e,t){let a=b(e),r=b(t);return Math.round((r.getTime()-a.getTime())/864e5)}function z(e,t,a,r){return b(e)?t&&e<t?"Choose "+t+" or later.":a&&e>a?"Choose "+a+" or earlier.":r?.has(e)?"This date is unavailable.":"":"Enter a real calendar date."}function oe(e,t,a={}){if(!e||!t)return"Choose both a start date and an end date.";let r=z(e,a.Min,a.Max,a.disabled)||z(t,a.Min,a.Max,a.disabled);if(r)return r;if(t<e)return"End date must be on or after start date.";let o=ge(e,t)+1;if(a.MinRangeDays&&o<a.MinRangeDays)return"Choose at least "+a.MinRangeDays+" days.";if(a.MaxRangeDays&&o>a.MaxRangeDays)return"Choose no more than "+a.MaxRangeDays+" days.";if(a.disabled){for(let n of a.disabled)if(n>=e&&n<=t)return"The range includes an unavailable date."}return""}var ye=["YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY"],N=()=>q(new Date),S=e=>String(e||"").split("T")[0],F=e=>String(e||"").split("T")[1]||"";function w(e,t){let a=b(t);return a?new Intl.DateTimeFormat(e.locale,{dateStyle:"full"}).format(a):t}function B(e,t,a=e.fields){e.error.textContent=t,e.error.hidden=!t||e.isOpen,e.dialogError&&(e.dialogError.textContent=e.isOpen?t:"");for(let o of e.fields)u(o.input,"aria-invalid",t&&a.includes(o)?"true":null);let r=!t;(e.valid!==r||e.validationMessage!==t)&&(e.valid=r,e.validationMessage=t,I(e,"ValidationChanged",r,t))}function V(e,t){return z(t,S(e.options.Min),S(e.options.Max),e.disabledDates)}function be(e,t,a){if(!L(t))return"Enter a valid time.";let r=e.dateTime?a+"T"+t:t,o=e.options.Min,n=e.options.Max;return o&&r<o?"Choose "+o+" or later.":n&&r>n?"Choose "+n+" or earlier.":""}function de(e,t,a,r){if(e.range)return!t&&!a&&!e.options.IsRequired?"":oe(t,a,{...e.options,disabled:e.disabledDates});if(!t&&!r)return e.options.IsRequired?"A "+(e.timeOnly?"time":"date")+" is required.":"";if(!e.timeOnly){if(!t)return"Choose a date.";let o=V(e,t);if(o)return o}return e.hasTime?r?be(e,r,t):"Choose a time.":""}function le(e){e.timeOnly?e.fields[0].input.value=O(e.value,e.cycle):(e.fields[0].input.value=te(e.range?e.start:S(e.value),e.format),e.range&&(e.fields[1].input.value=te(e.end,e.format)),e.dateTime&&(e.fields[1].input.value=O(F(e.value),e.cycle)));let t=e.range?[e.start,e.end].filter(Boolean).join(" to "):e.value;e.typedDirty=!1,e.clearButton.hidden=e.options.ShowClear===!1||!t}function k(e,t=!0){if(e.isOpen){e.isOpen=!1,e.dialog.hidePopover&&e.dialog.matches(":popover-open")&&e.dialog.hidePopover(),e.dialog.hidden=!0,e.error.hidden=!e.validationMessage;for(let{input:a}of e.fields)u(a,"aria-expanded","false");t&&e.anchor?.isConnected&&!e.anchor.disabled&&e.anchor.focus({preventScroll:!0}),I(e,"OpenChanged",!1)}}function Y(e){if(!e.isOpen||e.dead)return;let t=e.anchor.getBoundingClientRect(),a=window.visualViewport,r=a?.offsetLeft||0,o=a?.offsetTop||0,n=a?.width||document.documentElement.clientWidth,m=a?.height||window.innerHeight,h=6,l=8;if(t.bottom<=o||t.top>=o+m||t.right<=r||t.left>=r+n){k(e,!1);return}let g=e.dialog,p=Math.min(e.timeOnly?300:344,n-l*2);g.dataset.compact=String(m<420),g.style.width=p+"px",g.style.maxHeight="none";let i=Math.max(0,o+m-l-t.bottom-h),f=Math.max(0,t.top-h-o-l),d=g.scrollHeight+2,D=d>i&&f>i,E=Math.max(0,m-l*2);g.style.maxHeight=E+"px";let y=e.fieldRow.getBoundingClientRect();g.style.left=Math.max(r+l,Math.min(y.left+(y.width-p)/2,r+n-l-p))+"px";let M=D?t.top-h-d:t.bottom+h;g.style.top=Math.max(o+l,Math.min(M,o+m-l-Math.min(d,E)))+"px",g.dataset.placement=D?"top":"bottom"}function ne(e){(e.timeOnly||e.dateTime&&e.anchor===e.fields[1].input?e.hours:e.calendar.querySelector('[data-date="'+e.focusDate+'"]')||e.monthSelect).focus({preventScroll:!0})}function H(e,t,a,r,o=!1){let n=de(e,t,a,r);if(B(e,n),n)return e.dialogError.textContent=n,!1;let m=document.activeElement===e.clearButton&&!t&&!a&&!r,h=e.timeOnly?r:e.dateTime?t?t+"T"+r:"":t,l=e.range?e.start!==t||e.end!==a:e.value!==h;return e.range?(e.start=t,e.end=a,e.options.StartDate=t,e.options.EndDate=a):(e.value=h,e.options.Value=h),e.inputSignature=JSON.stringify(e.range?[e.start,e.end]:[e.value]),le(e),o||k(e),m&&e.fields[0].input.focus({preventScroll:!0}),e.notice.textContent=e.range?t?w(e,t)+" to "+w(e,a):"Date range cleared":h?"Selected "+(e.timeOnly?O(h,e.cycle):w(e,t)+(e.hasTime?" at "+O(r,e.cycle):"")):"Selection cleared",l&&(e.range?I(e,"Change",t,a):I(e,"Change",h)),!0}function re(e,t=!1){if(e.options.IsDisabled||e.options.IsReadOnly)return;let a=e.timeOnly?"":ee(e.fields[0].input.value,e.format),r=e.range?ee(e.fields[1].input.value,e.format):"",o=e.hasTime?he(e.fields[e.timeOnly?0:1].input.value,e.cycle):"";if(a===null||r===null){B(e,"Enter a real date using "+e.format+".");return}if(o===null){B(e,e.cycle===12?"Enter a time such as 9:15 AM.":"Enter a time such as 14:30.");return}H(e,a,r,o,t)&&t&&(e.draftStart=a,e.draftEnd=r,e.draftTime=o,a&&(e.focusDate=a,e.month=a.slice(0,7)),_(e),J(e),s(e),Y(e))}function De(e){let t=e.range||e.dateTime?2:1;e.fields=[];for(let a=0;a<t;a++){let r=c("div","blu-picker__field"),o=c("label"),n=c("input","blu-picker__input");n.type="text",n.id=e.uid+"-input-"+a,o.htmlFor=n.id,n.autocomplete="off",n.spellcheck=!1,u(n,"role","combobox"),u(n,"aria-haspopup","dialog"),u(n,"aria-expanded","false"),u(n,"aria-autocomplete","none"),u(n,"aria-controls",e.uid+"-dialog"),u(n,"aria-describedby",e.uid+"-hint "+e.uid+"-error "+e.uid+"-keyboard"),n.addEventListener("input",()=>{e.typedDirty=!0}),n.addEventListener("change",()=>re(e,e.isOpen)),n.addEventListener("pointerdown",l=>{l.pointerType==="mouse"&&(e.touchOpen=!1,n.inputMode="text"),(l.pointerType==="touch"||l.pointerType==="pen")&&e.manualInput!==n&&!e.options.IsDisabled&&!e.options.IsReadOnly&&(l.preventDefault(),e.touchOpen=!0,n.inputMode="none",P(e,n,!0))}),n.addEventListener("click",l=>{e.manualInput!==n&&(e.touchOpen?(l.preventDefault(),P(e,n,!0)):P(e,n,!1))}),n.addEventListener("blur",()=>{e.manualInput===n&&(e.manualInput=null)}),n.addEventListener("keydown",l=>{l.ctrlKey||l.metaKey||l.shiftKey||(l.key==="ArrowDown"&&(l.preventDefault(),P(e,n,!0)),l.key==="Enter"&&(l.preventDefault(),!e.isOpen&&!e.typedDirty?P(e,n,!0):re(e)),l.key==="Tab"&&k(e,!1))});let m=c("div","blu-picker__field-control"),h=u(c("span","blu-picker__field-icon"),"aria-hidden","true");h.innerHTML=e.timeOnly||e.dateTime&&a?'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"><circle cx="12" cy="12" r="8.5"/><path d="M12 7v5l3 2"/></svg>':'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"><rect x="4" y="5" width="16" height="16" rx="3"/><path d="M8 3v4m8-4v4M4 10h16m-11 4h2m3 0h2m-7 3h2"/></svg>',m.append(n,h),r.append(o,m),e.fields.push({field:r,label:o,input:n}),e.fieldRow.append(r)}}function T(e,t,a){let r=c("option","",a);return r.value=String(t),e.append(r),r}function A(e,t,a){let r=c("label","blu-picker__select-field"),o=c("span","blu-picker__select-caption",t),n=c("select","blu-picker__input");return n.id=e.uid+"-"+a,r.append(o,n),{wrap:r,select:n}}function ve(e){if(e.button!==0)return;let t=e.target.closest?.("button");!t||t.disabled||(e.preventDefault(),t.focus({preventScroll:!0}))}function R(e,t){let a=S(e.options.Min)||"0001-01-01",r=S(e.options.Max)||"9999-12-31";t=t<a?a:t>r?r:t,b(t)&&(e.focusDate=t,e.month=t.slice(0,7),_(e),e.calendar.querySelector('[data-date="'+t+'"]')?.focus({preventScroll:!0}))}function Se(e,t,a){if(t.altKey||t.ctrlKey||t.metaKey)return;let r,o={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};if(t.key in o)r=ae(a,o[t.key]);else if(t.key==="Home"||t.key==="End"){let n=(b(a).getDay()-e.firstDay+7)%7;r=ae(a,t.key==="Home"?-n:6-n)}else(t.key==="PageUp"||t.key==="PageDown")&&(r=ie(a,(t.key==="PageUp"?-1:1)*(t.shiftKey?12:1)));r&&(t.preventDefault(),R(e,r))}function ce(e,t){if(!V(e,t)){if(e.dialogError.textContent="",e.focusDate=t,e.range?e.rangeNext==="start"?(e.draftStart=t,e.draftEnd="",e.rangeNext="end"):(t<e.draftStart?(e.draftEnd=e.draftStart,e.draftStart=t):e.draftEnd=t,e.rangeNext="start"):e.draftStart=t,!e.hasTime&&!e.range){H(e,t,"","");return}_(e),e.calendar.querySelector('[data-date="'+t+'"]')?.focus({preventScroll:!0}),s(e)}}function s(e){let t=e.range?e.draftStart?w(e,e.draftStart)+(e.draftEnd?" to "+w(e,e.draftEnd):" \u2014 choose an end date"):"Choose a start date":e.hasTime?(e.draftStart?w(e,e.draftStart)+" \xB7 ":"")+O(e.draftTime,e.cycle):"",a=r=>b(r)?new Intl.DateTimeFormat(e.locale,{month:"short",day:"numeric"}).format(b(r)):"";e.selectionSpeech.textContent=t,e.selectionVisual.textContent=e.range?e.draftStart?a(e.draftStart)+(e.draftEnd?" \u2013 "+a(e.draftEnd):" \u2014 choose end"):"Choose start date":e.dateTime?a(e.draftStart)+" \xB7 "+O(e.draftTime,e.cycle):e.timeOnly?O(e.draftTime,e.cycle):"",e.selection.hidden=!t}function _(e){let t=b(e.month+"-01");if(!t)return;let a=t.getFullYear(),r=t.getMonth(),o=Number(S(e.options.Min).slice(0,4))||1,n=Number(S(e.options.Max).slice(0,4))||9999;e.monthSelect.value=String(r),e.yearInput.value=String(a),u(e.yearInput,"aria-invalid",null),e.yearInput.min=String(o),e.yearInput.max=String(n);let m=new Intl.DateTimeFormat(e.locale,{month:"long",year:"numeric"}).format(t);e.caption.textContent!==m&&(e.caption.textContent=m);let h=(t.getDay()-e.firstDay+7)%7,l=new Date(a,r+1,0).getDate();if(e.focusDate.startsWith(e.month)||(e.focusDate=e.month+"-01"),!e.dayCells){let i=c("tbody");e.dayCells=[];for(let f=0;f<6;f++){let d=c("tr");for(let D=0;D<7;D++){let E=c("td"),y=x("",()=>ce(e,y.dataset.date),"blu-picker__day");y.addEventListener("keydown",M=>Se(e,M,y.dataset.date)),y.addEventListener("focus",()=>{e.focusDate=y.dataset.date;for(let M of e.dayCells)M.button.tabIndex=M.button===y?0:-1}),E.append(y),d.append(E),e.dayCells.push({cell:E,button:y})}i.append(d)}e.calendar.append(i)}for(let i=0;i<e.dayCells.length;i++){let{cell:f,button:d}=e.dayCells[i],D=i-h+1,E=D>0&&D<=l;if(d.hidden=!E,!E){d.tabIndex=-1,delete d.dataset.date,u(f,"aria-selected",null);continue}let y=e.month+"-"+v(D),M=y===e.draftStart||e.range&&y===e.draftEnd,U=e.range&&e.draftStart&&e.draftEnd&&y>e.draftStart&&y<e.draftEnd,W=V(e,y),$=!!(M||U),pe=e.range&&M?y===e.draftStart?e.draftEnd?", range starts here; "+w(e,e.draftStart)+" to "+w(e,e.draftEnd):", start date; choose an end date":", range ends here; "+w(e,e.draftStart)+" to "+w(e,e.draftEnd):"",j=w(e,y)+($?", selected":"")+pe+(W?", unavailable":"");d.dataset.date=y,d.tabIndex=y===e.focusDate?0:-1,d.textContent!==String(D)&&(d.textContent=String(D)),d.getAttribute("aria-label")!==j&&u(d,"aria-label",j),u(f,"aria-selected",String($)),u(d,"aria-disabled",W?"true":null),u(d,"aria-current",y===N()?"date":null),d.dataset.selected=String(M),d.dataset.between=String(!!U)}for(let i=0;i<6;i++)e.dayCells[i*7].cell.parentElement.hidden=i*7-h+1>l;let g=S(e.options.Min),p=S(e.options.Max);e.prev.disabled=!!g&&e.month<=g.slice(0,7)||a===1&&r===0,e.next.disabled=!!p&&e.month>=p.slice(0,7)||a===9999&&r===11,e.todayButton.hidden=e.timeOnly||e.options.ShowToday===!1,e.todayButton.disabled=!!V(e,N())}function J(e){if(!e.hasTime)return;let[t,a]=(e.draftTime||"09:00").split(":").map(Number);e.hours.replaceChildren(),e.minutes.replaceChildren();for(let r=0;r<(e.cycle===12?12:24);r++)T(e.hours,e.cycle===12?r+1:r,v(e.cycle===12?r+1:r));for(let r=0;r<60;r+=e.step)T(e.minutes,r,v(r));a%e.step&&T(e.minutes,a,v(a)+" (entered)"),e.hours.value=String(e.cycle===12?t%12||12:t),e.minutes.value=String(a),e.period.value=t<12?"AM":"PM",e.periodField.hidden=e.cycle!==12,s(e)}function P(e,t=e.fields[0].input,a=!0){if(e.options.IsDisabled||e.options.IsReadOnly)return;if(e.anchor=t,e.manualInput=null,e.typeButton.hidden=!e.touchOpen,e.isOpen){e.range&&(e.rangeNext=t===e.fields[1].input&&e.draftStart?"end":"start"),Y(e),a&&ne(e);return}e.draftStart=e.timeOnly?"":e.range?e.start:S(e.value),e.draftEnd=e.end||"",e.draftTime=e.timeOnly?e.value:F(e.value),e.hasTime&&!L(e.draftTime)&&(e.draftTime="09:00"),e.rangeNext="start",e.range&&t===e.fields[1].input&&e.draftStart&&(e.rangeNext="end");let r=e.range&&e.rangeNext==="end"?e.draftEnd:e.draftStart;e.focusDate=b(r)?r:b(e.draftStart)?e.draftStart:N();let o=S(e.options.Min),n=S(e.options.Max);e.timeOnly||(o&&e.focusDate<o&&(e.focusDate=o),n&&e.focusDate>n&&(e.focusDate=n)),e.month=e.focusDate.slice(0,7),e.dialogError.textContent="",_(e),J(e),s(e),e.isOpen=!0,e.dialog.hidden=!1,e.dialog.showPopover&&e.dialog.showPopover(),e.dialog.scrollTop=0;for(let{input:m}of e.fields)u(m,"aria-expanded","true");Y(e),a&&e.isOpen&&ne(e),I(e,"OpenChanged",!0)}function we(e){e.range=e.kind==="DateRangePicker",e.timeOnly=e.kind==="TimePicker",e.dateTime=e.kind==="DateTimePicker",e.hasTime=e.timeOnly||e.dateTime,e.root.className="blu-picker",e.fieldRow=c("div","blu-picker__fields"),e.error=u(c("div","blu-picker__error"),"role","alert"),e.error.id=e.uid+"-error",e.error.hidden=!0,e.hint=c("div","blu-picker__hint"),e.hint.id=e.uid+"-hint",e.actions=c("div","blu-picker__actions"),e.clearButton=x("Clear",()=>H(e,"","","")),e.actions.append(e.clearButton),e.root.append(e.fieldRow,e.hint,e.actions,e.error),De(e);let t=c("span","blu-advanced-sr","Click the field or press Down Arrow to browse. Escape closes the popup.");t.id=e.uid+"-keyboard",e.root.append(t),e.dialog=c("div","blu-picker__dialog blu-picker__popup"),e.dialog.id=e.uid+"-dialog",e.dialog.hidden=!0,u(e.dialog,"role","dialog"),u(e.dialog,"aria-labelledby",e.uid+"-title"),u(e.dialog,"aria-modal","false"),e.dialog.showPopover&&u(e.dialog,"popover","manual"),e.root.append(e.dialog),e.dialog.addEventListener("mousedown",ve),e.title=c("h2","blu-advanced-sr"),e.title.id=e.uid+"-title",e.dialog.append(e.title),e.presets=c("div","blu-picker__presets"),e.dialog.append(e.presets),e.calendarArea=c("div","blu-picker__calendar-area"),e.calendarArea.hidden=e.timeOnly,e.dialog.append(e.calendarArea);let a=c("div","blu-picker__calendar-nav"),r=A(e,"Month","month");e.monthSelect=r.select;let o=c("label","blu-picker__select-field");o.append(c("span","blu-picker__select-caption","Year")),e.yearInput=c("input","blu-picker__input"),e.yearInput.type="number",e.yearInput.step="1",o.append(e.yearInput);let n=d=>{let D=ie(e.focusDate,d);R(e,D)};e.prev=x("\u2039",()=>n(-1)),u(e.prev,"aria-label","Previous month"),e.next=x("\u203A",()=>n(1)),u(e.next,"aria-label","Next month"),a.append(e.prev,r.wrap,o,e.next),e.calendarArea.append(a),e.monthSelect.addEventListener("change",()=>R(e,String(e.yearInput.value).padStart(4,"0")+"-"+v(+e.monthSelect.value+1)+"-01")),e.yearInput.addEventListener("change",()=>{let d=Number(e.yearInput.value);if(!Number.isInteger(d)||d<+e.yearInput.min||d>+e.yearInput.max){e.dialogError.textContent="Enter a year from "+e.yearInput.min+" to "+e.yearInput.max+".",u(e.yearInput,"aria-invalid","true");return}u(e.yearInput,"aria-invalid",null),e.dialogError.textContent="",R(e,String(d).padStart(4,"0")+"-"+v(+e.monthSelect.value+1)+"-01")}),e.caption=u(c("h3","blu-picker__caption blu-advanced-sr"),"aria-live","polite"),e.caption.id=e.uid+"-caption",e.calendarArea.append(e.caption),e.calendar=u(c("table","blu-picker__calendar"),"role","grid"),u(e.calendar,"aria-labelledby",e.caption.id),e.range&&u(e.calendar,"aria-multiselectable","true"),e.calendarArea.append(e.calendar),e.todayButton=x("Today",()=>{e.focusDate=N(),e.month=e.focusDate.slice(0,7),ce(e,e.focusDate)}),e.calendarArea.append(c("p","blu-advanced-sr","Arrow keys move by day or week. Home/End move within the week. Page Up/Down change month; hold Shift to change year.")),e.timeArea=c("div","blu-picker__time-area"),e.timeArea.hidden=!e.hasTime,e.dialog.append(e.timeArea);let m=A(e,"Hour","hour"),h=A(e,"Minute","minute"),l=A(e,"AM / PM","period");e.hours=m.select,e.minutes=h.select,e.period=l.select,e.periodField=l.wrap,T(e.period,"AM","AM"),T(e.period,"PM","PM"),e.timeArea.append(m.wrap,h.wrap,l.wrap);for(let d of[e.hours,e.minutes,e.period])d.addEventListener("change",()=>{let D=+e.hours.value;e.cycle===12&&(D=D%12+(e.period.value==="PM"?12:0)),e.draftTime=v(D)+":"+v(+e.minutes.value),e.dialogError.textContent="",s(e)});e.selection=u(c("div","blu-picker__selection"),"role","status"),u(e.selection,"aria-atomic","true"),e.selectionSpeech=c("span","blu-advanced-sr"),e.selectionVisual=u(c("span"),"aria-hidden","true"),e.selection.append(e.selectionSpeech,e.selectionVisual),e.dialogError=u(c("div","blu-picker__error"),"role","alert"),e.dialogError.id=e.uid+"-dialog-error",u(e.yearInput,"aria-describedby",e.dialogError.id),e.apply=x("Apply",()=>H(e,e.draftStart,e.draftEnd,e.draftTime),"blu-picker__button blu-picker__button--primary"),e.apply.hidden=!e.range&&!e.hasTime,e.typeButton=x("Type",()=>{let d=e.anchor;k(e,!1),e.manualInput=d,d.inputMode="text",d.focus({preventScroll:!0})}),u(e.typeButton,"aria-label","Type a date or time"),e.typeButton.hidden=!0;let g=c("div","blu-picker__popup-actions");g.append(e.typeButton,e.todayButton,x("Cancel",()=>k(e)),e.apply),e.dialog.append(e.selection,e.dialogError,g);let p=d=>{e.isOpen&&!e.root.contains(d.target)&&k(e,!1)},i=d=>{e.isOpen&&d.key==="Escape"&&!d.defaultPrevented&&(d.preventDefault(),d.stopPropagation(),k(e))},f=d=>{!e.isOpen||e.dialog.contains(d?.target)||(cancelAnimationFrame(e.positionFrame),e.positionFrame=requestAnimationFrame(()=>Y(e)))};document.addEventListener("pointerdown",p,!0),document.addEventListener("focusin",p),e.root.addEventListener("keydown",i),window.addEventListener("resize",f),document.addEventListener("scroll",f,!0),window.visualViewport?.addEventListener("resize",f),window.visualViewport?.addEventListener("scroll",f),window.ResizeObserver&&(e.popupObserver=new ResizeObserver(()=>f()),e.popupObserver.observe(e.fieldRow),e.popupObserver.observe(e.dialog)),e.dispose=()=>{k(e,!1),cancelAnimationFrame(e.positionFrame),e.popupObserver?.disconnect(),document.removeEventListener("pointerdown",p,!0),document.removeEventListener("focusin",p),e.root.removeEventListener("keydown",i),window.removeEventListener("resize",f),document.removeEventListener("scroll",f,!0),window.visualViewport?.removeEventListener("resize",f),window.visualViewport?.removeEventListener("scroll",f)}}function Me(e){let t=JSON.stringify(e.options);if(e.renderSignature===t)return;let a=e.isOpen?document.activeElement:null,r=a?.dataset?.date,o=a?.id,n=e.options;if(e.label=String(n.Label||{DatePicker:"Date",TimePicker:"Time",DateTimePicker:"Date and time",DateRangePicker:"Date range"}[e.kind]),e.locale=String(n.Locale||"en-US"),new Intl.DateTimeFormat(e.locale),e.format=ye.includes(n.DateFormat)?n.DateFormat:"YYYY-MM-DD",e.cycle=Number(n.HourCycle)===12?12:24,e.step=Number(n.MinuteStep??15),!Number.isInteger(e.step)||e.step<1||e.step>60)throw Error("MinuteStep must be a whole number from 1 to 60.");if(e.firstDay=Number(n.FirstDayOfWeek??1),!Number.isInteger(e.firstDay)||e.firstDay<0||e.firstDay>6)throw Error("FirstDayOfWeek must be 0\u20136.");e.disabledDates=new Set(Z(n.DisabledDatesJson??n.DisabledDates,"DisabledDates").map(i=>typeof i=="string"?i:i.Date));for(let i of e.disabledDates)if(!b(i))throw Error("DisabledDates must contain ISO calendar dates.");for(let i of["Min","Max"])if(n[i]&&!(e.timeOnly?L(n[i]):b(S(n[i]))&&(!e.dateTime||L(F(n[i])))))throw Error(i+" must use the documented ISO value format.");if(n.Min&&n.Max&&n.Min>n.Max)throw Error("Min must be on or before Max.");for(let i of["MinRangeDays","MaxRangeDays"])if(n[i]!==void 0&&(!Number.isInteger(Number(n[i]))||Number(n[i])<0))throw Error(i+" must be a non-negative whole number.");if(n.MinRangeDays&&n.MaxRangeDays&&Number(n.MinRangeDays)>Number(n.MaxRangeDays))throw Error("MinRangeDays must not exceed MaxRangeDays.");let m=e.range?[String(n.StartDate||""),String(n.EndDate||"")]:[String(n.Value||"")],h=JSON.stringify(m),l=h!==e.inputSignature;if(e.inputSignature=h,e.range?(e.start=m[0],e.end=m[1]):e.value=m[0],e.fields.forEach((i,f)=>{i.label.textContent=e.range?e.label+(f?" \u2014 end":" \u2014 start"):e.dateTime?e.label+(f?" \u2014 time":" \u2014 date"):e.label,i.input.disabled=!!n.IsDisabled,i.input.readOnly=!!n.IsReadOnly,i.input.required=!!n.IsRequired,i.input.placeholder=String(n.Placeholder||(e.timeOnly||e.dateTime&&f?e.cycle===12?"9:00 AM":"09:00":e.format))}),e.hint.textContent=e.timeOnly?(e.cycle===12?"h:mm AM/PM":"HH:mm")+" \xB7 local time":e.format+(e.dateTime?" \xB7 "+(e.cycle===12?"h:mm AM/PM":"HH:mm")+" local time":""),e.title.textContent=e.label,e.clearButton.disabled=!!n.IsDisabled||!!n.IsReadOnly,l||e.previousFormat!==e.format||e.previousCycle!==e.cycle){le(e);let i=m.some(Boolean);B(e,i?de(e,e.timeOnly?"":e.range?e.start:S(e.value),e.end||"",e.timeOnly?e.value:F(e.value)):""),e.previousFormat=e.format,e.previousCycle=e.cycle}e.monthSelect.replaceChildren();for(let i=0;i<12;i++)T(e.monthSelect,i,new Intl.DateTimeFormat(e.locale,{month:"long"}).format(new Date(2024,i,1)));e.calendar.tHead?.remove();let g=c("thead"),p=c("tr");for(let i=0;i<7;i++){let f=new Date(2024,0,7+(i+e.firstDay)%7),d=c("th","",new Intl.DateTimeFormat(e.locale,{weekday:"short"}).format(f));d.scope="col",d.abbr=new Intl.DateTimeFormat(e.locale,{weekday:"long"}).format(f),p.append(d)}if(g.append(p),e.calendar.prepend(g),e.presets.replaceChildren(),e.presets.hidden=!e.range,e.range)for(let i of Z(n.PresetsJson??n.Presets,"Presets")){if(!i.Label||!b(i.StartDate)||!b(i.EndDate))throw Error("Presets need Label, StartDate and EndDate.");let f=x(i.Label,()=>{e.draftStart=i.StartDate,e.draftEnd=i.EndDate,e.rangeNext="start",e.focusDate=e.draftStart,e.month=e.focusDate.slice(0,7),e.dialogError.textContent="",_(e),s(e)});f.disabled=!!oe(i.StartDate,i.EndDate,{...n,disabled:e.disabledDates}),e.presets.append(f)}e.isOpen&&(n.IsDisabled||n.IsReadOnly||l?k(e):(_(e),J(e),r?e.calendar.querySelector('[data-date="'+r+'"]')?.focus({preventScroll:!0}):o&&document.getElementById(o)?.focus({preventScroll:!0}),Y(e))),e.renderSignature=t}var ue=()=>me("DatePicker",we,Me);function Ce(e,t={},a={}){return ue(),X(e,"DatePicker",t,r=>({Change:o=>(r({Value:o}),a.Change?.(o)),ValidationChanged:(o,n)=>a.ValidationChanged?.(o,n),OpenChanged:o=>a.OpenChanged?.(o),Error:o=>a.Error?.(o)}),["DisabledDates"],[])}export{Ce as a};
File without changes
File without changes
@@ -0,0 +1 @@
1
+ function C(t,o){let e=o.map(l=>[l,t.style.getPropertyValue(l),t.style.getPropertyPriority(l)]);return()=>{for(let[l,r,s]of e)r?t.style.setProperty(l,r,s):t.style.removeProperty(l)}}function B(t,o){if(t.contains(t.ownerDocument.activeElement)){if(!o?.isConnected||t.contains(o))throw new Error("Provide a connected focusFallback outside the closing element.");if(o.focus({preventScroll:!0}),t.contains(t.ownerDocument.activeElement))throw new Error("focusFallback must be focusable.")}}function D(t,o,e="height"){let l={hidden:t.hidden,inert:t.inert},r=0,s=!1,i=()=>{};async function c(u,d,p){if(s)return"cancelled";u||B(t,p.focusFallback);let g=t.hidden?0:t.getBoundingClientRect()[e],a=++r;o.cancel(t),i(),t.hidden=!1,t.inert=u?l.inert:!0,d?.();let f=u?t.getBoundingClientRect()[e]:0,h=C(t,["overflow","box-sizing","will-change",e]),n=e==="width"?t.firstElementChild:null,v=n?C(n,["width","min-width","max-width","box-sizing"]):()=>{};if(n){let E=n.getBoundingClientRect().width;n.style.boxSizing="border-box",n.style.width=E+"px",n.style.minWidth=E+"px",n.style.maxWidth=E+"px"}let b=()=>{v(),h()};i=b,t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.willChange=e,t.style[e]=f+"px";try{await o.animate(t,[{[e]:g+"px"},{[e]:f+"px"}],{duration:450,easing:"ease-in-out",...p})}finally{r===a&&(b(),i=()=>{})}return s||r!==a?"cancelled":(t.hidden=!u,"finished")}return{setOpen(u,d={}){return c(u,void 0,d)},resize(u,d={}){return c(!0,u,d)},destroy(){s||(s=!0,++r,o.cancel(t),i(),t.hidden=l.hidden,t.inert=l.inert)}}}function F(t,o){let e=0,l=!1,r=new Set;return{async update(s,i,c={}){if(l)return"cancelled";if(s.some(a=>!t.contains(a)))throw new Error("Layout targets must belong to the container.");let u=++e,d=new Map(s.map(a=>[a,a.getBoundingClientRect()])),p=t.ownerDocument.activeElement;for(let a of r)o.cancel(a);r.clear(),i(),p?.isConnected&&t.contains(p)&&p!==t.ownerDocument.activeElement&&p.focus({preventScroll:!0});let g=s.filter(a=>t.contains(a)).map(a=>{let f=d.get(a),h=a.getBoundingClientRect(),n=f.left-h.left,v=f.top-h.top;if(Math.abs(n)<.5&&Math.abs(v)<.5)return Promise.resolve();let b=a.ownerDocument.defaultView.getComputedStyle(a).transform;return r.add(a),o.animate(a,[{transform:`translate(${n}px, ${v}px) ${b==="none"?"":b}`},{transform:b}],c)});return await Promise.all(g),l||e!==u?"cancelled":(r.clear(),"finished")},destroy(){l=!0,++e;for(let s of r)o.cancel(s);r.clear()}}}function k(t,o,e,l={}){let r=t.ownerDocument.defaultView.getComputedStyle(t),s=r.transform;return e==="highlight"?o.animate(t,[{boxShadow:r.boxShadow},{boxShadow:"0 0 0 4px var(--blu-motion-highlight, #7770ed40)",offset:.45},{boxShadow:r.boxShadow}],{duration:1400,easing:"ease-in-out",...l}):o.animate(t,[{transform:s},{transform:`translateX(-3px) ${s==="none"?"":s}`,offset:.25},{transform:`translateX(3px) ${s==="none"?"":s}`,offset:.6},{transform:s}],{duration:280,...l})}function V(t,o){let e=t.getAttribute("data-blu-pressed"),l=t.classList.contains("blu-motion-press"),r=t.ownerDocument.defaultView,s=!1,i=!1,c=null,u=null;t.classList.add("blu-motion-press");function d(n){if(i||n===s||n&&(t.matches(":disabled")||t.getAttribute("aria-disabled")==="true"||t.closest("[inert]")))return;let v=r.getComputedStyle(t).transform;o.cancel(t),s=n,t.setAttribute("data-blu-pressed",String(n));let b=r.getComputedStyle(t).transform;o.animate(t,[{transform:v},{transform:b}],{duration:280,easing:"ease-out"})}let p=n=>{n.button===0&&n.isPrimary&&(c=n.pointerId,d(!0))},g=n=>{n.pointerId===c&&(c=null,u||d(!1))},a=n=>{!n.repeat&&[" ","Enter"].includes(n.key)&&(u=n.key,d(!0))},f=n=>{n.key===u&&(u=null,c===null&&d(!1))},h=()=>{c=null,u=null,d(!1)};return t.addEventListener("pointerdown",p),r.addEventListener("pointerup",g),r.addEventListener("pointercancel",g),t.addEventListener("keydown",a),r.addEventListener("keyup",f),t.addEventListener("blur",h),r.addEventListener("blur",h),{destroy(){i||(i=!0,o.cancel(t),t.removeEventListener("pointerdown",p),r.removeEventListener("pointerup",g),r.removeEventListener("pointercancel",g),t.removeEventListener("keydown",a),r.removeEventListener("keyup",f),t.removeEventListener("blur",h),r.removeEventListener("blur",h),l||t.classList.remove("blu-motion-press"),e===null?t.removeAttribute("data-blu-pressed"):t.setAttribute("data-blu-pressed",e))}}}function _(t,o,e){let l=t.ownerDocument.defaultView,r=C(t,["position"]),s=t.getAttribute("data-blu-navigation-motion");t.setAttribute("data-blu-navigation-motion",e);let i=t.ownerDocument.createElement("span");i.className="blu-motion-navigation-marker",i.dataset.kind=e,i.setAttribute("aria-hidden","true"),i.hidden=!0,t.style.position="relative",t.append(i);let c=null,u="",d="",p=!1,g=!1,a=0,f=null,h="",n=()=>{++a,g=!1,o.cancel(i)};function v(S=!0){if(p)return;t.contains(i)||t.append(i);let w=t.querySelector(e==="tabs"?"[role=tab][aria-selected=true]":'[aria-current="page"]')||(e==="pagination"?t.querySelector(".blu-pagination__current"):null);if(c!==w&&(c&&b.unobserve(c),c=w,c&&b.observe(c)),!w||!w.getClientRects().length){i.hidden||(i.hidden=!0),u="",d="",n();return}let T=w.dataset.navigationKey||w.getAttribute("aria-label")||w.textContent||"",L=i.hidden?null:i.getBoundingClientRect(),H=t.getBoundingClientRect(),m=w.getBoundingClientRect(),O=m.left-H.left+t.scrollLeft-t.clientLeft,R=m.top-H.top+t.scrollTop-t.clientTop,P=[O,R,m.width,m.height].join(",");if(P===d&&T===u&&!i.hidden)return;let A=g,z=u!==T;if(n(),i.hidden&&(i.hidden=!1),Object.assign(i.style,{left:O+(e==="tabs"?6:0)+"px",top:R+(e==="sidebar"?8:e==="tabs"?m.height-3:0)+"px",width:(e==="sidebar"?3:e==="tabs"?Math.max(1,m.width-12):m.width)+"px",height:(e==="sidebar"?Math.max(1,m.height-16):e==="tabs"?3:m.height)+"px"}),(S&&z||A)&&L){let y=i.getBoundingClientRect(),x=++a;g=!0,o.animate(i,[{transform:`translate(${L.left-y.left}px,${L.top-y.top}px) scale(${L.width/y.width},${L.height/y.height})`},{transform:"none"}],{duration:e==="pagination"?750:450,easing:"ease-in-out"}).finally(()=>{x===a&&(g=!1)})}if(e==="pagination"){let y=t.querySelector(".blu-pagination__range");f!==y&&f&&o.cancel(f);let x=y?.textContent||"";S&&h&&x!==h&&y&&o.animate(y,[{opacity:.35},{opacity:1}],{duration:750,easing:"ease-in-out"},"fade"),f=y,h=x}u=T,d=P}let b=new ResizeObserver(()=>v(!1)),E=new MutationObserver(()=>v()),M=()=>{n(),v(!1)};return v(!1),b.observe(t),E.observe(t,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-current","aria-selected","hidden"]}),t.addEventListener("scroll",M,!0),l.addEventListener("resize",M),{destroy(){p||(p=!0,E.disconnect(),b.disconnect(),n(),f&&o.cancel(f),i.remove(),r(),s===null?t.removeAttribute("data-blu-navigation-motion"):t.setAttribute("data-blu-navigation-motion",s),t.removeEventListener("scroll",M,!0),l.removeEventListener("resize",M))}}}export{C as a,B as b,D as c,F as d,k as e,V as f,_ as g};
File without changes
@@ -0,0 +1 @@
1
+ import{a as i,c as m,e as g}from"./chunk-SDMH2EVD.js";function A(x,C,v={}){let r=m(x),e=i("button"),b=i("span","blu-motion-button__face"),u=i("span","blu-button__spinner"),p=i("span"),a=i("span","blu-motion-sr-only"),t={...C},l=!1;e.type="button",u.setAttribute("aria-hidden","true"),a.setAttribute("role","status"),a.setAttribute("aria-atomic","true"),b.append(u,p),e.append(b),r.append(e,a),e.onclick=o=>{if(t.IsLoading||t.IsDisabled){o.preventDefault();return}v.Click?.(o)};let s=(o,n)=>n===void 0?e.removeAttribute(o):e.setAttribute(o,n);function c(o){if(l)throw new Error("Button is destroyed.");t={...t,...o};let n=!!t.IsLoading;e.className=g(`blu-button blu-motion-button blu-button--${(t.Color||"Primary").toLowerCase()} blu-button--${(t.Variant||"Filled").toLowerCase()} blu-button--${(t.Size||"Medium").toLowerCase()}${t.IsFullWidth?" blu-button--full":""}${n?" blu-button--loading":""}`,t.ExtendedClass),e.dataset.spinnerPosition=t.SpinnerPosition||"Leading",e.disabled=!!t.IsDisabled,s("aria-disabled",n||t.IsDisabled?"true":void 0),s("aria-busy",n?"true":void 0),s("aria-label",t.AccessibleLabel?t.AccessibleLabel+(n?" \u2014 "+(t.LoadingLabel||"Loading"):""):void 0),s("aria-expanded",t.IsExpandable?String(!!t.IsExpanded):void 0),s("aria-controls",t.ControlsId),s("aria-current",t.IsCurrentPage?"page":void 0),p.textContent=n&&t.LoadingLabel||t.Label,u.hidden=!n;for(let d of Array.from(e.querySelectorAll(".blu-motion-button__reserve")))d.remove();for(let d of new Set([t.Label,t.LoadingLabel||t.Label,...t.ReserveLabels||[]])){let L=i("span","blu-motion-button__reserve",d);L.setAttribute("aria-hidden","true"),e.append(L)}let f=t.StatusText||"";a.textContent!==f&&(a.textContent=f)}return c({}),{element:r,update:c,destroy(){l||(l=!0,e.onclick=null,r.remove())}}}export{A as a};
@@ -0,0 +1 @@
1
+ import{a as d,c as p,d as T,e as v,f as w,g as A,h as _}from"./chunk-EOKNLCNS.js";function H(L,m={},f={}){let e={...m},a=!1,t=T(L,e),c=d("div","blu-text"),n=d("input","blu-text__input"),h=d("span","blu-text__adornment"),x=d("span","blu-text__adornment"),s=d("button","blu-text__action","\xD7"),r=d("button","blu-text__action","Show");s.type=r.type="button",s.setAttribute("aria-label","Clear "+(e.Label||"text")),c.append(h,n,x,s,r),t.body.append(c);let u=v(t.root,E),b=new WeakMap;function g(i,o){if(b.get(i)!==o?.Kind&&i.replaceChildren(),i.removeAttribute("role"),i.removeAttribute("aria-label"),i.removeAttribute("aria-hidden"),i.hidden=!o,!o){b.delete(i);return}if(b.set(i,o.Kind),o.Kind==="Image"){let l=i.querySelector("img")||d("img"),V=_(o.Src);l.src!==V&&(l.src=V),l.alt=o.Alt,l.parentNode||i.append(l)}else if(o.Kind==="Action"){let l=i.querySelector("button")||d("button","blu-text__action");l.type="button",l.textContent=o.Text,l.setAttribute("aria-label",o.Label),l.disabled=!!e.Disabled||!!e.ReadOnly,l.onclick=()=>f.Action?.(o.Key,n.value),l.parentNode||i.append(l)}else i.textContent=o.Text,o.Kind==="Icon"&&(p(i,"role",o.Label?"img":void 0),p(i,"aria-label",o.Label),p(i,"aria-hidden",o.Label?void 0:"true"))}function M(){s.hidden=!e.Clearable||!n.value||!!e.ReadOnly,r.hidden=!e.RevealPassword||e.Type!=="password"}function y(i){u.check(),e={...e,...i},t.paint(e,[n]),w(n,e),n.type=e.Type==="password"&&a?"text":e.Type||"text",n.value!==(e.Value||"")&&(n.value=e.Value||""),n.placeholder=e.Placeholder||"",p(n,"maxlength",e.MaxLength===void 0?void 0:Math.max(0,Math.floor(e.MaxLength))),p(n,"autocomplete",e.Autocomplete),g(h,e.Leading),g(x,e.Trailing),s.disabled=r.disabled=!!e.Disabled,s.setAttribute("aria-label","Clear "+(e.Label||"text")),r.textContent=a?"Hide":"Show",r.setAttribute("aria-label",a?"Hide password":"Show password"),r.setAttribute("aria-pressed",String(a)),M()}function C(){e.Value=n.value,M(),f.Change?.(n.value)}function E(){a=!1,y({Value:m.Value||""})}return n.addEventListener("input",C,{signal:u.signal}),n.addEventListener("blur",()=>f.Blur?.(),{signal:u.signal}),s.addEventListener("click",()=>{n.value="",C(),n.focus()},{signal:u.signal}),r.addEventListener("click",()=>{a=!a,y({}),n.focus()},{signal:u.signal}),y({}),{element:t.root,control:n,update:y,reset:E,getValue:()=>n.value,focus:()=>n.focus(),validate:()=>n.reportValidity(),destroy:u.destroy}}function I(L,m={},f={}){let e={...m},a=T(L,e),t=d("textarea","blu-textarea"),c=d("div","blu-field__count");c.id=a.id+"-count",a.body.append(t,c);let n=v(a.root,s);function h(){c.hidden=!e.ShowCount,c.textContent=t.value.length+(e.MaxLength===void 0?" characters":" / "+e.MaxLength),t.style.maxHeight=e.AutoGrow?A(e.MaxHeight,320,80,2e3)+"px":"",t.style.resize=e.AutoGrow?"none":"vertical",t.style.height="",e.AutoGrow&&(t.style.height=Math.min(t.scrollHeight+2,A(e.MaxHeight,320,80,2e3))+"px")}function x(b){n.check(),e={...e,...b},a.paint(e,[t]),w(t,e),t.rows=Math.floor(A(e.Rows,4,1,30)),t.placeholder=e.Placeholder||"",p(t,"maxlength",e.MaxLength===void 0?void 0:Math.max(0,Math.floor(e.MaxLength))),t.value!==(e.Value||"")&&(t.value=e.Value||""),e.ShowCount&&p(t,"aria-describedby",[t.getAttribute("aria-describedby"),c.id].filter(Boolean).join(" ")),h()}function s(){x({Value:m.Value||""})}t.addEventListener("input",()=>{e.Value=t.value,h(),f.Change?.(t.value)},{signal:n.signal}),t.addEventListener("blur",()=>f.Blur?.(),{signal:n.signal});let r=0,u=typeof ResizeObserver<"u"?new ResizeObserver(b=>{let g=b[0].contentRect.width;g!==r&&(r=g,h())}):void 0;return u?.observe(a.root),x({}),{element:a.root,control:t,update:x,reset:s,getValue:()=>t.value,focus:()=>t.focus(),validate:()=>t.reportValidity(),destroy(){u?.disconnect(),n.destroy()}}}export{H as a,I as b};
File without changes
File without changes
@@ -0,0 +1 @@
1
+ var l=["fade","slide-up","slide-down","slide-left","slide-right","zoom-in","zoom-out","rotate-left","rotate-right","flip-x","flip-y","pop","bounce","wipe-up","wipe-down","wipe-left","wipe-right","circle-reveal","blur-clear"],f={center:"50% 50%",top:"50% 0%",bottom:"50% 100%",left:"0% 50%",right:"100% 50%","top-left":"0% 0%","top-right":"100% 0%","bottom-left":"0% 100%","bottom-right":"100% 100%"},y={standard:"cubic-bezier(.2,.8,.2,1)","ease-in":"cubic-bezier(.42,0,1,1)","ease-out":"cubic-bezier(0,0,.58,1)","ease-in-out":"cubic-bezier(.42,0,.58,1)",linear:"linear",spring:"cubic-bezier(.34,1.25,.64,1)"};function m(t,n="enter",r="12px"){let e=n==="exit",a=o=>o?`calc(-1 * ${r})`:r,s={"slide-up":`translateY(${a(e)})`,"slide-down":`translateY(${a(!e)})`,"slide-left":`translateX(${a(e)})`,"slide-right":`translateX(${a(!e)})`,"zoom-in":`scale(${e?"1.08":".92"})`,"zoom-out":`scale(${e?".92":"1.08"})`,scale:`scale(${e?"1.03":".97"})`,"rotate-left":`rotate(${e?"-8":"8"}deg) scale(.97)`,"rotate-right":`rotate(${e?"8":"-8"}deg) scale(.97)`,"flip-x":`perspective(600px) rotateX(${e?"-30":"30"}deg)`,"flip-y":`perspective(600px) rotateY(${e?"-30":"30"}deg)`};if(t==="fade")return e?[{opacity:1},{opacity:0}]:[{opacity:0},{opacity:1}];if(t==="circle-reveal"||t==="blur-clear"){let o=t==="circle-reveal"?{opacity:0,clipPath:"circle(0% at 50% 50%)"}:{opacity:0,filter:"blur(6px)"},i=t==="circle-reveal"?{opacity:1,clipPath:"circle(72% at 50% 50%)"}:{opacity:1,filter:"blur(0px)"};return e?[i,o]:[o,i]}if(t.startsWith("wipe-")){let o={"wipe-up":["inset(100% 0 0 0)","inset(0 0 100% 0)"],"wipe-down":["inset(0 0 100% 0)","inset(100% 0 0 0)"],"wipe-left":["inset(0 0 0 100%)","inset(0 100% 0 0)"],"wipe-right":["inset(0 100% 0 0)","inset(0 0 0 100%)"]},i={opacity:1,clipPath:"inset(0 0 0 0)"};return e?[i,{opacity:0,clipPath:o[t][1]}]:[{opacity:0,clipPath:o[t][0]},i]}if(t==="pop")return e?[{opacity:1,transform:"scale(1)"},{opacity:1,transform:"scale(1.025)",offset:.25},{opacity:0,transform:"scale(.9)"}]:[{opacity:0,transform:"scale(.9)"},{opacity:1,transform:"scale(1.025)",offset:.72},{opacity:1,transform:"scale(1)"}];if(t==="bounce")return e?[{opacity:1,transform:"translateY(0)"},{opacity:1,transform:"translateY(-3px)",offset:.25},{opacity:0,transform:`translateY(${r})`}]:[{opacity:0,transform:`translateY(${r})`},{opacity:1,transform:"translateY(-3px)",offset:.72},{opacity:1,transform:"translateY(0)"}];if(!(t in s))throw new Error("Unknown motion effect.");let p={opacity:0,transform:s[t]},c={opacity:1,transform:"none"};return e?[c,p]:[p,c]}function u(t,n="enter"){return`blu-motion-${n}-${t}`}function g(t){return`blu-motion-${t.startsWith("ease-")?t:"ease-"+t}`}export{l as a,f as b,y as c,m as d,u as e,g as f};
File without changes
@@ -0,0 +1 @@
1
+ function s(e,t="",i){let r=document.createElement(e);return r.className=t,i!==void 0&&(r.textContent=i),r}var g=0;function h(){return"blu-field-"+ ++g+"-"+Math.random().toString(36).slice(2,8)}function b(e,t,i){i===void 0||i===!1||i===""?e.removeAttribute(t):e.setAttribute(t,String(i))}function p(e,t,i=!1){let r=s(i?"fieldset":"div","blu-field"),o=s(i?"legend":"label","blu-field__label"),a=s("div","blu-field__body"),l=s("div","blu-field__help"),d=s("div","blu-field__error"),u=t.Id||h();l.id=u+"-help",d.id=u+"-error",d.setAttribute("aria-live","polite"),r.append(o,a,l,d),e.append(r);function E(n,f){var c;r.className="blu-field blu-field--"+(n.Size||"Medium").toLowerCase()+(n.ExtendedClass?" "+n.ExtendedClass:""),r.dataset.invalid=String(!!n.Error),r.dataset.disabled=String(!!n.Disabled),o.textContent=(n.Label||"")+(n.Required?" *":""),o.hidden=!n.Label,!i&&f[0]&&((c=f[0]).id||(c.id=u),o.setAttribute("for",f[0].id)),l.textContent=n.Description||"",l.hidden=!n.Description,d.textContent=n.Error||"",d.hidden=!n.Error;let x=[n.Description?l.id:"",n.Error?d.id:""].filter(Boolean).join(" ");for(let m of f)b(m,"aria-describedby",x),b(m,"aria-invalid",n.Error?"true":void 0),b(m,"aria-required",n.Required?"true":void 0)}return{root:r,label:o,body:a,description:l,error:d,id:u,paint:E}}function y(e,t){let i=new AbortController,r=!1;return e.closest("form")?.addEventListener("reset",a=>queueMicrotask(()=>{!r&&!a.defaultPrevented&&t()}),{signal:i.signal}),{signal:i.signal,check(){if(r)throw Error("Component is destroyed.")},destroy(){r||(r=!0,i.abort(),e.remove())}}}function L(e,t){e.name=t.Name||"",e.disabled=!!t.Disabled,e.required=!!t.Required,"readOnly"in e&&(e.readOnly=!!t.ReadOnly),e.setCustomValidity(t.Error||"")}function M(e,t,i,r){return Number.isFinite(e)?Math.max(i,Math.min(r,e)):t}function T(e){let t=new URL(e,document.baseURI);if(!["http:","https:"].includes(t.protocol))throw Error("Adornment images must use an HTTP(S) or relative URL.");return t.href}export{s as a,h as b,b as c,p as d,y as e,L as f,M as g,T as h};