@arcgis/map-components 5.1.0-next.97 → 5.1.0-next.98
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/cdn/{M2AGMETD.js → 5VV4YRMW.js} +1 -1
- package/dist/cdn/6S6N2CNY.js +2 -0
- package/dist/cdn/AU5Y2WFE.js +2 -0
- package/dist/cdn/B3GUVSOH.js +2 -0
- package/dist/cdn/{TOYDKBI3.js → FJYJ55I6.js} +1 -1
- package/dist/cdn/G2AWBB3W.js +2 -0
- package/dist/cdn/{76RELZX2.js → GZSSBAS6.js} +1 -1
- package/dist/cdn/KDVGMEXC.js +2 -0
- package/dist/cdn/{PAD4C5XS.js → MGLV5EEI.js} +1 -1
- package/dist/cdn/OSRU2RUW.js +2 -0
- package/dist/cdn/P27CM5PI.js +2 -0
- package/dist/cdn/QL46G5FB.js +2 -0
- package/dist/cdn/{4535AZQ2.js → VD5IUHXQ.js} +1 -1
- package/dist/cdn/{YFP5CWGB.js → XSZJFT45.js} +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +22 -3
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +56 -38
- package/dist/components/arcgis-reverse-geocode-list/index.js +2 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +6 -7
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -2
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +47 -48
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -0
- package/dist/components/arcgis-version-management/customElement.js +85 -85
- package/dist/components/arcgis-version-management-service-item/customElement.js +17 -17
- package/dist/components/arcgis-version-management-version-list/customElement.js +9 -9
- package/dist/components/arcgis-version-management-version-properties/customElement.js +44 -40
- package/dist/components/arcgis-version-management-version-properties/index.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +4 -4
- package/dist/cdn/4LIT2CPA.js +0 -2
- package/dist/cdn/F5GS7T5H.js +0 -2
- package/dist/cdn/GUATS4JC.js +0 -2
- package/dist/cdn/GZNXU67E.js +0 -2
- package/dist/cdn/M2LGHW4O.js +0 -2
- package/dist/cdn/M67KJTXP.js +0 -2
- package/dist/cdn/VTGHFASH.js +0 -2
- package/dist/cdn/WTUX37PY.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { once as
|
|
4
|
-
import
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as
|
|
8
|
-
import { u as
|
|
9
|
-
import { m as
|
|
2
|
+
import { c as S } from "../../chunks/runtime.js";
|
|
3
|
+
import { once as L, watch as P } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
+
import _ from "@arcgis/core/versionManagement/VersionManager.js";
|
|
5
|
+
import { LitElement as b, createEvent as u } from "@arcgis/lumina";
|
|
6
|
+
import { css as C, render as N, html as g } from "lit";
|
|
7
|
+
import { createRef as F, ref as M } from "lit/directives/ref.js";
|
|
8
|
+
import { u as k } from "../../chunks/useT9n.js";
|
|
9
|
+
import { m as x } from "../../chunks/useViewModel.js";
|
|
10
10
|
import { rethrowError as $ } from "@arcgis/toolkit/log";
|
|
11
|
-
const A = P`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}:host{max-width:fit-content}.root{.component-container-flow{width:350px}.invalid-initial-version-notice{margin-bottom:1rem}.service-items-panel{z-index:unset!important}calcite-block{margin:0}}`, T = F(E), u = "map-components:version-management";
|
|
12
|
-
class O extends
|
|
11
|
+
const A = C`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-notice{margin:var(--calcite-spacing-md)}`, T = x(_), w = "map-components:version-management";
|
|
12
|
+
class O extends b {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.flowElement =
|
|
14
|
+
super(...arguments), this.flowElement = F(), this.messages = k({ blocking: !0 }), this.viewModel = T(this), this._isInitialVersionInvalid = /* @__PURE__ */ new Map(), this._initialVersionInfos = [], this._showInvalidFeatureServiceNotice = !1, this.allowEditingDisabled = !1, this.autoDestroyDisabled = !1, this.closable = !1, this.pageSize = 5, this.state = this.viewModel.state, this.versioningStates = this.viewModel.versioningStates, this.view = this.viewModel.view, this.arcgisReady = u(), this.arcgisVersioningStateChanged = u();
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
17
|
this.properties = { versionList: 16, _showInvalidFeatureServiceNotice: 16, allowEditingDisabled: 5, autoDestroyDisabled: 5, closable: 7, initialVersionInfos: 0, icon: 1, label: 3, messageOverrides: 0, mode: 1, pageSize: 9, referenceElement: 1, state: 32, versioningStates: 0, view: 0 };
|
|
@@ -32,7 +32,7 @@ class O extends S {
|
|
|
32
32
|
await this.manager.destroy();
|
|
33
33
|
}
|
|
34
34
|
async load() {
|
|
35
|
-
|
|
35
|
+
L(() => this.viewModel.state === "ready").then(() => {
|
|
36
36
|
this.initialVersionInfos.forEach((e) => {
|
|
37
37
|
try {
|
|
38
38
|
this._changeToInitialVersion(e);
|
|
@@ -41,17 +41,17 @@ class O extends S {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
}), this.manager.onLifecycle(() => [
|
|
44
|
-
|
|
45
|
-
const { flowElement: { value: i }, versionList: r } = this,
|
|
44
|
+
P(() => this.viewModel.state, (e) => {
|
|
45
|
+
const { flowElement: { value: i }, versionList: r } = this, t = i?.getElementsByTagName("arcgis-version-management-version-properties")[0];
|
|
46
46
|
if (e === "disabled" && i) {
|
|
47
|
-
|
|
47
|
+
t && this._removeVersionPropertiesFlowItem(i), r && this._removeVersionListFlowItem(i);
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
r && (r.versionListElementProps = {
|
|
51
51
|
...r.versionListElementProps,
|
|
52
52
|
executionError: this.viewModel.executionError
|
|
53
|
-
}, r.versionListElementProps = { ...r.versionListElementProps, state: e }),
|
|
54
|
-
...
|
|
53
|
+
}, r.versionListElementProps = { ...r.versionListElementProps, state: e }), t && (t.versionPropertiesElementProps = {
|
|
54
|
+
...t.versionPropertiesElementProps,
|
|
55
55
|
state: e
|
|
56
56
|
});
|
|
57
57
|
})
|
|
@@ -64,22 +64,22 @@ class O extends S {
|
|
|
64
64
|
return e.replace(/\/+$/u, "");
|
|
65
65
|
}
|
|
66
66
|
_createVersionPropertiesFlowItem(e, i) {
|
|
67
|
-
const { closable: r, viewModel:
|
|
67
|
+
const { closable: r, viewModel: t, viewModel: { state: n } } = this, o = {
|
|
68
68
|
closable: r,
|
|
69
|
-
currentUser:
|
|
70
|
-
isVersionAdministrator:
|
|
69
|
+
currentUser: t.userLookup.get(e),
|
|
70
|
+
isVersionAdministrator: t.versionAdministratorLookup.get(e),
|
|
71
71
|
serviceUrl: e,
|
|
72
72
|
state: n,
|
|
73
73
|
strings: this.messages,
|
|
74
74
|
versionInfo: i
|
|
75
75
|
};
|
|
76
76
|
this.versionPropertiesContainer = document.createElement("div");
|
|
77
|
-
const
|
|
78
|
-
return this.listenOn(
|
|
77
|
+
const s = N(g`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`, this.versionPropertiesContainer), a = Array.from(s.parentNode.childNodes).find((c) => c.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");
|
|
78
|
+
return this.listenOn(a, "arcgisFlowItemBack", () => {
|
|
79
79
|
this._removeVersionPropertiesFlowItem(this.flowElement.value);
|
|
80
|
-
}), this.listenOn(
|
|
81
|
-
|
|
82
|
-
}), this.listenOn(
|
|
80
|
+
}), this.listenOn(a, "calciteFlowItemBack", (c) => {
|
|
81
|
+
c.preventDefault(), this._removeVersionPropertiesFlowItem(this.flowElement.value), this.versionList && (this.versionList.selected = !0);
|
|
82
|
+
}), this.listenOn(a, "calciteFlowItemClose", this._handleFlowItemClose), this.listenOn(a, "arcgisCreateVersion", this._handleCreateVersion), this.listenOn(a, "arcgisAlterVersion", this._handleAlterVersion), a;
|
|
83
83
|
}
|
|
84
84
|
_getLoadError(e) {
|
|
85
85
|
const { messages: i } = this;
|
|
@@ -93,44 +93,44 @@ class O extends S {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
async _handleAlterVersion(e) {
|
|
96
|
-
const { flowElement: { value: i }, viewModel: r } = this, { alterVersionParameters:
|
|
97
|
-
await r.alterVersion(
|
|
96
|
+
const { flowElement: { value: i }, viewModel: r } = this, { alterVersionParameters: t } = e.detail;
|
|
97
|
+
await r.alterVersion(t).then(async (n) => {
|
|
98
98
|
n && this.arcgisVersioningStateChanged.emit({
|
|
99
99
|
type: "version-changed",
|
|
100
|
-
versionIdentifier:
|
|
101
|
-
versioningState: r.versioningStateLookup.get(
|
|
102
|
-
}), await this._refreshVersionList(
|
|
100
|
+
versionIdentifier: t.versionIdentifier,
|
|
101
|
+
versioningState: r.versioningStateLookup.get(t.featureServerUrl)
|
|
102
|
+
}), await this._refreshVersionList(t.featureServerUrl);
|
|
103
103
|
}).finally(() => {
|
|
104
104
|
i && this._removeVersionPropertiesFlowItem(i);
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
_handleCreateVersion(e) {
|
|
108
|
-
const { flowElement: { value: i }, viewModel: r } = this, { createVersionParameters:
|
|
109
|
-
r.createVersion(
|
|
110
|
-
|
|
108
|
+
const { flowElement: { value: i }, viewModel: r } = this, { createVersionParameters: t, switchToVersion: n } = e.detail;
|
|
109
|
+
r.createVersion(t).then(async (o) => {
|
|
110
|
+
o && this.arcgisVersioningStateChanged.emit({
|
|
111
111
|
type: "version-created",
|
|
112
|
-
versionIdentifier:
|
|
113
|
-
versioningState: r.versioningStateLookup.get(
|
|
114
|
-
}), n && await this.viewModel.changeVersion(
|
|
115
|
-
|
|
112
|
+
versionIdentifier: o.versionIdentifier,
|
|
113
|
+
versioningState: r.versioningStateLookup.get(t.featureServerUrl)
|
|
114
|
+
}), n && await this.viewModel.changeVersion(t.featureServerUrl, o.versionIdentifier.name, o.versionIdentifier.guid).then((s) => {
|
|
115
|
+
s && this.arcgisVersioningStateChanged.emit({
|
|
116
116
|
type: "version-switched",
|
|
117
|
-
versionIdentifier:
|
|
118
|
-
versioningState: r.versioningStateLookup.get(
|
|
117
|
+
versionIdentifier: o.versionIdentifier,
|
|
118
|
+
versioningState: r.versioningStateLookup.get(t.featureServerUrl)
|
|
119
119
|
});
|
|
120
|
-
}), await this._refreshVersionList(
|
|
120
|
+
}), await this._refreshVersionList(t.featureServerUrl);
|
|
121
121
|
}).finally(() => {
|
|
122
122
|
i && this._removeVersionPropertiesFlowItem(i);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
_changeToInitialVersion(e) {
|
|
126
|
-
const { _isInitialVersionInvalid: i, viewModel: r } = this, { url:
|
|
127
|
-
if (!
|
|
128
|
-
throw this._showInvalidFeatureServiceNotice = !0, new Error(`${
|
|
129
|
-
const
|
|
130
|
-
if (!
|
|
131
|
-
throw i.set(
|
|
132
|
-
const
|
|
133
|
-
|
|
126
|
+
const { _isInitialVersionInvalid: i, viewModel: r } = this, { url: t, name: n } = e, o = r.versioningStateLookup.get(t);
|
|
127
|
+
if (!o)
|
|
128
|
+
throw this._showInvalidFeatureServiceNotice = !0, new Error(`${w} - no versioning state found for feature service ${t}`);
|
|
129
|
+
const s = o?.versionInfos.find((m) => m.versionIdentifier.name === n);
|
|
130
|
+
if (!s)
|
|
131
|
+
throw i.set(t, !0), new Error(`${w} - version ${n} not found in the versioning state for feature service ${t}`);
|
|
132
|
+
const a = s.versionIdentifier, c = o?.currentVersionInfo?.versionIdentifier;
|
|
133
|
+
a.guid !== c?.guid && r.changeVersion(t, a.name, a.guid);
|
|
134
134
|
}
|
|
135
135
|
_handleFlowItemClose() {
|
|
136
136
|
const e = document.querySelector("arcgis-version-management");
|
|
@@ -141,49 +141,49 @@ class O extends S {
|
|
|
141
141
|
this.flowElement.value?.appendChild(i), this.versionList && (this.versionList.selected = !1);
|
|
142
142
|
}
|
|
143
143
|
async _handleManageVersionAction(e) {
|
|
144
|
-
const { actionType: i, serviceUrl: r, versionInfo:
|
|
144
|
+
const { actionType: i, serviceUrl: r, versionInfo: t } = e.detail, { viewModel: n, flowElement: o } = this;
|
|
145
145
|
switch (i) {
|
|
146
146
|
case "changeVersion": {
|
|
147
|
-
n.changeVersion(r,
|
|
148
|
-
|
|
147
|
+
n.changeVersion(r, t.versionIdentifier.name, t.versionIdentifier.guid).then((s) => {
|
|
148
|
+
s && this.arcgisVersioningStateChanged.emit({
|
|
149
149
|
type: "version-switched",
|
|
150
|
-
versionIdentifier:
|
|
150
|
+
versionIdentifier: t.versionIdentifier,
|
|
151
151
|
versioningState: n.versioningStateLookup.get(r)
|
|
152
152
|
});
|
|
153
|
-
const { versionList:
|
|
154
|
-
|
|
155
|
-
...
|
|
153
|
+
const { versionList: a } = this;
|
|
154
|
+
a && (a.versionListElementProps = {
|
|
155
|
+
...a.versionListElementProps,
|
|
156
156
|
currentVersionIdentifier: n.versioningStateLookup.get(r).currentVersionInfo.versionIdentifier
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
159
|
break;
|
|
160
160
|
}
|
|
161
161
|
case "deleteVersion": {
|
|
162
|
-
n.deleteVersion(r,
|
|
163
|
-
|
|
162
|
+
n.deleteVersion(r, t.versionIdentifier.name, t.versionIdentifier.guid).then(async (s) => {
|
|
163
|
+
s && this.arcgisVersioningStateChanged.emit({
|
|
164
164
|
type: "version-deleted",
|
|
165
|
-
versionIdentifier:
|
|
165
|
+
versionIdentifier: t.versionIdentifier,
|
|
166
166
|
versioningState: n.versioningStateLookup.get(r)
|
|
167
167
|
}), await this._refreshVersionList(r);
|
|
168
168
|
});
|
|
169
169
|
break;
|
|
170
170
|
}
|
|
171
171
|
case "editVersion": {
|
|
172
|
-
const
|
|
173
|
-
|
|
172
|
+
const s = this._createVersionPropertiesFlowItem(r, t);
|
|
173
|
+
o.value?.appendChild(s), this.versionList && (this.versionList.selected = !1);
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
async _refreshVersionList(e) {
|
|
179
|
-
const { flowElement: { value: i }, versionList: r, viewModel:
|
|
179
|
+
const { flowElement: { value: i }, versionList: r, viewModel: t } = this;
|
|
180
180
|
if (i) {
|
|
181
|
-
const n = await
|
|
182
|
-
for (const
|
|
183
|
-
|
|
181
|
+
const n = await t.getVersionInfos(e), o = i.getElementsByTagName("arcgis-version-management-service-item");
|
|
182
|
+
for (const s of o)
|
|
183
|
+
s.serviceItemElementProps.serviceUrl === e && (s.serviceItemElementProps = { ...s.serviceItemElementProps, versionInfos: n });
|
|
184
184
|
r && (r.versionListElementProps = {
|
|
185
185
|
...r.versionListElementProps,
|
|
186
|
-
currentVersionIdentifier:
|
|
186
|
+
currentVersionIdentifier: t.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,
|
|
187
187
|
versionInfos: n
|
|
188
188
|
});
|
|
189
189
|
}
|
|
@@ -197,37 +197,37 @@ class O extends S {
|
|
|
197
197
|
i.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES" && e.removeChild(i);
|
|
198
198
|
}
|
|
199
199
|
render() {
|
|
200
|
-
const { allowEditingDisabled: e, closable: i, flowElement: { value: r }, initialVersionInfos:
|
|
201
|
-
const
|
|
200
|
+
const { allowEditingDisabled: e, closable: i, flowElement: { value: r }, initialVersionInfos: t, _isInitialVersionInvalid: n, label: o, messages: s, mode: a, pageSize: c, versionList: m, viewModel: v, viewModel: { loadError: f, state: d } } = this, I = Array.from(v.serviceNameLookup, ([l, h]) => ({ url: l, name: h })), V = d !== "disabled" ? I.map((l) => {
|
|
201
|
+
const h = {
|
|
202
202
|
allowEditing: !e,
|
|
203
203
|
closable: i,
|
|
204
|
-
currentUser:
|
|
205
|
-
currentVersionIdentifier:
|
|
204
|
+
currentUser: v.userLookup.get(l.url),
|
|
205
|
+
currentVersionIdentifier: v.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,
|
|
206
206
|
executionError: void 0,
|
|
207
207
|
flowElement: r,
|
|
208
|
-
heading:
|
|
209
|
-
initialVersionInfos:
|
|
208
|
+
heading: o,
|
|
209
|
+
initialVersionInfos: t,
|
|
210
210
|
isInitialVersionInvalid: n,
|
|
211
|
-
isVersionAdministrator:
|
|
212
|
-
isVersioningApiAvailable: (
|
|
213
|
-
mode:
|
|
214
|
-
pageSize:
|
|
211
|
+
isVersionAdministrator: v.versionAdministratorLookup.get(l.url),
|
|
212
|
+
isVersioningApiAvailable: (v.serverVersionLookup.get(l.url) ?? 0) >= 11.2,
|
|
213
|
+
mode: a,
|
|
214
|
+
pageSize: c,
|
|
215
215
|
serviceName: l.name,
|
|
216
|
-
state:
|
|
216
|
+
state: d,
|
|
217
217
|
serviceUrl: l.url,
|
|
218
|
-
strings:
|
|
219
|
-
versionInfos:
|
|
218
|
+
strings: s,
|
|
219
|
+
versionInfos: v.versioningStateLookup.get(l.url)?.versionInfos ?? []
|
|
220
220
|
};
|
|
221
|
-
return
|
|
221
|
+
return g`<arcgis-version-management-service-item .serviceItemElementProps=${h} @arcgisFlowItemBack=${() => {
|
|
222
222
|
r && (this._removeVersionListFlowItem(r), this.versionList = void 0);
|
|
223
|
-
}} @arcgisFlowItemClose=${() => this._handleFlowItemClose()} @arcgisGetVersions=${async (
|
|
224
|
-
await this._refreshVersionList(
|
|
225
|
-
}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${(
|
|
226
|
-
}) : void 0,
|
|
227
|
-
return
|
|
223
|
+
}} @arcgisFlowItemClose=${() => this._handleFlowItemClose()} @arcgisGetVersions=${async (p) => {
|
|
224
|
+
await this._refreshVersionList(p.detail.serviceUrl);
|
|
225
|
+
}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${(p) => this.versionList = p.detail}></arcgis-version-management-service-item>`;
|
|
226
|
+
}) : void 0, E = d === "disabled" && f != null ? g`<calcite-notice kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(f)}</div></calcite-notice>` : void 0, y = this._showInvalidFeatureServiceNotice ? g`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${() => this._showInvalidFeatureServiceNotice = !1}><div slot=title>${s.headers.invalidInitialFeatureService}</div><div slot=message>${s.loadErrors.invalidInitialFeatureService}</div></calcite-notice>` : void 0;
|
|
227
|
+
return g`<div class="root"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" ${M(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${o ?? void 0} @calciteFlowItemClose=${() => this._handleFlowItemClose()} .selected=${!m}>${y}<calcite-panel .loading=${d === "loading" || d === "executing"}>${V}${E}</calcite-panel></calcite-flow-item></calcite-flow></div>`;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
S("arcgis-version-management", O);
|
|
231
231
|
export {
|
|
232
232
|
O as ArcgisVersionManagement
|
|
233
233
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { LitElement as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as M, createEvent as o, safeClassMap as A } from "@arcgis/lumina";
|
|
4
4
|
import { html as t, render as U } from "lit";
|
|
5
|
-
class F extends
|
|
5
|
+
class F extends M {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments), this._showInvalidVersionNotice = !0, this.arcgisCreateVersionList = o(), this.arcgisFlowItemBack = o(), this.arcgisFlowItemClose = o(), this.arcgisGetVersions = o(), this.arcgisManageVersion = o(), this.arcgisNewVersion = o();
|
|
8
8
|
}
|
|
@@ -13,22 +13,22 @@ class F extends A {
|
|
|
13
13
|
super.disconnectedCallback(), this.versionListContainer?.remove();
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
const { serviceItemElementProps: { allowEditing:
|
|
16
|
+
const { serviceItemElementProps: { allowEditing: v, closable: h, currentUser: $, executionError: p, currentVersionIdentifier: r, flowElement: V, heading: b, isInitialVersionInvalid: I, isVersionAdministrator: f, isVersioningApiAvailable: u, mode: w, pageSize: x, serviceName: i, serviceUrl: c, state: E, strings: n, versionInfos: a } } = this;
|
|
17
17
|
let { _versionList: l } = this;
|
|
18
|
-
const
|
|
19
|
-
const m = s.target, e = a.find((
|
|
18
|
+
const N = I.get(c) && this._showInvalidVersionNotice ? t`<calcite-notice closable kind=warning open scale=s width=full icon @calciteNoticeClose=${() => this._showInvalidVersionNotice = !1}><div slot=title>${n.headers.invalidInitialVersion}</div><div slot=message>${n.loadErrors.invalidInitialVersion}</div></calcite-notice>` : void 0, C = t`<calcite-combobox .ariaLabel=${`combobox-${i}`} .label=${`combobox-${i}`} max-items=5 overlay-positioning=fixed selection-mode=single-persist @calciteComboboxChange=${(s) => {
|
|
19
|
+
const m = s.target, e = a.find((L) => L.versionIdentifier.guid === m.value);
|
|
20
20
|
this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: c, versionInfo: e });
|
|
21
|
-
}}>${a ? a.map((s) => t`<calcite-combobox-item class=${
|
|
21
|
+
}}>${a ? a.map((s) => t`<calcite-combobox-item class=${A(w === "dialog" ? "" : "calcite-combobox-item")} .heading=${s.versionIdentifier.name} .value=${s.versionIdentifier.guid} .selected=${r.guid === s.versionIdentifier.guid && r.name === s.versionIdentifier.name}></calcite-combobox-item>`) : void 0}</calcite-combobox>`;
|
|
22
22
|
let d, g;
|
|
23
|
-
return
|
|
23
|
+
return v && (d = t`<calcite-action icon=list .id=${`action-manage-versions-${i}`} .label=${`action-manage-versions-${i}`} scale=s slot=actions-end .text=${`action-manage-versions-${i}`} @click=${async () => {
|
|
24
24
|
const s = {
|
|
25
|
-
closable:
|
|
26
|
-
currentUser:
|
|
25
|
+
closable: h,
|
|
26
|
+
currentUser: $,
|
|
27
27
|
currentVersionIdentifier: r,
|
|
28
|
-
executionError:
|
|
29
|
-
heading:
|
|
30
|
-
isVersionAdministrator:
|
|
31
|
-
isVersioningApiAvailable:
|
|
28
|
+
executionError: p,
|
|
29
|
+
heading: b,
|
|
30
|
+
isVersionAdministrator: f,
|
|
31
|
+
isVersioningApiAvailable: u,
|
|
32
32
|
pageSize: x,
|
|
33
33
|
serviceName: i,
|
|
34
34
|
serviceUrl: c,
|
|
@@ -40,11 +40,11 @@ class F extends A {
|
|
|
40
40
|
const m = U(t`<arcgis-version-management-version-list .versionListElementProps=${s} selected show-back-button @arcgisFlowItemBack=${(e) => {
|
|
41
41
|
e.preventDefault(), this.arcgisFlowItemBack.emit();
|
|
42
42
|
}} @arcgisFlowItemClose=${() => this.arcgisFlowItemClose.emit()} @arcgisGetVersions=${(e) => this.arcgisGetVersions.emit({ serviceUrl: e.detail.serviceUrl })} @arcgisManageVersion=${(e) => this.arcgisManageVersion.emit(e.detail)} @arcgisNewVersion=${(e) => this.arcgisNewVersion.emit({ serviceUrl: e.detail.serviceUrl })}></arcgis-version-management-version-list>`, this.versionListContainer);
|
|
43
|
-
l = Array.from(m.parentNode.childNodes).find((e) => e.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"),
|
|
44
|
-
}}></calcite-action>`, g = t`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-manage-versions-${i}`}><span>${n.headers.manageVersions}</span></calcite-tooltip>`), t`<calcite-block expanded .heading=${i}>${
|
|
43
|
+
l = Array.from(m.parentNode.childNodes).find((e) => e.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"), V?.append(l), this.arcgisCreateVersionList.emit(l);
|
|
44
|
+
}}></calcite-action>`, g = t`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-manage-versions-${i}`}><span>${n.headers.manageVersions}</span></calcite-tooltip>`), t`<calcite-block expanded .heading=${i}>${N}${C}${d}${g}</calcite-block>`;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
k("arcgis-version-management-service-item", F);
|
|
48
48
|
export {
|
|
49
49
|
F as ArcgisVersionManagementServiceItem
|
|
50
50
|
};
|
|
@@ -3,7 +3,7 @@ import { c as y } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as B, html as i, nothing as U } from "lit";
|
|
4
4
|
import { createRef as w, ref as x } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement as A, createEvent as p } from "@arcgis/lumina";
|
|
6
|
-
const M = B`:host{
|
|
6
|
+
const M = B`:host{min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-block{margin-block:0;width:100%}calcite-pagination{justify-content:center;background-color:var(--calcite-color-surface-2)}.filter-container{width:100%}.fab-container{background-color:var(--calcite-color-surface-2);display:flex;justify-content:center}`;
|
|
7
7
|
class T extends A {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments), this._filterInputElement = w(), this._flowItemElement = w(), this.currentPage = 1, this.selected = !1, this.showBackButton = !1, this.arcgisFlowItemBack = p(), this.arcgisFlowItemClose = p(), this.arcgisGetVersions = p(), this.arcgisManageVersion = p(), this.arcgisNewVersion = p();
|
|
@@ -58,34 +58,34 @@ class T extends A {
|
|
|
58
58
|
return e.slice((n - 1) * t, n * t);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
const { currentPage: e, selected: t, showBackButton: n, versionListElementProps: { closable:
|
|
61
|
+
const { currentPage: e, selected: t, showBackButton: n, versionListElementProps: { closable: m, currentUser: v, currentVersionIdentifier: d, executionError: h, heading: o, isVersionAdministrator: f, isVersioningApiAvailable: u, pageSize: r, serviceName: s, serviceUrl: c, state: g, strings: { headers: l }, strings: a, versionInfos: $ } } = this, V = i`<calcite-block .description=${d.name} .heading=${l.currentVersion} overlay-positioning=fixed scale=s></calcite-block>`, I = i`<calcite-action icon=refresh .id=${`action-refresh-versions-${s}`} .label=${`action-refresh-versions-${s}`} slot=header-actions-end text @click=${() => this.arcgisGetVersions.emit({ serviceUrl: c })}><calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-refresh-versions-${s}`}><span>${a.actions.refreshVersions}</span></calcite-tooltip></calcite-action>`;
|
|
62
62
|
this._paginatedVersionInfos = this._filteredVersionInfos.length > r ? this._paginate(this._filteredVersionInfos, r, e) : this._filteredVersionInfos;
|
|
63
63
|
const b = this._filteredVersionInfos.length > r ? i`<calcite-pagination @calcitePaginationChange=${this._handlePaginationChange} page-size=1 .startItem=${e} .totalItems=${Math.ceil(this._filteredVersionInfos.length / r)}></calcite-pagination>` : void 0, E = this._paginate(this._paginatedVersionInfos, r, 1).map((L) => {
|
|
64
64
|
const F = {
|
|
65
|
-
currentUser:
|
|
65
|
+
currentUser: v,
|
|
66
66
|
currentVersionIdentifier: d,
|
|
67
67
|
isCurrentVersionCard: !1,
|
|
68
68
|
isVersionAdministrator: f,
|
|
69
|
-
isVersioningApiAvailable:
|
|
69
|
+
isVersioningApiAvailable: u,
|
|
70
70
|
serviceUrl: c,
|
|
71
71
|
strings: a,
|
|
72
72
|
versionInfo: L
|
|
73
73
|
};
|
|
74
74
|
return this._renderListItem(F);
|
|
75
|
-
}), _ =
|
|
76
|
-
return i`<calcite-flow-item .closable=${
|
|
75
|
+
}), _ = $.length > r ? i`<div class="filter-container" slot=content-top><calcite-input-text clearable icon=search .label=${l.filterVersions} @calciteInputTextInput=${this._handleFilterChange} .placeholder=${a.actions.searchVersions} ${x(this._filterInputElement)}></calcite-input-text></div>` : void 0, C = i`<calcite-list .label=${a.labels.versionList}>${E}</calcite-list>`, k = u ? i`<div class="fab-container"><calcite-fab appearance=outline-fill text-enabled .text=${a.actions.newVersion} @click=${() => this.arcgisNewVersion.emit({ serviceUrl: c })}></calcite-fab></div>` : void 0, P = h ? i`<calcite-notice @calciteNoticeClose=${this._handleNoticeClosed} closable kind=warning open scale=s width=full><div slot=message>${this._getExecutionError(h)}</div></calcite-notice>` : void 0;
|
|
76
|
+
return i`<calcite-flow-item .closable=${m} .description=${s} .heading=${o} .selected=${t} .showBackButton=${n} @calciteFlowItemBack=${() => this.arcgisFlowItemBack.emit()} @calciteFlowItemClose=${() => this.arcgisFlowItemClose.emit()} ${x(this._flowItemElement)}><calcite-panel .loading=${g === "executing"}>${V}<calcite-panel .heading=${this._filteredVersionInfos.length ? `${a.headers.manageVersions} (${this._filteredVersionInfos.length})` : a.headers.manageVersions} scale=s>${I}${_}${C}${k}${b}</calcite-panel>${P}</calcite-panel></calcite-flow-item>`;
|
|
77
77
|
}
|
|
78
78
|
_renderListItem(e) {
|
|
79
|
-
const { currentUser: t, currentVersionIdentifier: n, isVersionAdministrator:
|
|
79
|
+
const { currentUser: t, currentVersionIdentifier: n, isVersionAdministrator: m, isVersioningApiAvailable: v, serviceUrl: d, strings: { actions: h }, versionInfo: o } = e, f = o.versionIdentifier.name, u = f.substring(f.lastIndexOf(".") + 1), r = f.substring(0, f.lastIndexOf(".")), s = o.versionIdentifier.guid, c = `action-start-switch-to-version-${s}`, g = r.toUpperCase() === t.toUpperCase() && v || m, l = n.guid === o.versionIdentifier.guid, a = f.toUpperCase() === "SDE.DEFAULT", $ = i`<calcite-action .disabled=${l} icon=code-branch .label=${`action-switch-to-version-${s}`} scale=s .text=${h.switchToVersion} text-enabled @click=${() => {
|
|
80
80
|
this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: d, versionInfo: o });
|
|
81
81
|
}}></calcite-action>`, V = a ? void 0 : i`<calcite-action .disabled=${!g || g && l} icon=trash .label=${`action-delete-version-${s}`} scale=s .text=${h.deleteVersion} text-enabled @click=${() => {
|
|
82
82
|
this.arcgisManageVersion.emit({ actionType: "deleteVersion", serviceUrl: d, versionInfo: o });
|
|
83
83
|
}}></calcite-action>`, I = i`<calcite-action .disabled=${!g || l} icon=code-branch-edit .label=${`action-edit-version-${s}`} scale=s .text=${h.editVersion} text-enabled @click=${() => {
|
|
84
84
|
this.arcgisManageVersion.emit({ actionType: "editVersion", serviceUrl: d, versionInfo: o });
|
|
85
|
-
}}></calcite-action>`, b = i`<calcite-action-menu .label=${`action-version-menu-${s}`} overlay-positioning=fixed slot=actions-end>${
|
|
85
|
+
}}></calcite-action>`, b = i`<calcite-action-menu .label=${`action-version-menu-${s}`} overlay-positioning=fixed slot=actions-end>${$}${I}${V}</calcite-action-menu>`, E = l ? void 0 : i`<calcite-tooltip overlay-positioning=fixed .referenceElement=${c}><span>${h.switchToVersion}</span></calcite-tooltip>`, _ = i`<div slot=actions-start><calcite-action .disabled=${l} icon=code-branch id=${c ?? U} .label=${c} .text=${c} @click=${() => {
|
|
86
86
|
this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: d, versionInfo: o });
|
|
87
87
|
}}></calcite-action>${E}</div>`;
|
|
88
|
-
return i`<calcite-list-item .description=${r} .label=${
|
|
88
|
+
return i`<calcite-list-item .description=${r} .label=${u} .value=${s}>${_}${b}</calcite-list-item>`;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
y("arcgis-version-management-version-list", T);
|