@dartcom/ui-kit 10.2.1 → 10.2.3

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.
@@ -8,5 +8,8 @@ export declare const icons: {
8
8
  move: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
9
9
  muiName: string;
10
10
  };
11
+ save: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
12
+ muiName: string;
13
+ };
11
14
  };
12
15
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/icon/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;;;CAIjB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/icon/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAKjB,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare const useFormContext: () => import("react-hook-form").UseFormReturn<import("react-hook-form").FieldValues, any, import("react-hook-form").FieldValues>;
1
+ import { FieldValues } from 'react-hook-form';
2
+ export declare const useFormContext: <T extends FieldValues>() => import("react-hook-form").UseFormReturn<T, any, T>;
2
3
  //# sourceMappingURL=useFormContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormContext.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useFormContext.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,kIAI1B,CAAC"}
1
+ {"version":3,"file":"useFormContext.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useFormContext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,WAAW,yDAInD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/lib/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKnC,OAAO,EAEL,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,kBAAkB,GAAI,oBAEhC;IACD,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C;;;;4BAiGgB,kBAAkB;4BA0BlB,mBAAmB,CAAC,MAAM,CAAC;+BAa1B,mBAAmB,CAAC,MAAM,CAAC,UAC/B,mBAAmB,CAAC,KAAK,CAAC;+BAWvB,kBAAkB;sBASvB,kBAAkB;yBAyClB,kBAAkB;gCAaR;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;gCAWzC,kBAAkB;gDAgBL;QAAE,KAAK,EAAE,kBAAkB,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;;;;CAqHvE,CAAC"}
1
+ {"version":3,"file":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/lib/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKnC,OAAO,EAEL,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAKlB,eAAO,MAAM,kBAAkB,GAAI,oBAEhC;IACD,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C;;;;4BAyGgB,kBAAkB;4BA0BlB,mBAAmB,CAAC,MAAM,CAAC;+BAa1B,mBAAmB,CAAC,MAAM,CAAC,UAC/B,mBAAmB,CAAC,KAAK,CAAC;+BAWvB,kBAAkB;sBASvB,kBAAkB;yBAyClB,kBAAkB;gCAaR;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;gCAWzC,kBAAkB;gDAgBL;QAAE,KAAK,EAAE,kBAAkB,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;;;;CAqHvE,CAAC"}
package/dist/index.cjs CHANGED
@@ -13,6 +13,7 @@ var DeleteIcon = require('@mui/icons-material/Delete');
13
13
  var EditIcon = require('@mui/icons-material/Edit');
14
14
  var MovingIcon = require('@mui/icons-material/Moving');
15
15
  var RestartAltIcon = require('@mui/icons-material/RestartAlt');
16
+ var SaveIcon = require('@mui/icons-material/Save');
16
17
  var CloudUploadIcon = require('@mui/icons-material/CloudUpload');
17
18
  var Checkbox = require('@mui/material/Checkbox');
18
19
  var FormControlLabel = require('@mui/material/FormControlLabel');
@@ -12036,6 +12037,7 @@ const icons = {
12036
12037
  reset: RestartAltIcon,
12037
12038
  edit: EditIcon,
12038
12039
  move: MovingIcon,
12040
+ save: SaveIcon,
12039
12041
  };
12040
12042
 
12041
12043
  const IconButton = ({ title, iconProps, ...props }) => {
@@ -26041,7 +26043,9 @@ const useGetLeafletLayer = ({ eventHandlers, }) => {
26041
26043
  setConfig(config);
26042
26044
  },
26043
26045
  });
26044
- leafletLayer.on('load', () => {
26046
+ leafletLayer.on('load', ({ sourceTarget }) => {
26047
+ const map = sourceTarget._map;
26048
+ const mapContainer = map.getContainer();
26045
26049
  leafletLayer.setSelectionEvents({
26046
26050
  click: ({ feature, leaflet_event }) => {
26047
26051
  if (feature) {
@@ -26054,12 +26058,16 @@ const useGetLeafletLayer = ({ eventHandlers, }) => {
26054
26058
  },
26055
26059
  hover: ({ feature, leaflet_event }) => {
26056
26060
  if (feature) {
26061
+ mapContainer.style.cursor = 'pointer';
26057
26062
  const { source_layer, properties } = feature;
26058
26063
  eventHandlers?.[source_layer]?.hover?.({
26059
26064
  leaflet_event,
26060
26065
  properties,
26061
26066
  });
26062
26067
  }
26068
+ else {
26069
+ mapContainer.style.cursor = 'default';
26070
+ }
26063
26071
  },
26064
26072
  });
26065
26073
  });