@esri/solutions-components 0.2.6 → 0.2.7
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/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{pciUtils-6a806ba4.js → pciUtils-423cfc68.js} +25 -7
- package/dist/collection/demos/deduct-calculator.html +2 -5
- package/dist/collection/demos/new-public-notification.html +6 -4
- package/dist/collection/utils/pciUtils.js +25 -7
- package/dist/collection/utils/pciUtils.ts +30 -7
- package/dist/components/ExpandToggle.js +110 -0
- package/dist/components/Heading.js +22 -0
- package/dist/components/_commonjsHelpers.js +22 -0
- package/dist/components/action-bar.js +276 -0
- package/dist/components/action-group.js +149 -0
- package/dist/components/action-menu.js +356 -0
- package/dist/components/action.js +214 -0
- package/dist/components/add-record-modal.d.ts +11 -0
- package/dist/components/add-record-modal.js +171 -0
- package/dist/components/array.js +15 -0
- package/dist/components/block.js +272 -0
- package/dist/components/buffer-tools.d.ts +11 -0
- package/dist/components/buffer-tools.js +11 -0
- package/dist/components/buffer-tools2.js +262 -0
- package/dist/components/button.js +263 -0
- package/dist/components/calcite-accordion-item.js +244 -0
- package/dist/components/calcite-accordion.js +180 -0
- package/dist/components/calcite-action-bar.js +11 -0
- package/dist/components/calcite-action-group.js +11 -0
- package/dist/components/calcite-action-menu.js +11 -0
- package/dist/components/calcite-action-pad.js +197 -0
- package/dist/components/calcite-action.js +11 -0
- package/dist/components/calcite-alert.js +297 -0
- package/dist/components/calcite-avatar.js +182 -0
- package/dist/components/calcite-block-section.js +155 -0
- package/dist/components/calcite-block.js +11 -0
- package/dist/components/calcite-button.js +11 -0
- package/dist/components/calcite-card.js +187 -0
- package/dist/components/calcite-checkbox.js +11 -0
- package/dist/components/calcite-chip.js +11 -0
- package/dist/components/calcite-color-picker-hex-input.js +11 -0
- package/dist/components/calcite-color-picker-swatch.js +11 -0
- package/dist/components/calcite-color-picker.js +1036 -0
- package/dist/components/calcite-combobox-item-group.js +75 -0
- package/dist/components/calcite-combobox-item.js +11 -0
- package/dist/components/calcite-combobox.js +11 -0
- package/dist/components/calcite-date-picker-day.js +11 -0
- package/dist/components/calcite-date-picker-month-header.js +11 -0
- package/dist/components/calcite-date-picker-month.js +11 -0
- package/dist/components/calcite-date-picker.js +11 -0
- package/dist/components/calcite-dropdown-group.js +11 -0
- package/dist/components/calcite-dropdown-item.js +11 -0
- package/dist/components/calcite-dropdown.js +11 -0
- package/dist/components/calcite-fab.js +144 -0
- package/dist/components/calcite-filter.js +195 -0
- package/dist/components/calcite-flow-item.js +243 -0
- package/dist/components/calcite-flow.js +147 -0
- package/dist/components/calcite-graph.js +11 -0
- package/dist/components/calcite-handle.js +11 -0
- package/dist/components/calcite-icon.js +11 -0
- package/dist/components/calcite-inline-editable.js +294 -0
- package/dist/components/calcite-input-date-picker.js +713 -0
- package/dist/components/calcite-input-message.js +11 -0
- package/dist/components/calcite-input-number.js +637 -0
- package/dist/components/calcite-input-text.js +400 -0
- package/dist/components/calcite-input-time-picker.js +434 -0
- package/dist/components/calcite-input.js +11 -0
- package/dist/components/calcite-label.js +11 -0
- package/dist/components/calcite-link.js +11 -0
- package/dist/components/calcite-list-item-group.js +65 -0
- package/dist/components/calcite-list-item.js +11 -0
- package/dist/components/calcite-list.js +11 -0
- package/dist/components/calcite-loader.js +11 -0
- package/dist/components/calcite-modal.js +11 -0
- package/dist/components/calcite-notice.js +11 -0
- package/dist/components/calcite-option-group.js +64 -0
- package/dist/components/calcite-option.js +11 -0
- package/dist/components/calcite-pagination.js +258 -0
- package/dist/components/calcite-panel.js +11 -0
- package/dist/components/calcite-pick-list-group.js +74 -0
- package/dist/components/calcite-pick-list-item.js +11 -0
- package/dist/components/calcite-pick-list.js +11 -0
- package/dist/components/calcite-popover-manager.js +94 -0
- package/dist/components/calcite-popover.js +11 -0
- package/dist/components/calcite-progress.js +11 -0
- package/dist/components/calcite-radio-button-group.js +132 -0
- package/dist/components/calcite-radio-button.js +310 -0
- package/dist/components/calcite-radio-group-item.js +11 -0
- package/dist/components/calcite-radio-group.js +11 -0
- package/dist/components/calcite-rating.js +201 -0
- package/dist/components/calcite-scrim.js +11 -0
- package/dist/components/calcite-select.js +11 -0
- package/dist/components/calcite-shell-center-row.js +100 -0
- package/dist/components/calcite-shell-panel.js +11 -0
- package/dist/components/calcite-shell.js +11 -0
- package/dist/components/calcite-slider.js +11 -0
- package/dist/components/calcite-sortable-list.js +202 -0
- package/dist/components/calcite-split-button.js +11 -0
- package/dist/components/calcite-stepper-item.js +271 -0
- package/dist/components/calcite-stepper.js +256 -0
- package/dist/components/calcite-switch.js +11 -0
- package/dist/components/calcite-tab-nav.js +11 -0
- package/dist/components/calcite-tab-title.js +11 -0
- package/dist/components/calcite-tab.js +11 -0
- package/dist/components/calcite-tabs.js +11 -0
- package/dist/components/calcite-tile-select-group.js +65 -0
- package/dist/components/calcite-tile-select.js +266 -0
- package/dist/components/calcite-tile.js +11 -0
- package/dist/components/calcite-time-picker.js +11 -0
- package/dist/components/calcite-tip-group.js +41 -0
- package/dist/components/calcite-tip-manager.js +223 -0
- package/dist/components/calcite-tip.js +162 -0
- package/dist/components/calcite-tooltip-manager.js +57 -0
- package/dist/components/calcite-tooltip.js +11 -0
- package/dist/components/calcite-tree-item.js +11 -0
- package/dist/components/calcite-tree.js +11 -0
- package/dist/components/calcite-value-list-item.js +11 -0
- package/dist/components/calcite-value-list.js +11 -0
- package/dist/components/card-manager.d.ts +11 -0
- package/dist/components/card-manager.js +143 -0
- package/dist/components/check-list.d.ts +11 -0
- package/dist/components/check-list.js +11 -0
- package/dist/components/check-list2.js +131 -0
- package/dist/components/checkbox.js +165 -0
- package/dist/components/chip.js +170 -0
- package/dist/components/color-picker-hex-input.js +363 -0
- package/dist/components/color-picker-swatch.js +2034 -0
- package/dist/components/combobox-item.js +182 -0
- package/dist/components/combobox.js +912 -0
- package/dist/components/comment-card.d.ts +11 -0
- package/dist/components/comment-card.js +90 -0
- package/dist/components/conditionalSlot.js +50 -0
- package/dist/components/config-buffer-tools.d.ts +11 -0
- package/dist/components/config-buffer-tools.js +187 -0
- package/dist/components/config-draw-tools.d.ts +11 -0
- package/dist/components/config-draw-tools.js +121 -0
- package/dist/components/config-layer-picker.d.ts +11 -0
- package/dist/components/config-layer-picker.js +163 -0
- package/dist/components/config-pdf-download.d.ts +11 -0
- package/dist/components/config-pdf-download.js +154 -0
- package/dist/components/crowdsource-manager.d.ts +11 -0
- package/dist/components/crowdsource-manager.js +90 -0
- package/dist/components/crowdsource-reporter.d.ts +11 -0
- package/dist/components/crowdsource-reporter.js +90 -0
- package/dist/components/csvUtils.js +74 -0
- package/dist/components/date-picker-day.js +111 -0
- package/dist/components/date-picker-month-header.js +224 -0
- package/dist/components/date-picker-month.js +344 -0
- package/dist/components/date-picker.js +575 -0
- package/dist/components/date.js +180 -0
- package/dist/components/debounce.js +487 -0
- package/dist/components/deduct-calculator.d.ts +11 -0
- package/dist/components/deduct-calculator.js +11 -0
- package/dist/components/deduct-calculator2.js +1002 -0
- package/dist/components/dom.js +231 -0
- package/dist/components/dropdown-group.js +96 -0
- package/dist/components/dropdown-item.js +232 -0
- package/dist/components/dropdown.js +505 -0
- package/dist/components/edit-record-modal.d.ts +11 -0
- package/dist/components/edit-record-modal.js +11 -0
- package/dist/components/edit-record-modal2.js +161 -0
- package/dist/components/filter.js +763 -0
- package/dist/components/floating-ui.js +1768 -0
- package/dist/components/form.js +228 -0
- package/dist/components/graph.js +254 -0
- package/dist/components/guid.js +24 -0
- package/dist/components/handle.js +119 -0
- package/dist/components/icon.js +202 -0
- package/dist/components/index.d.ts +61 -0
- package/dist/components/index.js +196 -0
- package/dist/components/index2.js +199 -0
- package/dist/components/info-card.d.ts +11 -0
- package/dist/components/info-card.js +11 -0
- package/dist/components/info-card2.js +97 -0
- package/dist/components/input-message.js +101 -0
- package/dist/components/input.js +740 -0
- package/dist/components/interactive.js +51 -0
- package/dist/components/interfaces.js +19 -0
- package/dist/components/interfaces2.js +21 -0
- package/dist/components/interfaces3.js +80 -0
- package/dist/components/json-editor.d.ts +11 -0
- package/dist/components/json-editor.js +11 -0
- package/dist/components/json-editor2.js +441 -0
- package/dist/components/key.js +16 -0
- package/dist/components/label.js +106 -0
- package/dist/components/label2.js +131 -0
- package/dist/components/labelFormats.js +210 -0
- package/dist/components/layer-table.d.ts +11 -0
- package/dist/components/layer-table.js +453 -0
- package/dist/components/link.js +123 -0
- package/dist/components/list-item.d.ts +11 -0
- package/dist/components/list-item.js +90 -0
- package/dist/components/list-item2.js +149 -0
- package/dist/components/list.js +83 -0
- package/dist/components/loadModules.js +28 -0
- package/dist/components/loader.js +116 -0
- package/dist/components/locale.js +412 -0
- package/dist/components/locale2.js +413 -0
- package/dist/components/map-card.d.ts +11 -0
- package/dist/components/map-card.js +354 -0
- package/dist/components/map-draw-tools.d.ts +11 -0
- package/dist/components/map-draw-tools.js +11 -0
- package/dist/components/map-draw-tools2.js +228 -0
- package/dist/components/map-layer-picker.d.ts +11 -0
- package/dist/components/map-layer-picker.js +11 -0
- package/dist/components/map-layer-picker2.js +188 -0
- package/dist/components/map-search.d.ts +11 -0
- package/dist/components/map-search.js +155 -0
- package/dist/components/map-select-tools.d.ts +11 -0
- package/dist/components/map-select-tools.js +11 -0
- package/dist/components/map-select-tools2.js +588 -0
- package/dist/components/mapViewUtils.js +129 -0
- package/dist/components/math.js +24 -0
- package/dist/components/media-card.d.ts +11 -0
- package/dist/components/media-card.js +11 -0
- package/dist/components/media-card2.js +177 -0
- package/dist/components/modal.js +495 -0
- package/dist/components/nonChromiumPlatformUtils.js +503 -0
- package/dist/components/notice.js +192 -0
- package/dist/components/observers.js +56 -0
- package/dist/components/openCloseComponent.js +56 -0
- package/dist/components/option.js +109 -0
- package/dist/components/panel.js +459 -0
- package/dist/components/pci-calculator.d.ts +11 -0
- package/dist/components/pci-calculator.js +193 -0
- package/dist/components/pdf-download.d.ts +11 -0
- package/dist/components/pdf-download.js +11 -0
- package/dist/components/pdf-download2.js +189 -0
- package/dist/components/pick-list-item.js +255 -0
- package/dist/components/pick-list.js +170 -0
- package/dist/components/popover.js +500 -0
- package/dist/components/progress.js +60 -0
- package/dist/components/public-notification.d.ts +11 -0
- package/dist/components/public-notification.js +825 -0
- package/dist/components/publicNotificationStore.js +38 -0
- package/dist/components/queryUtils.js +187 -0
- package/dist/components/radio-group-item.js +101 -0
- package/dist/components/radio-group.js +235 -0
- package/dist/components/refine-selection-tools.d.ts +11 -0
- package/dist/components/refine-selection-tools.js +11 -0
- package/dist/components/refine-selection-tools2.js +492 -0
- package/dist/components/refine-selection.d.ts +11 -0
- package/dist/components/refine-selection.js +11 -0
- package/dist/components/refine-selection2.js +376 -0
- package/dist/components/resources.js +24 -0
- package/dist/components/resources2.js +21 -0
- package/dist/components/resources3.js +38 -0
- package/dist/components/scrim.js +83 -0
- package/dist/components/select.js +259 -0
- package/dist/components/shared-list-render.js +319 -0
- package/dist/components/shell-panel.js +281 -0
- package/dist/components/shell.js +121 -0
- package/dist/components/slider.js +896 -0
- package/dist/components/solution-configuration.d.ts +11 -0
- package/dist/components/solution-configuration.js +2233 -0
- package/dist/components/solution-contents.d.ts +11 -0
- package/dist/components/solution-contents.js +11 -0
- package/dist/components/solution-contents2.js +128 -0
- package/dist/components/solution-item-details.d.ts +11 -0
- package/dist/components/solution-item-details.js +11 -0
- package/dist/components/solution-item-details2.js +234 -0
- package/dist/components/solution-item-icon.d.ts +11 -0
- package/dist/components/solution-item-icon.js +11 -0
- package/dist/components/solution-item-icon2.js +342 -0
- package/dist/components/solution-item-sharing.d.ts +11 -0
- package/dist/components/solution-item-sharing.js +11 -0
- package/dist/components/solution-item-sharing2.js +167 -0
- package/dist/components/solution-item.d.ts +11 -0
- package/dist/components/solution-item.js +11 -0
- package/dist/components/solution-item2.js +315 -0
- package/dist/components/solution-organization-variables.d.ts +11 -0
- package/dist/components/solution-organization-variables.js +11 -0
- package/dist/components/solution-organization-variables2.js +132 -0
- package/dist/components/solution-resource-item.d.ts +11 -0
- package/dist/components/solution-resource-item.js +11 -0
- package/dist/components/solution-resource-item2.js +356 -0
- package/dist/components/solution-spatial-ref.d.ts +11 -0
- package/dist/components/solution-spatial-ref.js +11 -0
- package/dist/components/solution-spatial-ref2.js +21446 -0
- package/dist/components/solution-store.js +4092 -0
- package/dist/components/solution-template-data.d.ts +11 -0
- package/dist/components/solution-template-data.js +11 -0
- package/dist/components/solution-template-data2.js +233 -0
- package/dist/components/solution-variables.d.ts +11 -0
- package/dist/components/solution-variables.js +11 -0
- package/dist/components/solution-variables2.js +150 -0
- package/dist/components/sortable.esm.js +3026 -0
- package/dist/components/split-button.js +165 -0
- package/dist/components/store-manager.d.ts +11 -0
- package/dist/components/store-manager.js +83 -0
- package/dist/components/switch.js +139 -0
- package/dist/components/tab-nav.js +241 -0
- package/dist/components/tab-title.js +276 -0
- package/dist/components/tab.js +154 -0
- package/dist/components/tabs.js +188 -0
- package/dist/components/tile.js +129 -0
- package/dist/components/time-picker.js +943 -0
- package/dist/components/tooltip.js +399 -0
- package/dist/components/tree-item.js +294 -0
- package/dist/components/tree.js +327 -0
- package/dist/components/utils.js +119 -0
- package/dist/components/utils2.js +51 -0
- package/dist/components/value-list-item.js +204 -0
- package/dist/components/value-list.js +333 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/{pciUtils-e3007a1c.js → pciUtils-ecda46e5.js} +25 -7
- package/dist/solutions-components/demos/deduct-calculator.html +2 -5
- package/dist/solutions-components/demos/new-public-notification.html +6 -4
- package/dist/solutions-components/{p-ff80ffbb.entry.js → p-0512635b.entry.js} +1 -1
- package/dist/solutions-components/{p-5ec407c2.entry.js → p-0c088725.entry.js} +1 -1
- package/dist/solutions-components/p-cc815aca.js +21 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/pciUtils.ts +30 -7
- package/dist/types/utils/pciUtils.d.ts +2 -1
- package/package.json +4 -3
- package/dist/solutions-components/p-647bbd18.js +0 -21
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CommentCard extends Components.CommentCard, HTMLElement {}
|
|
4
|
+
export const CommentCard: {
|
|
5
|
+
prototype: CommentCard;
|
|
6
|
+
new (): CommentCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
|
|
8
|
+
const commentCardCss = ":host{display:block}";
|
|
9
|
+
|
|
10
|
+
const CommentCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
this.__registerHost();
|
|
14
|
+
this.__attachShadow();
|
|
15
|
+
}
|
|
16
|
+
//--------------------------------------------------------------------------
|
|
17
|
+
//
|
|
18
|
+
// Properties (public)
|
|
19
|
+
//
|
|
20
|
+
//--------------------------------------------------------------------------
|
|
21
|
+
//--------------------------------------------------------------------------
|
|
22
|
+
//
|
|
23
|
+
// State (internal)
|
|
24
|
+
//
|
|
25
|
+
//--------------------------------------------------------------------------
|
|
26
|
+
//--------------------------------------------------------------------------
|
|
27
|
+
//
|
|
28
|
+
// Properties (protected)
|
|
29
|
+
//
|
|
30
|
+
//--------------------------------------------------------------------------
|
|
31
|
+
//--------------------------------------------------------------------------
|
|
32
|
+
//
|
|
33
|
+
// Watch handlers
|
|
34
|
+
//
|
|
35
|
+
//--------------------------------------------------------------------------
|
|
36
|
+
//--------------------------------------------------------------------------
|
|
37
|
+
//
|
|
38
|
+
// Methods (public)
|
|
39
|
+
//
|
|
40
|
+
//--------------------------------------------------------------------------
|
|
41
|
+
//--------------------------------------------------------------------------
|
|
42
|
+
//
|
|
43
|
+
// Events (public)
|
|
44
|
+
//
|
|
45
|
+
//--------------------------------------------------------------------------
|
|
46
|
+
//--------------------------------------------------------------------------
|
|
47
|
+
//
|
|
48
|
+
// Functions (lifecycle)
|
|
49
|
+
//
|
|
50
|
+
//--------------------------------------------------------------------------
|
|
51
|
+
render() {
|
|
52
|
+
return (h(Host, null, h("slot", null)));
|
|
53
|
+
}
|
|
54
|
+
//--------------------------------------------------------------------------
|
|
55
|
+
//
|
|
56
|
+
// Functions (protected)
|
|
57
|
+
//
|
|
58
|
+
//--------------------------------------------------------------------------
|
|
59
|
+
/**
|
|
60
|
+
* Fetches the component's translations
|
|
61
|
+
*
|
|
62
|
+
* @returns Promise when complete
|
|
63
|
+
* @protected
|
|
64
|
+
*/
|
|
65
|
+
async _getTranslations() {
|
|
66
|
+
// const messages = await getLocaleComponentStrings(this.el);
|
|
67
|
+
// this._translations = messages[0] as typeof BufferTools_T9n;
|
|
68
|
+
}
|
|
69
|
+
get el() { return this; }
|
|
70
|
+
static get style() { return commentCardCss; }
|
|
71
|
+
}, [1, "comment-card"]);
|
|
72
|
+
function defineCustomElement$1() {
|
|
73
|
+
if (typeof customElements === "undefined") {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const components = ["comment-card"];
|
|
77
|
+
components.forEach(tagName => { switch (tagName) {
|
|
78
|
+
case "comment-card":
|
|
79
|
+
if (!customElements.get(tagName)) {
|
|
80
|
+
customElements.define(tagName, CommentCard$1);
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
} });
|
|
84
|
+
}
|
|
85
|
+
defineCustomElement$1();
|
|
86
|
+
|
|
87
|
+
const CommentCard = CommentCard$1;
|
|
88
|
+
const defineCustomElement = defineCustomElement$1;
|
|
89
|
+
|
|
90
|
+
export { CommentCard, defineCustomElement };
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { forceUpdate } from '@stencil/core/internal/client';
|
|
7
|
+
import { c as createObserver } from './observers.js';
|
|
8
|
+
|
|
9
|
+
/*!
|
|
10
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
11
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
12
|
+
* v1.0.0-beta.97
|
|
13
|
+
*/
|
|
14
|
+
const observed = new Set();
|
|
15
|
+
let mutationObserver;
|
|
16
|
+
const observerOptions = { childList: true };
|
|
17
|
+
/**
|
|
18
|
+
* Helper to set up a conditional slot component on connectedCallback.
|
|
19
|
+
*
|
|
20
|
+
* @param component
|
|
21
|
+
*/
|
|
22
|
+
function connectConditionalSlotComponent(component) {
|
|
23
|
+
if (!mutationObserver) {
|
|
24
|
+
mutationObserver = createObserver("mutation", processMutations);
|
|
25
|
+
}
|
|
26
|
+
mutationObserver.observe(component.el, observerOptions);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
30
|
+
*
|
|
31
|
+
* @param component
|
|
32
|
+
*/
|
|
33
|
+
function disconnectConditionalSlotComponent(component) {
|
|
34
|
+
observed.delete(component.el);
|
|
35
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
36
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
37
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
38
|
+
processMutations(mutationObserver.takeRecords());
|
|
39
|
+
mutationObserver.disconnect();
|
|
40
|
+
for (const [element] of observed.entries()) {
|
|
41
|
+
mutationObserver.observe(element, observerOptions);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function processMutations(mutations) {
|
|
45
|
+
mutations.forEach(({ target }) => {
|
|
46
|
+
forceUpdate(target);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { connectConditionalSlotComponent as c, disconnectConditionalSlotComponent as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ConfigBufferTools extends Components.ConfigBufferTools, HTMLElement {}
|
|
4
|
+
export const ConfigBufferTools: {
|
|
5
|
+
prototype: ConfigBufferTools;
|
|
6
|
+
new (): ConfigBufferTools;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,187 @@
|
|
|
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 { g as getLocaleComponentStrings } from './locale.js';
|
|
8
|
+
import { d as defineCustomElement$8 } from './checkbox.js';
|
|
9
|
+
import { d as defineCustomElement$7 } from './icon.js';
|
|
10
|
+
import { d as defineCustomElement$6 } from './input.js';
|
|
11
|
+
import { d as defineCustomElement$5 } from './label.js';
|
|
12
|
+
import { d as defineCustomElement$4 } from './option.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './progress.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './select.js';
|
|
15
|
+
|
|
16
|
+
const configBufferToolsCss = ":host{display:block}.horizontal-display{display:flex}.label-spacing{--calcite-label-margin-bottom:0}.padding-inline-end-1{-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.width-half{width:50%}.width-full{width:100%}";
|
|
17
|
+
|
|
18
|
+
const ConfigBufferTools$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.__registerHost();
|
|
22
|
+
this.__attachShadow();
|
|
23
|
+
this.distance = 100;
|
|
24
|
+
this.unit = "Meters";
|
|
25
|
+
this._showBufferChecked = true;
|
|
26
|
+
this._translations = undefined;
|
|
27
|
+
}
|
|
28
|
+
//--------------------------------------------------------------------------
|
|
29
|
+
//
|
|
30
|
+
// Watch handlers
|
|
31
|
+
//
|
|
32
|
+
//--------------------------------------------------------------------------
|
|
33
|
+
//--------------------------------------------------------------------------
|
|
34
|
+
//
|
|
35
|
+
// Methods (public)
|
|
36
|
+
//
|
|
37
|
+
//--------------------------------------------------------------------------
|
|
38
|
+
/**
|
|
39
|
+
* Returns a key/value pair that represents the checkbox value and checked state
|
|
40
|
+
*
|
|
41
|
+
* @returns Promise with the state of the checkboxes
|
|
42
|
+
*/
|
|
43
|
+
async getConfigInfo() {
|
|
44
|
+
return {
|
|
45
|
+
"distance": this.distance,
|
|
46
|
+
"unit": this.unit
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//--------------------------------------------------------------------------
|
|
50
|
+
//
|
|
51
|
+
// Events (public)
|
|
52
|
+
//
|
|
53
|
+
//--------------------------------------------------------------------------
|
|
54
|
+
//--------------------------------------------------------------------------
|
|
55
|
+
//
|
|
56
|
+
// Functions (lifecycle)
|
|
57
|
+
//
|
|
58
|
+
//--------------------------------------------------------------------------
|
|
59
|
+
/**
|
|
60
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
|
61
|
+
*
|
|
62
|
+
* @returns Promise when complete
|
|
63
|
+
*/
|
|
64
|
+
async componentWillLoad() {
|
|
65
|
+
await this._getTranslations();
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Renders the component.
|
|
69
|
+
*/
|
|
70
|
+
render() {
|
|
71
|
+
return (h(Host, null, h("div", null, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { checked: this._showBufferChecked, onCalciteCheckboxChange: () => this._setShowBufferChecked(), ref: (el) => { this._showBufferElement = el; } }), this._translations.showSearchDistance)), h("div", { class: "padding-inline-start-1" }, h("div", { class: "padding-block-end-1 width-full" }, h("calcite-label", { class: "label-spacing" }, this._translations.defaultBufferDistance, h("calcite-input", { disabled: !this._showBufferChecked, min: 0, "number-button-type": "vertical", onCalciteInputInput: (evt) => { this._distanceChanged(evt); }, type: "number", value: this.distance.toString() }))), h("div", { class: "width-full" }, h("calcite-label", { class: "label-spacing" }, this._translations.defaultUnit, h("calcite-select", { disabled: !this._showBufferChecked, label: this._translations.defaultUnit, onCalciteSelectChange: (evt) => { this._unitSelectionChange(evt); } }, this._renderUnitOptions()))))));
|
|
72
|
+
}
|
|
73
|
+
//--------------------------------------------------------------------------
|
|
74
|
+
//
|
|
75
|
+
// Functions (protected)
|
|
76
|
+
//
|
|
77
|
+
//--------------------------------------------------------------------------
|
|
78
|
+
/**
|
|
79
|
+
* Store the user defined distance
|
|
80
|
+
*
|
|
81
|
+
* @protected
|
|
82
|
+
*/
|
|
83
|
+
_distanceChanged(evt) {
|
|
84
|
+
this.distance = evt.detail.value;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Store the user defined unit
|
|
88
|
+
*
|
|
89
|
+
* @protected
|
|
90
|
+
*/
|
|
91
|
+
_unitSelectionChange(evt) {
|
|
92
|
+
this.unit = evt.target.value;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Render the various unit options
|
|
96
|
+
*
|
|
97
|
+
* @returns Promise when complete
|
|
98
|
+
* @protected
|
|
99
|
+
*/
|
|
100
|
+
_renderUnitOptions() {
|
|
101
|
+
const nlsUnits = this._translations.units || {};
|
|
102
|
+
const units = Object.keys(nlsUnits).map(k => nlsUnits[k]);
|
|
103
|
+
return units.map(unit => {
|
|
104
|
+
return (h("calcite-option", { label: unit, selected: unit === this.unit, value: unit }));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* When not checked the buffer options will be disabled in the config and not visible in the UI at runtime
|
|
109
|
+
*
|
|
110
|
+
* @protected
|
|
111
|
+
*/
|
|
112
|
+
_setShowBufferChecked() {
|
|
113
|
+
this._showBufferChecked = this._showBufferElement.checked;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Fetches the component's translations
|
|
117
|
+
*
|
|
118
|
+
* @returns Promise when complete
|
|
119
|
+
* @protected
|
|
120
|
+
*/
|
|
121
|
+
async _getTranslations() {
|
|
122
|
+
const messages = await getLocaleComponentStrings(this.el);
|
|
123
|
+
this._translations = messages[0];
|
|
124
|
+
}
|
|
125
|
+
get el() { return this; }
|
|
126
|
+
static get style() { return configBufferToolsCss; }
|
|
127
|
+
}, [1, "config-buffer-tools", {
|
|
128
|
+
"distance": [1538],
|
|
129
|
+
"unit": [1537],
|
|
130
|
+
"_showBufferChecked": [32],
|
|
131
|
+
"_translations": [32],
|
|
132
|
+
"getConfigInfo": [64]
|
|
133
|
+
}]);
|
|
134
|
+
function defineCustomElement$1() {
|
|
135
|
+
if (typeof customElements === "undefined") {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const components = ["config-buffer-tools", "calcite-checkbox", "calcite-icon", "calcite-input", "calcite-label", "calcite-option", "calcite-progress", "calcite-select"];
|
|
139
|
+
components.forEach(tagName => { switch (tagName) {
|
|
140
|
+
case "config-buffer-tools":
|
|
141
|
+
if (!customElements.get(tagName)) {
|
|
142
|
+
customElements.define(tagName, ConfigBufferTools$1);
|
|
143
|
+
}
|
|
144
|
+
break;
|
|
145
|
+
case "calcite-checkbox":
|
|
146
|
+
if (!customElements.get(tagName)) {
|
|
147
|
+
defineCustomElement$8();
|
|
148
|
+
}
|
|
149
|
+
break;
|
|
150
|
+
case "calcite-icon":
|
|
151
|
+
if (!customElements.get(tagName)) {
|
|
152
|
+
defineCustomElement$7();
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
case "calcite-input":
|
|
156
|
+
if (!customElements.get(tagName)) {
|
|
157
|
+
defineCustomElement$6();
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
case "calcite-label":
|
|
161
|
+
if (!customElements.get(tagName)) {
|
|
162
|
+
defineCustomElement$5();
|
|
163
|
+
}
|
|
164
|
+
break;
|
|
165
|
+
case "calcite-option":
|
|
166
|
+
if (!customElements.get(tagName)) {
|
|
167
|
+
defineCustomElement$4();
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
case "calcite-progress":
|
|
171
|
+
if (!customElements.get(tagName)) {
|
|
172
|
+
defineCustomElement$3();
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
case "calcite-select":
|
|
176
|
+
if (!customElements.get(tagName)) {
|
|
177
|
+
defineCustomElement$2();
|
|
178
|
+
}
|
|
179
|
+
break;
|
|
180
|
+
} });
|
|
181
|
+
}
|
|
182
|
+
defineCustomElement$1();
|
|
183
|
+
|
|
184
|
+
const ConfigBufferTools = ConfigBufferTools$1;
|
|
185
|
+
const defineCustomElement = defineCustomElement$1;
|
|
186
|
+
|
|
187
|
+
export { ConfigBufferTools, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ConfigDrawTools extends Components.ConfigDrawTools, HTMLElement {}
|
|
4
|
+
export const ConfigDrawTools: {
|
|
5
|
+
prototype: ConfigDrawTools;
|
|
6
|
+
new (): ConfigDrawTools;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,121 @@
|
|
|
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 { g as getLocaleComponentStrings } from './locale.js';
|
|
8
|
+
import { d as defineCustomElement$4 } from './checkbox.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './label.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './check-list2.js';
|
|
11
|
+
|
|
12
|
+
const configDrawToolsCss = ":host{display:block}.label-spacing{--calcite-label-margin-bottom:0}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}";
|
|
13
|
+
|
|
14
|
+
const ConfigDrawTools$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.__registerHost();
|
|
18
|
+
this.__attachShadow();
|
|
19
|
+
this.defaultChecked = true;
|
|
20
|
+
this._translations = undefined;
|
|
21
|
+
}
|
|
22
|
+
//--------------------------------------------------------------------------
|
|
23
|
+
//
|
|
24
|
+
// Watch handlers
|
|
25
|
+
//
|
|
26
|
+
//--------------------------------------------------------------------------
|
|
27
|
+
//--------------------------------------------------------------------------
|
|
28
|
+
//
|
|
29
|
+
// Methods (public)
|
|
30
|
+
//
|
|
31
|
+
//--------------------------------------------------------------------------
|
|
32
|
+
/**
|
|
33
|
+
* Returns a key/value pair that represents the checkbox value and checked state
|
|
34
|
+
*
|
|
35
|
+
* @returns Promise with the state of the checkboxes
|
|
36
|
+
*/
|
|
37
|
+
async getConfigInfo() {
|
|
38
|
+
return this._checkList.getConfigInfo();
|
|
39
|
+
}
|
|
40
|
+
//--------------------------------------------------------------------------
|
|
41
|
+
//
|
|
42
|
+
// Events (public)
|
|
43
|
+
//
|
|
44
|
+
//--------------------------------------------------------------------------
|
|
45
|
+
//--------------------------------------------------------------------------
|
|
46
|
+
//
|
|
47
|
+
// Functions (lifecycle)
|
|
48
|
+
//
|
|
49
|
+
//--------------------------------------------------------------------------
|
|
50
|
+
/**
|
|
51
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
|
52
|
+
*
|
|
53
|
+
* @returns Promise when complete
|
|
54
|
+
*/
|
|
55
|
+
async componentWillLoad() {
|
|
56
|
+
await this._getTranslations();
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Renders the component.
|
|
60
|
+
*/
|
|
61
|
+
render() {
|
|
62
|
+
const nlsTypes = this._translations.types || {};
|
|
63
|
+
const types = Object.keys(nlsTypes).map(k => nlsTypes[k]);
|
|
64
|
+
return (h(Host, null, h("div", null, h("div", { class: "padding-block-end-1" }, h("calcite-label", { class: "label-spacing" }, this._translations.drawTools)), h("div", { class: "padding-inline-start-1" }, h("check-list", { defaultChecked: this.defaultChecked, ref: (el) => { this._checkList = el; }, values: types })))));
|
|
65
|
+
}
|
|
66
|
+
//--------------------------------------------------------------------------
|
|
67
|
+
//
|
|
68
|
+
// Functions (protected)
|
|
69
|
+
//
|
|
70
|
+
//--------------------------------------------------------------------------
|
|
71
|
+
/**
|
|
72
|
+
* Fetches the component's translations
|
|
73
|
+
*
|
|
74
|
+
* @returns Promise when complete
|
|
75
|
+
* @protected
|
|
76
|
+
*/
|
|
77
|
+
async _getTranslations() {
|
|
78
|
+
const messages = await getLocaleComponentStrings(this.el);
|
|
79
|
+
this._translations = messages[0];
|
|
80
|
+
}
|
|
81
|
+
get el() { return this; }
|
|
82
|
+
static get style() { return configDrawToolsCss; }
|
|
83
|
+
}, [1, "config-draw-tools", {
|
|
84
|
+
"defaultChecked": [516, "default-checked"],
|
|
85
|
+
"_translations": [32],
|
|
86
|
+
"getConfigInfo": [64]
|
|
87
|
+
}]);
|
|
88
|
+
function defineCustomElement$1() {
|
|
89
|
+
if (typeof customElements === "undefined") {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const components = ["config-draw-tools", "calcite-checkbox", "calcite-label", "check-list"];
|
|
93
|
+
components.forEach(tagName => { switch (tagName) {
|
|
94
|
+
case "config-draw-tools":
|
|
95
|
+
if (!customElements.get(tagName)) {
|
|
96
|
+
customElements.define(tagName, ConfigDrawTools$1);
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
case "calcite-checkbox":
|
|
100
|
+
if (!customElements.get(tagName)) {
|
|
101
|
+
defineCustomElement$4();
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
case "calcite-label":
|
|
105
|
+
if (!customElements.get(tagName)) {
|
|
106
|
+
defineCustomElement$3();
|
|
107
|
+
}
|
|
108
|
+
break;
|
|
109
|
+
case "check-list":
|
|
110
|
+
if (!customElements.get(tagName)) {
|
|
111
|
+
defineCustomElement$2();
|
|
112
|
+
}
|
|
113
|
+
break;
|
|
114
|
+
} });
|
|
115
|
+
}
|
|
116
|
+
defineCustomElement$1();
|
|
117
|
+
|
|
118
|
+
const ConfigDrawTools = ConfigDrawTools$1;
|
|
119
|
+
const defineCustomElement = defineCustomElement$1;
|
|
120
|
+
|
|
121
|
+
export { ConfigDrawTools, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ConfigLayerPicker extends Components.ConfigLayerPicker, HTMLElement {}
|
|
4
|
+
export const ConfigLayerPicker: {
|
|
5
|
+
prototype: ConfigLayerPicker;
|
|
6
|
+
new (): ConfigLayerPicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,163 @@
|
|
|
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 { g as getLocaleComponentStrings } from './locale.js';
|
|
8
|
+
import { g as getMapLayerNames } from './mapViewUtils.js';
|
|
9
|
+
import { d as defineCustomElement$6 } from './chip.js';
|
|
10
|
+
import { d as defineCustomElement$5 } from './combobox.js';
|
|
11
|
+
import { d as defineCustomElement$4 } from './combobox-item.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './icon.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './label.js';
|
|
14
|
+
|
|
15
|
+
const configLayerPickerCss = ":host{display:block}.label-spacing{--calcite-label-margin-bottom:0}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}";
|
|
16
|
+
|
|
17
|
+
const ConfigLayerPicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.__registerHost();
|
|
21
|
+
this.__attachShadow();
|
|
22
|
+
this.defaultChecked = true;
|
|
23
|
+
this.instruction = "";
|
|
24
|
+
this.mapView = undefined;
|
|
25
|
+
this._layerNames = [];
|
|
26
|
+
this._translations = undefined;
|
|
27
|
+
}
|
|
28
|
+
//--------------------------------------------------------------------------
|
|
29
|
+
//
|
|
30
|
+
// Watch handlers
|
|
31
|
+
//
|
|
32
|
+
//--------------------------------------------------------------------------
|
|
33
|
+
/**
|
|
34
|
+
* Called each time the mapView prop is changed.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
async watchStateHandler() {
|
|
38
|
+
await this._setLayers();
|
|
39
|
+
}
|
|
40
|
+
//--------------------------------------------------------------------------
|
|
41
|
+
//
|
|
42
|
+
// Methods (public)
|
|
43
|
+
//
|
|
44
|
+
//--------------------------------------------------------------------------
|
|
45
|
+
/**
|
|
46
|
+
* Returns a list of layers that have been selected
|
|
47
|
+
*
|
|
48
|
+
* @returns Promise with a list of layer names to use
|
|
49
|
+
*/
|
|
50
|
+
async getConfigInfo() {
|
|
51
|
+
return typeof this._checkList.value === "string" ?
|
|
52
|
+
[this._checkList.value] : this._checkList.value;
|
|
53
|
+
}
|
|
54
|
+
//--------------------------------------------------------------------------
|
|
55
|
+
//
|
|
56
|
+
// Events (public)
|
|
57
|
+
//
|
|
58
|
+
//--------------------------------------------------------------------------
|
|
59
|
+
//--------------------------------------------------------------------------
|
|
60
|
+
//
|
|
61
|
+
// Functions (lifecycle)
|
|
62
|
+
//
|
|
63
|
+
//--------------------------------------------------------------------------
|
|
64
|
+
/**
|
|
65
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
|
66
|
+
*
|
|
67
|
+
* @returns Promise when complete
|
|
68
|
+
*/
|
|
69
|
+
async componentWillLoad() {
|
|
70
|
+
await this._setLayers();
|
|
71
|
+
await this._getTranslations();
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Renders the component.
|
|
75
|
+
*/
|
|
76
|
+
render() {
|
|
77
|
+
return (h(Host, null, h("div", null, h("div", { class: "padding-block-end-1" }, h("calcite-label", { class: "label-spacing" }, this.instruction || this._translations.chooseLayer)), h("div", { class: "padding-inline-start-1" }, h("calcite-combobox", { label: '', overlayPositioning: "fixed", ref: (el) => { this._checkList = el; }, selectionMode: "multiple" }, this._getComboboxItems())))));
|
|
78
|
+
}
|
|
79
|
+
//--------------------------------------------------------------------------
|
|
80
|
+
//
|
|
81
|
+
// Functions (protected)
|
|
82
|
+
//
|
|
83
|
+
//--------------------------------------------------------------------------
|
|
84
|
+
_getComboboxItems() {
|
|
85
|
+
return this._layerNames ? this._layerNames.map(name => (h("calcite-combobox-item", { textLabel: name, value: name }))) : [];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Fetch the names of the layers from the map
|
|
89
|
+
*
|
|
90
|
+
* @returns Promise when the operation has completed
|
|
91
|
+
*/
|
|
92
|
+
async _setLayers() {
|
|
93
|
+
if (this.mapView) {
|
|
94
|
+
this._layerNames = await getMapLayerNames(this.mapView);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Fetches the component's translations
|
|
99
|
+
*
|
|
100
|
+
* @returns Promise when complete
|
|
101
|
+
* @protected
|
|
102
|
+
*/
|
|
103
|
+
async _getTranslations() {
|
|
104
|
+
const messages = await getLocaleComponentStrings(this.el);
|
|
105
|
+
this._translations = messages[0];
|
|
106
|
+
}
|
|
107
|
+
get el() { return this; }
|
|
108
|
+
static get watchers() { return {
|
|
109
|
+
"mapView": ["watchStateHandler"]
|
|
110
|
+
}; }
|
|
111
|
+
static get style() { return configLayerPickerCss; }
|
|
112
|
+
}, [1, "config-layer-picker", {
|
|
113
|
+
"defaultChecked": [516, "default-checked"],
|
|
114
|
+
"instruction": [1],
|
|
115
|
+
"mapView": [16],
|
|
116
|
+
"_layerNames": [32],
|
|
117
|
+
"_translations": [32],
|
|
118
|
+
"getConfigInfo": [64]
|
|
119
|
+
}]);
|
|
120
|
+
function defineCustomElement$1() {
|
|
121
|
+
if (typeof customElements === "undefined") {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const components = ["config-layer-picker", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-icon", "calcite-label"];
|
|
125
|
+
components.forEach(tagName => { switch (tagName) {
|
|
126
|
+
case "config-layer-picker":
|
|
127
|
+
if (!customElements.get(tagName)) {
|
|
128
|
+
customElements.define(tagName, ConfigLayerPicker$1);
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case "calcite-chip":
|
|
132
|
+
if (!customElements.get(tagName)) {
|
|
133
|
+
defineCustomElement$6();
|
|
134
|
+
}
|
|
135
|
+
break;
|
|
136
|
+
case "calcite-combobox":
|
|
137
|
+
if (!customElements.get(tagName)) {
|
|
138
|
+
defineCustomElement$5();
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
case "calcite-combobox-item":
|
|
142
|
+
if (!customElements.get(tagName)) {
|
|
143
|
+
defineCustomElement$4();
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
case "calcite-icon":
|
|
147
|
+
if (!customElements.get(tagName)) {
|
|
148
|
+
defineCustomElement$3();
|
|
149
|
+
}
|
|
150
|
+
break;
|
|
151
|
+
case "calcite-label":
|
|
152
|
+
if (!customElements.get(tagName)) {
|
|
153
|
+
defineCustomElement$2();
|
|
154
|
+
}
|
|
155
|
+
break;
|
|
156
|
+
} });
|
|
157
|
+
}
|
|
158
|
+
defineCustomElement$1();
|
|
159
|
+
|
|
160
|
+
const ConfigLayerPicker = ConfigLayerPicker$1;
|
|
161
|
+
const defineCustomElement = defineCustomElement$1;
|
|
162
|
+
|
|
163
|
+
export { ConfigLayerPicker, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ConfigPdfDownload extends Components.ConfigPdfDownload, HTMLElement {}
|
|
4
|
+
export const ConfigPdfDownload: {
|
|
5
|
+
prototype: ConfigPdfDownload;
|
|
6
|
+
new (): ConfigPdfDownload;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|