@esri/solutions-components 0.6.6 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_4.cjs.entry.js +622 -0
- package/dist/cjs/card-manager_4.cjs.entry.js +91 -37
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -0
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +166 -0
- package/dist/collection/components/basemap-gallery/test/basemap-gallery.e2e.js +29 -0
- package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +37 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +43 -2
- package/dist/collection/components/layer-table/layer-table.js +99 -30
- package/dist/collection/components/map-card/map-card.css +0 -7
- package/dist/collection/components/map-card/map-card.js +12 -7
- package/dist/collection/components/map-search/map-search.css +24 -0
- package/dist/collection/components/map-search/map-search.js +321 -0
- package/dist/collection/components/map-search/test/map-search.e2e.js +29 -0
- package/dist/collection/components/map-search/test/map-search.spec.js +37 -0
- package/dist/collection/components/map-tools/map-tools.js +139 -14
- package/dist/collection/demos/crowdsource-manager.html +3 -3
- package/dist/collection/utils/interfaces.ts +2 -0
- package/dist/components/action-bar.js +1 -0
- package/dist/components/action-group.js +1 -0
- package/dist/components/action-menu.js +1 -0
- package/dist/components/action.js +1 -0
- package/dist/components/alert.js +1 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/basemap-gallery.d.ts +11 -0
- package/dist/components/basemap-gallery.js +11 -0
- package/dist/components/basemap-gallery2.js +118 -0
- package/dist/components/buffer-tools2.js +1 -0
- package/dist/components/button.js +1 -0
- package/dist/components/calcite-accordion-item.js +1 -0
- package/dist/components/calcite-accordion.js +1 -0
- package/dist/components/calcite-action-pad.js +1 -0
- package/dist/components/calcite-block-section.js +1 -0
- package/dist/components/calcite-block.js +1 -0
- package/dist/components/calcite-card.js +1 -0
- package/dist/components/calcite-chip-group.js +1 -0
- package/dist/components/calcite-color-picker.js +1 -0
- package/dist/components/calcite-combobox-item-group.js +1 -0
- package/dist/components/calcite-fab.js +1 -0
- package/dist/components/calcite-flow-item.js +1 -0
- package/dist/components/calcite-flow.js +1 -0
- package/dist/components/calcite-inline-editable.js +1 -0
- package/dist/components/calcite-input-date-picker.js +1 -0
- package/dist/components/calcite-input-time-picker.js +1 -0
- package/dist/components/calcite-input-time-zone.js +1 -0
- package/dist/components/calcite-list-item-group.js +1 -0
- package/dist/components/calcite-menu-item.js +1 -0
- package/dist/components/calcite-modal.js +1 -0
- package/dist/components/calcite-navigation-logo.js +1 -0
- package/dist/components/calcite-navigation-user.js +1 -0
- package/dist/components/calcite-navigation.js +1 -0
- package/dist/components/calcite-option-group.js +1 -0
- package/dist/components/calcite-pagination.js +1 -0
- package/dist/components/calcite-pick-list-group.js +1 -0
- package/dist/components/calcite-pick-list.js +1 -0
- package/dist/components/calcite-radio-button-group.js +1 -0
- package/dist/components/calcite-radio-button.js +1 -0
- package/dist/components/calcite-rating.js +1 -0
- package/dist/components/calcite-shell-center-row.js +1 -0
- package/dist/components/calcite-sortable-list.js +1 -0
- package/dist/components/calcite-split-button.js +1 -0
- package/dist/components/calcite-stepper-item.js +1 -0
- package/dist/components/calcite-stepper.js +1 -0
- package/dist/components/calcite-text-area.js +1 -0
- package/dist/components/calcite-tile-select-group.js +1 -0
- package/dist/components/calcite-tile-select.js +1 -0
- package/dist/components/calcite-tip-group.js +1 -0
- package/dist/components/calcite-tip-manager.js +1 -0
- package/dist/components/calcite-tip.js +1 -0
- package/dist/components/card-manager2.js +1 -0
- package/dist/components/checkbox.js +1 -0
- package/dist/components/chip.js +1 -0
- package/dist/components/color-picker-hex-input.js +1 -0
- package/dist/components/color-picker-swatch.js +1 -0
- package/dist/components/combobox-item.js +1 -0
- package/dist/components/combobox.js +1 -0
- package/dist/components/crowdsource-manager.js +95 -78
- package/dist/components/crowdsource-reporter.js +1 -0
- package/dist/components/date-picker-day.js +1 -0
- package/dist/components/date-picker-month-header.js +1 -0
- package/dist/components/date-picker-month.js +1 -0
- package/dist/components/date-picker.js +1 -0
- package/dist/components/deduct-calculator2.js +1 -0
- package/dist/components/dropdown-group.js +1 -0
- package/dist/components/dropdown-item.js +1 -0
- package/dist/components/dropdown.js +1 -0
- package/dist/components/edit-card2.js +1 -0
- package/dist/components/esri-loader.js +301 -0
- package/dist/components/filter2.js +1 -0
- package/dist/components/graph.js +1 -0
- package/dist/components/handle.js +1 -0
- package/dist/components/icon.js +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/info-card2.js +1 -0
- package/dist/components/input-message.js +1 -0
- package/dist/components/input-number.js +1 -0
- package/dist/components/input-text.js +1 -0
- package/dist/components/input.js +1 -0
- package/dist/components/json-editor2.js +1 -0
- package/dist/components/label2.js +1 -0
- package/dist/components/layer-table2.js +83 -31
- package/dist/components/layout-manager2.js +1 -0
- package/dist/components/link.js +1 -0
- package/dist/components/list-item.js +1 -0
- package/dist/components/list-item2.js +1 -0
- package/dist/components/list.js +1 -0
- package/dist/components/loadModules.js +1 -1
- package/dist/components/loader.js +1 -0
- package/dist/components/locale.js +2 -295
- package/dist/components/map-card2.js +61 -42
- package/dist/components/map-draw-tools2.js +1 -0
- package/dist/components/map-layer-picker2.js +1 -0
- package/dist/components/map-picker2.js +1 -0
- package/dist/components/map-search.d.ts +11 -0
- package/dist/components/map-search.js +11 -0
- package/dist/components/map-search2.js +201 -0
- package/dist/components/map-select-tools2.js +1 -0
- package/dist/components/map-tools2.js +141 -30
- package/dist/components/menu.js +1 -0
- package/dist/components/notice.js +1 -0
- package/dist/components/option.js +1 -0
- package/dist/components/panel.js +1 -0
- package/dist/components/pci-calculator.js +1 -0
- package/dist/components/pdf-download2.js +1 -0
- package/dist/components/pick-list-item.js +1 -0
- package/dist/components/popover.js +1 -0
- package/dist/components/progress.js +1 -0
- package/dist/components/public-notification.js +1 -0
- package/dist/components/refine-selection2.js +1 -0
- package/dist/components/scrim.js +1 -0
- package/dist/components/segmented-control-item.js +1 -0
- package/dist/components/segmented-control.js +1 -0
- package/dist/components/select.js +1 -0
- package/dist/components/shell-panel.js +1 -0
- package/dist/components/shell.js +1 -0
- package/dist/components/slider.js +1 -0
- package/dist/components/solution-configuration.js +1 -0
- package/dist/components/solution-contents2.js +1 -0
- package/dist/components/solution-item-details2.js +1 -0
- package/dist/components/solution-item-icon2.js +1 -0
- package/dist/components/solution-item-sharing2.js +1 -0
- package/dist/components/solution-item2.js +1 -0
- package/dist/components/solution-organization-variables2.js +1 -0
- package/dist/components/solution-resource-item2.js +1 -0
- package/dist/components/solution-spatial-ref2.js +1 -0
- package/dist/components/solution-template-data2.js +1 -0
- package/dist/components/solution-variables2.js +1 -0
- package/dist/components/stack.js +1 -0
- package/dist/components/store-manager.js +1 -0
- package/dist/components/switch.js +1 -0
- package/dist/components/tab-nav.js +1 -0
- package/dist/components/tab-title.js +1 -0
- package/dist/components/tab.js +1 -0
- package/dist/components/tabs.js +1 -0
- package/dist/components/tile.js +1 -0
- package/dist/components/time-picker.js +1 -0
- package/dist/components/tooltip.js +1 -0
- package/dist/components/tree-item.js +1 -0
- package/dist/components/tree.js +1 -0
- package/dist/components/value-list-item.js +1 -0
- package/dist/components/value-list.js +1 -0
- package/dist/esm/basemap-gallery_4.entry.js +615 -0
- package/dist/esm/card-manager_4.entry.js +91 -37
- package/dist/esm/crowdsource-manager.entry.js +4 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/solutions-components.js +2 -2
- package/dist/solutions-components/demos/crowdsource-manager.html +3 -3
- package/dist/solutions-components/p-55aefaa8.entry.js +6 -0
- package/dist/solutions-components/p-5b5a6ac8.entry.js +6 -0
- package/dist/solutions-components/p-a6c85bd7.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +2 -0
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +64 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
- package/dist/types/components/layer-table/layer-table.d.ts +24 -2
- package/dist/types/components/map-card/map-card.d.ts +10 -2
- package/dist/types/components/map-search/map-search.d.ts +107 -0
- package/dist/types/components/map-tools/map-tools.d.ts +68 -5
- package/dist/types/components.d.ts +122 -0
- package/dist/types/preact.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/types/utils/interfaces.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/map-picker_2.cjs.entry.js +0 -264
- package/dist/esm/map-picker_2.entry.js +0 -259
- package/dist/solutions-components/p-1990d9c8.entry.js +0 -6
- package/dist/solutions-components/p-40bde8b2.entry.js +0 -6
- package/dist/solutions-components/p-b921aa1a.entry.js +0 -6
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface BasemapGallery extends Components.BasemapGallery, HTMLElement {}
|
4
|
+
export const BasemapGallery: {
|
5
|
+
prototype: BasemapGallery;
|
6
|
+
new (): BasemapGallery;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1,11 @@
|
|
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
|
+
import { B as BasemapGallery$1, d as defineCustomElement$1 } from './basemap-gallery2.js';
|
7
|
+
|
8
|
+
const BasemapGallery = BasemapGallery$1;
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
10
|
+
|
11
|
+
export { BasemapGallery, defineCustomElement };
|
@@ -0,0 +1,118 @@
|
|
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
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
7
|
+
import { l as loadModules } from './loadModules.js';
|
8
|
+
|
9
|
+
const basemapGalleryCss = ":host{display:block}";
|
10
|
+
|
11
|
+
const BasemapGallery = /*@__PURE__*/ proxyCustomElement(class BasemapGallery extends HTMLElement {
|
12
|
+
constructor() {
|
13
|
+
super();
|
14
|
+
this.__registerHost();
|
15
|
+
this.__attachShadow();
|
16
|
+
this.mapView = undefined;
|
17
|
+
this.basemapWidget = undefined;
|
18
|
+
}
|
19
|
+
//--------------------------------------------------------------------------
|
20
|
+
//
|
21
|
+
// Watch handlers
|
22
|
+
//
|
23
|
+
//--------------------------------------------------------------------------
|
24
|
+
async mapViewWatchHandler() {
|
25
|
+
await this.mapView.when(() => {
|
26
|
+
this._initBaseMapGallery(this.mapView);
|
27
|
+
});
|
28
|
+
}
|
29
|
+
//--------------------------------------------------------------------------
|
30
|
+
//
|
31
|
+
// Methods (public)
|
32
|
+
//
|
33
|
+
//--------------------------------------------------------------------------
|
34
|
+
//--------------------------------------------------------------------------
|
35
|
+
//
|
36
|
+
// Events (public)
|
37
|
+
//
|
38
|
+
//--------------------------------------------------------------------------
|
39
|
+
//--------------------------------------------------------------------------
|
40
|
+
//
|
41
|
+
// Functions (lifecycle)
|
42
|
+
//
|
43
|
+
//--------------------------------------------------------------------------
|
44
|
+
/**
|
45
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
46
|
+
*/
|
47
|
+
async componentWillLoad() {
|
48
|
+
return this._initModules();
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* StencilJS: Renders the component.
|
52
|
+
*/
|
53
|
+
render() {
|
54
|
+
return (h(Host, null, h("div", { ref: (el) => { this._basemapElement = el; } })));
|
55
|
+
}
|
56
|
+
//--------------------------------------------------------------------------
|
57
|
+
//
|
58
|
+
// Functions (protected)
|
59
|
+
//
|
60
|
+
//--------------------------------------------------------------------------
|
61
|
+
/**
|
62
|
+
* Load esri javascript api modules
|
63
|
+
*
|
64
|
+
* @returns Promise resolving when function is done
|
65
|
+
*
|
66
|
+
* @protected
|
67
|
+
*/
|
68
|
+
async _initModules() {
|
69
|
+
const [BasemapGallery] = await loadModules([
|
70
|
+
"esri/widgets/BasemapGallery"
|
71
|
+
]);
|
72
|
+
this.BasemapGallery = BasemapGallery;
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* Initialize the basemap gallery or reset the current view if it already exists
|
76
|
+
*
|
77
|
+
* @returns void
|
78
|
+
*
|
79
|
+
* @protected
|
80
|
+
*/
|
81
|
+
_initBaseMapGallery(view) {
|
82
|
+
if (view && this.BasemapGallery) {
|
83
|
+
if (!this.basemapWidget) {
|
84
|
+
this.basemapWidget = new this.BasemapGallery({
|
85
|
+
container: this._basemapElement,
|
86
|
+
view
|
87
|
+
});
|
88
|
+
}
|
89
|
+
else {
|
90
|
+
this.basemapWidget.view = view;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
get el() { return this; }
|
95
|
+
static get watchers() { return {
|
96
|
+
"mapView": ["mapViewWatchHandler"]
|
97
|
+
}; }
|
98
|
+
static get style() { return basemapGalleryCss; }
|
99
|
+
}, [1, "basemap-gallery", {
|
100
|
+
"mapView": [16],
|
101
|
+
"basemapWidget": [16]
|
102
|
+
}]);
|
103
|
+
function defineCustomElement() {
|
104
|
+
if (typeof customElements === "undefined") {
|
105
|
+
return;
|
106
|
+
}
|
107
|
+
const components = ["basemap-gallery"];
|
108
|
+
components.forEach(tagName => { switch (tagName) {
|
109
|
+
case "basemap-gallery":
|
110
|
+
if (!customElements.get(tagName)) {
|
111
|
+
customElements.define(tagName, BasemapGallery);
|
112
|
+
}
|
113
|
+
break;
|
114
|
+
} });
|
115
|
+
}
|
116
|
+
defineCustomElement();
|
117
|
+
|
118
|
+
export { BasemapGallery as B, defineCustomElement as d };
|
package/dist/components/chip.js
CHANGED
@@ -409,5 +409,6 @@ function defineCustomElement() {
|
|
409
409
|
break;
|
410
410
|
} });
|
411
411
|
}
|
412
|
+
defineCustomElement();
|
412
413
|
|
413
414
|
export { CSS$1 as C, DEFAULT_COLOR$1 as D, HSV_LIMITS as H, OPACITY_LIMITS as O, RGB_LIMITS as R, SCOPE_SIZE as S, DIMENSIONS as a, HUE_LIMIT_CONSTRAINED as b, DEFAULT_STORAGE_KEY_PREFIX as c, defineCustomElement as d, ColorPickerHexInput as e };
|