@tmlmobilidade/ui 20250823.132.8 → 20250825.38.5
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/index.css +0 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -3
- package/dist/src/components/map/view/MapView/index.js +2 -2
- package/dist/src/components/map/view/MapView/index.js.map +1 -1
- package/dist/styles-no-reset.css +0 -1
- package/dist/styles.css +0 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -2,18 +2,18 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
3
3
|
import React__default, { PropsWithChildren, ReactNode, CSSProperties, RefObject } from 'react';
|
4
4
|
import { ButtonProps as ButtonProps$1, BadgeProps as BadgeProps$1, ComboboxProps, MenuProps as MenuProps$1, MenuTargetProps as MenuTargetProps$1, MenuDropdownProps as MenuDropdownProps$1, MenuItemProps as MenuItemProps$1, MenuDividerProps as MenuDividerProps$1, MenuLabelProps as MenuLabelProps$1, TooltipProps as TooltipProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, PopoverProps as PopoverProps$1, PopoverTargetProps as PopoverTargetProps$1, PopoverDropdownProps as PopoverDropdownProps$1, SegmentedControlProps as SegmentedControlProps$1, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TextProps as TextProps$1, NumberInputProps as NumberInputProps$1, PasswordInputProps, PillsInputProps as PillsInputProps$1, TextareaProps as TextareaProps$1, TextInputProps as TextInputProps$1 } from '@mantine/core';
|
5
|
-
export { RenderTreeNodePayload, Tree, TreeNodeData, getTreeExpandedState, useTree } from '@mantine/core';
|
5
|
+
export { Modal, RenderTreeNodePayload, Tree, TreeNodeData, getTreeExpandedState, useTree } from '@mantine/core';
|
6
6
|
import { DatePickerInputProps, DateTimePickerProps as DateTimePickerProps$1 } from '@mantine/dates';
|
7
7
|
import { StyleSpecification, MapLibreEvent } from 'maplibre-gl';
|
8
8
|
import { FeatureCollection, Polygon, Point, LineString, Feature, Geometry, GeoJsonProperties } from 'geojson';
|
9
9
|
import { MapLayerMouseEvent, ViewStateChangeEvent, MapRef } from '@vis.gl/react-maplibre';
|
10
|
+
export * from '@mantine/modals';
|
10
11
|
import { HttpException } from '@tmlmobilidade/lib';
|
11
12
|
import { User, Permission } from '@tmlmobilidade/types';
|
12
13
|
import { HasPermissionResourceArgs } from '@tmlmobilidade/utils';
|
13
14
|
import { NotificationData } from '@mantine/notifications';
|
14
|
-
export * from '@mantine/form';
|
15
15
|
export * from '@mantine/hooks';
|
16
|
-
export * from '@mantine/
|
16
|
+
export * from '@mantine/form';
|
17
17
|
export { zod4Resolver, zodResolver } from 'mantine-form-zod-resolver';
|
18
18
|
|
19
19
|
declare function AppProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
@@ -646,6 +646,7 @@ interface MapOverlayScheduledPathProps {
|
|
646
646
|
declare function MapOverlayScheduledPath({ id, lineData, pointsData, visible }: MapOverlayScheduledPathProps): react_jsx_runtime.JSX.Element | null;
|
647
647
|
|
648
648
|
interface MapViewProps {
|
649
|
+
height?: number;
|
649
650
|
id: string;
|
650
651
|
interactiveLayerIds?: string[];
|
651
652
|
onClick?: (e: MapLayerMouseEvent) => void;
|
@@ -658,7 +659,7 @@ interface MapViewProps {
|
|
658
659
|
onMouseOut?: (e: MapLayerMouseEvent) => void;
|
659
660
|
onMouseOver?: (e: MapLayerMouseEvent) => void;
|
660
661
|
}
|
661
|
-
declare function MapView({ children, id, interactiveLayerIds, onClick, onDrag, onDragEnd, onDragStart, onMouseDrag, onMouseEnter, onMouseLeave, onMouseOut, onMouseOver }: PropsWithChildren<MapViewProps>): react_jsx_runtime.JSX.Element;
|
662
|
+
declare function MapView({ children, height, id, interactiveLayerIds, onClick, onDrag, onDragEnd, onDragStart, onMouseDrag, onMouseEnter, onMouseLeave, onMouseOut, onMouseOver }: PropsWithChildren<MapViewProps>): react_jsx_runtime.JSX.Element;
|
662
663
|
|
663
664
|
interface MapViewContextState {
|
664
665
|
actions: {
|
package/dist/index.js
CHANGED
@@ -19,7 +19,7 @@ export { Popover } from './src/components/common/Popover/index.js';
|
|
19
19
|
export { SegmentedControl } from './src/components/common/SegmentedControl/index.js';
|
20
20
|
export { Slider } from './src/components/common/Slider/index.js';
|
21
21
|
export { Switch } from './src/components/common/Switch/index.js';
|
22
|
-
export { Tree, getTreeExpandedState, useTree } from '@mantine/core';
|
22
|
+
export { Modal, Tree, getTreeExpandedState, useTree } from '@mantine/core';
|
23
23
|
export { DataTable } from './src/components/datatable/DataTable/index.js';
|
24
24
|
export { AlertCard } from './src/components/display/AlertCard/index.js';
|
25
25
|
export { AlertMessage } from './src/components/display/AlertMessage/index.js';
|
@@ -60,6 +60,7 @@ export { MapOverlayPins } from './src/components/map/overlays/MapOverlayPins/ind
|
|
60
60
|
export { MapOverlayScheduledPath } from './src/components/map/overlays/MapOverlayScheduledPath/index.js';
|
61
61
|
export { MapView } from './src/components/map/view/MapView/index.js';
|
62
62
|
export { MapViewContextProvider, useMapViewContext } from './src/components/map/view/MapViewContext/index.js';
|
63
|
+
export * from '@mantine/modals';
|
63
64
|
export { Pane } from './src/components/panes/Pane/index.js';
|
64
65
|
export { PanesManager } from './src/components/panes/PanesManager/index.js';
|
65
66
|
export { Sidebar, sidebarApps } from './src/components/sidebar/Sidebar/index.js';
|
@@ -78,8 +79,7 @@ export { useToast } from './src/hooks/toast.js';
|
|
78
79
|
export { useCssVariable } from './src/hooks/use-css-variable.js';
|
79
80
|
export { useCurrentUrl } from './src/hooks/use-current-url.js';
|
80
81
|
export { useScreenSize } from './src/hooks/use-screen-size.js';
|
81
|
-
export * from '@mantine/form';
|
82
82
|
export * from '@mantine/hooks';
|
83
|
-
export * from '@mantine/
|
83
|
+
export * from '@mantine/form';
|
84
84
|
export { zod4Resolver, zodResolver } from 'mantine-form-zod-resolver';
|
85
85
|
//# sourceMappingURL=index.js.map
|
@@ -6,8 +6,8 @@ import { MapViewToolbar } from '../MapViewToolbar/index.js';
|
|
6
6
|
import styles from './styles.module.css.js';
|
7
7
|
|
8
8
|
/* * */
|
9
|
-
function MapView({ children, id, interactiveLayerIds = [], onClick, onDrag, onDragEnd, onDragStart, onMouseDrag, onMouseEnter, onMouseLeave, onMouseOut, onMouseOver }) {
|
10
|
-
return (jsxRuntimeExports.jsx(MapViewContextProvider, { children: jsxRuntimeExports.jsxs("div", { className: styles.container, children: [jsxRuntimeExports.jsx(MapViewBasemap, { id: id, interactiveLayerIds: interactiveLayerIds, onClick: onClick, onDrag: onDrag, onDragEnd: onDragEnd, onDragStart: onDragStart, onMouseDrag: onMouseDrag, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseOut: onMouseOut, onMouseOver: onMouseOver, children: children }), jsxRuntimeExports.jsx(MapViewToolbar, {})] }) }));
|
9
|
+
function MapView({ children, height, id, interactiveLayerIds = [], onClick, onDrag, onDragEnd, onDragStart, onMouseDrag, onMouseEnter, onMouseLeave, onMouseOut, onMouseOver }) {
|
10
|
+
return (jsxRuntimeExports.jsx(MapViewContextProvider, { children: jsxRuntimeExports.jsxs("div", { className: styles.container, style: { gridTemplateRows: height ? `${height}px auto` : '1fr auto' }, children: [jsxRuntimeExports.jsx(MapViewBasemap, { id: id, interactiveLayerIds: interactiveLayerIds, onClick: onClick, onDrag: onDrag, onDragEnd: onDragEnd, onDragStart: onDragStart, onMouseDrag: onMouseDrag, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseOut: onMouseOut, onMouseOver: onMouseOver, children: children }), jsxRuntimeExports.jsx(MapViewToolbar, {})] }) }));
|
11
11
|
}
|
12
12
|
|
13
13
|
export { MapView };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/components/map/view/MapView/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;
|
1
|
+
{"version":3,"file":"index.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AW,CAAA,WAEvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CACO,CAAA,CACjBA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,IAAG,CAAA,CAAA,CAAA,CACb,CAAA,CAAA,CACkB,CAAA;AAE3B;;"}
|
package/dist/styles-no-reset.css
CHANGED
@@ -11847,7 +11847,6 @@ breakpoint-mobile {
|
|
11847
11847
|
|
11848
11848
|
.styles-module_container__Z7cd2 {
|
11849
11849
|
display: grid;
|
11850
|
-
grid-template-rows: 1fr auto;
|
11851
11850
|
width: 100%;
|
11852
11851
|
height: 100%;
|
11853
11852
|
}
|
package/dist/styles.css
CHANGED
@@ -11902,7 +11902,6 @@ breakpoint-mobile {
|
|
11902
11902
|
|
11903
11903
|
.styles-module_container__Z7cd2 {
|
11904
11904
|
display: grid;
|
11905
|
-
grid-template-rows: 1fr auto;
|
11906
11905
|
width: 100%;
|
11907
11906
|
height: 100%;
|
11908
11907
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tmlmobilidade/ui",
|
3
3
|
"description": "UI components for Transportes Metropolitanos de Lisboa (TML) web applications.",
|
4
|
-
"version": "
|
4
|
+
"version": "20250825.38.5",
|
5
5
|
"author": "João de Vasconcelos & Jusi Monteiro",
|
6
6
|
"license": "AGPL-3.0-or-later",
|
7
7
|
"publishConfig": {
|