@esri/solutions-components 0.6.38 → 0.6.39
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/card-manager_3.cjs.entry.js +3 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +10 -4
- package/dist/collection/components/map-card/map-card.js +26 -1
- package/dist/collection/utils/interfaces.ts +2 -0
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/map-card2.js +4 -1
- package/dist/esm/card-manager_3.entry.js +3 -1
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- 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 +1 -1
- package/dist/solutions-components/p-99391a15.entry.js +6 -0
- package/dist/solutions-components/{p-20e627ed.entry.js → p-ba064f24.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +2 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +3 -3
- package/dist/types/components/map-card/map-card.d.ts +5 -1
- package/dist/types/components.d.ts +14 -6
- package/dist/types/utils/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-63867402.entry.js +0 -6
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/// <reference types="arcgis-js-api" />
|
|
17
17
|
import { VNode } from "../../stencil-public-runtime";
|
|
18
18
|
import CrowdsourceManager_T9n from "../../assets/t9n/crowdsource-manager/resources.json";
|
|
19
|
-
import { ELayoutMode, IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration } from "../../utils/interfaces";
|
|
19
|
+
import { ELayoutMode, IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration, theme } from "../../utils/interfaces";
|
|
20
20
|
export declare class CrowdsourceManager {
|
|
21
21
|
el: HTMLCrowdsourceManagerElement;
|
|
22
22
|
/**
|
|
@@ -88,9 +88,9 @@ export declare class CrowdsourceManager {
|
|
|
88
88
|
*/
|
|
89
89
|
searchConfiguration: ISearchConfiguration;
|
|
90
90
|
/**
|
|
91
|
-
* "light" | "dark"
|
|
91
|
+
* theme: "light" | "dark" theme to be used
|
|
92
92
|
*/
|
|
93
|
-
theme:
|
|
93
|
+
theme: theme;
|
|
94
94
|
/**
|
|
95
95
|
* boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
|
|
96
96
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="arcgis-js-api" />
|
|
17
17
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
18
|
-
import { IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration } from "../../utils/interfaces";
|
|
18
|
+
import { IBasemapConfig, IMapChange, IMapInfo, ISearchConfiguration, theme } from "../../utils/interfaces";
|
|
19
19
|
export declare class MapCard {
|
|
20
20
|
el: HTMLMapCardElement;
|
|
21
21
|
/**
|
|
@@ -58,6 +58,10 @@ export declare class MapCard {
|
|
|
58
58
|
* esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
|
59
59
|
*/
|
|
60
60
|
mapView: __esri.MapView;
|
|
61
|
+
/**
|
|
62
|
+
* theme: "light" | "dark" theme to be used
|
|
63
|
+
*/
|
|
64
|
+
theme: theme;
|
|
61
65
|
/**
|
|
62
66
|
* ISearchConfiguration: Configuration details for the Search widget
|
|
63
67
|
*/
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange } from "./utils/interfaces";
|
|
8
|
+
import { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
|
|
9
9
|
import { UserSession } from "@esri/solution-common";
|
|
10
|
-
export { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange } from "./utils/interfaces";
|
|
10
|
+
export { DistanceUnit, EDrawMode, ELayoutMode, IBasemapConfig, IExportInfos, IInventoryItem, IMapChange, IMapInfo, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
|
|
11
11
|
export { UserSession } from "@esri/solution-common";
|
|
12
12
|
export namespace Components {
|
|
13
13
|
interface BasemapGallery {
|
|
@@ -148,9 +148,9 @@ export namespace Components {
|
|
|
148
148
|
*/
|
|
149
149
|
"showNewestFirst": boolean;
|
|
150
150
|
/**
|
|
151
|
-
* "light" | "dark"
|
|
151
|
+
* theme: "light" | "dark" theme to be used
|
|
152
152
|
*/
|
|
153
|
-
"theme":
|
|
153
|
+
"theme": theme;
|
|
154
154
|
/**
|
|
155
155
|
* boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
|
|
156
156
|
*/
|
|
@@ -336,6 +336,10 @@ export namespace Components {
|
|
|
336
336
|
* esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
|
337
337
|
*/
|
|
338
338
|
"mapView": __esri.MapView;
|
|
339
|
+
/**
|
|
340
|
+
* theme: "light" | "dark" theme to be used
|
|
341
|
+
*/
|
|
342
|
+
"theme": theme;
|
|
339
343
|
}
|
|
340
344
|
interface MapDrawTools {
|
|
341
345
|
/**
|
|
@@ -1420,9 +1424,9 @@ declare namespace LocalJSX {
|
|
|
1420
1424
|
*/
|
|
1421
1425
|
"showNewestFirst"?: boolean;
|
|
1422
1426
|
/**
|
|
1423
|
-
* "light" | "dark"
|
|
1427
|
+
* theme: "light" | "dark" theme to be used
|
|
1424
1428
|
*/
|
|
1425
|
-
"theme"?:
|
|
1429
|
+
"theme"?: theme;
|
|
1426
1430
|
/**
|
|
1427
1431
|
* boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
|
|
1428
1432
|
*/
|
|
@@ -1619,6 +1623,10 @@ declare namespace LocalJSX {
|
|
|
1619
1623
|
* Emitted when a new map is loaded
|
|
1620
1624
|
*/
|
|
1621
1625
|
"onMapChanged"?: (event: MapCardCustomEvent<IMapChange>) => void;
|
|
1626
|
+
/**
|
|
1627
|
+
* theme: "light" | "dark" theme to be used
|
|
1628
|
+
*/
|
|
1629
|
+
"theme"?: theme;
|
|
1622
1630
|
}
|
|
1623
1631
|
interface MapDrawTools {
|
|
1624
1632
|
/**
|
|
@@ -66,6 +66,7 @@ export declare enum EDrawMode {
|
|
|
66
66
|
}
|
|
67
67
|
export type ValidSize = 6 | 10 | 14 | 20 | 30 | 60 | 80;
|
|
68
68
|
export type DistanceUnit = "feet" | "meters" | "miles" | "kilometers";
|
|
69
|
+
export type theme = "light" | "dark";
|
|
69
70
|
export interface IMapClick {
|
|
70
71
|
mapPoint: __esri.Point;
|
|
71
72
|
screenPoint: __esri.MapViewScreenPoint;
|
package/package.json
CHANGED
|
@@ -1,6 +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
|
-
import{r as t,h as i,H as e,g as s}from"./p-91c78d98.js";import{g as h}from"./p-99d8a839.js";import{E as l}from"./p-2a58e378.js";import"./p-e1a4994d.js";const o=class{constructor(i){t(this,i),this._shouldSetMapView=!1,this.classicGrid=!1,this.enableAutoRefresh=!1,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableInlineEdit=!1,this.enableLegend=!0,this.enableSearch=!0,this.enableHome=!0,this.enableZoom=!0,this.enableBasemap=!0,this.basemapConfig=void 0,this.showNewestFirst=!0,this.hideMap=!1,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.searchConfiguration=void 0,this.theme="light",this.zoomAndScrollToSelected=!1,this._expandPopup=!1,this._translations=void 0,this._layoutMode=l.GRID,this._mapView=void 0,this._panelOpen=!0}enableZoomWatchHandler(){this._initMapZoom()}async layoutChanged(t){this._layoutMode=t.detail}async mapChanged(t){this._mapChange=t.detail,await this._mapChange.mapView.when((()=>{this._setMapView()}))}async beforeMapChanged(){this._expandPopup&&(this._shouldSetMapView=!0,this._expandPopup=!1)}async componentWillLoad(){await this._getTranslations()}render(){return i(e,null,i("calcite-shell",{class:"position-relative"},i("calcite-panel",{class:"width-full height-full"},this._getBody(this._layoutMode,this._panelOpen,this.hideMap))))}componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._setMapView())}_getDividerIcon(t,i){let e="";switch(t){case l.HORIZONTAL:e=this.classicGrid?i?"chevrons-down":"chevrons-up":i?"chevrons-up":"chevrons-down";break;case l.VERTICAL:e=this.classicGrid?i?"chevrons-right":"chevrons-left":i?"chevrons-left":"chevrons-right";break;case l.GRID:e=this.classicGrid?i?"chevrons-up":"chevrons-down":i?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-0")+" width-full position-relative";break;case l.GRID:e=this.classicGrid?(i?"position-relative":"position-absolute-53")+" height-full width-full display-flex":"height-full position-relative "+(i?"width-1-3":"width-0");break;case l.VERTICAL:e="height-full position-relative "+(i?"width-1-2":"width-0")}return e}_getTableSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=this.classicGrid?(i?"height-full":"height-53")+" position-relative width-full display-flex":(i?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(i?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(t,e,s){const h=this.classicGrid&&t===l.GRID&&e?"display-grid":t===l.HORIZONTAL?"":"display-flex";return i("calcite-panel",{class:"width-full height-full"},this.classicGrid?i("div",{class:`width-full height-full ${h}`},this._getTable(t,e),this._getMapAndCard(t,e,s)):i("div",{class:`width-full height-full ${h}`},this._getMapAndCard(t,e,s),this._getTable(t,e)))}_getMapAndCard(t,e,s){const h=this._getMapSizeClass(t,e);return this.classicGrid?i("div",{class:`${h} overflow-hidden`},this._getCardNode(),this._getMapNode(t,s)):i("div",{class:`${h} overflow-hidden`},this._getMapNode(t,s),this._getPopupExpandNode())}_getMapNode(t,e){var s;return i("div",{class:`${this.classicGrid&&t===l.GRID?"width-full":"adjusted-height-50"} overflow-hidden ${this.classicGrid&&t===l.GRID?"display-flex height-full width-1-2":t!==l.GRID||e?"display-none":""}`},i("map-card",{basemapConfig:this.basemapConfig,class:"width-full",enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,hidden:this._expandPopup,mapInfos:null===(s=this.mapInfos)||void 0===s?void 0:s.filter((t=>!1!==t.visible))}))}_getPopupExpandNode(){const t=this._expandPopup?"chevrons-down":"chevrons-up",e="expand-popup",s=this._expandPopup?this._translations.collapsePopup:this._translations.expandPopup,h="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return i("div",{class:"calcite-mode-dark "+(this._expandPopup?"position-absolute-50":"height-full")},i("calcite-panel",null,i("div",{class:"display-flex align-items-center",slot:"header-content"},i("calcite-icon",{icon:"information",scale:"s"}),i("div",{class:"padding-inline-start-75"},this._translations.information)),i("calcite-action",{icon:t,id:e,onClick:()=>this._togglePopup(),slot:"header-actions-end"}),i("calcite-tooltip",{class:h,label:"",placement:"bottom","reference-element":e},i("span",null,s)),this._getCardNode()))}_togglePopup(){this._expandPopup=!this._expandPopup}_getCardNode(){return i("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},i("card-manager",{class:(this._expandPopup?"height-full":"height-50")+" width-full",mapView:null==this?void 0:this._mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(t,e){const s=this._getTableSizeClass(t,e),h=this._getDividerIcon(t,e),o=e?this._translations.close:this._translations.open,a="toggle-layout";return i("calcite-shell",{class:s+" border-bottom"},i("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:t===l.HORIZONTAL||this.classicGrid?"horizontal":"vertical",slot:this.classicGrid&&t!==l.VERTICAL?"footer":this.classicGrid&&t===l.VERTICAL?"panel-end":t===l.HORIZONTAL?"header":"panel-start"},i("calcite-action",{class:"toggle-node",icon:h,id:a,onClick:()=>this._toggleLayout(),text:""}),i("calcite-tooltip",{label:o,placement:"bottom","reference-element":a},i("span",null,o))),i("div",{class:"width-full height-full position-relative"},i("layer-table",{enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableInlineEdit:this.enableInlineEdit,enableZoom:this.enableZoom,mapInfo:this._mapInfo,mapView:null==this?void 0:this._mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,showNewestFirst:this.showNewestFirst,zoomAndScrollToSelected:this.zoomAndScrollToSelected})))}_toggleLayout(){this._panelOpen=!this._panelOpen}_getMapInfo(t){let i;return this.mapInfos.some((e=>{if(e.id===t)return i=e,!0})),i}_setMapView(){this._mapInfo=this._getMapInfo(this._mapChange.id),this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{enableZoom:["enableZoomWatchHandler"]}}};o.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-ui-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.border-sides{border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}";export{o as crowdsource_manager}
|