@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
@@ -1,52 +0,0 @@
1
- import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
3
- import { glassClassOf, glassConfigOf } from "./ui4.js";
4
- import { layoutChildProps } from "./ui5.js";
5
- import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
6
- //#region src/Row.native.tsrx
7
- var __octaneUniversalPlan0 = universalPlan("nativescript", {
8
- "kind": "host",
9
- "type": "flexboxlayout",
10
- "propsSlot": 0,
11
- "children": [{
12
- "kind": "slot",
13
- "slot": 1
14
- }]
15
- });
16
- var Row = defineUniversalComponent("nativescript", function Row(props) {
17
- return universalValue(__octaneUniversalPlan0, [universalProps([
18
- [
19
- "set",
20
- "id",
21
- props.id
22
- ],
23
- [
24
- "set",
25
- "ref",
26
- (v) => applyEscapeProps(v, props)
27
- ],
28
- [
29
- "set",
30
- "flexDirection",
31
- "row"
32
- ],
33
- [
34
- "set",
35
- "iosGlassEffect",
36
- glassConfigOf(props.glass)
37
- ],
38
- [
39
- "set",
40
- "className",
41
- cx(glassClassOf(props.glass), props.className)
42
- ],
43
- [
44
- "set",
45
- "style",
46
- props.style
47
- ],
48
- ["spread", layoutChildProps(props)]
49
- ]), props.children]);
50
- }, { "module": "@nativescript-community/octane" });
51
- //#endregion
52
- export { Row };
package/dist/web/ui10.js DELETED
@@ -1,46 +0,0 @@
1
- import { applyEscapeProps } from "./ui2.js";
2
- import { glassClassOf, glassStyleOf } from "./ui3.js";
3
- import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
4
- import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
5
- //#region src/LiquidGlass.web.tsrx
6
- enableSignalBindings(1, true);
7
- var _t$0 = /* @__PURE__ */ template("<div></div>");
8
- var _rm$1 = [
9
- "r",
10
- "e",
11
- "b"
12
- ];
13
- var LiquidGlass = /* @__PURE__ */ __s(function LiquidGlass(props, __s, __extra) {
14
- let _b = __s.slots[0];
15
- if (_b === void 0) {
16
- let _m1, _m4;
17
- const _root = clone(_t$0);
18
- _m1 = _root;
19
- queueRefAttach(__s, _m4 = (el) => applyEscapeProps(el, props), _m1);
20
- (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.e, _b.b));
21
- _b = bag7(__s, _root, void 0, _m1, void 0, void 0, _m4, null, void 0);
22
- __s.refFields = _rm$1;
23
- } else {
24
- const _r = (el) => applyEscapeProps(el, props);
25
- if (_r !== _b.e) _b.e = replaceRef(__s, _b.e, _r, _b.b);
26
- }
27
- _b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:3b4a2648", setPlainAttribute);
28
- _b.c = updateFreshClassName([
29
- "vx-stack",
30
- glassClassOf({ variant: props.variant ?? "regular" }),
31
- props.className
32
- ], _b.c, _b.b);
33
- {
34
- const _v = {
35
- ...glassStyleOf({ tint: props.tint }),
36
- ...props.style
37
- };
38
- if (_b.d !== _v) {
39
- setStyle(_b.b, _v, _b.d);
40
- _b.d = _v;
41
- }
42
- }
43
- _b.h = bindSignalChild(__s, _b.h, 1, _b.b, props.children, "b:9211318a", null, void 0, void 0, void 0, true);
44
- });
45
- //#endregion
46
- export { LiquidGlass };
package/dist/web/ui11.js DELETED
@@ -1,42 +0,0 @@
1
- import { applyEscapeProps } from "./ui2.js";
2
- import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
3
- import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
4
- //#region src/LiquidGlassContainer.web.tsrx
5
- enableSignalBindings(1, true);
6
- var _t$0 = /* @__PURE__ */ template("<div></div>");
7
- var _rm$1 = [
8
- "r",
9
- "e",
10
- "b"
11
- ];
12
- var LiquidGlassContainer = /* @__PURE__ */ __s(function LiquidGlassContainer(props, __s, __extra) {
13
- let _b = __s.slots[0];
14
- if (_b === void 0) {
15
- let _m1, _m4;
16
- const _root = clone(_t$0);
17
- _m1 = _root;
18
- queueRefAttach(__s, _m4 = (el) => applyEscapeProps(el, props), _m1);
19
- (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.e, _b.b));
20
- _b = bag7(__s, _root, void 0, _m1, void 0, void 0, _m4, null, void 0);
21
- __s.refFields = _rm$1;
22
- } else {
23
- const _r = (el) => applyEscapeProps(el, props);
24
- if (_r !== _b.e) _b.e = replaceRef(__s, _b.e, _r, _b.b);
25
- }
26
- _b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:46ee8524", setPlainAttribute);
27
- _b.c = updateFreshClassName([
28
- "vx-absolute",
29
- "vx-glass-container",
30
- props.className
31
- ], _b.c, _b.b);
32
- {
33
- const _v = props.style;
34
- if (_b.d !== _v) {
35
- setStyle(_b.b, _v, _b.d);
36
- _b.d = _v;
37
- }
38
- }
39
- _b.h = bindSignalChild(__s, _b.h, 1, _b.b, props.children, "b:295618e2", null, void 0, void 0, void 0, true);
40
- });
41
- //#endregion
42
- export { LiquidGlassContainer };
package/dist/web/ui22.js DELETED
@@ -1,108 +0,0 @@
1
- import { __s, bag4, bag6, child, clone, drainFrag, forBlock, hookSlots, queueRefAttach, queueRefDetach, setStyle, template, useLayoutEffect, useRef } from "octane";
2
- import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
3
- //#region src/List.web.tsrx
4
- enableSignalBindings(1, true);
5
- var _t$0 = /* @__PURE__ */ template("<!>", 0, 1);
6
- var _t$1 = /* @__PURE__ */ template("<div><!></div>");
7
- var _hs$ = /* @__PURE__ */ hookSlots(3);
8
- function __empty$1(__props, __s, __extra) {
9
- const __block = __s.block;
10
- const props = __extra[0];
11
- let _b = __s.slots[0];
12
- if (_b === void 0) {
13
- let _m0, _m1;
14
- const _root = clone(_t$0);
15
- _m0 = __block.parentNode;
16
- _m1 = child(_root);
17
- drainFrag(_root, __block.parentNode, __block.endMarker);
18
- _b = bag4(__s, null, _m0, _m1, null, void 0);
19
- }
20
- _b.e = bindSignalChild(__s, _b.e, 1, _b.a, props.renderEmpty?.(), "b:0fabf1d6", _b.b, true, void 0, true, void 0);
21
- }
22
- function __item$3(item, __s, __extra) {
23
- const __block = __s.block;
24
- const props = __extra[0];
25
- const i = __block.itemIndex;
26
- let _b = __s.slots[0];
27
- if (_b === void 0) {
28
- let _m0, _m1;
29
- const _root = clone(_t$0);
30
- _m0 = __block.parentNode;
31
- _m1 = child(_root);
32
- drainFrag(_root, __block.parentNode, __block.endMarker);
33
- _b = bag4(__s, null, _m0, _m1, null, void 0);
34
- }
35
- _b.e = bindSignalChild(__s, _b.e, 1, _b.a, props.renderItem(item, i), "b:0d1e153e", _b.b, true, void 0, true, void 0);
36
- }
37
- var _rm$6 = [
38
- "r",
39
- "c",
40
- "b"
41
- ];
42
- var List = /* @__PURE__ */ __s(function List(props, __s, __extra) {
43
- const el = useRef(null, _hs$ + 0);
44
- const reachedEnd = useRef(false, _hs$ + 1);
45
- useLayoutEffect(() => {
46
- const node = el.current;
47
- if (!node) return;
48
- for (const [name, value] of Object.entries(props.web ?? {})) if (name.includes("-")) {
49
- if (value == null) node.removeAttribute(name);
50
- else node.setAttribute(name, String(value));
51
- } else node[name] = value;
52
- let frame = 0;
53
- const checkEnd = () => {
54
- frame = 0;
55
- if (node.scrollHeight - node.scrollTop - node.clientHeight > node.clientHeight) reachedEnd.current = false;
56
- else if (!reachedEnd.current) {
57
- reachedEnd.current = true;
58
- props.onEndReached?.();
59
- }
60
- };
61
- const onScroll = () => {
62
- if (!frame) frame = requestAnimationFrame(checkEnd);
63
- };
64
- node.addEventListener("scroll", onScroll, { passive: true });
65
- checkEnd();
66
- return () => {
67
- node.removeEventListener("scroll", onScroll);
68
- if (frame) cancelAnimationFrame(frame);
69
- };
70
- }, [
71
- props.onEndReached,
72
- props.web,
73
- props.items
74
- ], _hs$ + 2);
75
- let _b = __s.slots[0];
76
- if (_b === void 0) {
77
- let _m1, _m2, _m5;
78
- const _root = clone(_t$1);
79
- _m1 = _root;
80
- queueRefAttach(__s, _m2 = el, _m1);
81
- (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.c, _b.b));
82
- _m5 = child(_root);
83
- _b = bag6(__s, _root, void 0, _m1, _m2, void 0, void 0, _m5);
84
- __s.refFields = _rm$6;
85
- } else {
86
- const _r = el;
87
- if (_r !== _b.c) _b.c = replaceRef(__s, _b.c, _r, _b.b);
88
- }
89
- _b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:7d4c5670", setPlainAttribute);
90
- _b.d = updateFreshClassName(["vx-list", props.className], _b.d, _b.b);
91
- {
92
- const _v = Object.assign({
93
- display: "flex",
94
- flexDirection: "column",
95
- flexWrap: "nowrap",
96
- alignItems: "stretch",
97
- overflowY: "auto",
98
- minHeight: 0
99
- }, props.style);
100
- if (_b.e !== _v) {
101
- setStyle(_b.b, _v, _b.e);
102
- _b.e = _v;
103
- }
104
- }
105
- forBlock(__s, 1, _b.b, props.items, (item, i) => props.keyFor?.(item) ?? item.id, __item$3, 32, [props], __empty$1, _b.f, true, "f3hh71u");
106
- });
107
- //#endregion
108
- export { List };
package/dist/web/ui23.js DELETED
@@ -1,96 +0,0 @@
1
- import { applyEscapeProps } from "./ui2.js";
2
- import { glassClassOf, glassStyleOf } from "./ui3.js";
3
- import { layoutChildProps } from "./ui4.js";
4
- import { __s, bag8, clone, snapshotSpread, template } from "octane";
5
- import { bindSignalChild, bindSignalHostPropSources, enableSignalBindings } from "octane/internal/client";
6
- //#region src/ScrollView.web.tsrx
7
- enableSignalBindings(1, true);
8
- var _t$0 = /* @__PURE__ */ template("<div></div>");
9
- var _rm$1 = [
10
- "s",
11
- "f",
12
- "e"
13
- ];
14
- var ScrollView = /* @__PURE__ */ __s(function ScrollView(props, __s, __extra) {
15
- let _b = __s.slots[0];
16
- if (_b === void 0) {
17
- let _m0, _m1, _m2, _m3, _m4, _m5;
18
- const _root = clone(_t$0);
19
- _m0 = (e) => applyEscapeProps(e, props);
20
- _m1 = props.id;
21
- _m2 = [
22
- "vx-scroll",
23
- glassClassOf(props.glass),
24
- props.className
25
- ];
26
- _m3 = snapshotSpread(layoutChildProps(props, {
27
- ...glassStyleOf(props.glass),
28
- ...props.horizontal ? { overflowX: "auto" } : { overflowY: "auto" },
29
- ...props.style
30
- }));
31
- _m4 = _root;
32
- _m5 = bindSignalHostPropSources(__s, void 0, _root, [
33
- [
34
- false,
35
- "ref",
36
- _m0
37
- ],
38
- [
39
- false,
40
- "id",
41
- _m1
42
- ],
43
- [
44
- false,
45
- "className",
46
- _m2
47
- ],
48
- [true, _m3]
49
- ], "b:bf7e328f", true);
50
- _b = bag8(__s, _root, _m0, _m1, _m2, _m3, _m4, _m5, null, void 0);
51
- __s.refFields = _rm$1;
52
- } else {
53
- {
54
- const _v = (e) => applyEscapeProps(e, props);
55
- if (_b.a !== _v) _b.a = _v;
56
- }
57
- {
58
- const _v = props.id;
59
- if (_b.b !== _v) _b.b = _v;
60
- }
61
- {
62
- const _v = [
63
- "vx-scroll",
64
- glassClassOf(props.glass),
65
- props.className
66
- ];
67
- if (_b.c !== _v) _b.c = _v;
68
- }
69
- _b.d = snapshotSpread(layoutChildProps(props, {
70
- ...glassStyleOf(props.glass),
71
- ...props.horizontal ? { overflowX: "auto" } : { overflowY: "auto" },
72
- ...props.style
73
- }));
74
- _b.f = bindSignalHostPropSources(__s, _b.f, _b.e, [
75
- [
76
- false,
77
- "ref",
78
- _b.a
79
- ],
80
- [
81
- false,
82
- "id",
83
- _b.b
84
- ],
85
- [
86
- false,
87
- "className",
88
- _b.c
89
- ],
90
- [true, _b.d]
91
- ], "b:bf7e328f", true);
92
- }
93
- _b.i = bindSignalChild(__s, _b.i, 1, _b.e, props.children, "b:b1e7e75b", null, void 0, void 0, void 0, true);
94
- });
95
- //#endregion
96
- export { ScrollView };
package/dist/web/ui26.js DELETED
@@ -1,45 +0,0 @@
1
- import { __s, bag5, clone, createElement, delegateEvents, hookSlots, queueRefAttach, queueRefDetach, setEventHandler, template, useEffect, useMemo, useRef } from "octane";
2
- import { bindSignalChild, enableSignalBindings, replaceRef, setClassNameIfChanged } from "octane/internal/client";
3
- //#region src/Modal.web.tsrx
4
- enableSignalBindings(1, true);
5
- delegateEvents(["close"]);
6
- var _t$0 = /* @__PURE__ */ template("<dialog></dialog>");
7
- var _hs$ = /* @__PURE__ */ hookSlots(3);
8
- var _rm$1 = [
9
- "r",
10
- "b",
11
- "a"
12
- ];
13
- var Modal = /* @__PURE__ */ __s(function Modal(props, __s, __extra) {
14
- const el = useRef(null, _hs$ + 0);
15
- const content = useMemo(() => props.component ? createElement(props.component, props.params ?? {}) : props.children, [props], _hs$ + 1);
16
- const presentation = props.presentation;
17
- const className = presentation === "sheet" ? "vx-modal vx-modal--sheet" : presentation === "dialog" ? "vx-modal vx-modal--dialog" : presentation === "fullscreen" || !presentation && props.fullscreen ? "vx-modal vx-modal--fullscreen" : "vx-modal";
18
- useEffect(() => {
19
- const d = el.current;
20
- if (!d) return;
21
- if (props.open && !d.open) d.showModal();
22
- else if (!props.open && d.open) d.close();
23
- }, [props.open], _hs$ + 2);
24
- if (__s.block.pending && !__s.block.crossRenderUpdate) return;
25
- let _b = __s.slots[0];
26
- if (_b === void 0) {
27
- let _m0, _m1;
28
- const _root = clone(_t$0);
29
- queueRefAttach(__s, _m1 = el, _m0 = _root);
30
- (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
31
- setEventHandler(_root, "$$close", () => props.onClose?.());
32
- _b = bag5(__s, _root, _m0, _m1, void 0, null, void 0);
33
- __s.refFields = _rm$1;
34
- } else {
35
- {
36
- const _r = el;
37
- if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
38
- }
39
- setEventHandler(_b.a, "$$close", () => props.onClose?.());
40
- }
41
- _b.c = setClassNameIfChanged(className, _b.c, _b.a);
42
- _b.f = bindSignalChild(__s, _b.f, 1, _b.a, content, "b:44cec141", null, void 0, void 0, void 0, true);
43
- });
44
- //#endregion
45
- export { Modal };
package/dist/web/ui3.js DELETED
@@ -1,31 +0,0 @@
1
- //#region src/glass.ts
2
- /** Normalize the `glass` surface prop into the config object handed to
3
- * `iosGlassEffect` on native. Always returns an object — the upstream
4
- * string shorthand silently drops `interactive` on the layout's update
5
- * path, and an empty config defaults the variant to 'regular' here rather
6
- * than upstream's own fallback. `false`/'none'/'identity' → no glass. */
7
- function glassConfigOf(glass) {
8
- if (!glass || glass === "none" || glass === "identity") return;
9
- const c = typeof glass === "string" ? { variant: glass } : glass === true ? {} : glass;
10
- if (c.variant === "none" || c.variant === "identity") return;
11
- return {
12
- variant: "regular",
13
- ...c
14
- };
15
- }
16
- /** `vx-glass` classes shared by web (real styling) and native (hook for
17
- * app-supplied fallback CSS on non-glass OSes). */
18
- function glassClassOf(glass) {
19
- const c = glassConfigOf(glass);
20
- if (!c) return;
21
- return c.variant === "clear" ? "vx-glass vx-glass--clear" : "vx-glass";
22
- }
23
- /** Style merge for the web approximation — `tint` becomes the surface
24
- * color (the class's translucent fallback is a weaker claim than an
25
- * explicit inline value). Caller spreads result into its style object. */
26
- function glassStyleOf(glass) {
27
- const c = glassConfigOf(glass);
28
- return c?.tint ? { backgroundColor: c.tint } : {};
29
- }
30
- //#endregion
31
- export { glassClassOf, glassConfigOf, glassStyleOf };
package/dist/web/ui30.js DELETED
@@ -1,34 +0,0 @@
1
- import { applyThemeClasses } from "./ui29.js";
2
- import { createRoot } from "octane";
3
- //#region src/modal-service.web.ts
4
- /** Open a component in a document-level dialog and resolve with close(value). */
5
- var openModal = (Component, params, options = {}) => new Promise((resolve) => {
6
- const dialog = document.createElement("dialog");
7
- dialog.className = options.presentation === "sheet" ? "vx-modal vx-modal--sheet" : options.presentation === "dialog" ? "vx-modal vx-modal--dialog" : options.presentation === "fullscreen" || !options.presentation && options.fullscreen ? "vx-modal vx-modal--fullscreen" : "vx-modal";
8
- const unbindTheme = applyThemeClasses(dialog, dialog.className);
9
- document.body.appendChild(dialog);
10
- const root = createRoot(dialog);
11
- let finished = false;
12
- const finish = (result) => {
13
- if (finished) return;
14
- finished = true;
15
- unbindTheme();
16
- root.unmount();
17
- dialog.remove();
18
- resolve(result);
19
- };
20
- const close = (result) => {
21
- if (finished) return;
22
- if (dialog.open) dialog.close();
23
- finish(result);
24
- };
25
- dialog.addEventListener("close", () => finish());
26
- dialog.addEventListener("cancel", () => finish());
27
- root.render(Component, {
28
- params,
29
- close
30
- });
31
- dialog.showModal();
32
- });
33
- //#endregion
34
- export { openModal };
package/dist/web/ui34.js DELETED
@@ -1,70 +0,0 @@
1
- import { cx } from "./ui28.js";
2
- import { applyThemeClasses } from "./ui29.js";
3
- import { __s, bag1, bag3, clone, componentSlot, createRoot, ifBlock, template } from "octane";
4
- import { childTextHoleUpdate } from "octane/internal/client";
5
- //#region src/toast.web.tsrx
6
- var _t$0 = /* @__PURE__ */ template("<div class=\"vx-toast\"></div>");
7
- function __then$0(__props, __s, __extra) {
8
- const props = __extra[0];
9
- let _b = __s.slots[0];
10
- if (_b === void 0) {
11
- let _m0;
12
- const _root = clone(_t$0);
13
- _m0 = _root;
14
- _b = bag3(__s, _root, _m0, null, void 0);
15
- }
16
- {
17
- const _v = props.content;
18
- _b.b = childTextHoleUpdate(__s, 1, _b.a, _v, _b.b, _b.c);
19
- _b.c = _v;
20
- }
21
- }
22
- function __else$2(__props, __s, __extra) {
23
- const Component = __extra[0].content;
24
- let _b = __s.slots[0];
25
- if (_b === void 0) {
26
- let _m0;
27
- const _root = clone(_t$0);
28
- _m0 = _root;
29
- _b = bag1(__s, _root, _m0);
30
- }
31
- componentSlot(__s, 1, _b.a, Component, {}, void 0, void 0, void 0, void 0, void 0, "c:1641d101");
32
- }
33
- var queue = [];
34
- var active = false;
35
- var ToastBody = /* @__PURE__ */ __s(function ToastBody(props, __s, __extra) {
36
- const __block = __s.block;
37
- ifBlock(__s, 0, __block.parentNode, typeof props.content === "string", __then$0, __else$2, __block.endMarker, [props]);
38
- });
39
- function applyWebProps(host, props) {
40
- if (!props) return;
41
- for (const [key, value] of Object.entries(props)) if (key.includes("-")) host.setAttribute(key, String(value));
42
- else host[key] = value;
43
- }
44
- function showNext() {
45
- if (active || queue.length === 0) return;
46
- active = true;
47
- const entry = queue.shift();
48
- const host = document.createElement("div");
49
- const unbindTheme = applyThemeClasses(host, cx("vx-toast-host", entry.options.position === "top" ? "vx-toast-top" : "vx-toast-bottom"));
50
- applyWebProps(host, entry.options.web);
51
- document.body.appendChild(host);
52
- const root = createRoot(host);
53
- root.render(ToastBody, { content: entry.content });
54
- setTimeout(() => {
55
- unbindTheme();
56
- root.unmount();
57
- host.remove();
58
- active = false;
59
- showNext();
60
- }, Math.max(0, entry.options.duration ?? 3e3));
61
- }
62
- function showToast(content, options = {}) {
63
- queue.push({
64
- content,
65
- options
66
- });
67
- showNext();
68
- }
69
- //#endregion
70
- export { showToast };
package/dist/web/ui40.js DELETED
@@ -1,43 +0,0 @@
1
- import { applyEscapeProps } from "./ui2.js";
2
- import { __s, bag6, clone, delegateEvents, queueRefAttach, queueRefDetach, setEventHandler, setStyle, template } from "octane";
3
- import { bindSignalAttribute, bindSignalChecked, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
4
- //#region src/Switch.web.tsrx
5
- enableSignalBindings(1, true);
6
- delegateEvents(["change"]);
7
- var _t$0 = /* @__PURE__ */ template("<input type=\"checkbox\" data-octane-input=\"i:0400e5c1\"/>");
8
- var _rm$0 = [
9
- "r",
10
- "b",
11
- "a"
12
- ];
13
- var Switch = /* @__PURE__ */ __s(function Switch(props, __s, __extra) {
14
- let _b = __s.slots[0];
15
- if (_b === void 0) {
16
- let _m0, _m1, _m5;
17
- const _root = clone(_t$0);
18
- queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
19
- (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
20
- _m5 = bindSignalChecked(__s, void 0, _root, props.checked, "i:0400e5c1");
21
- setEventHandler(_root, "$$change", (e) => props.onCheckedChange?.(e.target.checked));
22
- _b = bag6(__s, _root, _m0, _m1, void 0, void 0, void 0, _m5);
23
- __s.refFields = _rm$0;
24
- } else {
25
- {
26
- const _r = (e) => applyEscapeProps(e, props);
27
- if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
28
- }
29
- _b.f = bindSignalChecked(__s, _b.f, _b.a, props.checked, "i:0400e5c1");
30
- setEventHandler(_b.a, "$$change", (e) => props.onCheckedChange?.(e.target.checked));
31
- }
32
- _b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:18b5d0ad", setPlainAttribute);
33
- _b.d = updateFreshClassName(["vx-switch", props.className], _b.d, _b.a);
34
- {
35
- const _v = props.style;
36
- if (_b.e !== _v) {
37
- setStyle(_b.a, _v, _b.e);
38
- _b.e = _v;
39
- }
40
- }
41
- });
42
- //#endregion
43
- export { Switch };
package/dist/web/ui43.js DELETED
@@ -1,42 +0,0 @@
1
- import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
2
- import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
3
- //#region src/KeyboardAvoiding.web.tsrx
4
- enableSignalBindings(1, true);
5
- var _t$0 = /* @__PURE__ */ template("<div></div>");
6
- var _rm$1 = [
7
- "r",
8
- "c",
9
- "b"
10
- ];
11
- function applyWebProps(node, bag) {
12
- if (!node || !bag) return;
13
- for (const [key, value] of Object.entries(bag)) if (key.includes("-")) node.setAttribute(key, String(value));
14
- else node[key] = value;
15
- }
16
- var KeyboardAvoiding = /* @__PURE__ */ __s(function KeyboardAvoiding(props, __s, __extra) {
17
- let _b = __s.slots[0];
18
- if (_b === void 0) {
19
- let _m1, _m2;
20
- const _root = clone(_t$0);
21
- _m1 = _root;
22
- queueRefAttach(__s, _m2 = (node) => applyWebProps(node, props.web), _m1);
23
- (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.c, _b.b));
24
- _b = bag7(__s, _root, void 0, _m1, _m2, void 0, void 0, null, void 0);
25
- __s.refFields = _rm$1;
26
- } else {
27
- const _r = (node) => applyWebProps(node, props.web);
28
- if (_r !== _b.c) _b.c = replaceRef(__s, _b.c, _r, _b.b);
29
- }
30
- _b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:a2dd5fb0", setPlainAttribute);
31
- _b.d = updateFreshClassName(["vx-keyboard-avoiding", props.className], _b.d, _b.b);
32
- {
33
- const _v = props.style;
34
- if (_b.e !== _v) {
35
- setStyle(_b.b, _v, _b.e);
36
- _b.e = _v;
37
- }
38
- }
39
- _b.h = bindSignalChild(__s, _b.h, 1, _b.b, props.children, "b:327d2ddc", null, void 0, void 0, void 0, true);
40
- });
41
- //#endregion
42
- export { KeyboardAvoiding };
package/dist/web/ui49.js DELETED
@@ -1,47 +0,0 @@
1
- import { applyWebProps } from "./ui45.js";
2
- import { __s, bag9, clone, delegateEvents, queueRefAttach, queueRefDetach, setBooleanAttribute, setEventHandler, setStyle, template } from "octane";
3
- import { bindSignalAttribute, bindSignalValue, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
4
- //#region src/Slider.web.tsrx
5
- enableSignalBindings(1, true);
6
- delegateEvents(["input"]);
7
- var _t$0 = /* @__PURE__ */ template("<input type=\"range\" data-octane-input=\"i:c0018a58\"/>");
8
- var _rm$0 = [
9
- "r",
10
- "i",
11
- "b"
12
- ];
13
- var Slider = /* @__PURE__ */ __s(function Slider(props, __s, __extra) {
14
- let _b = __s.slots[0];
15
- if (_b === void 0) {
16
- let _m1, _m4, _m8;
17
- const _root = clone(_t$0);
18
- _m1 = _root;
19
- _m4 = bindSignalValue(__s, void 0, _root, props.value, "i:c0018a58");
20
- setEventHandler(_root, "$$input", (e) => props.onValueChange?.(Number(e.target.value)));
21
- queueRefAttach(__s, _m8 = (el) => applyWebProps(el, props.web), _m1);
22
- (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.i, _b.b));
23
- _b = bag9(__s, _root, void 0, _m1, void 0, void 0, _m4, void 0, void 0, void 0, _m8);
24
- __s.refFields = _rm$0;
25
- } else {
26
- _b.e = bindSignalValue(__s, _b.e, _b.b, props.value, "i:c0018a58");
27
- setEventHandler(_b.b, "$$input", (e) => props.onValueChange?.(Number(e.target.value)));
28
- {
29
- const _r = (el) => applyWebProps(el, props.web);
30
- if (_r !== _b.i) _b.i = replaceRef(__s, _b.i, _r, _b.b);
31
- }
32
- }
33
- _b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:97ef4e10", setPlainAttribute);
34
- _b.c = updateFreshClassName(["vx-slider", props.className], _b.c, _b.b);
35
- {
36
- const _v = props.style;
37
- if (_b.d !== _v) {
38
- setStyle(_b.b, _v, _b.d);
39
- _b.d = _v;
40
- }
41
- }
42
- _b.f = bindSignalAttribute(__s, _b.f, _b.b, "min", props.minValue ?? 0, "b:7991c980", setPlainAttribute);
43
- _b.g = bindSignalAttribute(__s, _b.g, _b.b, "max", props.maxValue ?? 100, "b:ff7f1a7c", setPlainAttribute);
44
- _b.h = bindSignalAttribute(__s, _b.h, _b.b, "disabled", props.disabled, "b:91d4cdb7", setBooleanAttribute);
45
- });
46
- //#endregion
47
- export { Slider };