@vertigis/viewer-spec 56.34.2 → 56.35.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.
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ModelProperties } from "../common/ModelProperties.js";
|
|
2
|
+
/**
|
|
3
|
+
* Represent sources of portal items.
|
|
4
|
+
*/
|
|
5
|
+
export type Source = "my-content" | "my-groups" | "my-favorites" | "organization" | "public";
|
|
2
6
|
/**
|
|
3
7
|
* Properties that are used for the Portal service.
|
|
4
8
|
*/
|
|
@@ -8,4 +12,14 @@ export interface PortalModelProperties extends ModelProperties {
|
|
|
8
12
|
* layers.
|
|
9
13
|
*/
|
|
10
14
|
layerFilterTags?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Optionally specify the source that will be initially selected in the
|
|
17
|
+
* Choose Layer modal. If not specified we default to "organization".
|
|
18
|
+
*/
|
|
19
|
+
initialSource?: Source;
|
|
20
|
+
/**
|
|
21
|
+
* The sources that we want to expose by default in the Choose Layer modal.
|
|
22
|
+
* If not specified we include all sources.
|
|
23
|
+
*/
|
|
24
|
+
sources?: Source[];
|
|
11
25
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type PortalItem from "@arcgis/core/portal/PortalItem";
|
|
2
|
+
import type { Source } from "../../app-config/web/PortalModelProperties.js";
|
|
2
3
|
import type { Event } from "../Event.js";
|
|
3
4
|
import { EventRegistry } from "../EventRegistry.js";
|
|
4
5
|
import type { Operation } from "../Operation.js";
|
|
@@ -19,6 +20,23 @@ export interface ChooseLayersOptions extends HasMaps, HasUITarget {
|
|
|
19
20
|
* `false`.
|
|
20
21
|
*/
|
|
21
22
|
allowMultiple?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Optionally specify the tags by which the Choose Layer modal will filter
|
|
25
|
+
* out the displayed layers. If specified this will overwrite the configured
|
|
26
|
+
* default in the Portal Model.
|
|
27
|
+
*/
|
|
28
|
+
layerFilterTags?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Optionally specify the source that will be initially selected. If
|
|
31
|
+
* specified this will overwrite the configured default in the Portal
|
|
32
|
+
* Model.
|
|
33
|
+
*/
|
|
34
|
+
initialSource?: Source;
|
|
35
|
+
/**
|
|
36
|
+
* Optionally specify the sources that we want to expose. If specified this
|
|
37
|
+
* will overwrite the configured default in the Portal Model.
|
|
38
|
+
*/
|
|
39
|
+
sources?: Source[];
|
|
22
40
|
}
|
|
23
41
|
/**
|
|
24
42
|
* Result of the "portal.choose-layers" operation.
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED