storybook-nitroui-controls 0.1.0 → 0.2.1
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 +11 -2
- package/android/src/main/java/com/margelo/nitro/sbcontrols/HybridNativeChoiceList.kt +107 -0
- package/demo/ControlsDemo.tsx +10 -0
- package/ios/HybridNativeChoiceList.swift +138 -0
- package/nitrogen/generated/android/StorybookNitroControls+autolinking.cmake +1 -0
- package/nitrogen/generated/android/StorybookNitroControlsOnLoad.cpp +5 -2
- package/nitrogen/generated/android/c++/JHybridNativeChoiceListSpec.cpp +122 -0
- package/nitrogen/generated/android/c++/include/StorybookNitroControls/private/JHybridNativeChoiceListSpec.hpp +103 -0
- package/nitrogen/generated/android/c++/include/StorybookNitroControls/private/JHybridNativeChoiceListSpecJavaPart.hpp +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/sbcontrols/HybridNativeChoiceListSpec.kt +108 -0
- package/nitrogen/generated/apple/StorybookNitroControls-Swift-Cxx-Bridge.cpp +45 -30
- package/nitrogen/generated/apple/StorybookNitroControlsAppleCxx/include/StorybookNitroControlsAppleCxx/StorybookNitroControlsAppleCxx.h +19 -7
- package/nitrogen/generated/apple/StorybookNitroControlsAutolinking.cpp +2 -0
- package/nitrogen/generated/apple/c++/HybridNativeChoiceListSpecSwift.cpp +84 -0
- package/nitrogen/generated/apple/c++/HybridNativeChoiceListSpec_cxx-Swift.cpp +28 -0
- package/nitrogen/generated/apple/c++/include/StorybookNitroControls/private/HybridNativeChoiceListSpecSwift.hpp +81 -0
- package/nitrogen/generated/apple/c++/include/StorybookNitroControls/private/HybridNativeChoiceListSpec_cxx-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/StorybookNitroControls/private/StorybookNitroControls-Swift-Cxx-Umbrella.hpp +1 -0
- package/nitrogen/generated/apple/swift/HybridNativeChoiceListSpec.swift +70 -0
- package/nitrogen/generated/apple/swift/HybridNativeChoiceListSpec_cxx.swift +194 -0
- package/nitrogen/generated/hybrid-classes.json +14 -0
- package/nitrogen/generated/shared/javascript/NativeChoiceList.cjs +19 -0
- package/nitrogen/generated/shared/javascript/NativeChoiceList.d.cts +9 -0
- package/package.json +2 -2
- package/src/components/ChoiceList.tsx +100 -0
- package/src/index.ts +1 -0
- package/src/specs/NativeChoiceList.nitro.ts +22 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# storybook-nitroui-controls
|
|
2
2
|
|
|
3
3
|
Native controls for [NitroUI](https://nitro-ui.com) apps: switch, slider, stepper, segmented control,
|
|
4
|
-
select menu, multi-select, date picker, color well and a file picker. Each component renders the platform
|
|
4
|
+
select menu, multi-select, radio and checkbox groups, date picker, color well and a file picker. Each component renders the platform
|
|
5
5
|
widget (UIKit on iOS, Material 3 on Android) as a Nitro view, and sizes itself.
|
|
6
6
|
|
|
7
7
|
Storybook for NitroUI uses them in its controls panel, but they work in any NitroUI 0.3.0 app.
|
|
@@ -46,6 +46,10 @@ type Option = { label: string; value: string }
|
|
|
46
46
|
<MultiSelect options={Option[]} value={string[]} onValueChange={(v: string[]) => void}
|
|
47
47
|
presentation?={'menu' | 'chips'} placeholder?={string} />
|
|
48
48
|
|
|
49
|
+
<RadioGroup options={Option[]} value={string | undefined} onValueChange={(v: string) => void} />
|
|
50
|
+
|
|
51
|
+
<CheckboxGroup options={Option[]} value={string[]} onValueChange={(v: string[]) => void} />
|
|
52
|
+
|
|
49
53
|
<DatePicker value={number /* epoch ms */} mode={'date' | 'time' | 'datetime'}
|
|
50
54
|
onValueChange={(v: number) => void} />
|
|
51
55
|
|
|
@@ -81,7 +85,9 @@ Details:
|
|
|
81
85
|
`min`/`max` default to unbounded.
|
|
82
86
|
- `SegmentedControl`, `SelectMenu`: a `value` that matches no option shows no selection (segmented) or the
|
|
83
87
|
placeholder (select). The callback always receives an option's `value`.
|
|
84
|
-
- `MultiSelect`: the callback receives values in option order. Values that match no
|
|
88
|
+
- `MultiSelect`, `CheckboxGroup`: the callback receives values in option order. Values that match no
|
|
89
|
+
option are dropped.
|
|
90
|
+
- `RadioGroup`: a `value` that matches no option selects nothing. Tapping the selected option keeps it.
|
|
85
91
|
- `DatePicker`: the value is a timestamp in milliseconds, like web Storybook's date control. Editing the
|
|
86
92
|
date keeps the time of day and editing the time keeps the date, in the device time zone.
|
|
87
93
|
- `ColorWell`: accepts `#rgb`, `#rgba`, `#rrggbb` and `#rrggbbaa`. The callback returns `#rrggbb` when
|
|
@@ -108,6 +114,7 @@ Sizes:
|
|
|
108
114
|
| SegmentedControl, SelectMenu | intrinsic, up to the offered width | intrinsic |
|
|
109
115
|
| Slider | the offered width (200 when unconstrained) | intrinsic |
|
|
110
116
|
| MultiSelect, ColorWell | the offered width; chips and swatches wrap | grows with the rows |
|
|
117
|
+
| RadioGroup, CheckboxGroup | the offered width | one row per option |
|
|
111
118
|
|
|
112
119
|
Like any NitroUI view, a control in a column with the default `alignItems: 'stretch'` is stretched to the
|
|
113
120
|
column's width. Put it in a row, or set `alignSelf`, to keep the intrinsic width.
|
|
@@ -126,6 +133,8 @@ explicit `layout={{ width, height }}` until this package is updated.
|
|
|
126
133
|
| SelectMenu | gray `UIButton` with a pull-down `UIMenu` (single selection, checkmark) | M3 exposed dropdown menu (outlined, read-only) |
|
|
127
134
|
| MultiSelect `menu` | `UIMenu` whose items keep the menu open (`keepsMenuPresented`, iOS 16+) | exposed dropdown field opening a checkable `ListPopupWindow` that stays open |
|
|
128
135
|
| MultiSelect `chips` | capsule `UIButton`s (gray, tinted with a checkmark when on); iOS has no chip | M3 filter `Chip`s in a `ChipGroup` |
|
|
136
|
+
| RadioGroup | plain `UIButton` rows with an SF Symbol mark (`circle`, `circle.inset.filled` when selected); iOS has no radio button | M3 `MaterialRadioButton`s |
|
|
137
|
+
| CheckboxGroup | plain `UIButton` rows with an SF Symbol mark (`square`, `checkmark.square.fill` when checked); iOS has no checkbox | M3 `MaterialCheckBox`es |
|
|
129
138
|
| DatePicker | `UIDatePicker`, compact style (calendar or time wheel in a popover) | tonal buttons with the date and time, opening `MaterialDatePicker` and `MaterialTimePicker` |
|
|
130
139
|
| ColorWell | `UIColorWell` (system picker: grid, spectrum, sliders, hex, eyedropper, opacity) plus preset swatches | our own picker in a `MaterialAlertDialog` (saturation and brightness square, hue and alpha tracks, hex field, presets) plus preset swatches; Android has no system color picker |
|
|
131
140
|
| pickFile | `PHPickerViewController` when every type is `image/*` or `video/*`, otherwise `UIDocumentPickerViewController`. Files are copied into the temporary directory and returned as `file://` URLs | Photo Picker for image or video types, otherwise the system document picker (`OpenDocument`). Returns `content://` URIs and takes a persistable read grant when the provider allows it |
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
package com.margelo.nitro.sbcontrols
|
|
2
|
+
|
|
3
|
+
import android.widget.CompoundButton
|
|
4
|
+
import android.widget.LinearLayout
|
|
5
|
+
import com.google.android.material.checkbox.MaterialCheckBox
|
|
6
|
+
import com.google.android.material.radiobutton.MaterialRadioButton
|
|
7
|
+
import com.margelo.nitro.core.Callback
|
|
8
|
+
import com.margelo.nitro.renderer.AndroidHost
|
|
9
|
+
import com.margelo.nitro.renderer.NativeView
|
|
10
|
+
import com.margelo.nitro.renderer.ViewOperations
|
|
11
|
+
import com.margelo.nitro.renderer.ViewState
|
|
12
|
+
|
|
13
|
+
/** Material 3 radio buttons, or checkboxes when [multiple], in a vertical list. */
|
|
14
|
+
class HybridNativeChoiceList
|
|
15
|
+
private constructor(
|
|
16
|
+
private val list: LinearLayout,
|
|
17
|
+
frame: ControlFrame,
|
|
18
|
+
override val nativeState: ViewState,
|
|
19
|
+
) : HybridNativeChoiceListSpec(), NativeView, ViewOperations by nativeState {
|
|
20
|
+
private var listener: Callback<(selected: BooleanArray) -> Unit>? = null
|
|
21
|
+
private var updating = false
|
|
22
|
+
|
|
23
|
+
init {
|
|
24
|
+
nativeState.bind(this)
|
|
25
|
+
frame.show(list, fill = true)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
override var labels: Array<String> = emptyArray()
|
|
29
|
+
set(value) {
|
|
30
|
+
if (value.contentEquals(field)) return
|
|
31
|
+
field = value
|
|
32
|
+
rebuild()
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
override var selected: BooleanArray = BooleanArray(0)
|
|
36
|
+
set(value) {
|
|
37
|
+
if (value.contentEquals(field)) return
|
|
38
|
+
field = value
|
|
39
|
+
refresh()
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
override var multiple: Boolean = false
|
|
43
|
+
set(value) {
|
|
44
|
+
if (value == field) return
|
|
45
|
+
field = value
|
|
46
|
+
rebuild()
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
override var enabled: Boolean = true
|
|
50
|
+
set(value) {
|
|
51
|
+
field = value
|
|
52
|
+
setEnabledDeep(list, value)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private fun checkedArray() = BooleanArray(labels.size) { selected.getOrElse(it) { false } }
|
|
56
|
+
|
|
57
|
+
private fun rebuild() {
|
|
58
|
+
updating = true
|
|
59
|
+
list.removeAllViews()
|
|
60
|
+
labels.forEachIndexed { index, label ->
|
|
61
|
+
val button: CompoundButton = if (multiple) MaterialCheckBox(list.context) else MaterialRadioButton(list.context)
|
|
62
|
+
button.text = label
|
|
63
|
+
button.isEnabled = enabled
|
|
64
|
+
button.setOnCheckedChangeListener { view, checked -> if (!updating) toggle(index, checked, view) }
|
|
65
|
+
list.addView(button, LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT))
|
|
66
|
+
}
|
|
67
|
+
updating = false
|
|
68
|
+
refresh()
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private fun refresh() {
|
|
72
|
+
updating = true
|
|
73
|
+
val checked = checkedArray()
|
|
74
|
+
for (index in 0 until list.childCount) (list.getChildAt(index) as? CompoundButton)?.isChecked = checked.getOrElse(index) { false }
|
|
75
|
+
updating = false
|
|
76
|
+
nativeState.layoutNode.markDirty()
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private fun toggle(index: Int, checked: Boolean, view: CompoundButton) {
|
|
80
|
+
if (index !in labels.indices) return
|
|
81
|
+
val next = if (multiple) checkedArray().also { it[index] = checked } else BooleanArray(labels.size) { it == index }
|
|
82
|
+
// A radio button cannot be turned off by tapping it again.
|
|
83
|
+
if (!multiple && !checked) {
|
|
84
|
+
updating = true
|
|
85
|
+
view.isChecked = true
|
|
86
|
+
updating = false
|
|
87
|
+
return
|
|
88
|
+
}
|
|
89
|
+
selected = next
|
|
90
|
+
listener.emit(next)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
override fun setOnChange(listener: Callback<(selected: BooleanArray) -> Unit>?) {
|
|
94
|
+
this.listener = listener
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
companion object : HybridNativeChoiceListSpec.Companion {
|
|
98
|
+
override fun constructor(): HybridNativeChoiceList {
|
|
99
|
+
val context = AndroidHost.context
|
|
100
|
+
val list = LinearLayout(context)
|
|
101
|
+
list.orientation = LinearLayout.VERTICAL
|
|
102
|
+
val frame = ControlFrame(context)
|
|
103
|
+
val state = ViewState(frame, contentMeasure(frame, fillWidth = true))
|
|
104
|
+
return HybridNativeChoiceList(list, frame, state)
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
package/demo/ControlsDemo.tsx
CHANGED
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
ColorWell,
|
|
5
5
|
DatePicker,
|
|
6
6
|
MultiSelect,
|
|
7
|
+
RadioGroup,
|
|
8
|
+
CheckboxGroup,
|
|
7
9
|
pickFile,
|
|
8
10
|
SegmentedControl,
|
|
9
11
|
SelectMenu,
|
|
@@ -64,6 +66,8 @@ export function ControlsDemo() {
|
|
|
64
66
|
const [variant, setVariant] = useState<string | undefined>(undefined)
|
|
65
67
|
const [menuToppings, setMenuToppings] = useState<string[]>(['cheese'])
|
|
66
68
|
const [chipToppings, setChipToppings] = useState<string[]>(['tomato', 'basil'])
|
|
69
|
+
const [radioVariant, setRadioVariant] = useState<string | undefined>('primary')
|
|
70
|
+
const [checkedToppings, setCheckedToppings] = useState<string[]>(['cheese'])
|
|
67
71
|
const [date, setDate] = useState(() => Date.UTC(2026, 11, 2, 9, 30))
|
|
68
72
|
const [color, setColor] = useState('#007aff')
|
|
69
73
|
const [alphaColor, setAlphaColor] = useState('#34c75980')
|
|
@@ -117,6 +121,12 @@ export function ControlsDemo() {
|
|
|
117
121
|
<Row title="Multi-select (chips)" value={JSON.stringify(chipToppings)} stacked>
|
|
118
122
|
<MultiSelect options={toppings} value={chipToppings} onValueChange={setChipToppings} presentation="chips" disabled={disabled} />
|
|
119
123
|
</Row>
|
|
124
|
+
<Row title="Radio group" value={radioVariant ?? 'undefined'} stacked>
|
|
125
|
+
<RadioGroup options={variants} value={radioVariant} onValueChange={setRadioVariant} disabled={disabled} />
|
|
126
|
+
</Row>
|
|
127
|
+
<Row title="Checkbox group" value={JSON.stringify(checkedToppings)} stacked>
|
|
128
|
+
<CheckboxGroup options={toppings} value={checkedToppings} onValueChange={setCheckedToppings} disabled={disabled} />
|
|
129
|
+
</Row>
|
|
120
130
|
<Row title="Date" value={new Date(date).toISOString()}>
|
|
121
131
|
<DatePicker value={date} mode="date" onValueChange={setDate} disabled={disabled} />
|
|
122
132
|
</Row>
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
internal import NitroModules
|
|
2
|
+
internal import NitroUIRenderer
|
|
3
|
+
internal import UIKit
|
|
4
|
+
|
|
5
|
+
/// Radio buttons or checkboxes in a vertical list. iOS has neither widget, so each row is a plain
|
|
6
|
+
/// `UIButton` with an SF Symbol mark before its label, like the selection marks in Mail or Files.
|
|
7
|
+
final class HybridNativeChoiceList: HybridNativeChoiceListSpec {
|
|
8
|
+
typealias AllowedChildrenType = Never
|
|
9
|
+
|
|
10
|
+
let view = SingleChildContainerView()
|
|
11
|
+
let layoutNode = LayoutNode()
|
|
12
|
+
var parentReference: (any HybridViewSpec)?
|
|
13
|
+
var gestureRecognizers: [any HybridGestureRecognizerSpec] = []
|
|
14
|
+
|
|
15
|
+
private var measurer: LayoutMeasurer?
|
|
16
|
+
private var listener: (any Callback<([Bool]), Void>)?
|
|
17
|
+
private let stack = ChoiceStackView()
|
|
18
|
+
|
|
19
|
+
override init() throws {
|
|
20
|
+
try super.init()
|
|
21
|
+
measurer = LayoutMeasurer(node: layoutNode.ref, view: view)
|
|
22
|
+
view.content = stack
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var labels: [String] = [] { didSet { if labels != oldValue { rebuild() } } }
|
|
26
|
+
var selected: [Bool] = [] { didSet { if selected != oldValue { refresh() } } }
|
|
27
|
+
var multiple: Bool = false { didSet { if multiple != oldValue { refresh() } } }
|
|
28
|
+
var enabled: Bool = true {
|
|
29
|
+
didSet {
|
|
30
|
+
for row in stack.rows {
|
|
31
|
+
row.isEnabled = enabled
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
private func isSelected(_ index: Int) -> Bool {
|
|
37
|
+
index < selected.count && selected[index]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
private func rebuild() {
|
|
41
|
+
for row in stack.rows {
|
|
42
|
+
row.removeFromSuperview()
|
|
43
|
+
}
|
|
44
|
+
for (index, label) in labels.enumerated() {
|
|
45
|
+
let row = UIButton.makeChoiceRow(title: label)
|
|
46
|
+
row.isEnabled = enabled
|
|
47
|
+
row.addAction(UIAction { [weak self] _ in self?.tap(index) }, for: .primaryActionTriggered)
|
|
48
|
+
stack.addArrangedSubview(row)
|
|
49
|
+
}
|
|
50
|
+
refresh()
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
private func refresh() {
|
|
54
|
+
for (index, row) in stack.rows.enumerated() {
|
|
55
|
+
row.isMultiple = multiple
|
|
56
|
+
row.isSelected = isSelected(index)
|
|
57
|
+
}
|
|
58
|
+
view.setNeedsLayout()
|
|
59
|
+
measurer?.invalidate()
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private func tap(_ index: Int) {
|
|
63
|
+
guard index < labels.count else { return }
|
|
64
|
+
var next = labels.indices.map(isSelected)
|
|
65
|
+
if multiple {
|
|
66
|
+
next[index].toggle()
|
|
67
|
+
} else {
|
|
68
|
+
// A radio button cannot be turned off by tapping it again.
|
|
69
|
+
guard !next[index] else { return }
|
|
70
|
+
next = labels.indices.map { $0 == index }
|
|
71
|
+
}
|
|
72
|
+
selected = next
|
|
73
|
+
listener?.emit(next)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
func setOnChange(listener: (any Callback<([Bool]), Void>)?) throws {
|
|
77
|
+
self.listener = listener
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/// A vertical stack that reports its fitted size, so the layout engine can measure it.
|
|
82
|
+
private final class ChoiceStackView: UIStackView {
|
|
83
|
+
var rows: [ChoiceRowButton] { arrangedSubviews.compactMap { $0 as? ChoiceRowButton } }
|
|
84
|
+
|
|
85
|
+
init() {
|
|
86
|
+
super.init(frame: .zero)
|
|
87
|
+
axis = .vertical
|
|
88
|
+
alignment = .fill
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@available(*, unavailable)
|
|
92
|
+
required init(coder: NSCoder) {
|
|
93
|
+
fatalError("init(coder:) is not supported")
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
override func sizeThatFits(_ size: CGSize) -> CGSize {
|
|
97
|
+
let width = size.width == .greatestFiniteMagnitude ? 0 : size.width
|
|
98
|
+
let rowSizes = rows.map { $0.sizeThatFits(CGSize(width: size.width, height: .greatestFiniteMagnitude)) }
|
|
99
|
+
let height = rowSizes.reduce(0) { $0 + $1.height }
|
|
100
|
+
return CGSize(width: max(width, rowSizes.map(\.width).max() ?? 0), height: height)
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
final class ChoiceRowButton: UIButton {
|
|
105
|
+
var isMultiple = false { didSet { if isMultiple != oldValue { setNeedsUpdateConfiguration() } } }
|
|
106
|
+
// UIButton only updates its configuration by itself for state changes it triggers.
|
|
107
|
+
override var isSelected: Bool { didSet { if isSelected != oldValue { setNeedsUpdateConfiguration() } } }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
extension UIButton {
|
|
111
|
+
/// A full-width row: a radio or checkbox mark, then the label. Tinted when selected.
|
|
112
|
+
static func makeChoiceRow(title: String) -> ChoiceRowButton {
|
|
113
|
+
let button = ChoiceRowButton(configuration: .plain())
|
|
114
|
+
button.contentHorizontalAlignment = .leading
|
|
115
|
+
button.configurationUpdateHandler = { button in
|
|
116
|
+
guard let row = button as? ChoiceRowButton else { return }
|
|
117
|
+
var configuration = UIButton.Configuration.plain()
|
|
118
|
+
var attributes = AttributeContainer()
|
|
119
|
+
attributes.font = UIFont.preferredFont(forTextStyle: .body)
|
|
120
|
+
configuration.attributedTitle = AttributedString(title, attributes: attributes)
|
|
121
|
+
configuration.baseForegroundColor = .label
|
|
122
|
+
let symbol = row.isMultiple
|
|
123
|
+
? (row.isSelected ? "checkmark.square.fill" : "square")
|
|
124
|
+
: (row.isSelected ? "circle.inset.filled" : "circle")
|
|
125
|
+
configuration.image = UIImage(systemName: symbol)?
|
|
126
|
+
.withTintColor(row.isSelected ? row.tintColor : .tertiaryLabel, renderingMode: .alwaysOriginal)
|
|
127
|
+
configuration.preferredSymbolConfigurationForImage = UIImage.SymbolConfiguration(textStyle: .title3)
|
|
128
|
+
configuration.imagePadding = 10
|
|
129
|
+
configuration.contentInsets = NSDirectionalEdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0)
|
|
130
|
+
// Pressed rows dim, as plain buttons do; the default highlight would also tint the label.
|
|
131
|
+
configuration.background.backgroundColor = .clear
|
|
132
|
+
button.configuration = configuration
|
|
133
|
+
button.alpha = !button.isEnabled ? 0.4 : button.isHighlighted ? 0.5 : 1
|
|
134
|
+
button.accessibilityTraits = row.isSelected ? [.button, .selected] : .button
|
|
135
|
+
}
|
|
136
|
+
return button
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -18,6 +18,7 @@ target_sources(StorybookNitroControls PRIVATE
|
|
|
18
18
|
"${CMAKE_CURRENT_LIST_DIR}/../android/c++/JCallback_void_std__vector_bool_.cpp"
|
|
19
19
|
"${CMAKE_CURRENT_LIST_DIR}/../android/c++/JDatePickerMode.cpp"
|
|
20
20
|
"${CMAKE_CURRENT_LIST_DIR}/../android/c++/JHybridFilePickerSpec.cpp"
|
|
21
|
+
"${CMAKE_CURRENT_LIST_DIR}/../android/c++/JHybridNativeChoiceListSpec.cpp"
|
|
21
22
|
"${CMAKE_CURRENT_LIST_DIR}/../android/c++/JHybridNativeColorWellSpec.cpp"
|
|
22
23
|
"${CMAKE_CURRENT_LIST_DIR}/../android/c++/JHybridNativeDatePickerSpec.cpp"
|
|
23
24
|
"${CMAKE_CURRENT_LIST_DIR}/../android/c++/JHybridNativeMultiSelectSpec.cpp"
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
#include <StorybookNitroControls/private/StorybookNitroControlsOnLoad.hpp>
|
|
9
9
|
#include <NitroModules/HybridClassRegistry.hpp>
|
|
10
10
|
#include <StorybookNitroControls/private/JHybridFilePickerSpec.hpp>
|
|
11
|
+
#include <StorybookNitroControls/private/JHybridNativeChoiceListSpec.hpp>
|
|
12
|
+
#include <StorybookNitroControls/private/JCallback_void_std__vector_bool_.hpp>
|
|
11
13
|
#include <StorybookNitroControls/private/JHybridNativeColorWellSpec.hpp>
|
|
12
14
|
#include <StorybookNitroControls/private/JCallback_void_double.hpp>
|
|
13
15
|
#include <StorybookNitroControls/private/JHybridNativeDatePickerSpec.hpp>
|
|
14
16
|
#include <StorybookNitroControls/private/JHybridNativeMultiSelectSpec.hpp>
|
|
15
|
-
#include <StorybookNitroControls/private/JCallback_void_std__vector_bool_.hpp>
|
|
16
17
|
#include <StorybookNitroControls/private/JHybridNativeSegmentedControlSpec.hpp>
|
|
17
18
|
#include <StorybookNitroControls/private/JHybridNativeSelectMenuSpec.hpp>
|
|
18
19
|
#include <StorybookNitroControls/private/JHybridNativeSliderSpec.hpp>
|
|
@@ -23,11 +24,12 @@
|
|
|
23
24
|
namespace margelo::nitro::sbcontrols {
|
|
24
25
|
void registerAllNatives() {
|
|
25
26
|
margelo::nitro::sbcontrols::JHybridFilePickerSpec::CxxPart::registerNatives();
|
|
27
|
+
margelo::nitro::sbcontrols::JHybridNativeChoiceListSpec::CxxPart::registerNatives();
|
|
28
|
+
margelo::nitro::sbcontrols::JCallback_void_std__vector_bool_::registerNatives();
|
|
26
29
|
margelo::nitro::sbcontrols::JHybridNativeColorWellSpec::CxxPart::registerNatives();
|
|
27
30
|
margelo::nitro::sbcontrols::JCallback_void_double::registerNatives();
|
|
28
31
|
margelo::nitro::sbcontrols::JHybridNativeDatePickerSpec::CxxPart::registerNatives();
|
|
29
32
|
margelo::nitro::sbcontrols::JHybridNativeMultiSelectSpec::CxxPart::registerNatives();
|
|
30
|
-
margelo::nitro::sbcontrols::JCallback_void_std__vector_bool_::registerNatives();
|
|
31
33
|
margelo::nitro::sbcontrols::JHybridNativeSegmentedControlSpec::CxxPart::registerNatives();
|
|
32
34
|
margelo::nitro::sbcontrols::JHybridNativeSelectMenuSpec::CxxPart::registerNatives();
|
|
33
35
|
margelo::nitro::sbcontrols::JHybridNativeSliderSpec::CxxPart::registerNatives();
|
|
@@ -36,6 +38,7 @@ namespace margelo::nitro::sbcontrols {
|
|
|
36
38
|
margelo::nitro::sbcontrols::JCallback_void_bool::registerNatives();
|
|
37
39
|
|
|
38
40
|
HybridClassRegistry::registerHybridClass("sbcontrols.FilePicker", JHybridFilePickerSpec::Class::get());
|
|
41
|
+
HybridClassRegistry::registerHybridClass("sbcontrols.NativeChoiceList", JHybridNativeChoiceListSpec::Class::get());
|
|
39
42
|
HybridClassRegistry::registerHybridClass("sbcontrols.NativeColorWell", JHybridNativeColorWellSpec::Class::get());
|
|
40
43
|
HybridClassRegistry::registerHybridClass("sbcontrols.NativeDatePicker", JHybridNativeDatePickerSpec::Class::get());
|
|
41
44
|
HybridClassRegistry::registerHybridClass("sbcontrols.NativeMultiSelect", JHybridNativeMultiSelectSpec::Class::get());
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JHybridNativeChoiceListSpec.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <StorybookNitroControls/private/JHybridNativeChoiceListSpec.hpp>
|
|
9
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
10
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
11
|
+
#include <NitroModules/JNIConverter+Array.hpp>
|
|
12
|
+
#include <NitroModules/JSIConverter+JArrayClass.hpp>
|
|
13
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
14
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
15
|
+
#include <NitroModules/JSIConverter+JPrimitiveArray.hpp>
|
|
16
|
+
#include <StorybookNitroControls/private/JCallback_void_std__vector_bool_.hpp>
|
|
17
|
+
#include <NitroModules/JNIConverter+Callback.hpp>
|
|
18
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
19
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
20
|
+
#include <memory>
|
|
21
|
+
#include <NitroModules/JNIConverter+HybridObject.hpp>
|
|
22
|
+
|
|
23
|
+
namespace margelo::nitro::sbcontrols {
|
|
24
|
+
|
|
25
|
+
JHybridNativeChoiceListSpec::~JHybridNativeChoiceListSpec() = default;
|
|
26
|
+
|
|
27
|
+
std::shared_ptr<JHybridNativeChoiceListSpec> JHybridNativeChoiceListSpec::constructor() {
|
|
28
|
+
static const auto __method = JHybridNativeChoiceListSpec::JavaPart::javaClassStatic()->getStaticMethod<jni::local_ref<JHybridNativeChoiceListSpecJavaPart>()>("constructor_cxx");
|
|
29
|
+
auto __result = __method(JHybridNativeChoiceListSpec::JavaPart::javaClassStatic());
|
|
30
|
+
return JNIConverter<std::shared_ptr<JHybridNativeChoiceListSpec>, jni::local_ref<JHybridNativeChoiceListSpecJavaPart>>::fromJNI(__result);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const std::shared_ptr<const HybridClass>& JHybridNativeChoiceListSpec::Class::get() {
|
|
34
|
+
static const auto hybridClass = HybridClass::create<Class>([](HybridClass& clazz) {
|
|
35
|
+
clazz.registerHybridProperty("labels", &JHybridNativeChoiceListSpec::getLabels, &JHybridNativeChoiceListSpec::setLabels);
|
|
36
|
+
clazz.registerHybridProperty("selected", &JHybridNativeChoiceListSpec::getSelected, &JHybridNativeChoiceListSpec::setSelected);
|
|
37
|
+
clazz.registerHybridProperty("multiple", &JHybridNativeChoiceListSpec::getMultiple, &JHybridNativeChoiceListSpec::setMultiple);
|
|
38
|
+
clazz.registerHybridProperty("enabled", &JHybridNativeChoiceListSpec::getEnabled, &JHybridNativeChoiceListSpec::setEnabled);
|
|
39
|
+
clazz.registerHybridMethod("setOnChange", &JHybridNativeChoiceListSpec::setOnChange);
|
|
40
|
+
clazz.registerHybridConstructor(&JHybridNativeChoiceListSpec::constructor);
|
|
41
|
+
});
|
|
42
|
+
return hybridClass;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
std::shared_ptr<JHybridNativeChoiceListSpec> JHybridNativeChoiceListSpecJavaPart::getJHybridNativeChoiceListSpec() {
|
|
46
|
+
auto hybridObject = JHybridObject::JavaPart::getJHybridObject();
|
|
47
|
+
auto castHybridObject = std::dynamic_pointer_cast<JHybridNativeChoiceListSpec>(hybridObject);
|
|
48
|
+
if (castHybridObject == nullptr) [[unlikely]] {
|
|
49
|
+
throw std::runtime_error("Failed to downcast JHybridObject to JHybridNativeChoiceListSpec!");
|
|
50
|
+
}
|
|
51
|
+
return castHybridObject;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
jni::local_ref<JHybridNativeChoiceListSpec::CxxPart::jhybriddata> JHybridNativeChoiceListSpec::CxxPart::initHybrid(jni::alias_ref<jhybridobject> jThis) {
|
|
55
|
+
return makeCxxInstance(jThis);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
jni::alias_ref<jni::JClass> JHybridNativeChoiceListSpec::CxxPart::getClass() {
|
|
59
|
+
static const auto __field = CxxPart::javaClassStatic()->getStaticField<jni::JClass>("implementationClass_cxx");
|
|
60
|
+
static const auto __class = jni::make_global(CxxPart::javaClassStatic()->getStaticFieldValue(__field));
|
|
61
|
+
return __class;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
std::shared_ptr<JHybridObject> JHybridNativeChoiceListSpec::CxxPart::createHybridObject(jni::alias_ref<JHybridObject::JavaPart> javaPart) {
|
|
65
|
+
auto castJavaPart = jni::dynamic_ref_cast<JHybridNativeChoiceListSpec::JavaPart>(javaPart);
|
|
66
|
+
if (castJavaPart == nullptr) [[unlikely]] {
|
|
67
|
+
throw std::runtime_error("Failed to cast JHybridObject::JavaPart to JHybridNativeChoiceListSpec::JavaPart!");
|
|
68
|
+
}
|
|
69
|
+
return std::make_shared<JHybridNativeChoiceListSpec>(castJavaPart);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
void JHybridNativeChoiceListSpec::CxxPart::registerNatives() {
|
|
73
|
+
registerHybrid({
|
|
74
|
+
makeNativeMethod("initHybrid", JHybridNativeChoiceListSpec::CxxPart::initHybrid),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Properties
|
|
79
|
+
jni::local_ref<jni::JArrayClass<jni::JString>> JHybridNativeChoiceListSpec::getLabels() {
|
|
80
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getLabels");
|
|
81
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
82
|
+
return __result;
|
|
83
|
+
}
|
|
84
|
+
void JHybridNativeChoiceListSpec::setLabels(const jni::local_ref<jni::JArrayClass<jni::JString>>& labels) {
|
|
85
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* labels */)>("setLabels");
|
|
86
|
+
__method(_javaPart, CxxPart::getClass(), labels);
|
|
87
|
+
}
|
|
88
|
+
jni::local_ref<jni::JArrayBoolean> JHybridNativeChoiceListSpec::getSelected() {
|
|
89
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jni::local_ref<jni::JArrayBoolean>()>("getSelected");
|
|
90
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
91
|
+
return __result;
|
|
92
|
+
}
|
|
93
|
+
void JHybridNativeChoiceListSpec::setSelected(const jni::local_ref<jni::JArrayBoolean>& selected) {
|
|
94
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<jni::JArrayBoolean> /* selected */)>("setSelected");
|
|
95
|
+
__method(_javaPart, CxxPart::getClass(), selected);
|
|
96
|
+
}
|
|
97
|
+
jboolean JHybridNativeChoiceListSpec::getMultiple() {
|
|
98
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jboolean()>("getMultiple");
|
|
99
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
100
|
+
return __result;
|
|
101
|
+
}
|
|
102
|
+
void JHybridNativeChoiceListSpec::setMultiple(jboolean multiple) {
|
|
103
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jboolean /* multiple */)>("setMultiple");
|
|
104
|
+
__method(_javaPart, CxxPart::getClass(), multiple);
|
|
105
|
+
}
|
|
106
|
+
jboolean JHybridNativeChoiceListSpec::getEnabled() {
|
|
107
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<jboolean()>("getEnabled");
|
|
108
|
+
auto __result = __method(_javaPart, CxxPart::getClass());
|
|
109
|
+
return __result;
|
|
110
|
+
}
|
|
111
|
+
void JHybridNativeChoiceListSpec::setEnabled(jboolean enabled) {
|
|
112
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jboolean /* enabled */)>("setEnabled");
|
|
113
|
+
__method(_javaPart, CxxPart::getClass(), enabled);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Methods
|
|
117
|
+
void JHybridNativeChoiceListSpec::setOnChange(const jni::local_ref<JOptional<JCallback<margelo::nitro::sbcontrols::JCallback_void_std__vector_bool_::JavaPart>>>& listener) {
|
|
118
|
+
static const auto __method = CxxPart::getClass()->getNonvirtualMethod<void(jni::alias_ref<JOptional<JCallback<margelo::nitro::sbcontrols::JCallback_void_std__vector_bool_::JavaPart>>> /* listener */)>("setOnChange");
|
|
119
|
+
__method(_javaPart, CxxPart::getClass(), listener);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
} // namespace margelo::nitro::sbcontrols
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JHybridNativeChoiceListSpec.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JHybridObject.hpp>
|
|
11
|
+
#include <NitroModules/HybridClass.hpp>
|
|
12
|
+
#include <fbjni/fbjni.h>
|
|
13
|
+
#include <stdexcept>
|
|
14
|
+
#include <StorybookNitroControls/private/JHybridNativeChoiceListSpecJavaPart.hpp>
|
|
15
|
+
#include <NitroModules/JNIConverter+String.hpp>
|
|
16
|
+
#include <NitroModules/JSIConverter+JString.hpp>
|
|
17
|
+
#include <NitroModules/JNIConverter+Array.hpp>
|
|
18
|
+
#include <NitroModules/JSIConverter+JArrayClass.hpp>
|
|
19
|
+
#include <NitroModules/JNIConverter+Primitives.hpp>
|
|
20
|
+
#include <NitroModules/JSIConverter+JNIPrimitives.hpp>
|
|
21
|
+
#include <NitroModules/JSIConverter+JPrimitiveArray.hpp>
|
|
22
|
+
#include <StorybookNitroControls/private/JCallback_void_std__vector_bool_.hpp>
|
|
23
|
+
#include <NitroModules/JNIConverter+Callback.hpp>
|
|
24
|
+
#include <NitroModules/JNIConverter+Optional.hpp>
|
|
25
|
+
#include <NitroModules/JSIConverter+JOptional.hpp>
|
|
26
|
+
#include <StorybookNitroControls/private/JHybridNativeChoiceListSpec.hpp>
|
|
27
|
+
#include <memory>
|
|
28
|
+
#include <NitroModules/JNIConverter+HybridObject.hpp>
|
|
29
|
+
// Forward declaration of `JHybridNativeChoiceListSpec` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::sbcontrols { class JHybridNativeChoiceListSpec; }
|
|
31
|
+
#include <NitroUIRenderer/private/JHybridViewSpec.hpp>
|
|
32
|
+
|
|
33
|
+
namespace margelo::nitro::sbcontrols {
|
|
34
|
+
|
|
35
|
+
namespace jni = facebook::jni;
|
|
36
|
+
|
|
37
|
+
class JHybridNativeChoiceListSpec final : public margelo::nitro::renderer::JHybridViewSpec {
|
|
38
|
+
public:
|
|
39
|
+
struct Class {
|
|
40
|
+
using Base = margelo::nitro::renderer::JHybridViewSpec::Class;
|
|
41
|
+
static constexpr const char* name = "NativeChoiceList";
|
|
42
|
+
static const std::shared_ptr<const HybridClass>& get();
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
public:
|
|
46
|
+
using JavaPart = JHybridNativeChoiceListSpecJavaPart;
|
|
47
|
+
struct CxxPart : public jni::HybridClass<CxxPart, margelo::nitro::renderer::JHybridViewSpec::CxxPart> {
|
|
48
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/sbcontrols/HybridNativeChoiceListSpec$CxxPart;";
|
|
49
|
+
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject> jThis);
|
|
50
|
+
static void registerNatives();
|
|
51
|
+
static jni::alias_ref<jni::JClass> getClass();
|
|
52
|
+
using HybridBase::HybridBase;
|
|
53
|
+
protected:
|
|
54
|
+
std::shared_ptr<JHybridObject> createHybridObject(jni::alias_ref<JHybridObject::JavaPart> javaPart) override;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
public:
|
|
58
|
+
explicit JHybridNativeChoiceListSpec(jni::alias_ref<JHybridNativeChoiceListSpec::JavaPart> javaPart):
|
|
59
|
+
margelo::nitro::renderer::JHybridViewSpec(javaPart),
|
|
60
|
+
_javaPart(jni::static_ref_cast<JavaPart>(JHybridObject::getJavaPart())) {
|
|
61
|
+
#ifdef NITRO_DEBUG
|
|
62
|
+
if (!jni::isSameObject(_javaPart->getClass(), CxxPart::getClass())) [[unlikely]] {
|
|
63
|
+
throw std::runtime_error("NativeChoiceList requires its configured implementation when inheritance and multiple implementations are disabled.");
|
|
64
|
+
}
|
|
65
|
+
#endif
|
|
66
|
+
}
|
|
67
|
+
// Defined in the owning library so RTTI has one identity across modules.
|
|
68
|
+
~JHybridNativeChoiceListSpec() override;
|
|
69
|
+
|
|
70
|
+
public:
|
|
71
|
+
inline jni::alias_ref<JHybridNativeChoiceListSpec::JavaPart> getJavaPart() const noexcept {
|
|
72
|
+
return _javaPart;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
public:
|
|
76
|
+
// Properties
|
|
77
|
+
jni::local_ref<jni::JArrayClass<jni::JString>> getLabels();
|
|
78
|
+
void setLabels(const jni::local_ref<jni::JArrayClass<jni::JString>>& labels);
|
|
79
|
+
jni::local_ref<jni::JArrayBoolean> getSelected();
|
|
80
|
+
void setSelected(const jni::local_ref<jni::JArrayBoolean>& selected);
|
|
81
|
+
jboolean getMultiple();
|
|
82
|
+
void setMultiple(jboolean multiple);
|
|
83
|
+
jboolean getEnabled();
|
|
84
|
+
void setEnabled(jboolean enabled);
|
|
85
|
+
|
|
86
|
+
public:
|
|
87
|
+
// Methods
|
|
88
|
+
void setOnChange(const jni::local_ref<JOptional<JCallback<margelo::nitro::sbcontrols::JCallback_void_std__vector_bool_::JavaPart>>>& listener);
|
|
89
|
+
|
|
90
|
+
public:
|
|
91
|
+
// Constructor and static members
|
|
92
|
+
static std::shared_ptr<JHybridNativeChoiceListSpec> constructor();
|
|
93
|
+
|
|
94
|
+
protected:
|
|
95
|
+
const std::shared_ptr<const HybridClass>& getHybridClass() override {
|
|
96
|
+
return Class::get();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private:
|
|
100
|
+
jni::alias_ref<JHybridNativeChoiceListSpec::JavaPart> _javaPart;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
} // namespace margelo::nitro::sbcontrols
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JHybridNativeChoiceListSpecJavaPart.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JHybridObject.hpp>
|
|
11
|
+
#include <fbjni/fbjni.h>
|
|
12
|
+
#include <memory>
|
|
13
|
+
#include <NitroUIRenderer/private/JHybridViewSpecJavaPart.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro::sbcontrols {
|
|
16
|
+
|
|
17
|
+
namespace jni = facebook::jni;
|
|
18
|
+
|
|
19
|
+
class JHybridNativeChoiceListSpec;
|
|
20
|
+
|
|
21
|
+
struct JHybridNativeChoiceListSpecJavaPart : public jni::JavaClass<JHybridNativeChoiceListSpecJavaPart, margelo::nitro::renderer::JHybridViewSpecJavaPart> {
|
|
22
|
+
using HybridType = JHybridNativeChoiceListSpec;
|
|
23
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/sbcontrols/HybridNativeChoiceListSpec;";
|
|
24
|
+
std::shared_ptr<JHybridNativeChoiceListSpec> getJHybridNativeChoiceListSpec();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
} // namespace margelo::nitro::sbcontrols
|