@cratis/scene.primereact 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/dist/cjs/button/PrimeButton.js.map +1 -1
  2. package/dist/cjs/button/PrimeButtonGroup.js.map +1 -1
  3. package/dist/cjs/button/PrimeSpeedDial.js.map +1 -1
  4. package/dist/cjs/button/PrimeSplitButton.js.map +1 -1
  5. package/dist/cjs/button/SplitButton.js.map +1 -1
  6. package/dist/cjs/data/Column.js.map +1 -1
  7. package/dist/cjs/data/Pagination.js.map +1 -1
  8. package/dist/cjs/data/PrimeColumn.js.map +1 -1
  9. package/dist/cjs/data/PrimeDataTable.js.map +1 -1
  10. package/dist/cjs/data/PrimeDataView.js.map +1 -1
  11. package/dist/cjs/data/PrimeOrderList.js.map +1 -1
  12. package/dist/cjs/data/PrimeOrganizationChart.js.map +1 -1
  13. package/dist/cjs/data/PrimePaginator.js.map +1 -1
  14. package/dist/cjs/data/PrimePickList.js.map +1 -1
  15. package/dist/cjs/data/PrimeTimeline.js.map +1 -1
  16. package/dist/cjs/data/PrimeTree.js.map +1 -1
  17. package/dist/cjs/data/columnDefinitions.js.map +1 -1
  18. package/dist/cjs/data/primeTreeNodes.js.map +1 -1
  19. package/dist/cjs/data/selectOptions.js.map +1 -1
  20. package/dist/cjs/form/PrimeAutoComplete.js.map +1 -1
  21. package/dist/cjs/form/PrimeCalendar.js.map +1 -1
  22. package/dist/cjs/form/PrimeCheckbox.js.map +1 -1
  23. package/dist/cjs/form/PrimeChips.js.map +1 -1
  24. package/dist/cjs/form/PrimeColorPicker.js.map +1 -1
  25. package/dist/cjs/form/PrimeDropdown.js.map +1 -1
  26. package/dist/cjs/form/PrimeFloatLabel.js.map +1 -1
  27. package/dist/cjs/form/PrimeIconField.js.map +1 -1
  28. package/dist/cjs/form/PrimeInputNumber.js.map +1 -1
  29. package/dist/cjs/form/PrimeInputText.js.map +1 -1
  30. package/dist/cjs/form/PrimeInputTextarea.js.map +1 -1
  31. package/dist/cjs/form/PrimeKnob.js.map +1 -1
  32. package/dist/cjs/form/PrimeListBox.js.map +1 -1
  33. package/dist/cjs/form/PrimeMultiSelect.js.map +1 -1
  34. package/dist/cjs/form/PrimePassword.js.map +1 -1
  35. package/dist/cjs/form/PrimeRadioButton.js.map +1 -1
  36. package/dist/cjs/form/PrimeRating.js.map +1 -1
  37. package/dist/cjs/form/PrimeSelectButton.js.map +1 -1
  38. package/dist/cjs/form/PrimeSlider.js.map +1 -1
  39. package/dist/cjs/form/PrimeToggleSwitch.js.map +1 -1
  40. package/dist/cjs/form/PrimeTreeSelect.js.map +1 -1
  41. package/dist/cjs/form/TreeSelect.js.map +1 -1
  42. package/dist/cjs/media/Image.js.map +1 -1
  43. package/dist/cjs/media/PrimeCarousel.js.map +1 -1
  44. package/dist/cjs/media/PrimeGalleria.js.map +1 -1
  45. package/dist/cjs/media/PrimeImage.js.map +1 -1
  46. package/dist/cjs/menu/Dock.js.map +1 -1
  47. package/dist/cjs/menu/DockPosition.js.map +1 -1
  48. package/dist/cjs/menu/MegaMenu.js.map +1 -1
  49. package/dist/cjs/menu/MenuItemAction.js.map +1 -1
  50. package/dist/cjs/menu/MenuItemContent.js.map +1 -1
  51. package/dist/cjs/menu/Menubar.js.map +1 -1
  52. package/dist/cjs/menu/PanelMenu.js.map +1 -1
  53. package/dist/cjs/menu/PrimeBreadcrumb.js.map +1 -1
  54. package/dist/cjs/menu/PrimeContextMenu.js.map +1 -1
  55. package/dist/cjs/menu/PrimeDock.js.map +1 -1
  56. package/dist/cjs/menu/PrimeMegaMenu.js.map +1 -1
  57. package/dist/cjs/menu/PrimeMenu.js.map +1 -1
  58. package/dist/cjs/menu/PrimeMenubar.js.map +1 -1
  59. package/dist/cjs/menu/PrimePanelMenu.js.map +1 -1
  60. package/dist/cjs/menu/PrimeSteps.js.map +1 -1
  61. package/dist/cjs/menu/PrimeTabMenu.js.map +1 -1
  62. package/dist/cjs/menu/PrimeTieredMenu.js.map +1 -1
  63. package/dist/cjs/menu/Steps.js.map +1 -1
  64. package/dist/cjs/menu/TabMenu.js.map +1 -1
  65. package/dist/cjs/menu/TieredMenu.js.map +1 -1
  66. package/dist/cjs/menuItems.js.map +1 -1
  67. package/dist/cjs/messages/PrimeInlineMessage.js.map +1 -1
  68. package/dist/cjs/messages/PrimeMessage.js.map +1 -1
  69. package/dist/cjs/messages/PrimeToast.js.map +1 -1
  70. package/dist/cjs/misc/BlockUI.js.map +1 -1
  71. package/dist/cjs/misc/PrimeAvatar.js.map +1 -1
  72. package/dist/cjs/misc/PrimeBadge.js.map +1 -1
  73. package/dist/cjs/misc/PrimeBlockUI.js.map +1 -1
  74. package/dist/cjs/misc/PrimeChip.js.map +1 -1
  75. package/dist/cjs/misc/PrimeInplace.js.map +1 -1
  76. package/dist/cjs/misc/PrimeProgressBar.js.map +1 -1
  77. package/dist/cjs/misc/PrimeProgressSpinner.js.map +1 -1
  78. package/dist/cjs/misc/PrimeScrollTop.js.map +1 -1
  79. package/dist/cjs/misc/PrimeSkeleton.js.map +1 -1
  80. package/dist/cjs/misc/PrimeTag.js.map +1 -1
  81. package/dist/cjs/misc/PrimeTerminal.js.map +1 -1
  82. package/dist/cjs/misc/ScrollTop.js.map +1 -1
  83. package/dist/cjs/overlay/ConfirmDialog.js.map +1 -1
  84. package/dist/cjs/overlay/PrimeConfirmDialog.js.map +1 -1
  85. package/dist/cjs/overlay/PrimeDialog.js.map +1 -1
  86. package/dist/cjs/overlay/PrimeOverlayPanel.js.map +1 -1
  87. package/dist/cjs/overlay/PrimeSidebar.js.map +1 -1
  88. package/dist/cjs/overlay/PrimeTooltip.js.map +1 -1
  89. package/dist/cjs/panel/PrimeAccordion.js.map +1 -1
  90. package/dist/cjs/panel/PrimeCard.js.map +1 -1
  91. package/dist/cjs/panel/PrimeDivider.js.map +1 -1
  92. package/dist/cjs/panel/PrimeFieldset.js.map +1 -1
  93. package/dist/cjs/panel/PrimePanel.js.map +1 -1
  94. package/dist/cjs/panel/PrimeScrollPanel.js.map +1 -1
  95. package/dist/cjs/panel/PrimeSplitter.js.map +1 -1
  96. package/dist/cjs/panel/PrimeStepper.js.map +1 -1
  97. package/dist/cjs/panel/PrimeTabView.js.map +1 -1
  98. package/dist/cjs/panel/PrimeToolbar.js.map +1 -1
  99. package/dist/cjs/primeReactComponents.js.map +1 -1
  100. package/dist/cjs/primeReactPackage.js.map +1 -1
  101. package/dist/cjs/properties.js.map +1 -1
  102. package/dist/cjs/screen/PrimeAction.js.map +1 -1
  103. package/dist/cjs/screen/PrimeField.js.map +1 -1
  104. package/dist/cjs/screen/PrimeSection.js.map +1 -1
  105. package/dist/cjs/screen/PrimeSummary.js.map +1 -1
  106. package/dist/cjs/screen/PrimeText.js.map +1 -1
  107. package/dist/cjs/screen/PrimeTitle.js.map +1 -1
  108. package/dist/cjs/theme/PrimeReactThemeFamily.js.map +1 -1
  109. package/dist/cjs/theme/primeReactThemePreset.js.map +1 -1
  110. package/dist/cjs/theme/primeReactThemes.js.map +1 -1
  111. package/dist/cjs/theme/themePresets.js.map +1 -1
  112. package/dist/cjs/theme/usePrimeReactTheme.js.map +1 -1
  113. package/dist/cjs/treeNodes.js.map +1 -1
  114. package/dist/esm/button/PrimeButton.js.map +1 -1
  115. package/dist/esm/button/PrimeButtonGroup.js.map +1 -1
  116. package/dist/esm/button/PrimeSpeedDial.js.map +1 -1
  117. package/dist/esm/button/PrimeSplitButton.js.map +1 -1
  118. package/dist/esm/button/SplitButton.js.map +1 -1
  119. package/dist/esm/data/Column.js.map +1 -1
  120. package/dist/esm/data/Pagination.js.map +1 -1
  121. package/dist/esm/data/PrimeColumn.js.map +1 -1
  122. package/dist/esm/data/PrimeDataTable.js.map +1 -1
  123. package/dist/esm/data/PrimeDataView.js.map +1 -1
  124. package/dist/esm/data/PrimeOrderList.js.map +1 -1
  125. package/dist/esm/data/PrimeOrganizationChart.js.map +1 -1
  126. package/dist/esm/data/PrimePaginator.js.map +1 -1
  127. package/dist/esm/data/PrimePickList.js.map +1 -1
  128. package/dist/esm/data/PrimeTimeline.js.map +1 -1
  129. package/dist/esm/data/PrimeTree.js.map +1 -1
  130. package/dist/esm/data/columnDefinitions.js.map +1 -1
  131. package/dist/esm/data/primeTreeNodes.js.map +1 -1
  132. package/dist/esm/data/selectOptions.js.map +1 -1
  133. package/dist/esm/form/PrimeAutoComplete.js.map +1 -1
  134. package/dist/esm/form/PrimeCalendar.js.map +1 -1
  135. package/dist/esm/form/PrimeCheckbox.js.map +1 -1
  136. package/dist/esm/form/PrimeChips.js.map +1 -1
  137. package/dist/esm/form/PrimeColorPicker.js.map +1 -1
  138. package/dist/esm/form/PrimeDropdown.js.map +1 -1
  139. package/dist/esm/form/PrimeFloatLabel.js.map +1 -1
  140. package/dist/esm/form/PrimeIconField.js.map +1 -1
  141. package/dist/esm/form/PrimeInputNumber.js.map +1 -1
  142. package/dist/esm/form/PrimeInputText.js.map +1 -1
  143. package/dist/esm/form/PrimeInputTextarea.js.map +1 -1
  144. package/dist/esm/form/PrimeKnob.js.map +1 -1
  145. package/dist/esm/form/PrimeListBox.js.map +1 -1
  146. package/dist/esm/form/PrimeMultiSelect.js.map +1 -1
  147. package/dist/esm/form/PrimePassword.js.map +1 -1
  148. package/dist/esm/form/PrimeRadioButton.js.map +1 -1
  149. package/dist/esm/form/PrimeRating.js.map +1 -1
  150. package/dist/esm/form/PrimeSelectButton.js.map +1 -1
  151. package/dist/esm/form/PrimeSlider.js.map +1 -1
  152. package/dist/esm/form/PrimeToggleSwitch.js.map +1 -1
  153. package/dist/esm/form/PrimeTreeSelect.js.map +1 -1
  154. package/dist/esm/form/TreeSelect.js.map +1 -1
  155. package/dist/esm/media/Image.js.map +1 -1
  156. package/dist/esm/media/PrimeCarousel.js.map +1 -1
  157. package/dist/esm/media/PrimeGalleria.js.map +1 -1
  158. package/dist/esm/media/PrimeImage.js.map +1 -1
  159. package/dist/esm/menu/Dock.js.map +1 -1
  160. package/dist/esm/menu/DockPosition.js.map +1 -1
  161. package/dist/esm/menu/MegaMenu.js.map +1 -1
  162. package/dist/esm/menu/MenuItemAction.js.map +1 -1
  163. package/dist/esm/menu/MenuItemContent.js.map +1 -1
  164. package/dist/esm/menu/Menubar.js.map +1 -1
  165. package/dist/esm/menu/PanelMenu.js.map +1 -1
  166. package/dist/esm/menu/PrimeBreadcrumb.js.map +1 -1
  167. package/dist/esm/menu/PrimeContextMenu.js.map +1 -1
  168. package/dist/esm/menu/PrimeDock.js.map +1 -1
  169. package/dist/esm/menu/PrimeMegaMenu.js.map +1 -1
  170. package/dist/esm/menu/PrimeMenu.js.map +1 -1
  171. package/dist/esm/menu/PrimeMenubar.js.map +1 -1
  172. package/dist/esm/menu/PrimePanelMenu.js.map +1 -1
  173. package/dist/esm/menu/PrimeSteps.js.map +1 -1
  174. package/dist/esm/menu/PrimeTabMenu.js.map +1 -1
  175. package/dist/esm/menu/PrimeTieredMenu.js.map +1 -1
  176. package/dist/esm/menu/Steps.js.map +1 -1
  177. package/dist/esm/menu/TabMenu.js.map +1 -1
  178. package/dist/esm/menu/TieredMenu.js.map +1 -1
  179. package/dist/esm/menuItems.js.map +1 -1
  180. package/dist/esm/messages/PrimeInlineMessage.js.map +1 -1
  181. package/dist/esm/messages/PrimeMessage.js.map +1 -1
  182. package/dist/esm/messages/PrimeToast.js.map +1 -1
  183. package/dist/esm/misc/BlockUI.js.map +1 -1
  184. package/dist/esm/misc/PrimeAvatar.js.map +1 -1
  185. package/dist/esm/misc/PrimeBadge.js.map +1 -1
  186. package/dist/esm/misc/PrimeBlockUI.js.map +1 -1
  187. package/dist/esm/misc/PrimeChip.js.map +1 -1
  188. package/dist/esm/misc/PrimeInplace.js.map +1 -1
  189. package/dist/esm/misc/PrimeProgressBar.js.map +1 -1
  190. package/dist/esm/misc/PrimeProgressSpinner.js.map +1 -1
  191. package/dist/esm/misc/PrimeScrollTop.js.map +1 -1
  192. package/dist/esm/misc/PrimeSkeleton.js.map +1 -1
  193. package/dist/esm/misc/PrimeTag.js.map +1 -1
  194. package/dist/esm/misc/PrimeTerminal.js.map +1 -1
  195. package/dist/esm/misc/ScrollTop.js.map +1 -1
  196. package/dist/esm/overlay/ConfirmDialog.js.map +1 -1
  197. package/dist/esm/overlay/PrimeConfirmDialog.js.map +1 -1
  198. package/dist/esm/overlay/PrimeDialog.js.map +1 -1
  199. package/dist/esm/overlay/PrimeOverlayPanel.js.map +1 -1
  200. package/dist/esm/overlay/PrimeSidebar.js.map +1 -1
  201. package/dist/esm/overlay/PrimeTooltip.js.map +1 -1
  202. package/dist/esm/panel/PrimeAccordion.js.map +1 -1
  203. package/dist/esm/panel/PrimeCard.js.map +1 -1
  204. package/dist/esm/panel/PrimeDivider.js.map +1 -1
  205. package/dist/esm/panel/PrimeFieldset.js.map +1 -1
  206. package/dist/esm/panel/PrimePanel.js.map +1 -1
  207. package/dist/esm/panel/PrimeScrollPanel.js.map +1 -1
  208. package/dist/esm/panel/PrimeSplitter.js.map +1 -1
  209. package/dist/esm/panel/PrimeStepper.js.map +1 -1
  210. package/dist/esm/panel/PrimeTabView.js.map +1 -1
  211. package/dist/esm/panel/PrimeToolbar.js.map +1 -1
  212. package/dist/esm/primeReactComponents.js.map +1 -1
  213. package/dist/esm/primeReactPackage.js.map +1 -1
  214. package/dist/esm/properties.js.map +1 -1
  215. package/dist/esm/screen/PrimeAction.js.map +1 -1
  216. package/dist/esm/screen/PrimeField.js.map +1 -1
  217. package/dist/esm/screen/PrimeSection.js.map +1 -1
  218. package/dist/esm/screen/PrimeSummary.js.map +1 -1
  219. package/dist/esm/screen/PrimeText.js.map +1 -1
  220. package/dist/esm/screen/PrimeTitle.js.map +1 -1
  221. package/dist/esm/theme/PrimeReactThemeFamily.js.map +1 -1
  222. package/dist/esm/theme/primeReactThemePreset.js.map +1 -1
  223. package/dist/esm/theme/primeReactThemes.js.map +1 -1
  224. package/dist/esm/theme/themePresets.js.map +1 -1
  225. package/dist/esm/theme/usePrimeReactTheme.js.map +1 -1
  226. package/dist/esm/treeNodes.js.map +1 -1
  227. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  228. package/package.json +14 -14
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeSkeleton.js","sources":["../../../misc/PrimeSkeleton.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 { Skeleton } from 'primereact/skeleton';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:skeleton` component - the shape of content that has not arrived yet.\n *\n * One of the few components PrimeReact 11 left whole, and the props survived with it. The defaults are\n * repeated here rather than left to the component because a skeleton is only ever authored for a specific\n * gap in a layout, and a full-width one-line bar is the gap a screen most often has.\n */\nexport function PrimeSkeleton({ element }: RegisteredComponentProps) {\n return (\n <Skeleton\n data-scene-id={element.id}\n shape={stringProperty(element, 'shape', 'rectangle') as 'rectangle' | 'circle'}\n width={stringProperty(element, 'width', '100%')}\n height={stringProperty(element, 'height', '1rem')}\n />\n );\n}\n"],"names":["PrimeSkeleton","element","_jsx","Skeleton","data-scene-id","id","shape","stringProperty","width","height"],"mappings":";;;;AAOA;;;;;;AAMC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAA4B,EAAA;AAC/D,IAAA,qBACIC,GAAA,CAACC,QAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeH,QAAQI,EAAE;QACzBC,KAAAA,EAAOC,cAAAA,CAAeN,SAAS,OAAA,EAAS,WAAA,CAAA;QACxCO,KAAAA,EAAOD,cAAAA,CAAeN,SAAS,OAAA,EAAS,MAAA,CAAA;QACxCQ,MAAAA,EAAQF,cAAAA,CAAeN,SAAS,QAAA,EAAU,MAAA;;AAGtD;;;;"}
1
+ {"version":3,"file":"PrimeSkeleton.js","sources":["../../../misc/PrimeSkeleton.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 { Skeleton } from 'primereact/skeleton';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:skeleton` component - the shape of content that has not arrived yet.\n *\n * One of the few components PrimeReact 11 left whole, and the props survived with it. The defaults are\n * repeated here rather than left to the component because a skeleton is only ever authored for a specific\n * gap in a layout, and a full-width one-line bar is the gap a screen most often has.\n */\nexport function PrimeSkeleton({ element }: RegisteredComponentProps) {\n return (\n <Skeleton\n data-scene-id={element.id}\n shape={stringProperty(element, 'shape', 'rectangle') as 'rectangle' | 'circle'}\n width={stringProperty(element, 'width', '100%')}\n height={stringProperty(element, 'height', '1rem')}\n />\n );\n}\n"],"names":["PrimeSkeleton","element","_jsx","Skeleton","data-scene-id","id","shape","stringProperty","width","height"],"mappings":";;;;AAOA;;;;;;AAMC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAA4B,EAAA;AAC/D,IAAA,qBACIC,GAAA,CAACC,QAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeH,QAAQI,EAAE;QACzBC,KAAAA,EAAOC,cAAAA,CAAeN,SAAS,OAAA,EAAS,WAAA,CAAA;QACxCO,KAAAA,EAAOD,cAAAA,CAAeN,SAAS,OAAA,EAAS,MAAA,CAAA;QACxCQ,MAAAA,EAAQF,cAAAA,CAAeN,SAAS,QAAA,EAAU,MAAA;;AAGtD;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeTag.js","sources":["../../../misc/PrimeTag.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 { Tag } from 'primereact/tag';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport {booleanProperty, severityProperty, stringProperty} from '../properties';\n\n/**\n * The `PrimeReact:tag` component - a colored status label, the read-only counterpart to a chip.\n *\n * PrimeReact 11 dropped the `value` and `icon` props; a tag renders its children now. The icon is marked\n * decorative because the value beside it already carries the meaning - a screen reader announcing\n * \"check-circle Published\" would be reading the styling out loud.\n *\n * The v10 severity `warning` is translated to v11's `warn` rather than passed through, so a screen\n * authored against the old vocabulary keeps its color instead of quietly rendering in the default one.\n */\nexport function PrimeTag({ element }: RegisteredComponentProps) {\n const icon = stringProperty(element, 'icon');\n // Tag and Badge are the two components PrimeReact 11 gives no `help` variant, so an authored\n // `help` degrades to the default styling rather than failing to compile.\n const severity = severityProperty(element, 'severity');\n return (\n <Tag\n data-scene-id={element.id}\n severity={severity === 'help' ? undefined : severity}\n rounded={booleanProperty(element, 'rounded', false)}>\n {icon !== undefined && <i className={icon} aria-hidden='true' />}\n {stringProperty(element, 'value', '')}\n </Tag>\n );\n}\n"],"names":["PrimeTag","element","icon","stringProperty","severity","severityProperty","_jsxs","Tag","data-scene-id","id","undefined","rounded","booleanProperty","_jsx","i","className","aria-hidden"],"mappings":";;;;AAOA;;;;;;;;;AASC,IACM,SAASA,QAAAA,CAAS,EAAEC,OAAO,EAA4B,EAAA;IAC1D,MAAMC,IAAAA,GAAOC,eAAeF,OAAAA,EAAS,MAAA,CAAA;;;IAGrC,MAAMG,QAAAA,GAAWC,iBAAiBJ,OAAAA,EAAS,UAAA,CAAA;AAC3C,IAAA,qBACIK,IAAA,CAACC,GAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QACzBL,QAAAA,EAAUA,QAAAA,KAAa,SAASM,SAAAA,GAAYN,QAAAA;QAC5CO,OAAAA,EAASC,eAAAA,CAAgBX,SAAS,SAAA,EAAW,KAAA,CAAA;;AAC5CC,YAAAA,IAAAA,KAASQ,2BAAaG,GAAA,CAACC,GAAAA,EAAAA;gBAAEC,SAAAA,EAAWb,IAAAA;gBAAMc,aAAAA,EAAY;;AACtDb,YAAAA,cAAAA,CAAeF,SAAS,OAAA,EAAS,EAAA;;;AAG9C;;;;"}
1
+ {"version":3,"file":"PrimeTag.js","sources":["../../../misc/PrimeTag.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 { Tag } from 'primereact/tag';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport {booleanProperty, severityProperty, stringProperty} from '../properties';\n\n/**\n * The `PrimeReact:tag` component - a colored status label, the read-only counterpart to a chip.\n *\n * PrimeReact 11 dropped the `value` and `icon` props; a tag renders its children now. The icon is marked\n * decorative because the value beside it already carries the meaning - a screen reader announcing\n * \"check-circle Published\" would be reading the styling out loud.\n *\n * The v10 severity `warning` is translated to v11's `warn` rather than passed through, so a screen\n * authored against the old vocabulary keeps its color instead of quietly rendering in the default one.\n */\nexport function PrimeTag({ element }: RegisteredComponentProps) {\n const icon = stringProperty(element, 'icon');\n // Tag and Badge are the two components PrimeReact 11 gives no `help` variant, so an authored\n // `help` degrades to the default styling rather than failing to compile.\n const severity = severityProperty(element, 'severity');\n return (\n <Tag\n data-scene-id={element.id}\n severity={severity === 'help' ? undefined : severity}\n rounded={booleanProperty(element, 'rounded', false)}>\n {icon !== undefined && <i className={icon} aria-hidden='true' />}\n {stringProperty(element, 'value', '')}\n </Tag>\n );\n}\n"],"names":["PrimeTag","element","icon","stringProperty","severity","severityProperty","_jsxs","Tag","data-scene-id","id","undefined","rounded","booleanProperty","_jsx","i","className","aria-hidden"],"mappings":";;;;AAOA;;;;;;;;;AASC,IACM,SAASA,QAAAA,CAAS,EAAEC,OAAO,EAA4B,EAAA;IAC1D,MAAMC,IAAAA,GAAOC,eAAeF,OAAAA,EAAS,MAAA,CAAA;;;IAGrC,MAAMG,QAAAA,GAAWC,iBAAiBJ,OAAAA,EAAS,UAAA,CAAA;AAC3C,IAAA,qBACIK,IAAA,CAACC,GAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QACzBL,QAAAA,EAAUA,QAAAA,KAAa,SAASM,SAAAA,GAAYN,QAAAA;QAC5CO,OAAAA,EAASC,eAAAA,CAAgBX,SAAS,SAAA,EAAW,KAAA,CAAA;;AAC5CC,YAAAA,IAAAA,KAASQ,2BAAaG,GAAA,CAACC,GAAAA,EAAAA;gBAAEC,SAAAA,EAAWb,IAAAA;gBAAMc,aAAAA,EAAY;;AACtDb,YAAAA,cAAAA,CAAeF,SAAS,OAAA,EAAS,EAAA;;;AAG9C;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeTerminal.js","sources":["../../../misc/PrimeTerminal.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 { Terminal } from 'primereact/terminal';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:terminal` component - a command-line surface.\n *\n * Terminal accepts input and waits for something to answer. Nothing in this package answers, because\n * responding to a command is application behavior and a Scene element cannot express it. The component\n * therefore echoes what is typed and prints nothing back until the hosting application supplies an\n * answer - which is the honest shape of a terminal with no backend, not a broken one.\n *\n * PrimeReact 11 changed how that answer arrives: v10 published commands on a global `TerminalService`\n * that any listener could subscribe to, and v11 takes an `onCommand` callback on the component instead.\n * That is a real improvement for an application - the wiring is local and typed rather than a global\n * channel keyed by nothing - but it is also why the gap cannot be closed here: a callback has to come from\n * whoever mounts the screen, and the adapter only has the element.\n *\n * `CommandList` and `Prompt` render themselves from the component's own state when given no children, so\n * the composition is just naming the three regions a terminal has.\n */\nexport function PrimeTerminal({ element }: RegisteredComponentProps) {\n return (\n <Terminal.Root data-scene-id={element.id} prompt={stringProperty(element, 'prompt', '$')}>\n <Terminal.Welcome>{stringProperty(element, 'welcomeMessage', 'Welcome')}</Terminal.Welcome>\n <Terminal.CommandList />\n <Terminal.Prompt />\n </Terminal.Root>\n );\n}\n"],"names":["PrimeTerminal","element","_jsxs","Terminal","Root","data-scene-id","id","prompt","stringProperty","_jsx","Welcome","CommandList","Prompt"],"mappings":";;;;AAOA;;;;;;;;;;;;;;;;AAgBC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAA4B,EAAA;IAC/D,qBACIC,IAAA,CAACC,SAASC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeJ,QAAQK,EAAE;QAAEC,MAAAA,EAAQC,cAAAA,CAAeP,SAAS,QAAA,EAAU,GAAA,CAAA;;AAChF,0BAAAQ,GAAA,CAACN,SAASO,OAAO,EAAA;AAAEF,gBAAAA,QAAAA,EAAAA,cAAAA,CAAeP,SAAS,gBAAA,EAAkB,SAAA;;AAC7D,0BAAAQ,GAAA,CAACN,SAASQ,WAAW,EAAA,EAAA,CAAA;AACrB,0BAAAF,GAAA,CAACN,SAASS,MAAM,EAAA,EAAA;;;AAG5B;;;;"}
1
+ {"version":3,"file":"PrimeTerminal.js","sources":["../../../misc/PrimeTerminal.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 { Terminal } from 'primereact/terminal';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:terminal` component - a command-line surface.\n *\n * Terminal accepts input and waits for something to answer. Nothing in this package answers, because\n * responding to a command is application behavior and a Scene element cannot express it. The component\n * therefore echoes what is typed and prints nothing back until the hosting application supplies an\n * answer - which is the honest shape of a terminal with no backend, not a broken one.\n *\n * PrimeReact 11 changed how that answer arrives: v10 published commands on a global `TerminalService`\n * that any listener could subscribe to, and v11 takes an `onCommand` callback on the component instead.\n * That is a real improvement for an application - the wiring is local and typed rather than a global\n * channel keyed by nothing - but it is also why the gap cannot be closed here: a callback has to come from\n * whoever mounts the screen, and the adapter only has the element.\n *\n * `CommandList` and `Prompt` render themselves from the component's own state when given no children, so\n * the composition is just naming the three regions a terminal has.\n */\nexport function PrimeTerminal({ element }: RegisteredComponentProps) {\n return (\n <Terminal.Root data-scene-id={element.id} prompt={stringProperty(element, 'prompt', '$')}>\n <Terminal.Welcome>{stringProperty(element, 'welcomeMessage', 'Welcome')}</Terminal.Welcome>\n <Terminal.CommandList />\n <Terminal.Prompt />\n </Terminal.Root>\n );\n}\n"],"names":["PrimeTerminal","element","_jsxs","Terminal","Root","data-scene-id","id","prompt","stringProperty","_jsx","Welcome","CommandList","Prompt"],"mappings":";;;;AAOA;;;;;;;;;;;;;;;;AAgBC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAA4B,EAAA;IAC/D,qBACIC,IAAA,CAACC,SAASC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeJ,QAAQK,EAAE;QAAEC,MAAAA,EAAQC,cAAAA,CAAeP,SAAS,QAAA,EAAU,GAAA,CAAA;;AAChF,0BAAAQ,GAAA,CAACN,SAASO,OAAO,EAAA;AAAEF,gBAAAA,QAAAA,EAAAA,cAAAA,CAAeP,SAAS,gBAAA,EAAkB,SAAA;;AAC7D,0BAAAQ,GAAA,CAACN,SAASQ,WAAW,EAAA,EAAA,CAAA;AACrB,0BAAAF,GAAA,CAACN,SAASS,MAAM,EAAA,EAAA;;;AAG5B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollTop.js","sources":["../../../misc/ScrollTop.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 { HTMLAttributes, RefObject, useEffect, useState } from 'react';\nimport { Button } from 'primereact/button';\n\n/**\n * Configuration for {@link ScrollTop}.\n */\nexport interface ScrollTopProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'children'> {\n /**\n * How far the target has to have scrolled, in pixels, before the button appears. A button that is\n * always there is clutter; one that appears too late is never found.\n */\n threshold?: number;\n\n /**\n * The element to watch and return to the top of. Left out, the button watches the window - which is\n * the right default for a page, and the wrong one for a component embedded in a composed screen,\n * which is why the caller supplies it.\n */\n target?: RefObject<HTMLElement | null>;\n\n /**\n * The icon class to show, so an application using its own icon font is not forced onto `primeicons`.\n */\n icon?: string;\n}\n\n/**\n * A button that appears once its target has been scrolled past a threshold and takes the reader back to\n * the top.\n *\n * Cratis owns this component. PrimeReact 10 had `ScrollTop`; PrimeReact 11 removed it with no replacement\n * and no headless hook, and `scrollTop` is a name this package's manifest publishes, so screens are\n * written against it. The button itself is a PrimeReact `Button` - the piece that survived - so the\n * component still picks up whatever theme the application is running, and only the scroll watching is\n * ours.\n *\n * The listener is registered on the target and removed when the component unmounts or the target changes.\n * That is not incidental tidiness: this button is typically mounted inside a scrolling region that a\n * screen creates and destroys as the reader navigates, and a leaked `scroll` handler on a detached\n * element keeps the whole subtree alive.\n *\n * What it deliberately does not carry over from v10: the enter/leave transition (the button appears and\n * disappears outright), `behavior` as a prop - scrolling is always smooth, since an instant jump to the\n * top is disorienting and the only reason v10 exposed it was browsers that lacked support - and the\n * `pt` / passthrough styling hooks, which have no meaning outside PrimeReact's own component base.\n */\nexport function ScrollTop({ threshold = 400, target, icon = 'pi pi-chevron-up', className, ...rest }: ScrollTopProps) {\n const [visible, setVisible] = useState(false);\n\n useEffect(() => {\n const element = target?.current;\n const source: EventTarget = element ?? window;\n const update = () => setVisible((element ? element.scrollTop : window.scrollY) > threshold);\n\n update();\n source.addEventListener('scroll', update, { passive: true });\n return () => source.removeEventListener('scroll', update);\n }, [target, threshold]);\n\n if (!visible) return null;\n\n const scrollToTop = () => {\n const element = target?.current;\n if (element) element.scrollTo({ top: 0, behavior: 'smooth' });\n else window.scrollTo({ top: 0, behavior: 'smooth' });\n };\n\n return (\n <Button\n aria-label='Scroll to top'\n {...rest}\n rounded\n className={[target === undefined ? 'fixed bottom-6 right-6 z-40' : 'absolute bottom-3 right-3 z-10', className].filter(Boolean).join(' ')}\n onClick={scrollToTop}>\n <i className={icon} aria-hidden='true' />\n </Button>\n );\n}\n"],"names":["ScrollTop","threshold","target","icon","className","rest","visible","setVisible","useState","useEffect","element","current","source","window","update","scrollTop","scrollY","addEventListener","passive","removeEventListener","scrollToTop","scrollTo","top","behavior","_jsx","Button","aria-label","rounded","undefined","filter","Boolean","join","onClick","i","aria-hidden"],"mappings":";;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AW,eAAA;AACV,QAAA,GAAGrB,IAAI;QACRsB,OAAO,EAAA,IAAA;QACPvB,SAAAA,EAAW;AAACF,YAAAA,MAAAA,KAAW0B,YAAY,6BAAA,GAAgC,gCAAA;AAAkCxB,YAAAA;AAAU,SAAA,CAACyB,MAAM,CAACC,OAAAA,CAAAA,CAASC,IAAI,CAAC,GAAA,CAAA;QACrIC,OAAAA,EAASZ,WAAAA;AACT,QAAA,QAAA,gBAAAI,GAAA,CAACS,GAAAA,EAAAA;YAAE7B,SAAAA,EAAWD,IAAAA;YAAM+B,aAAAA,EAAY;;;AAG5C;;;;"}
1
+ {"version":3,"file":"ScrollTop.js","sources":["../../../misc/ScrollTop.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 { HTMLAttributes, RefObject, useEffect, useState } from 'react';\nimport { Button } from 'primereact/button';\n\n/**\n * Configuration for {@link ScrollTop}.\n */\nexport interface ScrollTopProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'children'> {\n /**\n * How far the target has to have scrolled, in pixels, before the button appears. A button that is\n * always there is clutter; one that appears too late is never found.\n */\n threshold?: number;\n\n /**\n * The element to watch and return to the top of. Left out, the button watches the window - which is\n * the right default for a page, and the wrong one for a component embedded in a composed screen,\n * which is why the caller supplies it.\n */\n target?: RefObject<HTMLElement | null>;\n\n /**\n * The icon class to show, so an application using its own icon font is not forced onto `primeicons`.\n */\n icon?: string;\n}\n\n/**\n * A button that appears once its target has been scrolled past a threshold and takes the reader back to\n * the top.\n *\n * Cratis owns this component. PrimeReact 10 had `ScrollTop`; PrimeReact 11 removed it with no replacement\n * and no headless hook, and `scrollTop` is a name this package's manifest publishes, so screens are\n * written against it. The button itself is a PrimeReact `Button` - the piece that survived - so the\n * component still picks up whatever theme the application is running, and only the scroll watching is\n * ours.\n *\n * The listener is registered on the target and removed when the component unmounts or the target changes.\n * That is not incidental tidiness: this button is typically mounted inside a scrolling region that a\n * screen creates and destroys as the reader navigates, and a leaked `scroll` handler on a detached\n * element keeps the whole subtree alive.\n *\n * What it deliberately does not carry over from v10: the enter/leave transition (the button appears and\n * disappears outright), `behavior` as a prop - scrolling is always smooth, since an instant jump to the\n * top is disorienting and the only reason v10 exposed it was browsers that lacked support - and the\n * `pt` / passthrough styling hooks, which have no meaning outside PrimeReact's own component base.\n */\nexport function ScrollTop({ threshold = 400, target, icon = 'pi pi-chevron-up', className, ...rest }: ScrollTopProps) {\n const [visible, setVisible] = useState(false);\n\n useEffect(() => {\n const element = target?.current;\n const source: EventTarget = element ?? window;\n const update = () => setVisible((element ? element.scrollTop : window.scrollY) > threshold);\n\n update();\n source.addEventListener('scroll', update, { passive: true });\n return () => source.removeEventListener('scroll', update);\n }, [target, threshold]);\n\n if (!visible) return null;\n\n const scrollToTop = () => {\n const element = target?.current;\n if (element) element.scrollTo({ top: 0, behavior: 'smooth' });\n else window.scrollTo({ top: 0, behavior: 'smooth' });\n };\n\n return (\n <Button\n aria-label='Scroll to top'\n {...rest}\n rounded\n className={[target === undefined ? 'fixed bottom-6 right-6 z-40' : 'absolute bottom-3 right-3 z-10', className].filter(Boolean).join(' ')}\n onClick={scrollToTop}>\n <i className={icon} aria-hidden='true' />\n </Button>\n );\n}\n"],"names":["ScrollTop","threshold","target","icon","className","rest","visible","setVisible","useState","useEffect","element","current","source","window","update","scrollTop","scrollY","addEventListener","passive","removeEventListener","scrollToTop","scrollTo","top","behavior","_jsx","Button","aria-label","rounded","undefined","filter","Boolean","join","onClick","i","aria-hidden"],"mappings":";;;;AA6BA;;;;;;;;;;;;;;;;;;;AAmBC,IACM,SAASA,SAAAA,CAAU,EAAEC,YAAY,GAAG,EAAEC,MAAM,EAAEC,OAAO,kBAAkB,EAAEC,SAAS,EAAE,GAAGC,IAAAA,EAAsB,EAAA;AAChH,IAAA,MAAM,CAACC,OAAAA,EAASC,UAAAA,CAAW,GAAGC,QAAAA,CAAS,KAAA,CAAA;IAEvCC,SAAAA,CAAU,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,QAAA,gBAAAI,GAAA,CAACS,GAAAA,EAAAA;YAAE7B,SAAAA,EAAWD,IAAAA;YAAM+B,aAAAA,EAAY;;;AAG5C;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmDialog.js","sources":["../../../overlay/ConfirmDialog.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 { ReactNode } from 'react';\nimport { Button } from 'primereact/button';\nimport { Dialog } from 'primereact/dialog';\n\n/**\n * Configuration for {@link ConfirmDialog}.\n */\nexport interface ConfirmDialogProps {\n /**\n * Whether the dialog is showing. The dialog is a controlled overlay - it never hides itself - so the\n * owner keeps this in state and lowers it from {@link ConfirmDialogProps.onHide}.\n */\n visible: boolean;\n\n /**\n * The question being asked. Typed as a node rather than a string so a caller can pose a question that\n * needs emphasis or a name in it, which is exactly the kind of question worth confirming.\n */\n message?: ReactNode;\n\n /**\n * The dialog's title.\n */\n header?: string;\n\n /**\n * A PrimeIcons class shown beside the message. Omitted entirely when absent rather than defaulted,\n * because the icon on a confirmation carries tone - a warning triangle on a harmless question is\n * misleading - and only the caller knows which is right.\n */\n icon?: string;\n\n /**\n * Label for the accepting button.\n */\n acceptLabel?: string;\n\n /**\n * Label for the rejecting button.\n */\n rejectLabel?: string;\n\n /**\n * Called when the user accepts. Always followed by {@link ConfirmDialogProps.onHide}.\n */\n onAccept?: () => void;\n\n /**\n * Called when the user rejects. Always followed by {@link ConfirmDialogProps.onHide}.\n */\n onReject?: () => void;\n\n /**\n * Called whenever the dialog should close - after either answer, and on every dismissal gesture\n * (the close button, `Escape`, a click on the backdrop). Answering and closing are reported\n * separately so a caller can lower `visible` in one place instead of in three.\n */\n onHide?: () => void;\n}\n\n/**\n * A Cratis-owned confirmation dialog - a question, an accepting answer and a rejecting one.\n *\n * This component is owned by Cratis because PrimeReact 11 removed `primereact/confirmdialog` outright.\n * There is no renamed successor to adapt to: what v11 ships instead is the compositional `Dialog` this is\n * built from, on the reasoning that a confirmation is a dialog with a known footer rather than a distinct\n * component. That is a fair reading, but it would otherwise push the same header/message/two-buttons\n * assembly into every caller, so this package assembles it once here and keeps the shape v10 callers\n * already expect.\n *\n * Two v10 capabilities are deliberately **not** carried over:\n *\n * - **The imperative `confirmDialog()` service API.** v10 let any code open a confirmation by calling a\n * module-level function that reached a singleton mounted elsewhere. That needs a caller and a global\n * mount point; this component is rendered and controlled by whoever owns the answer, which is the only\n * form a Scene element - configuration, not a caller - can use anyway.\n * - **`appendTo`.** v10 needed it to escape stacking contexts. v11 renders through `Dialog.Portal` under\n * an overlay manager that handles layering, so the prop existed only to work around a problem that is\n * now gone.\n *\n * @param props - {@link ConfirmDialogProps}.\n */\nexport function ConfirmDialog({ visible, message, header, icon, acceptLabel, rejectLabel, onAccept, onReject, onHide }: ConfirmDialogProps) {\n const accept = () => {\n onAccept?.();\n onHide?.();\n };\n\n const reject = () => {\n onReject?.();\n onHide?.();\n };\n\n return (\n <Dialog.Root\n open={visible}\n modal\n dismissable\n closeOnEscape\n onOpenChange={(event) => {\n if (!event.value) onHide?.();\n }}>\n <Dialog.Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <Dialog.Popup style={{ width: '30rem' }}>\n <Dialog.Header>\n <Dialog.Title>{header}</Dialog.Title>\n <Dialog.Close aria-label='Close'>\n <i className='pi pi-times' />\n </Dialog.Close>\n </Dialog.Header>\n <Dialog.Content>\n <div className='flex items-center gap-3'>\n {icon !== undefined && <i className={icon} />}\n <span>{message}</span>\n </div>\n </Dialog.Content>\n <Dialog.Footer>\n <div className='flex justify-end gap-2'>\n <Button variant='outlined' onClick={reject}>\n {rejectLabel}\n </Button>\n <Button onClick={accept}>{acceptLabel}</Button>\n </div>\n </Dialog.Footer>\n </Dialog.Popup>\n </Dialog.Positioner>\n </Dialog.Portal>\n </Dialog.Root>\n );\n}\n"],"names":["ConfirmDialog","visible","message","header","icon","acceptLabel","rejectLabel","onAccept","onReject","onHide","accept","reject","_jsx","Dialog","Root","open","modal","dismissable","closeOnEscape","onOpenChange","event","value","_jsxs","Portal","Backdrop","Positioner","Popup","style","width","Header","Title","Close","aria-label","i","className","Content","div","undefined","span","Footer","Button","variant","onClick"],"mappings":";;;;AAAA;AACA;AA8DA;;;;;;;;;;;;;;;;;;;;;IAsBO,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,OAAO,EAAEC,MAAM,EAAEC,IAAI,EAAEC,WAAW,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,MAAM,EAAsB,EAAA;AACtI,IAAA,MAAMC,MAAAA,GAAS,IAAA;AACXH,QAAAA,QAAAA,IAAAA;AACAE,QAAAA,MAAAA,IAAAA;AACJ,IAAA,CAAA;AAEA,IAAA,MAAME,MAAAA,GAAS,IAAA;AACXH,QAAAA,QAAAA,IAAAA;AACAC,QAAAA,MAAAA,IAAAA;AACJ,IAAA,CAAA;IAEA,qBACIG,GAAA,CAACC,OAAOC,IAAI,EAAA;QACRC,IAAAA,EAAMd,OAAAA;QACNe,KAAK,EAAA,IAAA;QACLC,WAAW,EAAA,IAAA;QACXC,aAAa,EAAA,IAAA;AACbC,QAAAA,YAAAA,EAAc,CAACC,KAAAA,GAAAA;YACX,IAAI,CAACA,KAAAA,CAAMC,KAAK,EAAEZ,MAAAA,IAAAA;AACtB,QAAA,CAAA;gCACAa,IAAA,CAACT,OAAOU,MAAM,EAAA;;AACV,8BAAAX,GAAA,CAACC,OAAOW,QAAQ,EAAA,EAAA,CAAA;AAChB,8BAAAZ,GAAA,CAACC,OAAOY,UAAU,EAAA;4CACdH,IAAA,CAACT,OAAOa,KAAK,EAAA;wBAACC,KAAAA,EAAO;4BAAEC,KAAAA,EAAO;AAAQ,yBAAA;;AAClC,0CAAAN,IAAA,CAACT,OAAOgB,MAAM,EAAA;;AACV,kDAAAjB,GAAA,CAACC,OAAOiB,KAAK,EAAA;AAAE3B,wCAAAA,QAAAA,EAAAA;;AACf,kDAAAS,GAAA,CAACC,OAAOkB,KAAK,EAAA;wCAACC,YAAAA,EAAW,OAAA;AACrB,wCAAA,QAAA,gBAAApB,GAAA,CAACqB,GAAAA,EAAAA;4CAAEC,SAAAA,EAAU;;;;;AAGrB,0CAAAtB,GAAA,CAACC,OAAOsB,OAAO,EAAA;AACX,gCAAA,QAAA,gBAAAb,IAAA,CAACc,KAAAA,EAAAA;oCAAIF,SAAAA,EAAU,yBAAA;;AACV9B,wCAAAA,IAAAA,KAASiC,2BAAazB,GAAA,CAACqB,GAAAA,EAAAA;4CAAEC,SAAAA,EAAW9B;;sDACrCQ,GAAA,CAAC0B,MAAAA,EAAAA;AAAMpC,4CAAAA,QAAAA,EAAAA;;;;;AAGf,0CAAAU,GAAA,CAACC,OAAO0B,MAAM,EAAA;AACV,gCAAA,QAAA,gBAAAjB,IAAA,CAACc,KAAAA,EAAAA;oCAAIF,SAAAA,EAAU,wBAAA;;sDACXtB,GAAA,CAAC4B,MAAAA,EAAAA;4CAAOC,OAAAA,EAAQ,UAAA;4CAAWC,OAAAA,EAAS/B,MAAAA;AAC/BL,4CAAAA,QAAAA,EAAAA;;sDAELM,GAAA,CAAC4B,MAAAA,EAAAA;4CAAOE,OAAAA,EAAShC,MAAAA;AAASL,4CAAAA,QAAAA,EAAAA;;;;;;;;;;;AAQ1D;;;;"}
1
+ {"version":3,"file":"ConfirmDialog.js","sources":["../../../overlay/ConfirmDialog.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 { ReactNode } from 'react';\nimport { Button } from 'primereact/button';\nimport { Dialog } from 'primereact/dialog';\n\n/**\n * Configuration for {@link ConfirmDialog}.\n */\nexport interface ConfirmDialogProps {\n /**\n * Whether the dialog is showing. The dialog is a controlled overlay - it never hides itself - so the\n * owner keeps this in state and lowers it from {@link ConfirmDialogProps.onHide}.\n */\n visible: boolean;\n\n /**\n * The question being asked. Typed as a node rather than a string so a caller can pose a question that\n * needs emphasis or a name in it, which is exactly the kind of question worth confirming.\n */\n message?: ReactNode;\n\n /**\n * The dialog's title.\n */\n header?: string;\n\n /**\n * A PrimeIcons class shown beside the message. Omitted entirely when absent rather than defaulted,\n * because the icon on a confirmation carries tone - a warning triangle on a harmless question is\n * misleading - and only the caller knows which is right.\n */\n icon?: string;\n\n /**\n * Label for the accepting button.\n */\n acceptLabel?: string;\n\n /**\n * Label for the rejecting button.\n */\n rejectLabel?: string;\n\n /**\n * Called when the user accepts. Always followed by {@link ConfirmDialogProps.onHide}.\n */\n onAccept?: () => void;\n\n /**\n * Called when the user rejects. Always followed by {@link ConfirmDialogProps.onHide}.\n */\n onReject?: () => void;\n\n /**\n * Called whenever the dialog should close - after either answer, and on every dismissal gesture\n * (the close button, `Escape`, a click on the backdrop). Answering and closing are reported\n * separately so a caller can lower `visible` in one place instead of in three.\n */\n onHide?: () => void;\n}\n\n/**\n * A Cratis-owned confirmation dialog - a question, an accepting answer and a rejecting one.\n *\n * This component is owned by Cratis because PrimeReact 11 removed `primereact/confirmdialog` outright.\n * There is no renamed successor to adapt to: what v11 ships instead is the compositional `Dialog` this is\n * built from, on the reasoning that a confirmation is a dialog with a known footer rather than a distinct\n * component. That is a fair reading, but it would otherwise push the same header/message/two-buttons\n * assembly into every caller, so this package assembles it once here and keeps the shape v10 callers\n * already expect.\n *\n * Two v10 capabilities are deliberately **not** carried over:\n *\n * - **The imperative `confirmDialog()` service API.** v10 let any code open a confirmation by calling a\n * module-level function that reached a singleton mounted elsewhere. That needs a caller and a global\n * mount point; this component is rendered and controlled by whoever owns the answer, which is the only\n * form a Scene element - configuration, not a caller - can use anyway.\n * - **`appendTo`.** v10 needed it to escape stacking contexts. v11 renders through `Dialog.Portal` under\n * an overlay manager that handles layering, so the prop existed only to work around a problem that is\n * now gone.\n *\n * @param props - {@link ConfirmDialogProps}.\n */\nexport function ConfirmDialog({ visible, message, header, icon, acceptLabel, rejectLabel, onAccept, onReject, onHide }: ConfirmDialogProps) {\n const accept = () => {\n onAccept?.();\n onHide?.();\n };\n\n const reject = () => {\n onReject?.();\n onHide?.();\n };\n\n return (\n <Dialog.Root\n open={visible}\n modal\n dismissable\n closeOnEscape\n onOpenChange={(event) => {\n if (!event.value) onHide?.();\n }}>\n <Dialog.Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <Dialog.Popup style={{ width: '30rem' }}>\n <Dialog.Header>\n <Dialog.Title>{header}</Dialog.Title>\n <Dialog.Close aria-label='Close'>\n <i className='pi pi-times' />\n </Dialog.Close>\n </Dialog.Header>\n <Dialog.Content>\n <div className='flex items-center gap-3'>\n {icon !== undefined && <i className={icon} />}\n <span>{message}</span>\n </div>\n </Dialog.Content>\n <Dialog.Footer>\n <div className='flex justify-end gap-2'>\n <Button variant='outlined' onClick={reject}>\n {rejectLabel}\n </Button>\n <Button onClick={accept}>{acceptLabel}</Button>\n </div>\n </Dialog.Footer>\n </Dialog.Popup>\n </Dialog.Positioner>\n </Dialog.Portal>\n </Dialog.Root>\n );\n}\n"],"names":["ConfirmDialog","visible","message","header","icon","acceptLabel","rejectLabel","onAccept","onReject","onHide","accept","reject","_jsx","Dialog","Root","open","modal","dismissable","closeOnEscape","onOpenChange","event","value","_jsxs","Portal","Backdrop","Positioner","Popup","style","width","Header","Title","Close","aria-label","i","className","Content","div","undefined","span","Footer","Button","variant","onClick"],"mappings":";;;;AAAA;AACA;AA8DA;;;;;;;;;;;;;;;;;;;;;IAsBO,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,OAAO,EAAEC,MAAM,EAAEC,IAAI,EAAEC,WAAW,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,MAAM,EAAsB,EAAA;AACtI,IAAA,MAAMC,MAAAA,GAAS,IAAA;AACXH,QAAAA,QAAAA,IAAAA;AACAE,QAAAA,MAAAA,IAAAA;AACJ,IAAA,CAAA;AAEA,IAAA,MAAME,MAAAA,GAAS,IAAA;AACXH,QAAAA,QAAAA,IAAAA;AACAC,QAA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IF,SAAAA,EAAU,wBAAA;;sDACXtB,GAAA,CAAC4B,MAAAA,EAAAA;4CAAOC,OAAAA,EAAQ,UAAA;4CAAWC,OAAAA,EAAS/B,MAAAA;AAC/BL,4CAAAA,QAAAA,EAAAA;;sDAELM,GAAA,CAAC4B,MAAAA,EAAAA;4CAAOE,OAAAA,EAAShC,MAAAA;AAASL,4CAAAA,QAAAA,EAAAA;;;;;;;;;;;AAQ1D;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeConfirmDialog.js","sources":["../../../overlay/PrimeConfirmDialog.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\nimport { ConfirmDialog } from './ConfirmDialog';\n\n/**\n * The `PrimeReact:confirmDialog` component - a yes/no question before a consequential action.\n *\n * Adapts {@link ConfirmDialog}, which this package owns because PrimeReact 11 removed\n * `primereact/confirmdialog` and shipped no successor - see that component for what the replacement\n * deliberately leaves behind. The adapter itself is unchanged in spirit from the v10 one: it was already\n * using the declarative form rather than the imperative `confirmDialog()` call, because that call needs a\n * caller and a Scene element is configuration, not a caller. That choice is what made this the one\n * removal in the family that cost nothing at the adapter boundary.\n *\n * Visibility is owned locally for the reason described on {@link PrimeDialog}.\n *\n * A Scene element has nowhere to send an answer - there is no handler to bind to - so accepting and\n * rejecting differ only in closing the dialog. The two callbacks are still wired rather than omitted, so\n * the seam is here the moment Scene grows a way to express an action.\n */\nexport function PrimeConfirmDialog({ element }: RegisteredComponentProps) {\n const [visible, setVisible] = useState(false);\n return (\n <div data-scene-id={element.id}>\n <Button severity={stringProperty(element, 'severity', 'danger')} onClick={() => setVisible(true)}>\n {stringProperty(element, 'triggerLabel', 'Confirm')}\n </Button>\n <ConfirmDialog\n visible={visible}\n onHide={() => setVisible(false)}\n header={stringProperty(element, 'header', 'Are you sure?')}\n message={stringProperty(element, 'message', 'This action cannot be undone.')}\n icon={stringProperty(element, 'icon', 'pi pi-exclamation-triangle')}\n acceptLabel={stringProperty(element, 'acceptLabel', 'Yes')}\n rejectLabel={stringProperty(element, 'rejectLabel', 'No')}\n />\n </div>\n );\n}\n"],"names":["PrimeConfirmDialog","element","visible","setVisible","useState","_jsxs","div","data-scene-id","id","_jsx","Button","severity","stringProperty","onClick","ConfirmDialog","onHide","header","message","icon","acceptLabel","rejectLabel"],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;AAeC,IACM,SAASA,kBAAAA,CAAmB,EAAEC,OAAO,EAA4B,EAAA;AACpE,IAAA,MAAM,CAACC,OAAAA,EAASC,UAAAA,CAAW,GAAGC,QAAAA,CAAS,KAAA,CAAA;AACvC,IAAA,qBACIC,IAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeN,QAAQO,EAAE;;0BAC1BC,GAAA,CAACC,MAAAA,EAAAA;gBAAOC,QAAAA,EAAUC,cAAAA,CAAeX,SAAS,UAAA,EAAY,QAAA,CAAA;AAAWY,gBAAAA,OAAAA,EAAS,IAAMV,UAAAA,CAAW,IAAA,CAAA;AACtFS,gBAAAA,QAAAA,EAAAA,cAAAA,CAAeX,SAAS,cAAA,EAAgB,SAAA;;0BAE7CQ,GAAA,CAACK,aAAAA,EAAAA;gBACGZ,OAAAA,EAASA,OAAAA;AACTa,gBAAAA,MAAAA,EAAQ,IAAMZ,UAAAA,CAAW,KAAA,CAAA;gBACzBa,MAAAA,EAAQJ,cAAAA,CAAeX,SAAS,QAAA,EAAU,eAAA,CAAA;gBAC1CgB,OAAAA,EAASL,cAAAA,CAAeX,SAAS,SAAA,EAAW,+BAAA,CAAA;gBAC5CiB,IAAAA,EAAMN,cAAAA,CAAeX,SAAS,MAAA,EAAQ,4BAAA,CAAA;gBACtCkB,WAAAA,EAAaP,cAAAA,CAAeX,SAAS,aAAA,EAAe,KAAA,CAAA;gBACpDmB,WAAAA,EAAaR,cAAAA,CAAeX,SAAS,aAAA,EAAe,IAAA;;;;AAIpE;;;;"}
1
+ {"version":3,"file":"PrimeConfirmDialog.js","sources":["../../../overlay/PrimeConfirmDialog.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\nimport { ConfirmDialog } from './ConfirmDialog';\n\n/**\n * The `PrimeReact:confirmDialog` component - a yes/no question before a consequential action.\n *\n * Adapts {@link ConfirmDialog}, which this package owns because PrimeReact 11 removed\n * `primereact/confirmdialog` and shipped no successor - see that component for what the replacement\n * deliberately leaves behind. The adapter itself is unchanged in spirit from the v10 one: it was already\n * using the declarative form rather than the imperative `confirmDialog()` call, because that call needs a\n * caller and a Scene element is configuration, not a caller. That choice is what made this the one\n * removal in the family that cost nothing at the adapter boundary.\n *\n * Visibility is owned locally for the reason described on {@link PrimeDialog}.\n *\n * A Scene element has nowhere to send an answer - there is no handler to bind to - so accepting and\n * rejecting differ only in closing the dialog. The two callbacks are still wired rather than omitted, so\n * the seam is here the moment Scene grows a way to express an action.\n */\nexport function PrimeConfirmDialog({ element }: RegisteredComponentProps) {\n const [visible, setVisible] = useState(false);\n return (\n <div data-scene-id={element.id}>\n <Button severity={stringProperty(element, 'severity', 'danger')} onClick={() => setVisible(true)}>\n {stringProperty(element, 'triggerLabel', 'Confirm')}\n </Button>\n <ConfirmDialog\n visible={visible}\n onHide={() => setVisible(false)}\n header={stringProperty(element, 'header', 'Are you sure?')}\n message={stringProperty(element, 'message', 'This action cannot be undone.')}\n icon={stringProperty(element, 'icon', 'pi pi-exclamation-triangle')}\n acceptLabel={stringProperty(element, 'acceptLabel', 'Yes')}\n rejectLabel={stringProperty(element, 'rejectLabel', 'No')}\n />\n </div>\n );\n}\n"],"names":["PrimeConfirmDialog","element","visible","setVisible","useState","_jsxs","div","data-scene-id","id","_jsx","Button","severity","stringProperty","onClick","ConfirmDialog","onHide","header","message","icon","acceptLabel","rejectLabel"],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;AAeC,IACM,SAASA,kBAAAA,CAAmB,EAAEC,OAAO,EAA4B,EAAA;AACpE,IAAA,MAAM,CAACC,OAAAA,EAASC,UAAAA,CAAW,GAAGC,QAAAA,CAAS,KAAA,CAAA;AACvC,IAAA,qBACIC,IAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeN,QAAQO,EAAE;;0BAC1BC,GAAA,CAACC,MAAAA,EAAAA;gBAAOC,QAAAA,EAAUC,cAAAA,CAAeX,SAAS,UAAA,EAAY,QAAA,CAAA;AAAWY,gBAAAA,OAAAA,EAAS,IAAMV,UAAAA,CAAW,IAAA,CAAA;AACtFS,gBAAAA,QAAAA,EAAAA,cAAAA,CAAeX,SAAS,cAAA,EAAgB,SAAA;;0BAE7CQ,GAAA,CAACK,aAAAA,EAAAA;gBACGZ,OAAAA,EAASA,OAAAA;AACTa,gBAAAA,MAAAA,EAAQ,IAAMZ,UAAAA,CAAW,KAAA,CAAA;gBACzBa,MAAAA,EAAQJ,cAAAA,CAAeX,SAAS,QAAA,EAAU,eAAA,CAAA;gBAC1CgB,OAAAA,EAASL,cAAAA,CAAeX,SAAS,SAAA,EAAW,+BAAA,CAAA;gBAC5CiB,IAAAA,EAAMN,cAAAA,CAAeX,SAAS,MAAA,EAAQ,4BAAA,CAAA;gBACtCkB,WAAAA,EAAaP,cAAAA,CAAeX,SAAS,aAAA,EAAe,KAAA,CAAA;gBACpDmB,WAAAA,EAAaR,cAAAA,CAAeX,SAAS,aAAA,EAAe,IAAA;;;;AAIpE;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeDialog.js","sources":["../../../overlay/PrimeDialog.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { Dialog } from 'primereact/dialog';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:dialog` component - a modal window.\n *\n * A dialog is only ever interesting while it is open, and \"the user closed it\" is state a Scene element\n * has no place to record. The adapter therefore owns visibility locally, seeded from the `visible`\n * property, and always renders a trigger button beside it. That keeps a dialog reachable again after it\n * is dismissed - without the trigger, closing a previewed dialog would leave a permanently blank spot on\n * the screen with no way back.\n *\n * PrimeReact 11 made `Dialog` compositional, which turns that local visibility into a two-way\n * arrangement: `open` pushes the state down, and every dismissal gesture - the close button, `Escape`, a\n * click on the backdrop - comes back as `onOpenChange`. Both have to be wired, because a v11 dialog never\n * hides itself; ignoring the callback would leave a dialog that opens once and can never be closed.\n *\n * The parts are assembled here rather than by the component: `Dialog.Portal` and `Dialog.Backdrop` are\n * what make it modal, and `Dialog.Close` is the only reason the header gets an X.\n *\n * **Not available in v11:** the headless dialog has no resize handle, so a dialog cannot be made\n * user-resizable. No Scene property is lost to this - this adapter never exposed one - but `draggable`,\n * which v11 does still support, is the only direct-manipulation affordance left.\n */\nexport function PrimeDialog({ element, slots }: RegisteredComponentProps) {\n const [visible, setVisible] = useState(booleanProperty(element, 'visible', false));\n const header = stringProperty(element, 'header', 'Dialog');\n return (\n <div data-scene-id={element.id}>\n <Button onClick={() => setVisible(true)}>{stringProperty(element, 'triggerLabel', header)}</Button>\n <Dialog.Root\n open={visible}\n modal={booleanProperty(element, 'modal', true)}\n draggable={booleanProperty(element, 'draggable', false)}\n dismissable\n closeOnEscape\n onOpenChange={(event) => {\n if (!event.value) setVisible(false);\n }}>\n <Dialog.Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <Dialog.Popup style={{ width: stringProperty(element, 'width', '32rem') }}>\n <Dialog.Header>\n <Dialog.Title>{header}</Dialog.Title>\n <Dialog.Close aria-label='Close'>\n <i className='pi pi-times' />\n </Dialog.Close>\n </Dialog.Header>\n <Dialog.Content>{slots.content}</Dialog.Content>\n </Dialog.Popup>\n </Dialog.Positioner>\n </Dialog.Portal>\n </Dialog.Root>\n </div>\n );\n}\n"],"names":["PrimeDialog","element","slots","visible","setVisible","useState","booleanProperty","header","stringProperty","_jsxs","div","data-scene-id","id","_jsx","Button","onClick","Dialog","Root","open","modal","draggable","dismissable","closeOnEscape","onOpenChange","event","value","Portal","Backdrop","Positioner","Popup","style","width","Header","Title","Close","aria-label","i","className","Content","content"],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;;;;;;AAoBC,IACM,SAASA,WAAAA,CAAY,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACpE,IAAA,MAAM,CAACC,OAAAA,EAASC,UAAAA,CAAW,GAAGC,QAAAA,CAASC,eAAAA,CAAgBL,SAAS,SAAA,EAAW,KAAA,CAAA,CAAA;IAC3E,MAAMM,MAAAA,GAASC,cAAAA,CAAeP,OAAAA,EAAS,QAAA,EAAU,QAAA,CAAA;AACjD,IAAA,qBACIQ,IAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeV,QAAQW,EAAE;;0BAC1BC,GAAA,CAACC,MAAAA,EAAAA;AAAOC,gBAAAA,OAAAA,EAAS,IAAMX,UAAAA,CAAW,IAAA,CAAA;AAAQI,gBAAAA,QAAAA,EAAAA,cAAAA,CAAeP,SAAS,cAAA,EAAgBM,MAAAA;;AAClF,0BAAAM,GAAA,CAACG,OAAOC,IAAI,EAAA;gBACRC,IAAAA,EAAMf,OAAAA;gBACNgB,KAAAA,EAAOb,eAAAA,CAAgBL,SAAS,OAAA,EAAS,IAAA,CAAA;gBACzCmB,SAAAA,EAAWd,eAAAA,CAAgBL,SAAS,WAAA,EAAa,KAAA,CAAA;gBACjDoB,WAAW,EAAA,IAAA;gBACXC,aAAa,EAAA,IAAA;AACbC,gBAAAA,YAAAA,EAAc,CAACC,KAAAA,GAAAA;AACX,oBAAA,IAAI,CAACA,KAAAA,CAAMC,KAAK,EAAErB,UAAAA,CAAW,KAAA,CAAA;AACjC,gBAAA,CAAA;wCACAK,IAAA,CAACO,OAAOU,MAAM,EAAA;;AACV,sCAAAb,GAAA,CAACG,OAAOW,QAAQ,EAAA,EAAA,CAAA;AAChB,sCAAAd,GAAA,CAACG,OAAOY,UAAU,EAAA;oDACdnB,IAAA,CAACO,OAAOa,KAAK,EAAA;gCAACC,KAAAA,EAAO;oCAAEC,KAAAA,EAAOvB,cAAAA,CAAeP,SAAS,OAAA,EAAS,OAAA;AAAS,iCAAA;;AACpE,kDAAAQ,IAAA,CAACO,OAAOgB,MAAM,EAAA;;AACV,0DAAAnB,GAAA,CAACG,OAAOiB,KAAK,EAAA;AAAE1B,gDAAAA,QAAAA,EAAAA;;AACf,0DAAAM,GAAA,CAACG,OAAOkB,KAAK,EAAA;gDAACC,YAAAA,EAAW,OAAA;AACrB,gDAAA,QAAA,gBAAAtB,GAAA,CAACuB,GAAAA,EAAAA;oDAAEC,SAAAA,EAAU;;;;;AAGrB,kDAAAxB,GAAA,CAACG,OAAOsB,OAAO,EAAA;AAAEpC,wCAAAA,QAAAA,EAAAA,KAAAA,CAAMqC;;;;;;;;;;AAOnD;;;;"}
1
+ {"version":3,"file":"PrimeDialog.js","sources":["../../../overlay/PrimeDialog.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { Dialog } from 'primereact/dialog';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:dialog` component - a modal window.\n *\n * A dialog is only ever interesting while it is open, and \"the user closed it\" is state a Scene element\n * has no place to record. The adapter therefore owns visibility locally, seeded from the `visible`\n * property, and always renders a trigger button beside it. That keeps a dialog reachable again after it\n * is dismissed - without the trigger, closing a previewed dialog would leave a permanently blank spot on\n * the screen with no way back.\n *\n * PrimeReact 11 made `Dialog` compositional, which turns that local visibility into a two-way\n * arrangement: `open` pushes the state down, and every dismissal gesture - the close button, `Escape`, a\n * click on the backdrop - comes back as `onOpenChange`. Both have to be wired, because a v11 dialog never\n * hides itself; ignoring the callback would leave a dialog that opens once and can never be closed.\n *\n * The parts are assembled here rather than by the component: `Dialog.Portal` and `Dialog.Backdrop` are\n * what make it modal, and `Dialog.Close` is the only reason the header gets an X.\n *\n * **Not available in v11:** the headless dialog has no resize handle, so a dialog cannot be made\n * user-resizable. No Scene property is lost to this - this adapter never exposed one - but `draggable`,\n * which v11 does still support, is the only direct-manipulation affordance left.\n */\nexport function PrimeDialog({ element, slots }: RegisteredComponentProps) {\n const [visible, setVisible] = useState(booleanProperty(element, 'visible', false));\n const header = stringProperty(element, 'header', 'Dialog');\n return (\n <div data-scene-id={element.id}>\n <Button onClick={() => setVisible(true)}>{stringProperty(element, 'triggerLabel', header)}</Button>\n <Dialog.Root\n open={visible}\n modal={booleanProperty(element, 'modal', true)}\n draggable={booleanProperty(element, 'draggable', false)}\n dismissable\n closeOnEscape\n onOpenChange={(event) => {\n if (!event.value) setVisible(false);\n }}>\n <Dialog.Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <Dialog.Popup style={{ width: stringProperty(element, 'width', '32rem') }}>\n <Dialog.Header>\n <Dialog.Title>{header}</Dialog.Title>\n <Dialog.Close aria-label='Close'>\n <i className='pi pi-times' />\n </Dialog.Close>\n </Dialog.Header>\n <Dialog.Content>{slots.content}</Dialog.Content>\n </Dialog.Popup>\n </Dialog.Positioner>\n </Dialog.Portal>\n </Dialog.Root>\n </div>\n );\n}\n"],"names":["PrimeDialog","element","slots","visible","setVisible","useState","booleanProperty","header","stringProperty","_jsxs","div","data-scene-id","id","_jsx","Button","onClick","Dialog","Root","open","modal","draggable","dismissable","closeOnEscape","onOpenChange","event","value","Portal","Backdrop","Positioner","Popup","style","width","Header","Title","Close","aria-label","i","className","Content","content"],"mappings":";;;;;;AASA;;;;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AS,iCAAA;;AACpE,kDAAAQ,IAAA,CAACO,OAAOgB,MAAM,EAAA;;AACV,0DAAAnB,GAAA,CAACG,OAAOiB,KAAK,EAAA;AAAE1B,gDAAAA,QAAAA,EAAAA;;AACf,0DAAAM,GAAA,CAACG,OAAOkB,KAAK,EAAA;gDAACC,YAAAA,EAAW,OAAA;AACrB,gDAAA,QAAA,gBAAAtB,GAAA,CAACuB,GAAAA,EAAAA;oDAAEC,SAAAA,EAAU;;;;;AAGrB,kDAAAxB,GAAA,CAACG,OAAOsB,OAAO,EAAA;AAAEpC,wCAAAA,QAAAA,EAAAA,KAAAA,CAAMqC;;;;;;;;;;AAOnD;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeOverlayPanel.js","sources":["../../../overlay/PrimeOverlayPanel.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 { Button } from 'primereact/button';\nimport { Popover } from 'primereact/popover';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:overlayPanel` component - content revealed next to whatever opened it.\n *\n * A popover positions itself against the thing that opened it, so it is meaningless without a trigger;\n * the adapter renders one.\n *\n * PrimeReact 11 renamed `OverlayPanel` to `Popover` and changed how that trigger is wired. v10 needed a\n * ref and a `toggle(event)` call because it positioned against the *event*; v11 positions against the\n * trigger *element*, which `Popover.Trigger` registers itself. That removes the ref, the click handler\n * and the local visibility state in one go - the composition owns all three - so the trigger here is a\n * real `Button` supplied as `Popover.Trigger`'s `as`, rather than a separate button wired to a ref.\n *\n * The abstract Scene name stays `overlayPanel` so existing screens keep resolving.\n */\nexport function PrimeOverlayPanel({ element, slots }: RegisteredComponentProps) {\n return (\n <div data-scene-id={element.id}>\n <Popover.Root>\n <Popover.Trigger as={Button}>{stringProperty(element, 'triggerLabel', 'Show')}</Popover.Trigger>\n <Popover.Portal>\n <Popover.Positioner side='bottom'>\n <Popover.Popup>\n <Popover.Content>{slots.content}</Popover.Content>\n </Popover.Popup>\n </Popover.Positioner>\n </Popover.Portal>\n </Popover.Root>\n </div>\n );\n}\n"],"names":["PrimeOverlayPanel","element","slots","_jsx","div","data-scene-id","id","_jsxs","Popover","Root","Trigger","as","Button","stringProperty","Portal","Positioner","side","Popup","Content","content"],"mappings":";;;;;AAQA;;;;;;;;;;;;;AAaC,IACM,SAASA,iBAAAA,CAAkB,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AAC1E,IAAA,qBACIC,GAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeJ,QAAQK,EAAE;gCAC1BC,IAAA,CAACC,QAAQC,IAAI,EAAA;;AACT,8BAAAN,GAAA,CAACK,QAAQE,OAAO,EAAA;oBAACC,EAAAA,EAAIC,MAAAA;AAASC,oBAAAA,QAAAA,EAAAA,cAAAA,CAAeZ,SAAS,cAAA,EAAgB,MAAA;;AACtE,8BAAAE,GAAA,CAACK,QAAQM,MAAM,EAAA;4CACXX,GAAA,CAACK,QAAQO,UAAU,EAAA;wBAACC,IAAAA,EAAK,QAAA;gDACrBb,GAAA,CAACK,QAAQS,KAAK,EAAA;oDACVd,GAAA,CAACK,QAAQU,OAAO,EAAA;AAAEhB,gCAAAA,QAAAA,EAAAA,KAAAA,CAAMiB;;;;;;;;AAOpD;;;;"}
1
+ {"version":3,"file":"PrimeOverlayPanel.js","sources":["../../../overlay/PrimeOverlayPanel.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 { Button } from 'primereact/button';\nimport { Popover } from 'primereact/popover';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:overlayPanel` component - content revealed next to whatever opened it.\n *\n * A popover positions itself against the thing that opened it, so it is meaningless without a trigger;\n * the adapter renders one.\n *\n * PrimeReact 11 renamed `OverlayPanel` to `Popover` and changed how that trigger is wired. v10 needed a\n * ref and a `toggle(event)` call because it positioned against the *event*; v11 positions against the\n * trigger *element*, which `Popover.Trigger` registers itself. That removes the ref, the click handler\n * and the local visibility state in one go - the composition owns all three - so the trigger here is a\n * real `Button` supplied as `Popover.Trigger`'s `as`, rather than a separate button wired to a ref.\n *\n * The abstract Scene name stays `overlayPanel` so existing screens keep resolving.\n */\nexport function PrimeOverlayPanel({ element, slots }: RegisteredComponentProps) {\n return (\n <div data-scene-id={element.id}>\n <Popover.Root>\n <Popover.Trigger as={Button}>{stringProperty(element, 'triggerLabel', 'Show')}</Popover.Trigger>\n <Popover.Portal>\n <Popover.Positioner side='bottom'>\n <Popover.Popup>\n <Popover.Content>{slots.content}</Popover.Content>\n </Popover.Popup>\n </Popover.Positioner>\n </Popover.Portal>\n </Popover.Root>\n </div>\n );\n}\n"],"names":["PrimeOverlayPanel","element","slots","_jsx","div","data-scene-id","id","_jsxs","Popover","Root","Trigger","as","Button","stringProperty","Portal","Positioner","side","Popup","Content","content"],"mappings":";;;;;AAQA;;;;;;;;;;;;;AAaC,IACM,SAASA,iBAAAA,CAAkB,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AAC1E,IAAA,qBACIC,GAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeJ,QAAQK,EAAE;gCAC1BC,IAAA,CAACC,QAAQC,IAAI,EAAA;;AACT,8BAAAN,GAAA,CAACK,QAAQE,OAAO,EAAA;oBAACC,EAAAA,EAAIC,MAAAA;AAASC,oBAAAA,QAAAA,EAAAA,cAAAA,CAAeZ,SAAS,cAAA,EAAgB,MAAA;;AACtE,8BAAAE,GAAA,CAACK,QAAQM,MAAM,EAAA;4CACXX,GAAA,CAACK,QAAQO,UAAU,EAAA;wBAACC,IAAAA,EAAK,QAAA;gDACrBb,GAAA,CAACK,QAAQS,KAAK,EAAA;oDACVd,GAAA,CAACK,QAAQU,OAAO,EAAA;AAAEhB,gCAAAA,QAAAA,EAAAA,KAAAA,CAAMiB;;;;;;;;AAOpD;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeSidebar.js","sources":["../../../overlay/PrimeSidebar.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { Drawer } from 'primereact/drawer';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:sidebar` component - a panel that slides in from an edge of the viewport.\n *\n * **This is built on `primereact/drawer`, and that is not a mistake.** PrimeReact 11 renamed this\n * component to `Drawer` *and* introduced an unrelated new component under the name `Sidebar` -\n * `primereact/sidebar` in v11 is an application-shell primitive (`SidebarLayout`, `SidebarAside`,\n * `SidebarPanel`, `SidebarMenu` and friends) for persistent navigation, with no slide-in overlay\n * behavior anywhere in it. Importing `Sidebar` from v11 to port a v10 `Sidebar` compiles perfectly and\n * silently replaces a dismissable overlay with a static shell element, which is why the module here is\n * the one that does not match the name. The abstract Scene name stays `sidebar` so existing screens keep\n * resolving; only the implementation moved.\n *\n * Visibility is owned locally and a trigger is always rendered, for the reason described on\n * {@link PrimeDialog}, and v11's controlled `open` / `onOpenChange` pair is wired for the reason\n * described there too.\n *\n * v10's `fullScreen` flag became a fifth `position` value rather than a separate prop, so the two Scene\n * properties collapse into one: `fullScreen` wins when set, since a drawer covering the viewport has no\n * edge left to slide in from.\n */\nexport function PrimeSidebar({ element, slots }: RegisteredComponentProps) {\n const [visible, setVisible] = useState(booleanProperty(element, 'visible', false));\n const position = booleanProperty(element, 'fullScreen', false) ? 'full' : stringProperty(element, 'position', 'left');\n return (\n <div data-scene-id={element.id}>\n <Button onClick={() => setVisible(true)}>{stringProperty(element, 'triggerLabel', 'Open')}</Button>\n <Drawer.Root\n open={visible}\n position={position as 'left' | 'right' | 'top' | 'bottom' | 'full'}\n onOpenChange={(event) => {\n if (!event.value) setVisible(false);\n }}>\n <Drawer.Portal>\n <Drawer.Backdrop />\n <Drawer.Popup>\n <Drawer.Header>\n <Drawer.Title>{stringProperty(element, 'header')}</Drawer.Title>\n <Drawer.Close aria-label='Close'>\n <i className='pi pi-times' />\n </Drawer.Close>\n </Drawer.Header>\n <Drawer.Content>{slots.content}</Drawer.Content>\n </Drawer.Popup>\n </Drawer.Portal>\n </Drawer.Root>\n </div>\n );\n}\n"],"names":["PrimeSidebar","element","slots","visible","setVisible","useState","booleanProperty","position","stringProperty","_jsxs","div","data-scene-id","id","_jsx","Button","onClick","Drawer","Root","open","onOpenChange","event","value","Portal","Backdrop","Popup","Header","Title","Close","aria-label","i","className","Content","content"],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;;;;;AAmBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACrE,IAAA,MAAM,CAACC,OAAAA,EAASC,UAAAA,CAAW,GAAGC,QAAAA,CAASC,eAAAA,CAAgBL,SAAS,SAAA,EAAW,KAAA,CAAA,CAAA;IAC3E,MAAMM,QAAAA,GAAWD,gBAAgBL,OAAAA,EAAS,YAAA,EAAc,SAAS,MAAA,GAASO,cAAAA,CAAeP,SAAS,UAAA,EAAY,MAAA,CAAA;AAC9G,IAAA,qBACIQ,IAAA,CAACC,KAAAA,EAAAA;AAAIC,QAAAA,eAAAA,EAAeV,QAAQW,EAAE;;0BAC1BC,GAAA,CAACC,MAAAA,EAAAA;AAAOC,gBAAAA,OAAAA,EAAS,IAAMX,UAAAA,CAAW,IAAA,CAAA;AAAQI,gBAAAA,QAAAA,EAAAA,cAAAA,CAAeP,SAAS,cAAA,EAAgB,MAAA;;AAClF,0BAAAY,GAAA,CAACG,OAAOC,IAAI,EAAA;gBACRC,IAAAA,EAAMf,OAAAA;gBACNI,QAAAA,EAAUA,QAAAA;AACVY,gBAAAA,YAAAA,EAAc,CAACC,KAAAA,GAAAA;AACX,oBAAA,IAAI,CAACA,KAAAA,CAAMC,KAAK,EAAEjB,UAAAA,CAAW,KAAA,CAAA;AACjC,gBAAA,CAAA;wCACAK,IAAA,CAACO,OAAOM,MAAM,EAAA;;AACV,sCAAAT,GAAA,CAACG,OAAOO,QAAQ,EAAA,EAAA,CAAA;AAChB,sCAAAd,IAAA,CAACO,OAAOQ,KAAK,EAAA;;AACT,8CAAAf,IAAA,CAACO,OAAOS,MAAM,EAAA;;AACV,sDAAAZ,GAAA,CAACG,OAAOU,KAAK,EAAA;AAAElB,4CAAAA,QAAAA,EAAAA,cAAAA,CAAeP,OAAAA,EAAS,QAAA;;AACvC,sDAAAY,GAAA,CAACG,OAAOW,KAAK,EAAA;4CAACC,YAAAA,EAAW,OAAA;AACrB,4CAAA,QAAA,gBAAAf,GAAA,CAACgB,GAAAA,EAAAA;gDAAEC,SAAAA,EAAU;;;;;AAGrB,8CAAAjB,GAAA,CAACG,OAAOe,OAAO,EAAA;AAAE7B,oCAAAA,QAAAA,EAAAA,KAAAA,CAAM8B;;;;;;;;;AAM/C;;;;"}
1
+ {"version":3,"file":"PrimeSidebar.js","sources":["../../../overlay/PrimeSidebar.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { Drawer } from 'primereact/drawer';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:sidebar` component - a panel that slides in from an edge of the viewport.\n *\n * **This is built on `primereact/drawer`, and that is not a mistake.** PrimeReact 11 renamed this\n * component to `Drawer` *and* introduced an unrelated new component under the name `Sidebar` -\n * `primereact/sidebar` in v11 is an application-shell primitive (`SidebarLayout`, `SidebarAside`,\n * `SidebarPanel`, `SidebarMenu` and friends) for persistent navigation, with no slide-in overlay\n * behavior anywhere in it. Importing `Sidebar` from v11 to port a v10 `Sidebar` compiles perfectly and\n * silently replaces a dismissable overlay with a static shell element, which is why the module here is\n * the one that does not match the name. The abstract Scene name stays `sidebar` so existing screens keep\n * resolving; only the implementation moved.\n *\n * Visibility is owned locally and a trigger is always rendered, for the reason described on\n * {@link PrimeDialog}, and v11's controlled `open` / `onOpenChange` pair is wired for the reason\n * described there too.\n *\n * v10's `fullScreen` flag became a fifth `position` value rather than a separate prop, so the two Scene\n * properties collapse into one: `fullScreen` wins when set, since a drawer covering the viewport has no\n * edge left to slide in from.\n */\nexport function PrimeSidebar({ element, slots }: RegisteredComponentProps) {\n const [visible, setVisible] = useState(booleanProperty(element, 'visible', false));\n const position = booleanProperty(element, 'fullScreen', false) ? 'full' : stringProperty(element, 'position', 'left');\n return (\n <div data-scene-id={element.id}>\n <Button onClick={() => setVisible(true)}>{stringProperty(element, 'triggerLabel', 'Open')}</Button>\n <Drawer.Root\n open={visible}\n position={position as 'left' | 'right' | 'top' | 'bottom' | 'full'}\n onOpenChange={(event) => {\n if (!event.value) setVisible(false);\n }}>\n <Drawer.Portal>\n <Drawer.Backdrop />\n <Drawer.Popup>\n <Drawer.Header>\n <Drawer.Title>{stringProperty(element, 'header')}</Drawer.Title>\n <Drawer.Close aria-label='Close'>\n <i className='pi pi-times' />\n </Drawer.Close>\n </Drawer.Header>\n <Drawer.Content>{slots.content}</Drawer.Content>\n </Drawer.Popup>\n </Drawer.Portal>\n </Drawer.Root>\n </div>\n );\n}\n"],"names":["PrimeSidebar","element","slots","visible","setVisible","useState","booleanProperty","position","stringProperty","_jsxs","div","data-scene-id","id","_jsx","Button","onClick","Drawer","Root","open","onOpenChange","event","value","Portal","Backdrop","Popup","Header","Title","Close","aria-label","i","className","Content","content"],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;;;;;AAmBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACrE,IAAA,MAAM,CAACC,OAAAA,EAASC,UAAAA,CAAW,GAAGC,QAAAA,CAASC,eAAAA,CAAgBL,SAAS,SAAA,EAA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-1 +1 @@
1
- {"version":3,"file":"PrimeTooltip.js","sources":["../../../overlay/PrimeTooltip.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 { Tooltip } from 'primereact/tooltip';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:tooltip` component - explanatory text shown on hover.\n *\n * The adapter renders the hover target as well as the tooltip, because a tooltip with nothing to point\n * at has nothing to do.\n *\n * PrimeReact 11 replaced the v10 mechanism entirely and this adapter got simpler for it. v10's `Tooltip`\n * attached itself to a CSS selector and read its text from a `data-pr-tooltip` attribute on whatever it\n * found, which forced this adapter to invent a unique attribute selector - and to use an attribute rather\n * than a class, because a Scene element id is free-form and may legally start with a digit, which is not\n * a valid class selector. v11 wraps the target instead: `Tooltip.Trigger` *is* the target, so the\n * selector, the generated attribute and the whole indirection are gone.\n *\n * The trigger is rendered as a `span` rather than v11's default `button`, because the `content` slot may\n * hold any Scene children at all - including a button, which nested inside another button is invalid\n * markup that browsers silently restructure. The cost is that a bare label is not keyboard focusable and\n * so shows on hover only; when a screen puts a real control in the slot, that control brings its own\n * focus behavior.\n */\nexport function PrimeTooltip({ element, slots }: RegisteredComponentProps) {\n return (\n <Tooltip.Root>\n <Tooltip.Trigger as='span' data-scene-id={element.id}>\n {slots.content?.length ? slots.content : stringProperty(element, 'label', 'Hover me')}\n </Tooltip.Trigger>\n <Tooltip.Portal>\n <Tooltip.Positioner side={stringProperty(element, 'position', 'top') as 'top' | 'bottom' | 'left' | 'right'}>\n <Tooltip.Popup>{stringProperty(element, 'text', '')}</Tooltip.Popup>\n </Tooltip.Positioner>\n </Tooltip.Portal>\n </Tooltip.Root>\n );\n}\n"],"names":["PrimeTooltip","element","slots","_jsxs","Tooltip","Root","_jsx","Trigger","as","data-scene-id","id","content","length","stringProperty","Portal","Positioner","side","Popup"],"mappings":";;;;AAOA;;;;;;;;;;;;;;;;;;AAkBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,qBACIC,IAAA,CAACC,QAAQC,IAAI,EAAA;;AACT,0BAAAC,GAAA,CAACF,QAAQG,OAAO,EAAA;gBAACC,EAAAA,EAAG,MAAA;AAAOC,gBAAAA,eAAAA,EAAeR,QAAQS,EAAE;0BAC/CR,KAAAA,CAAMS,OAAO,EAAEC,MAAAA,GAASV,KAAAA,CAAMS,OAAO,GAAGE,cAAAA,CAAeZ,SAAS,OAAA,EAAS,UAAA;;AAE9E,0BAAAK,GAAA,CAACF,QAAQU,MAAM,EAAA;wCACXR,GAAA,CAACF,QAAQW,UAAU,EAAA;oBAACC,IAAAA,EAAMH,cAAAA,CAAeZ,SAAS,UAAA,EAAY,KAAA,CAAA;4CAC1DK,GAAA,CAACF,QAAQa,KAAK,EAAA;AAAEJ,wBAAAA,QAAAA,EAAAA,cAAAA,CAAeZ,SAAS,MAAA,EAAQ,EAAA;;;;;;AAKpE;;;;"}
1
+ {"version":3,"file":"PrimeTooltip.js","sources":["../../../overlay/PrimeTooltip.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 { Tooltip } from 'primereact/tooltip';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:tooltip` component - explanatory text shown on hover.\n *\n * The adapter renders the hover target as well as the tooltip, because a tooltip with nothing to point\n * at has nothing to do.\n *\n * PrimeReact 11 replaced the v10 mechanism entirely and this adapter got simpler for it. v10's `Tooltip`\n * attached itself to a CSS selector and read its text from a `data-pr-tooltip` attribute on whatever it\n * found, which forced this adapter to invent a unique attribute selector - and to use an attribute rather\n * than a class, because a Scene element id is free-form and may legally start with a digit, which is not\n * a valid class selector. v11 wraps the target instead: `Tooltip.Trigger` *is* the target, so the\n * selector, the generated attribute and the whole indirection are gone.\n *\n * The trigger is rendered as a `span` rather than v11's default `button`, because the `content` slot may\n * hold any Scene children at all - including a button, which nested inside another button is invalid\n * markup that browsers silently restructure. The cost is that a bare label is not keyboard focusable and\n * so shows on hover only; when a screen puts a real control in the slot, that control brings its own\n * focus behavior.\n */\nexport function PrimeTooltip({ element, slots }: RegisteredComponentProps) {\n return (\n <Tooltip.Root>\n <Tooltip.Trigger as='span' data-scene-id={element.id}>\n {slots.content?.length ? slots.content : stringProperty(element, 'label', 'Hover me')}\n </Tooltip.Trigger>\n <Tooltip.Portal>\n <Tooltip.Positioner side={stringProperty(element, 'position', 'top') as 'top' | 'bottom' | 'left' | 'right'}>\n <Tooltip.Popup>{stringProperty(element, 'text', '')}</Tooltip.Popup>\n </Tooltip.Positioner>\n </Tooltip.Portal>\n </Tooltip.Root>\n );\n}\n"],"names":["PrimeTooltip","element","slots","_jsxs","Tooltip","Root","_jsx","Trigger","as","data-scene-id","id","content","length","stringProperty","Portal","Positioner","side","Popup"],"mappings":";;;;AAOA;;;;;;;;;;;;;;;;;;AAkBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,qBACIC,IAAA,CAACC,QAAQC,IAAI,EAAA;;AACT,0BAAAC,GAAA,CAACF,QAAQG,OAAO,EAAA;gBAACC,EAAAA,EAAG,MAAA;AAAOC,gBAAAA,eAAAA,EAAeR,QAAQS,EAAE;0BAC/CR,KAAAA,CAAMS,OAAO,EAAEC,MAAAA,GAASV,KAAAA,CAAMS,OAAO,GAAGE,cAAAA,CAAeZ,SAAS,OAAA,EAAS,UAAA;;AAE9E,0BAAAK,GAAA,CAACF,QAAQU,MAAM,EAAA;wCACXR,GAAA,CAACF,QAAQW,UAAU,EAAA;oBAACC,IAAAA,EAAMH,cAAAA,CAAeZ,SAAS,UAAA,EAAY,KAAA,CAAA;4CAC1DK,GAAA,CAACF,QAAQa,KAAK,EAAA;AAAEJ,wBAAAA,QAAAA,EAAAA,cAAAA,CAAeZ,SAAS,MAAA,EAAQ,EAAA;;;;;;AAKpE;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeAccordion.js","sources":["../../../panel/PrimeAccordion.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 { Accordion } from 'primereact/accordion';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:accordion` component - stacked sections of which one is open at a time.\n *\n * Sections are paired by position: the `headers` property gives the titles and the `content` slot gives\n * the bodies. That pairing is a consequence of the Scene model rather than of PrimeReact - a slot arrives\n * as a flat list of already-rendered children with nowhere to hang a per-child title - so a screen puts as\n * many children in the slot as it lists headers.\n *\n * PrimeReact 11 replaced `AccordionTab` with a `Accordion.Panel` / `Header` / `Trigger` / `Content`\n * composition keyed by an explicit `value`, which retires the v10 constraint that sections had to *be*\n * `AccordionTab` elements for the accordion to recognize them. The index doubles as that value, so the\n * `activeIndex` property still means what it always did. It is passed as `defaultValue` rather than\n * `value` because a screen states which section starts open - binding it as the controlled value would\n * pin the accordion to that section and silently swallow every click.\n */\nexport function PrimeAccordion({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Accordion.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n {Array.from({ length: count }, (_, index) => (\n <Accordion.Panel key={index} value={String(index)}>\n <Accordion.Header>\n <Accordion.Trigger>\n {headers[index] ?? `Section ${index + 1}`}\n <Accordion.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Accordion.Indicator>\n <Accordion.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Accordion.Indicator>\n </Accordion.Trigger>\n </Accordion.Header>\n <Accordion.Content>{bodies[index]}</Accordion.Content>\n </Accordion.Panel>\n ))}\n </Accordion.Root>\n );\n}\n"],"names":["PrimeAccordion","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsx","Accordion","Root","data-scene-id","id","defaultValue","String","numberProperty","Array","from","_","index","_jsxs","Panel","value","Header","Trigger","Indicator","match","i","className","Content"],"mappings":";;;;AAOA;;;;;;;;;;;;;;AAcC,IACM,SAASA,cAAAA,CAAe,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACvE,MAAMC,OAAAA,GAAUC,oBAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;IACpD,qBACIC,GAAA,CAACC,UAAUC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeb,QAAQc,EAAE;QAAEC,YAAAA,EAAcC,MAAAA,CAAOC,cAAAA,CAAejB,OAAAA,EAAS,aAAA,EAAe,CAAA,CAAA,CAAA;AAClGkB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,CAACc,CAAAA,EAAGC,KAAAA,iBAC/BC,IAAA,CAACX,UAAUY,KAAK,EAAA;AAAaC,gBAAAA,KAAAA,EAAOR,MAAAA,CAAOK,KAAAA,CAAAA;;AACvC,kCAAAX,GAAA,CAACC,UAAUc,MAAM,EAAA;gDACbH,IAAA,CAACX,UAAUe,OAAO,EAAA;;AACbxB,gCAAAA,OAAO,CAACmB,KAAAA,CAAM,IAAI,CAAC,QAAQ,EAAEA,QAAQ,CAAA,CAAA,CAAG;AACzC,8CAAAX,GAAA,CAACC,UAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,MAAA;AACvB,oCAAA,QAAA,gBAAAlB,GAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;AAEjB,8CAAApB,GAAA,CAACC,UAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,QAAA;AACvB,oCAAA,QAAA,gBAAAlB,GAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;;;;AAIzB,kCAAApB,GAAA,CAACC,UAAUoB,OAAO,EAAA;AAAE3B,wBAAAA,QAAAA,EAAAA,MAAM,CAACiB,KAAAA;;;AAZTA,aAAAA,EAAAA,KAAAA,CAAAA;;AAiBtC;;;;"}
1
+ {"version":3,"file":"PrimeAccordion.js","sources":["../../../panel/PrimeAccordion.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 { Accordion } from 'primereact/accordion';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:accordion` component - stacked sections of which one is open at a time.\n *\n * Sections are paired by position: the `headers` property gives the titles and the `content` slot gives\n * the bodies. That pairing is a consequence of the Scene model rather than of PrimeReact - a slot arrives\n * as a flat list of already-rendered children with nowhere to hang a per-child title - so a screen puts as\n * many children in the slot as it lists headers.\n *\n * PrimeReact 11 replaced `AccordionTab` with a `Accordion.Panel` / `Header` / `Trigger` / `Content`\n * composition keyed by an explicit `value`, which retires the v10 constraint that sections had to *be*\n * `AccordionTab` elements for the accordion to recognize them. The index doubles as that value, so the\n * `activeIndex` property still means what it always did. It is passed as `defaultValue` rather than\n * `value` because a screen states which section starts open - binding it as the controlled value would\n * pin the accordion to that section and silently swallow every click.\n */\nexport function PrimeAccordion({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Accordion.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n {Array.from({ length: count }, (_, index) => (\n <Accordion.Panel key={index} value={String(index)}>\n <Accordion.Header>\n <Accordion.Trigger>\n {headers[index] ?? `Section ${index + 1}`}\n <Accordion.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Accordion.Indicator>\n <Accordion.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Accordion.Indicator>\n </Accordion.Trigger>\n </Accordion.Header>\n <Accordion.Content>{bodies[index]}</Accordion.Content>\n </Accordion.Panel>\n ))}\n </Accordion.Root>\n );\n}\n"],"names":["PrimeAccordion","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsx","Accordion","Root","data-scene-id","id","defaultValue","String","numberProperty","Array","from","_","index","_jsxs","Panel","value","Header","Trigger","Indicator","match","i","className","Content"],"mappings":";;;;AAOA;;;;;;;;;;;;;;AAcC,IACM,SAASA,cAAAA,CAAe,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACvE,MAAMC,OAAAA,GAAUC,oBAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;IACpD,qBACIC,GAAA,CAACC,UAAUC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeb,QAAQc,EAAE;QAAEC,YAAAA,EAAcC,MAAAA,CAAOC,cAAAA,CAAejB,OAAAA,EAAS,aAAA,EAAe,CAAA,CAAA,CAAA;AAClGkB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,CAACc,CAAAA,EAAGC,KAAAA,iBAC/BC,IAAA,CAACX,UAAUY,KAAK,EAAA;AAAaC,gBAAAA,KAAAA,EAAOR,MAAAA,CAAOK,KAAAA,CAAAA;;AACvC,kCAAAX,GAAA,CAACC,UAAUc,MAAM,EAAA;gDACbH,IAAA,CAACX,UAAUe,OAAO,EAAA;;AACbxB,gCAAAA,OAAO,CAACmB,KAAAA,CAAM,IAAI,CAAC,QAAQ,EAAEA,QAAQ,CAAA,CAAA,CAAG;AACzC,8CAAAX,GAAA,CAACC,UAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,MAAA;AACvB,oCAAA,QAAA,gBAAAlB,GAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;AAEjB,8CAAApB,GAAA,CAACC,UAAUgB,SAAS,EAAA;oCAACC,KAAAA,EAAM,QAAA;AACvB,oCAAA,QAAA,gBAAAlB,GAAA,CAACmB,GAAAA,EAAAA;wCAAEC,SAAAA,EAAU;;;;;;AAIzB,kCAAApB,GAAA,CAACC,UAAUoB,OAAO,EAAA;AAAE3B,wBAAAA,QAAAA,EAAAA,MAAM,CAACiB,KAAAA;;;AAZTA,aAAAA,EAAAA,KAAAA,CAAAA;;AAiBtC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeCard.js","sources":["../../../panel/PrimeCard.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 { Card } from 'primereact/card';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:card` component.\n *\n * One of the three names this package deliberately shares with `core` (alongside `text` and `button`), so\n * a profile that lists `core` and then `PrimeReact` upgrades every card on every screen to a themed one\n * without a single screen being edited.\n *\n * PrimeReact 11 turned `Card` into a namespace of parts, so the v10 `title` / `subTitle` props no longer\n * exist - the caption is something the adapter assembles. The caption block is omitted entirely when a\n * screen supplies neither, because an empty `Card.Caption` still reserves its spacing and would leave an\n * unexplained gap above the body of an untitled card.\n */\nexport function PrimeCard({ element, slots }: RegisteredComponentProps) {\n const title = stringProperty(element, 'title');\n const subtitle = stringProperty(element, 'subtitle');\n return (\n <Card.Root data-scene-id={element.id}>\n <Card.Body>\n {(title !== undefined || subtitle !== undefined) && (\n <Card.Caption>\n {title !== undefined && <Card.Title>{title}</Card.Title>}\n {subtitle !== undefined && <Card.Subtitle>{subtitle}</Card.Subtitle>}\n </Card.Caption>\n )}\n <Card.Content>{slots.content}</Card.Content>\n </Card.Body>\n </Card.Root>\n );\n}\n"],"names":["PrimeCard","element","slots","title","stringProperty","subtitle","_jsx","Card","Root","data-scene-id","id","_jsxs","Body","undefined","Caption","Title","Subtitle","Content","content"],"mappings":";;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,SAAAA,CAAU,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IAClE,MAAMC,KAAAA,GAAQC,eAAeH,OAAAA,EAAS,OAAA,CAAA;IACtC,MAAMI,QAAAA,GAAWD,eAAeH,OAAAA,EAAS,UAAA,CAAA;IACzC,qBACIK,GAAA,CAACC,KAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeR,QAAQS,EAAE;gCAChCC,IAAA,CAACJ,KAAKK,IAAI,EAAA;;AACJT,gBAAAA,CAAAA,UAAUU,SAAAA,IAAaR,QAAAA,KAAaQ,SAAQ,mBAC1CF,IAAA,CAACJ,KAAKO,OAAO,EAAA;;wBACRX,KAAAA,KAAUU,SAAAA,kBAAaP,GAAA,CAACC,IAAAA,CAAKQ,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;wBACpCE,QAAAA,KAAaQ,SAAAA,kBAAaP,GAAA,CAACC,IAAAA,CAAKS,QAAQ,EAAA;AAAEX,4BAAAA,QAAAA,EAAAA;;;;AAGnD,8BAAAC,GAAA,CAACC,KAAKU,OAAO,EAAA;AAAEf,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMgB;;;;;AAIrC;;;;"}
1
+ {"version":3,"file":"PrimeCard.js","sources":["../../../panel/PrimeCard.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 { Card } from 'primereact/card';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:card` component.\n *\n * One of the three names this package deliberately shares with `core` (alongside `text` and `button`), so\n * a profile that lists `core` and then `PrimeReact` upgrades every card on every screen to a themed one\n * without a single screen being edited.\n *\n * PrimeReact 11 turned `Card` into a namespace of parts, so the v10 `title` / `subTitle` props no longer\n * exist - the caption is something the adapter assembles. The caption block is omitted entirely when a\n * screen supplies neither, because an empty `Card.Caption` still reserves its spacing and would leave an\n * unexplained gap above the body of an untitled card.\n */\nexport function PrimeCard({ element, slots }: RegisteredComponentProps) {\n const title = stringProperty(element, 'title');\n const subtitle = stringProperty(element, 'subtitle');\n return (\n <Card.Root data-scene-id={element.id}>\n <Card.Body>\n {(title !== undefined || subtitle !== undefined) && (\n <Card.Caption>\n {title !== undefined && <Card.Title>{title}</Card.Title>}\n {subtitle !== undefined && <Card.Subtitle>{subtitle}</Card.Subtitle>}\n </Card.Caption>\n )}\n <Card.Content>{slots.content}</Card.Content>\n </Card.Body>\n </Card.Root>\n );\n}\n"],"names":["PrimeCard","element","slots","title","stringProperty","subtitle","_jsx","Card","Root","data-scene-id","id","_jsxs","Body","undefined","Caption","Title","Subtitle","Content","content"],"mappings":";;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,SAAAA,CAAU,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IAClE,MAAMC,KAAAA,GAAQC,eAAeH,OAAAA,EAAS,OAAA,CAAA;IACtC,MAAMI,QAAAA,GAAWD,eAAeH,OAAAA,EAAS,UAAA,CAAA;IACzC,qBACIK,GAAA,CAACC,KAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeR,QAAQS,EAAE;gCAChCC,IAAA,CAACJ,KAAKK,IAAI,EAAA;;AACJT,gBAAAA,CAAAA,UAAUU,SAAAA,IAAaR,QAAAA,KAAaQ,SAAQ,mBAC1CF,IAAA,CAACJ,KAAKO,OAAO,EAAA;;wBACRX,KAAAA,KAAUU,SAAAA,kBAAaP,GAAA,CAACC,IAAAA,CAAKQ,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;wBACpCE,QAAAA,KAAaQ,SAAAA,kBAAaP,GAAA,CAACC,IAAAA,CAAKS,QAAQ,EAAA;AAAEX,4BAAAA,QAAAA,EAAAA;;;;AAGnD,8BAAAC,GAAA,CAACC,KAAKU,OAAO,EAAA;AAAEf,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMgB;;;;;AAIrC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeDivider.js","sources":["../../../panel/PrimeDivider.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 { Divider } from 'primereact/divider';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:divider` component - a rule separating content, optionally with a caption in it.\n *\n * The last component in this family PrimeReact 11 left monolithic, so the port is only a prop rename:\n * v10's `layout` is v11's `orientation`. The Scene property keeps the name `layout`, because a screen's\n * property vocabulary is this package's contract with authored content and renaming it would break every\n * screen that set it to buy nothing.\n */\nexport function PrimeDivider({ element }: RegisteredComponentProps) {\n const label = stringProperty(element, 'label');\n return (\n <Divider\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n align={stringProperty(element, 'align') as 'center' | 'left' | 'right' | 'top' | 'bottom' | undefined}\n type={stringProperty(element, 'type', 'solid') as 'solid' | 'dashed' | 'dotted'}>\n {label}\n </Divider>\n );\n}\n"],"names":["PrimeDivider","element","label","stringProperty","_jsx","Divider","data-scene-id","id","orientation","align","type"],"mappings":";;;;AAOA;;;;;;;AAOC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAA4B,EAAA;IAC9D,MAAMC,KAAAA,GAAQC,eAAeF,OAAAA,EAAS,OAAA,CAAA;AACtC,IAAA,qBACIG,GAAA,CAACC,OAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QACzBC,WAAAA,EAAaL,cAAAA,CAAeF,SAAS,QAAA,EAAU,YAAA,CAAA;AAC/CQ,QAAAA,KAAAA,EAAON,eAAeF,OAAAA,EAAS,OAAA,CAAA;QAC/BS,IAAAA,EAAMP,cAAAA,CAAeF,SAAS,MAAA,EAAQ,OAAA,CAAA;AACrCC,QAAAA,QAAAA,EAAAA;;AAGb;;;;"}
1
+ {"version":3,"file":"PrimeDivider.js","sources":["../../../panel/PrimeDivider.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 { Divider } from 'primereact/divider';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:divider` component - a rule separating content, optionally with a caption in it.\n *\n * The last component in this family PrimeReact 11 left monolithic, so the port is only a prop rename:\n * v10's `layout` is v11's `orientation`. The Scene property keeps the name `layout`, because a screen's\n * property vocabulary is this package's contract with authored content and renaming it would break every\n * screen that set it to buy nothing.\n */\nexport function PrimeDivider({ element }: RegisteredComponentProps) {\n const label = stringProperty(element, 'label');\n return (\n <Divider\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n align={stringProperty(element, 'align') as 'center' | 'left' | 'right' | 'top' | 'bottom' | undefined}\n type={stringProperty(element, 'type', 'solid') as 'solid' | 'dashed' | 'dotted'}>\n {label}\n </Divider>\n );\n}\n"],"names":["PrimeDivider","element","label","stringProperty","_jsx","Divider","data-scene-id","id","orientation","align","type"],"mappings":";;;;AAOA;;;;;;;AAOC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAA4B,EAAA;IAC9D,MAAMC,KAAAA,GAAQC,eAAeF,OAAAA,EAAS,OAAA,CAAA;AACtC,IAAA,qBACIG,GAAA,CAACC,OAAAA,EAAAA;AACGC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QACzBC,WAAAA,EAAaL,cAAAA,CAAeF,SAAS,QAAA,EAAU,YAAA,CAAA;AAC/CQ,QAAAA,KAAAA,EAAON,eAAeF,OAAAA,EAAS,OAAA,CAAA;QAC/BS,IAAAA,EAAMP,cAAAA,CAAeF,SAAS,MAAA,EAAQ,OAAA,CAAA;AACrCC,QAAAA,QAAAA,EAAAA;;AAGb;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeFieldset.js","sources":["../../../panel/PrimeFieldset.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 { Fieldset } from 'primereact/fieldset';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:fieldset` component - a container whose legend sits on its border.\n *\n * PrimeReact 11 dropped the `toggleable` prop entirely: a compositional `Fieldset` is collapsible exactly\n * when its legend contains a `Fieldset.Trigger`, and inert when it does not. The Scene `toggleable`\n * property therefore selects between two legend shapes rather than setting a flag. Both are rendered as a\n * real `<legend>` either way, so the non-toggleable case does not pay for a button it never uses - which\n * also keeps a static fieldset out of the tab order.\n */\nexport function PrimeFieldset({ element, slots }: RegisteredComponentProps) {\n const legend = stringProperty(element, 'legend');\n return (\n <Fieldset.Root data-scene-id={element.id} defaultOpen>\n <Fieldset.Legend>\n {booleanProperty(element, 'toggleable', false) ? (\n <Fieldset.Trigger>\n <Fieldset.Title>{legend}</Fieldset.Title>\n <Fieldset.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Fieldset.Indicator>\n <Fieldset.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Fieldset.Indicator>\n </Fieldset.Trigger>\n ) : (\n <Fieldset.Title>{legend}</Fieldset.Title>\n )}\n </Fieldset.Legend>\n <Fieldset.Content>{slots.content}</Fieldset.Content>\n </Fieldset.Root>\n );\n}\n"],"names":["PrimeFieldset","element","slots","legend","stringProperty","_jsxs","Fieldset","Root","data-scene-id","id","defaultOpen","_jsx","Legend","booleanProperty","Trigger","Title","Indicator","match","i","className","Content","content"],"mappings":";;;;AAOA;;;;;;;;AAQC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACtE,MAAMC,MAAAA,GAASC,eAAeH,OAAAA,EAAS,QAAA,CAAA;IACvC,qBACII,IAAA,CAACC,SAASC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEC,WAAW,EAAA,IAAA;;AACjD,0BAAAC,GAAA,CAACL,SAASM,MAAM,EAAA;AACXC,gBAAAA,QAAAA,EAAAA,eAAAA,CAAgBZ,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA,iBACpCI,IAAA,CAACC,SAASQ,OAAO,EAAA;;AACb,sCAAAH,GAAA,CAACL,SAASS,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;AACjB,sCAAAQ,GAAA,CAACL,SAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,MAAA;AACtB,4BAAA,QAAA,gBAAAN,GAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;AAEjB,sCAAAR,GAAA,CAACL,SAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,QAAA;AACtB,4BAAA,QAAA,gBAAAN,GAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;;AAIrB,iBAAA,CAAA,iBAAAR,GAAA,CAACL,SAASS,KAAK,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA;;;AAGzB,0BAAAQ,GAAA,CAACL,SAASc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGrC;;;;"}
1
+ {"version":3,"file":"PrimeFieldset.js","sources":["../../../panel/PrimeFieldset.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 { Fieldset } from 'primereact/fieldset';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:fieldset` component - a container whose legend sits on its border.\n *\n * PrimeReact 11 dropped the `toggleable` prop entirely: a compositional `Fieldset` is collapsible exactly\n * when its legend contains a `Fieldset.Trigger`, and inert when it does not. The Scene `toggleable`\n * property therefore selects between two legend shapes rather than setting a flag. Both are rendered as a\n * real `<legend>` either way, so the non-toggleable case does not pay for a button it never uses - which\n * also keeps a static fieldset out of the tab order.\n */\nexport function PrimeFieldset({ element, slots }: RegisteredComponentProps) {\n const legend = stringProperty(element, 'legend');\n return (\n <Fieldset.Root data-scene-id={element.id} defaultOpen>\n <Fieldset.Legend>\n {booleanProperty(element, 'toggleable', false) ? (\n <Fieldset.Trigger>\n <Fieldset.Title>{legend}</Fieldset.Title>\n <Fieldset.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Fieldset.Indicator>\n <Fieldset.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Fieldset.Indicator>\n </Fieldset.Trigger>\n ) : (\n <Fieldset.Title>{legend}</Fieldset.Title>\n )}\n </Fieldset.Legend>\n <Fieldset.Content>{slots.content}</Fieldset.Content>\n </Fieldset.Root>\n );\n}\n"],"names":["PrimeFieldset","element","slots","legend","stringProperty","_jsxs","Fieldset","Root","data-scene-id","id","defaultOpen","_jsx","Legend","booleanProperty","Trigger","Title","Indicator","match","i","className","Content","content"],"mappings":";;;;AAOA;;;;;;;;AAQC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACtE,MAAMC,MAAAA,GAASC,eAAeH,OAAAA,EAAS,QAAA,CAAA;IACvC,qBACII,IAAA,CAACC,SAASC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEC,WAAW,EAAA,IAAA;;AACjD,0BAAAC,GAAA,CAACL,SAASM,MAAM,EAAA;AACXC,gBAAAA,QAAAA,EAAAA,eAAAA,CAAgBZ,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA,iBACpCI,IAAA,CAACC,SAASQ,OAAO,EAAA;;AACb,sCAAAH,GAAA,CAACL,SAASS,KAAK,EAAA;AAAEZ,4BAAAA,QAAAA,EAAAA;;AACjB,sCAAAQ,GAAA,CAACL,SAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,MAAA;AACtB,4BAAA,QAAA,gBAAAN,GAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;AAEjB,sCAAAR,GAAA,CAACL,SAASU,SAAS,EAAA;4BAACC,KAAAA,EAAM,QAAA;AACtB,4BAAA,QAAA,gBAAAN,GAAA,CAACO,GAAAA,EAAAA;gCAAEC,SAAAA,EAAU;;;;AAIrB,iBAAA,CAAA,iBAAAR,GAAA,CAACL,SAASS,KAAK,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA;;;AAGzB,0BAAAQ,GAAA,CAACL,SAASc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGrC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimePanel.js","sources":["../../../panel/PrimePanel.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 { Panel } from 'primereact/panel';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:panel` component - a titled container that can optionally collapse.\n *\n * PrimeReact 11 made `Panel` compositional, which moves one decision into the adapter that v10 made\n * internally: the collapse affordance exists only if something renders a `Panel.Trigger`. Rendering one\n * unconditionally would put a chevron on every panel, including the ones a screen declared as fixed, so\n * the trigger is tied to the same `toggleable` property that enables the behavior.\n *\n * The `collapsed` property is expressed as `defaultOpen` rather than a controlled `open`, because a\n * screen states the *initial* state; holding the panel open or shut against the user's clicks is not what\n * `collapsed: true` means.\n */\nexport function PrimePanel({ element, slots }: RegisteredComponentProps) {\n const toggleable = booleanProperty(element, 'toggleable', false);\n return (\n <Panel.Root data-scene-id={element.id} toggleable={toggleable} defaultOpen={!booleanProperty(element, 'collapsed', false)}>\n <Panel.Header>\n <Panel.Title>{stringProperty(element, 'header')}</Panel.Title>\n {toggleable && (\n <Panel.Trigger>\n <Panel.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Panel.Indicator>\n <Panel.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Panel.Indicator>\n </Panel.Trigger>\n )}\n </Panel.Header>\n <Panel.Content>{slots.content}</Panel.Content>\n </Panel.Root>\n );\n}\n"],"names":["PrimePanel","element","slots","toggleable","booleanProperty","_jsxs","Panel","Root","data-scene-id","id","defaultOpen","Header","_jsx","Title","stringProperty","Trigger","Indicator","match","i","className","Content","content"],"mappings":";;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACnE,MAAMC,UAAAA,GAAaC,eAAAA,CAAgBH,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA;IAC1D,qBACII,IAAA,CAACC,MAAMC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEN,UAAAA,EAAYA,UAAAA;QAAYO,WAAAA,EAAa,CAACN,eAAAA,CAAgBH,OAAAA,EAAS,WAAA,EAAa,KAAA,CAAA;;AAC/G,0BAAAI,IAAA,CAACC,MAAMK,MAAM,EAAA;;AACT,kCAAAC,GAAA,CAACN,MAAMO,KAAK,EAAA;AAAEC,wBAAAA,QAAAA,EAAAA,cAAAA,CAAeb,OAAAA,EAAS,QAAA;;oBACrCE,UAAAA,kBACGE,IAAA,CAACC,MAAMS,OAAO,EAAA;;AACV,0CAAAH,GAAA,CAACN,MAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,MAAA;AACnB,gCAAA,QAAA,gBAAAL,GAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;AAEjB,0CAAAP,GAAA,CAACN,MAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,QAAA;AACnB,gCAAA,QAAA,gBAAAL,GAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;;;;;AAK7B,0BAAAP,GAAA,CAACN,MAAMc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGlC;;;;"}
1
+ {"version":3,"file":"PrimePanel.js","sources":["../../../panel/PrimePanel.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 { Panel } from 'primereact/panel';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:panel` component - a titled container that can optionally collapse.\n *\n * PrimeReact 11 made `Panel` compositional, which moves one decision into the adapter that v10 made\n * internally: the collapse affordance exists only if something renders a `Panel.Trigger`. Rendering one\n * unconditionally would put a chevron on every panel, including the ones a screen declared as fixed, so\n * the trigger is tied to the same `toggleable` property that enables the behavior.\n *\n * The `collapsed` property is expressed as `defaultOpen` rather than a controlled `open`, because a\n * screen states the *initial* state; holding the panel open or shut against the user's clicks is not what\n * `collapsed: true` means.\n */\nexport function PrimePanel({ element, slots }: RegisteredComponentProps) {\n const toggleable = booleanProperty(element, 'toggleable', false);\n return (\n <Panel.Root data-scene-id={element.id} toggleable={toggleable} defaultOpen={!booleanProperty(element, 'collapsed', false)}>\n <Panel.Header>\n <Panel.Title>{stringProperty(element, 'header')}</Panel.Title>\n {toggleable && (\n <Panel.Trigger>\n <Panel.Indicator match='open'>\n <i className='pi pi-chevron-up' />\n </Panel.Indicator>\n <Panel.Indicator match='closed'>\n <i className='pi pi-chevron-down' />\n </Panel.Indicator>\n </Panel.Trigger>\n )}\n </Panel.Header>\n <Panel.Content>{slots.content}</Panel.Content>\n </Panel.Root>\n );\n}\n"],"names":["PrimePanel","element","slots","toggleable","booleanProperty","_jsxs","Panel","Root","data-scene-id","id","defaultOpen","Header","_jsx","Title","stringProperty","Trigger","Indicator","match","i","className","Content","content"],"mappings":";;;;AAOA;;;;;;;;;;;AAWC,IACM,SAASA,UAAAA,CAAW,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACnE,MAAMC,UAAAA,GAAaC,eAAAA,CAAgBH,OAAAA,EAAS,YAAA,EAAc,KAAA,CAAA;IAC1D,qBACII,IAAA,CAACC,MAAMC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeP,QAAQQ,EAAE;QAAEN,UAAAA,EAAYA,UAAAA;QAAYO,WAAAA,EAAa,CAACN,eAAAA,CAAgBH,OAAAA,EAAS,WAAA,EAAa,KAAA,CAAA;;AAC/G,0BAAAI,IAAA,CAACC,MAAMK,MAAM,EAAA;;AACT,kCAAAC,GAAA,CAACN,MAAMO,KAAK,EAAA;AAAEC,wBAAAA,QAAAA,EAAAA,cAAAA,CAAeb,OAAAA,EAAS,QAAA;;oBACrCE,UAAAA,kBACGE,IAAA,CAACC,MAAMS,OAAO,EAAA;;AACV,0CAAAH,GAAA,CAACN,MAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,MAAA;AACnB,gCAAA,QAAA,gBAAAL,GAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;AAEjB,0CAAAP,GAAA,CAACN,MAAMU,SAAS,EAAA;gCAACC,KAAAA,EAAM,QAAA;AACnB,gCAAA,QAAA,gBAAAL,GAAA,CAACM,GAAAA,EAAAA;oCAAEC,SAAAA,EAAU;;;;;;;AAK7B,0BAAAP,GAAA,CAACN,MAAMc,OAAO,EAAA;AAAElB,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMmB;;;;AAGlC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeScrollPanel.js","sources":["../../../panel/PrimeScrollPanel.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 { ScrollArea } from 'primereact/scrollarea';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty } from '../properties';\n\n/**\n * The `PrimeReact:scrollPanel` component - a bounded region with themed scrollbars.\n *\n * A height is always applied: a scroll area with no bound grows to fit its content and never scrolls,\n * which looks like the component doing nothing at all.\n *\n * PrimeReact 11 renamed `ScrollPanel` to `ScrollArea` and split it into parts. The viewport, the content\n * wrapper and the scrollbar are all rendered here rather than by the component, because v11 renders no\n * part it was not given - a `ScrollArea.Root` on its own clips nothing and shows no bar. Only the\n * vertical scrollbar is composed in, matching the fixed-height-and-full-width shape this adapter imposes;\n * the part hides itself when the content happens to fit, so it costs nothing when it is not needed. The\n * abstract Scene name stays `scrollPanel` so existing screens keep resolving.\n */\nexport function PrimeScrollPanel({ element, slots }: RegisteredComponentProps) {\n return (\n <ScrollArea.Root data-scene-id={element.id} style={{ height: `${numberProperty(element, 'height', 200)}px`, width: '100%' }}>\n <ScrollArea.Viewport>\n <ScrollArea.Content>{slots.content}</ScrollArea.Content>\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Handle />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n );\n}\n"],"names":["PrimeScrollPanel","element","slots","_jsxs","ScrollArea","Root","data-scene-id","id","style","height","numberProperty","width","_jsx","Viewport","Content","content","Scrollbar","orientation","Handle"],"mappings":";;;;AAOA;;;;;;;;;;;;AAYC,IACM,SAASA,gBAAAA,CAAiB,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACzE,qBACIC,IAAA,CAACC,WAAWC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QAAEC,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,cAAAA,CAAeT,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE,CAAC;YAAEU,KAAAA,EAAO;AAAO,SAAA;;AACtH,0BAAAC,GAAA,CAACR,WAAWS,QAAQ,EAAA;wCAChBD,GAAA,CAACR,WAAWU,OAAO,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMa;;;AAE/B,0BAAAH,GAAA,CAACR,WAAWY,SAAS,EAAA;gBAACC,WAAAA,EAAY,UAAA;wCAC9BL,GAAA,CAACR,WAAWc,MAAM,EAAA,EAAA;;;;AAIlC;;;;"}
1
+ {"version":3,"file":"PrimeScrollPanel.js","sources":["../../../panel/PrimeScrollPanel.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 { ScrollArea } from 'primereact/scrollarea';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty } from '../properties';\n\n/**\n * The `PrimeReact:scrollPanel` component - a bounded region with themed scrollbars.\n *\n * A height is always applied: a scroll area with no bound grows to fit its content and never scrolls,\n * which looks like the component doing nothing at all.\n *\n * PrimeReact 11 renamed `ScrollPanel` to `ScrollArea` and split it into parts. The viewport, the content\n * wrapper and the scrollbar are all rendered here rather than by the component, because v11 renders no\n * part it was not given - a `ScrollArea.Root` on its own clips nothing and shows no bar. Only the\n * vertical scrollbar is composed in, matching the fixed-height-and-full-width shape this adapter imposes;\n * the part hides itself when the content happens to fit, so it costs nothing when it is not needed. The\n * abstract Scene name stays `scrollPanel` so existing screens keep resolving.\n */\nexport function PrimeScrollPanel({ element, slots }: RegisteredComponentProps) {\n return (\n <ScrollArea.Root data-scene-id={element.id} style={{ height: `${numberProperty(element, 'height', 200)}px`, width: '100%' }}>\n <ScrollArea.Viewport>\n <ScrollArea.Content>{slots.content}</ScrollArea.Content>\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Handle />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n );\n}\n"],"names":["PrimeScrollPanel","element","slots","_jsxs","ScrollArea","Root","data-scene-id","id","style","height","numberProperty","width","_jsx","Viewport","Content","content","Scrollbar","orientation","Handle"],"mappings":";;;;AAOA;;;;;;;;;;;;AAYC,IACM,SAASA,gBAAAA,CAAiB,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACzE,qBACIC,IAAA,CAACC,WAAWC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;QAAEC,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,cAAAA,CAAeT,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE,CAAC;YAAEU,KAAAA,EAAO;AAAO,SAAA;;AACtH,0BAAAC,GAAA,CAACR,WAAWS,QAAQ,EAAA;wCAChBD,GAAA,CAACR,WAAWU,OAAO,EAAA;AAAEZ,oBAAAA,QAAAA,EAAAA,KAAAA,CAAMa;;;AAE/B,0BAAAH,GAAA,CAACR,WAAWY,SAAS,EAAA;gBAACC,WAAAA,EAAY,UAAA;wCAC9BL,GAAA,CAACR,WAAWc,MAAM,EAAA,EAAA;;;;AAIlC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeSplitter.js","sources":["../../../panel/PrimeSplitter.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 { Fragment } from 'react';\nimport { Splitter } from 'primereact/splitter';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:splitter` component - regions separated by a bar the user can drag.\n *\n * One panel per child in the `content` slot, sized evenly. Splitter needs an explicit height because it\n * lays its panels out absolutely; without one the whole component collapses.\n *\n * PrimeReact 11 moved sizing off the individual panel and onto the root: a v10 `SplitterPanel size={50}`\n * is now one entry in the root's `defaultSizes` array, so the even split is computed once up front rather\n * than repeated per panel. It also stopped inserting the drag bars for you - `Splitter.Gutter` is a part\n * the composition supplies between panels, and a splitter rendered without them is simply not resizable.\n * `defaultSizes` is used rather than `sizes` so the component owns its sizes after the first drag; the\n * controlled form would snap the panels back to the even split on every render.\n *\n * The Scene property keeps the name `layout` even though v11 calls the prop `orientation`, because a\n * screen's property vocabulary is this package's contract with authored content.\n */\nexport function PrimeSplitter({ element, slots }: RegisteredComponentProps) {\n const panels = slots.content ?? [];\n const count = Math.max(panels.length, 2);\n return (\n <Splitter.Root\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n defaultSizes={Array.from({ length: count }, () => 100 / count)}\n style={{ height: `${numberProperty(element, 'height', 200)}px` }}>\n {Array.from({ length: count }, (_, index) => (\n <Fragment key={index}>\n {index > 0 && (\n <Splitter.Gutter>\n <Splitter.Handle />\n </Splitter.Gutter>\n )}\n <Splitter.Panel className='flex items-center justify-center'>{panels[index]}</Splitter.Panel>\n </Fragment>\n ))}\n </Splitter.Root>\n );\n}\n"],"names":["PrimeSplitter","element","slots","panels","content","count","Math","max","length","_jsx","Splitter","Root","data-scene-id","id","orientation","stringProperty","defaultSizes","Array","from","style","height","numberProperty","_","index","_jsxs","Fragment","Gutter","Handle","Panel","className"],"mappings":";;;;;AAQA;;;;;;;;;;;;;;;AAeC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACtE,IAAA,MAAMC,MAAAA,GAASD,KAAAA,CAAME,OAAO,IAAI,EAAE;AAClC,IAAA,MAAMC,QAAQC,IAAAA,CAAKC,GAAG,CAACJ,MAAAA,CAAOK,MAAM,EAAE,CAAA,CAAA;IACtC,qBACIC,GAAA,CAACC,SAASC,IAAI,EAAA;AACVC,QAAAA,eAAAA,EAAeX,QAAQY,EAAE;QACzBC,WAAAA,EAAaC,cAAAA,CAAed,SAAS,QAAA,EAAU,YAAA,CAAA;QAC/Ce,YAAAA,EAAcC,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,IAAM,GAAA,GAAMA,KAAAA,CAAAA;QACxDc,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,cAAAA,CAAepB,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE;AAAE,SAAA;AAC9DgB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;SAAM,EAAG,CAACiB,CAAAA,EAAGC,KAAAA,iBAC/BC,IAAA,CAACC,QAAAA,EAAAA;;oBACIF,KAAAA,GAAQ,CAAA,kBACLd,GAAA,CAACC,QAAAA,CAASgB,MAAM,EAAA;gDACZjB,GAAA,CAACC,SAASiB,MAAM,EAAA,EAAA;;AAGxB,kCAAAlB,GAAA,CAACC,SAASkB,KAAK,EAAA;wBAACC,SAAAA,EAAU,kCAAA;AAAoC1B,wBAAAA,QAAAA,EAAAA,MAAM,CAACoB,KAAAA;;;AAN1DA,aAAAA,EAAAA,KAAAA,CAAAA;;AAW/B;;;;"}
1
+ {"version":3,"file":"PrimeSplitter.js","sources":["../../../panel/PrimeSplitter.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 { Fragment } from 'react';\nimport { Splitter } from 'primereact/splitter';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:splitter` component - regions separated by a bar the user can drag.\n *\n * One panel per child in the `content` slot, sized evenly. Splitter needs an explicit height because it\n * lays its panels out absolutely; without one the whole component collapses.\n *\n * PrimeReact 11 moved sizing off the individual panel and onto the root: a v10 `SplitterPanel size={50}`\n * is now one entry in the root's `defaultSizes` array, so the even split is computed once up front rather\n * than repeated per panel. It also stopped inserting the drag bars for you - `Splitter.Gutter` is a part\n * the composition supplies between panels, and a splitter rendered without them is simply not resizable.\n * `defaultSizes` is used rather than `sizes` so the component owns its sizes after the first drag; the\n * controlled form would snap the panels back to the even split on every render.\n *\n * The Scene property keeps the name `layout` even though v11 calls the prop `orientation`, because a\n * screen's property vocabulary is this package's contract with authored content.\n */\nexport function PrimeSplitter({ element, slots }: RegisteredComponentProps) {\n const panels = slots.content ?? [];\n const count = Math.max(panels.length, 2);\n return (\n <Splitter.Root\n data-scene-id={element.id}\n orientation={stringProperty(element, 'layout', 'horizontal') as 'horizontal' | 'vertical'}\n defaultSizes={Array.from({ length: count }, () => 100 / count)}\n style={{ height: `${numberProperty(element, 'height', 200)}px` }}>\n {Array.from({ length: count }, (_, index) => (\n <Fragment key={index}>\n {index > 0 && (\n <Splitter.Gutter>\n <Splitter.Handle />\n </Splitter.Gutter>\n )}\n <Splitter.Panel className='flex items-center justify-center'>{panels[index]}</Splitter.Panel>\n </Fragment>\n ))}\n </Splitter.Root>\n );\n}\n"],"names":["PrimeSplitter","element","slots","panels","content","count","Math","max","length","_jsx","Splitter","Root","data-scene-id","id","orientation","stringProperty","defaultSizes","Array","from","style","height","numberProperty","_","index","_jsxs","Fragment","Gutter","Handle","Panel","className"],"mappings":";;;;;AAQA;;;;;;;;;;;;;;;AAeC,IACM,SAASA,aAAAA,CAAc,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;AACtE,IAAA,MAAMC,MAAAA,GAASD,KAAAA,CAAME,OAAO,IAAI,EAAE;AAClC,IAAA,MAAMC,QAAQC,IAAAA,CAAKC,GAAG,CAACJ,MAAAA,CAAOK,MAAM,EAAE,CAAA,CAAA;IACtC,qBACIC,GAAA,CAACC,SAASC,IAAI,EAAA;AACVC,QAAAA,eAAAA,EAAeX,QAAQY,EAAE;QACzBC,WAAAA,EAAaC,cAAAA,CAAed,SAAS,QAAA,EAAU,YAAA,CAAA;QAC/Ce,YAAAA,EAAcC,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;AAAM,SAAA,EAAG,IAAM,GAAA,GAAMA,KAAAA,CAAAA;QACxDc,KAAAA,EAAO;AAAEC,YAAAA,MAAAA,EAAQ,GAAGC,cAAAA,CAAepB,OAAAA,EAAS,QAAA,EAAU,GAAA,CAAA,CAAK,EAAE;AAAE,SAAA;AAC9DgB,QAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;YAAEV,MAAAA,EAAQH;SAAM,EAAG,CAACiB,CAAAA,EAAGC,KAAAA,iBAC/BC,IAAA,CAACC,QAAAA,EAAAA;;oBACIF,KAAAA,GAAQ,CAAA,kBACLd,GAAA,CAACC,QAAAA,CAASgB,MAAM,EAAA;gDACZjB,GAAA,CAACC,SAASiB,MAAM,EAAA,EAAA;;AAGxB,kCAAAlB,GAAA,CAACC,SAASkB,KAAK,EAAA;wBAACC,SAAAA,EAAU,kCAAA;AAAoC1B,wBAAAA,QAAAA,EAAAA,MAAM,CAACoB,KAAAA;;;AAN1DA,aAAAA,EAAAA,KAAAA,CAAAA;;AAW/B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeStepper.js","sources":["../../../panel/PrimeStepper.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { Stepper } from 'primereact/stepper';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringArrayProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:stepper` component - a wizard whose progress is shown as numbered steps.\n *\n * The adapter renders the Back and Next buttons itself. Without them the steps render but nothing can\n * move between them, which is a stepper that does not step.\n *\n * The reason changed with PrimeReact 11 even though the conclusion did not. In v10 the component owned\n * the active step and exposed `nextCallback` / `prevCallback` on a ref for someone else to call; v11 is\n * headless and owns nothing - the active step is `value` on `Stepper.Root`, so the adapter holds it in\n * state and the buttons set it. That also makes the step headers work: clicking one arrives as\n * `onValueChange`, which is routed into the same state rather than being handled separately.\n *\n * v11 also merged `primereact/stepperpanel` into `primereact/stepper`, splitting each step into a\n * `Stepper.Step` in the header list and a matching `Stepper.Panel` in the body, joined by value.\n *\n * **Dropped:** v10's `orientation` property has no equivalent - v11's headless stepper lays out\n * horizontally and leaves a vertical arrangement to CSS. The authored value is still forwarded as a\n * `data-orientation` attribute so a theme can act on it, but nothing in the component reads it.\n */\nexport function PrimeStepper({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n const [activeStep, setActiveStep] = useState(0);\n\n // A screen can shrink its step list between renders, which would leave the active step pointing past\n // the end and show no panel at all. Clamping keeps the value inside the set of steps that exist.\n const current = Math.min(activeStep, Math.max(count - 1, 0));\n\n return (\n <Stepper.Root\n data-scene-id={element.id}\n data-orientation={stringProperty(element, 'orientation', 'horizontal')}\n value={String(current)}\n linear={booleanProperty(element, 'linear', false)}\n onValueChange={(event) => {\n const selected = Number(event.value);\n if (!Number.isNaN(selected)) setActiveStep(selected);\n }}>\n <Stepper.List>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Step key={index} value={String(index)}>\n <Stepper.Header>\n <Stepper.Number>{index + 1}</Stepper.Number>\n <Stepper.Title>{headers[index] ?? `Step ${index + 1}`}</Stepper.Title>\n </Stepper.Header>\n {index < count - 1 && <Stepper.Separator />}\n </Stepper.Step>\n ))}\n </Stepper.List>\n <Stepper.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Panel key={index} value={String(index)}>\n <div className='flex flex-col gap-4'>\n {bodies[index]}\n <div className='flex gap-2'>\n {index > 0 && (\n <Button severity='secondary' onClick={() => setActiveStep(index - 1)}>\n Back\n </Button>\n )}\n {index < count - 1 && <Button onClick={() => setActiveStep(index + 1)}>Next</Button>}\n </div>\n </div>\n </Stepper.Panel>\n ))}\n </Stepper.Panels>\n </Stepper.Root>\n );\n}\n"],"names":["PrimeStepper","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","activeStep","setActiveStep","useState","current","min","_jsxs","Stepper","Root","data-scene-id","id","data-orientation","stringProperty","value","String","linear","booleanProperty","onValueChange","event","selected","Number","isNaN","_jsx","List","Array","from","_","index","Step","Header","Title","Separator","Panels","Panel","div","className","Button","severity","onClick"],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;;;;AAkBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,OAAAA,GAAUC,oBAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;AACpD,IAAA,MAAM,CAACC,UAAAA,EAAYC,aAAAA,CAAc,GAAGC,QAAAA,CAAS,CAAA,CAAA;;;IAI7C,MAAMC,OAAAA,GAAUN,KAAKO,GAAG,CAACJ,YAAYH,IAAAA,CAAKC,GAAG,CAACF,KAAAA,GAAQ,CAAA,EAAG,CAAA,CAAA,CAAA;IAEzD,qBACIS,IAAA,CAACC,QAAQC,IAAI,EAAA;AACTC,QAAAA,eAAAA,EAAelB,QAAQmB,EAAE;QACzBC,kBAAAA,EAAkBC,cAAAA,CAAerB,SAAS,aAAA,EAAe,YAAA,CAAA;AACzDsB,QAAAA,KAAAA,EAAOC,MAAAA,CAAOV,OAAAA,CAAAA;QACdW,MAAAA,EAAQC,eAAAA,CAAgBzB,SAAS,QAAA,EAAU,KAAA,CAAA;AAC3C0B,QAAAA,aAAAA,EAAe,CAACC,KAAAA,GAAAA;YACZ,MAAMC,QAAAA,GAAWC,MAAAA,CAAOF,KAAAA,CAAML,KAAK,CAAA;AACnC,YAAA,IAAI,CAACO,MAAAA,CAAOC,KAAK,CAACF,WAAWjB,aAAAA,CAAciB,QAAAA,CAAAA;AAC/C,QAAA,CAAA;;AACA,0BAAAG,GAAA,CAACf,QAAQgB,IAAI,EAAA;AACRC,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,C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I,4CAAA,QAAA,EAAA;;wCAIzEA,KAAAA,GAAQ9B,KAAAA,GAAQ,mBAAKyB,GAAA,CAACc,MAAAA,EAAAA;4CAAOE,OAAAA,EAAS,IAAMpC,cAAcyB,KAAAA,GAAQ,CAAA,CAAA;AAAI,4CAAA,QAAA,EAAA;;;;;;AAT/DA,qBAAAA,EAAAA,KAAAA,CAAAA;;;;AAiBxC;;;;"}
1
+ {"version":3,"file":"PrimeStepper.js","sources":["../../../panel/PrimeStepper.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 } from 'react';\nimport { Button } from 'primereact/button';\nimport { Stepper } from 'primereact/stepper';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { booleanProperty, stringArrayProperty, stringProperty } from '../properties';\n\n/**\n * The `PrimeReact:stepper` component - a wizard whose progress is shown as numbered steps.\n *\n * The adapter renders the Back and Next buttons itself. Without them the steps render but nothing can\n * move between them, which is a stepper that does not step.\n *\n * The reason changed with PrimeReact 11 even though the conclusion did not. In v10 the component owned\n * the active step and exposed `nextCallback` / `prevCallback` on a ref for someone else to call; v11 is\n * headless and owns nothing - the active step is `value` on `Stepper.Root`, so the adapter holds it in\n * state and the buttons set it. That also makes the step headers work: clicking one arrives as\n * `onValueChange`, which is routed into the same state rather than being handled separately.\n *\n * v11 also merged `primereact/stepperpanel` into `primereact/stepper`, splitting each step into a\n * `Stepper.Step` in the header list and a matching `Stepper.Panel` in the body, joined by value.\n *\n * **Dropped:** v10's `orientation` property has no equivalent - v11's headless stepper lays out\n * horizontally and leaves a vertical arrangement to CSS. The authored value is still forwarded as a\n * `data-orientation` attribute so a theme can act on it, but nothing in the component reads it.\n */\nexport function PrimeStepper({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n const [activeStep, setActiveStep] = useState(0);\n\n // A screen can shrink its step list between renders, which would leave the active step pointing past\n // the end and show no panel at all. Clamping keeps the value inside the set of steps that exist.\n const current = Math.min(activeStep, Math.max(count - 1, 0));\n\n return (\n <Stepper.Root\n data-scene-id={element.id}\n data-orientation={stringProperty(element, 'orientation', 'horizontal')}\n value={String(current)}\n linear={booleanProperty(element, 'linear', false)}\n onValueChange={(event) => {\n const selected = Number(event.value);\n if (!Number.isNaN(selected)) setActiveStep(selected);\n }}>\n <Stepper.List>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Step key={index} value={String(index)}>\n <Stepper.Header>\n <Stepper.Number>{index + 1}</Stepper.Number>\n <Stepper.Title>{headers[index] ?? `Step ${index + 1}`}</Stepper.Title>\n </Stepper.Header>\n {index < count - 1 && <Stepper.Separator />}\n </Stepper.Step>\n ))}\n </Stepper.List>\n <Stepper.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Stepper.Panel key={index} value={String(index)}>\n <div className='flex flex-col gap-4'>\n {bodies[index]}\n <div className='flex gap-2'>\n {index > 0 && (\n <Button severity='secondary' onClick={() => setActiveStep(index - 1)}>\n Back\n </Button>\n )}\n {index < count - 1 && <Button onClick={() => setActiveStep(index + 1)}>Next</Button>}\n </div>\n </div>\n </Stepper.Panel>\n ))}\n </Stepper.Panels>\n </Stepper.Root>\n );\n}\n"],"names":["PrimeStepper","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","activeStep","setActiveStep","useState","current","min","_jsxs","Stepper","Root","data-scene-id","id","data-orientation","stringProperty","value","String","linear","booleanProperty","onValueChange","event","selected","Number","isNaN","_jsx","List","Array","from","_","index","Step","Header","Title","Separator","Panels","Panel","div","className","Button","severity","onClick"],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;;;;AAkBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,OAAAA,GAAUC,oBAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,K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ources":["../../../panel/PrimeTabView.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 { Tabs } from 'primereact/tabs';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:tabView` component - content behind selectable tabs.\n *\n * Pairs a `headers` property with the `content` slot by position, for the same reason\n * {@link PrimeAccordion} does.\n *\n * PrimeReact 11 merged the v10 `primereact/tabview` and `primereact/tabpanel` modules into a single\n * compositional `primereact/tabs`, where the strip of tabs and the stack of panels are two sibling\n * subtrees joined by matching `value`s rather than one list of `TabPanel` elements read twice. The\n * adapter therefore walks the same range twice - once for `Tabs.List`, once for `Tabs.Panels` - and uses\n * the index as the shared value. `Tabs.Indicator` is composed in explicitly because v11 renders no part\n * it was not given, and without it the active tab gets no underline at all.\n *\n * `activeIndex` is passed as `defaultValue` rather than `value` for the reason described on\n * {@link PrimeAccordion}: a controlled value would make every tab unselectable.\n *\n * The abstract Scene name stays `tabView` so existing screens keep resolving.\n */\nexport function PrimeTabView({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Tabs.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n <Tabs.List>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Tab key={index} value={String(index)}>\n {headers[index] ?? `Tab ${index + 1}`}\n </Tabs.Tab>\n ))}\n <Tabs.Indicator />\n </Tabs.List>\n <Tabs.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Panel key={index} value={String(index)}>\n {bodies[index]}\n </Tabs.Panel>\n ))}\n </Tabs.Panels>\n </Tabs.Root>\n );\n}\n"],"names":["PrimeTabView","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsxs","Tabs","Root","data-scene-id","id","defaultValue","String","numberProper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AaH,wBAAAA,KAAAA,EAAOT,MAAAA,CAAOM,KAAAA,CAAAA;AACjClB,wBAAAA,QAAAA,EAAAA,MAAM,CAACkB,KAAAA;AADKA,qBAAAA,EAAAA,KAAAA,CAAAA;;;;AAOrC;;;;"}
1
+ {"version":3,"file":"PrimeTabView.js","sources":["../../../panel/PrimeTabView.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 { Tabs } from 'primereact/tabs';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\nimport { numberProperty, stringArrayProperty } from '../properties';\n\n/**\n * The `PrimeReact:tabView` component - content behind selectable tabs.\n *\n * Pairs a `headers` property with the `content` slot by position, for the same reason\n * {@link PrimeAccordion} does.\n *\n * PrimeReact 11 merged the v10 `primereact/tabview` and `primereact/tabpanel` modules into a single\n * compositional `primereact/tabs`, where the strip of tabs and the stack of panels are two sibling\n * subtrees joined by matching `value`s rather than one list of `TabPanel` elements read twice. The\n * adapter therefore walks the same range twice - once for `Tabs.List`, once for `Tabs.Panels` - and uses\n * the index as the shared value. `Tabs.Indicator` is composed in explicitly because v11 renders no part\n * it was not given, and without it the active tab gets no underline at all.\n *\n * `activeIndex` is passed as `defaultValue` rather than `value` for the reason described on\n * {@link PrimeAccordion}: a controlled value would make every tab unselectable.\n *\n * The abstract Scene name stays `tabView` so existing screens keep resolving.\n */\nexport function PrimeTabView({ element, slots }: RegisteredComponentProps) {\n const headers = stringArrayProperty(element, 'headers');\n const bodies = slots.content ?? [];\n const count = Math.max(headers.length, bodies.length);\n return (\n <Tabs.Root data-scene-id={element.id} defaultValue={String(numberProperty(element, 'activeIndex', 0))}>\n <Tabs.List>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Tab key={index} value={String(index)}>\n {headers[index] ?? `Tab ${index + 1}`}\n </Tabs.Tab>\n ))}\n <Tabs.Indicator />\n </Tabs.List>\n <Tabs.Panels>\n {Array.from({ length: count }, (_, index) => (\n <Tabs.Panel key={index} value={String(index)}>\n {bodies[index]}\n </Tabs.Panel>\n ))}\n </Tabs.Panels>\n </Tabs.Root>\n );\n}\n"],"names":["PrimeTabView","element","slots","headers","stringArrayProperty","bodies","content","count","Math","max","length","_jsxs","Tabs","Root","data-scene-id","id","defaultValue","String","numberProperty","List","Array","from","_","index","_jsx","Tab","value","Indicator","Panels","Panel"],"mappings":";;;;AAOA;;;;;;;;;;;;;;;;;AAiBC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,MAAMC,OAAAA,GAAUC,oBAAoBH,OAAAA,EAAS,SAAA,CAAA;AAC7C,IAAA,MAAMI,MAAAA,GAASH,KAAAA,CAAMI,OAAO,IAAI,EAAE;IAClC,MAAMC,KAAAA,GAAQC,KAAKC,GAAG,CAACN,QAAQO,MAAM,EAAEL,OAAOK,MAAM,CAAA;IACpD,qBACIC,IAAA,CAACC,KAAKC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeb,QAAQc,EAAE;QAAEC,YAAAA,EAAcC,MAAAA,CAAOC,cAAAA,CAAejB,OAAAA,EAAS,aAAA,EAAe,CAAA,CAAA,CAAA;;AAC9F,0BAAAU,IAAA,CAACC,KAAKO,IAAI,EAAA;;AACLC,oBAAAA,KAAAA,CAAMC,IAAI,CAAC;wBAAEX,MAAAA,EAAQH;AAAM,qBAAA,EAAG,CAACe,CAAAA,EAAGC,KAAAA,iBAC/BC,GAAA,CAACZ,KAAKa,GAAG,EAAA;AAAaC,4BAAAA,KAAAA,EAAOT,MAAAA,CAAOM,KAAAA,CAAAA;AAC/BpB,4BAAAA,QAAAA,EAAAA,OAAO,CAACoB,KAAAA,CAAM,IAAI,CAAC,IAAI,EAAEA,QAAQ,CAAA,CAAA;AADvBA,yBAAAA,EAAAA,KAAAA,CAAAA,CAAAA;AAInB,kCAAAC,GAAA,CAACZ,KAAKe,SAAS,EAAA,EAAA;;;AAEnB,0BAAAH,GAAA,CAACZ,KAAKgB,MAAM,EAAA;AACPR,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMC,IAAI,CAAC;oBAAEX,MAAAA,EAAQH;AAAM,iBAAA,EAAG,CAACe,CAAAA,EAAGC,KAAAA,iBAC/BC,GAAA,CAACZ,KAAKiB,KAAK,EAAA;AAAaH,wBAAAA,KAAAA,EAAOT,MAAAA,CAAOM,KAAAA,CAAAA;AACjClB,wBAAAA,QAAAA,EAAAA,MAAM,CAACkB,KAAAA;AADKA,qBAAAA,EAAAA,KAAAA,CAAAA;;;;AAOrC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrimeToolbar.js","sources":["../../../panel/PrimeToolbar.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 { Toolbar } from 'primereact/toolbar';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\n\n/**\n * The `PrimeReact:toolbar` component - a bar with content anchored to its start, center and end.\n *\n * The three regions map onto three named slots rather than properties, because what goes into them is\n * other components - buttons, a search field, a menu - not values.\n *\n * PrimeReact 11 turned those regions from `start` / `center` / `end` render props into `Toolbar.Start`,\n * `Toolbar.Center` and `Toolbar.End` parts, which happens to be a closer match for what this adapter was\n * already doing: each region is now children rather than a prop holding elements. All three are always\n * rendered, so the flex layout keeps its three anchors and a toolbar with only an end region still pins\n * that region to the end instead of collapsing it leftwards.\n */\nexport function PrimeToolbar({ element, slots }: RegisteredComponentProps) {\n return (\n <Toolbar.Root data-scene-id={element.id}>\n <Toolbar.Start>{slots.start}</Toolbar.Start>\n <Toolbar.Center>{slots.center}</Toolbar.Center>\n <Toolbar.End>{slots.end ?? slots.content}</Toolbar.End>\n </Toolbar.Root>\n );\n}\n"],"names":["PrimeToolbar","element","slots","_jsxs","Toolbar","Root","data-scene-id","id","_jsx","Start","start","Center","center","End","end","content"],"mappings":";;;AAMA;;;;;;;;;;;AAWC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,qBACIC,IAAA,CAACC,QAAQC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;;AACnC,0BAAAC,GAAA,CAACJ,QAAQK,KAAK,EAAA;AAAEP,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMQ;;AACtB,0BAAAF,GAAA,CAACJ,QAAQO,MAAM,EAAA;AAAET,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMU;;AACvB,0BAAAJ,GAAA,CAACJ,QAAQS,GAAG,EAAA;0BAAEX,KAAAA,CAAMY,GAAG,IAAIZ,KAAAA,CAAMa;;;;AAG7C;;;;"}
1
+ {"version":3,"file":"PrimeToolbar.js","sources":["../../../panel/PrimeToolbar.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 { Toolbar } from 'primereact/toolbar';\nimport { RegisteredComponentProps } from '@cratis/scene.react';\n\n/**\n * The `PrimeReact:toolbar` component - a bar with content anchored to its start, center and end.\n *\n * The three regions map onto three named slots rather than properties, because what goes into them is\n * other components - buttons, a search field, a menu - not values.\n *\n * PrimeReact 11 turned those regions from `start` / `center` / `end` render props into `Toolbar.Start`,\n * `Toolbar.Center` and `Toolbar.End` parts, which happens to be a closer match for what this adapter was\n * already doing: each region is now children rather than a prop holding elements. All three are always\n * rendered, so the flex layout keeps its three anchors and a toolbar with only an end region still pins\n * that region to the end instead of collapsing it leftwards.\n */\nexport function PrimeToolbar({ element, slots }: RegisteredComponentProps) {\n return (\n <Toolbar.Root data-scene-id={element.id}>\n <Toolbar.Start>{slots.start}</Toolbar.Start>\n <Toolbar.Center>{slots.center}</Toolbar.Center>\n <Toolbar.End>{slots.end ?? slots.content}</Toolbar.End>\n </Toolbar.Root>\n );\n}\n"],"names":["PrimeToolbar","element","slots","_jsxs","Toolbar","Root","data-scene-id","id","_jsx","Start","start","Center","center","End","end","content"],"mappings":";;;AAMA;;;;;;;;;;;AAWC,IACM,SAASA,YAAAA,CAAa,EAAEC,OAAO,EAAEC,KAAK,EAA4B,EAAA;IACrE,qBACIC,IAAA,CAACC,QAAQC,IAAI,EAAA;AAACC,QAAAA,eAAAA,EAAeL,QAAQM,EAAE;;AACnC,0BAAAC,GAAA,CAACJ,QAAQK,KAAK,EAAA;AAAEP,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMQ;;AACtB,0BAAAF,GAAA,CAACJ,QAAQO,MAAM,EAAA;AAAET,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMU;;AACvB,0BAAAJ,GAAA,CAACJ,QAAQS,GAAG,EAAA;0BAAEX,KAAAA,CAAMY,GAAG,IAAIZ,KAAAA,CAAMa;;;;AAG7C;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"primeReactComponents.js","sources":["../../primeReactComponents.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 { ComponentRegistry, componentRegistryKey } from '@cratis/scene.react';\nimport { PrimeButton, PrimeButtonGroup, PrimeSpeedDial, PrimeSplitButton } from './button';\nimport {\n PrimeColumn,\n PrimeDataTable,\n PrimeDataView,\n PrimeOrderList,\n PrimeOrganizationChart,\n PrimePaginator,\n PrimePickList,\n PrimeTimeline,\n PrimeTree,\n} from './data';\nimport {\n PrimeAutoComplete,\n PrimeCalendar,\n PrimeCheckbox,\n PrimeChips,\n PrimeColorPicker,\n PrimeDropdown,\n PrimeFloatLabel,\n PrimeIconField,\n PrimeInputNumber,\n PrimeInputText,\n PrimeInputTextarea,\n PrimeKnob,\n PrimeListBox,\n PrimeMultiSelect,\n PrimePassword,\n PrimeRadioButton,\n PrimeRating,\n PrimeSelectButton,\n PrimeSlider,\n PrimeToggleSwitch,\n PrimeTreeSelect,\n} from './form';\nimport { PrimeCarousel, PrimeGalleria, PrimeImage } from './media';\nimport {\n PrimeBreadcrumb,\n PrimeContextMenu,\n PrimeDock,\n PrimeMegaMenu,\n PrimeMenu,\n PrimeMenubar,\n PrimePanelMenu,\n PrimeSteps,\n PrimeTabMenu,\n PrimeTieredMenu,\n} from './menu';\nimport { PrimeInlineMessage, PrimeMessage, PrimeToast } from './messages';\nimport {\n PrimeAvatar,\n PrimeBadge,\n PrimeBlockUI,\n PrimeChip,\n PrimeInplace,\n PrimeProgressBar,\n PrimeProgressSpinner,\n PrimeScrollTop,\n PrimeSkeleton,\n PrimeTag,\n PrimeTerminal,\n} from './misc';\nimport { PrimeConfirmDialog, PrimeDialog, PrimeOverlayPanel, PrimeSidebar, PrimeTooltip } from './overlay';\nimport {\n PrimeAccordion,\n PrimeCard,\n PrimeDivider,\n PrimeFieldset,\n PrimePanel,\n PrimeScrollPanel,\n PrimeSplitter,\n PrimeStepper,\n PrimeTabView,\n PrimeToolbar,\n} from './panel';\nimport { PrimeAction, PrimeField, PrimeSection, PrimeSummary, PrimeText, PrimeTitle } from './screen';\n\n/**\n * The `PrimeReact` package's component registry - every abstract name this package answers to, mapped to\n * the adapter that renders it.\n *\n * Three of these names - `text`, `button` and `card` - are deliberately the same ones `core` declares.\n * That is not a collision to be avoided but the mechanism working as intended: a `ui profile` listing\n * `core` and then `PrimeReact` resolves those names here and records that `core` was shadowed, so an\n * existing screen gets real themed components without being edited.\n *\n * Seven more - `table`, `column`, `title`, `field`, `section`, `summary` and `action` - are the names\n * Screenplay's screen vocabulary emits as directive kinds. Declaring them means a screen compiled from a\n * `.play` file renders through this package directly, rather than through a translation layer that would\n * have to be kept in step with the compiler.\n *\n * `table` and `dataTable` share one adapter on purpose: they are the same component under two names a\n * screen might reasonably use, and duplicating the implementation would let the two drift.\n */\nexport const primeReactComponents: ComponentRegistry = {\n [componentRegistryKey('PrimeReact', 'inputText')]: PrimeInputText,\n [componentRegistryKey('PrimeReact', 'inputTextarea')]: PrimeInputTextarea,\n [componentRegistryKey('PrimeReact', 'inputNumber')]: PrimeInputNumber,\n [componentRegistryKey('PrimeReact', 'password')]: PrimePassword,\n [componentRegistryKey('PrimeReact', 'floatLabel')]: PrimeFloatLabel,\n [componentRegistryKey('PrimeReact', 'iconField')]: PrimeIconField,\n [componentRegistryKey('PrimeReact', 'dropdown')]: PrimeDropdown,\n [componentRegistryKey('PrimeReact', 'multiSelect')]: PrimeMultiSelect,\n [componentRegistryKey('PrimeReact', 'listBox')]: PrimeListBox,\n [componentRegistryKey('PrimeReact', 'selectButton')]: PrimeSelectButton,\n [componentRegistryKey('PrimeReact', 'checkbox')]: PrimeCheckbox,\n [componentRegistryKey('PrimeReact', 'radioButton')]: PrimeRadioButton,\n [componentRegistryKey('PrimeReact', 'toggleSwitch')]: PrimeToggleSwitch,\n [componentRegistryKey('PrimeReact', 'slider')]: PrimeSlider,\n [componentRegistryKey('PrimeReact', 'rating')]: PrimeRating,\n [componentRegistryKey('PrimeReact', 'knob')]: PrimeKnob,\n [componentRegistryKey('PrimeReact', 'calendar')]: PrimeCalendar,\n [componentRegistryKey('PrimeReact', 'colorPicker')]: PrimeColorPicker,\n [componentRegistryKey('PrimeReact', 'chips')]: PrimeChips,\n [componentRegistryKey('PrimeReact', 'autoComplete')]: PrimeAutoComplete,\n [componentRegistryKey('PrimeReact', 'treeSelect')]: PrimeTreeSelect,\n\n [componentRegistryKey('PrimeReact', 'button')]: PrimeButton,\n [componentRegistryKey('PrimeReact', 'splitButton')]: PrimeSplitButton,\n [componentRegistryKey('PrimeReact', 'speedDial')]: PrimeSpeedDial,\n [componentRegistryKey('PrimeReact', 'buttonGroup')]: PrimeButtonGroup,\n\n [componentRegistryKey('PrimeReact', 'dataTable')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'table')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'column')]: PrimeColumn,\n [componentRegistryKey('PrimeReact', 'dataView')]: PrimeDataView,\n [componentRegistryKey('PrimeReact', 'tree')]: PrimeTree,\n [componentRegistryKey('PrimeReact', 'timeline')]: PrimeTimeline,\n [componentRegistryKey('PrimeReact', 'paginator')]: PrimePaginator,\n [componentRegistryKey('PrimeReact', 'orderList')]: PrimeOrderList,\n [componentRegistryKey('PrimeReact', 'pickList')]: PrimePickList,\n [componentRegistryKey('PrimeReact', 'organizationChart')]: PrimeOrganizationChart,\n\n [componentRegistryKey('PrimeReact', 'card')]: PrimeCard,\n [componentRegistryKey('PrimeReact', 'panel')]: PrimePanel,\n [componentRegistryKey('PrimeReact', 'accordion')]: PrimeAccordion,\n [componentRegistryKey('PrimeReact', 'fieldset')]: PrimeFieldset,\n [componentRegistryKey('PrimeReact', 'divider')]: PrimeDivider,\n [componentRegistryKey('PrimeReact', 'splitter')]: PrimeSplitter,\n [componentRegistryKey('PrimeReact', 'scrollPanel')]: PrimeScrollPanel,\n [componentRegistryKey('PrimeReact', 'tabView')]: PrimeTabView,\n [componentRegistryKey('PrimeReact', 'toolbar')]: PrimeToolbar,\n [componentRegistryKey('PrimeReact', 'stepper')]: PrimeStepper,\n\n [componentRegistryKey('PrimeReact', 'dialog')]: PrimeDialog,\n [componentRegistryKey('PrimeReact', 'confirmDialog')]: PrimeConfirmDialog,\n [componentRegistryKey('PrimeReact', 'overlayPanel')]: PrimeOverlayPanel,\n [componentRegistryKey('PrimeReact', 'sidebar')]: PrimeSidebar,\n [componentRegistryKey('PrimeReact', 'tooltip')]: PrimeTooltip,\n\n [componentRegistryKey('PrimeReact', 'menu')]: PrimeMenu,\n [componentRegistryKey('PrimeReact', 'menubar')]: PrimeMenubar,\n [componentRegistryKey('PrimeReact', 'breadcrumb')]: PrimeBreadcrumb,\n [componentRegistryKey('PrimeReact', 'tabMenu')]: PrimeTabMenu,\n [componentRegistryKey('PrimeReact', 'steps')]: PrimeSteps,\n [componentRegistryKey('PrimeReact', 'tieredMenu')]: PrimeTieredMenu,\n [componentRegistryKey('PrimeReact', 'panelMenu')]: PrimePanelMenu,\n [componentRegistryKey('PrimeReact', 'contextMenu')]: PrimeContextMenu,\n [componentRegistryKey('PrimeReact', 'megaMenu')]: PrimeMegaMenu,\n [componentRegistryKey('PrimeReact', 'dock')]: PrimeDock,\n\n [componentRegistryKey('PrimeReact', 'message')]: PrimeMessage,\n [componentRegistryKey('PrimeReact', 'inlineMessage')]: PrimeInlineMessage,\n [componentRegistryKey('PrimeReact', 'toast')]: PrimeToast,\n\n [componentRegistryKey('PrimeReact', 'image')]: PrimeImage,\n [componentRegistryKey('PrimeReact', 'galleria')]: PrimeGalleria,\n [componentRegistryKey('PrimeReact', 'carousel')]: PrimeCarousel,\n\n [componentRegistryKey('PrimeReact', 'avatar')]: PrimeAvatar,\n [componentRegistryKey('PrimeReact', 'badge')]: PrimeBadge,\n [componentRegistryKey('PrimeReact', 'chip')]: PrimeChip,\n [componentRegistryKey('PrimeReact', 'tag')]: PrimeTag,\n [componentRegistryKey('PrimeReact', 'progressBar')]: PrimeProgressBar,\n [componentRegistryKey('PrimeReact', 'progressSpinner')]: PrimeProgressSpinner,\n [componentRegistryKey('PrimeReact', 'skeleton')]: PrimeSkeleton,\n [componentRegistryKey('PrimeReact', 'scrollTop')]: PrimeScrollTop,\n [componentRegistryKey('PrimeReact', 'blockUI')]: PrimeBlockUI,\n [componentRegistryKey('PrimeReact', 'inplace')]: PrimeInplace,\n [componentRegistryKey('PrimeReact', 'terminal')]: PrimeTerminal,\n\n [componentRegistryKey('PrimeReact', 'text')]: PrimeText,\n [componentRegistryKey('PrimeReact', 'title')]: PrimeTitle,\n [componentRegistryKey('PrimeReact', 'field')]: PrimeField,\n [componentRegistryKey('PrimeReact', 'section')]: PrimeSection,\n [componentRegistryKey('PrimeReact', 'summary')]: PrimeSummary,\n [componentRegistryKey('PrimeReact', 'action')]: PrimeAction,\n};\n"],"names":["primeReactComponents","componentRegistryKey","PrimeInputText","PrimeInputTextarea","PrimeInputNumber","PrimePassword","PrimeFloatLabel","PrimeIconField","PrimeDropdown","PrimeMultiSelect","PrimeListBox","PrimeSelectButton","PrimeCheckbox","PrimeRadioButton","PrimeToggleSwitch","PrimeSlider","PrimeRating","PrimeKnob","PrimeCalendar","PrimeColorPicker","PrimeChips","PrimeAutoComplete","PrimeTreeSelect","PrimeButton","PrimeSplitButton","PrimeSpeedDial","PrimeButtonGroup","PrimeDataTable","PrimeColumn","PrimeDataView","PrimeTree","PrimeTimeline","PrimePaginator","PrimeOrderList","PrimePickList","PrimeOrganizationChart","PrimeCard","PrimePanel","PrimeAccordion","PrimeFieldset","PrimeDivider","PrimeSplitter","PrimeScrollPanel","PrimeTabView","PrimeToolbar","PrimeStepper","PrimeDialog","PrimeConfirmDialog","PrimeOverlayPanel","PrimeSidebar","PrimeTooltip","PrimeMenu","PrimeMenubar","PrimeBreadcrumb","PrimeTabMenu","PrimeSteps","PrimeTieredMenu","PrimePanelMenu","PrimeContextMenu","PrimeMegaMenu","PrimeDock","PrimeMessage","PrimeInlineMessage","PrimeToast","PrimeImage","PrimeGalleria","PrimeCarousel","PrimeAvatar","PrimeBadge","PrimeChip","PrimeTag","PrimeProgressBar","PrimeProgressSpinner","PrimeSkeleton","PrimeScrollTop","PrimeBlockUI","PrimeInplace","PrimeTerminal","PrimeText","PrimeTitle","PrimeField","PrimeSection","PrimeSummary","PrimeAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAgFA;;;;;;;;;;;;;;;;UAiBaA,oBAAAA,GAA0C;IACnD,CAACC,oBAAAA,CAAqB,YAAA,EAAc,WAAA,CAAA,GAAeC,cAAAA;IACnD,CAACD,oBAAAA,CAAqB,YAAA,EAAc,eAAA,CAAA,GAAmBE,kBAAAA;IACvD,CAACF,oBAAAA,CAAqB,YAAA,EAAc,aAAA,CAAA,GAAiBG,gBAAAA;IACrD,CAACH,oBAAAA,CAAqB,YAAA,EAAc,UAAA,CAAA,GAAcI,aAAAA;IAClD,CAACJ,oBAAAA,CAAqB,YAAA,EAAc,YAAA,CAAA,GAAgBK,eAAAA;IACpD,CAACL,oBAAAA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qB,YAAA,EAAc,UAAA,CAAA,GAAc4E,aAAAA;IAElD,CAAC5E,oBAAAA,CAAqB,YAAA,EAAc,MAAA,CAAA,GAAU6E,SAAAA;IAC9C,CAAC7E,oBAAAA,CAAqB,YAAA,EAAc,OAAA,CAAA,GAAW8E,UAAAA;IAC/C,CAAC9E,oBAAAA,CAAqB,YAAA,EAAc,OAAA,CAAA,GAAW+E,UAAAA;IAC/C,CAAC/E,oBAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAagF,YAAAA;IACjD,CAAChF,oBAAAA,CAAqB,YAAA,EAAc,SAAA,CAAA,GAAaiF,YAAAA;IACjD,CAACjF,oBAAAA,CAAqB,YAAA,EAAc,QAAA,CAAA,GAAYkF;AACpD;;;;"}
1
+ {"version":3,"file":"primeReactComponents.js","sources":["../../primeReactComponents.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 { ComponentRegistry, componentRegistryKey } from '@cratis/scene.react';\nimport { PrimeButton, PrimeButtonGroup, PrimeSpeedDial, PrimeSplitButton } from './button';\nimport {\n PrimeColumn,\n PrimeDataTable,\n PrimeDataView,\n PrimeOrderList,\n PrimeOrganizationChart,\n PrimePaginator,\n PrimePickList,\n PrimeTimeline,\n PrimeTree,\n} from './data';\nimport {\n PrimeAutoComplete,\n PrimeCalendar,\n PrimeCheckbox,\n PrimeChips,\n PrimeColorPicker,\n PrimeDropdown,\n PrimeFloatLabel,\n PrimeIconField,\n PrimeInputNumber,\n PrimeInputText,\n PrimeInputTextarea,\n PrimeKnob,\n PrimeListBox,\n PrimeMultiSelect,\n PrimePassword,\n PrimeRadioButton,\n PrimeRating,\n PrimeSelectButton,\n PrimeSlider,\n PrimeToggleSwitch,\n PrimeTreeSelect,\n} from './form';\nimport { PrimeCarousel, PrimeGalleria, PrimeImage } from './media';\nimport {\n PrimeBreadcrumb,\n PrimeContextMenu,\n PrimeDock,\n PrimeMegaMenu,\n PrimeMenu,\n PrimeMenubar,\n PrimePanelMenu,\n PrimeSteps,\n PrimeTabMenu,\n PrimeTieredMenu,\n} from './menu';\nimport { PrimeInlineMessage, PrimeMessage, PrimeToast } from './messages';\nimport {\n PrimeAvatar,\n PrimeBadge,\n PrimeBlockUI,\n PrimeChip,\n PrimeInplace,\n PrimeProgressBar,\n PrimeProgressSpinner,\n PrimeScrollTop,\n PrimeSkeleton,\n PrimeTag,\n PrimeTerminal,\n} from './misc';\nimport { PrimeConfirmDialog, PrimeDialog, PrimeOverlayPanel, PrimeSidebar, PrimeTooltip } from './overlay';\nimport {\n PrimeAccordion,\n PrimeCard,\n PrimeDivider,\n PrimeFieldset,\n PrimePanel,\n PrimeScrollPanel,\n PrimeSplitter,\n PrimeStepper,\n PrimeTabView,\n PrimeToolbar,\n} from './panel';\nimport { PrimeAction, PrimeField, PrimeSection, PrimeSummary, PrimeText, PrimeTitle } from './screen';\n\n/**\n * The `PrimeReact` package's component registry - every abstract name this package answers to, mapped to\n * the adapter that renders it.\n *\n * Three of these names - `text`, `button` and `card` - are deliberately the same ones `core` declares.\n * That is not a collision to be avoided but the mechanism working as intended: a `ui profile` listing\n * `core` and then `PrimeReact` resolves those names here and records that `core` was shadowed, so an\n * existing screen gets real themed components without being edited.\n *\n * Seven more - `table`, `column`, `title`, `field`, `section`, `summary` and `action` - are the names\n * Screenplay's screen vocabulary emits as directive kinds. Declaring them means a screen compiled from a\n * `.play` file renders through this package directly, rather than through a translation layer that would\n * have to be kept in step with the compiler.\n *\n * `table` and `dataTable` share one adapter on purpose: they are the same component under two names a\n * screen might reasonably use, and duplicating the implementation would let the two drift.\n */\nexport const primeReactComponents: ComponentRegistry = {\n [componentRegistryKey('PrimeReact', 'inputText')]: PrimeInputText,\n [componentRegistryKey('PrimeReact', 'inputTextarea')]: PrimeInputTextarea,\n [componentRegistryKey('PrimeReact', 'inputNumber')]: PrimeInputNumber,\n [componentRegistryKey('PrimeReact', 'password')]: PrimePassword,\n [componentRegistryKey('PrimeReact', 'floatLabel')]: PrimeFloatLabel,\n [componentRegistryKey('PrimeReact', 'iconField')]: PrimeIconField,\n [componentRegistryKey('PrimeReact', 'dropdown')]: PrimeDropdown,\n [componentRegistryKey('PrimeReact', 'multiSelect')]: PrimeMultiSelect,\n [componentRegistryKey('PrimeReact', 'listBox')]: PrimeListBox,\n [componentRegistryKey('PrimeReact', 'selectButton')]: PrimeSelectButton,\n [componentRegistryKey('PrimeReact', 'checkbox')]: PrimeCheckbox,\n [componentRegistryKey('PrimeReact', 'radioButton')]: PrimeRadioButton,\n [componentRegistryKey('PrimeReact', 'toggleSwitch')]: PrimeToggleSwitch,\n [componentRegistryKey('PrimeReact', 'slider')]: PrimeSlider,\n [componentRegistryKey('PrimeReact', 'rating')]: PrimeRating,\n [componentRegistryKey('PrimeReact', 'knob')]: PrimeKnob,\n [componentRegistryKey('PrimeReact', 'calendar')]: PrimeCalendar,\n [componentRegistryKey('PrimeReact', 'colorPicker')]: PrimeColorPicker,\n [componentRegistryKey('PrimeReact', 'chips')]: PrimeChips,\n [componentRegistryKey('PrimeReact', 'autoComplete')]: PrimeAutoComplete,\n [componentRegistryKey('PrimeReact', 'treeSelect')]: PrimeTreeSelect,\n\n [componentRegistryKey('PrimeReact', 'button')]: PrimeButton,\n [componentRegistryKey('PrimeReact', 'splitButton')]: PrimeSplitButton,\n [componentRegistryKey('PrimeReact', 'speedDial')]: PrimeSpeedDial,\n [componentRegistryKey('PrimeReact', 'buttonGroup')]: PrimeButtonGroup,\n\n [componentRegistryKey('PrimeReact', 'dataTable')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'table')]: PrimeDataTable,\n [componentRegistryKey('PrimeReact', 'column')]: PrimeColumn,\n [componentRegistryKey('PrimeReact', 'dataView')]: PrimeDataView,\n [componentRegistryKey('PrimeReact', 'tree')]: PrimeTree,\n [componentRegistryKey('PrimeReact', 'timeline')]: PrimeTimeline,\n [componentRegistryKey('PrimeReact', 'paginator')]: PrimePaginator,\n [componentRegistryKey('PrimeReact', 'orderList')]: PrimeOrderList,\n [componentRegistryKey('PrimeReact', 'pickList')]: PrimePickList,\n [componentRegistryKey('PrimeReact', 'organizationChart')]: PrimeOrganizationChart,\n\n [componentRegistryKey('PrimeReact', 'card')]: PrimeCard,\n [componentRegistryKey('PrimeReact', 'panel')]: PrimePanel,\n [componentRegistryKey('PrimeReact', 'accordion')]: PrimeAccordion,\n [componentRegistryKey('PrimeReact', 'fieldset')]: PrimeFieldset,\n [componentRegistryKey('PrimeReact', 'divider')]: PrimeDivider,\n [componentRegistryKey('PrimeReact', 'splitter')]: PrimeSplitter,\n [componentRegistryKey('PrimeReact', 'scrollPanel')]: PrimeScrollPanel,\n [componentRegistryKey('PrimeReact', 'tabView')]: PrimeTabView,\n [componentRegistryKey('PrimeReact', 'toolbar')]: PrimeToolbar,\n [componentRegistryKey('PrimeReact', 'stepper')]: PrimeStepper,\n\n [componentRegistryKey('PrimeReact', 'dialog')]: PrimeDialog,\n [componentRegistryKey('PrimeReact', 'confirmDialog')]: PrimeConfirmDialog,\n [componentRegistryKey('PrimeReact', 'overlayPanel')]: PrimeOverlayPanel,\n [componentRegistryKey('PrimeReact', 'sidebar')]: PrimeSidebar,\n [componentRegistryKey('PrimeReact', 'tooltip')]: PrimeTooltip,\n\n [componentRegistryKey('PrimeReact', 'menu')]: PrimeMenu,\n [componentRegistryKey('PrimeReact', 'menubar')]: PrimeMenubar,\n [componentRegistryKey('PrimeReact', 'breadcrumb')]: PrimeBreadcrumb,\n [componentRegistryKey('PrimeReact', 'tabMenu')]: PrimeTabMenu,\n [componentRegistryKey('PrimeReact', 'steps')]: PrimeSteps,\n [componentRegistryKey('PrimeReact', 'tieredMenu')]: PrimeTieredMenu,\n [componentRegistryKey('PrimeReact', 'panelMenu')]: PrimePanelMenu,\n [componentRegistryKey('PrimeReact', 'contextMenu')]: PrimeContextMenu,\n [componentRegistryKey('PrimeReact', 'megaMenu')]: PrimeMegaMenu,\n [componentRegistryKey('PrimeReact', 'dock')]: PrimeDock,\n\n [componentRegistryKey('PrimeReact', 'message')]: PrimeMessage,\n [componentRegistryKey('PrimeReact', 'inlineMessage')]: PrimeInlineMessage,\n [componentRegistryKey('PrimeReact', 'toast')]: PrimeToast,\n\n [componentRegistryKey('PrimeReact', 'image')]: PrimeImage,\n [componentRegistryKey('PrimeReact', 'galleria')]: PrimeGalleria,\n [componentRegistryKey('PrimeReact', 'carousel')]: PrimeCarousel,\n\n [componentRegistryKey('PrimeReact', 'avatar')]: PrimeAvatar,\n [componentRegistryKey('PrimeReact', 'badge')]: PrimeBadge,\n [componentRegistryKey('PrimeReact', 'chip')]: PrimeChip,\n [componentRegistryKey('PrimeReact', 'tag')]: PrimeTag,\n [componentRegistryKey('PrimeReact', 'progressBar')]: PrimeProgressBar,\n [componentRegistryKey('PrimeReact', 'progressSpinner')]: PrimeProgressSpinner,\n [componentRegistryKey('PrimeReact', 'skeleton')]: PrimeSkeleton,\n [componentRegistryKey('PrimeReact', 'scrollTop')]: PrimeScrollTop,\n [componentRegistryKey('PrimeReact', 'blockUI')]: PrimeBlockUI,\n [componentRegistryKey('PrimeReact', 'inplace')]: PrimeInplace,\n [componentRegistryKey('PrimeReact', 'terminal')]: PrimeTerminal,\n\n [componentRegistryKey('PrimeReact', 'text')]: PrimeText,\n [componentRegistryKey('PrimeReact', 'title')]: PrimeTitle,\n [componentRegistryKey('PrimeReact', 'field')]: PrimeField,\n [componentRegistryKey('PrimeReact', 'section')]: PrimeSection,\n [componentRegistryKey('PrimeReact', 'summary')]: PrimeSummary,\n [componentRegistryKey('PrimeReact', 'action')]: PrimeAction,\n};\n"],"names":["primeReactComponents","componentRegistryKey","PrimeInputText","PrimeInputTextarea","PrimeInputNumber","PrimePassword","PrimeFloatLabel","PrimeIconField","PrimeDropdown","PrimeMultiSelect","PrimeListBox","PrimeSelectButton","PrimeCheckbox","PrimeRadioButton","PrimeToggleSwitch","PrimeSlider","PrimeRating","PrimeKnob","PrimeCalendar","PrimeColorPicker","PrimeChips","PrimeAutoComplete","PrimeTreeSelect","PrimeButton","PrimeSplitButton","PrimeSpeedDial","PrimeButtonGroup","PrimeDataTable","PrimeColumn","PrimeDataView","PrimeTree","PrimeTimeline","PrimePaginator","PrimeOrderList","PrimePickList","PrimeOrganizationChart","PrimeCard","PrimePanel","PrimeAccordion","PrimeFieldset","PrimeDivider","PrimeSplitter","PrimeScrollPanel","PrimeTabView","PrimeToolbar","PrimeStepper","PrimeDialog","PrimeConfirmDialog","PrimeOverlayPanel","PrimeSidebar","PrimeTooltip","PrimeMenu","PrimeMenubar","PrimeBreadcrumb","PrimeTabMenu","PrimeSteps","PrimeTieredMenu","PrimePanelMenu","PrimeContextMenu","PrimeMegaMenu","PrimeDock","PrimeMessage","PrimeInlineMessage","PrimeToast","PrimeImage","PrimeGalleria","PrimeCarousel","PrimeAvatar","PrimeBadge","PrimeChip","PrimeTag","PrimeProgressBar","PrimeProgressSpinner","PrimeSkeleton","PrimeScrollTop","PrimeBlockUI","PrimeInplace","PrimeTerminal","PrimeText","PrimeTitle","PrimeField","PrimeSection","PrimeSummary","PrimeAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAgFA;;;;;;;;;;;;;;;;UAiBaA,oBAAAA,GAA0C;IACnD,CAACC,oBAAAA,CAAqB,YAAA,EAAc,WAAA,CAAA,GAAeC,cAAAA;IACnD,CAACD,oBAAAA,CAAqB,YAAA,EAAc,eAAA,CAAA,GAAmBE,kBAAAA;IACvD,CAACF,oBAAAA,CAAqB,YAAA,EAAc,aAAA,CAAA,GAAiBG,gBAAAA;IACrD,CAACH,oBAAAA,CAAqB,YAAA,EAAc,UAAA,CAAA,GAAcI,aAAAA;IAClD,CAACJ,oBAAAA,CAAqB,YAAA,EAAc,YAAA,CAAA,GAAgBK,eAAAA;IACpD,CAACL,oBAAAA,CAAqB,Y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