@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
@@ -1,36 +1,41 @@
1
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
1
  /// <reference path="../../index.d.ts" />
3
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
4
- import { Use } from '@arcgis/lumina/controllers';
5
- import { useClassificationModel } from '../../controllers/useClassificationModel';
6
- import { PropertyValues } from 'lit';
2
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
4
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
7
5
 
8
- /** @internal The new portal components now includes `<arcgis-portal-classification-banner/>`. */
9
- export declare class ArcgisPortalClassificationBanner extends LitElement {
10
- /** The portal item to display the classification banner for. */
11
- portalItem?: __esri.PortalItem;
12
- /**
13
- *
14
- * If the portal item has a classification previously
15
- *
16
- * @default false
17
- */
18
- missingExistingClassification: boolean;
19
- /**
20
- * The size of the banner to display.
21
- *
22
- * - `"full"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.
23
- * - `"preview"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.
24
- *
25
- * @default "full"
26
- */
27
- variant: "full" | "preview";
28
- /**
29
- * The classification validation error - validate the classification value against the classification schema.
30
- *
31
- * @default ""
32
- */
33
- validationErrors: string;
34
- /** Permanently destroy the component */
35
- destroy(): Promise<void>;
36
- }
6
+ /** @internal */
7
+ export abstract class ArcgisPortalClassificationBanner extends LitElement {
8
+ /** @internal */
9
+ protected messages: Partial<{
10
+ notyetclassified: string;
11
+ invalidclassificationerror: string;
12
+ }> & T9nMeta<{
13
+ notyetclassified: string;
14
+ invalidclassificationerror: string;
15
+ }>;
16
+ /**
17
+ * If the portal item has a classification previously
18
+ *
19
+ * @default false
20
+ */
21
+ accessor missingExistingClassification: boolean;
22
+ /** The portal item to display the classification banner for. */
23
+ accessor portalItem: __esri.PortalItem | undefined;
24
+ /**
25
+ * The classification validation error - validate the classification value against the classification schema.
26
+ *
27
+ * @default ""
28
+ */
29
+ accessor validationErrors: string;
30
+ /**
31
+ * The size of the banner to display.
32
+ *
33
+ * - `"full"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.
34
+ * - `"preview"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.
35
+ *
36
+ * @default "full"
37
+ */
38
+ accessor variant: "full" | "preview";
39
+ /** Permanently destroy the component */
40
+ destroy(): Promise<void>;
41
+ }
@@ -1,15 +1,16 @@
1
- import { c as e } from "../../chunks/runtime.js";
2
- import { LitElement as r, safeStyleMap as l } from "@arcgis/lumina";
3
- import { u as c, c as n } from "../../chunks/loadClassificationData.js";
4
- import { u as f } from "../../chunks/useT9n.js";
5
- import { css as d, html as t } from "lit";
1
+ import { c as r } from "../../chunks/runtime.js";
2
+ import { LitElement as l, safeStyleMap as c } from "@arcgis/lumina";
3
+ import { u as n, c as f } from "../../chunks/loadClassificationData.js";
4
+ import { u as d } from "../../chunks/useT9n.js";
5
+ import { css as h, html as s } from "lit";
6
+ import { rethrowError as o } from "@arcgis/toolkit/log";
6
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
8
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.14 */
9
- const m = d`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-ui-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`;
10
- class h extends r {
9
+ v5.0.0-next.141 */
10
+ const m = h`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`;
11
+ class p extends l {
11
12
  constructor() {
12
- super(...arguments), this.classificationModel = c(this), this.messages = f(), this._classificationDataTask = n(this), this.portalClassificationSchema = this.classificationModel.portalClassificationSchema, this.status = this.classificationModel.status, this.missingExistingClassification = !1, this.variant = "full", this.autoDestroyDisabled = !1, this.validationErrors = "";
13
+ super(...arguments), this.classificationModel = n(this), this.messages = d(), this._classificationDataTask = f(this), this.portalClassificationSchema = this.classificationModel.portalClassificationSchema, this.status = this.classificationModel.status, this.missingExistingClassification = !1, this.variant = "full", this.autoDestroyDisabled = !1, this.validationErrors = "";
13
14
  }
14
15
  static {
15
16
  this.properties = { portalClassificationSchema: 16, status: 16, itemClassification: 16, portalItem: 0, missingExistingClassification: 5, variant: 1, autoDestroyDisabled: 5, validationErrors: 1 };
@@ -29,17 +30,17 @@ class h extends r {
29
30
  this.variant === "preview" ? null : i.id,
30
31
  i.classification,
31
32
  i?.portal.restUrl
32
- ).catch(console.error).then((s) => {
33
- this.validationErrors = s ?? "";
33
+ ).catch(o(this)).then((t) => {
34
+ this.validationErrors = t ?? "";
34
35
  }) : this.validationErrors = "";
35
- }).catch(console.error);
36
+ }).catch(o(this));
36
37
  }
37
38
  }
38
39
  getStyle() {
39
40
  const a = {};
40
41
  if (this.variant === "preview" && (a.fontSize = "var(--calcite-font-size-sm)", a.padding = "var(--calcite-spacing-xs)"), this.itemClassification && this.portalClassificationSchema) {
41
- const i = this.itemClassification.classification, s = this.portalClassificationSchema.classificationMetadata.classificationValueProperties.find(({ value: o }) => o === i);
42
- s?.backgroundColor && (a.backgroundColor = s.backgroundColor), s?.textColor && (a.color = s.textColor);
42
+ const i = this.itemClassification.classification, t = this.portalClassificationSchema.classificationMetadata.classificationValueProperties.find(({ value: e }) => e === i);
43
+ t?.backgroundColor && (a.backgroundColor = t.backgroundColor), t?.textColor && (a.color = t.textColor);
43
44
  }
44
45
  return a;
45
46
  }
@@ -51,12 +52,12 @@ class h extends r {
51
52
  error: void 0,
52
53
  complete: () => (
53
54
  /** Only render the banner if the portal has a classification schema and it's accessed not anonymously */
54
- this.portalClassificationSchema && this.portalItem?.portal.authMode !== "anonymous" ? this.validationErrors && this.variant === "full" ? t`<div class="invalid-container"><calcite-icon class="invalid-icon" scale=s icon=exclamation-mark-triangle .textLabel=${this.messages.invalidclassificationerror}></calcite-icon><span class="invalid-message">${this.messages.invalidclassificationerror}</span></div>` : t`<div class="banner" style=${l(this.getStyle())}>${this.itemClassification?.banner ?? this.messages.notyetclassified ?? "Not yet classified"}</div>` : ""
55
+ this.portalClassificationSchema && this.portalItem?.portal.authMode !== "anonymous" ? this.validationErrors && this.variant === "full" ? s`<div class="invalid-container"><calcite-icon class="invalid-icon" scale=s icon=exclamation-mark-triangle .textLabel=${this.messages.invalidclassificationerror}></calcite-icon><span class="invalid-message">${this.messages.invalidclassificationerror}</span></div>` : s`<div class="banner" style=${c(this.getStyle())}>${this.itemClassification?.banner ?? this.messages.notyetclassified ?? "Not yet classified"}</div>` : ""
55
56
  )
56
57
  });
57
58
  }
58
59
  }
59
- e("arcgis-portal-classification-banner", h);
60
+ r("arcgis-portal-classification-banner", p);
60
61
  export {
61
- h as ArcgisPortalClassificationBanner
62
+ p as ArcgisPortalClassificationBanner
62
63
  };
@@ -1,2 +1 @@
1
- import "@esri/calcite-components/components/calcite-icon";
2
1
  export * from "./customElement.js";
@@ -1,45 +1,74 @@
1
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
1
  /// <reference path="../../index.d.ts" />
3
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
4
- import { PropertyValues } from 'lit';
5
- import { Use } from '@arcgis/lumina/controllers';
6
- import { useClassificationModel } from '../../controllers/useClassificationModel';
7
- import { AttributeExpressionResults, FavoriteClassification } from '../../types/classification';
2
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
4
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
5
+ import type { Status } from "../../models/classificationModel.js";
8
6
 
9
7
  /**
10
8
  * The `arcgis-portal-classification-config` component enables users to edit or provide a classification schema to a portal item through a user-friendly form. The schema is saved to the associated portal item.
11
9
  *
12
10
  * @internal
13
11
  */
14
- export declare class ArcgisPortalClassificationConfig extends LitElement {
15
- /**
16
- * The portal item to display the classification banner for.
17
- *
18
- * @required
19
- */
20
- portalItem?: __esri.PortalItem;
21
- /**
22
- * The loading status of the component, will be set to "loaded" when the classification schema is loaded.
23
- *
24
- * @default "idle"
25
- */
26
- readonly status: "loading" | "loaded" | "error" | "idle";
27
- /** The edited classification values of the portal item. */
28
- values: __esri.PortalItem["classification"];
29
- /**
30
- * The validity of the form values against the Portal's classification schema.
31
- *
32
- * @default false
33
- */
34
- valid: boolean;
35
- /** Permanently destroy the component. */
36
- destroy(): Promise<void>;
37
- /** Reset the form to the initial classification values from the portalItem */
38
- resetForm(): Promise<void>;
39
- /** Validates the form and sets the formValidationErrors state. */
40
- validateForm(): Promise<void>;
41
- /** Event emitted when component property values status, values, or valid change. */
42
- readonly arcgisPropertyChange: TargetedEvent<this, {
43
- name: "values" | "status" | "valid";
44
- }>;
45
- }
12
+ export abstract class ArcgisPortalClassificationConfig extends LitElement {
13
+ /** @internal */
14
+ protected messages: Partial<{
15
+ error: string;
16
+ errors: string;
17
+ loading: string;
18
+ and: string;
19
+ isrequired: string;
20
+ arerequired: string;
21
+ selectcategory: string;
22
+ documentbannerpreview: string;
23
+ portalitemrequired: string;
24
+ userconfigurepermissionrequired: string;
25
+ missingclassificationschema: string;
26
+ anerroroccurred: string;
27
+ bannererror: string;
28
+ }> & T9nMeta<{
29
+ error: string;
30
+ errors: string;
31
+ loading: string;
32
+ and: string;
33
+ isrequired: string;
34
+ arerequired: string;
35
+ selectcategory: string;
36
+ documentbannerpreview: string;
37
+ portalitemrequired: string;
38
+ userconfigurepermissionrequired: string;
39
+ missingclassificationschema: string;
40
+ anerroroccurred: string;
41
+ bannererror: string;
42
+ }>;
43
+ /**
44
+ * The portal item to display the classification banner for.
45
+ *
46
+ * @required
47
+ */
48
+ accessor portalItem: __esri.PortalItem | undefined;
49
+ /**
50
+ * The loading status of the component, will be set to "loaded" when the classification schema is loaded.
51
+ *
52
+ * @default "idle"
53
+ */
54
+ get status(): Status;
55
+ /**
56
+ * The validity of the form values against the Portal's classification schema.
57
+ *
58
+ * @default false
59
+ */
60
+ accessor valid: boolean;
61
+ /** The edited classification values of the portal item. */
62
+ accessor values: __esri.PortalItem["classification"];
63
+ /** Permanently destroy the component. */
64
+ destroy(): Promise<void>;
65
+ /** Reset the form to the initial classification values from the portalItem */
66
+ resetForm(): Promise<void>;
67
+ /** Validates the form and sets the formValidationErrors state. */
68
+ validateForm(): Promise<void>;
69
+ /** Event emitted when component property values status, values, or valid change. */
70
+ readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "status" | "values" | "valid"; }>;
71
+ readonly "@eventTypes": {
72
+ arcgisPropertyChange: ArcgisPortalClassificationConfig["arcgisPropertyChange"]["detail"];
73
+ };
74
+ }
@@ -13,7 +13,7 @@ import { watch as _ } from "@arcgis/core/core/reactiveUtils.js";
13
13
  import { r as D } from "../../chunks/requests.js";
14
14
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
15
15
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
16
- v5.0.0-next.14 */
16
+ v5.0.0-next.141 */
17
17
  async function T({
18
18
  portalClassificationSchema: a,
19
19
  itemClassification: t
@@ -1,12 +1 @@
1
- import "@esri/calcite-components/components/calcite-list";
2
- import "@esri/calcite-components/components/calcite-list-item";
3
- import "@esri/calcite-components/components/calcite-icon";
4
- import "@esri/calcite-components/components/calcite-notice";
5
- import "../arcgis-portal-classification-favorite/index.js";
6
- import "@esri/calcite-components/components/calcite-loader";
7
- import "../arcgis-portal-classification-form-element/index.js";
8
- import "@esri/calcite-components/components/calcite-action";
9
- import "@esri/calcite-components/components/calcite-popover";
10
- import "@esri/calcite-components/components/calcite-link";
11
- import "../arcgis-portal-classification-banner/index.js";
12
1
  export * from "./customElement.js";
@@ -1,18 +1,63 @@
1
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
1
  /// <reference path="../../index.d.ts" />
3
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
4
- import { FavoriteClassification, ClassificationAlertIndicator, AttributeExpressionResults } from '../../types/classification';
2
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
4
+ import type { FavoriteClassification, AttributeExpressionResults } from "../../types/classification.js";
5
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
5
6
 
6
- export declare class ArcgisPortalClassificationFavorite extends LitElement {
7
- /** The portal item to display the classification banner for. */
8
- portalItem?: __esri.PortalItem;
9
- /** Current classification value */
10
- classificationValue?: __esri.PortalItem["classification"];
11
- /** List of favorite classifications */
12
- favoriteClassifications: FavoriteClassification[];
13
- /** @default "" */
14
- selectedFavoriteClassificationName: string;
15
- attributeExpressionResults?: AttributeExpressionResults;
16
- resetFavoriteClassification: (favoriteClassifications: FavoriteClassification[]) => void;
17
- updateClassificationData: (selectedClassification: FavoriteClassification) => void;
18
- }
7
+ export abstract class ArcgisPortalClassificationFavorite extends LitElement {
8
+ accessor attributeExpressionResults: AttributeExpressionResults | undefined;
9
+ /** Current classification value */
10
+ accessor classificationValue: __esri.PortalItem["classification"] | undefined;
11
+ /** List of favorite classifications */
12
+ accessor favoriteClassifications: FavoriteClassification[];
13
+ /** @internal */
14
+ protected messages: Partial<{
15
+ classificationNotificationHandler: string;
16
+ applyClassificationFavoriteLabel: string;
17
+ manageClassificationFavoriteBtn: string;
18
+ manageClassificationFavoriteLabel: string;
19
+ updateClassificationFavoriteBtn: string;
20
+ saveNewClassificationBtn: string;
21
+ saveNewClassificationFavoriteBtn: string;
22
+ addClassificationFavorite: string;
23
+ duplicatedClassificationError: string;
24
+ emptyFavoriteError: string;
25
+ selectFavoritePlaceholder: string;
26
+ addFavoriteDialogHeading: string;
27
+ removeClassificationFavoriteSuccessMessage: string;
28
+ addClassificationFavoriteSuccessMessage: string;
29
+ updateClassificationFavoriteSuccessMessage: string;
30
+ favoriteClassificationBtnDone: string;
31
+ updateWarning: string;
32
+ retrieveClassificationFavoriteError: string;
33
+ uploadClassificationFavoriteError: string;
34
+ classificationFavoriteListLabel: string;
35
+ }> & T9nMeta<{
36
+ classificationNotificationHandler: string;
37
+ applyClassificationFavoriteLabel: string;
38
+ manageClassificationFavoriteBtn: string;
39
+ manageClassificationFavoriteLabel: string;
40
+ updateClassificationFavoriteBtn: string;
41
+ saveNewClassificationBtn: string;
42
+ saveNewClassificationFavoriteBtn: string;
43
+ addClassificationFavorite: string;
44
+ duplicatedClassificationError: string;
45
+ emptyFavoriteError: string;
46
+ selectFavoritePlaceholder: string;
47
+ addFavoriteDialogHeading: string;
48
+ removeClassificationFavoriteSuccessMessage: string;
49
+ addClassificationFavoriteSuccessMessage: string;
50
+ updateClassificationFavoriteSuccessMessage: string;
51
+ favoriteClassificationBtnDone: string;
52
+ updateWarning: string;
53
+ retrieveClassificationFavoriteError: string;
54
+ uploadClassificationFavoriteError: string;
55
+ classificationFavoriteListLabel: string;
56
+ }>;
57
+ /** The portal item to display the classification banner for. */
58
+ accessor portalItem: __esri.PortalItem | undefined;
59
+ accessor resetFavoriteClassification: (favoriteClassifications: FavoriteClassification[]) => void;
60
+ /** @default "" */
61
+ accessor selectedFavoriteClassificationName: string;
62
+ accessor updateClassificationData: (selectedClassification: FavoriteClassification) => void;
63
+ }
@@ -7,7 +7,7 @@ import { u as d, r as v } from "../../chunks/requests.js";
7
7
  import { g as h } from "../../chunks/common.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
10
- v5.0.0-next.14 */
10
+ v5.0.0-next.141 */
11
11
  const m = r`.select-favorite-label{display:flex;justify-content:space-between;align-items:center}.favorite-actions{display:flex;justify-content:flex-end;gap:1.5rem;align-items:center}.classification-favorite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: "var(--calcite-color-foreground-2)"}.save-new-favorite-button{display:flex;justify-content:flex-end;margin-top:.25rem;margin-bottom:1rem}.classification-favorite-item{display:flex;justify-content:space-between;padding-top:.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--calcite-color-border-1)}.classification-favorite-list,.classification-favorite-input-section{margin:1.75rem 1rem}`;
12
12
  class C extends n {
13
13
  constructor() {
@@ -114,7 +114,7 @@ class C extends n {
114
114
  return this.newFavoriteClassificationName ? this.hasDuplicatedClassificationError ? this.messages.duplicatedClassificationError : "" : this.messages.emptyFavoriteError;
115
115
  }
116
116
  render() {
117
- return e`<div>${this.favoriteClassifications.length > 0 ? e`<div><calcite-label><div class="select-favorite-label">${this.messages.applyClassificationFavoriteLabel}<calcite-link @click=${() => this.showManageClassificationDialog = !0}>${this.messages.manageClassificationFavoriteBtn}</calcite-link></div><calcite-combobox label=select-calcite-combobox selection-mode=single .placeholder=${this.messages.selectFavoritePlaceholder} placeholder-icon=folder-star @calciteComboboxChange=${this.selectFavoriteClassification} .status=${this.hasUpdateError ? "invalid" : "idle"} .validationIcon=${this.hasUpdateError ? "exclamation-mark-triangle" : ""} .validationMessage=${this.hasUpdateError ? this.messages.updateWarning : ""}>${o(this.favoriteClassifications, ({ name: i }) => i, ({ name: i }) => e`<calcite-combobox-item .selected=${this.selectedFavoriteClassificationName === i} icon=folder-star .value=${i} .textLabel=${i}></calcite-combobox-item>`)}</calcite-combobox></calcite-label><div class="favorite-actions"><calcite-link icon-start=refresh @click=${this.updateFavoriteClassification}>${this.messages.updateClassificationFavoriteBtn}</calcite-link><calcite-link icon-start=star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationBtn}</calcite-link></div></div>` : e`<div class="save-new-favorite-button"><calcite-link icon-start=folder-star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationFavoriteBtn}</calcite-link></div>`}<calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.manageClassificationFavoriteLabel} .open=${this.showManageClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${() => this.showManageClassificationDialog = !1}><calcite-list class="classification-favorite-list" .label=${this.messages.classificationFavoriteListLabel ?? "Classification Favorite list label"} selection-appearance=border selection-mode=single-persist>${o(this.favoriteClassifications, ({ name: i }) => i, ({ name: i }) => e`<calcite-list-item .label=${i} .value=${i} class="classification-favorite-item"><div slot=content-end><calcite-icon icon=trash scale=s @click=${async () => await this.removeFavoriteClassification(i)}></calcite-icon></div></calcite-list-item>`)}</calcite-list><calcite-button slot=footer-end scale=l @click=${() => this.showManageClassificationDialog = !1}><div>${this.messages.favoriteClassificationBtnDone}</div></calcite-button></calcite-dialog><calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.addFavoriteDialogHeading} .open=${this.showSaveClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${() => this.showSaveClassificationDialog = !1}><calcite-label class="classification-favorite-input-section">${this.messages.addClassificationFavorite}<calcite-input id=classification-favorite-name name=classification-favorite-name scale=m .value=${this.newFavoriteClassificationName} @calciteInputInput=${this.changeFavoriteClassificationName} .status=${!this.newFavoriteClassificationName || this.hasDuplicatedClassificationError ? "invalid" : "idle"} validation-icon=exclamation-mark-triangle .validationMessage=${this.getValidationMessage()}></calcite-input></calcite-label><calcite-button scale=l slot=footer-end @click=${this.saveNewFavoriteClassification}>${this.messages.favoriteClassificationBtnDone}</calcite-button></calcite-dialog></div>`;
117
+ return e`<div>${this.favoriteClassifications.length > 0 ? e`<div><calcite-label><div class="select-favorite-label">${this.messages.applyClassificationFavoriteLabel}<calcite-link @click=${() => this.showManageClassificationDialog = !0}>${this.messages.manageClassificationFavoriteBtn}</calcite-link></div><calcite-combobox label=select-calcite-combobox selection-mode=single .placeholder=${this.messages.selectFavoritePlaceholder} placeholder-icon=folder-star @calciteComboboxChange=${this.selectFavoriteClassification} .status=${this.hasUpdateError ? "invalid" : "idle"} .validationIcon=${this.hasUpdateError ? "exclamation-mark-triangle" : void 0} .validationMessage=${this.hasUpdateError ? this.messages.updateWarning : ""}>${o(this.favoriteClassifications, ({ name: i }) => i, ({ name: i }) => e`<calcite-combobox-item .selected=${this.selectedFavoriteClassificationName === i} icon=folder-star .value=${i} .heading=${i}></calcite-combobox-item>`)}</calcite-combobox></calcite-label><div class="favorite-actions"><calcite-link icon-start=refresh @click=${this.updateFavoriteClassification}>${this.messages.updateClassificationFavoriteBtn}</calcite-link><calcite-link icon-start=star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationBtn}</calcite-link></div></div>` : e`<div class="save-new-favorite-button"><calcite-link icon-start=folder-star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationFavoriteBtn}</calcite-link></div>`}<calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.manageClassificationFavoriteLabel} .open=${this.showManageClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${() => this.showManageClassificationDialog = !1}><calcite-list class="classification-favorite-list" .label=${this.messages.classificationFavoriteListLabel ?? "Classification Favorite list label"} selection-appearance=border selection-mode=single-persist>${o(this.favoriteClassifications, ({ name: i }) => i, ({ name: i }) => e`<calcite-list-item .label=${i} .value=${i} class="classification-favorite-item"><div slot=content-end><calcite-icon icon=trash scale=s @click=${async () => await this.removeFavoriteClassification(i)}></calcite-icon></div></calcite-list-item>`)}</calcite-list><calcite-button slot=footer-end scale=l @click=${() => this.showManageClassificationDialog = !1}><div>${this.messages.favoriteClassificationBtnDone}</div></calcite-button></calcite-dialog><calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.addFavoriteDialogHeading} .open=${this.showSaveClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${() => this.showSaveClassificationDialog = !1}><calcite-label class="classification-favorite-input-section">${this.messages.addClassificationFavorite}<calcite-input id=classification-favorite-name name=classification-favorite-name scale=m .value=${this.newFavoriteClassificationName} @calciteInputInput=${this.changeFavoriteClassificationName} .status=${!this.newFavoriteClassificationName || this.hasDuplicatedClassificationError ? "invalid" : "idle"} validation-icon=exclamation-mark-triangle .validationMessage=${this.getValidationMessage()}></calcite-input></calcite-label><calcite-button scale=l slot=footer-end @click=${this.saveNewFavoriteClassification}>${this.messages.favoriteClassificationBtnDone}</calcite-button></calcite-dialog></div>`;
118
118
  }
119
119
  }
120
120
  c("arcgis-portal-classification-favorite", C);
@@ -1,12 +1 @@
1
- import "@esri/calcite-components/components/calcite-alert";
2
- import "@esri/calcite-components/components/calcite-label";
3
- import "@esri/calcite-components/components/calcite-link";
4
- import "@esri/calcite-components/components/calcite-combobox";
5
- import "@esri/calcite-components/components/calcite-combobox-item";
6
- import "@esri/calcite-components/components/calcite-dialog";
7
- import "@esri/calcite-components/components/calcite-list";
8
- import "@esri/calcite-components/components/calcite-list-item";
9
- import "@esri/calcite-components/components/calcite-icon";
10
- import "@esri/calcite-components/components/calcite-button";
11
- import "@esri/calcite-components/components/calcite-input";
12
1
  export * from "./customElement.js";
@@ -1,19 +1,34 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
3
- import { ClassificationSchema, AttributeExpressionResults } from '../../types/classification';
4
- import { PropertyValues } from 'lit';
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
3
+ import type { ClassificationSchema, AttributeExpressionResults } from "../../types/classification.js";
4
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
5
5
 
6
6
  /**
7
7
  * A web component that renders form elements for a classification schema attribute.
8
8
  *
9
9
  * @internal
10
10
  */
11
- export declare class ArcgisPortalClassificationFormElement extends LitElement {
12
- attributeKey: string;
13
- attribute: ClassificationSchema["attributes"][string];
14
- value: unknown;
15
- renderingInfo?: Pick<NonNullable<ReturnType<AttributeExpressionResults["get"]>>, "attributeValidationResult" | "valueExpressionResult">;
16
- isRequiredErrors: Set<string>;
17
- /** The attribute value has changed. */
18
- readonly arcgisAttributeValueChange: TargetedEvent<this, Record<string, unknown>>;
19
- }
11
+ export abstract class ArcgisPortalClassificationFormElement extends LitElement {
12
+ accessor attribute: ClassificationSchema["attributes"][string];
13
+ accessor attributeKey: string;
14
+ accessor isRequiredErrors: Set<string>;
15
+ /** @internal */
16
+ protected messages: Partial<{
17
+ requiredfield: string;
18
+ information: string;
19
+ selectanoption: string;
20
+ selectoptions: string;
21
+ }> & T9nMeta<{
22
+ requiredfield: string;
23
+ information: string;
24
+ selectanoption: string;
25
+ selectoptions: string;
26
+ }>;
27
+ accessor renderingInfo: Pick<NonNullable<ReturnType<AttributeExpressionResults["get"]>>, "attributeValidationResult" | "valueExpressionResult"> | undefined;
28
+ accessor value: unknown;
29
+ /** The attribute value has changed. */
30
+ readonly arcgisAttributeValueChange: import("@arcgis/lumina").TargetedEvent<this, Record<string, unknown>>;
31
+ readonly "@eventTypes": {
32
+ arcgisAttributeValueChange: ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]["detail"];
33
+ };
34
+ }
@@ -5,12 +5,12 @@ import { css as d, html as i } from "lit";
5
5
  import { u as h } from "../../chunks/useT9n.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.14 */
8
+ v5.0.0-next.141 */
9
9
  const m = d`.spacing-y{margin:var(--calcite-spacing-md) 0}.portal-classification-form-element-tooltip{display:flex;justify-content:space-between;align-items:center}`;
10
10
  function l(n, e) {
11
11
  return n.uiElement === e;
12
12
  }
13
- class v extends c {
13
+ class g extends c {
14
14
  constructor() {
15
15
  super(...arguments), this.messages = h(), this.isRequiredErrors = /* @__PURE__ */ new Set(), this.arcgisAttributeValueChange = b();
16
16
  }
@@ -48,13 +48,13 @@ class v extends c {
48
48
  if (!Array.isArray(this.renderingInfo?.valueExpressionResult))
49
49
  return;
50
50
  const e = this.value;
51
- return u(this.renderingInfo?.valueExpressionResult, (t) => t.label, (t) => i`<calcite-combobox-item .selected=${e === t.value} text-label=${t.label ?? a} .value=${t.value} data-testid=${`single-combobox-item-${t.value}`}></calcite-combobox-item>`);
51
+ return u(this.renderingInfo?.valueExpressionResult, (t) => t.label, (t) => i`<calcite-combobox-item .selected=${e === t.value} .heading=${t.label} .value=${t.value} data-testid=${`single-combobox-item-${t.value}`}></calcite-combobox-item>`);
52
52
  }
53
53
  _renderComboboxOptions() {
54
54
  if (!Array.isArray(this.renderingInfo?.valueExpressionResult))
55
55
  return;
56
56
  const e = this.value;
57
- return this.renderingInfo?.valueExpressionResult.map((t) => i`<calcite-combobox-item .selected=${e?.includes(t.value)} text-label=${t.label ?? a} .value=${t.value} data-testid=${`combobox-item-${t.value}`}></calcite-combobox-item>`);
57
+ return this.renderingInfo?.valueExpressionResult.map((t) => i`<calcite-combobox-item .selected=${e?.includes(t.value)} .heading=${t.label} .value=${t.value} data-testid=${`combobox-item-${t.value}`}></calcite-combobox-item>`);
58
58
  }
59
59
  renderMultiSelect() {
60
60
  return l(this.attribute, "multi-select") ? i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey ?? a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${(e) => {
@@ -68,7 +68,7 @@ class v extends c {
68
68
  if (!this.renderingInfo?.valueExpressionResult || Array.isArray(this.renderingInfo?.valueExpressionResult))
69
69
  return;
70
70
  const e = this.value;
71
- return Object.entries(this.renderingInfo?.valueExpressionResult).map(([t, s]) => i`<calcite-combobox-item .selected=${e?.includes(t)} text-label=${t ?? a} .value=${t}>${s.map((r) => i`<calcite-combobox-item .selected=${e?.includes(r.value)} text-label=${r.label ?? a} .value=${r.value} data-testid=${`grouped-combobox-item-${r.value}`}></calcite-combobox-item>`)}</calcite-combobox-item>`);
71
+ return Object.entries(this.renderingInfo?.valueExpressionResult).map(([t, s]) => i`<calcite-combobox-item .selected=${e?.includes(t)} .heading=${t} .value=${t}>${s.map((r) => i`<calcite-combobox-item .selected=${e?.includes(r.value)} .heading=${r.label} .value=${r.value} data-testid=${`grouped-combobox-item-${r.value}`}></calcite-combobox-item>`)}</calcite-combobox-item>`);
72
72
  }
73
73
  renderMultiGroupedSelectNested() {
74
74
  return l(this.attribute, "multi-grouped-select-nested") ? i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey ?? a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${(e) => {
@@ -97,7 +97,7 @@ class v extends c {
97
97
  }
98
98
  }
99
99
  }
100
- o("arcgis-portal-classification-form-element", v);
100
+ o("arcgis-portal-classification-form-element", g);
101
101
  export {
102
- v as ArcgisPortalClassificationFormElement
102
+ g as ArcgisPortalClassificationFormElement
103
103
  };
@@ -1,9 +1 @@
1
- import "@esri/calcite-components/components/calcite-label";
2
- import "@esri/calcite-components/components/calcite-checkbox";
3
- import "@esri/calcite-components/components/calcite-input-date-picker";
4
- import "@esri/calcite-components/components/calcite-icon";
5
- import "@esri/calcite-components/components/calcite-tooltip";
6
- import "@esri/calcite-components/components/calcite-input-text";
7
- import "@esri/calcite-components/components/calcite-combobox";
8
- import "@esri/calcite-components/components/calcite-combobox-item";
9
1
  export * from "./customElement.js";