@arcgis/portal-components 5.2.0-next.57 → 5.2.0-next.59
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/dist/cdn/2H7Y7RJV.js +2 -0
- package/dist/cdn/32FQ7WJE.js +2 -0
- package/dist/cdn/3Q3EP3BN.js +2 -0
- package/dist/cdn/3VDVNPZ7.js +2 -0
- package/dist/cdn/3WH3ENZP.js +2 -0
- package/dist/cdn/4QA4AYHJ.js +3 -0
- package/dist/cdn/{LDCSQHZX.js → 55FL7WQV.js} +1 -1
- package/dist/cdn/5CT433EX.js +2 -0
- package/dist/cdn/6ROVXNLV.js +2 -0
- package/dist/cdn/7JQ6D224.js +2 -0
- package/dist/cdn/B36VBHAI.js +2 -0
- package/dist/cdn/CFBSBZSS.js +2 -0
- package/dist/cdn/CYEC77HO.js +2 -0
- package/dist/cdn/E6STCC7O.js +2 -0
- package/dist/cdn/EYTAC4Z4.js +2 -0
- package/dist/cdn/{NWIIOJEG.js → FGJNEKPQ.js} +1 -1
- package/dist/cdn/{TUQSWB7B.js → FPYIRCJO.js} +1 -1
- package/dist/cdn/{C4UBEDKI.js → G2NXASJO.js} +1 -1
- package/dist/cdn/{DNMB343K.js → GLDJPWRZ.js} +1 -1
- package/dist/cdn/HHA5STNZ.js +2 -0
- package/dist/cdn/HV3BRK66.js +2 -0
- package/dist/cdn/I5GDSNYE.js +2 -0
- package/dist/cdn/IRK4UW2F.js +2 -0
- package/dist/cdn/IVATGXII.js +2 -0
- package/dist/cdn/IXATTQKO.js +2 -0
- package/dist/cdn/JCIDQZ6X.js +2 -0
- package/dist/cdn/{R3VY2KZV.js → LDRIWXTO.js} +1 -1
- package/dist/cdn/{3PWVEX4V.js → ODJRHB2N.js} +1 -1
- package/dist/cdn/{EJZ55DVU.js → OK75ZZ2M.js} +1 -1
- package/dist/cdn/{DHMH2XFA.js → OTC37DGK.js} +1 -1
- package/dist/cdn/OYX64HG5.js +2 -0
- package/dist/cdn/QS3GXAIH.js +2 -0
- package/dist/cdn/RKT7WCDH.js +2 -0
- package/dist/cdn/RL7X3ACG.js +2 -0
- package/dist/cdn/RZPKVJMB.js +2 -0
- package/dist/cdn/S2JZ5KTI.js +2 -0
- package/dist/cdn/SJGVHRK2.js +2 -0
- package/dist/cdn/SUBBPVRW.js +2 -0
- package/dist/cdn/T7GD53BL.js +2 -0
- package/dist/cdn/{2VLAJOZX.js → TFFZ425X.js} +1 -1
- package/dist/cdn/UDTQ7U6L.js +2 -0
- package/dist/cdn/UPSYDUD6.js +2 -0
- package/dist/cdn/UUSJCAH5.js +2 -0
- package/dist/cdn/UXLENIDB.js +2 -0
- package/dist/cdn/UZCHLKLO.js +2 -0
- package/dist/cdn/VMQIDO4Z.js +2 -0
- package/dist/cdn/WBNJYBQD.js +2 -0
- package/dist/cdn/XSUXR4WJ.js +2 -0
- package/dist/cdn/Z2ZW4FY2.js +2 -0
- package/dist/cdn/ZP6MVFXR.js +2 -0
- package/dist/cdn/{U2QZZSPC.js → ZV4GLQQG.js} +1 -1
- package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/groups.js +61 -7
- package/dist/chunks/groups2.js +8 -61
- package/dist/chunks/item.js +123 -29
- package/dist/chunks/item2.js +29 -123
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/portal-browser.js +223 -0
- package/dist/chunks/portal.js +48 -40
- package/dist/chunks/portal2.js +50 -24
- package/dist/chunks/query.js +159 -0
- package/dist/chunks/request.js +87 -0
- package/dist/chunks/requests.js +4 -4
- package/dist/chunks/store.js +1 -5
- package/dist/chunks/string.js +19 -14
- package/dist/chunks/thumbnail.js +189 -0
- package/dist/chunks/ui.js +2 -3
- package/dist/chunks/url.js +17 -0
- package/dist/chunks/user.js +96 -13
- package/dist/chunks/user2.js +13 -178
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.js +1 -1
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +3 -3
- package/dist/components/arcgis-portal-browser/customElement.d.ts +15 -7
- package/dist/components/arcgis-portal-browser/customElement.js +14 -196
- package/dist/components/arcgis-portal-browser/utils/store.d.ts +4 -4
- package/dist/components/arcgis-portal-browser/utils/types.d.ts +6 -0
- package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +2 -4
- package/dist/components/arcgis-portal-browser-actions/customElement.js +12 -9
- package/dist/components/arcgis-portal-browser-filter/customElement.js +5 -5
- package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +5 -5
- package/dist/components/arcgis-portal-browser-filter-date/customElement.js +13 -12
- package/dist/components/arcgis-portal-browser-filter-status/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-pagination/customElement.js +25 -27
- package/dist/components/arcgis-portal-browser-search/customElement.js +1 -4
- package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-browser-top-bar/customElement.js +15 -16
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.d.ts +0 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +21 -20
- package/dist/components/arcgis-portal-group-browser/customElement.d.ts +301 -0
- package/dist/components/arcgis-portal-group-browser/customElement.js +494 -0
- package/dist/components/arcgis-portal-group-browser/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser/index.js +6 -0
- package/dist/components/arcgis-portal-group-browser/types.d.ts +193 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +225 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +150 -0
- package/dist/components/arcgis-portal-group-browser-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser-preview/index.js +12 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.d.ts +82 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +92 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/index.js +6 -0
- package/dist/components/arcgis-portal-group-card/customElement.d.ts +3 -1
- package/dist/components/arcgis-portal-group-card/customElement.js +71 -91
- package/dist/components/arcgis-portal-group-card/index.js +3 -3
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +40 -39
- package/dist/components/arcgis-portal-navigation/customElement.js +418 -411
- package/dist/components/arcgis-portal-navigation/index.js +1 -1
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +68 -249
- package/dist/components/arcgis-portal-user-avatar/customElement.js +2 -2
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +5 -2
- package/dist/components/arcgis-portal-user-popup/customElement.js +4 -3
- package/dist/components/portal-group-browser-filters/customElement.js +104 -0
- package/dist/components/portal-group-browser-filters/index.js +8 -0
- package/dist/components/portal-group-browser-pagination/customElement.js +13 -0
- package/dist/components/portal-group-browser-pagination/index.js +2 -0
- package/dist/components/portal-group-browser-sort/customElement.js +16 -0
- package/dist/components/portal-group-browser-sort/index.js +2 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +36 -0
- package/dist/loader.js +5 -2
- package/dist/types/group.d.ts +6 -8
- package/dist/types/item.d.ts +1 -1
- package/dist/types/lumina.d.ts +32 -0
- package/dist/types/preact.d.ts +35 -0
- package/dist/types/react.d.ts +38 -0
- package/dist/types/search.d.ts +2 -2
- package/dist/types/stencil.d.ts +32 -0
- package/dist/types/user.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/2EJG4DOC.js +0 -2
- package/dist/cdn/2JCFEF3J.js +0 -2
- package/dist/cdn/2WEWH5G3.js +0 -2
- package/dist/cdn/6AGZRMJC.js +0 -2
- package/dist/cdn/6D3PU4ZT.js +0 -2
- package/dist/cdn/7QXIBQV7.js +0 -2
- package/dist/cdn/BJTJP57C.js +0 -2
- package/dist/cdn/BZRM2V6V.js +0 -2
- package/dist/cdn/C2DREZD4.js +0 -2
- package/dist/cdn/CSH3WCYD.js +0 -2
- package/dist/cdn/GKBK32VH.js +0 -2
- package/dist/cdn/GYFQDPCN.js +0 -2
- package/dist/cdn/J46I5HEQ.js +0 -2
- package/dist/cdn/JJ7P5JJ3.js +0 -2
- package/dist/cdn/JZ2ZI5WO.js +0 -2
- package/dist/cdn/LTQA5JRV.js +0 -2
- package/dist/cdn/M5MGOBU3.js +0 -2
- package/dist/cdn/M6X5KCWL.js +0 -2
- package/dist/cdn/OBVMQ64S.js +0 -2
- package/dist/cdn/OGC5YU6V.js +0 -2
- package/dist/cdn/OUN473QW.js +0 -2
- package/dist/cdn/QPFPNUHH.js +0 -2
- package/dist/cdn/R6SSAPLB.js +0 -3
- package/dist/cdn/SJDQS32I.js +0 -2
- package/dist/cdn/UQWELJR5.js +0 -2
- package/dist/cdn/Y4YNN6DS.js +0 -2
- package/dist/cdn/Y5CRBUVL.js +0 -2
- /package/dist/cdn/{AWIVXH7M.js → 5KDFY5KE.js} +0 -0
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { c as i } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as r, html as e } from "lit";
|
|
4
4
|
import { LitElement as a, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
5
|
+
import { u as c } from "../../chunks/useT9n.js";
|
|
6
|
+
const o = r`:host{display:block}.filter__wrapper{position:relative}.filter__accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.filter--primary{margin-bottom:1rem;position:relative}.filter__header{border-bottom:1px solid var(--calcite-color-border-2);display:flex;margin-bottom:.5rem;align-items:center}.filter__header--primary{margin-bottom:0}.filter__title{color:var(--calcite-color-text-1);flex:1;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1;margin:0;padding:1rem .5rem}.filter__actions-slot{display:flex;align-self:center;align-items:center;line-height:0}.filter__content{margin:0}.filter__content--padded{margin:-.75rem .5rem 0}.filter__content>calcite-tree>calcite-tree-item>a{padding-block:.25rem}.clear-button{line-height:1;margin-inline:.25rem}`;
|
|
7
7
|
class n extends a {
|
|
8
8
|
constructor() {
|
|
9
|
-
super(...arguments), this._messages =
|
|
9
|
+
super(...arguments), this._messages = c({ name: "portal-browser", blocking: !0 }), this.expanded = !1, this.heading = "", this.active = !1, this.noPadding = !1, this.clearDisabled = !1, this.filterId = "", this.primary = !1, this.arcgisBrowserFilterRemove = s();
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.properties = { expanded: 5, heading: 1, active: 5, noPadding: 5, clearDisabled: 5, filterId: 1, primary: 5 };
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.styles =
|
|
15
|
+
this.styles = o;
|
|
16
16
|
}
|
|
17
17
|
emitFilterRemove() {
|
|
18
18
|
this.arcgisBrowserFilterRemove.emit(this.filterId);
|
|
@@ -23,7 +23,7 @@ class n extends a {
|
|
|
23
23
|
this.expanded = !0;
|
|
24
24
|
}} @calciteAccordionItemCollapse=${() => {
|
|
25
25
|
this.expanded = !1;
|
|
26
|
-
}}><div slot=actions-end class="filter__actions-slot"><slot name=action></slot>${this.active && !this.clearDisabled && e`<calcite-button class="clear-button" kind=neutral appearance=transparent @click=${() => this.emitFilterRemove()}>${t}</calcite-button>` || ""}</div><div class=${l({ filter__content: !0, "filter__content--padded": !this.noPadding })}><slot></slot></div></calcite-accordion-item></calcite-accordion></div>`;
|
|
26
|
+
}}><div slot=actions-end class="filter__actions-slot arcgis-item-browser-filter__actions-slot"><slot name=action></slot>${this.active && !this.clearDisabled && e`<calcite-button class="clear-button" scale=s kind=neutral appearance=transparent @click=${() => this.emitFilterRemove()}>${t}</calcite-button>` || ""}</div><div class=${l({ filter__content: !0, "filter__content--padded": !this.noPadding })}><slot></slot></div></calcite-accordion-item></calcite-accordion></div>`;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
i("arcgis-portal-browser-filter", n);
|
|
@@ -216,7 +216,7 @@ export type PortalBrowserDateProperty = "created" | "modified";
|
|
|
216
216
|
|
|
217
217
|
export type PortalBrowserDateRange = (typeof portalBrowserDateRanges)[number] | null;
|
|
218
218
|
|
|
219
|
-
export type PortalBrowserDateDetail = PortalBrowserFilterDetail
|
|
219
|
+
export type PortalBrowserDateDetail = PortalBrowserFilterDetail<string>
|
|
220
220
|
& {
|
|
221
221
|
range: PortalBrowserDateRange;
|
|
222
222
|
start?: Date;
|
|
@@ -224,10 +224,10 @@ export type PortalBrowserDateDetail = PortalBrowserFilterDetail
|
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
export const portalBrowserDateRanges: readonly [
|
|
227
|
-
"
|
|
228
|
-
"
|
|
227
|
+
"today",
|
|
228
|
+
"yesterday",
|
|
229
229
|
"last7",
|
|
230
|
+
"last30",
|
|
230
231
|
"never",
|
|
231
|
-
"
|
|
232
|
-
"yesterday"
|
|
232
|
+
"custom"
|
|
233
233
|
];
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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";
|
|
9
10
|
import "../arcgis-portal-browser-filter/customElement.js";
|
|
10
11
|
const o = 1440 * 60 * 1e3;
|
|
11
12
|
function a(s) {
|
|
@@ -15,16 +16,16 @@ function a(s) {
|
|
|
15
16
|
function l(s) {
|
|
16
17
|
return a(s) + o - 1;
|
|
17
18
|
}
|
|
18
|
-
const k = 7 * o,
|
|
19
|
-
class $ extends
|
|
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 {
|
|
20
21
|
constructor() {
|
|
21
|
-
super(...arguments), this._messages =
|
|
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();
|
|
22
23
|
}
|
|
23
24
|
static {
|
|
24
25
|
this.properties = { property: 1, serverProperty: 1, range: 1, start: 1, end: 1, store: 0, expanded: 5, includeNever: 5 };
|
|
25
26
|
}
|
|
26
27
|
static {
|
|
27
|
-
this.styles =
|
|
28
|
+
this.styles = P;
|
|
28
29
|
}
|
|
29
30
|
connectedCallback() {
|
|
30
31
|
super.connectedCallback();
|
|
@@ -84,7 +85,7 @@ class $ extends m {
|
|
|
84
85
|
range: this.range,
|
|
85
86
|
start: t ? new Date(t[0]) : void 0,
|
|
86
87
|
end: t ? new Date(t[1]) : void 0,
|
|
87
|
-
label: this.range ? n
|
|
88
|
+
label: this.range ? m(n, { date: i }) : ""
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
91
|
isActive() {
|
|
@@ -99,7 +100,7 @@ class $ extends m {
|
|
|
99
100
|
}
|
|
100
101
|
renderRange(e) {
|
|
101
102
|
const t = this._messages.filterDate;
|
|
102
|
-
return c`<calcite-tree-item data-range=${e ??
|
|
103
|
+
return c`<calcite-tree-item data-range=${e ?? f} .selected=${e === this.range}>${t[e]}</calcite-tree-item>`;
|
|
103
104
|
}
|
|
104
105
|
render() {
|
|
105
106
|
const e = this._messages.filterDate, t = this.includeNever ? h : h.filter((r) => r !== "never");
|
|
@@ -108,7 +109,7 @@ class $ extends m {
|
|
|
108
109
|
}}><calcite-tree selection-mode=children scale=m @calciteTreeSelect=${(r) => {
|
|
109
110
|
const n = r.target.selectedItems?.[0]?.dataset.range;
|
|
110
111
|
this.range = this.range === n ? null : n, !(this.range === "custom" && !(this.start && this.end)) && this.arcgisBrowserFilter.emit(this.getEventDetail());
|
|
111
|
-
}}>${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 ${
|
|
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>`;
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
d("arcgis-portal-browser-filter-date", $);
|
|
@@ -28,7 +28,7 @@ class v extends m {
|
|
|
28
28
|
}
|
|
29
29
|
processValidFilters() {
|
|
30
30
|
const t = Object.values(this.filters).filter(this.isFilterValid.bind(this)), s = this.componentWidth ?? 0;
|
|
31
|
-
if ((this.browserWidth ?? window.innerWidth) < f.sm) {
|
|
31
|
+
if ((this.browserWidth ?? s ?? window.innerWidth) < f.sm) {
|
|
32
32
|
this.inBounds = t, this.outOfBounds = [];
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as i, html as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { createRef as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class d extends o {
|
|
2
|
+
import { c as a } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as i, html as s } from "lit";
|
|
4
|
+
import { LitElement as r, createEvent as n, safeClassMap as o } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as m, ref as g } from "lit/directives/ref.js";
|
|
6
|
+
import { u as p } from "../../chunks/useT9n.js";
|
|
7
|
+
import { t as c } from "../../chunks/functionalities.js";
|
|
8
|
+
import { c as l } from "../../chunks/store.js";
|
|
9
|
+
const h = i`.wrapper{container-type:inline-size;container-name:browser-pagination;padding:2rem .5rem}.pagination{width:100%;justify-content:center;transform:scale(.9);transform-origin:center}.hide{display:none}@container browser-pagination (min-width: 641px){.pagination{transform:none}}`;
|
|
10
|
+
class u extends r {
|
|
12
11
|
constructor() {
|
|
13
|
-
super(...arguments), this.paginationRef =
|
|
12
|
+
super(...arguments), this.paginationRef = m(), this._messages = p({ name: "portal-browser", blocking: !0 }), this.total = 0, this.start = 1, this.num = 60, this.store = l(), this.arcgisBrowserPage = n();
|
|
14
13
|
}
|
|
15
14
|
static {
|
|
16
15
|
this.properties = { total: 9, start: 9, num: 9, store: 0 };
|
|
17
16
|
}
|
|
18
17
|
static {
|
|
19
|
-
this.styles =
|
|
18
|
+
this.styles = h;
|
|
20
19
|
}
|
|
21
20
|
async nextPage() {
|
|
22
|
-
this.paginationRef.value?.nextPage(), await
|
|
21
|
+
this.paginationRef.value?.nextPage(), await c(10);
|
|
23
22
|
const t = this.paginationRef.value;
|
|
24
23
|
t && this.arcgisBrowserPage.emit({
|
|
25
24
|
start: t.startItem,
|
|
@@ -27,25 +26,24 @@ class d extends o {
|
|
|
27
26
|
num: t.pageSize
|
|
28
27
|
});
|
|
29
28
|
}
|
|
30
|
-
|
|
31
|
-
this.arcgisBrowserPage.emit({
|
|
29
|
+
emitPage(t) {
|
|
30
|
+
this.arcgisBrowserPage.emit({
|
|
31
|
+
start: t.startItem,
|
|
32
|
+
total: t.totalItems,
|
|
33
|
+
num: t.pageSize
|
|
34
|
+
});
|
|
32
35
|
}
|
|
33
36
|
render() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
start: s.startItem,
|
|
39
|
-
total: s.totalItems,
|
|
40
|
-
num: s.pageSize
|
|
41
|
-
});
|
|
42
|
-
}} .startItem=${this.start} .totalItems=${Math.min(this.total, 1e4 - this.num)} .pageSize=${this.num} .scale=${t} .messageOverrides=${{
|
|
37
|
+
return s`<div class="wrapper"><calcite-pagination class=${o({ hide: !this.total || this.total < this.num, pagination: !0 })} @calcitePaginationChange=${(t) => {
|
|
38
|
+
const e = t.target;
|
|
39
|
+
this.emitPage(e);
|
|
40
|
+
}} .startItem=${this.start} .totalItems=${Math.min(this.total, 1e4 - this.num)} .pageSize=${this.num} scale=m .messageOverrides=${{
|
|
43
41
|
next: this._messages.pagination.next,
|
|
44
42
|
previous: this._messages.pagination.prev
|
|
45
|
-
}}
|
|
43
|
+
}} ${g(this.paginationRef)}></calcite-pagination></div>`;
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
|
-
|
|
46
|
+
a("arcgis-portal-browser-pagination", u);
|
|
49
47
|
export {
|
|
50
|
-
|
|
48
|
+
u as ArcgisPortalBrowserPagination
|
|
51
49
|
};
|
|
@@ -24,10 +24,7 @@ class v extends p {
|
|
|
24
24
|
super.connectedCallback(), this.showClear = !!this.term, this.containsWildcard = this.term.includes("*");
|
|
25
25
|
}
|
|
26
26
|
willUpdate(e) {
|
|
27
|
-
e.
|
|
28
|
-
}
|
|
29
|
-
firstUpdated() {
|
|
30
|
-
this.emitUpdate(this.term);
|
|
27
|
+
e.get("term") !== void 0 && ((this.searchInput.value?.value ?? "") !== this.term && (this.showClear = !!this.term, this.emitUpdate(this.term)), this.containsWildcard = this.term.includes("*"));
|
|
31
28
|
}
|
|
32
29
|
disconnectedCallback() {
|
|
33
30
|
this.debounceId && (window.clearTimeout(this.debounceId), this.debounceId = void 0), super.disconnectedCallback();
|
|
@@ -181,4 +181,10 @@ export abstract class ArcgisPortalBrowserTopBar extends LitElement {
|
|
|
181
181
|
/** @default false */
|
|
182
182
|
accessor filtersDisabled: boolean;
|
|
183
183
|
accessor store: PortalBrowserStore;
|
|
184
|
+
readonly arcgisBrowserFilterClear: import("@arcgis/lumina").TargetedEvent<this, null>;
|
|
185
|
+
readonly arcgisBrowserFilterRemove: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
186
|
+
readonly "@eventTypes": {
|
|
187
|
+
arcgisBrowserFilterClear: ArcgisPortalBrowserTopBar["arcgisBrowserFilterClear"]["detail"];
|
|
188
|
+
arcgisBrowserFilterRemove: ArcgisPortalBrowserTopBar["arcgisBrowserFilterRemove"]["detail"];
|
|
189
|
+
};
|
|
184
190
|
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as a } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as l, html as t } from "lit";
|
|
4
|
-
import { LitElement as o, safeClassMap as n } from "@arcgis/lumina";
|
|
5
|
-
import { createRef as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { c as m, i as u } from "../../chunks/store.js";
|
|
4
|
+
import { LitElement as o, createEvent as r, safeClassMap as n } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as c, ref as d } from "lit/directives/ref.js";
|
|
6
|
+
import { u as p } from "../../chunks/useT9n.js";
|
|
7
|
+
import { i as h } from "../../chunks/functionalities.js";
|
|
8
|
+
import { c as m, i as b } from "../../chunks/store.js";
|
|
10
9
|
import "../arcgis-portal-browser-filter-status/customElement.js";
|
|
11
|
-
const
|
|
10
|
+
const u = l`:host{position:relative;display:block;background-color:var(--arcgis-browser-top-bar-background, var(--calcite-color-foreground-1));container-type:inline-size;container-name:browser-top-bar}.wrapper{display:flex;margin-inline:auto;max-width:var(--arcgis-browser-max-width)}.bucket{display:flex}.search-and-sort{display:flex;flex:1;align-items:center;padding-inline-end:1.5rem;min-height:3rem}.search{flex:1}.filter{margin-block:.25rem;padding-inline:.5rem;display:flex;justify-content:center;align-items:center}.bucket--mobile{display:none;text-align:center;border-bottom:1px solid var(--calcite-color-border-3)}.rel{position:relative}.bucket--desktop{display:flex}.indicator{width:.5rem;height:.5rem;position:absolute;border-radius:999px;top:0;pointer-events:none;z-index:20;background-color:var(--calcite-color-brand);inset-inline-start:0}.filter-status--with-toggle{display:none}@container browser-top-bar (min-width: 769px){.filter{display:none}.filter-status--with-toggle{display:inline-flex}}@container browser-top-bar (max-width: 640px){.bucket--mobile{display:block}.bucket--desktop{display:none}.search-and-sort{padding-inline-end:0}}`;
|
|
12
11
|
class f extends o {
|
|
13
12
|
constructor() {
|
|
14
|
-
super(...arguments), this.searchWrapper =
|
|
13
|
+
super(...arguments), this.searchWrapper = c(), this.resizeObserver = null, this._messages = p({ name: "portal-browser", blocking: !0 }), this.width = 0, this.store = m(), this.filtersDisabled = !1, this.arcgisBrowserFilterClear = r(), this.arcgisBrowserFilterRemove = r();
|
|
15
14
|
}
|
|
16
15
|
static {
|
|
17
16
|
this.properties = { width: 16, store: 0, filtersDisabled: 5 };
|
|
18
17
|
}
|
|
19
18
|
static {
|
|
20
|
-
this.styles =
|
|
19
|
+
this.styles = u;
|
|
21
20
|
}
|
|
22
21
|
firstUpdated() {
|
|
23
22
|
this.updateWidth(), !(typeof ResizeObserver > "u" || !this.searchWrapper.value) && (this.resizeObserver = new ResizeObserver(() => this.updateWidth()), this.resizeObserver.observe(this.searchWrapper.value));
|
|
@@ -30,19 +29,19 @@ class f extends o {
|
|
|
30
29
|
this.width = this.searchWrapper.value?.offsetWidth || 0;
|
|
31
30
|
});
|
|
32
31
|
}
|
|
33
|
-
getFormFactor() {
|
|
34
|
-
const e = this.store.width || window.innerWidth;
|
|
35
|
-
return e <= r.sm ? "small" : e <= r.md ? "medium" : "large";
|
|
36
|
-
}
|
|
37
32
|
hasActiveFilter() {
|
|
38
|
-
return Object.values(this.store.filters).some((e) => !!e.value && !
|
|
33
|
+
return Object.values(this.store.filters).some((e) => !!e.value && !h(b, e.id));
|
|
39
34
|
}
|
|
40
35
|
handleClick() {
|
|
41
36
|
this.store.preview = "", this.store.filtersExpanded = !this.store.filtersExpanded;
|
|
42
37
|
}
|
|
43
38
|
render() {
|
|
44
|
-
const e =
|
|
45
|
-
return t`<div
|
|
39
|
+
const e = (!this.store.filtersEmpty || !this.store.sortEmpty && this.store.panel) && !this.filtersDisabled, s = this._messages.topBar.filter;
|
|
40
|
+
return t`<div><div class="bucket bucket--mobile"><slot name=bucket></slot></div><slot name=primary-filter></slot><div class="wrapper"><slot name=content-start></slot><div class="bucket bucket--desktop"><slot name=bucket></slot></div><div class="search-and-sort" ${d(this.searchWrapper)}><div class="search"><slot name=search></slot></div>${!this.filtersDisabled && t`<arcgis-portal-browser-filter-status .componentWidth=${this.width} .browserWidth=${this.width} class=${n({ "filter-status": !0, "filter-status--with-toggle": e })} .filters=${this.store.filters} .hiddenFilterIds=${this.store.hiddenFilters || []} @arcgisBrowserFilterClear=${() => {
|
|
41
|
+
this.arcgisBrowserFilterClear.emit(null);
|
|
42
|
+
}} @arcgisBrowserFilterRemove=${(i) => {
|
|
43
|
+
this.arcgisBrowserFilterRemove.emit(i.detail);
|
|
44
|
+
}}></arcgis-portal-browser-filter-status>` || ""}</div>${e && t`<div class="filter"><div class="rel">${this.hasActiveFilter() && t`<span class="indicator"></span>` || ""}<calcite-button class="filter-toggle" scale=s appearance=transparent kind=neutral icon-start=sliders .label=${s} @click=${() => this.handleClick()} aria-expanded=${this.store.filtersExpanded ? "true" : "false"}></calcite-button></div></div>` || ""}<slot name=content-end></slot></div></div>`;
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
a("arcgis-portal-browser-top-bar", f);
|
|
@@ -11,7 +11,7 @@ import { createArcadeExecutor as S } from "@arcgis/core/arcade.js";
|
|
|
11
11
|
import { u as V } from "../../chunks/useT9n.js";
|
|
12
12
|
import { d as m, a as d, g as O, r as p, c as _, b as A } from "../../chunks/common.js";
|
|
13
13
|
import { watch as D } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
|
-
import {
|
|
14
|
+
import { b as F } from "../../chunks/requests.js";
|
|
15
15
|
async function T({
|
|
16
16
|
portalClassificationSchema: a,
|
|
17
17
|
itemClassification: t
|
|
@@ -4,7 +4,7 @@ import { css as r, html as e } from "lit";
|
|
|
4
4
|
import { repeat as o } from "lit/directives/repeat.js";
|
|
5
5
|
import { LitElement as n } from "@arcgis/lumina";
|
|
6
6
|
import { u as f } from "../../chunks/useT9n.js";
|
|
7
|
-
import { u as d,
|
|
7
|
+
import { u as d, b as v } from "../../chunks/requests.js";
|
|
8
8
|
import { g as h } from "../../chunks/common.js";
|
|
9
9
|
const m = r`.select-favorite-label{display:flex;justify-content:space-between;align-items:center}.favorite-actions{display:flex;justify-content:flex-end;gap:1.5rem;align-items:center}.classification-favorite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: "var(--calcite-color-foreground-2)"}.save-new-favorite-button{display:flex;justify-content:flex-end;margin-top:.25rem;margin-bottom:1rem}.classification-favorite-item{display:flex;justify-content:space-between;padding-top:.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--calcite-color-border-1)}.classification-favorite-list,.classification-favorite-input-section{margin:1.75rem 1rem}`;
|
|
10
10
|
class C extends n {
|
|
@@ -77,7 +77,6 @@ export abstract class ArcgisPortalGroupBadges extends LitElement {
|
|
|
77
77
|
* @default false
|
|
78
78
|
*/
|
|
79
79
|
accessor empty: boolean;
|
|
80
|
-
/** PortalGroup instance for deriving badge states from sourceJSON. */
|
|
81
80
|
accessor group: PortalGroup | undefined;
|
|
82
81
|
/** Current Portal instance. */
|
|
83
82
|
accessor portal: GroupBadgesPortal | undefined;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { nothing as
|
|
2
|
+
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
+
import { nothing as g, safeClassMap as m, LitElement as u } from "@arcgis/lumina";
|
|
4
4
|
import { u as b } from "../../chunks/useT9n.js";
|
|
5
5
|
import { html as c, css as f } from "lit";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { i as w } from "../../chunks/functionalities.js";
|
|
7
|
+
import { a as $, b as x, c as y, i as G, d as I, e as O } from "../../chunks/groups2.js";
|
|
8
|
+
const C = ({ appearance: a, badgeType: t, class: e, messages: s, scale: i, showTooltip: o, width: n }) => {
|
|
9
|
+
const r = s[t] ?? { title: t, tooltip: "" }, d = v[t], l = n === "narrow", p = `portal-group-badge-${t}`;
|
|
10
|
+
return c`<calcite-chip id=${p ?? g} class=${m({
|
|
10
11
|
badge: !0,
|
|
11
|
-
"badge--
|
|
12
|
+
"badge--colored": w(["OpenData", "Partnered"], t),
|
|
12
13
|
narrow: l,
|
|
13
14
|
[`narrow--${i}`]: l,
|
|
14
15
|
[e]: !0
|
|
15
|
-
})} .value=${t} tabindex=0 .scale=${i} .appearance=${a} .label=${
|
|
16
|
-
},
|
|
16
|
+
})} .value=${t} tabindex=0 .scale=${i} .appearance=${a} .label=${r.title} .icon=${d}>${l ? null : r.title}</calcite-chip>${o ? c`<calcite-tooltip .referenceElement=${p} close-on-click placement=bottom-start offset-distance=6 offset-skidding=0>${l ? c`<h3 class="tooltip-title">${r.title}</h3>` : null}<p class="tooltip-text">${r.tooltip}</p></calcite-tooltip>` : null}`;
|
|
17
|
+
}, v = {
|
|
17
18
|
Collaboration: "collaboration",
|
|
18
19
|
FeaturedContent: "home",
|
|
19
20
|
Gallery: "images",
|
|
@@ -21,12 +22,12 @@ const O = ({ appearance: a, badgeType: t, class: e, messages: r, scale: i, showT
|
|
|
21
22
|
SharedUpdate: "configure-editing",
|
|
22
23
|
Partnered: "partnered-collaboration",
|
|
23
24
|
AnyOrg: "zoom-to-object"
|
|
24
|
-
},
|
|
25
|
-
function
|
|
26
|
-
const e = [],
|
|
27
|
-
return t.id && (
|
|
25
|
+
}, z = f`:host{display:flex;flex-wrap:wrap}.portal-group-badges__badge{display:inline-block;margin-inline-end:.25rem}.badge{border:0}.badge--colored{--calcite-chip-icon-color: var(--calcite-color-brand)}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.image{border-radius:0;display:inline-flex;align-items:center;justify-content:center;margin-inline-end:.5rem}.narrow--s{width:1.5rem}.narrow--l{width:2.75rem}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}`;
|
|
26
|
+
function P(a, t) {
|
|
27
|
+
const e = [], s = $(a), i = x(a), o = y(a);
|
|
28
|
+
return t.id && (s.includes("updateitemcontrol") && e.push("SharedUpdate"), G(a) && i === t.id && e.push("OpenData"), t.featuredItemsGroupQuery === `id:${a.id}` && e.push("Gallery")), (I(a).collaborationInfo?.collaborationId || O(a)) && e.push("Collaboration"), !o && !t.isPortal && i !== "none" && e.push("AnyOrg"), o === "collaboration" && e.push("Partnered"), e.includes("SharedUpdate") && !e.includes("Partnered") && i !== t.id && e.splice(e.indexOf("SharedUpdate"), 1), e;
|
|
28
29
|
}
|
|
29
|
-
class
|
|
30
|
+
class _ extends u {
|
|
30
31
|
constructor() {
|
|
31
32
|
super(...arguments), this._messages = b({ blocking: !0 }), this.badges = [], this.width = "full", this.scale = "m", this.showTooltips = !1, this.empty = !1;
|
|
32
33
|
}
|
|
@@ -34,17 +35,17 @@ class z extends u {
|
|
|
34
35
|
this.properties = { badges: 16, group: 0, portal: 0, width: 1, appearance: 1, scale: 1, showTooltips: 5, empty: 7 };
|
|
35
36
|
}
|
|
36
37
|
static {
|
|
37
|
-
this.styles =
|
|
38
|
+
this.styles = z;
|
|
38
39
|
}
|
|
39
40
|
willUpdate(t) {
|
|
40
|
-
(t.has("group") || t.has("portal")) && (this.badges = this.group && this.portal ?
|
|
41
|
+
(t.has("group") || t.has("portal")) && (this.badges = this.group && this.portal ? P(this.group, this.portal) : [], this.empty = this.badges.length === 0);
|
|
41
42
|
}
|
|
42
43
|
render() {
|
|
43
|
-
const { appearance: t, badges: e, scale:
|
|
44
|
-
return e.map((n) =>
|
|
44
|
+
const { appearance: t, badges: e, scale: s, showTooltips: i, width: o } = this;
|
|
45
|
+
return e.map((n) => C({ appearance: t, badgeType: n, class: "portal-group-badges__badge", messages: this._messages, scale: s, showTooltip: i, width: o }));
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
+
h("arcgis-portal-group-badges", _);
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
_ as ArcgisPortalGroupBadges
|
|
50
51
|
};
|