@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,186 @@
|
|
|
1
|
+
import { VNode, EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { HeadingLevel } from "../functional/Heading";
|
|
3
|
+
import { LabelableComponent } from "../../utils/label";
|
|
4
|
+
import { FormComponent } from "../../utils/form";
|
|
5
|
+
import { OverlayPositioning, ComputedPlacement } from "../../utils/popper";
|
|
6
|
+
import { StrictModifiers } from "@popperjs/core";
|
|
7
|
+
import { DateRangeChange } from "../date-picker/interfaces";
|
|
8
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
9
|
+
export declare class InputDatePicker implements LabelableComponent, FormComponent, InteractiveComponent {
|
|
10
|
+
el: HTMLCalciteInputDatePickerElement;
|
|
11
|
+
/**
|
|
12
|
+
* When false, the component won't be interactive.
|
|
13
|
+
*/
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
handleDisabledChange(value: boolean): void;
|
|
16
|
+
/** Selected date */
|
|
17
|
+
value: string | string[];
|
|
18
|
+
valueHandler(value: string | string[]): void;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the available placements that can be used when a flip occurs.
|
|
21
|
+
*/
|
|
22
|
+
flipPlacements?: ComputedPlacement[];
|
|
23
|
+
/**
|
|
24
|
+
* Number at which section headings should start for this component.
|
|
25
|
+
*/
|
|
26
|
+
headingLevel: HeadingLevel;
|
|
27
|
+
/** Selected date as full date object*/
|
|
28
|
+
valueAsDate?: Date | Date[];
|
|
29
|
+
/**
|
|
30
|
+
* Selected start date as full date object
|
|
31
|
+
* @deprecated use valueAsDate instead
|
|
32
|
+
*/
|
|
33
|
+
startAsDate?: Date;
|
|
34
|
+
/**
|
|
35
|
+
* Selected end date as full date object
|
|
36
|
+
* @deprecated use valueAsDate instead
|
|
37
|
+
*/
|
|
38
|
+
endAsDate?: Date;
|
|
39
|
+
/** Earliest allowed date as full date object */
|
|
40
|
+
minAsDate?: Date;
|
|
41
|
+
/** Latest allowed date as full date object */
|
|
42
|
+
maxAsDate?: Date;
|
|
43
|
+
/** Earliest allowed date ("yyyy-mm-dd") */
|
|
44
|
+
min?: string;
|
|
45
|
+
onMinChanged(min: string): void;
|
|
46
|
+
/** Latest allowed date ("yyyy-mm-dd") */
|
|
47
|
+
max?: string;
|
|
48
|
+
onMaxChanged(max: string): void;
|
|
49
|
+
/** Expand or collapse when calendar does not have input */
|
|
50
|
+
active: boolean;
|
|
51
|
+
activeHandler(): void;
|
|
52
|
+
/**
|
|
53
|
+
* The picker's name. Gets submitted with the form.
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/** Localized string for "previous month" (used for aria label)
|
|
57
|
+
* @default "Previous month"
|
|
58
|
+
*/
|
|
59
|
+
intlPrevMonth?: string;
|
|
60
|
+
/** Localized string for "next month" (used for aria label)
|
|
61
|
+
* @default "Next month"
|
|
62
|
+
*/
|
|
63
|
+
intlNextMonth?: string;
|
|
64
|
+
/** Localized string for "year" (used for aria label)
|
|
65
|
+
* @default "Year"
|
|
66
|
+
*/
|
|
67
|
+
intlYear?: string;
|
|
68
|
+
/** BCP 47 language tag for desired language and country format */
|
|
69
|
+
locale?: string;
|
|
70
|
+
/** specify the scale of the date picker */
|
|
71
|
+
scale: "s" | "m" | "l";
|
|
72
|
+
/** Range mode activation */
|
|
73
|
+
range: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* When true, makes the component required for form-submission.
|
|
76
|
+
*
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
required: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Selected start date
|
|
82
|
+
* @deprecated use value instead
|
|
83
|
+
*/
|
|
84
|
+
start?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Selected end date
|
|
87
|
+
* @deprecated use value instead
|
|
88
|
+
*/
|
|
89
|
+
end?: string;
|
|
90
|
+
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
91
|
+
overlayPositioning: OverlayPositioning;
|
|
92
|
+
/** Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range. */
|
|
93
|
+
proximitySelectionDisabled: boolean;
|
|
94
|
+
/** Layout */
|
|
95
|
+
layout: "horizontal" | "vertical";
|
|
96
|
+
handleDateOrRangeChange(): void;
|
|
97
|
+
calciteDaySelectHandler(): void;
|
|
98
|
+
/**
|
|
99
|
+
* Trigger calcite date change when a user changes the date.
|
|
100
|
+
*
|
|
101
|
+
* @deprecated use `calciteInputDatePickerChange` instead.
|
|
102
|
+
*/
|
|
103
|
+
calciteDatePickerChange: EventEmitter<Date>;
|
|
104
|
+
/**
|
|
105
|
+
* Trigger calcite date change when a user changes the date range.
|
|
106
|
+
* @see [DateRangeChange](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-date-picker/interfaces.ts#L1)
|
|
107
|
+
*
|
|
108
|
+
* @deprecated use `calciteInputDatePickerChange` instead.
|
|
109
|
+
*/
|
|
110
|
+
calciteDatePickerRangeChange: EventEmitter<DateRangeChange>;
|
|
111
|
+
/**
|
|
112
|
+
* This event fires when the input date picker value changes.
|
|
113
|
+
*/
|
|
114
|
+
calciteInputDatePickerChange: EventEmitter<void>;
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
calciteInputDatePickerOpen: EventEmitter;
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
calciteInputDatePickerClose: EventEmitter;
|
|
123
|
+
/** Updates the position of the component. */
|
|
124
|
+
setFocus(): Promise<void>;
|
|
125
|
+
/** Updates the position of the component. */
|
|
126
|
+
reposition(): Promise<void>;
|
|
127
|
+
connectedCallback(): void;
|
|
128
|
+
componentWillLoad(): Promise<void>;
|
|
129
|
+
disconnectedCallback(): void;
|
|
130
|
+
componentDidRender(): void;
|
|
131
|
+
render(): VNode;
|
|
132
|
+
labelEl: HTMLCalciteLabelElement;
|
|
133
|
+
formEl: HTMLFormElement;
|
|
134
|
+
defaultValue: InputDatePicker["value"];
|
|
135
|
+
focusedInput: "start" | "end";
|
|
136
|
+
private localeData;
|
|
137
|
+
private startInput;
|
|
138
|
+
private endInput;
|
|
139
|
+
private popper;
|
|
140
|
+
private menuEl;
|
|
141
|
+
private referenceEl;
|
|
142
|
+
private startWrapper;
|
|
143
|
+
private endWrapper;
|
|
144
|
+
private activeTransitionProp;
|
|
145
|
+
setReferenceEl(): void;
|
|
146
|
+
onLabelClick(): void;
|
|
147
|
+
transitionEnd: (event: TransitionEvent) => void;
|
|
148
|
+
setStartInput: (el: HTMLCalciteInputElement) => void;
|
|
149
|
+
setEndInput: (el: HTMLCalciteInputElement) => void;
|
|
150
|
+
deactivate: () => void;
|
|
151
|
+
keyUpHandler: (e: KeyboardEvent) => void;
|
|
152
|
+
inputBlur: (e: CustomEvent<any>) => void;
|
|
153
|
+
startInputFocus: () => void;
|
|
154
|
+
endInputFocus: () => void;
|
|
155
|
+
inputInput: (e: CustomEvent<any>) => void;
|
|
156
|
+
setMenuEl: (el: HTMLDivElement) => void;
|
|
157
|
+
setStartWrapper: (el: HTMLDivElement) => void;
|
|
158
|
+
setEndWrapper: (el: HTMLDivElement) => void;
|
|
159
|
+
getModifiers(): Partial<StrictModifiers>[];
|
|
160
|
+
createPopper(): void;
|
|
161
|
+
destroyPopper(): void;
|
|
162
|
+
startWatcher(start: string): void;
|
|
163
|
+
endWatcher(end: string): void;
|
|
164
|
+
private loadLocaleData;
|
|
165
|
+
private clearCurrentValue;
|
|
166
|
+
/**
|
|
167
|
+
* If inputted string is a valid date, update value/active
|
|
168
|
+
*/
|
|
169
|
+
private input;
|
|
170
|
+
/**
|
|
171
|
+
* Clean up invalid date from input on blur
|
|
172
|
+
*/
|
|
173
|
+
private blur;
|
|
174
|
+
/**
|
|
175
|
+
* Event handler for when the selected date changes
|
|
176
|
+
*/
|
|
177
|
+
handleDateChange: (event: CustomEvent<Date>) => void;
|
|
178
|
+
private shouldFocusRangeStart;
|
|
179
|
+
private shouldFocusRangeEnd;
|
|
180
|
+
private handleDateRangeChange;
|
|
181
|
+
/**
|
|
182
|
+
* Find a date from input string
|
|
183
|
+
* return false if date is invalid, or out of range
|
|
184
|
+
*/
|
|
185
|
+
private getDateFromInput;
|
|
186
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { Scale, Status } from "../interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* @slot - A slot for adding text.
|
|
5
|
+
*/
|
|
6
|
+
export declare class InputMessage {
|
|
7
|
+
el: HTMLCalciteInputMessageElement;
|
|
8
|
+
/** Indicates whether the message is displayed. */
|
|
9
|
+
active: boolean;
|
|
10
|
+
/** when used as a boolean set to true, show a default icon based on status. You can
|
|
11
|
+
* also pass a calcite-ui-icon name to this prop to display a custom icon */
|
|
12
|
+
icon: boolean | string;
|
|
13
|
+
/** specify the scale of the input, defaults to m */
|
|
14
|
+
scale: Scale;
|
|
15
|
+
/** specify the status of the input field, determines message and icons */
|
|
16
|
+
status: Status;
|
|
17
|
+
/** specify the appearance of any slotted message - default (displayed under input), or floating (positioned absolutely under input)
|
|
18
|
+
* @deprecated "floating" type is no longer supported
|
|
19
|
+
*/
|
|
20
|
+
type: "default";
|
|
21
|
+
handleIconEl(): void;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
render(): VNode;
|
|
24
|
+
/** the computed icon to render */
|
|
25
|
+
private requestedIcon?;
|
|
26
|
+
private renderIcon;
|
|
27
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { VNode, EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { Scale } from "../interfaces";
|
|
3
|
+
import { LabelableComponent } from "../../utils/label";
|
|
4
|
+
import { FormComponent } from "../../utils/form";
|
|
5
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
6
|
+
export declare class InputTimePicker implements LabelableComponent, FormComponent, InteractiveComponent {
|
|
7
|
+
el: HTMLCalciteInputTimePickerElement;
|
|
8
|
+
/** The active state of the time input */
|
|
9
|
+
active: boolean;
|
|
10
|
+
activeHandler(): void;
|
|
11
|
+
/** The disabled state of the time input */
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
handleDisabledChange(value: boolean): void;
|
|
14
|
+
/** aria-label for the hour input */
|
|
15
|
+
intlHour?: string;
|
|
16
|
+
/** aria-label for the hour down button */
|
|
17
|
+
intlHourDown?: string;
|
|
18
|
+
/** aria-label for the hour up button */
|
|
19
|
+
intlHourUp?: string;
|
|
20
|
+
/** aria-label for the meridiem (am/pm) input */
|
|
21
|
+
intlMeridiem?: string;
|
|
22
|
+
/** aria-label for the meridiem (am/pm) down button */
|
|
23
|
+
intlMeridiemDown?: string;
|
|
24
|
+
/** aria-label for the meridiem (am/pm) up button */
|
|
25
|
+
intlMeridiemUp?: string;
|
|
26
|
+
/** aria-label for the minute input */
|
|
27
|
+
intlMinute?: string;
|
|
28
|
+
/** aria-label for the minute down button */
|
|
29
|
+
intlMinuteDown?: string;
|
|
30
|
+
/** aria-label for the minute up button */
|
|
31
|
+
intlMinuteUp?: string;
|
|
32
|
+
/** aria-label for the second input */
|
|
33
|
+
intlSecond?: string;
|
|
34
|
+
/** aria-label for the second down button */
|
|
35
|
+
intlSecondDown?: string;
|
|
36
|
+
/** aria-label for the second up button */
|
|
37
|
+
intlSecondUp?: string;
|
|
38
|
+
/**
|
|
39
|
+
* BCP 47 language tag for desired language and country format
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
locale: string;
|
|
43
|
+
localeWatcher(newLocale: string): void;
|
|
44
|
+
/** The name of the time input */
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
* When true, makes the component required for form-submission.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
required: boolean;
|
|
52
|
+
/** The scale (size) of the time input */
|
|
53
|
+
scale: Scale;
|
|
54
|
+
/** number (seconds) that specifies the granularity that the value must adhere to */
|
|
55
|
+
step: number;
|
|
56
|
+
/** The selected time in UTC (always 24-hour format) */
|
|
57
|
+
value: string;
|
|
58
|
+
valueWatcher(newValue: string): void;
|
|
59
|
+
labelEl: HTMLCalciteLabelElement;
|
|
60
|
+
formEl: HTMLFormElement;
|
|
61
|
+
defaultValue: InputTimePicker["value"];
|
|
62
|
+
private calciteInputEl;
|
|
63
|
+
private calciteTimePickerEl;
|
|
64
|
+
/** whether the value of the input was changed as a result of user typing or not */
|
|
65
|
+
private internalValueChange;
|
|
66
|
+
private previousValidValue;
|
|
67
|
+
private referenceElementId;
|
|
68
|
+
localizedValue: string;
|
|
69
|
+
/**
|
|
70
|
+
* Fires when the time value is changed as a result of user input.
|
|
71
|
+
*/
|
|
72
|
+
calciteInputTimePickerChange: EventEmitter<string>;
|
|
73
|
+
private calciteInputBlurHandler;
|
|
74
|
+
private calciteInputFocusHandler;
|
|
75
|
+
private calciteInputInputHandler;
|
|
76
|
+
clickHandler(event: MouseEvent): void;
|
|
77
|
+
keyUpHandler(event: KeyboardEvent): void;
|
|
78
|
+
timePickerBlurHandler(event: CustomEvent): void;
|
|
79
|
+
private timePickerChangeHandler;
|
|
80
|
+
timePickerFocusHandler(event: CustomEvent): void;
|
|
81
|
+
/** Sets focus on the component. */
|
|
82
|
+
setFocus(): Promise<void>;
|
|
83
|
+
onLabelClick(): void;
|
|
84
|
+
private shouldIncludeSeconds;
|
|
85
|
+
private setCalciteInputEl;
|
|
86
|
+
private setCalciteTimePickerEl;
|
|
87
|
+
private setInputValue;
|
|
88
|
+
private setValue;
|
|
89
|
+
connectedCallback(): void;
|
|
90
|
+
componentDidLoad(): void;
|
|
91
|
+
disconnectedCallback(): void;
|
|
92
|
+
componentDidRender(): void;
|
|
93
|
+
render(): VNode;
|
|
94
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { Alignment, Scale, Status } from "../interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* @slot - A slot for adding text and a component that can be labeled.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Label {
|
|
7
|
+
el: HTMLCalciteLabelElement;
|
|
8
|
+
/** specify the text alignment of the label */
|
|
9
|
+
alignment: Alignment;
|
|
10
|
+
/**
|
|
11
|
+
* specify the status of the label and any child input / input messages
|
|
12
|
+
* @deprecated set directly on child element instead
|
|
13
|
+
*/
|
|
14
|
+
status: Status;
|
|
15
|
+
/** The id of the input associated with the label */
|
|
16
|
+
for: string;
|
|
17
|
+
/** specify the scale of the label, defaults to m */
|
|
18
|
+
scale: Scale;
|
|
19
|
+
/** is the wrapped element positioned inline with the label slotted text */
|
|
20
|
+
layout: "inline" | "inline-space-between" | "default";
|
|
21
|
+
/** eliminates any space around the label */
|
|
22
|
+
disableSpacing: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* is the label disabled
|
|
25
|
+
*
|
|
26
|
+
* @deprecated use the `disabled` property on the interactive components instead
|
|
27
|
+
*/
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
calciteInternalLabelClick: EventEmitter<{
|
|
33
|
+
sourceEvent: MouseEvent;
|
|
34
|
+
}>;
|
|
35
|
+
labelClickHandler: (event: MouseEvent) => void;
|
|
36
|
+
connectedCallback(): void;
|
|
37
|
+
disconnectedCallback(): void;
|
|
38
|
+
render(): VNode;
|
|
39
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { FlipContext } from "../interfaces";
|
|
3
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
4
|
+
/** Any attributes placed on <calcite-link> component will propagate to the rendered child */
|
|
5
|
+
/** Passing a 'href' will render an anchor link, instead of a span. Role will be set to link, or link, depending on this. */
|
|
6
|
+
/** It is the consumers responsibility to add aria information, rel, target, for links, and any link attributes for form submission */
|
|
7
|
+
/** @slot - A slot for adding text. */
|
|
8
|
+
export declare class Link implements InteractiveComponent {
|
|
9
|
+
el: HTMLCalciteLinkElement;
|
|
10
|
+
/** is the link disabled */
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
/** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
13
|
+
* Without a value, the browser will suggest a filename/extension
|
|
14
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
15
|
+
*/
|
|
16
|
+
download: string | boolean;
|
|
17
|
+
/** optionally pass a href - used to determine if the component should render as a link or an anchor */
|
|
18
|
+
href?: string;
|
|
19
|
+
/** optionally pass an icon to display at the end of a button - accepts calcite ui icon names */
|
|
20
|
+
iconEnd?: string;
|
|
21
|
+
/** flip the icon(s) in rtl */
|
|
22
|
+
iconFlipRtl?: FlipContext;
|
|
23
|
+
/** optionally pass an icon to display at the start of a button - accepts calcite ui icon names */
|
|
24
|
+
iconStart?: string;
|
|
25
|
+
/** The rel attribute to apply to the hyperlink */
|
|
26
|
+
rel?: string;
|
|
27
|
+
/** The target attribute to apply to the hyperlink */
|
|
28
|
+
target?: string;
|
|
29
|
+
componentDidRender(): void;
|
|
30
|
+
render(): VNode;
|
|
31
|
+
/** Sets focus on the component. */
|
|
32
|
+
setFocus(): Promise<void>;
|
|
33
|
+
/** the rendered child element */
|
|
34
|
+
private childEl;
|
|
35
|
+
private storeTagRef;
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { HeadingLevel } from "../functional/Heading";
|
|
3
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
4
|
+
/**
|
|
5
|
+
* A general purpose list that enables users to construct list items that conform to Calcite styling.
|
|
6
|
+
* @slot - A slot for adding `calcite-list-item` elements.
|
|
7
|
+
*/
|
|
8
|
+
export declare class List implements InteractiveComponent {
|
|
9
|
+
/**
|
|
10
|
+
* When true, disabled prevents user interaction.
|
|
11
|
+
*/
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Number at which section headings should start for this component.
|
|
15
|
+
*/
|
|
16
|
+
headingLevel: HeadingLevel;
|
|
17
|
+
componentDidRender(): void;
|
|
18
|
+
el: HTMLCalciteListElement;
|
|
19
|
+
/** Sets focus on the component. */
|
|
20
|
+
setFocus(): Promise<void>;
|
|
21
|
+
render(): VNode;
|
|
22
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
3
|
+
import { InteractiveComponent } from "../../utils/interactive";
|
|
4
|
+
/**
|
|
5
|
+
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
6
|
+
* @slot actions-start - A slot for adding actionable `calcite-action` elements before the content of the list item.
|
|
7
|
+
* @slot content-start - A slot for adding non-actionable elements before the label and description of the list item.
|
|
8
|
+
* @slot content-end - A slot for adding non-actionable elements after the label and description of the list item.
|
|
9
|
+
* @slot actions-end - A slot for adding actionable `calcite-action` elements after the content of the list item.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ListItem implements ConditionalSlotComponent, InteractiveComponent {
|
|
12
|
+
/**
|
|
13
|
+
* When true, prevents the content of the list item from user interaction.
|
|
14
|
+
*/
|
|
15
|
+
nonInteractive: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* An optional description for this item. This will appear below the label text.
|
|
18
|
+
*/
|
|
19
|
+
description: string;
|
|
20
|
+
/**
|
|
21
|
+
* When true, disabled prevents interaction.
|
|
22
|
+
*/
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The label text of the list item. This will appear above the description text.
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
el: HTMLCalciteListItemElement;
|
|
29
|
+
focusEl: HTMLButtonElement;
|
|
30
|
+
componentDidRender(): void;
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
/** Sets focus on the component. */
|
|
34
|
+
setFocus(): Promise<void>;
|
|
35
|
+
renderActionsStart(): VNode;
|
|
36
|
+
renderActionsEnd(): VNode;
|
|
37
|
+
renderContentStart(): VNode;
|
|
38
|
+
renderContentEnd(): VNode;
|
|
39
|
+
renderContent(): VNode;
|
|
40
|
+
renderContentContainer(): VNode;
|
|
41
|
+
render(): VNode;
|
|
42
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { HeadingLevel } from "../functional/Heading";
|
|
3
|
+
/**
|
|
4
|
+
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ListItemGroup {
|
|
7
|
+
/**
|
|
8
|
+
* The title used for all nested `calcite-list-item` rows.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
heading: string;
|
|
12
|
+
/**
|
|
13
|
+
* Number at which section headings should start for this component.
|
|
14
|
+
*/
|
|
15
|
+
headingLevel: HeadingLevel;
|
|
16
|
+
el: HTMLCalciteListItemGroupElement;
|
|
17
|
+
render(): VNode;
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { Scale } from "../interfaces";
|
|
3
|
+
export declare class Loader {
|
|
4
|
+
el: HTMLCalciteLoaderElement;
|
|
5
|
+
/** Show the loader */
|
|
6
|
+
active: boolean;
|
|
7
|
+
/** Inline loaders are smaller and will appear to the left of the text */
|
|
8
|
+
inline: boolean;
|
|
9
|
+
/** Accessible name for the component */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Speficy the scale of the loader. Defaults to "m" */
|
|
12
|
+
scale: Scale;
|
|
13
|
+
/** Use indeterminate if finding actual progress value is impossible */
|
|
14
|
+
type: "indeterminate" | "determinate";
|
|
15
|
+
/** Percent complete of 100, only valid for determinate indicators */
|
|
16
|
+
value: number;
|
|
17
|
+
/** Text which should appear under the loading indicator (optional) */
|
|
18
|
+
text: string;
|
|
19
|
+
/** Turn off spacing around the loader */
|
|
20
|
+
noPadding: boolean;
|
|
21
|
+
render(): VNode;
|
|
22
|
+
/**
|
|
23
|
+
* Return the proper sizes based on the scale property
|
|
24
|
+
*/
|
|
25
|
+
private getSize;
|
|
26
|
+
private getInlineSize;
|
|
27
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { Scale } from "../interfaces";
|
|
3
|
+
import { ModalBackgroundColor } from "./interfaces";
|
|
4
|
+
import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
5
|
+
/**
|
|
6
|
+
* @slot header - a slot for adding a modal header
|
|
7
|
+
* @slot content - a slot for adding modal content
|
|
8
|
+
* @slot primary - a slot for adding a primary button
|
|
9
|
+
* @slot secondary - a slot for adding a secondary button
|
|
10
|
+
* @slot back - a slot for adding a back button
|
|
11
|
+
*/
|
|
12
|
+
export declare class Modal implements ConditionalSlotComponent {
|
|
13
|
+
el: HTMLCalciteModalElement;
|
|
14
|
+
/** Add the active attribute to open the modal */
|
|
15
|
+
active: boolean;
|
|
16
|
+
/** Optionally pass a function to run before close */
|
|
17
|
+
beforeClose: (el: HTMLElement) => Promise<void>;
|
|
18
|
+
/** Disables the display a close button within the Modal */
|
|
19
|
+
disableCloseButton: boolean;
|
|
20
|
+
/** Disables the closing of the Modal when clicked outside. */
|
|
21
|
+
disableOutsideClose: boolean;
|
|
22
|
+
/** Aria label for the close button */
|
|
23
|
+
intlClose: string;
|
|
24
|
+
/** Prevent the modal from taking up the entire screen on mobile */
|
|
25
|
+
docked: boolean;
|
|
26
|
+
/** Specify an element to focus when the modal is first opened */
|
|
27
|
+
firstFocus?: HTMLElement;
|
|
28
|
+
/** Flag to disable the default close on escape behavior */
|
|
29
|
+
disableEscape: boolean;
|
|
30
|
+
/** specify the scale of modal, defaults to m */
|
|
31
|
+
scale: Scale;
|
|
32
|
+
/** Set the width of the modal. Can use stock sizes or pass a number (in pixels) */
|
|
33
|
+
width: Scale | number;
|
|
34
|
+
/** Set the modal to always be fullscreen (overrides width) */
|
|
35
|
+
fullscreen: boolean;
|
|
36
|
+
/** Adds a color bar at the top for visual impact,
|
|
37
|
+
* Use color to add importance to destructive/workflow dialogs. */
|
|
38
|
+
color?: "red" | "blue";
|
|
39
|
+
/** Background color of modal content */
|
|
40
|
+
backgroundColor: ModalBackgroundColor;
|
|
41
|
+
/** Turn off spacing around the content area slot */
|
|
42
|
+
noPadding: boolean;
|
|
43
|
+
componentWillLoad(): void;
|
|
44
|
+
connectedCallback(): void;
|
|
45
|
+
disconnectedCallback(): void;
|
|
46
|
+
render(): VNode;
|
|
47
|
+
renderFooter(): VNode;
|
|
48
|
+
renderCloseButton(): VNode;
|
|
49
|
+
renderStyle(): VNode;
|
|
50
|
+
hasFooter: boolean;
|
|
51
|
+
closeButtonEl: HTMLButtonElement;
|
|
52
|
+
contentId: string;
|
|
53
|
+
modalContent: HTMLDivElement;
|
|
54
|
+
private mutationObserver;
|
|
55
|
+
previousActiveElement: HTMLElement;
|
|
56
|
+
titleId: string;
|
|
57
|
+
private activeTransitionProp;
|
|
58
|
+
handleEscape(e: KeyboardEvent): void;
|
|
59
|
+
/** Fired when the modal finishes the open animation */
|
|
60
|
+
calciteModalOpen: EventEmitter;
|
|
61
|
+
/** Fired when the modal finishes the close animation */
|
|
62
|
+
calciteModalClose: EventEmitter;
|
|
63
|
+
/**
|
|
64
|
+
* Focus first interactive element
|
|
65
|
+
* @deprecated use `setFocus` instead.
|
|
66
|
+
*/
|
|
67
|
+
focusElement(el?: HTMLElement): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Sets focus on the component.
|
|
70
|
+
*
|
|
71
|
+
* By default, will try to focus on any focusable content. If there is none, it will focus on the close button.
|
|
72
|
+
* If you want to focus on the close button, you can use the `close-button` focus ID.
|
|
73
|
+
*/
|
|
74
|
+
setFocus(focusId?: "close-button"): Promise<void>;
|
|
75
|
+
/** Set the scroll top of the modal content */
|
|
76
|
+
scrollContent(top?: number, left?: number): Promise<void>;
|
|
77
|
+
transitionEnd: (event: TransitionEvent) => void;
|
|
78
|
+
toggleModal(value: boolean, oldValue: boolean): Promise<void>;
|
|
79
|
+
private openEnd;
|
|
80
|
+
/** Open the modal */
|
|
81
|
+
private open;
|
|
82
|
+
handleOutsideClose: () => void;
|
|
83
|
+
/** Close the modal, first running the `beforeClose` method */
|
|
84
|
+
close: () => Promise<void>;
|
|
85
|
+
focusFirstElement: () => void;
|
|
86
|
+
focusLastElement: () => void;
|
|
87
|
+
private removeOverflowHiddenClass;
|
|
88
|
+
private updateFooterVisibility;
|
|
89
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
|
+
import { Scale, Width } from "../interfaces";
|
|
3
|
+
import { StatusColor } from "../alert/interfaces";
|
|
4
|
+
import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
5
|
+
/** Notices are intended to be used to present users with important-but-not-crucial contextual tips or copy. Because
|
|
6
|
+
* notices are displayed inline, a common use case is displaying them on page-load to present users with short hints or contextual copy.
|
|
7
|
+
* They are optionally dismissible - useful for keeping track of whether or not a user has dismissed the notice. You can also choose not
|
|
8
|
+
* to display a notice on page load and set the "active" attribute as needed to contextually provide inline messaging to users.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @slot title - Title of the notice (optional)
|
|
12
|
+
* @slot message - Main text of the notice
|
|
13
|
+
* @slot link - Optional action to take from the notice (undo, try again, link to page, etc.)
|
|
14
|
+
* @slot actions-end - Allows adding a `calcite-action` at the end of the notice. It is recommended to use 2 or less actions.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Notice implements ConditionalSlotComponent {
|
|
17
|
+
el: HTMLCalciteNoticeElement;
|
|
18
|
+
/** Is the notice currently active or not */
|
|
19
|
+
active: boolean;
|
|
20
|
+
/** Color for the notice (will apply to top border and icon) */
|
|
21
|
+
color: StatusColor;
|
|
22
|
+
/** Optionally show a button the user can click to dismiss the notice */
|
|
23
|
+
dismissible: boolean;
|
|
24
|
+
/** when used as a boolean set to true, show a default recommended icon. You can
|
|
25
|
+
* also pass a calcite-ui-icon name to this prop to display a requested icon */
|
|
26
|
+
icon: string | boolean;
|
|
27
|
+
/** String for the close button.
|
|
28
|
+
* @default "Close"
|
|
29
|
+
*/
|
|
30
|
+
intlClose: string;
|
|
31
|
+
/** specify the scale of the notice, defaults to m */
|
|
32
|
+
scale: Scale;
|
|
33
|
+
/** specify the width of the notice, defaults to auto */
|
|
34
|
+
width: Width;
|
|
35
|
+
updateRequestedIcon(): void;
|
|
36
|
+
connectedCallback(): void;
|
|
37
|
+
disconnectedCallback(): void;
|
|
38
|
+
componentWillLoad(): void;
|
|
39
|
+
render(): VNode;
|
|
40
|
+
/** Fired when an notice is closed */
|
|
41
|
+
calciteNoticeClose: EventEmitter;
|
|
42
|
+
/** Fired when an Notice is opened */
|
|
43
|
+
calciteNoticeOpen: EventEmitter;
|
|
44
|
+
/** Sets focus on the component. */
|
|
45
|
+
setFocus(): Promise<void>;
|
|
46
|
+
private close;
|
|
47
|
+
/** the close button element */
|
|
48
|
+
private closeButton?;
|
|
49
|
+
/** the computed icon to render */
|
|
50
|
+
private requestedIcon?;
|
|
51
|
+
}
|