@arcgis/common-components 5.0.0-next.135 → 5.0.0-next.137

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 (111) hide show
  1. package/dist/cdn/{O63ZTZG5.js → 2CMN2PLW.js} +2 -2
  2. package/dist/cdn/{QEMZUVQL.js → 3D5FKOXY.js} +2 -2
  3. package/dist/cdn/{XVOXEDSL.js → 43YNUTPG.js} +2 -2
  4. package/dist/cdn/{RNS5S5UL.js → 4I34IC6Q.js} +2 -2
  5. package/dist/cdn/{BXXIZYBD.js → 5CDET57O.js} +2 -2
  6. package/dist/cdn/{5Z2QK75J.js → 6DBUX6JF.js} +1 -1
  7. package/dist/cdn/ACOIQKWZ.js +6 -0
  8. package/dist/cdn/{K3LTU64J.js → BAXXL46B.js} +2 -2
  9. package/dist/cdn/{FREENMNZ.js → CMYVMNBW.js} +2 -2
  10. package/dist/cdn/{BAEY2UNC.js → ENYQISNB.js} +2 -2
  11. package/dist/cdn/{IGSEZSZY.js → GTFPNZX7.js} +2 -2
  12. package/dist/cdn/{LC3J3GLV.js → HRF4HSM5.js} +2 -2
  13. package/dist/cdn/{LNDXDU5Z.js → IC6DINF6.js} +123 -123
  14. package/dist/cdn/{4JREURGY.js → KY3QFUVB.js} +2 -2
  15. package/dist/cdn/{RD2QMBYZ.js → KYBEHVPR.js} +2 -2
  16. package/dist/cdn/{Y2EXN4GQ.js → L63ONHBD.js} +2 -2
  17. package/dist/cdn/{C2DNC2YJ.js → NFPYN5F7.js} +1 -1
  18. package/dist/cdn/{SYONVE3P.js → OGEHJX2A.js} +2 -2
  19. package/dist/cdn/{62JZVUW3.js → R4UCTMNW.js} +2 -2
  20. package/dist/cdn/{G7BIJSLP.js → ROYSN427.js} +2 -2
  21. package/dist/cdn/{3CIN6YRD.js → X5QI7LLG.js} +1 -1
  22. package/dist/cdn/{JVNYGVN3.js → YAIYR7HY.js} +2 -2
  23. package/dist/cdn/{ZDJE23FU.js → YJBSULAA.js} +2 -2
  24. package/dist/cdn/index.js +2 -2
  25. package/dist/chunks/commonFunctions.js +1 -1
  26. package/dist/chunks/resources.js +1 -1
  27. package/dist/chunks/runtime.js +1 -1
  28. package/dist/chunks/types.js +1 -1
  29. package/dist/chunks/useT9n.js +1 -1
  30. package/dist/components/arcgis-ckeditor5/customElement.d.ts +94 -98
  31. package/dist/components/arcgis-ckeditor5/customElement.js +6887 -7708
  32. package/dist/components/arcgis-ckeditor5/types.d.ts +4 -7
  33. package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +37 -38
  34. package/dist/components/arcgis-ckeditor5-popover/customElement.js +2 -2
  35. package/dist/components/arcgis-ckeditor5-popover/index.d.ts +0 -2
  36. package/dist/components/arcgis-color-input/customElement.d.ts +105 -82
  37. package/dist/components/arcgis-color-input/customElement.js +1 -1
  38. package/dist/components/arcgis-color-input/index.d.ts +0 -5
  39. package/dist/components/arcgis-field-info/customElement.d.ts +204 -41
  40. package/dist/components/arcgis-field-info/customElement.js +1 -1
  41. package/dist/components/arcgis-field-info/utils/basic.d.ts +2 -36
  42. package/dist/components/arcgis-field-pick-list/customElement.d.ts +196 -170
  43. package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
  44. package/dist/components/arcgis-field-pick-list/index.d.ts +0 -13
  45. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +2 -1
  46. package/dist/components/arcgis-histogram/customElement.d.ts +206 -195
  47. package/dist/components/arcgis-histogram/customElement.js +1 -1
  48. package/dist/components/arcgis-histogram/types.d.ts +22 -30
  49. package/dist/components/arcgis-label-input/customElement.d.ts +46 -45
  50. package/dist/components/arcgis-label-input/customElement.js +1 -1
  51. package/dist/components/arcgis-label-input/index.d.ts +0 -2
  52. package/dist/components/arcgis-picker-input/customElement.d.ts +41 -41
  53. package/dist/components/arcgis-picker-input/customElement.js +2 -2
  54. package/dist/components/arcgis-picker-input/index.d.ts +0 -4
  55. package/dist/components/arcgis-ramp-color/customElement.d.ts +16 -17
  56. package/dist/components/arcgis-ramp-color/customElement.js +1 -1
  57. package/dist/components/arcgis-ramp-color-break/customElement.d.ts +17 -18
  58. package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
  59. package/dist/components/arcgis-ramp-color-break/index.d.ts +0 -1
  60. package/dist/components/arcgis-ramp-opacity/customElement.d.ts +16 -18
  61. package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
  62. package/dist/components/arcgis-ramp-opacity/index.d.ts +0 -1
  63. package/dist/components/arcgis-slider/customElement.d.ts +287 -287
  64. package/dist/components/arcgis-slider/customElement.js +1 -1
  65. package/dist/components/arcgis-slider/index.d.ts +0 -2
  66. package/dist/components/arcgis-slider-input/customElement.d.ts +57 -58
  67. package/dist/components/arcgis-slider-input/customElement.js +1 -1
  68. package/dist/components/arcgis-slider-input/index.d.ts +0 -2
  69. package/dist/components/arcgis-ticks/customElement.d.ts +99 -94
  70. package/dist/components/arcgis-ticks/customElement.js +1 -1
  71. package/dist/components/arcgis-unique-values-list/customElement.d.ts +106 -89
  72. package/dist/components/arcgis-unique-values-list/customElement.js +1 -1
  73. package/dist/components/arcgis-unique-values-list/index.d.ts +0 -7
  74. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +2 -9
  75. package/dist/docs/api.json +1 -7276
  76. package/dist/docs/docs.json +1 -6072
  77. package/dist/docs/vscode.css-custom-data.json +1 -27
  78. package/dist/docs/vscode.html-custom-data.json +1 -1185
  79. package/dist/docs/web-types.json +1 -2387
  80. package/dist/index.d.ts +30 -23
  81. package/dist/index.js +1 -1
  82. package/dist/loader.js +11 -11
  83. package/dist/types/lumina.d.ts +54 -54
  84. package/dist/types/preact.d.ts +54 -54
  85. package/dist/types/react.d.ts +54 -54
  86. package/dist/types/stencil.d.ts +54 -54
  87. package/dist/utils/types.d.ts +33 -29
  88. package/package.json +6 -4
  89. package/dist/cdn/ZMDBYWZB.js +0 -6
  90. package/dist/components/arcgis-ckeditor5/resources.d.ts +0 -9
  91. package/dist/components/arcgis-field-info/utils/feature.d.ts +0 -21
  92. package/dist/components/arcgis-field-info/utils/field.d.ts +0 -30
  93. package/dist/components/arcgis-field-info/utils/index.d.ts +0 -3
  94. package/dist/components/arcgis-histogram/css.d.ts +0 -8
  95. package/dist/components/arcgis-histogram/histogramSample.d.ts +0 -25
  96. package/dist/components/arcgis-histogram/utils.d.ts +0 -19
  97. package/dist/components/arcgis-slider/SliderData.d.ts +0 -37
  98. package/dist/components/arcgis-slider/stepsUtils.d.ts +0 -52
  99. package/dist/components/arcgis-ticks/css.d.ts +0 -11
  100. package/dist/components/arcgis-unique-values-list/utils/date.d.ts +0 -7
  101. package/dist/components/arcgis-unique-values-list/utils/domain.d.ts +0 -5
  102. package/dist/components/arcgis-unique-values-list/utils/field.d.ts +0 -3
  103. package/dist/components/arcgis-unique-values-list/utils/index.d.ts +0 -4
  104. package/dist/controllers/useT9n.d.ts +0 -1
  105. package/dist/runtime.d.ts +0 -6
  106. package/dist/utils/commonFunctions.d.ts +0 -28
  107. package/dist/utils/dom.d.ts +0 -7
  108. package/dist/utils/functional.d.ts +0 -16
  109. package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
  110. package/dist/utils/storage.d.ts +0 -3
  111. package/dist/utils/style.d.ts +0 -1
@@ -1,9 +1,6 @@
1
1
  export type InputMentionField = {
2
- id: string;
3
- name: string;
2
+ id: string;
3
+ name: string;
4
4
  };
5
- export type DisplayMentionField = InputMentionField & {
6
- isFirstExpression: boolean;
7
- isFirstField: boolean;
8
- };
9
- export type EditorType = "html" | "markdown";
5
+
6
+ export type EditorType = "html" | "markdown";
@@ -1,40 +1,39 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
3
3
 
4
- /** [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ckeditor5-popover/) */
5
- export declare class ArcgisCkeditor5Popover extends LitElement {
6
- /** Guid for ckeditor popover instance. */
7
- guid: `${string}-${string}-${string}-${string}-${string}`;
8
- /** Reference element for the popover. */
9
- refElement?: HTMLElement;
10
- /**
11
- * Ok button text.
12
- *
13
- * @default "Ok"
14
- */
15
- intlOk: string;
16
- /**
17
- * Cancel button text.
18
- *
19
- * @default "Cancel"
20
- */
21
- intlCancel: string;
22
- /** Popover label text. */
23
- intlLabel?: string;
24
- /** Reposition the component. */
25
- reposition(): Promise<void>;
26
- /** @deprecated use arcgisPopoverClosed instead */
27
- readonly arcgisCkeditor5PopoverClosed: TargetedEvent<this, {
28
- guid: string;
29
- data?: string;
30
- }>;
31
- /** Emitted when the popover has been closed. */
32
- readonly arcgisPopoverClosed: TargetedEvent<this, {
33
- guid: string;
34
- data?: string;
35
- }>;
36
- "@eventTypes": {
37
- "arcgisCkeditor5PopoverClosed": ArcgisCkeditor5Popover["arcgisCkeditor5PopoverClosed"]["detail"];
38
- "arcgisPopoverClosed": ArcgisCkeditor5Popover["arcgisPopoverClosed"]["detail"];
39
- };
40
- }
4
+ export abstract class ArcgisCkeditor5Popover extends LitElement {
5
+ /** Guid for ckeditor popover instance. */
6
+ accessor guid: `${string}-${string}-${string}-${string}-${string}`;
7
+ /**
8
+ * Cancel button text.
9
+ *
10
+ * @default "Cancel"
11
+ */
12
+ accessor intlCancel: string;
13
+ /** Popover label text. */
14
+ accessor intlLabel: string | undefined;
15
+ /**
16
+ * Ok button text.
17
+ *
18
+ * @default "Ok"
19
+ */
20
+ accessor intlOk: string;
21
+ /** Reference element for the popover. */
22
+ accessor refElement: HTMLElement | undefined;
23
+ /** Reposition the component. */
24
+ reposition(): Promise<void>;
25
+ /** @deprecated use arcgisPopoverClosed instead */
26
+ readonly arcgisCkeditor5PopoverClosed: import("@arcgis/lumina").TargetedEvent<this, {
27
+ guid: string;
28
+ data?: string;
29
+ }>;
30
+ /** Emitted when the popover has been closed. */
31
+ readonly arcgisPopoverClosed: import("@arcgis/lumina").TargetedEvent<this, {
32
+ guid: string;
33
+ data?: string;
34
+ }>;
35
+ readonly "@eventTypes": {
36
+ arcgisCkeditor5PopoverClosed: ArcgisCkeditor5Popover["arcgisCkeditor5PopoverClosed"]["detail"];
37
+ arcgisPopoverClosed: ArcgisCkeditor5Popover["arcgisPopoverClosed"]["detail"];
38
+ };
39
+ }
@@ -9,7 +9,7 @@ import { i as u } from "../../chunks/commonFunctions.js";
9
9
  import { C as i } from "../../chunks/resources.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
12
- v5.0.0-next.135 */
12
+ v5.0.0-next.137 */
13
13
  const m = n`.arcgis-app-ckeditor-popover-footer{display:flex;justify-content:flex-end;margin-top:var(--calcite-space-sm);padding:0 var(--calcite-space-lg)}.arcgis-app-ckeditor-popover-container{margin:0 var(--calcite-space-md) 0 0;padding-bottom:var(--calcite-space-lg);box-shadow:val(--calcite-shadow-1)}`;
14
14
  class f extends c {
15
15
  constructor() {
@@ -24,7 +24,7 @@ class f extends c {
24
24
  }), this.guid = g(), this.intlOk = "Ok", this.intlCancel = "Cancel", this.arcgisCkeditor5PopoverClosed = o(), this.arcgisPopoverClosed = o(), this.listen("arcgisCreated", this.afterEditorCreated), this.listen("arcgisSourceEditingChanged", this.onSourceEditingStatusChanged);
25
25
  }
26
26
  static {
27
- this.properties = { guid: 0, refElement: 0, intlOk: 1, intlCancel: 1, intlLabel: 1 };
27
+ this.properties = { guid: 1, refElement: 0, intlOk: 1, intlCancel: 1, intlLabel: 1 };
28
28
  }
29
29
  static {
30
30
  this.styles = m;
@@ -1,3 +1 @@
1
- import "@esri/calcite-components/components/calcite-popover";
2
- import "@esri/calcite-components/components/calcite-button";
3
1
  export * from "./customElement.js";
@@ -1,84 +1,107 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
3
- import { IPopoverProps } from '../../utils/types';
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
3
+ import type { IPopoverProps } from "../../utils/types.js";
4
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
5
+ import type { Popover as Popover } from "@esri/calcite-components/components/calcite-popover";
4
6
 
5
- /** [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-color-input/) */
6
- export declare class ArcgisColorInput extends LitElement {
7
- /**
8
- * Display option to set no color.
9
- *
10
- * @default false
11
- */
12
- clearable: boolean;
13
- /** The selected color as a HEX value. If not set it will display a 'transparent' color swatch. */
14
- color?: string;
15
- /**
16
- * Control whether the component should be displayed in a compact style (i.e., fewer recent color options).
17
- *
18
- * @default false
19
- */
20
- compact: boolean;
21
- /**
22
- * Control whether the component is disabled.
23
- *
24
- * @default false
25
- */
26
- disabled: boolean;
27
- /** Replace localized message strings with your own strings. */
28
- messageOverrides?: typeof this._messages._overrides;
29
- /**
30
- * Determines where the popup color picker will be positioned relative to the color input.
31
- *
32
- * @default "auto"
33
- */
34
- placement: HTMLCalcitePopoverElement["placement"];
35
- /** Convenience prop to specify common popover props. */
36
- popoverProps?: IPopoverProps;
37
- /**
38
- * The id of the local storage element that will store recent colors.
39
- *
40
- * @default "arcgis-color-input-storage-colors"
41
- */
42
- storageId: string;
43
- /**
44
- * If true, do not display recent colors.
45
- *
46
- * @default false
47
- */
48
- hideRecentColors: boolean;
49
- /**
50
- * If true, allow transparency to be modified within the color picker.
51
- *
52
- * @default false
53
- */
54
- showTransparency: boolean;
55
- /** Close the component. */
56
- close(): Promise<void>;
57
- /** Set focus on the component. */
58
- setFocus(): Promise<void>;
59
- /** Emitted when the color has changed. */
60
- readonly arcgisChange: TargetedEvent<this, void>;
61
- /** @deprecated use arcgisChange instead */
62
- readonly arcgisColorInputChange: TargetedEvent<this, void>;
63
- /** @deprecated use arcgisPickerClose instead */
64
- readonly arcgisColorInputPopoverClose: TargetedEvent<this, string>;
65
- /** @deprecated use arcgisPickerOpen instead */
66
- readonly arcgisColorInputPopoverOpen: TargetedEvent<this, void>;
67
- /** @deprecated use arcgisSwatchUpdate instead */
68
- readonly arcgisColorInputSwatchUpdate: TargetedEvent<this, string | undefined>;
69
- readonly arcgisPickerClose: TargetedEvent<this, string>;
70
- readonly arcgisPickerOpen: TargetedEvent<this, void>;
71
- /** Emitted when a color swatch is updated (emits selected color hex). */
72
- readonly arcgisSwatchUpdate: TargetedEvent<this, string | undefined>;
73
- private _messages;
74
- "@eventTypes": {
75
- "arcgisChange": ArcgisColorInput["arcgisChange"]["detail"];
76
- "arcgisColorInputChange": ArcgisColorInput["arcgisColorInputChange"]["detail"];
77
- "arcgisColorInputPopoverClose": ArcgisColorInput["arcgisColorInputPopoverClose"]["detail"];
78
- "arcgisColorInputPopoverOpen": ArcgisColorInput["arcgisColorInputPopoverOpen"]["detail"];
79
- "arcgisColorInputSwatchUpdate": ArcgisColorInput["arcgisColorInputSwatchUpdate"]["detail"];
80
- "arcgisPickerClose": ArcgisColorInput["arcgisPickerClose"]["detail"];
81
- "arcgisPickerOpen": ArcgisColorInput["arcgisPickerOpen"]["detail"];
82
- "arcgisSwatchUpdate": ArcgisColorInput["arcgisSwatchUpdate"]["detail"];
83
- };
84
- }
7
+ export abstract class ArcgisColorInput extends LitElement {
8
+ /** @internal */
9
+ protected _messages: Partial<{
10
+ clearColor: string;
11
+ commitColor: string;
12
+ deleteColor: string;
13
+ noColor: string;
14
+ recentColors: string;
15
+ selectColor: string;
16
+ }> & T9nMeta<{
17
+ clearColor: string;
18
+ commitColor: string;
19
+ deleteColor: string;
20
+ noColor: string;
21
+ recentColors: string;
22
+ selectColor: string;
23
+ }>;
24
+ /**
25
+ * Display option to set no color.
26
+ *
27
+ * @default false
28
+ */
29
+ accessor clearable: boolean;
30
+ /** The selected color as a HEX value. If not set it will display a 'transparent' color swatch. */
31
+ accessor color: string | undefined;
32
+ /**
33
+ * Control whether the component should be displayed in a compact style (i.e., fewer recent color options).
34
+ *
35
+ * @default false
36
+ */
37
+ accessor compact: boolean;
38
+ /**
39
+ * Control whether the component is disabled.
40
+ *
41
+ * @default false
42
+ */
43
+ accessor disabled: boolean;
44
+ /**
45
+ * If true, do not display recent colors.
46
+ *
47
+ * @default false
48
+ */
49
+ accessor hideRecentColors: boolean;
50
+ /** Replace localized message strings with your own strings. */
51
+ accessor messageOverrides: {
52
+ clearColor?: string | undefined;
53
+ commitColor?: string | undefined;
54
+ deleteColor?: string | undefined;
55
+ noColor?: string | undefined;
56
+ recentColors?: string | undefined;
57
+ selectColor?: string | undefined;
58
+ };
59
+ /**
60
+ * Determines where the popup color picker will be positioned relative to the color input.
61
+ *
62
+ * @default "auto"
63
+ */
64
+ accessor placement: Popover["placement"];
65
+ /** Convenience prop to specify common popover props. */
66
+ accessor popoverProps: IPopoverProps | undefined;
67
+ /**
68
+ * If true, allow transparency to be modified within the color picker.
69
+ *
70
+ * @default false
71
+ */
72
+ accessor showTransparency: boolean;
73
+ /**
74
+ * The id of the local storage element that will store recent colors.
75
+ *
76
+ * @default "arcgis-color-input-storage-colors"
77
+ */
78
+ accessor storageId: string;
79
+ /** Close the component. */
80
+ close(): Promise<void>;
81
+ /** Set focus on the component. */
82
+ setFocus(): Promise<void>;
83
+ /** Emitted when the color has changed. */
84
+ readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, void>;
85
+ /** @deprecated use arcgisChange instead */
86
+ readonly arcgisColorInputChange: import("@arcgis/lumina").TargetedEvent<this, void>;
87
+ /** @deprecated use arcgisPickerClose instead */
88
+ readonly arcgisColorInputPopoverClose: import("@arcgis/lumina").TargetedEvent<this, string>;
89
+ /** @deprecated use arcgisPickerOpen instead */
90
+ readonly arcgisColorInputPopoverOpen: import("@arcgis/lumina").TargetedEvent<this, void>;
91
+ /** @deprecated use arcgisSwatchUpdate instead */
92
+ readonly arcgisColorInputSwatchUpdate: import("@arcgis/lumina").TargetedEvent<this, string | undefined>;
93
+ readonly arcgisPickerClose: import("@arcgis/lumina").TargetedEvent<this, string>;
94
+ readonly arcgisPickerOpen: import("@arcgis/lumina").TargetedEvent<this, void>;
95
+ /** Emitted when a color swatch is updated (emits selected color hex). */
96
+ readonly arcgisSwatchUpdate: import("@arcgis/lumina").TargetedEvent<this, string | undefined>;
97
+ readonly "@eventTypes": {
98
+ arcgisChange: ArcgisColorInput["arcgisChange"]["detail"];
99
+ arcgisColorInputChange: ArcgisColorInput["arcgisColorInputChange"]["detail"];
100
+ arcgisColorInputPopoverClose: ArcgisColorInput["arcgisColorInputPopoverClose"]["detail"];
101
+ arcgisColorInputPopoverOpen: ArcgisColorInput["arcgisColorInputPopoverOpen"]["detail"];
102
+ arcgisColorInputSwatchUpdate: ArcgisColorInput["arcgisColorInputSwatchUpdate"]["detail"];
103
+ arcgisPickerClose: ArcgisColorInput["arcgisPickerClose"]["detail"];
104
+ arcgisPickerOpen: ArcgisColorInput["arcgisPickerOpen"]["detail"];
105
+ arcgisSwatchUpdate: ArcgisColorInput["arcgisSwatchUpdate"]["detail"];
106
+ };
107
+ }
@@ -8,7 +8,7 @@ import { debounce as E } from "@arcgis/toolkit/function";
8
8
  import { u as k } from "../../chunks/useT9n.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
11
- v5.0.0-next.135 */
11
+ v5.0.0-next.137 */
12
12
  function $(l, e, o) {
13
13
  window.localStorage.setItem(l, JSON.stringify(e));
14
14
  }
@@ -1,6 +1 @@
1
- import "@esri/calcite-components/components/calcite-tooltip";
2
- import "../arcgis-picker-input/index.js";
3
- import "@esri/calcite-components/components/calcite-color-picker";
4
- import "@esri/calcite-components/components/calcite-color-picker-swatch";
5
- import "@esri/calcite-components/components/calcite-action";
6
1
  export * from "./customElement.js";
@@ -1,43 +1,206 @@
1
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
1
  /// <reference path="../../index.d.ts" />
3
- import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
4
- import { Status } from './utils';
5
- import { FieldInfoLayer } from './utils/basic';
2
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
4
+ import type { FieldInfoLayer } from "./utils/basic.js";
5
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
6
6
 
7
- /** [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-field-info/) */
8
- export declare class ArcgisFieldInfo extends LitElement {
9
- /** View instance. If no view is provided all dates will show in 'system' timezone. */
10
- view?: __esri.View;
11
- /** Required layer instance. */
12
- layer?: FieldInfoLayer;
13
- /** Required field name. */
14
- fieldName?: string;
15
- /**
16
- * If true, hide the field alias section.
17
- *
18
- * @default false
19
- */
20
- hideAlias: boolean;
21
- /**
22
- * If true, hide the decimal places section.
23
- *
24
- * @default false
25
- */
26
- hideNumericFormat: boolean;
27
- /**
28
- * If true, hide statistics (i.e., no top 10 values for string and no stats for number and date fields).
29
- *
30
- * @default false
31
- */
32
- hideStatistics: boolean;
33
- /** Refresh the field info display after external changes are made. */
34
- refresh(): Promise<void>;
35
- /** Emitted once all information is displayed. */
36
- readonly arcgisComplete: TargetedEvent<this, void>;
37
- /** @deprecated use arcgisComplete instead. */
38
- readonly arcgisFieldInfoComplete: TargetedEvent<this, void>;
39
- "@eventTypes": {
40
- "arcgisComplete": ArcgisFieldInfo["arcgisComplete"]["detail"];
41
- "arcgisFieldInfoComplete": ArcgisFieldInfo["arcgisFieldInfoComplete"]["detail"];
42
- };
43
- }
7
+ export abstract class ArcgisFieldInfo extends LitElement {
8
+ /** @internal */
9
+ protected _messages: {
10
+ fieldType: string;
11
+ fieldAlias: string;
12
+ fieldDescription: string;
13
+ fieldValueType: string;
14
+ fieldSampleValue: string;
15
+ fieldDecimalPlaces: string;
16
+ fieldMinimumFractionDigits: string;
17
+ fieldMaximumFractionDigits: string;
18
+ fieldStatistics: string;
19
+ fieldDescriptionNotSet: string;
20
+ fieldValueTypeNotSet: string;
21
+ fieldSampleRetrieving: string;
22
+ fieldSampleNotAvailable: string;
23
+ fieldDecimalPlacesNotAvailable: string;
24
+ fieldNumDecimalPlaces: string;
25
+ fieldStatisticsRetrieving: string;
26
+ fieldStatisticsNotAvailable: string;
27
+ fieldUniqueValuesRetrieving: string;
28
+ fieldUniqueValuesNotAvailable: string;
29
+ fieldTypes: {
30
+ integer: string;
31
+ smallInteger: string;
32
+ bigInteger: string;
33
+ single: string;
34
+ double: string;
35
+ long: string;
36
+ string: string;
37
+ date: string;
38
+ dateOnly: string;
39
+ timeOnly: string;
40
+ timestampOffset: string;
41
+ oid: string;
42
+ guid: string;
43
+ globalId: string;
44
+ };
45
+ fieldValueTypes: {
46
+ nameOrTitle: string;
47
+ description: string;
48
+ typeOrCategory: string;
49
+ countOrAmount: string;
50
+ percentageOrRatio: string;
51
+ measurement: string;
52
+ uniqueIdentifier: string;
53
+ orderedOrRanked: string;
54
+ binary: string;
55
+ locationOrPlaceName: string;
56
+ coordinate: string;
57
+ currency: string;
58
+ phoneNumber: string;
59
+ emailAddress: string;
60
+ dateAndTime: string;
61
+ };
62
+ statistics: {
63
+ numberOfValues: string;
64
+ numberOfNulls: string;
65
+ allNulls: string;
66
+ topValues: string;
67
+ topTenValues: string;
68
+ count: string;
69
+ sumOfValues: string;
70
+ minimum: string;
71
+ maximum: string;
72
+ average: string;
73
+ standardDeviation: string;
74
+ minimumDate: string;
75
+ maximumDate: string;
76
+ averageDate: string;
77
+ minimumTime: string;
78
+ maximumTime: string;
79
+ averageTime: string;
80
+ timespan: string;
81
+ timeSpanOptions: {
82
+ day: string;
83
+ days: string;
84
+ month: string;
85
+ months: string;
86
+ year: string;
87
+ years: string;
88
+ };
89
+ };
90
+ } & T9nMeta<{
91
+ fieldType: string;
92
+ fieldAlias: string;
93
+ fieldDescription: string;
94
+ fieldValueType: string;
95
+ fieldSampleValue: string;
96
+ fieldDecimalPlaces: string;
97
+ fieldMinimumFractionDigits: string;
98
+ fieldMaximumFractionDigits: string;
99
+ fieldStatistics: string;
100
+ fieldDescriptionNotSet: string;
101
+ fieldValueTypeNotSet: string;
102
+ fieldSampleRetrieving: string;
103
+ fieldSampleNotAvailable: string;
104
+ fieldDecimalPlacesNotAvailable: string;
105
+ fieldNumDecimalPlaces: string;
106
+ fieldStatisticsRetrieving: string;
107
+ fieldStatisticsNotAvailable: string;
108
+ fieldUniqueValuesRetrieving: string;
109
+ fieldUniqueValuesNotAvailable: string;
110
+ fieldTypes: {
111
+ integer: string;
112
+ smallInteger: string;
113
+ bigInteger: string;
114
+ single: string;
115
+ double: string;
116
+ long: string;
117
+ string: string;
118
+ date: string;
119
+ dateOnly: string;
120
+ timeOnly: string;
121
+ timestampOffset: string;
122
+ oid: string;
123
+ guid: string;
124
+ globalId: string;
125
+ };
126
+ fieldValueTypes: {
127
+ nameOrTitle: string;
128
+ description: string;
129
+ typeOrCategory: string;
130
+ countOrAmount: string;
131
+ percentageOrRatio: string;
132
+ measurement: string;
133
+ uniqueIdentifier: string;
134
+ orderedOrRanked: string;
135
+ binary: string;
136
+ locationOrPlaceName: string;
137
+ coordinate: string;
138
+ currency: string;
139
+ phoneNumber: string;
140
+ emailAddress: string;
141
+ dateAndTime: string;
142
+ };
143
+ statistics: {
144
+ numberOfValues: string;
145
+ numberOfNulls: string;
146
+ allNulls: string;
147
+ topValues: string;
148
+ topTenValues: string;
149
+ count: string;
150
+ sumOfValues: string;
151
+ minimum: string;
152
+ maximum: string;
153
+ average: string;
154
+ standardDeviation: string;
155
+ minimumDate: string;
156
+ maximumDate: string;
157
+ averageDate: string;
158
+ minimumTime: string;
159
+ maximumTime: string;
160
+ averageTime: string;
161
+ timespan: string;
162
+ timeSpanOptions: {
163
+ day: string;
164
+ days: string;
165
+ month: string;
166
+ months: string;
167
+ year: string;
168
+ years: string;
169
+ };
170
+ };
171
+ }>;
172
+ /** Required field name. */
173
+ accessor fieldName: string | undefined;
174
+ /**
175
+ * If true, hide the field alias section.
176
+ *
177
+ * @default false
178
+ */
179
+ accessor hideAlias: boolean;
180
+ /**
181
+ * If true, hide the decimal places section.
182
+ *
183
+ * @default false
184
+ */
185
+ accessor hideNumericFormat: boolean;
186
+ /**
187
+ * If true, hide statistics (i.e., no top 10 values for string and no stats for number and date fields).
188
+ *
189
+ * @default false
190
+ */
191
+ accessor hideStatistics: boolean;
192
+ /** Required layer instance. */
193
+ accessor layer: FieldInfoLayer | undefined;
194
+ /** View instance. If no view is provided all dates will show in 'system' timezone. */
195
+ accessor view: __esri.View | undefined;
196
+ /** Refresh the field info display after external changes are made. */
197
+ refresh(): Promise<void>;
198
+ /** Emitted once all information is displayed. */
199
+ readonly arcgisComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
200
+ /** @deprecated use arcgisComplete instead. */
201
+ readonly arcgisFieldInfoComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
202
+ readonly "@eventTypes": {
203
+ arcgisComplete: ArcgisFieldInfo["arcgisComplete"]["detail"];
204
+ arcgisFieldInfoComplete: ArcgisFieldInfo["arcgisFieldInfoComplete"]["detail"];
205
+ };
206
+ }
@@ -16,7 +16,7 @@ import L from "@arcgis/core/rest/support/Query.js";
16
16
  import { u as Z } from "../../chunks/useT9n.js";
17
17
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
18
18
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
19
- v5.0.0-next.135 */
19
+ v5.0.0-next.137 */
20
20
  function p(a) {
21
21
  return a != null;
22
22
  }
@@ -1,37 +1,3 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
- export type Status = "failed" | "in-progress" | "missing" | "success";
3
- export type SimpleFieldTypes = "date-only" | "date" | "guid" | "number" | "oid" | "string" | "time-only" | "timestamp-offset" | "unknown";
4
- export interface CompFieldInfo {
5
- layerField: __esri.Field;
6
- simpleFieldType?: SimpleFieldTypes;
7
- label: string;
8
- codedValues?: __esri.CodedValue[];
9
- }
10
- export type ComponentProps = {
11
- view?: __esri.View;
12
- layer: FieldInfoLayer;
13
- fieldName: string;
14
- fieldInfo?: CompFieldInfo;
15
- statisticsStatus?: Status;
16
- hideStatistics: boolean;
17
- };
18
- export type FieldInfoLayer = __esri.CatalogFootprintLayer | __esri.CatalogLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.ImageryLayer | __esri.ImageryTileLayer | __esri.KnowledgeGraphSublayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.ParquetLayer | __esri.SceneLayer | __esri.StreamLayer | __esri.Sublayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.VoxelLayer | __esri.WCSLayer | __esri.WFSLayer;
19
- /**
20
- * Returns true if the value is defined
21
- *
22
- * @param value - value to check
23
- */
24
- export declare function isDefined<T>(value: T | null | undefined): value is T;
25
- /**
26
- * Returns the URL used for queries.
27
- * E.g. SceneLayers need to use the FeatureLayer URL for queries.
28
- *
29
- * @param value - value to check
30
- */
31
- export declare function getQueryURL(layer: __esri.FeatureLayer | __esri.OGCFeatureLayer | __esri.SceneLayer): nullish | string;
32
- export type FormattingOptions = {
33
- useFieldFormatting?: boolean;
34
- isTimeOnly?: boolean;
35
- };
36
- export declare const defaultIntlDateFormattingOptions: Intl.DateTimeFormatOptions;
37
- export declare const defaultIntlTimeFormatingOptions: Intl.DateTimeFormatOptions;
2
+
3
+ export type FieldInfoLayer = __esri.CatalogFootprintLayer | __esri.CatalogLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.ImageryLayer | __esri.ImageryTileLayer | __esri.KnowledgeGraphSublayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.ParquetLayer | __esri.SceneLayer | __esri.StreamLayer | __esri.Sublayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.VoxelLayer | __esri.WCSLayer | __esri.WFSLayer;