@devgateway/dvz-ui-react 1.6.20 → 1.7.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.
Files changed (150) hide show
  1. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
  2. package/dist/cjs/_virtual/debounce.js +1 -0
  3. package/dist/cjs/embeddable/big-filter/BigNumberGroup.js +1 -0
  4. package/dist/cjs/embeddable/big-filter/BigNumberItem.js +1 -0
  5. package/dist/cjs/embeddable/big-filter/DataProvider.js +1 -0
  6. package/dist/cjs/embeddable/big-filter/index.js +1 -0
  7. package/dist/cjs/embeddable/big-number/index.js +1 -1
  8. package/dist/cjs/embeddable/big-number-trend/Alternative.js +1 -0
  9. package/dist/cjs/embeddable/big-number-trend/Classic.js +1 -0
  10. package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
  11. package/dist/cjs/embeddable/chart/Bar.js +1 -1
  12. package/dist/cjs/embeddable/chart/Line.js +1 -1
  13. package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
  14. package/dist/cjs/embeddable/chart/index.js +1 -1
  15. package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
  16. package/dist/cjs/embeddable/d3Map/BreaksStyles.js +1 -1
  17. package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
  18. package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
  19. package/dist/cjs/embeddable/d3Map/GradientColors.js +1 -1
  20. package/dist/cjs/embeddable/d3Map/LatLongLayer.js +1 -1
  21. package/dist/cjs/embeddable/d3Map/Layer.js +1 -1
  22. package/dist/cjs/embeddable/d3Map/Legends.js +1 -1
  23. package/dist/cjs/embeddable/d3Map/ProjectedContainer.js +1 -1
  24. package/dist/cjs/embeddable/d3Map/Utils.js +1 -1
  25. package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
  26. package/dist/cjs/embeddable/d3Map/index.js +1 -1
  27. package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
  28. package/dist/cjs/embeddable/data/D3MapDataConsumer.js +1 -0
  29. package/dist/cjs/embeddable/data/D3MapDataProvider.js +1 -0
  30. package/dist/cjs/embeddable/data/DataContext.js +1 -1
  31. package/dist/cjs/embeddable/data/DataProvider.js +1 -1
  32. package/dist/cjs/embeddable/data-paragraph/index.js +1 -0
  33. package/dist/cjs/embeddable/download/dom-to-image.js +2 -2
  34. package/dist/cjs/embeddable/download/index.js +5 -5
  35. package/dist/cjs/embeddable/filter/index.js +1 -1
  36. package/dist/cjs/embeddable/grouped-bars/GroupedBars.js +1 -0
  37. package/dist/cjs/embeddable/grouped-bars/index.js +1 -0
  38. package/dist/cjs/embeddable/index.js +1 -1
  39. package/dist/cjs/embeddable/posts-filter/CategoricalFilter.js +1 -1
  40. package/dist/cjs/embeddable/reducers/data-api.js +1 -1
  41. package/dist/cjs/embeddable/reducers/data.js +1 -1
  42. package/dist/cjs/embeddable/utils/common.js +1 -1
  43. package/dist/cjs/index.js +1 -1
  44. package/dist/cjs/layout/Customizer.js +1 -1
  45. package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
  46. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +1 -0
  47. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +1 -0
  48. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +1 -0
  49. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +1 -0
  50. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +1 -0
  51. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +1 -0
  52. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +1 -0
  53. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +1 -0
  54. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +1 -0
  55. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +1 -0
  56. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +1 -0
  57. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +1 -0
  58. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +1 -0
  59. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +1 -0
  60. package/dist/cjs/styles.css +1 -1
  61. package/dist/esm/_virtual/_commonjsHelpers.js +8 -0
  62. package/dist/esm/_virtual/debounce.js +7 -0
  63. package/dist/esm/embeddable/big-filter/BigNumberGroup.js +129 -0
  64. package/dist/esm/embeddable/big-filter/BigNumberItem.js +107 -0
  65. package/dist/esm/embeddable/big-filter/DataProvider.js +53 -0
  66. package/dist/esm/embeddable/big-filter/index.js +130 -0
  67. package/dist/esm/embeddable/big-number/index.js +154 -102
  68. package/dist/esm/embeddable/big-number-trend/Alternative.js +227 -0
  69. package/dist/esm/embeddable/big-number-trend/Classic.js +190 -0
  70. package/dist/esm/embeddable/big-number-trend/index.js +12 -147
  71. package/dist/esm/embeddable/chart/Bar.js +450 -395
  72. package/dist/esm/embeddable/chart/Line.js +216 -184
  73. package/dist/esm/embeddable/chart/data/Bar.js +16 -18
  74. package/dist/esm/embeddable/chart/index.js +168 -162
  75. package/dist/esm/embeddable/d3Map/BaseLayer.js +25 -28
  76. package/dist/esm/embeddable/d3Map/BreaksStyles.js +17 -10
  77. package/dist/esm/embeddable/d3Map/DataLayer.js +290 -289
  78. package/dist/esm/embeddable/d3Map/FlowLayer.js +122 -136
  79. package/dist/esm/embeddable/d3Map/GradientColors.js +27 -20
  80. package/dist/esm/embeddable/d3Map/LatLongLayer.js +62 -62
  81. package/dist/esm/embeddable/d3Map/Layer.js +31 -27
  82. package/dist/esm/embeddable/d3Map/Legends.js +204 -190
  83. package/dist/esm/embeddable/d3Map/ProjectedContainer.js +1 -3
  84. package/dist/esm/embeddable/d3Map/Utils.js +12 -8
  85. package/dist/esm/embeddable/d3Map/ZoomControl.js +41 -41
  86. package/dist/esm/embeddable/d3Map/index.js +135 -117
  87. package/dist/esm/embeddable/data/CategoriesProvider.js +39 -26
  88. package/dist/esm/embeddable/data/D3MapDataConsumer.js +7 -0
  89. package/dist/esm/embeddable/data/D3MapDataProvider.js +83 -0
  90. package/dist/esm/embeddable/data/DataContext.js +2 -2
  91. package/dist/esm/embeddable/data/DataProvider.js +124 -55
  92. package/dist/esm/embeddable/data-paragraph/index.js +168 -0
  93. package/dist/esm/embeddable/download/dom-to-image.js +163 -148
  94. package/dist/esm/embeddable/download/index.js +102 -76
  95. package/dist/esm/embeddable/filter/index.js +335 -298
  96. package/dist/esm/embeddable/grouped-bars/GroupedBars.js +549 -0
  97. package/dist/esm/embeddable/grouped-bars/index.js +16 -0
  98. package/dist/esm/embeddable/index.js +33 -30
  99. package/dist/esm/embeddable/posts-filter/CategoricalFilter.js +18 -18
  100. package/dist/esm/embeddable/reducers/data-api.js +39 -35
  101. package/dist/esm/embeddable/reducers/data.js +141 -182
  102. package/dist/esm/embeddable/utils/common.js +3 -3
  103. package/dist/esm/index.js +111 -94
  104. package/dist/esm/layout/Customizer.js +10 -9
  105. package/dist/esm/layout/containers/SlugPostContainer.js +9 -8
  106. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +11 -0
  107. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +16 -0
  108. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +14 -0
  109. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +11 -0
  110. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +21 -0
  111. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +13 -0
  112. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +11 -0
  113. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +15 -0
  114. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +60 -0
  115. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +13 -0
  116. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +12 -0
  117. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +15 -0
  118. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +13 -0
  119. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +28 -0
  120. package/dist/esm/styles.css +1 -1
  121. package/dist/types/embeddable/big-filter/BigNumberGroup.d.ts +3 -0
  122. package/dist/types/embeddable/big-filter/BigNumberItem.d.ts +2 -0
  123. package/dist/types/embeddable/big-filter/DataProvider.d.ts +7 -0
  124. package/dist/types/embeddable/big-filter/index.d.ts +5 -0
  125. package/dist/types/embeddable/big-number-trend/Alternative.d.ts +5 -0
  126. package/dist/types/embeddable/big-number-trend/Classic.d.ts +5 -0
  127. package/dist/types/embeddable/big-number-trend/index.d.ts +2 -4
  128. package/dist/types/embeddable/chart/Bar.d.ts +3 -0
  129. package/dist/types/embeddable/chart/Line.d.ts +6 -0
  130. package/dist/types/embeddable/d3Map/GradientColors.d.ts +6 -2
  131. package/dist/types/embeddable/d3Map/Layer.d.ts +1 -1
  132. package/dist/types/embeddable/d3Map/Utils.d.ts +1 -1
  133. package/dist/types/embeddable/data/D3MapDataProvider.d.ts +7 -0
  134. package/dist/types/embeddable/data/index.d.ts +6 -0
  135. package/dist/types/embeddable/data-paragraph/index.d.ts +5 -0
  136. package/dist/types/embeddable/filter/index.d.ts +13 -1
  137. package/dist/types/embeddable/grouped-bars/GroupedBars.d.ts +5 -0
  138. package/dist/types/embeddable/grouped-bars/index.d.ts +3 -0
  139. package/dist/types/embeddable/reducers/data-api.d.ts +5 -0
  140. package/dist/types/embeddable/reducers/data.d.ts +16 -9
  141. package/dist/types/embeddable/utils/index.d.ts +1 -0
  142. package/dist/types/embeddable/utils/parseUtils.d.ts +0 -6
  143. package/dist/types/index.d.ts +6 -0
  144. package/dist/types/layout/Customizer.d.ts +1 -0
  145. package/dist/types/layout/containers/PageContainer.d.ts +8 -0
  146. package/dist/types/layout/containers/PostContainer.d.ts +0 -0
  147. package/dist/types/layout/index.d.ts +1 -0
  148. package/dist/types/utils/Logger.d.ts +1 -0
  149. package/package.json +3 -2
  150. /package/dist/types/embeddable/data/{DataConsumerMap.d.ts → D3MapDataConsumer.d.ts} +0 -0
@@ -1,14 +1,14 @@
1
- import { jsx as Z } from "react/jsx-runtime";
1
+ import { jsx as tt } from "react/jsx-runtime";
2
2
  import "react";
3
- import pt from "./BaseLayer.js";
4
- import ct from "../data/DataProvider.js";
5
- import ut from "../data/DataConsumer.js";
6
- import * as M from "d3";
7
- import { injectIntl as dt } from "react-intl";
8
- import Y from "./BreaksStyles.js";
9
- import ot from "./GradientColors.js";
10
- const W = (D) => D ? D.toString().replace(/ /g, "_") : "", k = (D) => D ? "pattern_" + W(D) : "";
11
- class ht extends pt {
3
+ import ct from "./BaseLayer.js";
4
+ import dt from "../data/D3MapDataProvider.js";
5
+ import ut from "../data/D3MapDataConsumer.js";
6
+ import * as W from "d3";
7
+ import { injectIntl as ht } from "react-intl";
8
+ import Z from "./BreaksStyles.js";
9
+ import lt from "./GradientColors.js";
10
+ const H = (D) => D ? D.toString().replace(/ /g, "_") : "", k = (D) => D ? "pattern_" + H(D) : "";
11
+ class ft extends ct {
12
12
  constructor() {
13
13
  super(), this.state = { geoJson: null, json: null }, this.getTooltipVariables = this.getTooltipVariables.bind(this), this.resize = this.resize.bind(this), this.createLayer = this.createLayer.bind(this), this.createCentroids = this.createCentroids.bind(this), this.createPatterns = this.createPatterns.bind(this), this.createPaths = this.createPaths.bind(this);
14
14
  }
@@ -20,29 +20,23 @@ class ht extends pt {
20
20
  const {
21
21
  markerLabelSize: e,
22
22
  markFillColor: l,
23
- markBorderColor: C,
23
+ markBorderColor: v,
24
24
  markSizeScale: i,
25
25
  measures: u,
26
- data: h,
27
- breaks: c,
28
- gradientScheme: x,
29
- gradientReverse: o,
30
- labelFontSize: f
31
- } = this.props, n = this.props.transform ? this.props.transform.k : 1;
26
+ data: y,
27
+ breaks: n,
28
+ gradientScheme: w,
29
+ gradientReverse: s,
30
+ labelFontSize: m
31
+ } = this.props, o = this.props.transform ? this.props.transform.k : 1;
32
32
  super.resize();
33
- const d = new Y({
34
- breaks: c,
33
+ const c = new Z({
34
+ breaks: n,
35
35
  defaultFillColor: l,
36
- defaultBorderColor: C,
36
+ defaultBorderColor: v,
37
37
  defaultSize: i
38
38
  });
39
- new ot({
40
- data: h.children,
41
- measure: u[0],
42
- defaultFillColor: l,
43
- gradientScheme: x,
44
- gradientReverse: o
45
- }), this.g.selectAll(".centroids .point").attr("r", (p) => d.getSize(p.properties._value) * 1 / n), this.g.selectAll(".point-label").attr("font-size", (p) => e * (1 / n) + "px");
39
+ this.g.selectAll(".centroids .point").attr("r", (p) => c.getSize(p.properties._value) * 1 / o), this.g.selectAll(".point-label").attr("font-size", (p) => e * (1 / o) + "px");
46
40
  }
47
41
  getTooltipVariables(e) {
48
42
  const { apiJoinAttribute: l } = this.props;
@@ -58,260 +52,270 @@ class ht extends pt {
58
52
  createDataLayer(e) {
59
53
  const {
60
54
  app: l,
61
- svg: C,
55
+ svg: v,
62
56
  format: i,
63
57
  id: u,
64
- file: h,
65
- path: c,
66
- onLayerCreated: x,
67
- labelFilter: o = [],
68
- labelField: f,
69
- labelFontSize: n,
70
- labelColor: d,
58
+ file: y,
59
+ path: n,
60
+ onLayerCreated: w,
61
+ labelFilter: s = [],
62
+ labelField: m,
63
+ labelFontSize: o,
64
+ labelColor: c,
71
65
  fillColor: p,
72
- borderColor: m,
73
- tooltip: z,
66
+ borderColor: g,
67
+ tooltip: x,
74
68
  markFillColor: b,
75
- markLabelColor: T,
76
- markBorderColor: J,
77
- markSizeScale: N,
78
- markerLabelSize: H,
79
- featureJoinAttribute: tt,
80
- apiJoinAttribute: K,
81
- measures: I,
82
- editing: et,
83
- data: w,
69
+ markLabelColor: J,
70
+ markBorderColor: R,
71
+ markSizeScale: G,
72
+ markerLabelSize: K,
73
+ featureJoinAttribute: et,
74
+ apiJoinAttribute: Q,
75
+ measures: $,
76
+ editing: rt,
77
+ data: C,
84
78
  patternDiscriminator: S,
85
- patternDiscriminatorLabel: Q,
86
- breaks: $,
87
- gradientScheme: G,
88
- gradientReverse: E,
79
+ patternDiscriminatorLabel: X,
80
+ breaks: I,
81
+ gradientScheme: N,
82
+ gradientReverse: U,
89
83
  patterns: L,
90
- projection: rt,
91
- useBreaks: X,
92
- useGradients: V,
93
- useCentroidPoint: U,
94
- usePattern: j,
95
- waitForFilters: at,
96
- intl: q,
97
- patternsVisible: R = !0,
98
- togglePatterns: B,
84
+ projection: at,
85
+ useBreaks: Y,
86
+ useGradients: T,
87
+ useCentroidPoint: j,
88
+ usePattern: q,
89
+ waitForFilters: it,
90
+ intl: M,
91
+ patternsVisible: B = !0,
92
+ togglePatterns: E,
99
93
  colorLayerVisible: O = !0,
100
- visible: it
94
+ visible: st
101
95
  } = this.props;
102
96
  if (this.gRef && this.gRef.current) {
103
- this.g = M.select(this.gRef.current), this.g.attr("class", "base-layer");
104
- const F = e.features.filter((A) => A.properties._value != null);
105
- this.createPaths(e), U || this.createColors(F), j && this.createPatterns(e), f != "none" && this.createLabels(e), U && this.createCentroids(F);
97
+ this.g = W.select(this.gRef.current), this.g.attr("class", "base-layer");
98
+ const z = e.features.filter((V) => V.properties._value != null);
99
+ this.createPaths(e), j || this.createColors(z), q && this.createPatterns(e), m != "none" && this.createLabels(e), j && this.createCentroids(z);
106
100
  }
107
101
  }
108
102
  createColors(e) {
109
103
  const {
110
104
  app: l,
111
- svg: C,
105
+ svg: v,
112
106
  format: i,
113
107
  id: u,
114
- file: h,
115
- path: c,
116
- onLayerCreated: x,
117
- labelFilter: o = [],
118
- labelField: f,
119
- labelFontSize: n,
120
- labelColor: d,
108
+ file: y,
109
+ path: n,
110
+ onLayerCreated: w,
111
+ labelFilter: s = [],
112
+ labelField: m,
113
+ labelFontSize: o,
114
+ labelColor: c,
121
115
  fillColor: p,
122
- borderColor: m,
123
- tooltip: z,
116
+ borderColor: g,
117
+ tooltip: x,
124
118
  markFillColor: b,
125
- markLabelColor: T,
126
- markBorderColor: J,
127
- markSizeScale: N,
128
- markerLabelSize: H,
129
- featureJoinAttribute: tt,
130
- apiJoinAttribute: K,
131
- measures: I,
132
- editing: et,
133
- data: w,
119
+ markLabelColor: J,
120
+ markBorderColor: R,
121
+ markSizeScale: G,
122
+ markerLabelSize: K,
123
+ featureJoinAttribute: et,
124
+ apiJoinAttribute: Q,
125
+ measures: $,
126
+ editing: rt,
127
+ data: C,
134
128
  patternDiscriminator: S,
135
- patternDiscriminatorLabel: Q,
136
- breaks: $,
137
- gradientScheme: G,
138
- gradientReverse: E,
129
+ patternDiscriminatorLabel: X,
130
+ breaks: I,
131
+ gradientScheme: N,
132
+ gradientReverse: U,
139
133
  patterns: L,
140
- projection: rt,
141
- useBreaks: X,
142
- useGradients: V,
143
- useCentroidPoint: U,
144
- usePattern: j,
145
- waitForFilters: at,
146
- intl: q,
147
- patternsVisible: R = !0,
148
- togglePatterns: B,
134
+ projection: at,
135
+ useBreaks: Y,
136
+ useGradients: T,
137
+ useCentroidPoint: j,
138
+ usePattern: q,
139
+ waitForFilters: it,
140
+ intl: M,
141
+ patternsVisible: B = !0,
142
+ togglePatterns: E,
149
143
  colorLayerVisible: O = !0,
150
- visible: it
151
- } = this.props, F = new Y({
152
- breaks: $,
144
+ visible: st
145
+ } = this.props, { gradientStartColor: z, gradientEndColor: V } = this.props, d = new Z({
146
+ breaks: I,
153
147
  defaultFillColor: b,
154
- defaultBorderColor: J,
155
- defaultSize: N
156
- }), A = new ot({
157
- data: w.children,
158
- measure: I[0],
148
+ defaultBorderColor: R,
149
+ defaultSize: G
150
+ }), A = new lt({
151
+ data: C ? C.children : [],
152
+ measure: $[0],
159
153
  defaultFillColor: b,
160
- gradientScheme: G,
161
- gradientReverse: E
154
+ gradientScheme: N,
155
+ gradientReverse: U,
156
+ gradientStartColor: z,
157
+ gradientEndColor: V
162
158
  });
163
- this.g && (this.g.selectAll("path").attr("fill", (s) => !s || !s.properties || !s.properties._value ? p : V ? A.getColor(s.properties._value) : F.getColor(s.properties._value)).attr("stroke", m).attr("id", "state-borders").attr("d", c).on("mouseenter", (s, y) => {
164
- y.properties._value && this.showToolTip(z, this.getTooltipVariables(y), V ? A.getColor(y.properties._value) : F.getColor(y.properties._value), y);
165
- }).on("mouseleave", (s) => {
166
- this.hiddenToolTip(s);
167
- }).on("mousemove", (s) => {
168
- this.moveToolTip(s);
159
+ this.g && (this.g.selectAll("path").attr("fill", (h) => !h || !h.properties || !h.properties._value ? p : T ? A.getColor(h.properties._value) : d.getColor(h.properties._value)).attr("stroke", g).attr("id", "state-borders").attr("d", n).on("mouseenter", (h, r) => {
160
+ r.properties._value && this.showToolTip(x, this.getTooltipVariables(r), T ? A.getColor(r.properties._value) : d.getColor(r.properties._value), r);
161
+ }).on("mouseleave", (h) => {
162
+ this.hiddenToolTip(h);
163
+ }).on("mousemove", (h) => {
164
+ this.moveToolTip(h);
169
165
  }), O || this.g.selectAll(".borders").style("fill", this.props.fillColor), this.g.attr("transform", this.props.transform));
170
166
  }
171
167
  createCentroids(e) {
172
168
  const {
173
169
  app: l,
174
- svg: C,
170
+ svg: v,
175
171
  format: i,
176
172
  id: u,
177
- file: h,
178
- path: c,
179
- onLayerCreated: x,
180
- labelFilter: o = [],
181
- labelField: f,
182
- labelFontSize: n,
183
- labelColor: d,
173
+ file: y,
174
+ path: n,
175
+ onLayerCreated: w,
176
+ labelFilter: s = [],
177
+ labelField: m,
178
+ labelFontSize: o,
179
+ labelColor: c,
184
180
  fillColor: p,
185
- borderColor: m,
186
- tooltip: z,
181
+ borderColor: g,
182
+ tooltip: x,
187
183
  markFillColor: b,
188
- markLabelColor: T,
189
- markBorderColor: J,
190
- markSizeScale: N,
191
- markerLabelSize: H,
192
- featureJoinAttribute: tt,
193
- apiJoinAttribute: K,
194
- measures: I,
195
- editing: et,
196
- data: w,
184
+ markLabelColor: J,
185
+ markBorderColor: R,
186
+ markSizeScale: G,
187
+ markerLabelSize: K,
188
+ featureJoinAttribute: et,
189
+ apiJoinAttribute: Q,
190
+ measures: $,
191
+ editing: rt,
192
+ data: C,
197
193
  patternDiscriminator: S,
198
- patternDiscriminatorLabel: Q,
199
- breaks: $,
200
- gradientScheme: G,
201
- gradientReverse: E,
194
+ patternDiscriminatorLabel: X,
195
+ breaks: I,
196
+ gradientScheme: N,
197
+ gradientReverse: U,
202
198
  patterns: L,
203
- projection: rt,
204
- useBreaks: X,
205
- useGradients: V,
206
- useCentroidPoint: U,
207
- usePattern: j,
208
- waitForFilters: at,
209
- intl: q,
210
- patternsVisible: R = !0,
211
- togglePatterns: B,
199
+ projection: at,
200
+ useBreaks: Y,
201
+ useGradients: T,
202
+ useCentroidPoint: j,
203
+ usePattern: q,
204
+ waitForFilters: it,
205
+ intl: M,
206
+ patternsVisible: B = !0,
207
+ togglePatterns: E,
212
208
  colorLayerVisible: O = !0,
213
- visible: it
214
- } = this.props, F = new Y({
215
- breaks: $,
209
+ visible: st
210
+ } = this.props, z = new Z({
211
+ breaks: I,
216
212
  defaultFillColor: b,
217
- defaultBorderColor: J,
218
- defaultSize: N
219
- }), A = new ot({
220
- data: w.children,
221
- measure: I[0],
213
+ defaultBorderColor: R,
214
+ defaultSize: G
215
+ }), V = (d) => new lt({
216
+ data: d.children,
217
+ measure: $[0],
222
218
  defaultFillColor: b,
223
- gradientScheme: G,
224
- gradientReverse: E
219
+ gradientScheme: N,
220
+ gradientReverse: U
225
221
  });
226
222
  if (this.g) {
227
- const s = {
223
+ const d = {
228
224
  style: i.style === "compacted" ? "decimal" : i.style,
229
225
  notation: i.style === "compacted" ? "compact" : "standard",
230
226
  currency: i.currency,
231
227
  minimumFractionDigits: parseInt(i.minimumFractionDigits),
232
228
  maximumFractionDigits: parseInt(i.maximumFractionDigits)
233
- }, y = this.props.transform ? this.props.transform.k : 1;
229
+ }, A = this.props.transform ? this.props.transform.k : 1;
234
230
  this.g.selectAll(".centroids").remove();
235
- const g = this.g.selectAll("centroids").data(e).enter().append("g").attr("class", "centroids");
236
- g.append("circle").attr("fill", (a) => V ? A.getColor(a.properties._value) : F.getColor(a.properties._value, !0)).attr("stroke", J).attr("class", "point").attr("stroke-width", 2).style("vector-effect", "non-scaling-stroke").attr("cx", (a) => c.centroid(a)[0]).attr("cy", (a) => c.centroid(a)[1]).attr("r", (a) => F.getSize(a.properties._value) * 1 / y).on("mouseenter", (a, t) => {
237
- if (t.properties._value) {
238
- const v = {
239
- ...t.properties,
231
+ const h = this.g.selectAll("centroids").data(e).enter().append("g").attr("class", "centroids");
232
+ h.append("circle").attr("fill", (r) => T === !0 ? V(C).getColor(r.properties._value) : z.getColor(r.properties._value, !0)).attr("stroke", R).attr("class", "point").attr("stroke-width", 2).style("vector-effect", "non-scaling-stroke").attr("cx", (r) => n.centroid(r)[0]).attr("cy", (r) => n.centroid(r)[1]).attr("r", (r) => z.getSize(r.properties._value) * 1 / A).on("mouseenter", (r, f) => {
233
+ if (f.properties._value) {
234
+ const t = {
235
+ ...f.properties,
240
236
  meta: {
241
- [K]: t.properties.meta ? t.properties.meta.value : "",
242
- ...t.properties.meta,
243
- value: t.properties._value
237
+ [Q]: f.properties.meta ? f.properties.meta.value : "",
238
+ ...f.properties.meta,
239
+ value: f.properties._value
244
240
  }
245
241
  };
246
- this.showToolTip(z, v, V ? A.getColor(t.properties._value) : F.getColor(t.properties._value));
242
+ this.showToolTip(x, t, T === !0 ? V(C).getColor(f.properties._value) : z.getColor(f.properties._value));
247
243
  }
248
- }).on("mouseleave", (a) => {
244
+ }).on("mouseleave", (r) => {
249
245
  this.hiddenToolTip();
250
- }), g.append("text").attr("class", "point-label").attr("x", (a) => c.centroid(a)[0]).attr("y", (a) => c.centroid(a)[1]).attr("font-size", (a) => H * (1 / y) + "px").attr("text-anchor", "middle").attr("dominant-baseline", "middle").style("pointer-events", "none").attr("fill", T).text((a) => q.formatNumber(i.style === "percent" ? a.properties._value / 100 : a.properties._value, s)).on("mouseover", (a) => {
246
+ }), h.append("text").attr("class", "point-label").attr("x", (r) => n.centroid(r)[0]).attr("y", (r) => n.centroid(r)[1]).attr("font-size", (r) => K * (1 / A) + "px").attr("text-anchor", "middle").attr("dominant-baseline", "middle").style("pointer-events", "none").attr("fill", J).text((r) => M.formatNumber(i.style === "percent" ? r.properties._value / 100 : r.properties._value, d)).on("mouseover", (r) => {
251
247
  }), O || this.g.selectAll(".centroids").style("display", "none");
252
248
  }
253
249
  }
254
250
  createPatterns(e) {
255
251
  const {
256
252
  app: l,
257
- svg: C,
253
+ svg: v,
258
254
  format: i,
259
255
  id: u,
260
- file: h,
261
- path: c,
262
- onLayerCreated: x,
263
- labelFilter: o = [],
264
- labelField: f,
265
- labelFontSize: n,
266
- labelColor: d,
256
+ file: y,
257
+ path: n,
258
+ onLayerCreated: w,
259
+ labelFilter: s = [],
260
+ labelField: m,
261
+ labelFontSize: o,
262
+ labelColor: c,
267
263
  fillColor: p,
268
- borderColor: m,
269
- tooltip: z,
264
+ borderColor: g,
265
+ tooltip: x,
270
266
  markFillColor: b,
271
- markLabelColor: T,
272
- markBorderColor: J,
273
- markSizeScale: N,
274
- markerLabelSize: H,
275
- featureJoinAttribute: tt,
276
- apiJoinAttribute: K,
277
- measures: I,
278
- editing: et,
279
- data: w,
267
+ markLabelColor: J,
268
+ markBorderColor: R,
269
+ markSizeScale: G,
270
+ markerLabelSize: K,
271
+ featureJoinAttribute: et,
272
+ apiJoinAttribute: Q,
273
+ measures: $,
274
+ editing: rt,
275
+ data: C,
280
276
  patternDiscriminator: S,
281
- patternDiscriminatorLabel: Q,
282
- breaks: $,
283
- gradientScheme: G,
284
- gradientReverse: E,
277
+ patternDiscriminatorLabel: X,
278
+ breaks: I,
279
+ gradientScheme: N,
280
+ gradientReverse: U,
285
281
  patterns: L,
286
- projection: rt,
287
- useBreaks: X,
288
- useGradients: V,
289
- useCentroidPoint: U,
290
- usePattern: j,
291
- waitForFilters: at,
292
- intl: q,
293
- patternsVisible: R = !0,
294
- togglePatterns: B,
282
+ projection: at,
283
+ useBreaks: Y,
284
+ useGradients: T,
285
+ useCentroidPoint: j,
286
+ usePattern: q,
287
+ waitForFilters: it,
288
+ intl: M,
289
+ patternsVisible: B = !0,
290
+ togglePatterns: E,
295
291
  colorLayerVisible: O = !0,
296
- visible: it
297
- } = this.props, F = new Y({
298
- breaks: $,
292
+ visible: st
293
+ } = this.props, z = new Z({
294
+ breaks: I,
299
295
  defaultFillColor: b,
300
- defaultBorderColor: J,
301
- defaultSize: N
302
- }), A = this.props.transform ? this.props.transform.k : 1, s = 10 * 1 / A, y = 10 * 1 / A;
303
- let g = [];
296
+ defaultBorderColor: R,
297
+ defaultSize: G
298
+ }), V = this.props.transform ? this.props.transform.k : 1, d = 10 * 1 / V, A = 10 * 1 / V, h = (t) => new lt({
299
+ data: t.children,
300
+ measure: $[0],
301
+ defaultFillColor: b,
302
+ gradientScheme: N,
303
+ gradientReverse: U,
304
+ gradientStartColor,
305
+ gradientEndColor
306
+ });
307
+ let r = [];
304
308
  if (l == "csv" && S != "none")
305
- g = [...new Set(w.data.map((t) => t[S]))].map((t) => ({
309
+ r = [...new Set(C.data.map((t) => t[S]))].map((t) => ({
306
310
  key: t,
307
311
  type: L[t + "_symbol"],
308
312
  color: L[t + "_color"],
309
313
  rotation: L[t + "_rotation"]
310
314
  }));
311
315
  else if (S != "none") {
312
- const t = w.metadata ? w.metadata.types.filter((v) => v.dimension == S) : [];
313
- g = t && t.length > 0 ? t[0].items.map((v) => {
314
- const _ = v.value;
316
+ const t = C && C.metadata ? C.metadata.types.filter((F) => F.dimension == S) : [];
317
+ r = t && t.length > 0 ? t[0].items.map((F) => {
318
+ const _ = F.value;
315
319
  return {
316
320
  key: _,
317
321
  type: L[_ + "_symbol"],
@@ -321,72 +325,68 @@ class ht extends pt {
321
325
  }) : [];
322
326
  }
323
327
  this.g.selectAll("defs").remove();
324
- const a = this.g.append("defs");
325
- if (a.selectAll("pattern").remove(), a.selectAll("pattern").data(g).enter().append("pattern").attr("id", (t) => k(t.key)).attr("patternUnits", "userSpaceOnUse").attr("width", s).attr("height", y).attr("x", 0).attr("y", 0).attr("patternTransform", (t) => `rotate(${t.rotation})`), g.forEach((t) => {
326
- t.type === "lines" && a.select("#" + k(t.key)).append("rect").attr("x", 0.05).attr("width", s / 2).attr("height", y).attr("opacity", 1).attr("fill", t.color), t.type === "squares" && a.select("#" + k(t.key)).append("rect").attr("width", s / 2).attr("height", y / 2).attr("fill", t.color).attr("opacity", 1).attr("stroke-width", 1), t.type === "dots" && a.select("#" + k(t.key)).append("circle").attr("cx", s / 2).attr("cy", y / 2).attr("r", s / 2.5).attr("fill", t.color).attr("opacity", 1).attr("stroke-width", 1), t.type === "triangle" && a.select("#" + k(t.key)).append("polygon").attr("points", `${s / 2} 0, 0 ${s}, ${s} ${s} `).attr("fill", t.color).attr("opacity", 1).attr("stroke-width", 1);
327
- }), g = g.filter((t) => t.type != null).sort((t, v) => new Intl.Collator(q.locale, { caseFirst: "upper", numeric: !0, sensitivity: "variant" }).compare(t.key, v.key)), j && e && e.features) {
328
- this.g.selectAll(".shape-pattern").remove(), R && e.features.forEach((r) => {
328
+ const f = this.g.append("defs");
329
+ if (f.selectAll("pattern").remove(), f.selectAll("pattern").data(r).enter().append("pattern").attr("id", (t) => k(t.key)).attr("patternUnits", "userSpaceOnUse").attr("width", d).attr("height", A).attr("x", 0).attr("y", 0).attr("patternTransform", (t) => `rotate(${t.rotation})`), r.forEach((t) => {
330
+ t.type === "lines" && f.select("#" + k(t.key)).append("rect").attr("x", 0.05).attr("width", d / 2).attr("height", A).attr("opacity", 1).attr("fill", t.color), t.type === "squares" && f.select("#" + k(t.key)).append("rect").attr("width", d / 2).attr("height", A / 2).attr("fill", t.color).attr("opacity", 1).attr("stroke-width", 1), t.type === "dots" && f.select("#" + k(t.key)).append("circle").attr("cx", d / 2).attr("cy", A / 2).attr("r", d / 2.5).attr("fill", t.color).attr("opacity", 1).attr("stroke-width", 1), t.type === "triangle" && f.select("#" + k(t.key)).append("polygon").attr("points", `${d / 2} 0, 0 ${d}, ${d} ${d} `).attr("fill", t.color).attr("opacity", 1).attr("stroke-width", 1);
331
+ }), r = r.filter((t) => t.type != null).sort((t, F) => new Intl.Collator(M.locale, { caseFirst: "upper", numeric: !0, sensitivity: "variant" }).compare(t.key, F.key)), q && e && e.features) {
332
+ this.g.selectAll(".shape-pattern").remove(), B && e.features.forEach((a) => {
329
333
  let P = [];
330
- r.properties && r.properties.meta && (P = l != "csv" ? r.properties.meta[S] ? r.properties.meta[S] : [] : [r.properties.meta[S]], P && P.length > 0 && P.forEach((lt) => {
331
- this.g.append("path").attr("d", c(r)).datum(lt).attr("class", "shape-pattern").attr("opacity", (st) => {
332
- if (X)
334
+ a.properties && a.properties.meta && (P = l != "csv" ? a.properties.meta[S] ? a.properties.meta[S] : [] : [a.properties.meta[S]], P && P.length > 0 && P.forEach((nt) => {
335
+ this.g.append("path").attr("d", n(a)).datum(nt).attr("class", "shape-pattern").attr("opacity", (ot) => {
336
+ if (Y)
333
337
  return 0.7;
334
- }).attr("fill", (st) => "transparent").attr("style", () => "none;fill:url(#" + k(lt) + ");").on("mouseenter", () => {
335
- this.showToolTip(z, this.getTooltipVariables(r), V ? gradientColors.getColor(r.properties._value) : F.getColor(r.properties._value));
336
- }).on("mousemove", (st) => {
338
+ }).attr("fill", (ot) => "transparent").attr("style", () => "none;fill:url(#" + k(nt) + ");").on("mouseenter", () => {
339
+ this.showToolTip(x, this.getTooltipVariables(a), T === !0 ? h(C).getColor(a.properties._value) : z.getColor(a.properties._value));
340
+ }).on("mousemove", (ot) => {
337
341
  this.moveToolTip();
338
- }).on("mouseleave", (st) => {
342
+ }).on("mouseleave", (ot) => {
339
343
  this.hiddenToolTip();
340
344
  });
341
345
  }));
342
- }), M.select(this.gRef.current.parentNode.parentNode).select(`.layer_${W(u)}`).select("svg").remove();
343
- const t = M.select(this.gRef.current.parentNode.parentNode).select(`.layer_${W(u)}`).append("svg");
344
- t.attr("height", 30 + g.length * 23 + "px");
345
- const v = t.append("svg").append("g"), _ = v.append("defs");
346
- _.selectAll("pattern").remove(), R && (_.selectAll("pattern").data(g).enter().append("pattern").attr("id", (r) => "l_" + k(r.key)).attr("patternUnits", "userSpaceOnUse").attr("width", 5).attr("height", 5).attr("x", 0).attr("y", 0).attr("patternTransform", (r) => `rotate(${r.rotation ? r.rotation : 0})`), g.forEach((r) => {
347
- r.type === "lines" && _.select("#l_" + k(r.key)).append("rect").attr("x", 0).attr("width", 1).attr("height", 10).attr("opacity", 0.75).attr("fill", r.color), r.type === "squares" && _.select("#l_" + k(r.key)).append("rect").attr("width", 3).attr("height", 3).attr("fill", r.color).attr("opacity", 1).attr("stroke-width", 1), r.type === "dots" && _.select("#l_" + k(r.key)).append("circle").attr("cx", 2).attr("cy", 2).attr("r", 2).attr("fill", r.color).attr("opacity", 1).attr("stroke-width", 1), r.type === "triangle" && _.select("#l_" + k(r.key)).append("polygon").attr("points", "5,0 8,8 0,5").attr("fill", r.color).attr("opacity", 1).attr("stroke-width", 1);
346
+ }), W.select(this.gRef.current.parentNode.parentNode).select(`.layer_${H(u)}`).select("svg").remove();
347
+ const t = W.select(this.gRef.current.parentNode.parentNode).select(`.layer_${H(u)}`).append("svg");
348
+ t.attr("height", 30 + r.length * 23 + "px");
349
+ const F = t.append("svg").append("g"), _ = F.append("defs");
350
+ _.selectAll("pattern").remove(), B && (_.selectAll("pattern").data(r).enter().append("pattern").attr("id", (a) => "l_" + k(a.key)).attr("patternUnits", "userSpaceOnUse").attr("width", 5).attr("height", 5).attr("x", 0).attr("y", 0).attr("patternTransform", (a) => `rotate(${a.rotation ? a.rotation : 0})`), r.forEach((a) => {
351
+ a.type === "lines" && _.select("#l_" + k(a.key)).append("rect").attr("x", 0).attr("width", 1).attr("height", 10).attr("opacity", 0.75).attr("fill", a.color), a.type === "squares" && _.select("#l_" + k(a.key)).append("rect").attr("width", 3).attr("height", 3).attr("fill", a.color).attr("opacity", 1).attr("stroke-width", 1), a.type === "dots" && _.select("#l_" + k(a.key)).append("circle").attr("cx", 2).attr("cy", 2).attr("r", 2).attr("fill", a.color).attr("opacity", 1).attr("stroke-width", 1), a.type === "triangle" && _.select("#l_" + k(a.key)).append("polygon").attr("points", "5,0 8,8 0,5").attr("fill", a.color).attr("opacity", 1).attr("stroke-width", 1);
348
352
  }));
349
- let nt = R ? "☑ " : "☐ ";
350
- v.append("text").attr("class", "patterns-checkbox").attr("x", 10).attr("y", 20).text((r) => nt).attr("font-size", "22px").on("click", () => {
351
- B && B(u);
352
- }), v.append("text").attr("class", "patterns-title").attr("x", 25).attr("y", 7).text((r) => l === "csv" ? S : Q).on("click", () => {
353
- B && B(u);
354
- }), R && (v.selectAll(".legend-squares").data(g).enter().append("rect").attr("width", 15).attr("height", 15).attr("y", (r, P) => P * 22 + 30).attr("x", 15).attr("stroke", m).attr("style", (r) => "none;fill:url(#l_" + k(r.key) + ");"), v.selectAll(".patterns-labels").data(g).enter().append("text").attr("class", "patterns-labels").attr("y", (r, P) => P * 22 + 30).attr("x", 32).text((r) => r.key));
353
+ let pt = B ? "☑ " : "☐ ";
354
+ F.append("text").attr("class", "patterns-checkbox").attr("x", 10).attr("y", 20).text((a) => pt).attr("font-size", "22px").on("click", () => {
355
+ E && E(u);
356
+ }), F.append("text").attr("class", "patterns-title").attr("x", 25).attr("y", 7).text((a) => l === "csv" ? S : X).on("click", () => {
357
+ E && E(u);
358
+ }), B && (F.selectAll(".legend-squares").data(r).enter().append("rect").attr("width", 15).attr("height", 15).attr("y", (a, P) => P * 22 + 30).attr("x", 15).attr("stroke", g).attr("style", (a) => "none;fill:url(#l_" + k(a.key) + ");"), F.selectAll(".patterns-labels").data(r).enter().append("text").attr("class", "patterns-labels").attr("y", (a, P) => P * 22 + 30).attr("x", 32).text((a) => a.key));
355
359
  }
356
360
  }
357
- joinData(e, l, C, i, u, h) {
358
- const c = e.features.map((o) => {
359
- const f = o.properties[C];
361
+ joinData(e, l, v, i, u, y) {
362
+ const n = e.features.map((s) => {
363
+ const m = s.properties[v];
360
364
  if (l != "csv" && i && i.children) {
361
- const n = i.children.filter((d) => d.value == f);
362
- if (n.length > 0) {
363
- const d = n[0][u[0]];
364
- if (o.properties.meta = n[0], o.properties._value = d, h && h != "none") {
365
- const p = n[0] && n[0].children ? n[0].children.filter((m) => m.type == h).map((m) => m.value) : [];
366
- o.properties.meta[h] = p;
365
+ const o = i.children.filter((c) => c.value == m);
366
+ if (o.length > 0) {
367
+ const c = o[0][u[0]];
368
+ if (s.properties.meta = o[0], s.properties._value = c, y && y != "none") {
369
+ const p = o[0] && o[0].children ? o[0].children.filter((g) => g.type == y).map((g) => g.value) : [];
370
+ s.properties.meta[y] = p;
367
371
  }
368
372
  } else
369
- o.properties._value = null;
373
+ s.properties._value = null;
370
374
  } else if (l == "csv") {
371
- const n = i.data.filter((d) => d[i.meta.fields[0]] == f);
372
- n.length > 0 ? (o.properties.meta = n[0], o.properties._value = n[0][i.meta.fields[1]]) : o.properties._value = null;
375
+ const o = i.data.filter((c) => c[i.meta.fields[0]] == m);
376
+ o.length > 0 ? (s.properties.meta = o[0], s.properties._value = o[0][i.meta.fields[1]]) : s.properties._value = null;
373
377
  } else
374
- o.properties._value = null;
375
- return o;
378
+ s.properties._value = null;
379
+ return s;
376
380
  });
377
- return { ...e, features: c };
381
+ return { ...e, features: n };
378
382
  }
379
- componentDidUpdate(e, l, C) {
380
- const { app: i, file: u, featureJoinAttribute: h, data: c, measures: x, patternDiscriminator: o, editing: f, usePattern: n } = this.props;
381
- if ((f || JSON.stringify(e.data) !== JSON.stringify(c)) && this.create(), e.visible != this.props.visible) {
382
- debugger;
383
- this.g.style("display", this.props.visible ? "" : "none");
384
- }
385
- if (e.patternsVisible != this.props.patternsVisible) {
386
- const p = M.select(this.gRef.current.parentNode.parentNode).select(`.layer_${W(this.props.id)}`);
383
+ componentDidUpdate(e, l, v) {
384
+ const { app: i, file: u, featureJoinAttribute: y, data: n, measures: w, patternDiscriminator: s, editing: m, usePattern: o } = this.props;
385
+ if ((m || e.data !== n || e.path !== this.props.path) && this.create(), e.visible != this.props.visible && this.g.style("display", this.props.visible ? "" : "none"), e.patternsVisible != this.props.patternsVisible) {
386
+ const p = W.select(this.gRef.current.parentNode.parentNode).select(`.layer_${H(this.props.id)}`);
387
387
  p.select(".patterns-checkbox").text(this.props.patternsVisible ? "☑ " : "☐ "), p.selectAll(".patterns-labels").style("display", this.props.patternsVisible ? "" : "none"), p.selectAll("rect").style("display", this.props.patternsVisible ? "" : "none"), p.select("svg").attr("height", this.props.patternsVisible ? 30 + (p.selectAll("rect").size() - 1) * 23 + "px" : "30px"), this.g.selectAll(".shape-pattern").style("display", this.props.patternsVisible ? "" : "none");
388
388
  }
389
- e.colorLayerVisible != this.props.colorLayerVisible && (this.g.selectAll(".borders").style("fill", (d) => this.props.colorLayerVisible ? null : this.props.fillColor), this.g.selectAll(".centroids").style("display", this.props.colorLayerVisible ? "block" : "none")), e.usePattern != this.props.usePattern && (this.props.usePattern || M.select(this.gRef.current.parentNode.parentNode).select(`.layer_${W(this.props.id)}`).select("svg").remove()), this.g && this.resize();
389
+ e.colorLayerVisible != this.props.colorLayerVisible && (this.g.selectAll(".borders").style("fill", (c) => this.props.colorLayerVisible ? null : this.props.fillColor), this.g.selectAll(".centroids").style("display", this.props.colorLayerVisible ? "block" : "none")), e.usePattern != this.props.usePattern && (this.props.usePattern || W.select(this.gRef.current.parentNode.parentNode).select(`.layer_${H(this.props.id)}`).select("svg").remove()), this.g && this.resize();
390
390
  }
391
391
  componentDidMount() {
392
392
  super.componentDidMount();
@@ -395,57 +395,58 @@ class ht extends pt {
395
395
  const {
396
396
  id: e,
397
397
  file: l,
398
- path: C,
398
+ path: v,
399
399
  zoom: i,
400
400
  labelFilter: u = [],
401
- labelField: h,
402
- labelFontSize: c,
403
- labelColor: x,
404
- fillColor: o,
405
- borderColor: f,
406
- featureJoinAttribute: n,
407
- apiJoinAttribute: d,
401
+ labelField: y,
402
+ labelFontSize: n,
403
+ labelColor: w,
404
+ fillColor: s,
405
+ borderColor: m,
406
+ featureJoinAttribute: o,
407
+ apiJoinAttribute: c,
408
408
  dvzProxyDatasetId: p,
409
- editing: m
409
+ editing: g
410
410
  } = this.props;
411
- return /* @__PURE__ */ Z("g", { id: "data-" + e, className: "data " + e, ref: this.gRef });
411
+ return /* @__PURE__ */ tt("g", { id: "data-" + e, className: "data " + e, ref: this.gRef });
412
412
  }
413
413
  }
414
- const ft = (D) => {
414
+ const mt = (D) => {
415
415
  const {
416
416
  id: e,
417
417
  unique: l,
418
- filters: C,
418
+ filters: v,
419
419
  csv: i,
420
420
  app: u,
421
- group: h = "default",
422
- apiJoinAttribute: c,
423
- editing: x,
424
- patternDiscriminator: o,
425
- dvzProxyDatasetId: f,
426
- intl: n,
427
- settings: d,
421
+ group: y = "default",
422
+ apiJoinAttribute: n,
423
+ editing: w,
424
+ patternDiscriminator: s,
425
+ dvzProxyDatasetId: m,
426
+ intl: o,
427
+ settings: c,
428
428
  waitForFilters: p
429
- } = D, m = {}, z = C || {};
430
- return z && z.forEach && z.forEach((b) => {
431
- b.value != null && b.value.filter((T) => T != null && T.toString().trim() != "").length > 0 && (m[b.param] = b.value);
432
- }), f && (m.dvzProxyDatasetId = f), /* @__PURE__ */ Z(
433
- ct,
429
+ } = D, g = {}, x = v || {};
430
+ return x && x.forEach && x.forEach((b) => {
431
+ b.value != null && b.value.filter((J) => J != null && J.toString().trim() != "").length > 0 && (g[b.param] = b.value);
432
+ }), m && (g.dvzProxyDatasetId = m), /* @__PURE__ */ tt(
433
+ dt,
434
434
  {
435
- waitForFilters: p,
436
- editing: x,
437
- params: m,
435
+ waitForFilters: !0,
436
+ editing: w,
437
+ params: g,
438
438
  app: u,
439
439
  csv: decodeURIComponent(i),
440
- group: h,
440
+ group: y,
441
441
  ignoreErrors: !0,
442
442
  isSvg: !0,
443
443
  store: [u, l, e],
444
- source: c + (o != "none" ? "/" + o : ""),
445
- children: /* @__PURE__ */ Z(ut, { children: /* @__PURE__ */ Z(ht, { ...D }) })
444
+ mySelf: "Data layer",
445
+ source: n + (s != "none" ? "/" + s : ""),
446
+ children: /* @__PURE__ */ tt(ut, { children: /* @__PURE__ */ tt(ft, { ...D }) })
446
447
  }
447
448
  );
448
- }, Ft = dt(ft);
449
+ }, _t = ht(mt);
449
450
  export {
450
- Ft as default
451
+ _t as default
451
452
  };