@sula-tech/webcomponents 0.25.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-profile-menu.cjs.entry.js +1 -1
- package/dist/cjs/sula-profile-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/sula-profile-menu.entry.cjs.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 +98 -59
- package/dist/cjs/sula-workbench-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/sula-workbench-menu.entry.cjs.js.map +1 -1
- 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-profile-menu/sula-profile-menu.css +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.css +1 -1
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js +104 -84
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js.map +1 -1
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js +182 -103
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js.map +1 -1
- package/dist/components/{p-Ckrg2kct.js → p-BNxL-ZjI.js} +5 -5
- package/dist/components/{p-Ckrg2kct.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-DOhCUb27.js → p-CQQX0ZEo.js} +5 -5
- package/dist/components/{p-DOhCUb27.js.map → p-CQQX0ZEo.js.map} +1 -1
- package/dist/components/{p-DEhN6ZhJ.js → p-CTY6E4Qo.js} +7 -7
- package/dist/components/{p-DEhN6ZhJ.js.map → p-CTY6E4Qo.js.map} +1 -1
- package/dist/components/{p-CkBDMANF.js → p-CiJSp-1r.js} +5 -5
- package/dist/components/{p-CkBDMANF.js.map → p-CiJSp-1r.js.map} +1 -1
- package/dist/components/{p-ej3XWtzq.js → p-DImZWpEm.js} +4 -4
- package/dist/components/{p-ej3XWtzq.js.map → p-DImZWpEm.js.map} +1 -1
- package/dist/components/{p-CNJmyTBM.js → p-DQYdk1Hu.js} +4 -4
- package/dist/components/{p-CNJmyTBM.js.map → p-DQYdk1Hu.js.map} +1 -1
- package/dist/components/{p-Chv1iPo7.js → p-DcFem7BV.js} +7 -7
- package/dist/components/{p-Chv1iPo7.js.map → p-DcFem7BV.js.map} +1 -1
- package/dist/components/{p-BSlKsiiN.js → p-DotZeO3E.js} +5 -5
- package/dist/components/{p-BSlKsiiN.js.map → p-DotZeO3E.js.map} +1 -1
- package/dist/components/{p-CqrWuXvX.js → p-L_u-y6EK.js} +5 -5
- package/dist/components/{p-CqrWuXvX.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 +102 -63
- package/dist/components/sula-workbench-menu.js.map +1 -1
- 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-profile-menu.entry.js +1 -1
- package/dist/esm/sula-profile-menu.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 +98 -59
- package/dist/esm/sula-workbench-menu.entry.js.map +1 -1
- 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/sula-workbench-menu/sula-workbench-menu.d.ts +15 -13
- package/dist/types/components/sula-workbench-menu/sula-workbench-menu.stories.d.ts +14 -30
- package/dist/types/components.d.ts +29 -29
- 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-88e5171a.entry.js → p-7e31b463.entry.js} +2 -2
- package/dist/webcomponents/p-86448fcf.entry.js +880 -0
- package/dist/webcomponents/p-86448fcf.entry.js.map +1 -0
- package/dist/webcomponents/{p-28e25fac.entry.js → p-d8d9b8e6.entry.js} +168 -143
- package/dist/webcomponents/p-d8d9b8e6.entry.js.map +1 -0
- package/dist/webcomponents/sula-profile-menu.entry.esm.js.map +1 -1
- package/dist/webcomponents/sula-workbench-menu.entry.esm.js.map +1 -1
- package/dist/webcomponents/webcomponents.esm.js +23 -20
- package/package.json +1 -1
- package/dist/webcomponents/p-28e25fac.entry.js.map +0 -1
- package/dist/webcomponents/p-50ad82d0.entry.js +0 -827
- package/dist/webcomponents/p-50ad82d0.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-88e5171a.entry.js.map → p-7e31b463.entry.js.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-BjAGuSPl.js');
|
|
4
4
|
var sulaMenu_model = require('./sula-menu.model-BDxbWyPG.js');
|
|
5
5
|
|
|
6
|
-
const sulaWorkbenchMenuCss = "*,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.outline{outline-style:solid}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{--sula-menu-width:280px;--sula-menu-collapsed-width:88px;--sula-menu-main-item-font-size:1rem;--sula-menu-main-item-line-height:1.25rem;--sula-menu-sub-item-font-size:0.9375rem;--sula-menu-main-item-max-lines:2;--sula-menu-main-item-padding-block:0.5rem;display:block;height:100%;overflow:visible;position:relative;transition:width .36s cubic-bezier(.22,1,.36,1);width:var(--sula-menu-width)}:host(.menu-host--density-compact){--sula-menu-main-item-font-size:0.875rem;--sula-menu-main-item-line-height:1.125rem;--sula-menu-sub-item-font-size:0.8125rem;--sula-menu-main-item-padding-block:0.375rem}:host(.menu-host--density-comfortable){--sula-menu-main-item-font-size:1.0625rem;--sula-menu-main-item-line-height:1.5rem;--sula-menu-sub-item-font-size:1rem;--sula-menu-main-item-padding-block:0.625rem}:host(.menu-host--collapsed){width:var(--sula-menu-collapsed-width)}.menu-shell{min-height:100%;overflow:hidden;padding:20px 0 12px;position:relative;transition:padding .36s cubic-bezier(.22,1,.36,1),width .36s cubic-bezier(.22,1,.36,1),transform .36s cubic-bezier(.22,1,.36,1),box-shadow .36s cubic-bezier(.22,1,.36,1),border-radius .28s cubic-bezier(.4,0,.2,1),background-color .22s cubic-bezier(.4,0,.2,1);width:100%}.menu-shell--expanded{box-shadow:0 10px 24px rgba(15,23,42,.08),0 2px 8px rgba(15,23,42,.06);padding:20px 20px 12px;width:var(--sula-menu-width)}.menu-shell--collapsed{box-shadow:0 8px 18px rgba(15,23,42,.06),0 1px 4px rgba(15,23,42,.04)}.menu-shell--preview{border-radius:0 24px 24px 0;bottom:0;box-shadow:0 28px 60px rgba(15,23,42,.18),0 10px 24px rgba(15,23,42,.12);left:0;position:absolute;top:0;width:var(--sula-menu-width);z-index:2}.menu-header{gap:0;transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-group+.menu-group{margin-top:8px}.submenu>li.is-selected{position:relative}.submenu>li.is-selected:before{background:var(--color-brand-primary,#f05223);border-radius:2px;bottom:6px;content:\"\";left:-9.5px;position:absolute;top:6px;width:2px}.menu-toggle{background:var(--color-surface-body,#fff);border:1px solid var(--color-line-general,#e5e6e6);border-radius:999px;color:var(--color-icon-primary,#6c6e6e);cursor:pointer;height:32px;margin-left:auto;padding:0;transition:color .16s cubic-bezier(.4,0,.2,1),border-color .16s cubic-bezier(.4,0,.2,1),background-color .16s cubic-bezier(.4,0,.2,1);width:32px}.menu-toggle:hover{border-color:var(--color-brand-primary,#f05223);color:var(--color-brand-primary,#f05223)}.menu-toggle:focus-visible{outline:2px solid var(--color-states-bg-focus,#1355b4);outline-offset:2px}.menu-shell--collapsed .menu-toggle{margin:16px 0 0}.menu-shell--collapsed .menu-item{margin-inline:0;padding-block:10px}.menu-shell--collapsed .item-icon{height:20px;width:20px}.menu-shell--collapsed .item-icon i{font-size:20px}.menu-shell--expanded .user-info{margin-inline:0}.menu-shell--collapsed .menu-footer{padding-inline:18px}.menu-shell--collapsed .menu-nav{scrollbar-width:none}.menu-shell--collapsed .menu-nav::-webkit-scrollbar{display:none}.menu-copy--hidden.menu-item-label--wrap{white-space:nowrap}.menu-nav{padding-bottom:16px;scrollbar-color:var(--color-line-general-strong,#bfc0c0) transparent;scrollbar-width:thin;transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-shell--expanded .menu-nav{margin-inline:-20px;padding-left:20px;padding-right:14px;scrollbar-gutter:stable}.menu-nav::-webkit-scrollbar{width:6px}.menu-nav::-webkit-scrollbar-track{background:transparent}.menu-nav::-webkit-scrollbar-thumb{background:var(--color-line-general-strong,#bfc0c0);border-radius:999px}.menu-nav::-webkit-scrollbar-thumb:hover{background:var(--color-text-disabled,#949595)}.item-icon{height:16px;width:16px}.menu-nav .menu-item,.menu-nav .menu-item>div,.menu-nav .submenu-item,.menu-nav .submenu-item-branch-caret,.menu-nav .submenu-item-branch-content{align-items:flex-start}.submenu-item .submenu-item-label{font-size:var(--sula-menu-sub-item-font-size);line-height:1.25rem}.menu-nav .item-icon,.menu-nav .menu-item-caret,.menu-nav .submenu-item-branch-caret{height:1.25rem}.menu-shell--expanded .menu-item .item-icon{width:18px}.menu-shell--expanded .menu-item .item-icon i{font-size:18px}.menu-footer{transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-brand-image{flex:0 0 auto;transition:margin .32s cubic-bezier(.22,1,.36,1),transform .32s cubic-bezier(.22,1,.36,1)}.menu-copy{display:block;max-width:220px;min-width:0;opacity:1;overflow:hidden;transform:translateX(0);transform-origin:left center;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1),transform .32s cubic-bezier(.22,1,.36,1);white-space:nowrap}.menu-copy--visible{max-width:100%;opacity:1;pointer-events:auto;transform:translateX(0)}.menu-copy--hidden{max-width:0;opacity:0;pointer-events:none;transform:translateX(-10px)}.menu-title{flex:1 1 auto;min-width:0}.menu-title.menu-copy--visible{max-width:100%}.menu-item-label{flex:1 1 auto;font-size:var(--sula-menu-main-item-font-size);line-height:var(--sula-menu-main-item-line-height)}.menu-item-label--truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-label--wrap{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sula-menu-main-item-max-lines);line-clamp:var(--sula-menu-main-item-max-lines);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;word-break:break-word}.menu-item{margin-inline:-8px;padding-block:var(--sula-menu-main-item-padding-block);transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),border-color .24s cubic-bezier(.22,1,.36,1),margin-left .24s cubic-bezier(.22,1,.36,1),padding .32s cubic-bezier(.22,1,.36,1)}.menu-item-caret{max-width:16px;opacity:1;overflow:hidden;transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .18s cubic-bezier(.4,0,.2,1),max-width .28s cubic-bezier(.22,1,.36,1),margin-left .28s cubic-bezier(.22,1,.36,1)}.menu-item-caret--visible{margin-left:12px;max-width:16px;opacity:1}.menu-item-caret--hidden{margin-left:0;max-width:0;opacity:0;transform:translateX(-8px)}.menu-item-caret--expanded{transform:rotate(180deg)}.submenu{max-height:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateY(-6px);transform-origin:top left;transition:max-height .26s cubic-bezier(.22,1,.36,1),opacity .12s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.22,1,.36,1);will-change:max-height,opacity,transform}.submenu--expanded{max-height:999px;opacity:1;pointer-events:auto;transform:translateY(0)}.submenu-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-item--branch{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),border-color .24s cubic-bezier(.22,1,.36,1),margin-left .24s cubic-bezier(.22,1,.36,1)}.submenu-item-branch-content{min-width:0}.submenu-branch{transform-origin:top left}.submenu-grandchild-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-grandchild-label{display:block}.menu-header--drilldown{animation:drill-header-in .22s cubic-bezier(.4,0,.2,1)}.identity-strip{align-items:center;background:transparent;border:none;border-radius:8px;color:inherit;cursor:pointer;display:flex;flex:1 1 auto;font:inherit;margin:0 0 0 -8px;min-width:0;padding:6px 8px;text-align:left;transition:background-color .16s cubic-bezier(.4,0,.2,1)}.identity-row{margin-bottom:12px}.identity-strip:hover{background:var(--color-surface-on-body,#f3f4f4)}.identity-image{border-radius:5px;flex:none;height:20px;margin-right:8px;overflow:hidden;width:20px}.identity-image img{display:block;height:100%;width:100%}.identity-label{color:var(--color-text-secondary,#6c6e6e);font-size:13px;font-weight:500;min-width:0}.breadcrumb-row{margin-bottom:10px;min-width:0;position:relative}.back-btn,.breadcrumb-row{align-items:center;display:flex}.back-btn{background:transparent;border:none;border-radius:8px;cursor:pointer;flex:none;height:28px;justify-content:center;margin:0 2px 0 -6px;padding:0;transition:background-color .16s cubic-bezier(.4,0,.2,1);width:28px}.back-btn:hover{background:var(--color-surface-on-body,#f3f4f4)}.crumb-trail{flex:1 1 auto;gap:2px;min-width:0}.crumb-btn{background:transparent;border:none;border-radius:6px;color:var(--color-text-secondary,#6c6e6e);cursor:pointer;flex:0 1 auto;font:inherit;font-size:12px;font-weight:500;max-width:120px;min-width:28px;overflow:hidden;padding:3px 4px;text-align:left;text-overflow:ellipsis;transition:background-color .16s cubic-bezier(.4,0,.2,1),color .16s cubic-bezier(.4,0,.2,1);white-space:nowrap}.crumb-btn:hover{background:var(--color-surface-on-body,#f3f4f4);color:var(--color-text-primary,#313333)}.crumb-btn--ellipsis{align-items:center;display:flex;flex:none;max-width:none;padding:3px 5px}.crumb-sep{color:var(--color-text-disabled,#949595);flex:none}.crumb-dropdown{background:var(--color-surface-body,#fff);border:1px solid var(--color-line-general,#e5e6e6);border-radius:10px;box-shadow:0 14px 32px rgba(15,23,42,.16);display:flex;flex-direction:column;gap:1px;max-width:230px;min-width:172px;padding:6px;position:absolute;z-index:30}.crumb-dropdown-item{align-items:center;background:transparent;border:none;border-radius:6px;color:var(--color-text-primary,#313333);cursor:pointer;display:flex;font:inherit;font-size:13px;gap:8px;overflow:hidden;padding:7px 8px;text-align:left;white-space:nowrap}.crumb-dropdown-item:hover{background:var(--color-surface-on-body,#f3f4f4)}.context-row{min-width:0}.context-icon{height:20px;margin-right:8px;width:20px}.context-title{min-width:0}.menu-panel--forward{animation:drill-slide-forward .26s cubic-bezier(.22,1,.36,1)}.menu-panel--back{animation:drill-slide-back .26s cubic-bezier(.22,1,.36,1)}@keyframes drill-header-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes drill-slide-forward{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes drill-slide-back{0%{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}sula-icon{align-items:center;display:inline-flex;flex:none;justify-content:center;line-height:1}sula-icon>i{display:block;line-height:1}.item-icon>.menu-item-image,.item-icon>sula-icon{flex:none}.menu-item-image{display:block;flex:none;-o-object-fit:contain;object-fit:contain;transition:opacity .2s cubic-bezier(.4,0,.2,1)}.menu-item-image--sm{height:.875rem;width:.875rem}.menu-item-image--md{height:1rem;width:1rem}.menu-item-image--lg{height:1.25rem;width:1.25rem}.menu-item-image.is-faded{opacity:.5}.item-icon>.menu-item-image{aspect-ratio:1/1;height:auto;width:100%}.menu-item-image--mask{background-color:currentColor;-webkit-mask:var(--menu-item-image) center/contain no-repeat;mask:var(--menu-item-image) center/contain no-repeat}.user-copy{display:flex;flex-direction:column;min-width:0;overflow:hidden;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1)}.user-copy--visible{max-width:100%;opacity:1;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1) .12s}.user-copy--hidden{max-width:0;opacity:0}.user-avatar img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.profile-popover{background:var(--color-surface-body);border:1px solid var(--color-line-general);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.12),0 2px 8px rgba(15,23,42,.06);box-sizing:border-box;opacity:0;outline:none;position:fixed;transform:translateY(6px) scale(.98);transform-origin:bottom left;transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.22,1,.36,1),visibility 0s linear .2s;visibility:hidden;width:256px;z-index:60}.profile-popover--side{transform:translateX(-6px) scale(.98)}.profile-popover--open{opacity:1;transform:none;transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.22,1,.36,1);visibility:visible}@media (prefers-reduced-motion:reduce){.menu-brand-image,.menu-copy,.menu-footer,.menu-header,.menu-header--drilldown,.menu-item,.menu-item-caret,.menu-nav,.menu-panel--back,.menu-panel--forward,.menu-shell,.menu-toggle,.submenu,.submenu-item,:host{animation:none}.menu-item-caret,.profile-popover,.submenu-grandchild-item,.submenu-item{transition:none}}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format(\"truetype\")}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.static{position:static}.z-50{z-index:50}.mb-16{margin-bottom:1rem}.mb-24{margin-bottom:1.5rem}.mb-40{margin-bottom:2.5rem}.ml-8{margin-left:.5rem}.ml-\\[24px\\]{margin-left:24px}.ml-\\[8px\\]{margin-left:8px}.mr-6{margin-right:1.5rem}.mt-8{margin-top:.5rem}.inline{display:inline}.h-9{height:2.25rem}.h-full{height:100%}.max-h-10{max-height:2.5rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-10{max-width:2.5rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.resize{resize:both}.list-none{list-style-type:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-8{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-xs{border-radius:.5rem}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-line-general{border-color:var(--color-line-general)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-states-empty-bg-hover{background-color:var(--color-states-empty-bg-hover)}.bg-surface-body{background-color:var(--color-surface-body)}.p-8{padding:.5rem}.px-0{padding-left:0;padding-right:0}.px-12{padding-left:.75rem;padding-right:.75rem}.px-8{padding-left:.5rem;padding-right:.5rem}.py-8{padding-bottom:.5rem;padding-top:.5rem}.pb-24{padding-bottom:1.5rem}.pl-8{padding-left:.5rem}.pr-8{padding-right:.5rem}.pt-12{padding-top:.75rem}.text-left{text-align:left}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.leading-tight{line-height:1.25}.text-brand-primary{color:var(--color-brand-primary)}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}";
|
|
6
|
+
const sulaWorkbenchMenuCss = "*,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.outline{outline-style:solid}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{--sula-menu-width:300px;--sula-menu-collapsed-width:88px;--sula-menu-main-item-font-size:1rem;--sula-menu-main-item-line-height:1.25rem;--sula-menu-sub-item-font-size:0.875rem;--sula-menu-main-item-max-lines:2;--sula-menu-main-item-padding-block:0.5rem;display:block;height:100%;overflow:visible;position:relative;transition:width .36s cubic-bezier(.22,1,.36,1);width:var(--sula-menu-width)}:host(.menu-host--density-compact){--sula-menu-main-item-font-size:0.875rem;--sula-menu-main-item-line-height:1.125rem;--sula-menu-sub-item-font-size:0.8125rem;--sula-menu-main-item-padding-block:0.375rem}:host(.menu-host--density-comfortable){--sula-menu-main-item-font-size:1.0625rem;--sula-menu-main-item-line-height:1.5rem;--sula-menu-sub-item-font-size:1rem;--sula-menu-main-item-padding-block:0.625rem}:host(.menu-host--collapsed){width:var(--sula-menu-collapsed-width)}.menu-shell{min-height:100%;overflow:hidden;padding:20px 0 12px;position:relative;transition:padding .36s cubic-bezier(.22,1,.36,1),width .36s cubic-bezier(.22,1,.36,1),transform .36s cubic-bezier(.22,1,.36,1),box-shadow .36s cubic-bezier(.22,1,.36,1),border-radius .28s cubic-bezier(.4,0,.2,1),background-color .22s cubic-bezier(.4,0,.2,1);width:100%}.menu-shell--expanded{box-shadow:0 10px 24px rgba(15,23,42,.08),0 2px 8px rgba(15,23,42,.06);padding:20px 24px 12px;width:var(--sula-menu-width)}.menu-shell--collapsed{box-shadow:0 8px 18px rgba(15,23,42,.06),0 1px 4px rgba(15,23,42,.04)}.menu-shell--preview{border-radius:0 24px 24px 0;bottom:0;box-shadow:0 28px 60px rgba(15,23,42,.18),0 10px 24px rgba(15,23,42,.12);left:0;position:absolute;top:0;width:var(--sula-menu-width);z-index:2}.menu-header{gap:0;transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-group+.menu-group{margin-top:8px}.submenu>li{padding-block:4px}.submenu>li.is-selected{position:relative}.submenu>li.is-selected:before{background:var(--color-brand-primary,#f05223);border-radius:8px;bottom:0;content:\"\";left:-14px;position:absolute;top:0;width:3px}.submenu-branch>li.is-selected:before{left:-34px}.menu-toggle{background:var(--color-surface-body,#fff);border:1px solid var(--color-line-general,#e5e6e6);border-radius:999px;color:var(--color-icon-primary,#6c6e6e);cursor:pointer;height:32px;margin-left:auto;padding:0;transition:color .16s cubic-bezier(.4,0,.2,1),border-color .16s cubic-bezier(.4,0,.2,1),background-color .16s cubic-bezier(.4,0,.2,1);width:32px}.menu-toggle:hover{border-color:var(--color-brand-primary,#f05223);color:var(--color-brand-primary,#f05223)}.menu-toggle:focus-visible{outline:2px solid var(--color-states-bg-focus,#1355b4);outline-offset:2px}.menu-shell--collapsed .menu-toggle{margin:16px 0 0}.menu-shell--collapsed .menu-item{margin-inline:0;padding-block:10px}.menu-shell--collapsed .item-icon{height:20px;width:20px}.menu-shell--collapsed .item-icon i{font-size:20px}.menu-shell--expanded .user-info{margin-inline:0}.user-info--card .user-avatar{height:44px;width:44px}.user-info--card.user-info--active,.user-info--card:hover{box-shadow:inset 0 0 0 999px rgba(25,29,29,.05)}.user-info--card:active{box-shadow:inset 0 0 0 999px rgba(25,29,29,.11)}.menu-shell--collapsed .menu-footer{padding-inline:18px}.menu-shell--collapsed .menu-nav{scrollbar-width:none}.menu-shell--collapsed .menu-nav::-webkit-scrollbar{display:none}.menu-copy--hidden.menu-item-label--wrap{white-space:nowrap}.menu-nav{padding-bottom:16px;scrollbar-color:var(--color-line-general-strong,#bfc0c0) transparent;scrollbar-width:thin;transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-shell--expanded .menu-nav{margin-inline:-24px;padding-left:24px;padding-right:18px;scrollbar-gutter:stable}.menu-nav::-webkit-scrollbar{width:6px}.menu-nav::-webkit-scrollbar-track{background:transparent}.menu-nav::-webkit-scrollbar-thumb{background:var(--color-line-general-strong,#bfc0c0);border-radius:999px}.menu-nav::-webkit-scrollbar-thumb:hover{background:var(--color-text-disabled,#949595)}.item-icon{height:16px;width:16px}.menu-nav .menu-item,.menu-nav .menu-item>div,.menu-nav .submenu-item,.menu-nav .submenu-item-branch-caret,.menu-nav .submenu-item-branch-content{align-items:flex-start}.submenu-item .submenu-item-label{font-size:var(--sula-menu-sub-item-font-size);line-height:1.25rem}.menu-nav .item-icon,.menu-nav .menu-item-caret,.menu-nav .submenu-item-branch-caret{height:1.25rem}.menu-shell--expanded .menu-item .item-icon{width:18px}.menu-shell--expanded .menu-item .item-icon i{font-size:18px}.menu-footer{transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-brand-image{flex:0 0 auto;transition:margin .32s cubic-bezier(.22,1,.36,1),transform .32s cubic-bezier(.22,1,.36,1)}.menu-copy{display:block;max-width:220px;min-width:0;opacity:1;overflow:hidden;transform:translateX(0);transform-origin:left center;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1),transform .32s cubic-bezier(.22,1,.36,1);white-space:nowrap}.menu-copy--visible{max-width:100%;opacity:1;pointer-events:auto;transform:translateX(0)}.menu-copy--hidden{max-width:0;opacity:0;pointer-events:none;transform:translateX(-10px)}.menu-title{flex:1 1 auto;min-width:0}.menu-title.menu-copy--visible{max-width:100%}.menu-item-label{flex:1 1 auto;font-size:var(--sula-menu-main-item-font-size);line-height:var(--sula-menu-main-item-line-height)}.menu-item-label--truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-label--wrap{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sula-menu-main-item-max-lines);line-clamp:var(--sula-menu-main-item-max-lines);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;word-break:break-word}.menu-item{margin-inline:-8px;padding-block:var(--sula-menu-main-item-padding-block);transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),border-color .24s cubic-bezier(.22,1,.36,1),margin-left .24s cubic-bezier(.22,1,.36,1),padding .32s cubic-bezier(.22,1,.36,1)}.menu-item-caret{max-width:16px;opacity:1;overflow:hidden;transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .18s cubic-bezier(.4,0,.2,1),max-width .28s cubic-bezier(.22,1,.36,1),margin-left .28s cubic-bezier(.22,1,.36,1)}.menu-item-caret--visible{margin-left:12px;max-width:16px;opacity:1}.menu-item-caret--hidden{margin-left:0;max-width:0;opacity:0;transform:translateX(-8px)}.menu-item-caret--expanded{transform:rotate(180deg)}.submenu{max-height:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateY(-6px);transform-origin:top left;transition:max-height .26s cubic-bezier(.22,1,.36,1),opacity .12s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.22,1,.36,1);will-change:max-height,opacity,transform}.submenu--expanded{max-height:999px;opacity:1;pointer-events:auto;transform:translateY(0)}.submenu-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-item--branch{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),border-color .24s cubic-bezier(.22,1,.36,1),margin-left .24s cubic-bezier(.22,1,.36,1)}.submenu-item-branch-content{min-width:0}.submenu-branch{transform-origin:top left}.submenu-grandchild-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-grandchild-label{display:block}.menu-header--drilldown{animation:drill-header-forward .38s cubic-bezier(.22,1,.36,1);gap:24px;margin-bottom:32px}.drill-toolbar{padding:0}.menu-header--drilldown .menu-toggle{margin-left:0}.back-btn,.menu-header--drilldown .menu-toggle{background:transparent;border:none;height:24px;width:24px}.back-btn{align-items:center;border-radius:8px;cursor:pointer;display:flex;flex:none;justify-content:center;padding:0;transition:background-color .16s cubic-bezier(.4,0,.2,1)}.back-btn:hover{background:var(--color-surface-on-body,#f3f4f4)}.breadcrumb-row{align-items:center;display:flex;min-width:0;position:relative}.crumb-trail{flex:1 1 auto;gap:2px;min-width:0}.crumb-btn{background:transparent;border:none;border-radius:6px;color:var(--color-text-secondary,#6c6e6e);cursor:pointer;flex:0 1 auto;font:inherit;font-size:12px;font-weight:500;max-width:120px;min-width:28px;overflow:hidden;padding:3px 4px;text-align:left;text-overflow:ellipsis;transition:background-color .16s cubic-bezier(.4,0,.2,1),color .16s cubic-bezier(.4,0,.2,1);white-space:nowrap}.crumb-btn:hover{background:var(--color-surface-on-body,#f3f4f4);color:var(--color-text-primary,#313333)}.crumb-btn--ellipsis{align-items:center;display:flex;flex:none;max-width:none;padding:3px 5px}.crumb-sep{color:var(--color-text-disabled,#949595);flex:none}.crumb-dropdown{background:var(--color-surface-body,#fff);border:1px solid var(--color-line-general,#e5e6e6);border-radius:10px;box-shadow:0 14px 32px rgba(15,23,42,.16);box-sizing:border-box;display:flex;flex-direction:column;gap:1px;max-width:min(230px,100%);min-width:172px;padding:6px;position:absolute;z-index:30}.crumb-dropdown-item{align-items:center;background:transparent;border:none;border-radius:6px;color:var(--color-text-primary,#313333);cursor:pointer;display:flex;font:inherit;font-size:13px;gap:8px;overflow:hidden;padding:7px 8px;text-align:left;white-space:nowrap}.crumb-dropdown-item:hover{background:var(--color-surface-on-body,#f3f4f4)}.context-row{min-width:0}.context-icon{height:24px;margin-right:8px;width:24px}.context-title{-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;font-size:22px;font-weight:700;line-height:26px;min-width:0;overflow:hidden;overflow-wrap:anywhere}.menu-panel .menu-item>sula-icon{align-items:center;height:var(--sula-menu-main-item-line-height);margin-left:8px}.menu-shell--drilled{padding-left:48px}.menu-shell--drilled .menu-nav{margin-left:-48px;padding-left:48px}.drill-layers{inset:0 auto 0 0;pointer-events:none;position:absolute}.drill-layer{animation:drill-layer-in .48s cubic-bezier(.22,1,.36,1);background:var(--color-surface-body,#fff);bottom:0;box-shadow:0 4px 20px var(--color-line-general,#e5e6e6);left:0;position:absolute;top:0}@keyframes drill-layer-in{0%{opacity:0;transform:translateX(160px)}to{opacity:1;transform:translateX(0)}}.menu-panel--forward>li{animation:drill-slide-forward .42s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--row-index, 0)*35ms)}.menu-panel--back>li{animation:drill-slide-back .42s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--row-index, 0)*35ms)}.menu-header--drilldown.menu-header--back{animation-name:drill-header-back}@keyframes drill-header-forward{0%{opacity:0;transform:translateX(32px)}to{opacity:1;transform:translateX(0)}}@keyframes drill-header-back{0%{opacity:0;transform:translateX(-32px)}to{opacity:1;transform:translateX(0)}}@keyframes drill-slide-forward{0%{opacity:0;transform:translateX(56px)}to{opacity:1;transform:translateX(0)}}@keyframes drill-slide-back{0%{opacity:0;transform:translateX(-56px)}to{opacity:1;transform:translateX(0)}}sula-icon{align-items:center;display:inline-flex;flex:none;justify-content:center;line-height:1}sula-icon>i{display:block;line-height:1}.item-icon>.menu-item-image,.item-icon>sula-icon{flex:none}.menu-item-image{display:block;flex:none;-o-object-fit:contain;object-fit:contain;transition:opacity .2s cubic-bezier(.4,0,.2,1)}.menu-item-image--sm{height:.875rem;width:.875rem}.menu-item-image--md{height:1rem;width:1rem}.menu-item-image--lg{height:1.25rem;width:1.25rem}.menu-item-image.is-faded{opacity:.5}.item-icon>.menu-item-image{aspect-ratio:1/1;height:auto;width:100%}.menu-item-image--mask{background-color:currentColor;-webkit-mask:var(--menu-item-image) center/contain no-repeat;mask:var(--menu-item-image) center/contain no-repeat}.user-copy{display:flex;flex-direction:column;min-width:0;overflow:hidden;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1)}.user-copy--visible{max-width:100%;opacity:1;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1) .12s}.user-copy--hidden{max-width:0;opacity:0}.user-avatar img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.profile-origin{height:0;pointer-events:none;width:0}.profile-origin,.profile-popover{left:0;position:fixed;top:0;visibility:hidden}.profile-popover{background:var(--color-surface-body);border:1px solid var(--color-line-general);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.12),0 2px 8px rgba(15,23,42,.06);box-sizing:border-box;opacity:0;outline:none;transform:translateY(6px) scale(.98);transform-origin:bottom left;transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.22,1,.36,1),visibility 0s linear .2s;width:256px;z-index:60}.profile-popover--side{transform:translateX(-6px) scale(.98)}.profile-popover--open{opacity:1;transform:none;transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.22,1,.36,1);visibility:visible}@media (prefers-reduced-motion:reduce){.drill-layer,.menu-brand-image,.menu-copy,.menu-footer,.menu-header,.menu-header--drilldown,.menu-item,.menu-item-caret,.menu-nav,.menu-panel--back,.menu-panel--back>li,.menu-panel--forward,.menu-panel--forward>li,.menu-shell,.menu-toggle,.submenu,.submenu-item,:host{animation:none}.menu-item-caret,.profile-popover,.submenu-grandchild-item,.submenu-item{transition:none}}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format(\"truetype\")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local(\"Figtree\"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format(\"truetype\")}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.\\!visible{visibility:visible!important}.static{position:static}.z-50{z-index:50}.mb-24{margin-bottom:1.5rem}.mb-40{margin-bottom:2.5rem}.ml-8{margin-left:.5rem}.ml-\\[20px\\]{margin-left:20px}.ml-\\[8px\\]{margin-left:8px}.mr-6{margin-right:1.5rem}.inline{display:inline}.h-9{height:2.25rem}.h-full{height:100%}.max-h-10{max-height:2.5rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-10{max-width:2.5rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.resize{resize:both}.list-none{list-style-type:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-16{gap:1rem}.gap-8{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:1.25rem}.rounded-xs{border-radius:.5rem}.border-l{border-left-width:1px}.border-line-general{border-color:var(--color-line-general)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-states-empty-bg-hover{background-color:var(--color-states-empty-bg-hover)}.bg-states-empty-bg-pressed{background-color:var(--color-states-empty-bg-pressed)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.p-16{padding:1rem}.p-8{padding:.5rem}.px-0{padding-left:0;padding-right:0}.px-12{padding-left:.75rem;padding-right:.75rem}.px-8{padding-left:.5rem;padding-right:.5rem}.py-8{padding-bottom:.5rem;padding-top:.5rem}.pl-12{padding-left:.75rem}.pl-8{padding-left:.5rem}.pr-8{padding-right:.5rem}.pt-12{padding-top:.75rem}.text-left{text-align:left}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.text-brand-primary{color:var(--color-brand-primary)}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.active\\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}";
|
|
7
7
|
|
|
8
8
|
const SulaWorkbenchMenu = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -36,11 +36,6 @@ const SulaWorkbenchMenu = class {
|
|
|
36
36
|
* Overflow behavior for item labels.
|
|
37
37
|
*/
|
|
38
38
|
this.labelOverflow = sulaMenu_model.SulaMenuLabelOverflow.Wrap;
|
|
39
|
-
/**
|
|
40
|
-
* Depth (1-based) from which items with children open a drill-down panel instead of expanding in place.
|
|
41
|
-
* With the default of 3, the first two levels expand inline and deeper branches drill down.
|
|
42
|
-
*/
|
|
43
|
-
this.drilldownLevel = 3;
|
|
44
39
|
/**
|
|
45
40
|
* Menu items. Each item may use `icon` (icon font class) or `image` (URL or data URI of an image or SVG).
|
|
46
41
|
*/
|
|
@@ -55,6 +50,7 @@ const SulaWorkbenchMenu = class {
|
|
|
55
50
|
this.profileItems = [];
|
|
56
51
|
this.collapsed = false;
|
|
57
52
|
this.previewExpanded = false;
|
|
53
|
+
this.drillMode = false;
|
|
58
54
|
this.stack = [];
|
|
59
55
|
this.direction = 'forward';
|
|
60
56
|
this.selectedPath = [];
|
|
@@ -74,6 +70,7 @@ const SulaWorkbenchMenu = class {
|
|
|
74
70
|
this.syncWithItems(this.items);
|
|
75
71
|
}
|
|
76
72
|
syncWithItems(items) {
|
|
73
|
+
this.drillMode = this.maxDepth(items) > 3;
|
|
77
74
|
const nextSelected = this.findSelectedIds(items);
|
|
78
75
|
if (nextSelected) {
|
|
79
76
|
this.selectedPath = nextSelected;
|
|
@@ -81,8 +78,8 @@ const SulaWorkbenchMenu = class {
|
|
|
81
78
|
else if (!this.selectedPath.length || !this.isStillSelectable(items, this.selectedPath)) {
|
|
82
79
|
this.selectedPath = [];
|
|
83
80
|
}
|
|
84
|
-
this.stack = this.rebuildStack(items, this.stack);
|
|
85
|
-
if (this.drillPath)
|
|
81
|
+
this.stack = this.drillMode ? this.rebuildStack(items, this.stack) : [];
|
|
82
|
+
if (this.drillPath && (this.drillMode || this.drillPath !== this.expandedPath))
|
|
86
83
|
this.applyDrillPath(this.drillPath);
|
|
87
84
|
}
|
|
88
85
|
syncDrillPath(path) {
|
|
@@ -91,6 +88,10 @@ const SulaWorkbenchMenu = class {
|
|
|
91
88
|
}
|
|
92
89
|
applyDrillPath(path) {
|
|
93
90
|
var _a;
|
|
91
|
+
if (!this.drillMode) {
|
|
92
|
+
this.expandInline(path);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
94
95
|
const next = [];
|
|
95
96
|
let level = this.items;
|
|
96
97
|
for (const id of path) {
|
|
@@ -106,6 +107,33 @@ const SulaWorkbenchMenu = class {
|
|
|
106
107
|
this.direction = next.length < this.stack.length ? 'back' : 'forward';
|
|
107
108
|
this.stack = next;
|
|
108
109
|
}
|
|
110
|
+
expandInline(path) {
|
|
111
|
+
var _a;
|
|
112
|
+
if (!this.items.length)
|
|
113
|
+
return;
|
|
114
|
+
this.expandedPath = path;
|
|
115
|
+
const ids = [];
|
|
116
|
+
let level = this.items;
|
|
117
|
+
for (const id of path) {
|
|
118
|
+
const match = this.getVisibleItems(level).find(item => item.id === id);
|
|
119
|
+
if (!match)
|
|
120
|
+
break;
|
|
121
|
+
if (!match.expanded && this.hasVisibleChildren(match))
|
|
122
|
+
ids.push(id);
|
|
123
|
+
level = (_a = match.children) !== null && _a !== void 0 ? _a : [];
|
|
124
|
+
}
|
|
125
|
+
if (ids.length)
|
|
126
|
+
this.items = this.markExpanded(this.items, ids);
|
|
127
|
+
}
|
|
128
|
+
markExpanded(items, ids) {
|
|
129
|
+
return items.map(item => (Object.assign(Object.assign(Object.assign({}, item), (ids.includes(item.id) ? { expanded: true } : {})), (item.children ? { children: this.markExpanded(item.children, ids) } : {}))));
|
|
130
|
+
}
|
|
131
|
+
maxDepth(items) {
|
|
132
|
+
const visible = this.getVisibleItems(items);
|
|
133
|
+
if (!visible.length)
|
|
134
|
+
return 0;
|
|
135
|
+
return 1 + Math.max(...visible.map(item => this.maxDepth(item.children)));
|
|
136
|
+
}
|
|
109
137
|
componentDidRender() {
|
|
110
138
|
this.positionProfile();
|
|
111
139
|
}
|
|
@@ -140,7 +168,7 @@ const SulaWorkbenchMenu = class {
|
|
|
140
168
|
return this.getVisibleItems(item.children).length > 0;
|
|
141
169
|
}
|
|
142
170
|
isDrilled() {
|
|
143
|
-
return this.stack.length
|
|
171
|
+
return this.drillMode && this.stack.length > 0;
|
|
144
172
|
}
|
|
145
173
|
findSelectedIds(items, trail = []) {
|
|
146
174
|
for (const item of this.getVisibleItems(items)) {
|
|
@@ -227,16 +255,16 @@ const SulaWorkbenchMenu = class {
|
|
|
227
255
|
this.selectedPath = path.map(p => p.id);
|
|
228
256
|
this.itemSelected.emit(item);
|
|
229
257
|
}
|
|
230
|
-
handleRowClick(item
|
|
258
|
+
handleRowClick(item) {
|
|
231
259
|
if (item.disabled)
|
|
232
260
|
return;
|
|
233
261
|
this.itemClicked.emit(item);
|
|
234
262
|
if (this.hasVisibleChildren(item)) {
|
|
235
|
-
if (
|
|
236
|
-
this.
|
|
263
|
+
if (this.drillMode) {
|
|
264
|
+
this.enterDrill(item);
|
|
237
265
|
}
|
|
238
266
|
else {
|
|
239
|
-
this.
|
|
267
|
+
this.toggleInline(item.id);
|
|
240
268
|
}
|
|
241
269
|
return;
|
|
242
270
|
}
|
|
@@ -256,7 +284,7 @@ const SulaWorkbenchMenu = class {
|
|
|
256
284
|
const button = event.currentTarget;
|
|
257
285
|
this.crumbMenu = {
|
|
258
286
|
open: true,
|
|
259
|
-
left:
|
|
287
|
+
left: 0,
|
|
260
288
|
top: button.offsetTop + button.offsetHeight + 6,
|
|
261
289
|
};
|
|
262
290
|
}
|
|
@@ -304,24 +332,26 @@ const SulaWorkbenchMenu = class {
|
|
|
304
332
|
if (this.collapsed && !this.hovering)
|
|
305
333
|
this.previewExpanded = false;
|
|
306
334
|
}
|
|
307
|
-
// Fixed position, so ancestors with overflow hidden do not clip the popover.
|
|
335
|
+
// Fixed position, so ancestors with overflow hidden do not clip the popover. A transformed ancestor
|
|
336
|
+
// (e.g. the Storybook docs canvas) becomes the containing block, so coordinates are made relative to its origin.
|
|
308
337
|
positionProfile() {
|
|
338
|
+
var _a, _b;
|
|
309
339
|
if (!this.profileOpen || !this.profileEl || !this.userInfoEl || !this.shellEl)
|
|
310
340
|
return;
|
|
311
341
|
const gap = 8;
|
|
312
342
|
const inset = 12;
|
|
313
343
|
const anchor = this.userInfoEl.getBoundingClientRect();
|
|
314
344
|
const shell = this.shellEl.getBoundingClientRect();
|
|
345
|
+
const origin = (_b = (_a = this.profileOriginEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : { left: 0, top: 0 };
|
|
315
346
|
const style = this.profileEl.style;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
style.left = `${
|
|
323
|
-
style.
|
|
324
|
-
style.bottom = `${window.innerHeight - anchor.bottom}px`;
|
|
347
|
+
const expandedView = !this.collapsed || this.previewExpanded;
|
|
348
|
+
style.width = expandedView ? `${shell.width - inset * 2}px` : '';
|
|
349
|
+
const height = this.profileEl.offsetHeight;
|
|
350
|
+
const left = expandedView ? shell.left + inset : shell.right + gap;
|
|
351
|
+
const bottom = expandedView ? anchor.top - gap : anchor.bottom;
|
|
352
|
+
style.bottom = 'auto';
|
|
353
|
+
style.left = `${left - origin.left}px`;
|
|
354
|
+
style.top = `${bottom - height - origin.top}px`;
|
|
325
355
|
}
|
|
326
356
|
// Inner events are composed; stopping them avoids clashing with this menu's own itemClicked.
|
|
327
357
|
handleProfileItemClicked(event) {
|
|
@@ -377,12 +407,14 @@ const SulaWorkbenchMenu = class {
|
|
|
377
407
|
renderUserInfo(expandedView) {
|
|
378
408
|
const user = this.user;
|
|
379
409
|
return (index.h("button", { type: "button", class: {
|
|
380
|
-
'user-info flex min-w-0 cursor-pointer items-center
|
|
381
|
-
'user-info--
|
|
382
|
-
'
|
|
410
|
+
'user-info flex min-w-0 cursor-pointer items-center text-left': true,
|
|
411
|
+
'user-info--card w-full gap-16 rounded-md bg-surface-on-body p-16': expandedView,
|
|
412
|
+
'rounded-xs p-8 hover:bg-states-empty-bg-hover': !expandedView,
|
|
413
|
+
'user-info--active bg-states-empty-bg-hover': this.profileOpen && !expandedView,
|
|
383
414
|
}, title: `Ver perfil de ${user.name}`, "aria-label": `Ver perfil de ${user.name}`, "aria-haspopup": "dialog", "aria-expanded": String(this.profileOpen), ref: el => (this.userInfoEl = el), onClick: () => this.toggleProfile() }, index.h("span", { class: "user-avatar flex h-9 w-9 flex-none items-center justify-center overflow-hidden rounded-full bg-brand-primary text-sm font-semibold text-negative-negative-1" }, user.photo ? index.h("img", { src: user.photo, alt: user.name }) : this.getInitials(user.name)), index.h("span", { "aria-hidden": !expandedView, class: {
|
|
384
415
|
'user-copy': true,
|
|
385
|
-
'ml-8':
|
|
416
|
+
'ml-8': !expandedView,
|
|
417
|
+
'flex-1': expandedView,
|
|
386
418
|
'user-copy--visible': expandedView,
|
|
387
419
|
'user-copy--hidden': !expandedView,
|
|
388
420
|
} }, index.h("span", { part: "user-name", class: "user-name truncate text-sm font-semibold text-text-primary" }, user.name), user.email && index.h("span", { part: "user-email", class: "user-email truncate text-xs text-text-secondary" }, user.email))));
|
|
@@ -396,7 +428,7 @@ const SulaWorkbenchMenu = class {
|
|
|
396
428
|
}
|
|
397
429
|
renderCollapseButton() {
|
|
398
430
|
const label = this.collapsed ? 'Expandir menu' : 'Recolher menu';
|
|
399
|
-
return (index.h("button", { type: "button", class: "menu-toggle flex flex-none items-center justify-center", title: label, "aria-label": label, "aria-expanded": String(!this.collapsed), onClick: () => this.toggleMenu() }, index.h("sula-icon", { icon:
|
|
431
|
+
return (index.h("button", { type: "button", class: "menu-toggle flex flex-none items-center justify-center", title: label, "aria-label": label, "aria-expanded": String(!this.collapsed), onClick: () => this.toggleMenu() }, index.h("sula-icon", { icon: "ph-bold ph-sidebar", customClass: "text-lg" })));
|
|
400
432
|
}
|
|
401
433
|
renderRootHeader(expandedView) {
|
|
402
434
|
return (index.h("div", { class: {
|
|
@@ -412,7 +444,9 @@ const SulaWorkbenchMenu = class {
|
|
|
412
444
|
renderTrail(ancestors) {
|
|
413
445
|
const hasHidden = ancestors.length > 2;
|
|
414
446
|
const visible = hasHidden ? ancestors.slice(-2) : ancestors;
|
|
415
|
-
const crumbs = [
|
|
447
|
+
const crumbs = [
|
|
448
|
+
index.h("button", { key: "root", type: "button", class: "crumb-btn", title: `Ir para o início de ${this.menuTitle}`, onClick: () => this.goToDepth(-1) }, this.menuTitle || 'Início'),
|
|
449
|
+
];
|
|
416
450
|
if (hasHidden) {
|
|
417
451
|
crumbs.push(index.h("button", { key: "ellipsis", type: "button", class: "crumb-btn crumb-btn--ellipsis", "aria-haspopup": "true", "aria-expanded": String(this.crumbMenu.open), title: `${ancestors.length - 2} nível(is) anterior(es)`, ref: el => (this.crumbEllipsisEl = el), onClick: event => this.toggleCrumbMenu(event) }, index.h("sula-icon", { icon: "ph-bold ph-dots-three", customClass: "text-base text-text-secondary" })));
|
|
418
452
|
}
|
|
@@ -431,24 +465,27 @@ const SulaWorkbenchMenu = class {
|
|
|
431
465
|
if (!this.crumbMenu.open || ancestors.length <= 2)
|
|
432
466
|
return null;
|
|
433
467
|
const hidden = ancestors.slice(0, -2);
|
|
434
|
-
return (index.h("div", { class: "crumb-dropdown", role: "menu", ref: el => (this.crumbDropdownEl = el), style: { left: `${this.crumbMenu.left}px`, top: `${this.crumbMenu.top}px` } }, hidden.map(ancestor => (index.h("button", { key: ancestor.id, type: "button", role: "menuitem", class: "crumb-dropdown-item", onClick: () => this.goToDepth(this.stack.indexOf(ancestor)) }, index.h("span", { class: "item-icon flex flex-none items-center justify-center" }, this.renderItemIcon(ancestor, 'text-sm text-icon-primary', 'sm')), index.h("span", { class: "truncate" }, ancestor.label))))));
|
|
468
|
+
return (index.h("div", { class: "crumb-dropdown", role: "menu", ref: el => (this.crumbDropdownEl = el), style: { left: `${this.crumbMenu.left}px`, top: `${this.crumbMenu.top}px` } }, hidden.map(ancestor => (index.h("button", { key: ancestor.id, type: "button", role: "menuitem", class: "crumb-dropdown-item", onClick: () => this.goToDepth(this.stack.indexOf(ancestor)) }, index.h("span", { class: "item-icon flex flex-none items-center justify-center" }, this.renderItemIcon(ancestor, 'text-sm text-icon-primary', 'sm')), index.h("span", { class: "min-w-0 truncate" }, ancestor.label))))));
|
|
435
469
|
}
|
|
436
470
|
renderDrillHeader(activeParent) {
|
|
437
471
|
const ancestors = this.stack.slice(0, -1);
|
|
438
472
|
const backLabel = ancestors.length ? ancestors[ancestors.length - 1].label : this.menuTitle || 'Início';
|
|
439
|
-
const backButton = (index.h("button", { type: "button", class: "back-btn", title: `Voltar para ${backLabel}`, "aria-label": `Voltar para ${backLabel}`, onClick: () => this.goToDepth(this.stack.length - 2) }, index.h("sula-icon", { icon: "ph ph-arrow-left", customClass: "text-
|
|
440
|
-
return (index.h("div", {
|
|
473
|
+
const backButton = (index.h("button", { type: "button", class: "back-btn", title: `Voltar para ${backLabel}`, "aria-label": `Voltar para ${backLabel}`, onClick: () => this.goToDepth(this.stack.length - 2) }, index.h("sula-icon", { icon: "ph ph-arrow-left", customClass: "text-xl text-icon-primary" })));
|
|
474
|
+
return (index.h("div", { key: this.stack.map(item => item.id).join('/'), class: {
|
|
475
|
+
'menu-header menu-header--drilldown flex flex-col': true,
|
|
476
|
+
'menu-header--back': this.direction === 'back',
|
|
477
|
+
} }, index.h("div", { class: "drill-toolbar flex items-center justify-between" }, backButton, this.renderCollapseButton()), ancestors.length > 0 && (index.h("div", { class: "breadcrumb-row" }, this.renderTrail(ancestors), this.renderCrumbDropdown(ancestors))), index.h("div", { class: "context-row flex items-center min-w-0" }, this.hasIcon(activeParent) && (index.h("span", { class: "context-icon flex flex-none items-center justify-center" }, this.renderItemIcon(activeParent, 'text-xl text-brand-primary', 'md'))), index.h("h1", { part: "title", class: "context-title text-text-primary", title: activeParent.label }, activeParent.label))));
|
|
441
478
|
}
|
|
442
|
-
renderDrillRow(item, reserve) {
|
|
479
|
+
renderDrillRow(item, reserve, index$1) {
|
|
443
480
|
const branch = this.hasVisibleChildren(item);
|
|
444
481
|
const active = this.isActive(item, branch);
|
|
445
482
|
const faded = this.isFaded(item, active);
|
|
446
|
-
return (index.h("li", { class: "list-none", key: item.id }, index.h("div", { class: {
|
|
447
|
-
'menu-item flex items-center justify-between rounded-
|
|
448
|
-
'cursor-pointer hover:bg-states-empty-bg-hover': !item.disabled && !active,
|
|
483
|
+
return (index.h("li", { class: "list-none", key: item.id, style: { '--row-index': String(Math.min(index$1, 8)) } }, index.h("div", { class: {
|
|
484
|
+
'menu-item flex items-center justify-between rounded-md px-8': true,
|
|
485
|
+
'cursor-pointer hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed': !item.disabled && !active,
|
|
449
486
|
'cursor-pointer': !item.disabled && active,
|
|
450
487
|
'cursor-not-allowed': !!item.disabled,
|
|
451
|
-
}, "aria-disabled": !!item.disabled, onClick: () => this.handleRowClick(item
|
|
488
|
+
}, "aria-disabled": !!item.disabled, onClick: () => this.handleRowClick(item) }, index.h("span", { class: "flex min-w-0 flex-1 items-center gap-8" }, this.renderIconSlot(item, this.getIconClass(active, faded, 'text-base'), faded, reserve), index.h("span", { part: "item-label", class: {
|
|
452
489
|
'menu-item-label truncate': this.labelOverflow !== sulaMenu_model.SulaMenuLabelOverflow.Wrap,
|
|
453
490
|
'menu-item-label menu-item-label--wrap': this.labelOverflow === sulaMenu_model.SulaMenuLabelOverflow.Wrap,
|
|
454
491
|
'font-bold text-text-primary': active,
|
|
@@ -456,6 +493,11 @@ const SulaWorkbenchMenu = class {
|
|
|
456
493
|
'text-text-secondary': !active && !faded,
|
|
457
494
|
} }, item.label)), branch && index.h("sula-icon", { icon: "ph ph-caret-right", customClass: faded ? 'text-text-disabled text-xs' : 'text-text-secondary text-xs' }))));
|
|
458
495
|
}
|
|
496
|
+
// Strips on the left edge suggest the levels already navigated; the prototype shows at most two.
|
|
497
|
+
renderDrillLayers() {
|
|
498
|
+
const count = Math.min(this.stack.length, 2);
|
|
499
|
+
return (index.h("div", { class: "drill-layers", "aria-hidden": "true" }, Array.from({ length: count }, (_, index$1) => (index.h("span", { key: index$1, class: "drill-layer", style: { width: `${12 * (index$1 + 1)}px`, zIndex: String(count - index$1) } })))));
|
|
500
|
+
}
|
|
459
501
|
renderDrillPanel() {
|
|
460
502
|
const activeParent = this.stack[this.stack.length - 1];
|
|
461
503
|
const panelKey = this.stack.map(item => item.id).join('/');
|
|
@@ -463,7 +505,7 @@ const SulaWorkbenchMenu = class {
|
|
|
463
505
|
'menu-panel flex flex-col': true,
|
|
464
506
|
'menu-panel--forward': this.direction === 'forward',
|
|
465
507
|
'menu-panel--back': this.direction === 'back',
|
|
466
|
-
} }, this.getVisibleItems(activeParent.children).map(item => this.renderDrillRow(item, this.siblingsHaveIcon(activeParent.children)))));
|
|
508
|
+
} }, this.getVisibleItems(activeParent.children).map((item, index) => this.renderDrillRow(item, this.siblingsHaveIcon(activeParent.children), index))));
|
|
467
509
|
}
|
|
468
510
|
getMainIconClass(active, faded) {
|
|
469
511
|
if (faded)
|
|
@@ -497,15 +539,15 @@ const SulaWorkbenchMenu = class {
|
|
|
497
539
|
return null;
|
|
498
540
|
return index.h("span", { class: "item-icon flex flex-none items-center justify-center" }, this.renderItemIcon(item, customClass, 'lg', faded));
|
|
499
541
|
}
|
|
500
|
-
renderMainRow(item, expandedView, branch, expanded, active, faded, reserve) {
|
|
542
|
+
renderMainRow(item, expandedView, branch, expanded, active, faded, drill, reserve) {
|
|
501
543
|
const labelOverflowTruncate = this.labelOverflow === sulaMenu_model.SulaMenuLabelOverflow.Truncate;
|
|
502
544
|
return (index.h("div", { class: {
|
|
503
|
-
'menu-item flex items-center rounded-
|
|
504
|
-
'cursor-pointer hover:bg-states-empty-bg-hover': !item.disabled,
|
|
545
|
+
'menu-item flex items-center rounded-md px-8': true,
|
|
546
|
+
'cursor-pointer hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed': !item.disabled,
|
|
505
547
|
'cursor-not-allowed': !!item.disabled,
|
|
506
548
|
'justify-between': expandedView,
|
|
507
549
|
'justify-center': !expandedView,
|
|
508
|
-
}, title: !expandedView ? item.label : undefined, "aria-disabled": !!item.disabled, onClick: () => this.handleRowClick(item
|
|
550
|
+
}, title: !expandedView ? item.label : undefined, "aria-disabled": !!item.disabled, onClick: () => this.handleRowClick(item) }, index.h("div", { class: { 'flex items-center': true, 'flex-1 min-w-0 gap-8': expandedView, 'justify-center': !expandedView } }, this.renderIconSlot(item, this.getMainIconClass(active, faded), faded, reserve), index.h("span", { part: "main-item-label", title: expandedView ? item.label : undefined, "aria-hidden": !expandedView, class: {
|
|
509
551
|
'menu-item-label menu-copy': true,
|
|
510
552
|
'menu-item-label--truncate': labelOverflowTruncate,
|
|
511
553
|
'menu-item-label--wrap': !labelOverflowTruncate,
|
|
@@ -519,15 +561,15 @@ const SulaWorkbenchMenu = class {
|
|
|
519
561
|
'menu-item-caret--expanded': expanded,
|
|
520
562
|
'menu-item-caret--visible': expandedView,
|
|
521
563
|
'menu-item-caret--hidden': !expandedView,
|
|
522
|
-
}, icon:
|
|
564
|
+
}, icon: drill ? 'ph ph-caret-right' : 'ph ph-caret-down', customClass: this.getMainCaretClass(active, faded) }))));
|
|
523
565
|
}
|
|
524
566
|
renderSubRow(item, expandedView, branch, expanded, active, faded, drill, reserve) {
|
|
525
567
|
const caretIcon = drill ? 'ph-bold ph-caret-right' : `ph-bold ph-caret-${expanded && expandedView ? 'up' : 'down'}`;
|
|
526
|
-
const onClick = () => this.handleRowClick(item
|
|
568
|
+
const onClick = () => this.handleRowClick(item);
|
|
527
569
|
const rowClass = {
|
|
528
|
-
'submenu-item flex min-w-0 items-center rounded-
|
|
570
|
+
'submenu-item flex min-w-0 items-center rounded-md py-8 pr-8 select-none': true,
|
|
529
571
|
'submenu-item--branch w-full': branch,
|
|
530
|
-
'cursor-pointer hover:bg-states-empty-bg-hover': !item.disabled,
|
|
572
|
+
'cursor-pointer hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed': !item.disabled,
|
|
531
573
|
'cursor-not-allowed': !!item.disabled,
|
|
532
574
|
'font-bold': active && branch,
|
|
533
575
|
};
|
|
@@ -545,27 +587,23 @@ const SulaWorkbenchMenu = class {
|
|
|
545
587
|
}
|
|
546
588
|
return (index.h("a", { class: rowClass, style: { paddingLeft: '8px' }, title: item.label, "aria-disabled": !!item.disabled, onClick: onClick }, index.h("div", { class: "submenu-item-branch-content flex min-w-0 flex-1 items-center" }, this.renderIconSlot(item, this.getSubIconClass(faded, active && !branch), faded, reserve), label), index.h("div", { class: "submenu-item-branch-caret flex flex-none items-center justify-end pl-8" }, index.h("sula-icon", { icon: caretIcon, customClass: this.getSubCaretClass(faded) }))));
|
|
547
589
|
}
|
|
548
|
-
depthOf(item) {
|
|
549
|
-
const path = this.findPath(this.items, item.id);
|
|
550
|
-
return path ? path.length : 1;
|
|
551
|
-
}
|
|
552
590
|
renderInlineList(items, depth, expandedView) {
|
|
553
591
|
const reserve = this.siblingsHaveIcon(items);
|
|
554
592
|
return this.getVisibleItems(items).map(item => {
|
|
555
593
|
const branch = this.hasVisibleChildren(item);
|
|
556
|
-
const drill = branch &&
|
|
594
|
+
const drill = branch && this.drillMode;
|
|
557
595
|
const inline = branch && !drill;
|
|
558
596
|
const expanded = inline && !!item.expanded;
|
|
559
597
|
const active = this.isActive(item, branch) || expanded;
|
|
560
598
|
const faded = this.isFaded(item, active);
|
|
561
599
|
const row = depth === 1
|
|
562
|
-
? this.renderMainRow(item, expandedView, branch, expanded, active, faded, reserve)
|
|
600
|
+
? this.renderMainRow(item, expandedView, branch, expanded, active, faded, drill, reserve)
|
|
563
601
|
: this.renderSubRow(item, expandedView, branch, expanded, active, faded, drill, reserve);
|
|
564
602
|
return (index.h("li", { class: { 'decoration-none list-none': true, 'menu-group': depth === 1, 'is-selected': depth > 1 && active && !branch }, key: item.id }, row, inline && (index.h("ul", { "aria-hidden": !expandedView || !expanded, class: {
|
|
565
603
|
submenu: true,
|
|
566
604
|
'submenu--expanded': expandedView && expanded,
|
|
567
|
-
'ml-[8px] border-l border-line-general pl-
|
|
568
|
-
'submenu-branch ml-[
|
|
605
|
+
'ml-[8px] border-l border-line-general pl-12': depth === 1,
|
|
606
|
+
'submenu-branch ml-[20px]': depth > 1,
|
|
569
607
|
} }, this.renderInlineList(item.children, depth + 1, expandedView)))));
|
|
570
608
|
});
|
|
571
609
|
}
|
|
@@ -573,20 +611,21 @@ const SulaWorkbenchMenu = class {
|
|
|
573
611
|
const expandedView = !this.collapsed || this.previewExpanded;
|
|
574
612
|
const drilled = expandedView && this.isDrilled();
|
|
575
613
|
const activeParent = this.stack[this.stack.length - 1];
|
|
576
|
-
return (index.h(index.Host, { key: '
|
|
614
|
+
return (index.h(index.Host, { key: 'ab2f6194a30ca48695e5861b4fd34c1c8f926bec', class: {
|
|
577
615
|
'menu-host--collapsed': this.collapsed,
|
|
578
616
|
'menu-host--preview': this.collapsed && this.previewExpanded,
|
|
579
617
|
'menu-host--density-compact': this.density === sulaMenu_model.SulaMenuDensity.Compact,
|
|
580
618
|
'menu-host--density-comfortable': this.density === sulaMenu_model.SulaMenuDensity.Comfortable,
|
|
581
|
-
}, style: this.hostStyleVariables, onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave() }, index.h("aside", { key: '
|
|
619
|
+
}, style: this.hostStyleVariables, onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave() }, index.h("aside", { key: '8019d8e64ab613cd56a5f7a43c7524515738bd47', part: "shell", ref: el => (this.shellEl = el), class: {
|
|
582
620
|
'menu-shell flex h-full flex-col bg-surface-body shadow-md z-50': true,
|
|
583
621
|
'menu-shell--collapsed': this.collapsed && !this.previewExpanded,
|
|
584
622
|
'menu-shell--expanded': expandedView,
|
|
585
623
|
'menu-shell--preview': this.collapsed && this.previewExpanded,
|
|
586
|
-
|
|
624
|
+
'menu-shell--drilled': drilled,
|
|
625
|
+
} }, drilled && this.renderDrillLayers(), drilled ? this.renderDrillHeader(activeParent) : this.renderRootHeader(expandedView), index.h("nav", { key: 'c49e5bbbcad96f97a78c937cc9881c04bd1a614a', class: {
|
|
587
626
|
'menu-nav flex h-full flex-col overflow-y-auto overflow-x-hidden': true,
|
|
588
627
|
'px-12': !expandedView,
|
|
589
|
-
} }, drilled ? (this.renderDrillPanel()) : (index.h("ul", { class: "flex flex-col" }, this.renderInlineList(this.items, 1, expandedView)))), this.user && (index.h("div", { key: '
|
|
628
|
+
} }, drilled ? (this.renderDrillPanel()) : (index.h("ul", { class: "flex flex-col" }, this.renderInlineList(this.items, 1, expandedView)))), this.user && (index.h("div", { key: '9ac5a2f21cdacd18dc8f127905293b54bb3ef592', class: "menu-footer pt-12" }, this.renderUserInfo(expandedView)))), this.user && index.h("span", { key: '58b2452d40614cd366bcefb186fbafc7930a2ebe', class: "profile-origin", "aria-hidden": "true", ref: el => (this.profileOriginEl = el) }), this.user && this.renderProfilePopover(expandedView)));
|
|
590
629
|
}
|
|
591
630
|
get el() { return index.getElement(this); }
|
|
592
631
|
static get watchers() { return {
|