@sula-tech/webcomponents 0.26.0 → 0.27.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/loader.cjs.js +1 -1
- package/dist/cjs/sula-avatar_32.cjs.entry.js +83 -67
- 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/sula-workbench-menu.cjs.entry.js +4 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/sula-chip/sula-chip.css +1 -1
- package/dist/collection/components/sula-chip/sula-chip.js +50 -10
- package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.stories.js +39 -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.css +1 -1
- 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.css +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.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/collection/components/sula-workbench-menu/sula-workbench-menu.js +4 -4
- package/dist/components/{p-Cwj-T_a3.js → p-BNxL-ZjI.js} +5 -5
- package/dist/components/{p-Cwj-T_a3.js.map → p-BNxL-ZjI.js.map} +1 -1
- package/dist/components/{p-BlRYoc3b.js → p-ByuiM_SX.js} +4 -4
- package/dist/components/{p-BlRYoc3b.js.map → p-ByuiM_SX.js.map} +1 -1
- package/dist/components/{p-CRJeD_Ch.js → p-CQQX0ZEo.js} +5 -5
- package/dist/components/{p-CRJeD_Ch.js.map → p-CQQX0ZEo.js.map} +1 -1
- package/dist/components/{p-KIC3LfH4.js → p-CTY6E4Qo.js} +7 -7
- package/dist/components/{p-KIC3LfH4.js.map → p-CTY6E4Qo.js.map} +1 -1
- package/dist/components/{p-0Fu7X8Ko.js → p-CiJSp-1r.js} +5 -5
- package/dist/components/{p-0Fu7X8Ko.js.map → p-CiJSp-1r.js.map} +1 -1
- package/dist/components/{p-Dj-BkOJM.js → p-DImZWpEm.js} +4 -4
- package/dist/components/{p-Dj-BkOJM.js.map → p-DImZWpEm.js.map} +1 -1
- package/dist/components/{p-6BsVErKp.js → p-DQYdk1Hu.js} +4 -4
- package/dist/components/{p-6BsVErKp.js.map → p-DQYdk1Hu.js.map} +1 -1
- package/dist/components/{p-DPBeKst1.js → p-DcFem7BV.js} +7 -7
- package/dist/components/{p-DPBeKst1.js.map → p-DcFem7BV.js.map} +1 -1
- package/dist/components/{p-CvCiJEK7.js → p-DotZeO3E.js} +4 -4
- package/dist/components/{p-CvCiJEK7.js.map → p-DotZeO3E.js.map} +1 -1
- package/dist/components/{p-C0jaJr-I.js → p-L_u-y6EK.js} +5 -5
- package/dist/components/{p-C0jaJr-I.js.map → p-L_u-y6EK.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 +2 -2
- package/dist/components/sula-checkbox.js +1 -1
- package/dist/components/sula-chip.js +40 -15
- 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-profile-menu.js +1 -1
- 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 +1 -1
- 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/components/sula-workbench-menu.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sula-avatar_32.entry.js +83 -67
- 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/sula-workbench-menu.entry.js +4 -4
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-chip/sula-chip.d.ts +5 -0
- package/dist/types/components/sula-chip/sula-chip.stories.d.ts +11 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/webcomponents/{p-18c84807.entry.js → p-4fa0213d.entry.js} +6 -6
- package/dist/webcomponents/{p-705e2424.entry.js → p-76884b75.entry.js} +16 -16
- package/dist/webcomponents/{p-235dcb90.entry.js → p-86448fcf.entry.js} +6 -6
- package/dist/webcomponents/{p-40f33932.entry.js → p-d8d9b8e6.entry.js} +168 -143
- package/dist/webcomponents/p-d8d9b8e6.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +21 -18
- package/package.json +1 -1
- package/dist/webcomponents/p-40f33932.entry.js.map +0 -1
- /package/dist/webcomponents/{p-18c84807.entry.js.map → p-4fa0213d.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-705e2424.entry.js.map → p-76884b75.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-235dcb90.entry.js.map → p-86448fcf.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: 'c910dcb00ae26a820f57aba0b4229c46a7780929' }, h("section", { key: '1080f87d27f25a2c7b14534c837ea9952860d8e9', 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: '7facdd6e569ea7e493eae900c2fd78f384ec0a50', 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: '66a51ac8e595e6ec658bc2e8a9eb60e78e543b58', 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: 'e6c9ed51d72fcc8804a272c31485b49dee57a26f', 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: '495a5bdd71e9ba52fb870d8f681ab476bead7df1', 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: 'e172289ed292879944f31dcabf2beefb4dad20e2', 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: 'b91f0034901539145f03c1781774ad40b510cd6a', 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: '02a17a9944c72d24ba1662179730226b9be0765b', icon: this.icon, customClass: `text-2xl ${intent.color}`, class: "flex leading-none" }))), h("div", { key: '994367c722d5fe27501b1a47f0ba7cefd4606a02', part: "content", class: `flex min-w-0 flex-1 flex-col gap-8 ${this.closable ? 'pr-48' : ''}` }, h("div", { key: 'f32ff5d0ecc87275bd2718a71c2a96f1fe0ac6b7', class: "flex flex-col gap-4" }, this.toastTitle && (h("p", { key: 'dc2f65ec3fcd086b02773418bf2924ea6f01e701', class: "toast-copy toast-title text-label-medium-bold text-text-primary", title: this.toastTitle }, this.toastTitle)), this.message && (h("p", { key: '104a85f067244457539909e8036796e3570cdfdf', class: "toast-copy toast-message text-label-medium-regular text-text-secondary", title: this.message }, this.message))), this.actionText && (h("button", { key: '639b1c14313399f0056e70fb879f72ae5014205b', 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: '2b63982164c3e35690dc921e7f0f0878cef818a5', 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: 'a7666e98a44dd1e4501f232b3bb3d70473722ae7', "aria-hidden": "true", icon: "ph ph-x", customClass: "text-2xl", class: "flex leading-none" }))), h("svg", { key: '22ad2843114e6aa52f476c41f81837b512ab034d', class: "toast-border", "aria-hidden": "true", focusable: "false" }, h("rect", { key: '3922928d198857759a5e8a9f6c4a6e87cd1212a7', class: "toast-border__path", pathLength: "1" }))), h("div", { key: '2d9c03bafa378912efbcfbf6d9b8584147698bcb', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.announcement === 'polite' ? this.announcedText : ''), h("div", { key: 'af1e0251f71990bde120281f167de0e24d498b65', 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 {
|
|
@@ -609,21 +609,21 @@ const SulaWorkbenchMenu = class {
|
|
|
609
609
|
const expandedView = !this.collapsed || this.previewExpanded;
|
|
610
610
|
const drilled = expandedView && this.isDrilled();
|
|
611
611
|
const activeParent = this.stack[this.stack.length - 1];
|
|
612
|
-
return (h(Host, { key: '
|
|
612
|
+
return (h(Host, { key: 'ab2f6194a30ca48695e5861b4fd34c1c8f926bec', class: {
|
|
613
613
|
'menu-host--collapsed': this.collapsed,
|
|
614
614
|
'menu-host--preview': this.collapsed && this.previewExpanded,
|
|
615
615
|
'menu-host--density-compact': this.density === SulaMenuDensity.Compact,
|
|
616
616
|
'menu-host--density-comfortable': this.density === SulaMenuDensity.Comfortable,
|
|
617
|
-
}, style: this.hostStyleVariables, onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave() }, h("aside", { key: '
|
|
617
|
+
}, style: this.hostStyleVariables, onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave() }, h("aside", { key: '8019d8e64ab613cd56a5f7a43c7524515738bd47', part: "shell", ref: el => (this.shellEl = el), class: {
|
|
618
618
|
'menu-shell flex h-full flex-col bg-surface-body shadow-md z-50': true,
|
|
619
619
|
'menu-shell--collapsed': this.collapsed && !this.previewExpanded,
|
|
620
620
|
'menu-shell--expanded': expandedView,
|
|
621
621
|
'menu-shell--preview': this.collapsed && this.previewExpanded,
|
|
622
622
|
'menu-shell--drilled': drilled,
|
|
623
|
-
} }, drilled && this.renderDrillLayers(), drilled ? this.renderDrillHeader(activeParent) : this.renderRootHeader(expandedView), h("nav", { key: '
|
|
623
|
+
} }, drilled && this.renderDrillLayers(), drilled ? this.renderDrillHeader(activeParent) : this.renderRootHeader(expandedView), h("nav", { key: 'c49e5bbbcad96f97a78c937cc9881c04bd1a614a', class: {
|
|
624
624
|
'menu-nav flex h-full flex-col overflow-y-auto overflow-x-hidden': true,
|
|
625
625
|
'px-12': !expandedView,
|
|
626
|
-
} }, drilled ? (this.renderDrillPanel()) : (h("ul", { class: "flex flex-col" }, this.renderInlineList(this.items, 1, expandedView)))), this.user && (h("div", { key: '
|
|
626
|
+
} }, drilled ? (this.renderDrillPanel()) : (h("ul", { class: "flex flex-col" }, this.renderInlineList(this.items, 1, expandedView)))), this.user && (h("div", { key: '9ac5a2f21cdacd18dc8f127905293b54bb3ef592', class: "menu-footer pt-12" }, this.renderUserInfo(expandedView)))), this.user && h("span", { key: '58b2452d40614cd366bcefb186fbafc7930a2ebe', class: "profile-origin", "aria-hidden": "true", ref: el => (this.profileOriginEl = el) }), this.user && this.renderProfilePopover(expandedView)));
|
|
627
627
|
}
|
|
628
628
|
get el() { return getElement(this); }
|
|
629
629
|
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"],"modalWidth":[1,"modal-width"],"slotMaxHeight":[1,"slot-max-height"],"slotAutoHeight":[4,"slot-auto-height"],"primaryButtonDisabled":[4,"primary-button-disabled"],"secondaryButtonDisabled":[4,"secondary-button-disabled"],"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-
|
|
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-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"icon":[1],"items":[1040],"itemsPlacement":[1025,"items-placement"],"selected":[1028],"loading":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]],{"loading":["handleLoadingChange"]}],[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"],"modalWidth":[1,"modal-width"],"slotMaxHeight":[1,"slot-max-height"],"slotAutoHeight":[4,"slot-auto-height"],"primaryButtonDisabled":[4,"primary-button-disabled"],"secondaryButtonDisabled":[4,"secondary-button-disabled"],"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-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]}],[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-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]],["sula-profile-menu",[[1,"sula-profile-menu",{"user":[16],"items":[1040]}]]],["sula-workbench-menu",[[1,"sula-workbench-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"drillPath":[16,"drill-path"],"items":[1040],"user":[16],"defaultIcon":[1,"default-icon"],"profileItems":[1040,"profile-items"],"collapsed":[32],"previewExpanded":[32],"drillMode":[32],"stack":[32],"direction":[32],"selectedPath":[32],"crumbMenu":[32],"profileOpen":[32]},[[4,"click","onDocumentClick"],[4,"keydown","onDocumentKeydown"],[9,"resize","onWindowResize"]],{"items":["syncWithItems"],"drillPath":["syncDrillPath"]}]]],["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
|
|
|
@@ -31,6 +31,10 @@ export declare class SulaChip {
|
|
|
31
31
|
* Chip is selected
|
|
32
32
|
*/
|
|
33
33
|
selected: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Chip is loading: keeps the content and shows a loader on the right
|
|
36
|
+
*/
|
|
37
|
+
loading: boolean;
|
|
34
38
|
/**
|
|
35
39
|
* Event emitted when chip is clicked
|
|
36
40
|
*/
|
|
@@ -42,6 +46,7 @@ export declare class SulaChip {
|
|
|
42
46
|
isFocused: boolean;
|
|
43
47
|
showItems: boolean;
|
|
44
48
|
node?: HTMLElement;
|
|
49
|
+
handleLoadingChange(isLoading: boolean): void;
|
|
45
50
|
handleDocumentClick(event: Event): void;
|
|
46
51
|
handleFocus: () => void;
|
|
47
52
|
handleBlur: () => void;
|
|
@@ -38,6 +38,14 @@ declare const _default: {
|
|
|
38
38
|
required: boolean;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
loading: {
|
|
42
|
+
control: string;
|
|
43
|
+
defaultValue: boolean;
|
|
44
|
+
description: string;
|
|
45
|
+
type: {
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
41
49
|
icon: {
|
|
42
50
|
control: string;
|
|
43
51
|
description: string;
|
|
@@ -94,3 +102,6 @@ export declare const WithIconAndDropdown: any;
|
|
|
94
102
|
export declare const SelectedWithIcon: any;
|
|
95
103
|
export declare const NegativeWithIcon: any;
|
|
96
104
|
export declare const DisabledWithIcon: any;
|
|
105
|
+
export declare const Loading: any;
|
|
106
|
+
export declare const LoadingWithIcon: any;
|
|
107
|
+
export declare const LoadingWithItems: any;
|
|
@@ -290,6 +290,11 @@ export namespace Components {
|
|
|
290
290
|
* @default SulaChipItemsPlacement.Bottom
|
|
291
291
|
*/
|
|
292
292
|
"itemsPlacement": SulaChipItemsPlacement;
|
|
293
|
+
/**
|
|
294
|
+
* Chip is loading: keeps the content and shows a loader on the right
|
|
295
|
+
* @default false
|
|
296
|
+
*/
|
|
297
|
+
"loading": boolean;
|
|
293
298
|
/**
|
|
294
299
|
* Chip is selected
|
|
295
300
|
* @default false
|
|
@@ -2010,6 +2015,11 @@ declare namespace LocalJSX {
|
|
|
2010
2015
|
* @default SulaChipItemsPlacement.Bottom
|
|
2011
2016
|
*/
|
|
2012
2017
|
"itemsPlacement"?: SulaChipItemsPlacement;
|
|
2018
|
+
/**
|
|
2019
|
+
* Chip is loading: keeps the content and shows a loader on the right
|
|
2020
|
+
* @default false
|
|
2021
|
+
*/
|
|
2022
|
+
"loading"?: boolean;
|
|
2013
2023
|
/**
|
|
2014
2024
|
* Event emitted when chip is clicked
|
|
2015
2025
|
*/
|
|
@@ -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: "c910dcb00ae26a820f57aba0b4229c46a7780929"
|
|
277
277
|
}, e("section", {
|
|
278
|
-
key: "
|
|
278
|
+
key: "1080f87d27f25a2c7b14534c837ea9952860d8e9",
|
|
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: "7facdd6e569ea7e493eae900c2fd78f384ec0a50",
|
|
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: "66a51ac8e595e6ec658bc2e8a9eb60e78e543b58",
|
|
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: "e6c9ed51d72fcc8804a272c31485b49dee57a26f",
|
|
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-4fa0213d.entry.js.map
|
|
@@ -164,7 +164,7 @@ const f = class {
|
|
|
164
164
|
render() {
|
|
165
165
|
const e = this.intent;
|
|
166
166
|
return t(r, {
|
|
167
|
-
key: "
|
|
167
|
+
key: "495a5bdd71e9ba52fb870d8f681ab476bead7df1",
|
|
168
168
|
onMouseEnter: () => this.setHover(true),
|
|
169
169
|
onMouseLeave: () => this.setHover(false),
|
|
170
170
|
onFocusin: () => {
|
|
@@ -173,45 +173,45 @@ const f = class {
|
|
|
173
173
|
},
|
|
174
174
|
onFocusout: this.handleFocusOut
|
|
175
175
|
}, t("div", {
|
|
176
|
-
key: "
|
|
176
|
+
key: "e172289ed292879944f31dcabf2beefb4dad20e2",
|
|
177
177
|
part: "container",
|
|
178
178
|
class: `toast-surface relative isolate box-border flex items-center w-full p-16 gap-12 rounded-sm border bg-opacity-toast ${e.border} ${this.animated ? "toast-surface--animated" : ""}`,
|
|
179
179
|
style: {
|
|
180
180
|
"--toast-border-color": e.borderColor
|
|
181
181
|
}
|
|
182
182
|
}, this.icon && t("div", {
|
|
183
|
-
key: "
|
|
183
|
+
key: "b91f0034901539145f03c1781774ad40b510cd6a",
|
|
184
184
|
part: "icon",
|
|
185
185
|
"aria-hidden": "true",
|
|
186
186
|
class: `flex shrink-0 items-center justify-center w-44 h-44 rounded-xxl ${e.background}`
|
|
187
187
|
}, t("sula-icon", {
|
|
188
|
-
key: "
|
|
188
|
+
key: "02a17a9944c72d24ba1662179730226b9be0765b",
|
|
189
189
|
icon: this.icon,
|
|
190
190
|
customClass: `text-2xl ${e.color}`,
|
|
191
191
|
class: "flex leading-none"
|
|
192
192
|
})), t("div", {
|
|
193
|
-
key: "
|
|
193
|
+
key: "994367c722d5fe27501b1a47f0ba7cefd4606a02",
|
|
194
194
|
part: "content",
|
|
195
195
|
class: `flex min-w-0 flex-1 flex-col gap-8 ${this.closable ? "pr-48" : ""}`
|
|
196
196
|
}, t("div", {
|
|
197
|
-
key: "
|
|
197
|
+
key: "f32ff5d0ecc87275bd2718a71c2a96f1fe0ac6b7",
|
|
198
198
|
class: "flex flex-col gap-4"
|
|
199
199
|
}, this.toastTitle && t("p", {
|
|
200
|
-
key: "
|
|
200
|
+
key: "dc2f65ec3fcd086b02773418bf2924ea6f01e701",
|
|
201
201
|
class: "toast-copy toast-title text-label-medium-bold text-text-primary",
|
|
202
202
|
title: this.toastTitle
|
|
203
203
|
}, this.toastTitle), this.message && t("p", {
|
|
204
|
-
key: "
|
|
204
|
+
key: "104a85f067244457539909e8036796e3570cdfdf",
|
|
205
205
|
class: "toast-copy toast-message text-label-medium-regular text-text-secondary",
|
|
206
206
|
title: this.message
|
|
207
207
|
}, this.message)), this.actionText && t("button", {
|
|
208
|
-
key: "
|
|
208
|
+
key: "639b1c14313399f0056e70fb879f72ae5014205b",
|
|
209
209
|
type: "button",
|
|
210
210
|
class: `toast-copy toast-action self-start text-left text-label-medium-bold text-text-link underline rounded ${c}`,
|
|
211
211
|
title: this.actionText,
|
|
212
212
|
onClick: () => this.toastAction.emit()
|
|
213
213
|
}, this.actionText)), this.closable && t("button", {
|
|
214
|
-
key: "
|
|
214
|
+
key: "2b63982164c3e35690dc921e7f0f0878cef818a5",
|
|
215
215
|
part: "close-button",
|
|
216
216
|
type: "button",
|
|
217
217
|
"aria-label": this.closeLabel,
|
|
@@ -220,28 +220,28 @@ const f = class {
|
|
|
220
220
|
reason: "close"
|
|
221
221
|
})
|
|
222
222
|
}, t("sula-icon", {
|
|
223
|
-
key: "
|
|
223
|
+
key: "a7666e98a44dd1e4501f232b3bb3d70473722ae7",
|
|
224
224
|
"aria-hidden": "true",
|
|
225
225
|
icon: "ph ph-x",
|
|
226
226
|
customClass: "text-2xl",
|
|
227
227
|
class: "flex leading-none"
|
|
228
228
|
})), t("svg", {
|
|
229
|
-
key: "
|
|
229
|
+
key: "22ad2843114e6aa52f476c41f81837b512ab034d",
|
|
230
230
|
class: "toast-border",
|
|
231
231
|
"aria-hidden": "true",
|
|
232
232
|
focusable: "false"
|
|
233
233
|
}, t("rect", {
|
|
234
|
-
key: "
|
|
234
|
+
key: "3922928d198857759a5e8a9f6c4a6e87cd1212a7",
|
|
235
235
|
class: "toast-border__path",
|
|
236
236
|
pathLength: "1"
|
|
237
237
|
}))), t("div", {
|
|
238
|
-
key: "
|
|
238
|
+
key: "2d9c03bafa378912efbcfbf6d9b8584147698bcb",
|
|
239
239
|
class: "sr-only",
|
|
240
240
|
role: "status",
|
|
241
241
|
"aria-live": "polite",
|
|
242
242
|
"aria-atomic": "true"
|
|
243
243
|
}, this.announcement === "polite" ? this.announcedText : ""), t("div", {
|
|
244
|
-
key: "
|
|
244
|
+
key: "af1e0251f71990bde120281f167de0e24d498b65",
|
|
245
245
|
class: "sr-only",
|
|
246
246
|
role: "alert",
|
|
247
247
|
"aria-live": "assertive",
|
|
@@ -267,4 +267,4 @@ f.style = l;
|
|
|
267
267
|
|
|
268
268
|
export { f as sula_toast };
|
|
269
269
|
//# sourceMappingURL=sula-toast.entry.esm.js.map
|
|
270
|
-
//# sourceMappingURL=p-
|
|
270
|
+
//# sourceMappingURL=p-76884b75.entry.js.map
|
|
@@ -823,7 +823,7 @@ const l = class {
|
|
|
823
823
|
const t = e && this.isDrilled();
|
|
824
824
|
const o = this.stack[this.stack.length - 1];
|
|
825
825
|
return i(r, {
|
|
826
|
-
key: "
|
|
826
|
+
key: "ab2f6194a30ca48695e5861b4fd34c1c8f926bec",
|
|
827
827
|
class: {
|
|
828
828
|
"menu-host--collapsed": this.collapsed,
|
|
829
829
|
"menu-host--preview": this.collapsed && this.previewExpanded,
|
|
@@ -834,7 +834,7 @@ const l = class {
|
|
|
834
834
|
onMouseEnter: () => this.handleMenuMouseEnter(),
|
|
835
835
|
onMouseLeave: () => this.handleMenuMouseLeave()
|
|
836
836
|
}, i("aside", {
|
|
837
|
-
key: "
|
|
837
|
+
key: "8019d8e64ab613cd56a5f7a43c7524515738bd47",
|
|
838
838
|
part: "shell",
|
|
839
839
|
ref: e => this.shellEl = e,
|
|
840
840
|
class: {
|
|
@@ -845,7 +845,7 @@ const l = class {
|
|
|
845
845
|
"menu-shell--drilled": t
|
|
846
846
|
}
|
|
847
847
|
}, t && this.renderDrillLayers(), t ? this.renderDrillHeader(o) : this.renderRootHeader(e), i("nav", {
|
|
848
|
-
key: "
|
|
848
|
+
key: "c49e5bbbcad96f97a78c937cc9881c04bd1a614a",
|
|
849
849
|
class: {
|
|
850
850
|
"menu-nav flex h-full flex-col overflow-y-auto overflow-x-hidden": true,
|
|
851
851
|
"px-12": !e
|
|
@@ -853,10 +853,10 @@ const l = class {
|
|
|
853
853
|
}, t ? this.renderDrillPanel() : i("ul", {
|
|
854
854
|
class: "flex flex-col"
|
|
855
855
|
}, this.renderInlineList(this.items, 1, e))), this.user && i("div", {
|
|
856
|
-
key: "
|
|
856
|
+
key: "9ac5a2f21cdacd18dc8f127905293b54bb3ef592",
|
|
857
857
|
class: "menu-footer pt-12"
|
|
858
858
|
}, this.renderUserInfo(e))), this.user && i("span", {
|
|
859
|
-
key: "
|
|
859
|
+
key: "58b2452d40614cd366bcefb186fbafc7930a2ebe",
|
|
860
860
|
class: "profile-origin",
|
|
861
861
|
"aria-hidden": "true",
|
|
862
862
|
ref: e => this.profileOriginEl = e
|
|
@@ -877,4 +877,4 @@ l.style = s;
|
|
|
877
877
|
|
|
878
878
|
export { l as sula_workbench_menu };
|
|
879
879
|
//# sourceMappingURL=sula-workbench-menu.entry.esm.js.map
|
|
880
|
-
//# sourceMappingURL=p-
|
|
880
|
+
//# sourceMappingURL=p-86448fcf.entry.js.map
|