@robosophy/ui-vue 1.0.6 → 1.0.8
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/README.md +13 -9
- package/ai-context.md +1 -1
- package/components.md +5 -1
- package/dist/components/RsSidebar/RsSidebar.vue.d.ts.map +1 -1
- package/dist/icon-manifest.json +16 -0
- package/dist/index.css +1 -1
- package/dist/index.js +66 -74
- package/dist/index.js.map +1 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +123 -109
- package/dist/vite.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -156,19 +156,21 @@ import { robosophyMaterialSymbols } from "@robosophy/ui-vue/vite";
|
|
|
156
156
|
export default defineConfig({
|
|
157
157
|
plugins: [
|
|
158
158
|
vue(),
|
|
159
|
-
robosophyMaterialSymbols(
|
|
160
|
-
include: ["home"], // agrega iconos dinamicos que el scanner no pueda detectar
|
|
161
|
-
}),
|
|
159
|
+
robosophyMaterialSymbols(),
|
|
162
160
|
],
|
|
163
161
|
});
|
|
164
162
|
```
|
|
165
163
|
|
|
166
|
-
El plugin escanea usos
|
|
167
|
-
objetos con `icon: "..."
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
El plugin escanea automaticamente usos de `<RsIcon name="..." />`, `rsPrimeIcon("...")` y
|
|
165
|
+
objetos con `icon: "..."` en el codigo fuente. No hace falta declarar iconos a mano.
|
|
166
|
+
En build emite fuentes locales subseteadas por familia, preload de esas fuentes y
|
|
167
|
+
`font-display: block` para evitar que se vea brevemente el texto del ligature antes
|
|
168
|
+
de que cargue el icono.
|
|
170
169
|
|
|
171
|
-
|
|
170
|
+
### Iconos dinamicos (opcional)
|
|
171
|
+
|
|
172
|
+
Si un icono se calcula en runtime (API, permisos, configuracion remota, etc.), declaralo
|
|
173
|
+
en `include` para que el scanner lo incluya:
|
|
172
174
|
|
|
173
175
|
```ts
|
|
174
176
|
robosophyMaterialSymbols({
|
|
@@ -179,7 +181,9 @@ robosophyMaterialSymbols({
|
|
|
179
181
|
});
|
|
180
182
|
```
|
|
181
183
|
|
|
182
|
-
|
|
184
|
+
### Estrategia de carga
|
|
185
|
+
|
|
186
|
+
Se puede ajustar la estrategia de carga si una app lo necesita:
|
|
183
187
|
|
|
184
188
|
```ts
|
|
185
189
|
robosophyMaterialSymbols({
|
package/ai-context.md
CHANGED
|
@@ -26,7 +26,7 @@ Use this package for shared Vue 3 UI components.
|
|
|
26
26
|
- Use `@robosophy/tokens` CSS variables for colors, typography, strokes, and component surfaces.
|
|
27
27
|
- Use PrimeVue only when it provides real behavior for that component; actions should use PrimeVue `Button` in PrimeVue apps.
|
|
28
28
|
- `RsSidebar` and `RsAccountSelector` use native PrimeVue controls for interactive UI; PrimeVue apps should register the Robosophy PrimeVue preset and load `@robosophy/prime-theme/prime.css` so Button/Menu states receive Robosophy styling.
|
|
29
|
-
- `RsIcon` needs `robosophyMaterialSymbols()` from `@robosophy/ui-vue/vite` in consuming Vite apps so builds ship local subset fonts. Use `rsPrimeIcon()` for PrimeVue APIs that accept icon class strings.
|
|
29
|
+
- `RsIcon` needs `robosophyMaterialSymbols()` from `@robosophy/ui-vue/vite` in consuming Vite apps so builds ship local subset fonts. The plugin auto-detects icon usage from source — no manual declaration needed for static patterns. Use `rsPrimeIcon()` for PrimeVue APIs that accept icon class strings. Add dynamic icons via `include`.
|
|
30
30
|
- Use `RsSidebar` for reusable module navigation. `item-click` stays in the consuming app; the optional `modules` dropdown can redirect with the provided `link` when `navigateOnModuleSelect` is `true`.
|
|
31
31
|
- Keep props focused on stable component API. Use slots for flexible content.
|
|
32
32
|
- Export every public component and public type from `src/index.ts`.
|
package/components.md
CHANGED
|
@@ -55,10 +55,14 @@ Enable Material Symbols subsetting in Vite apps:
|
|
|
55
55
|
import { robosophyMaterialSymbols } from "@robosophy/ui-vue/vite";
|
|
56
56
|
|
|
57
57
|
export default defineConfig({
|
|
58
|
-
plugins: [vue(), robosophyMaterialSymbols(
|
|
58
|
+
plugins: [vue(), robosophyMaterialSymbols()],
|
|
59
59
|
});
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
El plugin escanea automaticamente `<RsIcon name="..." />`, `rsPrimeIcon("...")` y
|
|
63
|
+
`icon: "..."` en el codigo fuente. No hace falta declarar iconos a mano. Para iconos
|
|
64
|
+
dinamicos que el scanner no pueda detectar, agregalos en `include`.
|
|
65
|
+
|
|
62
66
|
## RsIcon
|
|
63
67
|
|
|
64
68
|
Use for Material Symbols. The Vite plugin generates local subset fonts for only the detected
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RsSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RsSidebar/RsSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RsSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RsSidebar/RsSidebar.vue"],"names":[],"mappings":"AAiVA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAwIxF,iBAAS,MAAM,SAEd;AAED,iBAAS,WAAW,SAInB;AAmXD,QAAA,IAAI,OAAO;;;;;;;;;;;;;CAAU,EAAE,QAAQ;;;;;;;;;;;;CAAW,EAAE,QAAQ;;;CAAW,EAAE,QAAQ;;;CAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.rs-icon{--rs-icon-color: currentColor;--rs-icon-fill: 0;--rs-icon-grade: 0;--rs-icon-optical-size: 24;--rs-icon-size: 24px;--rs-icon-weight: 400;align-items:center;color:var(--rs-icon-color);display:inline-flex;flex:0 0 auto;font-family:Material Symbols Outlined Variable;font-size:var(--rs-icon-size);font-style:normal;font-feature-settings:"liga";font-variation-settings:"FILL" var(--rs-icon-fill),"wght" var(--rs-icon-weight),"GRAD" var(--rs-icon-grade),"opsz" var(--rs-icon-optical-size);font-weight:400;-webkit-font-feature-settings:"liga";justify-content:center;direction:ltr;letter-spacing:normal;line-height:1;text-transform:none;-webkit-user-select:none;user-select:none;white-space:nowrap;word-wrap:normal}.rs-icon--sm{--rs-icon-optical-size: 20;--rs-icon-size: 18px}.rs-icon--md{--rs-icon-optical-size: 24;--rs-icon-size: 24px}.rs-icon--lg{--rs-icon-optical-size: 40;--rs-icon-size: 32px}.rs-icon--primary{--rs-icon-color: var(--rs-color-icon-primary, #48a0d4)}.rs-icon--secondary{--rs-icon-color: var(--rs-color-icon-secondary, #000000)}.rs-icon--danger{--rs-icon-color: var(--rs-color-icon-brand-red, #d80115)}.rs-icon--inherit{--rs-icon-color: currentColor}.rs-icon--rounded{font-family:Material Symbols Rounded Variable}.rs-icon--sharp{font-family:Material Symbols Sharp Variable}.rs-icon--interactive{cursor:pointer}.rs-account-selector-host{--rs-account-selector-width: 270px;--rs-account-selector-background: var(--rs-color-surface-primary, #ffffff);--rs-account-selector-border: var(--rs-color-stroke-default, #d1d1d1);--rs-account-selector-color: var(--rs-color-text-primary, #000000);--rs-account-selector-muted: var(--rs-color-text-secondary, #909090);--rs-account-selector-active: var(--rs-color-text-brand-green, #4eae01);--rs-account-selector-danger: var(--rs-color-text-brand-red, #d80115);display:inline-flex;position:relative}.rs-account-selector__trigger.p-button{align-items:center;background:transparent;border:0;color:var(--rs-account-selector-color);display:inline-flex;flex:0 0 auto;gap:16px;min-width:0;padding:0}.rs-account-selector__trigger.p-button .p-button-label{align-items:center;display:inline-flex;gap:20px}.rs-account-selector__trigger.p-button:hover,.rs-account-selector__trigger.p-button:focus-visible{background:transparent!important;border:0!important;color:var(--rs-account-selector-color);gap:16px!important;padding:0!important}.rs-account-selector__trigger-chevron{transition:transform .16s ease}.rs-account-selector__trigger--open .rs-account-selector__trigger-chevron{transform:rotate(180deg)}.rs-account-selector__trigger-avatar{--rs-account-selector-avatar-size: 46px;align-items:center;background:var(--rs-color-background-info, #e6f6fb);border-radius:999px;color:var(--rs-color-text-brand, #48a0d4);display:inline-flex;flex:0 0 auto;font-size:.875rem;font-weight:600;height:var(--rs-account-selector-avatar-size);justify-content:center;line-height:1;overflow:hidden;text-transform:uppercase;width:var(--rs-account-selector-avatar-size)}.rs-account-selector{background:var(--rs-account-selector-background);border:1px solid var(--rs-account-selector-border);border-radius:8px;box-sizing:border-box;color:var(--rs-account-selector-color);display:flex;flex-direction:column;font-family:var(--rs-font-family, "Inter", sans-serif);font-size:16px;gap:16px;position:absolute;top:calc(100% + 8px);z-index:20;padding:20px 0 16px;max-width:calc(100vw - 32px);width:var(--rs-account-selector-width)}.rs-account-selector--align-left{left:0}.rs-account-selector--align-right{right:0}.rs-account-selector__summary{align-items:center;display:flex;flex-direction:column;gap:8px;padding:0 16px;text-align:center}.rs-account-selector__avatar-stack{align-items:center;display:inline-flex}.rs-account-selector__avatar{--rs-account-selector-avatar-size: 44px;align-items:center;background:var(--rs-color-background-info, #e6f6fb);border:2px solid var(--rs-color-surface-primary, #ffffff);border-radius:999px;box-sizing:border-box;color:var(--rs-color-text-brand, #48a0d4);display:inline-flex;flex:0 0 auto;font-size:.875rem;font-weight:600;height:var(--rs-account-selector-avatar-size);justify-content:center;line-height:1;overflow:hidden;text-transform:uppercase;width:var(--rs-account-selector-avatar-size)}.rs-account-selector__avatar--sm{--rs-account-selector-avatar-size: 35px;font-size:.75rem}.rs-account-selector__avatar--lg{--rs-account-selector-avatar-size: 64px;font-size:1.125rem}.rs-account-selector__avatar-image{display:block;height:100%;object-fit:cover;width:100%}.rs-account-selector__avatar-placeholder{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.rs-account-selector__secondary-avatar{margin-left:-20px}.rs-account-selector__user{display:grid;gap:2px;max-width:100%;min-width:0;width:100%}.rs-account-selector__title,.rs-account-selector__name,.rs-account-selector__email,.rs-account-selector__account-label,.rs-account-selector__account-state,.rs-account-selector__state{margin:0}.rs-account-selector__title{font-weight:600;line-height:1.35}.rs-account-selector__name{font-size:.875rem;font-weight:500;line-height:1.35}.rs-account-selector__email{color:var(--rs-account-selector-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rs-account-selector__actions,.rs-account-selector__footer{align-items:center;display:flex;flex-direction:column;gap:8px;padding:0 16px}.rs-account-selector__button{width:max-content}.rs-account-selector__button-content{align-items:center;display:inline-flex;gap:8px}.rs-account-selector__accounts{display:grid}.rs-account-selector__account.p-button{align-items:center;background:transparent;border:0;border-top:1px solid var(--rs-account-selector-border);box-sizing:border-box;color:inherit;cursor:pointer;display:grid;font:inherit;gap:8px;grid-template-columns:auto minmax(0,1fr) auto;min-height:58px;padding:8px 16px;text-align:left;width:100%}.rs-account-selector__account.p-button .p-button-label{display:contents}.rs-account-selector__account.p-button:last-child{border-bottom:1px solid var(--rs-account-selector-border)}.rs-account-selector__account.p-button:hover:not(:disabled){background:var(--rs-color-background-info, #e6f6fb)!important;color:inherit}.rs-account-selector__account.p-button:disabled{cursor:default;opacity:1}.rs-account-selector__account--active .rs-account-selector__account-label{font-weight:600}.rs-account-selector__account--active .rs-account-selector__account-avatar{outline:2px solid var(--rs-account-selector-active);outline-offset:2px}.rs-account-selector__account--active .rs-account-selector__account-trailing{opacity:.25}.rs-account-selector__account-info{display:grid;gap:2px;min-width:0}.rs-account-selector__account-label{line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rs-account-selector__account-state,.rs-account-selector__state{color:var(--rs-account-selector-muted);font-size:.8125rem;line-height:1.35}.rs-account-selector__account-state--active{color:var(--rs-account-selector-active)}.rs-account-selector__account-state--inactive{color:var(--rs-account-selector-muted)}.rs-account-selector__account-trailing{align-items:center;color:var(--rs-color-icon-secondary, #000000);display:inline-flex;justify-content:center}.rs-account-selector__state{padding:8px 16px;text-align:center}@media(max-width:768px){.rs-account-selector{width:min(100vw - 32px,var(--rs-account-selector-width))}}.rs-sidebar{--rs-sidebar-background: var(--rs-color-surface-primary, #ffffff);--rs-sidebar-border: var(--rs-color-stroke-default, #d1d1d1);--rs-sidebar-color: var(--rs-color-text-primary, #000000);--rs-sidebar-muted: var(--rs-color-text-secondary, #909090);--rs-sidebar-active: var(--rs-color-text-button-tertiary, #48a0d4);--rs-sidebar-hover: var(--rs-color-button-blue-surface, #e6f6fb);--rs-sidebar-width-collapsed: 72px;--rs-sidebar-width-expanded: 286px;background:var(--rs-sidebar-background);border-right:1px solid var(--rs-sidebar-border);box-sizing:border-box;color:var(--rs-sidebar-color);display:flex;flex-direction:column;flex-shrink:0;font-family:var(--rs-font-family, "Inter", sans-serif);font-size:10px;gap:32px;height:100%;overflow:hidden;transition:width .18s ease-in-out;width:var(--rs-sidebar-width-collapsed)}.rs-sidebar--pc{--rs-sidebar-active: var(--rs-color-icon-project-pc, #014a9f);--rs-sidebar-hover: var(--rs-color-darkblue-100, #e5ecf5)}.rs-sidebar--alta{--rs-sidebar-active: var(--rs-color-icon-project-alta, #65ac1e);--rs-sidebar-hover: var(--rs-color-green-100, #edf7e6)}.rs-sidebar--cc{--rs-sidebar-active: var(--rs-color-icon-project-cc, #49a0d4);--rs-sidebar-hover: var(--rs-color-blue-100, #e6f6fb)}.rs-sidebar--pog{--rs-sidebar-active: var(--rs-color-icon-project-pog, #007c2f);--rs-sidebar-hover: var(--rs-color-navygreen-100, #e5f1ea)}.rs-sidebar--cyo{--rs-sidebar-active: var(--rs-color-icon-project-cyo, #49a0d4);--rs-sidebar-hover: var(--rs-color-blue-100, #e6f6fb)}.rs-sidebar--expanded,.rs-sidebar--mobile-open{overflow:visible;width:var(--rs-sidebar-width-expanded)}.rs-sidebar__header{align-items:center;position:relative;box-sizing:border-box;display:flex;gap:6px;justify-content:space-between;min-height:48px;padding:16px 12px 16px 16px}.rs-sidebar__brand{align-items:center;display:flex;color:var(--rs-sidebar-active);gap:6px;min-width:0;width:max-content}.rs-sidebar__brand--trigger{flex:1}.rs-sidebar__module-trigger{align-items:center;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-flex;justify-content:flex-start;font:inherit;gap:6px;min-width:0;appearance:none;-webkit-appearance:none;padding:0;text-align:left;width:100%}.rs-sidebar__module-trigger:hover:not(:disabled),.rs-sidebar__module-trigger:active:not(:disabled){background:transparent;color:inherit}.rs-sidebar__module-trigger:focus-visible{outline:2px solid var(--rs-color-stroke-focused, #48a0d4);outline-offset:2px}.rs-sidebar__module-chevron{margin-left:auto}.rs-sidebar__title,.rs-sidebar__item-label,.rs-sidebar__item-chevron{max-width:0;opacity:0;overflow:hidden;transition:max-width .18s ease-in-out,opacity .18s ease-in-out;white-space:nowrap}.rs-sidebar--expanded .rs-sidebar__title,.rs-sidebar--expanded .rs-sidebar__item-label,.rs-sidebar--expanded .rs-sidebar__item-chevron,.rs-sidebar--mobile-open .rs-sidebar__title,.rs-sidebar--mobile-open .rs-sidebar__item-label,.rs-sidebar--mobile-open .rs-sidebar__item-chevron{max-width:220px;opacity:1}.rs-sidebar__title{color:var(--rs-sidebar-color);font-size:.625rem;font-weight:400;line-height:1.2;text-overflow:ellipsis}.rs-sidebar__module-menu.p-menu{background:var(--rs-sidebar-background);border:1px solid var(--rs-sidebar-border);border-radius:4px;box-shadow:0 8px 24px #0000002e;left:16px;min-width:calc(var(--rs-sidebar-width-expanded) - 32px);overflow:hidden;padding:0;position:absolute;top:52px;z-index:20}.rs-sidebar__module-menu .p-menu-list{gap:0;padding:0}.rs-sidebar__module-option .p-menu-item-content{color:var(--rs-sidebar-color);border-radius:0}.rs-sidebar__module-option .p-menu-item-link{font-family:inherit;font-size:.625rem;line-height:1.2;min-height:38px;padding:10px 14px}.rs-sidebar__module-option:not(.p-disabled) .p-menu-item-content:hover,.rs-sidebar__module-option--active .p-menu-item-content{background:var(--rs-sidebar-hover);color:var(--rs-sidebar-color)}.rs-sidebar__module-option--disabled .p-menu-item-content{color:var(--rs-sidebar-muted);cursor:not-allowed}.rs-sidebar__module-option--disabled .p-menu-item-content:hover{background:transparent}.rs-sidebar__module-option.p-focus .p-menu-item-content{background:var(--rs-sidebar-hover);color:var(--rs-sidebar-color)}.rs-sidebar__module-option.p-focus .p-menu-item-link{outline:2px solid var(--rs-color-stroke-focused, #48a0d4);outline-offset:-2px}.rs-sidebar__header-button{align-items:center;background:transparent;border:0;border-radius:999px;color:var(--rs-color-icon-secondary, #000000);cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;appearance:none;-webkit-appearance:none;min-height:24px;min-width:24px;padding:2px}.rs-sidebar__header-button:hover:not(:disabled),.rs-sidebar__header-button:active:not(:disabled){background:var(--rs-sidebar-hover)!important;color:var(--rs-color-icon-secondary, #000000)}.rs-sidebar__header-button:focus-visible,.rs-sidebar__item:focus-visible{outline:2px solid var(--rs-color-stroke-focused, #48a0d4);outline-offset:-2px}.rs-sidebar__content{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-height:0}.rs-sidebar__nav{min-height:0}.rs-sidebar__list{list-style:none;margin:0;padding:0}.rs-sidebar__item{align-items:center;background:transparent;border:0;border-right:3px solid transparent;box-sizing:border-box;color:var(--rs-sidebar-active);cursor:pointer;display:flex;justify-content:flex-start;font:inherit;font-weight:300;gap:8px;appearance:none;-webkit-appearance:none;min-height:27px;padding:7px 8px 7px 16px;text-align:left;width:100%}.rs-sidebar__item:hover:not(:disabled),.rs-sidebar__item:active:not(:disabled){background:var(--rs-sidebar-hover)!important;color:var(--rs-sidebar-active)}.rs-sidebar__item:disabled{color:var(--rs-sidebar-muted);cursor:not-allowed;opacity:1}.rs-sidebar__item--active{background:var(--rs-sidebar-hover)!important;border-right-color:var(--rs-sidebar-active)}.rs-sidebar__item--footer{color:var(--rs-sidebar-color);min-height:40px;padding-bottom:16px;padding-left:16px;padding-top:16px}.rs-sidebar__item-icon{flex:0 0 auto;color:var(--rs-sidebar-active)}.rs-sidebar__item-label{color:var(--rs-sidebar-color);min-width:0;text-overflow:ellipsis}.rs-sidebar__item-chevron{margin-left:auto}.rs-sidebar__footer{margin-top:auto}.rs-sidebar--mobile-open{border-right:0;gap:clamp(8px,4vh,52px);inset:0;position:fixed;width:100%;z-index:10000}.rs-sidebar--mobile-open .rs-sidebar__header{min-height:80px}.rs-sidebar--mobile-open .rs-sidebar__module-menu{left:16px;min-width:min(320px,calc(100% - 32px));top:88px}.rs-sidebar--mobile-open .rs-sidebar__item{font-size:1rem;min-height:64px;padding-bottom:20px;padding-top:20px}
|
|
1
|
+
.rs-icon{--rs-icon-color: currentColor;--rs-icon-fill: 0;--rs-icon-grade: 0;--rs-icon-optical-size: 24;--rs-icon-size: 24px;--rs-icon-weight: 400;align-items:center;color:var(--rs-icon-color);display:inline-flex;flex:0 0 auto;font-family:Material Symbols Outlined Variable;font-size:var(--rs-icon-size);font-style:normal;font-feature-settings:"liga";font-variation-settings:"FILL" var(--rs-icon-fill),"wght" var(--rs-icon-weight),"GRAD" var(--rs-icon-grade),"opsz" var(--rs-icon-optical-size);font-weight:400;-webkit-font-feature-settings:"liga";justify-content:center;direction:ltr;letter-spacing:normal;line-height:1;text-transform:none;-webkit-user-select:none;user-select:none;white-space:nowrap;word-wrap:normal}.rs-icon--sm{--rs-icon-optical-size: 20;--rs-icon-size: 18px}.rs-icon--md{--rs-icon-optical-size: 24;--rs-icon-size: 24px}.rs-icon--lg{--rs-icon-optical-size: 40;--rs-icon-size: 32px}.rs-icon--primary{--rs-icon-color: var(--rs-color-icon-primary, #48a0d4)}.rs-icon--secondary{--rs-icon-color: var(--rs-color-icon-secondary, #000000)}.rs-icon--danger{--rs-icon-color: var(--rs-color-icon-brand-red, #d80115)}.rs-icon--inherit{--rs-icon-color: currentColor}.rs-icon--rounded{font-family:Material Symbols Rounded Variable}.rs-icon--sharp{font-family:Material Symbols Sharp Variable}.rs-icon--interactive{cursor:pointer}.rs-account-selector-host{--rs-account-selector-width: 270px;--rs-account-selector-background: var(--rs-color-surface-primary, #ffffff);--rs-account-selector-border: var(--rs-color-stroke-default, #d1d1d1);--rs-account-selector-color: var(--rs-color-text-primary, #000000);--rs-account-selector-muted: var(--rs-color-text-secondary, #909090);--rs-account-selector-active: var(--rs-color-text-brand-green, #4eae01);--rs-account-selector-danger: var(--rs-color-text-brand-red, #d80115);display:inline-flex;position:relative}.rs-account-selector__trigger.p-button{align-items:center;background:transparent;border:0;color:var(--rs-account-selector-color);display:inline-flex;flex:0 0 auto;gap:16px;min-width:0;padding:0}.rs-account-selector__trigger.p-button .p-button-label{align-items:center;display:inline-flex;gap:20px}.rs-account-selector__trigger.p-button:hover,.rs-account-selector__trigger.p-button:focus-visible{background:transparent!important;border:0!important;color:var(--rs-account-selector-color);gap:16px!important;padding:0!important}.rs-account-selector__trigger-chevron{transition:transform .16s ease}.rs-account-selector__trigger--open .rs-account-selector__trigger-chevron{transform:rotate(180deg)}.rs-account-selector__trigger-avatar{--rs-account-selector-avatar-size: 46px;align-items:center;background:var(--rs-color-background-info, #e6f6fb);border-radius:999px;color:var(--rs-color-text-brand, #48a0d4);display:inline-flex;flex:0 0 auto;font-size:.875rem;font-weight:600;height:var(--rs-account-selector-avatar-size);justify-content:center;line-height:1;overflow:hidden;text-transform:uppercase;width:var(--rs-account-selector-avatar-size)}.rs-account-selector{background:var(--rs-account-selector-background);border:1px solid var(--rs-account-selector-border);border-radius:8px;box-sizing:border-box;color:var(--rs-account-selector-color);display:flex;flex-direction:column;font-family:var(--rs-font-family, "Inter", sans-serif);font-size:16px;gap:16px;position:absolute;top:calc(100% + 8px);z-index:20;padding:20px 0 16px;max-width:calc(100vw - 32px);width:var(--rs-account-selector-width)}.rs-account-selector--align-left{left:0}.rs-account-selector--align-right{right:0}.rs-account-selector__summary{align-items:center;display:flex;flex-direction:column;gap:8px;padding:0 16px;text-align:center}.rs-account-selector__avatar-stack{align-items:center;display:inline-flex}.rs-account-selector__avatar{--rs-account-selector-avatar-size: 44px;align-items:center;background:var(--rs-color-background-info, #e6f6fb);border:2px solid var(--rs-color-surface-primary, #ffffff);border-radius:999px;box-sizing:border-box;color:var(--rs-color-text-brand, #48a0d4);display:inline-flex;flex:0 0 auto;font-size:.875rem;font-weight:600;height:var(--rs-account-selector-avatar-size);justify-content:center;line-height:1;overflow:hidden;text-transform:uppercase;width:var(--rs-account-selector-avatar-size)}.rs-account-selector__avatar--sm{--rs-account-selector-avatar-size: 35px;font-size:.75rem}.rs-account-selector__avatar--lg{--rs-account-selector-avatar-size: 64px;font-size:1.125rem}.rs-account-selector__avatar-image{display:block;height:100%;object-fit:cover;width:100%}.rs-account-selector__avatar-placeholder{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.rs-account-selector__secondary-avatar{margin-left:-20px}.rs-account-selector__user{display:grid;gap:2px;max-width:100%;min-width:0;width:100%}.rs-account-selector__title,.rs-account-selector__name,.rs-account-selector__email,.rs-account-selector__account-label,.rs-account-selector__account-state,.rs-account-selector__state{margin:0}.rs-account-selector__title{font-weight:600;line-height:1.35}.rs-account-selector__name{font-size:.875rem;font-weight:500;line-height:1.35}.rs-account-selector__email{color:var(--rs-account-selector-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rs-account-selector__actions,.rs-account-selector__footer{align-items:center;display:flex;flex-direction:column;gap:8px;padding:0 16px}.rs-account-selector__button{width:max-content}.rs-account-selector__button-content{align-items:center;display:inline-flex;gap:8px}.rs-account-selector__accounts{display:grid}.rs-account-selector__account.p-button{align-items:center;background:transparent;border:0;border-top:1px solid var(--rs-account-selector-border);box-sizing:border-box;color:inherit;cursor:pointer;display:grid;font:inherit;gap:8px;grid-template-columns:auto minmax(0,1fr) auto;min-height:58px;padding:8px 16px;text-align:left;width:100%}.rs-account-selector__account.p-button .p-button-label{display:contents}.rs-account-selector__account.p-button:last-child{border-bottom:1px solid var(--rs-account-selector-border)}.rs-account-selector__account.p-button:hover:not(:disabled){background:var(--rs-color-background-info, #e6f6fb)!important;color:inherit}.rs-account-selector__account.p-button:disabled{cursor:default;opacity:1}.rs-account-selector__account--active .rs-account-selector__account-label{font-weight:600}.rs-account-selector__account--active .rs-account-selector__account-avatar{outline:2px solid var(--rs-account-selector-active);outline-offset:2px}.rs-account-selector__account--active .rs-account-selector__account-trailing{opacity:.25}.rs-account-selector__account-info{display:grid;gap:2px;min-width:0}.rs-account-selector__account-label{line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rs-account-selector__account-state,.rs-account-selector__state{color:var(--rs-account-selector-muted);font-size:.8125rem;line-height:1.35}.rs-account-selector__account-state--active{color:var(--rs-account-selector-active)}.rs-account-selector__account-state--inactive{color:var(--rs-account-selector-muted)}.rs-account-selector__account-trailing{align-items:center;color:var(--rs-color-icon-secondary, #000000);display:inline-flex;justify-content:center}.rs-account-selector__state{padding:8px 16px;text-align:center}@media(max-width:768px){.rs-account-selector{width:min(100vw - 32px,var(--rs-account-selector-width))}}.rs-sidebar{--rs-sidebar-background: var(--rs-color-surface-primary, #ffffff);--rs-sidebar-border: var(--rs-color-stroke-default, #d1d1d1);--rs-sidebar-color: var(--rs-color-text-primary, #000000);--rs-sidebar-muted: var(--rs-color-text-secondary, #909090);--rs-sidebar-active: var(--rs-color-text-button-tertiary, #48a0d4);--rs-sidebar-hover: var(--rs-color-button-blue-surface, #e6f6fb);--rs-sidebar-width-collapsed: 72px;--rs-sidebar-width-expanded: 286px;background:var(--rs-sidebar-background);border-right:1px solid var(--rs-sidebar-border);box-sizing:border-box;color:var(--rs-sidebar-color);display:flex;flex-direction:column;flex-shrink:0;font-family:var(--rs-font-family, "Inter", sans-serif);font-size:18px;gap:32px;height:100%;overflow:hidden;transition:width .18s ease-in-out;width:var(--rs-sidebar-width-collapsed)}.rs-sidebar--pc{--rs-sidebar-active: var(--rs-color-icon-project-pc, #014a9f);--rs-sidebar-hover: var(--rs-color-darkblue-100, #e5ecf5)}.rs-sidebar--alta{--rs-sidebar-active: var(--rs-color-icon-project-alta, #65ac1e);--rs-sidebar-hover: var(--rs-color-green-100, #edf7e6)}.rs-sidebar--cc{--rs-sidebar-active: var(--rs-color-icon-project-cc, #49a0d4);--rs-sidebar-hover: var(--rs-color-blue-100, #e6f6fb)}.rs-sidebar--pog{--rs-sidebar-active: var(--rs-color-icon-project-pog, #007c2f);--rs-sidebar-hover: var(--rs-color-navygreen-100, #e5f1ea)}.rs-sidebar--cyo{--rs-sidebar-active: var(--rs-color-icon-project-cyo, #49a0d4);--rs-sidebar-hover: var(--rs-color-blue-100, #e6f6fb)}.rs-sidebar--expanded,.rs-sidebar--mobile-open{overflow:visible;width:var(--rs-sidebar-width-expanded)}.rs-sidebar__header{align-items:center;position:relative;box-sizing:border-box;display:flex;gap:6px;justify-content:flex-start;min-height:48px;padding:16px 0}.rs-sidebar--expanded .rs-sidebar__header,.rs-sidebar--mobile-open .rs-sidebar__header{padding:16px 12px 16px 16px}.rs-sidebar__brand{align-items:center;display:flex;color:var(--rs-sidebar-active);flex:1;gap:0;min-width:0;transition:gap .18s ease-in-out}.rs-sidebar--expanded .rs-sidebar__brand,.rs-sidebar--mobile-open .rs-sidebar__brand{gap:6px}.rs-sidebar__module-trigger{align-items:center;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-flex;justify-content:flex-start;font:inherit;gap:0;min-width:0;appearance:none;-webkit-appearance:none;padding:0;text-align:left;transition:gap .18s ease-in-out;width:100%}.rs-sidebar--expanded .rs-sidebar__module-trigger,.rs-sidebar--mobile-open .rs-sidebar__module-trigger{gap:6px}.rs-sidebar__module-trigger:hover:not(:disabled),.rs-sidebar__module-trigger:active:not(:disabled){background:transparent;color:inherit}.rs-sidebar__module-trigger:focus-visible{outline:2px solid var(--rs-color-stroke-focused, #48a0d4);outline-offset:2px}.rs-sidebar--expanded .rs-sidebar__module-chevron,.rs-sidebar--mobile-open .rs-sidebar__module-chevron{margin-left:auto}.rs-sidebar__module-trigger>.rs-icon:first-child{margin-left:24px;transition:margin-left .18s ease-in-out}.rs-sidebar--expanded .rs-sidebar__module-trigger>.rs-icon:first-child,.rs-sidebar--mobile-open .rs-sidebar__module-trigger>.rs-icon:first-child{margin-left:0}.rs-sidebar__brand>.rs-icon:first-child{margin-left:24px;transition:margin-left .18s ease-in-out}.rs-sidebar--expanded .rs-sidebar__brand>.rs-icon:first-child,.rs-sidebar--mobile-open .rs-sidebar__brand>.rs-icon:first-child{margin-left:0}.rs-sidebar__title,.rs-sidebar__item-label,.rs-sidebar__item-chevron,.rs-sidebar__module-chevron{max-width:0;opacity:0;overflow:hidden;transition:max-width .18s ease-in-out,opacity .18s ease-in-out;white-space:nowrap}.rs-sidebar--expanded .rs-sidebar__title,.rs-sidebar--expanded .rs-sidebar__item-label,.rs-sidebar--expanded .rs-sidebar__item-chevron,.rs-sidebar--expanded .rs-sidebar__module-chevron,.rs-sidebar--mobile-open .rs-sidebar__title,.rs-sidebar--mobile-open .rs-sidebar__item-label,.rs-sidebar--mobile-open .rs-sidebar__item-chevron,.rs-sidebar--mobile-open .rs-sidebar__module-chevron{max-width:220px;opacity:1}.rs-sidebar__title{color:var(--rs-sidebar-color);font-weight:400;line-height:1.2;text-overflow:ellipsis}.rs-sidebar__module-menu.p-menu{background:var(--rs-sidebar-background);border:1px solid var(--rs-sidebar-border);border-radius:4px;box-shadow:0 8px 24px #0000002e;left:16px;min-width:calc(var(--rs-sidebar-width-expanded) - 32px);overflow:hidden;padding:0;position:absolute;top:52px;z-index:20}.rs-sidebar__module-menu .p-menu-list{gap:0;padding:0}.rs-sidebar__module-option .p-menu-item-content{color:var(--rs-sidebar-color);border-radius:0}.rs-sidebar__module-option .p-menu-item-link{font-family:inherit;font-size:inherit;line-height:1.2;min-height:38px;padding:10px 14px}.rs-sidebar__module-option:not(.p-disabled) .p-menu-item-content:hover,.rs-sidebar__module-option--active .p-menu-item-content{background:var(--rs-sidebar-hover);color:var(--rs-sidebar-color)}.rs-sidebar__module-option--disabled .p-menu-item-content{color:var(--rs-sidebar-muted);cursor:not-allowed}.rs-sidebar__module-option--disabled .p-menu-item-content:hover{background:transparent}.rs-sidebar__module-option.p-focus .p-menu-item-content{background:var(--rs-sidebar-hover);color:var(--rs-sidebar-color)}.rs-sidebar__module-option.p-focus .p-menu-item-link{outline:2px solid var(--rs-color-stroke-focused, #48a0d4);outline-offset:-2px}.rs-sidebar__header-button{align-items:center;background:transparent;border:0;border-radius:999px;color:var(--rs-color-icon-secondary, #000000);cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;appearance:none;-webkit-appearance:none;min-height:24px;min-width:24px;padding:2px}.rs-sidebar__header-button:hover:not(:disabled),.rs-sidebar__header-button:active:not(:disabled){background:var(--rs-sidebar-hover)!important;color:var(--rs-color-icon-secondary, #000000)}.rs-sidebar__header-button:focus-visible,.rs-sidebar__item:focus-visible{outline:2px solid var(--rs-color-stroke-focused, #48a0d4);outline-offset:-2px}.rs-sidebar__content{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-height:0}.rs-sidebar__nav{min-height:0}.rs-sidebar__list{list-style:none;margin:0;padding:0}.rs-sidebar__item{align-items:center;background:transparent;border:0;border-right:3px solid transparent;box-sizing:border-box;color:var(--rs-sidebar-active);cursor:pointer;display:flex;justify-content:flex-start;font:inherit;font-weight:300;gap:8px;appearance:none;-webkit-appearance:none;min-height:27px;padding:7px 0;text-align:left;transition:gap .18s ease-in-out;width:100%}.rs-sidebar--expanded .rs-sidebar__item,.rs-sidebar--mobile-open .rs-sidebar__item{padding:7px 8px 7px 16px}.rs-sidebar__item:hover:not(:disabled),.rs-sidebar__item:active:not(:disabled){background:var(--rs-sidebar-hover)!important;color:var(--rs-sidebar-active)}.rs-sidebar__item:disabled{color:var(--rs-sidebar-muted);cursor:not-allowed;opacity:1}.rs-sidebar__item--active{background:var(--rs-sidebar-hover)!important;border-right-color:var(--rs-sidebar-active)}.rs-sidebar__item--footer{color:var(--rs-sidebar-color);min-height:40px;padding-bottom:16px;padding-top:16px}.rs-sidebar--expanded .rs-sidebar__item--footer,.rs-sidebar--mobile-open .rs-sidebar__item--footer{padding-left:16px}.rs-sidebar__item-icon{flex:0 0 auto;color:var(--rs-sidebar-active);margin-left:24px;transition:margin-left .18s ease-in-out;width:24px;height:24px}.rs-sidebar--expanded .rs-sidebar__item-icon,.rs-sidebar--mobile-open .rs-sidebar__item-icon{margin-left:16px}.rs-sidebar__brand .rs-icon{width:24px;height:24px}.rs-sidebar__item-label{color:var(--rs-sidebar-color);min-width:0;text-overflow:ellipsis}.rs-sidebar__item-chevron{margin-left:auto}.rs-sidebar__footer{margin-top:auto}.rs-sidebar--mobile-open{border-right:0;gap:clamp(8px,4vh,52px);inset:0;position:fixed;width:100%;z-index:10000}.rs-sidebar--mobile-open .rs-sidebar__header{min-height:80px}.rs-sidebar--mobile-open .rs-sidebar__module-menu{left:16px;min-width:min(320px,calc(100% - 32px));top:88px}.rs-sidebar--mobile-open .rs-sidebar__item{font-size:1rem;min-height:64px;padding-bottom:20px;padding-top:20px}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AUTO-GENERATED FILE. DO NOT EDIT MANUALLY.
|
|
2
2
|
import "./index.css";
|
|
3
|
-
import { ref as ne, readonly as Mn, getCurrentInstance as kt, onMounted as mt, nextTick as Zt, watch as qe, useId as Bn, mergeProps as j, openBlock as h, createElementBlock as k, createElementVNode as I, renderSlot as B, createTextVNode as bt, toDisplayString as D, resolveComponent as Qe, resolveDirective as Gt, withDirectives as Yt, createBlock as K, resolveDynamicComponent as at, withCtx as be, createCommentVNode as N, normalizeClass as q, defineComponent as ht, computed as
|
|
3
|
+
import { ref as ne, readonly as Mn, getCurrentInstance as kt, onMounted as mt, nextTick as Zt, watch as qe, useId as Bn, mergeProps as j, openBlock as h, createElementBlock as k, createElementVNode as I, renderSlot as B, createTextVNode as bt, toDisplayString as D, resolveComponent as Qe, resolveDirective as Gt, withDirectives as Yt, createBlock as K, resolveDynamicComponent as at, withCtx as be, createCommentVNode as N, normalizeClass as q, defineComponent as ht, computed as z, normalizeStyle as Xt, onBeforeUnmount as qt, createVNode as de, unref as H, withModifiers as Ke, Fragment as ie, renderList as we, Teleport as Dn, Transition as Rn } from "vue";
|
|
4
4
|
function he(...e) {
|
|
5
5
|
if (e) {
|
|
6
6
|
let t = [];
|
|
@@ -431,19 +431,19 @@ var J = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e)
|
|
|
431
431
|
var i, s, l, a, u, d, c;
|
|
432
432
|
let { preset: p, options: f } = t, b, y, v, _, w, T, m;
|
|
433
433
|
if (E(p) && f.transform !== "strict") {
|
|
434
|
-
let { primitive: $, semantic:
|
|
434
|
+
let { primitive: $, semantic: V, extend: M } = p, U = V || {}, { colorScheme: Y } = U, X = ue(U, ["colorScheme"]), S = M || {}, { colorScheme: g } = S, O = ue(S, ["colorScheme"]), x = Y || {}, { dark: Q } = x, ce = ue(x, ["dark"]), se = g || {}, { dark: _e } = se, Se = ue(se, ["dark"]), le = E($) ? this._toVariables({ primitive: $ }, f) : {}, oe = E(X) ? this._toVariables({ semantic: X }, f) : {}, me = E(ce) ? this._toVariables({ light: ce }, f) : {}, Ue = E(Q) ? this._toVariables({ dark: Q }, f) : {}, ke = E(O) ? this._toVariables({ semantic: O }, f) : {}, _t = E(Se) ? this._toVariables({ light: Se }, f) : {}, St = E(_e) ? this._toVariables({ dark: _e }, f) : {}, [_n, Sn] = [(i = le.declarations) != null ? i : "", le.tokens], [kn, $n] = [(s = oe.declarations) != null ? s : "", oe.tokens || []], [wn, On] = [(l = me.declarations) != null ? l : "", me.tokens || []], [Pn, xn] = [(a = Ue.declarations) != null ? a : "", Ue.tokens || []], [Cn, Tn] = [(u = ke.declarations) != null ? u : "", ke.tokens || []], [Ln, In] = [(d = _t.declarations) != null ? d : "", _t.tokens || []], [jn, An] = [(c = St.declarations) != null ? c : "", St.tokens || []];
|
|
435
435
|
b = this.transformCSS(e, _n, "light", "variable", f, o, r), y = Sn;
|
|
436
436
|
let En = this.transformCSS(e, `${kn}${wn}`, "light", "variable", f, o, r), Nn = this.transformCSS(e, `${Pn}`, "dark", "variable", f, o, r);
|
|
437
437
|
v = `${En}${Nn}`, _ = [.../* @__PURE__ */ new Set([...$n, ...On, ...xn])];
|
|
438
|
-
let
|
|
439
|
-
w = `${
|
|
438
|
+
let Vn = this.transformCSS(e, `${Cn}${Ln}color-scheme:light`, "light", "variable", f, o, r), zn = this.transformCSS(e, `${jn}color-scheme:dark`, "dark", "variable", f, o, r);
|
|
439
|
+
w = `${Vn}${zn}`, T = [.../* @__PURE__ */ new Set([...Tn, ...In, ...An])], m = Z(p.css, { dt: ge });
|
|
440
440
|
}
|
|
441
441
|
return { primitive: { css: b, tokens: y }, semantic: { css: v, tokens: _ }, global: { css: w, tokens: T }, style: m };
|
|
442
442
|
}, getPreset({ name: e = "", preset: t = {}, options: n, params: o, set: r, defaults: i, selector: s }) {
|
|
443
443
|
var l, a, u;
|
|
444
444
|
let d, c, p;
|
|
445
445
|
if (E(t) && n.transform !== "strict") {
|
|
446
|
-
let f = e.replace("-directive", ""), b = t, { colorScheme: y, extend: v, css: _ } = b, w = ue(b, ["colorScheme", "extend", "css"]), T = v || {}, { colorScheme: m } = T, $ = ue(T, ["colorScheme"]),
|
|
446
|
+
let f = e.replace("-directive", ""), b = t, { colorScheme: y, extend: v, css: _ } = b, w = ue(b, ["colorScheme", "extend", "css"]), T = v || {}, { colorScheme: m } = T, $ = ue(T, ["colorScheme"]), V = y || {}, { dark: M } = V, U = ue(V, ["dark"]), Y = m || {}, { dark: X } = Y, S = ue(Y, ["dark"]), g = E(w) ? this._toVariables({ [f]: te(te({}, w), $) }, n) : {}, O = E(U) ? this._toVariables({ [f]: te(te({}, U), S) }, n) : {}, x = E(M) ? this._toVariables({ [f]: te(te({}, M), X) }, n) : {}, [Q, ce] = [(l = g.declarations) != null ? l : "", g.tokens || []], [se, _e] = [(a = O.declarations) != null ? a : "", O.tokens || []], [Se, le] = [(u = x.declarations) != null ? u : "", x.tokens || []], oe = this.transformCSS(f, `${Q}${se}`, "light", "variable", n, r, i, s), me = this.transformCSS(f, Se, "dark", "variable", n, r, i, s);
|
|
447
447
|
d = `${oe}${me}`, c = [.../* @__PURE__ */ new Set([...ce, ..._e, ...le])], p = Z(_, { dt: ge });
|
|
448
448
|
}
|
|
449
449
|
return { css: d, tokens: c, style: p };
|
|
@@ -777,7 +777,7 @@ function wo(e) {
|
|
|
777
777
|
}
|
|
778
778
|
var Oo = 0;
|
|
779
779
|
function Po(e) {
|
|
780
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ne(!1), o = ne(e), r = ne(null), i = en() ? window.document : void 0, s = t.document, l = s === void 0 ? i : s, a = t.immediate, u = a === void 0 ? !0 : a, d = t.manual, c = d === void 0 ? !1 : d, p = t.name, f = p === void 0 ? "style_".concat(++Oo) : p, b = t.id, y = b === void 0 ? void 0 : b, v = t.media, _ = v === void 0 ? void 0 : v, w = t.nonce, T = w === void 0 ? void 0 : w, m = t.first, $ = m === void 0 ? !1 : m,
|
|
780
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = ne(!1), o = ne(e), r = ne(null), i = en() ? window.document : void 0, s = t.document, l = s === void 0 ? i : s, a = t.immediate, u = a === void 0 ? !0 : a, d = t.manual, c = d === void 0 ? !1 : d, p = t.name, f = p === void 0 ? "style_".concat(++Oo) : p, b = t.id, y = b === void 0 ? void 0 : b, v = t.media, _ = v === void 0 ? void 0 : v, w = t.nonce, T = w === void 0 ? void 0 : w, m = t.first, $ = m === void 0 ? !1 : m, V = t.onMounted, M = V === void 0 ? void 0 : V, U = t.onUpdated, Y = U === void 0 ? void 0 : U, X = t.onLoad, S = X === void 0 ? void 0 : X, g = t.props, O = g === void 0 ? {} : g, x = function() {
|
|
781
781
|
}, Q = function(_e) {
|
|
782
782
|
var Se = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
783
783
|
if (l) {
|
|
@@ -859,7 +859,7 @@ function To(e, t) {
|
|
|
859
859
|
function Lo(e) {
|
|
860
860
|
if (Array.isArray(e)) return e;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Vt(e, t) {
|
|
863
863
|
var n = Object.keys(e);
|
|
864
864
|
if (Object.getOwnPropertySymbols) {
|
|
865
865
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -872,9 +872,9 @@ function zt(e, t) {
|
|
|
872
872
|
function it(e) {
|
|
873
873
|
for (var t = 1; t < arguments.length; t++) {
|
|
874
874
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
875
|
-
t % 2 ?
|
|
875
|
+
t % 2 ? Vt(Object(n), !0).forEach(function(o) {
|
|
876
876
|
Io(e, o, n[o]);
|
|
877
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
877
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vt(Object(n)).forEach(function(o) {
|
|
878
878
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
879
879
|
});
|
|
880
880
|
}
|
|
@@ -922,12 +922,12 @@ var Eo = function(t) {
|
|
|
922
922
|
padding-right: `.concat(n("scrollbar.width"), `;
|
|
923
923
|
}
|
|
924
924
|
`);
|
|
925
|
-
}, No = {},
|
|
925
|
+
}, No = {}, Vo = {}, R = {
|
|
926
926
|
name: "base",
|
|
927
927
|
css: Eo,
|
|
928
928
|
style: _o,
|
|
929
929
|
classes: No,
|
|
930
|
-
inlineStyles:
|
|
930
|
+
inlineStyles: Vo,
|
|
931
931
|
load: function(t) {
|
|
932
932
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(i) {
|
|
933
933
|
return i;
|
|
@@ -999,11 +999,11 @@ var Eo = function(t) {
|
|
|
999
999
|
}, t);
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
function
|
|
1002
|
+
function zo() {
|
|
1003
1003
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pc", t = Bn();
|
|
1004
1004
|
return "".concat(e).concat(t.replace("v-", "").replaceAll("-", "_"));
|
|
1005
1005
|
}
|
|
1006
|
-
var
|
|
1006
|
+
var zt = R.extend({
|
|
1007
1007
|
name: "common"
|
|
1008
1008
|
});
|
|
1009
1009
|
function Ae(e) {
|
|
@@ -1151,7 +1151,7 @@ var Re = {
|
|
|
1151
1151
|
var t, n, o, r, i, s, l, a, u, d, c, p = (t = this.pt) === null || t === void 0 ? void 0 : t._usept, f = p ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, b = p ? (o = this.pt) === null || o === void 0 || (o = o.value) === null || o === void 0 ? void 0 : o[this.$.type.name] : this.pt;
|
|
1152
1152
|
(r = b || f) === null || r === void 0 || (r = r.hooks) === null || r === void 0 || (i = r.onBeforeCreate) === null || i === void 0 || i.call(r);
|
|
1153
1153
|
var y = (s = this.$primevueConfig) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s._usept, v = y ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.originalValue : void 0, _ = y ? (a = this.$primevue) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a.value : (u = this.$primevue) === null || u === void 0 || (u = u.config) === null || u === void 0 ? void 0 : u.pt;
|
|
1154
|
-
(d = _ || v) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (c = d.onBeforeCreate) === null || c === void 0 || c.call(d), this.$attrSelector =
|
|
1154
|
+
(d = _ || v) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (c = d.onBeforeCreate) === null || c === void 0 || c.call(d), this.$attrSelector = zo(), this.uid = this.$attrs.id || this.$attrSelector.replace("pc", "pv_id_");
|
|
1155
1155
|
},
|
|
1156
1156
|
created: function() {
|
|
1157
1157
|
this._hook("onCreated");
|
|
@@ -1198,7 +1198,7 @@ var Re = {
|
|
|
1198
1198
|
},
|
|
1199
1199
|
_loadCoreStyles: function() {
|
|
1200
1200
|
var t, n;
|
|
1201
|
-
!pe.isStyleNameLoaded((t = this.$style) === null || t === void 0 ? void 0 : t.name) && (n = this.$style) !== null && n !== void 0 && n.name && (
|
|
1201
|
+
!pe.isStyleNameLoaded((t = this.$style) === null || t === void 0 ? void 0 : t.name) && (n = this.$style) !== null && n !== void 0 && n.name && (zt.loadCSS(this.$styleOptions), this.$options.style && this.$style.loadCSS(this.$styleOptions), pe.setLoadedStyleName(this.$style.name));
|
|
1202
1202
|
},
|
|
1203
1203
|
_loadGlobalStyles: function() {
|
|
1204
1204
|
var t = this._useGlobalPT(this._getOptionValue, "global.css", this.$params);
|
|
@@ -1341,7 +1341,7 @@ var Re = {
|
|
|
1341
1341
|
sx: function() {
|
|
1342
1342
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1343
1343
|
if (n) {
|
|
1344
|
-
var r = this._getOptionValue(this.$style.inlineStyles, t, C(C({}, this.$params), o)), i = this._getOptionValue(
|
|
1344
|
+
var r = this._getOptionValue(this.$style.inlineStyles, t, C(C({}, this.$params), o)), i = this._getOptionValue(zt.inlineStyles, t, C(C({}, this.$params), o));
|
|
1345
1345
|
return [i, r];
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
@@ -1768,13 +1768,13 @@ function lr(e, t, n, o, r, i) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
bn.render = lr;
|
|
1770
1770
|
var Ye = vt();
|
|
1771
|
-
function
|
|
1771
|
+
function Ve(e) {
|
|
1772
1772
|
"@babel/helpers - typeof";
|
|
1773
|
-
return
|
|
1773
|
+
return Ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1774
1774
|
return typeof t;
|
|
1775
1775
|
} : function(t) {
|
|
1776
1776
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1777
|
-
},
|
|
1777
|
+
}, Ve(e);
|
|
1778
1778
|
}
|
|
1779
1779
|
function Ut(e, t) {
|
|
1780
1780
|
return pr(e) || cr(e, t) || dr(e, t) || ur();
|
|
@@ -1842,14 +1842,14 @@ function ct(e, t, n) {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
function fr(e) {
|
|
1844
1844
|
var t = mr(e, "string");
|
|
1845
|
-
return
|
|
1845
|
+
return Ve(t) == "symbol" ? t : t + "";
|
|
1846
1846
|
}
|
|
1847
1847
|
function mr(e, t) {
|
|
1848
|
-
if (
|
|
1848
|
+
if (Ve(e) != "object" || !e) return e;
|
|
1849
1849
|
var n = e[Symbol.toPrimitive];
|
|
1850
1850
|
if (n !== void 0) {
|
|
1851
1851
|
var o = n.call(e, t);
|
|
1852
|
-
if (
|
|
1852
|
+
if (Ve(o) != "object") return o;
|
|
1853
1853
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1854
1854
|
}
|
|
1855
1855
|
return (t === "string" ? String : Number)(e);
|
|
@@ -1942,8 +1942,8 @@ var P = {
|
|
|
1942
1942
|
}, i), T), A.setLoadedStyleName(r.$style.name);
|
|
1943
1943
|
}
|
|
1944
1944
|
if (!A.isStyleNameLoaded("layer-order")) {
|
|
1945
|
-
var m, $,
|
|
1946
|
-
R.load(
|
|
1945
|
+
var m, $, V = (m = r.$style) === null || m === void 0 || ($ = m.getLayerOrderThemeCSS) === null || $ === void 0 ? void 0 : $.call(m);
|
|
1946
|
+
R.load(V, L({
|
|
1947
1947
|
name: "layer-order",
|
|
1948
1948
|
first: !0
|
|
1949
1949
|
}, i)), A.setLoadedStyleName("layer-order");
|
|
@@ -2029,20 +2029,20 @@ var P = {
|
|
|
2029
2029
|
},
|
|
2030
2030
|
/* instance's methods */
|
|
2031
2031
|
ptm: function() {
|
|
2032
|
-
var m, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "",
|
|
2033
|
-
return P._getPTValue(a._$instances[t], (m = a._$instances[t]) === null || m === void 0 || (m = m.$binding) === null || m === void 0 || (m = m.value) === null || m === void 0 ? void 0 : m.pt, $, L({},
|
|
2032
|
+
var m, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2033
|
+
return P._getPTValue(a._$instances[t], (m = a._$instances[t]) === null || m === void 0 || (m = m.$binding) === null || m === void 0 || (m = m.value) === null || m === void 0 ? void 0 : m.pt, $, L({}, V));
|
|
2034
2034
|
},
|
|
2035
2035
|
ptmo: function() {
|
|
2036
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "",
|
|
2037
|
-
return P._getPTValue(a._$instances[t], m, $,
|
|
2036
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2037
|
+
return P._getPTValue(a._$instances[t], m, $, V, !1);
|
|
2038
2038
|
},
|
|
2039
2039
|
cx: function() {
|
|
2040
|
-
var m, $,
|
|
2041
|
-
return (m = a._$instances[t]) !== null && m !== void 0 && m.isUnstyled() ? void 0 : P._getOptionValue(($ = a._$instances[t]) === null || $ === void 0 || ($ = $.$style) === null || $ === void 0 ? void 0 : $.classes,
|
|
2040
|
+
var m, $, V = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2041
|
+
return (m = a._$instances[t]) !== null && m !== void 0 && m.isUnstyled() ? void 0 : P._getOptionValue(($ = a._$instances[t]) === null || $ === void 0 || ($ = $.$style) === null || $ === void 0 ? void 0 : $.classes, V, L({}, M));
|
|
2042
2042
|
},
|
|
2043
2043
|
sx: function() {
|
|
2044
|
-
var m, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "",
|
|
2045
|
-
return
|
|
2044
|
+
var m, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, M = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2045
|
+
return V ? P._getOptionValue((m = a._$instances[t]) === null || m === void 0 || (m = m.$style) === null || m === void 0 ? void 0 : m.inlineStyles, $, L({}, M)) : void 0;
|
|
2046
2046
|
}
|
|
2047
2047
|
}, w), a.$instance = a._$instances[t], (f = (b = a.$instance)[l]) === null || f === void 0 || f.call(b, a, u, d, c), a["$".concat(t)] = a.$instance, P._hook(t, l, a, u, d, c), a.$pd || (a.$pd = {}), a.$pd[t] = L(L({}, (y = a.$pd) === null || y === void 0 ? void 0 : y[t]), {}, {
|
|
2048
2048
|
name: t,
|
|
@@ -2134,13 +2134,13 @@ var P = {
|
|
|
2134
2134
|
}), gr = P.extend({
|
|
2135
2135
|
style: vr
|
|
2136
2136
|
});
|
|
2137
|
-
function
|
|
2137
|
+
function ze(e) {
|
|
2138
2138
|
"@babel/helpers - typeof";
|
|
2139
|
-
return
|
|
2139
|
+
return ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2140
2140
|
return typeof t;
|
|
2141
2141
|
} : function(t) {
|
|
2142
2142
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2143
|
-
},
|
|
2143
|
+
}, ze(e);
|
|
2144
2144
|
}
|
|
2145
2145
|
function yr(e) {
|
|
2146
2146
|
return $r(e) || kr(e) || Sr(e) || _r();
|
|
@@ -2172,14 +2172,14 @@ function Wt(e, t, n) {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
function wr(e) {
|
|
2174
2174
|
var t = Or(e, "string");
|
|
2175
|
-
return
|
|
2175
|
+
return ze(t) == "symbol" ? t : t + "";
|
|
2176
2176
|
}
|
|
2177
2177
|
function Or(e, t) {
|
|
2178
|
-
if (
|
|
2178
|
+
if (ze(e) != "object" || !e) return e;
|
|
2179
2179
|
var n = e[Symbol.toPrimitive];
|
|
2180
2180
|
if (n !== void 0) {
|
|
2181
2181
|
var o = n.call(e, t);
|
|
2182
|
-
if (
|
|
2182
|
+
if (ze(o) != "object") return o;
|
|
2183
2183
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2184
2184
|
}
|
|
2185
2185
|
return (t === "string" ? String : Number)(e);
|
|
@@ -3123,7 +3123,7 @@ var Ce = {
|
|
|
3123
3123
|
ripple: hn
|
|
3124
3124
|
}
|
|
3125
3125
|
}, Er = ["data-p"], Nr = ["data-p"];
|
|
3126
|
-
function
|
|
3126
|
+
function Vr(e, t, n, o, r, i) {
|
|
3127
3127
|
var s = Qe("SpinnerIcon"), l = Qe("Badge"), a = Gt("ripple");
|
|
3128
3128
|
return e.asChild ? B(e.$slots, "default", {
|
|
3129
3129
|
key: 1,
|
|
@@ -3175,8 +3175,8 @@ function zr(e, t, n, o, r, i) {
|
|
|
3175
3175
|
_: 3
|
|
3176
3176
|
}, 16, ["class", "data-p"])), [[a]]);
|
|
3177
3177
|
}
|
|
3178
|
-
Ce.render =
|
|
3179
|
-
const
|
|
3178
|
+
Ce.render = Vr;
|
|
3179
|
+
const zr = ["aria-hidden", "aria-label", "role"], ee = /* @__PURE__ */ ht({
|
|
3180
3180
|
name: "RsIcon",
|
|
3181
3181
|
__name: "RsIcon",
|
|
3182
3182
|
props: {
|
|
@@ -3192,7 +3192,7 @@ const Vr = ["aria-hidden", "aria-label", "role"], ee = /* @__PURE__ */ ht({
|
|
|
3192
3192
|
ariaLabel: {}
|
|
3193
3193
|
},
|
|
3194
3194
|
setup(e) {
|
|
3195
|
-
const t = e, n =
|
|
3195
|
+
const t = e, n = z(() => [
|
|
3196
3196
|
"rs-icon",
|
|
3197
3197
|
`rs-icon--${t.family}`,
|
|
3198
3198
|
`rs-icon--${t.color}`,
|
|
@@ -3202,20 +3202,20 @@ const Vr = ["aria-hidden", "aria-label", "role"], ee = /* @__PURE__ */ ht({
|
|
|
3202
3202
|
"rs-icon--md": t.size === "md",
|
|
3203
3203
|
"rs-icon--lg": t.size === "lg"
|
|
3204
3204
|
}
|
|
3205
|
-
]), o =
|
|
3205
|
+
]), o = z(() => ({
|
|
3206
3206
|
"--rs-icon-fill": t.fill ? 1 : 0,
|
|
3207
3207
|
"--rs-icon-grade": t.grade,
|
|
3208
3208
|
"--rs-icon-optical-size": t.opticalSize,
|
|
3209
3209
|
"--rs-icon-size": typeof t.size == "number" ? `${t.size}px` : void 0,
|
|
3210
3210
|
"--rs-icon-weight": t.weight
|
|
3211
|
-
})), r =
|
|
3211
|
+
})), r = z(() => t.ariaLabel ? void 0 : "true"), i = z(() => t.ariaLabel ? "img" : void 0);
|
|
3212
3212
|
return (s, l) => (h(), k("span", {
|
|
3213
3213
|
"aria-hidden": r.value,
|
|
3214
3214
|
"aria-label": e.ariaLabel,
|
|
3215
3215
|
class: q(n.value),
|
|
3216
3216
|
role: i.value,
|
|
3217
3217
|
style: Xt(o.value)
|
|
3218
|
-
}, D(e.name), 15,
|
|
3218
|
+
}, D(e.name), 15, zr));
|
|
3219
3219
|
}
|
|
3220
3220
|
}), Mr = /^[a-z0-9_]+$/;
|
|
3221
3221
|
function oa(e, t = {}) {
|
|
@@ -3270,15 +3270,15 @@ const Br = { class: "rs-account-selector__trigger-avatar" }, Dr = ["src", "alt"]
|
|
|
3270
3270
|
},
|
|
3271
3271
|
emits: ["select-account", "action", "footer-action", "update:modelValue", "open", "close"],
|
|
3272
3272
|
setup(e, { emit: t }) {
|
|
3273
|
-
const n = e, o = t, r = ne(null), i = ne(null), s = ne(!1), l = ne("right"), a =
|
|
3273
|
+
const n = e, o = t, r = ne(null), i = ne(null), s = ne(!1), l = ne("right"), a = z(() => n.modelValue !== null), u = z(
|
|
3274
3274
|
() => a.value ? !!n.modelValue : s.value
|
|
3275
|
-
), d =
|
|
3275
|
+
), d = z(() => ({
|
|
3276
3276
|
"--rs-account-selector-width": n.width
|
|
3277
|
-
})), c =
|
|
3277
|
+
})), c = z(() => n.title ? n.title : n.accounts.length > 1 ? `Acceso a ${n.accounts.length} Cuentas` : "Acceso a"), p = z(
|
|
3278
3278
|
() => n.actions.filter((S) => S.visible !== !1)
|
|
3279
|
-
), f =
|
|
3279
|
+
), f = z(
|
|
3280
3280
|
() => n.footerActions.filter((S) => S.visible !== !1)
|
|
3281
|
-
), b =
|
|
3281
|
+
), b = z(() => n.accounts.length > 1), y = {
|
|
3282
3282
|
id: "profile",
|
|
3283
3283
|
label: "Ver mi perfil"
|
|
3284
3284
|
};
|
|
@@ -3300,7 +3300,7 @@ const Br = { class: "rs-account-selector__trigger-avatar" }, Dr = ["src", "alt"]
|
|
|
3300
3300
|
function $(S) {
|
|
3301
3301
|
a.value || (s.value = S), o("update:modelValue", S), o(S ? "open" : "close");
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function V() {
|
|
3304
3304
|
$(!u.value);
|
|
3305
3305
|
}
|
|
3306
3306
|
function M() {
|
|
@@ -3342,7 +3342,7 @@ const Br = { class: "rs-account-selector__trigger-avatar" }, Dr = ["src", "alt"]
|
|
|
3342
3342
|
{ "rs-account-selector__trigger--open": u.value }
|
|
3343
3343
|
]),
|
|
3344
3344
|
text: "",
|
|
3345
|
-
onClick: Ke(
|
|
3345
|
+
onClick: Ke(V, ["stop"])
|
|
3346
3346
|
}, {
|
|
3347
3347
|
default: be(() => [
|
|
3348
3348
|
de(H(ee), {
|
|
@@ -4093,7 +4093,7 @@ var yn = {
|
|
|
4093
4093
|
PVMenuitem: gn,
|
|
4094
4094
|
Portal: vn
|
|
4095
4095
|
}
|
|
4096
|
-
}, Ni = ["id", "data-p"],
|
|
4096
|
+
}, Ni = ["id", "data-p"], Vi = ["id", "tabindex", "aria-activedescendant", "aria-label", "aria-labelledby"], zi = ["id"];
|
|
4097
4097
|
function Mi(e, t, n, o, r, i) {
|
|
4098
4098
|
var s = Qe("PVMenuitem"), l = Qe("Portal");
|
|
4099
4099
|
return h(), K(l, {
|
|
@@ -4154,7 +4154,7 @@ function Mi(e, t, n, o, r, i) {
|
|
|
4154
4154
|
item: a
|
|
4155
4155
|
}, function() {
|
|
4156
4156
|
return [bt(D(i.label(a)), 1)];
|
|
4157
|
-
})], 16,
|
|
4157
|
+
})], 16, zi)) : N("", !0), (h(!0), k(ie, null, we(a.items, function(d, c) {
|
|
4158
4158
|
return h(), k(ie, {
|
|
4159
4159
|
key: d.label + u + "_" + c
|
|
4160
4160
|
}, [i.visible(d) && !d.separator ? (h(), K(s, {
|
|
@@ -4194,7 +4194,7 @@ function Mi(e, t, n, o, r, i) {
|
|
|
4194
4194
|
onItemMousemove: i.itemMouseMove,
|
|
4195
4195
|
pt: e.pt
|
|
4196
4196
|
}, null, 8, ["id", "item", "index", "templates", "focusedOptionId", "unstyled", "onItemClick", "onItemMousemove", "pt"]))], 64);
|
|
4197
|
-
}), 128))], 16,
|
|
4197
|
+
}), 128))], 16, Vi), e.$slots.end ? (h(), k("div", j({
|
|
4198
4198
|
key: 1,
|
|
4199
4199
|
class: e.cx("end")
|
|
4200
4200
|
}, e.ptm("end")), [B(e.$slots, "end")], 16)) : N("", !0)], 16, Ni)) : N("", !0)];
|
|
@@ -4231,9 +4231,9 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4231
4231
|
},
|
|
4232
4232
|
emits: ["item-click", "close-mobile", "expanded-change", "module-select"],
|
|
4233
4233
|
setup(e, { emit: t }) {
|
|
4234
|
-
const n = e, o = t, r = ne(!1), i = ne(null), s = ne(!1), l = ne(null), a =
|
|
4234
|
+
const n = e, o = t, r = ne(!1), i = ne(null), s = ne(!1), l = ne(null), a = z(() => n.items.filter(T)), u = z(() => n.footerItems.filter(T)), d = z(() => n.modules), c = z(
|
|
4235
4235
|
() => n.modules.find((g) => g.active) ?? n.modules.find((g) => g.text === n.title) ?? n.modules[0] ?? null
|
|
4236
|
-
), p =
|
|
4236
|
+
), p = z(() => i.value?.label || c.value?.text || n.title), f = z(
|
|
4237
4237
|
() => d.value.map((g) => ({
|
|
4238
4238
|
class: [
|
|
4239
4239
|
"rs-sidebar__module-option",
|
|
@@ -4246,9 +4246,9 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4246
4246
|
disabled: g.disabled,
|
|
4247
4247
|
label: g.text
|
|
4248
4248
|
}))
|
|
4249
|
-
), b =
|
|
4249
|
+
), b = z(
|
|
4250
4250
|
() => i.value ? i.value.children?.filter(T) ?? [] : a.value
|
|
4251
|
-
), y =
|
|
4251
|
+
), y = z(() => n.expanded || n.mobileOpen || r.value), v = z(() => n.mobileOpen || !!i.value), _ = z(() => !i.value && n.modules.length > 0), w = z(() => [
|
|
4252
4252
|
"rs-sidebar",
|
|
4253
4253
|
`rs-sidebar--${n.variant}`,
|
|
4254
4254
|
{
|
|
@@ -4281,7 +4281,7 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4281
4281
|
function $(g) {
|
|
4282
4282
|
!n.expandOnHover || n.mobileOpen || (r.value = g, g || (s.value = !1), o("expanded-change", y.value));
|
|
4283
4283
|
}
|
|
4284
|
-
function
|
|
4284
|
+
function V(g) {
|
|
4285
4285
|
if (!g.disabled) {
|
|
4286
4286
|
if (m(g)) {
|
|
4287
4287
|
i.value = g;
|
|
@@ -4336,10 +4336,7 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4336
4336
|
"aria-haspopup": "menu",
|
|
4337
4337
|
onClick: Y
|
|
4338
4338
|
}, [
|
|
4339
|
-
de(H(ee), {
|
|
4340
|
-
name: e.icon,
|
|
4341
|
-
size: "sm"
|
|
4342
|
-
}, null, 8, ["name"]),
|
|
4339
|
+
de(H(ee), { name: e.icon }, null, 8, ["name"]),
|
|
4343
4340
|
I("span", Ui, D(p.value), 1),
|
|
4344
4341
|
de(H(ee), {
|
|
4345
4342
|
class: "rs-sidebar__module-chevron",
|
|
@@ -4347,10 +4344,7 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4347
4344
|
size: "sm"
|
|
4348
4345
|
}, null, 8, ["name"])
|
|
4349
4346
|
], 8, Ri)) : (h(), k(ie, { key: 1 }, [
|
|
4350
|
-
de(H(ee), {
|
|
4351
|
-
name: e.icon,
|
|
4352
|
-
size: "sm"
|
|
4353
|
-
}, null, 8, ["name"]),
|
|
4347
|
+
de(H(ee), { name: e.icon }, null, 8, ["name"]),
|
|
4354
4348
|
I("span", Ki, D(p.value), 1)
|
|
4355
4349
|
], 64))
|
|
4356
4350
|
], 2),
|
|
@@ -4399,7 +4393,7 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4399
4393
|
]),
|
|
4400
4394
|
type: "button",
|
|
4401
4395
|
disabled: x.disabled,
|
|
4402
|
-
onClick: (Q) =>
|
|
4396
|
+
onClick: (Q) => V(x)
|
|
4403
4397
|
}, [
|
|
4404
4398
|
B(g.$slots, "item", {
|
|
4405
4399
|
item: x,
|
|
@@ -4408,8 +4402,7 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4408
4402
|
x.icon ? (h(), K(H(ee), {
|
|
4409
4403
|
key: 0,
|
|
4410
4404
|
class: "rs-sidebar__item-icon",
|
|
4411
|
-
name: x.icon
|
|
4412
|
-
size: 14
|
|
4405
|
+
name: x.icon
|
|
4413
4406
|
}, null, 8, ["name"])) : N("", !0),
|
|
4414
4407
|
I("span", Yi, D(x.label), 1),
|
|
4415
4408
|
m(x) ? (h(), K(H(ee), {
|
|
@@ -4444,12 +4437,11 @@ const Bi = ["aria-label"], Di = { class: "rs-sidebar__header" }, Ri = ["aria-exp
|
|
|
4444
4437
|
]),
|
|
4445
4438
|
type: "button",
|
|
4446
4439
|
disabled: x.disabled,
|
|
4447
|
-
onClick: (Q) =>
|
|
4440
|
+
onClick: (Q) => V(x)
|
|
4448
4441
|
}, [
|
|
4449
4442
|
x.icon ? (h(), K(H(ee), {
|
|
4450
4443
|
key: 0,
|
|
4451
|
-
name: x.icon
|
|
4452
|
-
size: 14
|
|
4444
|
+
name: x.icon
|
|
4453
4445
|
}, null, 8, ["name"])) : N("", !0),
|
|
4454
4446
|
I("span", Ji, D(x.label), 1)
|
|
4455
4447
|
], 10, Qi)
|