@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.
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/p-162604a0.entry.js +5 -0
- package/dist/calcite/p-364f0abe.system.entry.js +5 -0
- package/dist/calcite/{p-e65b6bfb.entry.js → p-46071f17.entry.js} +1 -1
- package/dist/calcite/p-4905189e.system.entry.js +5 -0
- package/dist/calcite/p-5802a565.entry.js +5 -0
- package/dist/calcite/p-5c637131.entry.js +5 -0
- package/dist/calcite/p-5f6e35f3.entry.js +5 -0
- package/dist/calcite/{p-a38fe099.entry.js → p-653bd7bf.entry.js} +1 -1
- package/dist/calcite/{p-da7c2542.entry.js → p-8b982f91.entry.js} +1 -1
- package/dist/calcite/p-b0827b8c.system.entry.js +5 -0
- package/dist/calcite/p-b2b6f712.js +5 -0
- package/dist/calcite/{p-dd460534.system.entry.js → p-b9a38a28.system.entry.js} +2 -2
- package/dist/calcite/{p-3b707a1c.system.entry.js → p-c2caeb2a.system.entry.js} +1 -1
- package/dist/calcite/p-e55c5bb4.entry.js +5 -0
- package/dist/calcite/{p-3cdee187.system.entry.js → p-eb3c084f.system.entry.js} +1 -1
- package/dist/calcite/p-ecc31b40.system.entry.js +5 -0
- package/dist/calcite/{p-3ea157ba.system.entry.js → p-edf1e815.system.entry.js} +1 -1
- package/dist/calcite/p-ee522afa.system.entry.js +5 -0
- package/dist/calcite/p-f68725d7.entry.js +5 -0
- package/dist/calcite/p-fa922721.system.js +5 -0
- package/dist/calcite/p-fe9380a0.system.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +4 -11
- package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -23
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +6 -16
- package/dist/cjs/calcite-popover_2.cjs.entry.js +3 -2
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{resources-daf15d54.js → resources-e43fc9f3.js} +14 -1
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/action-bar/action-bar.js +4 -11
- package/dist/collection/components/action-menu/action-menu.js +6 -6
- package/dist/collection/components/action-pad/action-pad.js +3 -15
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +15 -18
- package/dist/collection/components/dropdown-item/dropdown-item.js +11 -5
- package/dist/collection/components/input-date-picker/input-date-picker.css +5 -0
- package/dist/collection/components/pick-list/shared-list-logic.js +2 -1
- package/dist/collection/components/popover/popover.css +1 -1
- package/dist/collection/components/popover/popover.js +7 -7
- package/dist/collection/components/popover/resources.js +1 -0
- package/dist/collection/components/radio-group/radio-group.js +2 -4
- package/dist/collection/components/select/select.js +2 -4
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/components/action-menu.js +2 -2
- package/dist/components/calcite-action-bar.js +4 -11
- package/dist/components/calcite-action-pad.js +3 -13
- package/dist/components/calcite-dropdown-item.js +11 -5
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -10
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/dropdown.js +15 -18
- package/dist/components/popover.js +3 -3
- package/dist/components/resources.js +2 -1
- package/dist/components/resources4.js +5 -22
- package/dist/components/resources5.js +32 -0
- package/dist/components/shared-list-render.js +4 -3
- package/dist/custom-elements/index.js +53 -66
- package/dist/esm/calcite-action-bar.entry.js +4 -11
- package/dist/esm/calcite-action-menu.entry.js +2 -2
- package/dist/esm/calcite-action-pad.entry.js +3 -13
- package/dist/esm/calcite-dropdown_3.entry.js +26 -23
- package/dist/esm/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm/calcite-pick-list_3.entry.js +1 -11
- package/dist/esm/calcite-popover_2.entry.js +3 -2
- package/dist/esm/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm/calcite-value-list_2.entry.js +1 -1
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{resources-cbfcf4a3.js → resources-b5c3d9a7.js} +12 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/resources-b5c3d9a7.js +5 -0
- package/dist/extras/docs-json.json +10 -12
- package/dist/types/components/accordion/accordion.d.ts +42 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +54 -0
- package/dist/types/components/action/action.d.ts +75 -0
- package/dist/types/components/action-bar/action-bar.d.ts +69 -0
- package/dist/types/components/action-group/action-group.d.ts +42 -0
- package/dist/types/components/action-menu/action-menu.d.ts +82 -0
- package/dist/types/components/action-pad/action-pad.d.ts +54 -0
- package/dist/types/components/alert/alert.d.ts +83 -0
- package/dist/types/components/avatar/avatar.d.ts +26 -0
- package/dist/types/components/block/block.d.ts +79 -0
- package/dist/types/components/block-section/block-section.d.ts +44 -0
- package/dist/types/components/button/button.d.ts +80 -0
- package/dist/types/components/card/card.d.ts +46 -0
- package/dist/types/components/checkbox/checkbox.d.ts +75 -0
- package/dist/types/components/chip/chip.d.ts +40 -0
- package/dist/types/components/color-picker/color-picker.d.ts +232 -0
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +51 -0
- package/dist/types/components/color-picker-swatch/color-picker-swatch.d.ts +23 -0
- package/dist/types/components/combobox/combobox.d.ts +184 -0
- package/dist/types/components/combobox/interfaces.d.ts +6 -0
- package/dist/types/components/combobox/utils.d.ts +6 -0
- package/dist/types/components/combobox-item/combobox-item.d.ts +48 -0
- package/dist/types/components/combobox-item-group/combobox-item-group.d.ts +17 -0
- package/dist/types/components/date-picker/date-picker.d.ts +132 -0
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +48 -0
- package/dist/types/components/date-picker-month/date-picker-month.d.ts +97 -0
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +57 -0
- package/dist/types/components/dropdown/dropdown.d.ts +106 -0
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +32 -0
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +54 -0
- package/dist/types/components/fab/fab.d.ts +49 -0
- package/dist/types/components/filter/filter.d.ts +59 -0
- package/dist/types/components/flow/flow.d.ts +22 -0
- package/dist/types/components/functional/ExpandToggle.d.ts +19 -0
- package/dist/types/components/graph/graph.d.ts +28 -0
- package/dist/types/components/handle/handle.d.ts +22 -0
- package/dist/types/components/icon/icon.d.ts +32 -0
- package/dist/types/components/inline-editable/inline-editable.d.ts +74 -0
- package/dist/types/components/input/input.d.ts +171 -0
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +186 -0
- package/dist/types/components/input-message/input-message.d.ts +27 -0
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +94 -0
- package/dist/types/components/label/label.d.ts +39 -0
- package/dist/types/components/link/link.d.ts +36 -0
- package/dist/types/components/list/list.d.ts +22 -0
- package/dist/types/components/list-item/list-item.d.ts +42 -0
- package/dist/types/components/list-item-group/list-item-group.d.ts +18 -0
- package/dist/types/components/loader/loader.d.ts +27 -0
- package/dist/types/components/modal/modal.d.ts +89 -0
- package/dist/types/components/notice/notice.d.ts +51 -0
- package/dist/types/components/pagination/pagination.d.ts +51 -0
- package/dist/types/components/panel/panel.d.ts +132 -0
- package/dist/types/components/pick-list/pick-list.d.ts +77 -0
- package/dist/types/components/pick-list/shared-list-logic.d.ts +32 -0
- package/dist/types/components/pick-list/shared-list-render.d.ts +18 -0
- package/dist/types/components/pick-list-group/pick-list-group.d.ts +21 -0
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +108 -0
- package/dist/types/components/popover/popover.d.ts +107 -0
- package/dist/types/components/popover/resources.d.ts +1 -0
- package/dist/types/components/popover-manager/popover-manager.d.ts +19 -0
- package/dist/types/components/progress/progress.d.ts +15 -0
- package/dist/types/components/radio-button/radio-button.d.ts +94 -0
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +34 -0
- package/dist/types/components/radio-group/radio-group.d.ts +58 -0
- package/dist/types/components/radio-group-item/radio-group-item.d.ts +24 -0
- package/dist/types/components/rating/rating.d.ts +62 -0
- package/dist/types/components/scrim/scrim.d.ts +17 -0
- package/dist/types/components/select/select.d.ts +77 -0
- package/dist/types/components/shell/shell.d.ts +24 -0
- package/dist/types/components/shell-center-row/shell-center-row.d.ts +25 -0
- package/dist/types/components/shell-panel/shell-panel.d.ts +69 -0
- package/dist/types/components/slider/slider.d.ts +194 -0
- package/dist/types/components/sortable-list/sortable-list.d.ts +52 -0
- package/dist/types/components/split-button/split-button.d.ts +56 -0
- package/dist/types/components/stepper/stepper.d.ts +58 -0
- package/dist/types/components/stepper-item/stepper-item.d.ts +67 -0
- package/dist/types/components/switch/switch.d.ts +45 -0
- package/dist/types/components/tab/tab.d.ts +42 -0
- package/dist/types/components/tab-nav/tab-nav.d.ts +74 -0
- package/dist/types/components/tab-title/tab-title.d.ts +94 -0
- package/dist/types/components/tabs/tabs.d.ts +65 -0
- package/dist/types/components/tile/tile.d.ts +38 -0
- package/dist/types/components/tile-select/tile-select.d.ts +59 -0
- package/dist/types/components/tile-select-group/tile-select-group.d.ts +15 -0
- package/dist/types/components/time-picker/time-picker.d.ts +137 -0
- package/dist/types/components/tip/tip.d.ts +47 -0
- package/dist/types/components/tip-manager/tip-manager.d.ts +65 -0
- package/dist/types/components/tooltip/tooltip.d.ts +60 -0
- package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +41 -0
- package/dist/types/components/tree/interfaces.d.ts +10 -0
- package/dist/types/components/tree/tree.d.ts +39 -0
- package/dist/types/components/tree-item/tree-item.d.ts +60 -0
- package/dist/types/components/value-list/value-list.d.ts +92 -0
- package/dist/types/components/value-list-item/value-list-item.d.ts +81 -0
- package/dist/types/components.d.ts +4 -5
- package/dist/types/utils/label.d.ts +41 -0
- package/hydrate/index.js +53 -66
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/calcite/p-184049cb.entry.js +0 -5
- package/dist/calcite/p-1b1bca2d.entry.js +0 -5
- package/dist/calcite/p-4696e56f.entry.js +0 -5
- package/dist/calcite/p-4730df46.js +0 -5
- package/dist/calcite/p-57e0428a.system.entry.js +0 -5
- package/dist/calcite/p-58adb34d.system.entry.js +0 -5
- package/dist/calcite/p-73d23656.entry.js +0 -5
- package/dist/calcite/p-7dfd6480.system.entry.js +0 -5
- package/dist/calcite/p-a3527241.system.entry.js +0 -5
- package/dist/calcite/p-bcdc20c3.system.entry.js +0 -5
- package/dist/calcite/p-c33f47d5.system.js +0 -5
- package/dist/calcite/p-c5c42405.entry.js +0 -5
- package/dist/calcite/p-e5a7ca2a.entry.js +0 -5
- package/dist/esm-es5/resources-cbfcf4a3.js +0 -5
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { Scale } from "../interfaces";
|
|
3
|
+
export interface PaginationDetail {
|
|
4
|
+
start: number;
|
|
5
|
+
total: number;
|
|
6
|
+
num: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class Pagination {
|
|
9
|
+
/** number of items per page */
|
|
10
|
+
num: number;
|
|
11
|
+
/** index of item that should begin the page */
|
|
12
|
+
start: number;
|
|
13
|
+
/** total number of items */
|
|
14
|
+
total: number;
|
|
15
|
+
/** Used as an accessible label (aria-label) for the next button
|
|
16
|
+
* @default "Next"
|
|
17
|
+
*/
|
|
18
|
+
textLabelNext: string;
|
|
19
|
+
/** Used as an accessible label (aria-label) of the previous button
|
|
20
|
+
* @default "Previous"
|
|
21
|
+
*/
|
|
22
|
+
textLabelPrevious: string;
|
|
23
|
+
/** The scale of the pagination */
|
|
24
|
+
scale: Scale;
|
|
25
|
+
el: HTMLCalcitePaginationElement;
|
|
26
|
+
/**
|
|
27
|
+
* Emitted whenever the selected page changes.
|
|
28
|
+
* @deprecated use calcitePaginationChange instead
|
|
29
|
+
*/
|
|
30
|
+
calcitePaginationUpdate: EventEmitter<PaginationDetail>;
|
|
31
|
+
/**
|
|
32
|
+
* Emitted whenever the selected page changes.
|
|
33
|
+
* @see [PaginationDetail](https://github.com/Esri/calcite-components/blob/master/src/components/pagination/calcite-pagination.tsx#L18)
|
|
34
|
+
*/
|
|
35
|
+
calcitePaginationChange: EventEmitter<PaginationDetail>;
|
|
36
|
+
/** Go to the next page of results */
|
|
37
|
+
nextPage(): Promise<void>;
|
|
38
|
+
/** Go to the previous page of results */
|
|
39
|
+
previousPage(): Promise<void>;
|
|
40
|
+
private getLastStart;
|
|
41
|
+
private previousClicked;
|
|
42
|
+
private nextClicked;
|
|
43
|
+
private showLeftEllipsis;
|
|
44
|
+
private showRightEllipsis;
|
|
45
|
+
private emitUpdate;
|
|
46
|
+
renderPages(): VNode[];
|
|
47
|
+
renderPage(start: number): VNode;
|
|
48
|
+
renderLeftEllipsis(): VNode;
|
|
49
|
+
renderRightEllipsis(): VNode;
|
|
50
|
+
render(): VNode;
|
|
51
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { Scale } from "../interfaces";
|
|
3
|
+
import { HeadingLevel } from "../functional/Heading";
|
|
4
|
+
import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
5
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
6
|
+
/**
|
|
7
|
+
* @slot - A slot for adding custom content.
|
|
8
|
+
* @slot header-actions-start - A slot for adding actions or content to the start side of the panel header.
|
|
9
|
+
* @slot header-actions-end - A slot for adding actions or content to the end side of the panel header.
|
|
10
|
+
* @slot header-content - A slot for adding custom content to the header.
|
|
11
|
+
* @slot header-menu-actions - A slot for adding an overflow menu with actions inside a dropdown.
|
|
12
|
+
* @slot fab - A slot for adding a `calcite-fab` (floating action button) to perform an action.
|
|
13
|
+
* @slot footer-actions - A slot for adding buttons to the footer.
|
|
14
|
+
* @slot footer - A slot for adding custom content to the footer.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Panel implements ConditionalSlotComponent, InteractiveComponent {
|
|
17
|
+
/**
|
|
18
|
+
* Hides the panel.
|
|
19
|
+
*/
|
|
20
|
+
dismissed: boolean;
|
|
21
|
+
dismissedHandler(): void;
|
|
22
|
+
/**
|
|
23
|
+
* When provided, this method will be called before it is removed from the parent flow.
|
|
24
|
+
*/
|
|
25
|
+
beforeBack?: () => Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
|
28
|
+
*/
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Displays a close button in the trailing side of the header.
|
|
32
|
+
*/
|
|
33
|
+
dismissible: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Number at which section headings should start for this component.
|
|
36
|
+
*/
|
|
37
|
+
headingLevel: HeadingLevel;
|
|
38
|
+
/**
|
|
39
|
+
* Shows a back button in the header.
|
|
40
|
+
*/
|
|
41
|
+
showBackButton: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 'Back' text string.
|
|
44
|
+
*/
|
|
45
|
+
intlBack?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the maximum height of the panel.
|
|
48
|
+
*/
|
|
49
|
+
heightScale?: Scale;
|
|
50
|
+
/**
|
|
51
|
+
* This sets width of the panel.
|
|
52
|
+
*/
|
|
53
|
+
widthScale?: Scale;
|
|
54
|
+
/**
|
|
55
|
+
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
56
|
+
*/
|
|
57
|
+
loading: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 'Close' text string for the close button. The close button will only be shown when 'dismissible' is true.
|
|
60
|
+
*/
|
|
61
|
+
intlClose?: string;
|
|
62
|
+
/**
|
|
63
|
+
* 'Options' text string for the actions menu.
|
|
64
|
+
*/
|
|
65
|
+
intlOptions?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Heading text.
|
|
68
|
+
*/
|
|
69
|
+
heading?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Summary text. A description displayed underneath the heading.
|
|
72
|
+
*/
|
|
73
|
+
summary?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Opens the action menu.
|
|
76
|
+
*/
|
|
77
|
+
menuOpen: boolean;
|
|
78
|
+
componentDidRender(): void;
|
|
79
|
+
el: HTMLCalcitePanelElement;
|
|
80
|
+
backButtonEl: HTMLCalciteActionElement;
|
|
81
|
+
dismissButtonEl: HTMLCalciteActionElement;
|
|
82
|
+
containerEl: HTMLElement;
|
|
83
|
+
panelScrollEl: HTMLElement;
|
|
84
|
+
connectedCallback(): void;
|
|
85
|
+
disconnectedCallback(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Emitted when the close button has been clicked.
|
|
88
|
+
*/
|
|
89
|
+
calcitePanelDismissedChange: EventEmitter;
|
|
90
|
+
/**
|
|
91
|
+
* Emitted when the content has been scrolled.
|
|
92
|
+
*/
|
|
93
|
+
calcitePanelScroll: EventEmitter;
|
|
94
|
+
/**
|
|
95
|
+
* Emitted when the back button has been clicked.
|
|
96
|
+
*/
|
|
97
|
+
calcitePanelBackClick: EventEmitter;
|
|
98
|
+
setContainerRef: (node: HTMLElement) => void;
|
|
99
|
+
setDismissRef: (node: HTMLCalciteActionElement) => void;
|
|
100
|
+
setBackRef: (node: HTMLCalciteActionElement) => void;
|
|
101
|
+
panelKeyDownHandler: (event: KeyboardEvent) => void;
|
|
102
|
+
dismiss: () => void;
|
|
103
|
+
panelScrollHandler: () => void;
|
|
104
|
+
backButtonClick: () => void;
|
|
105
|
+
/** Sets focus on the component. */
|
|
106
|
+
setFocus(focusId?: "dismiss-button" | "back-button"): Promise<void>;
|
|
107
|
+
/** Scrolls panel content to a particular set of coordinates.
|
|
108
|
+
*
|
|
109
|
+
* ```
|
|
110
|
+
* myCalcitePanel.scrollContentTo({
|
|
111
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
|
112
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
113
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
114
|
+
* });
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
scrollContentTo(options?: ScrollToOptions): Promise<void>;
|
|
118
|
+
renderBackButton(): VNode;
|
|
119
|
+
renderHeaderContent(): VNode;
|
|
120
|
+
/**
|
|
121
|
+
* Allows user to override the entire header-content node.
|
|
122
|
+
*/
|
|
123
|
+
renderHeaderSlottedContent(): VNode;
|
|
124
|
+
renderHeaderStartActions(): VNode;
|
|
125
|
+
renderHeaderActionsEnd(): VNode;
|
|
126
|
+
renderMenu(): VNode;
|
|
127
|
+
renderHeaderNode(): VNode;
|
|
128
|
+
renderFooterNode(): VNode;
|
|
129
|
+
renderContent(): VNode;
|
|
130
|
+
renderFab(): VNode;
|
|
131
|
+
render(): VNode;
|
|
132
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { ICON_TYPES } from "./resources";
|
|
3
|
+
import { ListFocusId, ItemData } from "./shared-list-logic";
|
|
4
|
+
import { HeadingLevel } from "../functional/Heading";
|
|
5
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
6
|
+
/**
|
|
7
|
+
* @slot - A slot for adding `calcite-pick-list-item` elements or `calcite-pick-list-group` elements. Items are displayed as a vertical list.
|
|
8
|
+
* @slot menu-actions - A slot for adding a button + menu combo for performing actions like sorting.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PickList<ItemElement extends HTMLCalcitePickListItemElement = HTMLCalcitePickListItemElement> implements InteractiveComponent {
|
|
11
|
+
/**
|
|
12
|
+
* When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
|
13
|
+
*/
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When true, an input appears at the top of the list that can be used by end users to filter items in the list.
|
|
17
|
+
*/
|
|
18
|
+
filterEnabled: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Placeholder text for the filter input field.
|
|
21
|
+
*/
|
|
22
|
+
filterPlaceholder: string;
|
|
23
|
+
/**
|
|
24
|
+
* Number at which section headings should start for this component.
|
|
25
|
+
*/
|
|
26
|
+
headingLevel: HeadingLevel;
|
|
27
|
+
/**
|
|
28
|
+
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
29
|
+
*/
|
|
30
|
+
loading: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Multiple works similar to standard radio buttons and checkboxes.
|
|
33
|
+
* When true, a user can select multiple items at a time.
|
|
34
|
+
* When false, only a single item can be selected at a time
|
|
35
|
+
* and selecting a new item will deselect any other selected items.
|
|
36
|
+
*/
|
|
37
|
+
multiple: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* When true and single-selection is enabled, the selection will change when navigating items via the keyboard.
|
|
40
|
+
*/
|
|
41
|
+
selectionFollowsFocus: boolean;
|
|
42
|
+
selectedValues: Map<string, ItemElement>;
|
|
43
|
+
dataForFilter: ItemData;
|
|
44
|
+
items: ItemElement[];
|
|
45
|
+
lastSelectedItem: ItemElement;
|
|
46
|
+
mutationObserver: MutationObserver;
|
|
47
|
+
el: HTMLCalcitePickListElement;
|
|
48
|
+
emitCalciteListChange: () => void;
|
|
49
|
+
filterEl: HTMLCalciteFilterElement;
|
|
50
|
+
connectedCallback(): void;
|
|
51
|
+
disconnectedCallback(): void;
|
|
52
|
+
componentDidRender(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Emitted when any of the item selections have changed.
|
|
55
|
+
*/
|
|
56
|
+
calciteListChange: EventEmitter<Map<string, HTMLCalcitePickListItemElement>>;
|
|
57
|
+
calciteListItemRemoveHandler(event: CustomEvent<void>): void;
|
|
58
|
+
calciteListItemChangeHandler(event: CustomEvent): void;
|
|
59
|
+
calciteListItemPropsChangeHandler(event: CustomEvent): void;
|
|
60
|
+
calciteListItemValueChangeHandler(event: CustomEvent): void;
|
|
61
|
+
calciteListFocusOutHandler(event: FocusEvent): void;
|
|
62
|
+
setUpItems(): void;
|
|
63
|
+
setUpFilter(): void;
|
|
64
|
+
setFilterEl: (el: HTMLCalciteFilterElement) => void;
|
|
65
|
+
deselectRemovedItems: any;
|
|
66
|
+
deselectSiblingItems: any;
|
|
67
|
+
selectSiblings: any;
|
|
68
|
+
handleFilter: any;
|
|
69
|
+
getItemData: any;
|
|
70
|
+
keyDownHandler: any;
|
|
71
|
+
/** Returns the currently selected items */
|
|
72
|
+
getSelectedItems(): Promise<Map<string, HTMLCalcitePickListItemElement>>;
|
|
73
|
+
/** Sets focus on the component. */
|
|
74
|
+
setFocus(focusId?: ListFocusId): Promise<void>;
|
|
75
|
+
getIconType(): ICON_TYPES;
|
|
76
|
+
render(): VNode;
|
|
77
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PickList } from "./pick-list";
|
|
2
|
+
import { ValueList } from "../value-list/value-list";
|
|
3
|
+
declare type Lists = PickList | ValueList;
|
|
4
|
+
declare type ListItemElement<T> = T extends PickList ? HTMLCalcitePickListItemElement : HTMLCalciteValueListItemElement;
|
|
5
|
+
declare type List<T> = T extends PickList ? PickList : ValueList;
|
|
6
|
+
export declare type ListFocusId = "filter";
|
|
7
|
+
export declare function mutationObserverCallback<T extends Lists>(this: List<T>): void;
|
|
8
|
+
export declare function initialize<T extends Lists>(this: List<T>): void;
|
|
9
|
+
export declare function initializeObserver<T extends Lists>(this: List<T>): void;
|
|
10
|
+
export declare function cleanUpObserver<T extends Lists>(this: List<T>): void;
|
|
11
|
+
export declare function calciteListItemChangeHandler<T extends Lists>(this: List<T>, event: CustomEvent): void;
|
|
12
|
+
export declare function calciteListItemValueChangeHandler<T extends Lists>(this: List<T>, event: CustomEvent): void;
|
|
13
|
+
export declare function calciteListFocusOutHandler<T extends Lists>(this: List<T>, event: FocusEvent): void;
|
|
14
|
+
export declare function keyDownHandler<T extends Lists>(this: List<T>, event: KeyboardEvent): void;
|
|
15
|
+
export declare function moveItemIndex<T extends Lists>(list: List<T>, item: ListItemElement<T>, direction: "up" | "down"): number;
|
|
16
|
+
export declare function internalCalciteListChangeEvent<T extends Lists>(this: List<T>): void;
|
|
17
|
+
export declare function removeItem<T extends Lists, U extends ListItemElement<T>>(this: List<T>, event: CustomEvent): void;
|
|
18
|
+
export declare function setFocus<T extends Lists>(this: List<T>, focusId: ListFocusId): Promise<void>;
|
|
19
|
+
export declare function setUpItems<T extends Lists>(this: List<T>, tagName: T extends PickList ? "calcite-pick-list-item" : "calcite-value-list-item"): void;
|
|
20
|
+
export declare function setUpFilter<T extends Lists>(this: List<T>): void;
|
|
21
|
+
export declare function deselectRemovedItems<T extends Lists>(this: List<T>): void;
|
|
22
|
+
export declare function deselectSiblingItems<T extends Lists>(this: List<T>, item: ListItemElement<T>): void;
|
|
23
|
+
export declare function selectSiblings<T extends Lists>(this: List<T>, item: ListItemElement<T>, deselect?: boolean): void;
|
|
24
|
+
export declare function handleFilter<T extends Lists>(this: List<T>, event: CustomEvent): void;
|
|
25
|
+
export declare type ItemData = {
|
|
26
|
+
label: string;
|
|
27
|
+
description: string;
|
|
28
|
+
metadata: Record<string, unknown>;
|
|
29
|
+
value: string;
|
|
30
|
+
}[];
|
|
31
|
+
export declare function getItemData<T extends Lists>(this: List<T>): ItemData;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FunctionalComponent } from "../../stencil-public-runtime";
|
|
2
|
+
import { JSXBase } from "../../stencil-public-runtime";
|
|
3
|
+
import { handleFilter } from "./shared-list-logic";
|
|
4
|
+
import DOMAttributes = JSXBase.DOMAttributes;
|
|
5
|
+
interface ListProps extends DOMAttributes<any> {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
filterEnabled: boolean;
|
|
9
|
+
dataForFilter: any;
|
|
10
|
+
handleFilter: typeof handleFilter;
|
|
11
|
+
filterPlaceholder: string;
|
|
12
|
+
el: HTMLCalcitePickListElement | HTMLCalciteValueListElement;
|
|
13
|
+
setFilterEl: (el: HTMLCalciteFilterElement) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const List: FunctionalComponent<{
|
|
16
|
+
props: ListProps;
|
|
17
|
+
} & DOMAttributes<any>>;
|
|
18
|
+
export default List;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { HeadingLevel } from "../functional/Heading";
|
|
3
|
+
import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
4
|
+
/**
|
|
5
|
+
* @slot - A slot for adding `calcite-pick-list-item` elements.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PickListGroup implements ConditionalSlotComponent {
|
|
8
|
+
/**
|
|
9
|
+
* The title used for all nested `calcite-pick-list` rows.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
groupTitle: string;
|
|
13
|
+
/**
|
|
14
|
+
* Number at which section headings should start for this component.
|
|
15
|
+
*/
|
|
16
|
+
headingLevel: HeadingLevel;
|
|
17
|
+
el: HTMLCalcitePickListGroupElement;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
render(): VNode;
|
|
21
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { ICON_TYPES } from "../pick-list/resources";
|
|
3
|
+
import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
4
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
5
|
+
/**
|
|
6
|
+
* @slot actions-end - a slot for adding actions or content to the end side of the item.
|
|
7
|
+
* @slot actions-start - a slot for adding actions or content to the start side of the item.
|
|
8
|
+
*/
|
|
9
|
+
export declare class PickListItem implements ConditionalSlotComponent, InteractiveComponent {
|
|
10
|
+
/**
|
|
11
|
+
* An optional description for this item. This will appear below the label text.
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
descriptionWatchHandler(): void;
|
|
15
|
+
/**
|
|
16
|
+
* When true, the item cannot be clicked and is visually muted.
|
|
17
|
+
*/
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* When false, the item cannot be deselected by user interaction.
|
|
21
|
+
*/
|
|
22
|
+
disableDeselect: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @internal When true, the item cannot be selected by user interaction.
|
|
25
|
+
*/
|
|
26
|
+
nonInteractive: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
|
|
29
|
+
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
30
|
+
*/
|
|
31
|
+
icon?: ICON_TYPES | null;
|
|
32
|
+
/**
|
|
33
|
+
* The main label for this item. This will appear next to the icon.
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
labelWatchHandler(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Used to provide additional metadata to an item, primarily used when the parent list has a filter.
|
|
39
|
+
*/
|
|
40
|
+
metadata?: Record<string, unknown>;
|
|
41
|
+
metadataWatchHandler(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Set this to true to display a remove action that removes the item from the list.
|
|
44
|
+
*/
|
|
45
|
+
removable?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Set this to true to pre-select an item. Toggles when an item is checked/unchecked.
|
|
48
|
+
*/
|
|
49
|
+
selected: boolean;
|
|
50
|
+
selectedWatchHandler(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Used as an accessible label (aria-label) for the "remove item" action. Only applicable if removable is true.
|
|
53
|
+
* @default "Remove"
|
|
54
|
+
*/
|
|
55
|
+
intlRemove: string;
|
|
56
|
+
/**
|
|
57
|
+
* The item's associated value.
|
|
58
|
+
*/
|
|
59
|
+
value: any;
|
|
60
|
+
valueWatchHandler(newValue: any, oldValue: any): void;
|
|
61
|
+
el: HTMLCalcitePickListItemElement;
|
|
62
|
+
private focusEl;
|
|
63
|
+
shiftPressed: boolean;
|
|
64
|
+
connectedCallback(): void;
|
|
65
|
+
disconnectedCallback(): void;
|
|
66
|
+
componentDidRender(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Emitted whenever the item is selected or unselected.
|
|
69
|
+
*/
|
|
70
|
+
calciteListItemChange: EventEmitter<{
|
|
71
|
+
item: HTMLCalcitePickListItemElement;
|
|
72
|
+
value: any;
|
|
73
|
+
selected: boolean;
|
|
74
|
+
shiftPressed: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Emitted whenever the remove button is pressed.
|
|
78
|
+
*/
|
|
79
|
+
calciteListItemRemove: EventEmitter<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Emitted whenever the the item's label, description, value or metadata properties are modified.
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
calciteListItemPropsChange: EventEmitter<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Emitted whenever the the item's value property is modified.
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
calciteListItemValueChange: EventEmitter<{
|
|
90
|
+
oldValue: any;
|
|
91
|
+
newValue: any;
|
|
92
|
+
}>;
|
|
93
|
+
/**
|
|
94
|
+
* Used to toggle the selection state. By default this won't trigger an event.
|
|
95
|
+
* The first argument allows the value to be coerced, rather than swapping values.
|
|
96
|
+
*/
|
|
97
|
+
toggleSelected(coerce?: boolean): Promise<void>;
|
|
98
|
+
/** Sets focus on the component. */
|
|
99
|
+
setFocus(): Promise<void>;
|
|
100
|
+
pickListClickHandler: (event: MouseEvent) => void;
|
|
101
|
+
pickListKeyDownHandler: (event: KeyboardEvent) => void;
|
|
102
|
+
removeClickHandler: () => void;
|
|
103
|
+
renderIcon(): VNode;
|
|
104
|
+
renderRemoveAction(): VNode;
|
|
105
|
+
renderActionsStart(): VNode;
|
|
106
|
+
renderActionsEnd(): VNode;
|
|
107
|
+
render(): VNode;
|
|
108
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { PopperPlacement, OverlayPositioning, ComputedPlacement } from "../../utils/popper";
|
|
3
|
+
import { StrictModifiers, Instance as Popper } from "@popperjs/core";
|
|
4
|
+
import { HeadingLevel } from "../functional/Heading";
|
|
5
|
+
/**
|
|
6
|
+
* @slot - A slot for adding custom content.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Popover {
|
|
9
|
+
/**
|
|
10
|
+
* Display a close button within the Popover.
|
|
11
|
+
* @deprecated use dismissible instead.
|
|
12
|
+
*/
|
|
13
|
+
closeButton: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Display a close button within the Popover.
|
|
16
|
+
*/
|
|
17
|
+
dismissible: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Prevents flipping the popover's placement when it starts to overlap its reference element.
|
|
20
|
+
*/
|
|
21
|
+
disableFlip: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Removes the caret pointer.
|
|
24
|
+
*/
|
|
25
|
+
disablePointer: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the available placements that can be used when a flip occurs.
|
|
28
|
+
*/
|
|
29
|
+
flipPlacements?: ComputedPlacement[];
|
|
30
|
+
/**
|
|
31
|
+
* Heading text.
|
|
32
|
+
*/
|
|
33
|
+
heading?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number at which section headings should start for this component.
|
|
36
|
+
*/
|
|
37
|
+
headingLevel: HeadingLevel;
|
|
38
|
+
/** Accessible name for the component */
|
|
39
|
+
label: string;
|
|
40
|
+
/**
|
|
41
|
+
* Offset the position of the popover away from the reference element.
|
|
42
|
+
* @default 6
|
|
43
|
+
*/
|
|
44
|
+
offsetDistance: number;
|
|
45
|
+
offsetDistanceOffsetHandler(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Offset the position of the popover along the reference element.
|
|
48
|
+
*/
|
|
49
|
+
offsetSkidding: number;
|
|
50
|
+
offsetSkiddingHandler(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Display and position the component.
|
|
53
|
+
*/
|
|
54
|
+
open: boolean;
|
|
55
|
+
openHandler(): void;
|
|
56
|
+
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
57
|
+
overlayPositioning: OverlayPositioning;
|
|
58
|
+
/**
|
|
59
|
+
* Determines where the component will be positioned relative to the referenceElement.
|
|
60
|
+
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
61
|
+
*/
|
|
62
|
+
placement: PopperPlacement;
|
|
63
|
+
placementHandler(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Reference HTMLElement used to position this component according to the placement property. As a convenience, a string ID of the reference element can be used. However, setting this property to use an HTMLElement is preferred so that the component does not need to query the DOM for the referenceElement.
|
|
66
|
+
*/
|
|
67
|
+
referenceElement: HTMLElement | string;
|
|
68
|
+
referenceElementHandler(): void;
|
|
69
|
+
/** Text for close button.
|
|
70
|
+
* @default "Close"
|
|
71
|
+
*/
|
|
72
|
+
intlClose: string;
|
|
73
|
+
el: HTMLCalcitePopoverElement;
|
|
74
|
+
effectiveReferenceElement: HTMLElement;
|
|
75
|
+
popper: Popper;
|
|
76
|
+
arrowEl: HTMLDivElement;
|
|
77
|
+
closeButtonEl: HTMLCalciteActionElement;
|
|
78
|
+
guid: string;
|
|
79
|
+
private activeTransitionProp;
|
|
80
|
+
componentWillLoad(): void;
|
|
81
|
+
componentDidLoad(): void;
|
|
82
|
+
disconnectedCallback(): void;
|
|
83
|
+
/** Fired when the popover is closed */
|
|
84
|
+
calcitePopoverClose: EventEmitter;
|
|
85
|
+
/** Fired when the popover is opened */
|
|
86
|
+
calcitePopoverOpen: EventEmitter;
|
|
87
|
+
/** Updates the position of the component. */
|
|
88
|
+
reposition(): Promise<void>;
|
|
89
|
+
/** Sets focus on the component. */
|
|
90
|
+
setFocus(focusId?: "close-button"): Promise<void>;
|
|
91
|
+
/** Toggles the popover's open property. */
|
|
92
|
+
toggle(value?: boolean): Promise<void>;
|
|
93
|
+
setUpReferenceElement: () => void;
|
|
94
|
+
getId: () => string;
|
|
95
|
+
setExpandedAttr: () => void;
|
|
96
|
+
addReferences: () => void;
|
|
97
|
+
removeReferences: () => void;
|
|
98
|
+
getReferenceElement(): HTMLElement;
|
|
99
|
+
getModifiers(): Partial<StrictModifiers>[];
|
|
100
|
+
createPopper(): void;
|
|
101
|
+
destroyPopper(): void;
|
|
102
|
+
hide: () => void;
|
|
103
|
+
transitionEnd: (event: TransitionEvent) => void;
|
|
104
|
+
renderCloseButton(): VNode;
|
|
105
|
+
renderHeader(): VNode;
|
|
106
|
+
render(): VNode;
|
|
107
|
+
}
|
|
@@ -13,6 +13,7 @@ export declare const CSS: {
|
|
|
13
13
|
export declare const TEXT: {
|
|
14
14
|
close: string;
|
|
15
15
|
};
|
|
16
|
+
export declare const defaultPopoverPlacement = "auto";
|
|
16
17
|
export declare const POPOVER_REFERENCE = "data-calcite-popover-reference";
|
|
17
18
|
export declare const ARIA_CONTROLS = "aria-controls";
|
|
18
19
|
export declare const ARIA_EXPANDED = "aria-expanded";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @slot - A slot for adding elements that reference a 'calcite-popover' by the 'selector' property.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PopoverManager {
|
|
6
|
+
el: HTMLCalcitePopoverManagerElement;
|
|
7
|
+
/**
|
|
8
|
+
* CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.
|
|
9
|
+
* @default `[data-calcite-popover-reference]`
|
|
10
|
+
*/
|
|
11
|
+
selector: string;
|
|
12
|
+
/**
|
|
13
|
+
* Automatically closes any currently open popovers when clicking outside of a popover.
|
|
14
|
+
*/
|
|
15
|
+
autoClose: boolean;
|
|
16
|
+
render(): VNode;
|
|
17
|
+
queryPopover: (composedPath: EventTarget[]) => HTMLCalcitePopoverElement;
|
|
18
|
+
closeOpenPopovers(event: Event): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
export declare class Progress {
|
|
3
|
+
el: HTMLCalciteProgressElement;
|
|
4
|
+
/** Use indeterminate if finding actual progress value is impossible */
|
|
5
|
+
type: "indeterminate" | "determinate";
|
|
6
|
+
/** Fraction completed, in the range of 0 - 1.0 */
|
|
7
|
+
value: number;
|
|
8
|
+
/** Label for the progress indicator */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Text to display for the progress indicator */
|
|
11
|
+
text: string;
|
|
12
|
+
/** For indeterminate progress bars, reverse the animation direction */
|
|
13
|
+
reversed: boolean;
|
|
14
|
+
render(): VNode;
|
|
15
|
+
}
|