@carto/api-client 0.5.1-alpha.1 → 0.5.1
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 +7 -2
- package/build/api-client.cjs +33 -31
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +40 -15
- package/build/api-client.d.ts +40 -15
- package/build/api-client.js +29 -31
- package/build/api-client.js.map +1 -1
- package/build/worker.js +14 -2
- package/build/worker.js.map +1 -1
- package/package.json +3 -4
- package/src/fetch-map/fetch-map.ts +1 -7
- package/src/fetch-map/parse-map.ts +2 -1
- package/src/fetch-map/source.ts +12 -3
- package/src/fetch-map/types.ts +3 -2
- package/src/filters/tileFeatures.ts +2 -0
- package/src/index.ts +1 -0
- package/src/sources/base-source.ts +8 -22
- package/src/sources/boundary-query-source.ts +1 -5
- package/src/sources/boundary-table-source.ts +1 -5
- package/src/sources/h3-query-source.ts +1 -1
- package/src/sources/h3-table-source.ts +1 -1
- package/src/sources/h3-tileset-source.ts +2 -2
- package/src/sources/index.ts +18 -10
- package/src/sources/quadbin-query-source.ts +1 -1
- package/src/sources/quadbin-table-source.ts +1 -1
- package/src/sources/quadbin-tileset-source.ts +2 -2
- package/src/sources/raster-source.ts +3 -3
- package/src/sources/types.ts +6 -8
- package/src/sources/vector-query-source.ts +1 -1
- package/src/sources/vector-table-source.ts +1 -1
- package/src/sources/vector-tileset-source.ts +2 -2
- package/src/types-internal.ts +0 -24
- package/src/utils.ts +27 -0
- package/src/widget-sources/types.ts +2 -2
- package/src/widget-sources/widget-tileset-source-impl.ts +11 -3
package/build/worker.js
CHANGED
|
@@ -126,6 +126,16 @@ var _InvalidColumnError = class _InvalidColumnError extends Error {
|
|
|
126
126
|
};
|
|
127
127
|
__publicField(_InvalidColumnError, "NAME", "InvalidColumnError");
|
|
128
128
|
var InvalidColumnError = _InvalidColumnError;
|
|
129
|
+
function assignOptional(target, ...sources) {
|
|
130
|
+
for (const source2 of sources) {
|
|
131
|
+
for (const key in source2) {
|
|
132
|
+
if (source2[key] !== void 0) {
|
|
133
|
+
target[key] = source2[key];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return target;
|
|
138
|
+
}
|
|
129
139
|
|
|
130
140
|
// src/utils/makeIntervalComplete.ts
|
|
131
141
|
function makeIntervalComplete(intervals) {
|
|
@@ -6167,8 +6177,7 @@ var WidgetTilesetSourceImpl = class extends WidgetSource {
|
|
|
6167
6177
|
return;
|
|
6168
6178
|
}
|
|
6169
6179
|
this._features = tileFeatures({
|
|
6170
|
-
...this.props,
|
|
6171
|
-
...this._tileFeatureExtractOptions,
|
|
6180
|
+
...assignOptional({}, this.props, this._tileFeatureExtractOptions),
|
|
6172
6181
|
tiles: this._tiles,
|
|
6173
6182
|
spatialFilter
|
|
6174
6183
|
});
|
|
@@ -6321,6 +6330,9 @@ var WidgetTilesetSourceImpl = class extends WidgetSource {
|
|
|
6321
6330
|
return { rows: [], totalCount: 0 };
|
|
6322
6331
|
}
|
|
6323
6332
|
if (searchFilterColumn && searchFilterText) {
|
|
6333
|
+
console.warn(
|
|
6334
|
+
'WidgetTilesetSource: "searchFilterText" is deprecated, use "filters" and FilterType.STRING_SEARCH instead.'
|
|
6335
|
+
);
|
|
6324
6336
|
filteredFeatures = filteredFeatures.filter(
|
|
6325
6337
|
(row) => row[searchFilterColumn] && String(row[searchFilterColumn]).toLowerCase().includes(String(searchFilterText).toLowerCase())
|
|
6326
6338
|
);
|