@octane-xplat/ui 0.5.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/{ui59.js → Heading.native.tsrx.js} +2 -2
- package/dist/native/{ui58.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/{ui50.js → KeyboardAvoiding.native.tsrx.js} +1 -1
- package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
- package/dist/native/{ui55.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} +20 -14
- 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/{ui49.js → SafeArea.native.tsrx.js} +2 -2
- package/dist/native/{ui45.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/{ui63.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} +4 -3
- package/dist/native/{ui24.js → TextArea.native.tsrx.js} +17 -16
- 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/View.native.tsrx.js +98 -0
- 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/{ui51.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/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/{ui53.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
- package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
- package/dist/native/{ui56.js → ios/UISlider.ios.tsrx.js} +5 -5
- package/dist/native/{ui47.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/{ui6.js → pan.native.tsrx.js} +9 -69
- 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/{ui64.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/{ui42.js → theme/status-bar-scheme.native.js} +2 -2
- package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
- package/dist/native/{ui40.js → toast-anchor.native.tsrx.js} +3 -3
- package/dist/native/translate.native.js +11 -0
- package/dist/native/ui.js +93 -55
- package/dist/native/use-back.native.tsrx.js +9 -0
- package/dist/native/{ui52.js → useMeasure.native.tsrx.js} +1 -1
- 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/{ui48.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/{ui45.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/{ui54.js → Heading.web.tsrx.js} +2 -2
- package/dist/web/{ui53.js → Icon.web.tsrx.js} +2 -2
- 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/{ui50.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/{ui43.js → SafeArea.web.tsrx.js} +1 -1
- package/dist/web/{ui39.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/{ui40.js → Tabs.web.tsrx.js} +33 -16
- package/dist/web/{ui13.js → Text.web.tsrx.js} +18 -50
- 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/{ui36.js → anim.web.tsrx.js} +3 -35
- 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/{ui60.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/{ui35.js → toast-anchor.web.tsrx.js} +3 -3
- package/dist/web/transform.web.js +43 -0
- package/dist/web/translate.web.js +13 -0
- package/dist/web/ui.js +91 -53
- package/dist/web/use-back.web.tsrx.js +9 -0
- package/dist/web/video-chrome.web.tsrx.js +207 -0
- package/dist/web/{ui34.js → web/Hoverable.web.tsrx.js} +6 -6
- package/dist/web/web/Tooltip.web.tsrx.js +183 -0
- package/dist/web/web/index.js +3 -0
- package/package.json +30 -3
- package/src/theme/tokens.css +1380 -200
- package/types/android.d.ts +53 -0
- package/types/index.d.ts +32 -17
- 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 +930 -40
- 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 -103
- package/dist/native/ui4.js +0 -24
- package/dist/native/ui46.js +0 -267
- package/dist/native/ui57.js +0 -19
- package/dist/native/ui60.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/ui41.js +0 -43
- package/dist/web/ui44.js +0 -42
- package/dist/web/ui5.js +0 -168
- package/dist/web/ui51.js +0 -47
- package/dist/web/ui52.js +0 -19
- package/dist/web/ui55.js +0 -17
- package/dist/web/ui59.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/{ui41.js → anim.native.tsrx.js} +0 -0
- /package/dist/native/{ui2.js → cx.js} +0 -0
- /package/dist/native/{ui3.js → escape-props.native.js} +0 -0
- /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
- /package/dist/native/{ui54.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/{ui48.js → safeAreaInsets.native.tsrx.js} +0 -0
- /package/dist/native/{ui18.js → stacks.native.js} +0 -0
- /package/dist/native/{ui61.js → store.js} +0 -0
- /package/dist/native/{ui43.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/{ui62.js → use-store.native.tsrx.js} +0 -0
- /package/dist/native/{ui44.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/{ui49.js → meter-math.js} +0 -0
- /package/dist/web/{ui47.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/{ui42.js → safeAreaInsets.web.tsrx.js} +0 -0
- /package/dist/web/{ui56.js → stacks.web.js} +0 -0
- /package/dist/web/{ui57.js → store.js} +0 -0
- /package/dist/web/{ui37.js → styled.web.tsrx.js} +0 -0
- /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
- /package/dist/web/{ui58.js → use-store.web.tsrx.js} +0 -0
- /package/dist/web/{ui46.js → useMeasure.web.tsrx.js} +0 -0
- /package/dist/web/{ui38.js → windows.web.js} +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
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 { NATIVESCRIPT_RENDERER_ID, createNativeScriptRoot, defineUniversalComponent, hookSlots, memo, registerElement, universalComponent, universalIf, universalPlan, universalProps, universalValue, useCallback, useEffect, useRef } from "@nativescript-community/octane";
|
|
5
|
+
import { GridLayout } from "@nativescript/core";
|
|
6
|
+
import { __methodDep } from "octane";
|
|
7
|
+
import { Pager } from "@nativescript-community/ui-pager";
|
|
8
|
+
//#region src/Pager.native.tsrx
|
|
9
|
+
var _hs$ = /* @__PURE__ */ hookSlots(6);
|
|
10
|
+
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
11
|
+
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
12
|
+
var _h$2 = /* @__PURE__ */ Symbol(_hs$ + 2);
|
|
13
|
+
var _h$3 = /* @__PURE__ */ Symbol(_hs$ + 3);
|
|
14
|
+
var _h$4 = /* @__PURE__ */ Symbol(_hs$ + 4);
|
|
15
|
+
var _h$5 = /* @__PURE__ */ Symbol(_hs$ + 5);
|
|
16
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
17
|
+
"kind": "host",
|
|
18
|
+
"type": "gridlayout",
|
|
19
|
+
"children": [{
|
|
20
|
+
"kind": "slot",
|
|
21
|
+
"slot": 0
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
24
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
25
|
+
"kind": "host",
|
|
26
|
+
"type": "pager",
|
|
27
|
+
"propsSlot": 0
|
|
28
|
+
});
|
|
29
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
30
|
+
"kind": "slot",
|
|
31
|
+
"slot": 0
|
|
32
|
+
});
|
|
33
|
+
var __octaneUniversalPlan3 = universalPlan("nativescript", {
|
|
34
|
+
"kind": "range",
|
|
35
|
+
"children": [{
|
|
36
|
+
"kind": "slot",
|
|
37
|
+
"slot": 0
|
|
38
|
+
}]
|
|
39
|
+
});
|
|
40
|
+
var __octaneUniversalPlan4 = universalPlan("nativescript", {
|
|
41
|
+
"kind": "slot",
|
|
42
|
+
"slot": 0
|
|
43
|
+
});
|
|
44
|
+
registerElement("pager", Pager);
|
|
45
|
+
var cellsByHost = /* @__PURE__ */ new WeakMap();
|
|
46
|
+
var cellsByPager = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
var PagerCell = defineUniversalComponent(NATIVESCRIPT_RENDERER_ID, (props) => props.renderItem(props.item, props.index));
|
|
48
|
+
function cellFor(host) {
|
|
49
|
+
let cell = cellsByHost.get(host);
|
|
50
|
+
if (!cell) {
|
|
51
|
+
cell = {
|
|
52
|
+
host,
|
|
53
|
+
root: createNativeScriptRoot(host),
|
|
54
|
+
pager: null,
|
|
55
|
+
renderItem: null,
|
|
56
|
+
item: void 0,
|
|
57
|
+
index: -1
|
|
58
|
+
};
|
|
59
|
+
cellsByHost.set(host, cell);
|
|
60
|
+
}
|
|
61
|
+
return cell;
|
|
62
|
+
}
|
|
63
|
+
function createPageHost() {
|
|
64
|
+
const host = new GridLayout();
|
|
65
|
+
cellFor(host);
|
|
66
|
+
return host;
|
|
67
|
+
}
|
|
68
|
+
var PAGER_TEMPLATES = [{
|
|
69
|
+
key: "xplat-page",
|
|
70
|
+
createView: createPageHost
|
|
71
|
+
}];
|
|
72
|
+
var selectPageTemplate = () => "xplat-page";
|
|
73
|
+
function releasePagerCells(pager) {
|
|
74
|
+
const cells = cellsByPager.get(pager);
|
|
75
|
+
if (!cells) return;
|
|
76
|
+
for (const cell of cells) {
|
|
77
|
+
cellsByHost.delete(cell.host);
|
|
78
|
+
cell.root.unmount();
|
|
79
|
+
}
|
|
80
|
+
cellsByPager.delete(pager);
|
|
81
|
+
}
|
|
82
|
+
var PagerInner = defineUniversalComponent("nativescript", function PagerInner(props) {
|
|
83
|
+
const host = useRef(null, _h$0);
|
|
84
|
+
const suppressEcho = useRef(false, _h$1);
|
|
85
|
+
const pageSeeded = useRef(false, _h$2);
|
|
86
|
+
const bindHost = useCallback((v) => {
|
|
87
|
+
host.current = v;
|
|
88
|
+
}, [], _h$3);
|
|
89
|
+
const bindCell = (args) => {
|
|
90
|
+
const cell = cellFor(args.view);
|
|
91
|
+
cell.pager = args.object;
|
|
92
|
+
let owned = cellsByPager.get(cell.pager);
|
|
93
|
+
if (!owned) {
|
|
94
|
+
owned = /* @__PURE__ */ new Set();
|
|
95
|
+
cellsByPager.set(cell.pager, owned);
|
|
96
|
+
}
|
|
97
|
+
owned.add(cell);
|
|
98
|
+
const item = args.bindingContext ?? props.items?.[args.index];
|
|
99
|
+
if (cell.renderItem === props.renderItem && cell.index === args.index && Object.is(cell.item, item)) return;
|
|
100
|
+
cell.renderItem = props.renderItem;
|
|
101
|
+
cell.item = item;
|
|
102
|
+
cell.index = args.index;
|
|
103
|
+
cell.root.render(PagerCell, {
|
|
104
|
+
renderItem: (it, i) => universalValue(__octaneUniversalPlan0, [props.renderItem(it, i)]),
|
|
105
|
+
item,
|
|
106
|
+
index: args.index
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
const disposeCell = (args) => {
|
|
110
|
+
const cell = args.view && cellsByHost.get(args.view);
|
|
111
|
+
if (cell) {
|
|
112
|
+
cellsByHost.delete(args.view);
|
|
113
|
+
if (cell.pager) cellsByPager.get(cell.pager)?.delete(cell);
|
|
114
|
+
cell.root.unmount();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
const pager = host.current;
|
|
119
|
+
if (!pager) return;
|
|
120
|
+
pager.itemTemplates = PAGER_TEMPLATES;
|
|
121
|
+
pager.itemTemplateSelector = selectPageTemplate;
|
|
122
|
+
return () => releasePagerCells(pager);
|
|
123
|
+
}, [], _h$4);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
const pager = host.current;
|
|
126
|
+
if (!pager) return;
|
|
127
|
+
applyEscapeProps(pager, props);
|
|
128
|
+
if (pager.items !== props.items) pager.items = props.items;
|
|
129
|
+
const target = props.page ?? (pageSeeded.current ? void 0 : props.defaultPage);
|
|
130
|
+
if (target !== void 0 && pager.selectedIndex !== target) {
|
|
131
|
+
suppressEcho.current = true;
|
|
132
|
+
try {
|
|
133
|
+
pager.selectedIndex = target;
|
|
134
|
+
} finally {
|
|
135
|
+
suppressEcho.current = false;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
pageSeeded.current = true;
|
|
139
|
+
}, [
|
|
140
|
+
props,
|
|
141
|
+
__methodDep(props, "items", true),
|
|
142
|
+
__methodDep(props, "page", true),
|
|
143
|
+
__methodDep(props, "defaultPage", true)
|
|
144
|
+
], _h$5);
|
|
145
|
+
return universalValue(__octaneUniversalPlan1, [universalProps([
|
|
146
|
+
[
|
|
147
|
+
"set",
|
|
148
|
+
"ref",
|
|
149
|
+
bindHost
|
|
150
|
+
],
|
|
151
|
+
[
|
|
152
|
+
"set",
|
|
153
|
+
"id",
|
|
154
|
+
props.id
|
|
155
|
+
],
|
|
156
|
+
["spread", layoutChildProps(props)],
|
|
157
|
+
[
|
|
158
|
+
"set",
|
|
159
|
+
"className",
|
|
160
|
+
cx("vx-pager", props.className)
|
|
161
|
+
],
|
|
162
|
+
[
|
|
163
|
+
"set",
|
|
164
|
+
"style",
|
|
165
|
+
props.style
|
|
166
|
+
],
|
|
167
|
+
[
|
|
168
|
+
"set",
|
|
169
|
+
"onItemLoading",
|
|
170
|
+
bindCell
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
"set",
|
|
174
|
+
"onItemDisposing",
|
|
175
|
+
disposeCell
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
"set",
|
|
179
|
+
"onSelectedIndexChange",
|
|
180
|
+
(args) => {
|
|
181
|
+
if (!suppressEcho.current) props.onPageChange?.(args.value);
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
"set",
|
|
186
|
+
"accessibilityRole",
|
|
187
|
+
nativeAccessibilityRole(props.accessibilityRole)
|
|
188
|
+
],
|
|
189
|
+
[
|
|
190
|
+
"set",
|
|
191
|
+
"accessibilityLabel",
|
|
192
|
+
props.accessibilityLabel
|
|
193
|
+
],
|
|
194
|
+
[
|
|
195
|
+
"set",
|
|
196
|
+
"accessibilityHint",
|
|
197
|
+
props.accessibilityHint
|
|
198
|
+
],
|
|
199
|
+
[
|
|
200
|
+
"set",
|
|
201
|
+
"accessibilityValue",
|
|
202
|
+
props.accessibilityValue
|
|
203
|
+
],
|
|
204
|
+
[
|
|
205
|
+
"set",
|
|
206
|
+
"accessibilityState",
|
|
207
|
+
nativeAccessibilityState(props.accessibilityState)
|
|
208
|
+
],
|
|
209
|
+
[
|
|
210
|
+
"set",
|
|
211
|
+
"accessible",
|
|
212
|
+
props.accessible
|
|
213
|
+
],
|
|
214
|
+
[
|
|
215
|
+
"set",
|
|
216
|
+
"accessibilityLiveRegion",
|
|
217
|
+
props.accessibilityLiveRegion
|
|
218
|
+
]
|
|
219
|
+
])]);
|
|
220
|
+
}, { "module": "@nativescript-community/octane" });
|
|
221
|
+
var MemoPager = memo(PagerInner, (a, b) => a.items === b.items && a.className === b.className && a.style === b.style && a.id === b.id && a.page === b.page && a.onPageChange === b.onPageChange && a.ios === b.ios && a.android === b.android);
|
|
222
|
+
var Pager$1 = defineUniversalComponent("nativescript", function Pager(props) {
|
|
223
|
+
return universalValue(__octaneUniversalPlan4, [universalIf(props.items.length > 0, () => {
|
|
224
|
+
return universalValue(__octaneUniversalPlan2, [universalComponent("nativescript", MemoPager, universalProps([
|
|
225
|
+
[
|
|
226
|
+
"set",
|
|
227
|
+
"id",
|
|
228
|
+
props.id
|
|
229
|
+
],
|
|
230
|
+
[
|
|
231
|
+
"set",
|
|
232
|
+
"className",
|
|
233
|
+
props.className
|
|
234
|
+
],
|
|
235
|
+
[
|
|
236
|
+
"set",
|
|
237
|
+
"style",
|
|
238
|
+
props.style
|
|
239
|
+
],
|
|
240
|
+
[
|
|
241
|
+
"set",
|
|
242
|
+
"items",
|
|
243
|
+
props.items
|
|
244
|
+
],
|
|
245
|
+
[
|
|
246
|
+
"set",
|
|
247
|
+
"renderItem",
|
|
248
|
+
props.renderItem
|
|
249
|
+
],
|
|
250
|
+
[
|
|
251
|
+
"set",
|
|
252
|
+
"page",
|
|
253
|
+
props.page
|
|
254
|
+
],
|
|
255
|
+
[
|
|
256
|
+
"set",
|
|
257
|
+
"defaultPage",
|
|
258
|
+
props.defaultPage
|
|
259
|
+
],
|
|
260
|
+
[
|
|
261
|
+
"set",
|
|
262
|
+
"onPageChange",
|
|
263
|
+
props.onPageChange
|
|
264
|
+
],
|
|
265
|
+
[
|
|
266
|
+
"set",
|
|
267
|
+
"ios",
|
|
268
|
+
props.ios
|
|
269
|
+
],
|
|
270
|
+
[
|
|
271
|
+
"set",
|
|
272
|
+
"android",
|
|
273
|
+
props.android
|
|
274
|
+
],
|
|
275
|
+
["spread", layoutChildProps(props)]
|
|
276
|
+
]))]);
|
|
277
|
+
}, () => {
|
|
278
|
+
return universalValue(__octaneUniversalPlan3, [props.renderEmpty?.()]);
|
|
279
|
+
})]);
|
|
280
|
+
}, { "module": "@nativescript-community/octane" });
|
|
281
|
+
//#endregion
|
|
282
|
+
export { Pager$1 as Pager };
|
|
@@ -0,0 +1,107 @@
|
|
|
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/Pagination.native.tsrx
|
|
5
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
|
+
"kind": "range",
|
|
7
|
+
"children": []
|
|
8
|
+
});
|
|
9
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
10
|
+
"kind": "host",
|
|
11
|
+
"type": "label",
|
|
12
|
+
"props": {
|
|
13
|
+
"className": "vx-page-ellipsis",
|
|
14
|
+
"text": "…"
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
18
|
+
"kind": "host",
|
|
19
|
+
"type": "flexboxlayout",
|
|
20
|
+
"bindings": [["className", 0], ["onTap", 1]],
|
|
21
|
+
"children": [{
|
|
22
|
+
"kind": "host",
|
|
23
|
+
"type": "label",
|
|
24
|
+
"bindings": [["text", 2]]
|
|
25
|
+
}]
|
|
26
|
+
});
|
|
27
|
+
var __octaneUniversalPlan3 = universalPlan("nativescript", {
|
|
28
|
+
"kind": "host",
|
|
29
|
+
"type": "flexboxlayout",
|
|
30
|
+
"props": { "flexDirection": "row" },
|
|
31
|
+
"bindings": [
|
|
32
|
+
["ref", 0],
|
|
33
|
+
["id", 1],
|
|
34
|
+
["className", 2],
|
|
35
|
+
["style", 3]
|
|
36
|
+
],
|
|
37
|
+
"children": [
|
|
38
|
+
{
|
|
39
|
+
"kind": "host",
|
|
40
|
+
"type": "flexboxlayout",
|
|
41
|
+
"props": { "className": "vx-page-btn" },
|
|
42
|
+
"bindings": [["onTap", 4]],
|
|
43
|
+
"children": [{
|
|
44
|
+
"kind": "host",
|
|
45
|
+
"type": "label",
|
|
46
|
+
"props": { "text": "‹" }
|
|
47
|
+
}]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"kind": "slot",
|
|
51
|
+
"slot": 5
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"kind": "host",
|
|
55
|
+
"type": "flexboxlayout",
|
|
56
|
+
"props": { "className": "vx-page-btn" },
|
|
57
|
+
"bindings": [["onTap", 6]],
|
|
58
|
+
"children": [{
|
|
59
|
+
"kind": "host",
|
|
60
|
+
"type": "label",
|
|
61
|
+
"props": { "text": "›" }
|
|
62
|
+
}]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
var Pagination = defineUniversalComponent("nativescript", function Pagination(props) {
|
|
67
|
+
const sibling = props.siblingCount ?? 1;
|
|
68
|
+
const count = Math.max(0, props.pageCount);
|
|
69
|
+
const current = Math.min(Math.max(1, props.page), Math.max(1, count));
|
|
70
|
+
const pages = [];
|
|
71
|
+
let lastEllipsis = false;
|
|
72
|
+
for (let p = 1; p <= count; p++) if (p === 1 || p === count || Math.abs(p - current) <= sibling) {
|
|
73
|
+
pages.push({
|
|
74
|
+
key: String(p),
|
|
75
|
+
page: p
|
|
76
|
+
});
|
|
77
|
+
lastEllipsis = false;
|
|
78
|
+
} else if (!lastEllipsis) {
|
|
79
|
+
pages.push({
|
|
80
|
+
key: "e" + p,
|
|
81
|
+
page: null
|
|
82
|
+
});
|
|
83
|
+
lastEllipsis = true;
|
|
84
|
+
}
|
|
85
|
+
const go = (p) => {
|
|
86
|
+
if (props.disabled || p < 1 || p > count || p === current) return;
|
|
87
|
+
props.onPageChange?.(p);
|
|
88
|
+
};
|
|
89
|
+
return universalValue(__octaneUniversalPlan3, [
|
|
90
|
+
(v) => applyEscapeProps(v, props),
|
|
91
|
+
props.id,
|
|
92
|
+
cx("vx-pagination", props.disabled && "vx-pagination--disabled", props.className),
|
|
93
|
+
props.style,
|
|
94
|
+
() => go(current - 1),
|
|
95
|
+
universalFor(pages, (e, __octaneUniversalIndex) => e.key, (e, __octaneUniversalIndex) => {
|
|
96
|
+
e.page == null ? universalValue(__octaneUniversalPlan1, []) : universalValue(__octaneUniversalPlan2, [
|
|
97
|
+
cx("vx-page-btn", e.page === current && "vx-page-btn--on"),
|
|
98
|
+
() => go(e.page),
|
|
99
|
+
String(e.page)
|
|
100
|
+
]);
|
|
101
|
+
return universalValue(__octaneUniversalPlan0, []);
|
|
102
|
+
}),
|
|
103
|
+
() => go(current + 1)
|
|
104
|
+
]);
|
|
105
|
+
}, { "module": "@nativescript-community/octane" });
|
|
106
|
+
//#endregion
|
|
107
|
+
export { Pagination };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { applyEscapeProps } from "./escape-props.native.js";
|
|
3
|
+
import { TextInput } from "./TextInput.native.tsrx.js";
|
|
4
|
+
import { defineUniversalComponent, hookSlots, universalComponent, universalFor, universalPlan, universalProps, universalValue, useState } from "@nativescript-community/octane";
|
|
5
|
+
//#region src/PinInput.native.tsrx
|
|
6
|
+
var _h$0 = /* @__PURE__ */ Symbol(/* @__PURE__ */ hookSlots(1));
|
|
7
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
8
|
+
"kind": "slot",
|
|
9
|
+
"slot": 0
|
|
10
|
+
});
|
|
11
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
12
|
+
"kind": "host",
|
|
13
|
+
"type": "flexboxlayout",
|
|
14
|
+
"props": { "flexDirection": "row" },
|
|
15
|
+
"bindings": [
|
|
16
|
+
["ref", 0],
|
|
17
|
+
["id", 1],
|
|
18
|
+
["className", 2],
|
|
19
|
+
["style", 3]
|
|
20
|
+
],
|
|
21
|
+
"children": [{
|
|
22
|
+
"kind": "slot",
|
|
23
|
+
"slot": 4
|
|
24
|
+
}]
|
|
25
|
+
});
|
|
26
|
+
var PinInput = defineUniversalComponent("nativescript", function PinInput(props) {
|
|
27
|
+
const length = props.length ?? 4;
|
|
28
|
+
const [internal, setInternal] = useState("", _h$0);
|
|
29
|
+
const controlled = props.value !== void 0;
|
|
30
|
+
const value = controlled ? props.value : internal;
|
|
31
|
+
const handles = [];
|
|
32
|
+
const setValue = (next) => {
|
|
33
|
+
const clipped = next.slice(0, length);
|
|
34
|
+
if (!controlled) setInternal(clipped);
|
|
35
|
+
props.onValueChange?.(clipped);
|
|
36
|
+
if (clipped.length === length) props.onComplete?.(clipped);
|
|
37
|
+
};
|
|
38
|
+
const cellValue = (i) => value[i] ?? "";
|
|
39
|
+
const enter = (i, text) => {
|
|
40
|
+
const ch = text.slice(-1);
|
|
41
|
+
const next = (value.slice(0, i) + ch + value.slice(i + 1)).slice(0, length);
|
|
42
|
+
setValue(next);
|
|
43
|
+
if (ch && i < length - 1) handles[i + 1]?.focus();
|
|
44
|
+
};
|
|
45
|
+
return universalValue(__octaneUniversalPlan1, [
|
|
46
|
+
(v) => applyEscapeProps(v, props),
|
|
47
|
+
props.id,
|
|
48
|
+
cx("vx-pininput", props.disabled && "vx-pininput--disabled", props.className),
|
|
49
|
+
props.style,
|
|
50
|
+
universalFor(Array.from({ length }, (_, k) => k), (i, __octaneUniversalIndex) => i, (i, __octaneUniversalIndex) => {
|
|
51
|
+
return universalValue(__octaneUniversalPlan0, [universalComponent("nativescript", TextInput, universalProps([
|
|
52
|
+
[
|
|
53
|
+
"set",
|
|
54
|
+
"className",
|
|
55
|
+
"vx-pininput-cell"
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
"set",
|
|
59
|
+
"keyboardType",
|
|
60
|
+
"number"
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
"set",
|
|
64
|
+
"secure",
|
|
65
|
+
props.secure
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
"set",
|
|
69
|
+
"editable",
|
|
70
|
+
!props.disabled
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"set",
|
|
74
|
+
"value",
|
|
75
|
+
cellValue(i)
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
"set",
|
|
79
|
+
"onChange",
|
|
80
|
+
(text) => enter(i, text)
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
"set",
|
|
84
|
+
"bind",
|
|
85
|
+
(h) => {
|
|
86
|
+
handles[i] = h;
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
]))]);
|
|
90
|
+
})
|
|
91
|
+
]);
|
|
92
|
+
}, { "module": "@nativescript-community/octane" });
|
|
93
|
+
//#endregion
|
|
94
|
+
export { PinInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { cx } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { applyNativeProps } from "./platformProps.native.js";
|
|
3
|
+
import { positionPopover } from "./popover-position.js";
|
|
4
|
+
import { applyThemeClasses, useThemeScheme } from "./theme/theme-scheme.js";
|
|
5
|
+
import { rootLayoutFor } from "./root-layout.native.js";
|
|
6
6
|
import { createNativeScriptRoot, defineUniversalComponent, hookSlots, universalPlan, universalValue, useEffect, useRef, useState, withSlot } from "@nativescript-community/octane";
|
|
7
7
|
import { GridLayout } from "@nativescript/core";
|
|
8
8
|
//#region src/Popover.native.tsrx
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { cx } from "./
|
|
2
|
-
import { applyEscapeProps, nativeAccessibilityRole, nativeAccessibilityState } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
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
6
|
//#region src/Pressable.native.tsrx
|
|
7
|
+
var _h$0 = /* @__PURE__ */ Symbol(/* @__PURE__ */ hookSlots(1));
|
|
7
8
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
8
9
|
"kind": "host",
|
|
9
10
|
"type": "flexboxlayout",
|
|
@@ -18,7 +19,12 @@ var Pressable = defineUniversalComponent("nativescript", function Pressable(prop
|
|
|
18
19
|
[
|
|
19
20
|
"set",
|
|
20
21
|
"ref",
|
|
21
|
-
(v) =>
|
|
22
|
+
(v) => {
|
|
23
|
+
if (v) {
|
|
24
|
+
applyEscapeProps(v, props);
|
|
25
|
+
props.bind?.(v);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
22
28
|
],
|
|
23
29
|
[
|
|
24
30
|
"set",
|
|
@@ -29,12 +35,7 @@ var Pressable = defineUniversalComponent("nativescript", function Pressable(prop
|
|
|
29
35
|
[
|
|
30
36
|
"set",
|
|
31
37
|
"className",
|
|
32
|
-
cx("vx-pressable",
|
|
33
|
-
],
|
|
34
|
-
[
|
|
35
|
-
"set",
|
|
36
|
-
"iosGlassEffect",
|
|
37
|
-
glassConfigOf(props.glass)
|
|
38
|
+
cx("vx-pressable", props.className)
|
|
38
39
|
],
|
|
39
40
|
[
|
|
40
41
|
"set",
|
|
@@ -84,8 +85,13 @@ var Pressable = defineUniversalComponent("nativescript", function Pressable(prop
|
|
|
84
85
|
],
|
|
85
86
|
[
|
|
86
87
|
"set",
|
|
87
|
-
"
|
|
88
|
-
props.
|
|
88
|
+
"onPan",
|
|
89
|
+
withSlot(_h$0, usePan, props.disabled ? void 0 : props.onPan)
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
"set",
|
|
93
|
+
"onSwipe",
|
|
94
|
+
props.disabled ? void 0 : props.onSwipe
|
|
89
95
|
],
|
|
90
96
|
[
|
|
91
97
|
"set",
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { cx } from "./cx.js";
|
|
2
|
+
import { applyEscapeProps } from "./escape-props.native.js";
|
|
3
|
+
import { Meter } from "./Meter.native.tsrx.js";
|
|
4
|
+
import { defineUniversalComponent, universalComponent, universalFor, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
5
|
+
//#region src/ProgressGroup.native.tsrx
|
|
6
|
+
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
7
|
+
"kind": "host",
|
|
8
|
+
"type": "label",
|
|
9
|
+
"props": { "className": "vx-progressgroup-label" },
|
|
10
|
+
"bindings": [["text", 0]]
|
|
11
|
+
});
|
|
12
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
13
|
+
"kind": "host",
|
|
14
|
+
"type": "flexboxlayout",
|
|
15
|
+
"props": { "className": "vx-progressgroup-row" },
|
|
16
|
+
"children": [{
|
|
17
|
+
"kind": "slot",
|
|
18
|
+
"slot": 0
|
|
19
|
+
}, {
|
|
20
|
+
"kind": "slot",
|
|
21
|
+
"slot": 1
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
24
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
25
|
+
"kind": "host",
|
|
26
|
+
"type": "flexboxlayout",
|
|
27
|
+
"bindings": [
|
|
28
|
+
["ref", 0],
|
|
29
|
+
["id", 1],
|
|
30
|
+
["className", 2],
|
|
31
|
+
["style", 3]
|
|
32
|
+
],
|
|
33
|
+
"children": [{
|
|
34
|
+
"kind": "slot",
|
|
35
|
+
"slot": 4
|
|
36
|
+
}]
|
|
37
|
+
});
|
|
38
|
+
var ProgressGroup = defineUniversalComponent("nativescript", function ProgressGroup(props) {
|
|
39
|
+
return universalValue(__octaneUniversalPlan2, [
|
|
40
|
+
(v) => applyEscapeProps(v, props),
|
|
41
|
+
props.id,
|
|
42
|
+
cx("vx-progressgroup", props.className),
|
|
43
|
+
props.style,
|
|
44
|
+
universalFor(props.items, (item, __octaneUniversalIndex) => item.key, (item, __octaneUniversalIndex) => {
|
|
45
|
+
return universalValue(__octaneUniversalPlan1, [universalComponent("nativescript", Meter, universalProps([
|
|
46
|
+
[
|
|
47
|
+
"set",
|
|
48
|
+
"value",
|
|
49
|
+
item.value
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
"set",
|
|
53
|
+
"max",
|
|
54
|
+
item.max
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"set",
|
|
58
|
+
"accessibilityLabel",
|
|
59
|
+
item.label
|
|
60
|
+
]
|
|
61
|
+
])), item.label != null ? universalValue(__octaneUniversalPlan0, [item.label]) : null]);
|
|
62
|
+
})
|
|
63
|
+
]);
|
|
64
|
+
}, { "module": "@nativescript-community/octane" });
|
|
65
|
+
//#endregion
|
|
66
|
+
export { ProgressGroup };
|