@arcgis/map-components 5.2.0-next.24 → 5.2.0-next.25

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.
Files changed (49) hide show
  1. package/dist/cdn/32XG4IQO.js +2 -0
  2. package/dist/cdn/5P3LF4QU.js +2 -0
  3. package/dist/cdn/7TE4BSW7.js +2 -0
  4. package/dist/cdn/{23VXN3VB.js → AASOO75T.js} +1 -1
  5. package/dist/cdn/B56MNMJP.js +2 -0
  6. package/dist/cdn/BXDVZQ2A.js +3 -0
  7. package/dist/cdn/DKG4Q4BC.js +2 -0
  8. package/dist/cdn/FWRUNJU5.js +2 -0
  9. package/dist/cdn/HUBIN764.js +2 -0
  10. package/dist/cdn/W67QMPVV.js +2 -0
  11. package/dist/cdn/XDKYOMSQ.js +2 -0
  12. package/dist/cdn/{6HLRQHTF.js → YKNC7IPO.js} +1 -1
  13. package/dist/cdn/index.js +1 -1
  14. package/dist/chunks/keyboard-utils.js +15 -0
  15. package/dist/components/arcgis-basemap-gallery/customElement.js +33 -32
  16. package/dist/components/arcgis-editor/customElement.js +18 -6
  17. package/dist/components/arcgis-feature-media/customElement.js +45 -44
  18. package/dist/components/arcgis-features/customElement.js +26 -25
  19. package/dist/components/arcgis-features-next/customElement.js +22 -21
  20. package/dist/components/arcgis-floor-filter/customElement.js +3 -3
  21. package/dist/components/arcgis-navigation-toggle/customElement.js +45 -26
  22. package/dist/components/arcgis-navigation-toggle/index.js +1 -0
  23. package/dist/components/arcgis-paste/PasteViewModel.d.ts +3 -1
  24. package/dist/components/arcgis-paste/customElement.d.ts +6 -0
  25. package/dist/components/arcgis-paste/customElement.js +9 -6
  26. package/dist/components/arcgis-popup/customElement.d.ts +2 -3
  27. package/dist/components/arcgis-popup/customElement.js +27 -27
  28. package/dist/components/arcgis-sketch/customElement.d.ts +16 -1
  29. package/dist/components/arcgis-sketch/customElement.js +25 -19
  30. package/dist/components/arcgis-weather/customElement.js +105 -110
  31. package/dist/docs/api.json +1 -1
  32. package/dist/docs/docs.json +1 -1
  33. package/dist/docs/vscode.html-custom-data.json +1 -1
  34. package/dist/docs/web-types.json +1 -1
  35. package/dist/loader.js +3 -3
  36. package/dist/types/lumina.d.ts +2 -1
  37. package/dist/types/preact.d.ts +2 -1
  38. package/dist/types/react.d.ts +2 -1
  39. package/dist/types/stencil.d.ts +2 -1
  40. package/package.json +4 -4
  41. package/dist/cdn/6LACZH6O.js +0 -2
  42. package/dist/cdn/GQF32YL2.js +0 -2
  43. package/dist/cdn/HTCDJDRI.js +0 -2
  44. package/dist/cdn/I6IJUCE6.js +0 -2
  45. package/dist/cdn/IHDXJ4C3.js +0 -2
  46. package/dist/cdn/IJZYN6XT.js +0 -2
  47. package/dist/cdn/IYEZB6EU.js +0 -2
  48. package/dist/cdn/PKBVONJW.js +0 -3
  49. package/dist/cdn/VRWFDVP6.js +0 -2
@@ -52,7 +52,7 @@ const h = "floor-filter", v = `${h}__filter-menu`, o = {
52
52
  }, A = $`.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-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{display:flex;--arcgis-internal-floor-filter-align-items: flex-start;--arcgis-internal-floor-filter-column-direction: column;--arcgis-internal-floor-filter-button-border-width: 1px 0 0;--arcgis-internal-floor-filter-button-display: flex;--arcgis-internal-floor-filter-menu-width: 300px;--arcgis-internal-floor-filter-menu-max-height: 240px;--arcgis-internal-floor-filter-levels-max-height: 156px}.floor-filter{background:0 0;border:none;flex-direction:var(--arcgis-internal-row-direction);display:flex;box-shadow:none!important}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-3);background:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:32px;height:32px;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button-active{color:var(--calcite-color-text-highlight)!important;background:var(--calcite-color-foreground-current)!important}.floor-filter__icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.floor-filter__position{align-items:var(--arcgis-internal-floor-filter-align-items)}.floor-filter__position .floor-filter__levels-container,.floor-filter__position .floor-filter__close-levels-button,.floor-filter__position .floor-filter__zoom-button,.floor-filter__position .floor-filter__zoom-button--levels,.floor-filter__position .floor-filter__minimize-toggle-button{border-width:var(--arcgis-internal-floor-filter-button-border-width)}.floor-filter__button-container{display:flex;flex-direction:var(--arcgis-internal-floor-filter-column-direction)}.floor-filter__layout--collapsed .floor-filter__button-container{max-width:48px}.floor-filter__layout--expanded .floor-filter__button-container{max-width:300px}.floor-filter__layout--collapsed .floor-filter__button-container .floor-filter__browse-button{border:none;width:48px;height:48px;padding:12px}.floor-filter__layout--collapsed .floor-filter__button-container .floor-filter__zoom-button{border-style:solid;border-color:var(--calcite-color-border-1);width:48px;height:48px;padding:12px}.floor-filter__layout--collapsed .floor-filter__button-container .floor-filter__zoom-button--levels{border-style:solid;border-color:var(--calcite-color-border-1);width:48px;height:32px;padding:8px 12px}.floor-filter__layout--collapsed .floor-filter__button-container .floor-filter__minimize-toggle-button{border-style:solid;border-color:var(--calcite-color-border-1);width:48px;height:32px;padding:4px 12px}.floor-filter__layout--expanded .floor-filter__button-container .floor-filter__button-info{inline-size:100%}.floor-filter__layout--expanded .floor-filter__button-container .floor-filter__browse-button{border:none;width:auto;height:48px;padding:12px}.floor-filter__layout--expanded .floor-filter__button-container .floor-filter__level-button{text-align:start;justify-content:flex-start;padding:16px}.floor-filter__layout--expanded .floor-filter__button-container .floor-filter__zoom-button{border-style:solid;border-color:var(--calcite-color-border-1);width:auto;height:48px;padding:12px}.floor-filter__layout--expanded .floor-filter__button-container .floor-filter__zoom-button--levels{border-style:solid;border-color:var(--calcite-color-border-1);width:auto;height:32px;padding:8px 12px}.floor-filter__layout--expanded .floor-filter__button-container .floor-filter__minimize-toggle-button{border-style:solid;border-color:var(--calcite-color-border-1);width:auto;height:32px;padding:4px 12px}.floor-filter__layout--expanded .floor-filter__button-info{gap:var(--calcite-spacing-sm)}.floor-filter__button-container .floor-filter__button-info{display:flex;align-items:center}.floor-filter__level-button{border:none;width:100%;height:48px}.floor-filter__levels-container{margin:unset;padding:unset;scrollbar-width:thin;border-style:solid;border-color:var(--calcite-color-border-1);width:100%;max-height:var(--arcgis-internal-floor-filter-levels-max-height);list-style-type:none;overflow:auto}.floor-filter__levels-container .esri-widget--button-active{font-weight:var(--calcite-font-weight-semibold)}.floor-filter__levels-container::-webkit-scrollbar{width:6px}.floor-filter__levels-container::-webkit-scrollbar-track{background:var(--calcite-color-text-1)}.floor-filter__levels-container::-webkit-scrollbar-thumb{background-color:var(--calcite-color-transparent-tint);border:3px solid var(--calcite-color-transparent-tint);border-radius:20px}.floor-filter__button-container{box-shadow:0 1px 2px #0000004d}.floor-filter__filter-menu{background:var(--calcite-color-foreground-1);flex-direction:column;align-items:stretch;width:var(--arcgis-internal-floor-filter-menu-width);max-height:var(--arcgis-internal-floor-filter-menu-max-height);display:flex;box-shadow:0 1px 2px #0000004d}.floor-filter__filter-menu .floor-filter__filter-menu-header{color:var(--calcite-color-text-2);flex-direction:row;align-items:stretch;height:auto;line-height:var(--calcite-font-line-height-relative-tight);display:flex;box-shadow:0 .5px var(--calcite-color-foreground-3)}.floor-filter__filter-menu-header .floor-filter__icon-close{color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;align-items:center;padding:20px 10px}.floor-filter__filter-menu .floor-filter__filter-menu-header-back{margin:unset;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;border-inline-end:1px solid var(--calcite-color-border-1);justify-content:center;align-items:center;min-width:28px;padding:20px 0;display:flex}.floor-filter__filter-menu .floor-filter__filter-menu-header-text-group{flex-direction:column;justify-content:center;padding:12px;display:flex;flex:1}.floor-filter__filter-menu .floor-filter__filter-menu-header-text{margin:unset;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:var(--calcite-font-size-md);font-style:normal;font-weight:var(--calcite-font-weight-semibold);display:-webkit-box;overflow:hidden}.floor-filter__filter-menu .floor-filter__filter-menu-header-subtext{text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:4px 0 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-normal);display:-webkit-box;overflow:hidden}.floor-filter__filter-menu .floor-filter__icon-close:hover{cursor:pointer;color:var(--calcite-color-text-1);background:var(--calcite-color-foreground-2)}.floor-filter__filter-menu .floor-filter__filter-menu-search{background:var(--calcite-color-foreground-2);align-items:center;margin-top:.5px;margin-bottom:1px;padding:10px;display:flex;gap:6px;box-shadow:0 .5px var(--calcite-color-foreground-3)}.floor-filter__filter-menu-search-input{color:var(--calcite-color-text-2);background:0 0;border:none;outline:none;width:100%;font-size:var(--calcite-font-size)}.floor-filter__filter-menu .floor-filter__filter-menu-items{margin:unset;padding:unset;color:var(--calcite-color-text-2);width:100%;max-height:300px;list-style-type:none;overflow-y:auto}.floor-filter__filter-menu-site:hover,.floor-filter__filter-menu-site:focus,.floor-filter__filter-menu-facility:hover,.floor-filter__filter-menu-facility:focus,.floor-filter__level-button:focus,.floor-filter__level-button:hover,.esri-widget--button:hover,.floor-filter__filter-menu-header-back:hover{cursor:pointer;background:var(--calcite-color-foreground-2)}.floor-filter__filter-menu-site:active,.floor-filter__filter-menu-facility:active{color:var(--calcite-color-text-highlight);background-color:var(--calcite-color-foreground-current)}.floor-filter__filter-menu-site,.floor-filter__filter-menu-facility{color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1);border:none;flex-direction:row;align-items:center;gap:10px;inline-size:100%;line-height:var(--calcite-font-line-height-relative-tight);padding:18px;display:flex}.floor-filter__filter-menu-site .floor-filter__icon-left{transform:rotate(180deg)}.floor-filter__filter-menu-item-name{font-size:var(--calcite-font-size)}.floor-filter__filter-menu-item-name--selected{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-bold)}.floor-filter__filter-menu-item-name,.floor-filter__filter-menu-item-name--selected{text-align:start;flex:1}.floor-filter__selected-item-circle{background:var(--calcite-color-brand-hover);border-radius:50%;width:4px;height:4px;margin-inline-start:-10px}.floor-filter__separator{box-shadow:none;background:0 0;border:none;width:10px}.esri-expand__content{width:max-content}.floor-filter__zoom-button,.floor-filter__zoom-button--levels,.floor-filter__minimize-toggle-button{display:var(--arcgis-internal-floor-filter-button-display)}.floor-filter__close-levels-button{background:var(--calcite-color-foreground-2);border-style:solid;border-color:var(--calcite-color-border-1);width:48px;height:48px;padding:12px}`, H = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "End", "Home"]), O = 50, j = S(L);
53
53
  class D extends T {
54
54
  constructor() {
55
- super(...arguments), this.direction = B(), this.messages = N({}), this.store = E({ search: void 0 }), this.viewModel = j(this), this._activeMenu = null, this._activeMenuIndex = {
55
+ super(...arguments), this._direction = B(), this.messages = N({}), this.store = E({ search: void 0 }), this.viewModel = j(this), this._activeMenu = null, this._activeMenuIndex = {
56
56
  levels: -1,
57
57
  menuItems: -1
58
58
  }, this._facilitiesListNode = x(), this._levelsListNode = x(), this._sitesListNode = x(), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.facility = this.viewModel.facility, this.headingLevel = 2, this.icon = "urban-model", this.level = this.viewModel.level, this.longNames = this.viewModel.longNames, this.goToOverride = this.viewModel.goToOverride, this.site = this.viewModel.site, this.arcgisReady = F();
@@ -277,7 +277,7 @@ class D extends T {
277
277
  return c`<div class=${s(l(o.filterMenu))}>${r}${t}${n}</div>`;
278
278
  }
279
279
  _renderFacilityFilterMenu() {
280
- const { site: e } = this, r = this.viewModel?.getSite(e)?.name, t = this.direction === "rtl", n = this.facility && this.viewModel?.getFacility(this.facility)?.name || this.messages.selector?.selectFacility, i = this.viewModel.hasMultipleSites ? c`<button class=${s(l(o.filterMenuHeaderBack))} @click=${this._backClicked} title=${this.messages.back ?? f} type=button><calcite-icon class=${s(l(t ? o.iconRight : o.iconLeft))} .icon=${t ? "chevron-right" : "chevron-left"}></calcite-icon></button>` : null, a = this.viewModel.hasMultipleSites ? w({ class: l(o.filterMenuHeaderSubtext), level: C(this.headingLevel), children: r }) : null, u = c`<div class=${s(l(o.filterMenuHeader))}>${i}<div class=${s(l(o.filterMenuHeaderTextGroup))}>${w({ class: l(o.filterMenuHeaderText), level: this.headingLevel, children: n })}${a}</div><button class=${s(l(o.iconClose))} @click=${this._closeClicked} title=${this.messages.close ?? f} type=button><calcite-icon icon=x></calcite-icon></button></div>`, g = this._renderSearchInput(), _ = this._renderFacilityItems();
280
+ const { site: e } = this, r = this.viewModel?.getSite(e)?.name, t = this._direction === "rtl", n = this.facility && this.viewModel?.getFacility(this.facility)?.name || this.messages.selector?.selectFacility, i = this.viewModel.hasMultipleSites ? c`<button class=${s(l(o.filterMenuHeaderBack))} @click=${this._backClicked} title=${this.messages.back ?? f} type=button><calcite-icon class=${s(l(t ? o.iconRight : o.iconLeft))} .icon=${t ? "chevron-right" : "chevron-left"}></calcite-icon></button>` : null, a = this.viewModel.hasMultipleSites ? w({ class: l(o.filterMenuHeaderSubtext), level: C(this.headingLevel), children: r }) : null, u = c`<div class=${s(l(o.filterMenuHeader))}>${i}<div class=${s(l(o.filterMenuHeaderTextGroup))}>${w({ class: l(o.filterMenuHeaderText), level: this.headingLevel, children: n })}${a}</div><button class=${s(l(o.iconClose))} @click=${this._closeClicked} title=${this.messages.close ?? f} type=button><calcite-icon icon=x></calcite-icon></button></div>`, g = this._renderSearchInput(), _ = this._renderFacilityItems();
281
281
  return c`<div class=${s(l(o.filterMenu))}>${u}${g}${_}</div>`;
282
282
  }
283
283
  _renderSearchInput() {
@@ -294,7 +294,7 @@ class D extends T {
294
294
  return c`<ul aria-label=${this.messages.selector?.sitesLabel ?? f} class=${s(l(o.filterMenuItems))} data-id=sites @keydown=${this._handleListKeydown} tabindex=-1 ${p(this._sitesListNode)}>${n}${i}</ul>`;
295
295
  }
296
296
  _renderSiteItem(e) {
297
- const { name: r, id: t } = e, n = this.site === t, i = this.direction === "rtl";
297
+ const { name: r, id: t } = e, n = this.site === t, i = this._direction === "rtl";
298
298
  return c`<li><button class=${s(l(o.filterMenuSite))} data-id=${t ?? f} data-list-id=sites @click=${this._siteSelected} @focus=${this._onItemFocus} type=button>${n ? this._renderBlueCircle() : null}<span class=${s(l(n ? o.filterMenuSelectedItem : o.filterMenuItemName))}>${r}</span><calcite-icon class=${s(l(i ? o.iconLeft : o.iconRight))} icon=chevron-right scale=s></calcite-icon></button></li>`;
299
299
  }
300
300
  _renderFacilityItems() {
@@ -1,25 +1,27 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as d } from "../../chunks/runtime.js";
3
- import { when as s } from "@arcgis/core/core/reactiveUtils.js";
4
- import { LitElement as g, createEvent as h, nothing as r, safeClassMap as p } from "@arcgis/lumina";
5
- import { usePropertyChange as u } from "@arcgis/lumina/controllers";
6
- import { css as v, html as m } from "lit";
7
- import { u as f } from "../../chunks/useT9n.js";
8
- import { u as b } from "../../chunks/useView.js";
9
- import { g as y } from "../../chunks/globalCss.js";
10
- const M = v`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;inline-size:fit-content;block-size:fit-content}.root{--calcite-internal-action-bar-padding: 0;--calcite-internal-action-bar-gap: 0;--calcite-action-corner-radius: 0}`, i = {
2
+ import { c as u } from "../../chunks/runtime.js";
3
+ import { ref as g } from "lit/directives/ref.js";
4
+ import { when as p } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as v, createEvent as f, nothing as h, safeClassMap as m } from "@arcgis/lumina";
6
+ import { useDirection as y, usePropertyChange as b } from "@arcgis/lumina/controllers";
7
+ import { css as _, html as M } from "lit";
8
+ import { u as A } from "../../chunks/useT9n.js";
9
+ import { u as $ } from "../../chunks/useView.js";
10
+ import { g as x } from "../../chunks/globalCss.js";
11
+ import { b as w, a as R } from "../../chunks/keyboard-utils.js";
12
+ const k = _`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;inline-size:fit-content;block-size:fit-content}.root{--calcite-internal-action-bar-padding: 0;--calcite-internal-action-bar-gap: 0;--calcite-action-corner-radius: 0}calcite-action-group{--calcite-internal-action-group-gap: 0}`, r = {
11
13
  pan: "move",
12
14
  rotate: "rotate"
13
- };
14
- class $ extends g {
15
+ }, d = Object.keys(r);
16
+ class D extends v {
15
17
  constructor() {
16
- super(...arguments), this._messages = f(), this._state = "disabled", this.autoDestroyDisabled = !1, this.view = b(this), this.icon = i.pan, this.layout = "vertical", this.navigationMode = "pan", this.visualScale = "m", this.arcgisPropertyChange = u()("layout", "state"), this.arcgisReady = h();
18
+ super(...arguments), this._messages = A(), this._actions = /* @__PURE__ */ new Map(), this._direction = y(), this._state = "disabled", this.autoDestroyDisabled = !1, this.view = $(this), this.icon = r.pan, this.layout = "vertical", this.navigationMode = "pan", this.visualScale = "m", this.arcgisPropertyChange = b()("layout", "state"), this.arcgisReady = f();
17
19
  }
18
20
  static {
19
- this.properties = { _state: 16, autoDestroyDisabled: 5, view: 0, icon: 1, label: 1, layout: 3, messageOverrides: 0, navigationMode: 3, referenceElement: 1, state: 35, visualScale: 1 };
21
+ this.properties = { _state: 16, autoDestroyDisabled: 5, view: 0, icon: 1, label: 1, layout: 3, messageOverrides: 0, navigationMode: 3, referenceElement: 1, state: 32, visualScale: 1 };
20
22
  }
21
23
  static {
22
- this.styles = M;
24
+ this.styles = k;
23
25
  }
24
26
  get state() {
25
27
  return this._state;
@@ -32,8 +34,8 @@ class $ extends g {
32
34
  }
33
35
  load() {
34
36
  this.manager.onLifecycle(() => [
35
- s(() => this.view?.navigation?.actionMap, () => this._updateNavigationActionMap()),
36
- s(() => {
37
+ p(() => this.view?.navigation?.actionMap, () => this._updateNavigationActionMap()),
38
+ p(() => {
37
39
  const { view: t } = this;
38
40
  return t?.ready && t?.type === "3d" ? "ready" : "disabled";
39
41
  }, (t) => {
@@ -44,25 +46,42 @@ class $ extends g {
44
46
  willUpdate(t) {
45
47
  t.has("navigationMode") && this._updateNavigationActionMap();
46
48
  }
47
- _onPanClick() {
48
- this.navigationMode = "pan";
49
+ _onActionGroupChange({ target: t }) {
50
+ const e = t.selectedActions.at(0)?.dataset.navigationMode;
51
+ e && (this.navigationMode = e);
52
+ }
53
+ _onActionKeyDown(t) {
54
+ const { key: e } = t, n = w(e, this._direction), l = R(e, this._direction);
55
+ if (!n && !l)
56
+ return;
57
+ t.preventDefault();
58
+ const s = d.indexOf(this.navigationMode), a = d.length, o = n ? (s + 1) % a : (s - 1 + a) % a, c = d[o];
59
+ this.navigationMode = c;
60
+ const i = this._actions.get(c);
61
+ i && (i.setFocus(), i.click());
62
+ }
63
+ _setPanActionRef(t) {
64
+ this._setActionRef("pan", t);
65
+ }
66
+ _setRotateActionRef(t) {
67
+ this._setActionRef("rotate", t);
49
68
  }
50
- _onRotateClick() {
51
- this.navigationMode = "rotate";
69
+ _setActionRef(t, e) {
70
+ e ? this._actions.set(t, e) : this._actions.delete(t);
52
71
  }
53
72
  _updateNavigationActionMap() {
54
73
  const t = this.view?.navigation?.actionMap;
55
74
  if (!t)
56
75
  return;
57
- const a = this.navigationMode === "pan";
58
- t.dragPrimary = a ? "pan" : "rotate", t.dragSecondary = a ? "rotate" : "pan";
76
+ const e = this.navigationMode === "pan";
77
+ t.dragPrimary = e ? "pan" : "rotate", t.dragSecondary = e ? "rotate" : "pan";
59
78
  }
60
79
  render() {
61
- const { _messages: t, navigationMode: a, state: l } = this, o = t.pan ?? "", n = t.rotate ?? "", e = l === "disabled", c = a === "pan";
62
- return m`<calcite-action-bar class=${p({ root: !0, [y.disabled]: e })} expand-disabled .layout=${this.layout}><calcite-action .active=${c} .disabled=${e} .icon=${i.pan} @click=${this._onPanClick} .scale=${this.visualScale} .text=${o} title=${o ?? r}></calcite-action><calcite-action .active=${!c} .disabled=${e} .icon=${i.rotate} @click=${this._onRotateClick} .scale=${this.visualScale} .text=${n} title=${n ?? r}></calcite-action></calcite-action-bar>`;
80
+ const { _messages: t, label: e, navigationMode: n, state: l } = this, s = e ?? t.componentLabel ?? "", a = t.pan ?? "", o = t.rotate ?? "", c = l === "disabled", i = n === "pan";
81
+ return M`<calcite-action-bar class=${m({ root: !0, [x.disabled]: c })} expand-disabled .layout=${this.layout} @keydown=${this._onActionKeyDown}><calcite-action-group .label=${s} @calciteActionGroupChange=${this._onActionGroupChange} selection-mode=single-persist><calcite-action .active=${i} data-navigation-mode=pan .icon=${r.pan} .label=${a} .scale=${this.visualScale} .text=${a} title=${a ?? h} ${g(this._setPanActionRef)}></calcite-action><calcite-action .active=${!i} data-navigation-mode=rotate .icon=${r.rotate} .label=${o} .scale=${this.visualScale} .text=${o} title=${o ?? h} ${g(this._setRotateActionRef)}></calcite-action></calcite-action-group></calcite-action-bar>`;
63
82
  }
64
83
  }
65
- d("arcgis-navigation-toggle", $);
84
+ u("arcgis-navigation-toggle", D);
66
85
  export {
67
- $ as ArcgisNavigationToggle
86
+ D as ArcgisNavigationToggle
68
87
  };
@@ -1,3 +1,4 @@
1
1
  import "@esri/calcite-components/components/calcite-action-bar";
2
+ import "@esri/calcite-components/components/calcite-action-group";
2
3
  import "@esri/calcite-components/components/calcite-action";
3
4
  export * from "./customElement.js";
@@ -18,7 +18,7 @@ import type { PasteCommand, PasteApplyError, PasteCommandApplyParameters } from
18
18
  import type { CustomPasteCommand } from "./commands/PasteCustomCommand.js";
19
19
 
20
20
  /** @internal */
21
- export interface PasteViewModelProperties extends Partial<Pick<PasteViewModel, "_activeFlowPage" | "activeCommand" | "activeFlowPage" | "alwaysShowFeatureForm" | "applying" | "bauActiveFeatureIndex" | "bauApplySet" | "bauFeatures" | "bauFormUpdating" | "bauFormValid" | "bauHasTooManyComplexFeatures" | "bauHasTooManyFeatures" | "bauHighlight" | "bauIndividualHighlight" | "bauInvalidFeatures" | "bauOriginalGraphics" | "beforeClipboard" | "beforeForm" | "clipboardGraphicsLayer" | "clipboardMover" | "closeOnApply" | "currentPasteOperation" | "customPasteCommands" | "formViewModelMap" | "hideErrorNotice" | "hideFooter" | "hideFooterCancelButton" | "hideHeaderCloseButton" | "hideTooltips" | "hideViewClipboard" | "highlightGroup" | "lastPasteError" | "layerPermissionsCheck" | "maximumFeatureCount" | "maximumFeatureCountWithComplexForms" | "pasteTemplate" | "pasteWithAttributes" | "pasteWithMultipleFeaturesEnabled" | "pasteWithMultipleLayersEnabled" | "selectedClipboardItemIndex" | "selectedFeature" | "showClipboardItems" | "supportedCommands" | "view">> {}
21
+ export interface PasteViewModelProperties extends Partial<Pick<PasteViewModel, "_activeFlowPage" | "activeCommand" | "activeFlowPage" | "alwaysShowFeatureForm" | "applying" | "bauActiveFeatureIndex" | "bauApplySet" | "bauFeatures" | "bauFormUpdating" | "bauFormValid" | "bauHasTooManyComplexFeatures" | "bauHasTooManyFeatures" | "bauHighlight" | "bauIndividualHighlight" | "bauInvalidFeatures" | "bauOriginalGraphics" | "beforeClipboard" | "beforeForm" | "clipboardGraphicsLayer" | "clipboardMover" | "closeOnApply" | "currentPasteOperation" | "customPasteCommands" | "disableTemplatesMode" | "formViewModelMap" | "hideErrorNotice" | "hideFooter" | "hideFooterCancelButton" | "hideHeaderCloseButton" | "hideTooltips" | "hideViewClipboard" | "highlightGroup" | "lastPasteError" | "layerPermissionsCheck" | "maximumFeatureCount" | "maximumFeatureCountWithComplexForms" | "pasteTemplate" | "pasteWithAttributes" | "pasteWithMultipleFeaturesEnabled" | "pasteWithMultipleLayersEnabled" | "selectedClipboardItemIndex" | "selectedFeature" | "showClipboardItems" | "supportedCommands" | "view">> {}
22
22
 
23
23
  /**
24
24
  * The types of flow page that maybe being shown in the component
@@ -86,6 +86,8 @@ export default class PasteViewModel extends Accessor {
86
86
  /** @default "" */
87
87
  accessor currentPasteOperation: "" | "paste-as" | "paste-merge";
88
88
  accessor customPasteCommands: Collection<CustomPasteCommand>;
89
+ /** @default "never" */
90
+ accessor disableTemplatesMode: "never" | "scale" | "visible";
89
91
  accessor formViewModelMap: Map<FeatureLayer | SubtypeSublayer, BatchAttributeFormViewModel>;
90
92
  get hasClipboardItemMatchingTemplate(): boolean;
91
93
  get hasPasteCommandsPage(): boolean;
@@ -176,6 +176,12 @@ export abstract class ArcgisPaste extends LitElement {
176
176
  * @default false
177
177
  */
178
178
  accessor closeOnApply: boolean;
179
+ /**
180
+ * Decide if templates should be disabled when the layer is not visible, or not visible at the current scale.
181
+ *
182
+ * @default "never"
183
+ */
184
+ accessor disableTemplatesMode: "scale" | "never" | "visible";
179
185
  /**
180
186
  * Determines if the component should show error notices
181
187
  *
@@ -973,7 +973,7 @@ function te(e) {
973
973
  let n = class extends U {
974
974
  //#region Lifecycle
975
975
  constructor(e) {
976
- super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount = 200, this.maximumFeatureCountWithComplexForms = 50, this.layerPermissionsCheck = {
976
+ super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this.disableTemplatesMode = "never", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount = 200, this.maximumFeatureCountWithComplexForms = 50, this.layerPermissionsCheck = {
977
977
  canCreate: (t) => t ? !!t.effectiveCapabilities?.operations.supportsAdd : !1,
978
978
  canUpdate: (t) => {
979
979
  if (!t)
@@ -1374,6 +1374,9 @@ c([
1374
1374
  c([
1375
1375
  r()
1376
1376
  ], n.prototype, "currentPasteOperation", 2);
1377
+ c([
1378
+ r()
1379
+ ], n.prototype, "disableTemplatesMode", 2);
1377
1380
  c([
1378
1381
  r()
1379
1382
  ], n.prototype, "activeFlowPage", 1);
@@ -1541,10 +1544,10 @@ M = S([
1541
1544
  const at = ve(n);
1542
1545
  class st extends he {
1543
1546
  constructor() {
1544
- super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ge(), this.viewModel = at(this), this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.activeFlowPage = this.viewModel.activeFlowPage, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideFooter = this.viewModel.hideFooter, this.hideHeaderCloseButton = this.viewModel.hideHeaderCloseButton, this.hideTooltips = this.viewModel.hideTooltips, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.pasteCommandsState = this.viewModel.pasteCommandsState, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = xe()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
1547
+ super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ge(), this.viewModel = at(this), this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.activeFlowPage = this.viewModel.activeFlowPage, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideFooter = this.viewModel.hideFooter, this.hideHeaderCloseButton = this.viewModel.hideHeaderCloseButton, this.hideTooltips = this.viewModel.hideTooltips, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.pasteCommandsState = this.viewModel.pasteCommandsState, this.disableTemplatesMode = this.viewModel.disableTemplatesMode, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = xe()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
1545
1548
  }
1546
1549
  static {
1547
- this.properties = { hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, activeFlowPage: 32, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideFooter: 5, hideHeaderCloseButton: 5, hideTooltips: 5, hideViewClipboard: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, layerPermissionsCheck: 0, pasteCommandsState: 0 };
1550
+ this.properties = { hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, activeFlowPage: 32, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideFooter: 5, hideHeaderCloseButton: 5, hideTooltips: 5, hideViewClipboard: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, layerPermissionsCheck: 0, pasteCommandsState: 0, disableTemplatesMode: 1 };
1548
1551
  }
1549
1552
  static {
1550
1553
  this.styles = $e;
@@ -1694,9 +1697,9 @@ class st extends he {
1694
1697
  t.selectedTemplateId !== this.viewModel.pasteTemplate.id && (t.selectedTemplateId = this.viewModel.pasteTemplate.id);
1695
1698
  return;
1696
1699
  }
1697
- if (t.effectiveTemplates.length === 0)
1700
+ if (t.effectiveTemplates?.length === 0)
1698
1701
  return;
1699
- const i = t.effectiveTemplates[0].templates[0];
1702
+ const i = t.effectiveTemplates?.[0].templates[0];
1700
1703
  i && (this.viewModel.pasteTemplate = i, t.selectedTemplateId = i.id);
1701
1704
  });
1702
1705
  }
@@ -1764,7 +1767,7 @@ class st extends he {
1764
1767
  this.viewModel.activeFlowPage = "merge-page";
1765
1768
  }} title=${this._messages.seeMergeOptions ?? ue}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
1766
1769
  this.viewModel.activeFlowPage = "merge-page";
1767
- }}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
1770
+ }}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .disableTemplatesMode=${this.disableTemplatesMode} .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
1768
1771
  this._checkAndUpdateInitialPasteTemplate();
1769
1772
  }} @arcgisSelectTemplate=${(i) => {
1770
1773
  this.viewModel.pasteTemplate = i.detail.template;
@@ -1,5 +1,4 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type Features from "@arcgis/core/popup/Features.js";
3
2
  import type ActionButton from "@arcgis/core/support/actions/ActionButton.js";
4
3
  import type ActionToggle from "@arcgis/core/support/actions/ActionToggle.js";
5
4
  import type Graphic from "@arcgis/core/Graphic.js";
@@ -600,13 +599,13 @@ export abstract class ArcgisPopup extends LitElement {
600
599
  *
601
600
  * @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeatureIndex)
602
601
  */
603
- next(): Promise<Features>;
602
+ next(): Promise<void>;
604
603
  /**
605
604
  * Selects the feature at the previous index in relation to the selected feature.
606
605
  *
607
606
  * @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeatureIndex)
608
607
  */
609
- previous(): Promise<Features>;
608
+ previous(): Promise<void>;
610
609
  /** Use this method to give focus to the component if the component is able to be focused. */
611
610
  setFocus(): Promise<void>;
612
611
  /**
@@ -55,8 +55,8 @@ class j extends L {
55
55
  set dockOptions(t) {
56
56
  const e = { ...C }, o = this.viewModel?.view?.breakpoints, i = {};
57
57
  o && (i.width = o.xsmall, i.height = o.xsmall);
58
- const s = { ...e, ...t }, n = { ...e.breakpoint, ...i }, { breakpoint: a } = s;
59
- typeof a == "object" ? s.breakpoint = { ...n, ...a } : a && (s.breakpoint = n), this._dockOptions = s;
58
+ const s = { ...e, ...t }, n = { ...e.breakpoint, ...i }, { breakpoint: r } = s;
59
+ typeof r == "object" ? s.breakpoint = { ...n, ...r } : r && (s.breakpoint = n), this._dockOptions = s;
60
60
  }
61
61
  get selectedDrillInFeature() {
62
62
  return this._featuresComponent.value?.selectedDrillInFeature ?? null;
@@ -68,25 +68,25 @@ class j extends L {
68
68
  return this.viewModel.handleViewClick(t);
69
69
  }
70
70
  async clear() {
71
- return this.viewModel.clear();
71
+ this.viewModel.clear();
72
72
  }
73
73
  async destroy() {
74
74
  await this.manager.destroy(), this._dockAction.destroy(), this._popupResizeObserver.disconnect();
75
75
  }
76
76
  async fetchFeatures(t, e) {
77
- return await this._featuresComponent.value?.fetchFeatures(t, e);
77
+ await this._featuresComponent.value?.fetchFeatures(t, e);
78
78
  }
79
79
  async next() {
80
- return this.viewModel.next();
80
+ this.viewModel.next();
81
81
  }
82
82
  async previous() {
83
- return this.viewModel.previous();
83
+ this.viewModel.previous();
84
84
  }
85
85
  async setFocus() {
86
86
  this._featuresComponent.value?.setFocus();
87
87
  }
88
88
  async triggerAction(t) {
89
- return await this._featuresComponent.value?.triggerAction(t);
89
+ await this._featuresComponent.value?.triggerAction(t);
90
90
  }
91
91
  connectedCallback() {
92
92
  super.connectedCallback(), this._syncPopupResizeObserver();
@@ -157,7 +157,7 @@ class j extends L {
157
157
  const { _mainContainerNode: e, _popupRect: o, viewModel: i } = this, { view: s } = i, { screenLocation: n } = this;
158
158
  if (n == null || !s || !o || !e.value)
159
159
  return "top-center";
160
- const a = window.getComputedStyle(e.value), l = f(a.maxHeight), r = f(a.height), c = this._getPointerSize(), { height: d, width: k } = o, h = k + c, u = Math.max(d, l, r) + c, z = this._isOutsideView({
160
+ const r = window.getComputedStyle(e.value), l = f(r.maxHeight), a = f(r.height), c = this._getPointerSize(), { height: d, width: k } = o, h = k + c, u = Math.max(d, l, a) + c, z = this._isOutsideView({
161
161
  popupHeight: u,
162
162
  popupWidth: h,
163
163
  screenLocation: n,
@@ -239,35 +239,35 @@ class j extends L {
239
239
  _calculateAlignmentPosition(t, e, o, i) {
240
240
  if (t < 0 || e < 0 || !o || !i || t > o.width || e > o.height)
241
241
  return;
242
- const { topLayerDisabled: s } = this, n = s ? t : t + o.x, a = s ? e : e + o.y, { _direction: l, currentAlignment: r } = this, c = this._getPointerSize(), d = c / 2;
243
- if (r === "top-left" || r === "top-start" && l === "ltr" || r === "top-end" && l === "rtl")
242
+ const { topLayerDisabled: s } = this, n = s ? t : t + o.x, r = s ? e : e + o.y, { _direction: l, currentAlignment: a } = this, c = this._getPointerSize(), d = c / 2;
243
+ if (a === "top-left" || a === "top-start" && l === "ltr" || a === "top-end" && l === "rtl")
244
244
  return {
245
- top: a - (i.height + d),
245
+ top: r - (i.height + d),
246
246
  left: n - i.width - d
247
247
  };
248
- if (r === "top-center")
248
+ if (a === "top-center")
249
249
  return {
250
- top: a - (i.height + c),
250
+ top: r - (i.height + c),
251
251
  left: n - i.width / 2
252
252
  };
253
- if (r === "top-right" || r === "top-end" && l === "ltr" || r === "top-start" && l === "rtl")
253
+ if (a === "top-right" || a === "top-end" && l === "ltr" || a === "top-start" && l === "rtl")
254
254
  return {
255
- top: a - (i.height + d),
255
+ top: r - (i.height + d),
256
256
  left: n + d
257
257
  };
258
- if (r === "bottom-left" || r === "bottom-start" && l === "ltr" || r === "bottom-end" && l === "rtl")
258
+ if (a === "bottom-left" || a === "bottom-start" && l === "ltr" || a === "bottom-end" && l === "rtl")
259
259
  return {
260
- top: a + d,
260
+ top: r + d,
261
261
  left: n - i.width - d
262
262
  };
263
- if (r === "bottom-center")
263
+ if (a === "bottom-center")
264
264
  return {
265
- top: a + c,
265
+ top: r + c,
266
266
  left: n - i.width / 2
267
267
  };
268
- if (r === "bottom-right" || r === "bottom-end" && l === "ltr" || r === "bottom-start" && l === "rtl")
268
+ if (a === "bottom-right" || a === "bottom-end" && l === "ltr" || a === "bottom-start" && l === "rtl")
269
269
  return {
270
- top: a + d,
270
+ top: r + d,
271
271
  left: n + d
272
272
  };
273
273
  }
@@ -287,8 +287,8 @@ class j extends L {
287
287
  return `inset: ${this._getPositionStyleValue(i.top)} ${this._getPositionStyleValue(i.right)} ${this._getPositionStyleValue(i.bottom)} ${this._getPositionStyleValue(i.left)};`;
288
288
  }
289
289
  _dockingThresholdCrossed(t, e, o) {
290
- const [i, s] = t, [n, a] = e, { width: l = 0, height: r = 0 } = o ?? {};
291
- return i <= l && n > l || i > l && n <= l || s <= r && a > r || s > r && a <= r;
290
+ const [i, s] = t, [n, r] = e, { width: l = 0, height: a = 0 } = o ?? {};
291
+ return i <= l && n > l || i > l && n <= l || s <= a && r > a || s > a && r <= a;
292
292
  }
293
293
  _updateDockEnabledForViewSize(t, e) {
294
294
  if (!t || !e || !this.viewModel?.view?.ready)
@@ -303,14 +303,14 @@ class j extends L {
303
303
  const { width: i, height: s } = o;
304
304
  if (Number.isNaN(i) || Number.isNaN(s) || typeof e != "object")
305
305
  return !1;
306
- const n = typeof e.width == "number" && i <= (e.width ?? 0), a = typeof e.height == "number" && s <= (e.height ?? 0);
307
- return n || a;
306
+ const n = typeof e.width == "number" && i <= (e.width ?? 0), r = typeof e.height == "number" && s <= (e.height ?? 0);
307
+ return n || r;
308
308
  }
309
309
  _setDockEnabledForViewSize(t) {
310
310
  this.viewModel?.view?.ready && typeof t.breakpoint == "object" && (this.dockEnabled = this._shouldDockAtCurrentViewSize(t));
311
311
  }
312
312
  render() {
313
- const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view: a } = this.viewModel, l = n && e, r = n && !e, c = a?.widthBreakpoint, d = a?.heightBreakpoint, k = {
313
+ const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view: r } = this.viewModel, l = n && e, a = n && !e, c = r?.widthBreakpoint, d = r?.heightBreakpoint, k = {
314
314
  "aligned-top-center": o === "top-center",
315
315
  "aligned-bottom-center": o === "bottom-center",
316
316
  "aligned-top-left": o === "top-left" || o === "top-start" && t === "ltr" || o === "top-end" && t === "rtl",
@@ -318,7 +318,7 @@ class j extends L {
318
318
  "aligned-top-right": o === "top-right" || o === "top-end" && t === "ltr" || o === "top-start" && t === "rtl",
319
319
  "aligned-bottom-right": o === "bottom-right" || o === "bottom-end" && t === "ltr" || o === "bottom-start" && t === "rtl",
320
320
  "is-docked": l,
321
- shadow: r,
321
+ shadow: a,
322
322
  "is-rtl": this._direction === "rtl",
323
323
  "is-docked-top-start": i === "top-start",
324
324
  "is-docked-top-end": i === "top-end",
@@ -11,7 +11,7 @@ import type Collection from "@arcgis/core/core/Collection.js";
11
11
  import type { SketchGroupName } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
12
12
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
13
13
  import type { ArcgisReferenceElement, IconName } from "../types.js";
14
- import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, SketchTool, SelectionTool, CreationMode, UpdateOptions, Layout, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol, State, ToolbarKind } from "@arcgis/core/widgets/Sketch/types.js";
14
+ import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, DuplicateEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, SketchTool, SelectionTool, CreationMode, UpdateOptions, Layout, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol, State, ToolbarKind } from "@arcgis/core/widgets/Sketch/types.js";
15
15
  import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
16
16
  import type { Icon } from "@esri/calcite-components/components/calcite-icon";
17
17
  import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
@@ -550,6 +550,12 @@ export abstract class ArcgisSketch extends LitElement {
550
550
  dismissFloatingElements(): Promise<void>;
551
551
  duplicate(): Promise<void>;
552
552
  redo(): Promise<void>;
553
+ /**
554
+ * @param location
555
+ * @internal
556
+ * @since 5.1
557
+ */
558
+ setContextualToolLocation(location: "inline-end" | "inline" | "separate"): Promise<void>;
553
559
  /**
554
560
  * @param createToolOptions
555
561
  * @param customActionOptions
@@ -563,6 +569,12 @@ export abstract class ArcgisSketch extends LitElement {
563
569
  * @since 5.1
564
570
  */
565
571
  setGroupAllowCollapseOptions(options: Map<SketchGroupName, boolean>): Promise<void>;
572
+ /**
573
+ * @param priorities
574
+ * @internal
575
+ * @since 5.1
576
+ */
577
+ setGroupCollapsePriorities(priorities: Map<SketchGroupName, number> | null): Promise<void>;
566
578
  /**
567
579
  * @param graphic
568
580
  * @param updateOptions
@@ -576,6 +588,8 @@ export abstract class ArcgisSketch extends LitElement {
576
588
  readonly arcgisCreate: import("@arcgis/lumina").TargetedEvent<this, CreateEvent>;
577
589
  /** Fires when a user deletes selected graphics by clicking the Delete feature button on the Sketch widget or when the `delete()` method is called. */
578
590
  readonly arcgisDelete: import("@arcgis/lumina").TargetedEvent<this, DeleteEvent>;
591
+ /** Fires when the user duplicates selected graphics. */
592
+ readonly arcgisDuplicate: import("@arcgis/lumina").TargetedEvent<this, DuplicateEvent>;
579
593
  /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
580
594
  readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "state"; }>;
581
595
  /** Emitted when the component associated with a map or scene view is ready to be interacted with. */
@@ -589,6 +603,7 @@ export abstract class ArcgisSketch extends LitElement {
589
603
  readonly "@eventTypes": {
590
604
  arcgisCreate: ArcgisSketch["arcgisCreate"]["detail"];
591
605
  arcgisDelete: ArcgisSketch["arcgisDelete"]["detail"];
606
+ arcgisDuplicate: ArcgisSketch["arcgisDuplicate"]["detail"];
592
607
  arcgisPropertyChange: ArcgisSketch["arcgisPropertyChange"]["detail"];
593
608
  arcgisReady: ArcgisSketch["arcgisReady"]["detail"];
594
609
  arcgisRedo: ArcgisSketch["arcgisRedo"]["detail"];