@kurot/ui 1.1.7

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 (326) hide show
  1. package/README.md +258 -0
  2. package/dist/index.d.ts +8 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +8 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/kurot/binding/Binding.d.ts +38 -0
  7. package/dist/kurot/binding/Binding.d.ts.map +1 -0
  8. package/dist/kurot/binding/Binding.js +88 -0
  9. package/dist/kurot/binding/Binding.js.map +1 -0
  10. package/dist/kurot/binding/Watcher.d.ts +57 -0
  11. package/dist/kurot/binding/Watcher.d.ts.map +1 -0
  12. package/dist/kurot/binding/Watcher.js +119 -0
  13. package/dist/kurot/binding/Watcher.js.map +1 -0
  14. package/dist/kurot/binding/index.d.ts +3 -0
  15. package/dist/kurot/binding/index.d.ts.map +1 -0
  16. package/dist/kurot/binding/index.js +3 -0
  17. package/dist/kurot/binding/index.js.map +1 -0
  18. package/dist/kurot/collections/ArrayCollection.d.ts +56 -0
  19. package/dist/kurot/collections/ArrayCollection.d.ts.map +1 -0
  20. package/dist/kurot/collections/ArrayCollection.js +143 -0
  21. package/dist/kurot/collections/ArrayCollection.js.map +1 -0
  22. package/dist/kurot/collections/ICollection.d.ts +24 -0
  23. package/dist/kurot/collections/ICollection.d.ts.map +1 -0
  24. package/dist/kurot/collections/ICollection.js +2 -0
  25. package/dist/kurot/collections/ICollection.js.map +1 -0
  26. package/dist/kurot/collections/index.d.ts +3 -0
  27. package/dist/kurot/collections/index.d.ts.map +1 -0
  28. package/dist/kurot/collections/index.js +2 -0
  29. package/dist/kurot/collections/index.js.map +1 -0
  30. package/dist/kurot/components/Animation.d.ts +34 -0
  31. package/dist/kurot/components/Animation.d.ts.map +1 -0
  32. package/dist/kurot/components/Animation.js +100 -0
  33. package/dist/kurot/components/Animation.js.map +1 -0
  34. package/dist/kurot/components/Button.d.ts +61 -0
  35. package/dist/kurot/components/Button.d.ts.map +1 -0
  36. package/dist/kurot/components/Button.js +176 -0
  37. package/dist/kurot/components/Button.js.map +1 -0
  38. package/dist/kurot/components/CheckBox.d.ts +11 -0
  39. package/dist/kurot/components/CheckBox.d.ts.map +1 -0
  40. package/dist/kurot/components/CheckBox.js +13 -0
  41. package/dist/kurot/components/CheckBox.js.map +1 -0
  42. package/dist/kurot/components/ComboBox.d.ts +93 -0
  43. package/dist/kurot/components/ComboBox.d.ts.map +1 -0
  44. package/dist/kurot/components/ComboBox.js +307 -0
  45. package/dist/kurot/components/ComboBox.js.map +1 -0
  46. package/dist/kurot/components/Component.d.ts +203 -0
  47. package/dist/kurot/components/Component.d.ts.map +1 -0
  48. package/dist/kurot/components/Component.js +522 -0
  49. package/dist/kurot/components/Component.js.map +1 -0
  50. package/dist/kurot/components/DataGroup.d.ts +90 -0
  51. package/dist/kurot/components/DataGroup.d.ts.map +1 -0
  52. package/dist/kurot/components/DataGroup.js +483 -0
  53. package/dist/kurot/components/DataGroup.js.map +1 -0
  54. package/dist/kurot/components/EditableText.d.ts +44 -0
  55. package/dist/kurot/components/EditableText.d.ts.map +1 -0
  56. package/dist/kurot/components/EditableText.js +126 -0
  57. package/dist/kurot/components/EditableText.js.map +1 -0
  58. package/dist/kurot/components/Group.d.ts +133 -0
  59. package/dist/kurot/components/Group.d.ts.map +1 -0
  60. package/dist/kurot/components/Group.js +454 -0
  61. package/dist/kurot/components/Group.js.map +1 -0
  62. package/dist/kurot/components/HScrollBar.d.ts +13 -0
  63. package/dist/kurot/components/HScrollBar.d.ts.map +1 -0
  64. package/dist/kurot/components/HScrollBar.js +55 -0
  65. package/dist/kurot/components/HScrollBar.js.map +1 -0
  66. package/dist/kurot/components/HSlider.d.ts +17 -0
  67. package/dist/kurot/components/HSlider.d.ts.map +1 -0
  68. package/dist/kurot/components/HSlider.js +48 -0
  69. package/dist/kurot/components/HSlider.js.map +1 -0
  70. package/dist/kurot/components/Image.d.ts +35 -0
  71. package/dist/kurot/components/Image.d.ts.map +1 -0
  72. package/dist/kurot/components/Image.js +141 -0
  73. package/dist/kurot/components/Image.js.map +1 -0
  74. package/dist/kurot/components/ItemRenderer.d.ts +42 -0
  75. package/dist/kurot/components/ItemRenderer.d.ts.map +1 -0
  76. package/dist/kurot/components/ItemRenderer.js +117 -0
  77. package/dist/kurot/components/ItemRenderer.js.map +1 -0
  78. package/dist/kurot/components/Label.d.ts +49 -0
  79. package/dist/kurot/components/Label.d.ts.map +1 -0
  80. package/dist/kurot/components/Label.js +193 -0
  81. package/dist/kurot/components/Label.js.map +1 -0
  82. package/dist/kurot/components/List.d.ts +16 -0
  83. package/dist/kurot/components/List.d.ts.map +1 -0
  84. package/dist/kurot/components/List.js +34 -0
  85. package/dist/kurot/components/List.js.map +1 -0
  86. package/dist/kurot/components/ListBase.d.ts +61 -0
  87. package/dist/kurot/components/ListBase.d.ts.map +1 -0
  88. package/dist/kurot/components/ListBase.js +202 -0
  89. package/dist/kurot/components/ListBase.js.map +1 -0
  90. package/dist/kurot/components/Panel.d.ts +53 -0
  91. package/dist/kurot/components/Panel.d.ts.map +1 -0
  92. package/dist/kurot/components/Panel.js +145 -0
  93. package/dist/kurot/components/Panel.js.map +1 -0
  94. package/dist/kurot/components/ProgressBar.d.ts +48 -0
  95. package/dist/kurot/components/ProgressBar.d.ts.map +1 -0
  96. package/dist/kurot/components/ProgressBar.js +180 -0
  97. package/dist/kurot/components/ProgressBar.js.map +1 -0
  98. package/dist/kurot/components/RadioButton.d.ts +86 -0
  99. package/dist/kurot/components/RadioButton.d.ts.map +1 -0
  100. package/dist/kurot/components/RadioButton.js +246 -0
  101. package/dist/kurot/components/RadioButton.js.map +1 -0
  102. package/dist/kurot/components/Range.d.ts +41 -0
  103. package/dist/kurot/components/Range.d.ts.map +1 -0
  104. package/dist/kurot/components/Range.js +144 -0
  105. package/dist/kurot/components/Range.js.map +1 -0
  106. package/dist/kurot/components/Rect.d.ts +33 -0
  107. package/dist/kurot/components/Rect.d.ts.map +1 -0
  108. package/dist/kurot/components/Rect.js +125 -0
  109. package/dist/kurot/components/Rect.js.map +1 -0
  110. package/dist/kurot/components/ScrollBarBase.d.ts +27 -0
  111. package/dist/kurot/components/ScrollBarBase.d.ts.map +1 -0
  112. package/dist/kurot/components/ScrollBarBase.js +50 -0
  113. package/dist/kurot/components/ScrollBarBase.js.map +1 -0
  114. package/dist/kurot/components/Scroller.d.ts +82 -0
  115. package/dist/kurot/components/Scroller.d.ts.map +1 -0
  116. package/dist/kurot/components/Scroller.js +416 -0
  117. package/dist/kurot/components/Scroller.js.map +1 -0
  118. package/dist/kurot/components/Skin.d.ts +64 -0
  119. package/dist/kurot/components/Skin.d.ts.map +1 -0
  120. package/dist/kurot/components/Skin.js +136 -0
  121. package/dist/kurot/components/Skin.js.map +1 -0
  122. package/dist/kurot/components/SliderBase.d.ts +60 -0
  123. package/dist/kurot/components/SliderBase.d.ts.map +1 -0
  124. package/dist/kurot/components/SliderBase.js +197 -0
  125. package/dist/kurot/components/SliderBase.js.map +1 -0
  126. package/dist/kurot/components/TabBar.d.ts +29 -0
  127. package/dist/kurot/components/TabBar.d.ts.map +1 -0
  128. package/dist/kurot/components/TabBar.js +92 -0
  129. package/dist/kurot/components/TabBar.js.map +1 -0
  130. package/dist/kurot/components/TextInput.d.ts +49 -0
  131. package/dist/kurot/components/TextInput.d.ts.map +1 -0
  132. package/dist/kurot/components/TextInput.js +157 -0
  133. package/dist/kurot/components/TextInput.js.map +1 -0
  134. package/dist/kurot/components/ToggleButton.d.ts +11 -0
  135. package/dist/kurot/components/ToggleButton.d.ts.map +1 -0
  136. package/dist/kurot/components/ToggleButton.js +14 -0
  137. package/dist/kurot/components/ToggleButton.js.map +1 -0
  138. package/dist/kurot/components/ToggleSwitch.d.ts +10 -0
  139. package/dist/kurot/components/ToggleSwitch.d.ts.map +1 -0
  140. package/dist/kurot/components/ToggleSwitch.js +10 -0
  141. package/dist/kurot/components/ToggleSwitch.js.map +1 -0
  142. package/dist/kurot/components/TouchScroll.d.ts +38 -0
  143. package/dist/kurot/components/TouchScroll.d.ts.map +1 -0
  144. package/dist/kurot/components/TouchScroll.js +133 -0
  145. package/dist/kurot/components/TouchScroll.js.map +1 -0
  146. package/dist/kurot/components/UILayer.d.ts +14 -0
  147. package/dist/kurot/components/UILayer.d.ts.map +1 -0
  148. package/dist/kurot/components/UILayer.js +38 -0
  149. package/dist/kurot/components/UILayer.js.map +1 -0
  150. package/dist/kurot/components/VScrollBar.d.ts +13 -0
  151. package/dist/kurot/components/VScrollBar.d.ts.map +1 -0
  152. package/dist/kurot/components/VScrollBar.js +55 -0
  153. package/dist/kurot/components/VScrollBar.js.map +1 -0
  154. package/dist/kurot/components/VSlider.d.ts +17 -0
  155. package/dist/kurot/components/VSlider.d.ts.map +1 -0
  156. package/dist/kurot/components/VSlider.js +49 -0
  157. package/dist/kurot/components/VSlider.js.map +1 -0
  158. package/dist/kurot/components/ViewStack.d.ts +42 -0
  159. package/dist/kurot/components/ViewStack.d.ts.map +1 -0
  160. package/dist/kurot/components/ViewStack.js +160 -0
  161. package/dist/kurot/components/ViewStack.js.map +1 -0
  162. package/dist/kurot/components/index.d.ts +34 -0
  163. package/dist/kurot/components/index.d.ts.map +1 -0
  164. package/dist/kurot/components/index.js +34 -0
  165. package/dist/kurot/components/index.js.map +1 -0
  166. package/dist/kurot/core/AssetAdapterRegistry.d.ts +4 -0
  167. package/dist/kurot/core/AssetAdapterRegistry.d.ts.map +1 -0
  168. package/dist/kurot/core/AssetAdapterRegistry.js +9 -0
  169. package/dist/kurot/core/AssetAdapterRegistry.js.map +1 -0
  170. package/dist/kurot/core/DefaultAssetAdapter.d.ts +10 -0
  171. package/dist/kurot/core/DefaultAssetAdapter.d.ts.map +1 -0
  172. package/dist/kurot/core/DefaultAssetAdapter.js +22 -0
  173. package/dist/kurot/core/DefaultAssetAdapter.js.map +1 -0
  174. package/dist/kurot/core/DefaultThemeAdapter.d.ts +8 -0
  175. package/dist/kurot/core/DefaultThemeAdapter.d.ts.map +1 -0
  176. package/dist/kurot/core/DefaultThemeAdapter.js +27 -0
  177. package/dist/kurot/core/DefaultThemeAdapter.js.map +1 -0
  178. package/dist/kurot/core/Direction.d.ts +10 -0
  179. package/dist/kurot/core/Direction.d.ts.map +1 -0
  180. package/dist/kurot/core/Direction.js +10 -0
  181. package/dist/kurot/core/Direction.js.map +1 -0
  182. package/dist/kurot/core/IAssetAdapter.d.ts +15 -0
  183. package/dist/kurot/core/IAssetAdapter.d.ts.map +1 -0
  184. package/dist/kurot/core/IAssetAdapter.js +2 -0
  185. package/dist/kurot/core/IAssetAdapter.js.map +1 -0
  186. package/dist/kurot/core/IDisplayText.d.ts +12 -0
  187. package/dist/kurot/core/IDisplayText.d.ts.map +1 -0
  188. package/dist/kurot/core/IDisplayText.js +2 -0
  189. package/dist/kurot/core/IDisplayText.js.map +1 -0
  190. package/dist/kurot/core/IItemRenderer.d.ts +19 -0
  191. package/dist/kurot/core/IItemRenderer.d.ts.map +1 -0
  192. package/dist/kurot/core/IItemRenderer.js +2 -0
  193. package/dist/kurot/core/IItemRenderer.js.map +1 -0
  194. package/dist/kurot/core/IThemeAdapter.d.ts +14 -0
  195. package/dist/kurot/core/IThemeAdapter.d.ts.map +1 -0
  196. package/dist/kurot/core/IThemeAdapter.js +2 -0
  197. package/dist/kurot/core/IThemeAdapter.js.map +1 -0
  198. package/dist/kurot/core/IUIComponent.d.ts +63 -0
  199. package/dist/kurot/core/IUIComponent.d.ts.map +1 -0
  200. package/dist/kurot/core/IUIComponent.js +2 -0
  201. package/dist/kurot/core/IUIComponent.js.map +1 -0
  202. package/dist/kurot/core/IViewport.d.ts +12 -0
  203. package/dist/kurot/core/IViewport.d.ts.map +1 -0
  204. package/dist/kurot/core/IViewport.js +2 -0
  205. package/dist/kurot/core/IViewport.js.map +1 -0
  206. package/dist/kurot/core/ScrollPolicy.d.ts +9 -0
  207. package/dist/kurot/core/ScrollPolicy.d.ts.map +1 -0
  208. package/dist/kurot/core/ScrollPolicy.js +9 -0
  209. package/dist/kurot/core/ScrollPolicy.js.map +1 -0
  210. package/dist/kurot/core/Theme.d.ts +53 -0
  211. package/dist/kurot/core/Theme.d.ts.map +1 -0
  212. package/dist/kurot/core/Theme.js +169 -0
  213. package/dist/kurot/core/Theme.js.map +1 -0
  214. package/dist/kurot/core/UIComponent.d.ts +2 -0
  215. package/dist/kurot/core/UIComponent.d.ts.map +1 -0
  216. package/dist/kurot/core/UIComponent.js +4 -0
  217. package/dist/kurot/core/UIComponent.js.map +1 -0
  218. package/dist/kurot/core/UIState.d.ts +84 -0
  219. package/dist/kurot/core/UIState.d.ts.map +1 -0
  220. package/dist/kurot/core/UIState.js +512 -0
  221. package/dist/kurot/core/UIState.js.map +1 -0
  222. package/dist/kurot/core/Validator.d.ts +46 -0
  223. package/dist/kurot/core/Validator.d.ts.map +1 -0
  224. package/dist/kurot/core/Validator.js +368 -0
  225. package/dist/kurot/core/Validator.js.map +1 -0
  226. package/dist/kurot/core/index.d.ts +17 -0
  227. package/dist/kurot/core/index.d.ts.map +1 -0
  228. package/dist/kurot/core/index.js +10 -0
  229. package/dist/kurot/core/index.js.map +1 -0
  230. package/dist/kurot/events/CollectionEvent.d.ts +22 -0
  231. package/dist/kurot/events/CollectionEvent.d.ts.map +1 -0
  232. package/dist/kurot/events/CollectionEvent.js +37 -0
  233. package/dist/kurot/events/CollectionEvent.js.map +1 -0
  234. package/dist/kurot/events/ItemTapEvent.d.ts +11 -0
  235. package/dist/kurot/events/ItemTapEvent.d.ts.map +1 -0
  236. package/dist/kurot/events/ItemTapEvent.js +24 -0
  237. package/dist/kurot/events/ItemTapEvent.js.map +1 -0
  238. package/dist/kurot/events/PropertyEvent.d.ts +8 -0
  239. package/dist/kurot/events/PropertyEvent.d.ts.map +1 -0
  240. package/dist/kurot/events/PropertyEvent.js +20 -0
  241. package/dist/kurot/events/PropertyEvent.js.map +1 -0
  242. package/dist/kurot/events/ScrollerThrowEvent.d.ts +17 -0
  243. package/dist/kurot/events/ScrollerThrowEvent.d.ts.map +1 -0
  244. package/dist/kurot/events/ScrollerThrowEvent.js +22 -0
  245. package/dist/kurot/events/ScrollerThrowEvent.js.map +1 -0
  246. package/dist/kurot/events/UIEvent.d.ts +29 -0
  247. package/dist/kurot/events/UIEvent.d.ts.map +1 -0
  248. package/dist/kurot/events/UIEvent.js +39 -0
  249. package/dist/kurot/events/UIEvent.js.map +1 -0
  250. package/dist/kurot/events/index.d.ts +6 -0
  251. package/dist/kurot/events/index.d.ts.map +1 -0
  252. package/dist/kurot/events/index.js +6 -0
  253. package/dist/kurot/events/index.js.map +1 -0
  254. package/dist/kurot/layouts/BasicLayout.d.ts +13 -0
  255. package/dist/kurot/layouts/BasicLayout.d.ts.map +1 -0
  256. package/dist/kurot/layouts/BasicLayout.js +146 -0
  257. package/dist/kurot/layouts/BasicLayout.js.map +1 -0
  258. package/dist/kurot/layouts/ColumnAlign.d.ts +9 -0
  259. package/dist/kurot/layouts/ColumnAlign.d.ts.map +1 -0
  260. package/dist/kurot/layouts/ColumnAlign.js +9 -0
  261. package/dist/kurot/layouts/ColumnAlign.js.map +1 -0
  262. package/dist/kurot/layouts/HorizontalLayout.d.ts +23 -0
  263. package/dist/kurot/layouts/HorizontalLayout.d.ts.map +1 -0
  264. package/dist/kurot/layouts/HorizontalLayout.js +405 -0
  265. package/dist/kurot/layouts/HorizontalLayout.js.map +1 -0
  266. package/dist/kurot/layouts/ILayoutTarget.d.ts +25 -0
  267. package/dist/kurot/layouts/ILayoutTarget.d.ts.map +1 -0
  268. package/dist/kurot/layouts/ILayoutTarget.js +2 -0
  269. package/dist/kurot/layouts/ILayoutTarget.js.map +1 -0
  270. package/dist/kurot/layouts/JustifyAlign.d.ts +8 -0
  271. package/dist/kurot/layouts/JustifyAlign.d.ts.map +1 -0
  272. package/dist/kurot/layouts/JustifyAlign.js +8 -0
  273. package/dist/kurot/layouts/JustifyAlign.js.map +1 -0
  274. package/dist/kurot/layouts/LayoutBase.d.ts +23 -0
  275. package/dist/kurot/layouts/LayoutBase.d.ts.map +1 -0
  276. package/dist/kurot/layouts/LayoutBase.js +45 -0
  277. package/dist/kurot/layouts/LayoutBase.js.map +1 -0
  278. package/dist/kurot/layouts/LinearLayoutBase.d.ts +70 -0
  279. package/dist/kurot/layouts/LinearLayoutBase.d.ts.map +1 -0
  280. package/dist/kurot/layouts/LinearLayoutBase.js +246 -0
  281. package/dist/kurot/layouts/LinearLayoutBase.js.map +1 -0
  282. package/dist/kurot/layouts/RowAlign.d.ts +9 -0
  283. package/dist/kurot/layouts/RowAlign.d.ts.map +1 -0
  284. package/dist/kurot/layouts/RowAlign.js +9 -0
  285. package/dist/kurot/layouts/RowAlign.js.map +1 -0
  286. package/dist/kurot/layouts/TileLayout.d.ts +79 -0
  287. package/dist/kurot/layouts/TileLayout.d.ts.map +1 -0
  288. package/dist/kurot/layouts/TileLayout.js +577 -0
  289. package/dist/kurot/layouts/TileLayout.js.map +1 -0
  290. package/dist/kurot/layouts/TileOrientation.d.ts +8 -0
  291. package/dist/kurot/layouts/TileOrientation.d.ts.map +1 -0
  292. package/dist/kurot/layouts/TileOrientation.js +8 -0
  293. package/dist/kurot/layouts/TileOrientation.js.map +1 -0
  294. package/dist/kurot/layouts/VerticalLayout.d.ts +23 -0
  295. package/dist/kurot/layouts/VerticalLayout.d.ts.map +1 -0
  296. package/dist/kurot/layouts/VerticalLayout.js +406 -0
  297. package/dist/kurot/layouts/VerticalLayout.js.map +1 -0
  298. package/dist/kurot/layouts/index.d.ts +12 -0
  299. package/dist/kurot/layouts/index.d.ts.map +1 -0
  300. package/dist/kurot/layouts/index.js +11 -0
  301. package/dist/kurot/layouts/index.js.map +1 -0
  302. package/dist/kurot/states/AddItems.d.ts +17 -0
  303. package/dist/kurot/states/AddItems.d.ts.map +1 -0
  304. package/dist/kurot/states/AddItems.js +42 -0
  305. package/dist/kurot/states/AddItems.js.map +1 -0
  306. package/dist/kurot/states/IOverride.d.ts +12 -0
  307. package/dist/kurot/states/IOverride.d.ts.map +1 -0
  308. package/dist/kurot/states/IOverride.js +2 -0
  309. package/dist/kurot/states/IOverride.js.map +1 -0
  310. package/dist/kurot/states/SetProperty.d.ts +19 -0
  311. package/dist/kurot/states/SetProperty.d.ts.map +1 -0
  312. package/dist/kurot/states/SetProperty.js +50 -0
  313. package/dist/kurot/states/SetProperty.js.map +1 -0
  314. package/dist/kurot/states/SetStateProperty.d.ts +17 -0
  315. package/dist/kurot/states/SetStateProperty.d.ts.map +1 -0
  316. package/dist/kurot/states/SetStateProperty.js +35 -0
  317. package/dist/kurot/states/SetStateProperty.js.map +1 -0
  318. package/dist/kurot/states/State.d.ts +14 -0
  319. package/dist/kurot/states/State.d.ts.map +1 -0
  320. package/dist/kurot/states/State.js +18 -0
  321. package/dist/kurot/states/State.js.map +1 -0
  322. package/dist/kurot/states/index.d.ts +6 -0
  323. package/dist/kurot/states/index.d.ts.map +1 -0
  324. package/dist/kurot/states/index.js +5 -0
  325. package/dist/kurot/states/index.js.map +1 -0
  326. package/package.json +55 -0
@@ -0,0 +1,29 @@
1
+ import { Event, type IEventDispatcher } from '@kurot/core';
2
+ /**
3
+ * UI event types and dispatcher for UI component lifecycle and interaction events.
4
+ */
5
+ export declare class UIEvent extends Event {
6
+ /**
7
+ * Dispatched when a component finishes initialization after being added to stage.
8
+ */
9
+ static readonly CREATION_COMPLETE = "creationComplete";
10
+ /**
11
+ * Dispatched when a change interaction ends (e.g. slider released).
12
+ */
13
+ static readonly CHANGE_END = "changeEnd";
14
+ /**
15
+ * Dispatched when a change interaction begins.
16
+ */
17
+ static readonly CHANGE_START = "changeStart";
18
+ /**
19
+ * Dispatched before a panel closes.
20
+ */
21
+ static readonly CLOSING = "closing";
22
+ /**
23
+ * Dispatched when a UI component's position changes within its parent.
24
+ */
25
+ static readonly MOVE = "move";
26
+ constructor(type: string, bubbles?: boolean, cancelable?: boolean);
27
+ static dispatchUIEvent(target: IEventDispatcher, eventType: string, bubbles?: boolean, cancelable?: boolean): boolean;
28
+ }
29
+ //# sourceMappingURL=UIEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UIEvent.d.ts","sourceRoot":"","sources":["../../../src/kurot/events/UIEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,KAAK;IAGjC;;OAEG;IACH,gBAAuB,iBAAiB,sBAAsB;IAE9D;;OAEG;IACH,gBAAuB,UAAU,eAAe;IAEhD;;OAEG;IACH,gBAAuB,YAAY,iBAAiB;IAEpD;;OAEG;IACH,gBAAuB,OAAO,aAAa;IAE3C;;OAEG;IACH,gBAAuB,IAAI,UAAU;gBAIlB,IAAI,EAAE,MAAM,EAAE,OAAO,UAAQ,EAAE,UAAU,UAAQ;WAMtD,eAAe,CAC5B,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,UAAQ,EACf,UAAU,UAAQ,GAChB,OAAO;CAKV"}
@@ -0,0 +1,39 @@
1
+ import { Event } from '@kurot/core';
2
+ /**
3
+ * UI event types and dispatcher for UI component lifecycle and interaction events.
4
+ */
5
+ export class UIEvent extends Event {
6
+ // ── Static fields ─────────────────────────────────────────────────────
7
+ /**
8
+ * Dispatched when a component finishes initialization after being added to stage.
9
+ */
10
+ static CREATION_COMPLETE = 'creationComplete';
11
+ /**
12
+ * Dispatched when a change interaction ends (e.g. slider released).
13
+ */
14
+ static CHANGE_END = 'changeEnd';
15
+ /**
16
+ * Dispatched when a change interaction begins.
17
+ */
18
+ static CHANGE_START = 'changeStart';
19
+ /**
20
+ * Dispatched before a panel closes.
21
+ */
22
+ static CLOSING = 'closing';
23
+ /**
24
+ * Dispatched when a UI component's position changes within its parent.
25
+ */
26
+ static MOVE = 'move';
27
+ // ── Constructor ───────────────────────────────────────────────────────
28
+ constructor(type, bubbles = false, cancelable = false) {
29
+ super(type, bubbles, cancelable);
30
+ }
31
+ // ── Public methods ────────────────────────────────────────────────────
32
+ static dispatchUIEvent(target, eventType, bubbles = false, cancelable = false) {
33
+ if (!target.hasEventListener(eventType))
34
+ return true;
35
+ const event = new UIEvent(eventType, bubbles, cancelable);
36
+ return target.dispatchEvent(event);
37
+ }
38
+ }
39
+ //# sourceMappingURL=UIEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UIEvent.js","sourceRoot":"","sources":["../../../src/kurot/events/UIEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAyB,MAAM,aAAa,CAAC;AAE3D;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,KAAK;IACjC,yEAAyE;IAEzE;;OAEG;IACI,MAAM,CAAU,iBAAiB,GAAG,kBAAkB,CAAC;IAE9D;;OAEG;IACI,MAAM,CAAU,UAAU,GAAG,WAAW,CAAC;IAEhD;;OAEG;IACI,MAAM,CAAU,YAAY,GAAG,aAAa,CAAC;IAEpD;;OAEG;IACI,MAAM,CAAU,OAAO,GAAG,SAAS,CAAC;IAE3C;;OAEG;IACI,MAAM,CAAU,IAAI,GAAG,MAAM,CAAC;IAErC,yEAAyE;IAEzE,YAAmB,IAAY,EAAE,OAAO,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK;QACnE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,yEAAyE;IAElE,MAAM,CAAC,eAAe,CAC5B,MAAwB,EACxB,SAAiB,EACjB,OAAO,GAAG,KAAK,EACf,UAAU,GAAG,KAAK;QAElB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC;YAAE,OAAO,IAAI,CAAC;QACrD,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { UIEvent } from './UIEvent.js';
2
+ export { ItemTapEvent } from './ItemTapEvent.js';
3
+ export { CollectionEvent, CollectionEventKind } from './CollectionEvent.js';
4
+ export { PropertyEvent } from './PropertyEvent.js';
5
+ export { ScrollerThrowEvent } from './ScrollerThrowEvent.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/kurot/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { UIEvent } from './UIEvent.js';
2
+ export { ItemTapEvent } from './ItemTapEvent.js';
3
+ export { CollectionEvent, CollectionEventKind } from './CollectionEvent.js';
4
+ export { PropertyEvent } from './PropertyEvent.js';
5
+ export { ScrollerThrowEvent } from './ScrollerThrowEvent.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/kurot/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { LayoutBase } from './LayoutBase.js';
2
+ /**
3
+ * Absolute (constraint-based) layout.
4
+ * Positions $children using left/right/top/bottom/horizontalCenter/verticalCenter
5
+ * and percentWidth/percentHeight constraints.
6
+ */
7
+ export declare class BasicLayout extends LayoutBase {
8
+ get useVirtualLayout(): boolean;
9
+ set useVirtualLayout(_v: boolean);
10
+ measure(): void;
11
+ updateDisplayList(unscaledWidth: number, unscaledHeight: number): void;
12
+ }
13
+ //# sourceMappingURL=BasicLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasicLayout.d.ts","sourceRoot":"","sources":["../../../src/kurot/layouts/BasicLayout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,UAAU;IAG1C,IAAoB,gBAAgB,IAAI,OAAO,CAE9C;IAED,IAAoB,gBAAgB,CAAC,EAAE,EAAE,OAAO,EAE/C;IAIe,OAAO,IAAI,IAAI;IAmDf,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI;CAqEtF"}
@@ -0,0 +1,146 @@
1
+ import { Rectangle } from '@kurot/core';
2
+ import { LayoutBase } from './LayoutBase.js';
3
+ import { isUIComponent } from '../core/UIComponent.js';
4
+ /**
5
+ * Absolute (constraint-based) layout.
6
+ * Positions $children using left/right/top/bottom/horizontalCenter/verticalCenter
7
+ * and percentWidth/percentHeight constraints.
8
+ */
9
+ export class BasicLayout extends LayoutBase {
10
+ // ── Getters / Setters ─────────────────────────────────────────────────
11
+ get useVirtualLayout() {
12
+ return false;
13
+ }
14
+ set useVirtualLayout(_v) {
15
+ /* no-op */
16
+ }
17
+ // ── Override methods ──────────────────────────────────────────────────
18
+ measure() {
19
+ const target = this.target;
20
+ if (!target)
21
+ return;
22
+ let width = 0;
23
+ let height = 0;
24
+ const bounds = new Rectangle();
25
+ const count = target.numChildren;
26
+ for (let i = 0; i < count; i++) {
27
+ const child = target.getChildAt(i);
28
+ if (!child || !isUIComponent(child) || !child.includeInLayout)
29
+ continue;
30
+ const left = +child.left;
31
+ const right = +child.right;
32
+ const top = +child.top;
33
+ const bottom = +child.bottom;
34
+ const hCenter = +child.horizontalCenter;
35
+ const vCenter = +child.verticalCenter;
36
+ child.getPreferredBounds(bounds);
37
+ let extX;
38
+ if (!isNaN(left) && !isNaN(right)) {
39
+ extX = left + right;
40
+ }
41
+ else if (!isNaN(hCenter)) {
42
+ extX = Math.abs(hCenter) * 2;
43
+ }
44
+ else if (!isNaN(left) || !isNaN(right)) {
45
+ extX = (isNaN(left) ? 0 : left) + (isNaN(right) ? 0 : right);
46
+ }
47
+ else {
48
+ extX = bounds.x;
49
+ }
50
+ let extY;
51
+ if (!isNaN(top) && !isNaN(bottom)) {
52
+ extY = top + bottom;
53
+ }
54
+ else if (!isNaN(vCenter)) {
55
+ extY = Math.abs(vCenter) * 2;
56
+ }
57
+ else if (!isNaN(top) || !isNaN(bottom)) {
58
+ extY = (isNaN(top) ? 0 : top) + (isNaN(bottom) ? 0 : bottom);
59
+ }
60
+ else {
61
+ extY = bounds.y;
62
+ }
63
+ width = Math.ceil(Math.max(width, extX + bounds.width));
64
+ height = Math.ceil(Math.max(height, extY + bounds.height));
65
+ }
66
+ target.setMeasuredSize(width, height);
67
+ }
68
+ updateDisplayList(unscaledWidth, unscaledHeight) {
69
+ const target = this.target;
70
+ if (!target)
71
+ return;
72
+ let maxX = 0;
73
+ let maxY = 0;
74
+ const bounds = new Rectangle();
75
+ const count = target.numChildren;
76
+ for (let i = 0; i < count; i++) {
77
+ const child = target.getChildAt(i);
78
+ if (!child || !isUIComponent(child) || !child.includeInLayout)
79
+ continue;
80
+ const left = fmt(child.left, unscaledWidth);
81
+ const right = fmt(child.right, unscaledWidth);
82
+ const top = fmt(child.top, unscaledHeight);
83
+ const bottom = fmt(child.bottom, unscaledHeight);
84
+ const hCenter = fmt(child.horizontalCenter, unscaledWidth * 0.5);
85
+ const vCenter = fmt(child.verticalCenter, unscaledHeight * 0.5);
86
+ const pctW = child.percentWidth;
87
+ const pctH = child.percentHeight;
88
+ let childW = NaN;
89
+ let childH = NaN;
90
+ if (!isNaN(left) && !isNaN(right)) {
91
+ childW = unscaledWidth - right - left;
92
+ }
93
+ else if (!isNaN(pctW)) {
94
+ childW = Math.round(unscaledWidth * Math.min(pctW * 0.01, 1));
95
+ }
96
+ if (!isNaN(top) && !isNaN(bottom)) {
97
+ childH = unscaledHeight - bottom - top;
98
+ }
99
+ else if (!isNaN(pctH)) {
100
+ childH = Math.round(unscaledHeight * Math.min(pctH * 0.01, 1));
101
+ }
102
+ child.setLayoutBoundsSize(childW, childH);
103
+ child.getLayoutBounds(bounds);
104
+ let childX;
105
+ if (!isNaN(hCenter)) {
106
+ childX = Math.round((unscaledWidth - bounds.width) / 2 + hCenter);
107
+ }
108
+ else if (!isNaN(left)) {
109
+ childX = left;
110
+ }
111
+ else if (!isNaN(right)) {
112
+ childX = unscaledWidth - bounds.width - right;
113
+ }
114
+ else {
115
+ childX = bounds.x;
116
+ }
117
+ let childY;
118
+ if (!isNaN(vCenter)) {
119
+ childY = Math.round((unscaledHeight - bounds.height) / 2 + vCenter);
120
+ }
121
+ else if (!isNaN(top)) {
122
+ childY = top;
123
+ }
124
+ else if (!isNaN(bottom)) {
125
+ childY = unscaledHeight - bounds.height - bottom;
126
+ }
127
+ else {
128
+ childY = bounds.y;
129
+ }
130
+ child.setLayoutBoundsPosition(childX, childY);
131
+ maxX = Math.max(maxX, childX + bounds.width);
132
+ maxY = Math.max(maxY, childY + bounds.height);
133
+ }
134
+ target.setContentSize(Math.ceil(maxX), Math.ceil(maxY));
135
+ }
136
+ }
137
+ function fmt(value, total) {
138
+ if (typeof value === 'number' || !value)
139
+ return +value;
140
+ const s = value;
141
+ const pct = s.indexOf('%');
142
+ if (pct === -1)
143
+ return +s;
144
+ return +s.substring(0, pct) * 0.01 * total;
145
+ }
146
+ //# sourceMappingURL=BasicLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasicLayout.js","sourceR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,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAC7C,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACzD,CAAC;CACD;AAED,SAAS,GAAG,CAAC,KAAsB,EAAE,KAAa;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK;QAAE,OAAO,CAAE,KAAgB,CAAC;IACnE,MAAM,CAAC,GAAG,KAAe,CAAC;IAC1B,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,GAAG,KAAK,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC,CAAC;IAC1B,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Constants for the TileLayout `columnAlign` property.
3
+ */
4
+ export declare class ColumnAlign {
5
+ static readonly LEFT = "left";
6
+ static readonly JUSTIFY_USING_GAP = "justifyUsingGap";
7
+ static readonly JUSTIFY_USING_WIDTH = "justifyUsingWidth";
8
+ }
9
+ //# sourceMappingURL=ColumnAlign.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnAlign.d.ts","sourceRoot":"","sources":["../../../src/kurot/layouts/ColumnAlign.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAW;IACvB,gBAAuB,IAAI,UAAU;IACrC,gBAAuB,iBAAiB,qBAAqB;IAC7D,gBAAuB,mBAAmB,uBAAuB;CACjE"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Constants for the TileLayout `columnAlign` property.
3
+ */
4
+ export class ColumnAlign {
5
+ static LEFT = 'left';
6
+ static JUSTIFY_USING_GAP = 'justifyUsingGap';
7
+ static JUSTIFY_USING_WIDTH = 'justifyUsingWidth';
8
+ }
9
+ //# sourceMappingURL=ColumnAlign.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnAlign.js","sourceRoot":"","sources":["../../../src/kurot/layouts/ColumnAlign.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,WAAW;IAChB,MAAM,CAAU,IAAI,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAU,iBAAiB,GAAG,iBAAiB,CAAC;IACtD,MAAM,CAAU,mBAAmB,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { LinearLayoutBase } from './LinearLayoutBase.js';
2
+ /**
3
+ * HorizontalLayout arranges layout elements in a horizontal sequence, left to right,
4
+ * with optional gaps between elements and optional padding around the edges.
5
+ *
6
+ * Supports:
7
+ * - `verticalAlign`: top / middle / bottom / justify / contentJustify
8
+ * - `horizontalAlign`: left / center / right / justify
9
+ * - `percentWidth` / `percentHeight` on $children
10
+ * - Virtual layout
11
+ */
12
+ export declare class HorizontalLayout extends LinearLayoutBase {
13
+ elementAdded(index: number): void;
14
+ protected measureReal(): void;
15
+ protected measureVirtual(): void;
16
+ protected updateDisplayListReal(width: number, height: number): void;
17
+ protected updateDisplayListVirtual(width: number, height: number): void;
18
+ protected getStartPosition(index: number): number;
19
+ protected getElementSize(index: number): number;
20
+ protected getElementTotalSize(): number;
21
+ protected getIndexInView(): boolean;
22
+ }
23
+ //# sourceMappingURL=HorizontalLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalLayout.d.ts","sourceRoot":"","sources":["../../../src/kurot/layouts/HorizontalLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAiBzD;;;;;;;;;GASG;AACH,qBAAa,gBAAiB,SAAQ,gBAAgB;IAGrC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;cAM9B,WAAW,IAAI,IAAI;cAuBnB,cAAc,IAAI,IAAI;cAoBtB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;cA+J1D,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;cAyF7D,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;cAoBvC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;cAgBrC,mBAAmB,IAAI,MAAM;cAc7B,cAAc,IAAI,OAAO;CAoC5C"}