@sula-tech/webcomponents 0.22.0 → 0.23.1
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/loader.cjs.js +1 -1
- package/dist/cjs/sula-avatar_32.cjs.entry.js +124 -78
- package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
- 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/components/sula-calendar/sula-calendar.css +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.js +56 -17
- package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js +16 -1
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.css +1 -1
- package/dist/collection/components/sula-chip/sula-chip.js +30 -4
- package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.stories.js +55 -0
- 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 +2 -2
- 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/components/{p-MPkJUrNl.js → p-BORy1230.js} +3 -3
- package/dist/components/{p-MPkJUrNl.js.map → p-BORy1230.js.map} +1 -1
- package/dist/components/{p-DwyYG9oc.js → p-BhhQBGyJ.js} +5 -5
- package/dist/components/{p-DwyYG9oc.js.map → p-BhhQBGyJ.js.map} +1 -1
- package/dist/components/{p-D5G0T47I.js → p-DRskhGOW.js} +5 -5
- package/dist/components/{p-D5G0T47I.js.map → p-DRskhGOW.js.map} +1 -1
- package/dist/components/{p-jplrktAF.js → p-DjPqgTzy.js} +4 -4
- package/dist/components/{p-jplrktAF.js.map → p-DjPqgTzy.js.map} +1 -1
- package/dist/components/{p-t7f_qmad.js → p-Dl7qXhBf.js} +7 -7
- package/dist/components/{p-t7f_qmad.js.map → p-Dl7qXhBf.js.map} +1 -1
- package/dist/components/{p-DGAtNvje.js → p-DzGiAQVF.js} +6 -6
- package/dist/components/{p-DGAtNvje.js.map → p-DzGiAQVF.js.map} +1 -1
- package/dist/components/{p-CXm0qTFO.js → p-V9D4rqf7.js} +4 -4
- package/dist/components/{p-CXm0qTFO.js.map → p-V9D4rqf7.js.map} +1 -1
- package/dist/components/{p-fAOl4EhI.js → p-jsqtM3Ie.js} +5 -5
- package/dist/components/{p-fAOl4EhI.js.map → p-jsqtM3Ie.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.js +59 -20
- package/dist/components/sula-calendar.js.map +1 -1
- package/dist/components/sula-checkbox.js +1 -1
- package/dist/components/sula-chip.js +15 -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 -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/loader.js +1 -1
- package/dist/esm/sula-avatar_32.entry.js +124 -78
- package/dist/esm/sula-avatar_32.entry.js.map +1 -1
- 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/sula-calendar.d.ts +9 -3
- package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +1 -0
- package/dist/types/components/sula-chip/sula-chip.d.ts +5 -0
- package/dist/types/components/sula-chip/sula-chip.stories.d.ts +12 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/webcomponents/{p-df271629.entry.js → p-18c84807.entry.js} +6 -6
- package/dist/webcomponents/{p-22b10b91.entry.js → p-20b3135d.entry.js} +399 -315
- package/dist/webcomponents/p-20b3135d.entry.js.map +1 -0
- package/dist/webcomponents/{p-c552c435.entry.js → p-705e2424.entry.js} +16 -16
- package/dist/webcomponents/webcomponents.esm.js +4 -3
- package/package.json +1 -1
- package/dist/webcomponents/p-22b10b91.entry.js.map +0 -1
- /package/dist/webcomponents/{p-df271629.entry.js.map → p-18c84807.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-c552c435.entry.js.map → p-705e2424.entry.js.map} +0 -0
|
@@ -270,7 +270,7 @@ const SulaToastStack = class {
|
|
|
270
270
|
render() {
|
|
271
271
|
const expanded = this.expanded;
|
|
272
272
|
const visibleItems = this.visibleItems;
|
|
273
|
-
return (h(Host, { key: '
|
|
273
|
+
return (h(Host, { key: 'c02d5830981122b0267e560f911ee98cdd726bd7' }, h("section", { key: 'cbfa6dcdd964fc1d42546a43e5980dc49e84b30f', ref: el => (this.region = el), role: "region", "aria-label": "Notifica\u00E7\u00F5es", tabIndex: 0, class: "toast-region w-full rounded-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-feedback-informational focus-visible:outline-offset-2", onMouseEnter: () => {
|
|
274
274
|
if (!this.noHover)
|
|
275
275
|
this.hovering = true;
|
|
276
276
|
}, onMouseLeave: () => (this.hovering = false), onPointerDown: () => {
|
|
@@ -279,7 +279,7 @@ const SulaToastStack = class {
|
|
|
279
279
|
}, onKeyDown: () => {
|
|
280
280
|
this.keyboardInteraction = true;
|
|
281
281
|
this.stopRetainingPointerExpansion();
|
|
282
|
-
}, onFocusin: () => (this.focused = true), onFocusout: this.handleFocusOut }, h("div", { key: '
|
|
282
|
+
}, onFocusin: () => (this.focused = true), onFocusout: this.handleFocusOut }, h("div", { key: 'ee70118013b6e5e3313db30c27571bf3cc3009af', ref: el => (this.list = el), class: { 'toast-list relative flex flex-col gap-12': true, 'toast-list--collapsed': !expanded }, style: {
|
|
283
283
|
'--toast-layer-offset': `${Math.max(0, visibleItems.length - 1) * LAYER_OFFSET}px`,
|
|
284
284
|
} }, visibleItems.map((item, index) => {
|
|
285
285
|
var _a, _b, _c, _d;
|
|
@@ -293,9 +293,9 @@ const SulaToastStack = class {
|
|
|
293
293
|
'--toast-depth': String(depth),
|
|
294
294
|
'--toast-width': `${100 - Math.min(depth, MAX_VISIBLE_LAYERS - 1) * LAYER_WIDTH_STEP}%`,
|
|
295
295
|
} }, h("sula-toast", { toastTitle: item.title, message: (_a = item.message) !== null && _a !== void 0 ? _a : '', type: item.type, icon: item.icon, actionText: (_b = item.actionText) !== null && _b !== void 0 ? _b : '', closable: (_c = item.closable) !== null && _c !== void 0 ? _c : true, duration: item.duration, closeLabel: (_d = item.closeLabel) !== null && _d !== void 0 ? _d : 'Fechar notificação', paused: covered || this.hovering || this.focused || this.retainingPointerExpansion, announcement: "off", animated: depth === 0, onToastDismissRequested: event => this.dismiss(event, item.id), onToastAction: event => this.action(event, item.id) })));
|
|
296
|
-
}))), h("div", { key: '
|
|
296
|
+
}))), h("div", { key: '37091de2d263942ad15dbdc52cd229b98a8f7c1c', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
|
|
297
297
|
.filter(record => record.priority === 'polite')
|
|
298
|
-
.map(record => (h("p", { key: record.version }, record.text)))), h("div", { key: '
|
|
298
|
+
.map(record => (h("p", { key: record.version }, record.text)))), h("div", { key: 'a5bc35d0759a6a71cb9b7d9ad76cfd3ce9fee9b6', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
|
|
299
299
|
.filter(record => record.priority === 'assertive')
|
|
300
300
|
.map(record => (h("p", { key: record.version }, record.text))))));
|
|
301
301
|
}
|
|
@@ -170,10 +170,10 @@ const SulaToast = class {
|
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
172
|
const intent = this.intent;
|
|
173
|
-
return (h(Host, { key: '
|
|
173
|
+
return (h(Host, { key: '50370f6063bd87ddcbfefc45987c04eb602ab9ea', onMouseEnter: () => this.setHover(true), onMouseLeave: () => this.setHover(false), onFocusin: () => {
|
|
174
174
|
this.focused = true;
|
|
175
175
|
this.updateTimeout();
|
|
176
|
-
}, onFocusout: this.handleFocusOut }, h("div", { key: '
|
|
176
|
+
}, onFocusout: this.handleFocusOut }, h("div", { key: '4334d01b1188afc4663ebadc48a84dcb4d393c99', part: "container", class: `toast-surface relative isolate box-border flex items-center w-full p-16 gap-12 rounded-sm border bg-opacity-toast ${intent.border} ${this.animated ? 'toast-surface--animated' : ''}`, style: { '--toast-border-color': intent.borderColor } }, this.icon && (h("div", { key: 'b87bf80bd8932414ae5d709e2be0d5feaefd3a8e', part: "icon", "aria-hidden": "true", class: `flex shrink-0 items-center justify-center w-44 h-44 rounded-xxl ${intent.background}` }, h("sula-icon", { key: 'b6f18a65ceab18e373f1fda59142b0eab3c575cf', icon: this.icon, customClass: `text-2xl ${intent.color}`, class: "flex leading-none" }))), h("div", { key: 'bff56cc0964d97824221c48d91e876ac6110df47', part: "content", class: `flex min-w-0 flex-1 flex-col gap-8 ${this.closable ? 'pr-48' : ''}` }, h("div", { key: 'c6d1d46a7f255cfda53e4883c6164370bee8a534', class: "flex flex-col gap-4" }, this.toastTitle && (h("p", { key: '110d11cb987cca1f426adb43b411ad20ba95a21d', class: "toast-copy toast-title text-label-medium-bold text-text-primary", title: this.toastTitle }, this.toastTitle)), this.message && (h("p", { key: 'afd5df30339ed228d417cbee8b3795077d5c9b69', class: "toast-copy toast-message text-label-medium-regular text-text-secondary", title: this.message }, this.message))), this.actionText && (h("button", { key: '4a332f3df90a682960f7569e42d4be89d897b429', type: "button", class: `toast-copy toast-action self-start text-left text-label-medium-bold text-text-link underline rounded ${FOCUS_RING_CLASSES}`, title: this.actionText, onClick: () => this.toastAction.emit() }, this.actionText))), this.closable && (h("button", { key: '927e70871fc1c94404dddfb33095e7713870d18a', part: "close-button", type: "button", "aria-label": this.closeLabel, class: `absolute top-16 right-16 flex items-center justify-center w-24 h-24 rounded ${intent.color} ${FOCUS_RING_CLASSES}`, onClick: () => this.toastDismissRequested.emit({ reason: 'close' }) }, h("sula-icon", { key: '4e0a9b4ad00ab928eb470b09dec7dc0793706a81', "aria-hidden": "true", icon: "ph ph-x", customClass: "text-2xl", class: "flex leading-none" }))), h("svg", { key: '328c4ab25330dd17918b1cad64eb05ab1feb8546', class: "toast-border", "aria-hidden": "true", focusable: "false" }, h("rect", { key: '6896a2bb9f74b96faef4d0e12c01d537f61fc36c', class: "toast-border__path", pathLength: "1" }))), h("div", { key: '13b17899ac49ffae21d73155b691a13e3b5e2f5f', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.announcement === 'polite' ? this.announcedText : ''), h("div", { key: '589a7c8956b6952b55cc5383a74cf339db86ad19', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement === 'assertive' ? this.announcedText : '')));
|
|
177
177
|
}
|
|
178
178
|
get hostElement() { return getElement(this); }
|
|
179
179
|
static get watchers() { return {
|
|
@@ -16,7 +16,7 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["sula-avatar_32",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-calendar",{"label":[1],"value":[1025],"placeholder":[1],"disabled":[4],"helpText":[1,"help-text"],"status":[1],"locale":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"range":[4],"allowTyping":[4,"allow-typing"],"inline":[4],"compact":[4],"firstDayOfWeek":[2,"first-day-of-week"],"closeOnSelect":[4,"close-on-select"],"showCalendar":[32],"openUpward":[32],"viewMonth":[32],"viewYear":[32],"hoverDate":[32]},[[4,"click","handleDocumentClick"],[4,"keydown","handleDocumentKeydown"]],{"value":["handleValueChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"itemsPlacement":[1025,"items-placement"],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"appendToBody":[4,"append-to-body"],"isVisible":[32]},null,{"text":["handleTextChange"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"readOnly":[4,"read-only"],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]],["sula-toast",[[1,"sula-toast",{"toastTitle":[1,"toast-title"],"message":[1],"type":[1],"icon":[1],"actionText":[1,"action-text"],"closable":[4],"duration":[2],"paused":[4],"animated":[4],"announcement":[1],"closeLabel":[1,"close-label"],"announcedText":[32]},[[4,"visibilitychange","updateTimeout"]],{"toastTitle":["handleContentChange"],"message":["handleContentChange"],"actionText":["handleContentChange"],"duration":["handleContentChange"],"announcement":["updateAnnouncement"],"paused":["updateTimeout"]}]]],["sula-toast-stack",[[1,"sula-toast-stack",{"items":[16],"hovering":[32],"focused":[32],"noHover":[32],"retainingPointerExpansion":[32],"announcements":[32]},null,{"items":["handleItemsChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["sula-avatar_32",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-calendar",{"label":[1],"value":[1025],"placeholder":[1],"disabled":[4],"helpText":[1,"help-text"],"status":[1],"locale":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"range":[4],"allowTyping":[4,"allow-typing"],"inline":[4],"compact":[4],"firstDayOfWeek":[2,"first-day-of-week"],"closeOnSelect":[4,"close-on-select"],"showCalendar":[32],"openUpward":[32],"viewMonth":[32],"viewYear":[32],"hoverDate":[32]},[[4,"click","handleDocumentClick"],[4,"keydown","handleDocumentKeydown"]],{"value":["handleValueChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"icon":[1],"items":[1040],"itemsPlacement":[1025,"items-placement"],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"appendToBody":[4,"append-to-body"],"isVisible":[32]},null,{"text":["handleTextChange"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"readOnly":[4,"read-only"],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]],["sula-toast",[[1,"sula-toast",{"toastTitle":[1,"toast-title"],"message":[1],"type":[1],"icon":[1],"actionText":[1,"action-text"],"closable":[4],"duration":[2],"paused":[4],"animated":[4],"announcement":[1],"closeLabel":[1,"close-label"],"announcedText":[32]},[[4,"visibilitychange","updateTimeout"]],{"toastTitle":["handleContentChange"],"message":["handleContentChange"],"actionText":["handleContentChange"],"duration":["handleContentChange"],"announcement":["updateAnnouncement"],"paused":["updateTimeout"]}]]],["sula-toast-stack",[[1,"sula-toast-stack",{"items":[16],"hovering":[32],"focused":[32],"noHover":[32],"retainingPointerExpansion":[32],"announcements":[32]},null,{"items":["handleItemsChange"]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=webcomponents.js.map
|
|
22
22
|
|
|
@@ -108,9 +108,10 @@ export declare class SulaCalendar {
|
|
|
108
108
|
private isOutOfRange;
|
|
109
109
|
private get weekStart();
|
|
110
110
|
private createFormatter;
|
|
111
|
-
|
|
111
|
+
private get isDual();
|
|
112
|
+
getMonthLabel(offset?: number): string;
|
|
112
113
|
getWeekdays(): SulaCalendarWeekday[];
|
|
113
|
-
getWeeks(): SulaCalendarDay[][];
|
|
114
|
+
getWeeks(offset?: number): SulaCalendarDay[][];
|
|
114
115
|
calculatePanelPosition(): void;
|
|
115
116
|
open(): void;
|
|
116
117
|
close(): void;
|
|
@@ -119,6 +120,8 @@ export declare class SulaCalendar {
|
|
|
119
120
|
handleCompactClick: (event: MouseEvent) => void;
|
|
120
121
|
handleFieldKeydown: (event: KeyboardEvent) => void;
|
|
121
122
|
handleInputChanged: (event: CustomEvent<string>) => void;
|
|
123
|
+
private getRangeTexts;
|
|
124
|
+
handleRangeInputChanged: (part: "start" | "end", event: CustomEvent<string>) => void;
|
|
122
125
|
handlePreviousMonth: (event: MouseEvent) => void;
|
|
123
126
|
handleNextMonth: (event: MouseEvent) => void;
|
|
124
127
|
changeMonth(step: number): void;
|
|
@@ -126,8 +129,11 @@ export declare class SulaCalendar {
|
|
|
126
129
|
selectRangeDay(date: Date): void;
|
|
127
130
|
handleDayHover(day: SulaCalendarDay): void;
|
|
128
131
|
handleGridLeave: () => void;
|
|
132
|
+
private get isRangeInverted();
|
|
129
133
|
getTextfieldStatus(): SulaTextfieldStatus;
|
|
130
|
-
renderHeader(): any;
|
|
134
|
+
renderHeader(offset?: number, showPrevious?: boolean, showNext?: boolean): any;
|
|
135
|
+
renderMonth(offset: number, showPrevious: boolean, showNext: boolean): any;
|
|
136
|
+
renderRangeInputs(): any;
|
|
131
137
|
renderDay(day: SulaCalendarDay): any;
|
|
132
138
|
renderPanel(): any;
|
|
133
139
|
render(): any;
|
|
@@ -164,6 +164,7 @@ export declare const Range: any;
|
|
|
164
164
|
export declare const RangeInline: any;
|
|
165
165
|
export declare const Compact: any;
|
|
166
166
|
export declare const CompactSingleDate: any;
|
|
167
|
+
export declare const CompactWithoutTyping: any;
|
|
167
168
|
export declare const WithoutTyping: any;
|
|
168
169
|
export declare const WithError: any;
|
|
169
170
|
export declare const Disabled: any;
|
|
@@ -15,6 +15,10 @@ export declare class SulaChip {
|
|
|
15
15
|
* Chip is disabled
|
|
16
16
|
*/
|
|
17
17
|
disabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Icon class displayed before the text, e.g. `ph ph-download-simple`
|
|
20
|
+
*/
|
|
21
|
+
icon?: string;
|
|
18
22
|
/**
|
|
19
23
|
* Items for list
|
|
20
24
|
*/
|
|
@@ -44,5 +48,6 @@ export declare class SulaChip {
|
|
|
44
48
|
handleClick: () => void;
|
|
45
49
|
handleItemSelected: (item: SulaMenuSelectListCustomEvent<SulaMenuListItem>) => void;
|
|
46
50
|
getIconClass(): "text-text-primary" | "text-text-disabled" | "text-negative-negative-2";
|
|
51
|
+
getLeadingIconClass(): "text-text-primary" | "text-text-disabled" | "text-negative-negative-1" | "text-negative-negative-2";
|
|
47
52
|
render(): any;
|
|
48
53
|
}
|
|
@@ -38,6 +38,13 @@ declare const _default: {
|
|
|
38
38
|
required: boolean;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
icon: {
|
|
42
|
+
control: string;
|
|
43
|
+
description: string;
|
|
44
|
+
type: {
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
41
48
|
items: {
|
|
42
49
|
control: string;
|
|
43
50
|
defaultValue: any[];
|
|
@@ -82,3 +89,8 @@ export declare const SelectedChip: any;
|
|
|
82
89
|
export declare const ChipWithDropdown: any;
|
|
83
90
|
export declare const NegativeChipWithDropdown: any;
|
|
84
91
|
export declare const DisabledChipWithItems: any;
|
|
92
|
+
export declare const WithIcon: any;
|
|
93
|
+
export declare const WithIconAndDropdown: any;
|
|
94
|
+
export declare const SelectedWithIcon: any;
|
|
95
|
+
export declare const NegativeWithIcon: any;
|
|
96
|
+
export declare const DisabledWithIcon: any;
|
|
@@ -272,6 +272,10 @@ export namespace Components {
|
|
|
272
272
|
* @default false
|
|
273
273
|
*/
|
|
274
274
|
"disabled": boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Icon class displayed before the text, e.g. `ph ph-download-simple`
|
|
277
|
+
*/
|
|
278
|
+
"icon"?: string;
|
|
275
279
|
/**
|
|
276
280
|
* Items for list
|
|
277
281
|
* @default []
|
|
@@ -1827,6 +1831,10 @@ declare namespace LocalJSX {
|
|
|
1827
1831
|
* @default false
|
|
1828
1832
|
*/
|
|
1829
1833
|
"disabled"?: boolean;
|
|
1834
|
+
/**
|
|
1835
|
+
* Icon class displayed before the text, e.g. `ph ph-download-simple`
|
|
1836
|
+
*/
|
|
1837
|
+
"icon"?: string;
|
|
1830
1838
|
/**
|
|
1831
1839
|
* Items for list
|
|
1832
1840
|
* @default []
|
|
@@ -273,9 +273,9 @@ const h = class {
|
|
|
273
273
|
const t = this.expanded;
|
|
274
274
|
const o = this.visibleItems;
|
|
275
275
|
return e(a, {
|
|
276
|
-
key: "
|
|
276
|
+
key: "c02d5830981122b0267e560f911ee98cdd726bd7"
|
|
277
277
|
}, e("section", {
|
|
278
|
-
key: "
|
|
278
|
+
key: "cbfa6dcdd964fc1d42546a43e5980dc49e84b30f",
|
|
279
279
|
ref: t => this.region = t,
|
|
280
280
|
role: "region",
|
|
281
281
|
"aria-label": "Notificações",
|
|
@@ -296,7 +296,7 @@ const h = class {
|
|
|
296
296
|
onFocusin: () => this.focused = true,
|
|
297
297
|
onFocusout: this.handleFocusOut
|
|
298
298
|
}, e("div", {
|
|
299
|
-
key: "
|
|
299
|
+
key: "ee70118013b6e5e3313db30c27571bf3cc3009af",
|
|
300
300
|
ref: t => this.list = t,
|
|
301
301
|
class: {
|
|
302
302
|
"toast-list relative flex flex-col gap-12": true,
|
|
@@ -340,7 +340,7 @@ const h = class {
|
|
|
340
340
|
onToastAction: t => this.action(t, a.id)
|
|
341
341
|
}));
|
|
342
342
|
})))), e("div", {
|
|
343
|
-
key: "
|
|
343
|
+
key: "37091de2d263942ad15dbdc52cd229b98a8f7c1c",
|
|
344
344
|
class: "sr-only",
|
|
345
345
|
role: "status",
|
|
346
346
|
"aria-live": "polite",
|
|
@@ -349,7 +349,7 @@ const h = class {
|
|
|
349
349
|
}, this.announcements.filter((t => t.priority === "polite")).map((t => e("p", {
|
|
350
350
|
key: t.version
|
|
351
351
|
}, t.text)))), e("div", {
|
|
352
|
-
key: "
|
|
352
|
+
key: "a5bc35d0759a6a71cb9b7d9ad76cfd3ce9fee9b6",
|
|
353
353
|
class: "sr-only",
|
|
354
354
|
role: "alert",
|
|
355
355
|
"aria-live": "assertive",
|
|
@@ -373,4 +373,4 @@ h.style = n;
|
|
|
373
373
|
|
|
374
374
|
export { h as sula_toast_stack };
|
|
375
375
|
//# sourceMappingURL=sula-toast-stack.entry.esm.js.map
|
|
376
|
-
//# sourceMappingURL=p-
|
|
376
|
+
//# sourceMappingURL=p-18c84807.entry.js.map
|