@arcgis/core-adapter 4.32.0-next.44 → 4.32.0-next.47
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/.turbo/turbo-build.log +7 -7
- package/dist/index.cjs +135 -24
- package/dist/index.d.cts +23 -8
- package/dist/index.d.ts +23 -8
- package/dist/index.js +116 -20
- package/package.json +1 -1
- package/scripts/generator.ts +19 -4
- package/src/index.ts +116 -20
- package/support/api-reference-esm-imports.json +11 -4
- package/support/arcgis.d.ts +1678 -642
package/scripts/generator.ts
CHANGED
|
@@ -4,10 +4,9 @@ import resolvePkg from "resolve-pkg";
|
|
|
4
4
|
import type { SourceFile } from "ts-morph";
|
|
5
5
|
import { Project } from "ts-morph";
|
|
6
6
|
import ts from "typescript";
|
|
7
|
-
import { fileURLToPath } from "url";
|
|
8
7
|
import { publicModules } from "../support/publicModules";
|
|
9
8
|
|
|
10
|
-
const dirname =
|
|
9
|
+
const dirname = import.meta.dirname;
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Collect the details of a type we are interested in
|
|
@@ -54,8 +53,9 @@ const nativeGenericTypes = nativeTypes.map((x) => `<${x}>`);
|
|
|
54
53
|
|
|
55
54
|
// Modules to ignore
|
|
56
55
|
const ignoreExports: string[] = [
|
|
57
|
-
//
|
|
56
|
+
// virtual
|
|
58
57
|
"esri/core/units",
|
|
58
|
+
"esri/core/quantity",
|
|
59
59
|
];
|
|
60
60
|
|
|
61
61
|
// Module that returns an instance of a class
|
|
@@ -394,7 +394,22 @@ function processUnionType(parameterInfo: ParameterInfo): string {
|
|
|
394
394
|
function generateImportFunction(entry: TypeInfo): string {
|
|
395
395
|
const { amdModulePath, esmModulePath, typeName, instanceType = false } = entry;
|
|
396
396
|
const functionNameSuffix = convertToPascalCase(amdModulePath);
|
|
397
|
-
const
|
|
397
|
+
const resolvedTypeName = [
|
|
398
|
+
"__esri.CollectionFlattener",
|
|
399
|
+
"__esri.SelectionOperation",
|
|
400
|
+
"__esri.SketchTooltipControls",
|
|
401
|
+
].includes(typeName)
|
|
402
|
+
? "any"
|
|
403
|
+
: typeName;
|
|
404
|
+
|
|
405
|
+
let promiseType: string;
|
|
406
|
+
if (resolvedTypeName === "any") {
|
|
407
|
+
promiseType = "any";
|
|
408
|
+
} else if (instanceType) {
|
|
409
|
+
promiseType = resolvedTypeName;
|
|
410
|
+
} else {
|
|
411
|
+
promiseType = `typeof ${resolvedTypeName}`;
|
|
412
|
+
}
|
|
398
413
|
|
|
399
414
|
return `
|
|
400
415
|
export async function import${functionNameSuffix}(): Promise<${promiseType}> {
|
package/src/index.ts
CHANGED
|
@@ -4214,6 +4214,84 @@ export async function newRestSupportAddressCandidate(properties: __esri.AddressC
|
|
|
4214
4214
|
return new ModConstructor(properties);
|
|
4215
4215
|
}
|
|
4216
4216
|
|
|
4217
|
+
export async function importRestSupportAttributeBinsQuery(): Promise<typeof __esri.AttributeBinsQuery> {
|
|
4218
|
+
if (isAMD) {
|
|
4219
|
+
return await window.$arcgis.import("esri/rest/support/AttributeBinsQuery");
|
|
4220
|
+
}
|
|
4221
|
+
const module = await import("@arcgis/core/rest/support/AttributeBinsQuery.js");
|
|
4222
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4223
|
+
}
|
|
4224
|
+
|
|
4225
|
+
export async function newRestSupportAttributeBinsQuery(properties: __esri.AttributeBinsQueryProperties): Promise<__esri.AttributeBinsQuery> {
|
|
4226
|
+
const ModConstructor = await importRestSupportAttributeBinsQuery();
|
|
4227
|
+
return new ModConstructor(properties);
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
export async function importRestSupportAutoIntervalBinParameters(): Promise<typeof __esri.AutoIntervalBinParameters> {
|
|
4231
|
+
if (isAMD) {
|
|
4232
|
+
return await window.$arcgis.import("esri/rest/support/AutoIntervalBinParameters");
|
|
4233
|
+
}
|
|
4234
|
+
const module = await import("@arcgis/core/rest/support/AutoIntervalBinParameters.js");
|
|
4235
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
export async function newRestSupportAutoIntervalBinParameters(properties: __esri.AutoIntervalBinParametersProperties): Promise<__esri.AutoIntervalBinParameters> {
|
|
4239
|
+
const ModConstructor = await importRestSupportAutoIntervalBinParameters();
|
|
4240
|
+
return new ModConstructor(properties);
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
export async function importRestSupportFixedBoundariesBinParameters(): Promise<typeof __esri.FixedBoundariesBinParameters> {
|
|
4244
|
+
if (isAMD) {
|
|
4245
|
+
return await window.$arcgis.import("esri/rest/support/FixedBoundariesBinParameters");
|
|
4246
|
+
}
|
|
4247
|
+
const module = await import("@arcgis/core/rest/support/FixedBoundariesBinParameters.js");
|
|
4248
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4251
|
+
export async function newRestSupportFixedBoundariesBinParameters(properties: __esri.FixedBoundariesBinParametersProperties): Promise<__esri.FixedBoundariesBinParameters> {
|
|
4252
|
+
const ModConstructor = await importRestSupportFixedBoundariesBinParameters();
|
|
4253
|
+
return new ModConstructor(properties);
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4256
|
+
export async function importRestSupportFixedIntervalBinParameters(): Promise<typeof __esri.FixedIntervalBinParameters> {
|
|
4257
|
+
if (isAMD) {
|
|
4258
|
+
return await window.$arcgis.import("esri/rest/support/FixedIntervalBinParameters");
|
|
4259
|
+
}
|
|
4260
|
+
const module = await import("@arcgis/core/rest/support/FixedIntervalBinParameters.js");
|
|
4261
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
export async function newRestSupportFixedIntervalBinParameters(properties: __esri.FixedIntervalBinParametersProperties): Promise<__esri.FixedIntervalBinParameters> {
|
|
4265
|
+
const ModConstructor = await importRestSupportFixedIntervalBinParameters();
|
|
4266
|
+
return new ModConstructor(properties);
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
export async function importRestSupportDateBinParameters(): Promise<typeof __esri.DateBinParameters> {
|
|
4270
|
+
if (isAMD) {
|
|
4271
|
+
return await window.$arcgis.import("esri/rest/support/DateBinParameters");
|
|
4272
|
+
}
|
|
4273
|
+
const module = await import("@arcgis/core/rest/support/DateBinParameters.js");
|
|
4274
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4275
|
+
}
|
|
4276
|
+
|
|
4277
|
+
export async function newRestSupportDateBinParameters(properties: __esri.DateBinParametersProperties): Promise<__esri.DateBinParameters> {
|
|
4278
|
+
const ModConstructor = await importRestSupportDateBinParameters();
|
|
4279
|
+
return new ModConstructor(properties);
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
export async function importRestSupportDateBinTimeInterval(): Promise<typeof __esri.DateBinTimeInterval> {
|
|
4283
|
+
if (isAMD) {
|
|
4284
|
+
return await window.$arcgis.import("esri/rest/support/DateBinTimeInterval");
|
|
4285
|
+
}
|
|
4286
|
+
const module = await import("@arcgis/core/rest/support/DateBinTimeInterval.js");
|
|
4287
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
export async function newRestSupportDateBinTimeInterval(properties: __esri.DateBinTimeIntervalProperties): Promise<__esri.DateBinTimeInterval> {
|
|
4291
|
+
const ModConstructor = await importRestSupportDateBinTimeInterval();
|
|
4292
|
+
return new ModConstructor(properties);
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4217
4295
|
export async function importRestSupportAlgorithmicColorRamp(): Promise<typeof __esri.AlgorithmicColorRamp> {
|
|
4218
4296
|
if (isAMD) {
|
|
4219
4297
|
return await window.$arcgis.import("esri/rest/support/AlgorithmicColorRamp");
|
|
@@ -4266,6 +4344,32 @@ export async function newRestSupportAttachmentQuery(properties: __esri.Attachmen
|
|
|
4266
4344
|
return new ModConstructor(properties);
|
|
4267
4345
|
}
|
|
4268
4346
|
|
|
4347
|
+
export async function importRestSupportBaseImageMeasureParameters(): Promise<typeof __esri.BaseImageMeasureParameters> {
|
|
4348
|
+
if (isAMD) {
|
|
4349
|
+
return await window.$arcgis.import("esri/rest/support/BaseImageMeasureParameters");
|
|
4350
|
+
}
|
|
4351
|
+
const module = await import("@arcgis/core/rest/support/BaseImageMeasureParameters.js");
|
|
4352
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4353
|
+
}
|
|
4354
|
+
|
|
4355
|
+
export async function newRestSupportBaseImageMeasureParameters(properties: __esri.BaseImageMeasureParametersProperties): Promise<__esri.BaseImageMeasureParameters> {
|
|
4356
|
+
const ModConstructor = await importRestSupportBaseImageMeasureParameters();
|
|
4357
|
+
return new ModConstructor(properties);
|
|
4358
|
+
}
|
|
4359
|
+
|
|
4360
|
+
export async function importRestSupportBaseImageMeasureResult(): Promise<typeof __esri.BaseImageMeasureResult> {
|
|
4361
|
+
if (isAMD) {
|
|
4362
|
+
return await window.$arcgis.import("esri/rest/support/BaseImageMeasureResult");
|
|
4363
|
+
}
|
|
4364
|
+
const module = await import("@arcgis/core/rest/support/BaseImageMeasureResult.js");
|
|
4365
|
+
return isDefaultModule(module) ? module.default : module;
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
export async function newRestSupportBaseImageMeasureResult(properties: __esri.BaseImageMeasureResultProperties): Promise<__esri.BaseImageMeasureResult> {
|
|
4369
|
+
const ModConstructor = await importRestSupportBaseImageMeasureResult();
|
|
4370
|
+
return new ModConstructor(properties);
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4269
4373
|
export async function importRestSupportBufferParameters(): Promise<typeof __esri.BufferParameters> {
|
|
4270
4374
|
if (isAMD) {
|
|
4271
4375
|
return await window.$arcgis.import("esri/rest/support/BufferParameters");
|
|
@@ -10191,27 +10295,19 @@ export async function importCoreWorkers(): Promise<typeof __esri.workers> {
|
|
|
10191
10295
|
return isDefaultModule(module) ? module.default : module;
|
|
10192
10296
|
}
|
|
10193
10297
|
|
|
10194
|
-
export async function
|
|
10195
|
-
if (isAMD) {
|
|
10196
|
-
return await window.$arcgis.import("esri/form/elements/inputs/attachments/support/inputs");
|
|
10197
|
-
}
|
|
10198
|
-
const module = await import("@arcgis/core/form/elements/inputs/attachments/support/inputs.js");
|
|
10199
|
-
return isDefaultModule(module) ? module.default : module;
|
|
10200
|
-
}
|
|
10201
|
-
|
|
10202
|
-
export async function importFormElementsSupportInputs(): Promise<typeof __esri.supportInputs> {
|
|
10298
|
+
export async function importFormElementsInputs(): Promise<typeof __esri.inputs> {
|
|
10203
10299
|
if (isAMD) {
|
|
10204
|
-
return await window.$arcgis.import("esri/form/elements/
|
|
10300
|
+
return await window.$arcgis.import("esri/form/elements/inputs");
|
|
10205
10301
|
}
|
|
10206
|
-
const module = await import("@arcgis/core/form/elements/
|
|
10302
|
+
const module = await import("@arcgis/core/form/elements/inputs.js");
|
|
10207
10303
|
return isDefaultModule(module) ? module.default : module;
|
|
10208
10304
|
}
|
|
10209
10305
|
|
|
10210
|
-
export async function
|
|
10306
|
+
export async function importFormElements(): Promise<typeof __esri.elements> {
|
|
10211
10307
|
if (isAMD) {
|
|
10212
|
-
return await window.$arcgis.import("esri/form/
|
|
10308
|
+
return await window.$arcgis.import("esri/form/elements");
|
|
10213
10309
|
}
|
|
10214
|
-
const module = await import("@arcgis/core/form/
|
|
10310
|
+
const module = await import("@arcgis/core/form/elements.js");
|
|
10215
10311
|
return isDefaultModule(module) ? module.default : module;
|
|
10216
10312
|
}
|
|
10217
10313
|
|
|
@@ -11487,11 +11583,11 @@ export async function importSymbolsSupportSymbolUtils(): Promise<typeof __esri.s
|
|
|
11487
11583
|
return isDefaultModule(module) ? module.default : module;
|
|
11488
11584
|
}
|
|
11489
11585
|
|
|
11490
|
-
export async function
|
|
11586
|
+
export async function importTablesElements(): Promise<typeof __esri.tablesElements> {
|
|
11491
11587
|
if (isAMD) {
|
|
11492
|
-
return await window.$arcgis.import("esri/tables/
|
|
11588
|
+
return await window.$arcgis.import("esri/tables/elements");
|
|
11493
11589
|
}
|
|
11494
|
-
const module = await import("@arcgis/core/tables/
|
|
11590
|
+
const module = await import("@arcgis/core/tables/elements.js");
|
|
11495
11591
|
return isDefaultModule(module) ? module.default : module;
|
|
11496
11592
|
}
|
|
11497
11593
|
|
|
@@ -11607,7 +11703,7 @@ export async function importApplicationsComponentsBasemapUtils(): Promise<typeof
|
|
|
11607
11703
|
return isDefaultModule(module) ? module.default : module;
|
|
11608
11704
|
}
|
|
11609
11705
|
|
|
11610
|
-
export async function importApplicationsComponentsCollectionFlattener(): Promise<
|
|
11706
|
+
export async function importApplicationsComponentsCollectionFlattener(): Promise<any> {
|
|
11611
11707
|
if (isAMD) {
|
|
11612
11708
|
return await window.$arcgis.import("esri/applications/Components/CollectionFlattener");
|
|
11613
11709
|
}
|
|
@@ -11679,7 +11775,7 @@ export async function importApplicationsComponentsReactiveUtils(): Promise<typeo
|
|
|
11679
11775
|
return isDefaultModule(module) ? module.default : module;
|
|
11680
11776
|
}
|
|
11681
11777
|
|
|
11682
|
-
export async function importApplicationsComponentsSelectionOperation(): Promise<
|
|
11778
|
+
export async function importApplicationsComponentsSelectionOperation(): Promise<any> {
|
|
11683
11779
|
if (isAMD) {
|
|
11684
11780
|
return await window.$arcgis.import("esri/applications/Components/SelectionOperation");
|
|
11685
11781
|
}
|
|
@@ -11687,7 +11783,7 @@ export async function importApplicationsComponentsSelectionOperation(): Promise<
|
|
|
11687
11783
|
return isDefaultModule(module) ? module.default : module;
|
|
11688
11784
|
}
|
|
11689
11785
|
|
|
11690
|
-
export async function importApplicationsComponentsSketchTooltipControls(): Promise<
|
|
11786
|
+
export async function importApplicationsComponentsSketchTooltipControls(): Promise<any> {
|
|
11691
11787
|
if (isAMD) {
|
|
11692
11788
|
return await window.$arcgis.import("esri/applications/Components/SketchTooltipControls");
|
|
11693
11789
|
}
|
|
@@ -55,11 +55,10 @@
|
|
|
55
55
|
"esri/form/elements/inputs/attachments/ImageInput": "import ImageInput from \"@arcgis/core/form/elements/inputs/attachments/ImageInput.js\";",
|
|
56
56
|
"esri/form/elements/inputs/attachments/SignatureInput": "import SignatureInput from \"@arcgis/core/form/elements/inputs/attachments/SignatureInput.js\";",
|
|
57
57
|
"esri/form/elements/inputs/attachments/VideoInput": "import VideoInput from \"@arcgis/core/form/elements/inputs/attachments/VideoInput.js\";",
|
|
58
|
-
"esri/form/elements/inputs
|
|
59
|
-
"esri/form/elements
|
|
58
|
+
"esri/form/elements/inputs": "import * as inputs from \"@arcgis/core/form/elements/inputs.js\";",
|
|
59
|
+
"esri/form/elements": "import * as elements from \"@arcgis/core/form/elements.js\";",
|
|
60
60
|
"esri/form/ExpressionInfo": "import ExpressionInfo from \"@arcgis/core/form/ExpressionInfo.js\";",
|
|
61
61
|
"esri/form/FormTemplate": "import FormTemplate from \"@arcgis/core/form/FormTemplate.js\";",
|
|
62
|
-
"esri/form/support/elements": "import * as elements from \"@arcgis/core/form/support/elements.js\";",
|
|
63
62
|
"esri/geometry": "import * as geometry from \"@arcgis/core/geometry.js\";",
|
|
64
63
|
"esri/geometry/Circle": "import Circle from \"@arcgis/core/geometry/Circle.js\";",
|
|
65
64
|
"esri/geometry/coordinateFormatter": "import * as coordinateFormatter from \"@arcgis/core/geometry/coordinateFormatter.js\";",
|
|
@@ -439,10 +438,18 @@
|
|
|
439
438
|
"esri/rest/route": "import * as route from \"@arcgis/core/rest/route.js\";",
|
|
440
439
|
"esri/rest/serviceArea": "import * as serviceArea from \"@arcgis/core/rest/serviceArea.js\";",
|
|
441
440
|
"esri/rest/support/AddressCandidate": "import AddressCandidate from \"@arcgis/core/rest/support/AddressCandidate.js\";",
|
|
441
|
+
"esri/rest/support/AttributeBinsQuery": "import AttributeBinsQuery from \"@arcgis/core/rest/support/AttributeBinsQuery.js\";",
|
|
442
|
+
"esri/rest/support/AutoIntervalBinParameters": "import AutoIntervalBinParameters from \"@arcgis/core/rest/support/AutoIntervalBinParameters.js\";",
|
|
443
|
+
"esri/rest/support/FixedBoundariesBinParameters": "import FixedBoundariesBinParameters from \"@arcgis/core/rest/support/FixedBoundariesBinParameters.js\";",
|
|
444
|
+
"esri/rest/support/FixedIntervalBinParameters": "import FixedIntervalBinParameters from \"@arcgis/core/rest/support/FixedIntervalBinParameters.js\";",
|
|
445
|
+
"esri/rest/support/DateBinParameters": "import DateBinParameters from \"@arcgis/core/rest/support/DateBinParameters.js\";",
|
|
446
|
+
"esri/rest/support/DateBinTimeInterval": "import DateBinTimeInterval from \"@arcgis/core/rest/support/DateBinTimeInterval.js\";",
|
|
442
447
|
"esri/rest/support/AlgorithmicColorRamp": "import AlgorithmicColorRamp from \"@arcgis/core/rest/support/AlgorithmicColorRamp.js\";",
|
|
443
448
|
"esri/rest/support/ArealUnit": "import ArealUnit from \"@arcgis/core/rest/support/ArealUnit.js\";",
|
|
444
449
|
"esri/rest/support/AreasAndLengthsParameters": "import AreasAndLengthsParameters from \"@arcgis/core/rest/support/AreasAndLengthsParameters.js\";",
|
|
445
450
|
"esri/rest/support/AttachmentQuery": "import AttachmentQuery from \"@arcgis/core/rest/support/AttachmentQuery.js\";",
|
|
451
|
+
"esri/rest/support/BaseImageMeasureParameters": "import BaseImageMeasureParameters from \"@arcgis/core/rest/support/BaseImageMeasureParameters.js\";",
|
|
452
|
+
"esri/rest/support/BaseImageMeasureResult": "import BaseImageMeasureResult from \"@arcgis/core/rest/support/BaseImageMeasureResult.js\";",
|
|
446
453
|
"esri/rest/support/BufferParameters": "import BufferParameters from \"@arcgis/core/rest/support/BufferParameters.js\";",
|
|
447
454
|
"esri/rest/support/CameraInfo": "import CameraInfo from \"@arcgis/core/rest/support/CameraInfo.js\";",
|
|
448
455
|
"esri/rest/support/ClosestFacilityParameters": "import ClosestFacilityParameters from \"@arcgis/core/rest/support/ClosestFacilityParameters.js\";",
|
|
@@ -638,7 +645,7 @@
|
|
|
638
645
|
"esri/symbols/WaterSymbol3DLayer": "import WaterSymbol3DLayer from \"@arcgis/core/symbols/WaterSymbol3DLayer.js\";",
|
|
639
646
|
"esri/symbols/WebStyleSymbol": "import WebStyleSymbol from \"@arcgis/core/symbols/WebStyleSymbol.js\";",
|
|
640
647
|
"esri/tables/AttributeTableTemplate": "import AttributeTableTemplate from \"@arcgis/core/tables/AttributeTableTemplate.js\";",
|
|
641
|
-
"esri/tables/
|
|
648
|
+
"esri/tables/elements": "import * as elements from \"@arcgis/core/tables/elements.js\";",
|
|
642
649
|
"esri/tables/elements/AttributeTableAttachmentElement": "import AttributeTableAttachmentElement from \"@arcgis/core/tables/elements/AttributeTableAttachmentElement.js\";",
|
|
643
650
|
"esri/tables/elements/AttributeTableElement": "import AttributeTableElement from \"@arcgis/core/tables/elements/AttributeTableElement.js\";",
|
|
644
651
|
"esri/tables/elements/AttributeTableGroupElement": "import AttributeTableGroupElement from \"@arcgis/core/tables/elements/AttributeTableGroupElement.js\";",
|