@onehat/ui 0.3.259 → 0.3.262
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/package.json +4 -3
- package/src/Components/Accordion/Accordion.js +14 -14
- package/src/Components/Blank.js +1 -1
- package/src/Components/Buttons/BackButton.js +1 -1
- package/src/Components/Buttons/Button.js +1 -1
- package/src/Components/Buttons/CartButtonWithBadge.js +1 -1
- package/src/Components/Buttons/IconButton.js +5 -2
- package/src/Components/Buttons/PlusMinusButton.js +6 -6
- package/src/Components/Buttons/SquareButton.js +1 -1
- package/src/Components/Container/Container.js +9 -9
- package/src/Components/Container/ScreenContainer.js +4 -4
- package/src/Components/Container/Splitter.js +9 -10
- package/src/Components/Filter/DateRange.js +4 -4
- package/src/Components/Filter/NumberRange.js +4 -4
- package/src/Components/Form/Field/CKEditor/CKEditor.js +4 -4
- package/src/Components/Form/Field/Checkbox/CheckboxGroup.js +1 -3
- package/src/Components/Form/Field/Color.js +91 -85
- package/src/Components/Form/Field/Combo/Combo.js +13 -13
- package/src/Components/Form/Field/Combo/PageSizeCombo.js +4 -4
- package/src/Components/Form/Field/Date.js +10 -11
- package/src/Components/Form/Field/DisplayField.js +1 -1
- package/src/Components/Form/Field/File.js +4 -4
- package/src/Components/Form/Field/Input.js +4 -4
- package/src/Components/Form/Field/Number.js +4 -4
- package/src/Components/Form/Field/RadioGroup/RadioGroup.js +1 -3
- package/src/Components/Form/Field/Tag/Tag.js +7 -7
- package/src/Components/Form/Field/Tag/ValueBox.js +4 -4
- package/src/Components/Form/Field/Text.js +1 -1
- package/src/Components/Form/Field/TextArea.js +3 -3
- package/src/Components/Form/Field/Toggle.js +4 -4
- package/src/Components/Form/FieldSet.js +6 -7
- package/src/Components/Form/FiltersForm.js +0 -9
- package/src/Components/Form/Form.js +62 -45
- package/src/Components/Form/Label.js +4 -4
- package/src/Components/Grid/Grid.js +9 -11
- package/src/Components/Grid/GridHeaderRow.js +4 -4
- package/src/Components/Grid/GridRow.js +7 -7
- package/src/Components/Grid/HeaderColumnSelectorHandle.js +1 -1
- package/src/Components/Grid/HeaderReorderHandle.js +4 -6
- package/src/Components/Grid/HeaderResizeHandle.js +4 -6
- package/src/Components/Grid/NoRecordsFound.js +7 -7
- package/src/Components/Grid/RowDragHandle.js +4 -6
- package/src/Components/Hoc/Secondary/withSecondaryEditor.js +2 -1
- package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +1 -3
- package/src/Components/Hoc/withAlert.js +24 -14
- package/src/Components/Hoc/withBlank.js +0 -2
- package/src/Components/Hoc/withContextMenu.js +4 -9
- package/src/Components/Hoc/withEditor.js +2 -1
- package/src/Components/Hoc/withEvents.js +0 -2
- package/src/Components/Hoc/withFilters.js +11 -11
- package/src/Components/Hoc/withInlineEditor.js +5 -8
- package/src/Components/Hoc/withPdfButton.js +4 -5
- package/src/Components/Hoc/withPresetButtons.js +1 -1
- package/src/Components/Hoc/withTooltip.js +3 -3
- package/src/Components/Hoc/withWindowedEditor.js +1 -3
- package/src/Components/Icons/AddressBook.js +6 -10
- package/src/Components/Icons/Alt.js +7 -15
- package/src/Components/Icons/AngleLeft.js +6 -14
- package/src/Components/Icons/AngleRight.js +6 -14
- package/src/Components/Icons/AnglesLeft.js +6 -14
- package/src/Components/Icons/AnglesRight.js +6 -14
- package/src/Components/Icons/Asterisk.js +6 -10
- package/src/Components/Icons/Ban.js +8 -14
- package/src/Components/Icons/Bars.js +6 -10
- package/src/Components/Icons/BarsStaggered.js +6 -10
- package/src/Components/Icons/Bell.js +6 -19
- package/src/Components/Icons/BigCircle.js +6 -14
- package/src/Components/Icons/Book.js +6 -10
- package/src/Components/Icons/BookOpen.js +6 -10
- package/src/Components/Icons/Bookmark.js +7 -17
- package/src/Components/Icons/Bug.js +6 -10
- package/src/Components/Icons/Building.js +6 -10
- package/src/Components/Icons/Calendar.js +6 -14
- package/src/Components/Icons/Calendar2.js +6 -14
- package/src/Components/Icons/CalendarDays.js +6 -14
- package/src/Components/Icons/Camera.js +6 -14
- package/src/Components/Icons/CaretDown.js +6 -14
- package/src/Components/Icons/CaretUp.js +6 -14
- package/src/Components/Icons/CartPlus.js +6 -10
- package/src/Components/Icons/CartShopping.js +6 -10
- package/src/Components/Icons/CashRegister.js +6 -10
- package/src/Components/Icons/Certificate.js +6 -10
- package/src/Components/Icons/ChartLine.js +6 -10
- package/src/Components/Icons/ChartPie.js +6 -10
- package/src/Components/Icons/Check.js +6 -10
- package/src/Components/Icons/CheckDouble.js +6 -10
- package/src/Components/Icons/ChevronDown.js +6 -10
- package/src/Components/Icons/ChevronLeft.js +6 -10
- package/src/Components/Icons/ChevronRight.js +6 -10
- package/src/Components/Icons/ChevronUp.js +6 -10
- package/src/Components/Icons/Circle.js +6 -10
- package/src/Components/Icons/CircleArrowRight.js +6 -10
- package/src/Components/Icons/CircleExclamation.js +6 -14
- package/src/Components/Icons/CircleInfo.js +6 -10
- package/src/Components/Icons/CircleQuestion.js +6 -10
- package/src/Components/Icons/CircleXmark.js +6 -10
- package/src/Components/Icons/CircleXmarkRegular.js +6 -10
- package/src/Components/Icons/Clipboard.js +6 -14
- package/src/Components/Icons/ClipboardCheck.js +6 -17
- package/src/Components/Icons/ClipboardList.js +6 -16
- package/src/Components/Icons/Clock.js +6 -10
- package/src/Components/Icons/ClockRegular.js +6 -10
- package/src/Components/Icons/ClockRotateLeft.js +6 -10
- package/src/Components/Icons/Clone.js +6 -10
- package/src/Components/Icons/Collapse.js +6 -14
- package/src/Components/Icons/Comment.js +6 -10
- package/src/Components/Icons/CommentDots.js +6 -10
- package/src/Components/Icons/CommentRegular.js +6 -10
- package/src/Components/Icons/Comments.js +6 -10
- package/src/Components/Icons/CommentsRegular.js +6 -10
- package/src/Components/Icons/Copyright.js +6 -10
- package/src/Components/Icons/Dot.js +9 -15
- package/src/Components/Icons/Duplicate.js +6 -14
- package/src/Components/Icons/Edit.js +6 -14
- package/src/Components/Icons/EllipsisHorizontal.js +6 -16
- package/src/Components/Icons/EllipsisVertical.js +6 -14
- package/src/Components/Icons/Envelope.js +6 -10
- package/src/Components/Icons/EnvelopeRegular.js +6 -10
- package/src/Components/Icons/Excel.js +6 -10
- package/src/Components/Icons/Exclamation.js +6 -10
- package/src/Components/Icons/Expand.js +6 -10
- package/src/Components/Icons/Eye.js +6 -14
- package/src/Components/Icons/EyeSlash.js +6 -10
- package/src/Components/Icons/File.js +6 -14
- package/src/Components/Icons/FloppyDiskRegular.js +6 -10
- package/src/Components/Icons/Folder.js +6 -10
- package/src/Components/Icons/FolderClosed.js +6 -10
- package/src/Components/Icons/FolderOpen.js +6 -10
- package/src/Components/Icons/FolderTree.js +6 -10
- package/src/Components/Icons/FullWidth.js +9 -25
- package/src/Components/Icons/Gauge.js +6 -17
- package/src/Components/Icons/Gear.js +6 -14
- package/src/Components/Icons/Gears.js +6 -10
- package/src/Components/Icons/Gift.js +6 -10
- package/src/Components/Icons/Grip.js +6 -14
- package/src/Components/Icons/GripLines.js +6 -14
- package/src/Components/Icons/GripLinesVertical.js +6 -14
- package/src/Components/Icons/GripVertical.js +6 -14
- package/src/Components/Icons/Hammer.js +6 -10
- package/src/Components/Icons/Hand.js +6 -10
- package/src/Components/Icons/HighPriority.js +6 -17
- package/src/Components/Icons/House.js +6 -10
- package/src/Components/Icons/Images.js +6 -10
- package/src/Components/Icons/Info.js +6 -10
- package/src/Components/Icons/ItunesNote.js +6 -10
- package/src/Components/Icons/Js.js +6 -16
- package/src/Components/Icons/Leaf.js +6 -10
- package/src/Components/Icons/Link.js +6 -9
- package/src/Components/Icons/List.js +6 -10
- package/src/Components/Icons/ListCheck.js +6 -10
- package/src/Components/Icons/LocationDot.js +6 -10
- package/src/Components/Icons/Loop.js +6 -14
- package/src/Components/Icons/Loop1.js +7 -13
- package/src/Components/Icons/LoopAll.js +7 -13
- package/src/Components/Icons/LowPriority.js +6 -17
- package/src/Components/Icons/MagnifyingGlass.js +6 -10
- package/src/Components/Icons/Maximize.js +6 -10
- package/src/Components/Icons/MedPriority.js +6 -17
- package/src/Components/Icons/Microphone.js +6 -10
- package/src/Components/Icons/Minimize.js +6 -10
- package/src/Components/Icons/Minus.js +6 -14
- package/src/Components/Icons/MobileScreenButton.js +6 -10
- package/src/Components/Icons/MoneyBill.js +6 -10
- package/src/Components/Icons/MoneyBillWave.js +6 -10
- package/src/Components/Icons/Mouth.js +9 -21
- package/src/Components/Icons/Music.js +6 -10
- package/src/Components/Icons/Na.js +6 -14
- package/src/Components/Icons/NoLoop.js +10 -13
- package/src/Components/Icons/NoReorderRows.js +16 -22
- package/src/Components/Icons/ObjectGroupRegular.js +6 -10
- package/src/Components/Icons/Pause.js +6 -10
- package/src/Components/Icons/Pdf.js +6 -10
- package/src/Components/Icons/Pencil.js +6 -14
- package/src/Components/Icons/Phone.js +6 -10
- package/src/Components/Icons/Play.js +6 -10
- package/src/Components/Icons/Plus.js +6 -14
- package/src/Components/Icons/Presentation.js +6 -16
- package/src/Components/Icons/Print.js +6 -14
- package/src/Components/Icons/Question.js +6 -10
- package/src/Components/Icons/Rate-.25x.js +11 -17
- package/src/Components/Icons/Rate-.5x.js +10 -16
- package/src/Components/Icons/Rate-.75x.js +7 -13
- package/src/Components/Icons/Rate-1.25x.js +7 -13
- package/src/Components/Icons/Rate-1.5x.js +7 -13
- package/src/Components/Icons/Rate-1.75x.js +7 -13
- package/src/Components/Icons/Rate-1x.js +10 -16
- package/src/Components/Icons/Rate-2x.js +7 -13
- package/src/Components/Icons/RateIcon-.25x.js +7 -13
- package/src/Components/Icons/RateIcon-.5x.js +10 -16
- package/src/Components/Icons/RateIcon-.75x.js +7 -13
- package/src/Components/Icons/RateIcon-1.25x.js +7 -13
- package/src/Components/Icons/RateIcon-1.5x.js +7 -13
- package/src/Components/Icons/RateIcon-1.75x.js +7 -13
- package/src/Components/Icons/RateIcon-1x.js +7 -13
- package/src/Components/Icons/RateIcon-2x.js +7 -13
- package/src/Components/Icons/RectangleXmark.js +6 -10
- package/src/Components/Icons/RectangleXmarkRegular.js +6 -10
- package/src/Components/Icons/ReorderRows.js +7 -13
- package/src/Components/Icons/RightFromBracket.js +6 -10
- package/src/Components/Icons/RightLeft.js +6 -10
- package/src/Components/Icons/RightToBracket.js +6 -10
- package/src/Components/Icons/Rotate.js +6 -14
- package/src/Components/Icons/RotateLeft.js +6 -10
- package/src/Components/Icons/RotateRight.js +6 -14
- package/src/Components/Icons/ScrewdriverWrench.js +6 -10
- package/src/Components/Icons/Scroll.js +6 -10
- package/src/Components/Icons/Share.js +6 -10
- package/src/Components/Icons/Shop.js +6 -10
- package/src/Components/Icons/SideBySide.js +6 -20
- package/src/Components/Icons/SortDown.js +6 -10
- package/src/Components/Icons/SortDownAlt.js +6 -10
- package/src/Components/Icons/SortUp.js +6 -10
- package/src/Components/Icons/SortUpAlt.js +6 -14
- package/src/Components/Icons/Square.js +6 -10
- package/src/Components/Icons/SquareCheck.js +6 -10
- package/src/Components/Icons/SquareCheckRegular.js +6 -10
- package/src/Components/Icons/SquareMinus.js +6 -14
- package/src/Components/Icons/SquareRegular.js +6 -10
- package/src/Components/Icons/Store.js +6 -10
- package/src/Components/Icons/Table.js +6 -16
- package/src/Components/Icons/ThumbsDown.js +6 -10
- package/src/Components/Icons/ThumbsDownRegular.js +6 -10
- package/src/Components/Icons/ThumbsUp.js +6 -10
- package/src/Components/Icons/ThumbsUpRegular.js +6 -10
- package/src/Components/Icons/Trash.js +6 -14
- package/src/Components/Icons/TrashCan.js +6 -14
- package/src/Components/Icons/TriangleExclamation.js +6 -14
- package/src/Components/Icons/Truck.js +6 -10
- package/src/Components/Icons/TruckFast.js +6 -10
- package/src/Components/Icons/UploadDownload.js +7 -9
- package/src/Components/Icons/User.js +6 -10
- package/src/Components/Icons/UserGroup.js +6 -10
- package/src/Components/Icons/UserPlus.js +6 -10
- package/src/Components/Icons/UserSecret.js +6 -10
- package/src/Components/Icons/Video.js +6 -16
- package/src/Components/Icons/X.js +6 -10
- package/src/Components/Icons/Xmark.js +6 -10
- package/src/Components/Layout/CenterBox.js +1 -1
- package/src/Components/Layout/Footer.js +4 -4
- package/src/Components/Messages/ConfirmationMessage.js +8 -3
- package/src/Components/Messages/ErrorMessage.js +5 -2
- package/src/Components/Messages/Loading.js +6 -6
- package/src/Components/Messages/OkMessage.js +4 -3
- package/src/Components/Messages/WaitMessage.js +1 -1
- package/src/Components/Panel/AccordionGridPanel.js +1 -1
- package/src/Components/Panel/FormPanel.js +1 -1
- package/src/Components/Panel/Header.js +13 -13
- package/src/Components/Panel/Mask.js +1 -1
- package/src/Components/Panel/Panel.js +10 -12
- package/src/Components/Picker/Picker.js +5 -5
- package/src/Components/Report/Report.js +10 -10
- package/src/Components/Screens/Manager.js +13 -11
- package/src/Components/Tab/TabBar.js +23 -23
- package/src/Components/Toolbar/FilterToolbar.js +3 -3
- package/src/Components/Toolbar/Pagination.js +12 -8
- package/src/Components/Toolbar/PaginationToolbar.js +3 -3
- package/src/Components/Toolbar/Toolbar.js +4 -4
- package/src/Components/Tree/Tree.js +10 -13
- package/src/Components/Tree/TreeNode.js +4 -4
- package/src/Components/Viewer/Viewer.js +37 -24
- package/src/Components/WaitModal.js +4 -4
- package/src/Components/Window/Editor.js +1 -1
- package/src/Components/Window/UploadsDownloadsWindow.js +1 -1
- package/src/Components/index.js +5 -5
- package/src/Functions/buildAdditionalButtons.js +7 -3
- package/src/PlatformImports/Web/Attachments.js +11 -8
- package/src/PlatformImports/Web/File.js +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.262",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "UNLICENSED",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@gluestack-style/react": "^0.
|
|
29
|
-
"@gluestack-ui/
|
|
28
|
+
"@gluestack-style/react": "^1.0.56",
|
|
29
|
+
"@gluestack-ui/config": "^1.1.18",
|
|
30
|
+
"@gluestack-ui/themed": "^1.1.26",
|
|
30
31
|
"@hookform/resolvers": "^3.3.1",
|
|
31
32
|
"@k-renwick/colour-mixer": "^1.2.1",
|
|
32
33
|
"@onehat/data": "^1.20.0",
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
Column,
|
|
3
|
+
HStack,
|
|
5
4
|
Pressable,
|
|
6
|
-
Row,
|
|
7
5
|
ScrollView,
|
|
8
|
-
|
|
9
|
-
} from '
|
|
6
|
+
VStack,
|
|
7
|
+
} from '@gluestack-ui/themed';
|
|
10
8
|
import inArray from '../../Functions/inArray.js';
|
|
11
9
|
import emptyFn from '../../Functions/emptyFn.js';
|
|
12
10
|
import _ from 'lodash';
|
|
@@ -73,7 +71,7 @@ export default function Accordion(props) {
|
|
|
73
71
|
rowProps.overflow = 'hidden'; // otherwise some elements mistakenly show
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
return <
|
|
74
|
+
return <VStack key={ix}>
|
|
77
75
|
<Pressable
|
|
78
76
|
onPress={(e) => {
|
|
79
77
|
let newActiveSections = [];
|
|
@@ -94,10 +92,10 @@ export default function Accordion(props) {
|
|
|
94
92
|
>
|
|
95
93
|
{header}
|
|
96
94
|
</Pressable>
|
|
97
|
-
<
|
|
95
|
+
<HStack {...rowProps} bg="#f00">
|
|
98
96
|
{content}
|
|
99
|
-
</
|
|
100
|
-
</
|
|
97
|
+
</HStack>
|
|
98
|
+
</VStack>;
|
|
101
99
|
});
|
|
102
100
|
|
|
103
101
|
useEffect(() => {
|
|
@@ -116,14 +114,16 @@ export default function Accordion(props) {
|
|
|
116
114
|
if (activeSections?.length && sections?.length) {
|
|
117
115
|
scrollTo = sectionHeight * activeIx;
|
|
118
116
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
if (scrollView) {
|
|
118
|
+
setTimeout(()=> {
|
|
119
|
+
scrollView.scrollTo({ x: 0, y: scrollTo, animated: true });
|
|
120
|
+
}, 10); // delay so render can finish
|
|
121
|
+
}
|
|
122
122
|
|
|
123
123
|
}, [activeSections, isRendered]);
|
|
124
124
|
|
|
125
125
|
return <ScrollView ref={scrollViewRef} keyboardShouldPersistTaps="always" flex={1} w="100%">
|
|
126
|
-
<
|
|
126
|
+
<VStack
|
|
127
127
|
{...propsToPass}
|
|
128
128
|
pb={(onlyOne ? calculateExtraPadding() : 0) + 'px'}
|
|
129
129
|
onLayout={(e) => {
|
|
@@ -138,6 +138,6 @@ export default function Accordion(props) {
|
|
|
138
138
|
}}
|
|
139
139
|
>
|
|
140
140
|
{items}
|
|
141
|
-
</
|
|
141
|
+
</VStack>
|
|
142
142
|
</ScrollView>;
|
|
143
143
|
}
|
package/src/Components/Blank.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
|
+
Button,
|
|
4
|
+
ButtonText,
|
|
5
|
+
ButtonIcon,
|
|
3
6
|
Icon,
|
|
4
7
|
Pressable,
|
|
5
8
|
Spinner,
|
|
6
9
|
Tooltip,
|
|
7
|
-
} from '
|
|
10
|
+
} from '@gluestack-ui/themed';
|
|
8
11
|
import withComponent from '../Hoc/withComponent.js';
|
|
9
12
|
import UiGlobals from '../../UiGlobals.js';
|
|
10
13
|
import _ from 'lodash';
|
|
@@ -69,7 +72,7 @@ const
|
|
|
69
72
|
</Pressable>;
|
|
70
73
|
ret = pressable;
|
|
71
74
|
if (tooltip) {
|
|
72
|
-
ret = <Tooltip label={tooltip} placement={tooltipPlacement}>{ret}</Tooltip>;
|
|
75
|
+
// ret = <Tooltip label={tooltip} placement={tooltipPlacement}>{ret}</Tooltip>;
|
|
73
76
|
}
|
|
74
77
|
return ret;
|
|
75
78
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
HStack,
|
|
4
4
|
Text,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@gluestack-ui/themed';
|
|
6
6
|
import IconButton from './IconButton.js';
|
|
7
7
|
import Plus from '../Icons/Plus.js';
|
|
8
8
|
import Minus from '../Icons/Minus.js';
|
|
@@ -17,8 +17,8 @@ const PlusMinusButton = React.forwardRef((props, ref) => {
|
|
|
17
17
|
minusHandler = () => {},
|
|
18
18
|
} = props;
|
|
19
19
|
|
|
20
|
-
return <
|
|
21
|
-
<
|
|
20
|
+
return <HStack {...props}>
|
|
21
|
+
<HStack alignItems="center">
|
|
22
22
|
<IconButton
|
|
23
23
|
icon={<Minus color="#fff" />}
|
|
24
24
|
onPress={minusHandler}
|
|
@@ -32,8 +32,8 @@ const PlusMinusButton = React.forwardRef((props, ref) => {
|
|
|
32
32
|
isDisabled={isPlusDisabled}
|
|
33
33
|
ml={1}
|
|
34
34
|
/>
|
|
35
|
-
</
|
|
36
|
-
</
|
|
35
|
+
</HStack>
|
|
36
|
+
</HStack>;
|
|
37
37
|
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from '
|
|
3
|
+
VStack,
|
|
4
|
+
HStack,
|
|
5
|
+
} from '@gluestack-ui/themed';
|
|
6
6
|
import {
|
|
7
7
|
HORIZONTAL,
|
|
8
8
|
VERTICAL,
|
|
@@ -286,21 +286,21 @@ function Container(props) {
|
|
|
286
286
|
componentProps = {};
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
return <
|
|
289
|
+
return <VStack w="100%" flex={1}>
|
|
290
290
|
{northComponent}
|
|
291
291
|
{(!isNorthCollapsed && !localIsNorthCollapsed) && northSplitter}
|
|
292
|
-
<
|
|
292
|
+
<HStack w="100%" flex={100}>
|
|
293
293
|
{westComponent}
|
|
294
294
|
{(!isWestCollapsed && !localIsWestCollapsed) && westSplitter}
|
|
295
|
-
<
|
|
295
|
+
<VStack h="100%" flex={100}>
|
|
296
296
|
{centerComponent}
|
|
297
|
-
</
|
|
297
|
+
</VStack>
|
|
298
298
|
{(!isEastCollapsed && !localIsEastCollapsed) && eastSplitter}
|
|
299
299
|
{eastComponent}
|
|
300
|
-
</
|
|
300
|
+
</HStack>
|
|
301
301
|
{(!isSouthCollapsed && !localIsSouthCollapsed) && southSplitter}
|
|
302
302
|
{southComponent}
|
|
303
|
-
</
|
|
303
|
+
</VStack>;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
export default withComponent(Container);
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
useWindowDimensions,
|
|
5
5
|
} from 'react-native';
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
VStack,
|
|
8
8
|
ScrollView,
|
|
9
9
|
KeyboardAvoidingView,
|
|
10
|
-
} from '
|
|
10
|
+
} from '@gluestack-ui/themed';
|
|
11
11
|
import withComponent from '../Hoc/withComponent.js';
|
|
12
12
|
// import { useHeaderHeight } from '@react-navigation/elements';
|
|
13
13
|
// import testProps from '../OneHat/functions/testProps';
|
|
@@ -35,7 +35,7 @@ function ScreenContainer(props) {
|
|
|
35
35
|
safeAreaProps.safeArea = true;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const column = <
|
|
38
|
+
const column = <VStack
|
|
39
39
|
// {...testProps(screenName)}
|
|
40
40
|
alignItems="center"
|
|
41
41
|
justifyContent="flex-start"
|
|
@@ -48,7 +48,7 @@ function ScreenContainer(props) {
|
|
|
48
48
|
{...safeAreaProps}
|
|
49
49
|
>
|
|
50
50
|
{props.children}
|
|
51
|
-
</
|
|
51
|
+
</VStack>;
|
|
52
52
|
|
|
53
53
|
if (scrollEnabled) {
|
|
54
54
|
const scrollViewProps = {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from 'native-base';
|
|
2
|
+
VStack,
|
|
3
|
+
HStack,
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
6
5
|
import {
|
|
7
6
|
HORIZONTAL,
|
|
8
7
|
VERTICAL,
|
|
@@ -21,7 +20,7 @@ function Splitter(props) {
|
|
|
21
20
|
} = props;
|
|
22
21
|
|
|
23
22
|
if (mode === VERTICAL) {
|
|
24
|
-
return <
|
|
23
|
+
return <HStack
|
|
25
24
|
testID="Splitter"
|
|
26
25
|
bg={isDragging ? 'secondary.600' : 'primary.600'}
|
|
27
26
|
h="3px"
|
|
@@ -29,10 +28,10 @@ function Splitter(props) {
|
|
|
29
28
|
alignItems="center"
|
|
30
29
|
justifyContent="center"
|
|
31
30
|
>
|
|
32
|
-
<
|
|
33
|
-
</
|
|
31
|
+
<HStack testID="handle" h="2px" w="10%" bg="#ccc"></HStack>
|
|
32
|
+
</HStack>;
|
|
34
33
|
}
|
|
35
|
-
return <
|
|
34
|
+
return <VStack
|
|
36
35
|
testID="Splitter"
|
|
37
36
|
bg={isDragging ? 'secondary.600' : 'primary.600'}
|
|
38
37
|
h="100%"
|
|
@@ -41,8 +40,8 @@ function Splitter(props) {
|
|
|
41
40
|
justifyContent="center"
|
|
42
41
|
style={styles.ewResize}
|
|
43
42
|
>
|
|
44
|
-
<
|
|
45
|
-
</
|
|
43
|
+
<VStack testID="handle" w="2px" h="10%" bg="#ccc"></VStack>
|
|
44
|
+
</VStack>;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
function withAdditionalProps(WrappedComponent) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
HStack,
|
|
4
4
|
Text,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@gluestack-ui/themed';
|
|
6
6
|
import Date from '../Form/Field/Date.js';
|
|
7
7
|
import withTooltip from '../Hoc/withTooltip.js';
|
|
8
8
|
import withValue from '../Hoc/withValue.js';
|
|
@@ -70,7 +70,7 @@ const
|
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
return <
|
|
73
|
+
return <HStack
|
|
74
74
|
justifyContent="center"
|
|
75
75
|
alignItems="center"
|
|
76
76
|
flex={1}
|
|
@@ -93,7 +93,7 @@ const
|
|
|
93
93
|
// maxValue={maxValue}
|
|
94
94
|
tooltip={(tooltip ? tooltip + ' ' : '') + 'High'}
|
|
95
95
|
/>
|
|
96
|
-
</
|
|
96
|
+
</HStack>;
|
|
97
97
|
},
|
|
98
98
|
DateRangeField = withValue(DateRange);
|
|
99
99
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
HStack,
|
|
4
4
|
Text,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@gluestack-ui/themed';
|
|
6
6
|
import Number from '../Form/Field/Number.js';
|
|
7
7
|
import withTooltip from '../Hoc/withTooltip.js';
|
|
8
8
|
import withValue from '../Hoc/withValue.js';
|
|
@@ -61,7 +61,7 @@ import _ from 'lodash';
|
|
|
61
61
|
|
|
62
62
|
}, [value]);
|
|
63
63
|
|
|
64
|
-
return <
|
|
64
|
+
return <HStack
|
|
65
65
|
justifyContent="center"
|
|
66
66
|
alignItems="center"
|
|
67
67
|
flex={1}
|
|
@@ -86,7 +86,7 @@ import _ from 'lodash';
|
|
|
86
86
|
tooltip={(tooltip ? tooltip + ' ' : '') + 'High'}
|
|
87
87
|
maxWidth={120}
|
|
88
88
|
/>
|
|
89
|
-
</
|
|
89
|
+
</HStack>;
|
|
90
90
|
},
|
|
91
91
|
NumberRangeField = withValue(NumberRange);
|
|
92
92
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
HStack,
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
5
5
|
import UiGlobals from '../../../../UiGlobals.js';
|
|
6
6
|
import { CKEditor } from '@ckeditor/ckeditor5-react'; // https://ckeditor.com/docs/ckeditor5/latest/installation/frameworks/react.html
|
|
7
7
|
import './ckeditor.css';
|
|
@@ -32,7 +32,7 @@ const
|
|
|
32
32
|
debouncedSetValueRef.current = _.debounce(setValue, autoSubmitDelay);
|
|
33
33
|
}, [setValue]);
|
|
34
34
|
|
|
35
|
-
return <
|
|
35
|
+
return <HStack h={h} flex={1} ref={props.outerRef} {...props}>
|
|
36
36
|
<CKEditor
|
|
37
37
|
editor={Editor}
|
|
38
38
|
config={config}
|
|
@@ -45,7 +45,7 @@ const
|
|
|
45
45
|
debouncedSetValueRef.current(value);
|
|
46
46
|
}}
|
|
47
47
|
/>
|
|
48
|
-
</
|
|
48
|
+
</HStack>;
|
|
49
49
|
},
|
|
50
50
|
CKEditorField = withComponent(withValue(CKEditorElement));
|
|
51
51
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
Column,
|
|
4
3
|
Checkbox,
|
|
5
|
-
|
|
6
|
-
} from 'native-base';
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
7
5
|
import withData from '../../../Hoc/withData.js';
|
|
8
6
|
import withValue from '../../../Hoc/withValue.js';
|
|
9
7
|
import withTooltip from '../../../Hoc/withTooltip.js';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React, { useState,
|
|
1
|
+
import React, { useState, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Popover,
|
|
4
4
|
Pressable,
|
|
5
|
-
|
|
6
|
-
Text,
|
|
5
|
+
HStack,
|
|
7
6
|
Tooltip,
|
|
8
|
-
} from '
|
|
7
|
+
} from '@gluestack-ui/themed';
|
|
9
8
|
import { SketchPicker } from 'react-color';
|
|
10
9
|
import {
|
|
11
10
|
UI_MODE_WEB,
|
|
@@ -134,94 +133,101 @@ export function ColorElement(props) {
|
|
|
134
133
|
|
|
135
134
|
|
|
136
135
|
// Web version
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
136
|
+
let assembledComponents = null;
|
|
137
|
+
assembledComponents =
|
|
138
|
+
<HStack flex={1} h="100%" alignItems="center" onLayout={() => setIsRendered(true)}>
|
|
139
|
+
<Pressable
|
|
140
|
+
ref={triggerRef}
|
|
141
|
+
onPress={onTriggerPress}
|
|
142
|
+
onBlur={onTriggerBlur}
|
|
143
|
+
h={10}
|
|
144
|
+
w={10}
|
|
145
|
+
bg={value}
|
|
146
|
+
borderTopLeftRadius={6}
|
|
147
|
+
borderBottomLeftRadius={6}
|
|
148
|
+
borderTopRightRadius={0}
|
|
149
|
+
borderBottomRightRadius={0}
|
|
150
|
+
borderWidth={1}
|
|
151
|
+
borderColor="trueGray.300"
|
|
152
|
+
/>
|
|
153
|
+
<Input
|
|
154
|
+
ref={inputRef}
|
|
155
|
+
value={value}
|
|
156
|
+
setValue={setValue}
|
|
157
|
+
maxLength={7}
|
|
158
|
+
onBlur={onInputBlur}
|
|
159
|
+
onClick={onInputClick}
|
|
160
|
+
flex={1}
|
|
161
|
+
h="100%"
|
|
162
|
+
p={2}
|
|
163
|
+
borderWidth={1}
|
|
164
|
+
borderColor="trueGray.300"
|
|
165
|
+
borderLeftWidth={0}
|
|
166
|
+
borderTopLeftRadius={0}
|
|
167
|
+
borderBottomLeftRadius={0}
|
|
168
|
+
borderTopRightRadius={6}
|
|
169
|
+
borderBottomRightRadius={6}
|
|
170
|
+
fontSize={styles.FORM_COLOR_READOUT_FONTSIZE}
|
|
171
|
+
bg={styles.FORM_COLOR_INPUT_BG}
|
|
172
|
+
_focus={{
|
|
173
|
+
bg: styles.FORM_COLOR_INPUT_FOCUS_BG,
|
|
174
|
+
}}
|
|
175
|
+
onLayout={(e) => {
|
|
176
|
+
// On web, this is not needed, but on RN it might be, so leave it in for now
|
|
177
|
+
const {
|
|
178
|
+
height,
|
|
179
|
+
top,
|
|
180
|
+
left,
|
|
181
|
+
} = e.nativeEvent.layout;
|
|
182
|
+
setTop(top + height);
|
|
183
|
+
setLeft(left);
|
|
184
|
+
}}
|
|
185
|
+
/>
|
|
186
|
+
<Popover
|
|
187
|
+
isOpen={isPickerShown}
|
|
188
|
+
onClose={() => {
|
|
189
|
+
hidePicker();
|
|
190
|
+
}}
|
|
191
|
+
trigger={emptyFn}
|
|
192
|
+
trapFocus={true}
|
|
193
|
+
placement={'auto'}
|
|
194
|
+
{...props}
|
|
195
|
+
>
|
|
196
|
+
<Popover.Content
|
|
197
|
+
position="absolute"
|
|
198
|
+
top={top + 'px'}
|
|
199
|
+
left={left + 'px'}
|
|
200
|
+
w={220}
|
|
201
|
+
h={287}
|
|
202
|
+
{...translateProps}
|
|
203
|
+
>
|
|
204
|
+
<Popover.Body
|
|
205
|
+
ref={pickerRef}
|
|
206
|
+
p={0}
|
|
195
207
|
>
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
>
|
|
208
|
-
<SketchPicker
|
|
209
|
-
disableAlpha={true}
|
|
210
|
-
color={value}
|
|
211
|
-
onChange={(color) => setValue(color.hex)}
|
|
212
|
-
{...props}
|
|
213
|
-
/>
|
|
214
|
-
</Popover.Body>
|
|
215
|
-
</Popover.Content>
|
|
216
|
-
</Popover>
|
|
217
|
-
</Row>
|
|
218
|
-
</Tooltip>;
|
|
208
|
+
<SketchPicker
|
|
209
|
+
disableAlpha={true}
|
|
210
|
+
color={value}
|
|
211
|
+
onChange={(color) => setValue(color.hex)}
|
|
212
|
+
{...props}
|
|
213
|
+
/>
|
|
214
|
+
</Popover.Body>
|
|
215
|
+
</Popover.Content>
|
|
216
|
+
</Popover>
|
|
217
|
+
</HStack>;
|
|
218
|
+
|
|
219
219
|
|
|
220
220
|
// React Native v1
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
// React Native v2
|
|
224
224
|
|
|
225
|
+
if (tooltip) {
|
|
226
|
+
// assembledComponents = <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
227
|
+
// {assembledComponents}
|
|
228
|
+
// </Tooltip>;
|
|
229
|
+
}
|
|
230
|
+
return assembledComponents;
|
|
225
231
|
}
|
|
226
232
|
|
|
227
233
|
export default withComponent(withValue(ColorElement));
|