@arcgis/portal-components 5.2.0-next.24 → 5.2.0-next.26

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 (63) hide show
  1. package/dist/cdn/{PZJAY7AM.js → 32CZ4VLI.js} +1 -1
  2. package/dist/cdn/{W7JNOIYK.js → 47NPIL2S.js} +1 -1
  3. package/dist/cdn/{IANXXLKE.js → BZTVED5W.js} +1 -1
  4. package/dist/cdn/{4PKNGQ3Q.js → CHSZSBO6.js} +1 -1
  5. package/dist/cdn/DY5G63YO.js +2 -0
  6. package/dist/cdn/ECNI2A4K.js +2 -0
  7. package/dist/cdn/EZ3BR2FP.js +134 -0
  8. package/dist/cdn/{IVD6XJNI.js → FRDK7SCC.js} +1 -1
  9. package/dist/cdn/{SY6RBNVT.js → GDZZCADX.js} +1 -1
  10. package/dist/cdn/GJ26ZIE5.js +2 -0
  11. package/dist/cdn/GNS7NA7V.js +2 -0
  12. package/dist/cdn/HB7GO6ST.js +2 -0
  13. package/dist/cdn/M7ABAD7K.js +2 -0
  14. package/dist/cdn/O7ICV6C7.js +2 -0
  15. package/dist/cdn/OKHKS5RH.js +2 -0
  16. package/dist/cdn/{PDL3DPMG.js → PFCDINAN.js} +1 -1
  17. package/dist/cdn/{GPGWYQ7V.js → Q4RHXODL.js} +109 -90
  18. package/dist/cdn/QOFH6DQT.js +2 -0
  19. package/dist/cdn/RJPBPB45.js +2 -0
  20. package/dist/cdn/S5XNEB7F.js +99 -0
  21. package/dist/cdn/S745KWLM.js +34 -0
  22. package/dist/cdn/ULD747OT.js +22 -0
  23. package/dist/cdn/VSKX2QMZ.js +2 -0
  24. package/dist/cdn/{GDYQWDWB.js → VTLIQOV4.js} +1 -1
  25. package/dist/cdn/{EZZ66WTI.js → YGKPNY5R.js} +1 -1
  26. package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -1
  27. package/dist/cdn/index.js +1 -1
  28. package/dist/cdn/main.css +1 -1
  29. package/dist/components/arcgis-portal-browser/customElement.d.ts +30 -0
  30. package/dist/components/arcgis-portal-browser/customElement.js +4 -1
  31. package/dist/components/arcgis-portal-browser/utils/store.d.ts +2 -0
  32. package/dist/components/arcgis-portal-browser-filter/customElement.d.ts +57 -0
  33. package/dist/components/arcgis-portal-browser-filter/customElement.js +34 -0
  34. package/dist/components/arcgis-portal-browser-filter/index.d.ts +1 -0
  35. package/dist/components/arcgis-portal-browser-filter/index.js +4 -0
  36. package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +121 -0
  37. package/dist/components/arcgis-portal-browser-filter-date/customElement.js +117 -0
  38. package/dist/components/arcgis-portal-browser-filter-date/index.d.ts +1 -0
  39. package/dist/components/arcgis-portal-browser-filter-date/index.js +5 -0
  40. package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +64 -8
  41. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +26 -25
  42. package/dist/components/arcgis-portal-browser-filters/customElement.d.ts +7 -0
  43. package/dist/components/arcgis-portal-browser-filters/customElement.js +29 -0
  44. package/dist/components/arcgis-portal-browser-filters/index.d.ts +1 -0
  45. package/dist/components/arcgis-portal-browser-filters/index.js +2 -0
  46. package/dist/docs/api.json +1 -1
  47. package/dist/docs/docs.json +1 -1
  48. package/dist/docs/vscode.html-custom-data.json +1 -1
  49. package/dist/docs/web-types.json +1 -1
  50. package/dist/index.d.ts +24 -0
  51. package/dist/loader.js +6 -3
  52. package/dist/types/lumina.d.ts +18 -1
  53. package/dist/types/preact.d.ts +21 -1
  54. package/dist/types/react.d.ts +24 -1
  55. package/dist/types/stencil.d.ts +18 -1
  56. package/package.json +4 -4
  57. package/dist/cdn/ANPXRYLV.js +0 -5
  58. package/dist/cdn/GAHILDQF.js +0 -45
  59. package/dist/cdn/R2ULEQSR.js +0 -2
  60. package/dist/cdn/RFZCHE7J.js +0 -2
  61. package/dist/cdn/XDMQ36GP.js +0 -2
  62. package/dist/cdn/XPYGLVPT.js +0 -2
  63. package/dist/cdn/YL7PGYWC.js +0 -5
@@ -2,7 +2,10 @@
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
3
  import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
4
4
  import type { ArcgisPortalBrowser } from "../components/arcgis-portal-browser/customElement.js";
5
+ import type { ArcgisPortalBrowserFilter } from "../components/arcgis-portal-browser-filter/customElement.js";
6
+ import type { ArcgisPortalBrowserFilterDate } from "../components/arcgis-portal-browser-filter-date/customElement.js";
5
7
  import type { ArcgisPortalBrowserFilterStatus } from "../components/arcgis-portal-browser-filter-status/customElement.js";
8
+ import type { ArcgisPortalBrowserFilters } from "../components/arcgis-portal-browser-filters/customElement.js";
6
9
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
7
10
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
8
11
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
@@ -34,11 +37,22 @@ interface PreactArcgisPortalBrowser extends Partial<Pick<ArcgisPortalBrowser, "a
34
37
  onarcgisAriaUpdate?: EventHandler<ArcgisPortalBrowser["arcgisAriaUpdate"]>;
35
38
  }
36
39
 
37
- interface PreactArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds" | "t9n">>, HTMLAttributes<ArcgisPortalBrowserFilterStatus> {
40
+ interface PreactArcgisPortalBrowserFilter extends Partial<Pick<ArcgisPortalBrowserFilter, "active" | "clearDisabled" | "clearLabel" | "expanded" | "filterId" | "heading" | "noPadding" | "primary">>, HTMLAttributes<ArcgisPortalBrowserFilter> {
41
+ onarcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilter["arcgisBrowserFilterRemove"]>;
42
+ }
43
+
44
+ interface PreactArcgisPortalBrowserFilterDate extends Partial<Pick<ArcgisPortalBrowserFilterDate, "end" | "expanded" | "includeNever" | "property" | "range" | "serverProperty" | "start" | "store">>, HTMLAttributes<ArcgisPortalBrowserFilterDate> {
45
+ onarcgisBrowserFilter?: EventHandler<ArcgisPortalBrowserFilterDate["arcgisBrowserFilter"]>;
46
+ }
47
+
48
+ interface PreactArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds">>, HTMLAttributes<ArcgisPortalBrowserFilterStatus> {
38
49
  onarcgisBrowserFilterClear?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterClear"]>;
39
50
  onarcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterRemove"]>;
40
51
  }
41
52
 
53
+ interface PreactArcgisPortalBrowserFilters extends Partial<Pick<ArcgisPortalBrowserFilters, "store">>, HTMLAttributes<ArcgisPortalBrowserFilters> {
54
+ }
55
+
42
56
  interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLAttributes<ArcgisPortalClassificationBanner> {
43
57
  }
44
58
 
@@ -115,7 +129,10 @@ declare module 'preact' {
115
129
  "arcgis-portal-ai-assistant": PreactArcgisPortalAiAssistant;
116
130
  "arcgis-portal-ai-assistant-interrupt": PreactArcgisPortalAiAssistantInterrupt;
117
131
  "arcgis-portal-browser": PreactArcgisPortalBrowser;
132
+ "arcgis-portal-browser-filter": PreactArcgisPortalBrowserFilter;
133
+ "arcgis-portal-browser-filter-date": PreactArcgisPortalBrowserFilterDate;
118
134
  "arcgis-portal-browser-filter-status": PreactArcgisPortalBrowserFilterStatus;
135
+ "arcgis-portal-browser-filters": PreactArcgisPortalBrowserFilters;
119
136
  "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
120
137
  "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
121
138
  "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
@@ -138,7 +155,10 @@ declare module 'preact' {
138
155
  "arcgis-portal-ai-assistant": PreactArcgisPortalAiAssistant;
139
156
  "arcgis-portal-ai-assistant-interrupt": PreactArcgisPortalAiAssistantInterrupt;
140
157
  "arcgis-portal-browser": PreactArcgisPortalBrowser;
158
+ "arcgis-portal-browser-filter": PreactArcgisPortalBrowserFilter;
159
+ "arcgis-portal-browser-filter-date": PreactArcgisPortalBrowserFilterDate;
141
160
  "arcgis-portal-browser-filter-status": PreactArcgisPortalBrowserFilterStatus;
161
+ "arcgis-portal-browser-filters": PreactArcgisPortalBrowserFilters;
142
162
  "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
143
163
  "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
144
164
  "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
@@ -2,7 +2,10 @@
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
3
  import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
4
4
  import type { ArcgisPortalBrowser } from "../components/arcgis-portal-browser/customElement.js";
5
+ import type { ArcgisPortalBrowserFilter } from "../components/arcgis-portal-browser-filter/customElement.js";
6
+ import type { ArcgisPortalBrowserFilterDate } from "../components/arcgis-portal-browser-filter-date/customElement.js";
5
7
  import type { ArcgisPortalBrowserFilterStatus } from "../components/arcgis-portal-browser-filter-status/customElement.js";
8
+ import type { ArcgisPortalBrowserFilters } from "../components/arcgis-portal-browser-filters/customElement.js";
6
9
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
7
10
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
8
11
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
@@ -34,11 +37,22 @@ interface ReactArcgisPortalBrowser extends Partial<Pick<ArcgisPortalBrowser, "al
34
37
  onarcgisAriaUpdate?: EventHandler<ArcgisPortalBrowser["arcgisAriaUpdate"]>;
35
38
  }
36
39
 
37
- interface ReactArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds" | "t9n">>, HTMLProps<ArcgisPortalBrowserFilterStatus> {
40
+ interface ReactArcgisPortalBrowserFilter extends Partial<Pick<ArcgisPortalBrowserFilter, "active" | "clearDisabled" | "clearLabel" | "expanded" | "filterId" | "heading" | "noPadding" | "primary">>, HTMLProps<ArcgisPortalBrowserFilter> {
41
+ onarcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilter["arcgisBrowserFilterRemove"]>;
42
+ }
43
+
44
+ interface ReactArcgisPortalBrowserFilterDate extends Partial<Pick<ArcgisPortalBrowserFilterDate, "end" | "expanded" | "includeNever" | "property" | "range" | "serverProperty" | "start" | "store">>, HTMLProps<ArcgisPortalBrowserFilterDate> {
45
+ onarcgisBrowserFilter?: EventHandler<ArcgisPortalBrowserFilterDate["arcgisBrowserFilter"]>;
46
+ }
47
+
48
+ interface ReactArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds">>, HTMLProps<ArcgisPortalBrowserFilterStatus> {
38
49
  onarcgisBrowserFilterClear?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterClear"]>;
39
50
  onarcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterRemove"]>;
40
51
  }
41
52
 
53
+ interface ReactArcgisPortalBrowserFilters extends Partial<Pick<ArcgisPortalBrowserFilters, "store">>, HTMLProps<ArcgisPortalBrowserFilters> {
54
+ }
55
+
42
56
  interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLProps<ArcgisPortalClassificationBanner> {
43
57
  }
44
58
 
@@ -115,7 +129,10 @@ declare module "react" {
115
129
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
116
130
  "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
117
131
  "arcgis-portal-browser": ReactArcgisPortalBrowser;
132
+ "arcgis-portal-browser-filter": ReactArcgisPortalBrowserFilter;
133
+ "arcgis-portal-browser-filter-date": ReactArcgisPortalBrowserFilterDate;
118
134
  "arcgis-portal-browser-filter-status": ReactArcgisPortalBrowserFilterStatus;
135
+ "arcgis-portal-browser-filters": ReactArcgisPortalBrowserFilters;
119
136
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
120
137
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
121
138
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
@@ -140,7 +157,10 @@ declare module "react/jsx-runtime" {
140
157
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
141
158
  "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
142
159
  "arcgis-portal-browser": ReactArcgisPortalBrowser;
160
+ "arcgis-portal-browser-filter": ReactArcgisPortalBrowserFilter;
161
+ "arcgis-portal-browser-filter-date": ReactArcgisPortalBrowserFilterDate;
143
162
  "arcgis-portal-browser-filter-status": ReactArcgisPortalBrowserFilterStatus;
163
+ "arcgis-portal-browser-filters": ReactArcgisPortalBrowserFilters;
144
164
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
145
165
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
146
166
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
@@ -165,7 +185,10 @@ declare module "react/jsx-dev-runtime" {
165
185
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
166
186
  "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
167
187
  "arcgis-portal-browser": ReactArcgisPortalBrowser;
188
+ "arcgis-portal-browser-filter": ReactArcgisPortalBrowserFilter;
189
+ "arcgis-portal-browser-filter-date": ReactArcgisPortalBrowserFilterDate;
168
190
  "arcgis-portal-browser-filter-status": ReactArcgisPortalBrowserFilterStatus;
191
+ "arcgis-portal-browser-filters": ReactArcgisPortalBrowserFilters;
169
192
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
170
193
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
171
194
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
@@ -2,7 +2,10 @@
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
3
  import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
4
4
  import type { ArcgisPortalBrowser } from "../components/arcgis-portal-browser/customElement.js";
5
+ import type { ArcgisPortalBrowserFilter } from "../components/arcgis-portal-browser-filter/customElement.js";
6
+ import type { ArcgisPortalBrowserFilterDate } from "../components/arcgis-portal-browser-filter-date/customElement.js";
5
7
  import type { ArcgisPortalBrowserFilterStatus } from "../components/arcgis-portal-browser-filter-status/customElement.js";
8
+ import type { ArcgisPortalBrowserFilters } from "../components/arcgis-portal-browser-filters/customElement.js";
6
9
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
7
10
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
8
11
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
@@ -34,11 +37,22 @@ interface StencilArcgisPortalBrowser extends Partial<Pick<ArcgisPortalBrowser, "
34
37
  onArcgisAriaUpdate?: EventHandler<ArcgisPortalBrowser["arcgisAriaUpdate"]>;
35
38
  }
36
39
 
37
- interface StencilArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds" | "t9n">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilterStatus> {
40
+ interface StencilArcgisPortalBrowserFilter extends Partial<Pick<ArcgisPortalBrowserFilter, "active" | "clearDisabled" | "clearLabel" | "expanded" | "filterId" | "heading" | "noPadding" | "primary">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilter> {
41
+ onArcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilter["arcgisBrowserFilterRemove"]>;
42
+ }
43
+
44
+ interface StencilArcgisPortalBrowserFilterDate extends Partial<Pick<ArcgisPortalBrowserFilterDate, "end" | "expanded" | "includeNever" | "property" | "range" | "serverProperty" | "start" | "store">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilterDate> {
45
+ onArcgisBrowserFilter?: EventHandler<ArcgisPortalBrowserFilterDate["arcgisBrowserFilter"]>;
46
+ }
47
+
48
+ interface StencilArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilterStatus> {
38
49
  onArcgisBrowserFilterClear?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterClear"]>;
39
50
  onArcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterRemove"]>;
40
51
  }
41
52
 
53
+ interface StencilArcgisPortalBrowserFilters extends Partial<Pick<ArcgisPortalBrowserFilters, "store">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilters> {
54
+ }
55
+
42
56
  interface StencilArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, StencilJsx.HTMLAttributes<ArcgisPortalClassificationBanner> {
43
57
  }
44
58
 
@@ -113,7 +127,10 @@ interface ExposedElements {
113
127
  "arcgis-portal-ai-assistant": StencilArcgisPortalAiAssistant;
114
128
  "arcgis-portal-ai-assistant-interrupt": StencilArcgisPortalAiAssistantInterrupt;
115
129
  "arcgis-portal-browser": StencilArcgisPortalBrowser;
130
+ "arcgis-portal-browser-filter": StencilArcgisPortalBrowserFilter;
131
+ "arcgis-portal-browser-filter-date": StencilArcgisPortalBrowserFilterDate;
116
132
  "arcgis-portal-browser-filter-status": StencilArcgisPortalBrowserFilterStatus;
133
+ "arcgis-portal-browser-filters": StencilArcgisPortalBrowserFilters;
117
134
  "arcgis-portal-classification-banner": StencilArcgisPortalClassificationBanner;
118
135
  "arcgis-portal-classification-config": StencilArcgisPortalClassificationConfig;
119
136
  "arcgis-portal-classification-favorite": StencilArcgisPortalClassificationFavorite;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/portal-components",
3
- "version": "5.2.0-next.24",
3
+ "version": "5.2.0-next.26",
4
4
  "description": "ArcGIS Portal Components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -47,9 +47,9 @@
47
47
  "marked": "~18.0.5",
48
48
  "tslib": "^2.8.1",
49
49
  "zod": "^4.3.6",
50
- "@arcgis/ai-components": "5.2.0-next.24",
51
- "@arcgis/toolkit": "5.2.0-next.24",
52
- "@arcgis/lumina": "5.2.0-next.24"
50
+ "@arcgis/ai-components": "5.2.0-next.26",
51
+ "@arcgis/lumina": "5.2.0-next.26",
52
+ "@arcgis/toolkit": "5.2.0-next.26"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@arcgis/core": "^5.2.0-next",
@@ -1,5 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./YIMNOUTF.js";var e=`## Additional System Context
3
-
4
- In addition to the user's inquiry prompt that precedes this system context, the current map has entities and relationships on it already, in the format of an array of objects containing identifiers and typeNames or type names that contain all entities or relationships of that type, in case this is needed for query generation (for example 'Add all records that are connected to people on this map to the map'). If the user is asking for a query that acts on 'the current map', 'my map', or similar then the cypher query should be filtered by the ids. For example, 'Match (n:Person)-[\\r]->(m) WHERE id(n) IN [\\'identifier1','identifier2'] return r, m. Curly braces (the '{' and '}' characters) are often part of identifier strings and should not be stripped out - the process of filtering by ids should not be altering the id strings. The entities and relationships that are on the current map are as follows:
5
- `;export{e as default};
@@ -1,45 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./YIMNOUTF.js";var e=`## ArcgisKnowledge Agent - Action Summary
3
-
4
- You are a helpful Knowledge Graph assistant agent that has received a user inquiry and performed some tool call actions to answer their question or perform the desired operation.
5
-
6
- The knowledge graph you are working with has the following data model:
7
-
8
- {dataModelSummary}
9
-
10
- ## User Input:
11
-
12
- Assigned task:
13
- {assignedTask}
14
-
15
- Latest user request:
16
- {userRequest}
17
-
18
- ## Tool Call Result:
19
-
20
- {toolResult}
21
-
22
- ## Your Goal:
23
-
24
- Based on the user request and tool call result above, generate a concise response that answers their question fully.
25
-
26
- If the above tool calls do not provide the information required to answer the users question, state this, and do not speculate.
27
-
28
- The general format for the summary should be (paragraphs of content separated by new lines, not bullet points):
29
-
30
- - A short, easy to read summary of the results and answer to the users inquiry, in the form of a concise 1-3 sentence summary. This can include the tool called and a brief summary of its settings. For multiple or complex settings (e.g. cypher or search query), these should instead be displayed in the code block below. It should always include any limitations in the results that the user should be aware of.
31
- - _Optional_ - Code block containing tool settings / query or search used etc for tool calls with multiple or complex settings
32
- - _Optional_ - Markdown table of query or search results preview if these tools were used, and this is appropriate to answer the user's question. Ensure long property values are truncated to short lengths (20 chars) in the table if not directly relevant to the user's query. Do not re-order data in the table. If a query or search of graph data was done, this should be displayed.
33
- - _Important_ If the summary or markdown table was generated based on data where only a limited preview of the full results of e.g. a search/query was available, indicate this at the end of the summary in a separate paragraph in italics, along the lines of 'NOTE: This summary was generated from a limited preview of the search / query results, and may not be accurate.'
34
-
35
- ### STRICT OUTPUT RULES
36
-
37
- - Do NOT ask follow-up questions.
38
- - Do NOT offer additional actions or suggestions.
39
- - Do NOT explain what you can do next.
40
- - End the response immediately after the summary.
41
- - Do NOT include introductory phrases (e.g., "Found", "Here are", "The results show").
42
- - Do NOT restate the assigned task or user\u2019s question.
43
- - Use Markdown formatting for the response, formatting in a way that makes the summary easy to read.
44
- - When presenting tabular data, output a valid Markdown table.
45
- `;export{e as default};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./WSNLUGEP.js";import a from"./HMBSJR37.js";import"./6W2IHKCA.js";import{a as R}from"./2CP32LP3.js";import{c as E}from"./EKO6SVAF.js";import{I as M,J as g,K as S,L as v,Q as k,h as A,j as d,v as u}from"./WJ2NMHDE.js";import"./YIMNOUTF.js";export default $arcgis.t(([{a:P,d:L},{a:x,d:D}])=>{var O=(i,e=100)=>{let s;return(...n)=>{let r=()=>{clearTimeout(s),i(...n)};clearTimeout(s),s=setTimeout(r,e)}};var y=["@","#","$"],F=400;function q(i,e){let s=null;for(let n of e){let r=n.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),a=new RegExp(`${r}"([^"\\n]*)"?$`,"u"),t=i.match(a);if(t){let c=t[0],o=i.length-c.length,h=t[1]??"";(!s||o>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:o})}let l=new RegExp(`${r}[\\p{L}\\p{N}_-]+$`,"u"),m=i.match(l);if(m){let c=m[0],o=i.length-c.length,h=c.slice(n.length);(!s||o>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:o})}}return s}var U=i=>y.includes(i)?i:"@",N=E(i=>{let e=[],s=async a=>await x({requester:async()=>await L(i.portal,a,{num:3}),key:"items",id:a}),n=async a=>await x({requester:async()=>await P(i.portal,{query:`title:${a}`,num:3}),key:"groups",id:a}),r=O(async(a,t)=>{i.isFetchingEntities=!0;let l=a.toLowerCase();switch(U(t)){case"@":let m=10;i.filteredItemsInfo={type:"user",items:e.filter(h=>h.username?.toLowerCase().includes(l)||h.fullName?.toLowerCase().includes(l)).slice(0,m)};break;case"#":let{result:c}=await s(l);i.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:o}=await n(l);i.filteredItemsInfo={type:"group",items:o};break}(i.filteredItemsInfo?.items?.length??0)===0&&await i.closePopover(),i.isFetchingEntities=!1},F);return{fetchUsers:async()=>{try{let{users:a}=await D(i.portal);e=a??[]}catch(a){e=[],console.error("error fetching org users:",a)}},filterItems:r,getItemText:(a,t)=>{let l="";switch(U(t)){case"@":l=a.username;break;case"#":l=a.title??"";break;case"$":l=a.title??"";break}return l.trim()}}}),$=({id:i,label:e,selected:s,description:n,contentStart:r,onSelect:a})=>R(i,d`<calcite-list-item class=${v({selected:s})} .label=${e} .description=${n} .selected=${s} @pointerdown=${async t=>{t.preventDefault(),t.stopPropagation(),await a()}} ${g(t=>{s&&t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${r}</calcite-list-item>`),K=A`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends S{constructor(){super(...arguments),this.calciteTextAreaRef=M(),this.mentionableEntityController=N(this),this.handleInput=e=>{let{bubbleNewValueChange:s,checkForMention:n}=this,r=e.target.value;this._value=r,s(this._value);let a=this.nativeTextAreaRef?.selectionStart??0;n(r,a)},this.handleKeyDown=e=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(e),this.arcgisMentionableTextAreaKeyDown.emit(e);return}switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":e.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":e.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":e.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=e=>{this.arcgisUserMentionableTextAreaChange.emit(e),this.arcgisMentionableTextAreaChange.emit(e)},this.checkForMention=(e,s)=>{let n=e.substring(0,s),r=q(n,this.starters??y);if(r){let{starter:a}=r;this.currentStarter=a,this.filterMentionItems(r),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=e=>{let{mentionText:s,query:n,starter:r,startIndex:a}=e;this.currentMentionQuery=s,this.mentionStartPosition=a;let t=n.toLowerCase();this.mentionableEntityController.filterItems(t,r),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=y,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:e,selectedItemIndex:s,portal:n}=this;if(!e)return null;let{items:r,type:a}=e;switch(a){case"user":return r.map((t,l)=>$({id:t.id,label:`@${t.username}`,description:t.fullName,selected:l===s,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(t)}));case"item":return r.map((t,l)=>$({id:t.id??`item-${l}`,label:`#${t.title}`,description:t.id??void 0,selected:l===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return r.map((t,l)=>$({id:t.id??`group-${l}`,label:`${t.title}`,description:t.id??void 0,selected:l===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=K}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(e){let{currentStarter:s,_value:n,mentionStartPosition:r,currentMentionQuery:a,handleClosePopover:t,calciteTextAreaRef:l,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!e||!s)return;let o=this.mentionableEntityController.getItemText(e,s).replaceAll('"',"").trim(),h=/\s/u.test(o)?`${s}"${o}"`:`${s}${o}`,f=(n??"").substring(0,r),p=(n??"").substring(r+a.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=r+h.length+1;t(),await this.updateComplete,l.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(e){e.has("value")&&(this._value=this.value??""),e.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let e=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");e&&(this.nativeTextAreaRef=e)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:e,scale:s,_value:n,maxLength:r,rows:a,placeholder:t,readOnly:l,popoverOpen:m,closePopover:c,handleInput:o,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:T}=this,C=this.calciteTextAreaRef.value,_=I?.items??[];return d`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${r} .rows=${a} .scale=${s} .readOnly=${l} .disabled=${f} @blur=${c} @calciteTextAreaInput=${o} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${C&&d`<calcite-popover .open=${m} .placement=${e} class="mention-popover" .label=${T} .referenceElement=${C} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${_.length>0&&d`<calcite-list .label=${T}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};k("arcgis-portal-mentionable-text-area",w);return w},a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as b}from"./2CP32LP3.js";import{d as m}from"./U3FVMN32.js";import{a as f}from"./NWIIOJEG.js";import{K as p,Q as u,h,j as i,v as l}from"./WJ2NMHDE.js";var g=h`:host{display:flex;align-items:center}.status-list{display:flex;align-items:center;max-width:100%}.status-chip{max-width:100%;--calcite-color-foreground-2: var(--calcite-color-foreground-1)}.chip-group{max-width:100%;min-width:0}.status-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popover-content{max-width:28rem;padding:.75rem}.clear-button{margin-inline-start:.25rem}`,r=class extends p{constructor(){super(...arguments),this.inBounds=[],this.outOfBounds=[],this.filters={},this.hiddenFilterIds=[],this.arcgisBrowserFilterClear=l(),this.arcgisBrowserFilterRemove=l()}static{this.properties={inBounds:16,outOfBounds:16,filters:0,hiddenFilterIds:0,t9n:0,componentWidth:9,browserWidth:9}}static{this.styles=g}connectedCallback(){super.connectedCallback(),this.processValidFilters()}willUpdate(t){(t.has("filters")||t.has("hiddenFilterIds")||t.has("componentWidth")||t.has("browserWidth"))&&this.processValidFilters()}isFilterValid(t){return this.hiddenFilterIds.includes(t.id)?!1:t.id==="collaborations"&&"additionalParams"in t?!!(t.additionalParams&&t.label):!!(t.value&&t.label)}processValidFilters(){let t=Object.values(this.filters).filter(this.isFilterValid.bind(this)),e=this.componentWidth??0;if((this.browserWidth??window.innerWidth)<f.sm){this.inBounds=t,this.outOfBounds=[];return}let s=Math.max(e-460,0),o=0,n=[],c=[];t.forEach(a=>{let d=m({text:a.label??""});!e||o+d<=s?(n.push(a),o+=d):c.push(a)}),this.inBounds=n,this.outOfBounds=c}renderChip(t){return b(t.id,i`<calcite-chip class="status-chip" scale=s .label=${t.label} .value=${t.id} closable appearance=outline @calciteChipClose=${()=>{this.arcgisBrowserFilterRemove.emit(t.id)}}><span class="status-chip__label">${t.label}</span></calcite-chip>`)}render(){let t=this.outOfBounds.length>0,e=this.inBounds.length+this.outOfBounds.length;return e?i`<div class="status-list"><calcite-chip-group class="chip-group" .label=${this.t9n.filters} scale=s>${this.inBounds.map(s=>this.renderChip(s))}${t&&i`<calcite-button id=popover-button round kind=neutral appearance=outline scale=s>+ ${this.outOfBounds.length}</calcite-button>`||""}</calcite-chip-group>${t&&i`<calcite-popover .label=${this.t9n.additional} reference-element=popover-button placement=bottom-end><div class="popover-content"><calcite-chip-group .label=${this.t9n.additional} scale=s>${this.outOfBounds.map(s=>this.renderChip(s))}</calcite-chip-group></div></calcite-popover>`||""}${e>1&&i`<calcite-button class="clear-button" scale=s appearance=transparent kind=brand @click=${()=>this.arcgisBrowserFilterClear.emit(null)}>${this.t9n.clearAllFilters}</calcite-button>`||""}</div>`:null}};u("arcgis-portal-browser-filter-status",r);export{r as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{c as F}from"./I234NUZ5.js";import"./RFZCHE7J.js";import"./2CP32LP3.js";import{c as w}from"./U3FVMN32.js";import"./NWIIOJEG.js";import"./DFTUMKSN.js";import a from"./LCZTOHWB.js";import{a as $}from"./5VHBNEN3.js";import"./EKO6SVAF.js";import{I as x,J as b,K as _,L as o,M as p,Q as y,h as f,j as r,v as u}from"./WJ2NMHDE.js";import"./YIMNOUTF.js";export default $arcgis.t(([{watch:n},h,{b:k}])=>{var R=f`:host{position:relative;display:flex;height:100%;flex-direction:column;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-color-background);--arcgis-browser-max-width: 100%;--arcgis-browser-pane-width: 18.75rem;--arcgis-browser-pane-z-index: 11}:host([height="auto"]){height:auto;min-height:100%;flex:1 1 100%}.wrapper{display:flex;height:100%;flex-direction:column;overflow:hidden}.wrapper--fixed{overflow:hidden}.wrapper--auto{flex:1 1 100%}.wrapper--full{transform:translate(0)}.panel{display:flex;height:100%;flex-direction:column;overflow:hidden}.panel--fixed{transform:translateZ(0)}.top-bar{position:sticky;top:0;right:0;left:0;z-index:20;flex-shrink:0;flex-grow:0;border-bottom:1px solid var(--calcite-color-border-3)}.scrolling{position:relative;display:flex;min-height:0px;width:100%;flex:1 1 0%;flex-direction:column}.scrolling--panel{overflow-y:scroll}@supports (scrollbar-gutter: stable){.scrolling--panel{scrollbar-gutter:stable;overflow-y:auto}}.scrolling--full{overflow:hidden}.preview-position{position:absolute;inset:0;margin-inline:auto;width:100%;max-width:var(--arcgis-browser-max-width)}.preview-position--with-top-bar{top:3rem}.preview-desktop{width:100%}.two-up{margin-left:auto;margin-right:auto;display:flex;width:100%;flex:1 1 auto;flex-direction:row;max-width:var(--arcgis-browser-max-width)}.two-up.small{margin-top:-1px}.two-up--fullscreen{height:100%;overflow:hidden}.content__start{margin-inline-end:.25rem;padding-inline:1rem}.content{position:relative;display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;overflow:hidden}.content--full{overflow-y:scroll}@supports (scrollbar-gutter: stable){.content--full{scrollbar-gutter:stable;overflow-y:auto}}.content__top{position:relative;display:flex;height:1.5rem;flex-grow:0;align-items:center;justify-content:space-between;padding-top:1.25rem;padding-bottom:.75rem;font-size:1.125rem;color:var(--calcite-color-text-1);z-index:2}.content__top__end{margin-inline-start:auto;display:grid;gap:.5rem;grid-auto-flow:column}.actions,.filter-status{flex:1 1 0%}.content__view{margin-inline-end:.25rem;min-width:0px;flex:1 1 0%;padding-inline:var(--arcgis-browser-content-padding, 1rem)}.content__view--padded-bottom{padding-bottom:1rem}.content__view--no-filters{margin-inline-start:.25rem;padding-inline-start:var(--arcgis-browser-content-padding, 1rem)}.pane{pointer-events:none;visibility:hidden;display:flex;height:100%;background-color:var(--calcite-color-background);opacity:0;transition-duration:var(--calcite-internal-animation-timing-medium);transition-property:transform,visibility,opacity;border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.pane--open{pointer-events:auto;visibility:visible;opacity:1;transform:translate(0);box-shadow:4px 0 16px #0000000f}.preview{width:0px;flex-shrink:0;flex-grow:0;position:absolute;top:0;bottom:0;inset-inline-start:0;transition-duration:var(--calcite-internal-animation-timing-medium);transition-property:width;z-index:var(--arcgis-browser-pane-z-index)}.preview--fixed{position:fixed}.preview--active{overflow:auto;width:var(--arcgis-browser-pane-width);box-shadow:#0000000f 4px 0 16px}.filter-panel,.preview-panel{position:relative;height:100%;background-color:var(--calcite-color-background)}.filter-panel__content{padding:.75rem 1rem 0}.filter-status--mobile{width:100%}.filter-status--active{display:block}.sheet{pointer-events:none;position:fixed;inset:0;z-index:110}.sheet--top-bar{top:3rem;overflow:hidden}.sheet__background{position:absolute;inset:0;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;background-color:#0003}.sheet__background--hidden{display:none}.sheet--active .sheet__background{opacity:1}.sheet--active{pointer-events:auto;opacity:1}.sheet__contents{position:absolute;inset:0;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;top:3rem;transform:translate3d(0,24px,0)}.sheet__contents--full{top:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-inline-end:auto;width:var(--arcgis-browser-pane-width);border:1px solid var(--calcite-color-border-3);border-inline-start:none;transform:translate3d(-24px,0,0)}.sheet--active .sheet__contents{opacity:1;transform:translateZ(0)}.hide{display:none}.aria-hidden{height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;position:absolute;top:0;bottom:0;width:0px;inset-inline-end:0}.content__view--flex{display:flex;flex-direction:column}.cover{display:flex;flex:1 1 0%;align-items:flex-start;justify-content:center;overflow:auto;padding-bottom:1rem;padding-top:.25rem}.no-results{height:100%;width:100%;flex:1 1 0%;text-align:center;font-size:1.125rem;color:var(--calcite-color-text-2)}::slotted([slot="no-results"]){width:100%}::slotted([slot="no-content"]){width:100%}.results-wrapper{flex:1 1 0%}.results-wrapper--spaced{padding-top:1.5rem}.loader{margin-top:min(8rem,30vh);--calcite-loader-padding: 0}.filters{box-sizing:border-box;flex-grow:0;padding-inline:1.5rem 0;width:var(--arcgis-browser-pane-width)}.filters--sticky{position:sticky;top:0;height:100%}.filters__content{overflow-y:auto;height:100%;padding-top:1.5rem;box-sizing:border-box;scrollbar-gutter:stable}.filters--empty{display:none}.filters--active{opacity:1;transform:translateZ(0)}.filters__title{margin:0 0 1rem;padding:0 0 1rem;font-size:1.125rem;font-weight:500;color:var(--calcite-color-text-1);padding-inline-start:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.range{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;color:var(--calcite-color-text-1)}.container{display:flex;height:100%;width:100%;flex-direction:column;background-color:var(--calcite-color-background)}.container__header{display:flex;flex:0 1 auto;flex-direction:row;background-color:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3)}.container__header__text{margin:0;flex:1 1 0%;padding:.875rem .75rem;font-size:1rem;font-weight:500;color:var(--calcite-color-text-2)}.container__content{flex:1 1 0%;overflow:auto}.container__footer{box-sizing:border-box;width:100%;flex:0 1 auto;background-color:var(--calcite-color-foreground-1);padding:.5rem}.small .filters{padding:0}.small .filters__content{padding-left:1rem;padding-right:1rem}.small .content__view{padding-inline:.5rem;margin-inline:0}.small .content__view--panel{padding-inline:0}.small .content__start{margin-inline:0;padding-inline:.5rem}@media screen and (max-width:640px){:host{--arcgis-browser-pane-width: 100%}}.scrim__find{margin-top:3.5rem;opacity:.6;transition-property:opacity;transition-duration:.15s;--calcite-scrim-background: rgba(0, 0, 0, .6)}`;function T(d){let t=Math.max(d?.total??0,0),e=d?.results?.length??0;if(!t||!e)return{start:0,end:0,total:t};let i=Math.max(d?.start??1,1),s=Math.min(i+e-1,t);return{start:i,end:s,total:t}}var B=["folder","group","contentType"],C=d=>d.type==="item-browser",E=(d={})=>k({filters:{},hiddenFilters:[],...d});function W(d,t){let e=n(()=>d.preview,t);return()=>e.remove()}var z=49,g=class extends _{constructor(){super(...arguments),this._messages=$({blocking:!0}),this._previewContainer=x(),this.toggleScrim=t=>{this.scrimActive=t.detail},this.checkFlowItem=()=>{this.flowItem=w(this.el,"calcite-flow-item")},this.handleResize=()=>{requestAnimationFrame(this.updatePreviewPosition)},this.updatePreviewPosition=()=>{if(this.formFactor==="small"||this.height!=="auto"||!this._previewContainer)return;this.checkFlowItem();let t=this._previewContainer.value?.getBoundingClientRect();if(!t)return;let{x:e,y:i,height:s,right:a,width:l}=t,c=s+i,m=window.innerWidth-document.body.offsetWidth,v=window.innerWidth<l||window.innerWidth<window.outerWidth&&window.innerWidth<=l+m;this.previewBoundingBox={top:Math.max(i,0),left:e,right:v?0:window.outerWidth-a-m,bottom:c>window.innerHeight?0:window.innerHeight-c}},this.pageRangeText="",this.noResults=!1,this.initialHide=!0,this.scrimActive=!1,this.panel=!1,this.preview=!1,this.loading=!1,this.hideContentTop=!1,this.alwaysShowSelection=!1,this.alwaysShowContent=!1,this.response={nextStart:-1,num:0,results:[],start:1,total:0},this.store=E(),this.formFactor="large",this.searchTerm="",this.height="full",this.arcgisAriaUpdate=u()}static{this.properties={pageRangeText:16,noResults:16,previewBoundingBox:16,initialHide:16,scrimActive:16,flowItem:16,panel:5,preview:5,loading:5,hideContentTop:5,hideTopBar:5,selected:0,alwaysShowSelection:5,alwaysShowContent:5,response:0,store:0,formFactor:1,searchTerm:1,height:3,hideFilters:5,showPreSearch:5,rangeFormatter:0,alwaysShowPagination:5}}static{this.styles=R}async scrollToTop(){this.renderRoot.querySelector(".top-bar")?.scrollIntoView({behavior:"smooth",block:"nearest"})}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.handleResize),window.addEventListener("resize",this.handleResize),this.el.addEventListener("arcgisItemBrowserScrimToggle",this.toggleScrim),this.checkFlowItem(),this.attachStoreWatchers()}willUpdate(t){t.has("store")&&this.attachStoreWatchers(),t.has("response")&&this.updatePage(this.response)}firstUpdated(){requestAnimationFrame(this.updatePreviewPosition)}disconnectedCallback(){this.removePreviewWatcher?.(),this.removeStoreWatcher?.(),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleResize),this.el.removeEventListener("arcgisItemBrowserScrimToggle",this.toggleScrim),super.disconnectedCallback()}attachStoreWatchers(){if(this.removePreviewWatcher?.(),this.removeStoreWatcher?.(),!this.store)return;this.removePreviewWatcher=W(this.store,this.updatePreviewPosition);let t=[n(()=>this.store.type,()=>this.requestUpdate()),n(()=>this.store.width,()=>this.requestUpdate()),n(()=>this.store.height,()=>this.requestUpdate()),n(()=>this.store.filtersEmpty,()=>this.requestUpdate()),n(()=>this.store.topbarEmpty,()=>this.requestUpdate()),n(()=>this.store.sortEmpty,()=>this.requestUpdate()),n(()=>this.store.filtersExpanded,()=>this.requestUpdate()),n(()=>this.store.panel,()=>this.requestUpdate()),n(()=>this.store.preview,()=>this.requestUpdate()),n(()=>this.store.searchTerm,()=>this.requestUpdate()),n(()=>this.store.hiddenFilters,()=>this.requestUpdate()),n(()=>this.store.filters,()=>this.requestUpdate()),n(()=>this.store.recycleBin,()=>this.requestUpdate())];this.removeStoreWatcher=()=>{t.forEach(e=>e.remove())}}async updatePage(t){let[e,i]=await this.updatePageRange(t);this.pageRangeText=e,this.arcgisAriaUpdate.emit(i),this.noResults=C(this.store)&&this.store.recycleBin?t.results.length===0:(t?.total??0)===0,this.initialHide=!1}async updatePageRange(t){let{start:e,end:i,total:s}=T(t),a=h.formatNumber(e,{maximumFractionDigits:0}),l=h.formatNumber(i,{maximumFractionDigits:0}),c=`${h.formatNumber(s,{maximumFractionDigits:0})}${s>=1e4?"+":""}`,m=h.formatNumber(t.results?.length??0,{maximumFractionDigits:0}),v=h.formatNumber(Math.max(Math.ceil(e/Math.max(t.num||1,1)),1),{maximumFractionDigits:0});if(this.rangeFormatter)return await this.rangeFormatter({start:a,end:l,total:c,results:{items:m,page:v}});let S=(this._messages.range?.summary??"${start}-${end} of ${total}").replace("${start}",a).replace("${end}",l).replace("${total}",c),P=(this._messages.range?.announcement??"Showing ${start} to ${end} of ${total} results").replace("${start}",a).replace("${end}",l).replace("${total}",c);return[S,P]}hasActiveFilter(t){return Object.values(t.filters).filter(({id:e})=>!F(B,e)).some(e=>!!e.value||e.id==="collaborations")}removeFilter(t){let e=this.store.filters[t];if(!e)return;let i={...e,value:void 0};"additionalParams"in e&&(i.additionalParams=void 0);let s={...this.store.filters,[t]:i};this.store.filters=s}clearFilters(){let t=Object.entries(this.store.filters).reduce((e,[i,s])=>this.store.hiddenFilters?.includes(i)||s.id==="folder"||s.id==="group"||s.id==="contentType"?(e[i]=s,e):(e[i]={...s,value:void 0,..."additionalParams"in s?{additionalParams:void 0}:{}},e),{});this.store.filters=t}renderNoResults(){let t=this.noResults&&!this.loading&&!this.showPreSearch,e=this.hasActiveFilter(this.store)||!!this.searchTerm;return t?r`<div class="cover"><div class="no-results">${e?r`<slot name=no-results></slot>`:r`<slot name=no-content></slot>`}</div></div>`:null}renderPopoverContents(t,e,i){let s=this.flowItem?this.flowItem.offsetHeight:this.store.height,a=this.formFactor==="small"&&this.hasActiveFilter(this.store)&&!this.hideFilters;return r`<div style=${p({width:i?"100%":`${this.store.width||0}px`,height:i?"100%":`${s||0}px`})}><div class=${o({hide:!e,"preview-panel":!0})}><slot name=preview></slot></div><div class=${o({hide:!t,"filter-panel":!0})}><article class="container"><header class="container__header"><h2 class="container__header__text">${this._messages.browser?.refineContent}</h2><calcite-action .text=${this._messages.browser?.close} scale=m icon=x @click=${()=>{this.store.filtersExpanded=!1}}></calcite-action></header><div class="container__content"><div class="container__content__scroll"><slot name=filters-top></slot>${(this.store.panel||i)&&r`<div class="filter-container__content"><slot name=sort></slot></div>`||""}<slot name=filters></slot></div></div><div class=${o({"filter-status--mobile":!0,container__footer:!0,hide:!a})}><arcgis-portal-browser-filter-status class="filter-status" .filters=${this.store.filters} .t9n=${this._messages.filterStatus} .hiddenFilterIds=${this.store.hiddenFilters||[]} .componentWidth=${this.store.width||this.flowItem?.offsetWidth||window.innerWidth} .browserWidth=${window.innerWidth} @arcgisBrowserFilterClear=${()=>this.clearFilters()} @arcgisBrowserFilterRemove=${l=>this.removeFilter(l.detail)}></arcgis-portal-browser-filter-status></div></article></div></div>`}renderFlow(){let t=!!this.store.panel,e=!!this.store.filtersExpanded&&(!this.store.filtersEmpty||!this.store.sortEmpty&&t),i=!!this.store.preview,s=!this.store.panel&&document.documentElement.clientWidth>(this.store.width||0);return r`<div class=${o({panel:!0,"panel--fixed":s})}>${!this.hideTopBar&&r`<div class=${o({"top-bar":!0,"top-bar--small":this.formFactor==="small"})}><slot name=top-bar></slot></div>`||""}<div class="scrolling scrolling--panel"><div class=${o({"two-up":!0,[this.formFactor]:!0})}><div class="content"><div><slot name=primary-filter></slot></div><div class="content__start"><slot name=content-start></slot></div>${this.loading&&!this.alwaysShowContent&&r`<div class="content__view content__view--flex"><div class="cover"><calcite-loader class="loader" label></calcite-loader></div></div>`||""}${this.noResults&&!this.loading&&r`<div class="content__view content__view--flex"><div class="cover">${this.renderNoResults()}</div></div>`||""}<div class=${o({hide:this.loading||this.noResults,content__view:!0,"content__view--panel":!!this.store.panel,"content__view--flex":!this.loading&&!this.noResults})}>${!this.store.panel&&!this.hideContentTop&&r`<div class="content__top"><span class=${o({selection:!0,hide:!this.alwaysShowSelection})}><slot name=selection></slot></span>${!this.loading&&r`<span class="range">${this.pageRangeText}</span>`||""}<span class="actions"><slot name=actions></slot></span><div class="content__top__end"><slot name=view></slot>${!t&&r`<slot name=sort></slot>`||""}</div></div>`||""}<div class="flow-content"><slot name=content></slot></div><slot name=pagination></slot><slot name=content-end></slot></div></div></div><slot name=scroll-end></slot></div>${!this.store.panel||window.innerWidth<(this.store.width||0)*2?r`<div class=${o({sheet:!0,"sheet--active":e||i,"sheet--top-bar":s})}><div class=${o({sheet__background:!0,"sheet__background--hidden":s})}></div><div class=${o({sheet__contents:!0,"sheet__contents--full":s})}>${this.renderPopoverContents(e,i,!0)}</div></div>`:r`<calcite-popover overlay-positioning=fixed .open=${i||e} label=filters .referenceElement=${this.flowItem||this.el} offset-skidding=0 offset-distance=0 trigger-disabled pointer-disabled .placement=${this.store.panel?"trailing":"auto"} @calcitePopoverOpen=${a=>{(!this.store.panel||window.innerWidth<(this.store.width||0)*2)&&(a.currentTarget.style.transform="none")}} .focusTrapOptions=${{setReturnFocus:a=>{if(!(a instanceof HTMLElement))return a;let l=w(a,"arcgis-portal-item-card, arcgis-portal-group-card");return l?.restoreFocus?(l.restoreFocus(),!1):a}}}>${this.renderPopoverContents(e,i)}</calcite-popover>`}</div>`}render(){let t=this.height==="auto",e=this.height==="full",i=`${(this.store.height||window.innerHeight)-z}px`,s=t?{}:{maxHeight:i};return this.formFactor==="small"?this.renderFlow():r`<div class=${o({wrapper:!0,"wrapper--fixed":!!this.store.filtersExpanded,"wrapper--auto":t,"wrapper--full":e})}>${!this.hideTopBar&&r`<div class="top-bar"><slot name=top-bar></slot></div>`||""}<slot name=top-bar-end></slot><div class=${o({"preview-position":!0,"preview-position--with-top-bar":!this.store.topbarEmpty})} ${b(this._previewContainer)}><div class=${o({preview:!0,"preview--active":!!this.store.preview,"preview--fixed":t})} style=${p(t&&this.previewBoundingBox?{top:`${this.previewBoundingBox.top||0}px`,...document.dir==="rtl"?{right:`${this.previewBoundingBox.right||0}px`}:{left:`${this.previewBoundingBox.left||0}px`},bottom:`${this.previewBoundingBox.bottom||0}px`}:{})}><div class=${o({pane:!0,"pane--open":!!this.store.preview})}><div class="preview-desktop"><slot name=preview></slot></div></div></div></div><div class=${o({scrolling:!0,"scrolling--full":!t||this.panel})}>${this.scrimActive&&r`<calcite-scrim class="scrim__find"></calcite-scrim>`||""}<div class=${o({"two-up":!0,"two-up--fullscreen":e,[this.formFactor]:!0})}><div class=${o({filters:!0,"filters--sticky":!t,"filters--empty":this.store.filtersEmpty&&!this.store.preview,"filters--active":!!this.store.filtersExpanded})} style=${p(e?{}:s)}><div class="filters__content" style=${p(e?{}:s)}><slot name=filters></slot></div></div><div class=${o({content:!0,"content--full":e})}><div class="content__start"><slot name=content-start></slot></div><div class=${o({content__view:!0,"content__view--no-filters":this.store.filtersEmpty&&!this.store.preview,"content__view--flex":!0})}>${!this.hideContentTop&&r`<div class="content__top">${this.showPreSearch?null:r`<div class="content__top__summary"><span class=${o({selection:!0,hide:!this.alwaysShowSelection})}><slot name=selection></slot></span>${!this.loading&&r`<span class="range">${this.pageRangeText}<slot name=range-end></slot></span>`||""}</div>`}<span class="actions"><slot name=actions></slot></span><div class="content__top__end"><slot name=view></slot><slot name=sort></slot></div></div>`||""}${this.loading&&(!this.alwaysShowContent||this.initialHide)&&r`<div class="cover"><calcite-loader class="loader" .label=${this._messages.browser?.loading??""}></calcite-loader></div>`||""}${this.renderNoResults()}${!this.loading&&this.showPreSearch&&r`<div class="cover"><div class="no-results"><slot name=pre-search></slot></div></div>`||""}<div class=${o({hide:!!this.showPreSearch||this.loading&&!this.alwaysShowContent||!this.loading&&this.noResults||this.initialHide,"results-wrapper--spaced":this.hideContentTop,"results-wrapper":!0})}><slot name=content></slot></div><div class=${o({hide:this.loading||this.noResults&&!this.alwaysShowPagination})}><slot name=pagination></slot><slot name=content-end></slot></div></div></div></div><slot name=scroll-end></slot></div></div>`}};y("arcgis-portal-browser",g);return g},"core/reactiveUtils","intl",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"./RFZCHE7J.js";import"./2CP32LP3.js";import"./U3FVMN32.js";import"./NWIIOJEG.js";import"./DFTUMKSN.js";import"./WJ2NMHDE.js";import"./YIMNOUTF.js";export{a as ArcgisPortalBrowserFilterStatus};
@@ -1,5 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./YIMNOUTF.js";var e=`## Additional System Context
3
-
4
- In addition to the user's inquiry prompt that precedes this system context, the current link chart has entities and relationships on it already, in the format of an array of objects containing identifiers and typeNames, in case this is needed for query generation (for example 'Add all records that are connected to people on this link chart to the link chart'). If the user is asking for a query that acts on 'the current link chart', 'my link chart', or similar then the cypher query should be filtered by the ids. For example, 'Match (n:Person)-[\\r]->(m) WHERE id(n) IN [\\'identifier1','identifier2'] return r, m. Curly braces (the '{' and '}' characters) are often part of identifier strings and should not be stripped out - the process of filtering by ids should not be altering the id strings. The entities and relationships that are on the current link chart are as follows:
5
- `;export{e as default};