@ztwoint/z-ui 0.1.121 → 0.1.123
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/components/chart-card/builders/bar-chart-builder.d.ts +1 -1
- package/dist/components/chart-card/builders/bar-chart-builder.js +78 -31
- package/dist/components/chart-card/builders/chart-builder-factory.d.ts +1 -1
- package/dist/components/chart-card/builders/chart-builder-factory.js +15 -15
- package/dist/components/chart-card/builders/line-chart-builder.d.ts +1 -1
- package/dist/components/chart-card/builders/line-chart-builder.js +85 -38
- package/dist/components/chart-card/builders/pie-chart-builder.d.ts +1 -1
- package/dist/components/chart-card/builders/pie-chart-builder.js +37 -34
- package/dist/components/chart-card/chart-card.config.types.d.ts +27 -0
- package/dist/components/chart-card/chart-card.d.ts +1 -1
- package/dist/components/chart-card/chart-card.js +25 -23
- package/dist/components/chart-card/chart-card.types.d.ts +2 -0
- package/dist/components/chart-card/config/defaults.d.ts +28 -0
- package/dist/components/chart-card/config/defaults.js +105 -88
- package/dist/components/table/components/cell/avatar-cell.js +13 -6
- package/dist/components/table/table-provider.js +7 -0
- package/dist/components/table-card/table-card.js +52 -45
- package/dist/components/z2map/components/index.d.ts +5 -0
- package/dist/components/z2map/components/map-controls.d.ts +12 -0
- package/dist/components/z2map/components/map-controls.js +29 -0
- package/dist/components/z2map/components/map-empty-state.d.ts +2 -0
- package/dist/components/z2map/components/map-empty-state.js +10 -0
- package/dist/components/z2map/components/map-loading-state.d.ts +8 -0
- package/dist/components/z2map/components/map-loading-state.js +45 -0
- package/dist/components/z2map/components/map-pin-content.d.ts +8 -0
- package/dist/components/z2map/components/map-pin-content.js +27 -0
- package/dist/components/z2map/components/map-pin.d.ts +19 -0
- package/dist/components/z2map/components/map-pin.js +116 -0
- package/dist/components/z2map/components/map-style-control.d.ts +8 -0
- package/dist/components/z2map/components/map-style-control.js +45 -0
- package/dist/components/z2map/components/map-zoom-control.d.ts +8 -0
- package/dist/components/z2map/components/map-zoom-control.js +49 -0
- package/dist/components/z2map/index.d.ts +9 -0
- package/dist/components/z2map/map.constants.d.ts +47 -0
- package/dist/components/z2map/map.constants.js +40 -0
- package/dist/components/z2map/map.d.ts +4 -0
- package/dist/components/z2map/map.hook.d.ts +33 -0
- package/dist/components/z2map/map.hook.js +99 -0
- package/dist/components/z2map/map.js +161 -0
- package/dist/components/z2map/map.type.d.ts +45 -0
- package/dist/components/z2map/map.utils.d.ts +10 -0
- package/dist/components/z2map/map.utils.js +37 -0
- package/dist/css/node_modules/mapbox-gl/dist/mapbox-gl.css +1 -0
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +128 -112
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/attribution-control.js +12 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/fullscreen-control.js +12 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/geolocate-control.js +30 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/map.js +54 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/marker.js +56 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/navigation-control.js +12 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/popup.js +35 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/scale-control.js +14 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/use-control.js +14 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/components/use-map.js +6 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/mapbox/create-ref.js +77 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/mapbox/mapbox.js +315 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/mapbox/proxy-transform.js +35 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/utils/apply-react-style.js +13 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/utils/compare-class-names.js +16 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/utils/deep-equal.js +33 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/utils/set-globals.js +18 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/utils/style-utils.js +25 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/utils/transform.js +40 -0
- package/dist/node_modules/@vis.gl/react-mapbox/dist/utils/use-isomorphic-layout-effect.js +5 -0
- package/dist/routes/map.d.ts +2 -0
- package/dist/types/components/chart-card/builders/bar-chart-builder.d.ts +1 -1
- package/dist/types/components/chart-card/builders/chart-builder-factory.d.ts +1 -1
- package/dist/types/components/chart-card/builders/line-chart-builder.d.ts +1 -1
- package/dist/types/components/chart-card/builders/pie-chart-builder.d.ts +1 -1
- package/dist/types/components/chart-card/chart-card.config.types.d.ts +27 -0
- package/dist/types/components/chart-card/chart-card.d.ts +1 -1
- package/dist/types/components/chart-card/chart-card.types.d.ts +2 -0
- package/dist/types/components/chart-card/config/defaults.d.ts +28 -0
- package/dist/types/components/z2map/components/index.d.ts +5 -0
- package/dist/types/components/z2map/components/map-controls.d.ts +12 -0
- package/dist/types/components/z2map/components/map-empty-state.d.ts +2 -0
- package/dist/types/components/z2map/components/map-loading-state.d.ts +8 -0
- package/dist/types/components/z2map/components/map-pin-content.d.ts +8 -0
- package/dist/types/components/z2map/components/map-pin.d.ts +19 -0
- package/dist/types/components/z2map/components/map-style-control.d.ts +8 -0
- package/dist/types/components/z2map/components/map-zoom-control.d.ts +8 -0
- package/dist/types/components/z2map/index.d.ts +9 -0
- package/dist/types/components/z2map/map.constants.d.ts +47 -0
- package/dist/types/components/z2map/map.d.ts +5 -0
- package/dist/types/components/z2map/map.hook.d.ts +33 -0
- package/dist/types/components/z2map/map.type.d.ts +45 -0
- package/dist/types/components/z2map/map.utils.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/routes/map.d.ts +2 -0
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -30,5 +30,6 @@ export * from './components/dynamic-table';
|
|
|
30
30
|
export * from './components/chart';
|
|
31
31
|
export * from './components/chart-card';
|
|
32
32
|
export * from './components/radio-card/radio-card';
|
|
33
|
+
export * from './components/z2map';
|
|
33
34
|
export * from './lib/theme.hook';
|
|
34
35
|
export * from './lib/utils';
|
package/dist/index.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { Alert as p, AlertDescription as
|
|
2
|
+
import { Alert as p, AlertDescription as n, AlertTitle as l } from "./components/alert/alert.js";
|
|
3
3
|
import { AlertCirclesIcon as m } from "./components/alert/icons/circles-icon.js";
|
|
4
4
|
import { Button as x, buttonVariants as i } from "./components/button/button.js";
|
|
5
5
|
import { Z2SideNavBarProvider as Z } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
6
|
-
import { Z2SideNavBar as s, Z2SidebarVariants as
|
|
6
|
+
import { Z2SideNavBar as s, Z2SidebarVariants as C } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
|
|
7
7
|
import { Z2SideNavBarHeader as S } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
8
8
|
import { Z2SideNavBarContent as I } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
9
|
import { Z2SideNavBarFooter as g } from "./components/collapsible-side-nav-bar/side-nav-bar-footer.js";
|
|
10
10
|
import { Z2SideNavBarGroup as v } from "./components/collapsible-side-nav-bar/side-nav-bar-group.js";
|
|
11
11
|
import { Z2SideNavBarItem as h } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
|
|
12
|
-
import { Z2SideNavBarSeparator as
|
|
13
|
-
import { useZ2SideNavBar as
|
|
14
|
-
import { Z2Popover as
|
|
12
|
+
import { Z2SideNavBarSeparator as M } from "./components/collapsible-side-nav-bar/side-nav-bar-separator.js";
|
|
13
|
+
import { useZ2SideNavBar as R } from "./components/collapsible-side-nav-bar/context.js";
|
|
14
|
+
import { Z2Popover as E } from "./components/collapsible-side-nav-bar/popover/popover.js";
|
|
15
15
|
import "react/jsx-runtime";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
16
|
+
import { default as N, default as k } from "./components/assets/icons/sub-nav-indicator.js";
|
|
17
|
+
import { default as _ } from "./components/assets/icons/circles-icon.js";
|
|
18
|
+
import { default as O, default as G } from "./components/assets/icons/database-copy.js";
|
|
19
|
+
import { default as W, default as U } from "./components/assets/icons/window-left-copy.js";
|
|
20
20
|
import { default as z, default as J } from "./components/assets/icons/sidebar-left-show-copy.js";
|
|
21
21
|
import { SIDEBAR_WIDTH as Y, SIDEBAR_WIDTH_COLLAPSED as j } from "./components/collapsible-side-nav-bar/constants.js";
|
|
22
22
|
import { CountryFlags as K } from "./components/country-flags/country-flags.js";
|
|
23
23
|
import { Z2Checkbox as oo } from "./components/checkbox/checkbox.js";
|
|
24
|
-
import { Z2Dialog as ro, Z2DialogClose as to, Z2DialogContent as ao, Z2DialogDescription as po, Z2DialogFooter as
|
|
25
|
-
import { DropdownContext as Zo, Z2Dropdown as co, Z2DropdownContent as so, Z2DropdownInput as
|
|
26
|
-
import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as vo, Z2DropdownMenuContent as Bo, Z2DropdownMenuGroup as ho, Z2DropdownMenuItem as Lo, Z2DropdownMenuLabel as
|
|
27
|
-
import { FileUploadArea as
|
|
28
|
-
import { DEFAULT_ACCEPT as
|
|
24
|
+
import { Z2Dialog as ro, Z2DialogClose as to, Z2DialogContent as ao, Z2DialogDescription as po, Z2DialogFooter as no, Z2DialogHeader as lo, Z2DialogOverlay as fo, Z2DialogPortal as mo, Z2DialogTitle as xo, Z2DialogTrigger as io } from "./components/dialog/dialog.js";
|
|
25
|
+
import { DropdownContext as Zo, Z2Dropdown as co, Z2DropdownContent as so, Z2DropdownInput as Co, Z2DropdownItem as bo, Z2DropdownSub as So, Z2DropdownSubContent as To, Z2DropdownSubItem as Io, Z2DropdownSubTrigger as Do } from "./components/dropdown/z2-dropdown.js";
|
|
26
|
+
import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as vo, Z2DropdownMenuContent as Bo, Z2DropdownMenuGroup as ho, Z2DropdownMenuItem as Lo, Z2DropdownMenuLabel as Mo, Z2DropdownMenuPortal as Po, Z2DropdownMenuRadioGroup as Ro, Z2DropdownMenuRadioItem as Ao, Z2DropdownMenuSeparator as Eo, Z2DropdownMenuShortcut as yo, Z2DropdownMenuSub as No, Z2DropdownMenuSubContent as ko, Z2DropdownMenuSubTrigger as Ho, Z2DropdownMenuTrigger as _o } from "./components/dropdown-menu/z2-dropdown-menu.js";
|
|
27
|
+
import { FileUploadArea as Oo } from "./components/file-upload-area/file-upload-area.js";
|
|
28
|
+
import { DEFAULT_ACCEPT as Vo } from "./components/file-upload-area/file-upload-area.const.js";
|
|
29
29
|
import { Input as Uo } from "./components/input/input.js";
|
|
30
30
|
import { NavHeader as zo } from "./components/nav-header/nav-header.js";
|
|
31
31
|
import { NavItem as Qo } from "./components/nav-header/nav-item/nav-item.js";
|
|
32
32
|
import { Z2Select as jo, Z2SelectContent as qo, Z2SelectGroup as Ko, Z2SelectItem as $o, Z2SelectLabel as oe, Z2SelectScrollDownButton as ee, Z2SelectScrollUpButton as re, Z2SelectSeparator as te, Z2SelectTrigger as ae, Z2SelectValue as pe } from "./components/select/z2-select.js";
|
|
33
|
-
import { Z2Stepper as
|
|
33
|
+
import { Z2Stepper as le } from "./components/stepper/stepper.js";
|
|
34
34
|
import { Z2StepperItem as me } from "./components/stepper-item/stepper-item.js";
|
|
35
35
|
import { Z2Tabs as xe, Z2TabsContent as ie, Z2TabsList as ue, Z2TabsTrigger as Ze } from "./components/tab/tab.js";
|
|
36
|
-
import { Table as se, TableProvider as
|
|
36
|
+
import { Table as se, TableProvider as Ce } from "./components/table/table-provider.js";
|
|
37
37
|
import { TableBody as Se } from "./components/table/table.js";
|
|
38
38
|
import { extractCellValue as Ie } from "./components/table/table.utils.js";
|
|
39
39
|
import { DEFAULT_EMPTY_MESSAGE as ge, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
|
|
40
40
|
import { TableContext as Be, useTableContext as he } from "./components/table/table.context.js";
|
|
41
|
-
import { TableCell as
|
|
42
|
-
import { NumberCell as
|
|
43
|
-
import { BooleanCell as
|
|
44
|
-
import { LinkCell as
|
|
45
|
-
import { DescriptionCell as
|
|
41
|
+
import { TableCell as Me } from "./components/table/components/table-cell.js";
|
|
42
|
+
import { NumberCell as Re } from "./components/table/components/cell/number-cell.js";
|
|
43
|
+
import { BooleanCell as Ee } from "./components/table/components/cell/boolean-cell.js";
|
|
44
|
+
import { LinkCell as Ne } from "./components/table/components/cell/link-cell.js";
|
|
45
|
+
import { DescriptionCell as He } from "./components/table/components/cell/description-cell.js";
|
|
46
46
|
import { AvatarCell as Fe } from "./components/table/components/cell/avatar-cell.js";
|
|
47
47
|
import { LabelCell as Ge } from "./components/table/components/cell/label-cell.js";
|
|
48
|
-
import { TableHeader as
|
|
48
|
+
import { TableHeader as We } from "./components/table/components/table-header/table-header.js";
|
|
49
49
|
import { default as Xe } from "./components/assets/icons/chevron-down.js";
|
|
50
50
|
import { TableRow as Je } from "./components/table/components/table-row.js";
|
|
51
51
|
import { TableMessageState as Ye } from "./components/table/components/table-message-state.js";
|
|
@@ -54,21 +54,21 @@ import { Pagination as $e } from "./components/table/components/pagination/pagin
|
|
|
54
54
|
import { TableHeaderWrapper as er } from "./components/table/components/table-header-wrapper.js";
|
|
55
55
|
import { TableHeaderContent as tr } from "./components/table/components/table-header-content.js";
|
|
56
56
|
import { TableFooter as pr } from "./components/table/components/table-footer.js";
|
|
57
|
-
import { TableFooterContent as
|
|
57
|
+
import { TableFooterContent as lr } from "./components/table/components/table-footer-content.js";
|
|
58
58
|
import { MagnifierIcon as mr } from "./components/assets/icons/magnifier-icon.js";
|
|
59
59
|
import { PaginationInfo as xr } from "./components/table/components/pagination/components/pagination-info.js";
|
|
60
60
|
import { PaginationQuickJumper as ur } from "./components/table/components/pagination/components/pagination-quick-jumper.js";
|
|
61
61
|
import "react";
|
|
62
62
|
import { Z2Tooltip as cr } from "./components/tooltip/tooltip.js";
|
|
63
|
-
import { default as
|
|
63
|
+
import { default as Cr } from "./components/table-card/table-card.js";
|
|
64
64
|
import { Badge as Sr, badgeVariants as Tr } from "./components/badge/badge.js";
|
|
65
65
|
import { Avatar as Dr, AvatarWithLabel as gr } from "./components/avatar/avatar.js";
|
|
66
66
|
import { Z2TextPreset as vr } from "./components/text-preset/text-preset.js";
|
|
67
67
|
import { ColumnReOrder as hr } from "./components/column-reorder/column-reorder.js";
|
|
68
|
-
import { default as
|
|
69
|
-
import { Z2Breadcrumb as
|
|
70
|
-
import { Z2RadioGroup as Fr, Z2RadioGroupIndicator as
|
|
71
|
-
import { default as
|
|
68
|
+
import { default as Mr } from "./components/tree-checkbox-select/TreeCheckboxSelect.js";
|
|
69
|
+
import { Z2Breadcrumb as Rr, Z2BreadcrumbEllipsis as Ar, Z2BreadcrumbItem as Er, Z2BreadcrumbLink as yr, Z2BreadcrumbList as Nr, Z2BreadcrumbPage as kr, Z2BreadcrumbSeparator as Hr } from "./components/breadcrumb/z2-breadcrumb.js";
|
|
70
|
+
import { Z2RadioGroup as Fr, Z2RadioGroupIndicator as Or, Z2RadioGroupItem as Gr } from "./components/radio/z2-radio.js";
|
|
71
|
+
import { default as Wr } from "./components/assets/icons/apartment-building.js";
|
|
72
72
|
import { Check as Xr } from "./components/assets/icons/check.js";
|
|
73
73
|
import { default as Jr } from "./components/assets/icons/chevron-left.js";
|
|
74
74
|
import { default as Yr } from "./components/assets/icons/chevron-right.js";
|
|
@@ -77,25 +77,25 @@ import { default as $r } from "./components/assets/icons/circle-check.js";
|
|
|
77
77
|
import { default as et } from "./components/assets/icons/dots.js";
|
|
78
78
|
import { default as tt } from "./components/assets/icons/double-chevron-left.js";
|
|
79
79
|
import { default as pt } from "./components/assets/icons/double-chevron-right.js";
|
|
80
|
-
import { default as
|
|
80
|
+
import { default as lt } from "./components/assets/icons/drag-handle.js";
|
|
81
81
|
import { default as mt } from "./components/assets/icons/home.js";
|
|
82
82
|
import { InfoIcon as xt } from "./components/assets/icons/info-icon.js";
|
|
83
83
|
import { default as ut } from "./components/assets/icons/left-arrow.js";
|
|
84
84
|
import { default as ct } from "./components/assets/icons/link.js";
|
|
85
|
-
import { default as
|
|
85
|
+
import { default as Ct } from "./components/assets/icons/list-tree.js";
|
|
86
86
|
import { default as St } from "./components/assets/icons/media-record.js";
|
|
87
87
|
import { Minus as It } from "./components/assets/icons/minus.js";
|
|
88
88
|
import { default as gt } from "./components/assets/icons/octagon-warning-Copy.js";
|
|
89
89
|
import { default as vt } from "./components/assets/icons/pin.js";
|
|
90
90
|
import { default as ht } from "./components/assets/icons/sitemap.js";
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { XMark as
|
|
95
|
-
import { default as
|
|
91
|
+
import { default as Mt } from "./components/assets/icons/slider.js";
|
|
92
|
+
import { default as Rt } from "./components/assets/icons/upload.js";
|
|
93
|
+
import { default as Et } from "./components/assets/icons/vector.js";
|
|
94
|
+
import { XMark as Nt } from "./components/assets/icons/x-mark.js";
|
|
95
|
+
import { default as Ht } from "./components/assets/icons/x.js";
|
|
96
96
|
import { default as Ft } from "./components/assets/icons/z2-icon.js";
|
|
97
97
|
import { default as Gt } from "./components/assets/icons/z2-slash.js";
|
|
98
|
-
import { default as
|
|
98
|
+
import { default as Wt } from "./components/assets/icons/z2data.js";
|
|
99
99
|
import { default as Xt } from "./components/assets/icons/vector_3.js";
|
|
100
100
|
import { default as Jt } from "./components/assets/icons/table-cols-2.js";
|
|
101
101
|
import { default as Yt } from "./components/assets/icons/triangle-warning.js";
|
|
@@ -104,42 +104,49 @@ import { default as $t } from "./components/assets/icons/filter-icon.js";
|
|
|
104
104
|
import { default as ea } from "./components/assets/icons/descending.js";
|
|
105
105
|
import { default as ta } from "./components/assets/icons/chain.js";
|
|
106
106
|
import { default as pa } from "./components/assets/icons/eraser.js";
|
|
107
|
-
import { SegmentedControl as
|
|
107
|
+
import { SegmentedControl as la } from "./components/segmented-control/controller.js";
|
|
108
108
|
import { SegmentedControlItem as ma } from "./components/segmented-control/item.js";
|
|
109
109
|
import { Popover as xa, PopoverAnchor as ia, PopoverContent as ua, PopoverTrigger as Za } from "./components/popover/popover.js";
|
|
110
|
-
import { Z2Table as sa, Z2TableBase as
|
|
111
|
-
import { Z2TableContainer as
|
|
110
|
+
import { Z2Table as sa, Z2TableBase as Ca, Z2TableBody as ba, Z2TableBodyRow as Sa, Z2TableBodyRowCell as Ta, Z2TableBodyRowExpandded as Ia, Z2TableBodyRowSkeleton as Da, Z2TableBodyRowSkeletonCell as ga, Z2TableEmpty as wa, Z2TableHead as va, Z2TableHeadRow as Ba, Z2TableHeadRowCell as ha, Z2TableHeadRowCellResize as La, Z2TableLoader as Ma, Z2TableRowSelect as Pa, Z2TableRowSelectAll as Ra, Z2TableRowSpacer as Aa } from "./components/dynamic-table/z2-table.js";
|
|
111
|
+
import { Z2TableContainer as ya, Z2TableProvider as Na, Z2TableRoot as ka, useZ2Table as Ha } from "./components/dynamic-table/z2-table-context.js";
|
|
112
112
|
import { Z2TablePagination as Fa } from "./components/dynamic-table/z2-table-pagination.js";
|
|
113
113
|
import { Z2TableColumnHeader as Ga } from "./components/dynamic-table/z2-column-header.js";
|
|
114
|
-
import { Chart as
|
|
114
|
+
import { Chart as Wa } from "./components/chart/chart.js";
|
|
115
115
|
import { ChartCard as Xa } from "./components/chart-card/chart-card.js";
|
|
116
116
|
import { EmptyState as Ja, ErrorState as Qa, LoadingState as Ya } from "./components/chart-card/chart-card-states.js";
|
|
117
117
|
import { COLOR_PALETTES as qa, UI_COLORS as Ka, getThemePalette as $a } from "./components/chart-card/config/colors.js";
|
|
118
118
|
import { validateChartConfig as ep, validateChartData as rp } from "./components/chart-card/validators/config-validator.js";
|
|
119
119
|
import { buildBarChartOptions as ap } from "./components/chart-card/builders/bar-chart-builder.js";
|
|
120
|
-
import { buildLineChartOptions as
|
|
120
|
+
import { buildLineChartOptions as np } from "./components/chart-card/builders/line-chart-builder.js";
|
|
121
121
|
import { buildChartOptions as fp, isChartTypeSupported as mp, registeredChartTypes as dp } from "./components/chart-card/builders/chart-builder-factory.js";
|
|
122
122
|
import { Z2RadioCard as ip } from "./components/radio-card/radio-card.js";
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
123
|
+
import { default as Zp } from "./components/z2map/map.js";
|
|
124
|
+
import { DEFAULT_MAP_CONFIG as sp, MAP_VARIANTS as Cp, PIN_SIZES as bp } from "./components/z2map/map.constants.js";
|
|
125
|
+
import { MapPinComponent as Tp } from "./components/z2map/components/map-pin.js";
|
|
126
|
+
import { MapPinContent as Dp } from "./components/z2map/components/map-pin-content.js";
|
|
127
|
+
import { MapControls as wp } from "./components/z2map/components/map-controls.js";
|
|
128
|
+
import { MapZoomControl as Bp } from "./components/z2map/components/map-zoom-control.js";
|
|
129
|
+
import { MapStyleControl as Lp } from "./components/z2map/components/map-style-control.js";
|
|
130
|
+
import { useTheme as Pp } from "./lib/theme.hook.js";
|
|
131
|
+
import { cn as Ap } from "./lib/utils.js";
|
|
132
|
+
import { Z2PopoverTrigger as yp } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
133
|
+
import { Z2PopoverContent as kp } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
127
134
|
export {
|
|
128
135
|
p as Alert,
|
|
129
136
|
m as AlertCirclesIcon,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
137
|
+
n as AlertDescription,
|
|
138
|
+
l as AlertTitle,
|
|
139
|
+
Wr as ApartmentBuildingIcon,
|
|
133
140
|
qt as ArrowLeftIcon,
|
|
134
141
|
Dr as Avatar,
|
|
135
142
|
Fe as AvatarCell,
|
|
136
143
|
gr as AvatarWithLabel,
|
|
137
144
|
Sr as Badge,
|
|
138
|
-
|
|
145
|
+
Ee as BooleanCell,
|
|
139
146
|
x as Button,
|
|
140
147
|
qa as COLOR_PALETTES,
|
|
141
148
|
ta as ChainIcon,
|
|
142
|
-
|
|
149
|
+
Wa as Chart,
|
|
143
150
|
Xa as ChartCard,
|
|
144
151
|
Xr as CheckIcon,
|
|
145
152
|
Xe as ChevronDownIcon,
|
|
@@ -147,41 +154,49 @@ export {
|
|
|
147
154
|
Yr as ChevronRightIcon,
|
|
148
155
|
qr as CircleCheckFilledIcon,
|
|
149
156
|
$r as CircleCheckIcon,
|
|
150
|
-
|
|
157
|
+
_ as CirclesIcon,
|
|
151
158
|
hr as ColumnReOrder,
|
|
152
159
|
K as CountryFlags,
|
|
153
|
-
|
|
160
|
+
Vo as DEFAULT_ACCEPT,
|
|
154
161
|
ge as DEFAULT_EMPTY_MESSAGE,
|
|
155
|
-
|
|
162
|
+
sp as DEFAULT_MAP_CONFIG,
|
|
163
|
+
O as DatabaseCopy,
|
|
156
164
|
G as DatabaseCopyIcon,
|
|
157
165
|
ea as DescendingSortingIcon,
|
|
158
|
-
|
|
166
|
+
He as DescriptionCell,
|
|
159
167
|
et as DotsIcon,
|
|
160
168
|
tt as DoubleChevronLeftIcon,
|
|
161
169
|
pt as DoubleChevronRightIcon,
|
|
162
|
-
|
|
170
|
+
lt as DragHandleIcon,
|
|
163
171
|
Zo as DropdownContext,
|
|
164
172
|
Ja as EmptyState,
|
|
165
173
|
pa as EraserIcon,
|
|
166
174
|
Qa as ErrorState,
|
|
167
|
-
|
|
175
|
+
Oo as FileUploadArea,
|
|
168
176
|
$t as FilterIcon,
|
|
169
177
|
mt as HomeIcon,
|
|
170
178
|
xt as InfoIcon,
|
|
171
179
|
Uo as Input,
|
|
172
180
|
Ge as LabelCell,
|
|
173
181
|
ut as LeftArrowIcon,
|
|
174
|
-
|
|
182
|
+
Ne as LinkCell,
|
|
175
183
|
ct as LinkIcon,
|
|
176
|
-
|
|
184
|
+
Ct as ListTreeIcon,
|
|
177
185
|
Ya as LoadingState,
|
|
186
|
+
Cp as MAP_VARIANTS,
|
|
178
187
|
mr as MagnifierIcon,
|
|
188
|
+
wp as MapControls,
|
|
189
|
+
Tp as MapPinComponent,
|
|
190
|
+
Dp as MapPinContent,
|
|
191
|
+
Lp as MapStyleControl,
|
|
192
|
+
Bp as MapZoomControl,
|
|
179
193
|
St as MediaRecordIcon,
|
|
180
194
|
It as MinusIcon,
|
|
181
195
|
zo as NavHeader,
|
|
182
196
|
Qo as NavItem,
|
|
183
|
-
|
|
197
|
+
Re as NumberCell,
|
|
184
198
|
gt as OctagonWarningIcon,
|
|
199
|
+
bp as PIN_SIZES,
|
|
185
200
|
xr as PaginationInfo,
|
|
186
201
|
ur as PaginationQuickJumper,
|
|
187
202
|
vt as PinIcon,
|
|
@@ -191,90 +206,91 @@ export {
|
|
|
191
206
|
Za as PopoverTrigger,
|
|
192
207
|
Y as SIDEBAR_WIDTH,
|
|
193
208
|
j as SIDEBAR_WIDTH_COLLAPSED,
|
|
194
|
-
|
|
209
|
+
la as SegmentedControl,
|
|
195
210
|
ma as SegmentedControlItem,
|
|
196
211
|
z as SidebarLeftShowCopy,
|
|
197
212
|
J as SidebarLeftShowCopyIcon,
|
|
198
213
|
ht as SitemapIcon,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
214
|
+
Mt as SliderIcon,
|
|
215
|
+
N as SubNavIndicator,
|
|
216
|
+
k as SubNavIndicatorIcon,
|
|
202
217
|
we as TABLE_CSS_CLASSES,
|
|
203
218
|
se as Table,
|
|
204
219
|
Se as TableBody,
|
|
205
|
-
|
|
206
|
-
|
|
220
|
+
Cr as TableCard,
|
|
221
|
+
Me as TableCell,
|
|
207
222
|
Jt as TableCols2Icon,
|
|
208
223
|
Be as TableContext,
|
|
209
224
|
pr as TableFooter,
|
|
210
|
-
|
|
211
|
-
|
|
225
|
+
lr as TableFooterContent,
|
|
226
|
+
We as TableHeader,
|
|
212
227
|
tr as TableHeaderContent,
|
|
213
228
|
er as TableHeaderWrapper,
|
|
214
229
|
qe as TableLoadingState,
|
|
215
230
|
Ye as TableMessageState,
|
|
216
231
|
$e as TablePagination,
|
|
217
|
-
|
|
232
|
+
Ce as TableProvider,
|
|
218
233
|
Je as TableRow,
|
|
219
|
-
|
|
234
|
+
Mr as TreeCheckboxSelect,
|
|
220
235
|
Yt as TriangleWarningIcon,
|
|
221
236
|
Ka as UI_COLORS,
|
|
222
|
-
|
|
237
|
+
Rt as UploadIcon,
|
|
223
238
|
Xt as Vector3Icon,
|
|
224
|
-
|
|
225
|
-
|
|
239
|
+
Et as VectorIcon,
|
|
240
|
+
W as WindowLeftCopy,
|
|
226
241
|
U as WindowLeftCopyIcon,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
242
|
+
Ht as XIcon,
|
|
243
|
+
Nt as XMarkIcon,
|
|
244
|
+
Rr as Z2Breadcrumb,
|
|
230
245
|
Ar as Z2BreadcrumbEllipsis,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
246
|
+
Er as Z2BreadcrumbItem,
|
|
247
|
+
yr as Z2BreadcrumbLink,
|
|
248
|
+
Nr as Z2BreadcrumbList,
|
|
249
|
+
kr as Z2BreadcrumbPage,
|
|
250
|
+
Hr as Z2BreadcrumbSeparator,
|
|
236
251
|
oo as Z2Checkbox,
|
|
237
|
-
|
|
252
|
+
Wt as Z2DataIcon,
|
|
238
253
|
ro as Z2Dialog,
|
|
239
254
|
to as Z2DialogClose,
|
|
240
255
|
ao as Z2DialogContent,
|
|
241
256
|
po as Z2DialogDescription,
|
|
242
|
-
|
|
243
|
-
|
|
257
|
+
no as Z2DialogFooter,
|
|
258
|
+
lo as Z2DialogHeader,
|
|
244
259
|
fo as Z2DialogOverlay,
|
|
245
260
|
mo as Z2DialogPortal,
|
|
246
261
|
xo as Z2DialogTitle,
|
|
247
262
|
io as Z2DialogTrigger,
|
|
248
263
|
co as Z2Dropdown,
|
|
249
264
|
so as Z2DropdownContent,
|
|
250
|
-
|
|
251
|
-
|
|
265
|
+
Co as Z2DropdownInput,
|
|
266
|
+
bo as Z2DropdownItem,
|
|
252
267
|
wo as Z2DropdownMenu,
|
|
253
268
|
vo as Z2DropdownMenuCheckboxItem,
|
|
254
269
|
Bo as Z2DropdownMenuContent,
|
|
255
270
|
ho as Z2DropdownMenuGroup,
|
|
256
271
|
Lo as Z2DropdownMenuItem,
|
|
257
|
-
|
|
272
|
+
Mo as Z2DropdownMenuLabel,
|
|
258
273
|
Po as Z2DropdownMenuPortal,
|
|
259
|
-
|
|
274
|
+
Ro as Z2DropdownMenuRadioGroup,
|
|
260
275
|
Ao as Z2DropdownMenuRadioItem,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
276
|
+
Eo as Z2DropdownMenuSeparator,
|
|
277
|
+
yo as Z2DropdownMenuShortcut,
|
|
278
|
+
No as Z2DropdownMenuSub,
|
|
279
|
+
ko as Z2DropdownMenuSubContent,
|
|
280
|
+
Ho as Z2DropdownMenuSubTrigger,
|
|
281
|
+
_o as Z2DropdownMenuTrigger,
|
|
267
282
|
So as Z2DropdownSub,
|
|
268
283
|
To as Z2DropdownSubContent,
|
|
269
284
|
Io as Z2DropdownSubItem,
|
|
270
285
|
Do as Z2DropdownSubTrigger,
|
|
271
286
|
Ft as Z2Icon,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
287
|
+
Zp as Z2Map,
|
|
288
|
+
E as Z2Popover,
|
|
289
|
+
kp as Z2PopoverContent,
|
|
290
|
+
yp as Z2PopoverTrigger,
|
|
275
291
|
ip as Z2RadioCard,
|
|
276
292
|
Fr as Z2RadioGroup,
|
|
277
|
-
|
|
293
|
+
Or as Z2RadioGroupIndicator,
|
|
278
294
|
Gr as Z2RadioGroupItem,
|
|
279
295
|
jo as Z2Select,
|
|
280
296
|
qo as Z2SelectContent,
|
|
@@ -293,32 +309,32 @@ export {
|
|
|
293
309
|
S as Z2SideNavBarHeader,
|
|
294
310
|
h as Z2SideNavBarItem,
|
|
295
311
|
Z as Z2SideNavBarProvider,
|
|
296
|
-
|
|
297
|
-
|
|
312
|
+
M as Z2SideNavBarSeparator,
|
|
313
|
+
C as Z2SidebarVariants,
|
|
298
314
|
Gt as Z2SlashIcon,
|
|
299
|
-
|
|
315
|
+
le as Z2Stepper,
|
|
300
316
|
me as Z2StepperItem,
|
|
301
317
|
sa as Z2Table,
|
|
302
|
-
|
|
303
|
-
|
|
318
|
+
Ca as Z2TableBase,
|
|
319
|
+
ba as Z2TableBody,
|
|
304
320
|
Sa as Z2TableBodyRow,
|
|
305
321
|
Ta as Z2TableBodyRowCell,
|
|
306
322
|
Ia as Z2TableBodyRowExpandded,
|
|
307
323
|
Da as Z2TableBodyRowSkeleton,
|
|
308
324
|
ga as Z2TableBodyRowSkeletonCell,
|
|
309
325
|
Ga as Z2TableColumnHeader,
|
|
310
|
-
|
|
326
|
+
ya as Z2TableContainer,
|
|
311
327
|
wa as Z2TableEmpty,
|
|
312
328
|
va as Z2TableHead,
|
|
313
329
|
Ba as Z2TableHeadRow,
|
|
314
330
|
ha as Z2TableHeadRowCell,
|
|
315
331
|
La as Z2TableHeadRowCellResize,
|
|
316
|
-
|
|
332
|
+
Ma as Z2TableLoader,
|
|
317
333
|
Fa as Z2TablePagination,
|
|
318
|
-
|
|
319
|
-
|
|
334
|
+
Na as Z2TableProvider,
|
|
335
|
+
ka as Z2TableRoot,
|
|
320
336
|
Pa as Z2TableRowSelect,
|
|
321
|
-
|
|
337
|
+
Ra as Z2TableRowSelectAll,
|
|
322
338
|
Aa as Z2TableRowSpacer,
|
|
323
339
|
xe as Z2Tabs,
|
|
324
340
|
ie as Z2TabsContent,
|
|
@@ -329,17 +345,17 @@ export {
|
|
|
329
345
|
Tr as badgeVariants,
|
|
330
346
|
ap as buildBarChartOptions,
|
|
331
347
|
fp as buildChartOptions,
|
|
332
|
-
|
|
348
|
+
np as buildLineChartOptions,
|
|
333
349
|
i as buttonVariants,
|
|
334
|
-
|
|
350
|
+
Ap as cn,
|
|
335
351
|
Ie as extractCellValue,
|
|
336
352
|
$a as getThemePalette,
|
|
337
353
|
mp as isChartTypeSupported,
|
|
338
354
|
dp as registeredChartTypes,
|
|
339
355
|
he as useTableContext,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
356
|
+
Pp as useTheme,
|
|
357
|
+
R as useZ2SideNavBar,
|
|
358
|
+
Ha as useZ2Table,
|
|
343
359
|
ep as validateChartConfig,
|
|
344
360
|
rp as validateChartData
|
|
345
361
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { memo as i, useEffect as r } from "react";
|
|
2
|
+
import { applyReactStyle as e } from "../utils/apply-react-style.js";
|
|
3
|
+
import { useControl as l } from "./use-control.js";
|
|
4
|
+
function m(t) {
|
|
5
|
+
const o = l(({ mapLib: n }) => new n.AttributionControl(t), {
|
|
6
|
+
position: t.position
|
|
7
|
+
});
|
|
8
|
+
return r(() => {
|
|
9
|
+
e(o._container, t.style);
|
|
10
|
+
}, [t.style]), null;
|
|
11
|
+
}
|
|
12
|
+
i(m);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { memo as o, useEffect as l } from "react";
|
|
2
|
+
import { applyReactStyle as r } from "../utils/apply-react-style.js";
|
|
3
|
+
import { useControl as c } from "./use-control.js";
|
|
4
|
+
function i(t) {
|
|
5
|
+
const n = c(({ mapLib: e }) => new e.FullscreenControl({
|
|
6
|
+
container: t.containerId && document.getElementById(t.containerId)
|
|
7
|
+
}), { position: t.position });
|
|
8
|
+
return l(() => {
|
|
9
|
+
r(n._controlContainer, t.style);
|
|
10
|
+
}, [t.style]), null;
|
|
11
|
+
}
|
|
12
|
+
o(i);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { memo as l, forwardRef as f, useRef as p, useImperativeHandle as m, useEffect as d } from "react";
|
|
2
|
+
import { applyReactStyle as U } from "../utils/apply-react-style.js";
|
|
3
|
+
import { useControl as _ } from "./use-control.js";
|
|
4
|
+
function k(n, a) {
|
|
5
|
+
const c = p({ props: n }), s = _(({ mapLib: u }) => {
|
|
6
|
+
const e = new u.GeolocateControl(n), i = e._setupUI.bind(e);
|
|
7
|
+
return e._setupUI = (r) => {
|
|
8
|
+
e._container.hasChildNodes() || i(r);
|
|
9
|
+
}, e.on("geolocate", (r) => {
|
|
10
|
+
var o, t;
|
|
11
|
+
(t = (o = c.current.props).onGeolocate) == null || t.call(o, r);
|
|
12
|
+
}), e.on("error", (r) => {
|
|
13
|
+
var o, t;
|
|
14
|
+
(t = (o = c.current.props).onError) == null || t.call(o, r);
|
|
15
|
+
}), e.on("outofmaxbounds", (r) => {
|
|
16
|
+
var o, t;
|
|
17
|
+
(t = (o = c.current.props).onOutOfMaxBounds) == null || t.call(o, r);
|
|
18
|
+
}), e.on("trackuserlocationstart", (r) => {
|
|
19
|
+
var o, t;
|
|
20
|
+
(t = (o = c.current.props).onTrackUserLocationStart) == null || t.call(o, r);
|
|
21
|
+
}), e.on("trackuserlocationend", (r) => {
|
|
22
|
+
var o, t;
|
|
23
|
+
(t = (o = c.current.props).onTrackUserLocationEnd) == null || t.call(o, r);
|
|
24
|
+
}), e;
|
|
25
|
+
}, { position: n.position });
|
|
26
|
+
return c.current.props = n, m(a, () => s, []), d(() => {
|
|
27
|
+
U(s._container, n.style);
|
|
28
|
+
}, [n.style]), null;
|
|
29
|
+
}
|
|
30
|
+
l(f(k));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { useContext as b, useState as E, useRef as s, useEffect as v, useImperativeHandle as y, useMemo as L } from "react";
|
|
3
|
+
import { MountedMapsContext as I } from "./use-map.js";
|
|
4
|
+
import f from "../mapbox/mapbox.js";
|
|
5
|
+
import w from "../mapbox/create-ref.js";
|
|
6
|
+
import x from "../utils/use-isomorphic-layout-effect.js";
|
|
7
|
+
import R from "../utils/set-globals.js";
|
|
8
|
+
const g = o.createContext(null);
|
|
9
|
+
function C(e, u) {
|
|
10
|
+
const a = b(I), [l, M] = E(null), c = s(), { current: i } = s({ mapLib: null, map: null });
|
|
11
|
+
v(() => {
|
|
12
|
+
const p = e.mapLib;
|
|
13
|
+
let m = !0, t;
|
|
14
|
+
return Promise.resolve(p || import("mapbox-gl")).then((r) => {
|
|
15
|
+
if (!m)
|
|
16
|
+
return;
|
|
17
|
+
if (!r)
|
|
18
|
+
throw new Error("Invalid mapLib");
|
|
19
|
+
const n = "Map" in r ? r : r.default;
|
|
20
|
+
if (!n.Map)
|
|
21
|
+
throw new Error("Invalid mapLib");
|
|
22
|
+
R(n, e), e.reuseMaps && (t = f.reuse(e, c.current)), t || (t = new f(n.Map, e, c.current)), i.map = w(t), i.mapLib = n, M(t), a == null || a.onMapMount(i.map, e.id);
|
|
23
|
+
}).catch((r) => {
|
|
24
|
+
const { onError: n } = e;
|
|
25
|
+
n ? n({
|
|
26
|
+
type: "error",
|
|
27
|
+
target: null,
|
|
28
|
+
error: r
|
|
29
|
+
}) : console.error(r);
|
|
30
|
+
}), () => {
|
|
31
|
+
m = !1, t && (a == null || a.onMapUnmount(e.id), e.reuseMaps ? t.recycle() : t.destroy());
|
|
32
|
+
};
|
|
33
|
+
}, []), x(() => {
|
|
34
|
+
l && l.setProps(e);
|
|
35
|
+
}), y(u, () => i.map, [l]);
|
|
36
|
+
const d = L(() => ({
|
|
37
|
+
position: "relative",
|
|
38
|
+
width: "100%",
|
|
39
|
+
height: "100%",
|
|
40
|
+
...e.style
|
|
41
|
+
}), [e.style]), h = {
|
|
42
|
+
height: "100%"
|
|
43
|
+
};
|
|
44
|
+
return o.createElement("div", { id: e.id, ref: c, style: d }, l && o.createElement(
|
|
45
|
+
g.Provider,
|
|
46
|
+
{ value: i },
|
|
47
|
+
o.createElement("div", { "mapboxgl-children": "", style: h }, e.children)
|
|
48
|
+
));
|
|
49
|
+
}
|
|
50
|
+
const A = o.forwardRef(C);
|
|
51
|
+
export {
|
|
52
|
+
A as Map,
|
|
53
|
+
g as MapContext
|
|
54
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as D from "react";
|
|
2
|
+
import { memo as M, forwardRef as N, useContext as b, useRef as y, useMemo as x, useEffect as R, useImperativeHandle as w } from "react";
|
|
3
|
+
import { createPortal as O } from "react-dom";
|
|
4
|
+
import { applyReactStyle as S } from "../utils/apply-react-style.js";
|
|
5
|
+
import { MapContext as q } from "./map.js";
|
|
6
|
+
import { arePointsEqual as H } from "../utils/deep-equal.js";
|
|
7
|
+
import { compareClassNames as I } from "../utils/compare-class-names.js";
|
|
8
|
+
const J = M(N((a, v) => {
|
|
9
|
+
const { map: k, mapLib: C } = b(q), l = y({ props: a }), t = x(() => {
|
|
10
|
+
let s = !1;
|
|
11
|
+
D.Children.forEach(a.children, (o) => {
|
|
12
|
+
o && (s = !0);
|
|
13
|
+
});
|
|
14
|
+
const A = {
|
|
15
|
+
...a,
|
|
16
|
+
element: s ? document.createElement("div") : null
|
|
17
|
+
}, i = new C.Marker(A);
|
|
18
|
+
return i.setLngLat([a.longitude, a.latitude]), i.getElement().addEventListener("click", (o) => {
|
|
19
|
+
var e, n;
|
|
20
|
+
(n = (e = l.current.props).onClick) == null || n.call(e, {
|
|
21
|
+
type: "click",
|
|
22
|
+
target: i,
|
|
23
|
+
originalEvent: o
|
|
24
|
+
});
|
|
25
|
+
}), i.on("dragstart", (o) => {
|
|
26
|
+
var n, r;
|
|
27
|
+
const e = o;
|
|
28
|
+
e.lngLat = t.getLngLat(), (r = (n = l.current.props).onDragStart) == null || r.call(n, e);
|
|
29
|
+
}), i.on("drag", (o) => {
|
|
30
|
+
var n, r;
|
|
31
|
+
const e = o;
|
|
32
|
+
e.lngLat = t.getLngLat(), (r = (n = l.current.props).onDrag) == null || r.call(n, e);
|
|
33
|
+
}), i.on("dragend", (o) => {
|
|
34
|
+
var n, r;
|
|
35
|
+
const e = o;
|
|
36
|
+
e.lngLat = t.getLngLat(), (r = (n = l.current.props).onDragEnd) == null || r.call(n, e);
|
|
37
|
+
}), i;
|
|
38
|
+
}, []);
|
|
39
|
+
R(() => (t.addTo(k.getMap()), () => {
|
|
40
|
+
t.remove();
|
|
41
|
+
}), []);
|
|
42
|
+
const { longitude: c, latitude: m, offset: g, style: f, draggable: u = !1, popup: d = null, rotation: p = 0, rotationAlignment: L = "auto", pitchAlignment: h = "auto" } = a;
|
|
43
|
+
R(() => {
|
|
44
|
+
S(t.getElement(), f);
|
|
45
|
+
}, [f]), w(v, () => t, []);
|
|
46
|
+
const P = l.current.props;
|
|
47
|
+
(t.getLngLat().lng !== c || t.getLngLat().lat !== m) && t.setLngLat([c, m]), g && !H(t.getOffset(), g) && t.setOffset(g), t.isDraggable() !== u && t.setDraggable(u), t.getRotation() !== p && t.setRotation(p), t.getRotationAlignment() !== L && t.setRotationAlignment(L), t.getPitchAlignment() !== h && t.setPitchAlignment(h), t.getPopup() !== d && t.setPopup(d);
|
|
48
|
+
const E = I(P.className, a.className);
|
|
49
|
+
if (E)
|
|
50
|
+
for (const s of E)
|
|
51
|
+
t.toggleClassName(s);
|
|
52
|
+
return l.current.props = a, O(a.children, t.getElement());
|
|
53
|
+
}));
|
|
54
|
+
export {
|
|
55
|
+
J as Marker
|
|
56
|
+
};
|