@arcgis/common-components 4.29.0-beta.5 → 4.29.0-beta.51

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 (137) hide show
  1. package/README.md +1 -1
  2. package/dist/arcgis-common-components/arcgis-common-components.esm.js +1 -1
  3. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.ar.json +78 -0
  4. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.bg.json +78 -0
  5. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.bs.json +78 -0
  6. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.ca.json +78 -0
  7. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.cs.json +78 -0
  8. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.da.json +78 -0
  9. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.de.json +78 -0
  10. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.el.json +78 -0
  11. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.en.json +78 -0
  12. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.es.json +78 -0
  13. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.et.json +78 -0
  14. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.fi.json +78 -0
  15. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.fr.json +78 -0
  16. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.he.json +78 -0
  17. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.hr.json +78 -0
  18. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.hu.json +78 -0
  19. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.id.json +78 -0
  20. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.it.json +78 -0
  21. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.ja.json +78 -0
  22. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.ko.json +78 -0
  23. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.lt.json +78 -0
  24. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.lv.json +78 -0
  25. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.nb.json +78 -0
  26. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.nl.json +78 -0
  27. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.pl.json +78 -0
  28. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.pt-BR.json +78 -0
  29. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.pt-PT.json +78 -0
  30. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.ro.json +78 -0
  31. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.ru.json +78 -0
  32. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.sk.json +78 -0
  33. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.sl.json +78 -0
  34. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.sr.json +78 -0
  35. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.sv.json +78 -0
  36. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.th.json +78 -0
  37. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.tr.json +78 -0
  38. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.uk.json +78 -0
  39. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.vi.json +78 -0
  40. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.zh-CN.json +78 -0
  41. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.zh-HK.json +78 -0
  42. package/dist/arcgis-common-components/assets/field-info/t9n/field-info.t9n.zh-TW.json +78 -0
  43. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.ar.json +17 -0
  44. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.bg.json +17 -0
  45. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.bs.json +17 -0
  46. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.ca.json +17 -0
  47. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.cs.json +17 -0
  48. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.da.json +17 -0
  49. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.de.json +17 -0
  50. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.el.json +17 -0
  51. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.en.json +17 -0
  52. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.es.json +17 -0
  53. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.et.json +17 -0
  54. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.fi.json +17 -0
  55. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.fr.json +17 -0
  56. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.he.json +17 -0
  57. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.hr.json +17 -0
  58. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.hu.json +17 -0
  59. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.id.json +17 -0
  60. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.it.json +17 -0
  61. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.ja.json +17 -0
  62. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.ko.json +17 -0
  63. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.lt.json +17 -0
  64. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.lv.json +17 -0
  65. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.nb.json +17 -0
  66. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.nl.json +17 -0
  67. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.pl.json +17 -0
  68. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.pt-BR.json +17 -0
  69. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.pt-PT.json +17 -0
  70. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.ro.json +17 -0
  71. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.ru.json +17 -0
  72. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.sk.json +17 -0
  73. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.sl.json +17 -0
  74. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.sr.json +17 -0
  75. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.sv.json +17 -0
  76. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.th.json +17 -0
  77. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.tr.json +17 -0
  78. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.uk.json +17 -0
  79. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.vi.json +17 -0
  80. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.zh-CN.json +17 -0
  81. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.zh-HK.json +17 -0
  82. package/dist/arcgis-common-components/assets/field-pick-list/t9n/field-pick-list.t9n.zh-TW.json +17 -0
  83. package/dist/arcgis-common-components/p-6c7d2684.js +1 -0
  84. package/dist/arcgis-common-components/p-7318a1d1.entry.js +1 -0
  85. package/dist/arcgis-common-components/p-a91ab432.js +2 -0
  86. package/dist/arcgis-common-components/p-efab92a8.entry.js +1 -0
  87. package/dist/cjs/arcgis-common-components.cjs.js +3 -3
  88. package/dist/cjs/arcgis-field-info.cjs.entry.js +1025 -0
  89. package/dist/cjs/arcgis-field-pick-list.cjs.entry.js +245 -0
  90. package/dist/cjs/index-5ec7f592.js +90 -0
  91. package/dist/cjs/index-e0422bc8.js +1887 -0
  92. package/dist/cjs/loader.cjs.js +3 -12
  93. package/dist/components/{arcgis-api-key.d.ts → arcgis-field-info.d.ts} +4 -4
  94. package/dist/components/arcgis-field-info.js +6 -0
  95. package/dist/components/{arcgis-identity.d.ts → arcgis-field-pick-list.d.ts} +4 -4
  96. package/dist/components/arcgis-field-pick-list.js +301 -0
  97. package/dist/components/field-info.js +1108 -0
  98. package/dist/components/index.d.ts +5 -4
  99. package/dist/components/index.js +1 -3
  100. package/dist/esm/arcgis-common-components.js +4 -4
  101. package/dist/esm/arcgis-field-info.entry.js +1021 -0
  102. package/dist/esm/arcgis-field-pick-list.entry.js +241 -0
  103. package/dist/esm/index-0c129ec4.js +1856 -0
  104. package/dist/esm/index-ba4fe890.js +59 -0
  105. package/dist/esm/loader.js +4 -13
  106. package/dist/loader/index.d.ts +2 -2
  107. package/dist/types/components/field-info/field-info.d.ts +68 -0
  108. package/dist/types/components/field-info/t9n-types.d.ts +82 -0
  109. package/dist/types/components/field-info/utils/basic.d.ts +44 -0
  110. package/dist/types/components/field-info/utils/feature.d.ts +17 -0
  111. package/dist/types/components/field-info/utils/field.d.ts +25 -0
  112. package/dist/types/components/field-info/utils/index.d.ts +3 -0
  113. package/dist/types/components/field-pick-list/field-pick-list.d.ts +122 -0
  114. package/dist/types/components/field-pick-list/t9n-types.d.ts +17 -0
  115. package/dist/types/components/field-pick-list/utils/types.d.ts +25 -0
  116. package/dist/types/components.d.ts +258 -49
  117. package/dist/types/stencil-public-runtime.d.ts +61 -17
  118. package/package.json +24 -26
  119. package/dist/arcgis-common-components/p-3768a3bb.entry.js +0 -1
  120. package/dist/arcgis-common-components/p-84fccaad.entry.js +0 -1
  121. package/dist/arcgis-common-components/p-9625972e.js +0 -1
  122. package/dist/arcgis-common-components/p-b0c98bba.js +0 -2
  123. package/dist/cjs/arcgis-api-key.cjs.entry.js +0 -51
  124. package/dist/cjs/arcgis-identity.cjs.entry.js +0 -139
  125. package/dist/cjs/index-e8c59179.js +0 -858
  126. package/dist/cjs/index-f1a937af.js +0 -65
  127. package/dist/components/arcgis-api-key.js +0 -67
  128. package/dist/components/arcgis-identity.js +0 -165
  129. package/dist/components/index2.js +0 -40
  130. package/dist/esm/arcgis-api-key.entry.js +0 -47
  131. package/dist/esm/arcgis-identity.entry.js +0 -135
  132. package/dist/esm/index-1f7e8e45.js +0 -831
  133. package/dist/esm/index-71b437b1.js +0 -40
  134. package/dist/esm/polyfills/css-shim.js +0 -1
  135. package/dist/types/components/arcgis-api-key/arcgis-api-key.d.ts +0 -9
  136. package/dist/types/components/arcgis-identity/arcgis-identity.d.ts +0 -31
  137. package/dist/types/components/types.d.ts +0 -10
@@ -5,81 +5,290 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { ArcGISCredential } from "./components/types";
8
+ import { FieldInfoLayer } from "./components/field-info/utils";
9
+ import { IPickListFieldInfo, IPopoverProps } from "./components/field-pick-list/utils/types";
10
+ import { LastSortyBy } from "./components/field-pick-list/field-pick-list";
11
+ export { FieldInfoLayer } from "./components/field-info/utils";
12
+ export { IPickListFieldInfo, IPopoverProps } from "./components/field-pick-list/utils/types";
13
+ export { LastSortyBy } from "./components/field-pick-list/field-pick-list";
9
14
  export namespace Components {
10
- interface ArcgisApiKey {
11
- "apiKey": string;
15
+ interface ArcgisFieldInfo {
16
+ /**
17
+ * field name
18
+ */
19
+ "fieldName": string;
20
+ /**
21
+ * Show or hide field statistics. If true then no top 10 values for string and no stats for number and date fields.
22
+ */
23
+ "hideStatistics": boolean;
24
+ /**
25
+ * layer
26
+ */
27
+ "layer": FieldInfoLayer;
28
+ /**
29
+ * view
30
+ */
31
+ "view"?: __esri.View;
12
32
  }
13
- interface ArcgisIdentity {
14
- "appId": string;
15
- "credential"?: ArcGISCredential;
16
- "expiration": number;
17
- "identity": __esri.IdentityManager;
18
- "locale": string;
19
- "popupCallbackUrl": string;
20
- "portalUrl": string;
21
- "preserveUrlHash": boolean;
22
- "signIn": () => Promise<ArcGISCredential>;
23
- "signOut": () => Promise<void>;
24
- "usePopup": boolean;
33
+ interface ArcgisFieldPickList {
34
+ /**
35
+ * All display fields with name, alias, type and description, sorted by default order. Description is optional.
36
+ */
37
+ "fields": IPickListFieldInfo[];
38
+ /**
39
+ * Filter placeholder text.
40
+ */
41
+ "filterPlaceholderText"?: string;
42
+ /**
43
+ * Heading text.
44
+ */
45
+ "heading"?: string;
46
+ /**
47
+ * Required if showFieldInfo is true.
48
+ */
49
+ "layer"?: | __esri.FeatureLayer
50
+ | __esri.Sublayer
51
+ | __esri.OGCFeatureLayer
52
+ | __esri.WFSLayer
53
+ | __esri.ImageryLayer
54
+ | __esri.ImageryTileLayer
55
+ | __esri.CSVLayer
56
+ | __esri.StreamLayer
57
+ | __esri.GeoJSONLayer
58
+ | __esri.SubtypeGroupLayer
59
+ | __esri.SubtypeSublayer;
60
+ /**
61
+ * Required if showFieldInfo is true.
62
+ */
63
+ "mapView"?: __esri.View;
64
+ /**
65
+ * Allow multiple selection. If multiple is set to false the popover will close as soon as another item gets selected.
66
+ */
67
+ "multiple": boolean;
68
+ /**
69
+ * Ok button text. Ok button only shows when multiple set to true.
70
+ */
71
+ "okBtnText"?: string;
72
+ /**
73
+ * Reference element for the popover.
74
+ */
75
+ "popoverProps": IPopoverProps;
76
+ "reposition": () => Promise<void>;
77
+ /**
78
+ * Initial selected fields. Will use selectedFields[0] when multiple = false.
79
+ */
80
+ "selectedFields": string[];
81
+ "setFocus": () => Promise<void>;
82
+ /**
83
+ * Display cancel button.
84
+ */
85
+ "showCancel": boolean;
86
+ /**
87
+ * Display description. By default only displays field alias.
88
+ */
89
+ "showDescription": boolean;
90
+ /**
91
+ * Display field info button.
92
+ */
93
+ "showFieldInfo": boolean;
94
+ /**
95
+ * Display field name. By default only displays field alias.
96
+ */
97
+ "showFieldName": boolean;
98
+ /**
99
+ * Display filter option based on number of fields.
100
+ */
101
+ "showFilterLength": number;
102
+ /**
103
+ * Display select all/deselect all button. Only applicable if multiple is set to true.
104
+ */
105
+ "showSelectionAll": boolean;
106
+ /**
107
+ * Display sort menu button.
108
+ */
109
+ "showSort": boolean;
110
+ /**
111
+ * Initial sort order.
112
+ */
113
+ "sortBy"?: LastSortyBy;
25
114
  }
26
115
  }
27
- export interface ArcgisApiKeyCustomEvent<T> extends CustomEvent<T> {
116
+ export interface ArcgisFieldInfoCustomEvent<T> extends CustomEvent<T> {
28
117
  detail: T;
29
- target: HTMLArcgisApiKeyElement;
118
+ target: HTMLArcgisFieldInfoElement;
30
119
  }
31
- export interface ArcgisIdentityCustomEvent<T> extends CustomEvent<T> {
120
+ export interface ArcgisFieldPickListCustomEvent<T> extends CustomEvent<T> {
32
121
  detail: T;
33
- target: HTMLArcgisIdentityElement;
122
+ target: HTMLArcgisFieldPickListElement;
34
123
  }
35
124
  declare global {
36
- interface HTMLArcgisApiKeyElement extends Components.ArcgisApiKey, HTMLStencilElement {
125
+ interface HTMLArcgisFieldInfoElementEventMap {
126
+ "arcgisFieldInfoComplete": void;
37
127
  }
38
- var HTMLArcgisApiKeyElement: {
39
- prototype: HTMLArcgisApiKeyElement;
40
- new (): HTMLArcgisApiKeyElement;
128
+ interface HTMLArcgisFieldInfoElement extends Components.ArcgisFieldInfo, HTMLStencilElement {
129
+ addEventListener<K extends keyof HTMLArcgisFieldInfoElementEventMap>(type: K, listener: (this: HTMLArcgisFieldInfoElement, ev: ArcgisFieldInfoCustomEvent<HTMLArcgisFieldInfoElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
130
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
131
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
132
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
133
+ removeEventListener<K extends keyof HTMLArcgisFieldInfoElementEventMap>(type: K, listener: (this: HTMLArcgisFieldInfoElement, ev: ArcgisFieldInfoCustomEvent<HTMLArcgisFieldInfoElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
134
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
135
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
136
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
137
+ }
138
+ var HTMLArcgisFieldInfoElement: {
139
+ prototype: HTMLArcgisFieldInfoElement;
140
+ new (): HTMLArcgisFieldInfoElement;
41
141
  };
42
- interface HTMLArcgisIdentityElement extends Components.ArcgisIdentity, HTMLStencilElement {
142
+ interface HTMLArcgisFieldPickListElementEventMap {
143
+ "arcgisFieldPickListDismissed": any;
144
+ "arcgisFieldPickListChange": any;
145
+ "arcgisFieldPickListSortByChange": LastSortyBy;
146
+ }
147
+ interface HTMLArcgisFieldPickListElement extends Components.ArcgisFieldPickList, HTMLStencilElement {
148
+ addEventListener<K extends keyof HTMLArcgisFieldPickListElementEventMap>(type: K, listener: (this: HTMLArcgisFieldPickListElement, ev: ArcgisFieldPickListCustomEvent<HTMLArcgisFieldPickListElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
149
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
150
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
151
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
152
+ removeEventListener<K extends keyof HTMLArcgisFieldPickListElementEventMap>(type: K, listener: (this: HTMLArcgisFieldPickListElement, ev: ArcgisFieldPickListCustomEvent<HTMLArcgisFieldPickListElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
153
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
154
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
155
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
43
156
  }
44
- var HTMLArcgisIdentityElement: {
45
- prototype: HTMLArcgisIdentityElement;
46
- new (): HTMLArcgisIdentityElement;
157
+ var HTMLArcgisFieldPickListElement: {
158
+ prototype: HTMLArcgisFieldPickListElement;
159
+ new (): HTMLArcgisFieldPickListElement;
47
160
  };
48
161
  interface HTMLElementTagNameMap {
49
- "arcgis-api-key": HTMLArcgisApiKeyElement;
50
- "arcgis-identity": HTMLArcgisIdentityElement;
162
+ "arcgis-field-info": HTMLArcgisFieldInfoElement;
163
+ "arcgis-field-pick-list": HTMLArcgisFieldPickListElement;
51
164
  }
52
165
  }
53
166
  declare namespace LocalJSX {
54
- interface ArcgisApiKey {
55
- "apiKey"?: string;
56
- "onApiKeyReady"?: (event: ArcgisApiKeyCustomEvent<boolean>) => void;
167
+ interface ArcgisFieldInfo {
168
+ /**
169
+ * field name
170
+ */
171
+ "fieldName"?: string;
172
+ /**
173
+ * Show or hide field statistics. If true then no top 10 values for string and no stats for number and date fields.
174
+ */
175
+ "hideStatistics"?: boolean;
176
+ /**
177
+ * layer
178
+ */
179
+ "layer"?: FieldInfoLayer;
180
+ /**
181
+ * once all information is displayed
182
+ */
183
+ "onArcgisFieldInfoComplete"?: (event: ArcgisFieldInfoCustomEvent<void>) => void;
184
+ /**
185
+ * view
186
+ */
187
+ "view"?: __esri.View;
57
188
  }
58
- interface ArcgisIdentity {
59
- "appId"?: string;
60
- "credential"?: ArcGISCredential;
61
- "expiration"?: number;
62
- "identity"?: __esri.IdentityManager;
63
- "locale"?: string;
64
- "onCredentialCreate"?: (event: ArcgisIdentityCustomEvent<__esri.IdentityManagerCredentialCreateEvent>) => void;
65
- "onDialogCreate"?: (event: ArcgisIdentityCustomEvent<__esri.IdentityManagerDialogCreateEvent>) => void;
66
- "onIdentityReady"?: (event: ArcgisIdentityCustomEvent<{ identity: __esri.IdentityManager; ready: boolean }>) => void;
67
- "popupCallbackUrl"?: string;
68
- "portalUrl"?: string;
69
- "preserveUrlHash"?: boolean;
70
- "usePopup"?: boolean;
189
+ interface ArcgisFieldPickList {
190
+ /**
191
+ * All display fields with name, alias, type and description, sorted by default order. Description is optional.
192
+ */
193
+ "fields": IPickListFieldInfo[];
194
+ /**
195
+ * Filter placeholder text.
196
+ */
197
+ "filterPlaceholderText"?: string;
198
+ /**
199
+ * Heading text.
200
+ */
201
+ "heading"?: string;
202
+ /**
203
+ * Required if showFieldInfo is true.
204
+ */
205
+ "layer"?: | __esri.FeatureLayer
206
+ | __esri.Sublayer
207
+ | __esri.OGCFeatureLayer
208
+ | __esri.WFSLayer
209
+ | __esri.ImageryLayer
210
+ | __esri.ImageryTileLayer
211
+ | __esri.CSVLayer
212
+ | __esri.StreamLayer
213
+ | __esri.GeoJSONLayer
214
+ | __esri.SubtypeGroupLayer
215
+ | __esri.SubtypeSublayer;
216
+ /**
217
+ * Required if showFieldInfo is true.
218
+ */
219
+ "mapView"?: __esri.View;
220
+ /**
221
+ * Allow multiple selection. If multiple is set to false the popover will close as soon as another item gets selected.
222
+ */
223
+ "multiple"?: boolean;
224
+ /**
225
+ * Ok button text. Ok button only shows when multiple set to true.
226
+ */
227
+ "okBtnText"?: string;
228
+ /**
229
+ * This event fires when selection changes. returns {selectedFields: [selectedFields]}. Use selectedFields[0] for multiple = false. returns {selectedFields: []} when nothing is selected.
230
+ */
231
+ "onArcgisFieldPickListChange"?: (event: ArcgisFieldPickListCustomEvent<any>) => void;
232
+ /**
233
+ * This event fires when user hits ok/cancel or closes the panel. returns {selectedFields: [selectedFields]}. Use selectedFields[0] for multiple = false. returns {selectedFields: []} when nothing is selected. returns null on "Cancel" or closing the panel
234
+ */
235
+ "onArcgisFieldPickListDismissed"?: (event: ArcgisFieldPickListCustomEvent<any>) => void;
236
+ /**
237
+ * This event fires when the sort order changes.
238
+ */
239
+ "onArcgisFieldPickListSortByChange"?: (event: ArcgisFieldPickListCustomEvent<LastSortyBy>) => void;
240
+ /**
241
+ * Reference element for the popover.
242
+ */
243
+ "popoverProps": IPopoverProps;
244
+ /**
245
+ * Initial selected fields. Will use selectedFields[0] when multiple = false.
246
+ */
247
+ "selectedFields"?: string[];
248
+ /**
249
+ * Display cancel button.
250
+ */
251
+ "showCancel"?: boolean;
252
+ /**
253
+ * Display description. By default only displays field alias.
254
+ */
255
+ "showDescription"?: boolean;
256
+ /**
257
+ * Display field info button.
258
+ */
259
+ "showFieldInfo"?: boolean;
260
+ /**
261
+ * Display field name. By default only displays field alias.
262
+ */
263
+ "showFieldName"?: boolean;
264
+ /**
265
+ * Display filter option based on number of fields.
266
+ */
267
+ "showFilterLength"?: number;
268
+ /**
269
+ * Display select all/deselect all button. Only applicable if multiple is set to true.
270
+ */
271
+ "showSelectionAll"?: boolean;
272
+ /**
273
+ * Display sort menu button.
274
+ */
275
+ "showSort"?: boolean;
276
+ /**
277
+ * Initial sort order.
278
+ */
279
+ "sortBy"?: LastSortyBy;
71
280
  }
72
281
  interface IntrinsicElements {
73
- "arcgis-api-key": ArcgisApiKey;
74
- "arcgis-identity": ArcgisIdentity;
282
+ "arcgis-field-info": ArcgisFieldInfo;
283
+ "arcgis-field-pick-list": ArcgisFieldPickList;
75
284
  }
76
285
  }
77
286
  export { LocalJSX as JSX };
78
287
  declare module "@stencil/core" {
79
288
  export namespace JSX {
80
289
  interface IntrinsicElements {
81
- "arcgis-api-key": LocalJSX.ArcgisApiKey & JSXBase.HTMLAttributes<HTMLArcgisApiKeyElement>;
82
- "arcgis-identity": LocalJSX.ArcgisIdentity & JSXBase.HTMLAttributes<HTMLArcgisIdentityElement>;
290
+ "arcgis-field-info": LocalJSX.ArcgisFieldInfo & JSXBase.HTMLAttributes<HTMLArcgisFieldInfoElement>;
291
+ "arcgis-field-pick-list": LocalJSX.ArcgisFieldPickList & JSXBase.HTMLAttributes<HTMLArcgisFieldPickListElement>;
83
292
  }
84
293
  }
85
294
  }
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
3
3
  (opts?: ComponentOptions): ClassDecorator;
4
4
  }
5
5
  export interface ComponentOptions {
6
+ /**
7
+ * When set to `true` this component will be form-associated. See
8
+ * https://stenciljs.com/docs/next/form-associated documentation on how to
9
+ * build form-associated Stencil components that integrate into forms like
10
+ * native browser elements such as `<input>` and `<textarea>`.
11
+ *
12
+ * The {@link AttachInternals} decorator allows for access to the
13
+ * `ElementInternals` object to modify the associated form.
14
+ */
15
+ formAssociated?: boolean;
6
16
  /**
7
17
  * Tag name of the web component. Ideally, the tag name must be globally unique,
8
18
  * so it's recommended to choose an unique prefix for all your components within the same collection.
@@ -62,7 +72,7 @@ export interface PropOptions {
62
72
  /**
63
73
  * The name of the associated DOM attribute.
64
74
  * Stencil uses different heuristics to determine the default name of the attribute,
65
- * but using this property, you can override the default behaviour.
75
+ * but using this property, you can override the default behavior.
66
76
  */
67
77
  attribute?: string | null;
68
78
  /**
@@ -107,6 +117,9 @@ export interface EventOptions {
107
117
  */
108
118
  composed?: boolean;
109
119
  }
120
+ export interface AttachInternalsDecorator {
121
+ (): PropertyDecorator;
122
+ }
110
123
  export interface ListenDecorator {
111
124
  (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
112
125
  }
@@ -128,7 +141,7 @@ export interface ListenOptions {
128
141
  * By default, Stencil uses several heuristics to determine if
129
142
  * it must attach a `passive` event listener or not.
130
143
  *
131
- * Using the `passive` option can be used to change the default behaviour.
144
+ * Using the `passive` option can be used to change the default behavior.
132
145
  * Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
133
146
  */
134
147
  passive?: boolean;
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
175
188
  * https://stenciljs.com/docs/events
176
189
  */
177
190
  export declare const Event: EventDecorator;
191
+ /**
192
+ * If the `formAssociated` option is set in options passed to the
193
+ * `@Component()` decorator then this decorator may be used to get access to the
194
+ * `ElementInternals` instance associated with the component.
195
+ */
196
+ export declare const AttachInternals: AttachInternalsDecorator;
178
197
  /**
179
198
  * The `Listen()` decorator is for listening DOM events, including the ones
180
199
  * dispatched from `@Events()`.
@@ -432,7 +451,7 @@ export interface QueueApi {
432
451
  /**
433
452
  * Host
434
453
  */
435
- interface HostAttributes {
454
+ export interface HostAttributes {
436
455
  class?: string | {
437
456
  [className: string]: boolean;
438
457
  };
@@ -471,7 +490,7 @@ export interface FunctionalUtilities {
471
490
  /**
472
491
  * Utility for reading the children of a functional component at runtime.
473
492
  * Since the Stencil runtime uses a different interface for children it is
474
- * not recommendeded to read the children directly, and is preferable to use
493
+ * not recommended to read the children directly, and is preferable to use
475
494
  * this utility to, for instance, perform a side effect for each child.
476
495
  */
477
496
  forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
@@ -791,6 +810,9 @@ export declare namespace JSXBase {
791
810
  name?: string;
792
811
  type?: string;
793
812
  value?: string | string[] | number;
813
+ popoverTargetAction?: string;
814
+ popoverTargetElement?: Element | null;
815
+ popoverTarget?: string;
794
816
  }
795
817
  interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
796
818
  height?: number | string;
@@ -812,6 +834,7 @@ export declare namespace JSXBase {
812
834
  datetime?: string;
813
835
  }
814
836
  interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
837
+ onCancel?: (event: Event) => void;
815
838
  onClose?: (event: Event) => void;
816
839
  open?: boolean;
817
840
  returnValue?: string;
@@ -871,6 +894,8 @@ export declare namespace JSXBase {
871
894
  }
872
895
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
873
896
  alt?: string;
897
+ crossOrigin?: string;
898
+ crossorigin?: string;
874
899
  decoding?: 'async' | 'auto' | 'sync';
875
900
  importance?: 'low' | 'auto' | 'high';
876
901
  height?: number | string;
@@ -892,8 +917,8 @@ export declare namespace JSXBase {
892
917
  accept?: string;
893
918
  allowdirs?: boolean;
894
919
  alt?: string;
895
- autoCapitalize?: any;
896
- autocapitalize?: any;
920
+ autoCapitalize?: string;
921
+ autocapitalize?: string;
897
922
  autoComplete?: string;
898
923
  autocomplete?: string;
899
924
  autoFocus?: boolean;
@@ -929,6 +954,8 @@ export declare namespace JSXBase {
929
954
  minlength?: number | string;
930
955
  multiple?: boolean;
931
956
  name?: string;
957
+ onSelect?: (event: Event) => void;
958
+ onselect?: (event: Event) => void;
932
959
  pattern?: string;
933
960
  placeholder?: string;
934
961
  readOnly?: boolean;
@@ -947,6 +974,9 @@ export declare namespace JSXBase {
947
974
  webkitdirectory?: boolean;
948
975
  webkitEntries?: any;
949
976
  width?: number | string;
977
+ popoverTargetAction?: string;
978
+ popoverTargetElement?: Element | null;
979
+ popoverTarget?: string;
950
980
  }
951
981
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
952
982
  autoFocus?: boolean;
@@ -1110,11 +1140,13 @@ export declare namespace JSXBase {
1110
1140
  autocomplete?: string;
1111
1141
  }
1112
1142
  interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1143
+ height?: number;
1113
1144
  media?: string;
1114
1145
  sizes?: string;
1115
1146
  src?: string;
1116
1147
  srcSet?: string;
1117
1148
  type?: string;
1149
+ width?: number;
1118
1150
  }
1119
1151
  interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1120
1152
  media?: string;
@@ -1130,6 +1162,8 @@ export declare namespace JSXBase {
1130
1162
  summary?: string;
1131
1163
  }
1132
1164
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1165
+ autoComplete?: string;
1166
+ autocomplete?: string;
1133
1167
  autoFocus?: boolean;
1134
1168
  autofocus?: boolean | string;
1135
1169
  cols?: number;
@@ -1140,6 +1174,8 @@ export declare namespace JSXBase {
1140
1174
  minLength?: number;
1141
1175
  minlength?: number | string;
1142
1176
  name?: string;
1177
+ onSelect?: (event: Event) => void;
1178
+ onselect?: (event: Event) => void;
1143
1179
  placeholder?: string;
1144
1180
  readOnly?: boolean;
1145
1181
  readonly?: boolean | string;
@@ -1193,6 +1229,7 @@ export declare namespace JSXBase {
1193
1229
  draggable?: boolean;
1194
1230
  hidden?: boolean;
1195
1231
  id?: string;
1232
+ inert?: boolean;
1196
1233
  lang?: string;
1197
1234
  spellcheck?: 'true' | 'false' | any;
1198
1235
  style?: {
@@ -1201,6 +1238,7 @@ export declare namespace JSXBase {
1201
1238
  tabIndex?: number;
1202
1239
  tabindex?: number | string;
1203
1240
  title?: string;
1241
+ popover?: string | null;
1204
1242
  inputMode?: string;
1205
1243
  inputmode?: string;
1206
1244
  enterKeyHint?: string;
@@ -1217,8 +1255,8 @@ export declare namespace JSXBase {
1217
1255
  resource?: string;
1218
1256
  typeof?: string;
1219
1257
  vocab?: string;
1220
- autoCapitalize?: any;
1221
- autocapitalize?: any;
1258
+ autoCapitalize?: string;
1259
+ autocapitalize?: string;
1222
1260
  autoCorrect?: string;
1223
1261
  autocorrect?: string;
1224
1262
  autoSave?: string;
@@ -1286,7 +1324,7 @@ export declare namespace JSXBase {
1286
1324
  clipPathUnits?: number | string;
1287
1325
  'clip-rule'?: number | string;
1288
1326
  'color-interpolation'?: number | string;
1289
- 'color-interpolation-filters'?: 'auto' | 's-rGB' | 'linear-rGB' | 'inherit';
1327
+ 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
1290
1328
  'color-profile'?: number | string;
1291
1329
  'color-rendering'?: number | string;
1292
1330
  contentScriptType?: number | string;
@@ -1509,12 +1547,12 @@ export declare namespace JSXBase {
1509
1547
  onCutCapture?: (event: ClipboardEvent) => void;
1510
1548
  onPaste?: (event: ClipboardEvent) => void;
1511
1549
  onPasteCapture?: (event: ClipboardEvent) => void;
1512
- onCompositionEnd?: (event: CompositionEvent) => void;
1513
- onCompositionEndCapture?: (event: CompositionEvent) => void;
1514
- onCompositionStart?: (event: CompositionEvent) => void;
1515
- onCompositionStartCapture?: (event: CompositionEvent) => void;
1516
- onCompositionUpdate?: (event: CompositionEvent) => void;
1517
- onCompositionUpdateCapture?: (event: CompositionEvent) => void;
1550
+ onCompositionend?: (event: CompositionEvent) => void;
1551
+ onCompositionendCapture?: (event: CompositionEvent) => void;
1552
+ onCompositionstart?: (event: CompositionEvent) => void;
1553
+ onCompositionstartCapture?: (event: CompositionEvent) => void;
1554
+ onCompositionupdate?: (event: CompositionEvent) => void;
1555
+ onCompositionupdateCapture?: (event: CompositionEvent) => void;
1518
1556
  onFocus?: (event: FocusEvent) => void;
1519
1557
  onFocusCapture?: (event: FocusEvent) => void;
1520
1558
  onFocusin?: (event: FocusEvent) => void;
@@ -1525,8 +1563,8 @@ export declare namespace JSXBase {
1525
1563
  onBlurCapture?: (event: FocusEvent) => void;
1526
1564
  onChange?: (event: Event) => void;
1527
1565
  onChangeCapture?: (event: Event) => void;
1528
- onInput?: (event: Event) => void;
1529
- onInputCapture?: (event: Event) => void;
1566
+ onInput?: (event: InputEvent) => void;
1567
+ onInputCapture?: (event: InputEvent) => void;
1530
1568
  onReset?: (event: Event) => void;
1531
1569
  onResetCapture?: (event: Event) => void;
1532
1570
  onSubmit?: (event: Event) => void;
@@ -1616,8 +1654,14 @@ export declare namespace JSXBase {
1616
1654
  onAnimationEndCapture?: (event: AnimationEvent) => void;
1617
1655
  onAnimationIteration?: (event: AnimationEvent) => void;
1618
1656
  onAnimationIterationCapture?: (event: AnimationEvent) => void;
1657
+ onTransitionCancel?: (event: TransitionEvent) => void;
1658
+ onTransitionCancelCapture?: (event: TransitionEvent) => void;
1619
1659
  onTransitionEnd?: (event: TransitionEvent) => void;
1620
1660
  onTransitionEndCapture?: (event: TransitionEvent) => void;
1661
+ onTransitionRun?: (event: TransitionEvent) => void;
1662
+ onTransitionRunCapture?: (event: TransitionEvent) => void;
1663
+ onTransitionStart?: (event: TransitionEvent) => void;
1664
+ onTransitionStartCapture?: (event: TransitionEvent) => void;
1621
1665
  }
1622
1666
  }
1623
1667
  export interface JSXAttributes<T = Element> {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@arcgis/common-components",
3
3
  "description": "ArcGIS Common Components",
4
4
  "homepage": "https://developers.arcgis.com/javascript/latest/",
5
- "version": "4.29.0-beta.5",
5
+ "version": "4.29.0-beta.51",
6
6
  "module": "dist/components/index.js",
7
7
  "main": "dist/index.cjs.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -34,8 +34,8 @@
34
34
  "start:storybook": "storybook dev -c .storybook/internal --quiet",
35
35
  "start:external-storybook": "kill-port 6019 && storybook dev -c .storybook/external -p 6019 --quiet",
36
36
  "watch": "yarn build:dev --watch",
37
- "build": "yarn build:components",
38
- "build:dev": "yarn build:components:dev",
37
+ "build": "yarn pre && yarn build:components",
38
+ "build:dev": "yarn pre && yarn build:components:dev",
39
39
  "build:storybook": "storybook build -c .storybook/internal --quiet",
40
40
  "build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
41
41
  "build:components": "stencil build",
@@ -45,48 +45,46 @@
45
45
  "test:e2e": "stencil test --e2e",
46
46
  "test.watch": "stencil test --spec --e2e --watchAll",
47
47
  "clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
48
- "lint": "eslint .",
49
- "generate": "stencil generate",
50
- "prettier": "prettier . --write"
48
+ "pre": "rimraf ./dist ./www && awc-build-t9n-types",
49
+ "generate": "stencil generate"
51
50
  },
52
51
  "dependencies": {
53
- "@stencil/core": "2.22.3"
52
+ "@stencil/core": "4.8.2"
54
53
  },
55
54
  "devDependencies": {
56
- "@arcgis/components-plugins": "4.29.0-beta.5",
55
+ "@arcgis/components-plugins": "4.29.0-beta.51",
56
+ "@arcgis/components-utils": "4.29.0-beta.51",
57
57
  "@arcgis/core": ">=4.29.0-next <4.30",
58
- "@arcgis/core-adapter": "4.29.0-beta.5",
59
- "@arcgis/eslint-config": "1.0.0",
60
- "@arcgis/map-components": "4.29.0-beta.5",
58
+ "@arcgis/core-adapter": "4.29.0-beta.51",
59
+ "@arcgis/map-components": "4.29.0-beta.51",
61
60
  "@arcgis/typescript-config": "1.0.0",
62
- "@esri/calcite-components": "^1.8.0",
61
+ "@esri/calcite-components": "^2.1.0",
63
62
  "@stencil/angular-output-target": "0.8.1",
64
63
  "@stencil/react-output-target": "0.5.3",
65
- "@stencil/sass": "^2.0.4",
66
- "@storybook/addon-a11y": "^7.4.5",
67
- "@storybook/addon-essentials": "^7.4.5",
68
- "@storybook/addon-links": "^7.4.5",
69
- "@storybook/web-components": "^7.4.5",
70
- "@storybook/web-components-vite": "^7.4.5",
64
+ "@stencil/sass": "^3.0.0",
65
+ "@storybook/addon-a11y": "^7.6.0",
66
+ "@storybook/addon-essentials": "^7.6.0",
67
+ "@storybook/addon-links": "^7.6.0",
68
+ "@storybook/web-components": "^7.6.0",
69
+ "@storybook/web-components-vite": "^7.6.0",
71
70
  "@types/jest": "^29.5.0",
72
- "eslint": "^8.51.0",
71
+ "eslint": "^8.55.0",
73
72
  "jest": "^29.5.0",
74
73
  "jest-cli": "^29.5.0",
75
74
  "kill-port": "^2.0.1",
76
- "lit": "^2.8.0",
77
- "prettier": "^3.0.0",
75
+ "lit": "^3.1.0",
78
76
  "puppeteer": "^20.5.0",
79
77
  "react": "^18.2.0",
80
78
  "react-dom": "^18.2.0",
81
79
  "resolve-pkg": "^2.0.0",
82
80
  "rimraf": "^5.0.0",
83
- "storybook": "^7.4.5",
84
- "typescript": "4.9.5",
85
- "vite": "^4.4.9"
81
+ "storybook": "^7.6.0",
82
+ "typescript": "5.2.2",
83
+ "vite": "^4.5.1"
86
84
  },
87
85
  "peerDependencies": {
88
86
  "@arcgis/core": ">=4.29.0-next <4.30",
89
- "@esri/calcite-components": ">=1.7.0 <2.0.0"
87
+ "@esri/calcite-components": "^2.1.0"
90
88
  },
91
- "gitHead": "bc9831f447ce131ddeeb898d3b7e341bc09a39bc"
89
+ "gitHead": "18106eb3df35916c8bd5c9860db2cf58c920a941"
92
90
  }