@arcgis/portal-components 4.34.0-next.144

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 (277) hide show
  1. package/LICENSE.md +17 -0
  2. package/README.md +13 -0
  3. package/dist/cdn/4QZMQUTI.js +4 -0
  4. package/dist/cdn/A4CN3WPS.js +4 -0
  5. package/dist/cdn/B2A72CP3.js +4 -0
  6. package/dist/cdn/HCE5UPEA.js +4 -0
  7. package/dist/cdn/IKS25FUY.js +4 -0
  8. package/dist/cdn/OVVWFCQE.js +4 -0
  9. package/dist/cdn/QZPEKD2K.js +4 -0
  10. package/dist/cdn/RBLSBJE2.js +4 -0
  11. package/dist/cdn/RMZQPAZG.js +4 -0
  12. package/dist/cdn/SD5OOOBX.js +6 -0
  13. package/dist/cdn/UQX7FBXV.js +4 -0
  14. package/dist/cdn/XXY7LPWR.js +4 -0
  15. package/dist/cdn/assets/portal-classification-banner/t9n/messages.ar.json +1 -0
  16. package/dist/cdn/assets/portal-classification-banner/t9n/messages.bg.json +1 -0
  17. package/dist/cdn/assets/portal-classification-banner/t9n/messages.bs.json +1 -0
  18. package/dist/cdn/assets/portal-classification-banner/t9n/messages.ca.json +1 -0
  19. package/dist/cdn/assets/portal-classification-banner/t9n/messages.cs.json +1 -0
  20. package/dist/cdn/assets/portal-classification-banner/t9n/messages.da.json +1 -0
  21. package/dist/cdn/assets/portal-classification-banner/t9n/messages.de.json +1 -0
  22. package/dist/cdn/assets/portal-classification-banner/t9n/messages.el.json +1 -0
  23. package/dist/cdn/assets/portal-classification-banner/t9n/messages.en.json +1 -0
  24. package/dist/cdn/assets/portal-classification-banner/t9n/messages.es.json +1 -0
  25. package/dist/cdn/assets/portal-classification-banner/t9n/messages.et.json +1 -0
  26. package/dist/cdn/assets/portal-classification-banner/t9n/messages.fi.json +1 -0
  27. package/dist/cdn/assets/portal-classification-banner/t9n/messages.fr.json +1 -0
  28. package/dist/cdn/assets/portal-classification-banner/t9n/messages.he.json +1 -0
  29. package/dist/cdn/assets/portal-classification-banner/t9n/messages.hr.json +1 -0
  30. package/dist/cdn/assets/portal-classification-banner/t9n/messages.hu.json +1 -0
  31. package/dist/cdn/assets/portal-classification-banner/t9n/messages.id.json +1 -0
  32. package/dist/cdn/assets/portal-classification-banner/t9n/messages.it.json +1 -0
  33. package/dist/cdn/assets/portal-classification-banner/t9n/messages.ja.json +1 -0
  34. package/dist/cdn/assets/portal-classification-banner/t9n/messages.ko.json +1 -0
  35. package/dist/cdn/assets/portal-classification-banner/t9n/messages.lt.json +1 -0
  36. package/dist/cdn/assets/portal-classification-banner/t9n/messages.lv.json +1 -0
  37. package/dist/cdn/assets/portal-classification-banner/t9n/messages.nl.json +1 -0
  38. package/dist/cdn/assets/portal-classification-banner/t9n/messages.no.json +1 -0
  39. package/dist/cdn/assets/portal-classification-banner/t9n/messages.pl.json +1 -0
  40. package/dist/cdn/assets/portal-classification-banner/t9n/messages.pt-BR.json +1 -0
  41. package/dist/cdn/assets/portal-classification-banner/t9n/messages.pt-PT.json +1 -0
  42. package/dist/cdn/assets/portal-classification-banner/t9n/messages.ro.json +1 -0
  43. package/dist/cdn/assets/portal-classification-banner/t9n/messages.ru.json +1 -0
  44. package/dist/cdn/assets/portal-classification-banner/t9n/messages.sk.json +1 -0
  45. package/dist/cdn/assets/portal-classification-banner/t9n/messages.sl.json +1 -0
  46. package/dist/cdn/assets/portal-classification-banner/t9n/messages.sr.json +1 -0
  47. package/dist/cdn/assets/portal-classification-banner/t9n/messages.sv.json +1 -0
  48. package/dist/cdn/assets/portal-classification-banner/t9n/messages.th.json +1 -0
  49. package/dist/cdn/assets/portal-classification-banner/t9n/messages.tr.json +1 -0
  50. package/dist/cdn/assets/portal-classification-banner/t9n/messages.uk.json +1 -0
  51. package/dist/cdn/assets/portal-classification-banner/t9n/messages.vi.json +1 -0
  52. package/dist/cdn/assets/portal-classification-banner/t9n/messages.zh-CN.json +1 -0
  53. package/dist/cdn/assets/portal-classification-banner/t9n/messages.zh-HK.json +1 -0
  54. package/dist/cdn/assets/portal-classification-banner/t9n/messages.zh-TW.json +1 -0
  55. package/dist/cdn/assets/portal-classification-config/t9n/messages.ar.json +1 -0
  56. package/dist/cdn/assets/portal-classification-config/t9n/messages.bg.json +1 -0
  57. package/dist/cdn/assets/portal-classification-config/t9n/messages.bs.json +1 -0
  58. package/dist/cdn/assets/portal-classification-config/t9n/messages.ca.json +1 -0
  59. package/dist/cdn/assets/portal-classification-config/t9n/messages.cs.json +1 -0
  60. package/dist/cdn/assets/portal-classification-config/t9n/messages.da.json +1 -0
  61. package/dist/cdn/assets/portal-classification-config/t9n/messages.de.json +1 -0
  62. package/dist/cdn/assets/portal-classification-config/t9n/messages.el.json +1 -0
  63. package/dist/cdn/assets/portal-classification-config/t9n/messages.en.json +1 -0
  64. package/dist/cdn/assets/portal-classification-config/t9n/messages.es.json +1 -0
  65. package/dist/cdn/assets/portal-classification-config/t9n/messages.et.json +1 -0
  66. package/dist/cdn/assets/portal-classification-config/t9n/messages.fi.json +1 -0
  67. package/dist/cdn/assets/portal-classification-config/t9n/messages.fr.json +1 -0
  68. package/dist/cdn/assets/portal-classification-config/t9n/messages.he.json +1 -0
  69. package/dist/cdn/assets/portal-classification-config/t9n/messages.hr.json +1 -0
  70. package/dist/cdn/assets/portal-classification-config/t9n/messages.hu.json +1 -0
  71. package/dist/cdn/assets/portal-classification-config/t9n/messages.id.json +1 -0
  72. package/dist/cdn/assets/portal-classification-config/t9n/messages.it.json +1 -0
  73. package/dist/cdn/assets/portal-classification-config/t9n/messages.ja.json +1 -0
  74. package/dist/cdn/assets/portal-classification-config/t9n/messages.ko.json +1 -0
  75. package/dist/cdn/assets/portal-classification-config/t9n/messages.lt.json +1 -0
  76. package/dist/cdn/assets/portal-classification-config/t9n/messages.lv.json +1 -0
  77. package/dist/cdn/assets/portal-classification-config/t9n/messages.nl.json +1 -0
  78. package/dist/cdn/assets/portal-classification-config/t9n/messages.no.json +1 -0
  79. package/dist/cdn/assets/portal-classification-config/t9n/messages.pl.json +1 -0
  80. package/dist/cdn/assets/portal-classification-config/t9n/messages.pt-BR.json +1 -0
  81. package/dist/cdn/assets/portal-classification-config/t9n/messages.pt-PT.json +1 -0
  82. package/dist/cdn/assets/portal-classification-config/t9n/messages.ro.json +1 -0
  83. package/dist/cdn/assets/portal-classification-config/t9n/messages.ru.json +1 -0
  84. package/dist/cdn/assets/portal-classification-config/t9n/messages.sk.json +1 -0
  85. package/dist/cdn/assets/portal-classification-config/t9n/messages.sl.json +1 -0
  86. package/dist/cdn/assets/portal-classification-config/t9n/messages.sr.json +1 -0
  87. package/dist/cdn/assets/portal-classification-config/t9n/messages.sv.json +1 -0
  88. package/dist/cdn/assets/portal-classification-config/t9n/messages.th.json +1 -0
  89. package/dist/cdn/assets/portal-classification-config/t9n/messages.tr.json +1 -0
  90. package/dist/cdn/assets/portal-classification-config/t9n/messages.uk.json +1 -0
  91. package/dist/cdn/assets/portal-classification-config/t9n/messages.vi.json +1 -0
  92. package/dist/cdn/assets/portal-classification-config/t9n/messages.zh-CN.json +1 -0
  93. package/dist/cdn/assets/portal-classification-config/t9n/messages.zh-HK.json +1 -0
  94. package/dist/cdn/assets/portal-classification-config/t9n/messages.zh-TW.json +1 -0
  95. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ar.json +1 -0
  96. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bg.json +1 -0
  97. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bs.json +1 -0
  98. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ca.json +1 -0
  99. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.cs.json +1 -0
  100. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.da.json +1 -0
  101. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.de.json +1 -0
  102. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.el.json +1 -0
  103. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.en.json +1 -0
  104. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.es.json +1 -0
  105. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.et.json +1 -0
  106. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fi.json +1 -0
  107. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fr.json +1 -0
  108. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.he.json +1 -0
  109. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hr.json +1 -0
  110. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hu.json +1 -0
  111. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.id.json +1 -0
  112. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.it.json +1 -0
  113. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ja.json +1 -0
  114. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ko.json +1 -0
  115. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lt.json +1 -0
  116. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lv.json +1 -0
  117. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.nl.json +1 -0
  118. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.no.json +1 -0
  119. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pl.json +1 -0
  120. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-BR.json +1 -0
  121. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-PT.json +1 -0
  122. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ro.json +1 -0
  123. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ru.json +1 -0
  124. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sk.json +1 -0
  125. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sl.json +1 -0
  126. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sr.json +1 -0
  127. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sv.json +1 -0
  128. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.th.json +1 -0
  129. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.tr.json +1 -0
  130. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.uk.json +1 -0
  131. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.vi.json +1 -0
  132. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-CN.json +1 -0
  133. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-HK.json +1 -0
  134. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-TW.json +1 -0
  135. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.ar.json +1 -0
  136. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.bg.json +1 -0
  137. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.bs.json +1 -0
  138. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.ca.json +1 -0
  139. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.cs.json +1 -0
  140. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.da.json +1 -0
  141. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.de.json +1 -0
  142. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.el.json +1 -0
  143. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.en.json +1 -0
  144. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.es.json +1 -0
  145. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.et.json +1 -0
  146. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.fi.json +1 -0
  147. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.fr.json +1 -0
  148. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.he.json +1 -0
  149. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.hr.json +1 -0
  150. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.hu.json +1 -0
  151. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.id.json +1 -0
  152. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.it.json +1 -0
  153. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.ja.json +1 -0
  154. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.ko.json +1 -0
  155. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.lt.json +1 -0
  156. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.lv.json +1 -0
  157. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.nl.json +1 -0
  158. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.no.json +1 -0
  159. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.pl.json +1 -0
  160. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.pt-BR.json +1 -0
  161. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.pt-PT.json +1 -0
  162. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.ro.json +1 -0
  163. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.ru.json +1 -0
  164. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.sk.json +1 -0
  165. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.sl.json +1 -0
  166. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.sr.json +1 -0
  167. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.sv.json +1 -0
  168. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.th.json +1 -0
  169. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.tr.json +1 -0
  170. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.uk.json +1 -0
  171. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.vi.json +1 -0
  172. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.zh-CN.json +1 -0
  173. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.zh-HK.json +1 -0
  174. package/dist/cdn/assets/portal-classification-form-element/t9n/messages.zh-TW.json +1 -0
  175. package/dist/cdn/assets/portal-field-delete/t9n/messages.ar.json +1 -0
  176. package/dist/cdn/assets/portal-field-delete/t9n/messages.bg.json +1 -0
  177. package/dist/cdn/assets/portal-field-delete/t9n/messages.bs.json +1 -0
  178. package/dist/cdn/assets/portal-field-delete/t9n/messages.ca.json +1 -0
  179. package/dist/cdn/assets/portal-field-delete/t9n/messages.cs.json +1 -0
  180. package/dist/cdn/assets/portal-field-delete/t9n/messages.da.json +1 -0
  181. package/dist/cdn/assets/portal-field-delete/t9n/messages.de.json +1 -0
  182. package/dist/cdn/assets/portal-field-delete/t9n/messages.el.json +1 -0
  183. package/dist/cdn/assets/portal-field-delete/t9n/messages.en.json +1 -0
  184. package/dist/cdn/assets/portal-field-delete/t9n/messages.es.json +1 -0
  185. package/dist/cdn/assets/portal-field-delete/t9n/messages.et.json +1 -0
  186. package/dist/cdn/assets/portal-field-delete/t9n/messages.fi.json +1 -0
  187. package/dist/cdn/assets/portal-field-delete/t9n/messages.fr.json +1 -0
  188. package/dist/cdn/assets/portal-field-delete/t9n/messages.he.json +1 -0
  189. package/dist/cdn/assets/portal-field-delete/t9n/messages.hr.json +1 -0
  190. package/dist/cdn/assets/portal-field-delete/t9n/messages.hu.json +1 -0
  191. package/dist/cdn/assets/portal-field-delete/t9n/messages.id.json +1 -0
  192. package/dist/cdn/assets/portal-field-delete/t9n/messages.it.json +1 -0
  193. package/dist/cdn/assets/portal-field-delete/t9n/messages.ja.json +1 -0
  194. package/dist/cdn/assets/portal-field-delete/t9n/messages.ko.json +1 -0
  195. package/dist/cdn/assets/portal-field-delete/t9n/messages.lt.json +1 -0
  196. package/dist/cdn/assets/portal-field-delete/t9n/messages.lv.json +1 -0
  197. package/dist/cdn/assets/portal-field-delete/t9n/messages.nb.json +1 -0
  198. package/dist/cdn/assets/portal-field-delete/t9n/messages.nl.json +1 -0
  199. package/dist/cdn/assets/portal-field-delete/t9n/messages.no.json +1 -0
  200. package/dist/cdn/assets/portal-field-delete/t9n/messages.pl.json +1 -0
  201. package/dist/cdn/assets/portal-field-delete/t9n/messages.pt-BR.json +1 -0
  202. package/dist/cdn/assets/portal-field-delete/t9n/messages.pt-PT.json +1 -0
  203. package/dist/cdn/assets/portal-field-delete/t9n/messages.ro.json +1 -0
  204. package/dist/cdn/assets/portal-field-delete/t9n/messages.ru.json +1 -0
  205. package/dist/cdn/assets/portal-field-delete/t9n/messages.sk.json +1 -0
  206. package/dist/cdn/assets/portal-field-delete/t9n/messages.sl.json +1 -0
  207. package/dist/cdn/assets/portal-field-delete/t9n/messages.sr.json +1 -0
  208. package/dist/cdn/assets/portal-field-delete/t9n/messages.sv.json +1 -0
  209. package/dist/cdn/assets/portal-field-delete/t9n/messages.th.json +1 -0
  210. package/dist/cdn/assets/portal-field-delete/t9n/messages.tr.json +1 -0
  211. package/dist/cdn/assets/portal-field-delete/t9n/messages.uk.json +1 -0
  212. package/dist/cdn/assets/portal-field-delete/t9n/messages.vi.json +1 -0
  213. package/dist/cdn/assets/portal-field-delete/t9n/messages.zh-CN.json +1 -0
  214. package/dist/cdn/assets/portal-field-delete/t9n/messages.zh-HK.json +1 -0
  215. package/dist/cdn/assets/portal-field-delete/t9n/messages.zh-TW.json +1 -0
  216. package/dist/cdn/index.js +4 -0
  217. package/dist/cdn/main.css +1 -0
  218. package/dist/chunks/common.js +130 -0
  219. package/dist/chunks/fieldAddDelete.js +356 -0
  220. package/dist/chunks/loadClassificationData.js +115 -0
  221. package/dist/chunks/requests.js +71 -0
  222. package/dist/chunks/runtime.js +17 -0
  223. package/dist/chunks/useT9n.js +9 -0
  224. package/dist/components/arcgis-portal-classification-banner/customElement.d.ts +36 -0
  225. package/dist/components/arcgis-portal-classification-banner/customElement.js +62 -0
  226. package/dist/components/arcgis-portal-classification-banner/index.d.ts +2 -0
  227. package/dist/components/arcgis-portal-classification-banner/index.js +2 -0
  228. package/dist/components/arcgis-portal-classification-config/customElement.d.ts +45 -0
  229. package/dist/components/arcgis-portal-classification-config/customElement.js +364 -0
  230. package/dist/components/arcgis-portal-classification-config/index.d.ts +12 -0
  231. package/dist/components/arcgis-portal-classification-config/index.js +12 -0
  232. package/dist/components/arcgis-portal-classification-favorite/customElement.d.ts +18 -0
  233. package/dist/components/arcgis-portal-classification-favorite/customElement.js +120 -0
  234. package/dist/components/arcgis-portal-classification-favorite/index.d.ts +12 -0
  235. package/dist/components/arcgis-portal-classification-favorite/index.js +12 -0
  236. package/dist/components/arcgis-portal-classification-form-element/customElement.d.ts +18 -0
  237. package/dist/components/arcgis-portal-classification-form-element/customElement.js +103 -0
  238. package/dist/components/arcgis-portal-classification-form-element/index.d.ts +9 -0
  239. package/dist/components/arcgis-portal-classification-form-element/index.js +9 -0
  240. package/dist/components/arcgis-portal-field-delete/customElement.d.ts +23 -0
  241. package/dist/components/arcgis-portal-field-delete/customElement.js +263 -0
  242. package/dist/components/arcgis-portal-field-delete/index.d.ts +10 -0
  243. package/dist/components/arcgis-portal-field-delete/index.js +10 -0
  244. package/dist/components/arcgis-portal-field-delete/types.d.ts +5 -0
  245. package/dist/controllers/loadClassificationData.d.ts +11 -0
  246. package/dist/controllers/useClassificationModel.d.ts +9 -0
  247. package/dist/controllers/useT9n.d.ts +1 -0
  248. package/dist/docs/api.json +1158 -0
  249. package/dist/docs/docs.json +1054 -0
  250. package/dist/docs/vscode.css-custom-data.json +6 -0
  251. package/dist/docs/vscode.html-custom-data.json +98 -0
  252. package/dist/docs/web-types.json +309 -0
  253. package/dist/index.d.ts +87 -0
  254. package/dist/index.js +11 -0
  255. package/dist/loader.d.ts +2 -0
  256. package/dist/loader.js +15 -0
  257. package/dist/models/classificationModel.d.ts +68 -0
  258. package/dist/runtime.d.ts +6 -0
  259. package/dist/types/classification.d.ts +214 -0
  260. package/dist/types/components.d.ts +1 -0
  261. package/dist/types/lumina.d.ts +39 -0
  262. package/dist/types/preact.d.ts +49 -0
  263. package/dist/types/preact10.d.ts +54 -0
  264. package/dist/types/react.d.ts +62 -0
  265. package/dist/types/stencil.d.ts +46 -0
  266. package/dist/utils/arcade.d.ts +27 -0
  267. package/dist/utils/common.d.ts +29 -0
  268. package/dist/utils/commonEnums.d.ts +5 -0
  269. package/dist/utils/commonFunctions.d.ts +11 -0
  270. package/dist/utils/fieldAddDelete.d.ts +4 -0
  271. package/dist/utils/functionalComponents/FieldIcons.d.ts +6 -0
  272. package/dist/utils/item.d.ts +21 -0
  273. package/dist/utils/portal.d.ts +2 -0
  274. package/dist/utils/requests.d.ts +15 -0
  275. package/dist/utils/types.d.ts +30 -0
  276. package/dist/utils/url.d.ts +1 -0
  277. package/package.json +59 -0
@@ -0,0 +1,214 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ type ClassificationType = Readonly<{
3
+ [index: string]: string | undefined;
4
+ value: string;
5
+ acronym?: string;
6
+ backgroundColor?: string;
7
+ textColor?: string;
8
+ }>;
9
+ type ClassificationMetadata = Readonly<{
10
+ primaryAttribute: string;
11
+ defaultValue: string;
12
+ classificationValueProperties: ClassificationType[];
13
+ }>;
14
+ export type ValueOption = Readonly<{
15
+ label: string;
16
+ value: string;
17
+ }>;
18
+ export type BaseAttributesValues = Readonly<{
19
+ label: string;
20
+ description?: string;
21
+ type: string;
22
+ uiElement: string;
23
+ isRequired?: boolean;
24
+ defaultValue?: string;
25
+ defaultDateTimeline?: number;
26
+ defaultDateTimelineUnits?: string;
27
+ validValues?: ValueOption[];
28
+ validValuesMap?: Record<string, ValueOption[]>;
29
+ isAttributeEnabled?: string;
30
+ valueExpression?: string;
31
+ attributeValidation?: string;
32
+ arcadeResultLookup?: Record<string, ValueOption[]>;
33
+ attributeCategory?: string;
34
+ selectionDisplayOrder?: number;
35
+ selectionDisplayLabel?: string;
36
+ bannerOrder?: number;
37
+ bannerLabel?: string;
38
+ labelDelimiter?: string;
39
+ labelTooltip?: string;
40
+ valueDelimiter?: string;
41
+ attributeDelimiter?: string;
42
+ }>;
43
+ /**
44
+ * Create narrowed types for each of the possible UI elements.
45
+ * Never is used to inform users that the property will never be defined
46
+ * when uiElement is a specific value.
47
+ */
48
+ type SingleSelectAttributesValues = BaseAttributesValues & Readonly<{
49
+ uiElement: "single-select";
50
+ validValues?: ValueOption[];
51
+ validValuesMap?: never;
52
+ }>;
53
+ type MultiSelectAttributesValues = BaseAttributesValues & Readonly<{
54
+ uiElement: "multi-select";
55
+ validValues?: ValueOption[];
56
+ validValuesMap?: never;
57
+ }>;
58
+ type MultiGroupedSelectNestedAttributesValues = BaseAttributesValues & Readonly<{
59
+ uiElement: "multi-grouped-select-nested";
60
+ validValuesMap: Record<string, ValueOption[]>;
61
+ validValues?: never;
62
+ }>;
63
+ type CheckboxAttributesValues = BaseAttributesValues & Readonly<{
64
+ uiElement: "checkbox";
65
+ type: "boolean";
66
+ validValues?: never;
67
+ validValuesMap?: never;
68
+ defaultDateTimeline?: never;
69
+ defaultDateTimelineUnits?: never;
70
+ }>;
71
+ type DateAttributesValues = BaseAttributesValues & Readonly<{
72
+ uiElement: "date";
73
+ type: "date";
74
+ defaultDateTimeline: number;
75
+ defaultDateTimelineUnits: string;
76
+ validValues?: never;
77
+ validValuesMap?: never;
78
+ }>;
79
+ type TextAttributesValues = BaseAttributesValues & Readonly<{
80
+ uiElement: "text";
81
+ type: "string";
82
+ validValues?: never;
83
+ validValuesMap?: never;
84
+ defaultDateTimeline?: never;
85
+ defaultDateTimelineUnits?: never;
86
+ }>;
87
+ export type ClassificationAttributesValues = CheckboxAttributesValues | DateAttributesValues | MultiGroupedSelectNestedAttributesValues | MultiSelectAttributesValues | SingleSelectAttributesValues | TextAttributesValues;
88
+ export declare function isAttributesValuesOfUIElement<T extends BaseAttributesValues>(attributes: BaseAttributesValues, uiElement: T["uiElement"]): attributes is T;
89
+ type ClassificationLayoutElements = Readonly<{
90
+ formDisplayOrder: number;
91
+ }>;
92
+ type DefaultLayout = Readonly<{
93
+ layoutElements: Record<string, ClassificationLayoutElements>;
94
+ }>;
95
+ /**
96
+ * The classification schema defined on the portal.
97
+ */
98
+ export type ClassificationSchema = Readonly<{
99
+ attributeCategories?: string[];
100
+ attributes: Record<string, ClassificationAttributesValues>;
101
+ bannerExpression?: string;
102
+ classificationMetadata: ClassificationMetadata;
103
+ grammarVersion: string;
104
+ layouts: Record<string, DefaultLayout>;
105
+ name: string;
106
+ selectionTextExpression?: string;
107
+ version: string;
108
+ helpUrl?: string;
109
+ helpTooltip?: string;
110
+ }>;
111
+ /**
112
+ * The result of a request for a classification schema from
113
+ * the portal /portals/self/classification/classificationSchema endpoint
114
+ */
115
+ export type SchemaResult = {
116
+ result?: ClassificationSchema;
117
+ error?: {
118
+ name: string;
119
+ message: string;
120
+ details: Record<string, unknown>;
121
+ };
122
+ };
123
+ export interface ValidationResult {
124
+ result?: {
125
+ success: string;
126
+ };
127
+ error?: {
128
+ code: string;
129
+ details: {
130
+ raw: {
131
+ messages: string[];
132
+ };
133
+ name: string;
134
+ };
135
+ message: string;
136
+ name: string;
137
+ };
138
+ }
139
+ declare const portalErrorList: readonly ["unhandledError"];
140
+ export type PortalErrorType = (typeof portalErrorList)[number];
141
+ export interface Result<ResultT = any, ErrorT extends PortalErrorType = PortalErrorType> {
142
+ result?: ResultT;
143
+ error?: PortalError<ErrorT>;
144
+ }
145
+ export interface PortalError<Error extends PortalErrorType = PortalErrorType> {
146
+ code: Error;
147
+ translatedMessage?: string;
148
+ message?: string;
149
+ details?: any;
150
+ }
151
+ export type EditInfo = Readonly<{
152
+ createdUser: string;
153
+ createdDate: number;
154
+ lastEditedUser: string;
155
+ lastEditedDate: number;
156
+ }>;
157
+ export type SelectionText = Readonly<{
158
+ elementType: string;
159
+ selectionDisplayLabel: string;
160
+ labelDelimiter: string;
161
+ classificationProp: string;
162
+ valueDelimiter: string;
163
+ }>;
164
+ export interface FavoriteClassification {
165
+ name: string;
166
+ classification: __esri.PortalItem["classification"];
167
+ }
168
+ export interface FavoriteClassificationResult {
169
+ result?: {
170
+ favorites: FavoriteClassification[];
171
+ };
172
+ error?: {
173
+ details: {
174
+ raw: {
175
+ code: string;
176
+ messages: string[];
177
+ messageCode: string;
178
+ };
179
+ };
180
+ message: string;
181
+ name: string;
182
+ };
183
+ }
184
+ export interface ClassificationAlertIndicator {
185
+ alertIndicatorType?: HTMLCalciteAlertElement["kind"];
186
+ alertIndicatorIcon?: string;
187
+ alertIndicatorInfo: string;
188
+ }
189
+ export interface AddFavoriteClassificationResult {
190
+ result?: {
191
+ success: boolean;
192
+ };
193
+ error?: {
194
+ name: string;
195
+ message: string;
196
+ details?: {
197
+ raw: {
198
+ messages: string[];
199
+ };
200
+ name: string;
201
+ };
202
+ url?: string;
203
+ };
204
+ }
205
+ /**
206
+ * State object that is used to store arcade expression results from expressions
207
+ * that are evaluated for each attribute in the classification schema.
208
+ **/
209
+ export type AttributeExpressionResults = Map<string, {
210
+ enabled: boolean;
211
+ valueExpressionResult: Record<string, ValueOption[]> | ValueOption[] | null;
212
+ attributeValidationResult: string | null;
213
+ }>;
214
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./stencil";
@@ -0,0 +1,39 @@
1
+ /// <reference types="../index.d.ts" />
2
+ import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
3
+ import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
4
+ import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
5
+ import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
6
+ import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete";
7
+ import type { h, EventHandler } from "@arcgis/lumina";
8
+
9
+ interface LuminaArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, 'missingExistingClassification' | 'portalItem' | 'validationErrors' | 'variant'>>, h.JSX.HTMLAttributes<HTMLArcgisPortalClassificationBannerElement> {
10
+ }
11
+
12
+ interface LuminaArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, 'portalItem'>>, Partial<Pick<ArcgisPortalClassificationConfig, 'valid' | 'values'>>, h.JSX.HTMLAttributes<HTMLArcgisPortalClassificationConfigElement> {
13
+ onarcgisPropertyChange?: EventHandler<HTMLArcgisPortalClassificationConfigElement["arcgisPropertyChange"]>;
14
+ }
15
+
16
+ interface LuminaArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, 'attributeExpressionResults' | 'classificationValue' | 'favoriteClassifications' | 'portalItem' | 'resetFavoriteClassification' | 'selectedFavoriteClassificationName' | 'updateClassificationData'>>, h.JSX.HTMLAttributes<HTMLArcgisPortalClassificationFavoriteElement> {
17
+ }
18
+
19
+ interface LuminaArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, 'attribute' | 'attributeKey' | 'renderingInfo' | 'value'>>, h.JSX.HTMLAttributes<HTMLArcgisPortalClassificationFormElementElement> {
20
+ onarcgisAttributeValueChange?: EventHandler<HTMLArcgisPortalClassificationFormElementElement["arcgisAttributeValueChange"]>;
21
+ }
22
+
23
+ interface LuminaArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, 'config' | 'fieldNames' | 'layer' | 'mapView' | 'options'>>, h.JSX.HTMLAttributes<HTMLArcgisPortalFieldDeleteElement> {
24
+ onarcgisBeforeModalClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisBeforeModalClose"]>;
25
+ onarcgisClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisClose"]>;
26
+ onarcgisFieldsDeleted?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisFieldsDeleted"]>;
27
+ }
28
+
29
+ declare module "@arcgis/lumina" {
30
+ export namespace h.JSX {
31
+ interface IntrinsicElements {
32
+ "arcgis-portal-classification-banner": LuminaArcgisPortalClassificationBanner;
33
+ "arcgis-portal-classification-config": LuminaArcgisPortalClassificationConfig;
34
+ "arcgis-portal-classification-favorite": LuminaArcgisPortalClassificationFavorite;
35
+ "arcgis-portal-classification-form-element": LuminaArcgisPortalClassificationFormElement;
36
+ "arcgis-portal-field-delete": LuminaArcgisPortalFieldDelete;
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,49 @@
1
+ /// <reference types="../index.d.ts" />
2
+ import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
3
+ import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
4
+ import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
5
+ import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
6
+ import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete";
7
+ import { HTMLAttributes } from "preact";
8
+ import type { EventHandler } from "@arcgis/lumina";
9
+
10
+ interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, 'missingExistingClassification' | 'portalItem' | 'validationErrors' | 'variant'>>, HTMLAttributes<HTMLArcgisPortalClassificationBannerElement> {
11
+ }
12
+
13
+ interface PreactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, 'portalItem'>>, Partial<Pick<ArcgisPortalClassificationConfig, 'valid' | 'values'>>, HTMLAttributes<HTMLArcgisPortalClassificationConfigElement> {
14
+ onarcgisPropertyChange?: EventHandler<HTMLArcgisPortalClassificationConfigElement["arcgisPropertyChange"]>;
15
+ }
16
+
17
+ interface PreactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, 'attributeExpressionResults' | 'classificationValue' | 'favoriteClassifications' | 'portalItem' | 'resetFavoriteClassification' | 'selectedFavoriteClassificationName' | 'updateClassificationData'>>, HTMLAttributes<HTMLArcgisPortalClassificationFavoriteElement> {
18
+ }
19
+
20
+ interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, 'attribute' | 'attributeKey' | 'renderingInfo' | 'value'>>, HTMLAttributes<HTMLArcgisPortalClassificationFormElementElement> {
21
+ onarcgisAttributeValueChange?: EventHandler<HTMLArcgisPortalClassificationFormElementElement["arcgisAttributeValueChange"]>;
22
+ }
23
+
24
+ interface PreactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, 'config' | 'fieldNames' | 'layer' | 'mapView' | 'options'>>, HTMLAttributes<HTMLArcgisPortalFieldDeleteElement> {
25
+ onarcgisBeforeModalClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisBeforeModalClose"]>;
26
+ onarcgisClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisClose"]>;
27
+ onarcgisFieldsDeleted?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisFieldsDeleted"]>;
28
+ }
29
+
30
+ declare module 'preact' {
31
+ namespace createElement.JSX {
32
+ interface IntrinsicElements {
33
+ "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
34
+ "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
35
+ "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
36
+ "arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
37
+ "arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
38
+ }
39
+ }
40
+ namespace h.JSX {
41
+ interface IntrinsicElements {
42
+ "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
43
+ "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
44
+ "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
45
+ "arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
46
+ "arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,54 @@
1
+ /// <reference types="../index.d.ts" />
2
+ import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
3
+ import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
4
+ import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
5
+ import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
6
+ import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete";
7
+ import { JSX as PreactJsx } from "preact";
8
+ import type { EventHandler } from "@arcgis/lumina";
9
+
10
+ /** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
11
+ interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, 'missingExistingClassification' | 'portalItem' | 'validationErrors' | 'variant'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationBannerElement> {
12
+ }
13
+
14
+ /** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
15
+ interface PreactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, 'portalItem'>>, Partial<Pick<ArcgisPortalClassificationConfig, 'valid' | 'values'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationConfigElement> {
16
+ onarcgisPropertyChange?: EventHandler<HTMLArcgisPortalClassificationConfigElement["arcgisPropertyChange"]>;
17
+ }
18
+
19
+ /** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
20
+ interface PreactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, 'attributeExpressionResults' | 'classificationValue' | 'favoriteClassifications' | 'portalItem' | 'resetFavoriteClassification' | 'selectedFavoriteClassificationName' | 'updateClassificationData'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationFavoriteElement> {
21
+ }
22
+
23
+ /** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
24
+ interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, 'attribute' | 'attributeKey' | 'renderingInfo' | 'value'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationFormElementElement> {
25
+ onarcgisAttributeValueChange?: EventHandler<HTMLArcgisPortalClassificationFormElementElement["arcgisAttributeValueChange"]>;
26
+ }
27
+
28
+ /** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
29
+ interface PreactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, 'config' | 'fieldNames' | 'layer' | 'mapView' | 'options'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalFieldDeleteElement> {
30
+ onarcgisBeforeModalClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisBeforeModalClose"]>;
31
+ onarcgisClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisClose"]>;
32
+ onarcgisFieldsDeleted?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisFieldsDeleted"]>;
33
+ }
34
+
35
+ declare module 'preact' {
36
+ namespace createElement.JSX {
37
+ interface IntrinsicElements {
38
+ "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
39
+ "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
40
+ "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
41
+ "arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
42
+ "arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
43
+ }
44
+ }
45
+ namespace h.JSX {
46
+ interface IntrinsicElements {
47
+ "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
48
+ "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
49
+ "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
50
+ "arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
51
+ "arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,62 @@
1
+ /// <reference types="../index.d.ts" />
2
+ import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
3
+ import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
4
+ import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
5
+ import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
6
+ import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete";
7
+ import type { HTMLProps } from 'react';
8
+ import type { EventHandler } from "@arcgis/lumina";
9
+
10
+ interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, 'missingExistingClassification' | 'portalItem' | 'validationErrors' | 'variant'>>, HTMLProps<HTMLArcgisPortalClassificationBannerElement> {
11
+ }
12
+
13
+ interface ReactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, 'portalItem'>>, Partial<Pick<ArcgisPortalClassificationConfig, 'valid' | 'values'>>, HTMLProps<HTMLArcgisPortalClassificationConfigElement> {
14
+ onarcgisPropertyChange?: EventHandler<HTMLArcgisPortalClassificationConfigElement["arcgisPropertyChange"]>;
15
+ }
16
+
17
+ interface ReactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, 'attributeExpressionResults' | 'classificationValue' | 'favoriteClassifications' | 'portalItem' | 'resetFavoriteClassification' | 'selectedFavoriteClassificationName' | 'updateClassificationData'>>, HTMLProps<HTMLArcgisPortalClassificationFavoriteElement> {
18
+ }
19
+
20
+ interface ReactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, 'attribute' | 'attributeKey' | 'renderingInfo' | 'value'>>, HTMLProps<HTMLArcgisPortalClassificationFormElementElement> {
21
+ onarcgisAttributeValueChange?: EventHandler<HTMLArcgisPortalClassificationFormElementElement["arcgisAttributeValueChange"]>;
22
+ }
23
+
24
+ interface ReactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, 'config' | 'fieldNames' | 'layer' | 'mapView' | 'options'>>, HTMLProps<HTMLArcgisPortalFieldDeleteElement> {
25
+ onarcgisBeforeModalClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisBeforeModalClose"]>;
26
+ onarcgisClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisClose"]>;
27
+ onarcgisFieldsDeleted?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisFieldsDeleted"]>;
28
+ }
29
+
30
+ declare module "react" {
31
+ namespace JSX {
32
+ interface IntrinsicElements {
33
+ "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
34
+ "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
35
+ "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
36
+ "arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
37
+ "arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
38
+ }
39
+ }
40
+ }
41
+ declare module "react/jsx-runtime" {
42
+ namespace JSX {
43
+ interface IntrinsicElements {
44
+ "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
45
+ "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
46
+ "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
47
+ "arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
48
+ "arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
49
+ }
50
+ }
51
+ }
52
+ declare module "react/jsx-dev-runtime" {
53
+ namespace JSX {
54
+ interface IntrinsicElements {
55
+ "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
56
+ "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
57
+ "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
58
+ "arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
59
+ "arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,46 @@
1
+ /// <reference types="../index.d.ts" />
2
+ import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
3
+ import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
4
+ import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
5
+ import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
6
+ import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete";
7
+ import { JSXBase as StencilJsx } from "@stencil/core/internal";
8
+ import type { EventHandler } from "@arcgis/lumina";
9
+
10
+ interface StencilArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, 'missingExistingClassification' | 'portalItem' | 'validationErrors' | 'variant'>>, StencilJsx.HTMLAttributes<HTMLArcgisPortalClassificationBannerElement> {
11
+ }
12
+
13
+ interface StencilArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, 'portalItem'>>, Partial<Pick<ArcgisPortalClassificationConfig, 'valid' | 'values'>>, StencilJsx.HTMLAttributes<HTMLArcgisPortalClassificationConfigElement> {
14
+ onArcgisPropertyChange?: EventHandler<HTMLArcgisPortalClassificationConfigElement["arcgisPropertyChange"]>;
15
+ }
16
+
17
+ interface StencilArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, 'attributeExpressionResults' | 'classificationValue' | 'favoriteClassifications' | 'portalItem' | 'resetFavoriteClassification' | 'selectedFavoriteClassificationName' | 'updateClassificationData'>>, StencilJsx.HTMLAttributes<HTMLArcgisPortalClassificationFavoriteElement> {
18
+ }
19
+
20
+ interface StencilArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, 'attribute' | 'attributeKey' | 'renderingInfo' | 'value'>>, StencilJsx.HTMLAttributes<HTMLArcgisPortalClassificationFormElementElement> {
21
+ onArcgisAttributeValueChange?: EventHandler<HTMLArcgisPortalClassificationFormElementElement["arcgisAttributeValueChange"]>;
22
+ }
23
+
24
+ interface StencilArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, 'config' | 'fieldNames' | 'layer' | 'mapView' | 'options'>>, StencilJsx.HTMLAttributes<HTMLArcgisPortalFieldDeleteElement> {
25
+ onArcgisBeforeModalClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisBeforeModalClose"]>;
26
+ onArcgisClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisClose"]>;
27
+ onArcgisFieldsDeleted?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisFieldsDeleted"]>;
28
+ }
29
+
30
+ interface ExposedElements {
31
+ "arcgis-portal-classification-banner": StencilArcgisPortalClassificationBanner;
32
+ "arcgis-portal-classification-config": StencilArcgisPortalClassificationConfig;
33
+ "arcgis-portal-classification-favorite": StencilArcgisPortalClassificationFavorite;
34
+ "arcgis-portal-classification-form-element": StencilArcgisPortalClassificationFormElement;
35
+ "arcgis-portal-field-delete": StencilArcgisPortalFieldDelete;
36
+ }
37
+
38
+ export namespace JSX {
39
+ export interface IntrinsicElements extends ExposedElements {}
40
+ }
41
+
42
+ declare module "@stencil/core/internal/stencil-public-runtime" {
43
+ export namespace h.JSX {
44
+ interface IntrinsicElements extends ExposedElements {}
45
+ }
46
+ }
@@ -0,0 +1,27 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import { ClassificationSchema, ValueOption } from '../types/classification';
3
+ type AttributeEnabledResult = Record<string, {
4
+ enabled: boolean;
5
+ }>;
6
+ export declare function getAttributeEnabledForItem({ portalClassificationSchema, itemClassification, }: {
7
+ portalClassificationSchema: ClassificationSchema;
8
+ itemClassification: __esri.PortalItem["classification"];
9
+ }): Promise<AttributeEnabledResult>;
10
+ type ValueExpressionResult = Record<string, {
11
+ valueExpressionResult: Record<string, ValueOption[]> | ValueOption[] | null;
12
+ }>;
13
+ export declare function evaluateValueExpressionsForItem({ portalClassificationSchema, itemClassification, }: {
14
+ portalClassificationSchema: ClassificationSchema;
15
+ itemClassification: __esri.PortalItem["classification"];
16
+ }): Promise<ValueExpressionResult>;
17
+ export declare function evaluateValueExpression(attributeId: string, itemClassificationSchema: ClassificationSchema, itemClassificationValue: __esri.PortalItem["classification"]): Promise<Record<string, ValueOption[]> | ValueOption[] | null>;
18
+ type AttributeValidationResult = Record<string, {
19
+ attributeValidationResult: string | null;
20
+ }>;
21
+ export declare function getAttributeValidationForItem({ portalClassificationSchema, itemClassification, }: {
22
+ portalClassificationSchema: ClassificationSchema;
23
+ itemClassification: __esri.PortalItem["classification"];
24
+ }): Promise<AttributeValidationResult>;
25
+ export declare const getBannerText: (itemClassificationSchema: ClassificationSchema, itemClassificationValue: __esri.PortalItem["classification"]) => Promise<string>;
26
+ export declare function evaluateArcadeExpression<T>(arcadeExpression: string, schemaJson: ClassificationSchema | string, itemClassificationValue: __esri.PortalItem["classification"], attributeId?: string): Promise<T>;
27
+ export {};
@@ -0,0 +1,29 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import { ClassificationSchema, BaseAttributesValues, Result, EditInfo, AttributeExpressionResults } from '../types/classification';
3
+ /**
4
+ *This function addresses the scenario when classification is undefined.
5
+ *The param itemClassification is the original classification value retrieved from the server, it can be null.
6
+ */
7
+ export declare const defineClassificationVal: (itemClassification: __esri.PortalItem["classification"], primaryAttribute: string, itemClassificationSchema: ClassificationSchema) => __esri.PortalItem["classification"];
8
+ /**
9
+ *
10
+ * Delete all the fields that are not enabled based on-time selection
11
+ *
12
+ */
13
+ export declare const deleteDisabledFieldsBasedOnTimeSelection: (itemClassification: __esri.PortalItem["classification"], attributeExpressionResults: AttributeExpressionResults) => __esri.PortalItem["classification"];
14
+ /**
15
+ * Retrieves default values for item classification attributes based on the provided schema.
16
+ */
17
+ export declare const retrieveDefaultValues: (itemClassificationSchema: ClassificationSchema, itemClassification: __esri.PortalItem["classification"]) => __esri.PortalItem["classification"];
18
+ /** we populate the date picker by default date as today + DateTimeline(units) */
19
+ export declare const populateDeclassificationDate: (attributes: BaseAttributesValues) => string;
20
+ export declare const resetItemClassificationValue: (newPrimaryAttributeValue: string, itemClassification: __esri.PortalItem["classification"], primaryAttribute: string) => __esri.PortalItem["classification"];
21
+ /** The configure experience is only available to the item owner,
22
+ * a full admin, a member with the administrative privilege to update content,
23
+ * or a member of a shared update group to which the item is shared.
24
+ * */
25
+ export declare const canConfigureClassification: (portalItem: __esri.PortalItem | undefined) => Promise<boolean>;
26
+ export declare const userAndItemBelongToSharedUpdateGroup: (item: __esri.PortalItem, user: __esri.PortalUser) => Promise<boolean>;
27
+ export declare const getUserGroups: (user: __esri.PortalUser, portalUrl: string) => Promise<Result<__esri.PortalGroup[]>>;
28
+ export declare const getItemGroups: (item: __esri.PortalItem, portalUrl: string) => Promise<Result>;
29
+ export declare const getEditInfo: (item: __esri.PortalItem | undefined, itemClassification: __esri.PortalItem["classification"]) => EditInfo;
@@ -0,0 +1,5 @@
1
+ export declare enum fieldInfoPrefixEnum {
2
+ expression = "expression/",
3
+ raster = "Raster.",
4
+ relationship = "relationships/"
5
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ /**
3
+ * Returns true if the value is defined
4
+ * @param value - value to check
5
+ */
6
+ export declare function isDefined<T>(value?: T | null): value is T;
7
+ export declare function getFieldDisplayName(field: __esri.FieldInfo, arcadeMap: Map<string, __esri.ExpressionInfo>): string;
8
+ export declare function getFieldType(fieldName: string, layerFieldsMap: Map<string, __esri.Field>, arcadeExpMap: Map<string, __esri.ExpressionInfo>): string;
9
+ export declare function generateLayerFieldsMap(layer: any): Promise<Map<string, __esri.Field>>;
10
+ export declare function generateArcadeExpressionMap(popupTemplate: __esri.PopupTemplate): Map<string, __esri.ExpressionInfo>;
11
+ export declare function getFieldsFromLayer(layer: __esri.CatalogFootprintLayer | __esri.FeatureLayer | __esri.ImageryLayer | __esri.ImageryTileLayer | __esri.KnowledgeGraphSublayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.StreamLayer | __esri.Sublayer | __esri.SubtypeSublayer | __esri.WCSLayer | __esri.WFSLayer): Promise<any>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import { FieldDeleteOptions } from './types';
3
+ export declare function canAddField(layer: any): Promise<boolean>;
4
+ export declare function canDeleteField(mapView: __esri.MapView | undefined, layer: any, field: __esri.Field, options?: FieldDeleteOptions): Promise<boolean>;
@@ -0,0 +1,6 @@
1
+ import { TemplateResult } from 'lit';
2
+ interface FieldIconsProps {
3
+ fieldType: string;
4
+ }
5
+ export declare const FieldIcons: ({ fieldType }: FieldIconsProps) => TemplateResult;
6
+ export default FieldIcons;
@@ -0,0 +1,21 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ /**
3
+ * Determine if a user is either the owner or an admin of an item
4
+ */
5
+ export declare function userIsItemAdmin(item: __esri.PortalItem, user: __esri.PortalUser): boolean;
6
+ /**
7
+ * Determine if a user is the owner of an item
8
+ */
9
+ export declare function isOwner(item: __esri.PortalItem, user: __esri.PortalUser): boolean;
10
+ export declare function isSpatioTemporalService(item: __esri.PortalItem): boolean;
11
+ export declare function isViewServiceLayer(item: __esri.PortalItem): boolean;
12
+ export declare function isHostedServiceLayer(item: __esri.PortalItem): boolean;
13
+ export declare function layerParticipatesInJoinedView(item: __esri.PortalItem): boolean;
14
+ export declare function isParentOfJoinedView(sourceJSON: any): boolean;
15
+ export declare function getUserGroups(layer: __esri.FeatureLayer | __esri.OrientedImageryLayer): Promise<any>;
16
+ export declare function getItemGroups(layer: __esri.FeatureLayer | __esri.OrientedImageryLayer): Promise<any>;
17
+ export declare function getRelatedItems(itemId: string, portal: __esri.Portal, { relationshipType, direction }: {
18
+ relationshipType: string;
19
+ direction?: "forward" | "reverse";
20
+ }): Promise<any>;
21
+ export declare function userAndItemBelongToSharedUpdateGroup(userGroups: any, itemGroups: any): boolean;
@@ -0,0 +1,2 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ export declare function getPortalRestBaseUrl(portal: __esri.Portal): string;
@@ -0,0 +1,15 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import { SchemaResult, ValidationResult, FavoriteClassificationResult, AddFavoriteClassificationResult } from '../types/classification';
3
+ /**
4
+ * Requests the classification schema from the portal.
5
+ * @param portalUrl the url to the portal's classification schema endpoint
6
+ * @param signal the abort signal
7
+ * @returns the classification schema result
8
+ */
9
+ export declare function requestClassificationSchema(portalUrl: string, signal: AbortSignal): Promise<SchemaResult>;
10
+ export declare function validateClassificationValue(portalUrl: string, itemClassification: __esri.PortalItem["classification"], options: {
11
+ signal?: AbortSignal;
12
+ }): Promise<ValidationResult>;
13
+ export declare function requestFavoriteClassificationValues(portalItem: __esri.PortalItem | undefined): Promise<FavoriteClassificationResult | undefined>;
14
+ /** Add favorite classification values */
15
+ export declare function uploadFavoriteClassificationValues(portalItem: __esri.PortalItem | undefined, itemClassificationValue: __esri.PortalItem["classification"]): Promise<AddFavoriteClassificationResult | undefined>;
@@ -0,0 +1,30 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ /**
3
+ * Configuration
4
+ */
5
+ export interface IConfig {
6
+ arcadeEditor?: string;
7
+ jsapiUrl?: string;
8
+ helpMap?: Record<string, string>;
9
+ helpBase?: string;
10
+ }
11
+ export interface FieldDeleteOptions {
12
+ item: __esri.PortalItem;
13
+ portal: __esri.Portal;
14
+ handleCloseOnConsumer?: boolean;
15
+ ignorePopupTemplate?: boolean;
16
+ ignoreLayerRenderer?: boolean;
17
+ ignoreLayerFeatureReduction?: boolean;
18
+ ignoreLayerLabelingInfo?: boolean;
19
+ ignoreLayerDefinitionExpression?: boolean;
20
+ ignoreItemRenderer?: boolean;
21
+ ignoreItemFeatureReduction?: boolean;
22
+ userItemInfo?: UserItemInfo;
23
+ }
24
+ export interface UserItemInfo {
25
+ itemData: any;
26
+ userGroups: any[];
27
+ itemGroups: any[];
28
+ relatedItems: any[];
29
+ fieldGroups: any[];
30
+ }
@@ -0,0 +1 @@
1
+ export declare const addTrailingSlashIfMissing: (url: string) => string;