@esri/solutions-components 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. package/dist/assets/t9n/solution-config-modal/resources.json +22 -0
  2. package/dist/assets/t9n/solution-config-modal/resources_en.json +22 -0
  3. package/dist/cjs/calcite-action-menu_2.cjs.entry.js +18 -401
  4. package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +1 -1
  5. package/dist/cjs/calcite-action_2.cjs.entry.js +423 -71
  6. package/dist/cjs/calcite-action_2.cjs.entry.js.map +1 -1
  7. package/dist/cjs/calcite-loader.cjs.entry.js +97 -0
  8. package/dist/cjs/calcite-loader.cjs.entry.js.map +1 -0
  9. package/dist/cjs/{solution-configuration.cjs.entry.js → calcite-modal_2.cjs.entry.js} +451 -13
  10. package/dist/cjs/calcite-modal_2.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{calcite-shell-panel_14.cjs.entry.js → calcite-panel_12.cjs.entry.js} +455 -709
  12. package/dist/cjs/calcite-panel_12.cjs.entry.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/solution-config-modal.cjs.entry.js +131 -0
  15. package/dist/cjs/solution-config-modal.cjs.entry.js.map +1 -0
  16. package/dist/cjs/{solution-contents_3.cjs.entry.js → solution-contents_7.cjs.entry.js} +664 -5
  17. package/dist/cjs/solution-contents_7.cjs.entry.js.map +1 -0
  18. package/dist/cjs/{solution-store-893499a5.js → solution-store-09b3fc53.js} +4 -6
  19. package/dist/cjs/solution-store-09b3fc53.js.map +1 -0
  20. package/dist/cjs/solutions-components.cjs.js +1 -1
  21. package/dist/collection/collection-manifest.json +1 -0
  22. package/dist/collection/components/solution-config-modal/solution-config-modal.css +91 -0
  23. package/dist/collection/components/solution-config-modal/solution-config-modal.js +245 -0
  24. package/dist/collection/components/solution-config-modal/solution-config-modal.js.map +1 -0
  25. package/dist/collection/components/solution-configuration/solution-configuration.js +23 -17
  26. package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
  27. package/dist/collection/components/solution-item/solution-item.js +0 -2
  28. package/dist/collection/components/solution-item/solution-item.js.map +1 -1
  29. package/dist/collection/components/solution-item-details/solution-item-details.js +0 -13
  30. package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
  31. package/dist/collection/utils/solution-store.js +3 -5
  32. package/dist/collection/utils/solution-store.js.map +1 -1
  33. package/dist/collection/utils/solution-store.ts +3 -5
  34. package/dist/esm/buffer-tools_6.entry.js +2 -2
  35. package/dist/esm/calcite-action-bar_6.entry.js +2 -2
  36. package/dist/esm/calcite-action-menu_2.entry.js +20 -403
  37. package/dist/esm/calcite-action-menu_2.entry.js.map +1 -1
  38. package/dist/esm/calcite-action_2.entry.js +424 -72
  39. package/dist/esm/calcite-action_2.entry.js.map +1 -1
  40. package/dist/esm/calcite-combobox_3.entry.js +2 -2
  41. package/dist/esm/calcite-loader.entry.js +93 -0
  42. package/dist/esm/calcite-loader.entry.js.map +1 -0
  43. package/dist/esm/{solution-configuration.entry.js → calcite-modal_2.entry.js} +453 -16
  44. package/dist/esm/calcite-modal_2.entry.js.map +1 -0
  45. package/dist/esm/{calcite-shell-panel_14.entry.js → calcite-panel_12.entry.js} +454 -706
  46. package/dist/esm/calcite-panel_12.entry.js.map +1 -0
  47. package/dist/esm/config-layer-picker.entry.js +2 -2
  48. package/dist/esm/{interfaces-e2a2064d.js → interfaces-1bdfc3a8.js} +2 -2
  49. package/dist/esm/{interfaces-e2a2064d.js.map → interfaces-1bdfc3a8.js.map} +1 -1
  50. package/dist/esm/loader.js +1 -1
  51. package/dist/esm/{mapViewUtils-09f1e7bd.js → mapViewUtils-809947c8.js} +2 -2
  52. package/dist/esm/{mapViewUtils-09f1e7bd.js.map → mapViewUtils-809947c8.js.map} +1 -1
  53. package/dist/esm/public-notification.entry.js +2 -2
  54. package/dist/esm/solution-config-modal.entry.js +127 -0
  55. package/dist/esm/solution-config-modal.entry.js.map +1 -0
  56. package/dist/esm/{solution-contents_3.entry.js → solution-contents_7.entry.js} +661 -6
  57. package/dist/esm/solution-contents_7.entry.js.map +1 -0
  58. package/dist/esm/{solution-store-0c58c852.js → solution-store-d8519c64.js} +5 -7
  59. package/dist/esm/solution-store-d8519c64.js.map +1 -0
  60. package/dist/esm/solutions-components.js +1 -1
  61. package/dist/solutions-components/{p-be1ed982.entry.js → p-11068040.entry.js} +3 -3
  62. package/dist/solutions-components/{p-be1ed982.entry.js.map → p-11068040.entry.js.map} +0 -0
  63. package/dist/solutions-components/{p-659edb14.js → p-2910dd9e.js} +5 -7
  64. package/dist/{cjs/solution-store-893499a5.js.map → solutions-components/p-2910dd9e.js.map} +1 -1
  65. package/dist/solutions-components/{p-291fd295.entry.js → p-30810b45.entry.js} +3 -3
  66. package/dist/solutions-components/{p-291fd295.entry.js.map → p-30810b45.entry.js.map} +0 -0
  67. package/dist/solutions-components/p-38ddadf2.entry.js +342 -0
  68. package/dist/solutions-components/p-38ddadf2.entry.js.map +1 -0
  69. package/dist/solutions-components/{p-77c75f3a.entry.js → p-5b20090f.entry.js} +661 -6
  70. package/dist/solutions-components/p-5b20090f.entry.js.map +1 -0
  71. package/dist/solutions-components/{p-9393631c.entry.js → p-9ef1328a.entry.js} +3 -3
  72. package/dist/solutions-components/{p-9393631c.entry.js.map → p-9ef1328a.entry.js.map} +0 -0
  73. package/dist/solutions-components/{p-984cb687.entry.js → p-a1786d11.entry.js} +454 -706
  74. package/dist/solutions-components/p-a1786d11.entry.js.map +1 -0
  75. package/dist/solutions-components/{p-fe0fdd8b.js → p-c20bd963.js} +2 -2
  76. package/dist/solutions-components/{p-fe0fdd8b.js.map → p-c20bd963.js.map} +1 -1
  77. package/dist/solutions-components/p-c5721b0f.entry.js +127 -0
  78. package/dist/solutions-components/p-c5721b0f.entry.js.map +1 -0
  79. package/dist/solutions-components/{p-24d75151.entry.js → p-c818e661.entry.js} +3 -3
  80. package/dist/solutions-components/{p-24d75151.entry.js.map → p-c818e661.entry.js.map} +0 -0
  81. package/dist/solutions-components/{p-90629c1d.entry.js → p-cf59eb16.entry.js} +453 -16
  82. package/dist/solutions-components/p-cf59eb16.entry.js.map +1 -0
  83. package/dist/solutions-components/p-e405ebe8.entry.js +93 -0
  84. package/dist/solutions-components/p-e405ebe8.entry.js.map +1 -0
  85. package/dist/solutions-components/{p-77e6b03c.entry.js → p-e6fb9cde.entry.js} +3 -3
  86. package/dist/solutions-components/{p-77e6b03c.entry.js.map → p-e6fb9cde.entry.js.map} +0 -0
  87. package/dist/solutions-components/{p-97c4a268.entry.js → p-ef6f9e24.entry.js} +113 -229
  88. package/dist/solutions-components/p-ef6f9e24.entry.js.map +1 -0
  89. package/dist/solutions-components/{p-6b9dc092.js → p-f04fdb9a.js} +2 -2
  90. package/dist/solutions-components/{p-6b9dc092.js.map → p-f04fdb9a.js.map} +1 -1
  91. package/dist/solutions-components/solutions-components.esm.js +1 -1
  92. package/dist/solutions-components/utils/solution-store.ts +3 -5
  93. package/dist/solutions-components_commit.txt +8 -8
  94. package/dist/types/components/solution-config-modal/solution-config-modal.d.ts +69 -0
  95. package/dist/types/components/solution-configuration/solution-configuration.d.ts +4 -2
  96. package/dist/types/components/solution-item-details/solution-item-details.d.ts +0 -1
  97. package/dist/types/components.d.ts +43 -5
  98. package/dist/types/preact.d.ts +4 -0
  99. package/package.json +1 -1
  100. package/dist/cjs/calcite-modal.cjs.entry.js +0 -449
  101. package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
  102. package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -439
  103. package/dist/cjs/calcite-panel_2.cjs.entry.js.map +0 -1
  104. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -64
  105. package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
  106. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +0 -1
  107. package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
  108. package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
  109. package/dist/esm/calcite-modal.entry.js +0 -445
  110. package/dist/esm/calcite-modal.entry.js.map +0 -1
  111. package/dist/esm/calcite-panel_2.entry.js +0 -434
  112. package/dist/esm/calcite-panel_2.entry.js.map +0 -1
  113. package/dist/esm/calcite-scrim.entry.js +0 -60
  114. package/dist/esm/calcite-scrim.entry.js.map +0 -1
  115. package/dist/esm/calcite-shell-panel_14.entry.js.map +0 -1
  116. package/dist/esm/solution-configuration.entry.js.map +0 -1
  117. package/dist/esm/solution-contents_3.entry.js.map +0 -1
  118. package/dist/esm/solution-store-0c58c852.js.map +0 -1
  119. package/dist/solutions-components/p-0fda7d9e.entry.js +0 -434
  120. package/dist/solutions-components/p-0fda7d9e.entry.js.map +0 -1
  121. package/dist/solutions-components/p-2ff754ce.entry.js +0 -257
  122. package/dist/solutions-components/p-2ff754ce.entry.js.map +0 -1
  123. package/dist/solutions-components/p-30a6199a.entry.js +0 -445
  124. package/dist/solutions-components/p-30a6199a.entry.js.map +0 -1
  125. package/dist/solutions-components/p-659edb14.js.map +0 -1
  126. package/dist/solutions-components/p-77c75f3a.entry.js.map +0 -1
  127. package/dist/solutions-components/p-90629c1d.entry.js.map +0 -1
  128. package/dist/solutions-components/p-97c4a268.entry.js.map +0 -1
  129. package/dist/solutions-components/p-984cb687.entry.js.map +0 -1
  130. package/dist/solutions-components/p-f5268b4f.entry.js +0 -60
  131. package/dist/solutions-components/p-f5268b4f.entry.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"file":"calcite-loader.entry.esm.js","mappings":";;;;;;;;AAAA,MAAM,SAAS,GAAG,4yNAA4yN;;MCOjzN,MAAM;EACjB;;;;;;;;IAOE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;IAEpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;IAEpB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;;IAEjB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;;IAEf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;;;;;;IAMf,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;GACxB;;;;;;EAMD,MAAM;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC7D,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,IAAI,CAAC;IACzB,MAAM,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtE,MAAM,MAAM,GAAG,IAAI,GAAG,WAAW,CAAC;IAClC,MAAM,OAAO,GAAG,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC;IACtC,MAAM,aAAa,GAAG,IAAI,KAAK,aAAa,CAAC;IAC7C,MAAM,aAAa,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,CAAC,KAAK,GAAG,GAAG,IAAI,aAAa,CAAC;IAC/C,MAAM,SAAS,GAAG,aAAa,GAAG,QAAQ,CAAC;IAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnC,MAAM,cAAc,GAAG;MACrB,eAAe,EAAE,QAAQ;MACzB,eAAe,EAAE,CAAC;MAClB,eAAe,EAAE,GAAG;MACpB,QAAQ,EAAE,QAAQ,KAAK,GAAG;KAC3B,CAAC;IACF,MAAM,aAAa,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;IAChE,MAAM,gBAAgB,GAAG,EAAE,kBAAkB,EAAE,GAAG,QAAQ,IAAI,SAAS,EAAE,EAAE,CAAC;IAC5E,QAAQ,CAAC,CAAC,IAAI,kBAAI,YAAY,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,KAAM,aAAa,GAAG,cAAc,GAAG,EAAE,IAAK,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,oBAAO,aAAa,EAAG,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,oBAAO,aAAa,EAAG,CAAC,EAAE,CAAC,CAAC,KAAK,kBAAI,KAAK,EAAE,4BAA4B,EAAE,OAAO,EAAE,OAAO,KAAM,aAAa,GAAG,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,IAAK,CAAC,CAAC,QAAQ,oBAAO,aAAa,EAAG,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,IAAI,CAAC,EAAE,aAAa,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,EAAE,KAAK,CAAC,CAAC,EAAE;GAC5nB;;;;;;;;;;;EAWD,OAAO,CAAC,KAAK;IACX,OAAO;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;KACN,CAAC,KAAK,CAAC,CAAC;GACV;EACD,aAAa,CAAC,KAAK;IACjB,OAAO;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;KACN,CAAC,KAAK,CAAC,CAAC;GACV;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css?tag=calcite-loader&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/loader/loader.js"],"sourcesContent":["@charset \"UTF-8\";\n/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-loader-font-size: Specifies the font size of the loading percentage when type is `\"determinate\"`.\n* @prop --calcite-loader-size: The width and height of a non-inline loader.\n* @prop --calcite-loader-size-inline: The width and height of an inline loader.\n*/\n:host{\n position: relative;\n margin-inline: auto;\n display: none;\n align-items: center;\n justify-content: center;\n opacity: 1;\n min-block-size: var(--calcite-loader-size);\n font-size: var(--calcite-loader-font-size);\n stroke: var(--calcite-ui-brand);\n stroke-width: 3;\n fill: none;\n transform: scale(1, 1);\n animation: loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;\n padding-block: var(--calcite-loader-padding, 4rem);\n}\n\n:host([scale=s]) {\n --calcite-loader-font-size: var(--calcite-font-size--2);\n --calcite-loader-size: 2rem;\n --calcite-loader-size-inline: 0.75rem;\n}\n\n:host([scale=m]) {\n --calcite-loader-font-size: var(--calcite-font-size-0);\n --calcite-loader-size: 4rem;\n --calcite-loader-size-inline: 1rem;\n}\n\n:host([scale=l]) {\n --calcite-loader-font-size: var(--calcite-font-size-2);\n --calcite-loader-size: 6rem;\n --calcite-loader-size-inline: 1.5rem;\n}\n\n:host([no-padding]){\n padding-block: 0px;\n}\n\n:host{\n display: none;\n}\n\n:host([active]){\n display: flex;\n}\n\n.loader__text{\n display: block;\n text-align: center;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n color: var(--calcite-ui-text-1);\n margin-block-start: calc(var(--calcite-loader-size) + 1.5rem);\n}\n\n.loader__percentage{\n position: absolute;\n display: block;\n text-align: center;\n color: var(--calcite-ui-text-1);\n font-size: var(--calcite-loader-font-size);\n inline-size: var(--calcite-loader-size);\n inset-inline-start: 50%;\n margin-inline-start: calc(var(--calcite-loader-size) / 2 * -1);\n line-height: 0.25;\n transform: scale(1, 1);\n}\n\n.loader__svgs{\n position: absolute;\n overflow: visible;\n opacity: 1;\n inline-size: var(--calcite-loader-size);\n block-size: var(--calcite-loader-size);\n inset-inline-start: 50%;\n margin-inline-start: calc(var(--calcite-loader-size) / 2 * -1);\n transform: scale(1, 1);\n}\n\n.loader__svg{\n position: absolute;\n inset-block-start: 0px;\n transform-origin: center;\n overflow: visible;\n inset-inline-start: 0;\n inline-size: var(--calcite-loader-size);\n block-size: var(--calcite-loader-size);\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: loader-clockwise;\n}\n\n@supports (display: grid) {\n .loader__svg--1 {\n animation-name: loader-offset-1;\n }\n\n .loader__svg--2 {\n animation-name: loader-offset-2;\n }\n\n .loader__svg--3 {\n animation-name: loader-offset-3;\n }\n}\n:host([type=determinate]){\n animation: none;\n stroke: var(--calcite-ui-border-3);\n}\n:host([type=determinate]) .loader__svg--3{\n animation: none;\n stroke: var(--calcite-ui-brand);\n stroke-dasharray: 150.79632;\n transform: rotate(-90deg);\n transition: all var(--calcite-internal-animation-timing-fast) linear;\n}\n\n:host([inline]){\n position: relative;\n margin: 0px;\n animation: none;\n stroke: currentColor;\n stroke-width: 2;\n padding-block: 0px;\n block-size: var(--calcite-loader-size-inline);\n min-block-size: var(--calcite-loader-size-inline);\n inline-size: var(--calcite-loader-size-inline);\n margin-inline-end: calc(var(--calcite-loader-size-inline) * 0.5);\n vertical-align: calc(var(--calcite-loader-size-inline) * -1 * 0.2);\n}\n\n:host([active][inline]){\n display: inline-block;\n}\n\n:host([inline]) .loader__svgs{\n inset-block-start: 0px;\n margin: 0px;\n inset-inline-start: 0;\n inline-size: var(--calcite-loader-size-inline);\n block-size: var(--calcite-loader-size-inline);\n}\n\n:host([inline]) .loader__svg {\n inline-size: var(--calcite-loader-size-inline);\n block-size: var(--calcite-loader-size-inline);\n}\n\n:host([complete]){\n opacity: 0;\n transform: scale(0.75, 0.75);\n transform-origin: center;\n transition: opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms;\n}\n\n:host([complete]) .loader__svgs{\n opacity: 0;\n transform: scale(0.75, 0.75);\n transform-origin: center;\n transition: opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms;\n}\n\n:host([complete]) .loader__percentage {\n color: var(--calcite-ui-brand);\n transform: scale(1.05, 1.05);\n transform-origin: center;\n transition: color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear;\n}\n\n/**\n Segment variables\n - i index (1-3)\n - size length of the segment (0 - 100)\n - growth how much the segment grows during the animation\n (size + growth should not exceed 100)\n - duration how long the segment takes to rotate 360° (seconds)\n*/\n.loader__svg--1 {\n stroke-dasharray: 27.9252444444% 139.6262222222%;\n animation-duration: calc(var(--calcite-internal-animation-timing-slow) * 2.4);\n}\n\n@keyframes loader-offset-1 {\n 0% {\n stroke-dasharray: 27.9252444444% 251.3272%;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 139.6262222222% 139.6262222222%;\n stroke-dashoffset: -83.7757333333%;\n }\n 100% {\n stroke-dasharray: 27.9252444444% 251.3272%;\n stroke-dashoffset: -279.2524444444%;\n }\n}\n.loader__svg--2 {\n stroke-dasharray: 55.8504888889% 139.6262222222%;\n animation-duration: calc(var(--calcite-internal-animation-timing-slow) * 3.2);\n}\n\n@keyframes loader-offset-2 {\n 0% {\n stroke-dasharray: 55.8504888889% 223.4019555556%;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 139.6262222222% 139.6262222222%;\n stroke-dashoffset: -97.7383555556%;\n }\n 100% {\n stroke-dasharray: 55.8504888889% 223.4019555556%;\n stroke-dashoffset: -279.2524444444%;\n }\n}\n.loader__svg--3 {\n stroke-dasharray: 13.9626222222% 139.6262222222%;\n animation-duration: calc(var(--calcite-internal-animation-timing-slow) * 3.867);\n}\n\n@keyframes loader-offset-3 {\n 0% {\n stroke-dasharray: 13.9626222222% 265.2898222222%;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 139.6262222222% 139.6262222222%;\n stroke-dashoffset: -76.7944222222%;\n }\n 100% {\n stroke-dasharray: 13.9626222222% 265.2898222222%;\n stroke-dashoffset: -279.2524444444%;\n }\n}\n@keyframes loader-color-shift {\n 0% {\n stroke: var(--calcite-ui-brand);\n }\n 33% {\n stroke: var(--calcite-ui-brand-press);\n }\n 66% {\n stroke: var(--calcite-ui-brand-hover);\n }\n 100% {\n stroke: var(--calcite-ui-brand);\n }\n}\n@keyframes loader-clockwise {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h, Host } from \"@stencil/core\";\nimport { guid } from \"../../utils/guid\";\nexport class Loader {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** When `true`, the component is active. */\n this.active = false;\n /** When `true`, displays smaller and appears to the left of the text. */\n this.inline = false;\n /** Specifies the size of the component. */\n this.scale = \"m\";\n /** The component's value. Valid only for `\"determinate\"` indicators. Percent complete of 100. */\n this.value = 0;\n /** Text that displays under the component's indicator. */\n this.text = \"\";\n /**\n * Disables spacing around the component.\n *\n * @deprecated Use `--calcite-loader-padding` CSS variable instead.\n */\n this.noPadding = false;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n render() {\n const { el, inline, label, scale, text, type, value } = this;\n const id = el.id || guid();\n const radiusRatio = 0.45;\n const size = inline ? this.getInlineSize(scale) : this.getSize(scale);\n const radius = size * radiusRatio;\n const viewbox = `0 0 ${size} ${size}`;\n const isDeterminate = type === \"determinate\";\n const circumference = 2 * radius * Math.PI;\n const progress = (value / 100) * circumference;\n const remaining = circumference - progress;\n const valueNow = Math.floor(value);\n const hostAttributes = {\n \"aria-valuenow\": valueNow,\n \"aria-valuemin\": 0,\n \"aria-valuemax\": 100,\n complete: valueNow === 100\n };\n const svgAttributes = { r: radius, cx: size / 2, cy: size / 2 };\n const determinateStyle = { \"stroke-dasharray\": `${progress} ${remaining}` };\n return (h(Host, { \"aria-label\": label, id: id, role: \"progressbar\", ...(isDeterminate ? hostAttributes : {}) }, h(\"div\", { class: \"loader__svgs\" }, h(\"svg\", { class: \"loader__svg loader__svg--1\", viewBox: viewbox }, h(\"circle\", { ...svgAttributes })), h(\"svg\", { class: \"loader__svg loader__svg--2\", viewBox: viewbox }, h(\"circle\", { ...svgAttributes })), h(\"svg\", { class: \"loader__svg loader__svg--3\", viewBox: viewbox, ...(isDeterminate ? { style: determinateStyle } : {}) }, h(\"circle\", { ...svgAttributes }))), text && h(\"div\", { class: \"loader__text\" }, text), isDeterminate && h(\"div\", { class: \"loader__percentage\" }, value)));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Return the proper sizes based on the scale property\n *\n * @param scale\n */\n getSize(scale) {\n return {\n s: 32,\n m: 56,\n l: 80\n }[scale];\n }\n getInlineSize(scale) {\n return {\n s: 12,\n m: 16,\n l: 20\n }[scale];\n }\n static get is() { return \"calcite-loader\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"loader.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"loader.css\"]\n };\n }\n static get properties() {\n return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the component is active.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"inline\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, displays smaller and appears to the left of the text.\"\n },\n \"attribute\": \"inline\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Accessible name for the component.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"indeterminate\\\" | \\\"determinate\\\"\",\n \"resolved\": \"\\\"determinate\\\" | \\\"indeterminate\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the component type.\\n\\nUse `\\\"indeterminate\\\"` if finding actual progress value is impossible.\"\n },\n \"attribute\": \"type\",\n \"reflect\": true\n },\n \"value\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component's value. Valid only for `\\\"determinate\\\"` indicators. Percent complete of 100.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"0\"\n },\n \"text\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Text that displays under the component's indicator.\"\n },\n \"attribute\": \"text\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"noPadding\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"Use `--calcite-loader-padding` CSS variable instead.\"\n }],\n \"text\": \"Disables spacing around the component.\"\n },\n \"attribute\": \"no-padding\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get elementRef() { return \"el\"; }\n}\n"],"version":3}
@@ -15,8 +15,8 @@ import { d as decimalPlaces, c as clamp } from './p-63f6e8f1.js';
15
15
  import { i as isActivationKey } from './p-73e23995.js';
16
16
  import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './p-23904a3d.js';
17
17
  import { s as state } from './p-5b0d7c7d.js';
18
- import { f as ESelectionType, e as ERefineMode, d as ESelectionMode } from './p-6b9dc092.js';
19
- import { b as getMapLayerView, f as queryFeaturesByGeometry, h as highlightFeatures } from './p-fe0fdd8b.js';
18
+ import { f as ESelectionType, d as ERefineMode, c as ESelectionMode } from './p-f04fdb9a.js';
19
+ import { b as getMapLayerView, f as queryFeaturesByGeometry, h as highlightFeatures } from './p-c20bd963.js';
20
20
  import './p-3b010ce1.js';
21
21
  import './p-729708a3.js';
22
22
  import './p-9a9955db.js';
@@ -1869,4 +1869,4 @@ RefineSelectionTools.style = refineSelectionToolsCss;
1869
1869
 
1870
1870
  export { BufferTools as buffer_tools, RadioGroup as calcite_radio_group, RadioGroupItem as calcite_radio_group_item, Slider as calcite_slider, MapDrawTools as map_draw_tools, RefineSelectionTools as refine_selection_tools };
1871
1871
 
1872
- //# sourceMappingURL=p-77e6b03c.entry.js.map
1872
+ //# sourceMappingURL=p-e6fb9cde.entry.js.map
@@ -3,224 +3,108 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement, f as forceUpdate, H as Host } from './p-58c69df2.js';
7
- import { C as CSS$1, I as ICONS, S as SLOTS } from './p-6e0da576.js';
8
- import { t as toAriaBoolean, i as isPrimaryPointerButton, f as focusElement, q as queryElementRoots } from './p-32a67cb2.js';
9
- import { g as getRoundRobinIndex } from './p-e947d3b0.js';
10
- import { g as guid } from './p-a80b3880.js';
11
- import { i as isActivationKey } from './p-73e23995.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, f as forceUpdate } from './p-58c69df2.js';
7
+ import { c as createObserver } from './p-9a9955db.js';
8
+ import { u as updateHostInteraction } from './p-7daea1df.js';
9
+ import { t as toAriaBoolean, i as isPrimaryPointerButton, q as queryElementRoots } from './p-32a67cb2.js';
12
10
  import { b as defaultOffsetDistance, f as filterComputedPlacements, c as connectFloatingUI, u as updateAfterClose, a as disconnectFloatingUI, r as reposition, F as FloatingCSS } from './p-600e23c6.js';
11
+ import { g as guid } from './p-a80b3880.js';
13
12
  import { c as connectOpenCloseComponent, d as disconnectOpenCloseComponent } from './p-2e9ed892.js';
14
13
  import { H as Heading } from './p-eeb0321d.js';
14
+ import { i as isActivationKey } from './p-73e23995.js';
15
15
  import './p-729708a3.js';
16
16
  import './p-4e32bf8c.js';
17
17
 
18
- const actionMenuCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";
18
+ /*!
19
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
20
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
21
+ * v1.0.0-beta.97
22
+ */
23
+ const CSS$1 = {
24
+ button: "button",
25
+ buttonTextVisible: "button--text-visible",
26
+ buttonCompact: "button--compact",
27
+ iconContainer: "icon-container",
28
+ slotContainer: "slot-container",
29
+ slotContainerHidden: "slot-container--hidden",
30
+ textContainer: "text-container",
31
+ textContainerVisible: "text-container--visible"
32
+ };
33
+ const TEXT$1 = {
34
+ loading: "Loading"
35
+ };
36
+ const SLOTS = {
37
+ tooltip: "tooltip"
38
+ };
39
+
40
+ const actionCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button,:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus,:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus,:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button,:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
19
41
 
20
- const SUPPORTED_MENU_NAV_KEYS = ["ArrowUp", "ArrowDown", "End", "Home"];
21
- const ActionMenu = class {
42
+ const Action = class {
22
43
  constructor(hostRef) {
23
44
  registerInstance(this, hostRef);
24
- this.calciteActionMenuOpenChange = createEvent(this, "calciteActionMenuOpenChange", 6);
45
+ this.calciteActionClick = createEvent(this, "calciteActionClick", 6);
25
46
  // --------------------------------------------------------------------------
26
47
  //
27
48
  // Properties
28
49
  //
29
50
  // --------------------------------------------------------------------------
30
51
  /**
31
- * When `true`, the component is expanded.
52
+ * When `true`, the component is highlighted.
32
53
  */
33
- this.expanded = false;
54
+ this.active = false;
55
+ /** Specifies the appearance of the component. */
56
+ this.appearance = "solid";
34
57
  /**
35
- * When `true`, the component is open.
58
+ * When `true`, the side padding of the component is reduced. Compact mode is used internally by components, e.g. `calcite-block-section`.
36
59
  */
37
- this.open = false;
60
+ this.compact = false;
38
61
  /**
39
- * Determines the type of positioning to use for the overlaid content.
40
- *
41
- * Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.
42
- * `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
43
- *
62
+ * When `true`, interaction is prevented and the component is displayed with lower opacity.
44
63
  */
45
- this.overlayPositioning = "absolute";
64
+ this.disabled = false;
46
65
  /**
47
- * Determines where the component will be positioned relative to the `referenceElement`.
66
+ * When `true`, indicates unread changes.
67
+ */
68
+ this.indicator = false;
69
+ /**
70
+ * Specifies the text label to display while loading.
48
71
  *
49
- * @see [LogicalPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/floating-ui.ts#L25)
72
+ * @default "Loading"
50
73
  */
51
- this.placement = "auto";
52
- this.actionElements = [];
53
- this.guid = `calcite-action-menu-${guid()}`;
54
- this.menuId = `${this.guid}-menu`;
55
- this.menuButtonId = `${this.guid}-menu-button`;
56
- this.activeMenuItemIndex = -1;
57
- // --------------------------------------------------------------------------
58
- //
59
- // Component Methods
60
- //
61
- // --------------------------------------------------------------------------
62
- this.connectMenuButtonEl = () => {
63
- const { menuButtonId, menuId, open, label } = this;
64
- const menuButtonEl = this.slottedMenuButtonEl || this.defaultMenuButtonEl;
65
- if (this.menuButtonEl === menuButtonEl) {
66
- return;
67
- }
68
- this.disconnectMenuButtonEl();
69
- this.menuButtonEl = menuButtonEl;
70
- this.setTooltipReferenceElement();
71
- if (!menuButtonEl) {
72
- return;
73
- }
74
- menuButtonEl.active = open;
75
- menuButtonEl.setAttribute("aria-controls", menuId);
76
- menuButtonEl.setAttribute("aria-expanded", toAriaBoolean(open));
77
- menuButtonEl.setAttribute("aria-haspopup", "true");
78
- if (!menuButtonEl.id) {
79
- menuButtonEl.id = menuButtonId;
80
- }
81
- if (!menuButtonEl.label) {
82
- menuButtonEl.label = label;
83
- }
84
- if (!menuButtonEl.text) {
85
- menuButtonEl.text = label;
86
- }
87
- menuButtonEl.addEventListener("pointerdown", this.menuButtonClick);
88
- menuButtonEl.addEventListener("keydown", this.menuButtonKeyDown);
89
- };
90
- this.disconnectMenuButtonEl = () => {
91
- const { menuButtonEl } = this;
92
- if (!menuButtonEl) {
93
- return;
94
- }
95
- menuButtonEl.removeEventListener("pointerdown", this.menuButtonClick);
96
- menuButtonEl.removeEventListener("keydown", this.menuButtonKeyDown);
97
- };
98
- this.setMenuButtonEl = (event) => {
99
- const actions = event.target
100
- .assignedElements({
101
- flatten: true
102
- })
103
- .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
104
- this.slottedMenuButtonEl = actions[0];
105
- this.connectMenuButtonEl();
106
- };
107
- this.setDefaultMenuButtonEl = (el) => {
108
- this.defaultMenuButtonEl = el;
109
- this.connectMenuButtonEl();
110
- };
74
+ this.intlLoading = TEXT$1.loading;
75
+ /**
76
+ * When `true`, a busy indicator is displayed.
77
+ */
78
+ this.loading = false;
79
+ /**
80
+ * Specifies the size of the component.
81
+ */
82
+ this.scale = "m";
83
+ /**
84
+ * Indicates whether the text is displayed.
85
+ */
86
+ this.textEnabled = false;
87
+ this.mutationObserver = createObserver("mutation", () => forceUpdate(this));
111
88
  // --------------------------------------------------------------------------
112
89
  //
113
90
  // Private Methods
114
91
  //
115
92
  // --------------------------------------------------------------------------
116
- this.handleCalciteActionClick = () => {
117
- this.open = false;
118
- this.setFocus();
119
- };
120
- this.menuButtonClick = (event) => {
121
- if (!isPrimaryPointerButton(event)) {
122
- return;
123
- }
124
- this.toggleOpen();
125
- };
126
- this.updateTooltip = (event) => {
93
+ this.handleTooltipSlotChange = (event) => {
127
94
  const tooltips = event.target
128
95
  .assignedElements({
129
96
  flatten: true
130
97
  })
131
98
  .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-tooltip"));
132
- this.tooltipEl = tooltips[0];
133
- this.setTooltipReferenceElement();
134
- };
135
- this.setTooltipReferenceElement = () => {
136
- const { tooltipEl, expanded, menuButtonEl, open } = this;
137
- if (tooltipEl) {
138
- tooltipEl.referenceElement = !expanded && !open ? menuButtonEl : null;
99
+ const tooltip = tooltips[0];
100
+ if (tooltip) {
101
+ tooltip.referenceElement = this.buttonEl;
139
102
  }
140
103
  };
141
- this.updateAction = (action, index) => {
142
- const { guid, activeMenuItemIndex } = this;
143
- const id = `${guid}-action-${index}`;
144
- action.tabIndex = -1;
145
- action.setAttribute("role", "menuitem");
146
- if (!action.id) {
147
- action.id = id;
104
+ this.calciteActionClickHandler = () => {
105
+ if (!this.disabled) {
106
+ this.calciteActionClick.emit();
148
107
  }
149
- action.active = index === activeMenuItemIndex;
150
- };
151
- this.updateActions = (actions) => {
152
- actions === null || actions === void 0 ? void 0 : actions.forEach(this.updateAction);
153
- };
154
- this.handleDefaultSlotChange = (event) => {
155
- const actions = event.target
156
- .assignedElements({
157
- flatten: true
158
- })
159
- .filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
160
- this.actionElements = actions;
161
- };
162
- this.menuButtonKeyDown = (event) => {
163
- const { key } = event;
164
- const { actionElements, activeMenuItemIndex, open } = this;
165
- if (!actionElements.length) {
166
- return;
167
- }
168
- if (isActivationKey(key)) {
169
- event.preventDefault();
170
- if (!open) {
171
- this.toggleOpen();
172
- return;
173
- }
174
- const action = actionElements[activeMenuItemIndex];
175
- action ? action.click() : this.toggleOpen(false);
176
- }
177
- if (key === "Tab") {
178
- this.open = false;
179
- return;
180
- }
181
- if (key === "Escape") {
182
- this.toggleOpen(false);
183
- event.preventDefault();
184
- return;
185
- }
186
- this.handleActionNavigation(event, key, actionElements);
187
- };
188
- this.handleActionNavigation = (event, key, actions) => {
189
- if (!this.isValidKey(key, SUPPORTED_MENU_NAV_KEYS)) {
190
- return;
191
- }
192
- event.preventDefault();
193
- if (!this.open) {
194
- this.toggleOpen();
195
- if (key === "Home" || key === "ArrowDown") {
196
- this.activeMenuItemIndex = 0;
197
- }
198
- if (key === "End" || key === "ArrowUp") {
199
- this.activeMenuItemIndex = actions.length - 1;
200
- }
201
- return;
202
- }
203
- if (key === "Home") {
204
- this.activeMenuItemIndex = 0;
205
- }
206
- if (key === "End") {
207
- this.activeMenuItemIndex = actions.length - 1;
208
- }
209
- const currentIndex = this.activeMenuItemIndex;
210
- if (key === "ArrowUp") {
211
- this.activeMenuItemIndex = getRoundRobinIndex(Math.max(currentIndex - 1, -1), actions.length);
212
- }
213
- if (key === "ArrowDown") {
214
- this.activeMenuItemIndex = getRoundRobinIndex(currentIndex + 1, actions.length);
215
- }
216
- };
217
- this.toggleOpenEnd = () => {
218
- this.setFocus();
219
- this.el.removeEventListener("calcitePopoverOpen", this.toggleOpenEnd);
220
- };
221
- this.toggleOpen = (value = !this.open) => {
222
- this.el.addEventListener("calcitePopoverOpen", this.toggleOpenEnd);
223
- this.open = value;
224
108
  };
225
109
  }
226
110
  // --------------------------------------------------------------------------
@@ -228,33 +112,16 @@ const ActionMenu = class {
228
112
  // Lifecycle
229
113
  //
230
114
  // --------------------------------------------------------------------------
231
- disconnectedCallback() {
232
- this.disconnectMenuButtonEl();
233
- }
234
- expandedHandler() {
235
- this.open = false;
236
- this.setTooltipReferenceElement();
237
- }
238
- openHandler(open) {
239
- this.activeMenuItemIndex = this.open ? 0 : -1;
240
- if (this.menuButtonEl) {
241
- this.menuButtonEl.active = open;
242
- }
243
- this.calciteActionMenuOpenChange.emit(open);
244
- this.setTooltipReferenceElement();
115
+ connectedCallback() {
116
+ var _a;
117
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
245
118
  }
246
- closeCalciteActionMenuOnClick(event) {
247
- if (!isPrimaryPointerButton(event)) {
248
- return;
249
- }
250
- const composedPath = event.composedPath();
251
- if (composedPath.includes(this.el)) {
252
- return;
253
- }
254
- this.open = false;
119
+ disconnectedCallback() {
120
+ var _a;
121
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
255
122
  }
256
- activeMenuItemIndexHandler() {
257
- this.updateActions(this.actionElements);
123
+ componentDidRender() {
124
+ updateHostInteraction(this);
258
125
  }
259
126
  // --------------------------------------------------------------------------
260
127
  //
@@ -263,33 +130,50 @@ const ActionMenu = class {
263
130
  // --------------------------------------------------------------------------
264
131
  /** Sets focus on the component. */
265
132
  async setFocus() {
266
- focusElement(this.menuButtonEl);
133
+ var _a;
134
+ (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
267
135
  }
268
- renderMenuButton() {
269
- const { label, scale, expanded } = this;
270
- const menuButtonSlot = (h("slot", { name: SLOTS.trigger, onSlotchange: this.setMenuButtonEl }, h("calcite-action", { class: CSS$1.defaultTrigger, icon: ICONS.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
271
- return menuButtonSlot;
136
+ // --------------------------------------------------------------------------
137
+ //
138
+ // Render Methods
139
+ //
140
+ // --------------------------------------------------------------------------
141
+ renderTextContainer() {
142
+ const { text, textEnabled } = this;
143
+ const textContainerClasses = {
144
+ [CSS$1.textContainer]: true,
145
+ [CSS$1.textContainerVisible]: textEnabled
146
+ };
147
+ return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
272
148
  }
273
- renderMenuItems() {
274
- const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
275
- const activeAction = actionElements[activeMenuItemIndex];
276
- const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
277
- return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$1.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
149
+ renderIconContainer() {
150
+ var _a;
151
+ const { loading, icon, scale, el, intlLoading } = this;
152
+ const iconScale = scale === "l" ? "m" : "s";
153
+ const loaderScale = scale === "l" ? "l" : "m";
154
+ const calciteLoaderNode = loading ? (h("calcite-loader", { active: true, inline: true, label: intlLoading, scale: loaderScale })) : null;
155
+ const calciteIconNode = icon ? h("calcite-icon", { icon: icon, scale: iconScale }) : null;
156
+ const iconNode = calciteLoaderNode || calciteIconNode;
157
+ const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
158
+ const slotContainerNode = (h("div", { class: {
159
+ [CSS$1.slotContainer]: true,
160
+ [CSS$1.slotContainerHidden]: loading
161
+ } }, h("slot", null)));
162
+ return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$1.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
278
163
  }
279
164
  render() {
280
- return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS.tooltip, onSlotchange: this.updateTooltip })));
281
- }
282
- isValidKey(key, supportedKeys) {
283
- return !!supportedKeys.find((k) => k === key);
165
+ const { compact, disabled, loading, textEnabled, label, text } = this;
166
+ const ariaLabel = label || text;
167
+ const buttonClasses = {
168
+ [CSS$1.button]: true,
169
+ [CSS$1.buttonTextVisible]: textEnabled,
170
+ [CSS$1.buttonCompact]: compact
171
+ };
172
+ return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), h("slot", { name: SLOTS.tooltip, onSlotchange: this.handleTooltipSlotChange })));
284
173
  }
285
174
  get el() { return getElement(this); }
286
- static get watchers() { return {
287
- "expanded": ["expandedHandler"],
288
- "open": ["openHandler"],
289
- "activeMenuItemIndex": ["activeMenuItemIndexHandler"]
290
- }; }
291
175
  };
292
- ActionMenu.style = actionMenuCss;
176
+ Action.style = actionCss;
293
177
 
294
178
  /*!
295
179
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
@@ -720,6 +604,6 @@ const Popover = class {
720
604
  };
721
605
  Popover.style = popoverCss;
722
606
 
723
- export { ActionMenu as calcite_action_menu, Popover as calcite_popover };
607
+ export { Action as calcite_action, Popover as calcite_popover };
724
608
 
725
- //# sourceMappingURL=p-97c4a268.entry.js.map
609
+ //# sourceMappingURL=p-ef6f9e24.entry.js.map