@esri/solutions-components 0.8.8 → 0.8.9
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/assets/t9n/crowdsource-reporter/resources.json +3 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_en.json +3 -1
- package/dist/cjs/{calcite-action-menu_2.cjs.entry.js → calcite-action-menu_3.cjs.entry.js} +114 -7
- package/dist/cjs/calcite-alert_4.cjs.entry.js +46 -5
- package/dist/cjs/{calcite-input-date-picker_3.cjs.entry.js → calcite-block_5.cjs.entry.js} +691 -13
- package/dist/cjs/{calcite-combobox_5.cjs.entry.js → calcite-combobox_3.cjs.entry.js} +876 -844
- package/dist/cjs/calcite-dropdown_4.cjs.entry.js +1023 -0
- package/dist/cjs/{calcite-flow_5.cjs.entry.js → calcite-flow_6.cjs.entry.js} +327 -2
- package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +122 -21
- package/dist/cjs/{downloadUtils-8b05d7cc.js → downloadUtils-dc349b1a.js} +2 -2
- package/dist/cjs/{index.es-e7587227.js → index.es-1830a1e6.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +8 -8
- package/dist/cjs/{mapViewUtils-3e0fa457.js → mapViewUtils-9dc05308.js} +11 -5
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/create-feature/create-feature.js +18 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +16 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +155 -35
- package/dist/collection/components/feature-details/feature-details.css +18 -0
- package/dist/collection/components/feature-details/feature-details.js +500 -0
- package/dist/collection/components/feature-details/test/feature-details.e2e.js +14 -0
- package/dist/collection/components/feature-details/test/feature-details.spec.js +22 -0
- package/dist/collection/components/feature-list/feature-list.js +14 -1
- package/dist/collection/components/info-card/info-card.css +15 -5
- package/dist/collection/components/info-card/info-card.js +178 -5
- package/dist/collection/components/layer-table/layer-table.js +2 -2
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +5 -5
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/demos/crowdsource-reporter.html +115 -1
- package/dist/collection/utils/mapViewUtils.js +11 -5
- package/dist/collection/utils/mapViewUtils.ts +13 -5
- package/dist/components/create-feature2.js +4 -0
- package/dist/components/crowdsource-reporter.js +270 -81
- package/dist/components/feature-details.d.ts +11 -0
- package/dist/components/feature-details.js +11 -0
- package/dist/components/feature-details2.js +449 -0
- package/dist/components/feature-list2.js +14 -1
- package/dist/components/info-card2.js +53 -5
- package/dist/components/layer-table2.js +2 -2
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-select-tools2.js +5 -5
- package/dist/components/mapViewUtils.js +11 -5
- package/dist/components/refine-selection2.js +1 -1
- package/dist/esm/{calcite-action-menu_2.entry.js → calcite-action-menu_3.entry.js} +118 -12
- package/dist/esm/calcite-alert_4.entry.js +46 -5
- package/dist/esm/{calcite-input-date-picker_3.entry.js → calcite-block_5.entry.js} +688 -12
- package/dist/esm/{calcite-combobox_5.entry.js → calcite-combobox_3.entry.js} +878 -844
- package/dist/esm/calcite-date-picker-day_3.entry.js +1 -1
- package/dist/esm/calcite-dropdown_4.entry.js +1016 -0
- package/dist/esm/{calcite-flow_5.entry.js → calcite-flow_6.entry.js} +327 -3
- package/dist/esm/card-manager_3.entry.js +5 -5
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +122 -21
- package/dist/esm/{date-5630530d.js → date-0c026a8b.js} +1 -1
- package/dist/esm/{downloadUtils-0c1e4d7b.js → downloadUtils-df4f21f6.js} +2 -2
- package/dist/esm/{index.es-286e3cfa.js → index.es-904fb846.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +8 -8
- package/dist/esm/{mapViewUtils-253178f1.js → mapViewUtils-2ec19fb0.js} +11 -5
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +115 -1
- package/dist/solutions-components/{p-813fd8a4.entry.js → p-29f518fd.entry.js} +2 -2
- package/dist/solutions-components/{p-13ca3b00.entry.js → p-452fd697.entry.js} +1 -1
- package/dist/solutions-components/p-511b1c91.entry.js +23 -0
- package/dist/solutions-components/p-577efb16.js +36 -0
- package/dist/solutions-components/{p-94de9279.js → p-5817d78c.js} +1 -1
- package/dist/solutions-components/p-602cd811.entry.js +17 -0
- package/dist/solutions-components/{p-15f9624a.entry.js → p-6557b703.entry.js} +1 -1
- package/dist/solutions-components/p-7269c49b.entry.js +6 -0
- package/dist/solutions-components/p-760bd17e.entry.js +6 -0
- package/dist/solutions-components/p-95fea07a.entry.js +17 -0
- package/dist/solutions-components/{p-212b02e7.js → p-ae4d86e8.js} +1 -1
- package/dist/solutions-components/{p-038fcd93.entry.js → p-c273ab7a.entry.js} +1 -1
- package/dist/solutions-components/p-d742b915.entry.js +29 -0
- package/dist/solutions-components/p-dfad61a8.entry.js +24 -0
- package/dist/solutions-components/{p-331b5d1e.js → p-fca434c8.js} +2 -2
- package/dist/solutions-components/p-fd82a00f.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +13 -5
- package/dist/types/components/create-feature/create-feature.d.ts +4 -4
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +91 -10
- package/dist/types/components/feature-details/feature-details.d.ts +151 -0
- package/dist/types/components/feature-list/feature-list.d.ts +6 -0
- package/dist/types/components/info-card/info-card.d.ts +33 -1
- package/dist/types/components.d.ts +129 -12
- package/dist/types/preact.d.ts +6 -1
- package/dist/types/utils/mapViewUtils.d.ts +5 -3
- package/package.json +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +0 -652
- package/dist/cjs/calcite-graph_2.cjs.entry.js +0 -1055
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -125
- package/dist/cjs/utils-7bc7f595.js +0 -64
- package/dist/esm/calcite-block_2.entry.js +0 -647
- package/dist/esm/calcite-graph_2.entry.js +0 -1050
- package/dist/esm/calcite-scrim.entry.js +0 -121
- package/dist/esm/utils-9fb4104a.js +0 -61
- package/dist/solutions-components/p-04c37d69.entry.js +0 -17
- package/dist/solutions-components/p-0b92e4b1.entry.js +0 -11
- package/dist/solutions-components/p-238d3b5f.entry.js +0 -6
- package/dist/solutions-components/p-3af79063.js +0 -36
- package/dist/solutions-components/p-80b11ec1.entry.js +0 -17
- package/dist/solutions-components/p-a3a11749.entry.js +0 -6
- package/dist/solutions-components/p-aec06ce4.entry.js +0 -18
- package/dist/solutions-components/p-bfdf89c2.js +0 -11
- package/dist/solutions-components/p-c4ff3b52.entry.js +0 -17
- package/dist/solutions-components/p-ced067bd.entry.js +0 -17
- package/dist/solutions-components/p-d136eab0.entry.js +0 -23
- package/dist/solutions-components/p-e0446d5b.entry.js +0 -6
@@ -1,125 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
'use strict';
|
7
|
-
|
8
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
9
|
-
|
10
|
-
const index = require('./index-105cf2b9.js');
|
11
|
-
const locale = require('./locale-d237c9d5.js');
|
12
|
-
const t9n = require('./t9n-993a84de.js');
|
13
|
-
const observers = require('./observers-db4527e4.js');
|
14
|
-
const dom = require('./dom-c9c2c835.js');
|
15
|
-
require('./key-c5504030.js');
|
16
|
-
require('./guid-ae73cd27.js');
|
17
|
-
require('./resources-9447c777.js');
|
18
|
-
|
19
|
-
/*!
|
20
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
21
|
-
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
22
|
-
* v2.4.0
|
23
|
-
*/
|
24
|
-
const CSS = {
|
25
|
-
scrim: "scrim",
|
26
|
-
content: "content",
|
27
|
-
};
|
28
|
-
const BREAKPOINTS = {
|
29
|
-
s: 72,
|
30
|
-
// medium is assumed default.
|
31
|
-
l: 480, // Greater than or equal to 480px.
|
32
|
-
};
|
33
|
-
|
34
|
-
const scrimCss = ":host{--calcite-scrim-background:var(--calcite-color-transparent-scrim);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}";
|
35
|
-
|
36
|
-
const Scrim = class {
|
37
|
-
constructor(hostRef) {
|
38
|
-
index.registerInstance(this, hostRef);
|
39
|
-
this.resizeObserver = observers.createObserver("resize", () => this.handleResize());
|
40
|
-
// --------------------------------------------------------------------------
|
41
|
-
//
|
42
|
-
// Private Methods
|
43
|
-
//
|
44
|
-
// --------------------------------------------------------------------------
|
45
|
-
this.handleDefaultSlotChange = (event) => {
|
46
|
-
this.hasContent = dom.slotChangeHasContent(event);
|
47
|
-
};
|
48
|
-
this.storeLoaderEl = (el) => {
|
49
|
-
this.loaderEl = el;
|
50
|
-
this.handleResize();
|
51
|
-
};
|
52
|
-
this.loading = false;
|
53
|
-
this.messages = undefined;
|
54
|
-
this.messageOverrides = undefined;
|
55
|
-
this.loaderScale = undefined;
|
56
|
-
this.defaultMessages = undefined;
|
57
|
-
this.effectiveLocale = "";
|
58
|
-
this.hasContent = false;
|
59
|
-
}
|
60
|
-
onMessagesChange() {
|
61
|
-
/* wired up by t9n util */
|
62
|
-
}
|
63
|
-
effectiveLocaleChange() {
|
64
|
-
t9n.updateMessages(this, this.effectiveLocale);
|
65
|
-
}
|
66
|
-
//--------------------------------------------------------------------------
|
67
|
-
//
|
68
|
-
// Lifecycle
|
69
|
-
//
|
70
|
-
//--------------------------------------------------------------------------
|
71
|
-
connectedCallback() {
|
72
|
-
var _a;
|
73
|
-
locale.connectLocalized(this);
|
74
|
-
t9n.connectMessages(this);
|
75
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
76
|
-
}
|
77
|
-
async componentWillLoad() {
|
78
|
-
await t9n.setUpMessages(this);
|
79
|
-
}
|
80
|
-
disconnectedCallback() {
|
81
|
-
var _a;
|
82
|
-
locale.disconnectLocalized(this);
|
83
|
-
t9n.disconnectMessages(this);
|
84
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
85
|
-
}
|
86
|
-
// --------------------------------------------------------------------------
|
87
|
-
//
|
88
|
-
// Render Method
|
89
|
-
//
|
90
|
-
// --------------------------------------------------------------------------
|
91
|
-
render() {
|
92
|
-
const { hasContent, loading, messages } = this;
|
93
|
-
return (index.h("div", { class: CSS.scrim }, loading ? (index.h("calcite-loader", { label: messages.loading, scale: this.loaderScale,
|
94
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
95
|
-
ref: this.storeLoaderEl })) : null, index.h("div", { class: CSS.content, hidden: !hasContent }, index.h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
96
|
-
}
|
97
|
-
getScale(size) {
|
98
|
-
if (size < BREAKPOINTS.s) {
|
99
|
-
return "s";
|
100
|
-
}
|
101
|
-
else if (size >= BREAKPOINTS.l) {
|
102
|
-
return "l";
|
103
|
-
}
|
104
|
-
else {
|
105
|
-
return "m";
|
106
|
-
}
|
107
|
-
}
|
108
|
-
handleResize() {
|
109
|
-
var _a;
|
110
|
-
const { loaderEl, el } = this;
|
111
|
-
if (!loaderEl) {
|
112
|
-
return;
|
113
|
-
}
|
114
|
-
this.loaderScale = this.getScale((_a = Math.min(el.clientHeight, el.clientWidth)) !== null && _a !== void 0 ? _a : 0);
|
115
|
-
}
|
116
|
-
static get assetsDirs() { return ["assets"]; }
|
117
|
-
get el() { return index.getElement(this); }
|
118
|
-
static get watchers() { return {
|
119
|
-
"messageOverrides": ["onMessagesChange"],
|
120
|
-
"effectiveLocale": ["effectiveLocaleChange"]
|
121
|
-
}; }
|
122
|
-
};
|
123
|
-
Scrim.style = scrimCss;
|
124
|
-
|
125
|
-
exports.calcite_scrim = Scrim;
|
@@ -1,64 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
'use strict';
|
7
|
-
|
8
|
-
const index = require('./index-105cf2b9.js');
|
9
|
-
const date = require('./date-9de4dd6f.js');
|
10
|
-
const locale = require('./locale-d237c9d5.js');
|
11
|
-
|
12
|
-
/*!
|
13
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
14
|
-
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
15
|
-
* v2.4.0
|
16
|
-
*/
|
17
|
-
/**
|
18
|
-
* CLDR cache.
|
19
|
-
* Exported for testing purposes.
|
20
|
-
*
|
21
|
-
* @private
|
22
|
-
*/
|
23
|
-
const translationCache = {};
|
24
|
-
/**
|
25
|
-
* CLDR request cache.
|
26
|
-
* Exported for testing purposes.
|
27
|
-
*
|
28
|
-
* @private
|
29
|
-
*/
|
30
|
-
const requestCache = {};
|
31
|
-
/**
|
32
|
-
* Fetch calendar data for a given locale from list of supported languages
|
33
|
-
*
|
34
|
-
* @param lang
|
35
|
-
* @public
|
36
|
-
*/
|
37
|
-
async function getLocaleData(lang) {
|
38
|
-
const locale$1 = locale.getSupportedLocale(lang);
|
39
|
-
if (translationCache[locale$1]) {
|
40
|
-
return translationCache[locale$1];
|
41
|
-
}
|
42
|
-
if (!requestCache[locale$1]) {
|
43
|
-
requestCache[locale$1] = fetch(index.getAssetPath(`./assets/date-picker/nls/${locale$1}.json`))
|
44
|
-
.then((resp) => resp.json())
|
45
|
-
.catch(() => {
|
46
|
-
console.error(`Translations for "${locale$1}" not found or invalid, falling back to english`);
|
47
|
-
return getLocaleData("en");
|
48
|
-
});
|
49
|
-
}
|
50
|
-
const data = await requestCache[locale$1];
|
51
|
-
translationCache[locale$1] = data;
|
52
|
-
return data;
|
53
|
-
}
|
54
|
-
/**
|
55
|
-
* Maps value to valueAsDate
|
56
|
-
*
|
57
|
-
* @param value
|
58
|
-
*/
|
59
|
-
function getValueAsDateRange(value) {
|
60
|
-
return value.map((v, index) => date.dateFromISO(v, index === 1));
|
61
|
-
}
|
62
|
-
|
63
|
-
exports.getLocaleData = getLocaleData;
|
64
|
-
exports.getValueAsDateRange = getValueAsDateRange;
|