@esri/calcite-components 1.0.0-beta.79 → 1.0.0-beta.80

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 (206) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/p-162604a0.entry.js +5 -0
  3. package/dist/calcite/p-364f0abe.system.entry.js +5 -0
  4. package/dist/calcite/{p-e65b6bfb.entry.js → p-46071f17.entry.js} +1 -1
  5. package/dist/calcite/p-4905189e.system.entry.js +5 -0
  6. package/dist/calcite/p-5802a565.entry.js +5 -0
  7. package/dist/calcite/p-5c637131.entry.js +5 -0
  8. package/dist/calcite/p-5f6e35f3.entry.js +5 -0
  9. package/dist/calcite/{p-a38fe099.entry.js → p-653bd7bf.entry.js} +1 -1
  10. package/dist/calcite/{p-da7c2542.entry.js → p-8b982f91.entry.js} +1 -1
  11. package/dist/calcite/p-b0827b8c.system.entry.js +5 -0
  12. package/dist/calcite/p-b2b6f712.js +5 -0
  13. package/dist/calcite/{p-dd460534.system.entry.js → p-b9a38a28.system.entry.js} +2 -2
  14. package/dist/calcite/{p-3b707a1c.system.entry.js → p-c2caeb2a.system.entry.js} +1 -1
  15. package/dist/calcite/p-e55c5bb4.entry.js +5 -0
  16. package/dist/calcite/{p-3cdee187.system.entry.js → p-eb3c084f.system.entry.js} +1 -1
  17. package/dist/calcite/p-ecc31b40.system.entry.js +5 -0
  18. package/dist/calcite/{p-3ea157ba.system.entry.js → p-edf1e815.system.entry.js} +1 -1
  19. package/dist/calcite/p-ee522afa.system.entry.js +5 -0
  20. package/dist/calcite/p-f68725d7.entry.js +5 -0
  21. package/dist/calcite/p-fa922721.system.js +5 -0
  22. package/dist/calcite/p-fe9380a0.system.js +1 -1
  23. package/dist/cjs/calcite-action-bar.cjs.entry.js +4 -11
  24. package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
  25. package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -13
  26. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -23
  27. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +1 -1
  28. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +6 -16
  29. package/dist/cjs/calcite-popover_2.cjs.entry.js +3 -2
  30. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -1
  31. package/dist/cjs/calcite-value-list_2.cjs.entry.js +1 -1
  32. package/dist/cjs/calcite.cjs.js +1 -1
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/cjs/{resources-daf15d54.js → resources-e43fc9f3.js} +14 -1
  35. package/dist/collection/collection-manifest.json +3 -3
  36. package/dist/collection/components/action-bar/action-bar.js +4 -11
  37. package/dist/collection/components/action-menu/action-menu.js +6 -6
  38. package/dist/collection/components/action-pad/action-pad.js +3 -15
  39. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  40. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  41. package/dist/collection/components/dropdown/dropdown.js +15 -18
  42. package/dist/collection/components/dropdown-item/dropdown-item.js +11 -5
  43. package/dist/collection/components/input-date-picker/input-date-picker.css +5 -0
  44. package/dist/collection/components/pick-list/shared-list-logic.js +2 -1
  45. package/dist/collection/components/popover/popover.css +1 -1
  46. package/dist/collection/components/popover/popover.js +7 -7
  47. package/dist/collection/components/popover/resources.js +1 -0
  48. package/dist/collection/components/radio-group/radio-group.js +2 -4
  49. package/dist/collection/components/select/select.js +2 -4
  50. package/dist/collection/components/tooltip/tooltip.css +1 -1
  51. package/dist/components/action-menu.js +2 -2
  52. package/dist/components/calcite-action-bar.js +4 -11
  53. package/dist/components/calcite-action-pad.js +3 -13
  54. package/dist/components/calcite-dropdown-item.js +11 -5
  55. package/dist/components/calcite-input-date-picker.js +1 -1
  56. package/dist/components/calcite-pick-list-group.js +1 -10
  57. package/dist/components/calcite-radio-group.js +1 -1
  58. package/dist/components/calcite-select.js +1 -1
  59. package/dist/components/calcite-tip-manager.js +1 -1
  60. package/dist/components/calcite-tip.js +1 -1
  61. package/dist/components/calcite-tooltip.js +1 -1
  62. package/dist/components/dropdown.js +15 -18
  63. package/dist/components/popover.js +3 -3
  64. package/dist/components/resources.js +2 -1
  65. package/dist/components/resources4.js +5 -22
  66. package/dist/components/resources5.js +32 -0
  67. package/dist/components/shared-list-render.js +4 -3
  68. package/dist/custom-elements/index.js +53 -66
  69. package/dist/esm/calcite-action-bar.entry.js +4 -11
  70. package/dist/esm/calcite-action-menu.entry.js +2 -2
  71. package/dist/esm/calcite-action-pad.entry.js +3 -13
  72. package/dist/esm/calcite-dropdown_3.entry.js +26 -23
  73. package/dist/esm/calcite-input-date-picker.entry.js +1 -1
  74. package/dist/esm/calcite-pick-list_3.entry.js +1 -11
  75. package/dist/esm/calcite-popover_2.entry.js +3 -2
  76. package/dist/esm/calcite-tooltip_2.entry.js +1 -1
  77. package/dist/esm/calcite-value-list_2.entry.js +1 -1
  78. package/dist/esm/calcite.js +1 -1
  79. package/dist/esm/loader.js +1 -1
  80. package/dist/esm/{resources-cbfcf4a3.js → resources-b5c3d9a7.js} +12 -2
  81. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  82. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  83. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  84. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  85. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  86. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  87. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  88. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  89. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  90. package/dist/esm-es5/calcite.js +1 -1
  91. package/dist/esm-es5/loader.js +1 -1
  92. package/dist/esm-es5/resources-b5c3d9a7.js +5 -0
  93. package/dist/extras/docs-json.json +10 -12
  94. package/dist/types/components/accordion/accordion.d.ts +42 -0
  95. package/dist/types/components/accordion-item/accordion-item.d.ts +54 -0
  96. package/dist/types/components/action/action.d.ts +75 -0
  97. package/dist/types/components/action-bar/action-bar.d.ts +69 -0
  98. package/dist/types/components/action-group/action-group.d.ts +42 -0
  99. package/dist/types/components/action-menu/action-menu.d.ts +82 -0
  100. package/dist/types/components/action-pad/action-pad.d.ts +54 -0
  101. package/dist/types/components/alert/alert.d.ts +83 -0
  102. package/dist/types/components/avatar/avatar.d.ts +26 -0
  103. package/dist/types/components/block/block.d.ts +79 -0
  104. package/dist/types/components/block-section/block-section.d.ts +44 -0
  105. package/dist/types/components/button/button.d.ts +80 -0
  106. package/dist/types/components/card/card.d.ts +46 -0
  107. package/dist/types/components/checkbox/checkbox.d.ts +75 -0
  108. package/dist/types/components/chip/chip.d.ts +40 -0
  109. package/dist/types/components/color-picker/color-picker.d.ts +232 -0
  110. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +51 -0
  111. package/dist/types/components/color-picker-swatch/color-picker-swatch.d.ts +23 -0
  112. package/dist/types/components/combobox/combobox.d.ts +184 -0
  113. package/dist/types/components/combobox/interfaces.d.ts +6 -0
  114. package/dist/types/components/combobox/utils.d.ts +6 -0
  115. package/dist/types/components/combobox-item/combobox-item.d.ts +48 -0
  116. package/dist/types/components/combobox-item-group/combobox-item-group.d.ts +17 -0
  117. package/dist/types/components/date-picker/date-picker.d.ts +132 -0
  118. package/dist/types/components/date-picker-day/date-picker-day.d.ts +48 -0
  119. package/dist/types/components/date-picker-month/date-picker-month.d.ts +97 -0
  120. package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +57 -0
  121. package/dist/types/components/dropdown/dropdown.d.ts +106 -0
  122. package/dist/types/components/dropdown-group/dropdown-group.d.ts +32 -0
  123. package/dist/types/components/dropdown-item/dropdown-item.d.ts +54 -0
  124. package/dist/types/components/fab/fab.d.ts +49 -0
  125. package/dist/types/components/filter/filter.d.ts +59 -0
  126. package/dist/types/components/flow/flow.d.ts +22 -0
  127. package/dist/types/components/functional/ExpandToggle.d.ts +19 -0
  128. package/dist/types/components/graph/graph.d.ts +28 -0
  129. package/dist/types/components/handle/handle.d.ts +22 -0
  130. package/dist/types/components/icon/icon.d.ts +32 -0
  131. package/dist/types/components/inline-editable/inline-editable.d.ts +74 -0
  132. package/dist/types/components/input/input.d.ts +171 -0
  133. package/dist/types/components/input-date-picker/input-date-picker.d.ts +186 -0
  134. package/dist/types/components/input-message/input-message.d.ts +27 -0
  135. package/dist/types/components/input-time-picker/input-time-picker.d.ts +94 -0
  136. package/dist/types/components/label/label.d.ts +39 -0
  137. package/dist/types/components/link/link.d.ts +36 -0
  138. package/dist/types/components/list/list.d.ts +22 -0
  139. package/dist/types/components/list-item/list-item.d.ts +42 -0
  140. package/dist/types/components/list-item-group/list-item-group.d.ts +18 -0
  141. package/dist/types/components/loader/loader.d.ts +27 -0
  142. package/dist/types/components/modal/modal.d.ts +89 -0
  143. package/dist/types/components/notice/notice.d.ts +51 -0
  144. package/dist/types/components/pagination/pagination.d.ts +51 -0
  145. package/dist/types/components/panel/panel.d.ts +132 -0
  146. package/dist/types/components/pick-list/pick-list.d.ts +77 -0
  147. package/dist/types/components/pick-list/shared-list-logic.d.ts +32 -0
  148. package/dist/types/components/pick-list/shared-list-render.d.ts +18 -0
  149. package/dist/types/components/pick-list-group/pick-list-group.d.ts +21 -0
  150. package/dist/types/components/pick-list-item/pick-list-item.d.ts +108 -0
  151. package/dist/types/components/popover/popover.d.ts +107 -0
  152. package/dist/types/components/popover/resources.d.ts +1 -0
  153. package/dist/types/components/popover-manager/popover-manager.d.ts +19 -0
  154. package/dist/types/components/progress/progress.d.ts +15 -0
  155. package/dist/types/components/radio-button/radio-button.d.ts +94 -0
  156. package/dist/types/components/radio-button-group/radio-button-group.d.ts +34 -0
  157. package/dist/types/components/radio-group/radio-group.d.ts +58 -0
  158. package/dist/types/components/radio-group-item/radio-group-item.d.ts +24 -0
  159. package/dist/types/components/rating/rating.d.ts +62 -0
  160. package/dist/types/components/scrim/scrim.d.ts +17 -0
  161. package/dist/types/components/select/select.d.ts +77 -0
  162. package/dist/types/components/shell/shell.d.ts +24 -0
  163. package/dist/types/components/shell-center-row/shell-center-row.d.ts +25 -0
  164. package/dist/types/components/shell-panel/shell-panel.d.ts +69 -0
  165. package/dist/types/components/slider/slider.d.ts +194 -0
  166. package/dist/types/components/sortable-list/sortable-list.d.ts +52 -0
  167. package/dist/types/components/split-button/split-button.d.ts +56 -0
  168. package/dist/types/components/stepper/stepper.d.ts +58 -0
  169. package/dist/types/components/stepper-item/stepper-item.d.ts +67 -0
  170. package/dist/types/components/switch/switch.d.ts +45 -0
  171. package/dist/types/components/tab/tab.d.ts +42 -0
  172. package/dist/types/components/tab-nav/tab-nav.d.ts +74 -0
  173. package/dist/types/components/tab-title/tab-title.d.ts +94 -0
  174. package/dist/types/components/tabs/tabs.d.ts +65 -0
  175. package/dist/types/components/tile/tile.d.ts +38 -0
  176. package/dist/types/components/tile-select/tile-select.d.ts +59 -0
  177. package/dist/types/components/tile-select-group/tile-select-group.d.ts +15 -0
  178. package/dist/types/components/time-picker/time-picker.d.ts +137 -0
  179. package/dist/types/components/tip/tip.d.ts +47 -0
  180. package/dist/types/components/tip-manager/tip-manager.d.ts +65 -0
  181. package/dist/types/components/tooltip/tooltip.d.ts +60 -0
  182. package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +41 -0
  183. package/dist/types/components/tree/interfaces.d.ts +10 -0
  184. package/dist/types/components/tree/tree.d.ts +39 -0
  185. package/dist/types/components/tree-item/tree-item.d.ts +60 -0
  186. package/dist/types/components/value-list/value-list.d.ts +92 -0
  187. package/dist/types/components/value-list-item/value-list-item.d.ts +81 -0
  188. package/dist/types/components.d.ts +4 -5
  189. package/dist/types/utils/label.d.ts +41 -0
  190. package/hydrate/index.js +53 -66
  191. package/package.json +1 -1
  192. package/readme.md +2 -2
  193. package/dist/calcite/p-184049cb.entry.js +0 -5
  194. package/dist/calcite/p-1b1bca2d.entry.js +0 -5
  195. package/dist/calcite/p-4696e56f.entry.js +0 -5
  196. package/dist/calcite/p-4730df46.js +0 -5
  197. package/dist/calcite/p-57e0428a.system.entry.js +0 -5
  198. package/dist/calcite/p-58adb34d.system.entry.js +0 -5
  199. package/dist/calcite/p-73d23656.entry.js +0 -5
  200. package/dist/calcite/p-7dfd6480.system.entry.js +0 -5
  201. package/dist/calcite/p-a3527241.system.entry.js +0 -5
  202. package/dist/calcite/p-bcdc20c3.system.entry.js +0 -5
  203. package/dist/calcite/p-c33f47d5.system.js +0 -5
  204. package/dist/calcite/p-c5c42405.entry.js +0 -5
  205. package/dist/calcite/p-e5a7ca2a.entry.js +0 -5
  206. package/dist/esm-es5/resources-cbfcf4a3.js +0 -5
@@ -0,0 +1,106 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { ItemKeyboardEvent } from "./interfaces";
3
+ import { ComputedPlacement, OverlayPositioning, MenuPlacement } from "../../utils/popper";
4
+ import { StrictModifiers } from "@popperjs/core";
5
+ import { Scale } from "../interfaces";
6
+ import { InteractiveComponent } from "../../utils/interactive";
7
+ /**
8
+ * @slot - A slot for adding `calcite-dropdown-group`s or `calcite-dropdown-item`s.
9
+ * @slot dropdown-trigger - A slot for the element that triggers the dropdown.
10
+ */
11
+ export declare class Dropdown implements InteractiveComponent {
12
+ el: HTMLCalciteDropdownElement;
13
+ /** Opens or closes the dropdown */
14
+ active: boolean;
15
+ activeHandler(): void;
16
+ /**
17
+ allow the dropdown to remain open after a selection is made
18
+ if the selection-mode of the selected item's containing group is "none", the dropdown will always close
19
+ */
20
+ disableCloseOnSelect: boolean;
21
+ /** is the dropdown disabled */
22
+ disabled: boolean;
23
+ handleDisabledChange(value: boolean): void;
24
+ /**
25
+ * Defines the available placements that can be used when a flip occurs.
26
+ */
27
+ flipPlacements?: ComputedPlacement[];
28
+ /**
29
+ specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -
30
+ this value does not include groupTitles passed to calcite-dropdown-group
31
+ */
32
+ maxItems: number;
33
+ maxItemsHandler(): void;
34
+ /** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
35
+ overlayPositioning: OverlayPositioning;
36
+ /**
37
+ * Determines where the dropdown will be positioned relative to the button.
38
+ * @default "bottom-leading"
39
+ */
40
+ placement: MenuPlacement;
41
+ placementHandler(): void;
42
+ /** specify the scale of dropdown, defaults to m */
43
+ scale: Scale;
44
+ /**
45
+ * **read-only** The currently selected items
46
+ *
47
+ * @readonly
48
+ */
49
+ selectedItems: HTMLCalciteDropdownItemElement[];
50
+ /** specify whether the dropdown is opened by hover or click of a trigger element */
51
+ type: "hover" | "click";
52
+ /** specify the width of dropdown, defaults to m */
53
+ width: Scale;
54
+ connectedCallback(): void;
55
+ componentDidLoad(): void;
56
+ componentDidRender(): void;
57
+ disconnectedCallback(): void;
58
+ render(): VNode;
59
+ /** Updates the position of the component. */
60
+ reposition(): Promise<void>;
61
+ /** fires when a dropdown item has been selected or deselected **/
62
+ calciteDropdownSelect: EventEmitter<void>;
63
+ /** fires when a dropdown has been opened **/
64
+ calciteDropdownOpen: EventEmitter<void>;
65
+ /** fires when a dropdown has been closed **/
66
+ calciteDropdownClose: EventEmitter<void>;
67
+ closeCalciteDropdownOnClick(e: Event): void;
68
+ closeCalciteDropdownOnEvent(): void;
69
+ closeCalciteDropdownOnOpenEvent(e: Event): void;
70
+ mouseEnterHandler(): void;
71
+ mouseLeaveHandler(): void;
72
+ calciteDropdownItemKeyEvent(e: CustomEvent<ItemKeyboardEvent>): void;
73
+ handleItemSelect(event: CustomEvent): void;
74
+ private items;
75
+ /** trigger elements */
76
+ private triggers;
77
+ private popper;
78
+ private menuEl;
79
+ private referenceEl;
80
+ private activeTransitionProp;
81
+ private scrollerEl;
82
+ mutationObserver: MutationObserver;
83
+ resizeObserver: ResizeObserver;
84
+ updateItems: () => void;
85
+ setMaxScrollerHeight: () => void;
86
+ setScrollerEl: (scrollerEl: HTMLDivElement) => void;
87
+ transitionEnd: (event: TransitionEvent) => void;
88
+ setReferenceEl: (el: HTMLDivElement) => void;
89
+ setMenuEl: (el: HTMLDivElement) => void;
90
+ getModifiers(): Partial<StrictModifiers>[];
91
+ createPopper(): void;
92
+ destroyPopper(): void;
93
+ private keyDownHandler;
94
+ private updateSelectedItems;
95
+ private getMaxScrollerHeight;
96
+ private closeCalciteDropdown;
97
+ private focusOnFirstActiveOrFirstItem;
98
+ private focusFirstItem;
99
+ private focusLastItem;
100
+ private focusNextItem;
101
+ private focusPrevItem;
102
+ private itemIndex;
103
+ private getFocusableElement;
104
+ private toggleOpenEnd;
105
+ private openCalciteDropdown;
106
+ }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { SelectionMode } from "./interfaces";
3
+ import { Scale } from "../interfaces";
4
+ /**
5
+ * @slot - A slot for adding `calcite-dropdown-item`s.
6
+ */
7
+ export declare class DropdownGroup {
8
+ el: HTMLCalciteDropdownGroupElement;
9
+ /** optionally set a group title for display */
10
+ groupTitle?: string;
11
+ /** specify the selection mode - multi (allow any number of (or no) active items), single (allow and require one active item),
12
+ none (no active items), defaults to single */
13
+ selectionMode: SelectionMode;
14
+ /**
15
+ * Specifies the size of the action.
16
+ */
17
+ scale: Scale;
18
+ /**
19
+ * @internal
20
+ */
21
+ calciteDropdownItemChange: EventEmitter;
22
+ componentWillLoad(): void;
23
+ render(): VNode;
24
+ updateActiveItemOnChange(event: CustomEvent): void;
25
+ /** position of group within a dropdown */
26
+ private groupPosition;
27
+ /** the requested group */
28
+ private requestedDropdownGroup;
29
+ /** the requested item */
30
+ private requestedDropdownItem;
31
+ private getGroupPosition;
32
+ }
@@ -0,0 +1,54 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { ItemKeyboardEvent } from "../dropdown/interfaces";
3
+ import { FlipContext } from "../interfaces";
4
+ /**
5
+ * @slot - A slot for adding text.
6
+ */
7
+ export declare class DropdownItem {
8
+ el: HTMLCalciteDropdownItemElement;
9
+ /** Indicates whether the item is active. */
10
+ active: boolean;
11
+ /** flip the icon(s) in rtl */
12
+ iconFlipRtl?: FlipContext;
13
+ /** optionally pass an icon to display at the start of an item - accepts calcite ui icon names */
14
+ iconStart?: string;
15
+ /** optionally pass an icon to display at the end of an item - accepts calcite ui icon names */
16
+ iconEnd?: string;
17
+ /** optionally pass a href - used to determine if the component should render as anchor */
18
+ href?: string;
19
+ /** Applies to the aria-label attribute on the button or hyperlink */
20
+ label?: string;
21
+ /** The rel attribute to apply to the hyperlink */
22
+ rel?: string;
23
+ /** The target attribute to apply to the hyperlink */
24
+ target?: string;
25
+ /**
26
+ * @internal
27
+ */
28
+ calciteDropdownItemSelect: EventEmitter;
29
+ /** @internal */
30
+ calciteDropdownItemKeyEvent: EventEmitter<ItemKeyboardEvent>;
31
+ /** @internal */
32
+ calciteDropdownCloseRequest: EventEmitter;
33
+ /** Sets focus on the component. */
34
+ setFocus(): Promise<void>;
35
+ componentWillLoad(): void;
36
+ connectedCallback(): void;
37
+ render(): VNode;
38
+ onClick(): void;
39
+ keyDownHandler(e: KeyboardEvent): void;
40
+ updateActiveItemOnChange(event: CustomEvent): void;
41
+ /** id of containing group */
42
+ private parentDropdownGroupEl;
43
+ /** requested group */
44
+ private requestedDropdownGroup;
45
+ /** requested item */
46
+ private requestedDropdownItem;
47
+ /** what selection mode is the parent dropdown group in */
48
+ private selectionMode;
49
+ /** if href is requested, track the rendered child link*/
50
+ private childLink;
51
+ private initialize;
52
+ private determineActiveItem;
53
+ private emitRequestedItem;
54
+ }
@@ -0,0 +1,49 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { Appearance, Scale } from "../interfaces";
3
+ import { ButtonColor } from "../button/interfaces";
4
+ import { InteractiveComponent } from "../../utils/interactive";
5
+ export declare class Fab implements InteractiveComponent {
6
+ /**
7
+ * Used to set the button's appearance. Default is outline.
8
+ */
9
+ appearance: Extract<"solid" | "outline", Appearance>;
10
+ /**
11
+ * Used to set the button's color. Default is light.
12
+ */
13
+ color: ButtonColor;
14
+ /**
15
+ * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
16
+ */
17
+ disabled: boolean;
18
+ /**
19
+ * The name of the icon to display. The value of this property must match the icon name from https://esri.github.io/calcite-ui-icons/.
20
+ * @default "plus"
21
+ */
22
+ icon?: string;
23
+ /**
24
+ * Label of the FAB, exposed on hover when textEnabled is false. If no label is provided, the label inherits what's provided for the `text` prop.
25
+ */
26
+ label?: string;
27
+ /**
28
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
29
+ */
30
+ loading: boolean;
31
+ /**
32
+ * Specifies the size of the fab.
33
+ */
34
+ scale: Scale;
35
+ /**
36
+ * Text that accompanies the FAB icon.
37
+ */
38
+ text?: string;
39
+ /**
40
+ * Indicates whether the text is displayed.
41
+ */
42
+ textEnabled: boolean;
43
+ el: HTMLCalciteFabElement;
44
+ private buttonEl;
45
+ componentDidRender(): void;
46
+ /** Sets focus on the component. */
47
+ setFocus(): Promise<void>;
48
+ render(): VNode;
49
+ }
@@ -0,0 +1,59 @@
1
+ /// <reference types="lodash" />
2
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
3
+ import { Scale } from "../interfaces";
4
+ import { InteractiveComponent } from "../../utils/interactive";
5
+ export declare class Filter implements InteractiveComponent {
6
+ /**
7
+ * The items to filter through. The filter uses this as the starting point, and returns items
8
+ * that contain the string entered in the input, using a partial match and recursive search.
9
+ *
10
+ * This property is required.
11
+ */
12
+ items: object[];
13
+ watchItemsHandler(): void;
14
+ /**
15
+ * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
16
+ */
17
+ disabled: boolean;
18
+ /**
19
+ * The resulting items after filtering.
20
+ *
21
+ * @readonly
22
+ */
23
+ filteredItems: object[];
24
+ /**
25
+ * A text label that will appear on the clear button.
26
+ */
27
+ intlClear?: string;
28
+ /**
29
+ * A text label that will appear next to the input field.
30
+ */
31
+ intlLabel?: string;
32
+ /**
33
+ * Placeholder text for the input element's placeholder attribute
34
+ */
35
+ placeholder?: string;
36
+ /** specify the scale of filter, defaults to m */
37
+ scale: Scale;
38
+ /**
39
+ * Filter value.
40
+ */
41
+ value: string;
42
+ valueHandler(value: string): void;
43
+ el: HTMLCalciteFilterElement;
44
+ textInput: HTMLCalciteInputElement;
45
+ componentDidRender(): void;
46
+ /**
47
+ * This event fires when the filter text changes.
48
+ */
49
+ calciteFilterChange: EventEmitter<void>;
50
+ componentWillLoad(): void;
51
+ /** Sets focus on the component. */
52
+ setFocus(): Promise<void>;
53
+ filter: import("lodash").DebouncedFunc<(value: string) => void>;
54
+ inputHandler: (event: CustomEvent) => void;
55
+ keyDownHandler: ({ key }: KeyboardEvent) => void;
56
+ clear: () => void;
57
+ updateFiltered(filtered: any[]): void;
58
+ render(): VNode;
59
+ }
@@ -0,0 +1,22 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { FlowDirection } from "./interfaces";
3
+ /**
4
+ * @slot - A slot for adding `calcite-panel`s to the flow.
5
+ */
6
+ export declare class Flow {
7
+ /**
8
+ * Removes the currently active `calcite-panel`.
9
+ */
10
+ back(): Promise<HTMLCalcitePanelElement>;
11
+ el: HTMLCalciteFlowElement;
12
+ panelCount: number;
13
+ flowDirection: FlowDirection;
14
+ panels: HTMLCalcitePanelElement[];
15
+ connectedCallback(): void;
16
+ disconnectedCallback(): void;
17
+ handleCalcitePanelBackClick(): void;
18
+ getFlowDirection: (oldPanelCount: number, newPanelCount: number) => FlowDirection | null;
19
+ updateFlowProps: () => void;
20
+ panelItemMutationObserver: MutationObserver;
21
+ render(): VNode;
22
+ }
@@ -0,0 +1,19 @@
1
+ import { FunctionalComponent } from "../../stencil-public-runtime";
2
+ import { Position, Scale } from "../interfaces";
3
+ interface ExpandToggleProps {
4
+ expanded: boolean;
5
+ intlExpand: string;
6
+ intlCollapse: string;
7
+ el: HTMLElement;
8
+ position: Position;
9
+ tooltip?: HTMLCalciteTooltipElement;
10
+ toggle: () => void;
11
+ ref?: (el: HTMLElement) => void;
12
+ scale?: Scale;
13
+ }
14
+ export declare function toggleChildActionText({ parent, expanded }: {
15
+ parent: HTMLElement;
16
+ expanded: boolean;
17
+ }): void;
18
+ export declare const ExpandToggle: FunctionalComponent<ExpandToggleProps>;
19
+ export {};
@@ -0,0 +1,28 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { ColorStop, DataSeries } from "./interfaces";
3
+ export declare class Graph {
4
+ el: HTMLCalciteGraphElement;
5
+ /**
6
+ * Array of tuples describing a single data point ([x, y])
7
+ * These data points should be sorted by x-axis value
8
+ */
9
+ data: DataSeries;
10
+ /**
11
+ * Array of values describing a single color stop ([offset, color, opacity])
12
+ * These color stops should be sorted by offset value
13
+ */
14
+ colorStops: ColorStop[];
15
+ /** Start of highlight color if highlighting range */
16
+ highlightMin: number;
17
+ /** End of highlight color if highlighting range */
18
+ highlightMax: number;
19
+ /** Lowest point of the range */
20
+ min: number;
21
+ /** Highest point of the range */
22
+ max: number;
23
+ connectedCallback(): void;
24
+ disconnectedCallback(): void;
25
+ render(): VNode;
26
+ private graphId;
27
+ private resizeObserver;
28
+ }
@@ -0,0 +1,22 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ export declare class Handle {
3
+ /**
4
+ * @internal - stores the activated state of the drag handle.
5
+ */
6
+ activated: boolean;
7
+ /**
8
+ * Value for the button title attribute
9
+ */
10
+ textTitle: string;
11
+ el: HTMLCalciteHandleElement;
12
+ handleButton: HTMLElement;
13
+ /**
14
+ * Emitted when the the handle is activated and the up or down arrow key is pressed.
15
+ */
16
+ calciteHandleNudge: EventEmitter;
17
+ /** Sets focus on the component. */
18
+ setFocus(): Promise<void>;
19
+ handleKeyDown: (event: KeyboardEvent) => void;
20
+ handleBlur: () => void;
21
+ render(): VNode;
22
+ }
@@ -0,0 +1,32 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { Scale } from "../interfaces";
3
+ export declare class Icon {
4
+ el: HTMLCalciteIconElement;
5
+ /**
6
+ * The name of the icon to display. The value of this property must match the icon name from https://esri.github.io/calcite-ui-icons/.
7
+ */
8
+ icon: string;
9
+ /**
10
+ * When true, the icon will be flipped when the element direction is 'rtl'.
11
+ */
12
+ flipRtl: boolean;
13
+ /**
14
+ * Icon scale.
15
+ */
16
+ scale: Scale;
17
+ /**
18
+ * The icon label.
19
+ *
20
+ * It is recommended to set this value if your icon is semantic.
21
+ */
22
+ textLabel: string;
23
+ connectedCallback(): void;
24
+ disconnectedCallback(): void;
25
+ componentWillLoad(): Promise<void>;
26
+ render(): VNode;
27
+ private intersectionObserver;
28
+ private pathData;
29
+ private visible;
30
+ private loadIconPathData;
31
+ private waitUntilVisible;
32
+ }
@@ -0,0 +1,74 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Scale } from "../interfaces";
3
+ import { LabelableComponent } from "../../utils/label";
4
+ import { InteractiveComponent } from "../../utils/interactive";
5
+ /**
6
+ * @slot - A slot for adding a `calcite-input`.
7
+ */
8
+ export declare class InlineEditable implements InteractiveComponent, LabelableComponent {
9
+ el: HTMLCalciteInlineEditableElement;
10
+ /** specify whether editing can be enabled */
11
+ disabled: boolean;
12
+ disabledWatcher(disabled: boolean): void;
13
+ /** specify whether the wrapped input element is editable, defaults to false */
14
+ editingEnabled: boolean;
15
+ editingEnabledWatcher(newValue: boolean, oldValue: boolean): void;
16
+ /** specify whether the confirm button should display a loading state, defaults to false */
17
+ loading: boolean;
18
+ /** specify whether save/cancel controls should be displayed when editingEnabled is true, defaults to false */
19
+ controls: boolean;
20
+ /** specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`
21
+ * @default "Click to edit"
22
+ */
23
+ intlEnableEditing: string;
24
+ /** specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
25
+ * @default "Cancel"
26
+ */
27
+ intlCancelEditing: string;
28
+ /** specify text to be user for the confirm changes button's aria-label, defaults to `Save`
29
+ * @default "Save"
30
+ */
31
+ intlConfirmChanges: string;
32
+ /** specify the scale of the inline-editable component, defaults to the scale of the wrapped calcite-input or the scale of the closest wrapping component with a set scale */
33
+ scale?: Scale;
34
+ /** when controls, specify a callback to be executed prior to disabling editing. when provided, loading state will be handled automatically. */
35
+ afterConfirm?: () => Promise<void>;
36
+ connectedCallback(): void;
37
+ disconnectedCallback(): void;
38
+ componentDidRender(): void;
39
+ render(): VNode;
40
+ /**
41
+ * Emitted when the cancel button gets clicked.
42
+ */
43
+ calciteInlineEditableEditCancel: EventEmitter<void>;
44
+ /**
45
+ * Emitted when the check button gets clicked.
46
+ */
47
+ calciteInlineEditableEditConfirm: EventEmitter<void>;
48
+ /**
49
+ * @internal
50
+ */
51
+ calciteInlineEditableEnableEditingChange: EventEmitter;
52
+ blurHandler(): void;
53
+ private inputElement;
54
+ private valuePriorToEditing;
55
+ private shouldEmitCancel;
56
+ private enableEditingButton;
57
+ private cancelEditingButton;
58
+ private confirmEditingButton;
59
+ labelEl: HTMLCalciteLabelElement;
60
+ mutationObserver: MutationObserver;
61
+ setFocus(): Promise<void>;
62
+ mutationObserverCallback(): void;
63
+ onLabelClick(): void;
64
+ updateSlottedInput(): void;
65
+ transitionEnd: () => void;
66
+ private get shouldShowControls();
67
+ private enableEditing;
68
+ private disableEditing;
69
+ private cancelEditing;
70
+ private escapeKeyHandler;
71
+ private cancelEditingHandler;
72
+ private enableEditingHandler;
73
+ private confirmChangesHandler;
74
+ }
@@ -0,0 +1,171 @@
1
+ import { Scale, Status } from "../interfaces";
2
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
3
+ import { InputPlacement } from "./interfaces";
4
+ import { Position } from "../interfaces";
5
+ import { LabelableComponent } from "../../utils/label";
6
+ import { FormComponent } from "../../utils/form";
7
+ import { InteractiveComponent } from "../../utils/interactive";
8
+ declare type NumberNudgeDirection = "up" | "down";
9
+ /**
10
+ * @slot action - A slot for positioning a button next to an input
11
+ */
12
+ export declare class Input implements LabelableComponent, FormComponent, InteractiveComponent {
13
+ el: HTMLCalciteInputElement;
14
+ /** specify the alignment of the value of the input */
15
+ alignment: Position;
16
+ /** should the input autofocus */
17
+ autofocus: boolean;
18
+ /** optionally display a clear button that displays when field has a value
19
+ * shows by default for search, time, date
20
+ * will not display for type="textarea" */
21
+ clearable: boolean;
22
+ /** is the input disabled */
23
+ disabled: boolean;
24
+ disabledWatcher(): void;
25
+ /** for number values, displays the locale's group separator */
26
+ groupSeparator: boolean;
27
+ /** when true, the component will not be visible */
28
+ hidden: boolean;
29
+ /** when used as a boolean set to true, show a default recommended icon for certain
30
+ * input types (tel, password, email, date, time, search). You can also pass a
31
+ * calcite-ui-icon name to this prop to display a requested icon for any input type */
32
+ icon: string | boolean;
33
+ /**
34
+ * string to override English loading text
35
+ * @default "Loading"
36
+ */
37
+ intlLoading?: string;
38
+ /** flip the icon in rtl */
39
+ iconFlipRtl: boolean;
40
+ /** Applies to the aria-label attribute on the button or hyperlink */
41
+ label?: string;
42
+ /** specify if the input is in loading state */
43
+ loading: boolean;
44
+ /** BCP 47 language tag for desired language and country format */
45
+ locale?: string;
46
+ /**
47
+ * Toggles locale formatting for numbers.
48
+ * @internal
49
+ */
50
+ localeFormat: boolean;
51
+ /** input max */
52
+ max?: number;
53
+ /** watcher to update number-to-string for max */
54
+ maxWatcher(): void;
55
+ /** input min */
56
+ min?: number;
57
+ /** watcher to update number-to-string for min */
58
+ minWatcher(): void;
59
+ /**
60
+ * Maximum length of text input.
61
+ * @deprecated use maxLength instead
62
+ */
63
+ maxlength?: number;
64
+ /** Maximum length of the input value */
65
+ maxLength?: number;
66
+ /** Minimum length of the text input */
67
+ minLength?: number;
68
+ /** The name of the input */
69
+ name: string;
70
+ /** specify the placement of the number buttons */
71
+ numberButtonType?: InputPlacement;
72
+ /** explicitly whitelist placeholder attribute */
73
+ placeholder: string;
74
+ /** optionally add prefix */
75
+ prefixText?: string;
76
+ /** When true, a field cannot be modified. */
77
+ readOnly: boolean;
78
+ /** is the input required */
79
+ required: boolean;
80
+ /** specify the scale of the input, defaults to m */
81
+ scale: Scale;
82
+ /** specify the status of the input field, determines message and icons */
83
+ status: Status;
84
+ /** input step */
85
+ step?: number | "any";
86
+ /** optionally add suffix **/
87
+ suffixText?: string;
88
+ /** @internal adds inline styles for text input when slotted in calcite-inline-editable */
89
+ editingEnabled: boolean;
90
+ /**
91
+ * specify the input type
92
+ *
93
+ * Note that the following types add type-specific icons by default: `date`, `email`, `password`, `search`, `tel`, `time`
94
+ */
95
+ type: "color" | "date" | "datetime-local" | "email" | "file" | "image" | "month" | "number" | "password" | "search" | "tel" | "text" | "textarea" | "time" | "url" | "week";
96
+ /** input value */
97
+ value: string;
98
+ valueWatcher(newValue: string): void;
99
+ updateRequestedIcon(): void;
100
+ labelEl: HTMLCalciteLabelElement;
101
+ formEl: HTMLFormElement;
102
+ defaultValue: Input["value"];
103
+ inlineEditableEl: HTMLCalciteInlineEditableElement;
104
+ /** keep track of the rendered child type */
105
+ private childEl?;
106
+ /** keep track of the rendered child type */
107
+ private childElType?;
108
+ /** number text input element for locale */
109
+ private childNumberEl?;
110
+ /** whether the value of the input was changed as a result of user typing or not */
111
+ private internalValueChange;
112
+ get isClearable(): boolean;
113
+ get isTextarea(): boolean;
114
+ private minString?;
115
+ private maxString?;
116
+ private preFocusValue;
117
+ private previousValue;
118
+ /** the computed icon to render */
119
+ private requestedIcon?;
120
+ private nudgeNumberValueIntervalId;
121
+ mutationObserver: MutationObserver;
122
+ localizedValue: string;
123
+ connectedCallback(): void;
124
+ disconnectedCallback(): void;
125
+ componentWillLoad(): void;
126
+ componentShouldUpdate(newValue: string, oldValue: string, property: string): boolean;
127
+ componentDidRender(): void;
128
+ /**
129
+ * @internal
130
+ */
131
+ calciteInputFocus: EventEmitter;
132
+ /**
133
+ * @internal
134
+ */
135
+ calciteInputBlur: EventEmitter;
136
+ /**
137
+ * This event fires each time a new value is typed.
138
+ */
139
+ calciteInputInput: EventEmitter;
140
+ /**
141
+ * This event fires each time a new value is typed and committed.
142
+ */
143
+ calciteInputChange: EventEmitter<void>;
144
+ /** Sets focus on the component. */
145
+ setFocus(): Promise<void>;
146
+ keyDownHandler: (event: KeyboardEvent) => void;
147
+ onLabelClick(): void;
148
+ incrementOrDecrementNumberValue(direction: NumberNudgeDirection, inputMax: number | null, inputMin: number | null, nativeEvent: KeyboardEvent | MouseEvent): void;
149
+ private clearInputValue;
150
+ private inputBlurHandler;
151
+ private inputFocusHandler;
152
+ private inputInputHandler;
153
+ private inputKeyDownHandler;
154
+ private inputNumberInputHandler;
155
+ private inputNumberKeyDownHandler;
156
+ private nudgeNumberValue;
157
+ private numberButtonMouseUpAndMouseOutHandler;
158
+ private numberButtonMouseDownHandler;
159
+ onFormReset(): void;
160
+ syncHiddenFormInput(input: HTMLInputElement): void;
161
+ private setChildElRef;
162
+ private setChildNumberElRef;
163
+ private setDisabledAction;
164
+ private setInputValue;
165
+ private setPreviousValue;
166
+ private setValue;
167
+ private inputKeyUpHandler;
168
+ private warnAboutInvalidNumberValue;
169
+ render(): VNode;
170
+ }
171
+ export {};