@sula-tech/webcomponents 0.20.1 → 0.22.0
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/cjs/index.cjs.js +7 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sula-avatar_31.cjs.entry.js → sula-avatar_32.cjs.entry.js} +453 -84
- package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -0
- package/dist/cjs/{sula-menu.model-BDxbWyPG.js → sula-calendar.model-BI5cNrUo.js} +8 -2
- package/dist/cjs/sula-calendar.model-BI5cNrUo.js.map +1 -0
- package/dist/cjs/sula-toast-stack.cjs.entry.js +4 -4
- package/dist/cjs/sula-toast.cjs.entry.js +2 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sula-calendar/model/sula-calendar.model.js +6 -0
- package/dist/collection/components/sula-calendar/model/sula-calendar.model.js.map +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.css +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.js +792 -0
- package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js +309 -0
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.js +3 -3
- package/dist/collection/components/sula-chip/model/sula-chip.model.js +5 -0
- package/dist/collection/components/sula-chip/model/sula-chip.model.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.css +1 -1
- package/dist/collection/components/sula-chip/sula-chip.js +40 -5
- package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.stories.js +14 -1
- package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +3 -3
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.js +1 -1
- package/dist/collection/components/sula-icon-picker/sula-icon-picker.js +2 -2
- package/dist/collection/components/sula-loader/sula-loader.js +1 -1
- package/dist/collection/components/sula-menu/sula-menu.js +8 -8
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
- package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
- package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
- package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
- package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
- package/dist/collection/components/sula-switch/sula-switch.js +4 -4
- package/dist/collection/components/sula-table/sula-table.js +3 -3
- package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
- package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
- package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
- package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
- package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
- package/dist/collection/components/sula-tag/sula-tag.js +3 -3
- package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.js +27 -3
- package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js +9 -0
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -1
- package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
- package/dist/collection/components/sula-toast/sula-toast.js +2 -2
- package/dist/collection/components/sula-toast-stack/sula-toast-stack.js +4 -4
- package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-b7t6bSNa.js → p-CXm0qTFO.js} +4 -4
- package/dist/components/{p-b7t6bSNa.js.map → p-CXm0qTFO.js.map} +1 -1
- package/dist/components/p-Cp_4qTxj.js +10 -0
- package/dist/components/p-Cp_4qTxj.js.map +1 -0
- package/dist/components/{p-DmQoJS86.js → p-D5G0T47I.js} +5 -5
- package/dist/components/{p-DmQoJS86.js.map → p-D5G0T47I.js.map} +1 -1
- package/dist/components/p-DGAtNvje.js +555 -0
- package/dist/components/p-DGAtNvje.js.map +1 -0
- package/dist/components/{p-CJ2i2jVV.js → p-DwyYG9oc.js} +5 -5
- package/dist/components/{p-CJ2i2jVV.js.map → p-DwyYG9oc.js.map} +1 -1
- package/dist/components/{p-DmCNhtp_.js → p-MPkJUrNl.js} +3 -3
- package/dist/components/{p-DmCNhtp_.js.map → p-MPkJUrNl.js.map} +1 -1
- package/dist/components/{p-DGfvh6dZ.js → p-fAOl4EhI.js} +5 -5
- package/dist/components/{p-DGfvh6dZ.js.map → p-fAOl4EhI.js.map} +1 -1
- package/dist/components/{p-DqRqPukj.js → p-jplrktAF.js} +4 -4
- package/dist/components/{p-DqRqPukj.js.map → p-jplrktAF.js.map} +1 -1
- package/dist/components/{p-D0ZAC0yK.js → p-t7f_qmad.js} +7 -7
- package/dist/components/{p-D0ZAC0yK.js.map → p-t7f_qmad.js.map} +1 -1
- package/dist/components/sula-avatar.js +1 -1
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-breadcrumb.js +1 -1
- package/dist/components/sula-button.js +1 -1
- package/dist/components/sula-calendar.d.ts +11 -0
- package/dist/components/sula-calendar.js +411 -0
- package/dist/components/sula-calendar.js.map +1 -0
- package/dist/components/sula-checkbox.js +4 -4
- package/dist/components/sula-chip.js +22 -7
- package/dist/components/sula-chip.js.map +1 -1
- package/dist/components/sula-dropdown.js +1 -1
- package/dist/components/sula-icon-picker.js +6 -6
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-loader.js +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-menu.js +9 -9
- package/dist/components/sula-modal.js +3 -3
- package/dist/components/sula-progress-bar.js +3 -3
- package/dist/components/sula-radio-button.js +2 -2
- package/dist/components/sula-search-bar.js +1 -1
- package/dist/components/sula-segmented-control.js +2 -2
- package/dist/components/sula-switch.js +4 -4
- package/dist/components/sula-table-body.js +1 -1
- package/dist/components/sula-table-cell.js +2 -2
- package/dist/components/sula-table-head-cell.js +2 -2
- package/dist/components/sula-table-header.js +1 -1
- package/dist/components/sula-table-row.js +1 -1
- package/dist/components/sula-table.js +3 -3
- package/dist/components/sula-tag.js +4 -4
- package/dist/components/sula-textarea.js +6 -6
- package/dist/components/sula-textfield.js +1 -545
- package/dist/components/sula-textfield.js.map +1 -1
- package/dist/components/sula-tiles.js +2 -2
- package/dist/components/sula-timeline-list.js +2 -2
- package/dist/components/sula-toast-stack.js +6 -6
- package/dist/components/sula-toast.js +1 -1
- package/dist/components/sula-toggle.js +2 -2
- package/dist/components/sula-tooltip.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{sula-avatar_31.entry.js → sula-avatar_32.entry.js} +447 -79
- package/dist/esm/sula-avatar_32.entry.js.map +1 -0
- package/dist/esm/{sula-menu.model-Cs9RR1ZV.js → sula-calendar.model-BbsLJDfp.js} +9 -3
- package/dist/esm/sula-calendar.model-BbsLJDfp.js.map +1 -0
- package/dist/esm/sula-toast-stack.entry.js +4 -4
- package/dist/esm/sula-toast.entry.js +2 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-calendar/model/sula-calendar.model.d.ts +28 -0
- package/dist/types/components/sula-calendar/sula-calendar.d.ts +134 -0
- package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +169 -0
- package/dist/types/components/sula-chip/model/sula-chip.model.d.ts +4 -0
- package/dist/types/components/sula-chip/sula-chip.d.ts +5 -1
- package/dist/types/components/sula-chip/sula-chip.stories.d.ts +12 -1
- package/dist/types/components/sula-textfield/sula-textfield.d.ts +4 -0
- package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +8 -0
- package/dist/types/components.d.ts +221 -2
- package/dist/types/index.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-f4ef50ea.entry.js → p-22b10b91.entry.js} +840 -355
- package/dist/webcomponents/p-22b10b91.entry.js.map +1 -0
- package/dist/webcomponents/{p-Cs9RR1ZV.js → p-BbsLJDfp.js} +11 -4
- package/dist/webcomponents/p-BbsLJDfp.js.map +1 -0
- package/dist/webcomponents/{p-170854a5.entry.js → p-c552c435.entry.js} +16 -16
- package/dist/webcomponents/{p-c58125e1.entry.js → p-df271629.entry.js} +6 -6
- package/dist/webcomponents/webcomponents.esm.js +48 -23
- package/package.json +1 -1
- package/dist/cjs/sula-avatar_31.cjs.entry.js.map +0 -1
- package/dist/cjs/sula-menu.model-BDxbWyPG.js.map +0 -1
- package/dist/esm/sula-avatar_31.entry.js.map +0 -1
- package/dist/esm/sula-menu.model-Cs9RR1ZV.js.map +0 -1
- package/dist/webcomponents/p-Cs9RR1ZV.js.map +0 -1
- package/dist/webcomponents/p-f4ef50ea.entry.js.map +0 -1
- /package/dist/webcomponents/{p-170854a5.entry.js.map → p-c552c435.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-c58125e1.entry.js.map → p-df271629.entry.js.map} +0 -0
|
@@ -9,8 +9,9 @@ import { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model
|
|
|
9
9
|
import { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
10
10
|
import { SulaMenuBreadcrumb } from "./components/sula-breadcrumb/model/sula-breadcrumb.model";
|
|
11
11
|
import { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from "./components/sula-button/model/sula-button.model";
|
|
12
|
+
import { SulaCalendarMonthChange, SulaCalendarRange, SulaCalendarStatus } from "./components/sula-calendar/model/sula-calendar.model";
|
|
12
13
|
import { SulaCheckboxType } from "./components/sula-checkbox/model/sula-checkbox.model";
|
|
13
|
-
import { SulaChipAppearance } from "./components/sula-chip/model/sula-chip.model";
|
|
14
|
+
import { SulaChipAppearance, SulaChipItemsPlacement } from "./components/sula-chip/model/sula-chip.model";
|
|
14
15
|
import { SulaMenuListItem } from "./components/sula-menu-select-list/model/sula-menu-select-list.model";
|
|
15
16
|
import { SulaMenuListItem as SulaMenuListItem1 } from "./components";
|
|
16
17
|
import { SulaIconPickerIcon } from "./components/sula-icon-picker/model/sula-icon-picker.model";
|
|
@@ -34,8 +35,9 @@ export { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model
|
|
|
34
35
|
export { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
35
36
|
export { SulaMenuBreadcrumb } from "./components/sula-breadcrumb/model/sula-breadcrumb.model";
|
|
36
37
|
export { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from "./components/sula-button/model/sula-button.model";
|
|
38
|
+
export { SulaCalendarMonthChange, SulaCalendarRange, SulaCalendarStatus } from "./components/sula-calendar/model/sula-calendar.model";
|
|
37
39
|
export { SulaCheckboxType } from "./components/sula-checkbox/model/sula-checkbox.model";
|
|
38
|
-
export { SulaChipAppearance } from "./components/sula-chip/model/sula-chip.model";
|
|
40
|
+
export { SulaChipAppearance, SulaChipItemsPlacement } from "./components/sula-chip/model/sula-chip.model";
|
|
39
41
|
export { SulaMenuListItem } from "./components/sula-menu-select-list/model/sula-menu-select-list.model";
|
|
40
42
|
export { SulaMenuListItem as SulaMenuListItem1 } from "./components";
|
|
41
43
|
export { SulaIconPickerIcon } from "./components/sula-icon-picker/model/sula-icon-picker.model";
|
|
@@ -162,6 +164,78 @@ export namespace Components {
|
|
|
162
164
|
*/
|
|
163
165
|
"type": SulaButtonType;
|
|
164
166
|
}
|
|
167
|
+
interface SulaCalendar {
|
|
168
|
+
/**
|
|
169
|
+
* Allows typing the date directly in the field. When false, the date can only be picked in the calendar
|
|
170
|
+
* @default true
|
|
171
|
+
*/
|
|
172
|
+
"allowTyping": boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Closes the calendar panel after a date is selected
|
|
175
|
+
* @default true
|
|
176
|
+
*/
|
|
177
|
+
"closeOnSelect": boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Renders a smaller chip-like trigger showing only the selected date (`DD/MM/YY`), instead of the input field
|
|
180
|
+
* @default false
|
|
181
|
+
*/
|
|
182
|
+
"compact": boolean;
|
|
183
|
+
/**
|
|
184
|
+
* The calendar is disabled
|
|
185
|
+
* @default false
|
|
186
|
+
*/
|
|
187
|
+
"disabled": boolean;
|
|
188
|
+
/**
|
|
189
|
+
* First day of the week, where 0 is Sunday and 6 is Saturday
|
|
190
|
+
* @default 0
|
|
191
|
+
*/
|
|
192
|
+
"firstDayOfWeek": number;
|
|
193
|
+
/**
|
|
194
|
+
* The help text displayed below the field
|
|
195
|
+
*/
|
|
196
|
+
"helpText"?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Renders only the calendar panel, without the input field
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
201
|
+
"inline": boolean;
|
|
202
|
+
/**
|
|
203
|
+
* The calendar field label
|
|
204
|
+
*/
|
|
205
|
+
"label": string;
|
|
206
|
+
/**
|
|
207
|
+
* Locale used to format month and weekday names
|
|
208
|
+
* @default 'pt-BR'
|
|
209
|
+
*/
|
|
210
|
+
"locale": string;
|
|
211
|
+
/**
|
|
212
|
+
* Latest selectable date in the `DD/MM/YYYY` format
|
|
213
|
+
*/
|
|
214
|
+
"maxDate"?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Earliest selectable date in the `DD/MM/YYYY` format
|
|
217
|
+
*/
|
|
218
|
+
"minDate"?: string;
|
|
219
|
+
/**
|
|
220
|
+
* The calendar field placeholder
|
|
221
|
+
*/
|
|
222
|
+
"placeholder"?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Enables selecting a date range (start and end dates) instead of a single date
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
"range": boolean;
|
|
228
|
+
/**
|
|
229
|
+
* The calendar field status
|
|
230
|
+
* @default SulaCalendarStatus.Default
|
|
231
|
+
*/
|
|
232
|
+
"status": SulaCalendarStatus;
|
|
233
|
+
/**
|
|
234
|
+
* Selected date in the `DD/MM/YYYY` format. In range mode the format is `DD/MM/YYYY - DD/MM/YYYY`
|
|
235
|
+
* @default ''
|
|
236
|
+
*/
|
|
237
|
+
"value": string;
|
|
238
|
+
}
|
|
165
239
|
interface SulaCheckbox {
|
|
166
240
|
/**
|
|
167
241
|
* Is checkbox checked
|
|
@@ -203,6 +277,11 @@ export namespace Components {
|
|
|
203
277
|
* @default []
|
|
204
278
|
*/
|
|
205
279
|
"items": SulaMenuListItem[];
|
|
280
|
+
/**
|
|
281
|
+
* Where the items list opens relative to the chip
|
|
282
|
+
* @default SulaChipItemsPlacement.Bottom
|
|
283
|
+
*/
|
|
284
|
+
"itemsPlacement": SulaChipItemsPlacement;
|
|
206
285
|
/**
|
|
207
286
|
* Chip is selected
|
|
208
287
|
* @default false
|
|
@@ -701,6 +780,11 @@ export namespace Components {
|
|
|
701
780
|
* The textfield placeholder
|
|
702
781
|
*/
|
|
703
782
|
"placeholder": string;
|
|
783
|
+
/**
|
|
784
|
+
* The textfield is read only, blocking typing while keeping it focusable
|
|
785
|
+
* @default false
|
|
786
|
+
*/
|
|
787
|
+
"readOnly": boolean;
|
|
704
788
|
/**
|
|
705
789
|
* The textfield status
|
|
706
790
|
* @default SulaTextfieldStatus.Default
|
|
@@ -888,6 +972,10 @@ export interface SulaButtonCustomEvent<T> extends CustomEvent<T> {
|
|
|
888
972
|
detail: T;
|
|
889
973
|
target: HTMLSulaButtonElement;
|
|
890
974
|
}
|
|
975
|
+
export interface SulaCalendarCustomEvent<T> extends CustomEvent<T> {
|
|
976
|
+
detail: T;
|
|
977
|
+
target: HTMLSulaCalendarElement;
|
|
978
|
+
}
|
|
891
979
|
export interface SulaCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
892
980
|
detail: T;
|
|
893
981
|
target: HTMLSulaCheckboxElement;
|
|
@@ -1007,6 +1095,28 @@ declare global {
|
|
|
1007
1095
|
prototype: HTMLSulaButtonElement;
|
|
1008
1096
|
new (): HTMLSulaButtonElement;
|
|
1009
1097
|
};
|
|
1098
|
+
interface HTMLSulaCalendarElementEventMap {
|
|
1099
|
+
"dateSelected": string;
|
|
1100
|
+
"rangeSelected": SulaCalendarRange;
|
|
1101
|
+
"valueChanged": string;
|
|
1102
|
+
"monthChanged": SulaCalendarMonthChange;
|
|
1103
|
+
"calendarOpened": void;
|
|
1104
|
+
"calendarClosed": void;
|
|
1105
|
+
}
|
|
1106
|
+
interface HTMLSulaCalendarElement extends Components.SulaCalendar, HTMLStencilElement {
|
|
1107
|
+
addEventListener<K extends keyof HTMLSulaCalendarElementEventMap>(type: K, listener: (this: HTMLSulaCalendarElement, ev: SulaCalendarCustomEvent<HTMLSulaCalendarElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1108
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1109
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1110
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1111
|
+
removeEventListener<K extends keyof HTMLSulaCalendarElementEventMap>(type: K, listener: (this: HTMLSulaCalendarElement, ev: SulaCalendarCustomEvent<HTMLSulaCalendarElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1112
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1113
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1114
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1115
|
+
}
|
|
1116
|
+
var HTMLSulaCalendarElement: {
|
|
1117
|
+
prototype: HTMLSulaCalendarElement;
|
|
1118
|
+
new (): HTMLSulaCalendarElement;
|
|
1119
|
+
};
|
|
1010
1120
|
interface HTMLSulaCheckboxElementEventMap {
|
|
1011
1121
|
"valueChanged": boolean;
|
|
1012
1122
|
"focusedOn": void;
|
|
@@ -1425,6 +1535,7 @@ declare global {
|
|
|
1425
1535
|
"sula-badge": HTMLSulaBadgeElement;
|
|
1426
1536
|
"sula-breadcrumb": HTMLSulaBreadcrumbElement;
|
|
1427
1537
|
"sula-button": HTMLSulaButtonElement;
|
|
1538
|
+
"sula-calendar": HTMLSulaCalendarElement;
|
|
1428
1539
|
"sula-checkbox": HTMLSulaCheckboxElement;
|
|
1429
1540
|
"sula-chip": HTMLSulaChipElement;
|
|
1430
1541
|
"sula-dropdown": HTMLSulaDropdownElement;
|
|
@@ -1572,6 +1683,102 @@ declare namespace LocalJSX {
|
|
|
1572
1683
|
*/
|
|
1573
1684
|
"type"?: SulaButtonType;
|
|
1574
1685
|
}
|
|
1686
|
+
interface SulaCalendar {
|
|
1687
|
+
/**
|
|
1688
|
+
* Allows typing the date directly in the field. When false, the date can only be picked in the calendar
|
|
1689
|
+
* @default true
|
|
1690
|
+
*/
|
|
1691
|
+
"allowTyping"?: boolean;
|
|
1692
|
+
/**
|
|
1693
|
+
* Closes the calendar panel after a date is selected
|
|
1694
|
+
* @default true
|
|
1695
|
+
*/
|
|
1696
|
+
"closeOnSelect"?: boolean;
|
|
1697
|
+
/**
|
|
1698
|
+
* Renders a smaller chip-like trigger showing only the selected date (`DD/MM/YY`), instead of the input field
|
|
1699
|
+
* @default false
|
|
1700
|
+
*/
|
|
1701
|
+
"compact"?: boolean;
|
|
1702
|
+
/**
|
|
1703
|
+
* The calendar is disabled
|
|
1704
|
+
* @default false
|
|
1705
|
+
*/
|
|
1706
|
+
"disabled"?: boolean;
|
|
1707
|
+
/**
|
|
1708
|
+
* First day of the week, where 0 is Sunday and 6 is Saturday
|
|
1709
|
+
* @default 0
|
|
1710
|
+
*/
|
|
1711
|
+
"firstDayOfWeek"?: number;
|
|
1712
|
+
/**
|
|
1713
|
+
* The help text displayed below the field
|
|
1714
|
+
*/
|
|
1715
|
+
"helpText"?: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* Renders only the calendar panel, without the input field
|
|
1718
|
+
* @default false
|
|
1719
|
+
*/
|
|
1720
|
+
"inline"?: boolean;
|
|
1721
|
+
/**
|
|
1722
|
+
* The calendar field label
|
|
1723
|
+
*/
|
|
1724
|
+
"label"?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Locale used to format month and weekday names
|
|
1727
|
+
* @default 'pt-BR'
|
|
1728
|
+
*/
|
|
1729
|
+
"locale"?: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* Latest selectable date in the `DD/MM/YYYY` format
|
|
1732
|
+
*/
|
|
1733
|
+
"maxDate"?: string;
|
|
1734
|
+
/**
|
|
1735
|
+
* Earliest selectable date in the `DD/MM/YYYY` format
|
|
1736
|
+
*/
|
|
1737
|
+
"minDate"?: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* Event emitted when the calendar panel is closed
|
|
1740
|
+
*/
|
|
1741
|
+
"onCalendarClosed"?: (event: SulaCalendarCustomEvent<void>) => void;
|
|
1742
|
+
/**
|
|
1743
|
+
* Event emitted when the calendar panel is opened
|
|
1744
|
+
*/
|
|
1745
|
+
"onCalendarOpened"?: (event: SulaCalendarCustomEvent<void>) => void;
|
|
1746
|
+
/**
|
|
1747
|
+
* Event emitted when a date is selected, with the date in the `DD/MM/YYYY` format
|
|
1748
|
+
*/
|
|
1749
|
+
"onDateSelected"?: (event: SulaCalendarCustomEvent<string>) => void;
|
|
1750
|
+
/**
|
|
1751
|
+
* Event emitted when the displayed month changes
|
|
1752
|
+
*/
|
|
1753
|
+
"onMonthChanged"?: (event: SulaCalendarCustomEvent<SulaCalendarMonthChange>) => void;
|
|
1754
|
+
/**
|
|
1755
|
+
* Event emitted in range mode when both the start and end dates are selected, either by picking or by typing. In range mode `valueChanged` is not emitted
|
|
1756
|
+
*/
|
|
1757
|
+
"onRangeSelected"?: (event: SulaCalendarCustomEvent<SulaCalendarRange>) => void;
|
|
1758
|
+
/**
|
|
1759
|
+
* Event emitted when the value changes, either by typing or by selecting a date. Not emitted in range mode, use `rangeSelected` instead
|
|
1760
|
+
*/
|
|
1761
|
+
"onValueChanged"?: (event: SulaCalendarCustomEvent<string>) => void;
|
|
1762
|
+
/**
|
|
1763
|
+
* The calendar field placeholder
|
|
1764
|
+
*/
|
|
1765
|
+
"placeholder"?: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* Enables selecting a date range (start and end dates) instead of a single date
|
|
1768
|
+
* @default false
|
|
1769
|
+
*/
|
|
1770
|
+
"range"?: boolean;
|
|
1771
|
+
/**
|
|
1772
|
+
* The calendar field status
|
|
1773
|
+
* @default SulaCalendarStatus.Default
|
|
1774
|
+
*/
|
|
1775
|
+
"status"?: SulaCalendarStatus;
|
|
1776
|
+
/**
|
|
1777
|
+
* Selected date in the `DD/MM/YYYY` format. In range mode the format is `DD/MM/YYYY - DD/MM/YYYY`
|
|
1778
|
+
* @default ''
|
|
1779
|
+
*/
|
|
1780
|
+
"value"?: string;
|
|
1781
|
+
}
|
|
1575
1782
|
interface SulaCheckbox {
|
|
1576
1783
|
/**
|
|
1577
1784
|
* Is checkbox checked
|
|
@@ -1625,6 +1832,11 @@ declare namespace LocalJSX {
|
|
|
1625
1832
|
* @default []
|
|
1626
1833
|
*/
|
|
1627
1834
|
"items"?: SulaMenuListItem[];
|
|
1835
|
+
/**
|
|
1836
|
+
* Where the items list opens relative to the chip
|
|
1837
|
+
* @default SulaChipItemsPlacement.Bottom
|
|
1838
|
+
*/
|
|
1839
|
+
"itemsPlacement"?: SulaChipItemsPlacement;
|
|
1628
1840
|
/**
|
|
1629
1841
|
* Event emitted when chip is clicked
|
|
1630
1842
|
*/
|
|
@@ -2271,6 +2483,11 @@ declare namespace LocalJSX {
|
|
|
2271
2483
|
* The textfield placeholder
|
|
2272
2484
|
*/
|
|
2273
2485
|
"placeholder"?: string;
|
|
2486
|
+
/**
|
|
2487
|
+
* The textfield is read only, blocking typing while keeping it focusable
|
|
2488
|
+
* @default false
|
|
2489
|
+
*/
|
|
2490
|
+
"readOnly"?: boolean;
|
|
2274
2491
|
/**
|
|
2275
2492
|
* The textfield status
|
|
2276
2493
|
* @default SulaTextfieldStatus.Default
|
|
@@ -2484,6 +2701,7 @@ declare namespace LocalJSX {
|
|
|
2484
2701
|
"sula-badge": SulaBadge;
|
|
2485
2702
|
"sula-breadcrumb": SulaBreadcrumb;
|
|
2486
2703
|
"sula-button": SulaButton;
|
|
2704
|
+
"sula-calendar": SulaCalendar;
|
|
2487
2705
|
"sula-checkbox": SulaCheckbox;
|
|
2488
2706
|
"sula-chip": SulaChip;
|
|
2489
2707
|
"sula-dropdown": SulaDropdown;
|
|
@@ -2523,6 +2741,7 @@ declare module "@stencil/core" {
|
|
|
2523
2741
|
"sula-badge": LocalJSX.SulaBadge & JSXBase.HTMLAttributes<HTMLSulaBadgeElement>;
|
|
2524
2742
|
"sula-breadcrumb": LocalJSX.SulaBreadcrumb & JSXBase.HTMLAttributes<HTMLSulaBreadcrumbElement>;
|
|
2525
2743
|
"sula-button": LocalJSX.SulaButton & JSXBase.HTMLAttributes<HTMLSulaButtonElement>;
|
|
2744
|
+
"sula-calendar": LocalJSX.SulaCalendar & JSXBase.HTMLAttributes<HTMLSulaCalendarElement>;
|
|
2526
2745
|
"sula-checkbox": LocalJSX.SulaCheckbox & JSXBase.HTMLAttributes<HTMLSulaCheckboxElement>;
|
|
2527
2746
|
"sula-chip": LocalJSX.SulaChip & JSXBase.HTMLAttributes<HTMLSulaChipElement>;
|
|
2528
2747
|
"sula-dropdown": LocalJSX.SulaDropdown & JSXBase.HTMLAttributes<HTMLSulaDropdownElement>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export type * from './components.d.ts';
|
|
11
11
|
export { SulaMenuDensity, SulaMenuLabelOverflow } from './components/sula-menu/model/sula-menu.model';
|
|
12
|
+
export { SulaCalendarStatus } from './components/sula-calendar/model/sula-calendar.model';
|
|
13
|
+
export type { SulaCalendarDay, SulaCalendarWeekday, SulaCalendarMonthChange, SulaCalendarRange } from './components/sula-calendar/model/sula-calendar.model';
|
|
12
14
|
export type { SulaToggleEvent } from './components/sula-toggle/model/sula-toggle.model';
|
|
13
15
|
export { SulaToastType } from './components/sula-toast/model/sula-toast.model';
|
|
14
16
|
export type { SulaToastItem, SulaToastAnnouncement, SulaToastDismissReason, SulaToastDismissEvent, SulaToastStackDismissEvent, SulaToastStackActionEvent, } from './components/sula-toast/model/sula-toast.model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SulaMenuDensity, a as SulaMenuLabelOverflow } from "./p-
|
|
1
|
+
export { b as SulaCalendarStatus, S as SulaMenuDensity, a as SulaMenuLabelOverflow } from "./p-BbsLJDfp.js";
|
|
2
2
|
|
|
3
3
|
export { S as SulaToastType } from "./p-t0X4JATS.js";
|
|
4
4
|
//# sourceMappingURL=index.esm.js.map
|