@proef/common-ui 2.6.48 → 2.6.50
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/dist/esm/index.js +194 -148
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/v1/capabilities/onepoint-rn/connectOutbox.js +29 -2
- package/dist/esm/v1/capabilities/onepoint-rn/connectOutbox.js.map +1 -1
- package/dist/esm/v1/components/data/MarkerMap/MarkerMap.js +256 -0
- package/dist/esm/v1/components/data/MarkerMap/MarkerMap.js.map +1 -0
- package/dist/esm/v1/components/data/ResourceGantt/ResourceGantt.js +290 -0
- package/dist/esm/v1/components/data/ResourceGantt/ResourceGantt.js.map +1 -0
- package/dist/esm/v1/components/data/StackedBarChart/StackedBarChart.js +87 -0
- package/dist/esm/v1/components/data/StackedBarChart/StackedBarChart.js.map +1 -0
- package/dist/esm/v1/components/data/StackedBarList/StackedBarList.js +48 -0
- package/dist/esm/v1/components/data/StackedBarList/StackedBarList.js.map +1 -0
- package/dist/esm/v1/components/forms/LabeledField/LabeledField.js +22 -0
- package/dist/esm/v1/components/forms/LabeledField/LabeledField.js.map +1 -0
- package/dist/esm/v1/components/tables/PlainTable/PlainTable.js +36 -0
- package/dist/esm/v1/components/tables/PlainTable/PlainTable.js.map +1 -0
- package/dist/esm/v1/components/tables/Table/ColumnFilter.js +25 -34
- package/dist/esm/v1/components/tables/Table/ColumnFilter.js.map +1 -1
- package/dist/esm/v1/components/tables/Table/Table.js +42 -24
- package/dist/esm/v1/components/tables/Table/Table.js.map +1 -1
- package/dist/esm/v1/foundations/icons/icons.js +43 -0
- package/dist/esm/v1/foundations/icons/icons.js.map +1 -1
- package/dist/esm/v1/primitives/buttons/Button/Button.js +4 -3
- package/dist/esm/v1/primitives/buttons/Button/Button.js.map +1 -1
- package/dist/esm/v1/primitives/buttons/LinkButton/LinkButton.js +21 -0
- package/dist/esm/v1/primitives/buttons/LinkButton/LinkButton.js.map +1 -0
- package/dist/esm/v1/primitives/display/ColoredValue/ColoredValue.js +11 -0
- package/dist/esm/v1/primitives/display/ColoredValue/ColoredValue.js.map +1 -0
- package/dist/esm/v1/primitives/display/PriorityIcon/PriorityIcon.js +14 -0
- package/dist/esm/v1/primitives/display/PriorityIcon/PriorityIcon.js.map +1 -0
- package/dist/esm/v1/primitives/display/SectionTitle/SectionTitle.js +13 -0
- package/dist/esm/v1/primitives/display/SectionTitle/SectionTitle.js.map +1 -0
- package/dist/esm/v1/primitives/forms/CheckboxField/CheckboxField.js +13 -0
- package/dist/esm/v1/primitives/forms/CheckboxField/CheckboxField.js.map +1 -0
- package/dist/esm/v1/primitives/forms/RangeCalendar/RangeCalendar.js +88 -0
- package/dist/esm/v1/primitives/forms/RangeCalendar/RangeCalendar.js.map +1 -0
- package/dist/esm/v1/primitives/forms/SearchInput/SearchInput.js +4 -2
- package/dist/esm/v1/primitives/forms/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/v1/primitives/navigation/Tabs/Tabs.js +14 -7
- package/dist/esm/v1/primitives/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/style.components.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/types/v1/capabilities/onepoint-rn/connectOutbox.d.ts +22 -1
- package/dist/types/v1/components/data/MarkerMap/MarkerMap.d.ts +94 -0
- package/dist/types/v1/components/data/ResourceGantt/ResourceGantt.d.ts +193 -0
- package/dist/types/v1/components/data/StackedBarChart/StackedBarChart.d.ts +33 -0
- package/dist/types/v1/components/data/StackedBarList/StackedBarList.d.ts +66 -0
- package/dist/types/v1/components/forms/LabeledField/LabeledField.d.ts +24 -0
- package/dist/types/v1/components/tables/PlainTable/PlainTable.d.ts +28 -0
- package/dist/types/v1/components/tables/Table/ColumnFilter.d.ts +2 -2
- package/dist/types/v1/components/tables/Table/Table.d.ts +35 -3
- package/dist/types/v1/foundations/icons/icons.d.ts +14 -0
- package/dist/types/v1/index.d.ts +26 -2
- package/dist/types/v1/primitives/buttons/Button/Button.d.ts +5 -2
- package/dist/types/v1/primitives/buttons/LinkButton/LinkButton.d.ts +13 -0
- package/dist/types/v1/primitives/display/ColoredValue/ColoredValue.d.ts +15 -0
- package/dist/types/v1/primitives/display/PriorityIcon/PriorityIcon.d.ts +15 -0
- package/dist/types/v1/primitives/display/SectionTitle/SectionTitle.d.ts +19 -0
- package/dist/types/v1/primitives/forms/CheckboxField/CheckboxField.d.ts +17 -0
- package/dist/types/v1/primitives/forms/RangeCalendar/RangeCalendar.d.ts +25 -0
- package/dist/types/v1/primitives/navigation/Tabs/Tabs.d.ts +16 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -10,90 +10,101 @@ import { default as default10 } from "./v1/primitives/buttons/Button/Button.js";
|
|
|
10
10
|
import { default as default11 } from "./legacy/components/ui/CabecalhoPagina.js";
|
|
11
11
|
import { default as default12 } from "./legacy/components/ui/CaixaPesquisa.js";
|
|
12
12
|
import { default as default13 } from "./v1/primitives/forms/Checkbox/Checkbox.js";
|
|
13
|
+
import { default as default14 } from "./v1/primitives/forms/CheckboxField/CheckboxField.js";
|
|
13
14
|
import { CheckboxGroup } from "./v1/components/forms/CheckboxGroup/CheckboxGroup.js";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
15
|
+
import { default as default15 } from "./v1/primitives/display/ColoredValue/ColoredValue.js";
|
|
16
|
+
import { default as default16, applyColumnLayout, orderColumns, useColumnLayout } from "./legacy/components/molecules/ColumnPicker/ColumnPicker.js";
|
|
17
|
+
import { default as default17, ConfirmProvider, useConfirm } from "./v1/components/overlays/ConfirmDialog/ConfirmDialog.js";
|
|
18
|
+
import { default as default18 } from "./legacy/components/molecules/ConfirmModal/ConfirmModal.js";
|
|
19
|
+
import { default as default19 } from "./legacy/components/ui/Confirmacao.js";
|
|
18
20
|
import { ContextMenu } from "./v1/components/overlays/ContextMenu/ContextMenu.js";
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
+
import { default as default20 } from "./legacy/components/atoms/Switch/CustomSwitch.js";
|
|
22
|
+
import { default as default21, timestampDeData } from "./legacy/components/molecules/DataTable/DataTable.js";
|
|
21
23
|
import { DateInput } from "./v1/primitives/forms/DateInput/DateInput.js";
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
+
import { default as default22, useDialogContainer } from "./v1/components/overlays/Dialog/Dialog.js";
|
|
25
|
+
import { default as default23, accepts } from "./v1/components/documents/DocumentDropzone/DocumentDropzone.js";
|
|
24
26
|
import { DEFAULT_DROPDOWN_MENU_LABELS, DropdownMenu } from "./v1/components/overlays/DropdownMenu/DropdownMenu.js";
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { FieldMark, default as
|
|
35
|
-
import { FormDivider, default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import {
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
27
|
+
import { default as default24 } from "./legacy/components/layout/Error/Error.js";
|
|
28
|
+
import { default as default25 } from "./legacy/pages/Error/ErrorPage.js";
|
|
29
|
+
import { default as default26 } from "./legacy/components/ui/Escolha.js";
|
|
30
|
+
import { default as default27 } from "./v1/primitives/buttons/ExpandButton/ExpandButton.js";
|
|
31
|
+
import { default as default28 } from "./legacy/components/ui/FaixaAviso.js";
|
|
32
|
+
import { default as default29 } from "./legacy/components/atoms/Field/Field.js";
|
|
33
|
+
import { default as default30 } from "./legacy/components/molecules/FileDropzone/FileDropzone.js";
|
|
34
|
+
import { default as default31 } from "./legacy/components/atoms/Button/variants/FilterButton.js";
|
|
35
|
+
import { default as default32 } from "./legacy/components/layout/Footer/Footer.js";
|
|
36
|
+
import { FieldMark, default as default33 } from "./v1/components/forms/FormField/FormField.js";
|
|
37
|
+
import { FormDivider, default as default34 } from "./v1/components/forms/FormGrid/FormGrid.js";
|
|
38
|
+
import { default as default35, ganttDiaIso } from "./legacy/components/organisms/GanttChart/GanttChart.js";
|
|
39
|
+
import { default as default36 } from "./legacy/components/layout/Header/Header.js";
|
|
40
|
+
import { default as default37 } from "./legacy/components/atoms/Button/variants/IconButton.js";
|
|
41
|
+
import { default as default38 } from "./legacy/components/atoms/IconText/IconText.js";
|
|
42
|
+
import { default as default39 } from "./legacy/components/atoms/Icone/Icone.js";
|
|
43
|
+
import { default as default40 } from "./legacy/components/atoms/Input/Input.js";
|
|
44
|
+
import { default as default41 } from "./legacy/components/organisms/Kanban/Kanban.js";
|
|
45
|
+
import { default as default42 } from "./legacy/components/atoms/Label/Label.js";
|
|
46
|
+
import { default as default43 } from "./v1/components/forms/LabeledField/LabeledField.js";
|
|
47
|
+
import { default as default44 } from "./legacy/components/molecules/LanguageSwitcher/LanguageSwitcher.js";
|
|
48
|
+
import { default as default45 } from "./legacy/components/layout/Layout/Layout.js";
|
|
49
|
+
import { default as default46 } from "./v1/primitives/buttons/LinkButton/LinkButton.js";
|
|
50
|
+
import { default as default47, termosDaPesquisa } from "./v1/components/lists/ListFinder/ListFinder.js";
|
|
51
|
+
import { HighlightText, default as default48 } from "./v1/primitives/lists/ListItem/ListItem.js";
|
|
52
|
+
import { default as default49 } from "./legacy/pages/Loading/Loading.js";
|
|
53
|
+
import { default as default50 } from "./legacy/pages/Login/LoginScreen.js";
|
|
54
|
+
import { default as default51 } from "./v1/primitives/forms/LookupInput/LookupInput.js";
|
|
55
|
+
import { default as default52 } from "./legacy/components/atoms/Button/variants/MainButton.js";
|
|
56
|
+
import { default as default53 } from "./legacy/components/organisms/MapaPontos/MapaPontos.js";
|
|
57
|
+
import { default as default54 } from "./v1/components/data/MarkerMap/MarkerMap.js";
|
|
58
|
+
import { default as default55 } from "./legacy/components/ui/MenuAcoes.js";
|
|
59
|
+
import { default as default56 } from "./legacy/components/molecules/Modal/Modal.js";
|
|
60
|
+
import { default as default57 } from "./legacy/components/molecules/MultiTagPicker/MultiTagPicker.js";
|
|
61
|
+
import { default as default58 } from "./legacy/pages/NotFound/NotFound.js";
|
|
57
62
|
import { OfflineBoxes } from "./v1/components/feedback/OfflineBoxes/OfflineBoxes.js";
|
|
58
63
|
import { OfflineBoxesIcon } from "./v1/components/feedback/OfflineBoxes/OfflineBoxesIcon.js";
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
64
|
+
import { default as default59 } from "./v1/components/layout/Page/Page.js";
|
|
65
|
+
import { default as default60 } from "./v1/components/layout/PageHeader/PageHeader.js";
|
|
66
|
+
import { default as default61 } from "./v1/components/tables/PaginatedTable/PaginatedTable.js";
|
|
67
|
+
import { default as default62 } from "./legacy/components/organisms/PainelFiltros/PainelFiltros.js";
|
|
68
|
+
import { default as default63 } from "./legacy/components/ui/Passos.js";
|
|
69
|
+
import { default as default64 } from "./v1/primitives/documents/PdfPreview/PdfPreview.js";
|
|
65
70
|
import { DEFAULT_PEOPLE_PICKER_LABELS, PeoplePicker } from "./v1/primitives/forms/PeoplePicker/PeoplePicker.js";
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
71
|
+
import { default as default65, usarAtalhoPesquisa } from "./legacy/components/organisms/PesquisaRapida/PesquisaRapida.js";
|
|
72
|
+
import { default as default66 } from "./legacy/components/molecules/PhotoAvatar/PhotoAvatar.js";
|
|
73
|
+
import { default as default67 } from "./v1/primitives/display/PriorityIcon/PriorityIcon.js";
|
|
74
|
+
import { default as default68 } from "./legacy/components/organisms/Profile/Profile.js";
|
|
75
|
+
import { default as default69 } from "./v1/primitives/forms/RangeCalendar/RangeCalendar.js";
|
|
76
|
+
import { default as default70, ResourceGanttBand, ResourceGanttBar, ResourceGanttConnectors, ResourceGanttLegend, ResourceGanttLine, useResourceGanttCell } from "./v1/components/data/ResourceGantt/ResourceGantt.js";
|
|
69
77
|
import { RichText } from "./v1/primitives/display/RichText/RichText.js";
|
|
70
78
|
import { RichTextEditor } from "./v1/primitives/forms/RichTextEditor/RichTextEditor.js";
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
79
|
+
import { default as default71, lerRolesDoToken } from "./legacy/components/organisms/RoleGuard/RoleGuard.js";
|
|
80
|
+
import { default as default72 } from "./v1/primitives/forms/SearchInput/SearchInput.js";
|
|
81
|
+
import { default as default73 } from "./v1/primitives/display/SectionTitle/SectionTitle.js";
|
|
82
|
+
import { default as default74 } from "./v1/primitives/buttons/SegmentedControl/SegmentedControl.js";
|
|
83
|
+
import { default as default75 } from "./legacy/components/atoms/Select/Select.js";
|
|
75
84
|
import { SelectInput } from "./v1/primitives/forms/SelectInput/SelectInput.js";
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
85
|
+
import { default as default76 } from "./v1/components/data/SelectionBar/SelectionBar.js";
|
|
86
|
+
import { default as default77 } from "./legacy/components/molecules/SeletorPesquisa/SeletorPesquisa.js";
|
|
87
|
+
import { default as default78 } from "./legacy/components/ui/Separadores.js";
|
|
88
|
+
import { default as default79 } from "./v1/components/layout/SideNav/SideNav.js";
|
|
89
|
+
import { default as default80 } from "./legacy/components/molecules/Sidebar/Sidebar.js";
|
|
90
|
+
import { default as default81 } from "./legacy/components/atoms/Stack/Stack.js";
|
|
91
|
+
import { default as default82 } from "./v1/components/data/StackedBarChart/StackedBarChart.js";
|
|
92
|
+
import { StackedBarLegend, default as default83 } from "./v1/components/data/StackedBarList/StackedBarList.js";
|
|
93
|
+
import { default as default84 } from "./legacy/components/organisms/StatusMatrix/StatusMatrix.js";
|
|
83
94
|
import { DEFAULT_STEPS_LABELS, Steps } from "./v1/primitives/navigation/Steps/Steps.js";
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
95
|
+
import { default as default85 } from "./v1/primitives/forms/Switch/Switch.js";
|
|
96
|
+
import { default as default86 } from "./legacy/components/atoms/Button/variants/TabButton.js";
|
|
97
|
+
import { default as default87 } from "./v1/components/tables/Table/Table.js";
|
|
98
|
+
import { default as default88 } from "./v1/primitives/navigation/Tabs/Tabs.js";
|
|
99
|
+
import { default as default89 } from "./v1/primitives/forms/TextArea/TextArea.js";
|
|
100
|
+
import { default as default90 } from "./v1/primitives/forms/TextInput/TextInput.js";
|
|
101
|
+
import { default as default91 } from "./legacy/components/ui/TextoAuto.js";
|
|
102
|
+
import { default as default92, useToast } from "./v1/components/feedback/Toast/Toast.js";
|
|
103
|
+
import { default as default93 } from "./v1/components/overlays/Tooltip/Tooltip.js";
|
|
104
|
+
import { default as default94 } from "./v1/components/overlays/Tooltip/TooltipLayer.js";
|
|
105
|
+
import { default as default95 } from "./legacy/components/layout/TopBar/TopBar.js";
|
|
106
|
+
import { default as default96 } from "./legacy/components/layout/TopNavLayout/TopNavLayout.js";
|
|
107
|
+
import { default as default97 } from "./legacy/components/molecules/UserAvatar/UserAvatar.js";
|
|
97
108
|
import { Anel, Barras, BarrasEmpilhadas, BarrasHorizontais, Bolhas, Linha, Linhas, PALETA, cor } from "./legacy/components/charts/Charts.js";
|
|
98
109
|
import { ApiProvider } from "./legacy/contexts/apiContext.js";
|
|
99
110
|
import { AuthProvider, useAuth } from "./legacy/contexts/authContext.js";
|
|
@@ -103,7 +114,7 @@ import { AvisosProvider, useAvisos } from "./legacy/components/ui/Avisos.js";
|
|
|
103
114
|
import { Badge } from "./v1/primitives/display/Badge/Badge.js";
|
|
104
115
|
import { BadgeSla, BarraFiltros, Btn, BtnGroup, Campo, CampoInterruptor, CampoPesquisa, CampoSelect, ChipEstadoInterno, Estado, LinhaAlerta, ListaCampos, Modal, SectionGroup } from "./legacy/components/ui/Ui.js";
|
|
105
116
|
import { BarChart, DonutChart, LineChart, shortDateLabel, useChartPalette } from "./v1/components/data/Charts/Charts.js";
|
|
106
|
-
import { BoldIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CloseIcon, ErrorIcon, ExternalLinkIcon, FilterIcon, GlobeIcon, ImageIcon, InfoIcon, ItalicIcon, LayersIcon, ListBulletIcon, ListIcon, ListNumberedIcon, LockIcon, LogOutIcon, MaximizeIcon, MenuIcon, MinimizeIcon, MonitorIcon, MoonIcon, MoreIcon, PanelOpenIcon, PrefilledIcon, QrCodeIcon, QuoteIcon, SearchIcon, SlidersIcon, SparklesIcon, StrikethroughIcon, SunIcon, UnderlineIcon, WarningIcon } from "./v1/foundations/icons/icons.js";
|
|
117
|
+
import { BarsIcon, BoldIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleCheckIcon, ClockIcon, CloseIcon, EqualIcon, ErrorIcon, ExternalLinkIcon, FilterIcon, GlobeIcon, ImageIcon, InfoIcon, ItalicIcon, LayersIcon, ListBulletIcon, ListIcon, ListNumberedIcon, LockIcon, LogOutIcon, MaximizeIcon, MenuIcon, MinimizeIcon, MonitorIcon, MoonIcon, MoreIcon, PanelOpenIcon, PrefilledIcon, QrCodeIcon, QuoteIcon, SearchIcon, SlidersIcon, SparklesIcon, StrikethroughIcon, SunIcon, TrendDownIcon, TrendUpIcon, UnderlineIcon, WarningIcon } from "./v1/foundations/icons/icons.js";
|
|
107
118
|
import { Card } from "./v1/primitives/display/Card/Card.js";
|
|
108
119
|
import { DEFAULT_DAY_TIMELINE_LABELS, DayTimeline, DayTimelineScale, scheduleParts, toMinutes, uncoveredIntervals } from "./v1/components/data/DayTimeline/DayTimeline.js";
|
|
109
120
|
import { DEFAULT_LIST_FINDER_LABELS } from "./v1/components/lists/ListFinder/labels.js";
|
|
@@ -120,10 +131,11 @@ import { Kpi } from "./v1/primitives/display/Kpi/Kpi.js";
|
|
|
120
131
|
import { LazyLoader } from "./legacy/components/organisms/LazyLoader/LazyLoader.js";
|
|
121
132
|
import { MonthCalendar } from "./v1/components/data/MonthCalendar/MonthCalendar.js";
|
|
122
133
|
import { Notice } from "./v1/primitives/display/Notice/Notice.js";
|
|
123
|
-
import { OUTBOX_SAVED_MESSAGE, OutboxSavedError, connectOutbox, isOutboxSaved, watchOutbox } from "./v1/capabilities/onepoint-rn/connectOutbox.js";
|
|
134
|
+
import { OUTBOX_DEPENDENCIES_UNSUPPORTED_MESSAGE, OUTBOX_SAVED_MESSAGE, OutboxDependenciesUnsupportedError, OutboxSavedError, connectOutbox, isOutboxSaved, supportsOutboxDependencies, watchOutbox } from "./v1/capabilities/onepoint-rn/connectOutbox.js";
|
|
124
135
|
import { Pagination } from "./v1/components/data/Pagination/Pagination.js";
|
|
125
136
|
import { PeopleFilter } from "./v1/primitives/display/PeopleFilter/PeopleFilter.js";
|
|
126
137
|
import { Person } from "./v1/primitives/display/Person/Person.js";
|
|
138
|
+
import { PlainTable, PlainTableBody, PlainTableCell, PlainTableHead, PlainTableHeaderCell, PlainTableRow } from "./v1/components/tables/PlainTable/PlainTable.js";
|
|
127
139
|
import { Selector } from "./legacy/components/organisms/Selector/Selector.js";
|
|
128
140
|
import { SocketProvider, useSocket } from "./legacy/contexts/socketContext.js";
|
|
129
141
|
import { Spinner } from "./v1/primitives/feedback/Spinner/Spinner.js";
|
|
@@ -166,6 +178,7 @@ export {
|
|
|
166
178
|
Barras,
|
|
167
179
|
BarrasEmpilhadas,
|
|
168
180
|
BarrasHorizontais,
|
|
181
|
+
BarsIcon,
|
|
169
182
|
BoldIcon,
|
|
170
183
|
Bolhas,
|
|
171
184
|
default9 as BreadCrumb,
|
|
@@ -174,6 +187,7 @@ export {
|
|
|
174
187
|
default10 as Button,
|
|
175
188
|
default11 as CabecalhoPagina,
|
|
176
189
|
default12 as CaixaPesquisa,
|
|
190
|
+
CalendarIcon,
|
|
177
191
|
Campo,
|
|
178
192
|
CampoInterruptor,
|
|
179
193
|
CampoPesquisa,
|
|
@@ -181,6 +195,7 @@ export {
|
|
|
181
195
|
Card,
|
|
182
196
|
CheckIcon,
|
|
183
197
|
default13 as Checkbox,
|
|
198
|
+
default14 as CheckboxField,
|
|
184
199
|
CheckboxGroup,
|
|
185
200
|
ChevronDownIcon,
|
|
186
201
|
ChevronLeftIcon,
|
|
@@ -188,14 +203,17 @@ export {
|
|
|
188
203
|
ChevronUpIcon,
|
|
189
204
|
ChevronsUpDownIcon,
|
|
190
205
|
ChipEstadoInterno,
|
|
206
|
+
CircleCheckIcon,
|
|
207
|
+
ClockIcon,
|
|
191
208
|
CloseIcon,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
209
|
+
default15 as ColoredValue,
|
|
210
|
+
default16 as ColumnPicker,
|
|
211
|
+
default17 as ConfirmDialog,
|
|
212
|
+
default18 as ConfirmModal,
|
|
195
213
|
ConfirmProvider,
|
|
196
|
-
|
|
214
|
+
default19 as Confirmacao,
|
|
197
215
|
ContextMenu,
|
|
198
|
-
|
|
216
|
+
default20 as CustomSwitch,
|
|
199
217
|
DEFAULT_DAY_TIMELINE_LABELS,
|
|
200
218
|
DEFAULT_DROPDOWN_MENU_LABELS,
|
|
201
219
|
DEFAULT_LIST_FINDER_LABELS,
|
|
@@ -203,151 +221,177 @@ export {
|
|
|
203
221
|
DEFAULT_PEOPLE_PICKER_LABELS,
|
|
204
222
|
DEFAULT_STEPS_LABELS,
|
|
205
223
|
DEFAULT_TABLE_LABELS,
|
|
206
|
-
|
|
224
|
+
default21 as DataTable,
|
|
207
225
|
DateInput,
|
|
208
226
|
DayTimeline,
|
|
209
227
|
DayTimelineScale,
|
|
210
228
|
DescriptionList,
|
|
211
|
-
|
|
212
|
-
|
|
229
|
+
default22 as Dialog,
|
|
230
|
+
default23 as DocumentDropzone,
|
|
213
231
|
DonutChart,
|
|
214
232
|
DropdownMenu,
|
|
215
233
|
ESTILO_AVATAR_PILHA,
|
|
234
|
+
EqualIcon,
|
|
216
235
|
ErroBridge,
|
|
217
|
-
|
|
236
|
+
default24 as Error,
|
|
218
237
|
ErrorIcon,
|
|
219
|
-
|
|
220
|
-
|
|
238
|
+
default25 as ErrorPage,
|
|
239
|
+
default26 as Escolha,
|
|
221
240
|
Estado,
|
|
222
|
-
|
|
241
|
+
default27 as ExpandButton,
|
|
223
242
|
ExternalLinkIcon,
|
|
224
|
-
|
|
225
|
-
|
|
243
|
+
default28 as FaixaAviso,
|
|
244
|
+
default29 as Field,
|
|
226
245
|
FieldMark,
|
|
227
|
-
|
|
228
|
-
|
|
246
|
+
default30 as FileDropzone,
|
|
247
|
+
default31 as FilterButton,
|
|
229
248
|
FilterChips,
|
|
230
249
|
FilterIcon,
|
|
231
250
|
FontWeight,
|
|
232
|
-
|
|
251
|
+
default32 as Footer,
|
|
233
252
|
FormDivider,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
253
|
+
default33 as FormField,
|
|
254
|
+
default34 as FormGrid,
|
|
255
|
+
default35 as GanttChart,
|
|
237
256
|
GlobeIcon,
|
|
238
|
-
|
|
257
|
+
default36 as Header,
|
|
239
258
|
HighlightText,
|
|
240
259
|
INBOX_SAVED_AT_HEADER,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
260
|
+
default37 as IconButton,
|
|
261
|
+
default38 as IconText,
|
|
262
|
+
default39 as Icone,
|
|
244
263
|
ImageIcon,
|
|
245
264
|
InfoIcon,
|
|
246
|
-
|
|
265
|
+
default40 as Input,
|
|
247
266
|
InputData,
|
|
248
267
|
InputHora,
|
|
249
268
|
ItalicIcon,
|
|
250
|
-
|
|
269
|
+
default41 as Kanban,
|
|
251
270
|
Kpi,
|
|
252
|
-
|
|
253
|
-
|
|
271
|
+
default42 as Label,
|
|
272
|
+
default43 as LabeledField,
|
|
273
|
+
default44 as LanguageSwitcher,
|
|
254
274
|
LayersIcon,
|
|
255
|
-
|
|
275
|
+
default45 as Layout,
|
|
256
276
|
LazyLoader,
|
|
257
277
|
LineChart,
|
|
258
278
|
Linha,
|
|
259
279
|
LinhaAlerta,
|
|
260
280
|
Linhas,
|
|
281
|
+
default46 as LinkButton,
|
|
261
282
|
ListBulletIcon,
|
|
262
|
-
|
|
283
|
+
default47 as ListFinder,
|
|
263
284
|
ListIcon,
|
|
264
|
-
|
|
285
|
+
default48 as ListItem,
|
|
265
286
|
ListNumberedIcon,
|
|
266
287
|
ListaCampos,
|
|
267
|
-
|
|
288
|
+
default49 as LoadingPage,
|
|
268
289
|
LockIcon,
|
|
269
290
|
LogOutIcon,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
291
|
+
default50 as LoginScreen,
|
|
292
|
+
default51 as LookupInput,
|
|
293
|
+
default52 as MainButton,
|
|
294
|
+
default53 as MapaPontos,
|
|
295
|
+
default54 as MarkerMap,
|
|
274
296
|
MaximizeIcon,
|
|
275
|
-
|
|
297
|
+
default55 as MenuAcoes,
|
|
276
298
|
MenuIcon,
|
|
277
299
|
MinimizeIcon,
|
|
278
|
-
|
|
300
|
+
default56 as Modal,
|
|
279
301
|
MonitorIcon,
|
|
280
302
|
MonthCalendar,
|
|
281
303
|
MoonIcon,
|
|
282
304
|
MoreIcon,
|
|
283
|
-
|
|
284
|
-
|
|
305
|
+
default57 as MultiTagPicker,
|
|
306
|
+
default58 as NotFoundPage,
|
|
285
307
|
Notice,
|
|
308
|
+
OUTBOX_DEPENDENCIES_UNSUPPORTED_MESSAGE,
|
|
286
309
|
OUTBOX_SAVED_MESSAGE,
|
|
287
310
|
OfflineBoxes,
|
|
288
311
|
OfflineBoxesIcon,
|
|
312
|
+
OutboxDependenciesUnsupportedError,
|
|
289
313
|
OutboxSavedError,
|
|
290
314
|
PALETA,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
315
|
+
default59 as Page,
|
|
316
|
+
default60 as PageHeader,
|
|
317
|
+
default61 as PaginatedTable,
|
|
294
318
|
Pagination,
|
|
295
|
-
|
|
319
|
+
default62 as PainelFiltros,
|
|
296
320
|
PanelOpenIcon,
|
|
297
|
-
|
|
298
|
-
|
|
321
|
+
default63 as Passos,
|
|
322
|
+
default64 as PdfPreview,
|
|
299
323
|
PeopleFilter,
|
|
300
324
|
PeoplePicker,
|
|
301
325
|
Person,
|
|
302
|
-
|
|
326
|
+
default65 as PesquisaRapida,
|
|
303
327
|
PessoaComFoto,
|
|
304
|
-
|
|
328
|
+
default66 as PhotoAvatar,
|
|
305
329
|
PilhaAvatares,
|
|
330
|
+
PlainTable,
|
|
331
|
+
PlainTableBody,
|
|
332
|
+
PlainTableCell,
|
|
333
|
+
PlainTableHead,
|
|
334
|
+
PlainTableHeaderCell,
|
|
335
|
+
PlainTableRow,
|
|
306
336
|
PrefilledIcon,
|
|
337
|
+
default67 as PriorityIcon,
|
|
307
338
|
Modal as ProefModal,
|
|
308
|
-
|
|
339
|
+
default68 as Profile,
|
|
309
340
|
QrCodeIcon,
|
|
310
341
|
QuoteIcon,
|
|
342
|
+
default69 as RangeCalendar,
|
|
343
|
+
default70 as ResourceGantt,
|
|
344
|
+
ResourceGanttBand,
|
|
345
|
+
ResourceGanttBar,
|
|
346
|
+
ResourceGanttConnectors,
|
|
347
|
+
ResourceGanttLegend,
|
|
348
|
+
ResourceGanttLine,
|
|
311
349
|
RichText,
|
|
312
350
|
RichTextEditor,
|
|
313
|
-
|
|
351
|
+
default71 as RoleGuard,
|
|
314
352
|
SearchIcon,
|
|
315
|
-
|
|
353
|
+
default72 as SearchInput,
|
|
316
354
|
SectionGroup,
|
|
317
|
-
|
|
318
|
-
|
|
355
|
+
default73 as SectionTitle,
|
|
356
|
+
default74 as SegmentedControl,
|
|
357
|
+
default75 as Select,
|
|
319
358
|
SelectInput,
|
|
320
|
-
|
|
359
|
+
default76 as SelectionBar,
|
|
321
360
|
Selector,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
361
|
+
default77 as SeletorPesquisa,
|
|
362
|
+
default78 as Separadores,
|
|
363
|
+
default79 as SideNav,
|
|
325
364
|
default2 as Sidebar,
|
|
326
|
-
|
|
365
|
+
default80 as SidebarDrawer,
|
|
327
366
|
SlidersIcon,
|
|
328
367
|
SocketProvider,
|
|
329
368
|
SparklesIcon,
|
|
330
369
|
Spinner,
|
|
331
|
-
|
|
332
|
-
|
|
370
|
+
default81 as Stack,
|
|
371
|
+
default82 as StackedBarChart,
|
|
372
|
+
StackedBarLegend,
|
|
373
|
+
default83 as StackedBarList,
|
|
374
|
+
default84 as StatusMatrix,
|
|
333
375
|
Steps,
|
|
334
376
|
StrikethroughIcon,
|
|
335
377
|
SunIcon,
|
|
336
|
-
|
|
378
|
+
default85 as Switch,
|
|
337
379
|
THEME_STORAGE_KEY,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
380
|
+
default86 as TabButton,
|
|
381
|
+
default87 as Table,
|
|
382
|
+
default88 as Tabs,
|
|
383
|
+
default89 as TextArea,
|
|
384
|
+
default90 as TextInput,
|
|
385
|
+
default91 as TextoAuto,
|
|
386
|
+
default92 as ToastProvider,
|
|
387
|
+
default93 as Tooltip,
|
|
388
|
+
default94 as TooltipLayer,
|
|
389
|
+
default95 as TopBar,
|
|
390
|
+
default96 as TopNavLayout,
|
|
391
|
+
TrendDownIcon,
|
|
392
|
+
TrendUpIcon,
|
|
349
393
|
UnderlineIcon,
|
|
350
|
-
|
|
394
|
+
default97 as UserAvatar,
|
|
351
395
|
WarningIcon,
|
|
352
396
|
applyColumnLayout,
|
|
353
397
|
applyTheme,
|
|
@@ -389,6 +433,7 @@ export {
|
|
|
389
433
|
scanQRCodes,
|
|
390
434
|
scheduleParts,
|
|
391
435
|
shortDateLabel,
|
|
436
|
+
supportsOutboxDependencies,
|
|
392
437
|
syncInbox,
|
|
393
438
|
terminarSessao,
|
|
394
439
|
termosDaPesquisa,
|
|
@@ -412,6 +457,7 @@ export {
|
|
|
412
457
|
useMenuLateralNaApp,
|
|
413
458
|
useOfflineBoxes,
|
|
414
459
|
useOrientacaoNaApp,
|
|
460
|
+
useResourceGanttCell,
|
|
415
461
|
useSocket,
|
|
416
462
|
useTheme,
|
|
417
463
|
useToast,
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AxiosError, AxiosHeaders } from "axios";
|
|
2
|
-
import {
|
|
2
|
+
import { pedirAoNativo, onNativeEvent, ErroBridge } from "./bridge.js";
|
|
3
3
|
import { dentroDaApp } from "./dentroDaApp.js";
|
|
4
4
|
import { addressAndPath } from "./requestAddress.js";
|
|
5
5
|
import { checkedStorageId } from "./storageId.js";
|
|
6
6
|
const WRITE_METHODS = ["post", "put", "patch", "delete"];
|
|
7
7
|
const BRIDGE_WAIT_MS = 3e4;
|
|
8
8
|
const OUTBOX_SAVED_MESSAGE = "Guardado no telemóvel. Será enviado quando a ligação voltar.";
|
|
9
|
+
const OUTBOX_DEPENDENCIES_UNSUPPORTED_MESSAGE = "Esta versão da app não consegue guardar este passo sem ligação. Tente com ligação ou atualize a app.";
|
|
9
10
|
class OutboxSavedError extends Error {
|
|
10
11
|
constructor(outboxActionId) {
|
|
11
12
|
super(OUTBOX_SAVED_MESSAGE);
|
|
@@ -35,9 +36,31 @@ function expiryOf(config) {
|
|
|
35
36
|
const expiresAt = config.outbox === true ? void 0 : config.outbox?.expiresAt;
|
|
36
37
|
return expiresAt instanceof Date ? expiresAt.toISOString() : expiresAt;
|
|
37
38
|
}
|
|
39
|
+
function dependenciesOf(config) {
|
|
40
|
+
const dependsOn = config.outbox === true ? void 0 : config.outbox?.dependsOn;
|
|
41
|
+
return dependsOn?.length ? dependsOn : void 0;
|
|
42
|
+
}
|
|
43
|
+
class OutboxDependenciesUnsupportedError extends Error {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(OUTBOX_DEPENDENCIES_UNSUPPORTED_MESSAGE);
|
|
46
|
+
this.name = "OutboxDependenciesUnsupportedError";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const FEATURES_WAIT_MS = 5e3;
|
|
50
|
+
let features = null;
|
|
51
|
+
async function supportsOutboxDependencies() {
|
|
52
|
+
if (!dentroDaApp()) return false;
|
|
53
|
+
features ??= pedirAoNativo("outbox.features", {}, FEATURES_WAIT_MS).catch(() => {
|
|
54
|
+
features = null;
|
|
55
|
+
return {};
|
|
56
|
+
});
|
|
57
|
+
return (await features).dependsOn === true;
|
|
58
|
+
}
|
|
38
59
|
function outboxAdapter(api, storageId) {
|
|
39
60
|
return async (config) => {
|
|
40
61
|
const { address, path } = addressAndPath(api, config);
|
|
62
|
+
const dependsOn = dependenciesOf(config);
|
|
63
|
+
if (dependsOn && !await supportsOutboxDependencies()) throw new OutboxDependenciesUnsupportedError();
|
|
41
64
|
const reply = await replyOf({
|
|
42
65
|
storageId,
|
|
43
66
|
address,
|
|
@@ -45,7 +68,8 @@ function outboxAdapter(api, storageId) {
|
|
|
45
68
|
path,
|
|
46
69
|
headers: stringHeaders(config),
|
|
47
70
|
body: config.data,
|
|
48
|
-
expiresAt: expiryOf(config)
|
|
71
|
+
expiresAt: expiryOf(config),
|
|
72
|
+
dependsOn
|
|
49
73
|
});
|
|
50
74
|
if (reply.outcome === "saved") throw new OutboxSavedError(reply.id);
|
|
51
75
|
const response = {
|
|
@@ -109,10 +133,13 @@ function connectOutbox(api, options) {
|
|
|
109
133
|
});
|
|
110
134
|
}
|
|
111
135
|
export {
|
|
136
|
+
OUTBOX_DEPENDENCIES_UNSUPPORTED_MESSAGE,
|
|
112
137
|
OUTBOX_SAVED_MESSAGE,
|
|
138
|
+
OutboxDependenciesUnsupportedError,
|
|
113
139
|
OutboxSavedError,
|
|
114
140
|
connectOutbox,
|
|
115
141
|
isOutboxSaved,
|
|
142
|
+
supportsOutboxDependencies,
|
|
116
143
|
watchOutbox
|
|
117
144
|
};
|
|
118
145
|
//# sourceMappingURL=connectOutbox.js.map
|