@octane-xplat/ui 0.4.0 → 0.6.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 (283) hide show
  1. package/README.md +3 -0
  2. package/dist/native/Absolute.native.tsrx.js +43 -0
  3. package/dist/native/Accordion.native.tsrx.js +75 -0
  4. package/dist/native/ActivityIndicator.native.tsrx.js +35 -0
  5. package/dist/native/Alert.native.tsrx.js +74 -0
  6. package/dist/native/Avatar.native.tsrx.js +76 -0
  7. package/dist/native/AvatarGroup.native.tsrx.js +84 -0
  8. package/dist/native/Badge.native.tsrx.js +29 -0
  9. package/dist/native/Banner.native.tsrx.js +80 -0
  10. package/dist/native/Breadcrumb.native.tsrx.js +66 -0
  11. package/dist/native/Button.native.tsrx.js +62 -0
  12. package/dist/native/CameraView.native.tsrx.js +165 -0
  13. package/dist/native/Card.native.tsrx.js +64 -0
  14. package/dist/native/Checkbox.native.tsrx.js +58 -0
  15. package/dist/native/CheckboxGroup.native.tsrx.js +70 -0
  16. package/dist/native/Chip.native.tsrx.js +83 -0
  17. package/dist/native/Collapsible.native.tsrx.js +74 -0
  18. package/dist/native/CommandPalette.native.tsrx.js +143 -0
  19. package/dist/native/ContextMenu.native.tsrx.js +140 -0
  20. package/dist/native/Drawer.native.tsrx.js +60 -0
  21. package/dist/native/DropdownMenu.native.tsrx.js +155 -0
  22. package/dist/native/Empty.native.tsrx.js +82 -0
  23. package/dist/native/FieldGroup.native.tsrx.js +39 -0
  24. package/dist/native/FormField.native.tsrx.js +53 -0
  25. package/dist/native/{ui8.js → Grid.native.tsrx.js} +19 -8
  26. package/dist/native/{ui56.js → Heading.native.tsrx.js} +2 -2
  27. package/dist/native/{ui55.js → Icon.native.tsrx.js} +4 -4
  28. package/dist/native/{ui29.js → Image.native.tsrx.js} +4 -4
  29. package/dist/native/InputNumber.native.tsrx.js +146 -0
  30. package/dist/native/InputRating.native.tsrx.js +74 -0
  31. package/dist/native/InputTags.native.tsrx.js +131 -0
  32. package/dist/native/Kbd.native.tsrx.js +29 -0
  33. package/dist/native/{ui48.js → KeyboardAvoiding.native.tsrx.js} +1 -1
  34. package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
  35. package/dist/native/{ui52.js → Meter.native.tsrx.js} +2 -2
  36. package/dist/native/{ui22.js → NavLink.native.tsrx.js} +3 -3
  37. package/dist/native/NavigationMenu.native.tsrx.js +67 -0
  38. package/dist/native/{ui35.js → Overlay.native.tsrx.js} +3 -3
  39. package/dist/native/Pager.native.tsrx.js +282 -0
  40. package/dist/native/Pagination.native.tsrx.js +107 -0
  41. package/dist/native/PinInput.native.tsrx.js +94 -0
  42. package/dist/native/{ui38.js → Popover.native.tsrx.js} +5 -5
  43. package/dist/native/{ui16.js → Pressable.native.tsrx.js} +21 -15
  44. package/dist/native/ProgressGroup.native.tsrx.js +66 -0
  45. package/dist/native/RadioGroup.native.tsrx.js +85 -0
  46. package/dist/native/{ui15.js → RichText.native.tsrx.js} +15 -22
  47. package/dist/native/Row.native.tsrx.js +98 -0
  48. package/dist/native/{ui47.js → SafeArea.native.tsrx.js} +2 -2
  49. package/dist/native/{ui43.js → Screen.native.tsrx.js} +3 -3
  50. package/dist/native/{ui26.js → ScrollBox.native.tsrx.js} +1 -1
  51. package/dist/native/ScrollView.native.tsrx.js +233 -0
  52. package/dist/native/SearchInput.native.tsrx.js +151 -0
  53. package/dist/native/SegmentedControl.native.tsrx.js +75 -0
  54. package/dist/native/Select.native.tsrx.js +202 -0
  55. package/dist/native/Separator.native.tsrx.js +25 -0
  56. package/dist/native/{ui60.js → Sheet.native.tsrx.js} +15 -7
  57. package/dist/native/Skeleton.native.tsrx.js +28 -0
  58. package/dist/native/Slider.native.tsrx.js +98 -0
  59. package/dist/native/{ui13.js → Spacer.native.tsrx.js} +2 -2
  60. package/dist/native/{ui9.js → Stack.native.tsrx.js} +20 -9
  61. package/dist/native/Stepper.native.tsrx.js +75 -0
  62. package/dist/native/Switch.native.tsrx.js +33 -0
  63. package/dist/native/Table.native.tsrx.js +103 -0
  64. package/dist/native/Tabs.native.tsrx.js +163 -0
  65. package/dist/native/{ui14.js → Text.native.tsrx.js} +19 -3
  66. package/dist/native/{ui24.js → TextArea.native.tsrx.js} +19 -17
  67. package/dist/native/{ui23.js → TextInput.native.tsrx.js} +21 -16
  68. package/dist/native/Timeline.native.tsrx.js +112 -0
  69. package/dist/native/Tree.native.tsrx.js +140 -0
  70. package/dist/native/User.native.tsrx.js +95 -0
  71. package/dist/native/Video.native.tsrx.js +248 -0
  72. package/dist/native/{ui6.js → View.native.tsrx.js} +39 -25
  73. package/dist/native/WebView.native.tsrx.js +110 -0
  74. package/dist/native/aliases.native.tsrx.js +38 -0
  75. package/dist/native/android/BottomNavigationView.android.tsrx.js +171 -0
  76. package/dist/native/android/CircularProgressIndicator.android.tsrx.js +27 -0
  77. package/dist/native/{ui49.js → android/DrawerLayout.android.tsrx.js} +5 -7
  78. package/dist/native/android/MaterialDialog.android.tsrx.js +62 -0
  79. package/dist/native/android/MaterialSwitch.android.tsrx.js +28 -0
  80. package/dist/native/android/RecyclerView.android.tsrx.js +248 -0
  81. package/dist/native/android/SeekBar.android.tsrx.js +34 -0
  82. package/dist/native/android/index.js +9 -0
  83. package/dist/native/android/openModal.android.js +39 -0
  84. package/dist/native/camera-permission.native.js +47 -0
  85. package/dist/native/child-array.js +15 -0
  86. package/dist/native/{ui3.js → escape-props.native.js} +22 -1
  87. package/dist/native/icons.js +25 -0
  88. package/dist/native/{ui11.js → ios/LiquidGlass.ios.tsrx.js} +4 -4
  89. package/dist/native/{ui12.js → ios/LiquidGlassContainer.ios.tsrx.js} +4 -4
  90. package/dist/native/ios/SideDrawer.ios.tsrx.js +64 -0
  91. package/dist/native/{ui50.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
  92. package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
  93. package/dist/native/{ui53.js → ios/UISlider.ios.tsrx.js} +5 -5
  94. package/dist/native/{ui45.js → ios/UISwitch.ios.tsrx.js} +5 -5
  95. package/dist/native/ios/UITabBar.ios.tsrx.js +166 -0
  96. package/dist/native/ios/UITableView.ios.tsrx.js +270 -0
  97. package/dist/native/ios/index.js +11 -0
  98. package/dist/native/{ui33.js → ios/openModal.ios.js} +5 -4
  99. package/dist/native/modal-presenter.native.js +19 -0
  100. package/dist/native/native/index.js +4 -0
  101. package/dist/native/octane-client-build.json +1 -1
  102. package/dist/native/pan.native.tsrx.js +66 -0
  103. package/dist/native/platform.native.js +10 -0
  104. package/dist/native/refresh-metrics.js +9 -0
  105. package/dist/native/refresh.native.js +177 -0
  106. package/dist/native/{ui34.js → root-layout.native.js} +6 -1
  107. package/dist/native/{ui21.js → route.native.js} +96 -12
  108. package/dist/native/sheet-detents.native.js +102 -0
  109. package/dist/native/{ui61.js → sheet-service.native.js} +19 -9
  110. package/dist/native/sheet-snap.js +35 -0
  111. package/dist/native/text-write.native.js +27 -0
  112. package/dist/native/theme/status-bar-scheme.native.js +17 -0
  113. package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
  114. package/dist/native/toast-anchor.native.tsrx.js +185 -0
  115. package/dist/native/translate.native.js +11 -0
  116. package/dist/native/ui.js +93 -52
  117. package/dist/native/use-back.native.tsrx.js +9 -0
  118. package/dist/native/useMeasure.native.tsrx.js +64 -0
  119. package/dist/native/video-chrome.native.tsrx.js +365 -0
  120. package/dist/web/Absolute.web.tsrx.js +47 -0
  121. package/dist/web/Accordion.web.tsrx.js +85 -0
  122. package/dist/web/{ui46.js → ActivityIndicator.web.tsrx.js} +1 -1
  123. package/dist/web/Alert.web.tsrx.js +79 -0
  124. package/dist/web/Avatar.web.tsrx.js +106 -0
  125. package/dist/web/AvatarGroup.web.tsrx.js +108 -0
  126. package/dist/web/Badge.web.tsrx.js +37 -0
  127. package/dist/web/Banner.web.tsrx.js +79 -0
  128. package/dist/web/Breadcrumb.web.tsrx.js +135 -0
  129. package/dist/web/Button.web.tsrx.js +45 -0
  130. package/dist/web/CameraView.web.tsrx.js +310 -0
  131. package/dist/web/Card.web.tsrx.js +73 -0
  132. package/dist/web/Checkbox.web.tsrx.js +89 -0
  133. package/dist/web/CheckboxGroup.web.tsrx.js +79 -0
  134. package/dist/web/Chip.web.tsrx.js +64 -0
  135. package/dist/web/Collapsible.web.tsrx.js +94 -0
  136. package/dist/web/CommandPalette.web.tsrx.js +125 -0
  137. package/dist/web/ContextMenu.web.tsrx.js +154 -0
  138. package/dist/web/{ui44.js → Drawer.web.tsrx.js} +13 -9
  139. package/dist/web/DropdownMenu.web.tsrx.js +162 -0
  140. package/dist/web/Empty.web.tsrx.js +89 -0
  141. package/dist/web/FieldGroup.web.tsrx.js +57 -0
  142. package/dist/web/FormField.web.tsrx.js +92 -0
  143. package/dist/web/Grid.web.tsrx.js +65 -0
  144. package/dist/web/{ui52.js → Heading.web.tsrx.js} +2 -2
  145. package/dist/web/Icon.web.tsrx.js +273 -0
  146. package/dist/web/{ui25.js → Image.web.tsrx.js} +2 -2
  147. package/dist/web/InputNumber.web.tsrx.js +99 -0
  148. package/dist/web/InputRating.web.tsrx.js +72 -0
  149. package/dist/web/InputTags.web.tsrx.js +122 -0
  150. package/dist/web/Kbd.web.tsrx.js +37 -0
  151. package/dist/web/{ui48.js → Meter.web.tsrx.js} +1 -1
  152. package/dist/web/{ui19.js → NavLink.web.tsrx.js} +1 -1
  153. package/dist/web/NavigationMenu.web.tsrx.js +118 -0
  154. package/dist/web/{ui31.js → Overlay.web.tsrx.js} +2 -2
  155. package/dist/web/Pager.web.tsrx.js +337 -0
  156. package/dist/web/Pagination.web.tsrx.js +80 -0
  157. package/dist/web/PinInput.web.tsrx.js +72 -0
  158. package/dist/web/{ui33.js → Popover.web.tsrx.js} +3 -3
  159. package/dist/web/{ui15.js → Pressable.web.tsrx.js} +68 -95
  160. package/dist/web/ProgressGroup.web.tsrx.js +109 -0
  161. package/dist/web/RadioGroup.web.tsrx.js +69 -0
  162. package/dist/web/{ui14.js → RichText.web.tsrx.js} +2 -2
  163. package/dist/web/Row.web.tsrx.js +250 -0
  164. package/dist/web/{ui42.js → SafeArea.web.tsrx.js} +1 -1
  165. package/dist/web/{ui38.js → Screen.web.tsrx.js} +1 -1
  166. package/dist/web/{ui24.js → ScrollBox.web.tsrx.js} +1 -1
  167. package/dist/web/ScrollView.web.tsrx.js +388 -0
  168. package/dist/web/SearchInput.web.tsrx.js +137 -0
  169. package/dist/web/SegmentedControl.web.tsrx.js +75 -0
  170. package/dist/web/Select.web.tsrx.js +149 -0
  171. package/dist/web/Separator.web.tsrx.js +42 -0
  172. package/dist/web/Sheet.web.tsrx.js +81 -0
  173. package/dist/web/Skeleton.web.tsrx.js +56 -0
  174. package/dist/web/Slider.web.tsrx.js +97 -0
  175. package/dist/web/{ui12.js → Spacer.web.tsrx.js} +1 -1
  176. package/dist/web/Stack.web.tsrx.js +47 -0
  177. package/dist/web/Stepper.web.tsrx.js +65 -0
  178. package/dist/web/Switch.web.tsrx.js +59 -0
  179. package/dist/web/Table.web.tsrx.js +161 -0
  180. package/dist/web/{ui39.js → Tabs.web.tsrx.js} +33 -16
  181. package/dist/web/{ui13.js → Text.web.tsrx.js} +79 -46
  182. package/dist/web/{ui21.js → TextArea.web.tsrx.js} +4 -4
  183. package/dist/web/{ui20.js → TextInput.web.tsrx.js} +8 -8
  184. package/dist/web/Timeline.web.tsrx.js +172 -0
  185. package/dist/web/Tree.web.tsrx.js +146 -0
  186. package/dist/web/User.web.tsrx.js +116 -0
  187. package/dist/web/Video.web.tsrx.js +400 -0
  188. package/dist/web/View.web.tsrx.js +250 -0
  189. package/dist/web/WebView.web.tsrx.js +235 -0
  190. package/dist/web/aliases.web.tsrx.js +24 -0
  191. package/dist/web/{ui35.js → anim.web.tsrx.js} +3 -2
  192. package/dist/web/child-array.js +15 -0
  193. package/dist/web/icons.js +25 -0
  194. package/dist/web/octane-client-build.json +1 -1
  195. package/dist/web/pan.web.tsrx.js +66 -0
  196. package/dist/web/platform.web.js +9 -0
  197. package/dist/web/refresh-metrics.js +9 -0
  198. package/dist/web/refresh.web.js +133 -0
  199. package/dist/web/{ui18.js → route.web.js} +14 -2
  200. package/dist/web/sheet-detents.web.js +103 -0
  201. package/dist/web/{ui58.js → sheet-service.web.js} +5 -1
  202. package/dist/web/sheet-snap.js +35 -0
  203. package/dist/{native/ui31.js → web/theme/theme-scheme.js} +2 -2
  204. package/dist/web/toast-anchor.web.tsrx.js +142 -0
  205. package/dist/web/transform.web.js +43 -0
  206. package/dist/web/translate.web.js +13 -0
  207. package/dist/web/ui.js +91 -51
  208. package/dist/web/use-back.web.tsrx.js +9 -0
  209. package/dist/web/useMeasure.web.tsrx.js +50 -0
  210. package/dist/web/video-chrome.web.tsrx.js +207 -0
  211. package/dist/web/web/Hoverable.web.tsrx.js +150 -0
  212. package/dist/web/web/Tooltip.web.tsrx.js +183 -0
  213. package/dist/web/web/index.js +3 -0
  214. package/package.json +34 -3
  215. package/src/theme/tokens.css +1599 -194
  216. package/types/android.d.ts +53 -0
  217. package/types/index.d.ts +39 -14
  218. package/types/index.native.d.ts +273 -0
  219. package/types/index.web.d.ts +272 -0
  220. package/types/ios.d.ts +59 -0
  221. package/types/native.d.ts +5 -0
  222. package/types/props.d.ts +989 -44
  223. package/types/web.d.ts +17 -0
  224. package/dist/native/ui10.js +0 -32
  225. package/dist/native/ui25.js +0 -141
  226. package/dist/native/ui27.js +0 -61
  227. package/dist/native/ui39.js +0 -105
  228. package/dist/native/ui4.js +0 -24
  229. package/dist/native/ui44.js +0 -267
  230. package/dist/native/ui54.js +0 -17
  231. package/dist/native/ui57.js +0 -14
  232. package/dist/native/ui7.js +0 -52
  233. package/dist/web/ui10.js +0 -46
  234. package/dist/web/ui11.js +0 -42
  235. package/dist/web/ui22.js +0 -108
  236. package/dist/web/ui23.js +0 -96
  237. package/dist/web/ui26.js +0 -45
  238. package/dist/web/ui3.js +0 -31
  239. package/dist/web/ui30.js +0 -34
  240. package/dist/web/ui34.js +0 -70
  241. package/dist/web/ui40.js +0 -43
  242. package/dist/web/ui43.js +0 -42
  243. package/dist/web/ui49.js +0 -47
  244. package/dist/web/ui5.js +0 -168
  245. package/dist/web/ui50.js +0 -17
  246. package/dist/web/ui51.js +0 -149
  247. package/dist/web/ui53.js +0 -17
  248. package/dist/web/ui57.js +0 -44
  249. package/dist/web/ui6.js +0 -94
  250. package/dist/web/ui7.js +0 -62
  251. package/dist/web/ui8.js +0 -46
  252. package/dist/web/ui9.js +0 -46
  253. /package/dist/native/{ui20.js → RouteHost.native.tsrx.js} +0 -0
  254. /package/dist/native/{ui40.js → anim.native.tsrx.js} +0 -0
  255. /package/dist/native/{ui2.js → cx.js} +0 -0
  256. /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
  257. /package/dist/native/{ui51.js → meter-math.js} +0 -0
  258. /package/dist/native/{ui36.js → platformProps.native.js} +0 -0
  259. /package/dist/native/{ui37.js → popover-position.js} +0 -0
  260. /package/dist/native/{ui19.js → route-table.js} +0 -0
  261. /package/dist/native/{ui46.js → safeAreaInsets.native.tsrx.js} +0 -0
  262. /package/dist/native/{ui18.js → stacks.native.js} +0 -0
  263. /package/dist/native/{ui58.js → store.js} +0 -0
  264. /package/dist/native/{ui41.js → styled.native.tsrx.js} +0 -0
  265. /package/dist/native/{ui28.js → svg.native.js} +0 -0
  266. /package/dist/native/{ui30.js → theme/colorScheme.native.js} +0 -0
  267. /package/dist/native/{ui59.js → use-store.native.tsrx.js} +0 -0
  268. /package/dist/native/{ui42.js → windows.native.js} +0 -0
  269. /package/dist/web/{ui16.js → Link.web.tsrx.js} +0 -0
  270. /package/dist/web/{ui28.js → cx.js} +0 -0
  271. /package/dist/web/{ui2.js → escape-props.web.js} +0 -0
  272. /package/dist/web/{ui4.js → layout-child.web.js} +0 -0
  273. /package/dist/web/{ui47.js → meter-math.js} +0 -0
  274. /package/dist/web/{ui45.js → platformProps.web.js} +0 -0
  275. /package/dist/web/{ui32.js → popover-position.js} +0 -0
  276. /package/dist/web/{ui17.js → route-table.js} +0 -0
  277. /package/dist/web/{ui41.js → safeAreaInsets.web.tsrx.js} +0 -0
  278. /package/dist/web/{ui54.js → stacks.web.js} +0 -0
  279. /package/dist/web/{ui55.js → store.js} +0 -0
  280. /package/dist/web/{ui36.js → styled.web.tsrx.js} +0 -0
  281. /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
  282. /package/dist/web/{ui56.js → use-store.web.tsrx.js} +0 -0
  283. /package/dist/web/{ui37.js → windows.web.js} +0 -0
@@ -0,0 +1,103 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { defineUniversalComponent, universalFor, universalPlan, universalValue } from "@nativescript-community/octane";
4
+ //#region src/Table.native.tsrx
5
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
+ "kind": "host",
7
+ "type": "flexboxlayout",
8
+ "props": { "className": "vx-table-cell vx-table-th" },
9
+ "bindings": [["style", 0]],
10
+ "children": [{
11
+ "kind": "host",
12
+ "type": "label",
13
+ "bindings": [["text", 1]]
14
+ }]
15
+ });
16
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
17
+ "kind": "host",
18
+ "type": "flexboxlayout",
19
+ "props": { "className": "vx-table-empty" },
20
+ "children": [{
21
+ "kind": "slot",
22
+ "slot": 0
23
+ }]
24
+ });
25
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
26
+ "kind": "host",
27
+ "type": "label",
28
+ "bindings": [["text", 0]]
29
+ });
30
+ var __octaneUniversalPlan3 = universalPlan("nativescript", {
31
+ "kind": "host",
32
+ "type": "flexboxlayout",
33
+ "props": { "className": "vx-table-cell" },
34
+ "bindings": [["style", 0]],
35
+ "children": [{
36
+ "kind": "slot",
37
+ "slot": 1
38
+ }]
39
+ });
40
+ var __octaneUniversalPlan4 = universalPlan("nativescript", {
41
+ "kind": "host",
42
+ "type": "flexboxlayout",
43
+ "bindings": [["className", 0], ["onTap", 1]],
44
+ "children": [{
45
+ "kind": "slot",
46
+ "slot": 2
47
+ }]
48
+ });
49
+ var __octaneUniversalPlan5 = universalPlan("nativescript", {
50
+ "kind": "slot",
51
+ "slot": 0
52
+ });
53
+ var __octaneUniversalPlan6 = universalPlan("nativescript", {
54
+ "kind": "host",
55
+ "type": "flexboxlayout",
56
+ "bindings": [
57
+ ["ref", 0],
58
+ ["id", 1],
59
+ ["className", 2],
60
+ ["style", 3]
61
+ ],
62
+ "children": [{
63
+ "kind": "host",
64
+ "type": "flexboxlayout",
65
+ "props": { "className": "vx-table-head" },
66
+ "children": [{
67
+ "kind": "slot",
68
+ "slot": 4
69
+ }]
70
+ }, {
71
+ "kind": "slot",
72
+ "slot": 5
73
+ }]
74
+ });
75
+ var Table = defineUniversalComponent("nativescript", function Table(props) {
76
+ const cellStyle = (col) => ({
77
+ ...col.width != null ? { width: col.width } : { flexGrow: 1 },
78
+ ...col.align ? { textAlignment: col.align } : {}
79
+ });
80
+ return universalValue(__octaneUniversalPlan6, [
81
+ (v) => applyEscapeProps(v, props),
82
+ props.id,
83
+ cx("vx-table", props.className),
84
+ props.style,
85
+ universalFor(props.columns, (col, __octaneUniversalIndex) => col.key, (col, __octaneUniversalIndex) => {
86
+ return universalValue(__octaneUniversalPlan0, [cellStyle(col), col.label ?? col.key]);
87
+ }),
88
+ props.rows.length === 0 && props.empty != null ? universalValue(__octaneUniversalPlan1, [props.empty]) : universalValue(__octaneUniversalPlan5, [universalFor(props.rows.map((row, ri) => ({
89
+ row,
90
+ ri
91
+ })), (e, __octaneUniversalIndex$) => props.keyFor ? props.keyFor(e.row, e.ri) : String(e.ri), (e, __octaneUniversalIndex$) => {
92
+ return universalValue(__octaneUniversalPlan4, [
93
+ cx("vx-table-row", props.onRowPress && "vx-table-row--pressable"),
94
+ props.onRowPress ? () => props.onRowPress(e.row, e.ri) : void 0,
95
+ universalFor(props.columns, (col, __octaneUniversalIndex$$) => col.key, (col, __octaneUniversalIndex$$) => {
96
+ return universalValue(__octaneUniversalPlan3, [cellStyle(col), props.renderCell ? props.renderCell(e.row, col, e.ri) : universalValue(__octaneUniversalPlan2, [String(e.row[col.key] ?? "")])]);
97
+ })
98
+ ]);
99
+ })])
100
+ ]);
101
+ }, { "module": "@nativescript-community/octane" });
102
+ //#endregion
103
+ export { Table };
@@ -0,0 +1,163 @@
1
+ import { cx } from "./cx.js";
2
+ import { Text } from "./Text.native.tsrx.js";
3
+ import { Pressable } from "./Pressable.native.tsrx.js";
4
+ import { Icon } from "./Icon.native.tsrx.js";
5
+ import { RouteHost } from "./RouteHost.native.tsrx.js";
6
+ import { layoutsForRoute, screenFor, useRoute } from "./route.native.js";
7
+ import { defineUniversalComponent, hookSlots, universalChildren, universalComponent, universalFor, universalIf, universalPlan, universalProps, universalValue, useState, withSlot } from "@nativescript-community/octane";
8
+ //#region src/Tabs.native.tsrx
9
+ var _hs$ = /* @__PURE__ */ hookSlots(2);
10
+ var _h$0 = /* @__PURE__ */ Symbol(_hs$);
11
+ var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
12
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
13
+ "kind": "slot",
14
+ "slot": 0
15
+ });
16
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
17
+ "kind": "range",
18
+ "children": [{
19
+ "kind": "slot",
20
+ "slot": 0
21
+ }, {
22
+ "kind": "slot",
23
+ "slot": 1
24
+ }]
25
+ });
26
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
27
+ "kind": "slot",
28
+ "slot": 0
29
+ });
30
+ var __octaneUniversalPlan3 = universalPlan("nativescript", {
31
+ "kind": "slot",
32
+ "slot": 0
33
+ });
34
+ var __octaneUniversalPlan4 = universalPlan("nativescript", {
35
+ "kind": "range",
36
+ "children": [{
37
+ "kind": "slot",
38
+ "slot": 0
39
+ }]
40
+ });
41
+ var __octaneUniversalPlan5 = universalPlan("nativescript", {
42
+ "kind": "host",
43
+ "type": "gridlayout",
44
+ "props": { "rows": "auto,*" },
45
+ "bindings": [
46
+ ["id", 0],
47
+ ["className", 1],
48
+ ["style", 2]
49
+ ],
50
+ "children": [{
51
+ "kind": "host",
52
+ "type": "gridlayout",
53
+ "props": {
54
+ "row": 0,
55
+ "className": "vx-tabbar"
56
+ },
57
+ "bindings": [["columns", 3]],
58
+ "children": [{
59
+ "kind": "slot",
60
+ "slot": 4
61
+ }]
62
+ }, {
63
+ "kind": "host",
64
+ "type": "gridlayout",
65
+ "props": { "row": 1 },
66
+ "bindings": [["className", 5]],
67
+ "children": [{
68
+ "kind": "slot",
69
+ "slot": 6
70
+ }]
71
+ }]
72
+ });
73
+ function screenParams(route) {
74
+ const params = {
75
+ ...route.params,
76
+ ...route.context ?? {},
77
+ _stack: route.stack,
78
+ _pushed: true
79
+ };
80
+ if (Object.prototype.hasOwnProperty.call(route, "loaderData")) params.data = route.loaderData;
81
+ if (Object.prototype.hasOwnProperty.call(route, "loaderError")) params.error = route.loaderError;
82
+ return params;
83
+ }
84
+ var Tabs = defineUniversalComponent("nativescript", function Tabs(props) {
85
+ const [internal, setInternal] = useState(0, _h$0);
86
+ const active = props.selectedIndex ?? internal;
87
+ const tab = props.tabs[active];
88
+ const route = withSlot(_h$1, useRoute, tab?.stack ?? "");
89
+ const Screen = route ? screenFor(route.name) : void 0;
90
+ const columns = props.tabs.map(() => "*").join(",");
91
+ return universalValue(__octaneUniversalPlan5, [
92
+ props.id,
93
+ cx(props.className),
94
+ props.style,
95
+ columns,
96
+ universalFor(props.tabs, (t, i) => t.title, (t, i) => {
97
+ return universalValue(__octaneUniversalPlan2, [universalComponent("nativescript", Pressable, universalProps([
98
+ [
99
+ "set",
100
+ "col",
101
+ i
102
+ ],
103
+ [
104
+ "set",
105
+ "className",
106
+ cx("vx-tab", active === i ? "active" : "")
107
+ ],
108
+ [
109
+ "set",
110
+ "onPress",
111
+ () => {
112
+ setInternal(i);
113
+ props.onSelectedIndexChanged?.(i);
114
+ }
115
+ ]
116
+ ], universalChildren("nativescript", () => {
117
+ return universalValue(__octaneUniversalPlan1, [universalIf(t.icon, () => {
118
+ return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([
119
+ [
120
+ "set",
121
+ "name",
122
+ t.icon
123
+ ],
124
+ [
125
+ "set",
126
+ "className",
127
+ "vx-tabicon"
128
+ ],
129
+ [
130
+ "set",
131
+ "size",
132
+ 18
133
+ ]
134
+ ]))]);
135
+ }), universalComponent("nativescript", Text, universalProps([], t.title))]);
136
+ })))]);
137
+ }),
138
+ cx("vx-tabpane", route?.presentation === "fade" ? "vx-route--fade" : ""),
139
+ universalIf(route && Screen, () => {
140
+ return universalValue(__octaneUniversalPlan3, [universalComponent("nativescript", RouteHost, universalProps([
141
+ [
142
+ "set",
143
+ "screen",
144
+ Screen
145
+ ],
146
+ [
147
+ "set",
148
+ "layouts",
149
+ layoutsForRoute(route.name)
150
+ ],
151
+ [
152
+ "set",
153
+ "params",
154
+ screenParams(route)
155
+ ]
156
+ ]))]);
157
+ }, () => {
158
+ return universalValue(__octaneUniversalPlan4, [tab?.render()]);
159
+ })
160
+ ]);
161
+ }, { "module": "@nativescript-community/octane" });
162
+ //#endregion
163
+ export { Tabs };
@@ -1,6 +1,6 @@
1
- import { cx } from "./ui2.js";
2
- import { applyEscapeProps, nativeAccessibilityState } from "./ui3.js";
3
- import { layoutChildProps } from "./ui5.js";
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps, nativeAccessibilityRole, nativeAccessibilityState } from "./escape-props.native.js";
3
+ import { layoutChildProps } from "./layout-child.native.js";
4
4
  import { createContext, defineUniversalComponent, universalComponent, universalIf, universalPlan, universalProps, universalValue, useContext } from "@nativescript-community/octane";
5
5
  //#region src/Text.native.tsrx
6
6
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
@@ -36,6 +36,7 @@ var Text = defineUniversalComponent("nativescript", function Text(props) {
36
36
  const inText = useContext(InText);
37
37
  const textStyle = {
38
38
  ...props.style,
39
+ ...props.ellipsize || props.numberOfLines ? { flexShrink: 1 } : {},
39
40
  ...props.ellipsize ? {
40
41
  whiteSpace: "nowrap",
41
42
  textOverflow: "ellipsis"
@@ -98,6 +99,21 @@ var Text = defineUniversalComponent("nativescript", function Text(props) {
98
99
  "textOverflow",
99
100
  props.ellipsize ? "ellipsis" : void 0
100
101
  ],
102
+ [
103
+ "set",
104
+ "accessible",
105
+ props.accessible
106
+ ],
107
+ [
108
+ "set",
109
+ "accessibilityLabel",
110
+ props.accessibilityLabel
111
+ ],
112
+ [
113
+ "set",
114
+ "accessibilityRole",
115
+ nativeAccessibilityRole(props.accessibilityRole)
116
+ ],
101
117
  [
102
118
  "set",
103
119
  "accessibilityHint",
@@ -1,11 +1,13 @@
1
- import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { writeText } from "./text-write.native.js";
3
4
  import { defineUniversalComponent, hookSlots, universalPlan, universalValue, useEffect, useRef } from "@nativescript-community/octane";
4
5
  import { Utils } from "@nativescript/core";
5
6
  //#region src/TextArea.native.tsrx
6
- var _hs$ = /* @__PURE__ */ hookSlots(2);
7
+ var _hs$ = /* @__PURE__ */ hookSlots(3);
7
8
  var _h$0 = /* @__PURE__ */ Symbol(_hs$);
8
9
  var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
10
+ var _h$2 = /* @__PURE__ */ Symbol(_hs$ + 2);
9
11
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
10
12
  "kind": "host",
11
13
  "type": "textview",
@@ -14,20 +16,20 @@ var __octaneUniversalPlan0 = universalPlan("nativescript", {
14
16
  ["ref", 1],
15
17
  ["className", 2],
16
18
  ["style", 3],
17
- ["text", 4],
18
- ["hint", 5],
19
- ["keyboardType", 6],
20
- ["returnKeyType", 7],
21
- ["editable", 8],
22
- ["onLoaded", 9],
23
- ["onTextChange", 10],
24
- ["onReturnPress", 11],
25
- ["onFocus", 12],
26
- ["onBlur", 13]
19
+ ["hint", 4],
20
+ ["keyboardType", 5],
21
+ ["returnKeyType", 6],
22
+ ["editable", 7],
23
+ ["onLoaded", 8],
24
+ ["onTextChange", 9],
25
+ ["onReturnPress", 10],
26
+ ["onFocus", 11],
27
+ ["onBlur", 12]
27
28
  ]
28
29
  });
29
30
  var TextArea = defineUniversalComponent("nativescript", function TextArea(props) {
30
31
  const el = useRef(null, _h$0);
32
+ const submitOnReturn = props.returnKeyType === "done" || props.returnKeyType === "send";
31
33
  const lineDip = (v) => {
32
34
  const ios = v?.ios?.font?.lineHeight;
33
35
  if (ios > 0) return ios;
@@ -50,6 +52,7 @@ var TextArea = defineUniversalComponent("nativescript", function TextArea(props)
50
52
  props.maxRows,
51
53
  props.style
52
54
  ], _h$1);
55
+ useEffect(() => writeText(el.current, props.value), [props.value], _h$2);
53
56
  return universalValue(__octaneUniversalPlan0, [
54
57
  props.id,
55
58
  (v) => {
@@ -62,19 +65,18 @@ var TextArea = defineUniversalComponent("nativescript", function TextArea(props)
62
65
  native: v
63
66
  });
64
67
  },
65
- cx(props.className),
68
+ cx("vx-textarea", props.className),
66
69
  {
67
70
  ...props.style,
68
71
  ...props.placeholderTextColor ? { placeholderColor: props.placeholderTextColor } : {}
69
72
  },
70
- props.value,
71
- props.placeholder ?? props.hint,
73
+ props.placeholder,
72
74
  props.keyboardType === "default" ? void 0 : props.keyboardType,
73
75
  props.returnKeyType,
74
76
  props.editable ?? true,
75
77
  (e) => fit(e.object),
76
78
  (e) => props.onChange?.(e.value),
77
- props.onSubmit,
79
+ submitOnReturn ? props.onSubmit : void 0,
78
80
  props.onFocus,
79
81
  props.onBlur
80
82
  ]);
@@ -1,7 +1,11 @@
1
- import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
3
- import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { writeText } from "./text-write.native.js";
4
+ import { defineUniversalComponent, hookSlots, universalPlan, universalValue, useEffect, useRef } from "@nativescript-community/octane";
4
5
  //#region src/TextInput.native.tsrx
6
+ var _hs$ = /* @__PURE__ */ hookSlots(2);
7
+ var _h$0 = /* @__PURE__ */ Symbol(_hs$);
8
+ var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
5
9
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
6
10
  "kind": "host",
7
11
  "type": "textfield",
@@ -10,21 +14,23 @@ var __octaneUniversalPlan0 = universalPlan("nativescript", {
10
14
  ["id", 1],
11
15
  ["className", 2],
12
16
  ["style", 3],
13
- ["text", 4],
14
- ["hint", 5],
15
- ["secure", 6],
16
- ["keyboardType", 7],
17
- ["returnKeyType", 8],
18
- ["editable", 9],
19
- ["onTextChange", 10],
20
- ["onReturnPress", 11],
21
- ["onFocus", 12],
22
- ["onBlur", 13]
17
+ ["hint", 4],
18
+ ["secure", 5],
19
+ ["keyboardType", 6],
20
+ ["returnKeyType", 7],
21
+ ["editable", 8],
22
+ ["onTextChange", 9],
23
+ ["onReturnPress", 10],
24
+ ["onFocus", 11],
25
+ ["onBlur", 12]
23
26
  ]
24
27
  });
25
28
  var TextInput = defineUniversalComponent("nativescript", function TextInput(props) {
29
+ const el = useRef(null, _h$0);
30
+ useEffect(() => writeText(el.current, props.value), [props.value], _h$1);
26
31
  return universalValue(__octaneUniversalPlan0, [
27
32
  (v) => {
33
+ el.current = v;
28
34
  if (!v) return;
29
35
  applyEscapeProps(v, props);
30
36
  props.bind?.({
@@ -34,13 +40,12 @@ var TextInput = defineUniversalComponent("nativescript", function TextInput(prop
34
40
  });
35
41
  },
36
42
  props.id,
37
- cx(props.className),
43
+ cx("vx-input", props.className),
38
44
  {
39
45
  ...props.style,
40
46
  ...props.placeholderTextColor ? { placeholderColor: props.placeholderTextColor } : {}
41
47
  },
42
- props.value,
43
- props.placeholder ?? props.hint,
48
+ props.placeholder,
44
49
  props.secure,
45
50
  props.keyboardType === "default" ? void 0 : props.keyboardType,
46
51
  props.returnKeyType,
@@ -0,0 +1,112 @@
1
+ import { cx } from "./cx.js";
2
+ import { applyEscapeProps } from "./escape-props.native.js";
3
+ import { Icon } from "./Icon.native.tsrx.js";
4
+ import { defineUniversalComponent, universalComponent, universalFor, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
5
+ //#region src/Timeline.native.tsrx
6
+ var __octaneUniversalPlan0 = universalPlan("nativescript", {
7
+ "kind": "slot",
8
+ "slot": 0
9
+ });
10
+ var __octaneUniversalPlan1 = universalPlan("nativescript", {
11
+ "kind": "host",
12
+ "type": "flexboxlayout",
13
+ "props": { "className": "vx-timeline-line" }
14
+ });
15
+ var __octaneUniversalPlan2 = universalPlan("nativescript", {
16
+ "kind": "host",
17
+ "type": "label",
18
+ "props": { "className": "vx-timeline-time" },
19
+ "bindings": [["text", 0]]
20
+ });
21
+ var __octaneUniversalPlan3 = universalPlan("nativescript", {
22
+ "kind": "host",
23
+ "type": "label",
24
+ "props": { "className": "vx-timeline-title" },
25
+ "bindings": [["text", 0]]
26
+ });
27
+ var __octaneUniversalPlan4 = universalPlan("nativescript", {
28
+ "kind": "host",
29
+ "type": "label",
30
+ "props": { "className": "vx-timeline-desc" },
31
+ "bindings": [["text", 0]]
32
+ });
33
+ var __octaneUniversalPlan5 = universalPlan("nativescript", {
34
+ "kind": "host",
35
+ "type": "flexboxlayout",
36
+ "props": { "className": "vx-timeline-item" },
37
+ "children": [{
38
+ "kind": "host",
39
+ "type": "flexboxlayout",
40
+ "props": { "className": "vx-timeline-rail" },
41
+ "children": [{
42
+ "kind": "host",
43
+ "type": "flexboxlayout",
44
+ "props": { "className": "vx-timeline-dot" },
45
+ "children": [{
46
+ "kind": "slot",
47
+ "slot": 0
48
+ }]
49
+ }, {
50
+ "kind": "slot",
51
+ "slot": 1
52
+ }]
53
+ }, {
54
+ "kind": "host",
55
+ "type": "flexboxlayout",
56
+ "props": { "className": "vx-timeline-body" },
57
+ "children": [
58
+ {
59
+ "kind": "slot",
60
+ "slot": 2
61
+ },
62
+ {
63
+ "kind": "slot",
64
+ "slot": 3
65
+ },
66
+ {
67
+ "kind": "slot",
68
+ "slot": 4
69
+ }
70
+ ]
71
+ }]
72
+ });
73
+ var __octaneUniversalPlan6 = universalPlan("nativescript", {
74
+ "kind": "host",
75
+ "type": "flexboxlayout",
76
+ "bindings": [
77
+ ["ref", 0],
78
+ ["id", 1],
79
+ ["className", 2],
80
+ ["style", 3]
81
+ ],
82
+ "children": [{
83
+ "kind": "slot",
84
+ "slot": 4
85
+ }]
86
+ });
87
+ var Timeline = defineUniversalComponent("nativescript", function Timeline(props) {
88
+ return universalValue(__octaneUniversalPlan6, [
89
+ (v) => applyEscapeProps(v, props),
90
+ props.id,
91
+ cx("vx-timeline", props.className),
92
+ props.style,
93
+ universalFor(props.items.map((item, i) => ({
94
+ item,
95
+ i
96
+ })), (e, __octaneUniversalIndex) => e.item.key, (e, __octaneUniversalIndex) => {
97
+ return universalValue(__octaneUniversalPlan5, [
98
+ e.item.icon ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([[
99
+ "set",
100
+ "name",
101
+ e.item.icon
102
+ ]]))]) : null,
103
+ e.i < props.items.length - 1 ? universalValue(__octaneUniversalPlan1, []) : null,
104
+ e.item.time != null ? universalValue(__octaneUniversalPlan2, [e.item.time]) : null,
105
+ e.item.title != null ? universalValue(__octaneUniversalPlan3, [e.item.title]) : null,
106
+ e.item.description != null ? universalValue(__octaneUniversalPlan4, [e.item.description]) : null
107
+ ]);
108
+ })
109
+ ]);
110
+ }, { "module": "@nativescript-community/octane" });
111
+ //#endregion
112
+ export { Timeline };