@esri/solutions-components 0.8.2 → 0.8.4
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/cjs/calcite-action-pad_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +16 -10
- package/dist/cjs/card-manager_3.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-c2bd7c80.js → downloadUtils-8b05d7cc.js} +39 -8
- package/dist/cjs/{helpers-81779c18.js → helpers-b014d9a9.js} +1 -1
- package/dist/cjs/{index.es-22b3d1a2.js → index.es-e7587227.js} +1 -1
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +16 -10
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-popover.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-splash.cjs.entry.js +14 -5
- package/dist/cjs/{languageSwitcher-4822684b.js → languageSwitcher-3870c772.js} +1 -1
- package/dist/cjs/{languageUtil-9bd00bad.js → languageUtil-0df39c0c.js} +1 -1
- package/dist/cjs/{loadModules-69fc5b98.js → loadModules-01306709.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-3e33f44c.js → locale-4cef466e.js} +2 -2
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/{utils-ea7a5a63.js → utils-ac836e7a.js} +1 -1
- package/dist/collection/utils/downloadUtils.js +38 -7
- package/dist/collection/utils/downloadUtils.ts +46 -7
- package/dist/collection/utils/test/downloadUtils.spec.js +33 -1
- package/dist/collection/utils/test/downloadUtils.spec.tsx +40 -1
- package/dist/components/downloadUtils.js +38 -7
- package/dist/components/instant-apps-export.js +13 -7
- package/dist/components/instant-apps-landing-page.js +1 -1
- package/dist/components/instant-apps-measurement.js +1 -1
- package/dist/components/instant-apps-social-share2.js +13 -7
- package/dist/components/instant-apps-splash.js +16 -2
- package/dist/components/languageUtil.js +1 -1
- package/dist/components/loadModules2.js +1 -1
- package/dist/esm/calcite-action-pad_2.entry.js +1 -1
- package/dist/esm/calcite-input-date-picker_3.entry.js +16 -10
- package/dist/esm/card-manager_3.entry.js +1 -1
- package/dist/esm/{downloadUtils-a6c0e25f.js → downloadUtils-0c13073b.js} +39 -8
- package/dist/esm/{helpers-aeddac74.js → helpers-f9256189.js} +1 -1
- package/dist/esm/{index.es-b0a676ae.js → index.es-ad250bc6.js} +1 -1
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-export.entry.js +16 -10
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +3 -3
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +5 -5
- package/dist/esm/instant-apps-language-translator.entry.js +5 -5
- package/dist/esm/instant-apps-measurement.entry.js +4 -4
- package/dist/esm/instant-apps-popover.entry.js +3 -3
- package/dist/esm/instant-apps-scoreboard.entry.js +3 -3
- package/dist/esm/instant-apps-splash.entry.js +14 -5
- package/dist/esm/{languageSwitcher-4faa659f.js → languageSwitcher-068998b1.js} +1 -1
- package/dist/esm/{languageUtil-dc3111c1.js → languageUtil-035e7728.js} +1 -1
- package/dist/esm/{loadModules-877bbb89.js → loadModules-7a5f1022.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-bd9034e1.js → locale-4cab280d.js} +2 -2
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/{utils-28d0a086.js → utils-78fe6e5b.js} +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +8 -1
- package/dist/solutions-components/{p-a455c3f0.entry.js → p-00524417.entry.js} +1 -1
- package/dist/solutions-components/{p-8e9f96db.js → p-12a7d0d1.js} +1 -1
- package/dist/solutions-components/{p-a7b7f8d1.js → p-15a0e7fb.js} +1 -1
- package/dist/solutions-components/{p-b41e2c4c.js → p-1d3a1794.js} +11 -11
- package/dist/solutions-components/p-2d72eac3.entry.js +6 -0
- package/dist/solutions-components/{p-a2544cba.entry.js → p-30edeb79.entry.js} +1 -1
- package/dist/solutions-components/{p-220c46c2.entry.js → p-3a6a1ce9.entry.js} +1 -1
- package/dist/solutions-components/{p-a59078ee.entry.js → p-3b9e4882.entry.js} +1 -1
- package/dist/solutions-components/{p-8ad937b4.entry.js → p-465aa7d9.entry.js} +1 -1
- package/dist/solutions-components/p-4dcc150d.entry.js +6 -0
- package/dist/solutions-components/{p-1bca71bf.entry.js → p-4efd2af6.entry.js} +1 -1
- package/dist/solutions-components/{p-5a28d60c.entry.js → p-5320dc25.entry.js} +1 -1
- package/dist/solutions-components/{p-734d1dc5.js → p-590a2a26.js} +1 -1
- package/dist/solutions-components/{p-0d72a9ca.entry.js → p-5f6e7429.entry.js} +1 -1
- package/dist/solutions-components/{p-015a45e2.entry.js → p-65ad1625.entry.js} +1 -1
- package/dist/solutions-components/{p-2e7a9b9b.entry.js → p-88932d2f.entry.js} +2 -2
- package/dist/solutions-components/{p-104f07e3.entry.js → p-954dc86f.entry.js} +1 -1
- package/dist/solutions-components/{p-52b37bad.entry.js → p-989bf0bf.entry.js} +1 -1
- package/dist/solutions-components/{p-0f427774.entry.js → p-a0611720.entry.js} +1 -1
- package/dist/solutions-components/{p-c302bbea.entry.js → p-a3132356.entry.js} +1 -1
- package/dist/solutions-components/{p-c10b44ee.entry.js → p-a886ab7f.entry.js} +1 -1
- package/dist/solutions-components/{p-03037cf9.js → p-ad98c346.js} +1 -1
- package/dist/solutions-components/{p-03a65871.entry.js → p-bf6b4eb7.entry.js} +1 -1
- package/dist/solutions-components/{p-09801ba6.entry.js → p-c4ff3b52.entry.js} +3 -3
- package/dist/solutions-components/p-d599cfa8.entry.js +6 -0
- package/dist/solutions-components/{p-cfe890f6.entry.js → p-f313b45b.entry.js} +1 -1
- package/dist/solutions-components/{p-aec4441b.entry.js → p-fc1367d9.entry.js} +1 -1
- package/dist/solutions-components/{p-07626c45.js → p-fc2fb61b.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +46 -7
- package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +40 -1
- package/dist/types/utils/downloadUtils.d.ts +18 -4
- package/package.json +6 -6
- package/dist/solutions-components/p-7d6ee026.entry.js +0 -6
- package/dist/solutions-components/p-b80bc5b9.entry.js +0 -6
- package/dist/solutions-components/p-dd45738e.entry.js +0 -6
- /package/dist/solutions-components/{p-70359c2b.js → p-89218b6e.js} +0 -0
- /package/dist/solutions-components/{p-090e0241.js → p-e85ba21c.js} +0 -0
|
@@ -71,6 +71,11 @@ const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSp
|
|
|
71
71
|
this.primaryButtonText = '';
|
|
72
72
|
this.open = true;
|
|
73
73
|
this.closeButtonDisabled = false;
|
|
74
|
+
this.outsideCloseDisabled = false;
|
|
75
|
+
this.secondaryButton = false;
|
|
76
|
+
this.secondaryButtonText = undefined;
|
|
77
|
+
this.secondaryButtonIcon = undefined;
|
|
78
|
+
this.secondaryButtonCallback = undefined;
|
|
74
79
|
this.messages = undefined;
|
|
75
80
|
}
|
|
76
81
|
sanitizeContent() {
|
|
@@ -93,7 +98,7 @@ const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSp
|
|
|
93
98
|
getMessages(this);
|
|
94
99
|
}
|
|
95
100
|
render() {
|
|
96
|
-
return (h("calcite-modal", { onCalciteModalClose: this.close.bind(this), open: this.open, closeButtonDisabled: this.closeButtonDisabled }, this.renderHeader(), this.renderContent(), this.localStorageKey ? this.renderDontShowThisAgainCheckbox() : null, this.renderPrimaryButton()));
|
|
101
|
+
return (h("calcite-modal", { onCalciteModalClose: this.close.bind(this), open: this.open, closeButtonDisabled: this.closeButtonDisabled, outsideCloseDisabled: this.outsideCloseDisabled }, this.renderHeader(), this.renderContent(), this.localStorageKey ? this.renderDontShowThisAgainCheckbox() : null, this.renderPrimaryButton(), this.secondaryButton ? this.renderSecondaryButton() : null));
|
|
97
102
|
}
|
|
98
103
|
renderHeader() {
|
|
99
104
|
const { titleText } = this;
|
|
@@ -101,7 +106,7 @@ const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSp
|
|
|
101
106
|
}
|
|
102
107
|
renderContent() {
|
|
103
108
|
const { content } = this;
|
|
104
|
-
return h("div", { slot: "content", innerHTML: content });
|
|
109
|
+
return (h("div", { slot: "content", innerHTML: content }, h("slot", { name: "custom-action" })));
|
|
105
110
|
}
|
|
106
111
|
renderDontShowThisAgainCheckbox() {
|
|
107
112
|
const { localStorageKey, messages } = this;
|
|
@@ -113,6 +118,10 @@ const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSp
|
|
|
113
118
|
const { primaryButtonText } = this;
|
|
114
119
|
return (h("calcite-button", { onClick: this.close.bind(this), slot: "primary" }, primaryButtonText ? primaryButtonText : 'Enter'));
|
|
115
120
|
}
|
|
121
|
+
renderSecondaryButton() {
|
|
122
|
+
var _a;
|
|
123
|
+
return (h("calcite-button", { onClick: (_a = this.secondaryButtonCallback) === null || _a === void 0 ? void 0 : _a.bind(this), slot: "secondary", "icon-start": this.secondaryButtonIcon, appearance: "outline" }, this.secondaryButtonText));
|
|
124
|
+
}
|
|
116
125
|
close() {
|
|
117
126
|
this.open = false;
|
|
118
127
|
this.splashClose.emit();
|
|
@@ -142,6 +151,11 @@ const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSp
|
|
|
142
151
|
"primaryButtonText": [1, "primary-button-text"],
|
|
143
152
|
"open": [1028],
|
|
144
153
|
"closeButtonDisabled": [4, "close-button-disabled"],
|
|
154
|
+
"outsideCloseDisabled": [4, "outside-close-disabled"],
|
|
155
|
+
"secondaryButton": [4, "secondary-button"],
|
|
156
|
+
"secondaryButtonText": [1, "secondary-button-text"],
|
|
157
|
+
"secondaryButtonIcon": [1, "secondary-button-icon"],
|
|
158
|
+
"secondaryButtonCallback": [16],
|
|
145
159
|
"messages": [32]
|
|
146
160
|
}, undefined, {
|
|
147
161
|
"content": ["sanitizeContent"]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import './esri-loader.js';
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
* Copyright (c)
|
|
9
|
+
* Copyright (c) 2024 Esri
|
|
10
10
|
* All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
|
|
11
11
|
* This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement.
|
|
12
12
|
* You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { e as esriLoader } from './esri-loader.js';
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
* Copyright (c)
|
|
9
|
+
* Copyright (c) 2024 Esri
|
|
10
10
|
* All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
|
|
11
11
|
* This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement.
|
|
12
12
|
* You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
|
|
@@ -11,7 +11,7 @@ import { c as connectLocalized, d as disconnectLocalized } from './locale-904407
|
|
|
11
11
|
import { u as updateMessages, c as connectMessages, d as disconnectMessages, s as setUpMessages } from './t9n-436fb2b1.js';
|
|
12
12
|
import { t as toggleChildActionText, E as ExpandToggle } from './ExpandToggle-b6eb575e.js';
|
|
13
13
|
import { c as createObserver } from './observers-d04d1da9.js';
|
|
14
|
-
import { l as loadModules } from './loadModules-
|
|
14
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
15
15
|
import './guid-b75a5f7b.js';
|
|
16
16
|
import './resources-8834f920.js';
|
|
17
17
|
import './key-c83d835f.js';
|
|
@@ -20,8 +20,8 @@ import { c as connectFocusTrap, d as deactivateFocusTrap, a as activateFocusTrap
|
|
|
20
20
|
import { g as guid } from './guid-b75a5f7b.js';
|
|
21
21
|
import { g as getIconScale } from './component-edd2c3cd.js';
|
|
22
22
|
import { V as Validation } from './Validation-ea480265.js';
|
|
23
|
-
import { l as loadModules } from './loadModules-
|
|
24
|
-
import { g as getMessages } from './locale-
|
|
23
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
24
|
+
import { g as getMessages } from './locale-4cab280d.js';
|
|
25
25
|
import { g as getMode } from './mode-66911cb5.js';
|
|
26
26
|
import './resources-8834f920.js';
|
|
27
27
|
import './debounce-229b1a22.js';
|
|
@@ -29,7 +29,7 @@ import './browser-d60104bd.js';
|
|
|
29
29
|
import './observers-d04d1da9.js';
|
|
30
30
|
import './esri-loader-1b324844.js';
|
|
31
31
|
import './_commonjsHelpers-0f74c230.js';
|
|
32
|
-
import './languageUtil-
|
|
32
|
+
import './languageUtil-035e7728.js';
|
|
33
33
|
|
|
34
34
|
/*!
|
|
35
35
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
@@ -1780,9 +1780,10 @@ const InstantAppsFilterList = class {
|
|
|
1780
1780
|
};
|
|
1781
1781
|
InstantAppsFilterList.style = instantAppsFilterListCss;
|
|
1782
1782
|
|
|
1783
|
-
const instantAppsSocialShareCss = ":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}";
|
|
1783
|
+
const instantAppsSocialShareCss = ":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}";
|
|
1784
1784
|
|
|
1785
1785
|
const base = 'instant-apps-social-share';
|
|
1786
|
+
const CALCITE_MODE_DARK = '.calcite-mode-dark';
|
|
1786
1787
|
const CSS = {
|
|
1787
1788
|
base,
|
|
1788
1789
|
dialog: `${base}__dialog`,
|
|
@@ -1800,6 +1801,10 @@ const CSS = {
|
|
|
1800
1801
|
vertical: `${base}__layout--vertical`,
|
|
1801
1802
|
horizontal: `${base}__layout--horizontal`,
|
|
1802
1803
|
},
|
|
1804
|
+
xLogo: {
|
|
1805
|
+
light: `${base}__x-logo--light`,
|
|
1806
|
+
dark: `${base}__x-logo--dark`,
|
|
1807
|
+
},
|
|
1803
1808
|
success: {
|
|
1804
1809
|
container: `${base}__success`,
|
|
1805
1810
|
header: `${base}__success-header`,
|
|
@@ -1827,7 +1832,7 @@ const CSS = {
|
|
|
1827
1832
|
};
|
|
1828
1833
|
const SOCIAL_URL_TEMPLATES = {
|
|
1829
1834
|
facebook: 'https://www.facebook.com/sharer/sharer.php?u={url}',
|
|
1830
|
-
|
|
1835
|
+
x: 'https://x.com/intent/post?url={url}',
|
|
1831
1836
|
linkedIn: 'https://www.linkedin.com/sharing/share-offsite/?url={url}',
|
|
1832
1837
|
};
|
|
1833
1838
|
const SHORTEN_API = 'https://arcg.is/prod/shorten';
|
|
@@ -2006,7 +2011,7 @@ const InstantAppsSocialShare = class {
|
|
|
2006
2011
|
return (h("ul", { ref: el => (this.shareListRef = el), class: CSS.options, role: "menu" }, h("li", { id: "copyToClipboard", onClick: this.handleShareItem.bind(this, 'link'), onKeyDown: this.handleOptionKeyDown('link'), role: "menuitem", tabindex: "0" }, h("span", { class: CSS.icon }, h("calcite-icon", { icon: "link", scale: this.scale })), h("span", { class: `${CSS.optionText}${optionText_RTL}` }, (_b = options === null || options === void 0 ? void 0 : options.link) === null || _b === void 0 ? void 0 : _b.label)), this.socialMedia
|
|
2007
2012
|
? [
|
|
2008
2013
|
h("li", { onClick: this.handleShareItem.bind(this, 'facebook'), onKeyDown: this.handleOptionKeyDown('facebook'), role: "menuitem", tabindex: "0" }, h("span", { class: CSS.icon }, this.renderFacebookIcon()), h("span", { class: `${CSS.optionText}${optionText_RTL}` }, (_c = options === null || options === void 0 ? void 0 : options.facebook) === null || _c === void 0 ? void 0 : _c.label)),
|
|
2009
|
-
h("li", { onClick: this.handleShareItem.bind(this, '
|
|
2014
|
+
h("li", { onClick: this.handleShareItem.bind(this, 'x'), onKeyDown: this.handleOptionKeyDown('x'), role: "menuitem", tabindex: "0" }, h("span", { class: CSS.icon }, this.renderXIcon()), h("span", { class: `${CSS.optionText}${optionText_RTL}` }, "X")),
|
|
2010
2015
|
h("li", { onClick: this.handleShareItem.bind(this, 'linkedIn'), onKeyDown: this.handleOptionKeyDown('linkedIn'), role: "menuitem", tabindex: "0" }, h("span", { class: CSS.icon }, this.renderLinkedInIcon()), h("span", { class: `${CSS.optionText}${optionText_RTL}` }, (_d = options === null || options === void 0 ? void 0 : options.linkedIn) === null || _d === void 0 ? void 0 : _d.label)),
|
|
2011
2016
|
]
|
|
2012
2017
|
: null));
|
|
@@ -2023,8 +2028,9 @@ const InstantAppsSocialShare = class {
|
|
|
2023
2028
|
renderFacebookIcon() {
|
|
2024
2029
|
return (h("svg", { height: "100%", style: { fillRule: 'evenodd', clipRule: 'evenodd', strokeLinejoin: 'round', strokeMiterlimit: '2' }, version: "1.1", viewBox: "0 0 512 512", width: "100%", xmlns: "http://www.w3.org/2000/svg" }, h("g", null, h("path", { d: "M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z", style: { fill: '#1877f2', fillRule: 'nonzero' } }), h("path", { d: "M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z", style: { fill: '#fff', fillRule: 'nonzero' } }))));
|
|
2025
2030
|
}
|
|
2026
|
-
|
|
2027
|
-
|
|
2031
|
+
renderXIcon() {
|
|
2032
|
+
const isCalciteModeDark = !!this.el.closest(CALCITE_MODE_DARK);
|
|
2033
|
+
return (h("svg", { class: isCalciteModeDark ? CSS.xLogo.dark : CSS.xLogo.light, width: "1200", height: "1227", viewBox: "0 0 1200 1227", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { height: "400", style: { fill: 'none' }, width: "400", x: "56", y: "56" }), h("path", { d: "M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z", fill: isCalciteModeDark ? 'white' : 'black' })));
|
|
2028
2034
|
}
|
|
2029
2035
|
renderLinkedInIcon() {
|
|
2030
2036
|
return (h("svg", { height: "100%", style: { fillRule: 'evenodd', clipRule: 'evenodd', strokeLinejoin: 'round', strokeMiterlimit: '2' }, version: "1.1", viewBox: "0 0 512 512", width: "100%", xmlns: "http://www.w3.org/2000/svg" }, h("g", { id: "g5891" }, h("path", { d: "M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z", id: "background", style: { fill: '#2867b2' } }), h("g", { id: "shapes" }, h("rect", { height: "257.962", id: "rect11", style: { fill: '#fff' }, width: "85.76", x: "61.053", y: "178.667" }), h("path", { d: "M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z", id: "path13-0", style: { fill: '#fff', fillRule: 'nonzero' } }), h("path", { d: "M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z", id: "path15", style: { fill: '#fff', fillRule: 'nonzero' } })))));
|
|
@@ -2090,7 +2096,7 @@ const InstantAppsSocialShare = class {
|
|
|
2090
2096
|
setTimeout(() => this.closePopover(), 2000);
|
|
2091
2097
|
return;
|
|
2092
2098
|
case 'facebook':
|
|
2093
|
-
case '
|
|
2099
|
+
case 'x':
|
|
2094
2100
|
case 'linkedIn':
|
|
2095
2101
|
let socialWin;
|
|
2096
2102
|
if (isSafari) {
|
|
@@ -2102,7 +2108,7 @@ const InstantAppsSocialShare = class {
|
|
|
2102
2108
|
const urlData = {
|
|
2103
2109
|
url: encodeURI(urlToUse),
|
|
2104
2110
|
};
|
|
2105
|
-
const data = type === '
|
|
2111
|
+
const data = type === 'x' ? Object.assign(Object.assign({}, urlData), { text: this.shareText }) : urlData;
|
|
2106
2112
|
const [intl] = await loadModules(['esri/intl']);
|
|
2107
2113
|
const url = intl.substitute(SOCIAL_URL_TEMPLATES[type], data);
|
|
2108
2114
|
if (this.mode === 'popover') {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-164d485a.js';
|
|
7
7
|
import { g as getLocaleComponentStrings, l as loadModules } from './locale-bcbea4ef.js';
|
|
8
8
|
import { q as queryFeaturesByID, g as getLayerOrTable, c as goToSelection, e as queryAllIds, f as queryFeatureIds, i as queryFeaturesByGlobalID } from './mapViewUtils-20504620.js';
|
|
9
|
-
import { d as downloadCSV } from './downloadUtils-
|
|
9
|
+
import { d as downloadCSV } from './downloadUtils-0c13073b.js';
|
|
10
10
|
import './esri-loader-1b324844.js';
|
|
11
11
|
import './_commonjsHelpers-0f74c230.js';
|
|
12
12
|
import './interfaces-586e863c.js';
|
|
@@ -1508,7 +1508,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
|
1508
1508
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1509
1509
|
* ====================================================================
|
|
1510
1510
|
*/
|
|
1511
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-
|
|
1511
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-ad250bc6.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
|
1512
1512
|
/** ====================================================================
|
|
1513
1513
|
* @license
|
|
1514
1514
|
* jsPDF XMP metadata plugin
|
|
@@ -2359,7 +2359,11 @@ const lineSeparatorChar = "|";
|
|
|
2359
2359
|
* @param exportInfos Key details about what to export (ids, layer, and selectionSetNames)
|
|
2360
2360
|
* @param formatUsingLayerPopup When true, the layer's popup is used to choose attributes for each column; when false,
|
|
2361
2361
|
* all attributes are exported
|
|
2362
|
-
* @param includeHeaderNames Add
|
|
2362
|
+
* @param includeHeaderNames Add a heading entries at the beginning of the list of generated labels
|
|
2363
|
+
* @param isCSVExport Indicates if the export is for a CSV file
|
|
2364
|
+
* @param fields Fields to include in the export
|
|
2365
|
+
* @param useFieldAliasNames Indicates if field alias names should be used in the export
|
|
2366
|
+
* @param filterFields Indicates if fields should be filtered
|
|
2363
2367
|
* @returns selectionSetNames that will be used for export filenames
|
|
2364
2368
|
*/
|
|
2365
2369
|
async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = true, includeHeaderNames = false, isCSVExport = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
@@ -2385,6 +2389,9 @@ async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = tr
|
|
|
2385
2389
|
* all attributes are exported
|
|
2386
2390
|
* @param removeDuplicates When true a single label is generated when multiple featues have a shared address value
|
|
2387
2391
|
* @param addColumnTitle Indicates if column headings should be included in output
|
|
2392
|
+
* @param fields Fields to include in the export
|
|
2393
|
+
* @param useFieldAliasNames Indicates if field alias names should be used in the export
|
|
2394
|
+
* @param filterFields Indicates if fields should be filtered
|
|
2388
2395
|
* @returns Promise resolving when function is done
|
|
2389
2396
|
*/
|
|
2390
2397
|
async function downloadCSV(webmap, exportInfos, formatUsingLayerPopup, removeDuplicates = false, addColumnTitle = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
@@ -2623,6 +2630,30 @@ function _createFilename(selectionSetNames) {
|
|
|
2623
2630
|
const title = selectionSetNames.length > 0 ? selectionSetNames.join(", ") : "download";
|
|
2624
2631
|
return title;
|
|
2625
2632
|
}
|
|
2633
|
+
/**
|
|
2634
|
+
* Creates headings from a label format.
|
|
2635
|
+
*
|
|
2636
|
+
* @param labelFormat Format for label
|
|
2637
|
+
* @returns A list of headings, with one heading for each line in the label format
|
|
2638
|
+
*/
|
|
2639
|
+
function _extractHeaderNames(labelFormat) {
|
|
2640
|
+
// Split the format into lines
|
|
2641
|
+
const lines = labelFormat.split(lineSeparatorChar);
|
|
2642
|
+
// Generate a header for each line
|
|
2643
|
+
const headerNames = lines.map((line, i) => {
|
|
2644
|
+
// Find the field names in the line
|
|
2645
|
+
const fieldNameSyms = line.match(/\{[^\}]*\}/g);
|
|
2646
|
+
// Extract the field names from the symbols; if there are no symbols, use a default name; if a field name
|
|
2647
|
+
// is an Arcade expression, extract the expression name
|
|
2648
|
+
return fieldNameSyms
|
|
2649
|
+
? fieldNameSyms
|
|
2650
|
+
.map(fieldName => fieldName.substring(1, fieldName.length - 1))
|
|
2651
|
+
.map(fieldName => fieldName.startsWith("expression/") ? fieldName.substring(fieldName.indexOf("/") + 1) : fieldName)
|
|
2652
|
+
.join("__")
|
|
2653
|
+
: `column_${i + 1}`;
|
|
2654
|
+
});
|
|
2655
|
+
return headerNames;
|
|
2656
|
+
}
|
|
2626
2657
|
/**
|
|
2627
2658
|
* Extracts Arcade expression references from the lines of a label format.
|
|
2628
2659
|
*
|
|
@@ -2756,7 +2787,7 @@ async function _getLabelFormat(webmap, layer, formatUsingLayerPopup) {
|
|
|
2756
2787
|
webmapLayers = webmapLayers.filter((webmapLayer) => webmapLayer.type === "feature" && webmapLayer.layerId === layerRelationship.relatedTableId);
|
|
2757
2788
|
if (webmapLayers.length > 0) {
|
|
2758
2789
|
labelFormatProps = await _getLabelFormat(webmap, webmapLayers[0], formatUsingLayerPopup);
|
|
2759
|
-
labelFormatProps.relationshipId = relationshipId;
|
|
2790
|
+
labelFormatProps.relationshipId = relationshipId.toString();
|
|
2760
2791
|
}
|
|
2761
2792
|
else {
|
|
2762
2793
|
// Related layer info is not in webmap; get the label info from the related layer
|
|
@@ -2794,7 +2825,7 @@ async function _getLabelFormat(webmap, layer, formatUsingLayerPopup) {
|
|
|
2794
2825
|
}
|
|
2795
2826
|
else {
|
|
2796
2827
|
labelFormatProps = await labelFormatPropsPromise;
|
|
2797
|
-
labelFormatProps.relationshipId = relationshipId;
|
|
2828
|
+
labelFormatProps.relationshipId = relationshipId.toString();
|
|
2798
2829
|
}
|
|
2799
2830
|
}
|
|
2800
2831
|
}
|
|
@@ -2921,7 +2952,7 @@ function _prepareAttributeValue(attributeValue, attributeType, attributeDomain,
|
|
|
2921
2952
|
* @param ids List of ids to download
|
|
2922
2953
|
* @param formatUsingLayerPopup When true, the layer's popup is used to choose attributes for each column; when false,
|
|
2923
2954
|
* all attributes are exported
|
|
2924
|
-
* @param includeHeaderNames Add
|
|
2955
|
+
* @param includeHeaderNames Add a heading entries at the beginning of the list of generated labels
|
|
2925
2956
|
* @returns Promise resolving when function is done
|
|
2926
2957
|
*/
|
|
2927
2958
|
async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true, includeHeaderNames = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
@@ -3026,7 +3057,7 @@ async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true,
|
|
|
3026
3057
|
* @param featureSet Features to convert to labels
|
|
3027
3058
|
* @param attributeTypes Type for each attribute in a feature
|
|
3028
3059
|
* @param attributeDomains Domains for each attribute in a feature
|
|
3029
|
-
* @param includeHeaderNames Add
|
|
3060
|
+
* @param includeHeaderNames Add a heading entries at the beginning of the list of generated labels
|
|
3030
3061
|
* @returns Promise resolving with list of labels, each of which is a list of label lines
|
|
3031
3062
|
*/
|
|
3032
3063
|
async function _prepareLabelsFromAll(featureSet, attributeTypes, attributeDomains, includeHeaderNames = false, useFieldAliasNames = false) {
|
|
@@ -3063,7 +3094,7 @@ async function _prepareLabelsFromAll(featureSet, attributeTypes, attributeDomain
|
|
|
3063
3094
|
* @param attributeDomains Domains for each attribute in a feature
|
|
3064
3095
|
* @param attributeFormats Formats for each attribute in a feature
|
|
3065
3096
|
* @param labelFormat Format for label
|
|
3066
|
-
* @param includeHeaderNames Add
|
|
3097
|
+
* @param includeHeaderNames Add a heading entries at the beginning of the list of generated labels
|
|
3067
3098
|
* @returns Promise resolving with list of labels, each of which is a list of label lines
|
|
3068
3099
|
*/
|
|
3069
3100
|
async function _prepareLabelsFromPattern(layer, featureSet, attributeOrigNames, attributeTypes, attributeDomains, attributeFormats, labelFormat, includeHeaderNames = false) {
|
|
@@ -3103,7 +3134,7 @@ async function _prepareLabelsFromPattern(layer, featureSet, attributeOrigNames,
|
|
|
3103
3134
|
}));
|
|
3104
3135
|
// Add header names
|
|
3105
3136
|
if (includeHeaderNames) {
|
|
3106
|
-
labels.unshift(
|
|
3137
|
+
labels.unshift(_extractHeaderNames(labelFormat));
|
|
3107
3138
|
}
|
|
3108
3139
|
return Promise.resolve(labels);
|
|
3109
3140
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { l as loadModules } from './loadModules-
|
|
6
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
7
7
|
import { c as createStore } from './index-477ea182.js';
|
|
8
8
|
|
|
9
9
|
async function getMergedEffect(presetLayerEffect, featureLayerView, type) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { a as commonjsGlobal, c as createCommonjsModule, d as getDefaultExportFromCjs } from './_commonjsHelpers-0f74c230.js';
|
|
7
|
-
import { _ as _typeof_1 } from './downloadUtils-
|
|
7
|
+
import { _ as _typeof_1 } from './downloadUtils-0c13073b.js';
|
|
8
8
|
import './index-164d485a.js';
|
|
9
9
|
import './locale-bcbea4ef.js';
|
|
10
10
|
import './esri-loader-1b324844.js';
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, F as Fragment } from './index-164d485a.js';
|
|
7
|
-
import { d as ESettingType, i as isCalciteModeDark, e as ECalciteMode, s as store, f as EInputType, E as EIcons, l as languageTranslatorState, h as getT9nData, c as getUIDataKeys } from './utils-
|
|
8
|
-
import './locale-
|
|
9
|
-
import './loadModules-
|
|
7
|
+
import { d as ESettingType, i as isCalciteModeDark, e as ECalciteMode, s as store, f as EInputType, E as EIcons, l as languageTranslatorState, h as getT9nData, c as getUIDataKeys } from './utils-78fe6e5b.js';
|
|
8
|
+
import './locale-4cab280d.js';
|
|
9
|
+
import './loadModules-7a5f1022.js';
|
|
10
10
|
import './esri-loader-1b324844.js';
|
|
11
11
|
import './_commonjsHelpers-0f74c230.js';
|
|
12
|
-
import './languageUtil-
|
|
12
|
+
import './languageUtil-035e7728.js';
|
|
13
13
|
import './index-477ea182.js';
|
|
14
14
|
|
|
15
15
|
const styles = `
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-164d485a.js';
|
|
7
|
-
import { l as loadModules } from './loadModules-
|
|
7
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
8
8
|
import './esri-loader-1b324844.js';
|
|
9
9
|
import './_commonjsHelpers-0f74c230.js';
|
|
10
10
|
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-164d485a.js';
|
|
7
|
-
import { g as getMessages } from './locale-
|
|
8
|
-
import { l as loadModules } from './loadModules-
|
|
7
|
+
import { g as getMessages } from './locale-4cab280d.js';
|
|
8
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
9
9
|
import { g as getMode } from './mode-66911cb5.js';
|
|
10
|
-
import './languageUtil-
|
|
10
|
+
import './languageUtil-035e7728.js';
|
|
11
11
|
import './esri-loader-1b324844.js';
|
|
12
12
|
import './_commonjsHelpers-0f74c230.js';
|
|
13
13
|
|
|
@@ -160,7 +160,7 @@ const printStyling = `
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.instant-apps-export-print .esri-legend--card__service-caption-text {
|
|
163
|
-
padding-bottom:
|
|
163
|
+
padding-bottom: 4px;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.instant-apps-export-print__compass-container {
|
|
@@ -593,8 +593,10 @@ const InstantAppsExport = class {
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
handleLegendSetup() {
|
|
596
|
+
var _a;
|
|
596
597
|
if (this.showIncludeLegend && this.view != null && this.includeMap && this.legendContainerEl != null) {
|
|
597
|
-
this.
|
|
598
|
+
const hasActiveLayers = this.legend != null && ((_a = this.legend.activeLayerInfos) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
599
|
+
this.legendContainerEl.style.display = this.includeLegend && hasActiveLayers ? 'block' : 'none';
|
|
598
600
|
}
|
|
599
601
|
}
|
|
600
602
|
handleWidgetCreation() {
|
|
@@ -602,11 +604,11 @@ const InstantAppsExport = class {
|
|
|
602
604
|
this.handleCompassCreation();
|
|
603
605
|
}
|
|
604
606
|
handleLegendCreation() {
|
|
605
|
-
var _a, _b, _c, _d;
|
|
607
|
+
var _a, _b, _c, _d, _e;
|
|
606
608
|
if (this.includeMap && this.view != null && this.showIncludeLegend && this.legendContainerEl != null) {
|
|
607
609
|
const map = this.view.map;
|
|
608
610
|
const legendMap = (_b = (_a = this.legend) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.map;
|
|
609
|
-
const checkId = ((_c = map === null || map === void 0 ? void 0 : map.portalItem) === null || _c === void 0 ? void 0 : _c.id)
|
|
611
|
+
const checkId = ((_c = map === null || map === void 0 ? void 0 : map.portalItem) === null || _c === void 0 ? void 0 : _c.id) != null && ((_d = map === null || map === void 0 ? void 0 : map.portalItem) === null || _d === void 0 ? void 0 : _d.id) === ((_e = legendMap === null || legendMap === void 0 ? void 0 : legendMap.portalItem) === null || _e === void 0 ? void 0 : _e.id);
|
|
610
612
|
if (!checkId) {
|
|
611
613
|
this.updateLegend();
|
|
612
614
|
}
|
|
@@ -615,13 +617,17 @@ const InstantAppsExport = class {
|
|
|
615
617
|
updateLegend() {
|
|
616
618
|
var _a;
|
|
617
619
|
(_a = this.view) === null || _a === void 0 ? void 0 : _a.when(async (view) => {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
+
if (this.legend != null) {
|
|
621
|
+
this.legend.destroy();
|
|
622
|
+
this.legend = null;
|
|
623
|
+
}
|
|
620
624
|
if (this.legendContainerEl != null) {
|
|
621
625
|
this.legendContainerEl.innerHTML = '';
|
|
626
|
+
const legendCont = document.createElement('div');
|
|
627
|
+
this.legendContainerEl.append(legendCont);
|
|
622
628
|
const [Legend] = await loadModules(['esri/widgets/Legend']);
|
|
623
629
|
this.legend = new Legend({
|
|
624
|
-
container:
|
|
630
|
+
container: legendCont,
|
|
625
631
|
view,
|
|
626
632
|
style: {
|
|
627
633
|
type: 'card',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-164d485a.js';
|
|
7
|
-
import { g as getElementDir } from './languageUtil-
|
|
7
|
+
import { g as getElementDir } from './languageUtil-035e7728.js';
|
|
8
8
|
import { S as Sanitizer } from './index-a1e91462.js';
|
|
9
9
|
import { w as widthBreakpoints } from './breakpoints-f0f1417d.js';
|
|
10
10
|
import { g as getFontFamily } from './styles-367380b5.js';
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { h, r as registerInstance, f as forceUpdate, g as getElement } from './index-164d485a.js';
|
|
7
|
-
import { h as handleFilterChange, a as generateData, s as store, i as interactiveLegendState, g as getTheme, v as validateInteractivity, b as getParentLegendElementInfoData, c as getCategoryData, d as checkNoneSelected, e as handleFeatureCount, f as createInteractiveLegendDataForLayer, u as updateStore, j as handleFilter, k as getIntLegendLayerData } from './helpers-
|
|
7
|
+
import { h as handleFilterChange, a as generateData, s as store, i as interactiveLegendState, g as getTheme, v as validateInteractivity, b as getParentLegendElementInfoData, c as getCategoryData, d as checkNoneSelected, e as handleFeatureCount, f as createInteractiveLegendDataForLayer, u as updateStore, j as handleFilter, k as getIntLegendLayerData } from './helpers-f9256189.js';
|
|
8
8
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0f74c230.js';
|
|
9
|
-
import { l as loadModules } from './loadModules-
|
|
9
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
10
10
|
import './index-477ea182.js';
|
|
11
11
|
import './esri-loader-1b324844.js';
|
|
12
12
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, f as forceUpdate, h, g as getElement, c as createEvent } from './index-164d485a.js';
|
|
7
|
-
import { l as loadModules } from './loadModules-
|
|
8
|
-
import { g as getTheme, i as interactiveLegendState, q as getCategoriesArray, r as checkNestedUniqueSymbol, t as calculateTotalFeatureCountForNestedSymbols, m as checkRelationshipRamp, w as calculateTotalCount, x as getNestedInfoData, k as getIntLegendLayerData, v as validateInteractivity } from './helpers-
|
|
7
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
8
|
+
import { g as getTheme, i as interactiveLegendState, q as getCategoriesArray, r as checkNestedUniqueSymbol, t as calculateTotalFeatureCountForNestedSymbols, m as checkRelationshipRamp, w as calculateTotalCount, x as getNestedInfoData, k as getIntLegendLayerData, v as validateInteractivity } from './helpers-f9256189.js';
|
|
9
9
|
import './esri-loader-1b324844.js';
|
|
10
10
|
import './_commonjsHelpers-0f74c230.js';
|
|
11
11
|
import './index-477ea182.js';
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-164d485a.js';
|
|
7
|
-
import { v as validateInteractivity, g as getTheme } from './helpers-
|
|
8
|
-
import './loadModules-
|
|
7
|
+
import { v as validateInteractivity, g as getTheme } from './helpers-f9256189.js';
|
|
8
|
+
import './loadModules-7a5f1022.js';
|
|
9
9
|
import './esri-loader-1b324844.js';
|
|
10
10
|
import './_commonjsHelpers-0f74c230.js';
|
|
11
11
|
import './index-477ea182.js';
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, f as forceUpdate, h, g as getElement, c as createEvent } from './index-164d485a.js';
|
|
7
|
-
import { g as getTheme, l as checkNestedUniqueSymbolLegendElement, s as store, i as interactiveLegendState, b as getParentLegendElementInfoData, z as zoomTo, m as checkRelationshipRamp, k as getIntLegendLayerData, n as showAllNestedUniqueSymbol, u as updateStore, o as showAll, p as getMergedEffect } from './helpers-
|
|
8
|
-
import { l as loadModules } from './loadModules-
|
|
7
|
+
import { g as getTheme, l as checkNestedUniqueSymbolLegendElement, s as store, i as interactiveLegendState, b as getParentLegendElementInfoData, z as zoomTo, m as checkRelationshipRamp, k as getIntLegendLayerData, n as showAllNestedUniqueSymbol, u as updateStore, o as showAll, p as getMergedEffect } from './helpers-f9256189.js';
|
|
8
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
9
9
|
import './index-477ea182.js';
|
|
10
10
|
import './esri-loader-1b324844.js';
|
|
11
11
|
import './_commonjsHelpers-0f74c230.js';
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, f as forceUpdate, h, g as getElement } from './index-164d485a.js';
|
|
7
|
-
import { l as loadModules } from './loadModules-
|
|
8
|
-
import { g as getMessages } from './locale-
|
|
9
|
-
import { g as getTheme } from './helpers-
|
|
7
|
+
import { l as loadModules } from './loadModules-7a5f1022.js';
|
|
8
|
+
import { g as getMessages } from './locale-4cab280d.js';
|
|
9
|
+
import { g as getTheme } from './helpers-f9256189.js';
|
|
10
10
|
import './esri-loader-1b324844.js';
|
|
11
11
|
import './_commonjsHelpers-0f74c230.js';
|
|
12
|
-
import './languageUtil-
|
|
12
|
+
import './languageUtil-035e7728.js';
|
|
13
13
|
import './index-477ea182.js';
|
|
14
14
|
|
|
15
15
|
const instantAppsInteractiveLegendCss = ".sc-instant-apps-interactive-legend-h{display:block;height:100%}.sc-instant-apps-interactive-legend-h .esri-legend.sc-instant-apps-interactive-legend{height:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1)}.sc-instant-apps-interactive-legend-h .esri-legend.esri-component.esri-widget.esri-widget--panel.sc-instant-apps-interactive-legend{margin:0}";
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-164d485a.js';
|
|
7
|
-
import { g as getMessages } from './locale-
|
|
8
|
-
import './loadModules-
|
|
7
|
+
import { g as getMessages } from './locale-4cab280d.js';
|
|
8
|
+
import './loadModules-7a5f1022.js';
|
|
9
9
|
import './esri-loader-1b324844.js';
|
|
10
10
|
import './_commonjsHelpers-0f74c230.js';
|
|
11
|
-
import './languageUtil-
|
|
11
|
+
import './languageUtil-035e7728.js';
|
|
12
12
|
|
|
13
13
|
const instantAppsKeyboardShortcutsCss = ":host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:0.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:0.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:0.5rem 0.75rem 0.5rem 0.75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(even){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:0.5em 0.7em;font-weight:400}";
|
|
14
14
|
|
|
@@ -79,7 +79,7 @@ const InstantAppsLandingPage = class {
|
|
|
79
79
|
fontFamily,
|
|
80
80
|
};
|
|
81
81
|
return (h("div", { style: this.backgroundImageSrc
|
|
82
|
-
? Object.assign(Object.assign({}, style), { backgroundSize: 'cover', backgroundImage: `url("${this.backgroundImageSrc}")`, backgroundRepeat: 'no-repeat' }) : style, class: `${CSS.BASE}${alignmentClass}${closed}${removeTransition}` }, h("div", { class: CSS.contentContainer }, this.renderIconImage(), this.renderTitleText(), this.renderSubtitleText(), this.renderDescriptionText()), h("div", { class: CSS.buttonContainer }, this.renderEntryButton(), h("slot", { name: "secondary-action" }))));
|
|
82
|
+
? Object.assign(Object.assign({}, style), { backgroundSize: 'cover', backgroundImage: `url("${this.backgroundImageSrc}")`, backgroundRepeat: 'no-repeat', backgroundPosition: 'center' }) : style, class: `${CSS.BASE}${alignmentClass}${closed}${removeTransition}` }, h("div", { class: CSS.contentContainer }, this.renderIconImage(), this.renderTitleText(), this.renderSubtitleText(), this.renderDescriptionText()), h("div", { class: CSS.buttonContainer }, this.renderEntryButton(), h("slot", { name: "secondary-action" }))));
|
|
83
83
|
}
|
|
84
84
|
renderIconImage() {
|
|
85
85
|
return this.iconImage ? h("img", { class: `${CSS.iconImage}${this.getIconImageScale()}`, src: this.iconImage, alt: this.iconImageAltText }) : null;
|