@nxgt/material 2.7.1 → 2.9.0
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/CHANGELOG.md +201 -0
- package/README.md +9 -6
- package/dist/{_Uint8Array-JRUmWcRr.js → _Uint8Array-azThpjEP.js} +1 -1
- package/dist/{_overRest-DvC5rm5s.js → _overRest-DMn4Dt71.js} +1 -1
- package/dist/{abnfDiagram-O67JEVCF-Cl4ukf6a.js → abnfDiagram-O67JEVCF-D-rmT4BY.js} +4 -4
- package/dist/{architectureDiagram-NJMV4G6O-WmFlBQF5.js → architectureDiagram-NJMV4G6O-DOc_c_T9.js} +7 -7
- package/dist/{async-slice-OftEOtMA.js → async-slice-DhZDjEtw.js} +2 -2
- package/dist/{blockDiagram-BEXU5L5S-BM-gkWAO.js → blockDiagram-BEXU5L5S-BOsyK4E_.js} +11 -11
- package/dist/{c4Diagram-YGBWAQC7-D9xSt2QO.js → c4Diagram-YGBWAQC7-El4SkIzX.js} +8 -8
- package/dist/{channel-Dg92Hoym.js → channel-CnLB6790.js} +1 -1
- package/dist/{chunk-3FUC2YCW-Cf18L00V.js → chunk-3FUC2YCW-BCsKm3ZT.js} +8 -8
- package/dist/{chunk-5DYCD2WN-Cja1INgd.js → chunk-5DYCD2WN-Cd1zazNp.js} +3 -3
- package/dist/{chunk-6AEJRKK7-3YWRP4aV.js → chunk-6AEJRKK7-BLBlw8ui.js} +2 -2
- package/dist/{chunk-742MDFTN-Cs1qGiTK.js → chunk-742MDFTN-CsUjFyzK.js} +2 -2
- package/dist/{chunk-7INBJB4K-BY5n77ka.js → chunk-7INBJB4K-k-I67NSP.js} +6 -6
- package/dist/{chunk-7M6MHVWA-C3x6E3yT.js → chunk-7M6MHVWA-C3qpW8zM.js} +9 -9
- package/dist/{chunk-7PRAP22T-_Av9vcXz.js → chunk-7PRAP22T-0C6_H8Li.js} +1 -1
- package/dist/{chunk-GNY47TPC-D1E6DHDV.js → chunk-GNY47TPC-CzPNLW5k.js} +11 -11
- package/dist/{chunk-GTNCS2PH-BZ9WMD1v.js → chunk-GTNCS2PH-AJi9PVT7.js} +3 -3
- package/dist/{chunk-GWA4HPMP-Co-A6dtV.js → chunk-GWA4HPMP-B8jXI0Tl.js} +3 -3
- package/dist/{chunk-MBY4JIJT-C3RQP_Nk.js → chunk-MBY4JIJT-BFIqOe-8.js} +4 -4
- package/dist/{chunk-NETBCI7D-DJUuN4EY.js → chunk-NETBCI7D-tNinefdn.js} +1 -1
- package/dist/{chunk-O7XYJQB3-A66QSOPA.js → chunk-O7XYJQB3-BChweQ_V.js} +1 -1
- package/dist/{chunk-UA2S7LBM-BNeHeMx9.js → chunk-UA2S7LBM-ChuksCDg.js} +6 -6
- package/dist/{chunk-WEXAMYUT-CucJfehv.js → chunk-WEXAMYUT-CbFOhEve.js} +2 -2
- package/dist/{chunk-XXDRQBXY-FgXU14Bh.js → chunk-XXDRQBXY-dKXxu_aj.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-DMTBxZxM.js → chunk-Z7XXMR3K-C9P-XjM2.js} +8 -8
- package/dist/{chunk-ZIGJFQKS-C3xUAXJq.js → chunk-ZIGJFQKS-9VXArDKF.js} +3 -3
- package/dist/{classDiagram-v2-NBCMYWYE-BDaxYvDy.js → classDiagram-v2-NBCMYWYE-D00ZobEC.js} +14 -14
- package/dist/clsx-CbxlCXZ3.js +16 -0
- package/dist/components/base-content.css +139 -0
- package/dist/components/base.css +150 -0
- package/dist/components/components.css +2 -0
- package/dist/components/reduced-motion.css +56 -0
- package/dist/components/theme-tokens.css +116 -0
- package/dist/components/ui/actions/button-group/button-group.css +1 -1
- package/dist/components/ui/feedback/toast/toast.css +21 -0
- package/dist/components/ui/primitives/label/label.css +33 -0
- package/dist/{components-DrStgM4J.js → components-km60bAdr.js} +34658 -34218
- package/dist/components.js +6 -6
- package/dist/{cose-bilkent-JH36ORCC-DRUT3qBb.js → cose-bilkent-JH36ORCC-P94vkHv_.js} +2 -2
- package/dist/{cynefinDiagram-VND7K2PF-B9HrdQW8.js → cynefinDiagram-VND7K2PF-EIpXbLXm.js} +4 -4
- package/dist/{dagre-6A5THRUB-DZF0nICj.js → dagre-6A5THRUB-D_F3_LlW.js} +20 -20
- package/dist/{diagram-22UHCM2B-CVZYpeev.js → diagram-22UHCM2B-CsxOExpW.js} +15 -15
- package/dist/{diagram-3UASUU5V-D7MmBJbM.js → diagram-3UASUU5V-Dl7AETV1.js} +7 -7
- package/dist/{diagram-ATOU4E4O-CNY-8kl0.js → diagram-ATOU4E4O-isL7nwg2.js} +3 -3
- package/dist/{diagram-CDSNMT55-C8Mk1smi.js → diagram-CDSNMT55-Bnhlo5at.js} +5 -5
- package/dist/{diagram-MLGK6HIB-CpfeILwW.js → diagram-MLGK6HIB-DvBcyz8v.js} +4 -4
- package/dist/{diagram-MPIPVDR6-Do7bUnTd.js → diagram-MPIPVDR6-iTevwmNE.js} +4 -4
- package/dist/{dist-C3YK_ean.js → dist-B6_-RPZ3.js} +1 -1
- package/dist/{dist-CRbPtqwD.js → dist-BvUQHUs_.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/{ebnfDiagram-ZINNZB2B-1GewX9Zq.js → ebnfDiagram-ZINNZB2B-RVuQIpm0.js} +4 -4
- package/dist/{elk-276RUBZZ-DI4eicFj.js → elk-276RUBZZ-BK-NMLiI.js} +26 -26
- package/dist/{erDiagram-OPXOYQCR-CUbpVns3.js → erDiagram-OPXOYQCR-DC1GgS4l.js} +14 -14
- package/dist/field-blur--x_n3oMy.js +3637 -0
- package/dist/flowDiagram-KWPJA3E3-BUSlDNQP.js +17 -0
- package/dist/{ganttDiagram-FUAMR5RP-D3vmspam.js → ganttDiagram-FUAMR5RP-DOp1p_x0.js} +6 -6
- package/dist/{gitGraphDiagram-X574FWY7-80yOq8dE.js → gitGraphDiagram-X574FWY7-DerJL1Q-.js} +3 -3
- package/dist/{graphlib-DLJn7qS3.js → graphlib-DLjE3QPd.js} +6 -6
- package/dist/hooks.js +3 -3
- package/dist/{i18n-provider-DBFRz5uH.js → i18n-provider-CQL7fqLy.js} +1 -1
- package/dist/i18n.js +6 -6
- package/dist/icon-button-G9zdQ3Ix.js +2753 -0
- package/dist/{infoDiagram-VRGFBTTK-Cboh-B9n.js → infoDiagram-VRGFBTTK-CtVsLyCQ.js} +3 -3
- package/dist/{isArrayLikeObject-CO5xeuaJ.js → isArrayLikeObject-CO-5KAzG.js} +3 -3
- package/dist/{isEmpty-DOC38Ces.js → isEmpty-Bl1drJE7.js} +3 -3
- package/dist/{ishikawaDiagram-OU5B5YK6-DwTd1YxL.js → ishikawaDiagram-OU5B5YK6-D1n8vp8C.js} +4 -4
- package/dist/{journeyDiagram-ZHPQQLJL-Dxvl3oeN.js → journeyDiagram-ZHPQQLJL-DuQ9Th0y.js} +4 -4
- package/dist/{kanban-definition-PNTS6WVX-S8plI4wn.js → kanban-definition-PNTS6WVX-D1-Owjil.js} +10 -10
- package/dist/lib/components/ui/actions/button/busy-click-capture.d.ts +11 -0
- package/dist/lib/components/ui/actions/button/button-tones.d.ts +36 -0
- package/dist/lib/components/ui/actions/button/button.d.ts +19 -0
- package/dist/lib/components/ui/actions/button/button.wrap.d.ts +8 -0
- package/dist/lib/components/ui/actions/button/label-text.d.ts +10 -0
- package/dist/lib/components/ui/actions/button/use-click-lock.d.ts +18 -0
- package/dist/lib/components/ui/actions/copy-button/copy-button.d.ts +5 -1
- package/dist/lib/components/ui/actions/icon-button/icon-button.compound-variants.d.ts +114 -0
- package/dist/lib/components/ui/collections/data-table/hooks.d.ts +13 -13
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty-row.d.ts +5 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-scroll-region.d.ts +16 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-toolbar.d.ts +24 -0
- package/dist/lib/components/ui/collections/data-table/select-checkbox.d.ts +10 -0
- package/dist/lib/components/ui/collections/data-table/types.d.ts +9 -0
- package/dist/lib/components/ui/collections/data-table/use-data-table.d.ts +12 -1
- package/dist/lib/components/ui/collections/data-table/use-scroll-edges.d.ts +22 -0
- package/dist/lib/components/ui/dates/calendar/calendar-day.d.ts +8 -0
- package/dist/lib/components/ui/dates/calendar/calendar.d.ts +3 -3
- package/dist/lib/components/ui/dates/calendar/calendar.utils.d.ts +8 -0
- package/dist/lib/components/ui/dates/calendar/use-calendar-labels.d.ts +22 -0
- package/dist/lib/components/ui/display/description/description.d.ts +2 -1
- package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +9 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-body.d.ts +11 -0
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-classes.d.ts +10 -0
- package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/lib/components/ui/feedback/toast/partials/toast-actions.d.ts +3 -0
- package/dist/lib/components/ui/feedback/toast/toast.d.ts +27 -3
- package/dist/lib/components/ui/feedback/toast/toaster.d.ts +19 -0
- package/dist/lib/components/ui/feedback/toast/toasts.d.ts +3 -0
- package/dist/lib/components/ui/forms/field-blur.d.ts +7 -2
- package/dist/lib/components/ui/forms/use-field-blur.d.ts +8 -1
- package/dist/lib/components/ui/layout/app-shell/activity-content.d.ts +10 -1
- package/dist/lib/components/ui/layout/app-shell/activity-layout.d.ts +26 -2
- package/dist/lib/components/ui/layout/app-shell/app-header.d.ts +8 -2
- package/dist/lib/components/ui/layout/app-shell/app-sidebar.d.ts +8 -2
- package/dist/lib/components/ui/layout/app-shell/types.d.ts +3 -0
- package/dist/lib/components/ui/layout/app-shell/use-content-scroll.d.ts +10 -0
- package/dist/lib/components/ui/layout/app-shell/use-navigation-sheet.d.ts +19 -0
- package/dist/lib/components/ui/layout/sidebar/index.d.ts +5 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-content.d.ts +2 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-context.d.ts +7 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-footer.d.ts +2 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-header.d.ts +2 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item-tooltip.d.ts +7 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +31 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-label.d.ts +4 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar.d.ts +1 -12
- package/dist/lib/components/ui/overlays/context-menu/context-menu-items.d.ts +10 -0
- package/dist/lib/components/ui/overlays/context-menu/context-menu-sub.d.ts +8 -0
- package/dist/lib/components/ui/overlays/context-menu/context-menu.d.ts +4 -14
- package/dist/lib/components/ui/overlays/dialog/dialog-outside.d.ts +6 -0
- package/dist/lib/components/ui/overlays/dialog/dialog-scroll-content.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dialog/dialog.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dialog/use-return-focus.d.ts +3 -2
- package/dist/lib/components/ui/overlays/drawer/drawer.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu-items.d.ts +11 -0
- package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu-sub.d.ts +8 -0
- package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu.d.ts +6 -21
- package/dist/lib/components/ui/overlays/popover/popover.d.ts +1 -1
- package/dist/lib/components/ui/overlays/sheet/sheet.d.ts +1 -1
- package/dist/lib/components/ui/primitives/card/card.d.ts +10 -1
- package/dist/lib/components/ui/primitives/link/link-component.d.ts +14 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-content.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-indicator.d.ts +13 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-trigger.d.ts +6 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-classes.d.ts +27 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-variant.d.ts +5 -0
- package/dist/lib/components/ui/primitives/tabs/tabs.d.ts +11 -7
- package/dist/lib/components/ui/selection/select/select.d.ts +1 -1
- package/dist/lib/components/ui/selection/select-chip-field/select-chip-field.d.ts +1 -1
- package/dist/lib/components/ui/widgets/emoji/types.d.ts +1 -6
- package/dist/lib/i18n/resources/en/en.d.ts +23 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +28 -5
- package/dist/lib/i18n/resources/fr/fr.d.ts +23 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +28 -5
- package/dist/lib/i18n/resources/resources.d.ts +46 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/redux/status-slice.d.ts +1 -1
- package/dist/lib.js +39 -55
- package/dist/main.js +13 -13
- package/dist/map.js +35 -35
- package/dist/material.css +1 -1
- package/dist/{merge-CuDTNgpm.js → merge-CwwtONfp.js} +4 -4
- package/dist/{mermaid.core-O7mtb1-p.js → mermaid.core-Dfr4zfuP.js} +49 -49
- package/dist/{mindmap-definition-NLK3R4M7-CO0E97EZ.js → mindmap-definition-NLK3R4M7-_qKWGSrk.js} +13 -13
- package/dist/{pegDiagram-GJSIUBJH-CAO6aYvj.js → pegDiagram-GJSIUBJH-CWKobqLl.js} +4 -4
- package/dist/{pieDiagram-5QR66LMP-BXxVfv5K.js → pieDiagram-5QR66LMP-B6at48Bd.js} +5 -5
- package/dist/print.js +2 -2
- package/dist/{quadrantDiagram-O4NWA36T-BbidZDM8.js → quadrantDiagram-O4NWA36T-Cr9bA0xJ.js} +3 -3
- package/dist/{railroadDiagram-XR7U4H2S-DmKDXg8V.js → railroadDiagram-XR7U4H2S-fsZ7oqPG.js} +4 -4
- package/dist/{requirementDiagram-PLB6GJNP-wFvgSWJP.js → requirementDiagram-PLB6GJNP-BBs-lByV.js} +13 -13
- package/dist/rolldown-runtime-BFFgcFxR.js +30 -0
- package/dist/{sankeyDiagram-IPEJSGJF-Cka5t09q.js → sankeyDiagram-IPEJSGJF-BzX37jGY.js} +3 -3
- package/dist/{sequenceDiagram-PO4LG4MO-B2qb55A5.js → sequenceDiagram-PO4LG4MO-Bgx1kuGA.js} +5 -5
- package/dist/{sortable-provider-C5VYhY8u.js → sortable-provider-WZT5I34N.js} +24 -24
- package/dist/{src-C9kQSo6K.js → src-CsLQInsN.js} +1 -1
- package/dist/{stateDiagram-v2-GCMORJYK-EMa7q3ju.js → stateDiagram-v2-GCMORJYK-Chc9Z6Mr.js} +14 -14
- package/dist/{stored-language-B0o4cBh8.js → stored-language-BW32owje.js} +56 -10
- package/dist/styles.css +10 -368
- package/dist/{swimlanes-2SLR337P-BtZ7Di5u.js → swimlanes-2SLR337P-D0yLvfot.js} +12 -12
- package/dist/swimlanesDiagram-TC7HE7FX-BOd0Czfs.js +28 -0
- package/dist/{timeline-definition-EJHVYXUP-2Z6UABw8.js → timeline-definition-EJHVYXUP-nDNR-Dt-.js} +5 -5
- package/dist/{translate-material-BCwQrt2G.js → translate-material-ZEzF-LKH.js} +2 -2
- package/dist/{translator-CwpmpI24.js → translator-BfqVlNGW.js} +1 -1
- package/dist/{use-heading-spy-BtBJiU63.js → use-heading-spy-DvZVu15k.js} +37 -37
- package/dist/{use-material-translation-DG_7z3Q7.js → use-material-translation-B2GUtxUY.js} +2 -2
- package/dist/{usecaseDiagram-POWQR4AR-DT56cp_B.js → usecaseDiagram-POWQR4AR-Bwen99ay.js} +13 -13
- package/dist/{utils-UBn-46YY.js → utils-DC8bw9A_.js} +346 -360
- package/dist/{vennDiagram-UO4OBE2U-CO0yFCI8.js → vennDiagram-UO4OBE2U-BpgP__1T.js} +4 -4
- package/dist/{wardleyDiagram-VNRHLVJA-QkwghAYo.js → wardleyDiagram-VNRHLVJA-CYqKMb2f.js} +4 -4
- package/dist/{xychartDiagram-PMCCYNJV-B2aZlrno.js → xychartDiagram-PMCCYNJV-b-Quuxoi.js} +7 -7
- package/docs/components/buttons-and-actions.md +60 -10
- package/docs/components/data-display.md +24 -2
- package/docs/components/data-table-filter-and-lists.md +88 -10
- package/docs/components/date-and-time.md +24 -0
- package/docs/components/feedback-and-status.md +85 -8
- package/docs/components/form-fields.md +14 -5
- package/docs/components/media-and-files.md +7 -0
- package/docs/components/navigation-and-layout.md +21 -3
- package/docs/components/overlays-and-menus.md +21 -6
- package/docs/components/primitives.md +96 -7
- package/docs/components/rich-widgets.md +10 -0
- package/docs/components/selection-and-choice.md +13 -2
- package/docs/getting-started.md +4 -2
- package/docs/guides/app-shell.md +97 -4
- package/docs/guides/forms.md +54 -5
- package/docs/guides/helpers.md +2 -2
- package/docs/guides/i18n.md +24 -4
- package/docs/guides/ssr.md +1 -1
- package/docs/guides/theming.md +147 -5
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/data-display-description.webp +0 -0
- package/docs/previews/feedback-status-toast.webp +0 -0
- package/docs/previews/primitives-tabs.webp +0 -0
- package/docs/previews/rich-widgets-emojipicker.webp +0 -0
- package/docs/roadmap.md +29 -1
- package/docs/troubleshooting.md +937 -11
- package/lib/components/base-content.css +139 -0
- package/lib/components/base.css +150 -0
- package/lib/components/components.css +2 -0
- package/lib/components/reduced-motion.css +56 -0
- package/lib/components/theme-tokens.css +116 -0
- package/lib/components/ui/actions/button-group/button-group.css +1 -1
- package/lib/components/ui/feedback/toast/toast.css +21 -0
- package/lib/components/ui/primitives/label/label.css +33 -0
- package/lib/styles.css +10 -368
- package/package.json +2 -2
- package/dist/field-blur-DWQtxiAe.js +0 -3483
- package/dist/flowDiagram-KWPJA3E3-DZxumFfu.js +0 -17
- package/dist/icon-button-BxySFfrr.js +0 -2718
- package/dist/lib/components/ui/widgets/emoji/emoji.groups.d.ts +0 -6
- package/dist/swimlanesDiagram-TC7HE7FX-CROh8GTF.js +0 -28
package/dist/map.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "./
|
|
3
|
-
import { D as r,
|
|
4
|
-
import { t as y } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./utils-DC8bw9A_.js";
|
|
2
|
+
import { o as t, t as n } from "./icon-button-G9zdQ3Ix.js";
|
|
3
|
+
import { D as r, J as i, T as a, _ as o, b as s, d as c, f as l, g as u, h as d, m as f, p, r as m, t as h, v as g, w as _, y as v } from "./field-blur--x_n3oMy.js";
|
|
4
|
+
import { t as y } from "./use-material-translation-B2GUtxUY.js";
|
|
5
5
|
import { MapIcon as b, MapPin as x, Minus as S, Plus as C } from "lucide-react";
|
|
6
6
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback as E, useEffect as D, useEffectEvent as O, useMemo as k, useRef as A, useState as j } from "react";
|
|
@@ -51,9 +51,9 @@ function K({ parentMap: e, zoom: t }) {
|
|
|
51
51
|
pathOptions: G
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function q({ position:
|
|
55
|
-
let r = I(), i =
|
|
56
|
-
className:
|
|
54
|
+
function q({ position: t, zoom: n }) {
|
|
55
|
+
let r = I(), i = n || 0, a = k(() => /* @__PURE__ */ T(M, {
|
|
56
|
+
className: e("size-24 ring-1 ring-error border-none rounded-xs hover:shadow p-0.5 bg-background", "cursor-pointer"),
|
|
57
57
|
center: r.getCenter(),
|
|
58
58
|
zoom: i,
|
|
59
59
|
dragging: !1,
|
|
@@ -67,7 +67,7 @@ function q({ position: e, zoom: t }) {
|
|
|
67
67
|
})]
|
|
68
68
|
}), [r, i]);
|
|
69
69
|
return /* @__PURE__ */ w("div", {
|
|
70
|
-
className:
|
|
70
|
+
className: t && U[t] || U.topright,
|
|
71
71
|
children: /* @__PURE__ */ w("div", {
|
|
72
72
|
className: "leaflet-control leaflet-bar",
|
|
73
73
|
children: a
|
|
@@ -76,7 +76,7 @@ function q({ position: e, zoom: t }) {
|
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region lib/map/components/map.tsx
|
|
79
|
-
function J({ className:
|
|
79
|
+
function J({ className: t, children: n, showMinicardControl: r = !0, zoom: i = 13, zoomControl: a = !1, scrollWheelZoom: o = !1, ...s }) {
|
|
80
80
|
let { coords: c } = W();
|
|
81
81
|
return /* @__PURE__ */ T(M, {
|
|
82
82
|
...s,
|
|
@@ -84,7 +84,7 @@ function J({ className: e, children: t, showMinicardControl: r = !0, zoom: i = 1
|
|
|
84
84
|
zoomControl: a,
|
|
85
85
|
zoom: i,
|
|
86
86
|
scrollWheelZoom: o,
|
|
87
|
-
className:
|
|
87
|
+
className: e("size-full ring-1 ring-primary rounded", t),
|
|
88
88
|
children: [
|
|
89
89
|
/* @__PURE__ */ w(P, {
|
|
90
90
|
attribution: "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors",
|
|
@@ -98,13 +98,13 @@ function J({ className: e, children: t, showMinicardControl: r = !0, zoom: i = 1
|
|
|
98
98
|
})
|
|
99
99
|
}),
|
|
100
100
|
/* @__PURE__ */ w(F, { position: "topleft" }),
|
|
101
|
-
|
|
101
|
+
n
|
|
102
102
|
]
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region lib/map/components/partials/marker.tsx
|
|
107
|
-
function Y({ title:
|
|
107
|
+
function Y({ title: e, position: n, onChange: r, draggable: i, children: a, tooltip: o, reference: s, icon: c, ...l }) {
|
|
108
108
|
let u = R({ viewreset() {
|
|
109
109
|
s && r?.(u.getCenter());
|
|
110
110
|
} }), d = A(null), f = k(() => ({ dragend() {
|
|
@@ -117,12 +117,12 @@ function Y({ title: t, position: n, onChange: r, draggable: i, children: a, tool
|
|
|
117
117
|
p(n);
|
|
118
118
|
}, [n]), /* @__PURE__ */ w(H, {
|
|
119
119
|
...l,
|
|
120
|
-
title:
|
|
120
|
+
title: e ?? (typeof o == "string" ? o : void 0),
|
|
121
121
|
draggable: i,
|
|
122
122
|
eventHandlers: f,
|
|
123
123
|
position: n,
|
|
124
124
|
ref: d,
|
|
125
|
-
icon: o ? /* @__PURE__ */ w(
|
|
125
|
+
icon: o ? /* @__PURE__ */ w(t, {
|
|
126
126
|
content: o,
|
|
127
127
|
children: c ?? /* @__PURE__ */ w(X, {})
|
|
128
128
|
}) : c ?? /* @__PURE__ */ w(X, {}),
|
|
@@ -138,7 +138,7 @@ function X() {
|
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region lib/map/components/partials/location-preview.tsx
|
|
141
|
-
function Z({ name: e, position:
|
|
141
|
+
function Z({ name: e, position: t, children: r }) {
|
|
142
142
|
"use no memo";
|
|
143
143
|
let { t: i } = y(), [a, o] = j(!1);
|
|
144
144
|
return /* @__PURE__ */ T(c, {
|
|
@@ -146,7 +146,7 @@ function Z({ name: e, position: n, children: r }) {
|
|
|
146
146
|
onOpenChange: o,
|
|
147
147
|
children: [/* @__PURE__ */ w(p, {
|
|
148
148
|
asChild: !0,
|
|
149
|
-
children: r ?? /* @__PURE__ */ w(
|
|
149
|
+
children: r ?? /* @__PURE__ */ w(n, {
|
|
150
150
|
variant: "tonal",
|
|
151
151
|
"data-pw": `${e ?? "location"}-preview`,
|
|
152
152
|
color: "info",
|
|
@@ -156,9 +156,9 @@ function Z({ name: e, position: n, children: r }) {
|
|
|
156
156
|
}), /* @__PURE__ */ w(l, {
|
|
157
157
|
className: "aspect-square",
|
|
158
158
|
children: /* @__PURE__ */ w(J, {
|
|
159
|
-
center:
|
|
159
|
+
center: t,
|
|
160
160
|
showMinicardControl: !1,
|
|
161
|
-
children: /* @__PURE__ */ w(Y, { position:
|
|
161
|
+
children: /* @__PURE__ */ w(Y, { position: t })
|
|
162
162
|
})
|
|
163
163
|
})]
|
|
164
164
|
});
|
|
@@ -166,33 +166,33 @@ function Z({ name: e, position: n, children: r }) {
|
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region lib/map/components/location-field.tsx
|
|
168
168
|
var Q = [5.44087, 10.06843];
|
|
169
|
-
function $({ value:
|
|
169
|
+
function $({ value: t, onChange: c, dialogTitle: l, closeLabel: d, mapClassName: f, placeholder: p, ...m }) {
|
|
170
170
|
let { t: h } = y(), b = l ?? h("material.location-field.dialog-title", "Choose a location"), S = A(null), C = E((e) => {
|
|
171
171
|
if (e) {
|
|
172
172
|
let t = [parseFloat(e.lat.toFixed(7)), parseFloat(e.lng.toFixed(7))];
|
|
173
173
|
S.current = t, c?.(t);
|
|
174
174
|
}
|
|
175
|
-
}, [c]), [D, O] = j(!1), k =
|
|
176
|
-
!
|
|
175
|
+
}, [c]), [D, O] = j(!1), k = t ?? Q, M = !m.disabled && !m.readOnly, N = E(() => {
|
|
176
|
+
!t && M && c?.(S.current ?? Q), O(!1);
|
|
177
177
|
}, [
|
|
178
|
-
|
|
178
|
+
t,
|
|
179
179
|
M,
|
|
180
180
|
c
|
|
181
181
|
]);
|
|
182
182
|
return /* @__PURE__ */ w(r, {
|
|
183
183
|
...m,
|
|
184
|
-
value:
|
|
184
|
+
value: t ? t.join(" - ") : "",
|
|
185
185
|
placeholder: p ?? h("material.location-field.placeholder", "No location selected"),
|
|
186
|
-
leading:
|
|
187
|
-
position:
|
|
186
|
+
leading: t ? /* @__PURE__ */ w(Z, {
|
|
187
|
+
position: t,
|
|
188
188
|
children: m.leading
|
|
189
189
|
}) : m.leading,
|
|
190
190
|
trailing: /* @__PURE__ */ T(u, {
|
|
191
191
|
open: D,
|
|
192
192
|
onOpenChange: O,
|
|
193
|
-
children: [/* @__PURE__ */ w(
|
|
193
|
+
children: [/* @__PURE__ */ w(a, {
|
|
194
194
|
asChild: !0,
|
|
195
|
-
children: m.trailing ?? /* @__PURE__ */ w(
|
|
195
|
+
children: m.trailing ?? /* @__PURE__ */ w(n, {
|
|
196
196
|
"data-pw": `${m.name}-trailing`,
|
|
197
197
|
variant: "tonal",
|
|
198
198
|
"aria-label": typeof b == "string" ? b : void 0,
|
|
@@ -207,7 +207,7 @@ function $({ value: e, onChange: c, dialogTitle: l, closeLabel: d, mapClassName:
|
|
|
207
207
|
/* @__PURE__ */ w(v, { hidden: !0 }),
|
|
208
208
|
/* @__PURE__ */ w(J, {
|
|
209
209
|
center: k,
|
|
210
|
-
className:
|
|
210
|
+
className: e(f),
|
|
211
211
|
children: /* @__PURE__ */ w(Y, {
|
|
212
212
|
position: k,
|
|
213
213
|
onChange: C,
|
|
@@ -215,7 +215,7 @@ function $({ value: e, onChange: c, dialogTitle: l, closeLabel: d, mapClassName:
|
|
|
215
215
|
reference: M
|
|
216
216
|
})
|
|
217
217
|
}),
|
|
218
|
-
/* @__PURE__ */ w(s, { children: /* @__PURE__ */ w(
|
|
218
|
+
/* @__PURE__ */ w(s, { children: /* @__PURE__ */ w(i, {
|
|
219
219
|
onClick: N,
|
|
220
220
|
children: d ?? h("material.location-field.confirm", "OK")
|
|
221
221
|
}) })
|
|
@@ -233,7 +233,7 @@ function ee({ control: e, name: t, ...n }) {
|
|
|
233
233
|
onBlur: e.onBlur,
|
|
234
234
|
children: /* @__PURE__ */ w($, {
|
|
235
235
|
...n,
|
|
236
|
-
|
|
236
|
+
ref: e.ref,
|
|
237
237
|
"aria-invalid": t.invalid,
|
|
238
238
|
name: e.name,
|
|
239
239
|
value: e.value,
|
|
@@ -268,7 +268,7 @@ function te({ ...e }) {
|
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region lib/map/components/partials/map-actions.tsx
|
|
271
|
-
function ne({ position:
|
|
271
|
+
function ne({ position: t = "topleft", className: r, ...i }) {
|
|
272
272
|
let { t: a } = y(), o = I(), { coords: s } = W(), c = E(() => {
|
|
273
273
|
o.setView(o.getCenter(), o.getZoom() + 1, { animate: !0 });
|
|
274
274
|
}, [o]), l = E(() => {
|
|
@@ -277,17 +277,17 @@ function ne({ position: e = "topleft", className: r, ...i }) {
|
|
|
277
277
|
return D(() => {
|
|
278
278
|
s && o.setView([s.latitude, s.longitude], o.getZoom());
|
|
279
279
|
}, [s, o]), /* @__PURE__ */ w("div", {
|
|
280
|
-
className:
|
|
280
|
+
className: e(U[t], "border-primary"),
|
|
281
281
|
children: /* @__PURE__ */ w("div", {
|
|
282
282
|
className: "leaflet-control leaflet-bar border-primary",
|
|
283
283
|
children: /* @__PURE__ */ T("div", {
|
|
284
|
-
className:
|
|
284
|
+
className: e("grid gap-1 p-0.5 bg-paper rounded *:z-[300]", r),
|
|
285
285
|
...i,
|
|
286
|
-
children: [/* @__PURE__ */ w(
|
|
286
|
+
children: [/* @__PURE__ */ w(n, {
|
|
287
287
|
"aria-label": a("material.map.zoom-in", "Zoom in"),
|
|
288
288
|
onClick: c,
|
|
289
289
|
children: /* @__PURE__ */ w(C, {})
|
|
290
|
-
}), /* @__PURE__ */ w(
|
|
290
|
+
}), /* @__PURE__ */ w(n, {
|
|
291
291
|
"aria-label": a("material.map.zoom-out", "Zoom out"),
|
|
292
292
|
disabled: o.getZoom() === 0,
|
|
293
293
|
onClick: l,
|