@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,54 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ /**
3
+ * @slot - A slot for adding custom content, including nested `calcite-accordion-item`s.
4
+ */
5
+ export declare class AccordionItem {
6
+ el: HTMLCalciteAccordionItemElement;
7
+ /** Indicates whether the item is active. */
8
+ active: boolean;
9
+ /** pass a title for the accordion item */
10
+ itemTitle?: string;
11
+ /** pass a title for the accordion item */
12
+ itemSubtitle?: string;
13
+ /** optionally pass an icon to display - accepts Calcite UI icon names */
14
+ icon?: string;
15
+ /**
16
+ * @internal
17
+ */
18
+ calciteAccordionItemKeyEvent: EventEmitter;
19
+ /**
20
+ * @internal
21
+ */
22
+ calciteAccordionItemSelect: EventEmitter;
23
+ /**
24
+ * @internal
25
+ */
26
+ calciteAccordionItemClose: EventEmitter;
27
+ /**
28
+ * @internal
29
+ */
30
+ calciteAccordionItemRegister: EventEmitter;
31
+ connectedCallback(): void;
32
+ componentDidLoad(): void;
33
+ render(): VNode;
34
+ keyDownHandler(e: KeyboardEvent): void;
35
+ updateActiveItemOnChange(event: CustomEvent): void;
36
+ private guid;
37
+ /** the containing accordion element */
38
+ private parent;
39
+ /** position within parent */
40
+ private itemPosition;
41
+ /** the latest requested item */
42
+ private requestedAccordionItem;
43
+ /** what selection mode is the parent accordion in */
44
+ private selectionMode;
45
+ /** what icon position does the parent accordion specify */
46
+ private iconPosition;
47
+ /** what icon type does the parent accordion specify */
48
+ private iconType;
49
+ /** handle clicks on item header */
50
+ private itemHeaderClickHandler;
51
+ private determineActiveItem;
52
+ private emitRequestedItem;
53
+ private getItemPosition;
54
+ }
@@ -0,0 +1,75 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Alignment, Appearance, Scale } from "../interfaces";
3
+ import { InteractiveComponent } from "../../utils/interactive";
4
+ /**
5
+ * @slot - A slot for adding a `calcite-icon`.
6
+ */
7
+ export declare class Action implements InteractiveComponent {
8
+ /**
9
+ * Indicates whether the action is highlighted.
10
+ */
11
+ active: boolean;
12
+ /**
13
+ * Optionally specify the horizontal alignment of button elements with text content.
14
+ */
15
+ alignment?: Alignment;
16
+ /** Specify the appearance style of the action, defaults to solid. */
17
+ appearance: Extract<"solid" | "clear", Appearance>;
18
+ /**
19
+ * Compact mode is used internally by components to reduce side padding, e.g. calcite-block-section.
20
+ */
21
+ compact: boolean;
22
+ /**
23
+ * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
24
+ */
25
+ disabled: boolean;
26
+ /**
27
+ * 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/.
28
+ */
29
+ icon?: string;
30
+ /**
31
+ * Indicates unread changes.
32
+ */
33
+ indicator: boolean;
34
+ /** string to override English loading text
35
+ * @default "Loading"
36
+ */
37
+ intlLoading?: string;
38
+ /**
39
+ * The label of the action. If no label is provided, the label inherits what's provided for the `text` prop.
40
+ */
41
+ label?: string;
42
+ /**
43
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
44
+ */
45
+ loading: boolean;
46
+ /**
47
+ * Specifies the size of the action.
48
+ */
49
+ scale: Scale;
50
+ /**
51
+ * Text that accompanies the action icon.
52
+ */
53
+ text: string;
54
+ /**
55
+ * Indicates whether the text is displayed.
56
+ */
57
+ textEnabled: boolean;
58
+ /**
59
+ * Emitted when the action has been clicked.
60
+ * @deprecated use onClick instead.
61
+ */
62
+ calciteActionClick: EventEmitter;
63
+ el: HTMLCalciteActionElement;
64
+ buttonEl: HTMLButtonElement;
65
+ mutationObserver: MutationObserver;
66
+ connectedCallback(): void;
67
+ disconnectedCallback(): void;
68
+ componentDidRender(): void;
69
+ /** Sets focus on the component. */
70
+ setFocus(): Promise<void>;
71
+ renderTextContainer(): VNode;
72
+ renderIconContainer(): VNode;
73
+ render(): VNode;
74
+ calciteActionClickHandler: () => void;
75
+ }
@@ -0,0 +1,69 @@
1
+ /// <reference types="lodash" />
2
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
3
+ import { Position, Scale } from "../interfaces";
4
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
5
+ /**
6
+ * @slot - A slot for adding `calcite-action`s that will appear at the top of the action bar.
7
+ * @slot bottom-actions - A slot for adding `calcite-action`s that will appear at the bottom of the action bar, above the collapse/expand button.
8
+ * @slot expand-tooltip - Used to set the tooltip for the expand toggle.
9
+ */
10
+ export declare class ActionBar implements ConditionalSlotComponent {
11
+ /**
12
+ * When set to true, the expand-toggling behavior will be disabled.
13
+ */
14
+ expandDisabled: boolean;
15
+ expandHandler(): void;
16
+ /**
17
+ * Indicates whether widget is expanded.
18
+ */
19
+ expanded: boolean;
20
+ expandedHandler(expanded: boolean): void;
21
+ /**
22
+ * Updates the label of the expand icon when the component is not expanded.
23
+ */
24
+ intlExpand?: string;
25
+ /**
26
+ * Updates the label of the collapse icon when the component is expanded.
27
+ */
28
+ intlCollapse?: string;
29
+ /**
30
+ * Disables automatically overflowing actions that won't fit into menus.
31
+ */
32
+ overflowActionsDisabled: boolean;
33
+ overflowDisabledHandler(overflowActionsDisabled: boolean): void;
34
+ /**
35
+ * Arranges the component depending on the elements 'dir' property.
36
+ */
37
+ position: Position;
38
+ /**
39
+ * Specifies the size of the expand action.
40
+ */
41
+ scale: Scale;
42
+ /**
43
+ * Emitted when expanded has been toggled.
44
+ */
45
+ calciteActionBarToggle: EventEmitter;
46
+ el: HTMLCalciteActionBarElement;
47
+ mutationObserver: MutationObserver;
48
+ resizeObserver: ResizeObserver;
49
+ expandToggleEl: HTMLCalciteActionElement;
50
+ componentDidLoad(): void;
51
+ connectedCallback(): void;
52
+ disconnectedCallback(): void;
53
+ /**
54
+ * Overflows actions that won't fit into menus.
55
+ * @internal
56
+ */
57
+ overflowActions(): Promise<void>;
58
+ /** Sets focus on the component. */
59
+ setFocus(focusId?: "expand-toggle"): Promise<void>;
60
+ actionMenuOpenChangeHandler: (event: CustomEvent<boolean>) => void;
61
+ resizeHandlerEntries: (entries: ResizeObserverEntry[]) => void;
62
+ resizeHandler: (entry: ResizeObserverEntry) => void;
63
+ resize: import("lodash").DebouncedFunc<(height: number) => void>;
64
+ conditionallyOverflowActions: () => void;
65
+ toggleExpand: () => void;
66
+ setExpandToggleRef: (el: HTMLCalciteActionElement) => void;
67
+ renderBottomActionGroup(): VNode;
68
+ render(): VNode;
69
+ }
@@ -0,0 +1,42 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { Columns, Layout, Scale } from "../interfaces";
3
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
4
+ /**
5
+ * @slot - A slot for adding a group of `calcite-action`s.
6
+ * @slot menu-actions - a slot for adding an overflow menu with actions inside a dropdown.
7
+ * @slot menu-tooltip - a slot for adding an tooltip for the menu.
8
+ */
9
+ export declare class ActionGroup implements ConditionalSlotComponent {
10
+ /**
11
+ * Indicates whether widget is expanded.
12
+ */
13
+ expanded: boolean;
14
+ expandedHandler(): void;
15
+ /**
16
+ * Indicates the horizontal, vertical, or grid layout of the component.
17
+ */
18
+ layout: Layout;
19
+ /**
20
+ * Indicates number of columns.
21
+ */
22
+ columns?: Columns;
23
+ /**
24
+ * Text string for the actions menu.
25
+ */
26
+ intlMore?: string;
27
+ /**
28
+ * Opens the action menu.
29
+ */
30
+ menuOpen: boolean;
31
+ /**
32
+ * Specifies the size of the action-menu.
33
+ */
34
+ scale: Scale;
35
+ el: HTMLCalciteActionGroupElement;
36
+ connectedCallback(): void;
37
+ disconnectedCallback(): void;
38
+ renderTooltip(): VNode;
39
+ renderMenu(): VNode;
40
+ render(): VNode;
41
+ setMenuOpen: (event: CustomEvent<boolean>) => void;
42
+ }
@@ -0,0 +1,82 @@
1
+ import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { VNode } from "../../stencil-public-runtime";
3
+ import { PopperPlacement, OverlayPositioning, ComputedPlacement } from "../../utils/popper";
4
+ import { Scale } from "../interfaces";
5
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
6
+ /**
7
+ * @slot - A slot for adding `calcite-action`s.
8
+ * @slot trigger - A slot for adding a `calcite-action` to trigger opening the menu.
9
+ * @slot tooltip - A slot for adding an tooltip for the menu.
10
+ */
11
+ export declare class ActionMenu implements ConditionalSlotComponent {
12
+ connectedCallback(): void;
13
+ disconnectedCallback(): void;
14
+ /**
15
+ * Indicates whether widget is expanded.
16
+ */
17
+ expanded: boolean;
18
+ expandedHandler(): void;
19
+ /**
20
+ * Defines the available placements that can be used when a flip occurs.
21
+ */
22
+ flipPlacements?: ComputedPlacement[];
23
+ /**
24
+ * Text string for the actions menu.
25
+ */
26
+ label: string;
27
+ /**
28
+ * Opens the action menu.
29
+ */
30
+ open: boolean;
31
+ openHandler(open: boolean): void;
32
+ /** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
33
+ overlayPositioning: OverlayPositioning;
34
+ /**
35
+ * Determines where the component will be positioned relative to the referenceElement.
36
+ * @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
37
+ */
38
+ placement: PopperPlacement;
39
+ /**
40
+ * Specifies the size of the menu trigger action.
41
+ */
42
+ scale: Scale;
43
+ /**
44
+ * Emitted when the open property has changed.
45
+ */
46
+ calciteActionMenuOpenChange: EventEmitter;
47
+ closeCalciteActionMenuOnClick(event: Event): void;
48
+ el: HTMLCalciteActionMenuElement;
49
+ menuButtonEl: HTMLCalciteActionElement;
50
+ defaultMenuButtonEl: HTMLCalciteActionElement;
51
+ menuEl: HTMLDivElement;
52
+ actionElements: HTMLCalciteActionElement[];
53
+ mutationObserver: MutationObserver;
54
+ guid: string;
55
+ menuId: string;
56
+ menuButtonId: string;
57
+ activeMenuItemIndex: number;
58
+ activeMenuItemIndexHandler(): void;
59
+ /** Sets focus on the component. */
60
+ setFocus(): Promise<void>;
61
+ connectMenuButtonEl: () => void;
62
+ disconnectMenuButtonEl: () => void;
63
+ setDefaultMenuButtonEl: (el: HTMLCalciteActionElement) => void;
64
+ renderMenuButton(): VNode;
65
+ renderMenuItems(): VNode;
66
+ render(): VNode;
67
+ handleCalciteActionClick: () => void;
68
+ menuButtonClick: () => void;
69
+ setTooltipReferenceElement: () => void;
70
+ updateAction: (action: HTMLCalciteActionElement, index: number) => void;
71
+ updateActions: (actions: HTMLCalciteActionElement[]) => void;
72
+ getAssignedElements(): HTMLElement[];
73
+ getActions: () => void;
74
+ isValidKey(key: string, supportedKeys: string[]): boolean;
75
+ menuButtonKeyUp: (event: KeyboardEvent) => void;
76
+ menuButtonKeyDown: (event: KeyboardEvent) => void;
77
+ menuActionsContainerKeyDown: (event: KeyboardEvent) => void;
78
+ menuActionsContainerKeyUp: (event: KeyboardEvent) => void;
79
+ handleActionNavigation: (key: string, actions: HTMLCalciteActionElement[]) => void;
80
+ toggleOpenEnd: () => void;
81
+ toggleOpen: (value?: boolean) => void;
82
+ }
@@ -0,0 +1,54 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Layout, Position, Scale } from "../interfaces";
3
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
4
+ /**
5
+ * @slot - A slot for adding `calcite-action`s to the action pad.
6
+ * @slot expand-tooltip - Used to set the tooltip for the expand toggle.
7
+ */
8
+ export declare class ActionPad implements ConditionalSlotComponent {
9
+ /**
10
+ * When set to true, the expand-toggling behavior will be disabled.
11
+ */
12
+ expandDisabled: boolean;
13
+ /**
14
+ * Indicates whether widget is expanded.
15
+ */
16
+ expanded: boolean;
17
+ expandedHandler(expanded: boolean): void;
18
+ /**
19
+ * Indicates the horizontal or vertical layout of the component.
20
+ */
21
+ layout: Layout;
22
+ /**
23
+ * Updates the label of the expand icon when the component is not expanded.
24
+ */
25
+ intlExpand?: string;
26
+ /**
27
+ * Updates the label of the collapse icon when the component is expanded.
28
+ */
29
+ intlCollapse?: string;
30
+ /**
31
+ * Arranges the component depending on the elements 'dir' property.
32
+ */
33
+ position: Position;
34
+ /**
35
+ * Specifies the size of the expand action.
36
+ */
37
+ scale: Scale;
38
+ /**
39
+ * Emitted when expanded has been toggled.
40
+ */
41
+ calciteActionPadToggle: EventEmitter;
42
+ el: HTMLCalciteActionPadElement;
43
+ expandToggleEl: HTMLCalciteActionElement;
44
+ connectedCallback(): void;
45
+ disconnectedCallback(): void;
46
+ componentWillLoad(): void;
47
+ /** Sets focus on the component. */
48
+ setFocus(focusId?: "expand-toggle"): Promise<void>;
49
+ actionMenuOpenChangeHandler: (event: CustomEvent<boolean>) => void;
50
+ toggleExpand: () => void;
51
+ setExpandToggleRef: (el: HTMLCalciteActionElement) => void;
52
+ renderBottomActionGroup(): VNode;
53
+ render(): VNode;
54
+ }
@@ -0,0 +1,83 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Scale } from "../interfaces";
3
+ import { AlertDuration, AlertPlacement, StatusColor } from "./interfaces";
4
+ /** Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
5
+ * at the bottom of the page. Multiple opened alerts will be added to a queue, allowing users to dismiss them in the order they are provided.
6
+ */
7
+ /**
8
+ * @slot title - Title of the alert (optional)
9
+ * @slot message - Main text of the alert
10
+ * @slot link - Optional action to take from the alert (undo, try again, link to page, etc.)
11
+ */
12
+ export declare class Alert {
13
+ el: HTMLCalciteAlertElement;
14
+ /** Is the alert currently active or not */
15
+ active: boolean;
16
+ watchActive(): void;
17
+ /** Close the alert automatically (recommended for passive, non-blocking alerts) */
18
+ autoDismiss: boolean;
19
+ /** Duration of autoDismiss (only used with `autoDismiss`) */
20
+ autoDismissDuration: AlertDuration;
21
+ /** Color for the alert (will apply to top border and icon) */
22
+ color: StatusColor;
23
+ /** when used as a boolean set to true, show a default recommended icon. You can
24
+ * also pass a calcite-ui-icon name to this prop to display a requested icon */
25
+ icon: string | boolean;
26
+ /** string to override English close text
27
+ * @default "Close"
28
+ */
29
+ intlClose: string;
30
+ /** Accessible name for the component */
31
+ label: string;
32
+ /** specify the placement of the alert */
33
+ placement: AlertPlacement;
34
+ /** specify the scale of the alert, defaults to m */
35
+ scale: Scale;
36
+ updateRequestedIcon(): void;
37
+ updateDuration(): void;
38
+ connectedCallback(): void;
39
+ componentWillLoad(): void;
40
+ disconnectedCallback(): void;
41
+ render(): VNode;
42
+ /** Fired when an alert is closed */
43
+ calciteAlertClose: EventEmitter;
44
+ /** Fired when an alert is opened */
45
+ calciteAlertOpen: EventEmitter;
46
+ /**
47
+ * Fired to sync queue when opened or closed
48
+ *
49
+ * @internal
50
+ */
51
+ calciteAlertSync: EventEmitter;
52
+ /**
53
+ * Fired when an alert is added to dom - used to receive initial queue
54
+ *
55
+ * @internal
56
+ */
57
+ calciteAlertRegister: EventEmitter;
58
+ alertSync(event: CustomEvent): void;
59
+ alertRegister(): void;
60
+ /** Sets focus on the component. */
61
+ setFocus(): Promise<void>;
62
+ /** the list of queued alerts */
63
+ queue: HTMLCalciteAlertElement[];
64
+ /** the count of queued alerts */
65
+ queueLength: number;
66
+ /** is the alert queued */
67
+ queued: boolean;
68
+ /** the close button element */
69
+ private closeButton?;
70
+ private autoDismissTimeoutId;
71
+ private queueTimeout;
72
+ private trackTimer;
73
+ /** the computed icon to render */
74
+ requestedIcon?: string;
75
+ private activeTransitionProp;
76
+ /** determine which alert is active */
77
+ private determineActiveAlert;
78
+ /** close and emit the closed alert and the queue */
79
+ private closeAlert;
80
+ transitionEnd: (event: TransitionEvent) => void;
81
+ /** emit the opened alert and the queue */
82
+ private openAlert;
83
+ }
@@ -0,0 +1,26 @@
1
+ import { Scale } from "../interfaces";
2
+ export declare class Avatar {
3
+ el: HTMLCalciteAvatarElement;
4
+ /** specify the scale of the avatar, defaults to m */
5
+ scale: Scale;
6
+ /** src to an image (remember to add a token if the user is private) */
7
+ thumbnail: string;
8
+ /** full name of the user */
9
+ fullName: string;
10
+ /** user name */
11
+ username: string;
12
+ /** unique id for user */
13
+ userId: string;
14
+ render(): any;
15
+ /** True if thumnail fails to load */
16
+ error: boolean;
17
+ private determineContent;
18
+ /**
19
+ * Generate a valid background color that is consistent and unique to this user
20
+ */
21
+ private generateFillColor;
22
+ /**
23
+ * Use fullname or username to generate initials
24
+ */
25
+ private generateInitials;
26
+ }
@@ -0,0 +1,79 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { HeadingLevel } from "../functional/Heading";
3
+ import { Status } from "../interfaces";
4
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
5
+ import { InteractiveComponent } from "../../utils/interactive";
6
+ /**
7
+ * @slot - A slot for adding content to the block.
8
+ * @slot icon - A slot for adding a leading header icon.
9
+ * @slot control - A slot for adding a single HTML input element in a header.
10
+ * @slot header-menu-actions - a slot for adding an overflow menu with actions inside a dropdown.
11
+ */
12
+ export declare class Block implements ConditionalSlotComponent, InteractiveComponent {
13
+ /**
14
+ * When true, this block will be collapsible.
15
+ */
16
+ collapsible: boolean;
17
+ /**
18
+ * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
19
+ */
20
+ disabled: boolean;
21
+ /**
22
+ * When true, displays a drag handle in the header.
23
+ */
24
+ dragHandle: boolean;
25
+ /**
26
+ * Block heading.
27
+ */
28
+ heading: string;
29
+ /**
30
+ * Number at which section headings should start for this component.
31
+ */
32
+ headingLevel: HeadingLevel;
33
+ /**
34
+ * Tooltip used for the toggle when expanded.
35
+ */
36
+ intlCollapse?: string;
37
+ /**
38
+ * Tooltip used for the toggle when collapsed.
39
+ */
40
+ intlExpand?: string;
41
+ /** string to override English loading text
42
+ * @default "Loading"
43
+ */
44
+ intlLoading?: string;
45
+ /** Text string used for the actions menu
46
+ * @default "Options"
47
+ */
48
+ intlOptions?: string;
49
+ /**
50
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
51
+ */
52
+ loading: boolean;
53
+ /**
54
+ * When true, the block's content will be displayed.
55
+ */
56
+ open: boolean;
57
+ /**
58
+ * Block status. Updates or adds icon to show related icon and color.
59
+ */
60
+ status?: Status;
61
+ /**
62
+ * Block summary.
63
+ */
64
+ summary: string;
65
+ componentDidRender(): void;
66
+ el: HTMLCalciteBlockElement;
67
+ private guid;
68
+ connectedCallback(): void;
69
+ disconnectedCallback(): void;
70
+ /**
71
+ * Emitted when the header has been clicked.
72
+ */
73
+ calciteBlockToggle: EventEmitter;
74
+ onHeaderClick: () => void;
75
+ renderScrim(): VNode[];
76
+ renderIcon(): VNode[];
77
+ renderTitle(): VNode;
78
+ render(): VNode;
79
+ }
@@ -0,0 +1,44 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { BlockSectionToggleDisplay } from "./interfaces";
3
+ import { Status } from "../interfaces";
4
+ /**
5
+ * @slot - A slot for adding content to the block section.
6
+ */
7
+ export declare class BlockSection {
8
+ /**
9
+ * Tooltip used for the toggle when expanded.
10
+ */
11
+ intlCollapse?: string;
12
+ /**
13
+ * Tooltip used for the toggle when collapsed.
14
+ */
15
+ intlExpand?: string;
16
+ /**
17
+ * When true, the block's section content will be displayed.
18
+ */
19
+ open: boolean;
20
+ /**
21
+ * BlockSection status. Adds indicator to show valid or invalid status.
22
+ */
23
+ status?: Status;
24
+ /**
25
+ * Text displayed in the button.
26
+ */
27
+ text: string;
28
+ /**
29
+ * This property determines the look of the section toggle.
30
+ * If the value is "switch", a toggle-switch will be displayed.
31
+ * If the value is "button", a clickable header is displayed.
32
+ */
33
+ toggleDisplay: BlockSectionToggleDisplay;
34
+ el: HTMLCalciteBlockSectionElement;
35
+ private guid;
36
+ /**
37
+ * Emitted when the header has been clicked.
38
+ */
39
+ calciteBlockSectionToggle: EventEmitter;
40
+ handleHeaderKeyDown: (event: KeyboardEvent) => void;
41
+ toggleSection: () => void;
42
+ renderStatusIcon(): VNode[];
43
+ render(): VNode;
44
+ }