@onehat/ui 0.3.260 → 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 +7 -7
- 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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useState, useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
-
|
|
4
|
+
VStack,
|
|
5
5
|
Icon,
|
|
6
|
-
|
|
6
|
+
HStack,
|
|
7
7
|
ScrollView,
|
|
8
8
|
Text,
|
|
9
|
-
} from '
|
|
9
|
+
} from '@gluestack-ui/themed';
|
|
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 = <HStack
|
|
241
241
|
// key={'tab' + ix}
|
|
242
242
|
// >
|
|
243
243
|
// {button}
|
|
244
|
-
// </
|
|
244
|
+
// </HStack>;
|
|
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 = <VStack
|
|
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
|
+
<VStack flex={1} w="100%" justifyContent="flex-end">
|
|
423
423
|
{renderedToggleButton}
|
|
424
|
-
</
|
|
425
|
-
</
|
|
424
|
+
</VStack>
|
|
425
|
+
</VStack>;
|
|
426
426
|
if (renderedCurrentTabContent) {
|
|
427
|
-
tabBar = <
|
|
427
|
+
tabBar = <HStack flex={1} w="100%" {...propsToPass}>
|
|
428
428
|
{tabBar}
|
|
429
|
-
<
|
|
429
|
+
<VStack
|
|
430
430
|
alignItems="center"
|
|
431
431
|
justifyContent="flex-start"
|
|
432
432
|
flex={1}
|
|
433
433
|
>
|
|
434
434
|
{renderedCurrentTabContent}
|
|
435
|
-
</
|
|
436
|
-
</
|
|
435
|
+
</VStack>
|
|
436
|
+
</HStack>;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
if (direction === HORIZONTAL) {
|
|
440
|
-
tabBar = <
|
|
440
|
+
tabBar = <HStack
|
|
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
|
+
<HStack flex={1} h="100%" justifyContent="flex-end">
|
|
455
|
+
<HStack h="100%">
|
|
456
456
|
{renderedToggleButton}
|
|
457
|
-
</
|
|
458
|
-
</
|
|
459
|
-
</
|
|
457
|
+
</HStack>
|
|
458
|
+
</HStack>
|
|
459
|
+
</HStack>;
|
|
460
460
|
if (renderedCurrentTabContent) {
|
|
461
|
-
tabBar = <
|
|
461
|
+
tabBar = <VStack flex={1} w="100%" {...propsToPass}>
|
|
462
462
|
{tabBar}
|
|
463
|
-
<
|
|
463
|
+
<VStack
|
|
464
464
|
alignItems="center"
|
|
465
465
|
justifyContent="flex-start"
|
|
466
466
|
flex={1}
|
|
467
467
|
>
|
|
468
468
|
{renderedCurrentTabContent}
|
|
469
|
-
</
|
|
470
|
-
</
|
|
469
|
+
</VStack>
|
|
470
|
+
</VStack>;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
return tabBar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from '
|
|
2
|
+
HStack,
|
|
3
|
+
} from '@gluestack-ui/themed';
|
|
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 ? <HStack flex={1} borderLeftWidth={1} borderLeftColor="trueGray.100">{toolbarItems}</HStack> : null}
|
|
19
19
|
</Toolbar>;
|
|
20
20
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { useEffect, useMemo, } from 'react';
|
|
2
2
|
import {
|
|
3
|
+
Button,
|
|
4
|
+
ButtonText,
|
|
5
|
+
HStack,
|
|
3
6
|
Icon,
|
|
4
|
-
Row,
|
|
5
7
|
Text,
|
|
6
|
-
} from '
|
|
8
|
+
} from '@gluestack-ui/themed';
|
|
7
9
|
import useForceUpdate from '../../Hooks/useForceUpdate.js';
|
|
8
|
-
import Button from '../Buttons/Button.js';
|
|
10
|
+
// import Button from '../Buttons/Button.js';
|
|
9
11
|
import IconButton from '../Buttons/IconButton.js';
|
|
10
12
|
import AngleLeft from '../Icons/AngleLeft.js';
|
|
11
13
|
import AnglesLeft from '../Icons/AnglesLeft.js';
|
|
@@ -70,7 +72,9 @@ export default function Pagination(props) {
|
|
|
70
72
|
onPress={() => Repository.showMore()}
|
|
71
73
|
isDisabled={isDisabled}
|
|
72
74
|
tooltip="Show More"
|
|
73
|
-
>
|
|
75
|
+
>
|
|
76
|
+
<ButtonText>Show More</ButtonText>
|
|
77
|
+
</Button>);
|
|
74
78
|
}
|
|
75
79
|
if (!Repository.isLocal) {
|
|
76
80
|
items.push(<IconButton
|
|
@@ -108,7 +112,7 @@ export default function Pagination(props) {
|
|
|
108
112
|
tooltip="Previous Page"
|
|
109
113
|
/>);
|
|
110
114
|
if (!minimize) {
|
|
111
|
-
items.push(<
|
|
115
|
+
items.push(<HStack
|
|
112
116
|
key="pageSelector"
|
|
113
117
|
mx={3}
|
|
114
118
|
justifyContent="center"
|
|
@@ -127,7 +131,7 @@ export default function Pagination(props) {
|
|
|
127
131
|
tooltip="Set Page"
|
|
128
132
|
/>
|
|
129
133
|
<Text ml={2}>of {totalPages}</Text>
|
|
130
|
-
</
|
|
134
|
+
</HStack>);
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
isDisabled = page === totalPages || totalPages <= 1;
|
|
@@ -176,7 +180,7 @@ export default function Pagination(props) {
|
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
182
|
|
|
179
|
-
return <
|
|
183
|
+
return <HStack
|
|
180
184
|
justifyContent="flex-start"
|
|
181
185
|
alignItems="center"
|
|
182
186
|
px={2}
|
|
@@ -184,7 +188,7 @@ export default function Pagination(props) {
|
|
|
184
188
|
{...props}
|
|
185
189
|
>
|
|
186
190
|
{items}
|
|
187
|
-
</
|
|
191
|
+
</HStack>;
|
|
188
192
|
}, [
|
|
189
193
|
Repository?.hash,
|
|
190
194
|
showPagination,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
HStack,
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
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 ? <HStack flex={1} {...toolbarProps}>{toolbarItems}</HStack> : null}
|
|
54
54
|
</Toolbar>;
|
|
55
55
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from '
|
|
2
|
+
HStack,
|
|
3
|
+
} from '@gluestack-ui/themed';
|
|
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 <HStack
|
|
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
|
+
</HStack>;
|
|
21
21
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, useMemo, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
FlatList,
|
|
3
|
+
VStack,
|
|
5
4
|
Modal,
|
|
6
5
|
Pressable,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Text,
|
|
10
|
-
} from 'native-base';
|
|
6
|
+
HStack,
|
|
7
|
+
} from '@gluestack-ui/themed';
|
|
11
8
|
import {
|
|
12
9
|
SELECTION_MODE_SINGLE,
|
|
13
10
|
SELECTION_MODE_MULTI,
|
|
@@ -1109,15 +1106,15 @@ function TreeComponent(props) {
|
|
|
1109
1106
|
}
|
|
1110
1107
|
|
|
1111
1108
|
return <>
|
|
1112
|
-
<
|
|
1109
|
+
<VStack
|
|
1113
1110
|
{...testProps('Tree')}
|
|
1114
1111
|
flex={1}
|
|
1115
1112
|
w="100%"
|
|
1116
1113
|
>
|
|
1117
1114
|
{topToolbar}
|
|
1118
|
-
{headerToolbarItemComponents?.length && <
|
|
1115
|
+
{headerToolbarItemComponents?.length && <HStack>{headerToolbarItemComponents}</HStack>}
|
|
1119
1116
|
|
|
1120
|
-
<
|
|
1117
|
+
<VStack
|
|
1121
1118
|
ref={treeRef}
|
|
1122
1119
|
w="100%"
|
|
1123
1120
|
flex={1}
|
|
@@ -1131,16 +1128,16 @@ function TreeComponent(props) {
|
|
|
1131
1128
|
>
|
|
1132
1129
|
{!treeNodes?.length ? <NoRecordsFound text={noneFoundText} onRefresh={reloadTree} /> :
|
|
1133
1130
|
treeNodes}
|
|
1134
|
-
</
|
|
1131
|
+
</VStack>
|
|
1135
1132
|
|
|
1136
1133
|
{treeFooterComponent}
|
|
1137
|
-
</
|
|
1134
|
+
</VStack>
|
|
1138
1135
|
|
|
1139
1136
|
<Modal
|
|
1140
1137
|
isOpen={isSearchModalShown}
|
|
1141
1138
|
onClose={() => setIsSearchModalShown(false)}
|
|
1142
1139
|
>
|
|
1143
|
-
<
|
|
1140
|
+
<VStack bg="#fff" w={300}>
|
|
1144
1141
|
<FormPanel
|
|
1145
1142
|
title="Choose Tree Node"
|
|
1146
1143
|
instructions="Multiple tree nodes matched your search. Please select which one to show."
|
|
@@ -1176,7 +1173,7 @@ function TreeComponent(props) {
|
|
|
1176
1173
|
setIsSearchModalShown(false);
|
|
1177
1174
|
}}
|
|
1178
1175
|
/>
|
|
1179
|
-
</
|
|
1176
|
+
</VStack>
|
|
1180
1177
|
</Modal>
|
|
1181
1178
|
</>;
|
|
1182
1179
|
|
|
@@ -2,10 +2,10 @@ import { useMemo, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Icon,
|
|
5
|
-
|
|
5
|
+
HStack,
|
|
6
6
|
Spinner,
|
|
7
7
|
Text,
|
|
8
|
-
} from '
|
|
8
|
+
} from '@gluestack-ui/themed';
|
|
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 <HStack
|
|
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
|
+
</HStack>;
|
|
72
72
|
}, [
|
|
73
73
|
nodeProps,
|
|
74
74
|
adjustedBg,
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { useRef, useState, } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Button,
|
|
4
|
+
ButtonText,
|
|
5
|
+
HStack,
|
|
4
6
|
Icon,
|
|
5
7
|
ScrollView,
|
|
6
|
-
Row,
|
|
7
8
|
Text,
|
|
8
|
-
|
|
9
|
+
VStack,
|
|
10
|
+
} from '@gluestack-ui/themed';
|
|
9
11
|
import {
|
|
10
12
|
EDITOR_TYPE__SIDE,
|
|
11
13
|
} from '../../Constants/Editor.js';
|
|
@@ -15,7 +17,7 @@ import withPdfButton from '../Hoc/withPdfButton.js';
|
|
|
15
17
|
import inArray from '../../Functions/inArray.js';
|
|
16
18
|
import getComponentFromType from '../../Functions/getComponentFromType.js';
|
|
17
19
|
import buildAdditionalButtons from '../../Functions/buildAdditionalButtons.js';
|
|
18
|
-
import Button from '../Buttons/Button.js';
|
|
20
|
+
// import Button from '../Buttons/Button.js';
|
|
19
21
|
import Label from '../Form/Label.js';
|
|
20
22
|
import Pencil from '../Icons/Pencil.js';
|
|
21
23
|
import Footer from '../Layout/Footer.js';
|
|
@@ -71,13 +73,17 @@ function Viewer(props) {
|
|
|
71
73
|
items,
|
|
72
74
|
// onChange: onEditorChange,
|
|
73
75
|
useSelectorId = false,
|
|
76
|
+
isHidden = false,
|
|
74
77
|
isHiddenInViewMode = false,
|
|
75
78
|
...propsToPass
|
|
76
79
|
} = item,
|
|
77
80
|
editorTypeProps = {};
|
|
78
81
|
|
|
82
|
+
if (isHidden) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
79
85
|
if (isHiddenInViewMode) {
|
|
80
|
-
return;
|
|
86
|
+
return null;
|
|
81
87
|
}
|
|
82
88
|
const propertyDef = name && Repository?.getSchema().getPropertyDefinition(name);
|
|
83
89
|
if (!type) {
|
|
@@ -157,10 +163,10 @@ function Viewer(props) {
|
|
|
157
163
|
/>;
|
|
158
164
|
|
|
159
165
|
if (item.additionalViewButtons) {
|
|
160
|
-
element = <
|
|
166
|
+
element = <HStack flexWrap="wrap">
|
|
161
167
|
{element}
|
|
162
168
|
{buildAdditionalButtons(item.additionalViewButtons, self)}
|
|
163
|
-
</
|
|
169
|
+
</HStack>;
|
|
164
170
|
}
|
|
165
171
|
|
|
166
172
|
if (label) {
|
|
@@ -170,7 +176,7 @@ function Viewer(props) {
|
|
|
170
176
|
}
|
|
171
177
|
element = <><Label {...labelProps}>{label}</Label>{element}</>;
|
|
172
178
|
}
|
|
173
|
-
return <
|
|
179
|
+
return <HStack key={ix}>{element}</HStack>;
|
|
174
180
|
},
|
|
175
181
|
buildAncillary = () => {
|
|
176
182
|
const components = [];
|
|
@@ -203,12 +209,15 @@ function Viewer(props) {
|
|
|
203
209
|
canRowsReorder={false}
|
|
204
210
|
/>;
|
|
205
211
|
if (title) {
|
|
212
|
+
if (record?.displayValue) {
|
|
213
|
+
title += ' for ' + record.displayValue;
|
|
214
|
+
}
|
|
206
215
|
title = <Text
|
|
207
216
|
fontSize={styles.VIEWER_ANCILLARY_FONTSIZE}
|
|
208
217
|
fontWeight="bold"
|
|
209
218
|
>{title}</Text>;
|
|
210
219
|
}
|
|
211
|
-
components.push(<
|
|
220
|
+
components.push(<VStack key={'ancillary-' + ix} my={5}>{title}{element}</VStack>);
|
|
212
221
|
});
|
|
213
222
|
}
|
|
214
223
|
return components;
|
|
@@ -239,33 +248,33 @@ function Viewer(props) {
|
|
|
239
248
|
canEdit = false;
|
|
240
249
|
}
|
|
241
250
|
|
|
242
|
-
return <
|
|
251
|
+
return <VStack flex={flex} {...props} onLayout={onLayout}>
|
|
243
252
|
{containerWidth && <>
|
|
244
253
|
|
|
245
254
|
<ScrollView _web={{ height: 1 }} width="100%" pb={1} ref={scrollViewRef}>
|
|
246
255
|
{canEdit && onEditMode &&
|
|
247
|
-
<
|
|
256
|
+
<HStack px={4} pt={4} alignItems="center" justifyContent="flex-end">
|
|
248
257
|
<Button
|
|
249
258
|
key="editBtn"
|
|
250
259
|
onPress={onEditMode}
|
|
251
260
|
leftIcon={<Icon as={Pencil} color="#fff" size="sm" />}
|
|
252
261
|
color="#fff"
|
|
253
262
|
>To Edit</Button>
|
|
254
|
-
</
|
|
263
|
+
</HStack>}
|
|
255
264
|
{!_.isEmpty(additionalButtons) &&
|
|
256
|
-
<
|
|
265
|
+
<HStack p={4} alignItems="center" justifyContent="flex-end" flexWrap="wrap">
|
|
257
266
|
{additionalButtons}
|
|
258
|
-
</
|
|
259
|
-
<
|
|
260
|
-
{containerWidth >= CONTAINER_THRESHOLD ? <
|
|
261
|
-
{containerWidth < CONTAINER_THRESHOLD ? <
|
|
262
|
-
<
|
|
263
|
-
</
|
|
267
|
+
</HStack>}
|
|
268
|
+
<VStack>
|
|
269
|
+
{containerWidth >= CONTAINER_THRESHOLD ? <HStack p={4} pl={0}>{viewerComponents}</HStack> : null}
|
|
270
|
+
{containerWidth < CONTAINER_THRESHOLD ? <VStack p={4}>{viewerComponents}</VStack> : null}
|
|
271
|
+
<VStack m={2} pt={4}>{ancillaryComponents}</VStack>
|
|
272
|
+
</VStack>
|
|
264
273
|
</ScrollView>
|
|
265
274
|
{(showDeleteBtn || showCloseBtn) &&
|
|
266
275
|
<Footer justifyContent="flex-end">
|
|
267
276
|
{showDeleteBtn &&
|
|
268
|
-
<
|
|
277
|
+
<HStack flex={1} justifyContent="flex-start">
|
|
269
278
|
<Button
|
|
270
279
|
key="deleteBtn"
|
|
271
280
|
onPress={onDelete}
|
|
@@ -274,18 +283,22 @@ function Viewer(props) {
|
|
|
274
283
|
bg: 'warningHover',
|
|
275
284
|
}}
|
|
276
285
|
color="#fff"
|
|
277
|
-
>
|
|
278
|
-
|
|
286
|
+
>
|
|
287
|
+
<ButtonText>Delete</ButtonText>
|
|
288
|
+
</Button>
|
|
289
|
+
</HStack>}
|
|
279
290
|
{onClose && showCloseBtn &&
|
|
280
291
|
<Button
|
|
281
292
|
key="closeBtn"
|
|
282
293
|
onPress={onClose}
|
|
283
294
|
color="#fff"
|
|
284
|
-
>
|
|
295
|
+
>
|
|
296
|
+
<ButtonText>Close</ButtonText>
|
|
297
|
+
</Button>}
|
|
285
298
|
</Footer>}
|
|
286
299
|
|
|
287
300
|
</>}
|
|
288
|
-
</
|
|
301
|
+
</VStack>;
|
|
289
302
|
}
|
|
290
303
|
|
|
291
304
|
export default withComponent(withPdfButton(Viewer));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Modal,
|
|
3
|
-
|
|
3
|
+
HStack,
|
|
4
4
|
Text,
|
|
5
|
-
} from '
|
|
5
|
+
} from '@gluestack-ui/themed';
|
|
6
6
|
import withRedux from '../Data/hoc/withRedux';
|
|
7
7
|
import Loading from './Loading';
|
|
8
8
|
import _ from 'lodash';
|
|
@@ -16,11 +16,11 @@ export function WaitModal(props) {
|
|
|
16
16
|
return <Modal {...props} _backdrop={{ bg: "#000" }}>
|
|
17
17
|
<Modal.Content maxWidth="400px">
|
|
18
18
|
<Modal.Body>
|
|
19
|
-
<
|
|
19
|
+
<HStack justifyContent="center" alignItems="center">
|
|
20
20
|
<Loading minHeight="auto" h={5} w={5} mr={2} />
|
|
21
21
|
<Text color="#000">{textMessage}</Text>
|
|
22
22
|
{/* {!!waitStack ? <Text color="#000">{_.keys(waitStack).join(', ')}</Text> : null} */}
|
|
23
|
-
</
|
|
23
|
+
</HStack>
|
|
24
24
|
</Modal.Body>
|
|
25
25
|
</Modal.Content>
|
|
26
26
|
</Modal>;
|
package/src/Components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from '
|
|
2
|
+
HStack,
|
|
3
|
+
VStack,
|
|
4
|
+
} from '@gluestack-ui/themed';
|
|
5
5
|
import AddressBook from '../Components/Icons/AddressBook.js';
|
|
6
6
|
import Alt from '../Components/Icons/Alt.js';
|
|
7
7
|
import AngleLeft from '../Components/Icons/AngleLeft.js';
|
|
@@ -236,6 +236,8 @@ import YearsCombo from './Form/Field/Combo/YearsCombo.js';
|
|
|
236
236
|
import _ from 'lodash';
|
|
237
237
|
|
|
238
238
|
const components = {
|
|
239
|
+
Column: VStack,
|
|
240
|
+
Row: HStack,
|
|
239
241
|
AddressBook,
|
|
240
242
|
Alt,
|
|
241
243
|
AngleLeft,
|
|
@@ -431,7 +433,6 @@ const components = {
|
|
|
431
433
|
CheckboxGroup,
|
|
432
434
|
// CKEditor,
|
|
433
435
|
Color,
|
|
434
|
-
Column,
|
|
435
436
|
Combo,
|
|
436
437
|
// ComboEditor,
|
|
437
438
|
Container,
|
|
@@ -457,7 +458,6 @@ const components = {
|
|
|
457
458
|
// Picker,
|
|
458
459
|
PlusMinusButton,
|
|
459
460
|
RadioGroup,
|
|
460
|
-
Row,
|
|
461
461
|
SquareButton,
|
|
462
462
|
TabPanel,
|
|
463
463
|
Tag,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Button,
|
|
3
|
+
ButtonText,
|
|
2
4
|
Icon,
|
|
3
|
-
} from '
|
|
4
|
-
import Button from '../Components/Buttons/Button.js';
|
|
5
|
+
} from '@gluestack-ui/themed';
|
|
6
|
+
// import Button from '../Components/Buttons/Button.js';
|
|
5
7
|
import _ from 'lodash';
|
|
6
8
|
|
|
7
9
|
export default function buildAdditionalButtons(configs, self, handlerArgs = {}) {
|
|
@@ -36,7 +38,9 @@ export default function buildAdditionalButtons(configs, self, handlerArgs = {})
|
|
|
36
38
|
parent={self}
|
|
37
39
|
reference={key}
|
|
38
40
|
{...buttonProps}
|
|
39
|
-
>
|
|
41
|
+
>
|
|
42
|
+
<ButtonText>{text}</ButtonText>
|
|
43
|
+
</Button>;
|
|
40
44
|
additionalButtons.push(button);
|
|
41
45
|
});
|
|
42
46
|
return additionalButtons;
|
|
@@ -2,12 +2,13 @@ import { useState, useEffect, useRef, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Button,
|
|
5
|
-
|
|
5
|
+
ButtonText,
|
|
6
|
+
VStack,
|
|
6
7
|
Pressable,
|
|
7
|
-
|
|
8
|
+
HStack,
|
|
8
9
|
Spinner,
|
|
9
10
|
Text,
|
|
10
|
-
} from '
|
|
11
|
+
} from '@gluestack-ui/themed';
|
|
11
12
|
import {
|
|
12
13
|
CURRENT_MODE,
|
|
13
14
|
UI_MODE_WEB,
|
|
@@ -260,12 +261,12 @@ function AttachmentsElement(props) {
|
|
|
260
261
|
if (canCrud) {
|
|
261
262
|
_fileMosaic.onDelete = onFileDelete;
|
|
262
263
|
}
|
|
263
|
-
let content = <
|
|
264
|
+
let content = <VStack
|
|
264
265
|
w="100%"
|
|
265
266
|
p={2}
|
|
266
267
|
background={styles.ATTACHMENTS_BG}
|
|
267
268
|
>
|
|
268
|
-
<
|
|
269
|
+
<HStack flexWrap="wrap">
|
|
269
270
|
{files.map((file) => {
|
|
270
271
|
return <Box
|
|
271
272
|
key={file.id}
|
|
@@ -285,7 +286,7 @@ function AttachmentsElement(props) {
|
|
|
285
286
|
/>}
|
|
286
287
|
</Box>;
|
|
287
288
|
})}
|
|
288
|
-
</
|
|
289
|
+
</HStack>
|
|
289
290
|
{Repository.total <= COLLAPSED_MAX ? null :
|
|
290
291
|
<Button
|
|
291
292
|
onPress={toggleShowAll}
|
|
@@ -297,8 +298,10 @@ function AttachmentsElement(props) {
|
|
|
297
298
|
width: '100%',
|
|
298
299
|
}}
|
|
299
300
|
variant="ghost"
|
|
300
|
-
>
|
|
301
|
-
|
|
301
|
+
>
|
|
302
|
+
<ButtonText>{'Show ' + (showAll ? ' Less' : ' All ' + Repository.total)}</ButtonText>
|
|
303
|
+
</Button>}
|
|
304
|
+
</VStack>;
|
|
302
305
|
|
|
303
306
|
if (canCrud) {
|
|
304
307
|
content = <Dropzone
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useEffect, } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
-
|
|
5
|
-
Row,
|
|
4
|
+
HStack,
|
|
6
5
|
Text,
|
|
7
|
-
} from '
|
|
6
|
+
} from '@gluestack-ui/themed';
|
|
8
7
|
import {
|
|
9
8
|
CURRENT_MODE,
|
|
10
9
|
UI_MODE_WEB,
|
|
@@ -101,7 +100,7 @@ function FileComponent(props) {
|
|
|
101
100
|
if (_.isEmpty(filesContent)) {
|
|
102
101
|
assembledComponents = <Button onPress={() => openFilePicker()}>Select File</Button>;
|
|
103
102
|
} else {
|
|
104
|
-
assembledComponents = <
|
|
103
|
+
assembledComponents = <HStack
|
|
105
104
|
px={3}
|
|
106
105
|
py={1}
|
|
107
106
|
alignItems="center"
|
|
@@ -124,7 +123,7 @@ function FileComponent(props) {
|
|
|
124
123
|
mr={1}
|
|
125
124
|
/>
|
|
126
125
|
<Text>{plainFiles[0].name}</Text>
|
|
127
|
-
</
|
|
126
|
+
</HStack>;
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
return assembledComponents;
|