@arcgis/map-components 5.2.0-next.12 → 5.2.0-next.13
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/4BGPI3L3.js +2 -0
- package/dist/cdn/{GTOGU3CL.js → 5D3ZCD2V.js} +1 -1
- package/dist/cdn/{HNGHLDNZ.js → 5Z6MDFHN.js} +1 -1
- package/dist/cdn/64S26ZIP.js +2 -0
- package/dist/cdn/{3QWDXECJ.js → K6O7QOW4.js} +1 -1
- package/dist/cdn/MCIDCKIS.js +2 -0
- package/dist/cdn/O3S3JGUF.js +2 -0
- package/dist/cdn/QQPVIXFY.js +2 -0
- package/dist/cdn/R66ZOECE.js +2 -0
- package/dist/cdn/TPZUKUI7.js +2 -0
- package/dist/cdn/UCPXN4Y5.js +2 -0
- package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +32 -23
- package/dist/components/arcgis-features-next/customElement.js +14 -11
- package/dist/components/arcgis-labeled-switch/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.js +66 -54
- package/dist/components/arcgis-multi-feature-form/customElement.js +14 -14
- package/dist/components/arcgis-print/customElement.d.ts +3 -0
- package/dist/components/arcgis-print-datum-transformation-input/customElement.js +74 -0
- package/dist/components/arcgis-print-datum-transformation-input/index.js +3 -0
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +14 -11
- package/dist/components/arcgis-print-layout-advanced-options/index.js +1 -0
- package/dist/components/arcgis-print-template-selector/customElement.js +8 -8
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +4 -5
- package/dist/components/arcgis-slider-scale-range/customElement.js +69 -56
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -0
- package/package.json +4 -4
- package/dist/cdn/DNZU7DTQ.js +0 -2
- package/dist/cdn/IKSY73X2.js +0 -2
- package/dist/cdn/JE5LMTIW.js +0 -2
- package/dist/cdn/KI4JUPA7.js +0 -2
- package/dist/cdn/OJIPBNXS.js +0 -2
- package/dist/cdn/OUYGGJ47.js +0 -2
- package/dist/cdn/VNP4GF74.js +0 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { usePropertyChange as
|
|
2
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
3
|
+
import { usePropertyChange as n } from "@arcgis/lumina/controllers";
|
|
4
4
|
import { reEmitEvent as a } from "@arcgis/lumina/controllers/accessor";
|
|
5
|
-
import
|
|
6
|
-
import { LitElement as d, createEvent as
|
|
5
|
+
import s from "@arcgis/core/widgets/BatchAttributeForm.js";
|
|
6
|
+
import { LitElement as d, createEvent as m } from "@arcgis/lumina";
|
|
7
7
|
import { m as h } from "../../chunks/useWidget.js";
|
|
8
|
-
import { css as
|
|
9
|
-
const p = u`.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-hidden{display:none!important}.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-batch-attribute-form{background-color:var(--calcite-color-background);padding:var(--arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg))}.esri-batch-attribute-form__notice-error{margin:0 0 var(--calcite-spacing-xxl)}.esri-batch-attribute-form__form{display:flex;flex-direction:column}.esri-batch-attribute-form__centered-button{align-self:center}.esri-batch-attribute-form__description-text{color:var(--calcite-color-text-2)}.esri-batch-attribute-form__label{white-space:pre-wrap;word-break:break-word;word-wrap:break-word;display:flex;position:relative;flex-direction:column;justify-content:space-between;transition:opacity .25s,margin .25s;opacity:1;margin-bottom:var(--calcite-spacing-xs)}.esri-batch-attribute-form__label:last-child{margin-bottom:0}.esri-batch-attribute-form-text-content{white-space:pre-wrap;word-break:break-word;word-wrap:break-word;display:flex;align-items:center}.esri-batch-attribute-form__input--switch{margin:7px 0}.esri-batch-attribute-form__input--radio-label{display:flex;align-items:center}.esri-batch-attribute-form__input--radio-group{display:flex;flex-direction:column}.esri-batch-attribute-form__input--radio-placeholder{color:var(--calcite-color-text-3);font-style:italic}.esri-batch-attribute-form__form-header{margin-bottom:var(--calcite-spacing-md)}.esri-batch-attribute-form__form-header .esri-batch-attribute-form__description-text~.esri-widget__heading{margin-bottom:0}.esri-batch-attribute-form__input{width:100%;&:focus{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);outline-offset:-2px}}.esri-batch-attribute-form__input--disabled{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__individual-element{margin:var(--calcite-spacing-xxl) 0}.esri-batch-attribute-form__date-input-container{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.esri-batch-attribute-form__date-input-container .esri-batch-attribute-form__input{margin-bottom:3px}.esri-batch-attribute-form__date-input-container :last-child{margin-bottom:0}.esri-batch-attribute-form__group{margin:0 0 var(--calcite-spacing-md);background-color:inherit;margin-inline:-10px}.esri-batch-attribute-form__group--sequential{border-bottom:none;border-inline-start:3px solid #adadad4d}.esri-batch-attribute-form__block{margin-inline:-10px}.esri-batch-attribute-form__text-element-input{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-normal);a{display:inline;position:relative;transition:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start inset-size,opacity,outline-color,transform var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;border-style:none;background-color:transparent;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;padding:0;text-decoration:none;color:var(--calcite-color-text-link);&:hover,&:focus{background-size:100% 1px,100% 1px}&:active{background-size:100% 2px,100% 2px}&.calcite--rtl{background-position:100% 100%,100% 100%}}code{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-xs);background-color:var(--calcite-color-foreground-3);padding:var(--calcite-spacing-xxs);white-space:normal;word-break:break-word;color:var(--calcite-color-text-2);font-family:var(--calcite-code-family);font-size:85%}h1,h2,h3,h4,h5{margin-bottom:var(--calcite-spacing-xxs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}h5{font-weight:var(--calcite-font-weight-medium)}h6{margin-bottom:var(--calcite-spacing-xxs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}p{margin-bottom:var(--calcite-spacing-lg);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-normal)}strong{font-weight:var(--calcite-font-weight-bold)}}:dir(rtl) .esri-batch-attribute-form__date-input-part:first-child .esri-batch-attribute-form__input{border-right:var(--calcite-spacing-px) solid #adadad4d;border-left:none}`;
|
|
8
|
+
import { css as p } from "lit";
|
|
9
|
+
const g = 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-hidden{display:none!important}.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-batch-attribute-form{background-color:var(--calcite-color-background);padding:var(--arcgis-internal-padding, var(--calcite-space-md) var(--calcite-space-lg))}.esri-batch-attribute-form__notice-error{margin:0 0 var(--calcite-space-2xl)}.esri-batch-attribute-form__form{display:flex;flex-direction:column}.esri-batch-attribute-form__centered-button{align-self:center}.esri-batch-attribute-form__description-text{color:var(--calcite-color-text-3)}.esri-batch-attribute-form__label{white-space:pre-wrap;overflow-wrap:break-word;display:flex;position:relative;flex-direction:column;justify-content:space-between;transition:opacity .25s,margin .25s;opacity:1;margin-bottom:var(--calcite-space-xs);&:last-child{margin-bottom:0}}.esri-batch-attribute-form__label-text-content{white-space:pre-wrap;overflow-wrap:break-word;display:flex;align-items:center}.esri-batch-attribute-form__input--switch{margin:7px 0}.esri-batch-attribute-form__input--radio-label{display:flex;align-items:center}.esri-batch-attribute-form__input--radio-group{display:flex;flex-direction:column}.esri-batch-attribute-form__input--radio-placeholder{color:var(--calcite-color-text-3);font-style:italic}.esri-batch-attribute-form__multiple-choice-input,.esri-batch-attribute-form__multiple-choice-input__other-choice{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__select-all{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-end:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__other-choice--with-select-all{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-start:var(--calcite-space-sm)}.esri-batch-attribute-form__form-header{margin-bottom:var(--calcite-space-md);.esri-batch-attribute-form__description-text~.esri-widget__heading{margin-bottom:0}}.esri-batch-attribute-form__input{width:100%;&:not(calcite-checkbox):focus{outline:var(--calcite-space-base) solid var(--calcite-color-brand);outline-offset:-2px}}.esri-batch-attribute-form__input--disabled{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__individual-element{margin:var(--calcite-space-2xl) 0}.esri-batch-attribute-form__date-input-container{display:flex;flex-direction:column;gap:var(--calcite-space-sm);.esri-batch-attribute-form__input{margin-bottom:var(--calcite-space-base)}&:last-child{margin-bottom:0}}.esri-batch-attribute-form__group{margin:0 0 var(--calcite-space-md) 0;background-color:inherit;margin-inline:calc(var(--calcite-space-md) * -1)}.esri-batch-attribute-form__group--sequential{border-bottom:none;border-inline-start:3px solid var(--calcite-color-border-input)}.esri-batch-attribute-form__relationship-element-input{margin-block-end:var(--calcite-space-lg);calcite-notice,.esri-batch-attribute-form__relationship-element-input_list{margin-bottom:var(--calcite-space-md-plus)}}.esri-batch-attribute-form__relationship-element-input_header{color:var(--calcite-color-text-1)}.esri-batch-attribute-form__relationship-element-input_description,.esri-batch-attribute-form__relationship-element-input_header{margin-bottom:var(--calcite-space-md-plus)}.esri-batch-attribute-form__relationship-element-input_list{min-height:var(--calcite-space-2xs)}.esri-batch-attribute-form__relationship-element-input_list-observer{position:relative;bottom:20px;z-index:2;text-align:center}.esri-batch-attribute-form__relationship-element-input_showing-all{.esri-batch-attribute-form__relationship-element-input_add-button{margin-block:var(--calcite-space-md)}}.esri-batch-attribute-form__attachment-element-input{margin:var(--calcite-space-2xl) 0}.esri-batch-attribute-form__attachment-element-label{white-space:pre-wrap;overflow-wrap:break-word;margin-bottom:var(--calcite-space-2xs);color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-list{margin-block:var(--calcite-space-sm);border-block:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.esri-batch-attribute-form__attachment-element-list-item{--calcite-list-item-border-color: var(--calcite-color-border-3);white-space:pre-wrap;overflow-wrap:break-word;min-block-size:var(--calcite-space-2xl)}.esri-batch-attribute-form__attachment-element-list-item-start{display:flex;align-items:center;justify-content:center;border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-3);block-size:var(--calcite-space-3xl);inline-size:var(--calcite-space-3xl);color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-list-item-staged-indicator{display:inline-flex;border-radius:50%;background-color:var(--calcite-color-brand);block-size:var(--calcite-space-xs);inline-size:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-list-item-thumb{border-radius:inherit;block-size:100%;inline-size:100%;object-fit:cover}.esri-batch-attribute-form__attachment-element-list-item-icon{color:inherit}.esri-batch-attribute-form__attachment-element-empty-state{padding-block:var(--calcite-space-sm);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}.esri-batch-attribute-form__attachment-element-add-actions{display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:flex-start;justify-content:flex-start;inline-size:100%}.esri-batch-attribute-form__attachment-element-capture-notice{inline-size:100%}.esri-batch-attribute-form__attachment-element-empty-action-hint{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-empty-action-hint-value{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-all-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-file-input{display:none}.esri-batch-attribute-form__attachment-element-add-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-add-dropzone{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:0;align-items:center;justify-content:center;transition:border-color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out;border:var(--calcite-border-width-sm) dashed var(--calcite-color-border-input);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-lg) var(--calcite-space-md);min-block-size:10.875rem;inline-size:100%;text-align:center}.esri-batch-attribute-form__attachment-element-add-dropzone-icon{margin-block-end:var(--calcite-space-sm);color:var(--calcite-color-text-3)}.esri-batch-attribute-form__attachment-element-add-dropzone-heading{margin-block-end:var(--calcite-space-xs);line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone-detail{white-space:pre-wrap;overflow-wrap:break-word;margin-block-end:var(--calcite-space-md);max-inline-size:13rem;line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone calcite-button{align-self:center}.esri-batch-attribute-form__attachment-element-validation-criteria{display:flex;flex-direction:column;gap:var(--calcite-space-xs);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail-metadata-group{display:flex;flex-direction:column;gap:var(--calcite-space-2xs)}.esri-batch-attribute-form__attachment-element-detail-file-name-row{display:flex;gap:var(--calcite-space-2xs);align-items:center;inline-size:100%}.esri-batch-attribute-form__attachment-element-detail-file-name-input{flex:1 1 auto;min-inline-size:0}.esri-batch-attribute-form__attachment-element-detail-preview{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm);inline-size:100%}.esri-batch-attribute-form__attachment-element-detail-preview-image{display:block;block-size:auto;max-block-size:min(24rem,50vh);inline-size:100%;object-fit:contain}.esri-batch-attribute-form__attachment-element-detail-preview-icon{color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-detail-actions{display:flex;flex-wrap:wrap;gap:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-detail-metadata{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding-block-start:var(--calcite-space-lg)}.esri-batch-attribute-form__attachment-element-detail-metadata-label{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__attachment-element-detail-metadata-value{white-space:pre-wrap;overflow-wrap:break-word;line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__text-element-input{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);a{display:inline;position:relative;transition:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start inset-size,opacity,outline-color,transform var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;border-style:none;background-color:transparent;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;padding:0;text-decoration:none;color:var(--calcite-color-text-link);&:hover,&:focus{background-size:100% 1px,100% 1px}&:active{background-size:100% 2px,100% 2px}&.calcite--rtl{background-position:100% 100%,100% 100%}}code{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-xs);background-color:var(--calcite-color-surface-4);padding:var(--calcite-space-2xs);white-space:normal;word-break:break-word;color:var(--calcite-color-text-2);font-family:var(--calcite-code-family);font-size:85%}h1,h2,h3,h4,h5{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}h5{font-weight:var(--calcite-font-weight-medium)}h6{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}p{margin-bottom:var(--calcite-space-lg);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}strong{font-weight:var(--calcite-font-weight-bold)}}.esri-batch-attribute-form__utility-network-associations-element-input{margin-block-end:var(--calcite-space-md);.esri-feature-utility-network-associations{.esri-feature-element-info__description{color:var(--calcite-color-text-3)}h5{color:var(--calcite-color-text-1);font-size:inherit}}}`;
|
|
10
10
|
var o = (t) => {
|
|
11
11
|
throw TypeError(t);
|
|
12
|
-
},
|
|
13
|
-
const
|
|
14
|
-
class
|
|
12
|
+
}, c = (t, e, i) => e.has(t) || o("Cannot " + i), u = (t, e, i) => (c(t, e, "read from private field"), i ? i.call(t) : e.get(t)), b = (t, e, i) => e.has(t) ? o("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), f = (t, e, i, x) => (c(t, e, "write to private field"), e.set(t, i), i), r;
|
|
13
|
+
const v = h(s);
|
|
14
|
+
class _ extends d {
|
|
15
15
|
constructor() {
|
|
16
|
-
super(...arguments), b(this, r), this.widget =
|
|
16
|
+
super(...arguments), b(this, r), this.widget = v(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.editType = this.viewModel.editType, this.groupDisplay = this.widget.groupDisplay, this.headingLevel = this.widget.headingLevel, this.icon = this.widget.icon, this.status = this.viewModel.status, this.valid = this.viewModel.valid, this.label = this.widget.label, this.features = this.widget.features, this.disabled = this.widget.disabled, this.activeFeatureIndex = this.widget.activeFeatureIndex, this.submitHasBeenAttempted = this.viewModel.submitHasBeenAttempted, this.updating = this.viewModel.updating, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.hasTooManyFeatures = this.viewModel.hasTooManyFeatures, this.hasTooManyComplexFeatures = this.viewModel.hasTooManyComplexFeatures, this.readOnly = this.widget.readOnly, this.timeZone = this.widget.timeZone, this.arcgisPropertyChange = n()("status", "valid", "updating", "submitHasBeenAttempted", "activeFeatureIndex"), this.arcgisReady = m(), this.arcgisSubmit = a(() => this.widget, "submit"), this.arcgisValueChange = a(() => this.widget, "value-change");
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
19
|
this.properties = { view: 0, autoDestroyDisabled: 5, editType: 1, groupDisplay: 1, headingLevel: 9, icon: 1, status: 1, valid: 5, label: 1, features: 0, disabled: 5, activeFeatureIndex: 9, submitHasBeenAttempted: 5, updating: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, hasTooManyFeatures: 5, hasTooManyComplexFeatures: 5, invalidFeatures: 32, position: 1, referenceElement: 1, readOnly: 5, timeZone: 1 };
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.styles =
|
|
22
|
+
this.styles = g;
|
|
23
23
|
}
|
|
24
24
|
get layerInfos() {
|
|
25
|
-
return
|
|
25
|
+
return u(this, r);
|
|
26
26
|
}
|
|
27
27
|
set layerInfos(e) {
|
|
28
28
|
f(this, r, e);
|
|
@@ -44,7 +44,7 @@ class v extends d {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
r = /* @__PURE__ */ new WeakMap();
|
|
47
|
-
|
|
47
|
+
l("arcgis-multi-feature-form", _);
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
_ as ArcgisMultiFeatureForm
|
|
50
50
|
};
|
|
@@ -230,6 +230,7 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
230
230
|
northArrow?: string | undefined;
|
|
231
231
|
scaleBar?: string | undefined;
|
|
232
232
|
outSpatialReference?: string | undefined;
|
|
233
|
+
datumTransformations?: string | undefined;
|
|
233
234
|
invalidWkid?: string | undefined;
|
|
234
235
|
layoutTab?: string | undefined;
|
|
235
236
|
mapOnlyTab?: string | undefined;
|
|
@@ -327,6 +328,7 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
327
328
|
northArrow: string;
|
|
328
329
|
scaleBar: string;
|
|
329
330
|
outSpatialReference: string;
|
|
331
|
+
datumTransformations: string;
|
|
330
332
|
invalidWkid: string;
|
|
331
333
|
layoutTab: string;
|
|
332
334
|
mapOnlyTab: string;
|
|
@@ -422,6 +424,7 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
422
424
|
northArrow: string;
|
|
423
425
|
scaleBar: string;
|
|
424
426
|
outSpatialReference: string;
|
|
427
|
+
datumTransformations: string;
|
|
425
428
|
invalidWkid: string;
|
|
426
429
|
layoutTab: string;
|
|
427
430
|
mapOnlyTab: string;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as e } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as m, html as o } from "lit";
|
|
4
|
+
import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as l } from "@arcgis/lumina";
|
|
6
|
+
import f from "@arcgis/core/geometry/operators/support/GeographicTransformation.js";
|
|
7
|
+
import c from "@arcgis/core/geometry/operators/support/GeographicTransformationStep.js";
|
|
8
|
+
const d = m`.invalid-wkid-text{color:var(--calcite-color-status-danger);font-size:var(--calcite-font-size--0)}`, p = /^\s*\d+(?:\s*\+\s*\d+)*(?:\s*,\s*\d+(?:\s*\+\s*\d+)*)*\s*$/u;
|
|
9
|
+
function h(s) {
|
|
10
|
+
if (!/^\d+$/u.test(s))
|
|
11
|
+
return null;
|
|
12
|
+
const t = Number(s);
|
|
13
|
+
return Number.isSafeInteger(t) && t > 0 ? t : null;
|
|
14
|
+
}
|
|
15
|
+
function T(s) {
|
|
16
|
+
if (!p.test(s))
|
|
17
|
+
return null;
|
|
18
|
+
const t = [];
|
|
19
|
+
for (const i of s.split(",")) {
|
|
20
|
+
const a = [];
|
|
21
|
+
for (const r of i.split("+")) {
|
|
22
|
+
const n = h(r.trim());
|
|
23
|
+
if (n == null)
|
|
24
|
+
return null;
|
|
25
|
+
a.push(new c({ wkid: n }));
|
|
26
|
+
}
|
|
27
|
+
t.push(new f({ steps: a }));
|
|
28
|
+
}
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
function v(s) {
|
|
32
|
+
return s == null || s.length === 0 ? "" : s.map(
|
|
33
|
+
(t) => t.steps.map((i) => i.wkid).filter((i) => i != null).join("+")
|
|
34
|
+
).filter((t) => t.length > 0).join(",");
|
|
35
|
+
}
|
|
36
|
+
class w extends l {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments), this._isValidDatumTransformations = !0;
|
|
39
|
+
}
|
|
40
|
+
static {
|
|
41
|
+
this.properties = { _datumTransformations: 16, _isValidDatumTransformations: 16, templateOptions: 0, viewModel: 0, messages: 0 };
|
|
42
|
+
}
|
|
43
|
+
static {
|
|
44
|
+
this.styles = d;
|
|
45
|
+
}
|
|
46
|
+
loaded() {
|
|
47
|
+
this.manager.onLifecycle(() => [
|
|
48
|
+
u(() => this.viewModel.datumTransformations, (t) => {
|
|
49
|
+
this._datumTransformations = v(t), this._isValidDatumTransformations = !0;
|
|
50
|
+
}, { initial: !0 })
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
const { messages: t } = this, i = this.viewModel.cimVersion;
|
|
55
|
+
if (!(i != null && Number.parseFloat(i) < 3.7))
|
|
56
|
+
return o`<div><calcite-label>${t.datumTransformations}<calcite-input .value=${this._datumTransformations ?? ""} .max=${Number.MAX_SAFE_INTEGER} @calciteInputInput=${({ currentTarget: a }) => {
|
|
57
|
+
const r = a.value?.trim() ?? "";
|
|
58
|
+
if (this._datumTransformations = r, r === "") {
|
|
59
|
+
this.viewModel.datumTransformations = null, this._isValidDatumTransformations = !0;
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const n = T(r);
|
|
63
|
+
if (n == null) {
|
|
64
|
+
this._isValidDatumTransformations = !1;
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this._isValidDatumTransformations = !0, this.viewModel.datumTransformations = n;
|
|
68
|
+
}}></calcite-input>${this._isValidDatumTransformations ? null : o`<div class="invalid-wkid-text">${t.invalidWkid}</div>`}</calcite-label></div>`;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
e("arcgis-print-datum-transformation-input", w);
|
|
72
|
+
export {
|
|
73
|
+
w as PrintDatumTransformationInput
|
|
74
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as r, html as t } from "lit";
|
|
4
|
-
import { watch as
|
|
4
|
+
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as c } from "@arcgis/lumina";
|
|
6
6
|
import { u as h } from "../../chunks/useHandles.js";
|
|
7
7
|
const u = r`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`, d = [
|
|
@@ -16,11 +16,11 @@ const u = r`.advanced-options-container{padding:var(--calcite-spacing-xxs);displ
|
|
|
16
16
|
function p(i) {
|
|
17
17
|
if (!i)
|
|
18
18
|
return !1;
|
|
19
|
-
const { map: e, graphics:
|
|
20
|
-
return
|
|
19
|
+
const { map: e, graphics: n } = i;
|
|
20
|
+
return n?.length ? !0 : e?.allLayers.some((a) => {
|
|
21
21
|
if (a.type === "feature" && "source" in a) {
|
|
22
|
-
const { type:
|
|
23
|
-
return
|
|
22
|
+
const { type: l } = a.source;
|
|
23
|
+
return l !== "feature-layer" && l !== "ogc-feature";
|
|
24
24
|
}
|
|
25
25
|
return d.includes(a.type);
|
|
26
26
|
}) ?? !1;
|
|
@@ -41,8 +41,8 @@ class g extends c {
|
|
|
41
41
|
}
|
|
42
42
|
loaded() {
|
|
43
43
|
this.manager.onLifecycle(() => [
|
|
44
|
-
|
|
45
|
-
this._handles.removeHandles("template-handle"), this._selectedTemplate = e ? this.viewModel.getLayoutTemplateById(e) ?? void 0 : void 0, this._handles.addHandles(
|
|
44
|
+
s(() => this.viewModel.templateOptions.id, (e) => {
|
|
45
|
+
this._handles.removeHandles("template-handle"), this._selectedTemplate = e ? this.viewModel.getLayoutTemplateById(e) ?? void 0 : void 0, this._handles.addHandles(s(() => [
|
|
46
46
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText,
|
|
47
47
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText,
|
|
48
48
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend,
|
|
@@ -52,13 +52,13 @@ class g extends c {
|
|
|
52
52
|
this._showAuthorInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText ?? !0, this._showCopyrightInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText ?? !0, this._showLegendInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend ?? !0, this._showNorthArrowInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.northArrow.length, this._showScaleBarInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar.length, this._showForceFeatureAttributes = p(this.viewModel.view) && !!this._selectedTemplate?.layoutItem?.id && !this.hideFeatureAttributes, this._showTablesInput = m(this.viewModel.view) && !!this._selectedTemplate?.layoutItem?.id && !this.hideIncludeTables;
|
|
53
53
|
}, { initial: !0 }), "template-handle");
|
|
54
54
|
}, { initial: !0 }),
|
|
55
|
-
|
|
55
|
+
s(() => [this.viewModel.portal?.user, this.autoPopulateAuthor], () => {
|
|
56
56
|
!this.viewModel.templateOptions.author && this.autoPopulateAuthor && this.viewModel.portal?.user?.username && (this.viewModel.templateOptions.author = this.viewModel.portal.user.username, this.requestUpdate());
|
|
57
57
|
}, { initial: !0 })
|
|
58
58
|
]);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return t`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderAuthorSection()}${this._renderCopyrightSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderCustomTextElementSection()}${this._renderLegendSection()}${this._renderNorthArrowSection()}${this._renderScaleBarSection()}${this._renderForceFeatureAttributesSection()}${this._renderIncludeTablesSection()}</div>`;
|
|
61
|
+
return t`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderAuthorSection()}${this._renderCopyrightSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderDatumTransformationSection()}${this._renderCustomTextElementSection()}${this._renderLegendSection()}${this._renderNorthArrowSection()}${this._renderScaleBarSection()}${this._renderForceFeatureAttributesSection()}${this._renderIncludeTablesSection()}</div>`;
|
|
62
62
|
}
|
|
63
63
|
_renderScaleSection() {
|
|
64
64
|
return t`<arcgis-print-scale-section .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-scale-section>`;
|
|
@@ -75,6 +75,9 @@ class g extends c {
|
|
|
75
75
|
_renderOutSpatialReferenceSection() {
|
|
76
76
|
return t`<arcgis-print-out-spatial-reference-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-out-spatial-reference-input>`;
|
|
77
77
|
}
|
|
78
|
+
_renderDatumTransformationSection() {
|
|
79
|
+
return t`<arcgis-print-datum-transformation-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-datum-transformation-input>`;
|
|
80
|
+
}
|
|
78
81
|
_renderCustomTextElementSection() {
|
|
79
82
|
return t`<arcgis-print-custom-text-elements .viewModel=${this.viewModel}></arcgis-print-custom-text-elements>`;
|
|
80
83
|
}
|
|
@@ -96,7 +99,7 @@ class g extends c {
|
|
|
96
99
|
return this._showTablesInput ? t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.includeTables} @calciteCheckboxChange=${(e) => this.viewModel.templateOptions.includeTables = e.target.checked}></calcite-checkbox>${this.messages.includeTables}</calcite-label></div>` : null;
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
|
-
|
|
102
|
+
o("arcgis-print-layout-advanced-options", g);
|
|
100
103
|
export {
|
|
101
104
|
g as PrintLayoutAdvancedOptions
|
|
102
105
|
};
|
|
@@ -3,6 +3,7 @@ import "@esri/calcite-components/components/calcite-label";
|
|
|
3
3
|
import "@esri/calcite-components/components/calcite-input";
|
|
4
4
|
import "../arcgis-print-dpi-input/index.js";
|
|
5
5
|
import "../arcgis-print-out-spatial-reference-input/index.js";
|
|
6
|
+
import "../arcgis-print-datum-transformation-input/index.js";
|
|
6
7
|
import "../arcgis-print-custom-text-elements/index.js";
|
|
7
8
|
import "@esri/calcite-components/components/calcite-checkbox";
|
|
8
9
|
import "@esri/calcite-components/components/calcite-select";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as m } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as p, html as l } from "lit";
|
|
4
|
-
import { watch as
|
|
4
|
+
import { watch as o } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as u, nothing as h } from "@arcgis/lumina";
|
|
6
|
-
import { i as
|
|
6
|
+
import { i as c, r as g, a as v, g as f, b as T } from "../../chunks/utils3.js";
|
|
7
7
|
import { u as w } from "../../chunks/useHandles.js";
|
|
8
|
-
const $ = p`:host{overflow-y:hidden;display:flex;flex:1 0}.template-select-flow-item-container{display:flex;flex-direction:column;justify-content:space-between;overflow-y:hidden;flex-grow:1}.template-select-flow-item-container .template-select-flow-item-content{display:flex;flex-direction:column;overflow-y:auto;flex:1 0}.template-select-flow-item-container .template-select-flow-item-content .template-select-flow-item-list-heading{display:flex;gap:var(--calcite-spacing-xs);align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);background-color:var(--calcite-color-foreground-2);border-bottom:1px solid var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-semibold)}.template-button-container{padding:var(--calcite-spacing-md)}.template-done-button{width:100%}`;
|
|
8
|
+
const $ = p`:host{overflow-y:hidden;display:flex;flex:1 0}.template-select-flow-item-container{display:flex;flex-direction:column;justify-content:space-between;overflow-y:hidden;flex-grow:1}.template-select-flow-item-container .template-select-flow-item-content{display:flex;flex-direction:column;overflow-y:auto;flex:1 0}.template-select-flow-item-container .template-select-flow-item-content .template-select-flow-item-list-heading{display:flex;gap:var(--calcite-spacing-xs);align-items:center;justify-content:space-between;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);background-color:var(--calcite-color-foreground-2);border-bottom:1px solid var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-semibold)}.template-button-container{padding:var(--calcite-spacing-md)}.template-done-button{width:100%}`;
|
|
9
9
|
class y extends u {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this._handles = w("disconnect");
|
|
@@ -18,19 +18,19 @@ class y extends u {
|
|
|
18
18
|
}
|
|
19
19
|
loaded() {
|
|
20
20
|
this.manager.onLifecycle(() => [
|
|
21
|
-
|
|
22
|
-
this._handles.removeHandles("template-handle"), this._selectedTemplate = e ? this.viewModel.getLayoutTemplateById(e) ?? void 0 : void 0, this._handles.addHandles(
|
|
21
|
+
o(() => this.viewModel.templateOptions.id, (e) => {
|
|
22
|
+
this._handles.removeHandles("template-handle"), this._selectedTemplate = e ? this.viewModel.getLayoutTemplateById(e) ?? void 0 : void 0, this._handles.addHandles(o(() => this._selectedTemplate?.state, () => this.requestUpdate(), { initial: !0 }), "template-handle");
|
|
23
23
|
}, { initial: !0 })
|
|
24
24
|
]);
|
|
25
25
|
}
|
|
26
26
|
_getPortalTemplates() {
|
|
27
|
-
return this.viewModel.includeDefaultTemplates && !this.excludeOrganizationTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !
|
|
27
|
+
return this.viewModel.includeDefaultTemplates && !this.excludeOrganizationTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !c(e) && !!i?.id) : [];
|
|
28
28
|
}
|
|
29
29
|
_getDefaultTemplates() {
|
|
30
|
-
return this.viewModel.includeDefaultTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !
|
|
30
|
+
return this.viewModel.includeDefaultTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !c(e) && !i?.id) : [];
|
|
31
31
|
}
|
|
32
32
|
_getPrintServiceTemplates() {
|
|
33
|
-
return !this.viewModel.includeDefaultTemplates || !this._getDefaultTemplates().length ? this.viewModel.printServiceTemplates.toArray().filter(({ layout: e }) => !
|
|
33
|
+
return !this.viewModel.includeDefaultTemplates || !this._getDefaultTemplates().length ? this.viewModel.printServiceTemplates.toArray().filter(({ layout: e }) => !c(e)) : [];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
const { messages: e } = this, i = g.test(this.viewModel.portal?.url), t = this.viewModel.browseTemplates.toArray(), a = this._getPortalTemplates(), s = this._getDefaultTemplates(), n = this._getPrintServiceTemplates(), r = t.length + a.length + s.length + n.length > 15;
|
|
@@ -66,11 +66,10 @@ export abstract class ArcgisSliderScaleRange extends LitElement {
|
|
|
66
66
|
* and [maxScale](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/#maxScale) values will match the scale range
|
|
67
67
|
* within which the layer will render.
|
|
68
68
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* to prevent the slider thumbs from moving past the min/max scale defined on the map service. The unavailable range will be designated with a dashed line.
|
|
69
|
+
* If a [TileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/TileLayer/) with resampling disabled is provided,
|
|
70
|
+
* the slider thumbs will not be allowed to move past the `lods` of the layer's tiling scheme.
|
|
71
|
+
* If a [MapImageLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/) is provided, the same restrictions to the thumbs
|
|
72
|
+
* will be applied via the min/max scale defined by the map service. The unavailable range will be designated with a dashed line.
|
|
74
73
|
*/
|
|
75
74
|
accessor layer: Layer | Sublayer | SubtypeSublayer | undefined;
|
|
76
75
|
/**
|