@arcgis/portal-components 5.0.0-next.14 → 5.0.0-next.141

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 (214) hide show
  1. package/dist/cdn/2QNNOF35.js +4 -0
  2. package/dist/cdn/3PW365TA.js +4 -0
  3. package/dist/cdn/3TWP2RZQ.js +4 -0
  4. package/dist/cdn/{YBZHLIFY.js → 445AZMC5.js} +1 -1
  5. package/dist/cdn/DA4DAZQZ.js +4 -0
  6. package/dist/cdn/FCSBMJLE.js +4 -0
  7. package/dist/cdn/{E2UQO7Z7.js → FECCDTEG.js} +2 -2
  8. package/dist/cdn/FHB4YXY5.js +6 -0
  9. package/dist/cdn/LDGKDN4B.js +4 -0
  10. package/dist/cdn/LJFF4SBX.js +4 -0
  11. package/dist/cdn/MUZZAYF2.js +4 -0
  12. package/dist/cdn/PO7P4R6V.js +4 -0
  13. package/dist/cdn/PUHQ4XQ5.js +4 -0
  14. package/dist/cdn/SXN747Q7.js +4 -0
  15. package/dist/cdn/THZEVQB5.js +4 -0
  16. package/dist/cdn/XINMYRZV.js +4 -0
  17. package/dist/cdn/{HJFZ3UZA.js → ZX56HBSP.js} +2 -2
  18. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ar.json +1 -1
  19. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bg.json +1 -1
  20. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bs.json +1 -1
  21. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ca.json +1 -1
  22. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.cs.json +1 -1
  23. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.da.json +1 -1
  24. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.de.json +1 -1
  25. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.el.json +1 -1
  26. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.es.json +1 -1
  27. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.et.json +1 -1
  28. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fi.json +1 -1
  29. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fr.json +1 -1
  30. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.he.json +1 -1
  31. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hr.json +1 -1
  32. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hu.json +1 -1
  33. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.id.json +1 -1
  34. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.it.json +1 -1
  35. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ja.json +1 -1
  36. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ko.json +1 -1
  37. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lt.json +1 -1
  38. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lv.json +1 -1
  39. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.nl.json +1 -1
  40. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.no.json +1 -1
  41. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pl.json +1 -1
  42. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-BR.json +1 -1
  43. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-PT.json +1 -1
  44. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ro.json +1 -1
  45. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ru.json +1 -1
  46. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sk.json +1 -1
  47. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sl.json +1 -1
  48. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sr.json +1 -1
  49. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sv.json +1 -1
  50. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.th.json +1 -1
  51. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.tr.json +1 -1
  52. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.uk.json +1 -1
  53. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.vi.json +1 -1
  54. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-CN.json +1 -1
  55. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-HK.json +1 -1
  56. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-TW.json +1 -1
  57. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ar.json +1 -0
  58. package/dist/cdn/assets/portal-extent-picker/t9n/messages.bg.json +1 -0
  59. package/dist/cdn/assets/portal-extent-picker/t9n/messages.bs.json +1 -0
  60. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ca.json +1 -0
  61. package/dist/cdn/assets/portal-extent-picker/t9n/messages.cs.json +1 -0
  62. package/dist/cdn/assets/portal-extent-picker/t9n/messages.da.json +1 -0
  63. package/dist/cdn/assets/portal-extent-picker/t9n/messages.de.json +1 -0
  64. package/dist/cdn/assets/portal-extent-picker/t9n/messages.el.json +1 -0
  65. package/dist/cdn/assets/portal-extent-picker/t9n/messages.en.json +1 -0
  66. package/dist/cdn/assets/portal-extent-picker/t9n/messages.es.json +1 -0
  67. package/dist/cdn/assets/portal-extent-picker/t9n/messages.et.json +1 -0
  68. package/dist/cdn/assets/portal-extent-picker/t9n/messages.fi.json +1 -0
  69. package/dist/cdn/assets/portal-extent-picker/t9n/messages.fr.json +1 -0
  70. package/dist/cdn/assets/portal-extent-picker/t9n/messages.he.json +1 -0
  71. package/dist/cdn/assets/portal-extent-picker/t9n/messages.hr.json +1 -0
  72. package/dist/cdn/assets/portal-extent-picker/t9n/messages.hu.json +1 -0
  73. package/dist/cdn/assets/portal-extent-picker/t9n/messages.id.json +1 -0
  74. package/dist/cdn/assets/portal-extent-picker/t9n/messages.it.json +1 -0
  75. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ja.json +1 -0
  76. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ko.json +1 -0
  77. package/dist/cdn/assets/portal-extent-picker/t9n/messages.lt.json +1 -0
  78. package/dist/cdn/assets/portal-extent-picker/t9n/messages.lv.json +1 -0
  79. package/dist/cdn/assets/portal-extent-picker/t9n/messages.nb.json +1 -0
  80. package/dist/cdn/assets/portal-extent-picker/t9n/messages.nl.json +1 -0
  81. package/dist/cdn/assets/portal-extent-picker/t9n/messages.no.json +1 -0
  82. package/dist/cdn/assets/portal-extent-picker/t9n/messages.pl.json +1 -0
  83. package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-BR.json +1 -0
  84. package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-PT.json +1 -0
  85. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ro.json +1 -0
  86. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ru.json +1 -0
  87. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sk.json +1 -0
  88. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sl.json +1 -0
  89. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sr.json +1 -0
  90. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sv.json +1 -0
  91. package/dist/cdn/assets/portal-extent-picker/t9n/messages.th.json +1 -0
  92. package/dist/cdn/assets/portal-extent-picker/t9n/messages.tr.json +1 -0
  93. package/dist/cdn/assets/portal-extent-picker/t9n/messages.uk.json +1 -0
  94. package/dist/cdn/assets/portal-extent-picker/t9n/messages.vi.json +1 -0
  95. package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-CN.json +1 -0
  96. package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-HK.json +1 -0
  97. package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-TW.json +1 -0
  98. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ar.json +1 -0
  99. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bg.json +1 -0
  100. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bs.json +1 -0
  101. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ca.json +1 -0
  102. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.cs.json +1 -0
  103. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.da.json +1 -0
  104. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.de.json +1 -0
  105. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.el.json +1 -0
  106. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.en.json +1 -0
  107. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.es.json +1 -0
  108. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.et.json +1 -0
  109. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fi.json +1 -0
  110. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fr.json +1 -0
  111. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.he.json +1 -0
  112. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hr.json +1 -0
  113. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hu.json +1 -0
  114. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.id.json +1 -0
  115. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.it.json +1 -0
  116. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ja.json +1 -0
  117. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ko.json +1 -0
  118. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lt.json +1 -0
  119. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lv.json +1 -0
  120. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.nl.json +1 -0
  121. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.no.json +1 -0
  122. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pl.json +1 -0
  123. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-BR.json +1 -0
  124. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-PT.json +1 -0
  125. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ro.json +1 -0
  126. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ru.json +1 -0
  127. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sk.json +1 -0
  128. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sl.json +1 -0
  129. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sr.json +1 -0
  130. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sv.json +1 -0
  131. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.th.json +1 -0
  132. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.tr.json +1 -0
  133. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.uk.json +1 -0
  134. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.vi.json +1 -0
  135. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-CN.json +1 -0
  136. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-HK.json +1 -0
  137. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-TW.json +1 -0
  138. package/dist/cdn/index.js +2 -2
  139. package/dist/cdn/main.css +1 -1
  140. package/dist/chunks/common.js +1 -1
  141. package/dist/chunks/fieldAddDelete.js +153 -226
  142. package/dist/chunks/item.js +103 -0
  143. package/dist/chunks/loadClassificationData.js +1 -1
  144. package/dist/chunks/requests.js +2 -2
  145. package/dist/chunks/runtime.js +2 -2
  146. package/dist/chunks/useT9n.js +1 -1
  147. package/dist/components/arcgis-portal-classification-banner/customElement.d.ts +39 -34
  148. package/dist/components/arcgis-portal-classification-banner/customElement.js +18 -17
  149. package/dist/components/arcgis-portal-classification-banner/index.d.ts +0 -1
  150. package/dist/components/arcgis-portal-classification-config/customElement.d.ts +67 -38
  151. package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
  152. package/dist/components/arcgis-portal-classification-config/index.d.ts +0 -11
  153. package/dist/components/arcgis-portal-classification-favorite/customElement.d.ts +61 -16
  154. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  155. package/dist/components/arcgis-portal-classification-favorite/index.d.ts +0 -11
  156. package/dist/components/arcgis-portal-classification-form-element/customElement.d.ts +27 -12
  157. package/dist/components/arcgis-portal-classification-form-element/customElement.js +7 -7
  158. package/dist/components/arcgis-portal-classification-form-element/index.d.ts +0 -8
  159. package/dist/components/arcgis-portal-extent-picker/customElement.d.ts +124 -0
  160. package/dist/components/arcgis-portal-extent-picker/customElement.js +553 -0
  161. package/dist/components/arcgis-portal-extent-picker/index.d.ts +1 -0
  162. package/dist/components/arcgis-portal-extent-picker/index.js +8 -0
  163. package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +60 -0
  164. package/dist/components/arcgis-portal-extent-picker-coord-field/index.js +3 -0
  165. package/dist/components/arcgis-portal-field-delete/customElement.d.ts +88 -21
  166. package/dist/components/arcgis-portal-field-delete/customElement.js +81 -78
  167. package/dist/components/arcgis-portal-field-delete/index.d.ts +0 -9
  168. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.d.ts +43 -0
  169. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +151 -0
  170. package/dist/components/arcgis-portal-replacement-item-redirect/index.d.ts +1 -0
  171. package/dist/components/arcgis-portal-replacement-item-redirect/index.js +6 -0
  172. package/dist/docs/api.json +1 -1174
  173. package/dist/docs/docs.json +1 -1076
  174. package/dist/docs/vscode.css-custom-data.json +1 -6
  175. package/dist/docs/vscode.html-custom-data.json +1 -98
  176. package/dist/docs/web-types.json +1 -313
  177. package/dist/index.d.ts +73 -61
  178. package/dist/index.js +1 -1
  179. package/dist/loader.d.ts +1 -1
  180. package/dist/loader.js +11 -8
  181. package/dist/models/classificationModel.d.ts +1 -68
  182. package/dist/types/classification.d.ts +89 -165
  183. package/dist/types/components.d.ts +2 -1
  184. package/dist/types/lumina.d.ts +30 -15
  185. package/dist/types/preact.d.ts +32 -15
  186. package/dist/types/react.d.ts +34 -15
  187. package/dist/types/stencil.d.ts +30 -15
  188. package/dist/utils/fieldAddDelete.d.ts +12 -3
  189. package/dist/utils/types.d.ts +25 -24
  190. package/package.json +8 -7
  191. package/dist/cdn/GAVE7GOE.js +0 -4
  192. package/dist/cdn/GCTEBF5M.js +0 -4
  193. package/dist/cdn/IQGOBW2Z.js +0 -4
  194. package/dist/cdn/MCC56U5S.js +0 -4
  195. package/dist/cdn/NIHR6VOM.js +0 -4
  196. package/dist/cdn/NNI54DSU.js +0 -4
  197. package/dist/cdn/OB7YFCHE.js +0 -4
  198. package/dist/cdn/ORW2D6UX.js +0 -4
  199. package/dist/cdn/UYVWH4TJ.js +0 -6
  200. package/dist/components/arcgis-portal-field-delete/types.d.ts +0 -5
  201. package/dist/controllers/loadClassificationData.d.ts +0 -11
  202. package/dist/controllers/useClassificationModel.d.ts +0 -9
  203. package/dist/controllers/useT9n.d.ts +0 -1
  204. package/dist/runtime.d.ts +0 -6
  205. package/dist/types/preact10.d.ts +0 -54
  206. package/dist/utils/arcade.d.ts +0 -27
  207. package/dist/utils/common.d.ts +0 -29
  208. package/dist/utils/commonEnums.d.ts +0 -5
  209. package/dist/utils/commonFunctions.d.ts +0 -11
  210. package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
  211. package/dist/utils/item.d.ts +0 -21
  212. package/dist/utils/portal.d.ts +0 -2
  213. package/dist/utils/requests.d.ts +0 -15
  214. package/dist/utils/url.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,87 +1,99 @@
1
- import type { ArcgisPortalClassificationBanner } from "./components/arcgis-portal-classification-banner";
2
- import type { ArcgisPortalClassificationConfig } from "./components/arcgis-portal-classification-config";
3
- import type { ArcgisPortalClassificationFavorite } from "./components/arcgis-portal-classification-favorite";
4
- import type { ArcgisPortalClassificationFormElement } from "./components/arcgis-portal-classification-form-element";
5
- import type { ArcgisPortalFieldDelete } from "./components/arcgis-portal-field-delete";
1
+ export { canAddField, canDeleteField } from "./utils/fieldAddDelete";
2
+ export { type FieldDeleteOptions, type UserItemInfo } from "./utils/types";
6
3
 
7
4
  /**
8
- * Place in this file any utility functions you wish to expose for the consumers
9
- * of your package
5
+ * Get a resolved path from where an asset can be loaded.
6
+ *
7
+ * @param suffix - The relative path for the asset.
10
8
  */
11
- export { getAssetPath, setAssetPath } from './runtime';
12
- export { canAddField, canDeleteField } from './utils/fieldAddDelete';
13
- export type { FieldDeleteOptions, UserItemInfo } from './utils/types';
9
+ export function getAssetPath(suffix: string): string;
14
10
 
11
+ /**
12
+ * Used to manually set the base path where package assets (like localization
13
+ * and icons) can be found.
14
+ *
15
+ * By default, the package assets are loaded from
16
+ * `https://js.arcgis.com/<version>/<simplified-package-name>/`. We are hosting
17
+ * our assets on a CDN (Content Delivery Network) to ensure fast and reliable
18
+ * access. It is CORS-enabled, so you can load the assets from any domain. This
19
+ * is the recommended way to load the assets and avoid bundling them with your
20
+ * application.
21
+ *
22
+ * However, if you need to host the assets locally, you can copy them manually
23
+ * as part of your build process and use `setAssetPath` to customize where the
24
+ * browser will load the assets from.
25
+ *
26
+ * @param path - Relative or absolute path to the assets folder.
27
+ */
28
+ export function setAssetPath(path: URL | string): void;
29
+
30
+ import type { ArcgisPortalClassificationBanner } from "./components/arcgis-portal-classification-banner/customElement.js";
31
+ import type { ArcgisPortalClassificationConfig } from "./components/arcgis-portal-classification-config/customElement.js";
32
+ import type { ArcgisPortalClassificationFavorite } from "./components/arcgis-portal-classification-favorite/customElement.js";
33
+ import type { ArcgisPortalClassificationFormElement } from "./components/arcgis-portal-classification-form-element/customElement.js";
34
+ import type { ArcgisPortalExtentPicker } from "./components/arcgis-portal-extent-picker/customElement.js";
35
+ import type { ArcgisPortalFieldDelete } from "./components/arcgis-portal-field-delete/customElement.js";
36
+ import type { ArcgisPortalReplacementItemRedirect } from "./components/arcgis-portal-replacement-item-redirect/customElement.js";
37
+
38
+ export { ToEvents, TargetedEvent } from "@arcgis/lumina";
15
39
 
16
40
  export interface ArcgisPortalClassificationConfigCustomEvent<T> extends CustomEvent<T> {
17
41
  detail: T;
18
- target: HTMLArcgisPortalClassificationConfigElement;
19
- currentTarget: HTMLArcgisPortalClassificationConfigElement;
42
+ target: ArcgisPortalClassificationConfig;
43
+ currentTarget: ArcgisPortalClassificationConfig;
20
44
  }
21
45
  export interface ArcgisPortalClassificationFormElementCustomEvent<T> extends CustomEvent<T> {
22
46
  detail: T;
23
- target: HTMLArcgisPortalClassificationFormElementElement;
24
- currentTarget: HTMLArcgisPortalClassificationFormElementElement;
47
+ target: ArcgisPortalClassificationFormElement;
48
+ currentTarget: ArcgisPortalClassificationFormElement;
49
+ }
50
+ export interface ArcgisPortalExtentPickerCustomEvent<T> extends CustomEvent<T> {
51
+ detail: T;
52
+ target: ArcgisPortalExtentPicker;
53
+ currentTarget: ArcgisPortalExtentPicker;
25
54
  }
26
55
  export interface ArcgisPortalFieldDeleteCustomEvent<T> extends CustomEvent<T> {
27
56
  detail: T;
28
- target: HTMLArcgisPortalFieldDeleteElement;
29
- currentTarget: HTMLArcgisPortalFieldDeleteElement;
57
+ target: ArcgisPortalFieldDelete;
58
+ currentTarget: ArcgisPortalFieldDelete;
59
+ }
60
+ export interface ArcgisPortalReplacementItemRedirectCustomEvent<T> extends CustomEvent<T> {
61
+ detail: T;
62
+ target: ArcgisPortalReplacementItemRedirect;
63
+ currentTarget: ArcgisPortalReplacementItemRedirect;
30
64
  }
31
65
 
32
- export { ToEvents, TargetedEvent } from "@arcgis/lumina";
33
66
 
34
67
  declare global {
35
68
  interface HTMLElementTagNameMap {
36
- "arcgis-portal-classification-banner": HTMLArcgisPortalClassificationBannerElement;
37
- "arcgis-portal-classification-config": HTMLArcgisPortalClassificationConfigElement;
38
- "arcgis-portal-classification-favorite": HTMLArcgisPortalClassificationFavoriteElement;
39
- "arcgis-portal-classification-form-element": HTMLArcgisPortalClassificationFormElementElement;
40
- "arcgis-portal-field-delete": HTMLArcgisPortalFieldDeleteElement;
69
+ "arcgis-portal-classification-banner": ArcgisPortalClassificationBanner;
70
+ "arcgis-portal-classification-config": ArcgisPortalClassificationConfig;
71
+ "arcgis-portal-classification-favorite": ArcgisPortalClassificationFavorite;
72
+ "arcgis-portal-classification-form-element": ArcgisPortalClassificationFormElement;
73
+ "arcgis-portal-extent-picker": ArcgisPortalExtentPicker;
74
+ "arcgis-portal-field-delete": ArcgisPortalFieldDelete;
75
+ "arcgis-portal-replacement-item-redirect": ArcgisPortalReplacementItemRedirect;
76
+
41
77
  }
42
78
 
43
- interface HTMLArcgisPortalClassificationBannerElement extends ArcgisPortalClassificationBanner {
79
+ type HTMLArcgisPortalClassificationBannerElement = ArcgisPortalClassificationBanner;
44
80
 
45
- }
46
- interface HTMLArcgisPortalClassificationConfigElementEventMap {
47
- "arcgisPropertyChange": ArcgisPortalClassificationConfig["arcgisPropertyChange"]["detail"];
48
- }
81
+ type HTMLArcgisPortalClassificationConfigElementEventMap = ArcgisPortalClassificationConfig["@eventTypes"];
82
+ type HTMLArcgisPortalClassificationConfigElement = ArcgisPortalClassificationConfig;
49
83
 
50
- interface HTMLArcgisPortalClassificationConfigElement extends ArcgisPortalClassificationConfig {
51
- addEventListener<K extends keyof HTMLArcgisPortalClassificationConfigElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationConfigElement, ev: ArcgisPortalClassificationConfigCustomEvent<HTMLArcgisPortalClassificationConfigElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
52
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
53
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
54
- removeEventListener<K extends keyof HTMLArcgisPortalClassificationConfigElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationConfigElement, ev: ArcgisPortalClassificationConfigCustomEvent<HTMLArcgisPortalClassificationConfigElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
55
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
56
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
57
- }
58
- interface HTMLArcgisPortalClassificationFavoriteElement extends ArcgisPortalClassificationFavorite {
84
+ type HTMLArcgisPortalClassificationFavoriteElement = ArcgisPortalClassificationFavorite;
59
85
 
60
- }
61
- interface HTMLArcgisPortalClassificationFormElementElementEventMap {
62
- "arcgisAttributeValueChange": ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]["detail"];
63
- }
86
+ type HTMLArcgisPortalClassificationFormElementElementEventMap = ArcgisPortalClassificationFormElement["@eventTypes"];
87
+ type HTMLArcgisPortalClassificationFormElementElement = ArcgisPortalClassificationFormElement;
88
+
89
+ type HTMLArcgisPortalExtentPickerElementEventMap = ArcgisPortalExtentPicker["@eventTypes"];
90
+ type HTMLArcgisPortalExtentPickerElement = ArcgisPortalExtentPicker;
91
+
92
+ type HTMLArcgisPortalFieldDeleteElementEventMap = ArcgisPortalFieldDelete["@eventTypes"];
93
+ type HTMLArcgisPortalFieldDeleteElement = ArcgisPortalFieldDelete;
94
+
95
+ type HTMLArcgisPortalReplacementItemRedirectElementEventMap = ArcgisPortalReplacementItemRedirect["@eventTypes"];
96
+ type HTMLArcgisPortalReplacementItemRedirectElement = ArcgisPortalReplacementItemRedirect;
64
97
 
65
- interface HTMLArcgisPortalClassificationFormElementElement extends ArcgisPortalClassificationFormElement {
66
- addEventListener<K extends keyof HTMLArcgisPortalClassificationFormElementElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationFormElementElement, ev: ArcgisPortalClassificationFormElementCustomEvent<HTMLArcgisPortalClassificationFormElementElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
67
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
68
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
69
- removeEventListener<K extends keyof HTMLArcgisPortalClassificationFormElementElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationFormElementElement, ev: ArcgisPortalClassificationFormElementCustomEvent<HTMLArcgisPortalClassificationFormElementElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
70
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
71
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
72
- }
73
- interface HTMLArcgisPortalFieldDeleteElementEventMap {
74
- "arcgisBeforeModalClose": ArcgisPortalFieldDelete["arcgisBeforeModalClose"]["detail"];
75
- "arcgisClose": ArcgisPortalFieldDelete["arcgisClose"]["detail"];
76
- "arcgisFieldsDeleted": ArcgisPortalFieldDelete["arcgisFieldsDeleted"]["detail"];
77
- }
78
98
 
79
- interface HTMLArcgisPortalFieldDeleteElement extends ArcgisPortalFieldDelete {
80
- addEventListener<K extends keyof HTMLArcgisPortalFieldDeleteElementEventMap>(type: K, listener: (this: HTMLArcgisPortalFieldDeleteElement, ev: ArcgisPortalFieldDeleteCustomEvent<HTMLArcgisPortalFieldDeleteElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
81
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
82
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
83
- removeEventListener<K extends keyof HTMLArcgisPortalFieldDeleteElementEventMap>(type: K, listener: (this: HTMLArcgisPortalFieldDeleteElement, ev: ArcgisPortalFieldDeleteCustomEvent<HTMLArcgisPortalFieldDeleteElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
84
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
85
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
86
- }
87
99
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { g as a, s as t } from "./chunks/runtime.js";
2
2
  import { c as o, a as r } from "./chunks/fieldAddDelete.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
5
- v5.0.0-next.14 */
5
+ v5.0.0-next.141 */
6
6
  export {
7
7
  o as canAddField,
8
8
  r as canDeleteField,
package/dist/loader.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import "./index";
1
+ import "./index.js";
2
2
  export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;
package/dist/loader.js CHANGED
@@ -1,14 +1,17 @@
1
- import { r as i } from "./chunks/runtime.js";
1
+ import { r as e } from "./chunks/runtime.js";
2
2
  import { makeDefineCustomElements as t } from "@arcgis/lumina";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
5
- v5.0.0-next.14 */
6
- const s = t(i, {
7
- "arcgis-portal-classification-banner": [() => import("./components/arcgis-portal-classification-banner/customElement.js"), "autoDestroyDisabled,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],
8
- "arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
9
- "arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
10
- "arcgis-portal-classification-form-element": [() => import("./components/arcgis-portal-classification-form-element/customElement.js"), "attribute:,attributeKey,isRequiredErrors:,renderingInfo:,value:"],
11
- "arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,options:"]
5
+ v5.0.0-next.141 */
6
+ const s = t(e, {
7
+ "arcgis-portal-classification-banner": [() => import("./components/arcgis-portal-classification-banner/customElement.js"), "autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],
8
+ "arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
9
+ "arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
10
+ "arcgis-portal-classification-form-element": [() => import("./components/arcgis-portal-classification-form-element/customElement.js"), "attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],
11
+ "arcgis-portal-extent-picker": [() => import("./components/arcgis-portal-extent-picker/customElement.js"), "active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],
12
+ "arcgis-portal-extent-picker-coord-field": [() => import("./components/arcgis-portal-extent-picker-coord-field/customElement.js"), "errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],
13
+ "arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,messages:,options:"],
14
+ "arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,portal:,t9n:,user:;setFocus"]
12
15
  });
13
16
  export {
14
17
  s as defineCustomElements
@@ -1,68 +1 @@
1
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
- import { default as Accessor } from '@arcgis/core/core/Accessor.js';
3
- import { ClassificationSchema, SchemaResult } from '../types/classification';
4
- import { Deferred } from '@arcgis/toolkit/promise';
5
- type Status = "error" | "idle" | "loaded" | "loading";
6
- /**
7
- * Initialization options for the classification model.
8
- */
9
- export interface Options {
10
- portalClassificationSchema?: ClassificationSchema | undefined;
11
- }
12
- export declare class ClassificationModel extends Accessor {
13
- /**
14
- * The classification schema for the portal that is fetched from
15
- * <portal>/sharing/rest/portals/self/classification/classificationSchema.
16
- */
17
- portalClassificationSchema: ClassificationSchema | undefined;
18
- /**
19
- * Whether the model is currently getting fetched via an outside actor.
20
- */
21
- fetching: boolean;
22
- /** The loading status of the classification schema. */
23
- status: Status;
24
- error: SchemaResult["error"] | undefined;
25
- /**
26
- * The portal URL.
27
- */
28
- portalUrl: string | undefined;
29
- _itemClassificationValidationErrors: Map<string, Promise<string>>;
30
- /**
31
- * The promise that resolves when the classification schema is fetched.
32
- */
33
- fetchingPromise: Deferred<boolean>;
34
- /**
35
- * The primary attribute of the classification schema metadata.
36
- */
37
- get primaryAttribute(): ClassificationSchema["classificationMetadata"]["primaryAttribute"] | undefined;
38
- /**
39
- * Sets the portal classification schema and updates the portal URL.
40
- */
41
- setPortalClassificationData({ portalUrl, schema, }: {
42
- portalUrl: string;
43
- schema: ClassificationSchema | undefined;
44
- }): void;
45
- /**
46
- * Sets the fetching state.
47
- */
48
- setFetching(fetching: boolean): void;
49
- /**
50
- * Loads and sets the classification schema from the portal.
51
- */
52
- loadPortalClassificationData(portalUrl: string, { signal }: {
53
- signal: AbortSignal;
54
- }): Promise<void>;
55
- validateClassification(id: nullish | string, classificationValue: __esri.PortalItem["classification"], portalUrl: string, options?: {
56
- signal?: AbortSignal;
57
- }): Promise<string>;
58
- }
59
- /**
60
- * This function checks if model is already defined. If not, it creates the classification model,
61
- * ensuring that the classification model is created only once and reused for subsequent calls.
62
- */
63
- export declare function loadClassificationModel(initialValues?: Options): ClassificationModel;
64
- export declare const exportsForTests: {
65
- /** export a test util to allow test runner to reset the model */
66
- resetModel: () => void;
67
- };
68
- export {};
1
+ export type Status = "error" | "idle" | "loaded" | "loading";
@@ -1,66 +1,86 @@
1
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;
2
+
3
+ /** The classification schema defined on the portal. */
4
+ export type ClassificationSchema = Readonly<{
5
+ attributeCategories?: string[];
6
+ attributes: Record<string, ClassificationAttributesValues>;
7
+ bannerExpression?: string;
8
+ classificationMetadata: ClassificationMetadata;
9
+ grammarVersion: string;
10
+ layouts: Record<string, DefaultLayout>;
11
+ name: string;
12
+ selectionTextExpression?: string;
13
+ version: string;
14
+ helpUrl?: string;
15
+ helpTooltip?: string;
8
16
  }>;
9
- type ClassificationMetadata = Readonly<{
17
+
18
+ export interface FavoriteClassification {
19
+ name: string;
20
+ classification: __esri.PortalItem["classification"];
21
+ }
22
+
23
+ /**
24
+ * State object that is used to store arcade expression results from expressions
25
+ * that are evaluated for each attribute in the classification schema.
26
+ */
27
+ export type AttributeExpressionResults = Map<string, {
28
+ enabled: boolean;
29
+ valueExpressionResult: Record<string, ValueOption[]> | ValueOption[] | null;
30
+ attributeValidationResult: string | null;
31
+ }>;
32
+
33
+ export type ClassificationMetadata = Readonly<{
10
34
  primaryAttribute: string;
11
35
  defaultValue: string;
12
36
  classificationValueProperties: ClassificationType[];
13
37
  }>;
38
+
14
39
  export type ValueOption = Readonly<{
15
40
  label: string;
16
41
  value: string;
17
42
  }>;
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;
43
+
44
+ export type ClassificationAttributesValues = CheckboxAttributesValues | DateAttributesValues | MultiGroupedSelectNestedAttributesValues | MultiSelectAttributesValues | SingleSelectAttributesValues | TextAttributesValues;
45
+
46
+ export type DefaultLayout = Readonly<{ layoutElements: Record<string, ClassificationLayoutElements>; }>;
47
+
48
+ export type ClassificationType = Readonly<{
49
+ [index: string]: string | undefined;
50
+ value: string;
51
+ acronym?: string;
52
+ backgroundColor?: string;
53
+ textColor?: string;
42
54
  }>;
55
+
43
56
  /**
44
57
  * Create narrowed types for each of the possible UI elements.
45
58
  * Never is used to inform users that the property will never be defined
46
59
  * when uiElement is a specific value.
47
60
  */
48
- type SingleSelectAttributesValues = BaseAttributesValues & Readonly<{
61
+ export type SingleSelectAttributesValues = BaseAttributesValues
62
+ & Readonly<{
49
63
  uiElement: "single-select";
50
64
  validValues?: ValueOption[];
51
65
  validValuesMap?: never;
52
66
  }>;
53
- type MultiSelectAttributesValues = BaseAttributesValues & Readonly<{
67
+
68
+ export type MultiSelectAttributesValues = BaseAttributesValues
69
+ & Readonly<{
54
70
  uiElement: "multi-select";
55
71
  validValues?: ValueOption[];
56
72
  validValuesMap?: never;
57
73
  }>;
58
- type MultiGroupedSelectNestedAttributesValues = BaseAttributesValues & Readonly<{
74
+
75
+ export type MultiGroupedSelectNestedAttributesValues = BaseAttributesValues
76
+ & Readonly<{
59
77
  uiElement: "multi-grouped-select-nested";
60
78
  validValuesMap: Record<string, ValueOption[]>;
61
79
  validValues?: never;
62
80
  }>;
63
- type CheckboxAttributesValues = BaseAttributesValues & Readonly<{
81
+
82
+ export type CheckboxAttributesValues = BaseAttributesValues
83
+ & Readonly<{
64
84
  uiElement: "checkbox";
65
85
  type: "boolean";
66
86
  validValues?: never;
@@ -68,7 +88,9 @@ type CheckboxAttributesValues = BaseAttributesValues & Readonly<{
68
88
  defaultDateTimeline?: never;
69
89
  defaultDateTimelineUnits?: never;
70
90
  }>;
71
- type DateAttributesValues = BaseAttributesValues & Readonly<{
91
+
92
+ export type DateAttributesValues = BaseAttributesValues
93
+ & Readonly<{
72
94
  uiElement: "date";
73
95
  type: "date";
74
96
  defaultDateTimeline: number;
@@ -76,7 +98,9 @@ type DateAttributesValues = BaseAttributesValues & Readonly<{
76
98
  validValues?: never;
77
99
  validValuesMap?: never;
78
100
  }>;
79
- type TextAttributesValues = BaseAttributesValues & Readonly<{
101
+
102
+ export type TextAttributesValues = BaseAttributesValues
103
+ & Readonly<{
80
104
  uiElement: "text";
81
105
  type: "string";
82
106
  validValues?: never;
@@ -84,131 +108,31 @@ type TextAttributesValues = BaseAttributesValues & Readonly<{
84
108
  defaultDateTimeline?: never;
85
109
  defaultDateTimelineUnits?: never;
86
110
  }>;
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 {};
111
+
112
+ export type ClassificationLayoutElements = Readonly<{ formDisplayOrder: number; }>;
113
+
114
+ export type BaseAttributesValues = Readonly<{
115
+ label: string;
116
+ description?: string;
117
+ type: string;
118
+ uiElement: string;
119
+ isRequired?: boolean;
120
+ defaultValue?: string;
121
+ defaultDateTimeline?: number;
122
+ defaultDateTimelineUnits?: string;
123
+ validValues?: ValueOption[];
124
+ validValuesMap?: Record<string, ValueOption[]>;
125
+ isAttributeEnabled?: string;
126
+ valueExpression?: string;
127
+ attributeValidation?: string;
128
+ arcadeResultLookup?: Record<string, ValueOption[]>;
129
+ attributeCategory?: string;
130
+ selectionDisplayOrder?: number;
131
+ selectionDisplayLabel?: string;
132
+ bannerOrder?: number;
133
+ bannerLabel?: string;
134
+ labelDelimiter?: string;
135
+ labelTooltip?: string;
136
+ valueDelimiter?: string;
137
+ attributeDelimiter?: string;
138
+ }>;
@@ -1 +1,2 @@
1
- export * from "./stencil";
1
+ /** @deprecated import from stencil.d.ts instead */
2
+ export * from "./stencil.js";