@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,52 @@
1
+ import Sortable from "sortablejs";
2
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
3
+ import { Layout } from "../interfaces";
4
+ import { InteractiveComponent } from "../../utils/interactive";
5
+ /**
6
+ * @slot - A slot for adding sortable items.
7
+ */
8
+ export declare class SortableList implements InteractiveComponent {
9
+ /**
10
+ * Specifies which items inside the element should be draggable.
11
+ */
12
+ dragSelector?: string;
13
+ /**
14
+ * The list's group identifier.
15
+ *
16
+ * To drag elements from one list into another, both lists must have the same group value.
17
+ */
18
+ group?: string;
19
+ /**
20
+ * The selector for the handle elements.
21
+ */
22
+ handleSelector: string;
23
+ /**
24
+ * Indicates the horizontal or vertical orientation of the component.
25
+ */
26
+ layout: Layout;
27
+ /**
28
+ * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
29
+ */
30
+ disabled: boolean;
31
+ /**
32
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
33
+ */
34
+ loading: boolean;
35
+ el: HTMLCalciteSortableListElement;
36
+ handleActivated: boolean;
37
+ items: Element[];
38
+ mutationObserver: MutationObserver;
39
+ sortable: Sortable;
40
+ connectedCallback(): void;
41
+ disconnectedCallback(): void;
42
+ componentDidRender(): void;
43
+ /**
44
+ * Emitted when the order of the list has changed.
45
+ */
46
+ calciteListOrderChange: EventEmitter;
47
+ calciteHandleNudgeHandler(event: CustomEvent): void;
48
+ setUpDragAndDrop(): void;
49
+ cleanUpDragAndDrop(): void;
50
+ beginObserving(): void;
51
+ render(): VNode;
52
+ }
@@ -0,0 +1,56 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { ButtonAppearance, ButtonColor, DropdownIconType } from "../button/interfaces";
3
+ import { FlipContext, Scale, Width } from "../interfaces";
4
+ import { OverlayPositioning } from "../../utils/popper";
5
+ import { InteractiveComponent } from "../../utils/interactive";
6
+ /**
7
+ * @slot - A slot for adding `calcite-dropdown` content.
8
+ */
9
+ export declare class SplitButton implements InteractiveComponent {
10
+ el: HTMLCalciteSplitButtonElement;
11
+ /** specify the appearance style of the button, defaults to solid. */
12
+ appearance: ButtonAppearance;
13
+ /** specify the color of the control, defaults to blue */
14
+ color: ButtonColor;
15
+ /** is the control disabled */
16
+ disabled: boolean;
17
+ handleDisabledChange(value: boolean): void;
18
+ /**
19
+ * Is the dropdown currently active or not
20
+ * @internal
21
+ */
22
+ active: boolean;
23
+ activeHandler(): void;
24
+ /** specify the icon used for the dropdown menu, defaults to chevron */
25
+ dropdownIconType: DropdownIconType;
26
+ /** aria label for overflow button */
27
+ dropdownLabel?: string;
28
+ /** optionally add a calcite-loader component to the control,
29
+ disabling interaction. with the primary button */
30
+ loading: boolean;
31
+ /** Describes the type of positioning to use for the dropdown. If your element is in a fixed container, use the 'fixed' value. */
32
+ overlayPositioning: OverlayPositioning;
33
+ /** optionally pass an icon to display at the end of the primary button - accepts Calcite UI icon names */
34
+ primaryIconEnd?: string;
35
+ /** flip the primary icon(s) in rtl */
36
+ primaryIconFlipRtl?: FlipContext;
37
+ /** optionally pass an icon to display at the start of the primary button - accepts Calcite UI icon names */
38
+ primaryIconStart?: string;
39
+ /** optionally pass an aria-label for the primary button */
40
+ primaryLabel?: string;
41
+ /** text for primary action button */
42
+ primaryText: string;
43
+ /** specify the scale of the control, defaults to m */
44
+ scale: Scale;
45
+ /** specify the width of the button, defaults to auto */
46
+ width: Width;
47
+ /** fired when the primary button is clicked */
48
+ calciteSplitButtonPrimaryClick: EventEmitter;
49
+ /** fired when the secondary button is clicked */
50
+ calciteSplitButtonSecondaryClick: EventEmitter;
51
+ componentDidRender(): void;
52
+ render(): VNode;
53
+ private calciteSplitButtonPrimaryClickHandler;
54
+ private calciteSplitButtonSecondaryClickHandler;
55
+ private get dropdownIcon();
56
+ }
@@ -0,0 +1,58 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Layout, Scale } from "../interfaces";
3
+ /**
4
+ * @slot - A slot for adding `calcite-stepper-item`s.
5
+ */
6
+ export declare class Stepper {
7
+ el: HTMLCalciteStepperElement;
8
+ /** optionally display a status icon next to the step title */
9
+ icon: boolean;
10
+ /** specify the layout of stepper, defaults to horizontal */
11
+ layout: Layout;
12
+ /** optionally display the number next to the step title */
13
+ numbered: boolean;
14
+ /** specify the scale of stepper, defaults to m */
15
+ scale: Scale;
16
+ /** @internal */
17
+ requestedContent: HTMLElement[] | NodeListOf<any>;
18
+ contentWatcher(): void;
19
+ /**
20
+ * This event fires when the active stepper item has changed.
21
+ * @internal
22
+ */
23
+ calciteStepperItemChange: EventEmitter;
24
+ componentDidLoad(): void;
25
+ componentWillLoad(): void;
26
+ render(): VNode;
27
+ calciteStepperItemKeyEvent(e: CustomEvent): void;
28
+ registerItem(event: CustomEvent): void;
29
+ updateItem(event: CustomEvent): void;
30
+ /** set the next step as active */
31
+ nextStep(): Promise<void>;
32
+ /** set the previous step as active */
33
+ prevStep(): Promise<void>;
34
+ /** set the requested step as active */
35
+ goToStep(num: number): Promise<void>;
36
+ /** set the first step as active */
37
+ startStep(): Promise<void>;
38
+ /** set the last step as active */
39
+ endStep(): Promise<void>;
40
+ /** created list of Stepper items */
41
+ private items;
42
+ /** sorted list of Stepper items */
43
+ private sortedItems;
44
+ /** keep track of the currently active item position */
45
+ private currentPosition;
46
+ /** the container where we place horizontal layout step content */
47
+ private stepperContentContainer;
48
+ private addHorizontalContentContainer;
49
+ private emitChangedItem;
50
+ private focusFirstItem;
51
+ private focusLastItem;
52
+ private focusNextItem;
53
+ private focusPrevItem;
54
+ private itemIndex;
55
+ private focusElement;
56
+ private sortItems;
57
+ private updateContent;
58
+ }
@@ -0,0 +1,67 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Scale } from "../interfaces";
3
+ import { InteractiveComponent } from "../../utils/interactive";
4
+ /**
5
+ * @slot - A slot for adding custom content.
6
+ */
7
+ export declare class StepperItem implements InteractiveComponent {
8
+ el: HTMLCalciteStepperItemElement;
9
+ /** is the step active */
10
+ active: boolean;
11
+ /** has the step been completed */
12
+ complete: boolean;
13
+ /** does the step contain an error that needs to be resolved by the user */
14
+ error: boolean;
15
+ /** is the step disabled and not navigable to by a user */
16
+ disabled: boolean;
17
+ /** pass a title for the stepper item */
18
+ itemTitle?: string;
19
+ /** pass a title for the stepper item */
20
+ itemSubtitle?: string;
21
+ /** pass a title for the stepper item */
22
+ /** @internal */
23
+ layout?: string;
24
+ /** should the items display an icon based on status */
25
+ /** @internal */
26
+ icon: boolean;
27
+ /** optionally display the step number next to the title and subtitle */
28
+ /** @internal */
29
+ numbered: boolean;
30
+ /** the scale of the item */
31
+ /** @internal */
32
+ scale: Scale;
33
+ disabledWatcher(): void;
34
+ /**
35
+ * @internal
36
+ */
37
+ calciteStepperItemKeyEvent: EventEmitter;
38
+ /**
39
+ * @internal
40
+ */
41
+ calciteStepperItemSelect: EventEmitter;
42
+ /**
43
+ * @internal
44
+ */
45
+ calciteStepperItemRegister: EventEmitter;
46
+ componentWillLoad(): void;
47
+ componentDidLoad(): void;
48
+ componentDidUpdate(): void;
49
+ componentDidRender(): void;
50
+ render(): VNode;
51
+ keyDownHandler(e: KeyboardEvent): void;
52
+ updateActiveItemOnChange(event: CustomEvent): void;
53
+ /** position within parent */
54
+ private itemPosition;
55
+ /** the latest requested item position*/
56
+ private activePosition;
57
+ /** the slotted item content */
58
+ private itemContent;
59
+ /** the parent stepper component */
60
+ private parentStepperEl;
61
+ private renderIcon;
62
+ private determineActiveItem;
63
+ private registerStepperItem;
64
+ private emitRequestedItem;
65
+ private getItemContent;
66
+ private getItemPosition;
67
+ }
@@ -0,0 +1,45 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Scale } from "../interfaces";
3
+ import { LabelableComponent } from "../../utils/label";
4
+ import { CheckableFormCompoment } from "../../utils/form";
5
+ import { InteractiveComponent } from "../../utils/interactive";
6
+ export declare class Switch implements LabelableComponent, CheckableFormCompoment, InteractiveComponent {
7
+ el: HTMLCalciteSwitchElement;
8
+ /** True if the switch is disabled */
9
+ disabled: boolean;
10
+ /** Applies to the aria-label attribute on the switch */
11
+ label?: string;
12
+ /** The name of the switch input */
13
+ name: string;
14
+ /** The scale of the switch */
15
+ scale: Scale;
16
+ /** True if the switch is initially on
17
+ * @deprecated use 'checked' instead.
18
+ */
19
+ switched: boolean;
20
+ switchedWatcher(switched: boolean): void;
21
+ /** True if the switch is initially on */
22
+ checked: boolean;
23
+ /** The value of the switch input */
24
+ value: any;
25
+ labelEl: HTMLCalciteLabelElement;
26
+ switchEl: HTMLDivElement;
27
+ formEl: HTMLFormElement;
28
+ defaultValue: Switch["checked"];
29
+ defaultChecked: boolean;
30
+ /** Sets focus on the component. */
31
+ setFocus(): Promise<void>;
32
+ keyDownHandler: (e: KeyboardEvent) => void;
33
+ onLabelClick(): void;
34
+ private toggle;
35
+ private clickHandler;
36
+ private setSwitchEl;
37
+ /**
38
+ * Fires when the checked value has changed.
39
+ */
40
+ calciteSwitchChange: EventEmitter;
41
+ connectedCallback(): void;
42
+ disconnectedCallback(): void;
43
+ componentDidRender(): void;
44
+ render(): VNode;
45
+ }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { TabChangeEventDetail } from "./interfaces";
3
+ import { Scale } from "../interfaces";
4
+ /**
5
+ * @slot - A slot for adding custom content.
6
+ */
7
+ export declare class Tab {
8
+ el: HTMLCalciteTabElement;
9
+ /**
10
+ * Optionally include a unique name for this tab,
11
+ * be sure to also set this name on the associated title.
12
+ */
13
+ tab: string;
14
+ /**
15
+ * Show this tab
16
+ */
17
+ active: boolean;
18
+ /** @internal Parent tabs component scale value */
19
+ scale: Scale;
20
+ render(): VNode;
21
+ componentDidLoad(): void;
22
+ componentWillRender(): void;
23
+ disconnectedCallback(): void;
24
+ /**
25
+ * @internal
26
+ */
27
+ calciteTabRegister: EventEmitter;
28
+ tabChangeHandler(event: CustomEvent<TabChangeEventDetail>): void;
29
+ /**
30
+ * Return the index of this tab within the tab array
31
+ */
32
+ getTabIndex(): Promise<number>;
33
+ /**
34
+ * @internal
35
+ */
36
+ private guid;
37
+ private labeledBy;
38
+ /**
39
+ * @internal
40
+ */
41
+ updateAriaInfo(tabIds?: string[], titleIds?: string[]): Promise<void>;
42
+ }
@@ -0,0 +1,74 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { TabChangeEventDetail } from "../tab/interfaces";
3
+ import { TabID, TabLayout } from "../tabs/interfaces";
4
+ import { TabPosition } from "../tabs/interfaces";
5
+ import { Scale } from "../interfaces";
6
+ /**
7
+ * @slot - A slot for adding `calcite-tab-title`s.
8
+ */
9
+ export declare class TabNav {
10
+ el: HTMLCalciteTabNavElement;
11
+ /**
12
+ * Name to use when saving selected tab data to localStorage
13
+ */
14
+ storageId: string;
15
+ /**
16
+ * Pass the same string to multiple tab navs to keep them all in sync if one changes
17
+ */
18
+ syncId: string;
19
+ /** @internal Parent tabs component scale value */
20
+ scale: Scale;
21
+ /** @internal Parent tabs component layout value */
22
+ layout: TabLayout;
23
+ /** @internal Parent tabs component position value */
24
+ position: TabPosition;
25
+ /** @internal Parent tabs component bordered value when layout is "inline" */
26
+ bordered: boolean;
27
+ /**
28
+ * @internal
29
+ */
30
+ selectedTab: TabID;
31
+ /**
32
+ * @internal
33
+ */
34
+ selectedTabEl: HTMLCalciteTabTitleElement;
35
+ /**
36
+ * @internal
37
+ */
38
+ indicatorOffset: number;
39
+ /**
40
+ * @internal
41
+ */
42
+ indicatorWidth: number;
43
+ selectedTabChanged(): Promise<void>;
44
+ selectedTabElChanged(): void;
45
+ componentWillLoad(): void;
46
+ componentWillRender(): void;
47
+ componentDidRender(): void;
48
+ render(): VNode;
49
+ resizeHandler(): void;
50
+ focusPreviousTabHandler(e: CustomEvent): void;
51
+ focusNextTabHandler(e: CustomEvent): void;
52
+ activateTabHandler(e: CustomEvent<TabChangeEventDetail>): void;
53
+ /**
54
+ * Check for active tabs on register and update selected
55
+ */
56
+ updateTabTitles(e: CustomEvent<TabID>): void;
57
+ globalTabChangeHandler(e: CustomEvent<TabChangeEventDetail>): void;
58
+ /**
59
+ * Emitted when the active tab changes
60
+ * @see [TabChangeEventDetail](https://github.com/Esri/calcite-components/blob/master/src/components/tab/interfaces.ts#L1)
61
+ */
62
+ calciteTabChange: EventEmitter<TabChangeEventDetail>;
63
+ private tabNavEl;
64
+ private activeIndicatorEl;
65
+ private activeIndicatorContainerEl;
66
+ private animationActiveDuration;
67
+ private handleContainerScroll;
68
+ private updateOffsetPosition;
69
+ private updateActiveWidth;
70
+ private getIndexOfTabTitle;
71
+ private getTabTitleById;
72
+ private get tabTitles();
73
+ private get enabledTabTitles();
74
+ }
@@ -0,0 +1,94 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { TabChangeEventDetail } from "../tab/interfaces";
3
+ import { TabID, TabLayout, TabPosition } from "../tabs/interfaces";
4
+ import { FlipContext, Scale } from "../interfaces";
5
+ import { InteractiveComponent } from "../../utils/interactive";
6
+ /**
7
+ * @slot - A slot for adding text.
8
+ */
9
+ export declare class TabTitle implements InteractiveComponent {
10
+ el: HTMLCalciteTabTitleElement;
11
+ /** Show this tab title as selected */
12
+ active: boolean;
13
+ /** Disable this tab title */
14
+ disabled: boolean;
15
+ /** optionally pass an icon to display at the end of a tab title - accepts calcite ui icon names */
16
+ iconEnd?: string;
17
+ /** flip the icon(s) in rtl */
18
+ iconFlipRtl?: FlipContext;
19
+ /** optionally pass an icon to display at the start of a tab title - accepts calcite ui icon names */
20
+ iconStart?: string;
21
+ /** @internal Parent tabs component layout value */
22
+ layout: TabLayout;
23
+ /** @internal Parent tabs component or parent tab-nav component's position */
24
+ position: TabPosition;
25
+ /** @internal Parent tabs component or parent tab-nav component's scale */
26
+ scale: Scale;
27
+ /** @internal Parent tabs component bordered value */
28
+ bordered: boolean;
29
+ /**
30
+ * Optionally include a unique name for the tab title,
31
+ * be sure to also set this name on the associated tab.
32
+ */
33
+ tab?: string;
34
+ activeTabChanged(): void;
35
+ connectedCallback(): void;
36
+ disconnectedCallback(): void;
37
+ componentWillLoad(): void;
38
+ componentWillRender(): void;
39
+ render(): VNode;
40
+ componentDidLoad(): Promise<void>;
41
+ componentDidRender(): void;
42
+ tabChangeHandler(event: CustomEvent<TabChangeEventDetail>): void;
43
+ onClick(): void;
44
+ keyDownHandler(e: KeyboardEvent): void;
45
+ /**
46
+ * Fires when a specific tab is activated (`event.details`)
47
+ * @see [TabChangeEventDetail](https://github.com/Esri/calcite-components/blob/master/src/components/tab/interfaces.ts#L1)
48
+ */
49
+ calciteTabsActivate: EventEmitter<TabChangeEventDetail>;
50
+ /**
51
+ * @internal
52
+ */
53
+ calciteTabsFocusNext: EventEmitter;
54
+ /**
55
+ * @internal
56
+ */
57
+ calciteTabsFocusPrevious: EventEmitter;
58
+ /**
59
+ * @internal
60
+ */
61
+ calciteTabTitleRegister: EventEmitter<TabID>;
62
+ /**
63
+ * Return the index of this title within the nav
64
+ */
65
+ getTabIndex(): Promise<number>;
66
+ /**
67
+ * @internal
68
+ */
69
+ getTabIdentifier(): Promise<TabID>;
70
+ /**
71
+ * @internal
72
+ */
73
+ updateAriaInfo(tabIds?: string[], titleIds?: string[]): Promise<void>;
74
+ /** watches for changing text content **/
75
+ private mutationObserver;
76
+ private controls;
77
+ /** determine if there is slotted text for styling purposes */
78
+ private hasText;
79
+ /**
80
+ * @internal
81
+ */
82
+ private parentTabNavEl;
83
+ /**
84
+ * @internal
85
+ */
86
+ private parentTabsEl;
87
+ private updateHasText;
88
+ private setupTextContentObserver;
89
+ private emitActiveTab;
90
+ /**
91
+ * @internal
92
+ */
93
+ private guid;
94
+ }
@@ -0,0 +1,65 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { TabLayout, TabPosition } from "./interfaces";
3
+ import { Scale } from "../interfaces";
4
+ /**
5
+ * @slot - A slot for adding `calcite-tab`s.
6
+ * @slot tab-nav - A slot for adding a tab navigation component.
7
+ */
8
+ export declare class Tabs {
9
+ el: HTMLCalciteTabsElement;
10
+ /**
11
+ * Align tab titles to the edge or fully justify them across the tab nav ("center")
12
+ */
13
+ layout: TabLayout;
14
+ /**
15
+ * Display the tabs above (default) or below the tab content
16
+ */
17
+ position: TabPosition;
18
+ /**
19
+ * Specify the scale of the tabs component, defaults to m
20
+ */
21
+ scale: Scale;
22
+ /**
23
+ * Optionally enable tabs to appear like a folder-style menu when its layout is "inline"
24
+ */
25
+ bordered: boolean;
26
+ connectedCallback(): void;
27
+ render(): VNode;
28
+ /**
29
+ * @internal
30
+ */
31
+ calciteTabTitleRegister(e: CustomEvent): void;
32
+ /**
33
+ * @internal
34
+ */
35
+ calciteTabTitleUnregister(e: CustomEvent): void;
36
+ /**
37
+ * @internal
38
+ */
39
+ calciteTabRegister(e: CustomEvent): void;
40
+ /**
41
+ * @internal
42
+ */
43
+ calciteTabUnregister(e: CustomEvent): void;
44
+ /**
45
+ * @internal
46
+ *
47
+ * Stores an array of ids of `<calcite-tab-titles>`s to match up ARIA
48
+ * attributes.
49
+ */
50
+ titles: HTMLCalciteTabTitleElement[];
51
+ /**
52
+ * @internal
53
+ *
54
+ * Stores an array of ids of `<calcite-tab>`s to match up ARIA attributes.
55
+ */
56
+ tabs: HTMLCalciteTabElement[];
57
+ /**
58
+ * @internal
59
+ *
60
+ * Matches up elements from the internal `tabs` and `titles` to automatically
61
+ * update the ARIA attributes and link `<calcite-tab>` and
62
+ * `<calcite-tab-title>` components.
63
+ */
64
+ private registryHandler;
65
+ }
@@ -0,0 +1,38 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
3
+ import { InteractiveComponent } from "../../utils/interactive";
4
+ /**
5
+ * @slot content-start - A slot for adding non-actionable elements before the tile content.
6
+ * @slot content-end - A slot for adding non-actionable elements after the tile content.
7
+ */
8
+ export declare class Tile implements ConditionalSlotComponent, InteractiveComponent {
9
+ el: HTMLCalciteTileElement;
10
+ /** The active state of the tile. */
11
+ active: boolean;
12
+ /** The description text that appears beneath the heading of the tile. */
13
+ description?: string;
14
+ /**
15
+ * When true, prevents interaction.
16
+ */
17
+ disabled: boolean;
18
+ /** The embed mode of the tile. When true, renders without a border and padding for use by other components. */
19
+ embed: boolean;
20
+ /**
21
+ * The focused state of the tile.
22
+ * @internal
23
+ */
24
+ focused: boolean;
25
+ /** The heading text that appears between the icon and description of the tile. */
26
+ heading?: string;
27
+ /** The hidden state of the tile. */
28
+ hidden: boolean;
29
+ /** The (optional) url for the tile. (Only applies when embed is set to false) */
30
+ href?: string;
31
+ /** The icon that appears at the top of the tile. */
32
+ icon?: string;
33
+ connectedCallback(): void;
34
+ disconnectedCallback(): void;
35
+ componentDidRender(): void;
36
+ renderTile(): VNode;
37
+ render(): VNode;
38
+ }
@@ -0,0 +1,59 @@
1
+ import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { Alignment, Width } from "../interfaces";
3
+ import { TileSelectType } from "./interfaces";
4
+ import { InteractiveComponent } from "../../utils/interactive";
5
+ /**
6
+ * @slot - A slot for adding custom content.
7
+ */
8
+ export declare class TileSelect implements InteractiveComponent {
9
+ el: HTMLCalciteTileSelectElement;
10
+ /** The checked state of the tile select. */
11
+ checked: boolean;
12
+ checkedChanged(newChecked: boolean): void;
13
+ /** The description text that appears beneath the heading of the tile. */
14
+ description?: string;
15
+ /** The disabled state of the tile select. */
16
+ disabled: boolean;
17
+ /** The heading text that appears between the icon and description of the tile. */
18
+ heading?: string;
19
+ /** The hidden state of the tile select. */
20
+ hidden: boolean;
21
+ /** The icon that appears at the top of the tile. */
22
+ icon?: string;
23
+ /** The name of the tile select. This name will appear in form submissions as either a radio or checkbox identifier based on the `type` property. */
24
+ name: any;
25
+ nameChanged(newName: string): void;
26
+ /** Display an interactive radio or checkbox. */
27
+ inputEnabled: boolean;
28
+ /** The side of the tile that the radio or checkbox appears on when inputEnabled is true. */
29
+ inputAlignment: Extract<"end" | "start", Alignment>;
30
+ /** The selection mode of the tile select: radio (single) or checkbox (multiple). */
31
+ type: TileSelectType;
32
+ /** The value of the tile select. This value will appear in form submissions when this tile select is checked. */
33
+ value?: any;
34
+ /** specify the width of the tile, defaults to auto */
35
+ width: Extract<"auto" | "full", Width>;
36
+ private input;
37
+ guid: string;
38
+ /** The focused state of the tile-select. */
39
+ focused: boolean;
40
+ /**
41
+ * Emits a custom change event. For checkboxes, it emits when the checkbox is checked or unchecked. For radios it only emits when it is checked.
42
+ */
43
+ calciteTileSelectChange: EventEmitter;
44
+ /** Sets focus on the component. */
45
+ setFocus(): Promise<void>;
46
+ checkboxChangeHandler(event: CustomEvent): void;
47
+ checkboxFocusBlurHandler(event: CustomEvent): void;
48
+ radioButtonChangeHandler(event: CustomEvent): void;
49
+ radioButtonCheckedChangeHandler(event: CustomEvent): void;
50
+ radioButtonFocusBlurHandler(event: CustomEvent): void;
51
+ click(event: MouseEvent): void;
52
+ mouseenter(): void;
53
+ mouseleave(): void;
54
+ connectedCallback(): void;
55
+ disconnectedCallback(): void;
56
+ componentDidRender(): void;
57
+ private renderInput;
58
+ render(): VNode;
59
+ }
@@ -0,0 +1,15 @@
1
+ import { VNode } from "../../stencil-public-runtime";
2
+ import { TileSelectGroupLayout } from "./interfaces";
3
+ import { InteractiveComponent } from "../../utils/interactive";
4
+ /**
5
+ * @slot - A slot for adding `calcite-tile-select`s.
6
+ */
7
+ export declare class TileSelectGroup implements InteractiveComponent {
8
+ el: HTMLCalciteTileSelectGroupElement;
9
+ /** The disabled state of the tile select. */
10
+ disabled: boolean;
11
+ /** Tiles by default move horizontally, stacking with each row, vertical allows single-column layouts */
12
+ layout?: TileSelectGroupLayout;
13
+ componentDidRender(): void;
14
+ render(): VNode;
15
+ }