drf-react-by-schema 0.28.9 → 0.28.10

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.
@@ -1 +1 @@
1
- {"version":3,"file":"GeoThumbCell.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GeoThumbCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAOzC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8B/D,UAAU,iBAAiB;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,KAAK,EACL,KAAwB,EACxB,MAAyB,GAC1B,EAAE,iBAAiB,qBAqCnB"}
1
+ {"version":3,"file":"GeoThumbCell.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GeoThumbCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAQzC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8B/D,UAAU,iBAAiB;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,KAAK,EACL,KAAwB,EACxB,MAAyB,GAC1B,EAAE,iBAAiB,qBAuCnB"}
@@ -40,6 +40,7 @@ exports.default = GeoThumbCell;
40
40
  const react_1 = __importStar(require("react"));
41
41
  const Box_1 = __importDefault(require("@mui/material/Box"));
42
42
  const react_leaflet_1 = require("react-leaflet");
43
+ const styles_1 = require("@mui/material/styles");
43
44
  const leaflet_1 = __importDefault(require("leaflet"));
44
45
  const leafletMarker_1 = require("../forms/inputs/leafletMarker");
45
46
  const utils_1 = require("../../utils");
@@ -69,6 +70,8 @@ function FitGeometry({ data }) {
69
70
  return null;
70
71
  }
71
72
  function GeoThumbCell({ geometry, value, width = geoConstants_1.GIS_THUMB_SIZE.w, height = geoConstants_1.GIS_THUMB_SIZE.h, }) {
73
+ // Let the consumer override via markerIcon in their MUI theme.
74
+ (0, leafletMarker_1.applyThemeMarkerIcon)((0, styles_1.useTheme)());
72
75
  const data = (0, utils_1.parseGeoJSON)(geometry, value);
73
76
  if (!data) {
74
77
  return react_1.default.createElement(Box_1.default, { sx: { width, height }, "data-testid": `geo-thumb-empty-${geometry}` });
@@ -1 +1 @@
1
- {"version":3,"file":"SelectEditInputCell.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/SelectEditInputCell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAoC,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAMtD,OAAO,EACL,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,0BAA0B,EAE1B,MAAM,EACP,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAM9E,UAAU,wBAAwB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,0BAA0B,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IAClD,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACvE,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,KAAK,EACL,EAAE,EACF,KAAK,EACL,MAAM,EACN,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,QAAgB,EAChB,WAAW,EACX,YAAY,EACZ,EAAyB,EACzB,SAAS,EACT,KAAK,EACL,UAAU,EACV,QAAQ,GACT,EAAE,wBAAwB,GAAG,GAAG,CAAC,OAAO,CAgSxC"}
1
+ {"version":3,"file":"SelectEditInputCell.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/SelectEditInputCell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAoC,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAMtD,OAAO,EACL,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,0BAA0B,EAE1B,MAAM,EACP,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAM9E,UAAU,wBAAwB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,0BAA0B,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IAClD,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACvE,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,KAAK,EACL,EAAE,EACF,KAAK,EACL,MAAM,EACN,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,QAAgB,EAChB,WAAW,EACX,YAAY,EACZ,EAAyB,EACzB,SAAS,EACT,KAAK,EACL,UAAU,EACV,QAAQ,GACT,EAAE,wBAAwB,GAAG,GAAG,CAAC,OAAO,CAmSxC"}
@@ -73,8 +73,12 @@ function SelectEditInputCell({ field, id, value, column, type, options, isIndexF
73
73
  yield apiRef.current.setEditCellValue({ id, field, value: newValue });
74
74
  apiRef.current.stopCellEditMode({ id, field });
75
75
  });
76
- const labelKey = ['field', 'nested object'].includes(type) || isIndexField ? 'label' : 'display_name';
77
- const valueKey = ['field', 'nested object'].includes(type) || isIndexField ? 'id' : 'value';
76
+ const isRelatedField = ['field', 'nested object'].includes(type);
77
+ const isChoiceField = ['choice', 'list'].includes(type);
78
+ // Related FK fields use {id, label} from autocomplete; choices use {value, display_name}
79
+ // from fieldSchema.choices. Also allow isIndexField to override non-choice/list fields.
80
+ const labelKey = isRelatedField || (isIndexField && !isChoiceField) ? 'label' : 'display_name';
81
+ const valueKey = isRelatedField || (isIndexField && !isChoiceField) ? 'id' : 'value';
78
82
  let creatableProps = {};
79
83
  // if (column.creatable || isIndexField) {
80
84
  if (column.creatable) {
@@ -1 +1 @@
1
- {"version":3,"file":"MapGeometryPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/inputs/MapGeometryPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAY,MAAM,sBAAsB,CAAC;AAGhE,OAAO,0BAA0B,CAAC;AAElC,OAAO,cAAc,CAAC;AACtB,OAAO,oCAAoC,CAAC;AAI5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMpD,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwRD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,QAAQ,EACR,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,EAAE,EACF,MAAY,GACb,EAAE,sBAAsB,qBAuDxB"}
1
+ {"version":3,"file":"MapGeometryPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/inputs/MapGeometryPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAY,MAAM,sBAAsB,CAAC;AAGhE,OAAO,0BAA0B,CAAC;AAElC,OAAO,cAAc,CAAC;AACtB,OAAO,oCAAoC,CAAC;AAI5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMpD,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwRD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,QAAQ,EACR,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,EAAE,EACF,MAAY,GACb,EAAE,sBAAsB,qBA0DxB"}
@@ -317,8 +317,11 @@ function DrawEditor({ geometry, value, onChange, }) {
317
317
  return null;
318
318
  }
319
319
  function MapGeometryPicker({ geometry, value, label, onChange, error, helperText, sx, height = 340, }) {
320
- const texts = (0, texts_1.getThemeTexts)((0, styles_1.useTheme)());
320
+ const theme = (0, styles_1.useTheme)();
321
+ const texts = (0, texts_1.getThemeTexts)(theme);
321
322
  const geometryTexts = texts.geometry;
323
+ // Let the consumer override the default SVG icon via a markerIcon in their theme.
324
+ (0, leafletMarker_1.applyThemeMarkerIcon)(theme);
322
325
  const valueText = value || '';
323
326
  // Malformed detection: non-empty text that isn't GeoJSON (or of the wrong
324
327
  // geometry type). Invalid input is flagged as an error instead of silently
@@ -1,12 +1,37 @@
1
1
  import L from 'leaflet';
2
+ import { Theme } from '@mui/material/styles';
2
3
  export declare const DEFAULT_MARKER_PIN_SVG: string;
3
4
  export declare const DEFAULT_MARKER_SHADOW_SVG: string;
4
5
  export declare const DEFAULT_MARKER_ICON_URL: string;
5
6
  export declare const DEFAULT_MARKER_SHADOW_URL: string;
6
7
  /**
7
- * Point L.Icon.Default at a servable marker so geometry widgets render points.
8
- * No args: apply the built-in SVG icon once; skip if any icon is already set.
9
- * With `userOptions`: always merge (custom marker wins).
8
+ * Custom Leaflet icon using inline SVG data URIs.
9
+ * Avoids L.Icon.Default._getIconUrl which prepends imagePath and corrupts data URIs.
10
10
  */
11
- export declare function applyDefaultLeafletIcon(userOptions?: Partial<L.IconOptions>): void;
11
+ export declare const DRF_REACT_BY_SCHEMA_MARKER_ICON: L.Icon<L.IconOptions>;
12
+ /**
13
+ * Point the default marker icon at the inline SVG data-URI so geometry
14
+ * widgets render points under any bundler with no external image assets.
15
+ *
16
+ * Uses L.Marker.prototype.options.icon (Leaflet's documented default-icon
17
+ * mechanism) instead of L.Icon.Default, whose _getIconUrl always prepends
18
+ * the auto-detected imagePath, corrupting data URIs.
19
+ *
20
+ * Call once at module load in any component that renders markers.
21
+ * Safe to call multiple times — only the first call takes effect.
22
+ */
23
+ export declare function applyDefaultLeafletIcon(): void;
24
+ /**
25
+ * If the theme provides a custom markerIcon (an L.Icon), apply it as the
26
+ * default for all new L.Marker instances. Call from components that have
27
+ * access to the MUI theme (e.g. inside a React component body via useTheme).
28
+ *
29
+ * The consumer declares `markerIcon` on the MUI theme via module augmentation:
30
+ *
31
+ * declare module '@mui/material/styles' {
32
+ * interface Theme { markerIcon?: L.Icon }
33
+ * interface ThemeOptions { markerIcon?: L.Icon }
34
+ * }
35
+ */
36
+ export declare function applyThemeMarkerIcon(theme: Theme): void;
12
37
  //# sourceMappingURL=leafletMarker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"leafletMarker.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/inputs/leafletMarker.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,SAAS,CAAC;AAKxB,eAAO,MAAM,sBAAsB,QAIzB,CAAC;AAEX,eAAO,MAAM,yBAAyB,QAG5B,CAAC;AAIX,eAAO,MAAM,uBAAuB,QAAoC,CAAC;AACzE,eAAO,MAAM,yBAAyB,QAAuC,CAAC;AAgB9E;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,IAAI,CAalF"}
1
+ {"version":3,"file":"leafletMarker.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/inputs/leafletMarker.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,SAAS,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAK7C,eAAO,MAAM,sBAAsB,QAIzB,CAAC;AAEX,eAAO,MAAM,yBAAyB,QAG5B,CAAC;AAIX,eAAO,MAAM,uBAAuB,QAAoC,CAAC;AACzE,eAAO,MAAM,yBAAyB,QAAuC,CAAC;AAI9E;;;GAGG;AACH,eAAO,MAAM,+BAA+B,uBAU1C,CAAC;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAI9C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAKvD"}
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DEFAULT_MARKER_SHADOW_URL = exports.DEFAULT_MARKER_ICON_URL = exports.DEFAULT_MARKER_SHADOW_SVG = exports.DEFAULT_MARKER_PIN_SVG = void 0;
6
+ exports.DRF_REACT_BY_SCHEMA_MARKER_ICON = exports.DEFAULT_MARKER_SHADOW_URL = exports.DEFAULT_MARKER_ICON_URL = exports.DEFAULT_MARKER_SHADOW_SVG = exports.DEFAULT_MARKER_PIN_SVG = void 0;
7
7
  exports.applyDefaultLeafletIcon = applyDefaultLeafletIcon;
8
+ exports.applyThemeMarkerIcon = applyThemeMarkerIcon;
8
9
  const leaflet_1 = __importDefault(require("leaflet"));
9
10
  // Leaflet's stock icons are page-relative PNGs that 404 inside an SPA. Use an
10
11
  // inline-SVG data-URI default so markers render under any bundler with no assets.
@@ -19,7 +20,11 @@ const toDataUri = (svg) => `data:image/svg+xml;charset=utf-8,${encodeURIComponen
19
20
  exports.DEFAULT_MARKER_ICON_URL = toDataUri(exports.DEFAULT_MARKER_PIN_SVG);
20
21
  exports.DEFAULT_MARKER_SHADOW_URL = toDataUri(exports.DEFAULT_MARKER_SHADOW_SVG);
21
22
  let applied = false;
22
- const DEFAULT_ICON_OPTIONS = {
23
+ /**
24
+ * Custom Leaflet icon using inline SVG data URIs.
25
+ * Avoids L.Icon.Default._getIconUrl which prepends imagePath and corrupts data URIs.
26
+ */
27
+ exports.DRF_REACT_BY_SCHEMA_MARKER_ICON = leaflet_1.default.icon({
23
28
  iconUrl: exports.DEFAULT_MARKER_ICON_URL,
24
29
  iconRetinaUrl: exports.DEFAULT_MARKER_ICON_URL, // SVG scales; stays crisp on retina
25
30
  shadowUrl: exports.DEFAULT_MARKER_SHADOW_URL,
@@ -29,24 +34,39 @@ const DEFAULT_ICON_OPTIONS = {
29
34
  tooltipAnchor: leaflet_1.default.point(16, -28),
30
35
  shadowSize: leaflet_1.default.point(41, 41),
31
36
  shadowAnchor: leaflet_1.default.point(12, 41),
32
- };
37
+ });
33
38
  /**
34
- * Point L.Icon.Default at a servable marker so geometry widgets render points.
35
- * No args: apply the built-in SVG icon once; skip if any icon is already set.
36
- * With `userOptions`: always merge (custom marker wins).
39
+ * Point the default marker icon at the inline SVG data-URI so geometry
40
+ * widgets render points under any bundler with no external image assets.
41
+ *
42
+ * Uses L.Marker.prototype.options.icon (Leaflet's documented default-icon
43
+ * mechanism) instead of L.Icon.Default, whose _getIconUrl always prepends
44
+ * the auto-detected imagePath, corrupting data URIs.
45
+ *
46
+ * Call once at module load in any component that renders markers.
47
+ * Safe to call multiple times — only the first call takes effect.
37
48
  */
38
- function applyDefaultLeafletIcon(userOptions) {
39
- if (userOptions) {
40
- leaflet_1.default.Icon.Default.mergeOptions(userOptions); // explicit custom icon wins
41
- applied = true;
42
- return;
43
- }
49
+ function applyDefaultLeafletIcon() {
44
50
  if (applied)
45
51
  return;
46
- if (leaflet_1.default.Icon.Default.prototype.options.iconUrl) {
47
- applied = true; // consumer already picked their own icon; keep it
48
- return;
49
- }
50
- leaflet_1.default.Icon.Default.mergeOptions(DEFAULT_ICON_OPTIONS);
52
+ leaflet_1.default.Marker.prototype.options.icon = exports.DRF_REACT_BY_SCHEMA_MARKER_ICON;
51
53
  applied = true;
52
54
  }
55
+ /**
56
+ * If the theme provides a custom markerIcon (an L.Icon), apply it as the
57
+ * default for all new L.Marker instances. Call from components that have
58
+ * access to the MUI theme (e.g. inside a React component body via useTheme).
59
+ *
60
+ * The consumer declares `markerIcon` on the MUI theme via module augmentation:
61
+ *
62
+ * declare module '@mui/material/styles' {
63
+ * interface Theme { markerIcon?: L.Icon }
64
+ * interface ThemeOptions { markerIcon?: L.Icon }
65
+ * }
66
+ */
67
+ function applyThemeMarkerIcon(theme) {
68
+ const customIcon = theme.markerIcon;
69
+ if (customIcon) {
70
+ leaflet_1.default.Marker.prototype.options.icon = customIcon;
71
+ }
72
+ }
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ import DesktopDateTimePickerBySchema from './components/forms/inputs/DesktopDate
27
27
  import EditableAutocompleteFieldBySchema from './components/forms/inputs/EditableAutocompleteFieldBySchema';
28
28
  import AutocompleteFieldBySchema from './components/forms/inputs/AutocompleteFieldBySchema';
29
29
  import FloatFieldBySchema from './components/forms/inputs/FloatFieldBySchema';
30
- export { applyDefaultLeafletIcon } from './components/forms/inputs/leafletMarker';
30
+ export { applyDefaultLeafletIcon, applyThemeMarkerIcon, DRF_REACT_BY_SCHEMA_MARKER_ICON, } from './components/forms/inputs/leafletMarker';
31
31
  export { getThemeTexts } from './styles/texts';
32
32
  export type { DRFReactBySchemaTexts, GeometryTexts, FormTexts, AuthTexts } from './styles/texts';
33
33
  import DetailBySchema from './components/details/DetailBySchema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,+BAA+B,EAC/B,UAAU,EACV,0BAA0B,EAC1B,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,eAAe,EAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,wBAAwB,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,IAAI,MAAM,yBAAyB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AAGvE,OAAO,wBAAwB,MAAM,uCAAuC,CAAC;AAC7E,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,uBAAuB,MAAM,sCAAsC,CAAC;AAC3E,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,YAAY,MAAM,2BAA2B,CAAC;AAGrD,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,aAAa,MAAM,qDAAqD,CAAC;AAChF,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,gBAAgB,MAAM,wDAAwD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gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.AUTH_EXPIRED_EVENT = exports.slugToCamelCase = exports.hasJWT = exports.clearJWT = exports.getPatternFormat = exports.isTmpId = exports.getTmpId = exports.getFieldErrorsFromResponse = exports.errorProps = exports.buildGenericYupValidationSchema = exports.enrichChoices = exports.populateValues = exports.getChoiceByValue = exports.emptyByType = exports.setAuthToken = exports.DetailFieldBySchema = exports.DetailBySchema = exports.FloatFieldBySchema = exports.AutocompleteFieldBySchema = exports.EditableAutocompleteFieldBySchema = exports.DesktopDateTimePickerBySchema = exports.DesktopDatePickerBySchema = exports.BooleanFieldBySchema = exports.TextFieldBySchema = exports.FieldBySchema = exports.FormBySchema = exports.FormWatcher = exports.BooleanInputCell = exports.GridPatternInput = exports.GridDecimalInput = exports.GridDateInput = exports.SelectEditInputCell = exports.FileTypeIcon = exports.DialogActions = exports.DataTotals = exports.GenericRelatedModelList = exports.GenericModelList = exports.DataGridBySchemaEditable = exports.ForgotPasswordForm = exports.ChangePasswordForm = exports.DialogFormBySchema = exports.Form = exports.useAPIWrapper = exports.DRFReactBySchemaProvider = exports.getThemeTexts = exports.applyDefaultLeafletIcon = void 0;
20
+ exports.AUTH_EXPIRED_EVENT = exports.slugToCamelCase = exports.hasJWT = exports.clearJWT = exports.getPatternFormat = exports.isTmpId = exports.getTmpId = exports.getFieldErrorsFromResponse = exports.errorProps = exports.buildGenericYupValidationSchema = exports.enrichChoices = exports.populateValues = exports.getChoiceByValue = exports.emptyByType = exports.setAuthToken = exports.DetailFieldBySchema = exports.DetailBySchema = exports.FloatFieldBySchema = exports.AutocompleteFieldBySchema = exports.EditableAutocompleteFieldBySchema = exports.DesktopDateTimePickerBySchema = exports.DesktopDatePickerBySchema = exports.BooleanFieldBySchema = exports.TextFieldBySchema = exports.FieldBySchema = exports.FormBySchema = exports.FormWatcher = exports.BooleanInputCell = exports.GridPatternInput = exports.GridDecimalInput = exports.GridDateInput = exports.SelectEditInputCell = exports.FileTypeIcon = exports.DialogActions = exports.DataTotals = exports.GenericRelatedModelList = exports.GenericModelList = exports.DataGridBySchemaEditable = exports.ForgotPasswordForm = exports.ChangePasswordForm = exports.DialogFormBySchema = exports.Form = exports.useAPIWrapper = exports.DRFReactBySchemaProvider = exports.getThemeTexts = exports.DRF_REACT_BY_SCHEMA_MARKER_ICON = exports.applyThemeMarkerIcon = exports.applyDefaultLeafletIcon = void 0;
21
21
  // Methods:
22
22
  const api_1 = require("./api");
23
23
  Object.defineProperty(exports, "setAuthToken", { enumerable: true, get: function () { return api_1.setAuthToken; } });
@@ -98,6 +98,8 @@ const FloatFieldBySchema_1 = __importDefault(require("./components/forms/inputs/
98
98
  exports.FloatFieldBySchema = FloatFieldBySchema_1.default;
99
99
  var leafletMarker_1 = require("./components/forms/inputs/leafletMarker");
100
100
  Object.defineProperty(exports, "applyDefaultLeafletIcon", { enumerable: true, get: function () { return leafletMarker_1.applyDefaultLeafletIcon; } });
101
+ Object.defineProperty(exports, "applyThemeMarkerIcon", { enumerable: true, get: function () { return leafletMarker_1.applyThemeMarkerIcon; } });
102
+ Object.defineProperty(exports, "DRF_REACT_BY_SCHEMA_MARKER_ICON", { enumerable: true, get: function () { return leafletMarker_1.DRF_REACT_BY_SCHEMA_MARKER_ICON; } });
101
103
  var texts_1 = require("./styles/texts");
102
104
  Object.defineProperty(exports, "getThemeTexts", { enumerable: true, get: function () { return texts_1.getThemeTexts; } });
103
105
  // DetailComponents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drf-react-by-schema",
3
- "version": "0.28.9",
3
+ "version": "0.28.10",
4
4
  "description": "Components and Tools for building a React App having Django Rest Framework (DRF) as server",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",