@arcgis/map-components 5.2.0-next.33 → 5.2.0-next.34

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 (175) hide show
  1. package/dist/cdn/{PXZ7GYGB.js → 2FBLF35H.js} +1 -1
  2. package/dist/cdn/{I5MVHBKV.js → 2GQUMXRP.js} +1 -1
  3. package/dist/cdn/{VLXRN5II.js → 2TWSQAFW.js} +1 -1
  4. package/dist/cdn/{KIQMUMR7.js → 32VPFWAU.js} +1 -1
  5. package/dist/cdn/{UMJTWBQ3.js → 3TV4AW2U.js} +1 -1
  6. package/dist/cdn/{TMOESX4H.js → 3XN5WC3E.js} +1 -1
  7. package/dist/cdn/{6EKV3B5S.js → 43E5Q7SX.js} +1 -1
  8. package/dist/cdn/{N3JXA7DZ.js → 4CIY4MDE.js} +1 -1
  9. package/dist/cdn/{RKXL42SK.js → 4LXXTKLF.js} +1 -1
  10. package/dist/cdn/{USDF674A.js → 4PLVKLIO.js} +1 -1
  11. package/dist/cdn/{4NMNJIYV.js → 4RYRGSLZ.js} +1 -1
  12. package/dist/cdn/{YUV3XEWE.js → 5EO47VPH.js} +1 -1
  13. package/dist/cdn/{TSL4BZHI.js → 6NVBAMUC.js} +1 -1
  14. package/dist/cdn/6Z4HUEBW.js +2 -0
  15. package/dist/cdn/{NAWH5P73.js → 737FF4ZH.js} +1 -1
  16. package/dist/cdn/{OPP5DWFT.js → 7DJQ6AV3.js} +1 -1
  17. package/dist/cdn/{EVYO2SIO.js → 7EYV5QCR.js} +1 -1
  18. package/dist/cdn/7GTMLYFP.js +2 -0
  19. package/dist/cdn/{TCYTMU4A.js → 7NXADBPZ.js} +1 -1
  20. package/dist/cdn/{DUDVPO32.js → 7SS6YS6U.js} +1 -1
  21. package/dist/cdn/{ENSUS3VL.js → ACB6VKEU.js} +1 -1
  22. package/dist/cdn/{R72MT5TQ.js → ACGQG2T3.js} +1 -1
  23. package/dist/cdn/AGNHPUGM.js +2 -0
  24. package/dist/cdn/{UQIJOVPD.js → BABV4Q67.js} +1 -1
  25. package/dist/cdn/{ESTUA4YE.js → BB2OVX6Z.js} +1 -1
  26. package/dist/cdn/BD27PEC7.js +2 -0
  27. package/dist/cdn/{IZVYML7I.js → BJHI57US.js} +1 -1
  28. package/dist/cdn/{NVKY5H7W.js → BMEV46IM.js} +1 -1
  29. package/dist/cdn/{R5NVFWFA.js → BPXDBUNH.js} +1 -1
  30. package/dist/cdn/{7MKSGCWC.js → BYIKUU2V.js} +1 -1
  31. package/dist/cdn/{AW7PMR3D.js → CDY4M34V.js} +1 -1
  32. package/dist/cdn/{KZBBEVWQ.js → CML7DSDS.js} +1 -1
  33. package/dist/cdn/{MMNJNQ3Q.js → CMXX5I5Y.js} +1 -1
  34. package/dist/cdn/{TCKCE5NB.js → CUWHMMMX.js} +1 -1
  35. package/dist/cdn/{3XWUH3TJ.js → CW3A3NSF.js} +1 -1
  36. package/dist/cdn/{VLJKBHDD.js → CWXLMMIV.js} +1 -1
  37. package/dist/cdn/{ZBWHLMXA.js → CZE4HGAH.js} +1 -1
  38. package/dist/cdn/{3TFVMVSU.js → D5OF45DN.js} +1 -1
  39. package/dist/cdn/{NANWWHJ6.js → D5YLOINY.js} +1 -1
  40. package/dist/cdn/{EFYUNXBG.js → DAPA72LS.js} +1 -1
  41. package/dist/cdn/{CCFKZSFO.js → DGHNWABD.js} +1 -1
  42. package/dist/cdn/{43OLIA7Q.js → DGIBWHDZ.js} +1 -1
  43. package/dist/cdn/{GLNO2ZMW.js → DI6UP5OE.js} +1 -1
  44. package/dist/cdn/{JCHYVWCR.js → EE2CA7CT.js} +1 -1
  45. package/dist/cdn/{54WXILYF.js → EOK45N5T.js} +1 -1
  46. package/dist/cdn/{ATLWKCAP.js → ESA5KBF2.js} +1 -1
  47. package/dist/cdn/{SHJGMBBY.js → EV4FZDIH.js} +1 -1
  48. package/dist/cdn/EXQF6CLS.js +2 -0
  49. package/dist/cdn/{435CL2BU.js → FC3W4JBU.js} +1 -1
  50. package/dist/cdn/{A2Q7UAOI.js → FJI7SX3Z.js} +1 -1
  51. package/dist/cdn/{6HJM34BD.js → FK5W4CAM.js} +1 -1
  52. package/dist/cdn/{YMCZRMWW.js → FPWQJH6Z.js} +1 -1
  53. package/dist/cdn/{YMHPA3VC.js → FW6YER2T.js} +1 -1
  54. package/dist/cdn/{45OF43WO.js → FWRGAMLD.js} +1 -1
  55. package/dist/cdn/FWVU47N3.js +2 -0
  56. package/dist/cdn/{7XUCMK3B.js → FZD4BWTZ.js} +1 -1
  57. package/dist/cdn/{NLQ5PJXM.js → G62ON2MX.js} +1 -1
  58. package/dist/cdn/{GPVFCWMU.js → GSI2ZI7D.js} +1 -1
  59. package/dist/cdn/{3XUZ45XB.js → HB3P56AO.js} +1 -1
  60. package/dist/cdn/HF7TEJAO.js +2 -0
  61. package/dist/cdn/{WCXM6TPE.js → HLW5IWNW.js} +1 -1
  62. package/dist/cdn/{6S7LUYCJ.js → HSVIFDP7.js} +1 -1
  63. package/dist/cdn/{KPOSO4HB.js → I5OLG552.js} +1 -1
  64. package/dist/cdn/{2SEZT4WZ.js → I75L57XX.js} +1 -1
  65. package/dist/cdn/{TCFK2EXM.js → IAQVHCU7.js} +1 -1
  66. package/dist/cdn/{SSVJJAR5.js → IIFKJ5KI.js} +1 -1
  67. package/dist/cdn/{K3BJFKYY.js → IJM4ETBT.js} +1 -1
  68. package/dist/cdn/ISUTHAE7.js +2 -0
  69. package/dist/cdn/{6IEKX6LJ.js → J5WF4RA3.js} +1 -1
  70. package/dist/cdn/{V2FVPSX3.js → JAPZRY7D.js} +1 -1
  71. package/dist/cdn/{V7MKCC7O.js → JC5VO2H6.js} +1 -1
  72. package/dist/cdn/JK5WW4LS.js +2 -0
  73. package/dist/cdn/{6JMYHTFN.js → JRGDCJFD.js} +1 -1
  74. package/dist/cdn/{NCHQCPM6.js → K3PRLBKN.js} +1 -1
  75. package/dist/cdn/{LA3UYF7I.js → K3RZVWUG.js} +1 -1
  76. package/dist/cdn/KI2RJGYP.js +2 -0
  77. package/dist/cdn/KN4B6FCH.js +2 -0
  78. package/dist/cdn/{4LB5GOV2.js → KS54PV2C.js} +1 -1
  79. package/dist/cdn/KY3F7CGM.js +2 -0
  80. package/dist/cdn/{3YDQP3TL.js → KYIGNAWR.js} +1 -1
  81. package/dist/cdn/{HIHYNNEU.js → LWFBZABK.js} +1 -1
  82. package/dist/cdn/{7GXEJLOM.js → LWUHDIX7.js} +1 -1
  83. package/dist/cdn/{PKS3JYAN.js → M7QNKIPS.js} +1 -1
  84. package/dist/cdn/{S7HZFJQZ.js → MHFQFV3U.js} +1 -1
  85. package/dist/cdn/MS7AHPCF.js +2 -0
  86. package/dist/cdn/{NC472JXT.js → MVGWB3RU.js} +1 -1
  87. package/dist/cdn/{BCXPJXAK.js → NRSO2H4L.js} +1 -1
  88. package/dist/cdn/{45O57WR4.js → O2ETKQ5D.js} +1 -1
  89. package/dist/cdn/{DBF4LUEJ.js → O5TYAJJC.js} +1 -1
  90. package/dist/cdn/{7PTCONZB.js → OES2XNU6.js} +1 -1
  91. package/dist/cdn/{LKR52VUM.js → OJZS7SEO.js} +1 -1
  92. package/dist/cdn/{EK7GAWIV.js → OPXW6KNI.js} +1 -1
  93. package/dist/cdn/{2NYG7G7M.js → P5CMHBXY.js} +1 -1
  94. package/dist/cdn/{NRYA6EOZ.js → PIBSUNDA.js} +1 -1
  95. package/dist/cdn/{YUCJQ6XI.js → Q3W5PUKE.js} +1 -1
  96. package/dist/cdn/{CX5LLKOW.js → QEKL2JAR.js} +1 -1
  97. package/dist/cdn/{VSXLCBBA.js → QHA2WGXH.js} +1 -1
  98. package/dist/cdn/{BXLXZYRC.js → R76WDXDY.js} +1 -1
  99. package/dist/cdn/{EL6TAK3S.js → RIFV5I7U.js} +1 -1
  100. package/dist/cdn/{GRUB3M36.js → RUFWW2L5.js} +1 -1
  101. package/dist/cdn/{TDEIRM7H.js → RY6OC64Z.js} +1 -1
  102. package/dist/cdn/{3MDY3AXY.js → S3Q7DCIL.js} +1 -1
  103. package/dist/cdn/{BPQPJXPT.js → SDWAS6TI.js} +1 -1
  104. package/dist/cdn/{GJIDZ4M6.js → T2U3NVKA.js} +1 -1
  105. package/dist/cdn/{XOTOMH2G.js → TCOOCOVG.js} +1 -1
  106. package/dist/cdn/{3IVI7KSX.js → TJFVBTGT.js} +1 -1
  107. package/dist/cdn/{SGY36MUJ.js → TJL2GS3I.js} +1 -1
  108. package/dist/cdn/{TCS6CS2V.js → TPL6IAKN.js} +1 -1
  109. package/dist/cdn/{KG2IHV32.js → TWF5DLV4.js} +1 -1
  110. package/dist/cdn/{7KPJBKO6.js → UCRELG4W.js} +1 -1
  111. package/dist/cdn/{O7SRECHG.js → URUIZIXD.js} +1 -1
  112. package/dist/cdn/{42N4OII5.js → UYO3EHF5.js} +1 -1
  113. package/dist/cdn/{B7P66JTS.js → VDRSNCLD.js} +1 -1
  114. package/dist/cdn/{TA7JY4OV.js → VPMDOL5A.js} +1 -1
  115. package/dist/cdn/{3JEAUEUY.js → VZP4JMWS.js} +1 -1
  116. package/dist/cdn/{A5W6D3EH.js → WIGC724I.js} +1 -1
  117. package/dist/cdn/{4ICKT52U.js → WVH3PWDM.js} +1 -1
  118. package/dist/cdn/{DMVLKBEO.js → X32UMW74.js} +1 -1
  119. package/dist/cdn/{B2ZGMSHQ.js → X34ZFQYZ.js} +1 -1
  120. package/dist/cdn/{BRDTU3O6.js → XC3A635J.js} +1 -1
  121. package/dist/cdn/{6O7GP3C3.js → XDK4EBMF.js} +1 -1
  122. package/dist/cdn/{EK44YZYH.js → XHS7LMVO.js} +1 -1
  123. package/dist/cdn/{CTUD7CTJ.js → XJ45UBQS.js} +1 -1
  124. package/dist/cdn/{DBJFHC3S.js → XR4WLNHC.js} +1 -1
  125. package/dist/cdn/{FCRUDE4P.js → XRRV7RO4.js} +1 -1
  126. package/dist/cdn/{SFP62RAJ.js → XVEDSEO5.js} +1 -1
  127. package/dist/cdn/{AU7UZMXF.js → Y4BLBOOK.js} +1 -1
  128. package/dist/cdn/{YNIECEKR.js → Y6YN2NUF.js} +1 -1
  129. package/dist/cdn/{3PM2WTS4.js → YMGM7P5W.js} +1 -1
  130. package/dist/cdn/{MPYM4XNR.js → YQHCTUQF.js} +1 -1
  131. package/dist/cdn/{EEF3VY5V.js → YVZBBDWC.js} +1 -1
  132. package/dist/cdn/{MECGUFOT.js → ZVK4FCTD.js} +1 -1
  133. package/dist/cdn/{Z2HJETJA.js → ZVZAGAA3.js} +1 -1
  134. package/dist/cdn/index.js +1 -1
  135. package/dist/components/arcgis-editor/customElement.d.ts +6 -0
  136. package/dist/components/arcgis-editor/customElement.js +6 -6
  137. package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -0
  138. package/dist/components/arcgis-feature-templates/customElement.js +3 -3
  139. package/dist/components/arcgis-legend/customElement.d.ts +1 -1
  140. package/dist/components/arcgis-legend/customElement.js +34 -33
  141. package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
  142. package/dist/components/arcgis-paste/customElement.js +234 -227
  143. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +33 -31
  144. package/dist/components/arcgis-print-layout-panel/customElement.js +19 -16
  145. package/dist/components/arcgis-print-main-panel/customElement.js +28 -21
  146. package/dist/components/arcgis-print-template-select/customElement.js +24 -21
  147. package/dist/components/arcgis-print-template-selector/customElement.js +19 -19
  148. package/dist/docs/api.json +1 -1
  149. package/dist/docs/docs.json +1 -1
  150. package/dist/docs/vscode.html-custom-data.json +1 -1
  151. package/dist/docs/web-types.json +1 -1
  152. package/dist/loader.js +2 -2
  153. package/dist/types/lumina.d.ts +1 -1
  154. package/dist/types/preact.d.ts +1 -1
  155. package/dist/types/react.d.ts +1 -1
  156. package/dist/types/stencil.d.ts +1 -1
  157. package/package.json +4 -4
  158. package/dist/cdn/3ACWQZMG.js +0 -2
  159. package/dist/cdn/3UEX6WWW.js +0 -2
  160. package/dist/cdn/EI7NXMGF.js +0 -2
  161. package/dist/cdn/ITCLBS5H.js +0 -2
  162. package/dist/cdn/MTYQJ4TB.js +0 -2
  163. package/dist/cdn/NYS47GN2.js +0 -2
  164. package/dist/cdn/PLLSFCLD.js +0 -2
  165. package/dist/cdn/Q2XRS2MQ.js +0 -2
  166. package/dist/cdn/TZHGOM2Y.js +0 -2
  167. package/dist/cdn/UFGA4NGM.js +0 -2
  168. package/dist/cdn/VJ2SMYNX.js +0 -2
  169. package/dist/cdn/VRWFW2LF.js +0 -2
  170. package/dist/cdn/VYBNGAPG.js +0 -2
  171. package/dist/cdn/YOXKII2K.js +0 -2
  172. package/dist/cdn/assets/home/t9n/messages.home.json +0 -1
  173. package/dist/cdn/assets/slider-scale-range/t9n/messages.ScaleRangeSlider.json +0 -1
  174. package/dist/cdn/assets/swipe/t9n/messages.swipe.json +0 -1
  175. package/dist/chunks/useHandles.js +0 -207
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./MOJH7XEP.js";import{a as r}from"./UFGA4NGM.js";import{f as o}from"./VJ2SMYNX.js";import"./IDZCPNFC.js";import"./DU6OKLV4.js";import{O as i,U as c,a as s,b as l}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:d},{b:n,c:m,d:p}])=>{var h=s`.template-select-container{border:1px solid var(--calcite-color-border-1);cursor:pointer}.template-select-container .template-select-error,.template-select-container .template-select-arrow{display:flex;align-self:center;margin-right:var(--calcite-spacing-md)}`,a=class extends i{constructor(){super(...arguments),this._handles=r("disconnect"),this._direction=o(),this._templateState="not-loaded"}static{this.properties={_selectedTemplate:16,_templateState:16,viewModel:0,messages:0,showTemplateSelector:0}}static{this.styles=h}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(d(()=>this._selectedTemplate?.state,t=>this._templateState=t??"not-loaded",{initial:!0}),"template-handle")},{initial:!0})])}render(){let e=this._selectedTemplate?m(this._selectedTemplate,this.messages):this.messages.selectTemplate;return l`<calcite-block class="template-select-container" .description=${n(this._selectedTemplate)} .heading=${e} .label=${e} .loading=${this._templateState==="loading"} @click=${this.showTemplateSelector} @keydown=${t=>{(t.key==="Enter"||t.key===" ")&&this.showTemplateSelector()}} tabindex=0><calcite-icon .icon=${(this._selectedTemplate?.layout?p(this._selectedTemplate.layout):null)||"custom-print"} scale=l slot=content-start></calcite-icon>${this._templateState==="error"?l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=actions-end></calcite-icon>`:null}<calcite-icon class="template-select-arrow" .icon=${this._direction==="rtl"?"chevron-left":"chevron-right"} scale=s slot=actions-end></calcite-icon></calcite-block>`}};c("arcgis-print-template-select",a);return a},"core/reactiveUtils",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./AW7PMR3D.js";import d from"./NCHQCPM6.js";import c from"./R5NVFWFA.js";import b from"./GPVFCWMU.js";import"./VJ2SMYNX.js";import"./IDZCPNFC.js";import a from"./HKTQWWXP.js";import"./DU6OKLV4.js";import"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
@@ -1 +0,0 @@
1
- {"componentLabel":"Home","title":"Default map view","cancel":"Cancel"}
@@ -1 +0,0 @@
1
- {"widgetLabel":"Scale Range Slider","noLimit":"No Limit","preview":"Preview","currentScaleTooltip":"Current map scale ({scaleLabel})","customScaleInputTooltip":"Type in a scale.","current":"Current","setTo":"Set to","selectOne":"(select one)","setToSelectOne":"{setTo} {selectOne}","scaleRangeLabels":{"world":"World","continent":"Continent","countriesBig":"Countries","countriesSmall":"Country","statesProvinces":"States","stateProvince":"State","counties":"Counties","county":"County","metropolitanArea":"Metropolitan area","cities":"Cities","city":"City","town":"Town","neighborhood":"Neighborhood","streets":"Streets","street":"Street","buildings":"Buildings","building":"Building","smallBuilding":"Small building","rooms":"Rooms","room":"Room"},"featuredScaleLabels":{"custom":"Custom","current":"Current map view","world":"World","continent":"Continent","countriesBig":"Countries - big","countriesSmall":"Countries - small","statesProvinces":"States/Provinces","stateProvince":"State/Province","counties":"Counties","county":"County","metropolitanArea":"Metropolitan area","cities":"Cities","city":"City","town":"Town","neighborhood":"Neighborhood","streets":"Streets","street":"Street","buildings":"Buildings","building":"Building","smallBuilding":"Small building","rooms":"Rooms","room":"Room"}}
@@ -1 +0,0 @@
1
- {"componentLabel":"Swipe","dragLabel":"Drag to compare"}
@@ -1,207 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { toFunction as i, Controller as n } from "@arcgis/lumina/controllers";
3
- class o {
4
- constructor() {
5
- this._groups = /* @__PURE__ */ new Map();
6
- }
7
- //--------------------------------------------------------------------------
8
- //
9
- // Lifecycle
10
- //
11
- //--------------------------------------------------------------------------
12
- /**
13
- * Destroys the object, removing all the handles.
14
- *
15
- * @example
16
- * let handles = new Handles();
17
- *
18
- * handles.add(reactiveUtils.when(
19
- * () => !view.updating,
20
- * () => {
21
- * wkidSelect.disabled = false;
22
- * },
23
- * { once: true }
24
- * ));
25
- *
26
- * handles.destroy();
27
- */
28
- destroy() {
29
- this.removeAll();
30
- }
31
- //--------------------------------------------------------------------------
32
- //
33
- // Public Methods
34
- //
35
- //--------------------------------------------------------------------------
36
- /**
37
- * Adds a group of handles.
38
- *
39
- * @example
40
- * let handles = new Handles();
41
- *
42
- * handles.add(handle); // added to the default group
43
- * handles.add([handle1, handle2]); // added to the default group
44
- *
45
- * handles.add(handle, "handle-group");
46
- * handles.add([handle1, handle2], "other-handle-group");
47
- * @example
48
- * let handles = new Handles();
49
- *
50
- * handles.add(reactiveUtils.when(
51
- * () => !view.updating,
52
- * () => {
53
- * wkidSelect.disabled = false;
54
- * },
55
- * { once: true }
56
- * ));
57
- */
58
- add(e, s) {
59
- if (Array.isArray(e)) {
60
- const r = this._getOrCreateGroup(s);
61
- for (const t of e)
62
- this._isHandle(t) && r.push(t);
63
- } else this._isHandle(e) && this._getOrCreateGroup(s).push(e);
64
- return this;
65
- }
66
- forEach(e, s) {
67
- if (typeof e == "function")
68
- this._groups.forEach((r) => r.forEach(e));
69
- else {
70
- const r = this._getGroup(e);
71
- r && s && r.forEach(s);
72
- }
73
- }
74
- /**
75
- * Returns true if a group exists for the provided group key, false otherwise.
76
- */
77
- has(e) {
78
- return this._groups.has(this._ensureGroupKey(e));
79
- }
80
- /**
81
- * Removes a group of handles.
82
- *
83
- * @example
84
- * let handles = new Handles();
85
- *
86
- * handles.remove(); // removes handles from default group
87
- *
88
- * handles.remove("handle-group");
89
- * handles.remove("other-handle-group");
90
- */
91
- remove(e) {
92
- if (typeof e != "string" && Array.isArray(e)) {
93
- for (const s of e)
94
- this.remove(s);
95
- return this;
96
- }
97
- return this.has(e) ? (this._removeAllFromGroup(this._getGroup(e)), this._groups.delete(this._ensureGroupKey(e)), this) : this;
98
- }
99
- /**
100
- * Removes all handles.
101
- */
102
- removeAll() {
103
- return this._groups.forEach((e) => this._removeAllFromGroup(e)), this._groups.clear(), this;
104
- }
105
- //--------------------------------------------------------------------------
106
- //
107
- // Private Methods
108
- //
109
- //--------------------------------------------------------------------------
110
- _isHandle(e) {
111
- return e && (!!e.remove || e instanceof o);
112
- }
113
- _getOrCreateGroup(e) {
114
- if (this.has(e))
115
- return this._getGroup(e);
116
- const s = [];
117
- return this._groups.set(this._ensureGroupKey(e), s), s;
118
- }
119
- _getGroup(e) {
120
- return this._groups.get(this._ensureGroupKey(e));
121
- }
122
- _ensureGroupKey(e) {
123
- return e || "_default_";
124
- }
125
- _removeAllFromGroup(e) {
126
- for (const s of e)
127
- s instanceof o ? s.removeAll() : s.remove();
128
- }
129
- }
130
- class h extends n {
131
- constructor(e) {
132
- super(), this.destroyed = !1, e === "disconnect" ? this.onDisconnected(() => this.removeAllHandles()) : this.onDestroy(() => this.destroy());
133
- }
134
- /**
135
- * Adds one or more handles which are to be tied to the lifecycle of the object. The handles will
136
- * be removed when the object is destroyed.
137
- *
138
- * ```js
139
- * // Manually manage handles
140
- * const handle = reactiveUtils.when(
141
- * () => !view.updating,
142
- * () => {
143
- * wkidSelect.disabled = false;
144
- * },
145
- * { once: true }
146
- * );
147
- *
148
- * this.addHandles(handle);
149
- *
150
- * // Destroy the object
151
- * this.destroy();
152
- * ```
153
- *
154
- * @method addHandles
155
- * @since 4.25
156
- */
157
- addHandles(e, s) {
158
- if (this.destroyed) {
159
- const r = Array.isArray(e) ? e : [e];
160
- for (const t of r)
161
- t.remove();
162
- return;
163
- }
164
- this._handles ??= new o(), this._handles.add(e, s);
165
- }
166
- /**
167
- * Removes a group of handles owned by the object.
168
- *
169
- * @example
170
- * obj.removeHandles(); // removes handles from default group
171
- *
172
- * obj.removeHandles("handle-group");
173
- * obj.removeHandles("other-handle-group");
174
- */
175
- removeHandles(e) {
176
- this._handles?.remove(e);
177
- }
178
- /**
179
- * Removes all the handles currently associated with the object.
180
- *
181
- * @private
182
- */
183
- removeAllHandles() {
184
- this._handles?.removeAll();
185
- }
186
- destroy() {
187
- this.destroyed = !0, this.removeAllHandles();
188
- }
189
- /**
190
- * Returns true if a named group of handles exist.
191
- *
192
- * @since 4.25
193
- *
194
- * @example
195
- * // Remove a named group of handles if they exist.
196
- * if (obj.hasHandles("watch-view-updates")) {
197
- * obj.removeHandles("watch-view-updates");
198
- * }
199
- */
200
- hasHandles(e) {
201
- return this._handles?.has(e) ?? !1;
202
- }
203
- }
204
- const l = i(h);
205
- export {
206
- l as u
207
- };