@cratis/components 4.19.1 → 4.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (720) hide show
  1. package/compat-manifest.json +11 -11
  2. package/dist/esm/Canvas/Canvas.d.ts +1 -0
  3. package/dist/esm/Canvas/Canvas.d.ts.map +1 -0
  4. package/dist/esm/Canvas/Canvas.js.map +1 -1
  5. package/dist/esm/Canvas/CanvasControls.d.ts +1 -0
  6. package/dist/esm/Canvas/CanvasControls.d.ts.map +1 -0
  7. package/dist/esm/Canvas/CanvasControls.js.map +1 -1
  8. package/dist/esm/Canvas/CanvasItem.js.map +1 -1
  9. package/dist/esm/Canvas/CanvasMinimap.js.map +1 -1
  10. package/dist/esm/Canvas/CanvasOverlay.js.map +1 -1
  11. package/dist/esm/Canvas/canvasGesture.js.map +1 -1
  12. package/dist/esm/Canvas/canvasTransformActivity.js.map +1 -1
  13. package/dist/esm/Canvas/index.d.ts +1 -0
  14. package/dist/esm/Canvas/index.d.ts.map +1 -0
  15. package/dist/esm/Canvas/isBackgroundPointerTarget.js.map +1 -1
  16. package/dist/esm/Canvas/isWithinScrollableContent.js.map +1 -1
  17. package/dist/esm/Canvas/panMomentum.js.map +1 -1
  18. package/dist/esm/Canvas/pinchGesture.js.map +1 -1
  19. package/dist/esm/Canvas/selfSuspendingFrameLoop.js.map +1 -1
  20. package/dist/esm/Canvas/shapes/ChatBubble/index.d.ts +1 -0
  21. package/dist/esm/Canvas/shapes/ChatBubble/index.d.ts.map +1 -0
  22. package/dist/esm/Canvas/shapes/ChatBubble/index.js +1 -0
  23. package/dist/esm/Canvas/shapes/ChatBubble/index.js.map +1 -0
  24. package/dist/esm/Canvas/shapes/Note/Note.js.map +1 -1
  25. package/dist/esm/Canvas/shapes/Note/NoteTextChanged.js.map +1 -1
  26. package/dist/esm/Canvas/shapes/Note/index.d.ts +1 -0
  27. package/dist/esm/Canvas/shapes/Note/index.d.ts.map +1 -0
  28. package/dist/esm/Canvas/shapes/Note/index.js +1 -0
  29. package/dist/esm/Canvas/shapes/Note/index.js.map +1 -0
  30. package/dist/esm/Canvas/shapes/Note/noteFont.js.map +1 -1
  31. package/dist/esm/Canvas/shapes/Region/ItemAddedToRegion.js.map +1 -1
  32. package/dist/esm/Canvas/shapes/Region/ItemRemovedFromRegion.js.map +1 -1
  33. package/dist/esm/Canvas/shapes/Region/Region.js.map +1 -1
  34. package/dist/esm/Canvas/shapes/Region/index.d.ts +1 -0
  35. package/dist/esm/Canvas/shapes/Region/index.d.ts.map +1 -0
  36. package/dist/esm/Canvas/shapes/Region/index.js +1 -0
  37. package/dist/esm/Canvas/shapes/Region/index.js.map +1 -0
  38. package/dist/esm/Canvas/shapes/Region/regionContainment.js.map +1 -1
  39. package/dist/esm/Canvas/useDragSelectionGuard.js.map +1 -1
  40. package/dist/esm/Canvas/zoomMechanism.js.map +1 -1
  41. package/dist/esm/Chat/ChatAuthor.d.ts +1 -0
  42. package/dist/esm/Chat/ChatAuthor.d.ts.map +1 -0
  43. package/dist/esm/Chat/ChatAuthor.js.map +1 -1
  44. package/dist/esm/Chat/ChatConversation.d.ts +1 -0
  45. package/dist/esm/Chat/ChatConversation.d.ts.map +1 -0
  46. package/dist/esm/Chat/ChatConversation.js.map +1 -1
  47. package/dist/esm/Chat/ChatIdentifier.js.map +1 -1
  48. package/dist/esm/Chat/ChatMention.d.ts +1 -0
  49. package/dist/esm/Chat/ChatMention.d.ts.map +1 -0
  50. package/dist/esm/Chat/ChatMention.js.map +1 -1
  51. package/dist/esm/Chat/ChatMessage.d.ts +1 -0
  52. package/dist/esm/Chat/ChatMessage.d.ts.map +1 -0
  53. package/dist/esm/Chat/ChatMessage.js.map +1 -1
  54. package/dist/esm/Chat/ChatMessageAction.d.ts +1 -0
  55. package/dist/esm/Chat/ChatMessageAction.d.ts.map +1 -0
  56. package/dist/esm/Chat/ChatMessageAction.js.map +1 -1
  57. package/dist/esm/Chat/ChatMessageBody.d.ts +1 -0
  58. package/dist/esm/Chat/ChatMessageBody.d.ts.map +1 -0
  59. package/dist/esm/Chat/ChatMessageBody.js.map +1 -1
  60. package/dist/esm/Chat/ChatSidebar.d.ts +1 -0
  61. package/dist/esm/Chat/ChatSidebar.d.ts.map +1 -0
  62. package/dist/esm/Chat/ChatSidebar.js.map +1 -1
  63. package/dist/esm/Chat/ChatSidebarForObservableQueries.d.ts +1 -0
  64. package/dist/esm/Chat/ChatSidebarForObservableQueries.d.ts.map +1 -0
  65. package/dist/esm/Chat/ChatSidebarForObservableQueries.js.map +1 -1
  66. package/dist/esm/Chat/ChatStatus.js.map +1 -1
  67. package/dist/esm/Chat/ChatTopic.d.ts +1 -0
  68. package/dist/esm/Chat/ChatTopic.d.ts.map +1 -0
  69. package/dist/esm/Chat/ChatTopic.js.map +1 -1
  70. package/dist/esm/Chat/ChatTopicList.d.ts +1 -0
  71. package/dist/esm/Chat/ChatTopicList.d.ts.map +1 -0
  72. package/dist/esm/Chat/ChatTopicList.js.map +1 -1
  73. package/dist/esm/Chat/Kit/AnchoredOverlay.js.map +1 -1
  74. package/dist/esm/Chat/Kit/Avatar/PersonAvatarCircle.js.map +1 -1
  75. package/dist/esm/Chat/Kit/Avatar/getAvatarColor.js.map +1 -1
  76. package/dist/esm/Chat/Kit/Avatar/getInitials.js.map +1 -1
  77. package/dist/esm/Chat/Kit/Avatar/index.d.ts +1 -0
  78. package/dist/esm/Chat/Kit/Avatar/index.d.ts.map +1 -0
  79. package/dist/esm/Chat/Kit/Avatar/index.js +1 -0
  80. package/dist/esm/Chat/Kit/Avatar/index.js.map +1 -0
  81. package/dist/esm/Chat/Kit/Chat.d.ts +1 -0
  82. package/dist/esm/Chat/Kit/Chat.d.ts.map +1 -0
  83. package/dist/esm/Chat/Kit/Chat.js.map +1 -1
  84. package/dist/esm/Chat/Kit/ChatAuthorKind.js.map +1 -1
  85. package/dist/esm/Chat/Kit/ChatBubble.d.ts +1 -0
  86. package/dist/esm/Chat/Kit/ChatBubble.d.ts.map +1 -0
  87. package/dist/esm/Chat/Kit/ChatBubble.js.map +1 -1
  88. package/dist/esm/Chat/Kit/ChatComposer.d.ts +1 -0
  89. package/dist/esm/Chat/Kit/ChatComposer.d.ts.map +1 -0
  90. package/dist/esm/Chat/Kit/ChatComposer.js.map +1 -1
  91. package/dist/esm/Chat/Kit/ChatMessage.d.ts +1 -0
  92. package/dist/esm/Chat/Kit/ChatMessage.d.ts.map +1 -0
  93. package/dist/esm/Chat/Kit/ChatMessage.js.map +1 -1
  94. package/dist/esm/Chat/Kit/ChatMessageAdded.js.map +1 -1
  95. package/dist/esm/Chat/Kit/ChatMessageBubble.d.ts +1 -0
  96. package/dist/esm/Chat/Kit/ChatMessageBubble.d.ts.map +1 -0
  97. package/dist/esm/Chat/Kit/ChatMessageBubble.js.map +1 -1
  98. package/dist/esm/Chat/Kit/ChatMessageReaction.d.ts +1 -0
  99. package/dist/esm/Chat/Kit/ChatMessageReaction.d.ts.map +1 -0
  100. package/dist/esm/Chat/Kit/ChatMessageReaction.js.map +1 -1
  101. package/dist/esm/Chat/Kit/ChatMessageReactionUser.js.map +1 -1
  102. package/dist/esm/Chat/Kit/ChatOwnReaction.js.map +1 -1
  103. package/dist/esm/Chat/Kit/ChatTypingAuthor.d.ts +1 -0
  104. package/dist/esm/Chat/Kit/ChatTypingAuthor.d.ts.map +1 -0
  105. package/dist/esm/Chat/Kit/ChatTypingAuthor.js.map +1 -1
  106. package/dist/esm/Chat/Kit/ChatVariant.js.map +1 -1
  107. package/dist/esm/Chat/Kit/Emoji/EmojiCategory.d.ts +1 -0
  108. package/dist/esm/Chat/Kit/Emoji/EmojiCategory.d.ts.map +1 -0
  109. package/dist/esm/Chat/Kit/Emoji/EmojiCategory.js.map +1 -1
  110. package/dist/esm/Chat/Kit/Emoji/EmojiCategoryKey.js.map +1 -1
  111. package/dist/esm/Chat/Kit/Emoji/EmojiMemory.js.map +1 -1
  112. package/dist/esm/Chat/Kit/Emoji/EmojiPicker.d.ts +1 -0
  113. package/dist/esm/Chat/Kit/Emoji/EmojiPicker.d.ts.map +1 -0
  114. package/dist/esm/Chat/Kit/Emoji/EmojiPicker.js.map +1 -1
  115. package/dist/esm/Chat/Kit/Emoji/emojiCatalog.d.ts +1 -0
  116. package/dist/esm/Chat/Kit/Emoji/emojiCatalog.d.ts.map +1 -0
  117. package/dist/esm/Chat/Kit/Emoji/emojiCatalog.js.map +1 -1
  118. package/dist/esm/Chat/Kit/Emoji/index.d.ts +1 -0
  119. package/dist/esm/Chat/Kit/Emoji/index.d.ts.map +1 -0
  120. package/dist/esm/Chat/Kit/Emoji/index.js +1 -0
  121. package/dist/esm/Chat/Kit/Emoji/index.js.map +1 -0
  122. package/dist/esm/Chat/Kit/Emoji/recentEmojis.d.ts +1 -0
  123. package/dist/esm/Chat/Kit/Emoji/recentEmojis.d.ts.map +1 -0
  124. package/dist/esm/Chat/Kit/Emoji/recentEmojis.js.map +1 -1
  125. package/dist/esm/Chat/Kit/FailedReply.d.ts +1 -0
  126. package/dist/esm/Chat/Kit/FailedReply.d.ts.map +1 -0
  127. package/dist/esm/Chat/Kit/FailedReply.js.map +1 -1
  128. package/dist/esm/Chat/Kit/Mentions/MentionCandidate.d.ts +1 -0
  129. package/dist/esm/Chat/Kit/Mentions/MentionCandidate.d.ts.map +1 -0
  130. package/dist/esm/Chat/Kit/Mentions/MentionCandidate.js.map +1 -1
  131. package/dist/esm/Chat/Kit/Mentions/MentionQuery.js.map +1 -1
  132. package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.d.ts +1 -0
  133. package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.d.ts.map +1 -0
  134. package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.js.map +1 -1
  135. package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.d.ts +1 -0
  136. package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.d.ts.map +1 -0
  137. package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.js.map +1 -1
  138. package/dist/esm/Chat/Kit/Mentions/applyMention.d.ts +1 -0
  139. package/dist/esm/Chat/Kit/Mentions/applyMention.d.ts.map +1 -0
  140. package/dist/esm/Chat/Kit/Mentions/applyMention.js.map +1 -1
  141. package/dist/esm/Chat/Kit/Mentions/extractMentions.js.map +1 -1
  142. package/dist/esm/Chat/Kit/Mentions/findMentionRanges.js.map +1 -1
  143. package/dist/esm/Chat/Kit/Mentions/index.d.ts +1 -0
  144. package/dist/esm/Chat/Kit/Mentions/index.d.ts.map +1 -0
  145. package/dist/esm/Chat/Kit/Mentions/index.js +1 -0
  146. package/dist/esm/Chat/Kit/Mentions/index.js.map +1 -0
  147. package/dist/esm/Chat/Kit/Mentions/matchCandidates.d.ts +1 -0
  148. package/dist/esm/Chat/Kit/Mentions/matchCandidates.d.ts.map +1 -0
  149. package/dist/esm/Chat/Kit/Mentions/matchCandidates.js.map +1 -1
  150. package/dist/esm/Chat/Kit/Mentions/mentionSegments.js.map +1 -1
  151. package/dist/esm/Chat/Kit/MessageReactions.d.ts +1 -0
  152. package/dist/esm/Chat/Kit/MessageReactions.d.ts.map +1 -0
  153. package/dist/esm/Chat/Kit/MessageReactions.js.map +1 -1
  154. package/dist/esm/Chat/Kit/ReactionPicker.d.ts +1 -0
  155. package/dist/esm/Chat/Kit/ReactionPicker.d.ts.map +1 -0
  156. package/dist/esm/Chat/Kit/ReactionPicker.js.map +1 -1
  157. package/dist/esm/Chat/Kit/TypingIndicator.d.ts +1 -0
  158. package/dist/esm/Chat/Kit/TypingIndicator.d.ts.map +1 -0
  159. package/dist/esm/Chat/Kit/TypingIndicator.js.map +1 -1
  160. package/dist/esm/Chat/Kit/findOwnReaction.d.ts +1 -0
  161. package/dist/esm/Chat/Kit/findOwnReaction.d.ts.map +1 -0
  162. package/dist/esm/Chat/Kit/findOwnReaction.js.map +1 -1
  163. package/dist/esm/Chat/Kit/index.d.ts +1 -0
  164. package/dist/esm/Chat/Kit/index.d.ts.map +1 -0
  165. package/dist/esm/Chat/Kit/index.js +1 -0
  166. package/dist/esm/Chat/Kit/index.js.map +1 -0
  167. package/dist/esm/Chat/Kit/reactionsExcludingUser.d.ts +1 -0
  168. package/dist/esm/Chat/Kit/reactionsExcludingUser.d.ts.map +1 -0
  169. package/dist/esm/Chat/Kit/reactionsExcludingUser.js.map +1 -1
  170. package/dist/esm/Chat/index.d.ts +1 -0
  171. package/dist/esm/Chat/index.d.ts.map +1 -0
  172. package/dist/esm/Chat/isTopicUnnamed.d.ts +1 -0
  173. package/dist/esm/Chat/isTopicUnnamed.d.ts.map +1 -0
  174. package/dist/esm/Chat/isTopicUnnamed.js.map +1 -1
  175. package/dist/esm/Chat/relativeTimestamp.js.map +1 -1
  176. package/dist/esm/Chat/shouldRequestTopicName.js.map +1 -1
  177. package/dist/esm/Chat/topicsByActivity.d.ts +1 -0
  178. package/dist/esm/Chat/topicsByActivity.d.ts.map +1 -0
  179. package/dist/esm/Chat/topicsByActivity.js.map +1 -1
  180. package/dist/esm/CommandDialog/CommandDialog.d.ts +1 -0
  181. package/dist/esm/CommandDialog/CommandDialog.d.ts.map +1 -0
  182. package/dist/esm/CommandDialog/CommandDialog.js.map +1 -1
  183. package/dist/esm/CommandDialog/CommandStepper.d.ts +1 -0
  184. package/dist/esm/CommandDialog/CommandStepper.d.ts.map +1 -0
  185. package/dist/esm/CommandDialog/CommandStepper.js.map +1 -1
  186. package/dist/esm/CommandDialog/CommandStepperContent.d.ts +1 -0
  187. package/dist/esm/CommandDialog/CommandStepperContent.d.ts.map +1 -0
  188. package/dist/esm/CommandDialog/CommandStepperContent.js.map +1 -1
  189. package/dist/esm/CommandDialog/StepperCommandDialog.d.ts +1 -0
  190. package/dist/esm/CommandDialog/StepperCommandDialog.d.ts.map +1 -0
  191. package/dist/esm/CommandDialog/StepperCommandDialog.js.map +1 -1
  192. package/dist/esm/CommandDialog/StepperPanel.js.map +1 -1
  193. package/dist/esm/CommandDialog/applyBeforeExecute.js.map +1 -1
  194. package/dist/esm/CommandDialog/commandValuesUnchanged.js.map +1 -1
  195. package/dist/esm/CommandDialog/confirmBeforeExecute.js.map +1 -1
  196. package/dist/esm/CommandDialog/index.d.ts +1 -0
  197. package/dist/esm/CommandDialog/index.d.ts.map +1 -0
  198. package/dist/esm/CommandDialog/stepChildren.js.map +1 -1
  199. package/dist/esm/CommandDialog/transitionStep.d.ts +1 -0
  200. package/dist/esm/CommandDialog/transitionStep.d.ts.map +1 -0
  201. package/dist/esm/CommandDialog/transitionStep.js.map +1 -1
  202. package/dist/esm/CommandDialog/useCommandExecution.d.ts +1 -0
  203. package/dist/esm/CommandDialog/useCommandExecution.d.ts.map +1 -0
  204. package/dist/esm/CommandDialog/useCommandExecution.js.map +1 -1
  205. package/dist/esm/CommandDialog/useSubmissionFlight.js.map +1 -1
  206. package/dist/esm/CommandForm/AutoCommandForm.js.map +1 -1
  207. package/dist/esm/CommandForm/FieldTypeProvider.js.map +1 -1
  208. package/dist/esm/CommandForm/commandFormMarkers.js.map +1 -1
  209. package/dist/esm/CommandForm/defaultFieldTypeProviders.js.map +1 -1
  210. package/dist/esm/CommandForm/fieldTypeProviderRegistry.d.ts +1 -0
  211. package/dist/esm/CommandForm/fieldTypeProviderRegistry.d.ts.map +1 -0
  212. package/dist/esm/CommandForm/fieldTypeProviderRegistry.js.map +1 -1
  213. package/dist/esm/CommandForm/fields/CalendarField.d.ts +1 -0
  214. package/dist/esm/CommandForm/fields/CalendarField.d.ts.map +1 -0
  215. package/dist/esm/CommandForm/fields/CalendarField.js.map +1 -1
  216. package/dist/esm/CommandForm/fields/CheckboxField.d.ts +1 -0
  217. package/dist/esm/CommandForm/fields/CheckboxField.d.ts.map +1 -0
  218. package/dist/esm/CommandForm/fields/CheckboxField.js.map +1 -1
  219. package/dist/esm/CommandForm/fields/ChipsField.d.ts +1 -0
  220. package/dist/esm/CommandForm/fields/ChipsField.d.ts.map +1 -0
  221. package/dist/esm/CommandForm/fields/ChipsField.js.map +1 -1
  222. package/dist/esm/CommandForm/fields/ColorPickerField.d.ts +1 -0
  223. package/dist/esm/CommandForm/fields/ColorPickerField.d.ts.map +1 -0
  224. package/dist/esm/CommandForm/fields/ColorPickerField.js.map +1 -1
  225. package/dist/esm/CommandForm/fields/DropdownField.d.ts +1 -0
  226. package/dist/esm/CommandForm/fields/DropdownField.d.ts.map +1 -0
  227. package/dist/esm/CommandForm/fields/DropdownField.js.map +1 -1
  228. package/dist/esm/CommandForm/fields/InputTextField.d.ts +1 -0
  229. package/dist/esm/CommandForm/fields/InputTextField.d.ts.map +1 -0
  230. package/dist/esm/CommandForm/fields/InputTextField.js.map +1 -1
  231. package/dist/esm/CommandForm/fields/MultiSelectField.d.ts +1 -0
  232. package/dist/esm/CommandForm/fields/MultiSelectField.d.ts.map +1 -0
  233. package/dist/esm/CommandForm/fields/MultiSelectField.js.map +1 -1
  234. package/dist/esm/CommandForm/fields/NumberField.d.ts +1 -0
  235. package/dist/esm/CommandForm/fields/NumberField.d.ts.map +1 -0
  236. package/dist/esm/CommandForm/fields/NumberField.js.map +1 -1
  237. package/dist/esm/CommandForm/fields/NumberInputField.d.ts +1 -0
  238. package/dist/esm/CommandForm/fields/NumberInputField.d.ts.map +1 -0
  239. package/dist/esm/CommandForm/fields/NumberInputField.js.map +1 -1
  240. package/dist/esm/CommandForm/fields/PasswordField.d.ts +1 -0
  241. package/dist/esm/CommandForm/fields/PasswordField.d.ts.map +1 -0
  242. package/dist/esm/CommandForm/fields/PasswordField.js.map +1 -1
  243. package/dist/esm/CommandForm/fields/RadioButtonField.d.ts +1 -0
  244. package/dist/esm/CommandForm/fields/RadioButtonField.d.ts.map +1 -0
  245. package/dist/esm/CommandForm/fields/RadioButtonField.js.map +1 -1
  246. package/dist/esm/CommandForm/fields/RadioGroupField.d.ts +1 -0
  247. package/dist/esm/CommandForm/fields/RadioGroupField.d.ts.map +1 -0
  248. package/dist/esm/CommandForm/fields/RadioGroupField.js.map +1 -1
  249. package/dist/esm/CommandForm/fields/RatingField.d.ts +1 -0
  250. package/dist/esm/CommandForm/fields/RatingField.d.ts.map +1 -0
  251. package/dist/esm/CommandForm/fields/RatingField.js.map +1 -1
  252. package/dist/esm/CommandForm/fields/SliderField.d.ts +1 -0
  253. package/dist/esm/CommandForm/fields/SliderField.d.ts.map +1 -0
  254. package/dist/esm/CommandForm/fields/SliderField.js.map +1 -1
  255. package/dist/esm/CommandForm/fields/TextAreaField.d.ts +1 -0
  256. package/dist/esm/CommandForm/fields/TextAreaField.d.ts.map +1 -0
  257. package/dist/esm/CommandForm/fields/TextAreaField.js.map +1 -1
  258. package/dist/esm/CommandForm/fields/ToggleSwitchField.d.ts +1 -0
  259. package/dist/esm/CommandForm/fields/ToggleSwitchField.d.ts.map +1 -0
  260. package/dist/esm/CommandForm/fields/ToggleSwitchField.js.map +1 -1
  261. package/dist/esm/CommandForm/fields/chipValues.js.map +1 -1
  262. package/dist/esm/CommandForm/fields/fieldAccessibility.js.map +1 -1
  263. package/dist/esm/CommandForm/fields/fieldValueFromEvent.js.map +1 -1
  264. package/dist/esm/CommandForm/fields/index.d.ts +1 -0
  265. package/dist/esm/CommandForm/fields/index.d.ts.map +1 -0
  266. package/dist/esm/CommandForm/fields/index.js +1 -0
  267. package/dist/esm/CommandForm/fields/index.js.map +1 -0
  268. package/dist/esm/CommandForm/index.d.ts +1 -0
  269. package/dist/esm/CommandForm/index.d.ts.map +1 -0
  270. package/dist/esm/Common/ActionMenubar.d.ts +1 -0
  271. package/dist/esm/Common/ActionMenubar.d.ts.map +1 -0
  272. package/dist/esm/Common/ActionMenubar.js.map +1 -1
  273. package/dist/esm/Common/Breadcrumbs.js.map +1 -1
  274. package/dist/esm/Common/Button.d.ts +1 -0
  275. package/dist/esm/Common/Button.d.ts.map +1 -0
  276. package/dist/esm/Common/Button.js.map +1 -1
  277. package/dist/esm/Common/ButtonImplementation.d.ts +1 -0
  278. package/dist/esm/Common/ButtonImplementation.d.ts.map +1 -0
  279. package/dist/esm/Common/ButtonImplementation.js.map +1 -1
  280. package/dist/esm/Common/Checkbox.d.ts +1 -0
  281. package/dist/esm/Common/Checkbox.d.ts.map +1 -0
  282. package/dist/esm/Common/Checkbox.js.map +1 -1
  283. package/dist/esm/Common/CheckboxImplementation.d.ts +1 -0
  284. package/dist/esm/Common/CheckboxImplementation.d.ts.map +1 -0
  285. package/dist/esm/Common/CheckboxImplementation.js.map +1 -1
  286. package/dist/esm/Common/ComboBox.js.map +1 -1
  287. package/dist/esm/Common/CratisComponentsProvider.d.ts +1 -0
  288. package/dist/esm/Common/CratisComponentsProvider.d.ts.map +1 -0
  289. package/dist/esm/Common/CratisComponentsProvider.js.map +1 -1
  290. package/dist/esm/Common/DatePickerInput.d.ts +1 -0
  291. package/dist/esm/Common/DatePickerInput.d.ts.map +1 -0
  292. package/dist/esm/Common/DatePickerInput.js.map +1 -1
  293. package/dist/esm/Common/DatePickerInputImplementation.d.ts +1 -0
  294. package/dist/esm/Common/DatePickerInputImplementation.d.ts.map +1 -0
  295. package/dist/esm/Common/DatePickerInputImplementation.js.map +1 -1
  296. package/dist/esm/Common/ErrorBoundary.js.map +1 -1
  297. package/dist/esm/Common/FormElement.js.map +1 -1
  298. package/dist/esm/Common/Icon.js.map +1 -1
  299. package/dist/esm/Common/IconButton.d.ts +1 -0
  300. package/dist/esm/Common/IconButton.d.ts.map +1 -0
  301. package/dist/esm/Common/IconButton.js.map +1 -1
  302. package/dist/esm/Common/IconButtonImplementation.d.ts +1 -0
  303. package/dist/esm/Common/IconButtonImplementation.d.ts.map +1 -0
  304. package/dist/esm/Common/IconButtonImplementation.js.map +1 -1
  305. package/dist/esm/Common/NumberInput.d.ts +1 -0
  306. package/dist/esm/Common/NumberInput.d.ts.map +1 -0
  307. package/dist/esm/Common/NumberInput.js.map +1 -1
  308. package/dist/esm/Common/NumberInputCommitReason.js.map +1 -1
  309. package/dist/esm/Common/NumberInputPartAttributes.js.map +1 -1
  310. package/dist/esm/Common/Page.js.map +1 -1
  311. package/dist/esm/Common/Radio.d.ts +1 -0
  312. package/dist/esm/Common/Radio.d.ts.map +1 -0
  313. package/dist/esm/Common/Radio.js.map +1 -1
  314. package/dist/esm/Common/RadioImplementation.d.ts +1 -0
  315. package/dist/esm/Common/RadioImplementation.d.ts.map +1 -0
  316. package/dist/esm/Common/RadioImplementation.js.map +1 -1
  317. package/dist/esm/Common/Surface.js.map +1 -1
  318. package/dist/esm/Common/SurfaceImplementation.d.ts +1 -0
  319. package/dist/esm/Common/SurfaceImplementation.d.ts.map +1 -0
  320. package/dist/esm/Common/SurfaceImplementation.js.map +1 -1
  321. package/dist/esm/Common/Switch.d.ts +1 -0
  322. package/dist/esm/Common/Switch.d.ts.map +1 -0
  323. package/dist/esm/Common/Switch.js.map +1 -1
  324. package/dist/esm/Common/SwitchImplementation.d.ts +1 -0
  325. package/dist/esm/Common/SwitchImplementation.d.ts.map +1 -0
  326. package/dist/esm/Common/SwitchImplementation.js.map +1 -1
  327. package/dist/esm/Common/Tabs.js.map +1 -1
  328. package/dist/esm/Common/TagGroup.js.map +1 -1
  329. package/dist/esm/Common/TextArea.d.ts +1 -0
  330. package/dist/esm/Common/TextArea.d.ts.map +1 -0
  331. package/dist/esm/Common/TextArea.js.map +1 -1
  332. package/dist/esm/Common/TextAreaImplementation.d.ts +1 -0
  333. package/dist/esm/Common/TextAreaImplementation.d.ts.map +1 -0
  334. package/dist/esm/Common/TextAreaImplementation.js.map +1 -1
  335. package/dist/esm/Common/TextInput.d.ts +1 -0
  336. package/dist/esm/Common/TextInput.d.ts.map +1 -0
  337. package/dist/esm/Common/TextInput.js.map +1 -1
  338. package/dist/esm/Common/TextInputImplementation.d.ts +1 -0
  339. package/dist/esm/Common/TextInputImplementation.d.ts.map +1 -0
  340. package/dist/esm/Common/TextInputImplementation.js.map +1 -1
  341. package/dist/esm/Common/ToggleGroup.js.map +1 -1
  342. package/dist/esm/Common/ToolbarFocusMode.js.map +1 -1
  343. package/dist/esm/Common/Tooltip.js.map +1 -1
  344. package/dist/esm/Common/TooltipImplementation.d.ts +1 -0
  345. package/dist/esm/Common/TooltipImplementation.d.ts.map +1 -0
  346. package/dist/esm/Common/TooltipImplementation.js.map +1 -1
  347. package/dist/esm/Common/index.d.ts +1 -0
  348. package/dist/esm/Common/index.d.ts.map +1 -0
  349. package/dist/esm/Common/messaging/useOptionalMessenger.js.map +1 -1
  350. package/dist/esm/Common/normalizeIconClass.js.map +1 -1
  351. package/dist/esm/Common/reactAriaProps.js.map +1 -1
  352. package/dist/esm/Common/useNativeCheckedState.js.map +1 -1
  353. package/dist/esm/Common/useToolbarKeyboardNavigation.d.ts +1 -0
  354. package/dist/esm/Common/useToolbarKeyboardNavigation.d.ts.map +1 -0
  355. package/dist/esm/Common/useToolbarKeyboardNavigation.js.map +1 -1
  356. package/dist/esm/DataPage/DataPage.d.ts +1 -0
  357. package/dist/esm/DataPage/DataPage.d.ts.map +1 -0
  358. package/dist/esm/DataPage/DataPage.js.map +1 -1
  359. package/dist/esm/DataPage/DataPageLayout.js.map +1 -1
  360. package/dist/esm/DataPage/index.d.ts +1 -0
  361. package/dist/esm/DataPage/index.d.ts.map +1 -0
  362. package/dist/esm/DataTables/Column.d.ts +1 -0
  363. package/dist/esm/DataTables/Column.d.ts.map +1 -0
  364. package/dist/esm/DataTables/Column.js.map +1 -1
  365. package/dist/esm/DataTables/ColumnFilterMenu.d.ts +1 -0
  366. package/dist/esm/DataTables/ColumnFilterMenu.d.ts.map +1 -0
  367. package/dist/esm/DataTables/ColumnFilterMenu.js.map +1 -1
  368. package/dist/esm/DataTables/DataTableCore.d.ts +1 -0
  369. package/dist/esm/DataTables/DataTableCore.d.ts.map +1 -0
  370. package/dist/esm/DataTables/DataTableCore.js.map +1 -1
  371. package/dist/esm/DataTables/DataTableFilterMatcherRegistry.d.ts +1 -0
  372. package/dist/esm/DataTables/DataTableFilterMatcherRegistry.d.ts.map +1 -0
  373. package/dist/esm/DataTables/DataTableFilterMatcherRegistry.js.map +1 -1
  374. package/dist/esm/DataTables/DataTableFilterMeta.js.map +1 -1
  375. package/dist/esm/DataTables/DataTableForObservableQuery.d.ts +1 -0
  376. package/dist/esm/DataTables/DataTableForObservableQuery.d.ts.map +1 -0
  377. package/dist/esm/DataTables/DataTableForObservableQuery.js.map +1 -1
  378. package/dist/esm/DataTables/DataTableForQuery.d.ts +1 -0
  379. package/dist/esm/DataTables/DataTableForQuery.d.ts.map +1 -0
  380. package/dist/esm/DataTables/DataTableForQuery.js.map +1 -1
  381. package/dist/esm/DataTables/DataTableSelectionChangeEvent.js.map +1 -1
  382. package/dist/esm/DataTables/DataTableStatus.js.map +1 -1
  383. package/dist/esm/DataTables/TablePaginator.d.ts +1 -0
  384. package/dist/esm/DataTables/TablePaginator.d.ts.map +1 -0
  385. package/dist/esm/DataTables/TablePaginator.js.map +1 -1
  386. package/dist/esm/DataTables/TablePaginatorImplementation.d.ts +1 -0
  387. package/dist/esm/DataTables/TablePaginatorImplementation.d.ts.map +1 -0
  388. package/dist/esm/DataTables/TablePaginatorImplementation.js.map +1 -1
  389. package/dist/esm/DataTables/index.d.ts +1 -0
  390. package/dist/esm/DataTables/index.d.ts.map +1 -0
  391. package/dist/esm/DataTables/paginatorRange.js.map +1 -1
  392. package/dist/esm/DataTables/resolveDataTableStatus.d.ts +1 -0
  393. package/dist/esm/DataTables/resolveDataTableStatus.d.ts.map +1 -0
  394. package/dist/esm/DataTables/resolveDataTableStatus.js.map +1 -1
  395. package/dist/esm/DataTables/selectionKeys.js.map +1 -1
  396. package/dist/esm/Dialogs/BusyIndicatorDialog.js.map +1 -1
  397. package/dist/esm/Dialogs/ConfirmationDialog.js.map +1 -1
  398. package/dist/esm/Dialogs/Dialog.d.ts +1 -0
  399. package/dist/esm/Dialogs/Dialog.d.ts.map +1 -0
  400. package/dist/esm/Dialogs/Dialog.js.map +1 -1
  401. package/dist/esm/Dialogs/DialogImplementation.d.ts +1 -0
  402. package/dist/esm/Dialogs/DialogImplementation.d.ts.map +1 -0
  403. package/dist/esm/Dialogs/DialogImplementation.js.map +1 -1
  404. package/dist/esm/Dialogs/DialogInitialFocus.js.map +1 -1
  405. package/dist/esm/Dialogs/index.d.ts +1 -0
  406. package/dist/esm/Dialogs/index.d.ts.map +1 -0
  407. package/dist/esm/Display/Avatar.js.map +1 -1
  408. package/dist/esm/Display/Badge.js.map +1 -1
  409. package/dist/esm/Display/Chip.js.map +1 -1
  410. package/dist/esm/Display/Message.js.map +1 -1
  411. package/dist/esm/Display/ProgressBar.js.map +1 -1
  412. package/dist/esm/Display/ProgressBarImplementation.d.ts +1 -0
  413. package/dist/esm/Display/ProgressBarImplementation.d.ts.map +1 -0
  414. package/dist/esm/Display/ProgressBarImplementation.js.map +1 -1
  415. package/dist/esm/Display/ProgressSpinner.js.map +1 -1
  416. package/dist/esm/Display/Skeleton.js.map +1 -1
  417. package/dist/esm/Display/Tag.js.map +1 -1
  418. package/dist/esm/Display/index.d.ts +1 -0
  419. package/dist/esm/Display/index.d.ts.map +1 -0
  420. package/dist/esm/Dropdown/Dropdown.d.ts +1 -0
  421. package/dist/esm/Dropdown/Dropdown.d.ts.map +1 -0
  422. package/dist/esm/Dropdown/Dropdown.js.map +1 -1
  423. package/dist/esm/Dropdown/DropdownImplementation.d.ts +1 -0
  424. package/dist/esm/Dropdown/DropdownImplementation.d.ts.map +1 -0
  425. package/dist/esm/Dropdown/DropdownImplementation.js.map +1 -1
  426. package/dist/esm/Dropdown/index.d.ts +1 -0
  427. package/dist/esm/Dropdown/index.d.ts.map +1 -0
  428. package/dist/esm/Dropdown/observeLabelAssociations.js.map +1 -1
  429. package/dist/esm/Dropdown/useExternalLabel.js.map +1 -1
  430. package/dist/esm/Filter/CheckboxListFilter.d.ts +1 -0
  431. package/dist/esm/Filter/CheckboxListFilter.d.ts.map +1 -0
  432. package/dist/esm/Filter/CheckboxListFilter.js.map +1 -1
  433. package/dist/esm/Filter/FilterEditor.d.ts +1 -0
  434. package/dist/esm/Filter/FilterEditor.d.ts.map +1 -0
  435. package/dist/esm/Filter/FilterEditor.js.map +1 -1
  436. package/dist/esm/Filter/FilterEditorProps.d.ts +1 -0
  437. package/dist/esm/Filter/FilterEditorProps.d.ts.map +1 -0
  438. package/dist/esm/Filter/FilterEditorProps.js.map +1 -1
  439. package/dist/esm/Filter/FilterPanel.d.ts +1 -0
  440. package/dist/esm/Filter/FilterPanel.d.ts.map +1 -0
  441. package/dist/esm/Filter/FilterPanel.js.map +1 -1
  442. package/dist/esm/Filter/RangeHistogramFilter.d.ts +1 -0
  443. package/dist/esm/Filter/RangeHistogramFilter.d.ts.map +1 -0
  444. package/dist/esm/Filter/RangeHistogramFilter.js.map +1 -1
  445. package/dist/esm/Filter/index.d.ts +1 -0
  446. package/dist/esm/Filter/index.d.ts.map +1 -0
  447. package/dist/esm/Filter/types.js.map +1 -1
  448. package/dist/esm/Filter/useFilterState.d.ts +1 -0
  449. package/dist/esm/Filter/useFilterState.d.ts.map +1 -0
  450. package/dist/esm/Filter/useFilterState.js.map +1 -1
  451. package/dist/esm/Filter/useOptionListOverflow.js.map +1 -1
  452. package/dist/esm/Filter/utils.d.ts +1 -0
  453. package/dist/esm/Filter/utils.d.ts.map +1 -0
  454. package/dist/esm/Filter/utils.js.map +1 -1
  455. package/dist/esm/Notifications/Toaster.js.map +1 -1
  456. package/dist/esm/Notifications/index.d.ts +1 -0
  457. package/dist/esm/Notifications/index.d.ts.map +1 -0
  458. package/dist/esm/Notifications/toast.js.map +1 -1
  459. package/dist/esm/Notifications/toastCommandResult.js.map +1 -1
  460. package/dist/esm/ObjectContentEditor/ObjectContentEditor.d.ts +1 -0
  461. package/dist/esm/ObjectContentEditor/ObjectContentEditor.d.ts.map +1 -0
  462. package/dist/esm/ObjectContentEditor/ObjectContentEditor.js.map +1 -1
  463. package/dist/esm/ObjectContentEditor/index.d.ts +1 -0
  464. package/dist/esm/ObjectContentEditor/index.d.ts.map +1 -0
  465. package/dist/esm/ObjectContentEditor/objectHelpers.d.ts +1 -0
  466. package/dist/esm/ObjectContentEditor/objectHelpers.d.ts.map +1 -0
  467. package/dist/esm/ObjectContentEditor/objectHelpers.js.map +1 -1
  468. package/dist/esm/ObjectNavigationalBar/ObjectNavigationalBar.js.map +1 -1
  469. package/dist/esm/ObjectNavigationalBar/breadcrumbHelpers.js.map +1 -1
  470. package/dist/esm/ObjectNavigationalBar/index.d.ts +1 -0
  471. package/dist/esm/ObjectNavigationalBar/index.d.ts.map +1 -0
  472. package/dist/esm/PivotViewer/PivotViewer.d.ts +1 -0
  473. package/dist/esm/PivotViewer/PivotViewer.d.ts.map +1 -0
  474. package/dist/esm/PivotViewer/PivotViewer.js.map +1 -1
  475. package/dist/esm/PivotViewer/PivotViewerLabels.js.map +1 -1
  476. package/dist/esm/PivotViewer/components/AxisLabels.d.ts +1 -0
  477. package/dist/esm/PivotViewer/components/AxisLabels.d.ts.map +1 -0
  478. package/dist/esm/PivotViewer/components/AxisLabels.js.map +1 -1
  479. package/dist/esm/PivotViewer/components/DetailPanel.js.map +1 -1
  480. package/dist/esm/PivotViewer/components/FilterPanel.d.ts +1 -0
  481. package/dist/esm/PivotViewer/components/FilterPanel.d.ts.map +1 -0
  482. package/dist/esm/PivotViewer/components/FilterPanel.js.map +1 -1
  483. package/dist/esm/PivotViewer/components/FilterPanelContainer.d.ts +1 -0
  484. package/dist/esm/PivotViewer/components/FilterPanelContainer.d.ts.map +1 -0
  485. package/dist/esm/PivotViewer/components/FilterPanelContainer.js.map +1 -1
  486. package/dist/esm/PivotViewer/components/PivotCanvas.d.ts +1 -0
  487. package/dist/esm/PivotViewer/components/PivotCanvas.d.ts.map +1 -0
  488. package/dist/esm/PivotViewer/components/PivotCanvas.js.map +1 -1
  489. package/dist/esm/PivotViewer/components/PivotViewerMain.d.ts +1 -0
  490. package/dist/esm/PivotViewer/components/PivotViewerMain.d.ts.map +1 -0
  491. package/dist/esm/PivotViewer/components/PivotViewerMain.js.map +1 -1
  492. package/dist/esm/PivotViewer/components/RangeHistogramFilter.d.ts +1 -0
  493. package/dist/esm/PivotViewer/components/RangeHistogramFilter.d.ts.map +1 -0
  494. package/dist/esm/PivotViewer/components/RangeHistogramFilter.js.map +1 -1
  495. package/dist/esm/PivotViewer/components/Spinner.js.map +1 -1
  496. package/dist/esm/PivotViewer/components/Toolbar.d.ts +1 -0
  497. package/dist/esm/PivotViewer/components/Toolbar.d.ts.map +1 -0
  498. package/dist/esm/PivotViewer/components/Toolbar.js.map +1 -1
  499. package/dist/esm/PivotViewer/components/ToolbarContainer.d.ts +1 -0
  500. package/dist/esm/PivotViewer/components/ToolbarContainer.d.ts.map +1 -0
  501. package/dist/esm/PivotViewer/components/ToolbarContainer.js.map +1 -1
  502. package/dist/esm/PivotViewer/components/index.d.ts +1 -0
  503. package/dist/esm/PivotViewer/components/index.d.ts.map +1 -0
  504. package/dist/esm/PivotViewer/components/index.js +1 -0
  505. package/dist/esm/PivotViewer/components/index.js.map +1 -0
  506. package/dist/esm/PivotViewer/components/pivot/animation.d.ts +1 -0
  507. package/dist/esm/PivotViewer/components/pivot/animation.d.ts.map +1 -0
  508. package/dist/esm/PivotViewer/components/pivot/animation.js.map +1 -1
  509. package/dist/esm/PivotViewer/components/pivot/colorResolver.d.ts +1 -0
  510. package/dist/esm/PivotViewer/components/pivot/colorResolver.d.ts.map +1 -0
  511. package/dist/esm/PivotViewer/components/pivot/colorResolver.js.map +1 -1
  512. package/dist/esm/PivotViewer/components/pivot/constants.js.map +1 -1
  513. package/dist/esm/PivotViewer/components/pivot/ellipsize.js.map +1 -1
  514. package/dist/esm/PivotViewer/components/pivot/groups.d.ts +1 -0
  515. package/dist/esm/PivotViewer/components/pivot/groups.d.ts.map +1 -0
  516. package/dist/esm/PivotViewer/components/pivot/groups.js.map +1 -1
  517. package/dist/esm/PivotViewer/components/pivot/sprites.d.ts +1 -0
  518. package/dist/esm/PivotViewer/components/pivot/sprites.d.ts.map +1 -0
  519. package/dist/esm/PivotViewer/components/pivot/sprites.js.map +1 -1
  520. package/dist/esm/PivotViewer/components/pivot/syncScrollSprites.d.ts +1 -0
  521. package/dist/esm/PivotViewer/components/pivot/syncScrollSprites.d.ts.map +1 -0
  522. package/dist/esm/PivotViewer/components/pivot/syncScrollSprites.js.map +1 -1
  523. package/dist/esm/PivotViewer/components/pivot/visibility.d.ts +1 -0
  524. package/dist/esm/PivotViewer/components/pivot/visibility.d.ts.map +1 -0
  525. package/dist/esm/PivotViewer/components/pivot/visibility.js.map +1 -1
  526. package/dist/esm/PivotViewer/constants.js.map +1 -1
  527. package/dist/esm/PivotViewer/engine/layout.d.ts +1 -0
  528. package/dist/esm/PivotViewer/engine/layout.d.ts.map +1 -0
  529. package/dist/esm/PivotViewer/engine/layout.js.map +1 -1
  530. package/dist/esm/PivotViewer/engine/pivot.worker.js +1 -0
  531. package/dist/esm/PivotViewer/engine/pivot.worker.js.map +1 -0
  532. package/dist/esm/PivotViewer/engine/requestCorrelator.js.map +1 -1
  533. package/dist/esm/PivotViewer/engine/store.d.ts +1 -0
  534. package/dist/esm/PivotViewer/engine/store.d.ts.map +1 -0
  535. package/dist/esm/PivotViewer/engine/store.js.map +1 -1
  536. package/dist/esm/PivotViewer/engine/types.js.map +1 -1
  537. package/dist/esm/PivotViewer/hooks/index.d.ts +1 -0
  538. package/dist/esm/PivotViewer/hooks/index.d.ts.map +1 -0
  539. package/dist/esm/PivotViewer/hooks/index.js +1 -0
  540. package/dist/esm/PivotViewer/hooks/index.js.map +1 -0
  541. package/dist/esm/PivotViewer/hooks/useAnimationModeTracking.js.map +1 -1
  542. package/dist/esm/PivotViewer/hooks/useCardSelection.d.ts +1 -0
  543. package/dist/esm/PivotViewer/hooks/useCardSelection.d.ts.map +1 -0
  544. package/dist/esm/PivotViewer/hooks/useCardSelection.js.map +1 -1
  545. package/dist/esm/PivotViewer/hooks/useContainerDimensions.js.map +1 -1
  546. package/dist/esm/PivotViewer/hooks/useCurrentFilters.d.ts +1 -0
  547. package/dist/esm/PivotViewer/hooks/useCurrentFilters.d.ts.map +1 -0
  548. package/dist/esm/PivotViewer/hooks/useCurrentFilters.js.map +1 -1
  549. package/dist/esm/PivotViewer/hooks/useDetailPanelClose.d.ts +1 -0
  550. package/dist/esm/PivotViewer/hooks/useDetailPanelClose.d.ts.map +1 -0
  551. package/dist/esm/PivotViewer/hooks/useDetailPanelClose.js.map +1 -1
  552. package/dist/esm/PivotViewer/hooks/useDimensionState.d.ts +1 -0
  553. package/dist/esm/PivotViewer/hooks/useDimensionState.d.ts.map +1 -0
  554. package/dist/esm/PivotViewer/hooks/useDimensionState.js.map +1 -1
  555. package/dist/esm/PivotViewer/hooks/useFieldExtractors.d.ts +1 -0
  556. package/dist/esm/PivotViewer/hooks/useFieldExtractors.d.ts.map +1 -0
  557. package/dist/esm/PivotViewer/hooks/useFieldExtractors.js.map +1 -1
  558. package/dist/esm/PivotViewer/hooks/useFilterOptions.d.ts +1 -0
  559. package/dist/esm/PivotViewer/hooks/useFilterOptions.d.ts.map +1 -0
  560. package/dist/esm/PivotViewer/hooks/useFilterOptions.js.map +1 -1
  561. package/dist/esm/PivotViewer/hooks/useFilterPanelDrag.js.map +1 -1
  562. package/dist/esm/PivotViewer/hooks/useFilterState.d.ts +1 -0
  563. package/dist/esm/PivotViewer/hooks/useFilterState.d.ts.map +1 -0
  564. package/dist/esm/PivotViewer/hooks/useFilterState.js.map +1 -1
  565. package/dist/esm/PivotViewer/hooks/useFilteredData.d.ts +1 -0
  566. package/dist/esm/PivotViewer/hooks/useFilteredData.d.ts.map +1 -0
  567. package/dist/esm/PivotViewer/hooks/useFilteredData.js +1 -0
  568. package/dist/esm/PivotViewer/hooks/useFilteredData.js.map +1 -0
  569. package/dist/esm/PivotViewer/hooks/usePanning.js.map +1 -1
  570. package/dist/esm/PivotViewer/hooks/usePivotEngine.d.ts +1 -0
  571. package/dist/esm/PivotViewer/hooks/usePivotEngine.d.ts.map +1 -0
  572. package/dist/esm/PivotViewer/hooks/usePivotEngine.js.map +1 -1
  573. package/dist/esm/PivotViewer/hooks/useScrollSync.d.ts +1 -0
  574. package/dist/esm/PivotViewer/hooks/useScrollSync.d.ts.map +1 -0
  575. package/dist/esm/PivotViewer/hooks/useScrollSync.js.map +1 -1
  576. package/dist/esm/PivotViewer/hooks/useSelectedItem.js +1 -0
  577. package/dist/esm/PivotViewer/hooks/useSelectedItem.js.map +1 -0
  578. package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.d.ts +1 -0
  579. package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.d.ts.map +1 -0
  580. package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.js.map +1 -1
  581. package/dist/esm/PivotViewer/hooks/useWheelZoom.js.map +1 -1
  582. package/dist/esm/PivotViewer/hooks/useZoomScrollAnchor.js.map +1 -1
  583. package/dist/esm/PivotViewer/hooks/useZoomState.js.map +1 -1
  584. package/dist/esm/PivotViewer/index.d.ts +1 -0
  585. package/dist/esm/PivotViewer/index.d.ts.map +1 -0
  586. package/dist/esm/PivotViewer/types.d.ts +1 -0
  587. package/dist/esm/PivotViewer/types.d.ts.map +1 -0
  588. package/dist/esm/PivotViewer/types.js.map +1 -1
  589. package/dist/esm/PivotViewer/utils/animations.js.map +1 -1
  590. package/dist/esm/PivotViewer/utils/cardPosition.d.ts +1 -0
  591. package/dist/esm/PivotViewer/utils/cardPosition.d.ts.map +1 -0
  592. package/dist/esm/PivotViewer/utils/cardPosition.js.map +1 -1
  593. package/dist/esm/PivotViewer/utils/constants.js.map +1 -1
  594. package/dist/esm/PivotViewer/utils/idResolution.d.ts +1 -0
  595. package/dist/esm/PivotViewer/utils/idResolution.d.ts.map +1 -0
  596. package/dist/esm/PivotViewer/utils/idResolution.js.map +1 -1
  597. package/dist/esm/PivotViewer/utils/index.d.ts +1 -0
  598. package/dist/esm/PivotViewer/utils/index.d.ts.map +1 -0
  599. package/dist/esm/PivotViewer/utils/index.js +1 -0
  600. package/dist/esm/PivotViewer/utils/index.js.map +1 -0
  601. package/dist/esm/PivotViewer/utils/presentGrouping.d.ts +1 -0
  602. package/dist/esm/PivotViewer/utils/presentGrouping.d.ts.map +1 -0
  603. package/dist/esm/PivotViewer/utils/presentGrouping.js.map +1 -1
  604. package/dist/esm/PivotViewer/utils/search.d.ts +1 -0
  605. package/dist/esm/PivotViewer/utils/search.d.ts.map +1 -0
  606. package/dist/esm/PivotViewer/utils/search.js.map +1 -1
  607. package/dist/esm/PivotViewer/utils/selection.d.ts +1 -0
  608. package/dist/esm/PivotViewer/utils/selection.d.ts.map +1 -0
  609. package/dist/esm/PivotViewer/utils/selection.js.map +1 -1
  610. package/dist/esm/PivotViewer/utils/utils.d.ts +1 -0
  611. package/dist/esm/PivotViewer/utils/utils.d.ts.map +1 -0
  612. package/dist/esm/PivotViewer/utils/utils.js.map +1 -1
  613. package/dist/esm/QueryStatus/QueryStatus.js.map +1 -1
  614. package/dist/esm/QueryStatus/resolveQueryStatus.d.ts +1 -0
  615. package/dist/esm/QueryStatus/resolveQueryStatus.d.ts.map +1 -0
  616. package/dist/esm/QueryStatus/resolveQueryStatus.js.map +1 -1
  617. package/dist/esm/SchemaEditor/NameCell.d.ts +1 -0
  618. package/dist/esm/SchemaEditor/NameCell.d.ts.map +1 -0
  619. package/dist/esm/SchemaEditor/NameCell.js.map +1 -1
  620. package/dist/esm/SchemaEditor/SchemaEditor.d.ts +1 -0
  621. package/dist/esm/SchemaEditor/SchemaEditor.d.ts.map +1 -0
  622. package/dist/esm/SchemaEditor/SchemaEditor.js.map +1 -1
  623. package/dist/esm/SchemaEditor/TypeCell.d.ts +1 -0
  624. package/dist/esm/SchemaEditor/TypeCell.d.ts.map +1 -0
  625. package/dist/esm/SchemaEditor/TypeCell.js.map +1 -1
  626. package/dist/esm/SchemaEditor/index.d.ts +1 -0
  627. package/dist/esm/SchemaEditor/index.d.ts.map +1 -0
  628. package/dist/esm/SchemaEditor/schemaHelpers.d.ts +1 -0
  629. package/dist/esm/SchemaEditor/schemaHelpers.d.ts.map +1 -0
  630. package/dist/esm/SchemaEditor/schemaHelpers.js.map +1 -1
  631. package/dist/esm/TimeMachine/EventsView.d.ts +1 -0
  632. package/dist/esm/TimeMachine/EventsView.d.ts.map +1 -0
  633. package/dist/esm/TimeMachine/EventsView.js.map +1 -1
  634. package/dist/esm/TimeMachine/Properties.js.map +1 -1
  635. package/dist/esm/TimeMachine/ReadModelView.d.ts +1 -0
  636. package/dist/esm/TimeMachine/ReadModelView.d.ts.map +1 -0
  637. package/dist/esm/TimeMachine/ReadModelView.js.map +1 -1
  638. package/dist/esm/TimeMachine/TimeMachine.d.ts +1 -0
  639. package/dist/esm/TimeMachine/TimeMachine.d.ts.map +1 -0
  640. package/dist/esm/TimeMachine/TimeMachine.js.map +1 -1
  641. package/dist/esm/TimeMachine/TimeMachineLabels.js.map +1 -1
  642. package/dist/esm/TimeMachine/index.d.ts +1 -0
  643. package/dist/esm/TimeMachine/index.d.ts.map +1 -0
  644. package/dist/esm/TimeMachine/propertiesHelpers.js.map +1 -1
  645. package/dist/esm/TimeMachine/types.js.map +1 -1
  646. package/dist/esm/Toolbar/Toolbar.d.ts +1 -0
  647. package/dist/esm/Toolbar/Toolbar.d.ts.map +1 -0
  648. package/dist/esm/Toolbar/Toolbar.js.map +1 -1
  649. package/dist/esm/Toolbar/ToolbarButton.d.ts +1 -0
  650. package/dist/esm/Toolbar/ToolbarButton.d.ts.map +1 -0
  651. package/dist/esm/Toolbar/ToolbarButton.js.map +1 -1
  652. package/dist/esm/Toolbar/ToolbarContext.js.map +1 -1
  653. package/dist/esm/Toolbar/ToolbarDragContext.js.map +1 -1
  654. package/dist/esm/Toolbar/ToolbarFanOutItem.d.ts +1 -0
  655. package/dist/esm/Toolbar/ToolbarFanOutItem.d.ts.map +1 -0
  656. package/dist/esm/Toolbar/ToolbarFanOutItem.js.map +1 -1
  657. package/dist/esm/Toolbar/ToolbarFolder.d.ts +1 -0
  658. package/dist/esm/Toolbar/ToolbarFolder.d.ts.map +1 -0
  659. package/dist/esm/Toolbar/ToolbarFolder.js.map +1 -1
  660. package/dist/esm/Toolbar/ToolbarFolderContext.js.map +1 -1
  661. package/dist/esm/Toolbar/ToolbarGroup.js.map +1 -1
  662. package/dist/esm/Toolbar/ToolbarItemVisibilityContext.js.map +1 -1
  663. package/dist/esm/Toolbar/ToolbarLayout.js.map +1 -1
  664. package/dist/esm/Toolbar/ToolbarSection.js.map +1 -1
  665. package/dist/esm/Toolbar/ToolbarSeparator.js.map +1 -1
  666. package/dist/esm/Toolbar/ToolbarSlot.js.map +1 -1
  667. package/dist/esm/Toolbar/index.d.ts +1 -0
  668. package/dist/esm/Toolbar/index.d.ts.map +1 -0
  669. package/dist/esm/configuration/CratisComponentsContext.d.ts +1 -0
  670. package/dist/esm/configuration/CratisComponentsContext.d.ts.map +1 -0
  671. package/dist/esm/configuration/CratisComponentsContext.js.map +1 -1
  672. package/dist/esm/configuration/CratisComponentsDefaults.d.ts +1 -0
  673. package/dist/esm/configuration/CratisComponentsDefaults.d.ts.map +1 -0
  674. package/dist/esm/configuration/CratisComponentsDefaults.js.map +1 -1
  675. package/dist/esm/configuration/useCratisIcon.d.ts +1 -0
  676. package/dist/esm/configuration/useCratisIcon.d.ts.map +1 -0
  677. package/dist/esm/configuration/useCratisIcon.js.map +1 -1
  678. package/dist/esm/index.d.ts +1 -0
  679. package/dist/esm/index.d.ts.map +1 -0
  680. package/dist/esm/renderer/DialogStackContext.js.map +1 -1
  681. package/dist/esm/renderer/RendererContext.d.ts +1 -0
  682. package/dist/esm/renderer/RendererContext.d.ts.map +1 -0
  683. package/dist/esm/renderer/RendererContext.js.map +1 -1
  684. package/dist/esm/renderer/RendererScope.d.ts +1 -0
  685. package/dist/esm/renderer/RendererScope.d.ts.map +1 -0
  686. package/dist/esm/renderer/RendererScope.js.map +1 -1
  687. package/dist/esm/renderer/builtin/index.js.map +1 -1
  688. package/dist/esm/renderer/capabilities.js.map +1 -1
  689. package/dist/esm/renderer/coreSlots.d.ts +1 -0
  690. package/dist/esm/renderer/coreSlots.d.ts.map +1 -0
  691. package/dist/esm/renderer/coreSlots.js.map +1 -1
  692. package/dist/esm/renderer/dialogStack.js.map +1 -1
  693. package/dist/esm/renderer/errors.d.ts +1 -0
  694. package/dist/esm/renderer/errors.d.ts.map +1 -0
  695. package/dist/esm/renderer/errors.js.map +1 -1
  696. package/dist/esm/renderer/index.d.ts +1 -0
  697. package/dist/esm/renderer/index.d.ts.map +1 -0
  698. package/dist/esm/renderer/manifest.d.ts +1 -0
  699. package/dist/esm/renderer/manifest.d.ts.map +1 -0
  700. package/dist/esm/renderer/manifest.js.map +1 -1
  701. package/dist/esm/renderer/overlayEnvironment.js.map +1 -1
  702. package/dist/esm/renderer/presentation.d.ts +1 -0
  703. package/dist/esm/renderer/presentation.d.ts.map +1 -0
  704. package/dist/esm/renderer/presentation.js.map +1 -1
  705. package/dist/esm/renderer/renderSlot.js.map +1 -1
  706. package/dist/esm/renderer/resolve.d.ts +1 -0
  707. package/dist/esm/renderer/resolve.d.ts.map +1 -0
  708. package/dist/esm/renderer/resolve.js.map +1 -1
  709. package/dist/esm/renderer/slots.js.map +1 -1
  710. package/dist/esm/types/ChangeHandler.d.ts +1 -0
  711. package/dist/esm/types/ChangeHandler.d.ts.map +1 -0
  712. package/dist/esm/types/ChangeHandler.js.map +1 -1
  713. package/dist/esm/types/ChangeMeta.js.map +1 -1
  714. package/dist/esm/types/ExactPartKeys.js.map +1 -1
  715. package/dist/esm/types/JsonSchema.js.map +1 -1
  716. package/dist/esm/types/TypeFormat.js.map +1 -1
  717. package/dist/esm/types/index.d.ts +1 -0
  718. package/dist/esm/types/index.d.ts.map +1 -0
  719. package/dist/esm/types/parts.js.map +1 -1
  720. package/package.json +4 -3
@@ -1 +1 @@
1
- {"version":3,"file":"CommandStepperContent.js","sources":["../../../CommandDialog/CommandStepperContent.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs","_Fragment"],"mappings":";;;;;;;;;;;;;;AA4DA,MAAM,eAAe,GAAG,CAAC,QAA+C,KAAY;IAChF,IAAI,OAAO,QAAQ,KAAK,UAAU;AAAE,QAAA,OAAO,EAAE;AAC7C,IAAA,MAAM,KAAK,GAAG,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KAAK,EAAE,MAAM,EAAE,YAExBA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,iBAAiB,EAAA,CAAQ,EAAA,CAC3B,CACZ,EACA,UAAU,IAAI,UAAU,KACrBC,IAAA,CAAC,MAAM,IACH,OAAO,EAAE,MAAM,KAAK,QAAQ,IAAI,EAChC,QAAQ,EACJ,MAAM;4BACN,YAAY;4BACZ,gBAAgB;AAChB,4BAAA,gBAAgB,EAEpB,SAAS,EAAA,IAAA,EACT,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAA,QAAA,EAAA,CAEvB,YAAY,KACTD,GAAA,CAAA,MAAA,EAAA,EACI,SAAS,EAAC,wBAAwB,EAAA,aAAA,EACtB,MAAM,EAAA,CACpB,CACL,EACDA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,eAAe,EAAA,CAAQ,CAAA,EAAA,CACzB,CACZ,CAAA,EAAA,CACC,CACT,CAAA,EAAA,CACC;AAEd;;"}
1
+ {"version":3,"file":"CommandStepperContent.js","sources":["../../../CommandDialog/CommandStepperContent.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport React, { useEffect, useId, useMemo } from 'react';\nimport { Button } from '../Common/Button';\nimport { useCratisComponentsConfig } from '../Common/CratisComponentsProvider';\nimport { CommandFormFieldWrapper } from '@cratis/arc.react/commands';\nimport { isCommandFormField } from '../CommandForm/commandFormMarkers';\nimport type { StepperPanelProps } from './StepperPanel';\nimport { getStepPanels } from './stepChildren';\nimport { transitionStep } from './transitionStep';\nimport type { StepperCustomizationProps } from './CommandStepper';\n\n/**\n * Controlled state and validation props for {@link CommandStepperContent}.\n *\n * @remarks\n * `CommandStepperContent` is a private implementation primitive shared by\n * {@link CommandStepper} and `StepperCommandDialog` — it is deliberately not\n * re-exported from the `./CommandStepper` or `./CommandDialog` package\n * subpaths, so this type is documented for maintainers only.\n */\nexport interface CommandStepperContentProps extends StepperCustomizationProps {\n /** The active step index. */\n activeStep: number;\n /** The indices that have been visited. */\n visitedSteps: Set<number>;\n /** StepperPanel children defining each wizard step. */\n children?: React.ReactNode;\n /** Callback for active step changes. */\n onActiveStepChange?: (stepIndex: number) => void;\n /** Callback for visited step changes. */\n onVisitedStepsChange?: (visitedSteps: Set<number>) => void;\n /** Callback that receives validation state for each step. */\n onStepErrorsChange?: (stepErrors: boolean[]) => void;\n /** Provides validation errors for individual fields. */\n getFieldError?: (fieldName: string) => unknown;\n /** Whether to show built-in previous and next buttons. Defaults to `true`. */\n showNavigation?: boolean;\n /** Whether to show built-in submit on the last step. Defaults to `true`. */\n showSubmit?: boolean;\n /** Label for the next step button. Falls back to the provider's `stepper.next` message, then `'Next'`. */\n nextLabel?: string;\n /** Label for the previous step button. Falls back to the provider's `stepper.previous` message, then `'Previous'`. */\n previousLabel?: string;\n /** Label for the submit button. Falls back to the provider's `stepper.submit` message, then `'Submit'`. */\n okLabel?: string;\n /** Whether navigation controls are busy. */\n isBusy?: boolean;\n /** Whether submit is currently executing. */\n isSubmitting?: boolean;\n /** Locks form fields during a guarded submission without changing unguarded forms. */\n disableFieldsWhileSubmitting?: boolean;\n /** Disables submit regardless of current step state. */\n isSubmitDisabled?: boolean;\n /** Submit callback invoked on the last step. */\n onSubmit?: () => void | Promise<void>;\n}\n\n/** Extracts the property name from an accessor function like `c => c.name`. */\nconst getPropertyName = (accessor: ((obj: unknown) => unknown) | unknown): string => {\n if (typeof accessor !== 'function') return '';\n const fnStr = accessor.toString();\n const match = fnStr.match(/\\.([a-zA-Z_$][a-zA-Z0-9_$]*)/);\n return match ? match[1] : '';\n};\n\n/** Recursively collects all CommandFormField property names from a React node tree. */\nconst extractFieldNamesFromNode = (nodes: React.ReactNode): string[] => {\n const names: string[] = [];\n React.Children.forEach(nodes, (child) => {\n if (!React.isValidElement(child)) return;\n const component = child.type as React.ComponentType<unknown>;\n if (isCommandFormField(component)) {\n const fieldProps = child.props as { value?: (obj: unknown) => unknown };\n const name = getPropertyName(fieldProps.value);\n if (name) names.push(name);\n }\n\n const childProps = child.props as Record<string, unknown>;\n if (childProps.children != null) {\n names.push(\n ...extractFieldNamesFromNode(childProps.children as React.ReactNode),\n );\n }\n });\n return names;\n};\n\nconst processChildren = (nodes: React.ReactNode): React.ReactNode => {\n return React.Children.map(nodes, (child) => {\n if (!React.isValidElement(child)) return child;\n\n const component = child.type as React.ComponentType<unknown>;\n if (isCommandFormField(component)) {\n type FieldElement = Parameters<typeof CommandFormFieldWrapper>[0]['field'];\n // SAFETY: displayName identifies the Arc command field shape before it reaches the wrapper.\n return <CommandFormFieldWrapper field={child as unknown as FieldElement} />;\n }\n\n const childProps = child.props as Record<string, unknown>;\n if (childProps.children != null) {\n return React.cloneElement(\n child as React.ReactElement<Record<string, unknown>>,\n {\n children: processChildren(childProps.children as React.ReactNode),\n },\n );\n }\n\n return child;\n });\n};\n\n/**\n * @internal Renders the visual stepper body — step headers, panels, and the\n * built-in Previous / Next / Submit navigation — without any Arc\n * `CommandForm` wiring. This is a private implementation primitive shared by\n * {@link CommandStepper} and `StepperCommandDialog`; it is intentionally\n * **not** re-exported from the `./CommandStepper` or `./CommandDialog`\n * package subpaths and may change shape without a major version bump.\n */\nexport const CommandStepperContent = ({\n activeStep,\n visitedSteps,\n children,\n onActiveStepChange,\n onVisitedStepsChange,\n onStepErrorsChange,\n getFieldError,\n showNavigation = true,\n showSubmit = true,\n nextLabel,\n previousLabel,\n okLabel,\n isBusy = false,\n isSubmitting = false,\n disableFieldsWhileSubmitting = false,\n isSubmitDisabled = false,\n onSubmit,\n linear = true,\n orientation = 'horizontal',\n headerPosition = 'top',\n start,\n end,\n onChangeStep,\n pt,\n}: CommandStepperContentProps) => {\n const { messages } = useCratisComponentsConfig();\n const stepperId = useId();\n const resolvedNextLabel = nextLabel ?? messages?.stepper?.next ?? 'Next';\n const resolvedPreviousLabel =\n previousLabel ?? messages?.stepper?.previous ?? 'Previous';\n const resolvedOkLabel = okLabel ?? messages?.stepper?.submit ?? 'Submit';\n\n // The steps that actually render. Conditional steps (`{condition && <StepperPanel/>}`)\n // leave falsy children behind, so the count, the per-step validation state and what the\n // Stepper renders are all derived from this one list — they cannot drift apart.\n const panels = useMemo(\n () => getStepPanels(children) as React.ReactElement<StepperPanelProps>[],\n [children],\n );\n const stepCount = panels.length;\n\n // A conditional step can vanish after the user has advanced past it, which leaves the\n // incoming index pointing at a step that is no longer rendered. Clamp it into the set that\n // is, so the panel shown, the validation state read and the buttons offered all belong to a\n // step that exists.\n const currentStep = Math.min(Math.max(activeStep, 0), Math.max(stepCount - 1, 0));\n const isLastStep = currentStep >= stepCount - 1;\n const isFirstStep = currentStep <= 0;\n\n const stepFieldNames = useMemo(\n () => panels.map((panel) => extractFieldNamesFromNode(panel.props.children)),\n [panels],\n );\n\n const stepErrors = useMemo(\n () =>\n stepFieldNames.map((fields) =>\n fields.some((fieldName) => !!getFieldError?.(fieldName)),\n ),\n [stepFieldNames, getFieldError],\n );\n\n useEffect(() => {\n onStepErrorsChange?.(stepErrors);\n }, [onStepErrorsChange, stepErrors]);\n\n const isCurrentStepInvalid = stepErrors[currentStep] ?? false;\n const hasAnyStepErrors = stepErrors.some((hasError) => hasError);\n\n const changeStep = (index: number, fromHeader = false) => transitionStep({\n index,\n currentStep,\n stepCount,\n isCurrentStepInvalid,\n linear,\n fromHeader,\n visitedSteps,\n onActiveStepChange,\n onVisitedStepsChange,\n onChangeStep,\n });\n\n const isStepperBusy = isBusy || isSubmitting;\n\n const stepperList = (\n <ol\n {...pt?.list}\n className={['cratis-command-stepper__list', pt?.list?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='list'\n data-part='list'\n data-busy={isStepperBusy || undefined}\n data-invalid={hasAnyStepErrors || undefined}\n >\n {panels.map((panel, index) => {\n const selected = index === currentStep;\n const visited = visitedSteps.has(index);\n const invalid = stepErrors[index] ?? false;\n const headerDisabled = linear && !selected;\n\n return (\n <li\n key={index}\n {...pt?.step}\n className={['cratis-command-stepper__step', pt?.step?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='step'\n data-part='step'\n data-active={selected || undefined}\n data-selected={selected || undefined}\n data-visited={visited || undefined}\n data-invalid={invalid || undefined}\n data-busy={isStepperBusy || undefined}\n >\n <button\n {...pt?.header}\n type='button'\n id={pt?.header?.id ?? `${stepperId}-step-${index}`}\n className={[\n 'cratis-command-stepper__header',\n pt?.header?.className,\n ]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='header'\n data-part='header'\n data-busy={isStepperBusy || undefined}\n data-disabled={headerDisabled || undefined}\n data-invalid={invalid || undefined}\n data-selected={selected || undefined}\n data-visited={visited || undefined}\n disabled={headerDisabled}\n aria-current={selected ? 'step' : undefined}\n onClick={() => changeStep(index, true)}\n >\n <span\n {...pt?.number}\n className={[\n 'cratis-command-stepper__number',\n pt?.number?.className,\n ]\n .filter(Boolean)\n .join(' ')}\n style={pt?.number?.style}\n data-cratis-part='number'\n data-part='number'\n data-busy={isStepperBusy || undefined}\n data-invalid={invalid || undefined}\n data-selected={selected || undefined}\n data-visited={visited || undefined}\n >\n {index + 1}\n </span>\n <span\n {...pt?.title}\n className={[\n 'cratis-command-stepper__title',\n pt?.title?.className,\n ]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='title'\n data-part='title'\n data-busy={isStepperBusy || undefined}\n data-invalid={invalid || undefined}\n data-selected={selected || undefined}\n data-visited={visited || undefined}\n >\n {panel.props.header}\n </span>\n </button>\n {index < stepCount - 1 && (\n <span\n {...pt?.separator}\n className={[\n 'cratis-command-stepper__separator',\n pt?.separator?.className,\n ]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='separator'\n data-part='separator'\n data-busy={isStepperBusy || undefined}\n data-invalid={invalid || undefined}\n data-visited={visited || undefined}\n aria-hidden='true'\n />\n )}\n </li>\n );\n })}\n </ol>\n );\n\n const stepperPanels = (\n <div\n {...pt?.panels}\n className={['cratis-command-stepper__panels', pt?.panels?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='panels'\n data-part='panels'\n data-busy={isStepperBusy || undefined}\n data-invalid={hasAnyStepErrors || undefined}\n >\n {panels.map((panel, index) => (\n <section\n key={index}\n {...pt?.panel}\n hidden={index !== currentStep}\n className={['cratis-command-stepper__panel', pt?.panel?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='panel'\n data-part='panel'\n data-busy={isStepperBusy || undefined}\n data-invalid={stepErrors[index] || undefined}\n data-selected={index === currentStep || undefined}\n data-visited={visitedSteps.has(index) || undefined}\n aria-label={String(panel.props.header ?? `Step ${index + 1}`)}\n aria-labelledby={pt?.panel?.['aria-labelledby'] ?? (pt?.header?.id == null ? `${stepperId}-step-${index}` : undefined)}\n >\n {disableFieldsWhileSubmitting ? (\n <fieldset disabled={isSubmitting} inert={isSubmitting} style={{ display: 'contents' }}>\n {processChildren(panel.props.children)}\n </fieldset>\n ) : processChildren(panel.props.children)}\n </section>\n ))}\n </div>\n );\n\n return (\n <div\n className={`cratis-command-stepper cratis-command-stepper--${orientation}`}\n data-orientation={orientation}\n >\n {start}\n <div\n {...pt?.root}\n className={['cratis-command-stepper__root', pt?.root?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='root'\n data-part='root'\n data-value={currentStep}\n data-orientation={orientation}\n data-busy={isStepperBusy || undefined}\n data-invalid={hasAnyStepErrors || undefined}\n >\n {headerPosition === 'bottom' ? (\n <>\n {stepperPanels}\n {stepperList}\n </>\n ) : (\n <>\n {stepperList}\n {stepperPanels}\n </>\n )}\n </div>\n {end}\n\n {showNavigation && (\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n gap: '0.75rem',\n }}\n >\n {!isFirstStep && (\n <Button\n variant='outline'\n onClick={() => changeStep(currentStep - 1)}\n disabled={isBusy}\n style={{ width: 'auto' }}\n >\n <span>{resolvedPreviousLabel}</span>\n </Button>\n )}\n <div style={{ flex: 1 }} />\n {!isLastStep && (\n <Button\n onClick={() => changeStep(currentStep + 1)}\n disabled={isBusy || isSubmitting || isCurrentStepInvalid}\n style={{ width: 'auto' }}\n >\n <span>{resolvedNextLabel}</span>\n </Button>\n )}\n {isLastStep && showSubmit && (\n <Button\n onClick={() => void onSubmit?.()}\n disabled={\n isBusy ||\n isSubmitting ||\n isSubmitDisabled ||\n hasAnyStepErrors\n }\n autoFocus\n style={{ width: 'auto' }}\n >\n {isSubmitting && (\n <span\n className='cratis-dialog__spinner'\n aria-hidden='true'\n />\n )}\n <span>{resolvedOkLabel}</span>\n </Button>\n )}\n </div>\n )}\n </div>\n );\n};\n"],"names":["_jsx","_jsxs","_Fragment"],"mappings":";;;;;;;;;;;;;;AA4DA,MAAM,eAAe,GAAG,CAAC,QAA+C,KAAY;IAChF,IAAI,OAAO,QAAQ,KAAK,UAAU;AAAE,QAAA,OAAO,EAAE;AAC7C,IAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,EAAE;IACjC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,8BAA8B,CAAC;AACzD,IAAA,OAAO,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE;AAChC,CAAC;AAGD,MAAM,yBAAyB,GAAG,CAAC,KAAsB,KAAc;IACnE,MAAM,KAAK,GAAa,EAAE;IAC1B,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,KAAI;AACpC,QAAA,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;YAAE;AAClC,QAAA,MAAM,SAAS,GAAG,KAAK,CAAC,IAAoC;AAC5D,QAAA,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE;AAC/B,YAAA,MAAM,UAAU,GAAG,KAAK,CAAC,KAA8C;YACvE,MAAM,IAAI,GAAG,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC;AAC9C,YAAA,IAAI,IAAI;AAAE,gBAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QAC9B;AAEA,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196
  export declare const StepperCommandDialog: typeof StepperCommandDialogComponent;
197
197
  export {};
198
+ //# sourceMappingURL=StepperCommandDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepperCommandDialog.d.ts","sourceRoot":"","sources":["../../../CommandDialog/StepperCommandDialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAY,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAI5D,OAAO,EAIH,KAAK,gBAAgB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,cAAc,EACtB,MAAM,sBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAAwB,CAAC;AAKnE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,yBAAyB,CAAC,QAAQ,SAAS,MAAM,EAAE,SAAS,GAAG,MAAM,CAClF,SACI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,UAAU,GAAG,iBAAiB,CAAC,EAC3E,yBAAyB;IAC7B;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAClD;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACtD,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,aAAa,CAAC;IA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KAAK,CAAC,cAAc,EACpC,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAAA,QAAA,EAE7B,QAAQ,EAAA,CACiB,EAAA,CACpB;AAEtB,CAAC;AAgBM,MAAM,oBAAoB,GAAG;;"}
1
+ {"version":3,"file":"StepperCommandDialog.js","sources":["../../../CommandDialog/StepperCommandDialog.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport React, { useState, type CSSProperties } from 'react';\nimport { DialogResult, useDialogContext } from '@cratis/arc.react/dialogs';\nimport { Button } from '../Common/Button';\nimport { useCratisComponentsConfig } from '../Common/CratisComponentsProvider';\nimport {\n CommandForm,\n useCommandFormContext,\n useCommandInstance,\n type CommandFormProps,\n} from '@cratis/arc.react/commands';\nimport {\n Dialog,\n type DialogProps,\n type CloseDialog,\n type ConfirmCallback,\n type CancelCallback,\n} from '../Dialogs/Dialog';\nimport type { StepperCustomizationProps } from './CommandStepper';\nimport { CommandStepperContent } from './CommandStepperContent';\nimport type { BeforeExecuteCallback } from './applyBeforeExecute';\nimport type { ConfirmBeforeExecute } from './confirmBeforeExecute';\nimport { useCommandExecution } from './useCommandExecution';\nimport { getStepPanels } from './stepChildren';\nimport { transitionStep } from './transitionStep';\n\n/**\n * Props for {@link StepperCommandDialog}. Combines the command-form props,\n * the stepper customization props (`linear`, `pt`, …), and dialog-specific\n * props for the outer modal.\n *\n * The Stepper customization props (`pt`/`ptOptions`/`unstyled`) target the\n * inner Stepper. To customize the outer Dialog use `dialogPt`, `dialogPtOptions`,\n * `dialogUnstyled`, and `dialogClassName`.\n *\n * @typeParam TCommand - The command record type.\n * @typeParam TResponse - The response payload type returned by a successful command.\n */\nexport interface StepperCommandDialogProps<TCommand extends object, TResponse = object>\n extends\n Omit<CommandFormProps<TCommand, TResponse>, 'children' | 'onBeforeExecute'>,\n StepperCustomizationProps {\n /**\n * A transformer invoked with the current command values immediately before\n * the command executes on submit. It **must return** the values to run with\n * (mutated or not) — a callback that returns nothing does not execute the\n * command with `undefined`; the current values are kept and a warning is\n * logged. May be async.\n *\n * ⚠️ It runs **only on submit**, after every step has already been validated,\n * so a value produced here can never satisfy required-field validation. Seed\n * required values through `initialValues`; reserve `onBeforeExecute` for\n * transforms that do not affect validity (for example a generated id).\n */\n onBeforeExecute?: BeforeExecuteCallback<TCommand>;\n /**\n * Ask before executing the transformed command values; only `true` executes.\n * Fields are disabled from submit until the guarded submission settles. If command values change\n * during that time, execution is skipped; confirm the new values again.\n */\n confirmBeforeExecute?: ConfirmBeforeExecute<TCommand>;\n /** Dialog title text. */\n title: string;\n /** Controls dialog visibility. Defaults to `true`. */\n visible?: boolean;\n /** Dialog width. */\n width?: string;\n /** Custom CSS styles applied to the dialog. */\n style?: CSSProperties;\n /** Custom CSS styles applied to the dialog content area. */\n contentStyle?: CSSProperties;\n /** Whether the dialog can be resized. Defaults to `false`. */\n resizable?: boolean;\n /** Additional validity gate combined with command form validity. */\n isValid?: boolean;\n /** Fallback close callback. */\n onClose?: CloseDialog;\n /** Confirm callback — called only after successful command execution. */\n onConfirm?: ConfirmCallback;\n /**\n * Cancel callback — invoked for every dismissal that is not a successful submit: the X in the\n * dialog header, the Escape key, and the footer Cancel button when `showCancel` is on. Return\n * `true` to let the dialog close through the dialog context. None of the three is offered while\n * the command is executing.\n */\n onCancel?: CancelCallback;\n /** Label for the submit button shown on the last step when valid. Falls back to the provider's `stepper.submit` message, then `'Submit'`. */\n okLabel?: string;\n /** Label for the next step button. Falls back to the provider's `stepper.next` message, then `'Next'`. */\n nextLabel?: string;\n /** Label for the previous step button. Falls back to the provider's `stepper.previous` message, then `'Previous'`. */\n previousLabel?: string;\n /**\n * Show a Cancel action in the footer. Defaults to `false`, leaving the X in the header as the\n * only way to dismiss. Turn it on for a wizard whose dismissal should be as reachable as its\n * submit — a destructive or long flow, or one presented without a visible header.\n */\n showCancel?: boolean;\n /** Label for the footer cancel button. Falls back to the provider's `dialog.cancel` message, then `'Cancel'`. */\n cancelLabel?: string;\n /**\n * Extra CSS class name forwarded to the underlying Cratis Dialog root.\n * Use the inherited `pt`/`ptOptions`/`unstyled` props to customize the Stepper.\n */\n dialogClassName?: string;\n /** Cratis-owned per-part attributes applied to the outer Dialog. */\n dialogPt?: DialogProps['pt'];\n /**\n * @deprecated Cratis dialog parts always merge. Remove this renderer-era option.\n */\n dialogPtOptions?: DialogProps['ptOptions'];\n /**\n * @deprecated Components always uses consumer-owned CSS. Customize through `dialogPt` and CSS instead.\n */\n dialogUnstyled?: boolean;\n /** StepperPanel children defining each wizard step. */\n children?: React.ReactNode;\n}\n\ntype StepperCommandDialogWrapperProps<TCommand extends object, TResponse = object> = {\n title: string;\n visible?: boolean;\n width?: string;\n style?: CSSProperties;\n contentStyle?: CSSProperties;\n resizable?: boolean;\n isValid?: boolean;\n onClose?: CloseDialog;\n onConfirm?: ConfirmCallback;\n onCancel?: CancelCallback;\n onSuccess?: CommandFormProps<TCommand, TResponse>['onSuccess'];\n onValidationFailure?: CommandFormProps<TCommand, TResponse>['onValidationFailure'];\n onFailed?: CommandFormProps<TCommand, TResponse>['onFailed'];\n onException?: CommandFormProps<TCommand, TResponse>['onException'];\n onUnauthorized?: CommandFormProps<TCommand, TResponse>['onUnauthorized'];\n onBeforeExecute?: BeforeExecuteCallback<TCommand>;\n confirmBeforeExecute?: ConfirmBeforeExecute<TCommand>;\n okLabel?: string;\n nextLabel?: string;\n previousLabel?: string;\n showCancel?: boolean;\n cancelLabel?: string;\n dialogClassName?: string;\n dialogPt?: DialogProps['pt'];\n dialogPtOptions?: DialogProps['ptOptions'];\n dialogUnstyled?: boolean;\n children?: React.ReactNode;\n} & StepperCustomizationProps;\n\nconst StepperCommandDialogWrapper = <TCommand extends object, TResponse = object>({\n title,\n visible = true,\n width = '600px',\n style,\n contentStyle,\n resizable = false,\n isValid,\n onClose,\n onConfirm,\n onCancel,\n onSuccess,\n onValidationFailure,\n onFailed,\n onException,\n onUnauthorized,\n onBeforeExecute,\n confirmBeforeExecute,\n okLabel,\n nextLabel,\n previousLabel,\n showCancel = false,\n cancelLabel,\n linear = true,\n orientation,\n headerPosition,\n start,\n end,\n onChangeStep,\n pt,\n ptOptions,\n unstyled,\n dialogClassName,\n dialogPt,\n dialogPtOptions,\n dialogUnstyled,\n children,\n}: StepperCommandDialogWrapperProps<TCommand, TResponse>) => {\n const { messages } = useCratisComponentsConfig();\n const stepperMessages = messages?.stepper;\n const dialogMessages = messages?.dialog;\n const resolvedOkLabel = okLabel ?? stepperMessages?.submit ?? 'Submit';\n const resolvedNextLabel = nextLabel ?? stepperMessages?.next ?? 'Next';\n const resolvedPreviousLabel =\n previousLabel ?? stepperMessages?.previous ?? 'Previous';\n const resolvedCancelLabel = cancelLabel ?? dialogMessages?.cancel ?? 'Cancel';\n const {\n setCommandValues,\n setCommandResult,\n isValid: isCommandFormValid,\n getFieldError,\n } = useCommandFormContext<TCommand>();\n const commandInstance = useCommandInstance<TCommand>();\n const submission = useCommandExecution<TCommand, TResponse>(\n commandInstance, setCommandValues, onBeforeExecute, confirmBeforeExecute, onException,\n );\n const isBusy = submission.isSubmitting;\n const [activeStep, setActiveStep] = useState(0);\n const [visitedSteps, setVisitedSteps] = useState<Set<number>>(new Set([0]));\n const [stepErrors, setStepErrors] = useState<boolean[]>([]);\n\n // useDialogContext() is called unconditionally on every render — the try/catch only suppresses\n // the exception when the dialog is used standalone (outside a provider). React's Rules of Hooks\n // are not violated because the hook is always called; the try/catch never skips the call.\n let contextCloseDialog: ((result: DialogResult) => void) | undefined;\n try {\n const context = useDialogContext();\n contextCloseDialog = context?.closeDialog;\n } catch {\n contextCloseDialog = undefined;\n }\n\n // Only the steps that actually render count. That count is not fixed: a conditional step\n // (`{condition && <StepperPanel/>}`) can disappear after the user has already advanced past\n // it — a late-resolving query or a `currentValues` overlay flipping the condition is enough.\n // The step the wizard is on is therefore clamped into the set that still renders, and the\n // last/first tests are inequalities, so an index left stranded above the end still resolves\n // to the last surviving step instead of a step that is neither last nor navigable. Same\n // shape as CommandStepperContent, which this dialog's body is.\n const stepCount = getStepPanels(children).length;\n const currentStep = Math.min(Math.max(activeStep, 0), Math.max(stepCount - 1, 0));\n const isLastStep = currentStep >= stepCount - 1;\n const isFirstStep = currentStep <= 0;\n const isDialogValid = isValid !== false && isCommandFormValid;\n const isCurrentStepInvalid = stepErrors[currentStep] ?? false;\n const changeStep = (index: number) => transitionStep({\n index,\n currentStep,\n stepCount,\n isCurrentStepInvalid,\n linear,\n visitedSteps,\n onActiveStepChange: setActiveStep,\n onVisitedStepsChange: setVisitedSteps,\n onChangeStep,\n });\n\n // Both close paths this wrapper owns — the footer Cancel and the successful Submit — run the\n // caller's gate before closing through the dialog host. The header X and Escape are owned by\n // the outer Cratis Dialog instead, which runs the same `onCancel` / `onClose` callbacks; that\n // keeps one contract for the caller no matter which affordance was used.\n const handleClose = async (result: DialogResult) => {\n let shouldCloseThroughContext = true;\n\n if (result === DialogResult.Ok || result === DialogResult.Yes) {\n if (onConfirm) {\n const closeResult = await onConfirm();\n shouldCloseThroughContext = closeResult === true;\n } else if (onClose) {\n const closeResult = await onClose(result);\n shouldCloseThroughContext = closeResult !== false;\n }\n } else if (onCancel) {\n const closeResult = await onCancel();\n shouldCloseThroughContext = closeResult === true;\n } else if (onClose) {\n const closeResult = await onClose(result);\n shouldCloseThroughContext = closeResult !== false;\n }\n\n if (shouldCloseThroughContext) {\n contextCloseDialog?.(result);\n }\n };\n\n // Busy is set before anything is awaited, not just around execute(). `onBeforeExecute` may be\n // async, and from the moment Submit is pressed the dialog is committed to running the command -\n // so every dismissal has to be withdrawn for the whole window, not only for the part of it the\n // request is in flight. Setting it after the transform would leave Cancel live while the command\n // is already on its way: the operator cancels, the dialog closes reporting cancellation, the\n // transform resolves, and the command executes anyway. The `finally` is what releases it, so the\n // flag is cleared on the failure paths and on a transform that throws just as it is on success.\n // Result callbacks run after the submission releases busy.\n const handleSubmit = async () => {\n const result = await submission.run();\n if (!result) return;\n\n if (!result.isSuccess) {\n await onFailed?.(result);\n if (result.hasExceptions) {\n await onException?.(result.exceptionMessages, result.exceptionStackTrace);\n }\n if (!result.isAuthorized) await onUnauthorized?.();\n if (!result.isValid) {\n await onValidationFailure?.(result.validationResults);\n }\n if (submission.isMounted()) setCommandResult(result);\n return;\n }\n\n await onSuccess?.(result.response as TResponse);\n await handleClose(DialogResult.Ok);\n };\n\n const footer = (\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n gap: '0.75rem',\n }}\n >\n {showCancel && (\n <Button\n variant='outline'\n onClick={() => handleClose(DialogResult.Cancelled)}\n disabled={isBusy}\n style={{ width: 'auto' }}\n >\n <span>{resolvedCancelLabel}</span>\n </Button>\n )}\n {!isFirstStep && (\n <Button\n variant='outline'\n onClick={() => changeStep(currentStep - 1)}\n disabled={isBusy}\n style={{ width: 'auto' }}\n >\n <span>{resolvedPreviousLabel}</span>\n </Button>\n )}\n <div style={{ flex: 1 }} />\n {!isLastStep && (\n <Button\n onClick={() => changeStep(currentStep + 1)}\n disabled={isBusy || isCurrentStepInvalid}\n style={{ width: 'auto' }}\n >\n <span>{resolvedNextLabel}</span>\n </Button>\n )}\n {isLastStep && isDialogValid && (\n <Button\n onClick={handleSubmit}\n disabled={isBusy}\n autoFocus\n style={{ width: 'auto' }}\n >\n {isBusy && (\n <span className='cratis-dialog__spinner' aria-hidden='true' />\n )}\n <span>{resolvedOkLabel}</span>\n </Button>\n )}\n </div>\n );\n\n // The header X and the Escape key are withdrawn on the same flag as the footer Cancel. A\n // dismissal that still worked mid-flight would close the dialog and then let onSuccess fire on\n // a dialog that is already gone. `dismissable` is the single switch on the Cratis Dialog that\n // governs all three affordances — the header close button, the backdrop click\n // and `closeOnEscape` — so withdrawing it withdraws every dismissal at once.\n return (\n <Dialog\n title={title}\n visible={visible}\n width={width}\n style={style}\n contentStyle={contentStyle}\n resizable={resizable}\n dismissable={!isBusy}\n buttons={footer}\n onCancel={onCancel}\n onClose={onClose}\n className={dialogClassName}\n pt={dialogPt}\n ptOptions={dialogPtOptions}\n unstyled={dialogUnstyled}\n >\n <CommandStepperContent\n activeStep={currentStep}\n visitedSteps={visitedSteps}\n getFieldError={getFieldError}\n onActiveStepChange={setActiveStep}\n onVisitedStepsChange={setVisitedSteps}\n onStepErrorsChange={setStepErrors}\n showNavigation={false}\n showSubmit={false}\n isSubmitting={confirmBeforeExecute !== undefined && isBusy}\n disableFieldsWhileSubmitting={confirmBeforeExecute !== undefined}\n linear={linear}\n orientation={orientation}\n headerPosition={headerPosition}\n start={start}\n end={end}\n onChangeStep={onChangeStep}\n pt={pt}\n ptOptions={ptOptions}\n unstyled={unstyled}\n >\n {children}\n </CommandStepperContent>\n </Dialog>\n );\n};\n\n/**\n * A multi-step wizard dialog backed by a single Cratis Arc command. Wraps\n * the Cratis-owned Stepper inside a Cratis {@link Dialog}, tracks per-step\n * visit state, surfaces inline error indicators on steps with invalid\n * fields, and executes the bound command when the user submits the last\n * step. Use it when one command has enough fields that they should be\n * broken into named stages; for single-stage commands, use\n * {@link CommandDialog}.\n *\n * ## What `TCommand` is\n *\n * `TCommand` is the auto-generated TypeScript class produced by the Arc\n * proxy generator from a C# `[Command]` record. The wizard fields all bind\n * to properties on this single command — the multi-step UI is purely a\n * presentation grouping of one command's fields, not multiple commands.\n *\n * ## What's unique vs. {@link CommandDialog}\n *\n * - **Progressive disclosure**: fields are grouped into `<StepperPanel>`\n * children and the user advances through them with explicit Previous /\n * Next buttons before reaching Submit on the last step.\n * - **Per-step error indicators**: the step number circle paints red when\n * any field inside that step has a validation error and the step has\n * been visited, so a long wizard doesn't hide a single-field error on\n * page 1 behind page 4. The CratisStepper handles this by reading\n * `getFieldError` from the form context and inspecting which fields\n * belong to which step.\n * - **Visited tracking**: only visited steps show error indicators; an\n * un-visited step is never marked red just because its fields are blank.\n * - **Linear mode (default)**: the user must complete a step before\n * advancing. Set `linear={false}` to allow free navigation.\n * - **Submit only fires on the last step**: the command runs through Arc's\n * command pipeline only when the user clicks the final Submit button —\n * not on every Next click. Failure paths\n * (`onValidationFailure` / `onFailed`) work exactly like\n * {@link CommandDialog}: dialog stays open, errors surface back to the\n * form.\n *\n * ## Typed dialog host usage\n *\n * Same pattern as {@link CommandDialog} — combine with\n * `useDialog<CommandResult<TResponse>>()` from `@cratis/arc.react/dialogs`\n * to get a fully-typed result at the call site:\n *\n * ```tsx\n * import { useDialog, DialogResult } from '@cratis/arc.react/dialogs';\n * import { StepperCommandDialog, StepperPanel } from '@cratis/components/CommandDialog';\n * import { RegisterOrder } from './RegisterOrder'; // proxy from C#\n *\n * const RegisterOrderDialog = () => {\n * const { closeDialog } = useDialogContext<CommandResult<RegisterOrderResponse>>();\n * return (\n * <StepperCommandDialog<RegisterOrder, RegisterOrderResponse>\n * command={RegisterOrder}\n * title=\"New order\"\n * onSuccess={() => closeDialog(DialogResult.Ok)}\n * onCancel={() => closeDialog(DialogResult.Cancelled)}>\n * <StepperPanel header=\"Customer\">\n * <InputTextField value={c => c.customerName} title=\"Name\" />\n * <InputTextField value={c => c.email} title=\"Email\" />\n * </StepperPanel>\n * <StepperPanel header=\"Items\">\n * <ChipsField value={c => c.items} title=\"Items\" />\n * <NumberField value={c => c.quantity} title=\"Quantity\" min={1} />\n * </StepperPanel>\n * <StepperPanel header=\"Confirm\">\n * <CheckboxField value={c => c.confirmed} label=\"I confirm the order\" />\n * </StepperPanel>\n * </StepperCommandDialog>\n * );\n * };\n * ```\n *\n * ## Styling\n *\n * The inherited `pt` / `ptOptions` / `unstyled` props target the inner\n * **Stepper**. Use `dialogPt` / `dialogPtOptions` / `dialogUnstyled` /\n * `dialogClassName` to style the outer **Dialog** independently. See the\n * [pass-through cheat sheet](../../Documentation/Styling/pass-through.md)\n * for the slot reference.\n *\n * @typeParam TCommand - The command class (proxy generated from C# `[Command]`).\n * @typeParam TResponse - The success payload type returned by the command's `Handle()` method on the backend.\n * @param props - {@link StepperCommandDialogProps}.\n */\nconst StepperCommandDialogComponent = <\n TCommand extends object = object,\n TResponse = object,\n>(\n props: StepperCommandDialogProps<TCommand, TResponse>,\n) => {\n const {\n title,\n visible,\n width,\n style,\n contentStyle,\n resizable,\n isValid,\n onClose,\n onConfirm,\n onCancel,\n onBeforeExecute,\n confirmBeforeExecute,\n okLabel,\n nextLabel,\n previousLabel,\n showCancel,\n cancelLabel,\n linear,\n orientation,\n headerPosition,\n start,\n end,\n onChangeStep,\n pt,\n ptOptions,\n unstyled,\n dialogClassName,\n dialogPt,\n dialogPtOptions,\n dialogUnstyled,\n children,\n ...commandFormProps\n } = props;\n\n return (\n <CommandForm<TCommand, TResponse> {...commandFormProps}>\n <StepperCommandDialogWrapper<TCommand, TResponse>\n title={title}\n visible={visible}\n width={width}\n style={style}\n contentStyle={contentStyle}\n resizable={resizable}\n isValid={isValid}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onSuccess={props.onSuccess}\n onValidationFailure={props.onValidationFailure}\n onFailed={props.onFailed}\n onException={props.onException}\n onUnauthorized={props.onUnauthorized}\n onBeforeExecute={onBeforeExecute}\n confirmBeforeExecute={confirmBeforeExecute}\n okLabel={okLabel}\n nextLabel={nextLabel}\n previousLabel={previousLabel}\n showCancel={showCancel}\n cancelLabel={cancelLabel}\n linear={linear}\n orientation={orientation}\n headerPosition={headerPosition}\n start={start}\n end={end}\n onChangeStep={onChangeStep}\n pt={pt}\n ptOptions={ptOptions}\n unstyled={unstyled}\n dialogClassName={dialogClassName}\n dialogPt={dialogPt}\n dialogPtOptions={dialogPtOptions}\n dialogUnstyled={dialogUnstyled}\n >\n {children}\n </StepperCommandDialogWrapper>\n </CommandForm>\n );\n};\n\n/**\n * A multi-step wizard dialog backed by a single Cratis Arc command. Wraps\n * the Cratis-owned Stepper inside a Cratis {@link Dialog}, tracks per-step\n * visit state, surfaces inline error indicators on steps with invalid\n * fields, and executes the bound command when the user submits the last\n * step. Use it when one command has enough fields that they should be\n * broken into named stages; for single-stage commands, use\n * {@link CommandDialog}.\n *\n * See {@link StepperCommandDialogComponent} for full documentation.\n *\n * @typeParam TCommand - The command class (proxy generated from C# `[Command]`).\n * @typeParam TResponse - The success payload type returned by the command's `Handle()` method on the backend.\n */\nexport const StepperCommandDialog = StepperCommandDialogComponent;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;AAuJA,MAAM,2BAA2B,GAAG,CAA8C,EAC9E,KAAK,EACL,OAAO,GAAG,IAAI,EACd,KAAK,GAAG,OAAO,EACf,KAAK,EACL,YAAY,EACZ,SAAS,GAAG,KAAK,EACjB,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,SAAS,EACT,mBAAmB,EACnB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,OAAO,EACP,SAAS,EACT,aAAa,EACb,UAAU,GAAG,KAAK,EAClB,WAAW,EACX,MAAM,GAAG,IAAI,EACb,WAAW,EACX,cAAc,EACd,KAAK,EACL,GAAG,EACH,YAAY,EACZ,EAAE,EACF,SAAS,EACT,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,eAAe,EACf,cAAc,EACd,QAAQ,GAC4C,KAAI;AACxD,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,yBAAyB,EAAE;AAChD,IAAA,MAAM,e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../CommandDialog/StepperPanel.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAuCO,MAAM,YAAY,GAAG,CAAC,MAAyB,KAClD;AACJ,YAAY,CAAC,WAAW,GAAG,cAAc;;"}
1
+ {"version":3,"file":"StepperPanel.js","sources":["../../../CommandDialog/StepperPanel.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport React from 'react';\n\n/**\n * Props for {@link StepperPanel}.\n */\nexport interface StepperPanelProps {\n /**\n * Content shown in the step's header (the label next to the step number).\n * Accepts a string or any node, so a custom/template header works as it did\n * with earlier renderer-specific step panels.\n */\n header?: React.ReactNode;\n /** The command form fields that make up this step. */\n children?: React.ReactNode;\n}\n\n/**\n * Declares a single step of a {@link CommandStepper} / {@link StepperCommandDialog}\n * wizard. Group the command form fields that belong to a step inside a\n * `<StepperPanel header=\"…\">`; the enclosing stepper reads each panel's\n * `header` and `children` to build the Cratis-owned step header and matching\n * content panel.\n *\n * It is a pure marker: it is never rendered on its own — the parent stepper consumes\n * its props — so it renders nothing when mounted directly.\n *\n * ```tsx\n * import { StepperPanel } from '@cratis/components/CommandDialog';\n *\n * <StepperPanel header=\"Basics\">\n * <InputTextField value={c => c.name} title=\"Name\" />\n * </StepperPanel>\n * ```\n *\n * @param props - {@link StepperPanelProps}.\n */\nexport const StepperPanel = (_props: StepperPanelProps): React.ReactElement | null =>\n null;\nStepperPanel.displayName = 'StepperPanel';\n"],"names":[],"mappings":"AAuCO,MAAM,YAAY,GAAG,CAAC,MAAyB,KAClD;AACJ,YAAY,CAAC,WAAW,GAAG,cAAc;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"applyBeforeExecute.js","sources":["../../../CommandDialog/applyBeforeExecute.ts"],"sourcesContent":[null],"names":[],"mappings":"AAqCM,SAAU,kBAAkB,CAC9B,eAAgD,EAChD,aAAuB,EAAA;AAEvB,IAAA,MAAM,WAAW,GAAG,eAAe,CAAC,aAAa,CAAC;AAClD,IAAA,IAAI,WAAW,YAAY,OAAO,EAAE;AAChC,QAAA,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,sBAAsB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAC1F;AACA,IAAA,OAAO,sBAAsB,CAAC,WAAW,EAAE,aAAa,CAAC;AAC7D;AAEA,SAAS,sBAAsB,CAAW,WAAiC,EAAE,aAAuB,EAAA;AAChG,IAAA,IAAI,WAAW,KAAK,SAAS,EAAE;QAC3B,OAAO,CAAC,IAAI,CACR,4FAA4F;YAC5F,+FAA+F;AAC/F,YAAA,iEAAiE,CACpE;AACD,QAAA,OAAO,aAAa;IACxB;AACA,IAAA,OAAO,WAAW;AACtB;;"}
1
+ {"version":3,"file":"applyBeforeExecute.js","sources":["../../../CommandDialog/applyBeforeExecute.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * A transformer invoked with the current command values immediately before the\n * command executes. It **must return** the values to run with (mutated or not),\n * and may do so asynchronously.\n *\n * ⚠️ It runs **only on submit**, after the form has already been validated — so a\n * value produced here can never satisfy required-field validation and the submit\n * button stays disabled if you rely on it for a required value. Seed required\n * values through `initialValues`; reserve `onBeforeExecute` for transforms that do\n * not affect validity (for example a generated id).\n *\n * @typeParam TCommand - The command values type.\n */\nexport type BeforeExecuteCallback<TCommand> = (values: TCommand) => TCommand | Promise<TCommand>;\n\n/**\n * Applies an `onBeforeExecute` transformer safely.\n *\n * The typed callback contract requires the transformed values to be returned, but\n * JavaScript consumers (and mistyped call sites) can still return `undefined` by\n * using the callback as a side-effect hook. Executing with `undefined` would wipe\n * every command value — silent data loss at submit time. This guard treats a\n * missing return as \"keep the current values\" and warns, so the command always\n * executes with a real object.\n *\n * A **synchronous** callback is applied synchronously (the result is returned\n * directly, not wrapped in a promise) so the command values are set before the same\n * tick's execution proceeds; an **async** callback returns a promise to await.\n *\n * @typeParam TCommand - The command values type.\n * @param onBeforeExecute - The transformer to apply (sync or async).\n * @param currentValues - The command values to transform.\n * @returns The transformed values, or `currentValues` when the callback returned nothing.\n */\nexport function applyBeforeExecute<TCommand>(\n onBeforeExecute: BeforeExecuteCallback<TCommand>,\n currentValues: TCommand\n): TCommand | Promise<TCommand> {\n const transformed = onBeforeExecute(currentValues);\n if (transformed instanceof Promise) {\n return transformed.then((resolved) => keepCurrentWhenMissing(resolved, currentValues));\n }\n return keepCurrentWhenMissing(transformed, currentValues);\n}\n\nfunction keepCurrentWhenMissing<TCommand>(transformed: TCommand | undefined, currentValues: TCommand): TCommand {\n if (transformed === undefined) {\n console.warn(\n 'onBeforeExecute returned no value. It is a transformer and must return the command values ' +\n '(mutated or not). Keeping the current values so the command does not execute with undefined. ' +\n 'If you only need a side effect, return the values you received.'\n );\n return currentValues;\n }\n return transformed;\n}\n"],"names":[],"mappings":"AAqCM,SAAU,kBAAkB,CAC9B,eAAgD,EAChD,aAAuB,EAAA;AAEvB,IAAA,MAAM,WAAW,GAAG,eAAe,CAAC,aAAa,CAAC;AAClD,IAAA,IAAI,WAAW,YAAY,OAAO,EAAE;AAChC,QAAA,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,sBAAsB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAC1F;AACA,IAAA,OAAO,sBAAsB,CAAC,WAAW,EAAE,aAAa,CAAC;AAC7D;AAEA,SAAS,sBAAsB,CAAW,WAAiC,EAAE,aAAuB,EAAA;AAChG,IAAA,IAAI,WAAW,KAAK,SAAS,EAAE;QAC3B,OAAO,CAAC,IAAI,CACR,4FAA4F;YAC5F,+FAA+F;AAC/F,YAAA,iEAAiE,CACpE;AACD,QAAA,OAAO,aAAa;IACxB;AACA,IAAA,OAAO,WAAW;AACtB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"commandValuesUnchanged.js","sources":["../../../CommandDialog/commandValuesUnchanged.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAMA,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,KAAc,KAAa,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,GAAG,KAAK,EAAE,CAAC;AAGxG,MAAM,qBAAqB,GAAG,CAAC,OAAe,KAA4B;IAC7E,MAAM,QAAQ,GAAG,OAAsD;IACvE,MAAM,MAAM,GAAG,OAAkC;IACjD,MAAM,QAAQ,GAA2B,EAAE;IAC3C,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,QAAQ,CAAC,mBAAmB,IAAI,EAAE,EAAE;AACvD,QAAA,QAAQ,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1D;AACA,IAAA,OAAO,QAAQ;AACnB;MAGa,sBAAsB,GAAG,CAAC,OAAe,EAAE,QAAgC,KAAa;IACjG,MAAM,QAAQ,GAAG,OAAsD;IACvE,MAAM,MAAM,GAAG,OAAkC;AACjD,IAAA,MAAM,WAAW,GAAG,QAAQ,CAAC,mBAAmB,IAAI,EAAE;IACtD,OAAO,WAAW,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM;AACtD,QAAA,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAClI;;"}
1
+ {"version":3,"file":"commandValuesUnchanged.js","sources":["../../../CommandDialog/commandValuesUnchanged.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { JsonSerializer } from '@cratis/fundamentals';\n\n// Arc serializes a payload object; this also preserves its handling of optional undefined properties.\nconst serializeProperty = (name: string, value: unknown): string => JsonSerializer.serialize({ [name]: value });\n\n/** Capture only the properties Arc will send, before an asynchronous confirmation can change them. */\nexport const snapshotCommandValues = (command: object): Record<string, string> => {\n const instance = command as { propertyDescriptors: { name: string }[] };\n const values = command as Record<string, unknown>;\n const snapshot: Record<string, string> = {};\n for (const { name } of instance.propertyDescriptors ?? []) {\n snapshot[name] = serializeProperty(name, values[name]);\n }\n return snapshot;\n};\n\n/** A changed form value invalidates approval, even if it is nested in a command property. */\nexport const commandValuesUnchanged = (command: object, snapshot: Record<string, string>): boolean => {\n const instance = command as { propertyDescriptors: { name: string }[] };\n const values = command as Record<string, unknown>;\n const descriptors = instance.propertyDescriptors ?? [];\n return descriptors.length === Object.keys(snapshot).length &&\n descriptors.every(({ name }) => Object.hasOwn(snapshot, name) && snapshot[name] === serializeProperty(name, values[name]));\n};\n"],"names":[],"mappings":";;AAMA,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,KAAc,KAAa,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,GAAG,KAAK,EAAE,CAAC;AAGxG,MAAM,qBAAqB,GAAG,CAAC,OAAe,KAA4B;IAC7E,MAAM,QAAQ,GAAG,OAAsD;IACvE,MAAM,MAAM,GAAG,OAAkC;IACjD,MAAM,QAAQ,GAA2B,EAAE;IAC3C,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,QAAQ,CAAC,mBAAmB,IAAI,EAAE,EAAE;AACvD,QAAA,QAAQ,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1D;AACA,IAAA,OAAO,QAAQ;AACnB;MAGa,sBAAsB,GAAG,CAAC,OAAe,EAAE,QAAgC,KAAa;IACjG,MAAM,QAAQ,GAAG,OAAsD;IACvE,MAAM,MAAM,GAAG,OAAkC;AACjD,IAAA,MAAM,WAAW,GAAG,QAAQ,CAAC,mBAAmB,IAAI,EAAE;IACtD,OAAO,WAAW,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM;AACtD,QAAA,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAClI;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"confirmBeforeExecute.js","sources":["../../../CommandDialog/confirmBeforeExecute.ts"],"sourcesContent":[null],"names":[],"mappings":"AAWO,MAAM,uBAAuB,GAAG,OACnC,KAAc,EACd,WAA8E,KAC9E;IACA,MAAM,SAAS,GAAG,KAAK,YAAY,KAAK,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3E,IAAI,WAAW,EAAE;AACb,QAAA,MAAM,WAAW,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC;IACjE;SAAO;AACH,QAAA,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC;IAC5B;AACJ;;"}
1
+ {"version":3,"file":"confirmBeforeExecute.js","sources":["../../../CommandDialog/confirmBeforeExecute.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Receives values after onBeforeExecute; only `true` approves execution.\n * If command property values change while confirmation is pending, approval is\n * discarded without executing or reporting a result. Confirm the new values again.\n */\nexport type ConfirmBeforeExecute<TCommand> = (values: TCommand) => boolean | Promise<boolean>;\n\n/** Report a rejected guard through the same exception callback used for command failures. */\nexport const reportConfirmationError = async (\n error: unknown,\n onException?: (messages: string[], stackTrace: string) => void | Promise<void>,\n) => {\n const exception = error instanceof Error ? error : new Error(String(error));\n if (onException) {\n await onException([exception.message], exception.stack ?? '');\n } else {\n console.error(exception);\n }\n};\n"],"names":[],"mappings":"AAWO,MAAM,uBAAuB,GAAG,OACnC,KAAc,EACd,WAA8E,KAC9E;IACA,MAAM,SAAS,GAAG,KAAK,YAAY,KAAK,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3E,IAAI,WAAW,EAAE;AACb,QAAA,MAAM,WAAW,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC;IACjE;SAAO;AACH,QAAA,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC;IAC5B;AACJ;;"}
@@ -4,3 +4,4 @@ export * from './CommandDialog.js';
4
4
  export * from './CommandStepper.js';
5
5
  export * from './StepperCommandDialog.js';
6
6
  export * from './StepperPanel.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../CommandDialog/index.ts"],"names":[],"mappings":"AAGA,cAAc,yBAAsB,CAAC;AACrC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAAwB,CAAC;AACnE,cAAc,oBAAiB,CAAC;AAChC,cAAc,qBAAkB,CAAC;AACjC,cAAc,2BAAwB,CAAC;AACvC,cAAc,mBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stepChildren.js","sources":["../../../CommandDialog/stepChildren.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAwBM,SAAU,aAAa,CAAC,QAAyB,EAAA;IACnD,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,KAAkC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACvH;;"}
1
+ {"version":3,"file":"stepChildren.js","sources":["../../../CommandDialog/stepChildren.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport React from 'react';\n\n/**\n * Gets the step panels a stepper will actually render, in render order.\n *\n * A conditional step is written as `{condition && <StepperPanel/>}` — which yields\n * `false` when the condition does not hold — and explicit `null` / `undefined` children\n * are just as common. `React.Children.count` counts those, so anything deriving a step\n * count from it believes the wizard has more steps than it renders: navigation runs past\n * the last real panel and the per-step validation gate reads off the end of its array.\n *\n * `React.Children.toArray` already drops `null`, `undefined` and booleans; filtering to\n * valid elements additionally drops bare text children, which are not steps either.\n *\n * Fragments are deliberately **not** flattened — a `<>…</>` wrapping several panels stays\n * one entry, which is the behavior the stepper has always had. Supporting fragments as a\n * container for multiple steps is a separate, additive change.\n *\n * @param children - The stepper children to inspect.\n * @returns The child elements that render as steps.\n */\nexport function getStepPanels(children: React.ReactNode): React.ReactElement[] {\n return React.Children.toArray(children).filter((child): child is React.ReactElement => React.isValidElement(child));\n}\n"],"names":[],"mappings":";;AAwBM,SAAU,aAAa,CAAC,QAAyB,EAAA;IACnD,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,KAAkC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACvH;;"}
@@ -14,3 +14,4 @@ type StepTransition = {
14
14
  /** One navigation gate for both wizard footers and their step headers. */
15
15
  export declare const transitionStep: ({ index, currentStep, stepCount, isCurrentStepInvalid, linear, fromHeader, visitedSteps, onActiveStepChange, onVisitedStepsChange, onChangeStep, }: StepTransition) => void;
16
16
  export {};
17
+ //# sourceMappingURL=transitionStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitionStep.d.ts","sourceRoot":"","sources":["../../../CommandDialog/transitionStep.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAkB,CAAC;AAE3D,KAAK,cAAc,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC3D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,cAAc,uJAWxB,cAAc,SAchB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transitionStep.js","sources":["../../../CommandDialog/transitionStep.ts"],"sourcesContent":[null],"names":[],"mappings":"AAmBO,MAAM,cAAc,GAAG,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,UAAU,GAAG,KAAK,EAClB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACC,KAAI;IACjB,IACI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,KAAK,WAAW;SACvD,UAAU,IAAI,MAAM,CAAC,KAAK,KAAK,GAAG,WAAW,IAAI,oBAAoB,CAAC;QACvE,CAAC,kBAAkB,EACrB;QACE;IACJ;AAEA,IAAA,IAAI,KAAK,GAAG,WAAW,EAAE;AACrB,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAClE;IACA,kBAAkB,CAAC,KAAK,CAAC;AACzB,IAAA,YAAY,GAAG,EAAE,KAAK,EAAE,CAAC;AAC7B;;"}
1
+ {"version":3,"file":"transitionStep.js","sources":["../../../CommandDialog/transitionStep.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { StepperChangeEvent } from './CommandStepper';\n\ntype StepTransition = {\n index: number;\n currentStep: number;\n stepCount: number;\n isCurrentStepInvalid: boolean;\n linear: boolean;\n fromHeader?: boolean;\n visitedSteps: Set<number>;\n onActiveStepChange?: (index: number) => void;\n onVisitedStepsChange?: (visitedSteps: Set<number>) => void;\n onChangeStep?: (event: StepperChangeEvent) => void;\n};\n\n/** One navigation gate for both wizard footers and their step headers. */\nexport const transitionStep = ({\n index,\n currentStep,\n stepCount,\n isCurrentStepInvalid,\n linear,\n fromHeader = false,\n visitedSteps,\n onActiveStepChange,\n onVisitedStepsChange,\n onChangeStep,\n}: StepTransition) => {\n if (\n index < 0 || index >= stepCount || index === currentStep ||\n (fromHeader && linear) || (index > currentStep && isCurrentStepInvalid) ||\n !onActiveStepChange\n ) {\n return;\n }\n\n if (index > currentStep) {\n onVisitedStepsChange?.(new Set(visitedSteps).add(currentStep));\n }\n onActiveStepChange(index);\n onChangeStep?.({ index });\n};\n"],"names":[],"mappings":"AAmBO,MAAM,cAAc,GAAG,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,UAAU,GAAG,KAAK,EAClB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACC,KAAI;IACjB,IACI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,KAAK,WAAW;SACvD,UAAU,IAAI,MAAM,CAAC,KAAK,KAAK,GAAG,WAAW,IAAI,oBAAoB,CAAC;QACvE,CAAC,kBAAkB,EACrB;QACE;IACJ;AAEA,IAAA,IAAI,KAAK,GAAG,WAAW,EAAE;AACrB,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAClE;IACA,kBAAkB,CAAC,KAAK,CAAC;AACzB,IAAA,YAAY,GAAG,EAAE,KAAK,EAAE,CAAC;AAC7B;;"}
@@ -7,3 +7,4 @@ export declare const useCommandExecution: <TCommand extends object, TResponse>(c
7
7
  isSubmitting: boolean;
8
8
  isMounted: () => boolean;
9
9
  };
10
+ //# sourceMappingURL=useCommandExecution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCommandExecution.d.ts","sourceRoot":"","sources":["../../../CommandDialog/useCommandExecution.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAsB,KAAK,qBAAqB,EAAE,MAAM,yBAAsB,CAAC;AACtF,OAAO,EAA2B,KAAK,oBAAoB,EAAE,MAAM,2BAAwB,CAAC;AAI5F,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,GAAI,QAAQ,SAAS,MAAM,EAAE,SAAS,mBACjD,QAAQ,oBACP,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,oBAC1B,qBAAqB,CAAC,QAAQ,CAAC,yBAC1B,oBAAoB,CAAC,QAAQ,CAAC,gBACvC,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;eAIxD,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;;;CAwCvE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCommandExecution.js","sources":["../../../CommandDialog/useCommandExecution.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAUO,MAAM,mBAAmB,GAAG,CAC/B,eAAyB,EACzB,gBAA4C,EAC5C,eAAiD,EACjD,oBAAqD,EACrD,WAA8E,KAC9E;AACA,IAAA,MAAM,UAAU,GAAG,mBAAmB,EAAE;AAExC,IAAA,MAAM,GAAG,GAAG,YAA2D;QACnE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,oBAAoB,KAAK,SAAS,CAAC;AAAE,YAAA,OAAO,SAAS;AAC3E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E,YAAY,EAAE,UAAU,CAAC,YAAY,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;AAC1F;;"}
1
+ {"version":3,"file":"useCommandExecution.js","sources":["../../../CommandDialog/useCommandExecution.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { ICommandResult } from '@cratis/arc/commands';\nimport { applyBeforeExecute, type BeforeExecuteCallback } from './applyBeforeExecute';\nimport { reportConfirmationError, type ConfirmBeforeExecute } from './confirmBeforeExecute';\nimport { commandValuesUnchanged, snapshotCommandValues } from './commandValuesUnchanged';\nimport { useSubmissionFlight } from './useSubmissionFlight';\n\n/** Owns one submission from transform through execution, releasing busy before result callbacks. */\nexport const useCommandExecution = <TCommand extends object, TResponse>(\n commandInstance: TCommand,\n setCommandValues: (values: TCommand) => void,\n onBeforeExecute?: BeforeExecuteCallback<TCommand>,\n confirmBeforeExecute?: ConfirmBeforeExecute<TCommand>,\n onException?: (messages: string[], stackTrace: string) => void | Promise<void>,\n) => {\n const submission = useSubmissionFlight();\n\n const run = async (): Promise<ICommandResult<TResponse> | undefined> => {\n if (!submission.begin(confirmBeforeExecute !== undefined)) return undefined;\n let confirmationError: { error: unknown } | undefined;\n let result: ICommandResult<TResponse> | undefined;\n try {\n let values = commandInstance;\n if (onBeforeExecute) {\n const applied = applyBeforeExecute(onBeforeExecute, commandInstance);\n values = applied instanceof Promise ? await applied : applied;\n setCommandValues(values);\n }\n if (confirmBeforeExecute) {\n let approved = false;\n let valuesUnchanged = false;\n try {\n const approvedValues = snapshotCommandValues(commandInstance);\n approved = await confirmBeforeExecute(values);\n if (submission.isMounted() && approved === true) {\n valuesUnchanged = commandValuesUnchanged(commandInstance, approvedValues);\n }\n } catch (error) {\n confirmationError = { error };\n }\n if (confirmationError === undefined &&\n (!submission.isMounted() || approved !== true || !valuesUnchanged)) return undefined;\n }\n if (confirmationError === undefined) {\n // SAFETY: Arc command instances expose execute at runtime; the wrapper's public type omits it.\n result = await (commandInstance as unknown as {\n execute: () => Promise<ICommandResult<TResponse>>;\n }).execute();\n }\n } finally {\n submission.finish();\n }\n if (confirmationError) await reportConfirmationError(confirmationError.error, onException);\n return result;\n };\n\n return { run, isSubmitting: submission.isSubmitting, isMounted: submission.isMounted };\n};\n"],"names":[],"mappings":";;;;;AAUO,MAAM,mBAAmB,GAAG,CAC/B,eAAyB,EACzB,gBAA4C,EAC5C,eAAiD,EACjD,oBAAqD,EACrD,WAA8E,KAC9E;AACA,IAAA,MAAM,UAAU,GAAG,mBAAmB,EAAE;AAExC,IAAA,MAAM,GAAG,GAAG,YAA2D;QACnE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,oBAAoB,KAAK,SAAS,CAAC;AAAE,YAAA,OAAO,SAAS;AAC3E,QAAA,IAAI,iBAAiD;AACrD,QAAA,IAAI,MAA6C;AACjD,QAAA,IAAI;YACA,IAAI,MAAM,GAAG,eAAe;YAC5B,IAAI,eAAe,EAAE;gBACjB,MAAM,OAAO,GAAG,kBAAkB,CAAC,eAAe,EAAE,eAAe,CAAC;AACpE,gBAAA,MAAM,GAAG,OAAO,YAAY,OAAO,GAAG,MAAM,OAAO,GAAG,OAAO;gBAC7D,gBAAgB,CAAC,MAAM,CAAC;YAC5B;YACA,IAAI,oBAAoB,EAAE;gBACtB,IAAI,QAAQ,GAAG,KAAK;gBACpB,IAAI,eAAe,GAAG,KAAK;AAC3B,gBAAA,IAAI;AACA,oBAAA,MAAM,cAAc,GAAG,qBAAqB,CAAC,eAAe,CAAC;AAC7D,oBAAA,QAAQ,GAAG,MAAM,oBAAoB,CAAC,MAAM,CAAC;oBAC7C,IAAI,UAAU,CAAC,SAAS,EAAE,IAAI,QAAQ,KAAK,IAAI,EAAE;AAC7C,wBAAA,eAAe,GAAG,sBAAsB,CAAC,eAAe,EAAE,cAAc,CAAC;oBAC7E;gBACJ;gBAAE,OAAO,KAAK,EAAE;AACZ,oBAAA,iBAAiB,GAAG,E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AK;AACrE,QAAA,IAAI,SAAS;AAAE,YAAA,QAAQ,CAAC,OAAO,GAAG,IAAI;QACtC,IAAI,OAAO,CAAC,OAAO;YAAE,eAAe,CAAC,IAAI,CAAC;AAC1C,QAAA,OAAO,IAAI;AACf,IAAA,CAAC;IAED,MAAM,MAAM,GAAG,MAAK;AAChB,QAAA,QAAQ,CAAC,OAAO,GAAG,KAAK;QAGxB,IAAI,OAAO,CAAC,OAAO;YAAE,SAAS,CAAC,MAAM,eAAe,CAAC,KAAK,CAAC,CAAC;AAChE,IAAA,CAAC;AAED,IAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE;AAC5E;;"}
1
+ {"version":3,"file":"useSubmissionFlight.js","sources":["../../../CommandDialog/useSubmissionFlight.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useEffect, useRef, useState } from 'react';\nimport { flushSync } from 'react-dom';\n\n/** Tracks busy state and guards re-entry while a confirmation is pending. */\nexport const useSubmissionFlight = () => {\n const [isSubmitting, setIsSubmitting] = useState(false);\n const inFlight = useRef(false);\n const mounted = useRef(true);\n\n useEffect(() => {\n mounted.current = true;\n return () => { mounted.current = false; };\n }, []);\n\n const begin = (exclusive: boolean) => {\n if (exclusive && (!mounted.current || inFlight.current)) return false;\n if (exclusive) inFlight.current = true;\n if (mounted.current) setIsSubmitting(true);\n return true;\n };\n\n const finish = () => {\n inFlight.current = false;\n // Result and exception callbacks must observe an idle dialog, even within a React event batch.\n // eslint-disable-next-line @eslint-react/dom-no-flush-sync -- The busy prop must settle before consumer callbacks.\n if (mounted.current) flushSync(() => setIsSubmitting(false));\n };\n\n return { isSubmitting, begin, finish, isMounted: () => mounted.current };\n};\n"],"names":[],"mappings":";;;AAOO,MAAM,mBAAmB,GAAG,MAAK;IACpC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC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"AutoCommandForm.js","sources":["../../../CommandForm/AutoCommandForm.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type React from 'react';\nimport { useMemo } from 'react';\nimport type { Command } from '@cratis/arc/commands';\nimport { CommandForm, type CommandFormProps } from '@cratis/arc.react/commands';\nimport { registerDefaultFieldTypeProviders } from './defaultFieldTypeProviders';\nimport { resolveFieldTypeProvider } from './fieldTypeProviderRegistry';\n\nregisterDefaultFieldTypeProviders();\n\n/**\n * Props for {@link AutoCommandForm} - every {@link CommandFormProps} except `children`, which is\n * generated from the command's own properties instead of being written out by hand.\n */\nexport interface AutoCommandFormProps<\n TCommand extends object,\n TResponse = object,\n> extends Omit<CommandFormProps<TCommand, TResponse>, 'children'> {\n /**\n * Property names to leave out of the generated field list - for a property that should not\n * be user-editable, or one a custom field placed elsewhere on the page already covers.\n */\n exclude?: (keyof TCommand)[];\n\n /**\n * Optional content rendered after the generated fields, inside the native Arc form and\n * command context. Supply a submit control here when needed; no action is added by default.\n */\n footer?: React.ReactNode;\n}\n\nfunction formatTitle(propertyName: string): string {\n return propertyName\n .replace(/([A-Z])/g, ' $1')\n .replace(/^./, (character) => character.toUpperCase())\n .trim();\n}\n\n/**\n * A `CommandForm` that generates its field list from the command's own properties, choosing each\n * field's component by the property's type through the {@link FieldTypeProvider} registry -\n * `registerFieldTypeProvider` for a type the built-in defaults (`string`, `number`, `boolean`,\n * `Date`) don't cover, or to override one of them.\n *\n * A property whose type no registered provider handles is left out of the generated list -\n * `exclude` it explicitly for clarity, or add a `CommandForm` child by hand alongside this\n * component for that one property.\n *\n * @example\n * ```tsx\n * <AutoCommandForm command={RegisterInvoice} exclude={['invoiceId']} />\n * ```\n */\nexport function AutoCommandForm<TCommand extends object = object, TResponse = object>(\n props: AutoCommandFormProps<TCommand, TResponse>,\n): React.ReactElement {\n const { exclude, footer, ...commandFormProps } = props;\n // SAFETY: Arc command constructors expose the Command property-descriptor contract at runtime.\n const propertyDescriptors = useMemo(\n () => (new props.command() as unknown as Command).propertyDescriptors,\n [props.command],\n );\n const excluded = useMemo(\n () => new Set<string>((exclude ?? []) as string[]),\n [exclude],\n );\n\n const fields = propertyDescriptors\n .filter((descriptor) => !excluded.has(descriptor.name))\n .map((descriptor) => {\n const provider = resolveFieldTypeProvider(descriptor);\n if (!provider) {\n return null;\n }\n\n const Field = provider.component;\n return (\n <Field\n key={descriptor.name}\n // The accessor reads the property dynamically, so CommandForm cannot infer the\n // property name from its source text; fieldName states it explicitly.\n fieldName={descriptor.name}\n value={(instance: TCommand) => {\n // SAFETY: Arc descriptors name runtime properties on the same command instance.\n return (instance as unknown as Record<string, unknown>)[\n descriptor.name\n ];\n }}\n title={formatTitle(descriptor.name)}\n />\n );\n })\n .filter((field): field is React.ReactElement => field !== null);\n\n return (\n <CommandForm {...commandFormProps}>\n {fields}\n {footer}\n </CommandForm>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;AAUA,iCAAiC,EAAE;AAuBnC,SAAS,WAAW,CAAC,YAAoB,EAAA;AACrC,IAAA,OAAO;AACF,SAAA,OAAO,CAAC,UAAU,EAAE,KAAK;AACzB,SAAA,OAAO,CAAC,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,CAAC,WAAW,EAAE;AACpD,SAAA,IAAI,EAAE;AACf;AAiBM,SAAU,eAAe,CAC3B,KAAgD,EAAA;IAEhD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,GAAG,KAAK;IAEtD,MAAM,mBAAmB,GAAG,OAAO,CAC/B,MAAO,IAAI,KAAK,CAAC,OAAO,EAAyB,CAAC,mBAAmB,EACrE,CAAC,KAAK,CAAC,OAAO,CAAC,CAClB;IACD,MAAM,QAAQ,GAAG,OAAO,CACpB,MAAM,IAAI,GAAG,EAAU,OAAO,IAAI,EAAE,EAAc,EAClD,CAAC,OAAO,CAAC,CACZ;IAED,MAAM,MAAM,GAAG;AACV,SAAA,MAAM,CAAC,CAAC,UAAU,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC;AACrD,SAAA,GAAG,CAAC,CAAC,UAAU,KAAI;AAChB,QAAA,MAAM,QAAQ,GAAG,wBAAwB,CAAC,UAAU,CAAC;QACrD,IAAI,CAAC,QAAQ,EAAE;AACX,YAAA,OAAO,IAAI;QACf;AAEA,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,SAAS;AAChC,QAAA,QACIA,GAAA,CAAC,KAAK,EAAA,EAIF,SAAS,EAAE,UAAU,CAAC,IAAI,EAC1B,KAAK,EAAE,CAAC,QAAkB,KAAI;AAE1B,gBAAA,OAAQ,QAA+C,CACnD,UAAU,CAAC,IAAI,CAClB;AACL,YAAA,CAAC,EACD,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,IAV9B,UAAU,CAAC,IAAI,CAWtB;AAEV,IAAA,CAAC;SACA,MAAM,CAAC,CAAC,KAAK,KAAkC,KAAK,KAAK,IAAI,CAAC;IAEnE,QACIC,IAAA,CAAC,WAAW,EAAA,EAAA,GAAK,gBAAgB,EAAA,QAAA,EAAA,CAC5B,MAAM,EACN,MAAM,CAAA,EAAA,CACG;AAEtB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FieldTypeProvider.js","sourceRoot":"","sources":["../../../CommandForm/FieldTypeProvider.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
1
+ {"version":3,"file":"FieldTypeProvider.js","sourceRoot":"","sources":["../../../CommandForm/FieldTypeProvider.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyDescriptor } from '@cratis/arc/reflection';\nimport { ComponentType } from 'react';\n\n/**\n * Maps a command property's type to the field component that renders it by default in\n * {@link AutoCommandForm}.\n */\nexport interface FieldTypeProvider {\n /**\n * Determines whether this provider renders the given property.\n * @param propertyDescriptor The property to consider.\n * @returns True if this provider handles the property's type.\n */\n canHandle(propertyDescriptor: PropertyDescriptor): boolean;\n\n /**\n * The field component to render for a property this provider handles - one of the field\n * components built with `asCommandFormField` (e.g. `InputTextField`, `NumberField`).\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n component: ComponentType<any>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"commandFormMarkers.js","sources":["../../../CommandForm/commandFormMarkers.ts"],"sourcesContent":[null],"names":[],"mappings":"AASO,MAAM,2BAA2B,GAAG;AAGpC,MAAM,4BAA4B,GAAG;AAyCtC,SAAU,sBAAsB,CAAI,SAAY,EAAA;IAClD,MAAM,MAAM,GAAG,SAAkC;AACjD,IAAA,MAAM,CAAC,kBAAkB,GAAG,IAAI;AAChC,IAAA,MAAM,CAAC,WAAW,GAAG,2BAA2B;AAChD,IAAA,OAAO,MAAM;AACjB;AAMM,SAAU,uBAAuB,CAAI,SAAY,EAAA;IACnD,MAAM,MAAM,GAAG,SAAkC;AACjD,IAAA,MAAM,CAAC,mBAAmB,GAAG,IAAI;AACjC,IAAA,MAAM,CAAC,WAAW,GAAG,4BAA4B;AACjD,IAAA,OAAO,MAAM;AACjB;AAcM,SAAU,kBAAkB,CAAC,SAAkB,EAAA;IACjD,MAAM,SAAS,GAAG,SAA0C;IAC5D,OAAO,SAAS,EAAE,kBAAkB,KAAK,IAAI,IAAI,SAAS,EAAE,WAAW,KAAK,2BAA2B;AAC3G;AAMM,SAAU,mBAAmB,CAAC,SAAkB,EAAA;IAClD,MAAM,SAAS,GAAG,SAA0C;IAC5D,OAAO,SAAS,EAAE,mBAAmB,KAAK,IAAI,IAAI,SAAS,EAAE,WAAW,KAAK,4BAA4B;AAC7G;;"}
1
+ {"version":3,"file":"commandFormMarkers.js","sources":["../../../CommandForm/commandFormMarkers.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The `displayName` a command form field carries.\n *\n * Exported so a consumer recognizing a field has a constant to compare against rather than a\n * duplicated string literal.\n */\nexport const CommandFormFieldDisplayName = 'CommandFormField';\n\n/** The `displayName` a command form column carries. */\nexport const CommandFormColumnDisplayName = 'CommandFormColumn';\n\n/**\n * The shape a component carries to say what it is to a `CommandForm`.\n *\n * This is the cross-package contract, and it is defined identically here and in\n * `@cratis/arc.react`. It is duplicated rather than imported on purpose: this package declares\n * `@cratis/arc.react` as a version range, so a named import would be a hard module-link error\n * against any version in that range predating the marker. Both packages therefore describe the\n * same shape independently, and neither has to know the other's version.\n *\n * ⚠️ Changing a property name here is a breaking change to that contract even though nothing in\n * this package stops compiling — the other package simply stops seeing the marker, and every\n * field whose `displayName` a build transform has rewritten silently unbinds.\n */\nexport type CommandFormMarked = {\n /** Set on a field component. */\n isCommandFormField?: boolean;\n\n /** Set on a column component. */\n isCommandFormColumn?: boolean;\n\n /** The React display name, kept as the compatibility fallback. */\n displayName?: string;\n};\n\n/**\n * Marks a component as a command form field, and returns it.\n *\n * Sets both the marker and the `displayName`. The `displayName` is not redundant and is not on a\n * deprecation path: it is what lets a version of this package interoperate with a version of\n * `@cratis/arc.react` that only knows the string, in both directions. Removing it would silently\n * unbind every field across that version boundary — the very failure the marker exists to prevent.\n *\n * Prefer `asCommandFormField` from `@cratis/arc.react` where it applies; it marks the wrapped\n * component for you. Reach for this when hand-rolling a field.\n *\n * ⚠️ Any existing `displayName` is replaced. That is forced rather than incidental — a version of\n * `@cratis/arc.react` predating the marker binds the field by that exact string — so a component\n * needing its own diagnostic label cannot also be marked this way.\n */\nexport function markAsCommandFormField<T>(component: T): T & CommandFormMarked {\n const marked = component as T & CommandFormMarked;\n marked.isCommandFormField = true;\n marked.displayName = CommandFormFieldDisplayName;\n return marked;\n}\n\n/**\n * Marks a component as a command form column, and returns it. Any existing `displayName` is\n * replaced. See {@link markAsCommandFormField}.\n */\nexport function markAsCommandFormColumn<T>(component: T): T & CommandFormMarked {\n const marked = component as T & CommandFormMarked;\n marked.isCommandFormColumn = true;\n marked.displayName = CommandFormColumnDisplayName;\n return marked;\n}\n\n/**\n * Whether a component is a command form field.\n *\n * The marker is checked first and the `displayName` second. A build transform that rewrites\n * `displayName` — which `react-docgen-typescript` does by default, and Storybook selects it\n * through a documented option — leaves the marker alone, so a field survives where it used to\n * unbind silently. The fallback keeps a hand-marked component, and a component from a version of\n * `@cratis/arc.react` that predates the marker, working exactly as before.\n *\n * @param component - The child's component type. Anything may be passed: this runs over every\n * child a form is given, and a host element's type is a string rather than a component.\n */\nexport function isCommandFormField(component: unknown): boolean {\n const candidate = component as CommandFormMarked | undefined;\n return candidate?.isCommandFormField === true || candidate?.displayName === CommandFormFieldDisplayName;\n}\n\n/**\n * Whether a component is a command form column.\n * See {@link isCommandFormField} for the ordering and why it matters.\n */\nexport function isCommandFormColumn(component: unknown): boolean {\n const candidate = component as CommandFormMarked | undefined;\n return candidate?.isCommandFormColumn === true || candidate?.displayName === CommandFormColumnDisplayName;\n}\n"],"names":[],"mappings":"AASO,MAAM,2BAA2B,GAAG;AAGpC,MAAM,4BAA4B,GAAG;AAyCtC,SAAU,sBAAsB,CAAI,SAAY,EAAA;IAClD,MAAM,MAAM,GAAG,SAAkC;AACjD,IAAA,MAAM,CAAC,kBAAkB,GAAG,IAAI;AAChC,IAAA,MAAM,CAAC,WAAW,GAAG,2BAA2B;AAChD,IAAA,OAAO,MAAM;AACjB;AAMM,SAAU,uBAAuB,CAAI,SAAY,EAAA;IACnD,MAAM,MAAM,GAAG,SAAkC;AACjD,IAAA,MAAM,CAAC,mBAAmB,GAAG,IAAI;AACjC,IAAA,MAAM,CAAC,WAAW,GAAG,4BAA4B;AACjD,IAAA,OAAO,MAAM;AACjB;AAcM,SAAU,kBAAkB,CAAC,SAAkB,EAAA;IACjD,MAAM,SAAS,GAAG,SAA0C;IAC5D,OAAO,SAAS,EAAE,kBAAkB,KAAK,IAAI,IAAI,SAAS,EAAE,WAAW,KAAK,2BAA2B;AAC3G;AAMM,SAAU,mBAAmB,CAAC,SAAkB,EAAA;IAClD,MAAM,SAAS,GAAG,SAA0C;IAC5D,OAAO,SAAS,EAAE,mBAAmB,KAAK,IAAI,IAAI,SAAS,EAAE,WAAW,KAAK,4BAA4B;AAC7G;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaultFieldTypeProviders.js","sources":["../../../CommandForm/defaultFieldTypeProviders.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;SAcgB,iCAAiC,GAAA;AAC7C,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,MAAM;AACrD,QAAA,SAAS,EAAE,cAAc;AAC5B,KAAA,CAAC;AACF,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,MAAM;AACrD,QAAA,SAAS,EAAE,WAAW;AACzB,KAAA,CAAC;AACF,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,OAAO;AACtD,QAAA,SAAS,EAAE,aAAa;AAC3B,KAAA,CAAC;AACF,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,IAAI;AACnD,QAAA,SAAS,EAAE,aAAa;AAC3B,KAAA,CAAC;AACN;;"}
1
+ {"version":3,"file":"defaultFieldTypeProviders.js","sources":["../../../CommandForm/defaultFieldTypeProviders.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { registerFieldTypeProvider } from './fieldTypeProviderRegistry';\nimport { InputTextField } from './fields/InputTextField';\nimport { NumberField } from './fields/NumberField';\nimport { CheckboxField } from './fields/CheckboxField';\nimport { CalendarField } from './fields/CalendarField';\n\n/**\n * Registers the built-in {@link FieldTypeProvider}s {@link AutoCommandForm} falls back to for the\n * JavaScript primitive types a command property can have. {@link AutoCommandForm} calls this\n * explicitly when its module loads so production tree shaking cannot discard the registration.\n */\nexport function registerDefaultFieldTypeProviders(): void {\n registerFieldTypeProvider({\n canHandle: (descriptor) => descriptor.type === String,\n component: InputTextField,\n });\n registerFieldTypeProvider({\n canHandle: (descriptor) => descriptor.type === Number,\n component: NumberField,\n });\n registerFieldTypeProvider({\n canHandle: (descriptor) => descriptor.type === Boolean,\n component: CheckboxField,\n });\n registerFieldTypeProvider({\n canHandle: (descriptor) => descriptor.type === Date,\n component: CalendarField,\n });\n}\n"],"names":[],"mappings":";;;;;;SAcgB,iCAAiC,GAAA;AAC7C,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,MAAM;AACrD,QAAA,SAAS,EAAE,cAAc;AAC5B,KAAA,CAAC;AACF,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,MAAM;AACrD,QAAA,SAAS,EAAE,WAAW;AACzB,KAAA,CAAC;AACF,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,OAAO;AACtD,QAAA,SAAS,EAAE,aAAa;AAC3B,KAAA,CAAC;AACF,IAAA,yBAAyB,CAAC;QACtB,SAAS,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,KAAK,IAAI;AACnD,QAAA,SAAS,EAAE,aAAa;AAC3B,KAAA,CAAC;AACN;;"}
@@ -20,3 +20,4 @@ export declare function resolveFieldTypeProvider(propertyDescriptor: PropertyDes
20
20
  * consuming application should not normally call this.
21
21
  */
22
22
  export declare function clearFieldTypeProviders(): void;
23
+ //# sourceMappingURL=fieldTypeProviderRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldTypeProviderRegistry.d.ts","sourceRoot":"","sources":["../../../CommandForm/fieldTypeProviderRegistry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAqB,CAAC;AAIxD;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAE3E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,SAAS,CAE9G;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"fieldTypeProviderRegistry.js","sources":["../../../CommandForm/fieldTypeProviderRegistry.ts"],"sourcesContent":[null],"names":[],"mappings":"AAMA,MAAM,SAAS,GAAwB,EAAE;AAUnC,SAAU,yBAAyB,CAAC,QAA2B,EAAA;AACjE,IAAA,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC/B;AAOM,SAAU,wBAAwB,CAAC,kBAAsC,EAAA;AAC3E,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;AAC7E;SAMgB,uBAAuB,GAAA;AACnC,IAAA,SAAS,CAAC,MAAM,GAAG,CAAC;AACxB;;"}
1
+ {"version":3,"file":"fieldTypeProviderRegistry.js","sources":["../../../CommandForm/fieldTypeProviderRegistry.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyDescriptor } from '@cratis/arc/reflection';\nimport { FieldTypeProvider } from './FieldTypeProvider';\n\nconst providers: FieldTypeProvider[] = [];\n\n/**\n * Registers a {@link FieldTypeProvider} that {@link AutoCommandForm} consults when choosing which\n * field component to render for a command property.\n *\n * Providers are consulted most-recently-registered first, so a provider registered by consuming\n * application code overrides one of the built-in defaults for the same property type.\n * @param provider The provider to register.\n */\nexport function registerFieldTypeProvider(provider: FieldTypeProvider): void {\n providers.unshift(provider);\n}\n\n/**\n * Finds the first registered {@link FieldTypeProvider} that handles the given property.\n * @param propertyDescriptor The property to resolve a provider for.\n * @returns The matching provider, or undefined if none handles this property's type.\n */\nexport function resolveFieldTypeProvider(propertyDescriptor: PropertyDescriptor): FieldTypeProvider | undefined {\n return providers.find(provider => provider.canHandle(propertyDescriptor));\n}\n\n/**\n * Clears every registered provider, including the built-in defaults. Exposed for specs; a\n * consuming application should not normally call this.\n */\nexport function clearFieldTypeProviders(): void {\n providers.length = 0;\n}\n"],"names":[],"mappings":"AAMA,MAAM,SAAS,GAAwB,EAAE;AAUnC,SAAU,yBAAyB,CAAC,QAA2B,EAAA;AACjE,IAAA,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC/B;AAOM,SAAU,wBAAwB,CAAC,kBAAsC,EAAA;AAC3E,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;AAC7E;SAMgB,uBAAuB,GAAA;AACnC,IAAA,SAAS,CAAC,MAAM,GAAG,CAAC;AACxB;;"}
@@ -48,3 +48,4 @@ interface CalendarFieldComponentProps extends WrappedFieldProps<Date | null>, Fi
48
48
  */
49
49
  export declare const CalendarField: (<TCommand = unknown>(props: import("@cratis/arc.react/commands").CommandFormFieldComponentProps<CalendarFieldComponentProps, TCommand>) => React.ReactElement) & import("@cratis/arc.react/commands").CommandFormMarked;
50
50
  export {};
51
+ //# sourceMappingURL=CalendarField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/CalendarField.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAEH,KAAK,0BAA0B,EAClC,MAAM,iCAA8B,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,yBAAsB,CAAC;AAE9B;;GAEG;AACH,UAAU,2BACN,SAAQ,iBAAiB,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,uBAAuB;IAC/D,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAEzB,gCAAgC;IAChC,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,mEAAmE;IACnE,EAAE,CAAC,EAAE,0BAA0B,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,0NAkCzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarField.js","sources":["../../../../CommandForm/fields/CalendarField.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;MAsEa,aAAa,GAAG,kBAAkB,CAC3C,CAAC,KAAK,KAAI;AACN,IAAA,MAAM,aAAa,GAAG,qBAAqB,CAAC,KAAK,EAAE;AAC/C,QAAA,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;QACvB,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,YAAY,CAAC;QAC1C,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,kBAAkB,CAAC;AACzD,KAAA,CAAC;IACF,QACIA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACIC,GAAA,CAAC,eAAe,EAAA,EACZ,EAAE,EAAE,aAAa,CAAC,SAAS,EAAA,YAAA,EACf,aAAa,CAAC,SAAS,EAAA,kBAAA,EACjB,aAAa,CAAC,eAAe,EAC/C,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC1C,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAA,CAC1B,EACD,aAAa,CAAC,WAAW,CAAA,EAAA,CAC3B;AAEX,CAAC,EACD,EAAE,YAAY,EAAE,IAAI,EAAE;;"}
1
+ {"version":3,"file":"CalendarField.js","sources":["../../../../CommandForm/fields/CalendarField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { asCommandFormField, type WrappedFieldProps } from '@cratis/arc.react/commands';\nimport {\n DatePickerInput,\n type DatePickerInputPassThrough,\n} from '../../Common/DatePickerInput';\nimport React from 'react';\nimport {\n useFieldAccessibility,\n type FieldAccessibilityProps,\n} from './fieldAccessibility';\n\n/**\n * Component-level props for {@link CalendarField}.\n */\ninterface CalendarFieldComponentProps\n extends WrappedFieldProps<Date | null>, FieldAccessibilityProps {\n /** Placeholder text shown when no date is selected. */\n placeholder?: string;\n\n /** legacy date format mask (e.g. `'yy-mm-dd'`). */\n dateFormat?: string;\n\n /** When true, renders a trailing calendar icon button. */\n showIcon?: boolean;\n\n /** When true, includes time selection alongside the date. */\n showTime?: boolean;\n\n /** Hour format used when {@link showTime} is true. */\n hourFormat?: '12' | '24';\n\n /** Earliest selectable date. */\n minDate?: Date;\n\n /** Latest selectable date. */\n maxDate?: Date;\n\n /** Extra CSS class name combined with the default `w-full`. */\n className?: string;\n\n /** Cratis-owned per-part attributes applied to the date picker. */\n pt?: DatePickerInputPassThrough;\n\n /**\n * @deprecated Cratis parts always merge. Remove this renderer-era option.\n */\n ptOptions?: object;\n\n /**\n * @deprecated Components always uses consumer-owned CSS. Customize through `pt` and CSS instead.\n */\n unstyled?: boolean;\n}\n\n/**\n * A date (or date-time) picker field bound to a `Date | null` property on a\n * Cratis Arc command. Set `showTime` to add a time selector alongside the\n * date. See {@link InputTextField} for the full `value={c => c.prop}`\n * binding model.\n *\n * ```tsx\n * <CalendarField value={c => c.dueDate}\n * title=\"Due date\"\n * showIcon\n * minDate={new Date()} />\n * ```\n */\nexport const CalendarField = asCommandFormField<CalendarFieldComponentProps>(\n (props) => {\n const accessibility = useFieldAccessibility(props, {\n id: props.pt?.input?.id,\n ariaLabel: props.pt?.input?.['aria-label'],\n ariaDescribedBy: props.pt?.input?.['aria-describedby'],\n });\n return (\n <>\n <DatePickerInput\n id={accessibility.controlId}\n aria-label={accessibility.ariaLabel}\n aria-describedby={accessibility.ariaDescribedBy}\n value={props.value}\n onChange={(value) => props.onChange(value)}\n onBlur={props.onBlur}\n invalid={props.invalid}\n placeholder={props.placeholder}\n dateFormat={props.dateFormat}\n showIcon={props.showIcon}\n showTime={props.showTime}\n hourFormat={props.hourFormat}\n minDate={props.minDate}\n maxDate={props.maxDate}\n className={props.className}\n pt={props.pt}\n ptOptions={props.ptOptions}\n unstyled={props.unstyled}\n />\n {accessibility.hiddenError}\n </>\n );\n },\n { defaultValue: null },\n);\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;MAsEa,aAAa,GAAG,kBAAkB,CAC3C,CAAC,KAAK,KAAI;AACN,IAAA,MAAM,aAAa,GAAG,qBAAqB,CAAC,KAAK,EAAE;AAC/C,QAAA,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;QACvB,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,YAAY,CAAC;QAC1C,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,kBAAkB,CAAC;AACzD,KAAA,CAAC;IACF,QACIA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACIC,GAAA,CAAC,eAAe,EAAA,EACZ,EAAE,EAAE,aAAa,CAAC,SAAS,EAAA,YAAA,EACf,aAAa,CAAC,SAAS,EAAA,kBAAA,EACjB,aAAa,CAAC,eAAe,EAC/C,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC1C,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAA,CAC1B,EACD,aAAa,CAAC,WAAW,CAAA,EAAA,CAC3B;AAEX,CAAC,EACD,EAAE,YAAY,EAAE,IAAI,EAAE;;"}
@@ -22,3 +22,4 @@ interface CheckboxFieldComponentProps extends WrappedFieldProps<boolean>, FieldA
22
22
  /** A checkbox field bound to a boolean property on an Arc command. */
23
23
  export declare const CheckboxField: (<TCommand = unknown>(props: import("@cratis/arc.react/commands").CommandFormFieldComponentProps<CheckboxFieldComponentProps, TCommand>) => React.ReactElement) & import("@cratis/arc.react/commands").CommandFormMarked;
24
24
  export {};
25
+ //# sourceMappingURL=CheckboxField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/CheckboxField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,yBAAsB,CAAC;AAI9B,wDAAwD;AACxD,MAAM,WAAW,aAAa;IAC1B,sBAAsB;IACtB,IAAI,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;IACxC,6BAA6B;IAC7B,KAAK,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAC9C,2BAA2B;IAC3B,GAAG,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;IACtC,gCAAgC;IAChC,SAAS,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;CAC/C;AAKD,UAAU,2BACN,SAAQ,iBAAiB,CAAC,OAAO,CAAC,EAC9B,uBAAuB;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,aAAa,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,sEAAsE;AACtE,eAAO,MAAM,aAAa,0NAyEzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxField.js","sources":["../../../../CommandForm/fields/CheckboxField.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;MAsCa,aAAa,GAAG,kBAAkB,CAC3C,CAAC,KAAK,KAAI;AACN,IAAA,MAAM,aAAa,GAAG,qBAAqB,CAAC,KAAK,EAAE;AAC/C,QAAA,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;AACvB,QAAA,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,YAAY,CAAC,IAAI,KAAK,CAAC,KAAK;QACzD,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,kBAAkB,CAAC;AACzD,KAAA,CAAC;IACF,QACIA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACJD,IAAA,CAAA,OAAA,EAAA,EAAA,GACQ,KAAK,CAAC,EAAE,EAAE,IAAI,EAClB,SAAS,EAAE,CAAC,qBAAqB,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;qBACxE,MAAM,CAAC,OAAO;qBACd,IAAI,CAAC,GAAG,CAAC,EACd,MAAM,EAAE,KAAK,CAAC,MAAM,EAAA,kBAAA,EACH,MAAM,mBACR,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,EAAA,cAAA,EACvC,KAAK,CAAC,OAAO,IAAI,SAAS,mBACzB,KAAK,CAAC,KAAK,IAAI,SAAS,EAAA,QAAA,EAAA,CAEvCE,GAAA,CAAA,OAAA,EAAA,EAAA,GACQ,K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E,SAAS;AACjC;iCACI,MAAM,CAAC,OAAO;iCACd,IAAI,CAAC,GAAG,CAAC,EAAA,kBAAA,EACG,WAAW,mBACb,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,EAAA,cAAA,EACvC,KAAK,CAAC,OAAO,IAAI,SAAS,EAAA,eAAA,EACzB,KAAK,CAAC,KAAK,IAAI,SAAS,EAAA,QAAA,EAAA,QAAA,EAAA,CAGpC,EAAA,CACJ,EACN,KAAK,CAAC,KAAK,KACRA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,4BAA4B,EAAA,QAAA,EAAE,KAAK,CAAC,KAAK,EAAA,CAAQ,CACpE,CAAA,EAAA,CACG,EACC,aAAa,CAAC,WAAW,CAAA,EAAA,CAC3B;AAEX,CAAC,EACD,EAAE,YAAY,EAAE,KAAK,EAAE;;"}
1
+ {"version":3,"file":"CheckboxField.js","sources":["../../../../CommandForm/fields/CheckboxField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { HTMLAttributes, InputHTMLAttributes } from 'react';\nimport { asCommandFormField, type WrappedFieldProps } from '@cratis/arc.react/commands';\nimport {\n useFieldAccessibility,\n type FieldAccessibilityProps,\n} from './fieldAccessibility';\nimport type { ExactPartKeys } from '../../types/ExactPartKeys';\nimport type { PartsOf } from '../../types/parts';\n\n/** Stable part attributes for {@link CheckboxField}. */\nexport interface CheckboxParts {\n /** Wrapping label. */\n root?: HTMLAttributes<HTMLLabelElement>;\n /** Native checkbox input. */\n input?: InputHTMLAttributes<HTMLInputElement>;\n /** Visual checkbox box. */\n box?: HTMLAttributes<HTMLSpanElement>;\n /** Visual checked indicator. */\n indicator?: HTMLAttributes<HTMLSpanElement>;\n}\n\nconst checkboxPartsMatchManifest: ExactPartKeys<CheckboxParts, PartsOf<'CheckboxField'>> = true;\nvoid checkboxPartsMatchManifest;\n\ninterface CheckboxFieldComponentProps\n extends WrappedFieldProps<boolean>,\n FieldAccessibilityProps {\n label?: string;\n className?: string;\n pt?: CheckboxParts;\n ptOptions?: object;\n unstyled?: boolean;\n}\n\n/** A checkbox field bound to a boolean property on an Arc command. */\nexport const CheckboxField = asCommandFormField<CheckboxFieldComponentProps>(\n (props) => {\n const accessibility = useFieldAccessibility(props, {\n id: props.pt?.input?.id,\n ariaLabel: props.pt?.input?.['aria-label'] ?? props.label,\n ariaDescribedBy: props.pt?.input?.['aria-describedby'],\n });\n return (\n <>\n <label\n {...props.pt?.root}\n className={['cratis-choice-field', props.pt?.root?.className, props.className]\n .filter(Boolean)\n .join(' ')}\n onBlur={props.onBlur}\n data-cratis-part='root'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-selected={props.value || undefined}\n >\n <input\n {...props.pt?.input}\n id={accessibility.controlId}\n aria-label={accessibility.ariaLabel}\n aria-describedby={accessibility.ariaDescribedBy}\n type='checkbox'\n checked={props.value}\n onChange={(event) => props.onChange(event.currentTarget.checked)}\n aria-invalid={props.invalid || undefined}\n className={['cratis-choice-field__native', props.pt?.input?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='input'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-selected={props.value || undefined}\n />\n <span\n {...props.pt?.box}\n className={['cratis-checkbox__box', props.pt?.box?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='box'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-selected={props.value || undefined}\n aria-hidden='true'\n >\n <span\n {...props.pt?.indicator}\n className={[\n 'cratis-checkbox__indicator',\n props.pt?.indicator?.className,\n ]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='indicator'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-selected={props.value || undefined}\n >\n ✓\n </span>\n </span>\n {props.label && (\n <span className='cratis-choice-field__label'>{props.label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EACzB,KAAK,CAAC,KAAK,IAAI,SAAS,EAAA,QAAA,EAAA,QAAA,EAAA,CAGpC,EAAA,CACJ,EACN,KAAK,CAAC,KAAK,KACRA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,4BAA4B,EAAA,QAAA,EAAE,KAAK,CAAC,KAAK,EAAA,CAAQ,CACpE,CAAA,EAAA,CACG,EACC,aAAa,CAAC,WAAW,CAAA,EAAA,CAC3B;AAEX,CAAC,EACD,EAAE,YAAY,EAAE,KAAK,EAAE;;"}
@@ -28,3 +28,4 @@ interface ChipsFieldComponentProps extends WrappedFieldProps<string[]>, FieldAcc
28
28
  /** A token input bound to a string array property on an Arc command. */
29
29
  export declare const ChipsField: (<TCommand = unknown>(props: import("@cratis/arc.react/commands").CommandFormFieldComponentProps<ChipsFieldComponentProps, TCommand>) => React.ReactElement) & import("@cratis/arc.react/commands").CommandFormMarked;
30
30
  export {};
31
+ //# sourceMappingURL=ChipsField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipsField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/ChipsField.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,yBAAsB,CAAC;AAM9B,qDAAqD;AACrD,MAAM,WAAW,UAAU;IACvB,qBAAqB;IACrB,IAAI,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IACtC,yBAAyB;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;IACvC,2BAA2B;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACvD,gCAAgC;IAChC,KAAK,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,C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AAS,EAAA,YAAA,EACf,aAAa,CAAC,SAAS,EAAA,kBAAA,EACjB,aAAa,CAAC,eAAe,EAC/C,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EACjD,SAAS,EAAE,CAAC,KAAK,KAAI;AACjB,oBAAA,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE;wBACvB,KAAK,CAAC,cAAc,EAAE;AACtB,wBAAA,MAAM,EAAE;oBACZ;gBACJ,CAAC,EACD,WAAW,EAAE,KAAK,CAAC,WAAW,EAAA,cAAA,EAChB,KAAK,CAAC,OAAO,IAAI,SAAS,EAAA,eAAA,EACzB,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,EAAA,cAAA,EACvC,KAAK,CAAC,OAAO,IAAI,SAAS,EAAA,eAAA,EACzB,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,EACrD,SAAS,EAAE,CAAC,2BAA2B,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS;qBAC9D,MAAM,CAAC,OAAO;AACd,qBAAA,IAAI,CAAC,GAAG,CAAC,EAAA,kBAAA,EACG,OAAO,EAAA,CAC1B,EACD,aAAa,CAAC,WAAW,CAAA,EAAA,CACxB;AAEd,CAAC;AAGM,MAAM,UAAU,GAAG,kBAAkB,CAA2B,YAAY,EAAE;AACjF,IAAA,YAAY,EAAE,EAAE;AACnB,CAAA;;"}
1
+ {"version":3,"file":"ChipsField.js","sources":["../../../../CommandForm/fields/ChipsField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useState, type HTMLAttributes, type InputHTMLAttributes } from 'react';\nimport { asCommandFormField, type WrappedFieldProps } from '@cratis/arc.react/commands';\nimport {\n useFieldAccessibility,\n type FieldAccessibilityProps,\n} from './fieldAccessibility';\nimport { appendChipCandidates } from './chipValues';\nimport { useCratisIcon } from '../../configuration/useCratisIcon';\nimport type { ExactPartKeys } from '../../types/ExactPartKeys';\nimport type { PartsOf } from '../../types/parts';\n\n/** Stable part attributes for {@link ChipsField}. */\nexport interface ChipsParts {\n /** Field wrapper. */\n root?: HTMLAttributes<HTMLDivElement>;\n /** One selected chip. */\n item?: HTMLAttributes<HTMLSpanElement>;\n /** Chip removal button. */\n remove?: React.ButtonHTMLAttributes<HTMLButtonElement>;\n /** Native draft-value input. */\n input?: InputHTMLAttributes<HTMLInputElement>;\n}\n\nconst chipsPartsMatchManifest: ExactPartKeys<ChipsParts, PartsOf<'ChipsField'>> = true;\nvoid chipsPartsMatchManifest;\n\ninterface ChipsFieldComponentProps\n extends WrappedFieldProps<string[]>, FieldAccessibilityProps {\n placeholder?: string;\n max?: number;\n separator?: string;\n addOnBlur?: boolean;\n allowDuplicate?: boolean;\n /** Builds a remove-button label, or supplies one shared localized label. */\n removeAriaLabel?: string | ((item: string, index: number) => string);\n className?: string;\n pt?: ChipsParts;\n ptOptions?: object;\n unstyled?: boolean;\n}\n\nconst ChipsControl = (props: ChipsFieldComponentProps) => {\n const [draft, setDraft] = useState('');\n const icon = useCratisIcon();\n const accessibility = useFieldAccessibility(props, {\n id: props.pt?.input?.id,\n ariaLabel: props.pt?.input?.['aria-label'],\n ariaDescribedBy: props.pt?.input?.['aria-describedby'],\n });\n\n const commit = () => {\n const candidates = (props.separator ? draft.split(props.separator) : [draft])\n .map((value) => value.trim())\n .filter(Boolean);\n if (candidates.length === 0) return;\n props.onChange(\n appendChipCandidates(\n props.value,\n candidates,\n props.max,\n props.allowDuplicate ?? false,\n ),\n );\n setDraft('');\n };\n\n return (\n <div\n {...props.pt?.root}\n className={[\n 'cratis-chips-field',\n 'cratis:w-full',\n props.pt?.root?.className,\n props.className,\n ]\n .filter(Boolean)\n .join(' ')}\n onBlur={(event) => {\n props.onBlur?.();\n if (props.addOnBlur && !event.currentTarget.contains(event.relatedTarget))\n commit();\n }}\n data-cratis-part='root'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-readonly={props.pt?.input?.readOnly || undefined}\n >\n {props.value.map((item, index) => (\n <span\n key={`${item}-${index}`}\n {...props.pt?.item}\n className={['cratis-chips-field__item', props.pt?.item?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='item'\n data-selected\n >\n <span>{item}</span>\n <button\n {...props.pt?.remove}\n type='button'\n className={[\n 'cratis-chips-field__remove',\n props.pt?.remove?.className,\n ]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='remove'\n data-disabled={props.pt?.remove?.disabled || undefined}\n data-selected\n aria-label={\n typeof props.removeAriaLabel === 'function'\n ? props.removeAriaLabel(item, index)\n : (props.removeAriaLabel ?? `Remove ${item}`)\n }\n onClick={() =>\n props.onChange(\n props.value.filter((_, itemIndex) => itemIndex !== index),\n )\n }\n >\n {icon('remove', '×')}\n </button>\n </span>\n ))}\n <input\n {...props.pt?.input}\n id={accessibility.controlId}\n aria-label={accessibility.ariaLabel}\n aria-describedby={accessibility.ariaDescribedBy}\n value={draft}\n onChange={(event) => setDraft(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n commit();\n }\n }}\n placeholder={props.placeholder}\n aria-invalid={props.invalid || undefined}\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-readonly={props.pt?.input?.readOnly || undefined}\n className={['cratis-chips-field__input', props.pt?.input?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='input'\n />\n {accessibility.hiddenError}\n </div>\n );\n};\n\n/** A token input bound to a string array property on an Arc command. */\nexport const ChipsField = asCommandFormField<ChipsFieldComponentProps>(ChipsControl, {\n defaultValue: [],\n});\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AA4CA,MAAM,YAAY,GAAG,CAAC,KAA+B,KAAI;IACrD,MAAM,CAAC,KAAK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G,OAAO,EAAA,CAC1B,EACD,aAAa,CAAC,WAAW,CAAA,EAAA,CACxB;AAEd,CAAC;AAGM,MAAM,UAAU,GAAG,kBAAkB,CAA2B,YAAY,EAAE;AACjF,IAAA,YAAY,EAAE,EAAE;AACnB,CAAA;;"}
@@ -21,3 +21,4 @@ interface ColorPickerFieldComponentProps extends WrappedFieldProps<string>, Fiel
21
21
  /** A native color picker bound to a bare six-digit hex string on an Arc command. */
22
22
  export declare const ColorPickerField: (<TCommand = unknown>(props: import("@cratis/arc.react/commands").CommandFormFieldComponentProps<ColorPickerFieldComponentProps, TCommand>) => React.ReactElement) & import("@cratis/arc.react/commands").CommandFormMarked;
23
23
  export {};
24
+ //# sourceMappingURL=ColorPickerField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorPickerField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/ColorPickerField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,yBAAsB,CAAC;AAI9B,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAC7B,qBAAqB;IACrB,IAAI,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IACtC,0BAA0B;IAC1B,KAAK,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAC9C,yCAAyC;IACzC,KAAK,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;CAC7C;AAKD,UAAU,8BACN,SAAQ,iBAAiB,CAAC,MAAM,CAAC,EAC7B,uBAAuB;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,gBAAgB,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAKD,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,6NA0D5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPickerField.js","sources":["../../../../CommandForm/fields/ColorPickerField.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;AAoCA,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,QAAgB,KACjD,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,QAAQ;MAGtC,gBAAgB,GAAG,kBAAkB,CAC9C,CAAC,KAAK,KAAI;AACN,IAAA,MAAM,aAAa,GAAG,qBAAqB,CAAC,KAAK,EAAE;AAC/C,QAAA,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;QACvB,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,YAAY,CAAC;QAC1C,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,kBAAkB,CAAC;AACzD,KAAA,CAAC;AACF,IAAA,MAAM,KAAK,GAAG,YAAY,CACtB,KAAK,CAAC,KAAK,EACX,YAAY,CAAC,KAAK,CAAC,YAAY,IAAI,QAAQ,EAAE,QAAQ,CAAC,CACzD;IACD,QACIA,iBACQ,KAAK,CAAC,EAAE,EAAE,IAAI,EAClB,SAAS,EAAE;YACP,oBAAoB;AACpB,YAAA,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS;AACzB,YAAA,KAAK,CAAC,SAAS;AAClB;aACI,MAAM,CAAC,OAAO;AACd,aAAA,IAAI,CAAC,GAAG,CAAC,EACd,MAAM,EAAE,KAAK,CAAC,MAAM,EAAA,kBAAA,EACH,MAAM,EAAA,eAAA,EACR,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,EAAA,cAAA,EACvC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EAAE,YAAY,EAAE,EAAE,EAAE;;"}
1
+ {"version":3,"file":"ColorPickerField.js","sources":["../../../../CommandForm/fields/ColorPickerField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { HTMLAttributes, InputHTMLAttributes } from 'react';\nimport { asCommandFormField, type WrappedFieldProps } from '@cratis/arc.react/commands';\nimport {\n useFieldAccessibility,\n type FieldAccessibilityProps,\n} from './fieldAccessibility';\nimport type { ExactPartKeys } from '../../types/ExactPartKeys';\nimport type { PartsOf } from '../../types/parts';\n\n/** Stable part attributes for {@link ColorPickerField}. */\nexport interface ColorPickerParts {\n /** Field wrapper. */\n root?: HTMLAttributes<HTMLDivElement>;\n /** Native color input. */\n input?: InputHTMLAttributes<HTMLInputElement>;\n /** Selected hexadecimal value output. */\n value?: HTMLAttributes<HTMLOutputElement>;\n}\n\nconst colorPickerPartsMatchManifest: ExactPartKeys<ColorPickerParts, PartsOf<'ColorPickerField'>> = true;\nvoid colorPickerPartsMatchManifest;\n\ninterface ColorPickerFieldComponentProps\n extends WrappedFieldProps<string>,\n FieldAccessibilityProps {\n inline?: boolean;\n defaultColor?: string;\n className?: string;\n pt?: ColorPickerParts;\n ptOptions?: object;\n unstyled?: boolean;\n}\n\nconst normalizeHex = (value: string, fallback: string) =>\n /^[0-9a-f]{6}$/i.test(value) ? value : fallback;\n\n/** A native color picker bound to a bare six-digit hex string on an Arc command. */\nexport const ColorPickerField = asCommandFormField<ColorPickerFieldComponentProps>(\n (props) => {\n const accessibility = useFieldAccessibility(props, {\n id: props.pt?.input?.id,\n ariaLabel: props.pt?.input?.['aria-label'],\n ariaDescribedBy: props.pt?.input?.['aria-describedby'],\n });\n const value = normalizeHex(\n props.value,\n normalizeHex(props.defaultColor ?? '000000', '000000'),\n );\n return (\n <div\n {...props.pt?.root}\n className={[\n 'cratis-color-field',\n props.pt?.root?.className,\n props.className,\n ]\n .filter(Boolean)\n .join(' ')}\n onBlur={props.onBlur}\n data-cratis-part='root'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-inline={props.inline || undefined}\n >\n <input\n {...props.pt?.input}\n id={accessibility.controlId}\n aria-label={accessibility.ariaLabel}\n aria-describedby={accessibility.ariaDescribedBy}\n type='color'\n value={`#${value}`}\n onChange={(event) => props.onChange(event.currentTarget.value.replace('#', ''))}\n aria-invalid={props.invalid || undefined}\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n className={['cratis-color-field__input', props.pt?.input?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='input'\n />\n <output\n {...props.pt?.value}\n className={['cratis-color-field__value', props.pt?.value?.className]\n .filter(Boolean)\n .join(' ')}\n data-cratis-part='value'\n data-invalid={props.invalid || undefined}\n >\n #{value}\n </output>\n {accessibility.hiddenError}\n </div>\n );\n },\n { defaultValue: '' },\n);\n"],"names":["_jsxs","_jsx"],"mappings":";;;;AAoCA,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,QAAgB,KACjD,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,QAAQ;MAGtC,gBAAgB,GAAG,kBAAkB,CAC9C,CAAC,KAAK,KAAI;AACN,IAAA,MAAM,aAAa,GAAG,qBAAqB,CAAC,KAAK,EAAE;AAC/C,QAAA,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;QACvB,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,YAAY,CAAC;QAC1C,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,kBAAkB,CAAC;AACzD,KAAA,CAAC;AACF,IAAA,MAAM,KAAK,GAAG,YAAY,CACtB,KAAK,CAAC,KAAK,EACX,YAAY,CAAC,KAAK,CAAC,YAAY,IAAI,QAAQ,EAAE,QAAQ,CAAC,CACzD;IACD,QACIA,iBACQ,KAAK,CAAC,E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KAAK,CAAC,EAAE,EAAE,KAAK,EACnB,SAAS,EAAE,CAAC,2BAA2B,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS;qBAC9D,MAAM,CAAC,OAAO;qBACd,IAAI,CAAC,GAAG,CAAC,EAAA,kBAAA,EACG,OAAO,EAAA,cAAA,EACV,KAAK,CAAC,OAAO,IAAI,SAAS,EAAA,QAAA,EAAA,CAAA,GAAA,EAEtC,KAAK,IACF,EACR,aAAa,CAAC,WAAW,CAAA,EAAA,CACxB;AAEd,CAAC,EACD,EAAE,YAAY,EAAE,EAAE,EAAE;;"}
@@ -46,3 +46,4 @@ interface DropdownFieldComponentProps extends WrappedFieldProps<string | number>
46
46
  */
47
47
  export declare const DropdownField: (<TCommand = unknown>(props: import("@cratis/arc.react/commands").CommandFormFieldComponentProps<DropdownFieldComponentProps, TCommand>) => React.ReactElement) & import("@cratis/arc.react/commands").CommandFormMarked;
48
48
  export {};
49
+ //# sourceMappingURL=DropdownField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/DropdownField.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,4BAAyB,CAAC;AACvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,yBAAsB,CAAC;AAE9B;;GAEG;AACH,UAAU,2BACN,SAAQ,iBAAiB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,uBAAuB;IACnE,gEAAgE;IAChE,OAAO,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;IAE3C,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;IAEpB,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAC;IAEpB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,2EAA2E;IAC3E,EAAE,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,0NAsCzB,CAAC"}