@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.
- package/README.md +3 -0
- package/dist/native/Absolute.native.tsrx.js +43 -0
- package/dist/native/Accordion.native.tsrx.js +75 -0
- package/dist/native/ActivityIndicator.native.tsrx.js +35 -0
- package/dist/native/Alert.native.tsrx.js +74 -0
- package/dist/native/Avatar.native.tsrx.js +76 -0
- package/dist/native/AvatarGroup.native.tsrx.js +84 -0
- package/dist/native/Badge.native.tsrx.js +29 -0
- package/dist/native/Banner.native.tsrx.js +80 -0
- package/dist/native/Breadcrumb.native.tsrx.js +66 -0
- package/dist/native/Button.native.tsrx.js +62 -0
- package/dist/native/CameraView.native.tsrx.js +165 -0
- package/dist/native/Card.native.tsrx.js +64 -0
- package/dist/native/Checkbox.native.tsrx.js +58 -0
- package/dist/native/CheckboxGroup.native.tsrx.js +70 -0
- package/dist/native/Chip.native.tsrx.js +83 -0
- package/dist/native/Collapsible.native.tsrx.js +74 -0
- package/dist/native/CommandPalette.native.tsrx.js +143 -0
- package/dist/native/ContextMenu.native.tsrx.js +140 -0
- package/dist/native/Drawer.native.tsrx.js +60 -0
- package/dist/native/DropdownMenu.native.tsrx.js +155 -0
- package/dist/native/Empty.native.tsrx.js +82 -0
- package/dist/native/FieldGroup.native.tsrx.js +39 -0
- package/dist/native/FormField.native.tsrx.js +53 -0
- package/dist/native/{ui8.js → Grid.native.tsrx.js} +19 -8
- package/dist/native/{ui56.js → Heading.native.tsrx.js} +2 -2
- package/dist/native/{ui55.js → Icon.native.tsrx.js} +4 -4
- package/dist/native/{ui29.js → Image.native.tsrx.js} +4 -4
- package/dist/native/InputNumber.native.tsrx.js +146 -0
- package/dist/native/InputRating.native.tsrx.js +74 -0
- package/dist/native/InputTags.native.tsrx.js +131 -0
- package/dist/native/Kbd.native.tsrx.js +29 -0
- package/dist/native/{ui48.js → KeyboardAvoiding.native.tsrx.js} +1 -1
- package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
- package/dist/native/{ui52.js → Meter.native.tsrx.js} +2 -2
- package/dist/native/{ui22.js → NavLink.native.tsrx.js} +3 -3
- package/dist/native/NavigationMenu.native.tsrx.js +67 -0
- package/dist/native/{ui35.js → Overlay.native.tsrx.js} +3 -3
- package/dist/native/Pager.native.tsrx.js +282 -0
- package/dist/native/Pagination.native.tsrx.js +107 -0
- package/dist/native/PinInput.native.tsrx.js +94 -0
- package/dist/native/{ui38.js → Popover.native.tsrx.js} +5 -5
- package/dist/native/{ui16.js → Pressable.native.tsrx.js} +21 -15
- package/dist/native/ProgressGroup.native.tsrx.js +66 -0
- package/dist/native/RadioGroup.native.tsrx.js +85 -0
- package/dist/native/{ui15.js → RichText.native.tsrx.js} +15 -22
- package/dist/native/Row.native.tsrx.js +98 -0
- package/dist/native/{ui47.js → SafeArea.native.tsrx.js} +2 -2
- package/dist/native/{ui43.js → Screen.native.tsrx.js} +3 -3
- package/dist/native/{ui26.js → ScrollBox.native.tsrx.js} +1 -1
- package/dist/native/ScrollView.native.tsrx.js +233 -0
- package/dist/native/SearchInput.native.tsrx.js +151 -0
- package/dist/native/SegmentedControl.native.tsrx.js +75 -0
- package/dist/native/Select.native.tsrx.js +202 -0
- package/dist/native/Separator.native.tsrx.js +25 -0
- package/dist/native/{ui60.js → Sheet.native.tsrx.js} +15 -7
- package/dist/native/Skeleton.native.tsrx.js +28 -0
- package/dist/native/Slider.native.tsrx.js +98 -0
- package/dist/native/{ui13.js → Spacer.native.tsrx.js} +2 -2
- package/dist/native/{ui9.js → Stack.native.tsrx.js} +20 -9
- package/dist/native/Stepper.native.tsrx.js +75 -0
- package/dist/native/Switch.native.tsrx.js +33 -0
- package/dist/native/Table.native.tsrx.js +103 -0
- package/dist/native/Tabs.native.tsrx.js +163 -0
- package/dist/native/{ui14.js → Text.native.tsrx.js} +19 -3
- package/dist/native/{ui24.js → TextArea.native.tsrx.js} +19 -17
- package/dist/native/{ui23.js → TextInput.native.tsrx.js} +21 -16
- package/dist/native/Timeline.native.tsrx.js +112 -0
- package/dist/native/Tree.native.tsrx.js +140 -0
- package/dist/native/User.native.tsrx.js +95 -0
- package/dist/native/Video.native.tsrx.js +248 -0
- package/dist/native/{ui6.js → View.native.tsrx.js} +39 -25
- package/dist/native/WebView.native.tsrx.js +110 -0
- package/dist/native/aliases.native.tsrx.js +38 -0
- package/dist/native/android/BottomNavigationView.android.tsrx.js +171 -0
- package/dist/native/android/CircularProgressIndicator.android.tsrx.js +27 -0
- package/dist/native/{ui49.js → android/DrawerLayout.android.tsrx.js} +5 -7
- package/dist/native/android/MaterialDialog.android.tsrx.js +62 -0
- package/dist/native/android/MaterialSwitch.android.tsrx.js +28 -0
- package/dist/native/android/RecyclerView.android.tsrx.js +248 -0
- package/dist/native/android/SeekBar.android.tsrx.js +34 -0
- package/dist/native/android/index.js +9 -0
- package/dist/native/android/openModal.android.js +39 -0
- package/dist/native/camera-permission.native.js +47 -0
- package/dist/native/child-array.js +15 -0
- package/dist/native/{ui3.js → escape-props.native.js} +22 -1
- package/dist/native/icons.js +25 -0
- package/dist/native/{ui11.js → ios/LiquidGlass.ios.tsrx.js} +4 -4
- package/dist/native/{ui12.js → ios/LiquidGlassContainer.ios.tsrx.js} +4 -4
- package/dist/native/ios/SideDrawer.ios.tsrx.js +64 -0
- package/dist/native/{ui50.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
- package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
- package/dist/native/{ui53.js → ios/UISlider.ios.tsrx.js} +5 -5
- package/dist/native/{ui45.js → ios/UISwitch.ios.tsrx.js} +5 -5
- package/dist/native/ios/UITabBar.ios.tsrx.js +166 -0
- package/dist/native/ios/UITableView.ios.tsrx.js +270 -0
- package/dist/native/ios/index.js +11 -0
- package/dist/native/{ui33.js → ios/openModal.ios.js} +5 -4
- package/dist/native/modal-presenter.native.js +19 -0
- package/dist/native/native/index.js +4 -0
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/pan.native.tsrx.js +66 -0
- package/dist/native/platform.native.js +10 -0
- package/dist/native/refresh-metrics.js +9 -0
- package/dist/native/refresh.native.js +177 -0
- package/dist/native/{ui34.js → root-layout.native.js} +6 -1
- package/dist/native/{ui21.js → route.native.js} +96 -12
- package/dist/native/sheet-detents.native.js +102 -0
- package/dist/native/{ui61.js → sheet-service.native.js} +19 -9
- package/dist/native/sheet-snap.js +35 -0
- package/dist/native/text-write.native.js +27 -0
- package/dist/native/theme/status-bar-scheme.native.js +17 -0
- package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
- package/dist/native/toast-anchor.native.tsrx.js +185 -0
- package/dist/native/translate.native.js +11 -0
- package/dist/native/ui.js +93 -52
- package/dist/native/use-back.native.tsrx.js +9 -0
- package/dist/native/useMeasure.native.tsrx.js +64 -0
- package/dist/native/video-chrome.native.tsrx.js +365 -0
- package/dist/web/Absolute.web.tsrx.js +47 -0
- package/dist/web/Accordion.web.tsrx.js +85 -0
- package/dist/web/{ui46.js → ActivityIndicator.web.tsrx.js} +1 -1
- package/dist/web/Alert.web.tsrx.js +79 -0
- package/dist/web/Avatar.web.tsrx.js +106 -0
- package/dist/web/AvatarGroup.web.tsrx.js +108 -0
- package/dist/web/Badge.web.tsrx.js +37 -0
- package/dist/web/Banner.web.tsrx.js +79 -0
- package/dist/web/Breadcrumb.web.tsrx.js +135 -0
- package/dist/web/Button.web.tsrx.js +45 -0
- package/dist/web/CameraView.web.tsrx.js +310 -0
- package/dist/web/Card.web.tsrx.js +73 -0
- package/dist/web/Checkbox.web.tsrx.js +89 -0
- package/dist/web/CheckboxGroup.web.tsrx.js +79 -0
- package/dist/web/Chip.web.tsrx.js +64 -0
- package/dist/web/Collapsible.web.tsrx.js +94 -0
- package/dist/web/CommandPalette.web.tsrx.js +125 -0
- package/dist/web/ContextMenu.web.tsrx.js +154 -0
- package/dist/web/{ui44.js → Drawer.web.tsrx.js} +13 -9
- package/dist/web/DropdownMenu.web.tsrx.js +162 -0
- package/dist/web/Empty.web.tsrx.js +89 -0
- package/dist/web/FieldGroup.web.tsrx.js +57 -0
- package/dist/web/FormField.web.tsrx.js +92 -0
- package/dist/web/Grid.web.tsrx.js +65 -0
- package/dist/web/{ui52.js → Heading.web.tsrx.js} +2 -2
- package/dist/web/Icon.web.tsrx.js +273 -0
- package/dist/web/{ui25.js → Image.web.tsrx.js} +2 -2
- package/dist/web/InputNumber.web.tsrx.js +99 -0
- package/dist/web/InputRating.web.tsrx.js +72 -0
- package/dist/web/InputTags.web.tsrx.js +122 -0
- package/dist/web/Kbd.web.tsrx.js +37 -0
- package/dist/web/{ui48.js → Meter.web.tsrx.js} +1 -1
- package/dist/web/{ui19.js → NavLink.web.tsrx.js} +1 -1
- package/dist/web/NavigationMenu.web.tsrx.js +118 -0
- package/dist/web/{ui31.js → Overlay.web.tsrx.js} +2 -2
- package/dist/web/Pager.web.tsrx.js +337 -0
- package/dist/web/Pagination.web.tsrx.js +80 -0
- package/dist/web/PinInput.web.tsrx.js +72 -0
- package/dist/web/{ui33.js → Popover.web.tsrx.js} +3 -3
- package/dist/web/{ui15.js → Pressable.web.tsrx.js} +68 -95
- package/dist/web/ProgressGroup.web.tsrx.js +109 -0
- package/dist/web/RadioGroup.web.tsrx.js +69 -0
- package/dist/web/{ui14.js → RichText.web.tsrx.js} +2 -2
- package/dist/web/Row.web.tsrx.js +250 -0
- package/dist/web/{ui42.js → SafeArea.web.tsrx.js} +1 -1
- package/dist/web/{ui38.js → Screen.web.tsrx.js} +1 -1
- package/dist/web/{ui24.js → ScrollBox.web.tsrx.js} +1 -1
- package/dist/web/ScrollView.web.tsrx.js +388 -0
- package/dist/web/SearchInput.web.tsrx.js +137 -0
- package/dist/web/SegmentedControl.web.tsrx.js +75 -0
- package/dist/web/Select.web.tsrx.js +149 -0
- package/dist/web/Separator.web.tsrx.js +42 -0
- package/dist/web/Sheet.web.tsrx.js +81 -0
- package/dist/web/Skeleton.web.tsrx.js +56 -0
- package/dist/web/Slider.web.tsrx.js +97 -0
- package/dist/web/{ui12.js → Spacer.web.tsrx.js} +1 -1
- package/dist/web/Stack.web.tsrx.js +47 -0
- package/dist/web/Stepper.web.tsrx.js +65 -0
- package/dist/web/Switch.web.tsrx.js +59 -0
- package/dist/web/Table.web.tsrx.js +161 -0
- package/dist/web/{ui39.js → Tabs.web.tsrx.js} +33 -16
- package/dist/web/{ui13.js → Text.web.tsrx.js} +79 -46
- package/dist/web/{ui21.js → TextArea.web.tsrx.js} +4 -4
- package/dist/web/{ui20.js → TextInput.web.tsrx.js} +8 -8
- package/dist/web/Timeline.web.tsrx.js +172 -0
- package/dist/web/Tree.web.tsrx.js +146 -0
- package/dist/web/User.web.tsrx.js +116 -0
- package/dist/web/Video.web.tsrx.js +400 -0
- package/dist/web/View.web.tsrx.js +250 -0
- package/dist/web/WebView.web.tsrx.js +235 -0
- package/dist/web/aliases.web.tsrx.js +24 -0
- package/dist/web/{ui35.js → anim.web.tsrx.js} +3 -2
- package/dist/web/child-array.js +15 -0
- package/dist/web/icons.js +25 -0
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/pan.web.tsrx.js +66 -0
- package/dist/web/platform.web.js +9 -0
- package/dist/web/refresh-metrics.js +9 -0
- package/dist/web/refresh.web.js +133 -0
- package/dist/web/{ui18.js → route.web.js} +14 -2
- package/dist/web/sheet-detents.web.js +103 -0
- package/dist/web/{ui58.js → sheet-service.web.js} +5 -1
- package/dist/web/sheet-snap.js +35 -0
- package/dist/{native/ui31.js → web/theme/theme-scheme.js} +2 -2
- package/dist/web/toast-anchor.web.tsrx.js +142 -0
- package/dist/web/transform.web.js +43 -0
- package/dist/web/translate.web.js +13 -0
- package/dist/web/ui.js +91 -51
- package/dist/web/use-back.web.tsrx.js +9 -0
- package/dist/web/useMeasure.web.tsrx.js +50 -0
- package/dist/web/video-chrome.web.tsrx.js +207 -0
- package/dist/web/web/Hoverable.web.tsrx.js +150 -0
- package/dist/web/web/Tooltip.web.tsrx.js +183 -0
- package/dist/web/web/index.js +3 -0
- package/package.json +34 -3
- package/src/theme/tokens.css +1599 -194
- package/types/android.d.ts +53 -0
- package/types/index.d.ts +39 -14
- package/types/index.native.d.ts +273 -0
- package/types/index.web.d.ts +272 -0
- package/types/ios.d.ts +59 -0
- package/types/native.d.ts +5 -0
- package/types/props.d.ts +989 -44
- package/types/web.d.ts +17 -0
- package/dist/native/ui10.js +0 -32
- package/dist/native/ui25.js +0 -141
- package/dist/native/ui27.js +0 -61
- package/dist/native/ui39.js +0 -105
- package/dist/native/ui4.js +0 -24
- package/dist/native/ui44.js +0 -267
- package/dist/native/ui54.js +0 -17
- package/dist/native/ui57.js +0 -14
- package/dist/native/ui7.js +0 -52
- package/dist/web/ui10.js +0 -46
- package/dist/web/ui11.js +0 -42
- package/dist/web/ui22.js +0 -108
- package/dist/web/ui23.js +0 -96
- package/dist/web/ui26.js +0 -45
- package/dist/web/ui3.js +0 -31
- package/dist/web/ui30.js +0 -34
- package/dist/web/ui34.js +0 -70
- package/dist/web/ui40.js +0 -43
- package/dist/web/ui43.js +0 -42
- package/dist/web/ui49.js +0 -47
- package/dist/web/ui5.js +0 -168
- package/dist/web/ui50.js +0 -17
- package/dist/web/ui51.js +0 -149
- package/dist/web/ui53.js +0 -17
- package/dist/web/ui57.js +0 -44
- package/dist/web/ui6.js +0 -94
- package/dist/web/ui7.js +0 -62
- package/dist/web/ui8.js +0 -46
- package/dist/web/ui9.js +0 -46
- /package/dist/native/{ui20.js → RouteHost.native.tsrx.js} +0 -0
- /package/dist/native/{ui40.js → anim.native.tsrx.js} +0 -0
- /package/dist/native/{ui2.js → cx.js} +0 -0
- /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
- /package/dist/native/{ui51.js → meter-math.js} +0 -0
- /package/dist/native/{ui36.js → platformProps.native.js} +0 -0
- /package/dist/native/{ui37.js → popover-position.js} +0 -0
- /package/dist/native/{ui19.js → route-table.js} +0 -0
- /package/dist/native/{ui46.js → safeAreaInsets.native.tsrx.js} +0 -0
- /package/dist/native/{ui18.js → stacks.native.js} +0 -0
- /package/dist/native/{ui58.js → store.js} +0 -0
- /package/dist/native/{ui41.js → styled.native.tsrx.js} +0 -0
- /package/dist/native/{ui28.js → svg.native.js} +0 -0
- /package/dist/native/{ui30.js → theme/colorScheme.native.js} +0 -0
- /package/dist/native/{ui59.js → use-store.native.tsrx.js} +0 -0
- /package/dist/native/{ui42.js → windows.native.js} +0 -0
- /package/dist/web/{ui16.js → Link.web.tsrx.js} +0 -0
- /package/dist/web/{ui28.js → cx.js} +0 -0
- /package/dist/web/{ui2.js → escape-props.web.js} +0 -0
- /package/dist/web/{ui4.js → layout-child.web.js} +0 -0
- /package/dist/web/{ui47.js → meter-math.js} +0 -0
- /package/dist/web/{ui45.js → platformProps.web.js} +0 -0
- /package/dist/web/{ui32.js → popover-position.js} +0 -0
- /package/dist/web/{ui17.js → route-table.js} +0 -0
- /package/dist/web/{ui41.js → safeAreaInsets.web.tsrx.js} +0 -0
- /package/dist/web/{ui54.js → stacks.web.js} +0 -0
- /package/dist/web/{ui55.js → store.js} +0 -0
- /package/dist/web/{ui36.js → styled.web.tsrx.js} +0 -0
- /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
- /package/dist/web/{ui56.js → use-store.web.tsrx.js} +0 -0
- /package/dist/web/{ui37.js → windows.web.js} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { applyEscapeProps } from "./escape-props.native.js";
|
|
3
|
+
import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
4
|
+
//#region src/RadioGroup.native.tsrx
|
|
5
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
|
+
"kind": "host",
|
|
7
|
+
"type": "flexboxlayout",
|
|
8
|
+
"props": { "className": "vx-radio-dot" }
|
|
9
|
+
});
|
|
10
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
11
|
+
"kind": "host",
|
|
12
|
+
"type": "label",
|
|
13
|
+
"props": { "className": "vx-radio-label" },
|
|
14
|
+
"bindings": [["text", 0]]
|
|
15
|
+
});
|
|
16
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
17
|
+
"kind": "host",
|
|
18
|
+
"type": "flexboxlayout",
|
|
19
|
+
"propsSlot": 0,
|
|
20
|
+
"children": [{
|
|
21
|
+
"kind": "host",
|
|
22
|
+
"type": "flexboxlayout",
|
|
23
|
+
"props": { "className": "vx-radio" },
|
|
24
|
+
"children": [{
|
|
25
|
+
"kind": "slot",
|
|
26
|
+
"slot": 1
|
|
27
|
+
}]
|
|
28
|
+
}, {
|
|
29
|
+
"kind": "slot",
|
|
30
|
+
"slot": 2
|
|
31
|
+
}]
|
|
32
|
+
});
|
|
33
|
+
var __octaneUniversalPlan3 = universalPlan("nativescript", {
|
|
34
|
+
"kind": "host",
|
|
35
|
+
"type": "flexboxlayout",
|
|
36
|
+
"bindings": [
|
|
37
|
+
["ref", 0],
|
|
38
|
+
["id", 1],
|
|
39
|
+
["flexDirection", 2],
|
|
40
|
+
["className", 3],
|
|
41
|
+
["style", 4],
|
|
42
|
+
["accessibilityLabel", 5]
|
|
43
|
+
],
|
|
44
|
+
"children": [{
|
|
45
|
+
"kind": "slot",
|
|
46
|
+
"slot": 6
|
|
47
|
+
}]
|
|
48
|
+
});
|
|
49
|
+
var RadioGroup = defineUniversalComponent("nativescript", function RadioGroup(props) {
|
|
50
|
+
return universalValue(__octaneUniversalPlan3, [
|
|
51
|
+
(v) => applyEscapeProps(v, props),
|
|
52
|
+
props.id,
|
|
53
|
+
props.horizontal ? "row" : "column",
|
|
54
|
+
cx("vx-radio-group", props.horizontal && "vx-radio-group--row", props.className),
|
|
55
|
+
props.style,
|
|
56
|
+
props.accessibilityLabel,
|
|
57
|
+
props.options.map((opt) => {
|
|
58
|
+
const selected = props.value === opt.value;
|
|
59
|
+
const disabled = props.disabled || opt.disabled;
|
|
60
|
+
return universalValue(__octaneUniversalPlan2, [
|
|
61
|
+
universalProps([
|
|
62
|
+
[
|
|
63
|
+
"set",
|
|
64
|
+
"key",
|
|
65
|
+
opt.value
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
"set",
|
|
69
|
+
"className",
|
|
70
|
+
cx("vx-radio-row", selected && "vx-radio--on", disabled && "vx-radio--disabled")
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"set",
|
|
74
|
+
"onTap",
|
|
75
|
+
disabled ? void 0 : () => props.onValueChange?.(opt.value)
|
|
76
|
+
]
|
|
77
|
+
]),
|
|
78
|
+
selected ? universalValue(__octaneUniversalPlan0, []) : null,
|
|
79
|
+
opt.label != null ? universalValue(__octaneUniversalPlan1, [opt.label]) : null
|
|
80
|
+
]);
|
|
81
|
+
})
|
|
82
|
+
]);
|
|
83
|
+
}, { "module": "@nativescript-community/octane" });
|
|
84
|
+
//#endregion
|
|
85
|
+
export { RadioGroup };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cx } from "./
|
|
2
|
-
import { applyEscapeProps } from "./
|
|
3
|
-
import { layoutChildProps } from "./
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { applyEscapeProps } from "./escape-props.native.js";
|
|
3
|
+
import { layoutChildProps } from "./layout-child.native.js";
|
|
4
4
|
import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
5
5
|
//#region src/RichText.native.tsrx
|
|
6
6
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
@@ -19,7 +19,12 @@ var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
|
19
19
|
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
20
20
|
"kind": "host",
|
|
21
21
|
"type": "span",
|
|
22
|
-
"
|
|
22
|
+
"bindings": [
|
|
23
|
+
["text", 0],
|
|
24
|
+
["className", 1],
|
|
25
|
+
["style", 2],
|
|
26
|
+
["onLinkTap", 3]
|
|
27
|
+
]
|
|
23
28
|
});
|
|
24
29
|
var RichText = defineUniversalComponent("nativescript", function RichText(props) {
|
|
25
30
|
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
@@ -57,24 +62,12 @@ function runText(props) {
|
|
|
57
62
|
return "";
|
|
58
63
|
}
|
|
59
64
|
var RichTextSpan = defineUniversalComponent("nativescript", function RichTextSpan(props) {
|
|
60
|
-
return universalValue(__octaneUniversalPlan1, [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
[
|
|
67
|
-
"set",
|
|
68
|
-
"className",
|
|
69
|
-
cx(props.className)
|
|
70
|
-
],
|
|
71
|
-
["spread", props.style],
|
|
72
|
-
[
|
|
73
|
-
"set",
|
|
74
|
-
"onLinkTap",
|
|
75
|
-
props.onPress
|
|
76
|
-
]
|
|
77
|
-
])]);
|
|
65
|
+
return universalValue(__octaneUniversalPlan1, [
|
|
66
|
+
runText(props),
|
|
67
|
+
cx(props.className),
|
|
68
|
+
props.style,
|
|
69
|
+
props.onPress
|
|
70
|
+
]);
|
|
78
71
|
}, { "module": "@nativescript-community/octane" });
|
|
79
72
|
//#endregion
|
|
80
73
|
export { RichText, RichTextSpan };
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
import { usePan } from "./pan.native.tsrx.js";
|
|
5
|
+
import { defineUniversalComponent, hookSlots, universalPlan, universalProps, universalValue, withSlot } from "@nativescript-community/octane";
|
|
6
|
+
//#region src/Row.native.tsrx
|
|
7
|
+
var _h$0 = /* @__PURE__ */ Symbol(/* @__PURE__ */ hookSlots(1));
|
|
8
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
9
|
+
"kind": "host",
|
|
10
|
+
"type": "flexboxlayout",
|
|
11
|
+
"propsSlot": 0,
|
|
12
|
+
"children": [{
|
|
13
|
+
"kind": "slot",
|
|
14
|
+
"slot": 1
|
|
15
|
+
}]
|
|
16
|
+
});
|
|
17
|
+
var Row = defineUniversalComponent("nativescript", function Row(props) {
|
|
18
|
+
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
19
|
+
[
|
|
20
|
+
"set",
|
|
21
|
+
"id",
|
|
22
|
+
props.id
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"set",
|
|
26
|
+
"ref",
|
|
27
|
+
(v) => {
|
|
28
|
+
if (v) {
|
|
29
|
+
applyEscapeProps(v, props);
|
|
30
|
+
props.bind?.(v);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"set",
|
|
36
|
+
"flexDirection",
|
|
37
|
+
"row"
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
"set",
|
|
41
|
+
"className",
|
|
42
|
+
cx(props.className)
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"set",
|
|
46
|
+
"style",
|
|
47
|
+
props.style
|
|
48
|
+
],
|
|
49
|
+
["spread", layoutChildProps(props)],
|
|
50
|
+
[
|
|
51
|
+
"set",
|
|
52
|
+
"accessible",
|
|
53
|
+
props.accessible
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
"set",
|
|
57
|
+
"accessibilityLabel",
|
|
58
|
+
props.accessibilityLabel
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"set",
|
|
62
|
+
"accessibilityRole",
|
|
63
|
+
nativeAccessibilityRole(props.accessibilityRole)
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
"set",
|
|
67
|
+
"accessibilityHint",
|
|
68
|
+
props.accessibilityHint
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
"set",
|
|
72
|
+
"accessibilityValue",
|
|
73
|
+
props.accessibilityValue
|
|
74
|
+
],
|
|
75
|
+
[
|
|
76
|
+
"set",
|
|
77
|
+
"accessibilityState",
|
|
78
|
+
nativeAccessibilityState(props.accessibilityState)
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
"set",
|
|
82
|
+
"accessibilityLiveRegion",
|
|
83
|
+
props.accessibilityLiveRegion
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
"set",
|
|
87
|
+
"onPan",
|
|
88
|
+
withSlot(_h$0, usePan, props.onPan)
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
"set",
|
|
92
|
+
"onSwipe",
|
|
93
|
+
props.onSwipe
|
|
94
|
+
]
|
|
95
|
+
]), props.children]);
|
|
96
|
+
}, { "module": "@nativescript-community/octane" });
|
|
97
|
+
//#endregion
|
|
98
|
+
export { Row };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "./
|
|
2
|
-
import { useSafeAreaInsets } from "./
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { useSafeAreaInsets } from "./safeAreaInsets.native.tsrx.js";
|
|
3
3
|
import { defineUniversalComponent, hookSlots, universalPlan, universalValue, withSlot } from "@nativescript-community/octane";
|
|
4
4
|
import { Application } from "@nativescript/core";
|
|
5
5
|
//#region src/SafeArea.native.tsrx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cx } from "./
|
|
2
|
-
import { applyEscapeProps } from "./
|
|
3
|
-
import { registerRootLayout, unregisterRootLayout } from "./
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { applyEscapeProps } from "./escape-props.native.js";
|
|
3
|
+
import { registerRootLayout, unregisterRootLayout } from "./root-layout.native.js";
|
|
4
4
|
import { defineUniversalComponent, universalPlan, universalValue } from "@nativescript-community/octane";
|
|
5
5
|
//#region src/Screen.native.tsrx
|
|
6
6
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { View } from "./
|
|
1
|
+
import { View } from "./View.native.tsrx.js";
|
|
2
2
|
import { defineUniversalComponent, universalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
3
3
|
//#region src/ScrollBox.native.tsrx
|
|
4
4
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
@@ -0,0 +1,233 @@
|
|
|
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
|
+
import { ActivityIndicator } from "./ActivityIndicator.native.tsrx.js";
|
|
5
|
+
import { createPullToRefresh } from "./refresh.native.js";
|
|
6
|
+
import { defineUniversalComponent, hookSlots, markWarm, universalComponent, universalIf, universalPlan, universalProps, universalValue, useBatch, useEffect, useRef, warmChild } from "@nativescript-community/octane";
|
|
7
|
+
//#region src/ScrollView.native.tsrx
|
|
8
|
+
var _hs$ = /* @__PURE__ */ hookSlots(6);
|
|
9
|
+
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
10
|
+
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
11
|
+
var _h$2 = /* @__PURE__ */ Symbol(_hs$ + 2);
|
|
12
|
+
var _h$3 = /* @__PURE__ */ Symbol(_hs$ + 3);
|
|
13
|
+
var _h$4 = /* @__PURE__ */ Symbol(_hs$ + 4);
|
|
14
|
+
var _h$5 = /* @__PURE__ */ Symbol(_hs$ + 5);
|
|
15
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
16
|
+
"kind": "host",
|
|
17
|
+
"type": "gridlayout",
|
|
18
|
+
"propsSlot": 0,
|
|
19
|
+
"children": [{
|
|
20
|
+
"kind": "host",
|
|
21
|
+
"type": "scrollview",
|
|
22
|
+
"props": { "className": "vx-scroll" },
|
|
23
|
+
"bindings": [
|
|
24
|
+
["ref", 1],
|
|
25
|
+
["id", 2],
|
|
26
|
+
["orientation", 3],
|
|
27
|
+
["accessible", 4],
|
|
28
|
+
["accessibilityLabel", 5],
|
|
29
|
+
["accessibilityRole", 6],
|
|
30
|
+
["accessibilityHint", 7],
|
|
31
|
+
["accessibilityValue", 8],
|
|
32
|
+
["accessibilityState", 9],
|
|
33
|
+
["accessibilityLiveRegion", 10]
|
|
34
|
+
],
|
|
35
|
+
"children": [{
|
|
36
|
+
"kind": "host",
|
|
37
|
+
"type": "flexboxlayout",
|
|
38
|
+
"bindings": [["flexDirection", 11]],
|
|
39
|
+
"children": [{
|
|
40
|
+
"kind": "slot",
|
|
41
|
+
"slot": 12
|
|
42
|
+
}]
|
|
43
|
+
}]
|
|
44
|
+
}, {
|
|
45
|
+
"kind": "host",
|
|
46
|
+
"type": "flexboxlayout",
|
|
47
|
+
"props": {
|
|
48
|
+
"className": "vx-refresh",
|
|
49
|
+
"verticalAlignment": "top"
|
|
50
|
+
},
|
|
51
|
+
"bindings": [
|
|
52
|
+
["ref", 13],
|
|
53
|
+
["height", 14],
|
|
54
|
+
["translateY", 15]
|
|
55
|
+
],
|
|
56
|
+
"children": [{
|
|
57
|
+
"kind": "slot",
|
|
58
|
+
"slot": 16
|
|
59
|
+
}]
|
|
60
|
+
}]
|
|
61
|
+
});
|
|
62
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
63
|
+
"kind": "slot",
|
|
64
|
+
"slot": 0
|
|
65
|
+
});
|
|
66
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
67
|
+
"kind": "host",
|
|
68
|
+
"type": "scrollview",
|
|
69
|
+
"propsSlot": 0,
|
|
70
|
+
"children": [{
|
|
71
|
+
"kind": "host",
|
|
72
|
+
"type": "flexboxlayout",
|
|
73
|
+
"bindings": [["flexDirection", 1]],
|
|
74
|
+
"children": [{
|
|
75
|
+
"kind": "slot",
|
|
76
|
+
"slot": 2
|
|
77
|
+
}]
|
|
78
|
+
}]
|
|
79
|
+
});
|
|
80
|
+
var __octaneUniversalPlan3 = universalPlan("nativescript", {
|
|
81
|
+
"kind": "slot",
|
|
82
|
+
"slot": 0
|
|
83
|
+
});
|
|
84
|
+
var ScrollViewRefreshable = defineUniversalComponent("nativescript", markWarm(function ScrollViewRefreshable(props) {
|
|
85
|
+
const cfg = useRef({}, _h$0);
|
|
86
|
+
cfg.current = {
|
|
87
|
+
onRefresh: props.onRefresh,
|
|
88
|
+
refreshing: props.refreshing,
|
|
89
|
+
threshold: props.refreshThreshold
|
|
90
|
+
};
|
|
91
|
+
const ctl = useRef(null, _h$1);
|
|
92
|
+
const scroller = useRef(null, _h$2);
|
|
93
|
+
const indicator = useRef(null, _h$3);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (!scroller.current || !indicator.current) return;
|
|
96
|
+
ctl.current = createPullToRefresh({
|
|
97
|
+
scroller: scroller.current,
|
|
98
|
+
indicator: indicator.current,
|
|
99
|
+
isAtTop: () => scroller.current?.verticalOffset <= 0,
|
|
100
|
+
cfg
|
|
101
|
+
});
|
|
102
|
+
return () => {
|
|
103
|
+
ctl.current?.detach();
|
|
104
|
+
ctl.current = null;
|
|
105
|
+
};
|
|
106
|
+
}, [], _h$4);
|
|
107
|
+
useEffect(() => {
|
|
108
|
+
ctl.current?.sync();
|
|
109
|
+
}, [props.refreshing], _h$5);
|
|
110
|
+
useBatch([], () => {
|
|
111
|
+
warmChild(ActivityIndicator, {});
|
|
112
|
+
});
|
|
113
|
+
return universalValue(__octaneUniversalPlan0, [
|
|
114
|
+
universalProps([
|
|
115
|
+
[
|
|
116
|
+
"set",
|
|
117
|
+
"ref",
|
|
118
|
+
(v) => {
|
|
119
|
+
if (v?.ios) v.ios.clipsToBounds = true;
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
["spread", layoutChildProps(props)],
|
|
123
|
+
[
|
|
124
|
+
"set",
|
|
125
|
+
"className",
|
|
126
|
+
cx("vx-refresh-wrap", props.className)
|
|
127
|
+
],
|
|
128
|
+
[
|
|
129
|
+
"set",
|
|
130
|
+
"style",
|
|
131
|
+
props.style
|
|
132
|
+
]
|
|
133
|
+
]),
|
|
134
|
+
(v) => {
|
|
135
|
+
scroller.current = v;
|
|
136
|
+
applyEscapeProps(v, props);
|
|
137
|
+
},
|
|
138
|
+
props.id,
|
|
139
|
+
props.horizontal ? "horizontal" : "vertical",
|
|
140
|
+
props.accessible,
|
|
141
|
+
props.accessibilityLabel,
|
|
142
|
+
nativeAccessibilityRole(props.accessibilityRole),
|
|
143
|
+
props.accessibilityHint,
|
|
144
|
+
props.accessibilityValue,
|
|
145
|
+
nativeAccessibilityState(props.accessibilityState),
|
|
146
|
+
props.accessibilityLiveRegion,
|
|
147
|
+
props.horizontal ? "row" : "column",
|
|
148
|
+
props.children,
|
|
149
|
+
(v) => {
|
|
150
|
+
indicator.current = v;
|
|
151
|
+
},
|
|
152
|
+
64,
|
|
153
|
+
-64,
|
|
154
|
+
universalComponent("nativescript", ActivityIndicator, universalProps([]))
|
|
155
|
+
]);
|
|
156
|
+
}, (__wp) => {
|
|
157
|
+
warmChild(ActivityIndicator, {});
|
|
158
|
+
}), { "module": "@nativescript-community/octane" });
|
|
159
|
+
var ScrollView = defineUniversalComponent("nativescript", function ScrollView(props) {
|
|
160
|
+
return universalValue(__octaneUniversalPlan3, [universalIf(!props.horizontal && (props.onRefresh != null || props.refreshing != null), () => {
|
|
161
|
+
return universalValue(__octaneUniversalPlan1, [universalComponent("nativescript", ScrollViewRefreshable, universalProps([["spread", props]]))]);
|
|
162
|
+
}, () => {
|
|
163
|
+
return universalValue(__octaneUniversalPlan2, [
|
|
164
|
+
universalProps([
|
|
165
|
+
[
|
|
166
|
+
"set",
|
|
167
|
+
"ref",
|
|
168
|
+
(v) => applyEscapeProps(v, props)
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
"set",
|
|
172
|
+
"id",
|
|
173
|
+
props.id
|
|
174
|
+
],
|
|
175
|
+
["spread", layoutChildProps(props)],
|
|
176
|
+
[
|
|
177
|
+
"set",
|
|
178
|
+
"className",
|
|
179
|
+
cx(props.className)
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
"set",
|
|
183
|
+
"style",
|
|
184
|
+
props.style
|
|
185
|
+
],
|
|
186
|
+
[
|
|
187
|
+
"set",
|
|
188
|
+
"orientation",
|
|
189
|
+
props.horizontal ? "horizontal" : "vertical"
|
|
190
|
+
],
|
|
191
|
+
[
|
|
192
|
+
"set",
|
|
193
|
+
"accessible",
|
|
194
|
+
props.accessible
|
|
195
|
+
],
|
|
196
|
+
[
|
|
197
|
+
"set",
|
|
198
|
+
"accessibilityLabel",
|
|
199
|
+
props.accessibilityLabel
|
|
200
|
+
],
|
|
201
|
+
[
|
|
202
|
+
"set",
|
|
203
|
+
"accessibilityRole",
|
|
204
|
+
nativeAccessibilityRole(props.accessibilityRole)
|
|
205
|
+
],
|
|
206
|
+
[
|
|
207
|
+
"set",
|
|
208
|
+
"accessibilityHint",
|
|
209
|
+
props.accessibilityHint
|
|
210
|
+
],
|
|
211
|
+
[
|
|
212
|
+
"set",
|
|
213
|
+
"accessibilityValue",
|
|
214
|
+
props.accessibilityValue
|
|
215
|
+
],
|
|
216
|
+
[
|
|
217
|
+
"set",
|
|
218
|
+
"accessibilityState",
|
|
219
|
+
nativeAccessibilityState(props.accessibilityState)
|
|
220
|
+
],
|
|
221
|
+
[
|
|
222
|
+
"set",
|
|
223
|
+
"accessibilityLiveRegion",
|
|
224
|
+
props.accessibilityLiveRegion
|
|
225
|
+
]
|
|
226
|
+
]),
|
|
227
|
+
props.horizontal ? "row" : "column",
|
|
228
|
+
props.children
|
|
229
|
+
]);
|
|
230
|
+
})]);
|
|
231
|
+
}, { "module": "@nativescript-community/octane" });
|
|
232
|
+
//#endregion
|
|
233
|
+
export { ScrollView };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { applyEscapeProps } from "./escape-props.native.js";
|
|
3
|
+
import { Icon } from "./Icon.native.tsrx.js";
|
|
4
|
+
import { writeText } from "./text-write.native.js";
|
|
5
|
+
import { defineUniversalComponent, hookSlots, markWarm, universalComponent, universalPlan, universalProps, universalValue, useBatch, useEffect, useRef, useState, warmChild } from "@nativescript-community/octane";
|
|
6
|
+
//#region src/SearchInput.native.tsrx
|
|
7
|
+
var _hs$ = /* @__PURE__ */ hookSlots(3);
|
|
8
|
+
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
9
|
+
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
10
|
+
var _h$2 = /* @__PURE__ */ Symbol(_hs$ + 2);
|
|
11
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
12
|
+
"kind": "slot",
|
|
13
|
+
"slot": 0
|
|
14
|
+
});
|
|
15
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
16
|
+
"kind": "host",
|
|
17
|
+
"type": "flexboxlayout",
|
|
18
|
+
"props": {
|
|
19
|
+
"className": "vx-search-clear",
|
|
20
|
+
"accessibilityLabel": "Clear search"
|
|
21
|
+
},
|
|
22
|
+
"bindings": [["onTap", 0]],
|
|
23
|
+
"children": [{
|
|
24
|
+
"kind": "slot",
|
|
25
|
+
"slot": 1
|
|
26
|
+
}]
|
|
27
|
+
});
|
|
28
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
29
|
+
"kind": "host",
|
|
30
|
+
"type": "flexboxlayout",
|
|
31
|
+
"props": { "flexDirection": "row" },
|
|
32
|
+
"bindings": [
|
|
33
|
+
["ref", 0],
|
|
34
|
+
["id", 1],
|
|
35
|
+
["className", 2],
|
|
36
|
+
["style", 3],
|
|
37
|
+
["accessibilityLabel", 4]
|
|
38
|
+
],
|
|
39
|
+
"children": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "slot",
|
|
42
|
+
"slot": 5
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"kind": "host",
|
|
46
|
+
"type": "textfield",
|
|
47
|
+
"props": {
|
|
48
|
+
"className": "vx-search-field",
|
|
49
|
+
"returnKeyType": "search"
|
|
50
|
+
},
|
|
51
|
+
"bindings": [
|
|
52
|
+
["ref", 6],
|
|
53
|
+
["hint", 7],
|
|
54
|
+
["editable", 8],
|
|
55
|
+
["onTextChange", 9],
|
|
56
|
+
["onReturnPress", 10],
|
|
57
|
+
["onFocus", 11],
|
|
58
|
+
["onBlur", 12]
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"kind": "slot",
|
|
63
|
+
"slot": 13
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
var SearchInput = defineUniversalComponent("nativescript", markWarm(function SearchInput(props) {
|
|
68
|
+
const el = useRef(null, _h$0);
|
|
69
|
+
const [internal, setInternal] = useState(props.defaultValue ?? "", _h$1);
|
|
70
|
+
const value = props.value ?? internal;
|
|
71
|
+
useEffect(() => writeText(el.current, value), [value], _h$2);
|
|
72
|
+
const setValue = (next) => {
|
|
73
|
+
if (props.value === void 0) setInternal(next);
|
|
74
|
+
props.onChange?.(next);
|
|
75
|
+
};
|
|
76
|
+
const clear = () => {
|
|
77
|
+
setValue("");
|
|
78
|
+
props.onClear?.();
|
|
79
|
+
};
|
|
80
|
+
useBatch([], () => {
|
|
81
|
+
warmChild(Icon, {
|
|
82
|
+
name: props.icon ?? "xplat-search",
|
|
83
|
+
size: 16,
|
|
84
|
+
className: "vx-search-icon"
|
|
85
|
+
});
|
|
86
|
+
warmChild(Icon, {
|
|
87
|
+
name: "xplat-clear",
|
|
88
|
+
size: 12
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
return universalValue(__octaneUniversalPlan2, [
|
|
92
|
+
(v) => applyEscapeProps(v, props),
|
|
93
|
+
props.id,
|
|
94
|
+
cx("vx-search", props.editable === false && "vx-search--disabled", props.className),
|
|
95
|
+
props.style,
|
|
96
|
+
props.accessibilityLabel,
|
|
97
|
+
props.icon !== false ? universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", Icon, universalProps([
|
|
98
|
+
[
|
|
99
|
+
"set",
|
|
100
|
+
"name",
|
|
101
|
+
props.icon ?? "xplat-search"
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
"set",
|
|
105
|
+
"size",
|
|
106
|
+
16
|
|
107
|
+
],
|
|
108
|
+
[
|
|
109
|
+
"set",
|
|
110
|
+
"className",
|
|
111
|
+
"vx-search-icon"
|
|
112
|
+
]
|
|
113
|
+
]))]) : null,
|
|
114
|
+
(v) => {
|
|
115
|
+
el.current = v;
|
|
116
|
+
if (!v) return;
|
|
117
|
+
props.bind?.({
|
|
118
|
+
focus: () => v.focus(),
|
|
119
|
+
blur: () => v.dismissSoftInput?.() ?? v.blur(),
|
|
120
|
+
native: v
|
|
121
|
+
});
|
|
122
|
+
},
|
|
123
|
+
props.placeholder,
|
|
124
|
+
props.editable ?? true,
|
|
125
|
+
(e) => setValue(e.value),
|
|
126
|
+
props.onSubmit,
|
|
127
|
+
props.onFocus,
|
|
128
|
+
props.onBlur,
|
|
129
|
+
value !== "" && props.editable !== false ? universalValue(__octaneUniversalPlan1, [clear, universalComponent("nativescript", Icon, universalProps([[
|
|
130
|
+
"set",
|
|
131
|
+
"name",
|
|
132
|
+
"xplat-clear"
|
|
133
|
+
], [
|
|
134
|
+
"set",
|
|
135
|
+
"size",
|
|
136
|
+
12
|
|
137
|
+
]]))]) : null
|
|
138
|
+
]);
|
|
139
|
+
}, (__wp) => {
|
|
140
|
+
warmChild(Icon, {
|
|
141
|
+
name: __wp.icon ?? "xplat-search",
|
|
142
|
+
size: 16,
|
|
143
|
+
className: "vx-search-icon"
|
|
144
|
+
});
|
|
145
|
+
warmChild(Icon, {
|
|
146
|
+
name: "xplat-clear",
|
|
147
|
+
size: 12
|
|
148
|
+
});
|
|
149
|
+
}), { "module": "@nativescript-community/octane" });
|
|
150
|
+
//#endregion
|
|
151
|
+
export { SearchInput };
|