@onehat/ui 0.3.262 → 0.3.264
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 +1 -1
- 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 +2 -5
- 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 +10 -9
- 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 +3 -1
- package/src/Components/Form/Field/Color.js +85 -91
- 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 +11 -10
- 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 +3 -1
- 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 +7 -6
- package/src/Components/Form/FiltersForm.js +9 -0
- package/src/Components/Form/Form.js +48 -62
- package/src/Components/Form/Label.js +4 -4
- package/src/Components/Grid/Grid.js +11 -9
- 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 +6 -4
- package/src/Components/Grid/HeaderResizeHandle.js +6 -4
- package/src/Components/Grid/NoRecordsFound.js +7 -7
- package/src/Components/Grid/RowDragHandle.js +6 -4
- package/src/Components/Hoc/Secondary/withSecondaryEditor.js +1 -2
- package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +3 -1
- package/src/Components/Hoc/withAlert.js +14 -24
- package/src/Components/Hoc/withBlank.js +2 -0
- package/src/Components/Hoc/withContextMenu.js +9 -4
- package/src/Components/Hoc/withEditor.js +1 -2
- package/src/Components/Hoc/withEvents.js +2 -0
- package/src/Components/Hoc/withFilters.js +11 -11
- package/src/Components/Hoc/withInlineEditor.js +8 -5
- package/src/Components/Hoc/withPdfButton.js +5 -4
- package/src/Components/Hoc/withPresetButtons.js +1 -1
- package/src/Components/Hoc/withTooltip.js +3 -3
- package/src/Components/Hoc/withWindowedEditor.js +3 -1
- package/src/Components/Icons/AddressBook.js +10 -6
- package/src/Components/Icons/Alt.js +15 -7
- package/src/Components/Icons/AngleLeft.js +14 -6
- package/src/Components/Icons/AngleRight.js +14 -6
- package/src/Components/Icons/AnglesLeft.js +14 -6
- package/src/Components/Icons/AnglesRight.js +14 -6
- package/src/Components/Icons/Asterisk.js +10 -6
- package/src/Components/Icons/Ban.js +14 -8
- package/src/Components/Icons/Bars.js +10 -6
- package/src/Components/Icons/BarsStaggered.js +10 -6
- package/src/Components/Icons/Bell.js +19 -6
- package/src/Components/Icons/BigCircle.js +14 -6
- package/src/Components/Icons/Book.js +10 -6
- package/src/Components/Icons/BookOpen.js +10 -6
- package/src/Components/Icons/Bookmark.js +17 -7
- package/src/Components/Icons/Bug.js +10 -6
- package/src/Components/Icons/Building.js +10 -6
- package/src/Components/Icons/Calendar.js +14 -6
- package/src/Components/Icons/Calendar2.js +14 -6
- package/src/Components/Icons/CalendarDays.js +14 -6
- package/src/Components/Icons/Camera.js +14 -6
- package/src/Components/Icons/CaretDown.js +14 -6
- package/src/Components/Icons/CaretUp.js +14 -6
- package/src/Components/Icons/CartPlus.js +10 -6
- package/src/Components/Icons/CartShopping.js +10 -6
- package/src/Components/Icons/CashRegister.js +10 -6
- package/src/Components/Icons/Certificate.js +10 -6
- package/src/Components/Icons/ChartLine.js +10 -6
- package/src/Components/Icons/ChartPie.js +10 -6
- package/src/Components/Icons/Check.js +10 -6
- package/src/Components/Icons/CheckDouble.js +10 -6
- package/src/Components/Icons/ChevronDown.js +10 -6
- package/src/Components/Icons/ChevronLeft.js +10 -6
- package/src/Components/Icons/ChevronRight.js +10 -6
- package/src/Components/Icons/ChevronUp.js +10 -6
- package/src/Components/Icons/Circle.js +10 -6
- package/src/Components/Icons/CircleArrowRight.js +10 -6
- package/src/Components/Icons/CircleExclamation.js +14 -6
- package/src/Components/Icons/CircleInfo.js +10 -6
- package/src/Components/Icons/CircleQuestion.js +10 -6
- package/src/Components/Icons/CircleXmark.js +10 -6
- package/src/Components/Icons/CircleXmarkRegular.js +10 -6
- package/src/Components/Icons/Clipboard.js +14 -6
- package/src/Components/Icons/ClipboardCheck.js +17 -6
- package/src/Components/Icons/ClipboardList.js +16 -6
- package/src/Components/Icons/Clock.js +10 -6
- package/src/Components/Icons/ClockRegular.js +10 -6
- package/src/Components/Icons/ClockRotateLeft.js +10 -6
- package/src/Components/Icons/Clone.js +10 -6
- package/src/Components/Icons/Collapse.js +14 -6
- package/src/Components/Icons/Comment.js +10 -6
- package/src/Components/Icons/CommentDots.js +10 -6
- package/src/Components/Icons/CommentRegular.js +10 -6
- package/src/Components/Icons/Comments.js +10 -6
- package/src/Components/Icons/CommentsRegular.js +10 -6
- package/src/Components/Icons/Copyright.js +10 -6
- package/src/Components/Icons/Dot.js +15 -9
- package/src/Components/Icons/Duplicate.js +14 -6
- package/src/Components/Icons/Edit.js +14 -6
- package/src/Components/Icons/EllipsisHorizontal.js +16 -6
- package/src/Components/Icons/EllipsisVertical.js +14 -6
- package/src/Components/Icons/Envelope.js +10 -6
- package/src/Components/Icons/EnvelopeRegular.js +10 -6
- package/src/Components/Icons/Excel.js +10 -6
- package/src/Components/Icons/Exclamation.js +10 -6
- package/src/Components/Icons/Expand.js +10 -6
- package/src/Components/Icons/Eye.js +14 -6
- package/src/Components/Icons/EyeSlash.js +10 -6
- package/src/Components/Icons/File.js +14 -6
- package/src/Components/Icons/FloppyDiskRegular.js +10 -6
- package/src/Components/Icons/Folder.js +10 -6
- package/src/Components/Icons/FolderClosed.js +10 -6
- package/src/Components/Icons/FolderOpen.js +10 -6
- package/src/Components/Icons/FolderTree.js +10 -6
- package/src/Components/Icons/FullWidth.js +25 -9
- package/src/Components/Icons/Gauge.js +17 -6
- package/src/Components/Icons/Gear.js +14 -6
- package/src/Components/Icons/Gears.js +10 -6
- package/src/Components/Icons/Gift.js +10 -6
- package/src/Components/Icons/Grip.js +14 -6
- package/src/Components/Icons/GripLines.js +14 -6
- package/src/Components/Icons/GripLinesVertical.js +14 -6
- package/src/Components/Icons/GripVertical.js +14 -6
- package/src/Components/Icons/Hammer.js +10 -6
- package/src/Components/Icons/Hand.js +10 -6
- package/src/Components/Icons/HighPriority.js +17 -6
- package/src/Components/Icons/House.js +10 -6
- package/src/Components/Icons/Images.js +10 -6
- package/src/Components/Icons/Info.js +10 -6
- package/src/Components/Icons/ItunesNote.js +10 -6
- package/src/Components/Icons/Js.js +16 -6
- package/src/Components/Icons/Leaf.js +10 -6
- package/src/Components/Icons/Link.js +9 -6
- package/src/Components/Icons/List.js +10 -6
- package/src/Components/Icons/ListCheck.js +10 -6
- package/src/Components/Icons/LocationDot.js +10 -6
- package/src/Components/Icons/Loop.js +14 -6
- package/src/Components/Icons/Loop1.js +13 -7
- package/src/Components/Icons/LoopAll.js +13 -7
- package/src/Components/Icons/LowPriority.js +17 -6
- package/src/Components/Icons/MagnifyingGlass.js +10 -6
- package/src/Components/Icons/Maximize.js +10 -6
- package/src/Components/Icons/MedPriority.js +17 -6
- package/src/Components/Icons/Microphone.js +10 -6
- package/src/Components/Icons/Minimize.js +10 -6
- package/src/Components/Icons/Minus.js +14 -6
- package/src/Components/Icons/MobileScreenButton.js +10 -6
- package/src/Components/Icons/MoneyBill.js +10 -6
- package/src/Components/Icons/MoneyBillWave.js +10 -6
- package/src/Components/Icons/Mouth.js +21 -9
- package/src/Components/Icons/Music.js +10 -6
- package/src/Components/Icons/Na.js +14 -6
- package/src/Components/Icons/NoLoop.js +13 -10
- package/src/Components/Icons/NoReorderRows.js +22 -16
- package/src/Components/Icons/ObjectGroupRegular.js +10 -6
- package/src/Components/Icons/Pause.js +10 -6
- package/src/Components/Icons/Pdf.js +10 -6
- package/src/Components/Icons/Pencil.js +14 -6
- package/src/Components/Icons/Phone.js +10 -6
- package/src/Components/Icons/Play.js +10 -6
- package/src/Components/Icons/Plus.js +14 -6
- package/src/Components/Icons/Presentation.js +16 -6
- package/src/Components/Icons/Print.js +14 -6
- package/src/Components/Icons/Question.js +10 -6
- package/src/Components/Icons/Rate-.25x.js +17 -11
- package/src/Components/Icons/Rate-.5x.js +16 -10
- package/src/Components/Icons/Rate-.75x.js +13 -7
- package/src/Components/Icons/Rate-1.25x.js +13 -7
- package/src/Components/Icons/Rate-1.5x.js +13 -7
- package/src/Components/Icons/Rate-1.75x.js +13 -7
- package/src/Components/Icons/Rate-1x.js +16 -10
- package/src/Components/Icons/Rate-2x.js +13 -7
- package/src/Components/Icons/RateIcon-.25x.js +13 -7
- package/src/Components/Icons/RateIcon-.5x.js +16 -10
- package/src/Components/Icons/RateIcon-.75x.js +13 -7
- package/src/Components/Icons/RateIcon-1.25x.js +13 -7
- package/src/Components/Icons/RateIcon-1.5x.js +13 -7
- package/src/Components/Icons/RateIcon-1.75x.js +13 -7
- package/src/Components/Icons/RateIcon-1x.js +13 -7
- package/src/Components/Icons/RateIcon-2x.js +13 -7
- package/src/Components/Icons/RectangleXmark.js +10 -6
- package/src/Components/Icons/RectangleXmarkRegular.js +10 -6
- package/src/Components/Icons/ReorderRows.js +13 -7
- package/src/Components/Icons/RightFromBracket.js +10 -6
- package/src/Components/Icons/RightLeft.js +10 -6
- package/src/Components/Icons/RightToBracket.js +10 -6
- package/src/Components/Icons/Rotate.js +14 -6
- package/src/Components/Icons/RotateLeft.js +10 -6
- package/src/Components/Icons/RotateRight.js +14 -6
- package/src/Components/Icons/ScrewdriverWrench.js +10 -6
- package/src/Components/Icons/Scroll.js +10 -6
- package/src/Components/Icons/Share.js +10 -6
- package/src/Components/Icons/Shop.js +10 -6
- package/src/Components/Icons/SideBySide.js +20 -6
- package/src/Components/Icons/SortDown.js +10 -6
- package/src/Components/Icons/SortDownAlt.js +10 -6
- package/src/Components/Icons/SortUp.js +10 -6
- package/src/Components/Icons/SortUpAlt.js +14 -6
- package/src/Components/Icons/Square.js +10 -6
- package/src/Components/Icons/SquareCheck.js +10 -6
- package/src/Components/Icons/SquareCheckRegular.js +10 -6
- package/src/Components/Icons/SquareMinus.js +14 -6
- package/src/Components/Icons/SquareRegular.js +10 -6
- package/src/Components/Icons/Store.js +10 -6
- package/src/Components/Icons/Table.js +16 -6
- package/src/Components/Icons/ThumbsDown.js +10 -6
- package/src/Components/Icons/ThumbsDownRegular.js +10 -6
- package/src/Components/Icons/ThumbsUp.js +10 -6
- package/src/Components/Icons/ThumbsUpRegular.js +10 -6
- package/src/Components/Icons/Trash.js +14 -6
- package/src/Components/Icons/TrashCan.js +14 -6
- package/src/Components/Icons/TriangleExclamation.js +14 -6
- package/src/Components/Icons/Truck.js +10 -6
- package/src/Components/Icons/TruckFast.js +10 -6
- package/src/Components/Icons/UploadDownload.js +9 -7
- package/src/Components/Icons/User.js +10 -6
- package/src/Components/Icons/UserGroup.js +10 -6
- package/src/Components/Icons/UserPlus.js +10 -6
- package/src/Components/Icons/UserSecret.js +10 -6
- package/src/Components/Icons/Video.js +16 -6
- package/src/Components/Icons/X.js +10 -6
- package/src/Components/Icons/Xmark.js +10 -6
- package/src/Components/Layout/CenterBox.js +1 -1
- package/src/Components/Layout/Footer.js +4 -4
- package/src/Components/Messages/ConfirmationMessage.js +3 -8
- package/src/Components/Messages/ErrorMessage.js +2 -5
- package/src/Components/Messages/Loading.js +6 -6
- package/src/Components/Messages/OkMessage.js +3 -4
- 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 +12 -10
- package/src/Components/Picker/Picker.js +5 -5
- package/src/Components/Report/Report.js +10 -10
- package/src/Components/Screens/Manager.js +7 -7
- package/src/Components/Tab/TabBar.js +23 -23
- package/src/Components/Toolbar/FilterToolbar.js +3 -3
- package/src/Components/Toolbar/Pagination.js +8 -12
- package/src/Components/Toolbar/PaginationToolbar.js +3 -3
- package/src/Components/Toolbar/Toolbar.js +4 -4
- package/src/Components/Tree/Tree.js +13 -10
- package/src/Components/Tree/TreeNode.js +4 -4
- package/src/Components/Viewer/Viewer.js +23 -29
- 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 +3 -7
- package/src/PlatformImports/Web/Attachments.js +8 -11
- package/src/PlatformImports/Web/File.js +5 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Column,
|
|
4
4
|
Icon,
|
|
5
5
|
Pressable,
|
|
6
|
-
|
|
6
|
+
Row,
|
|
7
7
|
Text,
|
|
8
|
-
} from '
|
|
8
|
+
} from 'native-base';
|
|
9
9
|
import {
|
|
10
10
|
HORIZONTAL,
|
|
11
11
|
VERTICAL,
|
|
@@ -80,12 +80,12 @@ export default function Header(props) {
|
|
|
80
80
|
}
|
|
81
81
|
}}
|
|
82
82
|
>
|
|
83
|
-
<
|
|
83
|
+
<Column alignItems="center" justifyContent="flex-start" h="100%" w="100%" bg={styles.PANEL_HEADER_BG_VERTICAL} style={{ userSelect: 'none', }} testID={testID}>
|
|
84
84
|
{collapseBtn}
|
|
85
85
|
<div style={{ textOrientation: 'mixed', writingMode: 'vertical-rl', }}>
|
|
86
86
|
<Text flex={1} fontSize={styles.PANEL_HEADER_TEXT_FONTSIZE} color={styles.PANEL_HEADER_TEXT_COLOR} numberOfLines={1} ellipsizeMode="head" testID="text">{title}</Text>
|
|
87
87
|
</div>
|
|
88
|
-
</
|
|
88
|
+
</Column>
|
|
89
89
|
</div>;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -99,11 +99,11 @@ export default function Header(props) {
|
|
|
99
99
|
}
|
|
100
100
|
}}
|
|
101
101
|
>
|
|
102
|
-
<
|
|
102
|
+
<Row alignItems="center" justifyContent="flex-start" px={styles.PANEL_HEADER_PX} py={styles.PANEL_HEADER_PY} bg={styles.PANEL_HEADER_BG} style={{ userSelect: 'none', }} testID={testID}>
|
|
103
103
|
{closeBtn}
|
|
104
104
|
<Text flex={1} fontSize={styles.PANEL_HEADER_TEXT_FONTSIZE} color={styles.PANEL_HEADER_TEXT_COLOR} numberOfLines={1} ellipsizeMode="head" testID="text">{title}</Text>
|
|
105
105
|
{collapseBtn}
|
|
106
|
-
</
|
|
106
|
+
</Row>
|
|
107
107
|
</div>;
|
|
108
108
|
|
|
109
109
|
} else if (CURRENT_MODE === UI_MODE_REACT_NATIVE) {
|
|
@@ -122,7 +122,7 @@ export default function Header(props) {
|
|
|
122
122
|
}
|
|
123
123
|
}}
|
|
124
124
|
>
|
|
125
|
-
<
|
|
125
|
+
<Column
|
|
126
126
|
alignItems="center"
|
|
127
127
|
justifyContent="flex-start"
|
|
128
128
|
h="100%"
|
|
@@ -130,7 +130,7 @@ export default function Header(props) {
|
|
|
130
130
|
bg={styles.PANEL_HEADER_BG_VERTICAL}
|
|
131
131
|
>
|
|
132
132
|
{collapseBtn}
|
|
133
|
-
<
|
|
133
|
+
<Column
|
|
134
134
|
alignItems="center"
|
|
135
135
|
justifyContent="center"
|
|
136
136
|
flex={1}
|
|
@@ -145,8 +145,8 @@ export default function Header(props) {
|
|
|
145
145
|
w={200}
|
|
146
146
|
style={{ transform: [{ rotate: '-90deg'}] }}
|
|
147
147
|
>{title}</Text>
|
|
148
|
-
</
|
|
149
|
-
</
|
|
148
|
+
</Column>
|
|
149
|
+
</Column>
|
|
150
150
|
</Pressable>;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
@@ -161,7 +161,7 @@ export default function Header(props) {
|
|
|
161
161
|
}
|
|
162
162
|
}}
|
|
163
163
|
>
|
|
164
|
-
<
|
|
164
|
+
<Row
|
|
165
165
|
alignItems="center"
|
|
166
166
|
justifyContent="flex-start"
|
|
167
167
|
px={styles.PANEL_HEADER_PX}
|
|
@@ -177,7 +177,7 @@ export default function Header(props) {
|
|
|
177
177
|
ellipsizeMode="head"
|
|
178
178
|
>{title}</Text>
|
|
179
179
|
{collapseBtn}
|
|
180
|
-
</
|
|
180
|
+
</Row>
|
|
181
181
|
</Pressable>;
|
|
182
182
|
|
|
183
183
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { useEffect, useState, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Column,
|
|
4
|
+
Row,
|
|
4
5
|
ScrollView,
|
|
5
|
-
|
|
6
|
+
Text,
|
|
7
|
+
} from 'native-base';
|
|
6
8
|
import {
|
|
7
9
|
HORIZONTAL,
|
|
8
10
|
VERTICAL,
|
|
@@ -145,26 +147,26 @@ function Panel(props) {
|
|
|
145
147
|
|
|
146
148
|
if (isCollapsed) {
|
|
147
149
|
if (collapseDirection === HORIZONTAL) {
|
|
148
|
-
return <
|
|
150
|
+
return <Column overflow="hidden" {...propsToPass} {...framePropsToUse} {...sizeProps} w="33px">
|
|
149
151
|
{isDisabled && <Mask />}
|
|
150
152
|
{headerComponent}
|
|
151
|
-
</
|
|
153
|
+
</Column>;
|
|
152
154
|
}
|
|
153
|
-
return <
|
|
155
|
+
return <Column overflow="hidden" {...propsToPass} {...framePropsToUse} {...sizeProps} h="33px">
|
|
154
156
|
{isDisabled && <Mask />}
|
|
155
157
|
{headerComponent}
|
|
156
|
-
</
|
|
158
|
+
</Column>;
|
|
157
159
|
}
|
|
158
|
-
return <
|
|
160
|
+
return <Column overflow="hidden" {...propsToPass} {...framePropsToUse} {...sizeProps} onLayout={onLayout}>
|
|
159
161
|
{isDisabled && <Mask />}
|
|
160
162
|
{headerComponent}
|
|
161
163
|
{topToolbar}
|
|
162
|
-
<
|
|
164
|
+
<Column flex={1} w="100%" overflow="hidden">
|
|
163
165
|
{isScrollable ? <ScrollView>{children}</ScrollView> : children}
|
|
164
|
-
</
|
|
166
|
+
</Column>
|
|
165
167
|
{bottomToolbar}
|
|
166
168
|
{footer}
|
|
167
|
-
</
|
|
169
|
+
</Column>;
|
|
168
170
|
|
|
169
171
|
}
|
|
170
172
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Icon,
|
|
3
|
-
|
|
3
|
+
Row,
|
|
4
4
|
Select,
|
|
5
5
|
Tooltip,
|
|
6
|
-
} from '
|
|
6
|
+
} from 'native-base';
|
|
7
7
|
import CaretDown from '../Icons/CaretDown.js';
|
|
8
8
|
import testProps from '../../Functions/testProps.js';
|
|
9
9
|
import _ from 'lodash';
|
|
@@ -55,10 +55,10 @@ export default function Picker(props) {
|
|
|
55
55
|
>{items}</Select>;
|
|
56
56
|
if (tooltip) {
|
|
57
57
|
//TODO: This doesn't yet work, but doesn't do anything harmful either!
|
|
58
|
-
|
|
58
|
+
select = <Tooltip label={tooltip} placement={tooltipPlacement}>{select}</Tooltip>;
|
|
59
59
|
}
|
|
60
|
-
return <
|
|
60
|
+
return <Row {...props}>
|
|
61
61
|
{select}
|
|
62
|
-
</
|
|
62
|
+
</Row>;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Column,
|
|
4
4
|
Icon,
|
|
5
|
-
|
|
5
|
+
Row,
|
|
6
6
|
Text,
|
|
7
|
-
} from '
|
|
7
|
+
} from 'native-base';
|
|
8
8
|
import { EDITOR_TYPE__PLAIN } from '../../Constants/Editor';
|
|
9
9
|
import {
|
|
10
10
|
UI_MODE_WEB,
|
|
@@ -102,20 +102,20 @@ function Report(props) {
|
|
|
102
102
|
ml: 1,
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
return <
|
|
106
|
-
<
|
|
107
|
-
{icon && <
|
|
108
|
-
<
|
|
105
|
+
return <Column w="100%" borderWidth={1} borderColor="primary.300" pt={4} mb={3}>
|
|
106
|
+
<Row>
|
|
107
|
+
{icon && <Column>{icon}</Column>}
|
|
108
|
+
<Column flex={1}>
|
|
109
109
|
<Text fontSize="2xl" maxWidth="100%">{title}</Text>
|
|
110
110
|
<Text fontSize="sm">{description}</Text>
|
|
111
|
-
</
|
|
112
|
-
</
|
|
111
|
+
</Column>
|
|
112
|
+
</Row>
|
|
113
113
|
<Form
|
|
114
114
|
type={EDITOR_TYPE__PLAIN}
|
|
115
115
|
additionalFooterButtons={buttons}
|
|
116
116
|
{...props._form}
|
|
117
117
|
/>
|
|
118
|
-
</
|
|
118
|
+
</Column>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export default withComponent(Report);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Column,
|
|
4
|
+
Row,
|
|
5
5
|
Text,
|
|
6
|
-
} from '
|
|
6
|
+
} from 'native-base';
|
|
7
7
|
import withComponent from '../Hoc/withComponent.js';
|
|
8
8
|
import UiGlobals from '../../UiGlobals.js';
|
|
9
9
|
import IconButton from '../Buttons/IconButton';
|
|
@@ -84,8 +84,8 @@ function ManagerScreen(props) {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
return <
|
|
88
|
-
<
|
|
87
|
+
return <Column maxHeight="100vh" overflow="hidden" flex={1} w="100%" onLayout={onLayout}>
|
|
88
|
+
<Row
|
|
89
89
|
h="80px"
|
|
90
90
|
py={2}
|
|
91
91
|
borderBottomWidth={2}
|
|
@@ -115,9 +115,9 @@ function ManagerScreen(props) {
|
|
|
115
115
|
tooltip="Side Editor"
|
|
116
116
|
/>
|
|
117
117
|
</>}
|
|
118
|
-
</
|
|
118
|
+
</Row>
|
|
119
119
|
{isRendered && isModeSet && whichComponent}
|
|
120
|
-
</
|
|
120
|
+
</Column>;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export default withComponent(ManagerScreen);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
-
|
|
4
|
+
Column,
|
|
5
5
|
Icon,
|
|
6
|
-
|
|
6
|
+
Row,
|
|
7
7
|
ScrollView,
|
|
8
8
|
Text,
|
|
9
|
-
} from '
|
|
9
|
+
} from 'native-base';
|
|
10
10
|
import {
|
|
11
11
|
HORIZONTAL,
|
|
12
12
|
VERTICAL,
|
|
@@ -237,11 +237,11 @@ function TabBar(props) {
|
|
|
237
237
|
bg={isCurrentTab ? styles.TAB_ACTIVE_BG : styles.TAB_BG}
|
|
238
238
|
tooltip={tab.title}
|
|
239
239
|
/>;
|
|
240
|
-
// button = <
|
|
240
|
+
// button = <Row
|
|
241
241
|
// key={'tab' + ix}
|
|
242
242
|
// >
|
|
243
243
|
// {button}
|
|
244
|
-
// </
|
|
244
|
+
// </Row>;
|
|
245
245
|
} else {
|
|
246
246
|
button = <Button
|
|
247
247
|
key={'tabButton' + ix}
|
|
@@ -410,7 +410,7 @@ function TabBar(props) {
|
|
|
410
410
|
|
|
411
411
|
let tabBar = null;
|
|
412
412
|
if (direction === VERTICAL) {
|
|
413
|
-
tabBar = <
|
|
413
|
+
tabBar = <Column
|
|
414
414
|
alignItems="center"
|
|
415
415
|
justifyContent="flex-start"
|
|
416
416
|
py={2}
|
|
@@ -419,25 +419,25 @@ function TabBar(props) {
|
|
|
419
419
|
w={isCollapsed ? '50px' : tabWidth}
|
|
420
420
|
>
|
|
421
421
|
{renderedTabs}
|
|
422
|
-
<
|
|
422
|
+
<Column flex={1} w="100%" justifyContent="flex-end">
|
|
423
423
|
{renderedToggleButton}
|
|
424
|
-
</
|
|
425
|
-
</
|
|
424
|
+
</Column>
|
|
425
|
+
</Column>;
|
|
426
426
|
if (renderedCurrentTabContent) {
|
|
427
|
-
tabBar = <
|
|
427
|
+
tabBar = <Row flex={1} w="100%" {...propsToPass}>
|
|
428
428
|
{tabBar}
|
|
429
|
-
<
|
|
429
|
+
<Column
|
|
430
430
|
alignItems="center"
|
|
431
431
|
justifyContent="flex-start"
|
|
432
432
|
flex={1}
|
|
433
433
|
>
|
|
434
434
|
{renderedCurrentTabContent}
|
|
435
|
-
</
|
|
436
|
-
</
|
|
435
|
+
</Column>
|
|
436
|
+
</Row>;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
if (direction === HORIZONTAL) {
|
|
440
|
-
tabBar = <
|
|
440
|
+
tabBar = <Row
|
|
441
441
|
alignItems="center"
|
|
442
442
|
justifyContent="flex-start"
|
|
443
443
|
p={2}
|
|
@@ -451,23 +451,23 @@ function TabBar(props) {
|
|
|
451
451
|
>
|
|
452
452
|
{renderedTabs}
|
|
453
453
|
</ScrollView>
|
|
454
|
-
<
|
|
455
|
-
<
|
|
454
|
+
<Row flex={1} h="100%" justifyContent="flex-end">
|
|
455
|
+
<Row h="100%">
|
|
456
456
|
{renderedToggleButton}
|
|
457
|
-
</
|
|
458
|
-
</
|
|
459
|
-
</
|
|
457
|
+
</Row>
|
|
458
|
+
</Row>
|
|
459
|
+
</Row>;
|
|
460
460
|
if (renderedCurrentTabContent) {
|
|
461
|
-
tabBar = <
|
|
461
|
+
tabBar = <Column flex={1} w="100%" {...propsToPass}>
|
|
462
462
|
{tabBar}
|
|
463
|
-
<
|
|
463
|
+
<Column
|
|
464
464
|
alignItems="center"
|
|
465
465
|
justifyContent="flex-start"
|
|
466
466
|
flex={1}
|
|
467
467
|
>
|
|
468
468
|
{renderedCurrentTabContent}
|
|
469
|
-
</
|
|
470
|
-
</
|
|
469
|
+
</Column>
|
|
470
|
+
</Column>;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
return tabBar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from '
|
|
2
|
+
Row,
|
|
3
|
+
} from 'native-base';
|
|
4
4
|
import Toolbar from './Toolbar.js'
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
|
|
@@ -15,6 +15,6 @@ export default function FilterToolbar(props) {
|
|
|
15
15
|
borderTopColor="trueGray.400"
|
|
16
16
|
w="100%"
|
|
17
17
|
>
|
|
18
|
-
{toolbarItems.length ? <
|
|
18
|
+
{toolbarItems.length ? <Row flex={1} borderLeftWidth={1} borderLeftColor="trueGray.100">{toolbarItems}</Row> : null}
|
|
19
19
|
</Toolbar>;
|
|
20
20
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { useEffect, useMemo, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
Button,
|
|
4
|
-
ButtonText,
|
|
5
|
-
HStack,
|
|
6
3
|
Icon,
|
|
4
|
+
Row,
|
|
7
5
|
Text,
|
|
8
|
-
} from '
|
|
6
|
+
} from 'native-base';
|
|
9
7
|
import useForceUpdate from '../../Hooks/useForceUpdate.js';
|
|
10
|
-
|
|
8
|
+
import Button from '../Buttons/Button.js';
|
|
11
9
|
import IconButton from '../Buttons/IconButton.js';
|
|
12
10
|
import AngleLeft from '../Icons/AngleLeft.js';
|
|
13
11
|
import AnglesLeft from '../Icons/AnglesLeft.js';
|
|
@@ -72,9 +70,7 @@ export default function Pagination(props) {
|
|
|
72
70
|
onPress={() => Repository.showMore()}
|
|
73
71
|
isDisabled={isDisabled}
|
|
74
72
|
tooltip="Show More"
|
|
75
|
-
>
|
|
76
|
-
<ButtonText>Show More</ButtonText>
|
|
77
|
-
</Button>);
|
|
73
|
+
>Show More</Button>);
|
|
78
74
|
}
|
|
79
75
|
if (!Repository.isLocal) {
|
|
80
76
|
items.push(<IconButton
|
|
@@ -112,7 +108,7 @@ export default function Pagination(props) {
|
|
|
112
108
|
tooltip="Previous Page"
|
|
113
109
|
/>);
|
|
114
110
|
if (!minimize) {
|
|
115
|
-
items.push(<
|
|
111
|
+
items.push(<Row
|
|
116
112
|
key="pageSelector"
|
|
117
113
|
mx={3}
|
|
118
114
|
justifyContent="center"
|
|
@@ -131,7 +127,7 @@ export default function Pagination(props) {
|
|
|
131
127
|
tooltip="Set Page"
|
|
132
128
|
/>
|
|
133
129
|
<Text ml={2}>of {totalPages}</Text>
|
|
134
|
-
</
|
|
130
|
+
</Row>);
|
|
135
131
|
}
|
|
136
132
|
|
|
137
133
|
isDisabled = page === totalPages || totalPages <= 1;
|
|
@@ -180,7 +176,7 @@ export default function Pagination(props) {
|
|
|
180
176
|
}
|
|
181
177
|
}
|
|
182
178
|
|
|
183
|
-
return <
|
|
179
|
+
return <Row
|
|
184
180
|
justifyContent="flex-start"
|
|
185
181
|
alignItems="center"
|
|
186
182
|
px={2}
|
|
@@ -188,7 +184,7 @@ export default function Pagination(props) {
|
|
|
188
184
|
{...props}
|
|
189
185
|
>
|
|
190
186
|
{items}
|
|
191
|
-
</
|
|
187
|
+
</Row>;
|
|
192
188
|
}, [
|
|
193
189
|
Repository?.hash,
|
|
194
190
|
showPagination,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
Row,
|
|
4
|
+
} from 'native-base';
|
|
5
5
|
import Pagination from './Pagination.js'
|
|
6
6
|
import Toolbar from './Toolbar.js'
|
|
7
7
|
import _ from 'lodash';
|
|
@@ -50,6 +50,6 @@ export default function PaginationToolbar(props) {
|
|
|
50
50
|
onLayout={(e) => onLayout(e)}
|
|
51
51
|
>
|
|
52
52
|
<Pagination {...propsToPass} showPagination={showPagination} w={toolbarItems.length ? null : '100%'} minimize={minimize} disablePageSize={disablePageSize} />
|
|
53
|
-
{toolbarItems.length ? <
|
|
53
|
+
{toolbarItems.length ? <Row flex={1} {...toolbarProps}>{toolbarItems}</Row> : null}
|
|
54
54
|
</Toolbar>;
|
|
55
55
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from '
|
|
2
|
+
Row,
|
|
3
|
+
} from 'native-base';
|
|
4
4
|
import UiGlobals from '../../UiGlobals.js';
|
|
5
5
|
|
|
6
6
|
export default function Toolbar(props) {
|
|
7
7
|
const styles = UiGlobals.styles;
|
|
8
|
-
return <
|
|
8
|
+
return <Row
|
|
9
9
|
w="100%"
|
|
10
10
|
justifyContent="flex-start"
|
|
11
11
|
bg="trueGray.200"
|
|
@@ -17,5 +17,5 @@ export default function Toolbar(props) {
|
|
|
17
17
|
{...props}
|
|
18
18
|
>
|
|
19
19
|
{props.children}
|
|
20
|
-
</
|
|
20
|
+
</Row>;
|
|
21
21
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, useMemo, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Column,
|
|
4
|
+
FlatList,
|
|
4
5
|
Modal,
|
|
5
6
|
Pressable,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
Icon,
|
|
8
|
+
Row,
|
|
9
|
+
Text,
|
|
10
|
+
} from 'native-base';
|
|
8
11
|
import {
|
|
9
12
|
SELECTION_MODE_SINGLE,
|
|
10
13
|
SELECTION_MODE_MULTI,
|
|
@@ -1106,15 +1109,15 @@ function TreeComponent(props) {
|
|
|
1106
1109
|
}
|
|
1107
1110
|
|
|
1108
1111
|
return <>
|
|
1109
|
-
<
|
|
1112
|
+
<Column
|
|
1110
1113
|
{...testProps('Tree')}
|
|
1111
1114
|
flex={1}
|
|
1112
1115
|
w="100%"
|
|
1113
1116
|
>
|
|
1114
1117
|
{topToolbar}
|
|
1115
|
-
{headerToolbarItemComponents?.length && <
|
|
1118
|
+
{headerToolbarItemComponents?.length && <Row>{headerToolbarItemComponents}</Row>}
|
|
1116
1119
|
|
|
1117
|
-
<
|
|
1120
|
+
<Column
|
|
1118
1121
|
ref={treeRef}
|
|
1119
1122
|
w="100%"
|
|
1120
1123
|
flex={1}
|
|
@@ -1128,16 +1131,16 @@ function TreeComponent(props) {
|
|
|
1128
1131
|
>
|
|
1129
1132
|
{!treeNodes?.length ? <NoRecordsFound text={noneFoundText} onRefresh={reloadTree} /> :
|
|
1130
1133
|
treeNodes}
|
|
1131
|
-
</
|
|
1134
|
+
</Column>
|
|
1132
1135
|
|
|
1133
1136
|
{treeFooterComponent}
|
|
1134
|
-
</
|
|
1137
|
+
</Column>
|
|
1135
1138
|
|
|
1136
1139
|
<Modal
|
|
1137
1140
|
isOpen={isSearchModalShown}
|
|
1138
1141
|
onClose={() => setIsSearchModalShown(false)}
|
|
1139
1142
|
>
|
|
1140
|
-
<
|
|
1143
|
+
<Column bg="#fff" w={300}>
|
|
1141
1144
|
<FormPanel
|
|
1142
1145
|
title="Choose Tree Node"
|
|
1143
1146
|
instructions="Multiple tree nodes matched your search. Please select which one to show."
|
|
@@ -1173,7 +1176,7 @@ function TreeComponent(props) {
|
|
|
1173
1176
|
setIsSearchModalShown(false);
|
|
1174
1177
|
}}
|
|
1175
1178
|
/>
|
|
1176
|
-
</
|
|
1179
|
+
</Column>
|
|
1177
1180
|
</Modal>
|
|
1178
1181
|
</>;
|
|
1179
1182
|
|
|
@@ -2,10 +2,10 @@ import { useMemo, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Icon,
|
|
5
|
-
|
|
5
|
+
Row,
|
|
6
6
|
Spinner,
|
|
7
7
|
Text,
|
|
8
|
-
} from '
|
|
8
|
+
} from 'native-base';
|
|
9
9
|
import UiGlobals from '../../UiGlobals.js';
|
|
10
10
|
import withDraggable from '../Hoc/withDraggable.js';
|
|
11
11
|
import IconButton from '../Buttons/IconButton.js';
|
|
@@ -42,7 +42,7 @@ export default function TreeNode(props) {
|
|
|
42
42
|
|
|
43
43
|
return useMemo(() => {
|
|
44
44
|
|
|
45
|
-
return <
|
|
45
|
+
return <Row
|
|
46
46
|
alignItems="center"
|
|
47
47
|
flexGrow={1}
|
|
48
48
|
{...nodeProps}
|
|
@@ -68,7 +68,7 @@ export default function TreeNode(props) {
|
|
|
68
68
|
{...propsToPass}
|
|
69
69
|
>{text}</Text>
|
|
70
70
|
|
|
71
|
-
</
|
|
71
|
+
</Row>;
|
|
72
72
|
}, [
|
|
73
73
|
nodeProps,
|
|
74
74
|
adjustedBg,
|