@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,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Row,
|
|
3
3
|
Text,
|
|
4
|
-
} from '
|
|
4
|
+
} from 'native-base';
|
|
5
5
|
import styles from '../../Constants/Styles.js';
|
|
6
6
|
|
|
7
7
|
export default function Label(props) {
|
|
8
8
|
const {
|
|
9
9
|
w = styles.FORM_LABEL_WIDTH,
|
|
10
10
|
} = props;
|
|
11
|
-
return <
|
|
11
|
+
return <Row
|
|
12
12
|
w={w}
|
|
13
13
|
minWidth="120px"
|
|
14
14
|
// maxWidth="50%"
|
|
@@ -21,5 +21,5 @@ export default function Label(props) {
|
|
|
21
21
|
numberOfLines={1}
|
|
22
22
|
ellipsizeMode="head"
|
|
23
23
|
>{props.children}</Text>
|
|
24
|
-
</
|
|
24
|
+
</Row>;
|
|
25
25
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, useMemo, useCallback, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
|
+
Column,
|
|
4
5
|
FlatList,
|
|
5
6
|
Modal,
|
|
6
7
|
Pressable,
|
|
7
8
|
Icon,
|
|
9
|
+
Row,
|
|
8
10
|
ScrollView,
|
|
9
|
-
|
|
10
|
-
} from '
|
|
11
|
+
Text,
|
|
12
|
+
} from 'native-base';
|
|
11
13
|
import {
|
|
12
14
|
SELECTION_MODE_SINGLE,
|
|
13
15
|
SELECTION_MODE_MULTI,
|
|
@@ -516,7 +518,7 @@ function GridComponent(props) {
|
|
|
516
518
|
|
|
517
519
|
if (showRowExpander && !isHeaderRow) {
|
|
518
520
|
const isExpanded = getIsExpanded(index);
|
|
519
|
-
rowComponent = <
|
|
521
|
+
rowComponent = <Column>
|
|
520
522
|
<Row>
|
|
521
523
|
<ExpandButton
|
|
522
524
|
isExpanded={isExpanded}
|
|
@@ -530,7 +532,7 @@ function GridComponent(props) {
|
|
|
530
532
|
{rowComponent}
|
|
531
533
|
</Row>
|
|
532
534
|
{isExpanded ? getExpandedRowContent(row) : null}
|
|
533
|
-
</
|
|
535
|
+
</Column>
|
|
534
536
|
}
|
|
535
537
|
return rowComponent;
|
|
536
538
|
},
|
|
@@ -920,7 +922,7 @@ function GridComponent(props) {
|
|
|
920
922
|
|
|
921
923
|
if (!isInited) {
|
|
922
924
|
// first time through, render a placeholder so we can get container dimensions
|
|
923
|
-
return <
|
|
925
|
+
return <Column
|
|
924
926
|
flex={1}
|
|
925
927
|
w="100%"
|
|
926
928
|
onLayout={(e) => {
|
|
@@ -1057,7 +1059,7 @@ function GridComponent(props) {
|
|
|
1057
1059
|
</Modal>;
|
|
1058
1060
|
}
|
|
1059
1061
|
|
|
1060
|
-
grid = <
|
|
1062
|
+
grid = <Column
|
|
1061
1063
|
{...testProps('Grid')}
|
|
1062
1064
|
testID="outerContainer"
|
|
1063
1065
|
ref={containerRef}
|
|
@@ -1072,7 +1074,7 @@ function GridComponent(props) {
|
|
|
1072
1074
|
>
|
|
1073
1075
|
{topToolbar}
|
|
1074
1076
|
|
|
1075
|
-
<
|
|
1077
|
+
<Column
|
|
1076
1078
|
testID="gridContainer"
|
|
1077
1079
|
ref={gridContainerRef}
|
|
1078
1080
|
w="100%"
|
|
@@ -1086,13 +1088,13 @@ function GridComponent(props) {
|
|
|
1086
1088
|
}}
|
|
1087
1089
|
>
|
|
1088
1090
|
{grid}
|
|
1089
|
-
</
|
|
1091
|
+
</Column>
|
|
1090
1092
|
|
|
1091
1093
|
{listFooterComponent}
|
|
1092
1094
|
|
|
1093
1095
|
{columnSelector}
|
|
1094
1096
|
|
|
1095
|
-
</
|
|
1097
|
+
</Column>
|
|
1096
1098
|
|
|
1097
1099
|
if (isDropTarget) {
|
|
1098
1100
|
grid = <Box
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
Box,
|
|
4
4
|
Icon,
|
|
5
5
|
Pressable,
|
|
6
|
-
|
|
6
|
+
Row,
|
|
7
7
|
Text,
|
|
8
|
-
} from '
|
|
8
|
+
} from 'native-base';
|
|
9
9
|
import {
|
|
10
10
|
SORT_ASCENDING,
|
|
11
11
|
SORT_DESCENDING,
|
|
@@ -475,7 +475,7 @@ export default function GridHeaderRow(props) {
|
|
|
475
475
|
return headerColumns;
|
|
476
476
|
};
|
|
477
477
|
|
|
478
|
-
return <
|
|
478
|
+
return <Row
|
|
479
479
|
w="100%"
|
|
480
480
|
bg="trueGray.200"
|
|
481
481
|
style={{
|
|
@@ -483,7 +483,7 @@ export default function GridHeaderRow(props) {
|
|
|
483
483
|
}}
|
|
484
484
|
>
|
|
485
485
|
{renderHeaders()}
|
|
486
|
-
</
|
|
486
|
+
</Row>;
|
|
487
487
|
|
|
488
488
|
}, [
|
|
489
489
|
Repository,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
|
-
|
|
4
|
+
Row,
|
|
5
5
|
Text,
|
|
6
|
-
} from '
|
|
6
|
+
} from 'native-base';
|
|
7
7
|
import {
|
|
8
8
|
UI_MODE_WEB,
|
|
9
9
|
} from '../../Constants/UiModes.js';
|
|
@@ -102,7 +102,7 @@ function GridRow(props) {
|
|
|
102
102
|
userSelect: 'none',
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
return <
|
|
105
|
+
return <Row key={key} {...propsToPass} {...extraProps}>{config.renderer(item)}</Row>;
|
|
106
106
|
}
|
|
107
107
|
if (config.fieldName) {
|
|
108
108
|
if (item?.properties && item.properties[config.fieldName]) {
|
|
@@ -204,19 +204,19 @@ function GridRow(props) {
|
|
|
204
204
|
</>;
|
|
205
205
|
|
|
206
206
|
if (dragSourceRef) {
|
|
207
|
-
rowContents = <
|
|
207
|
+
rowContents = <Row flexGrow={1} flex={1} w="100%" bg={bg} ref={dragSourceRef}>{rowContents}</Row>;
|
|
208
208
|
}
|
|
209
209
|
if (dropTargetRef) {
|
|
210
|
-
rowContents = <
|
|
210
|
+
rowContents = <Row flexGrow={1} flex={1} w="100%" bg={bg} ref={dropTargetRef}>{rowContents}</Row>;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
return <
|
|
213
|
+
return <Row
|
|
214
214
|
alignItems="center"
|
|
215
215
|
flexGrow={1}
|
|
216
216
|
{...rowProps}
|
|
217
217
|
bg={bg}
|
|
218
218
|
key={hash}
|
|
219
|
-
>{rowContents}</
|
|
219
|
+
>{rowContents}</Row>;
|
|
220
220
|
}, [
|
|
221
221
|
columnsConfig,
|
|
222
222
|
columnProps,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Column,
|
|
3
3
|
Icon,
|
|
4
|
-
|
|
4
|
+
Row,
|
|
5
|
+
Text,
|
|
6
|
+
} from 'native-base';
|
|
5
7
|
import styles from '../../Styles/StyleSheets.js';
|
|
6
8
|
import withDraggable from '../Hoc/withDraggable.js';
|
|
7
9
|
import GripVertical from '../Icons/GripVertical.js';
|
|
@@ -11,7 +13,7 @@ function HeaderReorderHandle(props) {
|
|
|
11
13
|
isDragging,
|
|
12
14
|
} = props;
|
|
13
15
|
|
|
14
|
-
return <
|
|
16
|
+
return <Column
|
|
15
17
|
testID="HeaderReorderHandle"
|
|
16
18
|
bg={isDragging ? 'trueGray.300' : 'trueGray.100'}
|
|
17
19
|
h="100%"
|
|
@@ -21,7 +23,7 @@ function HeaderReorderHandle(props) {
|
|
|
21
23
|
style={styles.ewResize}
|
|
22
24
|
>
|
|
23
25
|
<Icon as={GripVertical} testID="handle" size="xs" w="100%" h="100%" color="#ccc" />
|
|
24
|
-
</
|
|
26
|
+
</Column>;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
function withAdditionalProps(WrappedComponent) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Column,
|
|
3
3
|
Icon,
|
|
4
|
-
|
|
4
|
+
Row,
|
|
5
|
+
Text,
|
|
6
|
+
} from 'native-base';
|
|
5
7
|
import styles from '../../Styles/StyleSheets.js';
|
|
6
8
|
import withDraggable from '../Hoc/withDraggable.js';
|
|
7
9
|
import GripLinesVertical from '../Icons/GripLinesVertical.js';
|
|
@@ -11,7 +13,7 @@ function HeaderResizeHandle(props) {
|
|
|
11
13
|
isDragging,
|
|
12
14
|
} = props;
|
|
13
15
|
|
|
14
|
-
return <
|
|
16
|
+
return <Column
|
|
15
17
|
testID="HeaderResizeHandle"
|
|
16
18
|
bg={isDragging ? 'trueGray.300' : 'trueGray.100'}
|
|
17
19
|
h="100%"
|
|
@@ -21,7 +23,7 @@ function HeaderResizeHandle(props) {
|
|
|
21
23
|
style={styles.ewResize}
|
|
22
24
|
>
|
|
23
25
|
<Icon as={GripLinesVertical} testID="handle" size="sm" color="#ccc" />
|
|
24
|
-
</
|
|
26
|
+
</Column>;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
function withAdditionalProps(WrappedComponent) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Column,
|
|
3
|
+
Row,
|
|
4
4
|
Text,
|
|
5
|
-
} from '
|
|
5
|
+
} from 'native-base';
|
|
6
6
|
import IconButton from '../Buttons/IconButton.js';
|
|
7
7
|
import Rotate from '../Icons/Rotate.js';
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ export default function NoRecordsFound(props) {
|
|
|
18
18
|
|
|
19
19
|
let component = textComponent;
|
|
20
20
|
if (onRefresh) {
|
|
21
|
-
component = <
|
|
21
|
+
component = <Row justifyContent="center" alignItems="center" w="100%" flex={1}>
|
|
22
22
|
<IconButton
|
|
23
23
|
_icon={{
|
|
24
24
|
as: Rotate,
|
|
@@ -35,11 +35,11 @@ export default function NoRecordsFound(props) {
|
|
|
35
35
|
ml={-4}
|
|
36
36
|
/>
|
|
37
37
|
{textComponent}
|
|
38
|
-
</
|
|
38
|
+
</Row>;
|
|
39
39
|
} else {
|
|
40
|
-
component = <
|
|
40
|
+
component = <Column justifyContent="center" alignItems="center" w="100%" flex={1}>
|
|
41
41
|
{textComponent}
|
|
42
|
-
</
|
|
42
|
+
</Column>;
|
|
43
43
|
}
|
|
44
44
|
return component;
|
|
45
45
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Column,
|
|
3
3
|
Icon,
|
|
4
|
-
|
|
4
|
+
Row,
|
|
5
|
+
Text,
|
|
6
|
+
} from 'native-base';
|
|
5
7
|
import styles from '../../Styles/StyleSheets.js';
|
|
6
8
|
import GripVertical from '../Icons/GripVertical.js';
|
|
7
9
|
|
|
8
10
|
function RowDragHandle(props) {
|
|
9
|
-
return <
|
|
11
|
+
return <Column
|
|
10
12
|
testID="HeaderReorderHandle"
|
|
11
13
|
bg="trueGray.100"
|
|
12
14
|
// h="100%"
|
|
@@ -16,7 +18,7 @@ function RowDragHandle(props) {
|
|
|
16
18
|
style={styles.ewResize}
|
|
17
19
|
>
|
|
18
20
|
<Icon as={GripVertical} testID="handle" size="xs" w="100%" h="100%" color="#ccc" />
|
|
19
|
-
</
|
|
21
|
+
</Column>;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export default RowDragHandle;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { useState, useRef, } from 'react';
|
|
1
|
+
import React, { useState, useRef, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
AlertDialog,
|
|
4
4
|
Button,
|
|
5
|
-
|
|
6
|
-
VStack,
|
|
5
|
+
Column,
|
|
7
6
|
Icon,
|
|
8
|
-
|
|
7
|
+
Modal,
|
|
8
|
+
Row,
|
|
9
9
|
Text,
|
|
10
|
-
} from '
|
|
10
|
+
} from 'native-base';
|
|
11
11
|
import {
|
|
12
12
|
ALERT_MODE_OK,
|
|
13
13
|
ALERT_MODE_YES,
|
|
@@ -129,9 +129,7 @@ export default function withAlert(WrappedComponent) {
|
|
|
129
129
|
colorScheme="coolGray"
|
|
130
130
|
variant="ghost" // or unstyled
|
|
131
131
|
ref={cancelRef}
|
|
132
|
-
>
|
|
133
|
-
<ButtonText>Cancel</ButtonText>
|
|
134
|
-
</Button>);
|
|
132
|
+
>Cancel</Button>);
|
|
135
133
|
}
|
|
136
134
|
switch(mode) {
|
|
137
135
|
case ALERT_MODE_OK:
|
|
@@ -141,9 +139,7 @@ export default function withAlert(WrappedComponent) {
|
|
|
141
139
|
ref={autoFocusRef}
|
|
142
140
|
onPress={onOk}
|
|
143
141
|
color="#fff"
|
|
144
|
-
>
|
|
145
|
-
<ButtonText>OK</ButtonText>
|
|
146
|
-
</Button>);
|
|
142
|
+
>OK</Button>);
|
|
147
143
|
break;
|
|
148
144
|
case ALERT_MODE_YES:
|
|
149
145
|
buttons.push(<Button
|
|
@@ -152,9 +148,7 @@ export default function withAlert(WrappedComponent) {
|
|
|
152
148
|
onPress={onYes}
|
|
153
149
|
color="#fff"
|
|
154
150
|
colorScheme="danger"
|
|
155
|
-
>
|
|
156
|
-
<ButtonText>Yes</ButtonText>
|
|
157
|
-
</Button>);
|
|
151
|
+
>Yes</Button>);
|
|
158
152
|
break;
|
|
159
153
|
case ALERT_MODE_YES_NO:
|
|
160
154
|
// TODO: need to create a new colorScheme so this can be black with blank background
|
|
@@ -165,18 +159,14 @@ export default function withAlert(WrappedComponent) {
|
|
|
165
159
|
variant="ghost"
|
|
166
160
|
// colorScheme="neutral"
|
|
167
161
|
mr={2}
|
|
168
|
-
>
|
|
169
|
-
<ButtonText>No</ButtonText>
|
|
170
|
-
</Button>);
|
|
162
|
+
>No</Button>);
|
|
171
163
|
buttons.push(<Button
|
|
172
164
|
key="yesBtn"
|
|
173
165
|
ref={autoFocusRef}
|
|
174
166
|
onPress={onYes}
|
|
175
167
|
color="#fff"
|
|
176
168
|
colorScheme="danger"
|
|
177
|
-
>
|
|
178
|
-
<ButtonText>Yes</ButtonText>
|
|
179
|
-
</Button>);
|
|
169
|
+
>Yes</Button>);
|
|
180
170
|
break;
|
|
181
171
|
case ALERT_MODE_CUSTOM:
|
|
182
172
|
_.each(customButtons, (button) => {
|
|
@@ -204,12 +194,12 @@ export default function withAlert(WrappedComponent) {
|
|
|
204
194
|
{canClose && <AlertDialog.CloseButton />}
|
|
205
195
|
<AlertDialog.Header>{title}</AlertDialog.Header>
|
|
206
196
|
<AlertDialog.Body>
|
|
207
|
-
<
|
|
208
|
-
<
|
|
197
|
+
<Row alignItems="center">
|
|
198
|
+
<Column w="40px" p={0} mr={5}>
|
|
209
199
|
<Icon as={mode === ALERT_MODE_INFO ? CircleInfo : TriangleExclamation} size={10} color={mode === ALERT_MODE_INFO ? '#000' : '#f00'} />
|
|
210
|
-
</
|
|
200
|
+
</Column>
|
|
211
201
|
<Text flex={1}>{message}</Text>
|
|
212
|
-
</
|
|
202
|
+
</Row>
|
|
213
203
|
</AlertDialog.Body>
|
|
214
204
|
<AlertDialog.Footer>
|
|
215
205
|
{buttons}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Box,
|
|
4
|
+
Column,
|
|
5
|
+
FlatList,
|
|
6
|
+
Icon,
|
|
4
7
|
Modal,
|
|
5
8
|
Pressable,
|
|
9
|
+
Row,
|
|
10
|
+
Spacer,
|
|
6
11
|
Text,
|
|
7
|
-
} from '
|
|
12
|
+
} from 'native-base';
|
|
8
13
|
import {
|
|
9
14
|
UI_MODE_WEB,
|
|
10
15
|
CURRENT_MODE,
|
|
@@ -161,9 +166,9 @@ export default function withContextMenu(WrappedComponent) {
|
|
|
161
166
|
isOpen={isContextMenuShown && !disableContextMenu}
|
|
162
167
|
onClose={() => setIsContextMenuShown(false)}
|
|
163
168
|
>
|
|
164
|
-
<
|
|
169
|
+
<Column bg="#fff" w={CONTEXT_MENU_WIDTH} position="absolute" top={contextMenuY} left={contextMenuX} onLayout={onLayout}>
|
|
165
170
|
{contextMenuItemComponents}
|
|
166
|
-
</
|
|
171
|
+
</Column>
|
|
167
172
|
</Modal>
|
|
168
173
|
</>;
|
|
169
174
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Column,
|
|
4
4
|
Modal,
|
|
5
|
-
|
|
5
|
+
Row,
|
|
6
6
|
ScrollView,
|
|
7
7
|
Text,
|
|
8
|
-
} from '
|
|
8
|
+
} from 'native-base';
|
|
9
9
|
import {
|
|
10
10
|
EDITOR_TYPE__PLAIN,
|
|
11
11
|
} from '../../Constants/Editor.js';
|
|
@@ -318,10 +318,10 @@ export default function withFilters(WrappedComponent) {
|
|
|
318
318
|
{...elementProps}
|
|
319
319
|
/>;
|
|
320
320
|
if (showLabels && field !== 'q') {
|
|
321
|
-
filterElement = <
|
|
321
|
+
filterElement = <Row key={'label-' + ix} alignItems="center" h="100%">
|
|
322
322
|
<Text ml={2} mr={1} fontSize={UiGlobals.styles.FILTER_LABEL_FONTSIZE}>{title}</Text>
|
|
323
323
|
{filterElement}
|
|
324
|
-
</
|
|
324
|
+
</Row>;
|
|
325
325
|
}
|
|
326
326
|
filterElements.push(filterElement);
|
|
327
327
|
});
|
|
@@ -427,13 +427,13 @@ export default function withFilters(WrappedComponent) {
|
|
|
427
427
|
renderedFilters = renderFilters(),
|
|
428
428
|
hasFilters = !!renderedFilters.length;
|
|
429
429
|
topToolbar = <Toolbar>
|
|
430
|
-
<
|
|
430
|
+
<Row flex={1} alignItems="center">
|
|
431
431
|
<ScrollView horizontal={true} contentContainerStyle={{ alignItems: 'center' }}>
|
|
432
432
|
<Text fontStyle="italic" pr={2} userSelect="none">Filters:{hasFilters ? '' : ' None'}</Text>
|
|
433
433
|
{renderedFilters}
|
|
434
434
|
</ScrollView>
|
|
435
|
-
</
|
|
436
|
-
<
|
|
435
|
+
</Row>
|
|
436
|
+
<Row flex={hasFilters ? null : 1} alignItems="center" alignSelf="flex-end">
|
|
437
437
|
{showClearFiltersButton && <IconButton
|
|
438
438
|
key="clearFiltersBtn"
|
|
439
439
|
_icon={{
|
|
@@ -458,7 +458,7 @@ export default function withFilters(WrappedComponent) {
|
|
|
458
458
|
}}
|
|
459
459
|
tooltip="Swap filters"
|
|
460
460
|
/>}
|
|
461
|
-
</
|
|
461
|
+
</Row>
|
|
462
462
|
</Toolbar>;
|
|
463
463
|
|
|
464
464
|
if (isFilterSelectorShown) { // this is always false when isUsingCustomFilters
|
|
@@ -541,7 +541,7 @@ export default function withFilters(WrappedComponent) {
|
|
|
541
541
|
isOpen={true}
|
|
542
542
|
onClose={() => setIsFilterSelectorShown(false)}
|
|
543
543
|
>
|
|
544
|
-
<
|
|
544
|
+
<Column bg="#fff" w={500}>
|
|
545
545
|
<FormPanel
|
|
546
546
|
title="Filter Selector"
|
|
547
547
|
instructions="Please select which fields to filter by."
|
|
@@ -590,7 +590,7 @@ export default function withFilters(WrappedComponent) {
|
|
|
590
590
|
setModalSlots(slots);
|
|
591
591
|
}}
|
|
592
592
|
/>
|
|
593
|
-
</
|
|
593
|
+
</Column>
|
|
594
594
|
</Modal>;
|
|
595
595
|
}
|
|
596
596
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import React, { useState, useRef, } from 'react';
|
|
1
|
+
import React, { useState, useEffect, useRef, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Column,
|
|
5
|
+
Modal,
|
|
6
|
+
Row,
|
|
7
|
+
Text,
|
|
8
|
+
} from 'native-base';
|
|
6
9
|
import {
|
|
7
10
|
EDITOR_TYPE__INLINE,
|
|
8
11
|
} from '../../Constants/Editor.js';
|
|
@@ -133,7 +136,7 @@ export default function withInlineEditor(WrappedComponent, skipWrappers = false)
|
|
|
133
136
|
}
|
|
134
137
|
}}
|
|
135
138
|
></Box>}
|
|
136
|
-
<
|
|
139
|
+
<Column
|
|
137
140
|
ref={inlineEditorRef}
|
|
138
141
|
position="absolute"
|
|
139
142
|
zIndex={10}
|
|
@@ -165,7 +168,7 @@ export default function withInlineEditor(WrappedComponent, skipWrappers = false)
|
|
|
165
168
|
py={1}
|
|
166
169
|
px={0}
|
|
167
170
|
/>}
|
|
168
|
-
</
|
|
171
|
+
</Column>
|
|
169
172
|
</>;
|
|
170
173
|
}
|
|
171
174
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useState, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Column,
|
|
4
|
+
Button,
|
|
4
5
|
Modal,
|
|
5
|
-
} from '
|
|
6
|
+
} from 'native-base';
|
|
6
7
|
import * as yup from 'yup'; // https://github.com/jquense/yup#string
|
|
7
8
|
import Inflector from 'inflector-js';
|
|
8
9
|
import qs from 'qs';
|
|
@@ -179,7 +180,7 @@ export default function withPdfButton(WrappedComponent) {
|
|
|
179
180
|
isOpen={true}
|
|
180
181
|
onClose={() => setIsModalShown(false)}
|
|
181
182
|
>
|
|
182
|
-
<
|
|
183
|
+
<Column bg="#fff" w={width} h={height}>
|
|
183
184
|
<FormPanel
|
|
184
185
|
title="PDF Fields to Show"
|
|
185
186
|
instructions="Please select which fields to show in the PDF."
|
|
@@ -200,7 +201,7 @@ export default function withPdfButton(WrappedComponent) {
|
|
|
200
201
|
submitBtnLabel="View PDF"
|
|
201
202
|
useAdditionalEditButtons={false}
|
|
202
203
|
/>
|
|
203
|
-
</
|
|
204
|
+
</Column>
|
|
204
205
|
</Modal>;
|
|
205
206
|
}
|
|
206
207
|
return <>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Modal,
|
|
4
|
-
} from '
|
|
4
|
+
} from 'native-base';
|
|
5
5
|
import Clipboard from '../Icons/Clipboard.js';
|
|
6
6
|
import Duplicate from '../Icons/Duplicate.js';
|
|
7
7
|
import Edit from '../Icons/Edit.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Tooltip,
|
|
4
|
-
} from '
|
|
4
|
+
} from 'native-base';
|
|
5
5
|
|
|
6
6
|
// NOTE: Can't seem to get this working for some elements like Combo or File
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ export default function withTooltip(WrappedComponent) {
|
|
|
11
11
|
tooltip,
|
|
12
12
|
tooltipPlacement = 'bottom',
|
|
13
13
|
} = props;
|
|
14
|
-
|
|
14
|
+
if (!tooltip) {
|
|
15
15
|
return <WrappedComponent {...props} />;
|
|
16
|
-
|
|
16
|
+
}
|
|
17
17
|
return <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
18
18
|
<WrappedComponent {...props} />
|
|
19
19
|
</Tooltip>;
|