@esri/solutions-components 0.7.48 → 0.7.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +71 -51
- package/dist/cjs/crowdsource-manager.cjs.entry.js +18 -45
- package/dist/cjs/instant-apps-export.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +16 -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 +18 -73
- package/dist/collection/components/layer-table/layer-table.js +75 -72
- package/dist/components/crowdsource-manager.js +18 -51
- package/dist/components/instant-apps-export.js +5 -5
- package/dist/components/instant-apps-filter-list2.js +3 -3
- package/dist/components/instant-apps-interactive-legend-classic2.js +16 -1
- package/dist/components/instant-apps-social-share2.js +2 -2
- package/dist/components/layer-table2.js +73 -52
- package/dist/esm/calcite-input-date-picker_3.entry.js +5 -5
- package/dist/esm/card-manager_3.entry.js +71 -51
- package/dist/esm/crowdsource-manager.entry.js +18 -45
- package/dist/esm/instant-apps-export.entry.js +5 -5
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +16 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +2 -4
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +5 -0
- package/dist/solutions-components/p-21bc3c8a.entry.js +6 -0
- package/dist/solutions-components/p-8595b4aa.entry.js +17 -0
- package/dist/solutions-components/p-a5fd812c.entry.js +6 -0
- package/dist/solutions-components/p-ce4eed51.entry.js +6 -0
- package/dist/solutions-components/{p-f5b259f3.entry.js → p-de459c0a.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +2 -45
- package/dist/types/components/layer-table/layer-table.d.ts +16 -5
- package/dist/types/components.d.ts +0 -18
- package/package.json +2 -2
- package/dist/solutions-components/p-704c9ba1.entry.js +0 -17
- package/dist/solutions-components/p-766c0b57.entry.js +0 -6
- package/dist/solutions-components/p-ac2799f6.entry.js +0 -6
- package/dist/solutions-components/p-fec03ab3.entry.js +0 -6
|
@@ -12,7 +12,7 @@ import { d as defineCustomElement$3 } from './icon.js';
|
|
|
12
12
|
import { d as defineCustomElement$2 } from './loader.js';
|
|
13
13
|
import { d as defineCustomElement$1 } from './popover.js';
|
|
14
14
|
|
|
15
|
-
const instantAppsSocialShareCss = ":host{display:block;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}";
|
|
15
|
+
const instantAppsSocialShareCss = ":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}";
|
|
16
16
|
|
|
17
17
|
const base = 'instant-apps-social-share';
|
|
18
18
|
const CSS = {
|
|
@@ -219,7 +219,7 @@ const InstantAppsSocialShare = /*@__PURE__*/ proxyCustomElement(class InstantApp
|
|
|
219
219
|
renderButton() {
|
|
220
220
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
221
221
|
const scale = this.shareButtonScale != null ? this.shareButtonScale : this.scale;
|
|
222
|
-
return this.shareButtonType === 'button' ? (h("calcite-button", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, kind: this.shareButtonColor, appearance: "transparent", label: (_b = (_a = this.messages) === null || _a === void 0 ? void 0 : _a.share) === null || _b === void 0 ? void 0 : _b.label, title: (_d = (_c = this.messages) === null || _c === void 0 ? void 0 : _c.share) === null || _d === void 0 ? void 0 : _d.label, scale: scale }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale })))) : (h("calcite-action", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, appearance: "transparent", label: (_f = (_e = this.messages) === null || _e === void 0 ? void 0 : _e.share) === null || _f === void 0 ? void 0 : _f.label, title: (_h = (_g = this.messages) === null || _g === void 0 ? void 0 : _g.share) === null || _h === void 0 ? void 0 : _h.label, scale: scale, text: "" }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale }))));
|
|
222
|
+
return this.shareButtonType === 'button' ? (h("calcite-button", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, kind: this.shareButtonColor, appearance: "transparent", label: (_b = (_a = this.messages) === null || _a === void 0 ? void 0 : _a.share) === null || _b === void 0 ? void 0 : _b.label, title: (_d = (_c = this.messages) === null || _c === void 0 ? void 0 : _c.share) === null || _d === void 0 ? void 0 : _d.label, scale: scale }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale })))) : (h("calcite-action", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, appearance: "transparent", label: (_f = (_e = this.messages) === null || _e === void 0 ? void 0 : _e.share) === null || _f === void 0 ? void 0 : _f.label, title: (_h = (_g = this.messages) === null || _g === void 0 ? void 0 : _g.share) === null || _h === void 0 ? void 0 : _h.label, scale: scale, text: "", alignment: "center" }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale }))));
|
|
223
223
|
}
|
|
224
224
|
renderSuccess() {
|
|
225
225
|
var _a;
|
|
@@ -93,7 +93,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
93
93
|
this.onTableNodeCreate = (node) => {
|
|
94
94
|
this._tableNode = node;
|
|
95
95
|
};
|
|
96
|
-
this.defaultFilter = undefined;
|
|
97
96
|
this.defaultGlobalId = undefined;
|
|
98
97
|
this.defaultLayerId = undefined;
|
|
99
98
|
this.defaultOid = undefined;
|
|
@@ -129,6 +128,12 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
129
128
|
// Watch handlers
|
|
130
129
|
//
|
|
131
130
|
//--------------------------------------------------------------------------
|
|
131
|
+
async defaultOidWatchHandler() {
|
|
132
|
+
await this._handleDefaults();
|
|
133
|
+
}
|
|
134
|
+
async defaultGlobalIdWatchHandler() {
|
|
135
|
+
await this._handleDefaults();
|
|
136
|
+
}
|
|
132
137
|
/**
|
|
133
138
|
* Reset the toolInfos when export csv is enabled/disabled
|
|
134
139
|
*/
|
|
@@ -185,6 +190,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
185
190
|
* watch for changes in map info and update the toolbar
|
|
186
191
|
*/
|
|
187
192
|
async mapInfoWatchHandler() {
|
|
193
|
+
this._resetColumnTemplates();
|
|
194
|
+
this._initLayerExpressions();
|
|
188
195
|
this._initToolInfos();
|
|
189
196
|
this._updateToolbar();
|
|
190
197
|
}
|
|
@@ -215,8 +222,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
215
222
|
this._floorField = (_a = this._layer.floorInfo) === null || _a === void 0 ? void 0 : _a.floorField;
|
|
216
223
|
this._updateFloorDefinitionExpression();
|
|
217
224
|
await this._resetTable();
|
|
218
|
-
this._updateShareUrl();
|
|
219
225
|
this._initLayerExpressions();
|
|
226
|
+
this._updateShareUrl();
|
|
220
227
|
this._fetchingData = false;
|
|
221
228
|
}));
|
|
222
229
|
}
|
|
@@ -814,22 +821,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
814
821
|
else {
|
|
815
822
|
urlObj.searchParams.delete("oid");
|
|
816
823
|
}
|
|
817
|
-
if (this._filterActive) {
|
|
818
|
-
const filter = JSON.parse(this._filterList.urlParams.get("filter"));
|
|
819
|
-
const layerExpressions = this._filterList.layerExpressions.map(layerExp => {
|
|
820
|
-
layerExp.expressions = layerExp.expressions.map(exp => {
|
|
821
|
-
if (exp.id.toString() === filter.expressionId.toString()) {
|
|
822
|
-
exp.active = true;
|
|
823
|
-
}
|
|
824
|
-
return exp;
|
|
825
|
-
});
|
|
826
|
-
return layerExp;
|
|
827
|
-
});
|
|
828
|
-
urlObj.searchParams.set("filter", JSON.stringify(layerExpressions));
|
|
829
|
-
}
|
|
830
|
-
else {
|
|
831
|
-
urlObj.searchParams.delete("filter");
|
|
832
|
-
}
|
|
833
824
|
this._shareNode.shareUrl = urlObj.href;
|
|
834
825
|
}
|
|
835
826
|
/**
|
|
@@ -843,7 +834,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
843
834
|
* @returns VNode The tooltip node
|
|
844
835
|
*/
|
|
845
836
|
_getToolTip(placement, referenceElement, text) {
|
|
846
|
-
return (h("calcite-tooltip", { placement: placement, "reference-element": referenceElement }, h("span", null, text)));
|
|
837
|
+
return document.getElementById(referenceElement) ? (h("calcite-tooltip", { placement: placement, "reference-element": referenceElement }, h("span", null, text))) : undefined;
|
|
847
838
|
}
|
|
848
839
|
/**
|
|
849
840
|
* Get an id with a prefix to the user supplied value
|
|
@@ -903,8 +894,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
903
894
|
container: node
|
|
904
895
|
});
|
|
905
896
|
});
|
|
906
|
-
this._initColumnsInfo();
|
|
907
|
-
this._checkEditEnabled();
|
|
908
897
|
await this._table.when(() => {
|
|
909
898
|
this._table.highlightIds.on("change", (evt) => {
|
|
910
899
|
void this._handleOnChange(evt);
|
|
@@ -1008,7 +997,11 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1008
997
|
_resetColumnTemplates() {
|
|
1009
998
|
var _a, _b;
|
|
1010
999
|
const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
|
|
1011
|
-
|
|
1000
|
+
const hasChange = columnTemplates.some((ct, i) => {
|
|
1001
|
+
var _a;
|
|
1002
|
+
return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
|
|
1003
|
+
});
|
|
1004
|
+
if (this._table && columnTemplates && hasChange) {
|
|
1012
1005
|
this._table.tableTemplate = new this.TableTemplate({
|
|
1013
1006
|
columnTemplates
|
|
1014
1007
|
});
|
|
@@ -1022,46 +1015,73 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1022
1015
|
async _resetTable() {
|
|
1023
1016
|
var _a;
|
|
1024
1017
|
this._clearSelection();
|
|
1025
|
-
this._allIds = [];
|
|
1026
|
-
this.featureSelectionChange.emit(this.selectedIds);
|
|
1027
|
-
const columnTemplates = this._getColumnTemplates(this._layer.id, (_a = this._layer) === null || _a === void 0 ? void 0 : _a.fields);
|
|
1028
1018
|
this._allIds = await queryAllIds(this._layer);
|
|
1029
1019
|
if (!this._table) {
|
|
1020
|
+
const columnTemplates = this._getColumnTemplates(this._layer.id, (_a = this._layer) === null || _a === void 0 ? void 0 : _a.fields);
|
|
1030
1021
|
await this._getTable(this._tableNode, columnTemplates);
|
|
1031
1022
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1023
|
+
else {
|
|
1024
|
+
this._table.view = this.mapView;
|
|
1025
|
+
this._table.layer = this._layer;
|
|
1026
|
+
}
|
|
1027
|
+
await this._initLayerRefresh();
|
|
1034
1028
|
this._checkEditEnabled();
|
|
1035
1029
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
|
1036
1030
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
|
1037
1031
|
.then(async () => {
|
|
1038
|
-
var _a, _b;
|
|
1039
1032
|
this._table.highlightIds.removeAll();
|
|
1040
1033
|
this._table.clearSelectionFilter();
|
|
1041
1034
|
this._resetColumnTemplates();
|
|
1042
|
-
if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1) {
|
|
1043
|
-
this._selectDefaultFeature(this.defaultOid);
|
|
1044
|
-
this._defaultOidHonored = true;
|
|
1045
|
-
}
|
|
1046
|
-
if (!this._defaultGlobalIdHonored && ((_b = this.defaultGlobalId) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
1047
|
-
const features = await queryFeaturesByGlobalID(this.defaultGlobalId, this._layer);
|
|
1048
|
-
const oids = (features === null || features === void 0 ? void 0 : features.length) > 0 ? features.map(f => f.getObjectId()) : undefined;
|
|
1049
|
-
if (oids) {
|
|
1050
|
-
this._selectDefaultFeature(oids);
|
|
1051
|
-
}
|
|
1052
|
-
this._defaultGlobalIdHonored = true;
|
|
1053
|
-
}
|
|
1054
|
-
if (!this._defaultFilterHonored && this.defaultFilter && this._filterList) {
|
|
1055
|
-
this._layerExpressions = this.defaultFilter;
|
|
1056
|
-
this._filterActive = true;
|
|
1057
|
-
this._defaultFilterHonored = true;
|
|
1058
|
-
}
|
|
1059
1035
|
this._showOnlySelected = false;
|
|
1036
|
+
await this._handleDefaults();
|
|
1060
1037
|
await this._sortTable();
|
|
1061
1038
|
this._initToolInfos();
|
|
1062
1039
|
this._updateToolbar();
|
|
1063
1040
|
});
|
|
1064
1041
|
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Update the current IDs when that layers data is modified
|
|
1044
|
+
*/
|
|
1045
|
+
async _initLayerRefresh() {
|
|
1046
|
+
if (this._refreshHandle) {
|
|
1047
|
+
this._refreshHandle.remove();
|
|
1048
|
+
}
|
|
1049
|
+
this._refreshHandle = this._layer.on("refresh", (evt) => {
|
|
1050
|
+
if (evt.dataChanged) {
|
|
1051
|
+
this._skipOnChange = true;
|
|
1052
|
+
void this._updateAllIds();
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Reset _allIds when the layers data has changed and refresh the selection ids and table
|
|
1058
|
+
*/
|
|
1059
|
+
async _updateAllIds() {
|
|
1060
|
+
this._allIds = await queryAllIds(this._layer);
|
|
1061
|
+
this.selectedIds = this.selectedIds.filter(id => this._allIds.indexOf(id) > -1);
|
|
1062
|
+
await this._refresh();
|
|
1063
|
+
}
|
|
1064
|
+
async _handleDefaults() {
|
|
1065
|
+
var _a, _b;
|
|
1066
|
+
if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1 && this._table) {
|
|
1067
|
+
await this._selectDefaultFeature(this.defaultOid);
|
|
1068
|
+
this._defaultOidHonored = true;
|
|
1069
|
+
this.defaultOid = undefined;
|
|
1070
|
+
this._showOnlySelected = false;
|
|
1071
|
+
this._toggleShowSelected();
|
|
1072
|
+
}
|
|
1073
|
+
if (!this._defaultGlobalIdHonored && ((_b = this.defaultGlobalId) === null || _b === void 0 ? void 0 : _b.length) > 0 && this._table) {
|
|
1074
|
+
const features = await queryFeaturesByGlobalID(this.defaultGlobalId, this._layer);
|
|
1075
|
+
const oids = (features === null || features === void 0 ? void 0 : features.length) > 0 ? features.map(f => f.getObjectId()) : undefined;
|
|
1076
|
+
if (oids) {
|
|
1077
|
+
await this._selectDefaultFeature(oids);
|
|
1078
|
+
}
|
|
1079
|
+
this._defaultGlobalIdHonored = true;
|
|
1080
|
+
this.defaultGlobalId = undefined;
|
|
1081
|
+
this._showOnlySelected = false;
|
|
1082
|
+
this._toggleShowSelected();
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1065
1085
|
/**
|
|
1066
1086
|
* Store the column names and current hidden status to support show/hide of columns
|
|
1067
1087
|
* @param fieldNames optional list of names from new config options
|
|
@@ -1090,13 +1110,12 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1090
1110
|
/**
|
|
1091
1111
|
* Select the feature that was specified via url params
|
|
1092
1112
|
*/
|
|
1093
|
-
_selectDefaultFeature(oids) {
|
|
1113
|
+
async _selectDefaultFeature(oids) {
|
|
1094
1114
|
if (oids.length > 0) {
|
|
1095
1115
|
this._table.highlightIds.addMany(oids);
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
});
|
|
1116
|
+
// This is messed up and only make this worse
|
|
1117
|
+
//const i = this._table.viewModel.getObjectIdIndex(oids[0]);
|
|
1118
|
+
//this._table.viewModel.scrollToIndex(i);
|
|
1100
1119
|
}
|
|
1101
1120
|
}
|
|
1102
1121
|
/**
|
|
@@ -1287,7 +1306,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1287
1306
|
this._layerExpressions = layerExpressions ? layerExpressions.filter((exp) => { var _a; return exp.id === ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id); }) : [];
|
|
1288
1307
|
this._filterList.layerExpressions = this._layerExpressions;
|
|
1289
1308
|
this._filterActive = this._layerExpressions.filter(lyrExp => {
|
|
1290
|
-
console.log(lyrExp);
|
|
1291
1309
|
return lyrExp.expressions.filter(exp => exp.active).length > 0;
|
|
1292
1310
|
}).length > 0;
|
|
1293
1311
|
}
|
|
@@ -1473,6 +1491,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1473
1491
|
}
|
|
1474
1492
|
get el() { return this; }
|
|
1475
1493
|
static get watchers() { return {
|
|
1494
|
+
"defaultOid": ["defaultOidWatchHandler"],
|
|
1495
|
+
"defaultGlobalId": ["defaultGlobalIdWatchHandler"],
|
|
1476
1496
|
"enableCSV": ["enableCSVWatchHandler"],
|
|
1477
1497
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
|
1478
1498
|
"enableShare": ["enableShareWatchHandler"],
|
|
@@ -1485,7 +1505,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1485
1505
|
}; }
|
|
1486
1506
|
static get style() { return layerTableCss; }
|
|
1487
1507
|
}, [0, "layer-table", {
|
|
1488
|
-
"defaultFilter": [16],
|
|
1489
1508
|
"defaultGlobalId": [16],
|
|
1490
1509
|
"defaultLayerId": [1, "default-layer-id"],
|
|
1491
1510
|
"defaultOid": [16],
|
|
@@ -1516,6 +1535,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
|
1516
1535
|
"_toolInfos": [32],
|
|
1517
1536
|
"_translations": [32]
|
|
1518
1537
|
}, [[8, "selectionChanged", "selectionChanged"], [8, "editsComplete", "editsComplete"], [8, "facilityChanged", "facilityChanged"], [8, "levelChanged", "levelChanged"], [8, "siteChanged", "siteChanged"], [8, "noLayersFound", "noLayersFound"]], {
|
|
1538
|
+
"defaultOid": ["defaultOidWatchHandler"],
|
|
1539
|
+
"defaultGlobalId": ["defaultGlobalIdWatchHandler"],
|
|
1519
1540
|
"enableCSV": ["enableCSVWatchHandler"],
|
|
1520
1541
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
|
1521
1542
|
"enableShare": ["enableShareWatchHandler"],
|
|
@@ -774,7 +774,7 @@ function resetDatePicker(datePicker) {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
|
|
777
|
-
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100
|
|
777
|
+
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height:24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:-moz-min-content;width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}";
|
|
778
778
|
|
|
779
779
|
const CSS$1 = {
|
|
780
780
|
base: 'instant-apps-filter-list',
|
|
@@ -798,7 +798,7 @@ const InstantAppsFilterList = class {
|
|
|
798
798
|
this.autoUpdateUrl = false;
|
|
799
799
|
this.closeBtn = false;
|
|
800
800
|
this.closeBtnOnClick = undefined;
|
|
801
|
-
this.comboboxOverlayPositioning =
|
|
801
|
+
this.comboboxOverlayPositioning = 'absolute';
|
|
802
802
|
this.closeBtnText = undefined;
|
|
803
803
|
this.openFilters = false;
|
|
804
804
|
this.extentSelector = false;
|
|
@@ -895,7 +895,7 @@ const InstantAppsFilterList = class {
|
|
|
895
895
|
}
|
|
896
896
|
renderCombobox(layerExpression, expression) {
|
|
897
897
|
var _a;
|
|
898
|
-
return (h("label", { key: "combo-select", class: CSS$1.filterUIItemContainer }, h("span", null, expression.name), h("calcite-combobox", { id: expression.id.toString(), onCalciteComboboxChange: this.handleComboSelect.bind(this, expression, layerExpression), label: expression.name, placeholder: expression.placeholder, selectionMode: "multiple", "max-items": "6", overlayPositioning: this.comboboxOverlayPositioning }, (_a = expression.fields) === null || _a === void 0 ? void 0 : _a.map((value, index) => this.renderComboboxItem(expression, value, index)))));
|
|
898
|
+
return (h("label", { key: "combo-select", class: CSS$1.filterUIItemContainer }, h("span", null, expression.name), h("calcite-combobox", { id: expression.id.toString(), onCalciteComboboxChange: this.handleComboSelect.bind(this, expression, layerExpression), label: expression.name, placeholder: expression.placeholder, selectionMode: "multiple", "max-items": "6", scale: "s", overlayPositioning: this.comboboxOverlayPositioning }, (_a = expression.fields) === null || _a === void 0 ? void 0 : _a.map((value, index) => this.renderComboboxItem(expression, value, index)))));
|
|
899
899
|
}
|
|
900
900
|
renderComboboxItem(expression, value, index) {
|
|
901
901
|
var _a;
|
|
@@ -1780,7 +1780,7 @@ const InstantAppsFilterList = class {
|
|
|
1780
1780
|
};
|
|
1781
1781
|
InstantAppsFilterList.style = instantAppsFilterListCss;
|
|
1782
1782
|
|
|
1783
|
-
const instantAppsSocialShareCss = ":host{display:block;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}";
|
|
1783
|
+
const instantAppsSocialShareCss = ":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}";
|
|
1784
1784
|
|
|
1785
1785
|
const base = 'instant-apps-social-share';
|
|
1786
1786
|
const CSS = {
|
|
@@ -1985,7 +1985,7 @@ const InstantAppsSocialShare = class {
|
|
|
1985
1985
|
renderButton() {
|
|
1986
1986
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1987
1987
|
const scale = this.shareButtonScale != null ? this.shareButtonScale : this.scale;
|
|
1988
|
-
return this.shareButtonType === 'button' ? (h("calcite-button", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, kind: this.shareButtonColor, appearance: "transparent", label: (_b = (_a = this.messages) === null || _a === void 0 ? void 0 : _a.share) === null || _b === void 0 ? void 0 : _b.label, title: (_d = (_c = this.messages) === null || _c === void 0 ? void 0 : _c.share) === null || _d === void 0 ? void 0 : _d.label, scale: scale }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale })))) : (h("calcite-action", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, appearance: "transparent", label: (_f = (_e = this.messages) === null || _e === void 0 ? void 0 : _e.share) === null || _f === void 0 ? void 0 : _f.label, title: (_h = (_g = this.messages) === null || _g === void 0 ? void 0 : _g.share) === null || _h === void 0 ? void 0 : _h.label, scale: scale, text: "" }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale }))));
|
|
1988
|
+
return this.shareButtonType === 'button' ? (h("calcite-button", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, kind: this.shareButtonColor, appearance: "transparent", label: (_b = (_a = this.messages) === null || _a === void 0 ? void 0 : _a.share) === null || _b === void 0 ? void 0 : _b.label, title: (_d = (_c = this.messages) === null || _c === void 0 ? void 0 : _c.share) === null || _d === void 0 ? void 0 : _d.label, scale: scale }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale })))) : (h("calcite-action", { ref: el => (this.popoverButtonRef = el), onClick: this.togglePopover.bind(this), id: "shareButton", class: CSS.popoverButton, appearance: "transparent", label: (_f = (_e = this.messages) === null || _e === void 0 ? void 0 : _e.share) === null || _f === void 0 ? void 0 : _f.label, title: (_h = (_g = this.messages) === null || _g === void 0 ? void 0 : _g.share) === null || _h === void 0 ? void 0 : _h.label, scale: scale, text: "", alignment: "center" }, h("div", { class: CSS.iconContainer }, h("calcite-icon", { icon: "share", scale: this.popoverButtonIconScale }))));
|
|
1989
1989
|
}
|
|
1990
1990
|
renderSuccess() {
|
|
1991
1991
|
var _a;
|
|
@@ -145,7 +145,6 @@ const LayerTable = class {
|
|
|
145
145
|
this.onTableNodeCreate = (node) => {
|
|
146
146
|
this._tableNode = node;
|
|
147
147
|
};
|
|
148
|
-
this.defaultFilter = undefined;
|
|
149
148
|
this.defaultGlobalId = undefined;
|
|
150
149
|
this.defaultLayerId = undefined;
|
|
151
150
|
this.defaultOid = undefined;
|
|
@@ -181,6 +180,12 @@ const LayerTable = class {
|
|
|
181
180
|
// Watch handlers
|
|
182
181
|
//
|
|
183
182
|
//--------------------------------------------------------------------------
|
|
183
|
+
async defaultOidWatchHandler() {
|
|
184
|
+
await this._handleDefaults();
|
|
185
|
+
}
|
|
186
|
+
async defaultGlobalIdWatchHandler() {
|
|
187
|
+
await this._handleDefaults();
|
|
188
|
+
}
|
|
184
189
|
/**
|
|
185
190
|
* Reset the toolInfos when export csv is enabled/disabled
|
|
186
191
|
*/
|
|
@@ -237,6 +242,8 @@ const LayerTable = class {
|
|
|
237
242
|
* watch for changes in map info and update the toolbar
|
|
238
243
|
*/
|
|
239
244
|
async mapInfoWatchHandler() {
|
|
245
|
+
this._resetColumnTemplates();
|
|
246
|
+
this._initLayerExpressions();
|
|
240
247
|
this._initToolInfos();
|
|
241
248
|
this._updateToolbar();
|
|
242
249
|
}
|
|
@@ -267,8 +274,8 @@ const LayerTable = class {
|
|
|
267
274
|
this._floorField = (_a = this._layer.floorInfo) === null || _a === void 0 ? void 0 : _a.floorField;
|
|
268
275
|
this._updateFloorDefinitionExpression();
|
|
269
276
|
await this._resetTable();
|
|
270
|
-
this._updateShareUrl();
|
|
271
277
|
this._initLayerExpressions();
|
|
278
|
+
this._updateShareUrl();
|
|
272
279
|
this._fetchingData = false;
|
|
273
280
|
}));
|
|
274
281
|
}
|
|
@@ -866,22 +873,6 @@ const LayerTable = class {
|
|
|
866
873
|
else {
|
|
867
874
|
urlObj.searchParams.delete("oid");
|
|
868
875
|
}
|
|
869
|
-
if (this._filterActive) {
|
|
870
|
-
const filter = JSON.parse(this._filterList.urlParams.get("filter"));
|
|
871
|
-
const layerExpressions = this._filterList.layerExpressions.map(layerExp => {
|
|
872
|
-
layerExp.expressions = layerExp.expressions.map(exp => {
|
|
873
|
-
if (exp.id.toString() === filter.expressionId.toString()) {
|
|
874
|
-
exp.active = true;
|
|
875
|
-
}
|
|
876
|
-
return exp;
|
|
877
|
-
});
|
|
878
|
-
return layerExp;
|
|
879
|
-
});
|
|
880
|
-
urlObj.searchParams.set("filter", JSON.stringify(layerExpressions));
|
|
881
|
-
}
|
|
882
|
-
else {
|
|
883
|
-
urlObj.searchParams.delete("filter");
|
|
884
|
-
}
|
|
885
876
|
this._shareNode.shareUrl = urlObj.href;
|
|
886
877
|
}
|
|
887
878
|
/**
|
|
@@ -895,7 +886,7 @@ const LayerTable = class {
|
|
|
895
886
|
* @returns VNode The tooltip node
|
|
896
887
|
*/
|
|
897
888
|
_getToolTip(placement, referenceElement, text) {
|
|
898
|
-
return (h("calcite-tooltip", { placement: placement, "reference-element": referenceElement }, h("span", null, text)));
|
|
889
|
+
return document.getElementById(referenceElement) ? (h("calcite-tooltip", { placement: placement, "reference-element": referenceElement }, h("span", null, text))) : undefined;
|
|
899
890
|
}
|
|
900
891
|
/**
|
|
901
892
|
* Get an id with a prefix to the user supplied value
|
|
@@ -955,8 +946,6 @@ const LayerTable = class {
|
|
|
955
946
|
container: node
|
|
956
947
|
});
|
|
957
948
|
});
|
|
958
|
-
this._initColumnsInfo();
|
|
959
|
-
this._checkEditEnabled();
|
|
960
949
|
await this._table.when(() => {
|
|
961
950
|
this._table.highlightIds.on("change", (evt) => {
|
|
962
951
|
void this._handleOnChange(evt);
|
|
@@ -1060,7 +1049,11 @@ const LayerTable = class {
|
|
|
1060
1049
|
_resetColumnTemplates() {
|
|
1061
1050
|
var _a, _b;
|
|
1062
1051
|
const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
|
|
1063
|
-
|
|
1052
|
+
const hasChange = columnTemplates.some((ct, i) => {
|
|
1053
|
+
var _a;
|
|
1054
|
+
return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
|
|
1055
|
+
});
|
|
1056
|
+
if (this._table && columnTemplates && hasChange) {
|
|
1064
1057
|
this._table.tableTemplate = new this.TableTemplate({
|
|
1065
1058
|
columnTemplates
|
|
1066
1059
|
});
|
|
@@ -1074,46 +1067,73 @@ const LayerTable = class {
|
|
|
1074
1067
|
async _resetTable() {
|
|
1075
1068
|
var _a;
|
|
1076
1069
|
this._clearSelection();
|
|
1077
|
-
this._allIds = [];
|
|
1078
|
-
this.featureSelectionChange.emit(this.selectedIds);
|
|
1079
|
-
const columnTemplates = this._getColumnTemplates(this._layer.id, (_a = this._layer) === null || _a === void 0 ? void 0 : _a.fields);
|
|
1080
1070
|
this._allIds = await queryAllIds(this._layer);
|
|
1081
1071
|
if (!this._table) {
|
|
1072
|
+
const columnTemplates = this._getColumnTemplates(this._layer.id, (_a = this._layer) === null || _a === void 0 ? void 0 : _a.fields);
|
|
1082
1073
|
await this._getTable(this._tableNode, columnTemplates);
|
|
1083
1074
|
}
|
|
1084
|
-
|
|
1085
|
-
|
|
1075
|
+
else {
|
|
1076
|
+
this._table.view = this.mapView;
|
|
1077
|
+
this._table.layer = this._layer;
|
|
1078
|
+
}
|
|
1079
|
+
await this._initLayerRefresh();
|
|
1086
1080
|
this._checkEditEnabled();
|
|
1087
1081
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
|
1088
1082
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
|
1089
1083
|
.then(async () => {
|
|
1090
|
-
var _a, _b;
|
|
1091
1084
|
this._table.highlightIds.removeAll();
|
|
1092
1085
|
this._table.clearSelectionFilter();
|
|
1093
1086
|
this._resetColumnTemplates();
|
|
1094
|
-
if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1) {
|
|
1095
|
-
this._selectDefaultFeature(this.defaultOid);
|
|
1096
|
-
this._defaultOidHonored = true;
|
|
1097
|
-
}
|
|
1098
|
-
if (!this._defaultGlobalIdHonored && ((_b = this.defaultGlobalId) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
1099
|
-
const features = await queryFeaturesByGlobalID(this.defaultGlobalId, this._layer);
|
|
1100
|
-
const oids = (features === null || features === void 0 ? void 0 : features.length) > 0 ? features.map(f => f.getObjectId()) : undefined;
|
|
1101
|
-
if (oids) {
|
|
1102
|
-
this._selectDefaultFeature(oids);
|
|
1103
|
-
}
|
|
1104
|
-
this._defaultGlobalIdHonored = true;
|
|
1105
|
-
}
|
|
1106
|
-
if (!this._defaultFilterHonored && this.defaultFilter && this._filterList) {
|
|
1107
|
-
this._layerExpressions = this.defaultFilter;
|
|
1108
|
-
this._filterActive = true;
|
|
1109
|
-
this._defaultFilterHonored = true;
|
|
1110
|
-
}
|
|
1111
1087
|
this._showOnlySelected = false;
|
|
1088
|
+
await this._handleDefaults();
|
|
1112
1089
|
await this._sortTable();
|
|
1113
1090
|
this._initToolInfos();
|
|
1114
1091
|
this._updateToolbar();
|
|
1115
1092
|
});
|
|
1116
1093
|
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Update the current IDs when that layers data is modified
|
|
1096
|
+
*/
|
|
1097
|
+
async _initLayerRefresh() {
|
|
1098
|
+
if (this._refreshHandle) {
|
|
1099
|
+
this._refreshHandle.remove();
|
|
1100
|
+
}
|
|
1101
|
+
this._refreshHandle = this._layer.on("refresh", (evt) => {
|
|
1102
|
+
if (evt.dataChanged) {
|
|
1103
|
+
this._skipOnChange = true;
|
|
1104
|
+
void this._updateAllIds();
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Reset _allIds when the layers data has changed and refresh the selection ids and table
|
|
1110
|
+
*/
|
|
1111
|
+
async _updateAllIds() {
|
|
1112
|
+
this._allIds = await queryAllIds(this._layer);
|
|
1113
|
+
this.selectedIds = this.selectedIds.filter(id => this._allIds.indexOf(id) > -1);
|
|
1114
|
+
await this._refresh();
|
|
1115
|
+
}
|
|
1116
|
+
async _handleDefaults() {
|
|
1117
|
+
var _a, _b;
|
|
1118
|
+
if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1 && this._table) {
|
|
1119
|
+
await this._selectDefaultFeature(this.defaultOid);
|
|
1120
|
+
this._defaultOidHonored = true;
|
|
1121
|
+
this.defaultOid = undefined;
|
|
1122
|
+
this._showOnlySelected = false;
|
|
1123
|
+
this._toggleShowSelected();
|
|
1124
|
+
}
|
|
1125
|
+
if (!this._defaultGlobalIdHonored && ((_b = this.defaultGlobalId) === null || _b === void 0 ? void 0 : _b.length) > 0 && this._table) {
|
|
1126
|
+
const features = await queryFeaturesByGlobalID(this.defaultGlobalId, this._layer);
|
|
1127
|
+
const oids = (features === null || features === void 0 ? void 0 : features.length) > 0 ? features.map(f => f.getObjectId()) : undefined;
|
|
1128
|
+
if (oids) {
|
|
1129
|
+
await this._selectDefaultFeature(oids);
|
|
1130
|
+
}
|
|
1131
|
+
this._defaultGlobalIdHonored = true;
|
|
1132
|
+
this.defaultGlobalId = undefined;
|
|
1133
|
+
this._showOnlySelected = false;
|
|
1134
|
+
this._toggleShowSelected();
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1117
1137
|
/**
|
|
1118
1138
|
* Store the column names and current hidden status to support show/hide of columns
|
|
1119
1139
|
* @param fieldNames optional list of names from new config options
|
|
@@ -1142,13 +1162,12 @@ const LayerTable = class {
|
|
|
1142
1162
|
/**
|
|
1143
1163
|
* Select the feature that was specified via url params
|
|
1144
1164
|
*/
|
|
1145
|
-
_selectDefaultFeature(oids) {
|
|
1165
|
+
async _selectDefaultFeature(oids) {
|
|
1146
1166
|
if (oids.length > 0) {
|
|
1147
1167
|
this._table.highlightIds.addMany(oids);
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
});
|
|
1168
|
+
// This is messed up and only make this worse
|
|
1169
|
+
//const i = this._table.viewModel.getObjectIdIndex(oids[0]);
|
|
1170
|
+
//this._table.viewModel.scrollToIndex(i);
|
|
1152
1171
|
}
|
|
1153
1172
|
}
|
|
1154
1173
|
/**
|
|
@@ -1339,7 +1358,6 @@ const LayerTable = class {
|
|
|
1339
1358
|
this._layerExpressions = layerExpressions ? layerExpressions.filter((exp) => { var _a; return exp.id === ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id); }) : [];
|
|
1340
1359
|
this._filterList.layerExpressions = this._layerExpressions;
|
|
1341
1360
|
this._filterActive = this._layerExpressions.filter(lyrExp => {
|
|
1342
|
-
console.log(lyrExp);
|
|
1343
1361
|
return lyrExp.expressions.filter(exp => exp.active).length > 0;
|
|
1344
1362
|
}).length > 0;
|
|
1345
1363
|
}
|
|
@@ -1525,6 +1543,8 @@ const LayerTable = class {
|
|
|
1525
1543
|
}
|
|
1526
1544
|
get el() { return getElement(this); }
|
|
1527
1545
|
static get watchers() { return {
|
|
1546
|
+
"defaultOid": ["defaultOidWatchHandler"],
|
|
1547
|
+
"defaultGlobalId": ["defaultGlobalIdWatchHandler"],
|
|
1528
1548
|
"enableCSV": ["enableCSVWatchHandler"],
|
|
1529
1549
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
|
1530
1550
|
"enableShare": ["enableShareWatchHandler"],
|