@sula-tech/webcomponents 0.20.1 → 0.21.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} +411 -81
- 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 +747 -0
- package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js +273 -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/sula-chip.js +3 -3
- 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.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-DmQoJS86.js → p-B_NGmHsm.js} +5 -5
- package/dist/components/{p-DmQoJS86.js.map → p-B_NGmHsm.js.map} +1 -1
- package/dist/components/{p-D0ZAC0yK.js → p-BjgwRn5o.js} +7 -7
- package/dist/components/{p-D0ZAC0yK.js.map → p-BjgwRn5o.js.map} +1 -1
- package/dist/components/{p-DGfvh6dZ.js → p-BlH9b-mx.js} +4 -4
- package/dist/components/{p-DGfvh6dZ.js.map → p-BlH9b-mx.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-DqRqPukj.js → p-DaG0HavP.js} +4 -4
- package/dist/components/{p-DqRqPukj.js.map → p-DaG0HavP.js.map} +1 -1
- package/dist/components/{p-b7t6bSNa.js → p-DtVQ10Ux.js} +4 -4
- package/dist/components/{p-b7t6bSNa.js.map → p-DtVQ10Ux.js.map} +1 -1
- package/dist/components/{p-CJ2i2jVV.js → p-VozP-C7p.js} +5 -5
- package/dist/components/{p-CJ2i2jVV.js.map → p-VozP-C7p.js.map} +1 -1
- package/dist/components/{p-DmCNhtp_.js → p-rCU8ay8s.js} +3 -3
- package/dist/components/{p-DmCNhtp_.js.map → p-rCU8ay8s.js.map} +1 -1
- package/dist/components/p-rm8YKiRh.js +555 -0
- package/dist/components/p-rm8YKiRh.js.map +1 -0
- 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 +385 -0
- package/dist/components/sula-calendar.js.map +1 -0
- package/dist/components/sula-checkbox.js +4 -4
- package/dist/components/sula-chip.js +5 -5
- 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} +405 -76
- 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 +128 -0
- package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +159 -0
- 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 +199 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-f4ef50ea.entry.js → p-0004eff8.entry.js} +790 -366
- package/dist/webcomponents/p-0004eff8.entry.js.map +1 -0
- package/dist/webcomponents/{p-170854a5.entry.js → p-9a8a1133.entry.js} +16 -16
- package/dist/webcomponents/{p-Cs9RR1ZV.js → p-BbsLJDfp.js} +11 -4
- package/dist/webcomponents/p-BbsLJDfp.js.map +1 -0
- package/dist/webcomponents/{p-c58125e1.entry.js → p-aafb83bd.entry.js} +6 -6
- package/dist/webcomponents/webcomponents.esm.js +46 -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-9a8a1133.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-c58125e1.entry.js.map → p-aafb83bd.entry.js.map} +0 -0
|
@@ -9,6 +9,7 @@ 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
14
|
import { SulaChipAppearance } from "./components/sula-chip/model/sula-chip.model";
|
|
14
15
|
import { SulaMenuListItem } from "./components/sula-menu-select-list/model/sula-menu-select-list.model";
|
|
@@ -34,6 +35,7 @@ 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
40
|
export { SulaChipAppearance } from "./components/sula-chip/model/sula-chip.model";
|
|
39
41
|
export { SulaMenuListItem } from "./components/sula-menu-select-list/model/sula-menu-select-list.model";
|
|
@@ -162,6 +164,73 @@ 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
|
+
* The calendar is disabled
|
|
180
|
+
* @default false
|
|
181
|
+
*/
|
|
182
|
+
"disabled": boolean;
|
|
183
|
+
/**
|
|
184
|
+
* First day of the week, where 0 is Sunday and 6 is Saturday
|
|
185
|
+
* @default 0
|
|
186
|
+
*/
|
|
187
|
+
"firstDayOfWeek": number;
|
|
188
|
+
/**
|
|
189
|
+
* The help text displayed below the field
|
|
190
|
+
*/
|
|
191
|
+
"helpText"?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Renders only the calendar panel, without the input field
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
"inline": boolean;
|
|
197
|
+
/**
|
|
198
|
+
* The calendar field label
|
|
199
|
+
*/
|
|
200
|
+
"label": string;
|
|
201
|
+
/**
|
|
202
|
+
* Locale used to format month and weekday names
|
|
203
|
+
* @default 'pt-BR'
|
|
204
|
+
*/
|
|
205
|
+
"locale": string;
|
|
206
|
+
/**
|
|
207
|
+
* Latest selectable date in the `DD/MM/YYYY` format
|
|
208
|
+
*/
|
|
209
|
+
"maxDate"?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Earliest selectable date in the `DD/MM/YYYY` format
|
|
212
|
+
*/
|
|
213
|
+
"minDate"?: string;
|
|
214
|
+
/**
|
|
215
|
+
* The calendar field placeholder
|
|
216
|
+
*/
|
|
217
|
+
"placeholder"?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Enables selecting a date range (start and end dates) instead of a single date
|
|
220
|
+
* @default false
|
|
221
|
+
*/
|
|
222
|
+
"range": boolean;
|
|
223
|
+
/**
|
|
224
|
+
* The calendar field status
|
|
225
|
+
* @default SulaCalendarStatus.Default
|
|
226
|
+
*/
|
|
227
|
+
"status": SulaCalendarStatus;
|
|
228
|
+
/**
|
|
229
|
+
* Selected date in the `DD/MM/YYYY` format. In range mode the format is `DD/MM/YYYY - DD/MM/YYYY`
|
|
230
|
+
* @default ''
|
|
231
|
+
*/
|
|
232
|
+
"value": string;
|
|
233
|
+
}
|
|
165
234
|
interface SulaCheckbox {
|
|
166
235
|
/**
|
|
167
236
|
* Is checkbox checked
|
|
@@ -701,6 +770,11 @@ export namespace Components {
|
|
|
701
770
|
* The textfield placeholder
|
|
702
771
|
*/
|
|
703
772
|
"placeholder": string;
|
|
773
|
+
/**
|
|
774
|
+
* The textfield is read only, blocking typing while keeping it focusable
|
|
775
|
+
* @default false
|
|
776
|
+
*/
|
|
777
|
+
"readOnly": boolean;
|
|
704
778
|
/**
|
|
705
779
|
* The textfield status
|
|
706
780
|
* @default SulaTextfieldStatus.Default
|
|
@@ -888,6 +962,10 @@ export interface SulaButtonCustomEvent<T> extends CustomEvent<T> {
|
|
|
888
962
|
detail: T;
|
|
889
963
|
target: HTMLSulaButtonElement;
|
|
890
964
|
}
|
|
965
|
+
export interface SulaCalendarCustomEvent<T> extends CustomEvent<T> {
|
|
966
|
+
detail: T;
|
|
967
|
+
target: HTMLSulaCalendarElement;
|
|
968
|
+
}
|
|
891
969
|
export interface SulaCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
892
970
|
detail: T;
|
|
893
971
|
target: HTMLSulaCheckboxElement;
|
|
@@ -1007,6 +1085,28 @@ declare global {
|
|
|
1007
1085
|
prototype: HTMLSulaButtonElement;
|
|
1008
1086
|
new (): HTMLSulaButtonElement;
|
|
1009
1087
|
};
|
|
1088
|
+
interface HTMLSulaCalendarElementEventMap {
|
|
1089
|
+
"dateSelected": string;
|
|
1090
|
+
"rangeSelected": SulaCalendarRange;
|
|
1091
|
+
"valueChanged": string;
|
|
1092
|
+
"monthChanged": SulaCalendarMonthChange;
|
|
1093
|
+
"calendarOpened": void;
|
|
1094
|
+
"calendarClosed": void;
|
|
1095
|
+
}
|
|
1096
|
+
interface HTMLSulaCalendarElement extends Components.SulaCalendar, HTMLStencilElement {
|
|
1097
|
+
addEventListener<K extends keyof HTMLSulaCalendarElementEventMap>(type: K, listener: (this: HTMLSulaCalendarElement, ev: SulaCalendarCustomEvent<HTMLSulaCalendarElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1098
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1099
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1100
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1101
|
+
removeEventListener<K extends keyof HTMLSulaCalendarElementEventMap>(type: K, listener: (this: HTMLSulaCalendarElement, ev: SulaCalendarCustomEvent<HTMLSulaCalendarElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1102
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1103
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1104
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1105
|
+
}
|
|
1106
|
+
var HTMLSulaCalendarElement: {
|
|
1107
|
+
prototype: HTMLSulaCalendarElement;
|
|
1108
|
+
new (): HTMLSulaCalendarElement;
|
|
1109
|
+
};
|
|
1010
1110
|
interface HTMLSulaCheckboxElementEventMap {
|
|
1011
1111
|
"valueChanged": boolean;
|
|
1012
1112
|
"focusedOn": void;
|
|
@@ -1425,6 +1525,7 @@ declare global {
|
|
|
1425
1525
|
"sula-badge": HTMLSulaBadgeElement;
|
|
1426
1526
|
"sula-breadcrumb": HTMLSulaBreadcrumbElement;
|
|
1427
1527
|
"sula-button": HTMLSulaButtonElement;
|
|
1528
|
+
"sula-calendar": HTMLSulaCalendarElement;
|
|
1428
1529
|
"sula-checkbox": HTMLSulaCheckboxElement;
|
|
1429
1530
|
"sula-chip": HTMLSulaChipElement;
|
|
1430
1531
|
"sula-dropdown": HTMLSulaDropdownElement;
|
|
@@ -1572,6 +1673,97 @@ declare namespace LocalJSX {
|
|
|
1572
1673
|
*/
|
|
1573
1674
|
"type"?: SulaButtonType;
|
|
1574
1675
|
}
|
|
1676
|
+
interface SulaCalendar {
|
|
1677
|
+
/**
|
|
1678
|
+
* Allows typing the date directly in the field. When false, the date can only be picked in the calendar
|
|
1679
|
+
* @default true
|
|
1680
|
+
*/
|
|
1681
|
+
"allowTyping"?: boolean;
|
|
1682
|
+
/**
|
|
1683
|
+
* Closes the calendar panel after a date is selected
|
|
1684
|
+
* @default true
|
|
1685
|
+
*/
|
|
1686
|
+
"closeOnSelect"?: boolean;
|
|
1687
|
+
/**
|
|
1688
|
+
* The calendar is disabled
|
|
1689
|
+
* @default false
|
|
1690
|
+
*/
|
|
1691
|
+
"disabled"?: boolean;
|
|
1692
|
+
/**
|
|
1693
|
+
* First day of the week, where 0 is Sunday and 6 is Saturday
|
|
1694
|
+
* @default 0
|
|
1695
|
+
*/
|
|
1696
|
+
"firstDayOfWeek"?: number;
|
|
1697
|
+
/**
|
|
1698
|
+
* The help text displayed below the field
|
|
1699
|
+
*/
|
|
1700
|
+
"helpText"?: string;
|
|
1701
|
+
/**
|
|
1702
|
+
* Renders only the calendar panel, without the input field
|
|
1703
|
+
* @default false
|
|
1704
|
+
*/
|
|
1705
|
+
"inline"?: boolean;
|
|
1706
|
+
/**
|
|
1707
|
+
* The calendar field label
|
|
1708
|
+
*/
|
|
1709
|
+
"label"?: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* Locale used to format month and weekday names
|
|
1712
|
+
* @default 'pt-BR'
|
|
1713
|
+
*/
|
|
1714
|
+
"locale"?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Latest selectable date in the `DD/MM/YYYY` format
|
|
1717
|
+
*/
|
|
1718
|
+
"maxDate"?: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* Earliest selectable date in the `DD/MM/YYYY` format
|
|
1721
|
+
*/
|
|
1722
|
+
"minDate"?: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* Event emitted when the calendar panel is closed
|
|
1725
|
+
*/
|
|
1726
|
+
"onCalendarClosed"?: (event: SulaCalendarCustomEvent<void>) => void;
|
|
1727
|
+
/**
|
|
1728
|
+
* Event emitted when the calendar panel is opened
|
|
1729
|
+
*/
|
|
1730
|
+
"onCalendarOpened"?: (event: SulaCalendarCustomEvent<void>) => void;
|
|
1731
|
+
/**
|
|
1732
|
+
* Event emitted when a date is selected, with the date in the `DD/MM/YYYY` format
|
|
1733
|
+
*/
|
|
1734
|
+
"onDateSelected"?: (event: SulaCalendarCustomEvent<string>) => void;
|
|
1735
|
+
/**
|
|
1736
|
+
* Event emitted when the displayed month changes
|
|
1737
|
+
*/
|
|
1738
|
+
"onMonthChanged"?: (event: SulaCalendarCustomEvent<SulaCalendarMonthChange>) => void;
|
|
1739
|
+
/**
|
|
1740
|
+
* 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
|
|
1741
|
+
*/
|
|
1742
|
+
"onRangeSelected"?: (event: SulaCalendarCustomEvent<SulaCalendarRange>) => void;
|
|
1743
|
+
/**
|
|
1744
|
+
* Event emitted when the value changes, either by typing or by selecting a date. Not emitted in range mode, use `rangeSelected` instead
|
|
1745
|
+
*/
|
|
1746
|
+
"onValueChanged"?: (event: SulaCalendarCustomEvent<string>) => void;
|
|
1747
|
+
/**
|
|
1748
|
+
* The calendar field placeholder
|
|
1749
|
+
*/
|
|
1750
|
+
"placeholder"?: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* Enables selecting a date range (start and end dates) instead of a single date
|
|
1753
|
+
* @default false
|
|
1754
|
+
*/
|
|
1755
|
+
"range"?: boolean;
|
|
1756
|
+
/**
|
|
1757
|
+
* The calendar field status
|
|
1758
|
+
* @default SulaCalendarStatus.Default
|
|
1759
|
+
*/
|
|
1760
|
+
"status"?: SulaCalendarStatus;
|
|
1761
|
+
/**
|
|
1762
|
+
* Selected date in the `DD/MM/YYYY` format. In range mode the format is `DD/MM/YYYY - DD/MM/YYYY`
|
|
1763
|
+
* @default ''
|
|
1764
|
+
*/
|
|
1765
|
+
"value"?: string;
|
|
1766
|
+
}
|
|
1575
1767
|
interface SulaCheckbox {
|
|
1576
1768
|
/**
|
|
1577
1769
|
* Is checkbox checked
|
|
@@ -2271,6 +2463,11 @@ declare namespace LocalJSX {
|
|
|
2271
2463
|
* The textfield placeholder
|
|
2272
2464
|
*/
|
|
2273
2465
|
"placeholder"?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* The textfield is read only, blocking typing while keeping it focusable
|
|
2468
|
+
* @default false
|
|
2469
|
+
*/
|
|
2470
|
+
"readOnly"?: boolean;
|
|
2274
2471
|
/**
|
|
2275
2472
|
* The textfield status
|
|
2276
2473
|
* @default SulaTextfieldStatus.Default
|
|
@@ -2484,6 +2681,7 @@ declare namespace LocalJSX {
|
|
|
2484
2681
|
"sula-badge": SulaBadge;
|
|
2485
2682
|
"sula-breadcrumb": SulaBreadcrumb;
|
|
2486
2683
|
"sula-button": SulaButton;
|
|
2684
|
+
"sula-calendar": SulaCalendar;
|
|
2487
2685
|
"sula-checkbox": SulaCheckbox;
|
|
2488
2686
|
"sula-chip": SulaChip;
|
|
2489
2687
|
"sula-dropdown": SulaDropdown;
|
|
@@ -2523,6 +2721,7 @@ declare module "@stencil/core" {
|
|
|
2523
2721
|
"sula-badge": LocalJSX.SulaBadge & JSXBase.HTMLAttributes<HTMLSulaBadgeElement>;
|
|
2524
2722
|
"sula-breadcrumb": LocalJSX.SulaBreadcrumb & JSXBase.HTMLAttributes<HTMLSulaBreadcrumbElement>;
|
|
2525
2723
|
"sula-button": LocalJSX.SulaButton & JSXBase.HTMLAttributes<HTMLSulaButtonElement>;
|
|
2724
|
+
"sula-calendar": LocalJSX.SulaCalendar & JSXBase.HTMLAttributes<HTMLSulaCalendarElement>;
|
|
2526
2725
|
"sula-checkbox": LocalJSX.SulaCheckbox & JSXBase.HTMLAttributes<HTMLSulaCheckboxElement>;
|
|
2527
2726
|
"sula-chip": LocalJSX.SulaChip & JSXBase.HTMLAttributes<HTMLSulaChipElement>;
|
|
2528
2727
|
"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
|