@arcgis/portal-components 5.2.0-next.61 → 5.2.0-next.63

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 (82) hide show
  1. package/dist/cdn/{25BWGJFT.js → 332KSPIN.js} +1 -1
  2. package/dist/cdn/5KADGOPQ.js +2 -0
  3. package/dist/cdn/6RLJVPF6.js +2 -0
  4. package/dist/cdn/7PPA7V23.js +2 -0
  5. package/dist/cdn/{KZVNGOD4.js → 7YQTBSDS.js} +56 -56
  6. package/dist/cdn/CG4WYBHN.js +2 -0
  7. package/dist/cdn/{NMAP3FYP.js → DML7662F.js} +1 -1
  8. package/dist/cdn/{UL2NWFFH.js → EEELQMTE.js} +1 -1
  9. package/dist/cdn/{IXATTQKO.js → G2KWSRCG.js} +1 -1
  10. package/dist/cdn/JZTBGLFH.js +2 -0
  11. package/dist/cdn/{UDTQ7U6L.js → LUT4IGPP.js} +1 -1
  12. package/dist/cdn/RKWOBE3M.js +2 -0
  13. package/dist/cdn/SOJU4OFZ.js +2 -0
  14. package/dist/cdn/{6LMJGR6F.js → WEJQVIN4.js} +1 -1
  15. package/dist/cdn/XW42SAEJ.js +2 -0
  16. package/dist/cdn/{THRK2DGY.js → ZK2VXTNX.js} +1 -1
  17. package/dist/cdn/{5VMPZXL3.js → ZXIRKL4X.js} +1 -1
  18. package/dist/cdn/assets/portal-navigation/apps/notebook.avif +0 -0
  19. package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
  20. package/dist/cdn/index.js +1 -1
  21. package/dist/cdn/main.css +1 -1
  22. package/dist/chunks/portal-browser.js +0 -3
  23. package/dist/components/arcgis-portal-account-switcher/customElement.js +124 -115
  24. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +3 -1
  25. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +2 -0
  26. package/dist/components/arcgis-portal-ai-assistant/customElement.js +144 -149
  27. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +34 -0
  28. package/dist/components/arcgis-portal-browser/customElement.js +2 -5
  29. package/dist/components/arcgis-portal-browser/utils/store.d.ts +7 -3
  30. package/dist/components/arcgis-portal-classification-config/customElement.js +6 -6
  31. package/dist/components/arcgis-portal-group-browser/customElement.d.ts +174 -0
  32. package/dist/components/arcgis-portal-group-browser/customElement.js +66 -68
  33. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -3
  34. package/dist/components/arcgis-portal-navigation/customElement.d.ts +7 -0
  35. package/dist/components/arcgis-portal-navigation/customElement.js +398 -395
  36. package/dist/components/arcgis-portal-navigation/index.js +4 -6
  37. package/dist/components/portal-browser/components/portal-browser-filter/customElement.js +14 -0
  38. package/dist/components/{arcgis-portal-browser-filter → portal-browser/components/portal-browser-filter}/index.js +0 -1
  39. package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +59 -0
  40. package/dist/components/{arcgis-portal-browser-filter-date → portal-browser/components/portal-browser-filter-date}/index.js +1 -2
  41. package/dist/components/portal-browser/components/portal-browser-filter-date/portal-browser-filter-date.d.ts +122 -0
  42. package/dist/components/portal-browser/components/portal-browser-filters/customElement.js +11 -0
  43. package/dist/components/portal-group-browser-filters/customElement.js +113 -86
  44. package/dist/components/portal-group-browser-filters/index.js +0 -3
  45. package/dist/docs/api.json +1 -1
  46. package/dist/docs/docs.json +1 -1
  47. package/dist/docs/vscode.css-custom-data.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 +0 -24
  51. package/dist/loader.js +2 -5
  52. package/dist/types/lumina.d.ts +1 -18
  53. package/dist/types/preact.d.ts +1 -21
  54. package/dist/types/react.d.ts +1 -24
  55. package/dist/types/stencil.d.ts +1 -18
  56. package/package.json +4 -4
  57. package/dist/cdn/3527GI5O.js +0 -2
  58. package/dist/cdn/3Y33UPZ6.js +0 -2
  59. package/dist/cdn/744FUP4K.js +0 -2
  60. package/dist/cdn/DUBJA7PZ.js +0 -2
  61. package/dist/cdn/FGJNEKPQ.js +0 -2
  62. package/dist/cdn/HEA66RTI.js +0 -2
  63. package/dist/cdn/JPHGWARN.js +0 -2
  64. package/dist/cdn/JUNNQTQU.js +0 -2
  65. package/dist/cdn/MNU537SB.js +0 -2
  66. package/dist/cdn/SE5YJGIJ.js +0 -2
  67. package/dist/cdn/XMUR4HRH.js +0 -2
  68. package/dist/cdn/XX4U6IRN.js +0 -2
  69. package/dist/cdn/Y3RUZTB3.js +0 -2
  70. package/dist/cdn/YIU7GBUN.js +0 -2
  71. package/dist/cdn/ZOEF7HBV.js +0 -2
  72. package/dist/components/arcgis-portal-browser-filter/customElement.d.ts +0 -226
  73. package/dist/components/arcgis-portal-browser-filter/customElement.js +0 -32
  74. package/dist/components/arcgis-portal-browser-filter/index.d.ts +0 -1
  75. package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +0 -233
  76. package/dist/components/arcgis-portal-browser-filter-date/customElement.js +0 -118
  77. package/dist/components/arcgis-portal-browser-filter-date/index.d.ts +0 -1
  78. package/dist/components/arcgis-portal-browser-filters/customElement.d.ts +0 -7
  79. package/dist/components/arcgis-portal-browser-filters/customElement.js +0 -29
  80. package/dist/components/arcgis-portal-browser-filters/index.d.ts +0 -1
  81. /package/dist/cdn/{F3PB42AG.js → 4E65YWCP.js} +0 -0
  82. /package/dist/components/{arcgis-portal-browser-filters → portal-browser/components/portal-browser-filters}/index.js +0 -0
@@ -1,118 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as d } from "../../chunks/runtime.js";
3
- import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
4
- import { substitute as m } from "@arcgis/core/intl.js";
5
- import { LitElement as g, createEvent as p, nothing as f } from "@arcgis/lumina";
6
- import { debounce as v } from "@arcgis/toolkit/function";
7
- import { css as D, html as c } from "lit";
8
- import { createRef as y, ref as w } from "lit/directives/ref.js";
9
- import { u as b } from "../../chunks/useT9n.js";
10
- import "../arcgis-portal-browser-filter/customElement.js";
11
- const o = 1440 * 60 * 1e3;
12
- function a(s) {
13
- const e = typeof s == "string" ? Number.parseInt(s, 10) : typeof s == "number" ? s : (s ?? /* @__PURE__ */ new Date()).valueOf(), t = new Date(e);
14
- return t.setHours(0, 0, 0, 0), t.valueOf();
15
- }
16
- function l(s) {
17
- return a(s) + o - 1;
18
- }
19
- const k = 7 * o, P = D`:host{display:block}.custom-date-picker{margin-top:.5rem;margin-bottom:.5rem;margin-inline-start:1.75rem;width:12.75rem}`, h = ["today", "yesterday", "last7", "last30", "never", "custom"];
20
- class $ extends g {
21
- constructor() {
22
- super(...arguments), this._messages = b({ name: "portal-browser", blocking: !0 }), this._datePicker = y(), this.today = "", this.debouncedRangeChangeHandler = v(() => this.rangeChangeHandler(), 200), this.property = "created", this.range = null, this.expanded = !1, this.includeNever = !1, this.arcgisBrowserFilter = p();
23
- }
24
- static {
25
- this.properties = { property: 1, serverProperty: 1, range: 1, start: 1, end: 1, store: 0, expanded: 5, includeNever: 5 };
26
- }
27
- static {
28
- this.styles = P;
29
- }
30
- connectedCallback() {
31
- super.connectedCallback();
32
- const e = /* @__PURE__ */ new Date();
33
- this.today = `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`, this.attachStoreWatcher(), this.range && (this.range !== "custom" || this.start && this.end) && this.arcgisBrowserFilter.emit(this.getEventDetail());
34
- }
35
- willUpdate(e) {
36
- (e.has("store") || e.has("property")) && this.attachStoreWatcher(), (e.has("range") || e.has("start") || e.has("end")) && this.range === "custom" && this.setDatePickerValue();
37
- }
38
- disconnectedCallback() {
39
- this.removeStoreWatcher?.(), super.disconnectedCallback();
40
- }
41
- attachStoreWatcher() {
42
- if (this.removeStoreWatcher?.(), !this.store)
43
- return;
44
- const e = u(() => {
45
- const t = this.store?.filters?.[this.property];
46
- return {
47
- value: t?.value,
48
- additionalParams: t?.additionalParams
49
- };
50
- }, () => {
51
- const t = this.store?.filters?.[this.property];
52
- !(t?.value || t?.additionalParams) && this.isActive() && this.resetDatePicker();
53
- });
54
- this.removeStoreWatcher = () => e.remove();
55
- }
56
- resetDatePicker() {
57
- this.range = null, this.start = null, this.end = null, this._datePicker.value && (this._datePicker.value.valueAsDate = []);
58
- }
59
- getValue() {
60
- const e = a(), t = l();
61
- switch (this.range) {
62
- case "yesterday":
63
- return [e - o, e - 1];
64
- case "today":
65
- return [e, t];
66
- case "last7":
67
- return [e - k, t];
68
- case "last30":
69
- return [e - o * 30, t];
70
- case "never":
71
- return [-1, -1];
72
- case "custom": {
73
- const r = a(this.start), i = l(this.end);
74
- return [r, i];
75
- }
76
- default:
77
- return null;
78
- }
79
- }
80
- getEventDetail() {
81
- const e = this._messages?.filterDate, t = this.getValue(), r = this.serverProperty ?? (this.property === "modified" ? "modified" : "uploaded"), i = this.range ? e?.[this.range] ?? "" : "", n = e?.[this.property] ?? "";
82
- return {
83
- id: this.property,
84
- value: t ? `(${r}:[${t[0]} TO ${t[1]}])` : "",
85
- range: this.range,
86
- start: t ? new Date(t[0]) : void 0,
87
- end: t ? new Date(t[1]) : void 0,
88
- label: this.range ? m(n, { date: i }) : ""
89
- };
90
- }
91
- isActive() {
92
- return !!(this.range && (this.range !== "custom" || this.start && this.end));
93
- }
94
- setDatePickerValue() {
95
- !this._datePicker.value || this.range !== "custom" || !this.start || !this.end || (this._datePicker.value.valueAsDate = [new Date(a(this.start)), new Date(a(this.end))]);
96
- }
97
- rangeChangeHandler() {
98
- const e = this._datePicker.value?.valueAsDate, [t, r] = Array.isArray(e) ? e : [];
99
- t && r && (this.start = t, this.end = r, this.arcgisBrowserFilter.emit(this.getEventDetail()));
100
- }
101
- renderRange(e) {
102
- const t = this._messages.filterDate;
103
- return c`<calcite-tree-item data-range=${e ?? f} .selected=${e === this.range}>${t[e]}</calcite-tree-item>`;
104
- }
105
- render() {
106
- const e = this._messages.filterDate, t = this.includeNever ? h : h.filter((r) => r !== "never");
107
- return c`<arcgis-portal-browser-filter .heading=${e.title[this.property]} .expanded=${this.expanded} .active=${this.isActive()} .filterId=${this.property} @arcgisBrowserFilterRemove=${() => {
108
- this.resetDatePicker(), this.arcgisBrowserFilter.emit(this.getEventDetail());
109
- }}><calcite-tree selection-mode=children scale=m @calciteTreeSelect=${(r) => {
110
- const n = r.target.selectedItems?.[0]?.dataset.range;
111
- this.range = this.range === n ? null : n, !(this.range === "custom" && !(this.start && this.end)) && this.arcgisBrowserFilter.emit(this.getEventDetail());
112
- }}>${t.map((r) => this.renderRange(r))}</calcite-tree>${this.range === "custom" && c`<calcite-input-date-picker class="custom-date-picker" @calciteInputDatePickerChange=${() => this.debouncedRangeChangeHandler()} scale=s .max=${this.today} calendars=1 layout=vertical month-style=abbreviated proximity-selection-disabled range ${w(this._datePicker)}></calcite-input-date-picker>` || ""}</arcgis-portal-browser-filter>`;
113
- }
114
- }
115
- d("arcgis-portal-browser-filter-date", $);
116
- export {
117
- $ as ArcgisPortalBrowserFilterDate
118
- };
@@ -1 +0,0 @@
1
- export * from "./customElement.js";
@@ -1,7 +0,0 @@
1
- /// <reference path="../../index.d.ts" />
2
- import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { PortalBrowserStore } from "../arcgis-portal-browser/utils/store.js";
4
-
5
- export abstract class ArcgisPortalBrowserFilters extends LitElement {
6
- accessor store: PortalBrowserStore | undefined;
7
- }
@@ -1,29 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as e } from "../../chunks/runtime.js";
3
- import { css as o, html as r } from "lit";
4
- import { LitElement as i, safeClassMap as l } from "@arcgis/lumina";
5
- import { createRef as a, ref as c } from "lit/directives/ref.js";
6
- import { b as n } from "../../chunks/ui.js";
7
- const p = o`:host{display:block}.filters-shell{display:block}.filters-shell__top{padding:0}.filters-shell__top--padded{padding:0 1rem 1rem}`;
8
- class d extends i {
9
- constructor() {
10
- super(...arguments), this._accordionRef = a();
11
- }
12
- static {
13
- this.properties = { store: 0 };
14
- }
15
- static {
16
- this.styles = p;
17
- }
18
- updated() {
19
- this.store && this._accordionRef.value && (this.store.filterElement = this._accordionRef.value);
20
- }
21
- render() {
22
- const t = this.store, s = !!t?.panel || (t?.width ?? 0) < n.sm;
23
- return r`<div class="filters-shell" .inert=${!!t?.preview}><div class=${l({ "filters-shell__top": !0, "filters-shell__top--padded": s })}><slot name=top></slot></div><slot name=primary></slot><slot name=title></slot><calcite-accordion appearance=transparent icon-type=chevron icon-position=start scale=m ${c(this._accordionRef)}><slot></slot></calcite-accordion><slot name=bottom></slot></div>`;
24
- }
25
- }
26
- e("arcgis-portal-browser-filters", d);
27
- export {
28
- d as ArcgisPortalBrowserFilters
29
- };
@@ -1 +0,0 @@
1
- export * from "./customElement.js";
File without changes